diff --git a/.nojekyll b/.nojekyll new file mode 100644 index 0000000..e69de29 diff --git a/CNAME b/CNAME new file mode 100644 index 0000000..9ad6cda --- /dev/null +++ b/CNAME @@ -0,0 +1 @@ +reaflow.dev diff --git a/assets/Basic.stories-68ae1699.js b/assets/Basic.stories-68ae1699.js new file mode 100644 index 0000000..1126a7c --- /dev/null +++ b/assets/Basic.stories-68ae1699.js @@ -0,0 +1,521 @@ +import{j as o}from"./jsx-runtime-9c4ae004.js";import{r as y}from"./index-1b03fe98.js";import{C as n,N as i,E as s,M as V,a as X,I as oe,L as C,P as v,R as Y,A as te,b as ne}from"./Icon-81c21a65.js";import"./IntersectionQuery-9432d399.js";import{c as de}from"./crudHelpers-031fd461.js";import{h as re,d as ie}from"./graphHelpers-fa49f917.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const xe={title:"Demos/Basic",component:n,subcomponents:{Node:i,Edge:s,MarkerArrow:V,Arrow:X,Icon:oe,Label:C,Port:v,Remove:Y,Add:te}},l=()=>o.jsx("div",{style:{height:500},children:o.jsx(n,{nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:e=>console.log("Layout",e)})}),g=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{animated:!1,nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:e=>console.log("Layout",e)})}),m=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{readonly:!0,nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:e=>console.log("Layout",e)})}),c=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{disabled:!0,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:e=>console.log("Layout",e)})}),f=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:[{id:"2",text:"Mother",data:{gender:"female"}},{id:"3",text:"Daughter",data:{gender:"female"}},{id:"4",text:"Son",data:{gender:"male"}}],edges:[{id:"2-3",from:"2",to:"3"},{id:"2-4",from:"2",to:"4"}],node:e=>{var t;return o.jsx(i,{...e,onClick:()=>console.log(e.properties.data),style:{fill:((t=e.properties.data)==null?void 0:t.gender)==="male"?"blue":"red"}})},edge:e=>o.jsx(s,{...e,style:{stroke:e.id==="2-4"?"blue":"red"}}),onLayoutChange:e=>console.log("Layout",e)})}),u=()=>{const e=y.useRef(null);return y.useEffect(()=>{console.log("Reference:",e)},[e]),o.jsxs("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:[o.jsx("button",{style:{position:"absolute",top:10,left:10,zIndex:999},onClick:()=>{var t;return(t=e.current)==null?void 0:t.positionCanvas(ne.CENTER)},children:"Center"}),o.jsx(n,{ref:e,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:t=>console.log("Layout",t)})]})},x=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:o.jsx(i,{port:o.jsx(v,{onEnter:(e,t)=>{console.log("Enter Port",e,t)},onLeave:(e,t)=>{console.log("Leave Port",e,t)}}),onEnter:(e,t)=>{console.log("Enter Node",e,t)},onLeave:(e,t)=>{console.log("Leave Node",e,t)},onKeyDown:(e,t)=>{console.log("Keydown Node",e,t)},onClick:(e,t)=>{console.log("Selecting Node",e,t)},onRemove:(e,t)=>{console.log("Remove Node",e,t)}}),edge:o.jsx(s,{onEnter:(e,t)=>{console.log("Enter Edge",e,t)},onLeave:(e,t)=>{console.log("Leave Edge",e,t)},onKeyDown:(e,t)=>{console.log("Keydown Edge",e,t)},onClick:(e,t)=>{console.log("Selecting Edge",e,t)},onRemove:(e,t)=>{console.log("Removing Edge",e,t)}}),onCanvasClick:e=>{console.log("Canvas Clicked",e)},onLayoutChange:e=>console.log("Layout",e)})}),p=()=>o.jsxs("div",{style:{border:"solid 1px #12131e",height:500,width:700},children:[o.jsx("style",{children:` + body #root > div { + background-color: white; + background-image: -webkit-repeating-radial-gradient(top center,rgba(0,0,0,.2),rgba(0,0,0,.2) 1px,transparent 0,transparent 100%); + } + .edge { + stroke: #b1b1b7; + stroke-dasharray: 5; + animation: dashdraw .5s linear infinite; + stroke-width: 1; + } + @keyframes dashdraw { + 0% { stroke-dashoffset: 10; } + } + `}),o.jsx(n,{className:"canvas",nodes:[{id:"1",text:"Node 1",ports:[{id:"1-from",width:10,height:10,side:"SOUTH"},{id:"1-to",width:10,height:10,side:"NORTH",hidden:!0}]},{id:"2",text:"Node 2",ports:[{id:"2-from",width:10,height:10,side:"SOUTH"},{id:"2-to",width:10,height:10,side:"NORTH",hidden:!0}]},{id:"3",text:"Node 3",ports:[{id:"3-from",width:10,height:10,side:"SOUTH"},{id:"3-to",width:10,height:10,side:"NORTH",hidden:!0}]}],edges:[{id:"1-2",from:"1",to:"2",fromPort:"1-from",toPort:"2-to"},{id:"1-3",from:"1",to:"3",fromPort:"1-from",toPort:"3-to"}],node:o.jsx(i,{style:{stroke:"#1a192b",fill:"white",strokeWidth:1},label:o.jsx(C,{style:{fill:"black"}}),port:o.jsx(v,{style:{fill:"blue",stroke:"white"},rx:10,ry:10})}),arrow:o.jsx(V,{style:{fill:"#b1b1b7"}}),edge:o.jsx(s,{className:"edge"}),onLayoutChange:e=>console.log("Layout",e)})]}),h=()=>{const[e,t]=y.useState([{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"},{id:"5",text:"5"},{id:"6",text:"6"},{id:"7",text:"7"},{id:"8",text:"8"},{id:"9",text:"9"},{id:"10",text:"10"},{id:"11",text:"11"},{id:"12",text:"12"},{id:"13",text:"13"},{id:"14",text:"14"},{id:"15",text:"15"},{id:"16",text:"16"},{id:"17",text:"17"},{id:"18",text:"18"},{id:"19",text:"19"},{id:"20",text:"20"},{id:"21",text:"21"},{id:"22",text:"22"},{id:"23",text:"23"},{id:"24",text:"24"},{id:"25",text:"25"},{id:"26",text:"26"},{id:"27",text:"27"},{id:"28",text:"28"},{id:"29",text:"29"},{id:"30",text:"30"}]),[a,Z]=y.useState([{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"},{id:"1-4",from:"1",to:"4"},{id:"1-5",from:"1",to:"5"},{id:"1-6",from:"1",to:"6"},{id:"1-7",from:"1",to:"7"},{id:"2-8",from:"2",to:"8"},{id:"2-9",from:"2",to:"9"},{id:"2-10",from:"2",to:"10"},{id:"2-11",from:"2",to:"11"},{id:"2-12",from:"2",to:"12"},{id:"2-13",from:"2",to:"13"},{id:"3-14",from:"3",to:"14"},{id:"3-15",from:"3",to:"15"},{id:"3-16",from:"3",to:"16"},{id:"3-17",from:"3",to:"17"},{id:"3-18",from:"3",to:"18"},{id:"3-19",from:"3",to:"19"},{id:"3-20",from:"3",to:"20"},{id:"10-21",from:"10",to:"21"},{id:"10-22",from:"10",to:"22"},{id:"10-23",from:"10",to:"23"},{id:"10-24",from:"10",to:"24"},{id:"10-25",from:"10",to:"25"},{id:"17-26",from:"17",to:"26"},{id:"17-27",from:"17",to:"27"},{id:"17-28",from:"17",to:"28"},{id:"17-29",from:"17",to:"29"},{id:"17-30",from:"17",to:"30"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:e,edges:a,onMouseEnter:()=>{},onMouseLeave:()=>{},onCanvasClick:()=>{},dragNode:null,dragEdge:null,arrow:o.jsx(X,{}),node:o.jsx(i,{dragType:"node",remove:o.jsx(Y,{}),port:o.jsx(v,{}),label:o.jsx(C,{})}),edge:o.jsx(s,{}),onLayoutChange:b=>console.log("Layout",b),onNodeLink:(b,d,r)=>{const $=a.filter(ee=>ee.to!==d.id);Z([...$,de(r,d)])},onNodeLinkCheck:(b,d,r)=>!(d.id===r.id||re(a,r,d)||ie(e,a,r,d))})})};var N,L,E;l.parameters={...l.parameters,docs:{...(N=l.parameters)==null?void 0:N.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(E=(L=l.parameters)==null?void 0:L.docs)==null?void 0:E.source}}};var k,w,j;g.parameters={...g.parameters,docs:{...(k=g.parameters)==null?void 0:k.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(j=(w=g.parameters)==null?void 0:w.docs)==null?void 0:j.source}}};var R,S,P;m.parameters={...m.parameters,docs:{...(R=m.parameters)==null?void 0:R.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(P=(S=m.parameters)==null?void 0:S.docs)==null?void 0:P.source}}};var T,D,O;c.parameters={...c.parameters,docs:{...(T=c.parameters)==null?void 0:T.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(O=(D=c.parameters)==null?void 0:D.docs)==null?void 0:O.source}}};var H,M,A;f.parameters={...f.parameters,docs:{...(H=f.parameters)==null?void 0:H.docs,source:{originalSource:`() =>
+ console.log(node.properties.data)} style={{ + fill: node.properties.data?.gender === 'male' ? 'blue' : 'red' + }} />} edge={(edge: EdgeProps) => } onLayoutChange={layout => console.log('Layout', layout)} /> +
`,...(A=(M=f.parameters)==null?void 0:M.docs)==null?void 0:A.source}}};var K,_,U;u.parameters={...u.parameters,docs:{...(K=u.parameters)==null?void 0:K.docs,source:{originalSource:`() => { + const ref = useRef(null); + useEffect(() => { + console.log('Reference:', ref); + }, [ref]); + return
+ + console.log('Layout', layout)} /> +
; +}`,...(U=(_=u.parameters)==null?void 0:_.docs)==null?void 0:U.source}}};var I,z,B;x.parameters={...x.parameters,docs:{...(I=x.parameters)==null?void 0:I.docs,source:{originalSource:`() =>
+ { + console.log('Enter Port', event, port); + }} onLeave={(event, port) => { + console.log('Leave Port', event, port); + }} />} onEnter={(event, node) => { + console.log('Enter Node', event, node); + }} onLeave={(event, node) => { + console.log('Leave Node', event, node); + }} onKeyDown={(event, node) => { + console.log('Keydown Node', event, node); + }} onClick={(event, node) => { + console.log('Selecting Node', event, node); + }} onRemove={(event, node) => { + console.log('Remove Node', event, node); + }} />} edge={ { + console.log('Enter Edge', event, edge); + }} onLeave={(event, edge) => { + console.log('Leave Edge', event, edge); + }} onKeyDown={(event, edge) => { + console.log('Keydown Edge', event, edge); + }} onClick={(event, edge) => { + console.log('Selecting Edge', event, edge); + }} onRemove={(event, edge) => { + console.log('Removing Edge', event, edge); + }} />} onCanvasClick={event => { + console.log('Canvas Clicked', event); + }} onLayoutChange={layout => console.log('Layout', layout)} /> +
`,...(B=(z=x.parameters)==null?void 0:z.docs)==null?void 0:B.source}}};var F,W,q;p.parameters={...p.parameters,docs:{...(F=p.parameters)==null?void 0:F.docs,source:{originalSource:`() =>
+ + } port={} />} arrow={} edge={} onLayoutChange={layout => console.log('Layout', layout)} /> +
`,...(q=(W=p.parameters)==null?void 0:W.docs)==null?void 0:q.source}}};var G,J,Q;h.parameters={...h.parameters,docs:{...(G=h.parameters)==null?void 0:G.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: '1' + }, { + id: '2', + text: '2' + }, { + id: '3', + text: '3' + }, { + id: '4', + text: '4' + }, { + id: '5', + text: '5' + }, { + id: '6', + text: '6' + }, { + id: '7', + text: '7' + }, { + id: '8', + text: '8' + }, { + id: '9', + text: '9' + }, { + id: '10', + text: '10' + }, { + id: '11', + text: '11' + }, { + id: '12', + text: '12' + }, { + id: '13', + text: '13' + }, { + id: '14', + text: '14' + }, { + id: '15', + text: '15' + }, { + id: '16', + text: '16' + }, { + id: '17', + text: '17' + }, { + id: '18', + text: '18' + }, { + id: '19', + text: '19' + }, { + id: '20', + text: '20' + }, { + id: '21', + text: '21' + }, { + id: '22', + text: '22' + }, { + id: '23', + text: '23' + }, { + id: '24', + text: '24' + }, { + id: '25', + text: '25' + }, { + id: '26', + text: '26' + }, { + id: '27', + text: '27' + }, { + id: '28', + text: '28' + }, { + id: '29', + text: '29' + }, { + id: '30', + text: '30' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }, { + id: '1-3', + from: '1', + to: '3' + }, { + id: '1-4', + from: '1', + to: '4' + }, { + id: '1-5', + from: '1', + to: '5' + }, { + id: '1-6', + from: '1', + to: '6' + }, { + id: '1-7', + from: '1', + to: '7' + }, { + id: '2-8', + from: '2', + to: '8' + }, { + id: '2-9', + from: '2', + to: '9' + }, { + id: '2-10', + from: '2', + to: '10' + }, { + id: '2-11', + from: '2', + to: '11' + }, { + id: '2-12', + from: '2', + to: '12' + }, { + id: '2-13', + from: '2', + to: '13' + }, { + id: '3-14', + from: '3', + to: '14' + }, { + id: '3-15', + from: '3', + to: '15' + }, { + id: '3-16', + from: '3', + to: '16' + }, { + id: '3-17', + from: '3', + to: '17' + }, { + id: '3-18', + from: '3', + to: '18' + }, { + id: '3-19', + from: '3', + to: '19' + }, { + id: '3-20', + from: '3', + to: '20' + }, { + id: '10-21', + from: '10', + to: '21' + }, { + id: '10-22', + from: '10', + to: '22' + }, { + id: '10-23', + from: '10', + to: '23' + }, { + id: '10-24', + from: '10', + to: '24' + }, { + id: '10-25', + from: '10', + to: '25' + }, { + id: '17-26', + from: '17', + to: '26' + }, { + id: '17-27', + from: '17', + to: '27' + }, { + id: '17-28', + from: '17', + to: '28' + }, { + id: '17-29', + from: '17', + to: '29' + }, { + id: '17-30', + from: '17', + to: '30' + }]); + return
+ undefined} onMouseLeave={() => undefined} onCanvasClick={() => undefined} dragNode={null} dragEdge={null} arrow={} node={} port={} label={
; +}`,...(Q=(J=h.parameters)==null?void 0:J.docs)==null?void 0:Q.source}}};const pe=["Simple","NoAnimation","Readonly","Disabled","CustomElements","Refs","Events","Styling","ManyNodes"];export{f as CustomElements,c as Disabled,x as Events,h as ManyNodes,g as NoAnimation,m as Readonly,u as Refs,l as Simple,p as Styling,pe as __namedExportsOrder,xe as default}; +//# sourceMappingURL=Basic.stories-68ae1699.js.map diff --git a/assets/Basic.stories-68ae1699.js.map b/assets/Basic.stories-68ae1699.js.map new file mode 100644 index 0000000..1694963 --- /dev/null +++ b/assets/Basic.stories-68ae1699.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Basic.stories-68ae1699.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Basics-2006ec34.js b/assets/Basics-2006ec34.js new file mode 100644 index 0000000..d446ca0 --- /dev/null +++ b/assets/Basics-2006ec34.js @@ -0,0 +1,44 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./chunk-S4VUQJ4A-48c253a4.js";import{M as r,C as i}from"./index-44920ba4.js";import{Simple as a}from"./Basic.stories-68ae1699.js";import{u as o}from"./index-2ef8b458.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./react-18-5df836b6.js";import"./index-6fd5a17b.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";import"./Icon-81c21a65.js";import"./IntersectionQuery-9432d399.js";import"./crudHelpers-031fd461.js";import"./graphHelpers-fa49f917.js";function t(s){const n=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre"},o(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Docs/Getting Started/Basics"}),` +`,e.jsx(n.h1,{id:"basics",children:"Basics"}),` +`,e.jsx(n.h2,{id:"your-first-diagram",children:"Your First Diagram"}),` +`,e.jsxs(n.p,{children:["Let's build our first diagram by defining some ",e.jsx(n.code,{children:"nodes"})," and ",e.jsx(n.code,{children:"edges"}),`. +Nodes are the blocks and edges are the relationships between the blocks.`]}),` +`,e.jsxs(n.p,{children:["The data shapes require one property of ",e.jsx(n.code,{children:"id"})," but you can pass ",e.jsx(n.code,{children:"text"}),` +or `,e.jsx(n.code,{children:"icon"}),` to them to show some sort of indication what it represents. +The `,e.jsx(n.code,{children:"id"})," property can be any ",e.jsx(n.code,{children:"string"}),` but for demonstration purposes +we are going to use some basic strings.`]}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`const nodes = [ + { + id: '1', + text: '1' + }, + { + id: '2', + text: '2' + } +]; + +const edges = [ + { + id: '1-2', + from: '1', + to: '2' + } +]; +`})}),` +`,e.jsxs(n.p,{children:["These shapes above will create two elements ",e.jsx(n.code,{children:"1"})," and ",e.jsx(n.code,{children:"2"}),` and create +a relationship between them. Once we have this defined, we can simply +pass these properties to the `,e.jsx(n.code,{children:"Canvas"})," and it will do the rest!"]}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-jsx",children:`import React from 'react'; +import { Canvas } from 'reaflow'; + +export const MyDiagram = () => ( + +); +`})}),` +`,e.jsx(n.p,{children:"This will render a graph like this:"}),` +`,e.jsx(i,{of:a})]})}function T(s={}){const{wrapper:n}=Object.assign({},o(),s.components);return n?e.jsx(n,Object.assign({},s,{children:e.jsx(t,s)})):t(s)}export{T as default}; +//# sourceMappingURL=Basics-2006ec34.js.map diff --git a/assets/Basics-2006ec34.js.map b/assets/Basics-2006ec34.js.map new file mode 100644 index 0000000..b52ad95 --- /dev/null +++ b/assets/Basics-2006ec34.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Basics-2006ec34.js","sources":["../../docs/GettingStarted/Basics.mdx"],"sourcesContent":["import { Canvas, Meta } from '@storybook/addon-docs';\nimport * as BasicStories from '../../stories/Basic.stories';\n\n\n\n# Basics\n\n## Your First Diagram\nLet's build our first diagram by defining some `nodes` and `edges`.\nNodes are the blocks and edges are the relationships between the blocks.\n\nThe data shapes require one property of `id` but you can pass `text`\nor `icon` to them to show some sort of indication what it represents.\nThe `id` property can be any `string` but for demonstration purposes\nwe are going to use some basic strings.\n\n```js\nconst nodes = [\n {\n id: '1',\n text: '1'\n },\n {\n id: '2',\n text: '2'\n }\n];\n\nconst edges = [\n {\n id: '1-2',\n from: '1',\n to: '2'\n }\n];\n```\n\nThese shapes above will create two elements `1` and `2` and create\na relationship between them. Once we have this defined, we can simply\npass these properties to the `Canvas` and it will do the rest!\n\n```jsx\nimport React from 'react';\nimport { Canvas } from 'reaflow';\n\nexport const MyDiagram = () => (\n \n);\n```\n\nThis will render a graph like this:\n\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","Canvas","BasicStories.Simple","MDXContent","MDXLayout"],"mappings":"qqBAKA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,GAAI,KACJ,EAAG,IACH,KAAM,OACN,IAAK,KACN,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAOG,EAAAA,KAAMC,EAAAA,SAAW,CACtB,S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EAAY,KAAM,CAC9I,SAAU,QACX,CAAA,EAAG,2BAA2B,CAChC,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,IAAK,CAC9B,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,UAAW,eACX,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACF,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,qCAChB,CAAK,EAAG;AAAA,EAAMI,EAAI,IAACE,EAAQ,CACrB,GAAIC,CACV,CAAK,CAAC,CACN,CAAG,CACH,CACA,SAASC,EAAWT,EAAQ,GAAI,CAC9B,KAAM,CAAC,QAASU,CAAS,EAAI,OAAO,OAAO,CAAE,EAAER,EAAoB,EAAEF,EAAM,UAAU,EACrF,OAAOU,EAAYL,EAAAA,IAAKK,EAAW,OAAO,OAAO,CAAE,EAAEV,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/Color-6VNJS4EI-fa6ccd93.js b/assets/Color-6VNJS4EI-fa6ccd93.js new file mode 100644 index 0000000..eb689f6 --- /dev/null +++ b/assets/Color-6VNJS4EI-fa6ccd93.js @@ -0,0 +1,2 @@ +import{n as M,f as ue,T as Me,F as Ce,I as $e,g as Ne}from"./index-44920ba4.js";import{R as h,r as b,g as fe}from"./index-1b03fe98.js";import{_ as Oe,i as J,a as Ie}from"./index-4d52b68d.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-356e4a49.js";function $(){return($=Object.assign||function(e){for(var t=1;t=0||(o[n]=e[n]);return o}function K(e){var t=b.useRef(e),n=b.useRef(function(r){t.current&&t.current(r)});return t.current=e,n.current}var S=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=1),e>n?n:e0:p.buttons>0)&&o.current?a(ne(o.current,p,l.current)):_(!1)},N=function(){return _(!1)};function _(p){var m=i.current,x=V(o.current),C=p?x.addEventListener:x.removeEventListener;C(m?"touchmove":"mousemove",k),C(m?"touchend":"mouseup",N)}return[function(p){var m=p.nativeEvent,x=o.current;if(x&&(re(m),!function(X,R){return R&&!j(X)}(m,i.current)&&x)){if(j(m)){i.current=!0;var C=m.changedTouches||[];C.length&&(l.current=C[0].identifier)}x.focus(),a(ne(x,m,l.current)),_(!0)}},function(p){var m=p.which||p.keyCode;m<37||m>40||(p.preventDefault(),s({left:m===39?.05:m===37?-.05:0,top:m===40?.05:m===38?-.05:0}))},_]},[s,a]),d=c[0],f=c[1],g=c[2];return b.useEffect(function(){return g},[g]),h.createElement("div",$({},r,{onTouchStart:d,onMouseDown:d,className:"react-colorful__interactive",ref:o,onKeyDown:f,tabIndex:0,role:"slider"}))}),z=function(e){return e.filter(Boolean).join(" ")},ee=function(e){var t=e.color,n=e.left,r=e.top,o=r===void 0?.5:r,a=z(["react-colorful__pointer",e.className]);return h.createElement("div",{className:a,style:{top:100*o+"%",left:100*n+"%"}},h.createElement("div",{className:"react-colorful__pointer-fill",style:{backgroundColor:t}}))},y=function(e,t,n){return t===void 0&&(t=0),n===void 0&&(n=Math.pow(10,t)),Math.round(n*e)/n},Se={grad:.9,turn:360,rad:360/(2*Math.PI)},Re=function(e){return ge(A(e))},A=function(e){return e[0]==="#"&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:e.length===4?y(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:e.length===8?y(parseInt(e.substring(6,8),16)/255,2):1}},Te=function(e,t){return t===void 0&&(t="deg"),Number(e)*(Se[t]||1)},je=function(e){var t=/hsla?\(?\s*(-?\d*\.?\d+)(deg|rad|grad|turn)?[,\s]+(-?\d*\.?\d+)%?[,\s]+(-?\d*\.?\d+)%?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?Fe({h:Te(t[1],t[2]),s:Number(t[3]),l:Number(t[4]),a:t[5]===void 0?1:Number(t[5])/(t[6]?100:1)}):{h:0,s:0,v:0,a:1}},Fe=function(e){var t=e.s,n=e.l;return{h:e.h,s:(t*=(n<50?n:100-n)/100)>0?2*t/(n+t)*100:0,v:n+t,a:e.a}},ze=function(e){return Pe(de(e))},he=function(e){var t=e.s,n=e.v,r=e.a,o=(200-t)*n/100;return{h:y(e.h),s:y(o>0&&o<200?t*n/100/(o<=100?o:200-o)*100:0),l:y(o/2),a:y(r,2)}},G=function(e){var t=he(e);return"hsl("+t.h+", "+t.s+"%, "+t.l+"%)"},q=function(e){var t=he(e);return"hsla("+t.h+", "+t.s+"%, "+t.l+"%, "+t.a+")"},de=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var a=Math.floor(t),s=r*(1-n),l=r*(1-(t-a)*n),i=r*(1-(1-t+a)*n),c=a%6;return{r:y(255*[r,l,s,s,i,r][c]),g:y(255*[i,r,r,l,s,s][c]),b:y(255*[s,s,i,r,r,l][c]),a:y(o,2)}},He=function(e){var t=/rgba?\(?\s*(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?[,\s]+(-?\d*\.?\d+)(%)?,?\s*[/\s]*(-?\d*\.?\d+)?(%)?\s*\)?/i.exec(e);return t?ge({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:t[7]===void 0?1:Number(t[7])/(t[8]?100:1)}):{h:0,s:0,v:0,a:1}},H=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},Pe=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=o<1?H(y(255*o)):"";return"#"+H(t)+H(n)+H(r)+a},ge=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,a=Math.max(t,n,r),s=a-Math.min(t,n,r),l=s?a===t?(n-r)/s:a===n?2+(r-t)/s:4+(t-n)/s:0;return{h:y(60*(l<0?l+6:l)),s:y(a?s/a*100:0),v:y(a/255*100),a:o}},me=h.memo(function(e){var t=e.hue,n=e.onChange,r=z(["react-colorful__hue",e.className]);return h.createElement("div",{className:r},h.createElement(Z,{onMove:function(o){n({h:360*o.left})},onKey:function(o){n({h:S(t+360*o.left,0,360)})},"aria-label":"Hue","aria-valuenow":y(t),"aria-valuemax":"360","aria-valuemin":"0"},h.createElement(ee,{className:"react-colorful__hue-pointer",left:t/360,color:G({h:t,s:100,v:100,a:1})})))}),be=h.memo(function(e){var t=e.hsva,n=e.onChange,r={backgroundColor:G({h:t.h,s:100,v:100,a:1})};return h.createElement("div",{className:"react-colorful__saturation",style:r},h.createElement(Z,{onMove:function(o){n({s:100*o.left,v:100-100*o.top})},onKey:function(o){n({s:S(t.s+100*o.left,0,100),v:S(t.v-100*o.top,0,100)})},"aria-label":"Color","aria-valuetext":"Saturation "+y(t.s)+"%, Brightness "+y(t.v)+"%"},h.createElement(ee,{className:"react-colorful__saturation-pointer",top:1-t.v/100,left:t.s/100,color:G(t)})))}),ve=function(e,t){if(e===t)return!0;for(var n in e)if(e[n]!==t[n])return!1;return!0},pe=function(e,t){return e.replace(/\s/g,"")===t.replace(/\s/g,"")},Le=function(e,t){return e.toLowerCase()===t.toLowerCase()||ve(A(e),A(t))};function ye(e,t,n){var r=K(n),o=b.useState(function(){return e.toHsva(t)}),a=o[0],s=o[1],l=b.useRef({color:t,hsva:a});b.useEffect(function(){if(!e.equal(t,l.current.color)){var c=e.toHsva(t);l.current={hsva:c,color:t},s(c)}},[t,e]),b.useEffect(function(){var c;ve(a,l.current.hsva)||e.equal(c=e.fromHsva(a),l.current.color)||(l.current={hsva:a,color:c},r(c))},[a,e,r]);var i=b.useCallback(function(c){s(function(d){return Object.assign({},d,c)})},[]);return[a,i]}var qe=typeof window<"u"?b.useLayoutEffect:b.useEffect,Be=function(){return typeof __webpack_nonce__<"u"?__webpack_nonce__:void 0},oe=new Map,xe=function(e){qe(function(){var t=e.current?e.current.ownerDocument:document;if(t!==void 0&&!oe.has(t)){var n=t.createElement("style");n.innerHTML=`.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:"";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url('data:image/svg+xml;charset=utf-8,')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}`,oe.set(t,n);var r=Be();r&&n.setAttribute("nonce",r),t.head.appendChild(n)}},[])},We=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d,className:"react-colorful__last-control"}))},Xe={defaultColor:"000",toHsva:Re,fromHsva:function(e){return ze({h:e.h,s:e.s,v:e.v,a:1})},equal:Le},De=function(e){return h.createElement(We,$({},e,{colorModel:Xe}))},Ke=function(e){var t=e.className,n=e.hsva,r=e.onChange,o={backgroundImage:"linear-gradient(90deg, "+q(Object.assign({},n,{a:0}))+", "+q(Object.assign({},n,{a:1}))+")"},a=z(["react-colorful__alpha",t]),s=y(100*n.a);return h.createElement("div",{className:a},h.createElement("div",{className:"react-colorful__alpha-gradient",style:o}),h.createElement(Z,{onMove:function(l){r({a:l.left})},onKey:function(l){r({a:S(n.a+l.left)})},"aria-label":"Alpha","aria-valuetext":s+"%","aria-valuenow":s,"aria-valuemin":"0","aria-valuemax":"100"},h.createElement(ee,{className:"react-colorful__alpha-pointer",left:n.a,color:q(n)})))},we=function(e){var t=e.className,n=e.colorModel,r=e.color,o=r===void 0?n.defaultColor:r,a=e.onChange,s=Q(e,["className","colorModel","color","onChange"]),l=b.useRef(null);xe(l);var i=ye(n,o,a),c=i[0],d=i[1],f=z(["react-colorful",t]);return h.createElement("div",$({},s,{ref:l,className:f}),h.createElement(be,{hsva:c,onChange:d}),h.createElement(me,{hue:c.h,onChange:d}),h.createElement(Ke,{hsva:c,onChange:d,className:"react-colorful__last-control"}))},Ve={defaultColor:"hsla(0, 0%, 0%, 1)",toHsva:je,fromHsva:q,equal:pe},Ae=function(e){return h.createElement(we,$({},e,{colorModel:Ve}))},Ge={defaultColor:"rgba(0, 0, 0, 1)",toHsva:He,fromHsva:function(e){var t=de(e);return"rgba("+t.r+", "+t.g+", "+t.b+", "+t.a+")"},equal:pe},Ue=function(e){return h.createElement(we,$({},e,{colorModel:Ge}))},Ye={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const F=Ye,ke={};for(const e of Object.keys(F))ke[F[e]]=e;const u={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _e=u;for(const e of Object.keys(u)){if(!("channels"in u[e]))throw new Error("missing channels property: "+e);if(!("labels"in u[e]))throw new Error("missing channel labels property: "+e);if(u[e].labels.length!==u[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=u[e];delete u[e].channels,delete u[e].labels,Object.defineProperty(u[e],"channels",{value:t}),Object.defineProperty(u[e],"labels",{value:n})}u.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(t,n,r),a=Math.max(t,n,r),s=a-o;let l,i;a===o?l=0:t===a?l=(n-r)/s:n===a?l=2+(r-t)/s:r===a&&(l=4+(t-n)/s),l=Math.min(l*60,360),l<0&&(l+=360);const c=(o+a)/2;return a===o?i=0:c<=.5?i=s/(a+o):i=s/(2-a-o),[l,i*100,c*100]};u.rgb.hsv=function(e){let t,n,r,o,a;const s=e[0]/255,l=e[1]/255,i=e[2]/255,c=Math.max(s,l,i),d=c-Math.min(s,l,i),f=function(g){return(c-g)/6/d+1/2};return d===0?(o=0,a=0):(a=d/c,t=f(s),n=f(l),r=f(i),s===c?o=r-n:l===c?o=1/3+t-r:i===c&&(o=2/3+n-t),o<0?o+=1:o>1&&(o-=1)),[o*360,a*100,c*100]};u.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const o=u.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[o,a*100,r*100]};u.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.min(1-t,1-n,1-r),a=(1-t-o)/(1-o)||0,s=(1-n-o)/(1-o)||0,l=(1-r-o)/(1-o)||0;return[a*100,s*100,l*100,o*100]};function Je(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}u.rgb.keyword=function(e){const t=ke[e];if(t)return t;let n=1/0,r;for(const o of Object.keys(F)){const a=F[o],s=Je(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const o=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[o*100,a*100,s*100]};u.rgb.lab=function(e){const t=u.rgb.xyz(e);let n=t[0],r=t[1],o=t[2];n/=95.047,r/=100,o/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,o=o>.008856?o**(1/3):7.787*o+16/116;const a=116*r-16,s=500*(n-r),l=200*(r-o);return[a,s,l]};u.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let o,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?o=r*(1+n):o=r+n-r*n;const l=2*r-o,i=[0,0,0];for(let c=0;c<3;c++)a=t+1/3*-(c-1),a<0&&a++,a>1&&a--,6*a<1?s=l+(o-l)*6*a:2*a<1?s=o:3*a<2?s=l+(o-l)*(2/3-a)*6:s=l,i[c]=s*255;return i};u.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,o=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,o*=a<=1?a:2-a;const s=(r+n)/2,l=r===0?2*o/(a+o):2*n/(r+n);return[t,l*100,s*100]};u.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const o=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),l=255*r*(1-n*a),i=255*r*(1-n*(1-a));switch(r*=255,o){case 0:return[r,i,s];case 1:return[l,r,s];case 2:return[s,r,i];case 3:return[s,l,r];case 4:return[i,s,r];case 5:return[r,s,l]}};u.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,o=Math.max(r,.01);let a,s;s=(2-n)*r;const l=(2-n)*o;return a=n*o,a/=l<=1?l:2-l,a=a||0,s/=2,[t,a*100,s*100]};u.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const o=n+r;let a;o>1&&(n/=o,r/=o);const s=Math.floor(6*t),l=1-r;a=6*t-s,s&1&&(a=1-a);const i=n+a*(l-n);let c,d,f;switch(s){default:case 6:case 0:c=l,d=i,f=n;break;case 1:c=i,d=l,f=n;break;case 2:c=n,d=l,f=i;break;case 3:c=n,d=i,f=l;break;case 4:c=i,d=n,f=l;break;case 5:c=l,d=n,f=i;break}return[c*255,d*255,f*255]};u.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,o=e[3]/100,a=1-Math.min(1,t*(1-o)+o),s=1-Math.min(1,n*(1-o)+o),l=1-Math.min(1,r*(1-o)+o);return[a*255,s*255,l*255]};u.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let o,a,s;return o=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,o=o>.0031308?1.055*o**(1/2.4)-.055:o*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,o=Math.min(Math.max(0,o),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[o*255,a*255,s*255]};u.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const o=116*n-16,a=500*(t-n),s=200*(n-r);return[o,a,s]};u.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let o,a,s;a=(t+16)/116,o=n/500+a,s=a-r/200;const l=a**3,i=o**3,c=s**3;return a=l>.008856?l:(a-16/116)/7.787,o=i>.008856?i:(o-16/116)/7.787,s=c>.008856?c:(s-16/116)/7.787,o*=95.047,a*=100,s*=108.883,[o,a,s]};u.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let o;o=Math.atan2(r,n)*360/2/Math.PI,o<0&&(o+=360);const s=Math.sqrt(n*n+r*r);return[t,s,o]};u.lch.lab=function(e){const t=e[0],n=e[1],o=e[2]/360*2*Math.PI,a=n*Math.cos(o),s=n*Math.sin(o);return[t,a,s]};u.rgb.ansi16=function(e,t=null){const[n,r,o]=e;let a=t===null?u.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(o/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};u.hsv.ansi16=function(e){return u.rgb.ansi16(u.hsv.rgb(e),e[2])};u.rgb.ansi256=function(e){const t=e[0],n=e[1],r=e[2];return t===n&&n===r?t<8?16:t>248?231:Math.round((t-8)/247*24)+232:16+36*Math.round(t/255*5)+6*Math.round(n/255*5)+Math.round(r/255*5)};u.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,o=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,o,a]};u.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,o=t%6/5*255;return[n,r,o]};u.rgb.hex=function(e){const n=(((Math.round(e[0])&255)<<16)+((Math.round(e[1])&255)<<8)+(Math.round(e[2])&255)).toString(16).toUpperCase();return"000000".substring(n.length)+n};u.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(l=>l+l).join(""));const r=parseInt(n,16),o=r>>16&255,a=r>>8&255,s=r&255;return[o,a,s]};u.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,o=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=o-a;let l,i;return s<1?l=a/(1-s):l=0,s<=0?i=0:o===t?i=(n-r)/s%6:o===n?i=2+(r-t)/s:i=4+(t-n)/s,i/=6,i%=1,[i*360,s*100,l*100]};u.hsl.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=n<.5?2*t*n:2*t*(1-n);let o=0;return r<1&&(o=(n-.5*r)/(1-r)),[e[0],r*100,o*100]};u.hsv.hcg=function(e){const t=e[1]/100,n=e[2]/100,r=t*n;let o=0;return r<1&&(o=(n-r)/(1-r)),[e[0],r*100,o*100]};u.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const o=[0,0,0],a=t%1*6,s=a%1,l=1-s;let i=0;switch(Math.floor(a)){case 0:o[0]=1,o[1]=s,o[2]=0;break;case 1:o[0]=l,o[1]=1,o[2]=0;break;case 2:o[0]=0,o[1]=1,o[2]=s;break;case 3:o[0]=0,o[1]=l,o[2]=1;break;case 4:o[0]=s,o[1]=0,o[2]=1;break;default:o[0]=1,o[1]=0,o[2]=l}return i=(1-n)*r,[(n*o[0]+i)*255,(n*o[1]+i)*255,(n*o[2]+i)*255]};u.hcg.hsv=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);let o=0;return r>0&&(o=t/r),[e[0],o*100,r*100]};u.hcg.hsl=function(e){const t=e[1]/100,r=e[2]/100*(1-t)+.5*t;let o=0;return r>0&&r<.5?o=t/(2*r):r>=.5&&r<1&&(o=t/(2*(1-r))),[e[0],o*100,r*100]};u.hcg.hwb=function(e){const t=e[1]/100,n=e[2]/100,r=t+n*(1-t);return[e[0],(r-t)*100,(1-r)*100]};u.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,o=r-t;let a=0;return o<1&&(a=(r-o)/(1-o)),[e[0],o*100,a*100]};u.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};u.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};u.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};u.gray.hsl=function(e){return[0,0,e[0]]};u.gray.hsv=u.gray.hsl;u.gray.hwb=function(e){return[0,100,e[0]]};u.gray.cmyk=function(e){return[0,0,0,e[0]]};u.gray.lab=function(e){return[e[0],0,0]};u.gray.hex=function(e){const t=Math.round(e[0]/100*255)&255,r=((t<<16)+(t<<8)+t).toString(16).toUpperCase();return"000000".substring(r.length)+r};u.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const B=_e;function Qe(){const e={},t=Object.keys(B);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function st(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const o=e(n);if(typeof o=="object")for(let a=o.length,s=0;s{O[e]={},Object.defineProperty(O[e],"channels",{value:U[e].channels}),Object.defineProperty(O[e],"labels",{value:U[e].labels});const t=rt(e);Object.keys(t).forEach(r=>{const o=t[r];O[e][r]=st(o),O[e][r].raw=at(o)})});var lt=O;const w=fe(lt);var it=Oe,ct=function(){return it.Date.now()},ut=ct,ft=/\s/;function ht(e){for(var t=e.length;t--&&ft.test(e.charAt(t)););return t}var dt=ht,gt=dt,mt=/^\s+/;function bt(e){return e&&e.slice(0,gt(e)+1).replace(mt,"")}var vt=bt,pt=vt,ae=J,yt=Ie,se=0/0,xt=/^[-+]0x[0-9a-f]+$/i,wt=/^0b[01]+$/i,kt=/^0o[0-7]+$/i,_t=parseInt;function Et(e){if(typeof e=="number")return e;if(yt(e))return se;if(ae(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=ae(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=pt(e);var n=wt.test(e);return n||kt.test(e)?_t(e.slice(2),n?2:8):xt.test(e)?se:+e}var Mt=Et,Ct=J,D=ut,le=Mt,$t="Expected a function",Nt=Math.max,Ot=Math.min;function It(e,t,n){var r,o,a,s,l,i,c=0,d=!1,f=!1,g=!0;if(typeof e!="function")throw new TypeError($t);t=le(t)||0,Ct(n)&&(d=!!n.leading,f="maxWait"in n,a=f?Nt(le(n.maxWait)||0,t):a,g="trailing"in n?!!n.trailing:g);function k(v){var E=r,T=o;return r=o=void 0,c=v,s=e.apply(T,E),s}function N(v){return c=v,l=setTimeout(m,t),d?k(v):s}function _(v){var E=v-i,T=v-c,te=t-E;return f?Ot(te,a-T):te}function p(v){var E=v-i,T=v-c;return i===void 0||E>=t||E<0||f&&T>=a}function m(){var v=D();if(p(v))return x(v);l=setTimeout(m,_(v))}function x(v){return l=void 0,g&&r?k(v):(r=o=void 0,s)}function C(){l!==void 0&&clearTimeout(l),c=0,r=i=o=l=void 0}function X(){return l===void 0?s:x(D())}function R(){var v=D(),E=p(v);if(r=arguments,o=this,i=v,E){if(l===void 0)return N(i);if(f)return clearTimeout(l),l=setTimeout(m,t),k(i)}return l===void 0&&(l=setTimeout(m,t)),s}return R.cancel=C,R.flush=X,R}var St=It,Rt=St,Tt=J,jt="Expected a function";function Ft(e,t,n){var r=!0,o=!0;if(typeof e!="function")throw new TypeError(jt);return Tt(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),Rt(e,t,{leading:r,maxWait:t,trailing:o})}var zt=Ft;const Ht=fe(zt);var Pt=M.div({position:"relative",maxWidth:250}),Lt=M(ue)({position:"absolute",zIndex:1,top:4,left:4}),qt=M.div({width:200,margin:5,".react-colorful__saturation":{borderRadius:"4px 4px 0 0"},".react-colorful__hue":{boxShadow:"inset 0 0 0 1px rgb(0 0 0 / 5%)"},".react-colorful__last-control":{borderRadius:"0 0 4px 4px"}}),Bt=M(Me)(({theme:e})=>({fontFamily:e.typography.fonts.base})),Wt=M.div({display:"grid",gridTemplateColumns:"repeat(9, 16px)",gap:6,padding:3,marginTop:5,width:200}),Xt=M.div(({theme:e,active:t})=>({width:16,height:16,boxShadow:t?`${e.appBorderColor} 0 0 0 1px inset, ${e.textMutedColor}50 0 0 0 4px`:`${e.appBorderColor} 0 0 0 1px inset`,borderRadius:e.appBorderRadius})),Dt=`url('data:image/svg+xml;charset=utf-8,')`,ie=({value:e,active:t,onClick:n,style:r,...o})=>{let a=`linear-gradient(${e}, ${e}), ${Dt}, linear-gradient(#fff, #fff)`;return h.createElement(Xt,{...o,active:t,onClick:n,style:{...r,backgroundImage:a}})},Kt=M(Ce.Input)(({theme:e})=>({width:"100%",paddingLeft:30,paddingRight:30,boxSizing:"border-box",fontFamily:e.typography.fonts.base})),Vt=M($e)(({theme:e})=>({position:"absolute",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:"border-box",cursor:"pointer",color:e.input.color})),Ee=(e=>(e.RGB="rgb",e.HSL="hsl",e.HEX="hex",e))(Ee||{}),P=Object.values(Ee),At=/\(([0-9]+),\s*([0-9]+)%?,\s*([0-9]+)%?,?\s*([0-9.]+)?\)/,Gt=/^\s*rgba?\(([0-9]+),\s*([0-9]+),\s*([0-9]+),?\s*([0-9.]+)?\)\s*$/i,Ut=/^\s*hsla?\(([0-9]+),\s*([0-9]+)%,\s*([0-9]+)%,?\s*([0-9.]+)?\)\s*$/i,Y=/^\s*#?([0-9a-f]{3}|[0-9a-f]{6})\s*$/i,Yt=/^\s*#?([0-9a-f]{3})\s*$/i,Jt={hex:De,rgb:Ue,hsl:Ae},L={hex:"transparent",rgb:"rgba(0, 0, 0, 0)",hsl:"hsla(0, 0%, 0%, 0)"},ce=e=>{let t=e==null?void 0:e.match(At);if(!t)return[0,0,0,1];let[,n,r,o,a=1]=t;return[n,r,o,a].map(Number)},I=e=>{if(!e)return;let t=!0;if(Gt.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.rgb.hsl([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.rgb.keyword([s,l,i]),colorSpace:"rgb",rgb:e,hsl:`hsla(${d}, ${f}%, ${g}%, ${c})`,hex:`#${w.rgb.hex([s,l,i]).toLowerCase()}`}}if(Ut.test(e)){let[s,l,i,c]=ce(e),[d,f,g]=w.hsl.rgb([s,l,i])||[0,0,0];return{valid:t,value:e,keyword:w.hsl.keyword([s,l,i]),colorSpace:"hsl",rgb:`rgba(${d}, ${f}, ${g}, ${c})`,hsl:e,hex:`#${w.hsl.hex([s,l,i]).toLowerCase()}`}}let n=e.replace("#",""),r=w.keyword.rgb(n)||w.hex.rgb(n),o=w.rgb.hsl(r),a=e;if(/[^#a-f0-9]/i.test(e)?a=n:Y.test(e)&&(a=`#${n}`),a.startsWith("#"))t=Y.test(a);else try{w.keyword.hex(a)}catch{t=!1}return{valid:t,value:a,keyword:w.rgb.keyword(r),colorSpace:"hex",rgb:`rgba(${r[0]}, ${r[1]}, ${r[2]}, 1)`,hsl:`hsla(${o[0]}, ${o[1]}%, ${o[2]}%, 1)`,hex:a}},Qt=(e,t,n)=>{if(!e||!(t!=null&&t.valid))return L[n];if(n!=="hex")return(t==null?void 0:t[n])||L[n];if(!t.hex.startsWith("#"))try{return`#${w.keyword.hex(t.hex)}`}catch{return L.hex}let r=t.hex.match(Yt);if(!r)return Y.test(t.hex)?t.hex:L.hex;let[o,a,s]=r[1].split("");return`#${o}${o}${a}${a}${s}${s}`},Zt=(e,t)=>{let[n,r]=b.useState(e||""),[o,a]=b.useState(()=>I(n)),[s,l]=b.useState((o==null?void 0:o.colorSpace)||"hex");b.useEffect(()=>{let f=e||"",g=I(f);r(f),a(g),l((g==null?void 0:g.colorSpace)||"hex")},[e]);let i=b.useMemo(()=>Qt(n,o,s).toLowerCase(),[n,o,s]),c=b.useCallback(f=>{let g=I(f),k=(g==null?void 0:g.value)||f||"";r(k),k===""&&(a(void 0),t(void 0)),g&&(a(g),l(g.colorSpace),t(g.value))},[t]),d=b.useCallback(()=>{let f=P.indexOf(s)+1;f>=P.length&&(f=0),l(P[f]);let g=(o==null?void 0:o[P[f]])||"";r(g),t(g)},[o,s,t]);return{value:n,realValue:i,updateValue:c,color:o,colorSpace:s,cycleColorSpace:d}},W=e=>e.replace(/\s*/,"").toLowerCase(),en=(e,t,n)=>{let[r,o]=b.useState(t!=null&&t.valid?[t]:[]);b.useEffect(()=>{t===void 0&&o([])},[t]);let a=b.useMemo(()=>(e||[]).map(l=>typeof l=="string"?I(l):l.title?{...I(l.color),keyword:l.title}:I(l.color)).concat(r).filter(Boolean).slice(-27),[e,r]),s=b.useCallback(l=>{l!=null&&l.valid&&(a.some(i=>W(i[n])===W(l[n]))||o(i=>i.concat(l)))},[n,a]);return{presets:a,addPreset:s}},tn=({name:e,value:t,onChange:n,onFocus:r,onBlur:o,presetColors:a,startOpen:s=!1})=>{let l=b.useCallback(Ht(n,200),[n]),{value:i,realValue:c,updateValue:d,color:f,colorSpace:g,cycleColorSpace:k}=Zt(t,l),{presets:N,addPreset:_}=en(a,f,g),p=Jt[g];return h.createElement(Pt,null,h.createElement(Lt,{startOpen:s,closeOnOutsideClick:!0,onVisibleChange:()=>_(f),tooltip:h.createElement(qt,null,h.createElement(p,{color:c==="transparent"?"#000000":c,onChange:d,onFocus:r,onBlur:o}),N.length>0&&h.createElement(Wt,null,N.map((m,x)=>h.createElement(ue,{key:`${m.value}-${x}`,hasChrome:!1,tooltip:h.createElement(Bt,{note:m.keyword||m.value})},h.createElement(ie,{value:m[g],active:f&&W(m[g])===W(f[g]),onClick:()=>d(m.value)})))))},h.createElement(ie,{value:c,style:{margin:4}})),h.createElement(Kt,{id:Ne(e),value:i,onChange:m=>d(m.target.value),onFocus:m=>m.target.select(),placeholder:"Choose color..."}),i?h.createElement(Vt,{icon:"markup",onClick:k}):null)},dn=tn;export{tn as ColorControl,dn as default}; +//# sourceMappingURL=Color-6VNJS4EI-fa6ccd93.js.map diff --git a/assets/Color-6VNJS4EI-fa6ccd93.js.map b/assets/Color-6VNJS4EI-fa6ccd93.js.map new file mode 100644 index 0000000..c141581 --- /dev/null +++ b/assets/Color-6VNJS4EI-fa6ccd93.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Color-6VNJS4EI-fa6ccd93.js","sources":["../../node_modules/react-colorful/dist/index.mjs","../../node_modules/color-name/index.js","../../node_modules/color-convert/conversions.js","../../node_modules/color-convert/route.js","../../node_modules/color-convert/index.js","../../node_modules/lodash/now.js","../../node_modules/lodash/_trimmedEndIndex.js","../../node_modules/lodash/_baseTrim.js","../../node_modules/lodash/toNumber.js","../../node_modules/lodash/debounce.js","../../node_modules/lodash/throttle.js","../../node_modules/@storybook/blocks/dist/Color-6VNJS4EI.mjs"],"sourcesContent":["import e,{useRef as r,useMemo as t,useEffect as n,useState as o,useCallback as a,useLayoutEffect as l}from\"react\";function u(){return(u=Object.assign||function(e){for(var r=1;r=0||(o[t]=e[t]);return o}function i(e){var t=r(e),n=r(function(e){t.current&&t.current(e)});return t.current=e,n.current}var s=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=1),e>t?t:e0:e.buttons>0)&&m.current?g(d(m.current,e,b.current)):t(!1)},r=function(){return t(!1)};function t(t){var n=_.current,o=v(m.current),a=t?o.addEventListener:o.removeEventListener;a(n?\"touchmove\":\"mousemove\",e),a(n?\"touchend\":\"mouseup\",r)}return[function(e){var r=e.nativeEvent,n=m.current;if(n&&(h(r),!function(e,r){return r&&!f(e)}(r,_.current)&&n)){if(f(r)){_.current=!0;var o=r.changedTouches||[];o.length&&(b.current=o[0].identifier)}n.focus(),g(d(n,r,b.current)),t(!0)}},function(e){var r=e.which||e.keyCode;r<37||r>40||(e.preventDefault(),p({left:39===r?.05:37===r?-.05:0,top:40===r?.05:38===r?-.05:0}))},t]},[p,g]),C=x[0],E=x[1],H=x[2];return n(function(){return H},[H]),e.createElement(\"div\",u({},s,{onTouchStart:C,onMouseDown:C,className:\"react-colorful__interactive\",ref:m,onKeyDown:E,tabIndex:0,role:\"slider\"}))}),g=function(e){return e.filter(Boolean).join(\" \")},p=function(r){var t=r.color,n=r.left,o=r.top,a=void 0===o?.5:o,l=g([\"react-colorful__pointer\",r.className]);return e.createElement(\"div\",{className:l,style:{top:100*a+\"%\",left:100*n+\"%\"}},e.createElement(\"div\",{className:\"react-colorful__pointer-fill\",style:{backgroundColor:t}}))},b=function(e,r,t){return void 0===r&&(r=0),void 0===t&&(t=Math.pow(10,r)),Math.round(t*e)/t},_={grad:.9,turn:360,rad:360/(2*Math.PI)},x=function(e){return L(C(e))},C=function(e){return\"#\"===e[0]&&(e=e.substring(1)),e.length<6?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?b(parseInt(e[3]+e[3],16)/255,2):1}:{r:parseInt(e.substring(0,2),16),g:parseInt(e.substring(2,4),16),b:parseInt(e.substring(4,6),16),a:8===e.length?b(parseInt(e.substring(6,8),16)/255,2):1}},E=function(e,r){return void 0===r&&(r=\"deg\"),Number(e)*(_[r]||1)},H=function(e){var r=/hsla?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?N({h:E(r[1],r[2]),s:Number(r[3]),l:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},M=H,N=function(e){var r=e.s,t=e.l;return{h:e.h,s:(r*=(t<50?t:100-t)/100)>0?2*r/(t+r)*100:0,v:t+r,a:e.a}},w=function(e){return K(I(e))},y=function(e){var r=e.s,t=e.v,n=e.a,o=(200-r)*t/100;return{h:b(e.h),s:b(o>0&&o<200?r*t/100/(o<=100?o:200-o)*100:0),l:b(o/2),a:b(n,2)}},q=function(e){var r=y(e);return\"hsl(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%)\"},k=function(e){var r=y(e);return\"hsla(\"+r.h+\", \"+r.s+\"%, \"+r.l+\"%, \"+r.a+\")\"},I=function(e){var r=e.h,t=e.s,n=e.v,o=e.a;r=r/360*6,t/=100,n/=100;var a=Math.floor(r),l=n*(1-t),u=n*(1-(r-a)*t),c=n*(1-(1-r+a)*t),i=a%6;return{r:b(255*[n,u,l,l,c,n][i]),g:b(255*[c,n,n,u,l,l][i]),b:b(255*[l,l,c,n,n,u][i]),a:b(o,2)}},O=function(e){var r=/hsva?\\(?\\s*(-?\\d*\\.?\\d+)(deg|rad|grad|turn)?[,\\s]+(-?\\d*\\.?\\d+)%?[,\\s]+(-?\\d*\\.?\\d+)%?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?A({h:E(r[1],r[2]),s:Number(r[3]),v:Number(r[4]),a:void 0===r[5]?1:Number(r[5])/(r[6]?100:1)}):{h:0,s:0,v:0,a:1}},j=O,z=function(e){var r=/rgba?\\(?\\s*(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?[,\\s]+(-?\\d*\\.?\\d+)(%)?,?\\s*[/\\s]*(-?\\d*\\.?\\d+)?(%)?\\s*\\)?/i.exec(e);return r?L({r:Number(r[1])/(r[2]?100/255:1),g:Number(r[3])/(r[4]?100/255:1),b:Number(r[5])/(r[6]?100/255:1),a:void 0===r[7]?1:Number(r[7])/(r[8]?100:1)}):{h:0,s:0,v:0,a:1}},B=z,D=function(e){var r=e.toString(16);return r.length<2?\"0\"+r:r},K=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=o<1?D(b(255*o)):\"\";return\"#\"+D(r)+D(t)+D(n)+a},L=function(e){var r=e.r,t=e.g,n=e.b,o=e.a,a=Math.max(r,t,n),l=a-Math.min(r,t,n),u=l?a===r?(t-n)/l:a===t?2+(n-r)/l:4+(r-t)/l:0;return{h:b(60*(u<0?u+6:u)),s:b(a?l/a*100:0),v:b(a/255*100),a:o}},A=function(e){return{h:b(e.h),s:b(e.s),v:b(e.v),a:b(e.a,2)}},S=e.memo(function(r){var t=r.hue,n=r.onChange,o=g([\"react-colorful__hue\",r.className]);return e.createElement(\"div\",{className:o},e.createElement(m,{onMove:function(e){n({h:360*e.left})},onKey:function(e){n({h:s(t+360*e.left,0,360)})},\"aria-label\":\"Hue\",\"aria-valuenow\":b(t),\"aria-valuemax\":\"360\",\"aria-valuemin\":\"0\"},e.createElement(p,{className:\"react-colorful__hue-pointer\",left:t/360,color:q({h:t,s:100,v:100,a:1})})))}),T=e.memo(function(r){var t=r.hsva,n=r.onChange,o={backgroundColor:q({h:t.h,s:100,v:100,a:1})};return e.createElement(\"div\",{className:\"react-colorful__saturation\",style:o},e.createElement(m,{onMove:function(e){n({s:100*e.left,v:100-100*e.top})},onKey:function(e){n({s:s(t.s+100*e.left,0,100),v:s(t.v-100*e.top,0,100)})},\"aria-label\":\"Color\",\"aria-valuetext\":\"Saturation \"+b(t.s)+\"%, Brightness \"+b(t.v)+\"%\"},e.createElement(p,{className:\"react-colorful__saturation-pointer\",top:1-t.v/100,left:t.s/100,color:q(t)})))}),F=function(e,r){if(e===r)return!0;for(var t in e)if(e[t]!==r[t])return!1;return!0},P=function(e,r){return e.replace(/\\s/g,\"\")===r.replace(/\\s/g,\"\")},X=function(e,r){return e.toLowerCase()===r.toLowerCase()||F(C(e),C(r))};function Y(e,t,l){var u=i(l),c=o(function(){return e.toHsva(t)}),s=c[0],f=c[1],v=r({color:t,hsva:s});n(function(){if(!e.equal(t,v.current.color)){var r=e.toHsva(t);v.current={hsva:r,color:t},f(r)}},[t,e]),n(function(){var r;F(s,v.current.hsva)||e.equal(r=e.fromHsva(s),v.current.color)||(v.current={hsva:s,color:r},u(r))},[s,e,u]);var d=a(function(e){f(function(r){return Object.assign({},r,e)})},[]);return[s,d]}var R,V=\"undefined\"!=typeof window?l:n,$=function(){return R||(\"undefined\"!=typeof __webpack_nonce__?__webpack_nonce__:void 0)},G=function(e){R=e},J=new Map,Q=function(e){V(function(){var r=e.current?e.current.ownerDocument:document;if(void 0!==r&&!J.has(r)){var t=r.createElement(\"style\");t.innerHTML='.react-colorful{position:relative;display:flex;flex-direction:column;width:200px;height:200px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;cursor:default}.react-colorful__saturation{position:relative;flex-grow:1;border-color:transparent;border-bottom:12px solid #000;border-radius:8px 8px 0 0;background-image:linear-gradient(0deg,#000,transparent),linear-gradient(90deg,#fff,hsla(0,0%,100%,0))}.react-colorful__alpha-gradient,.react-colorful__pointer-fill{content:\"\";position:absolute;left:0;top:0;right:0;bottom:0;pointer-events:none;border-radius:inherit}.react-colorful__alpha-gradient,.react-colorful__saturation{box-shadow:inset 0 0 0 1px rgba(0,0,0,.05)}.react-colorful__alpha,.react-colorful__hue{position:relative;height:24px}.react-colorful__hue{background:linear-gradient(90deg,red 0,#ff0 17%,#0f0 33%,#0ff 50%,#00f 67%,#f0f 83%,red)}.react-colorful__last-control{border-radius:0 0 8px 8px}.react-colorful__interactive{position:absolute;left:0;top:0;right:0;bottom:0;border-radius:inherit;outline:none;touch-action:none}.react-colorful__pointer{position:absolute;z-index:1;box-sizing:border-box;width:28px;height:28px;transform:translate(-50%,-50%);background-color:#fff;border:2px solid #fff;border-radius:50%;box-shadow:0 2px 4px rgba(0,0,0,.2)}.react-colorful__interactive:focus .react-colorful__pointer{transform:translate(-50%,-50%) scale(1.1)}.react-colorful__alpha,.react-colorful__alpha-pointer{background-color:#fff;background-image:url(\\'data:image/svg+xml;charset=utf-8,\\')}.react-colorful__saturation-pointer{z-index:3}.react-colorful__hue-pointer{z-index:2}',J.set(r,t);var n=$();n&&t.setAttribute(\"nonce\",n),r.head.appendChild(t)}},[])},U=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h,className:\"react-colorful__last-control\"}))},W={defaultColor:\"000\",toHsva:x,fromHsva:function(e){return w({h:e.h,s:e.s,v:e.v,a:1})},equal:X},Z=function(r){return e.createElement(U,u({},r,{colorModel:W}))},ee=function(r){var t=r.className,n=r.hsva,o=r.onChange,a={backgroundImage:\"linear-gradient(90deg, \"+k(Object.assign({},n,{a:0}))+\", \"+k(Object.assign({},n,{a:1}))+\")\"},l=g([\"react-colorful__alpha\",t]),u=b(100*n.a);return e.createElement(\"div\",{className:l},e.createElement(\"div\",{className:\"react-colorful__alpha-gradient\",style:a}),e.createElement(m,{onMove:function(e){o({a:e.left})},onKey:function(e){o({a:s(n.a+e.left)})},\"aria-label\":\"Alpha\",\"aria-valuetext\":u+\"%\",\"aria-valuenow\":u,\"aria-valuemin\":\"0\",\"aria-valuemax\":\"100\"},e.createElement(p,{className:\"react-colorful__alpha-pointer\",left:n.a,color:k(n)})))},re=function(t){var n=t.className,o=t.colorModel,a=t.color,l=void 0===a?o.defaultColor:a,i=t.onChange,s=c(t,[\"className\",\"colorModel\",\"color\",\"onChange\"]),f=r(null);Q(f);var v=Y(o,l,i),d=v[0],h=v[1],m=g([\"react-colorful\",n]);return e.createElement(\"div\",u({},s,{ref:f,className:m}),e.createElement(T,{hsva:d,onChange:h}),e.createElement(S,{hue:d.h,onChange:h}),e.createElement(ee,{hsva:d,onChange:h,className:\"react-colorful__last-control\"}))},te={defaultColor:\"0001\",toHsva:x,fromHsva:w,equal:X},ne=function(r){return e.createElement(re,u({},r,{colorModel:te}))},oe={defaultColor:{h:0,s:0,l:0,a:1},toHsva:N,fromHsva:y,equal:F},ae=function(r){return e.createElement(re,u({},r,{colorModel:oe}))},le={defaultColor:\"hsla(0, 0%, 0%, 1)\",toHsva:H,fromHsva:k,equal:P},ue=function(r){return e.createElement(re,u({},r,{colorModel:le}))},ce={defaultColor:{h:0,s:0,l:0},toHsva:function(e){return N({h:e.h,s:e.s,l:e.l,a:1})},fromHsva:function(e){return{h:(r=y(e)).h,s:r.s,l:r.l};var r},equal:F},ie=function(r){return e.createElement(U,u({},r,{colorModel:ce}))},se={defaultColor:\"hsl(0, 0%, 0%)\",toHsva:M,fromHsva:q,equal:P},fe=function(r){return e.createElement(U,u({},r,{colorModel:se}))},ve={defaultColor:{h:0,s:0,v:0,a:1},toHsva:function(e){return e},fromHsva:A,equal:F},de=function(r){return e.createElement(re,u({},r,{colorModel:ve}))},he={defaultColor:\"hsva(0, 0%, 0%, 1)\",toHsva:O,fromHsva:function(e){var r=A(e);return\"hsva(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%, \"+r.a+\")\"},equal:P},me=function(r){return e.createElement(re,u({},r,{colorModel:he}))},ge={defaultColor:{h:0,s:0,v:0},toHsva:function(e){return{h:e.h,s:e.s,v:e.v,a:1}},fromHsva:function(e){var r=A(e);return{h:r.h,s:r.s,v:r.v}},equal:F},pe=function(r){return e.createElement(U,u({},r,{colorModel:ge}))},be={defaultColor:\"hsv(0, 0%, 0%)\",toHsva:j,fromHsva:function(e){var r=A(e);return\"hsv(\"+r.h+\", \"+r.s+\"%, \"+r.v+\"%)\"},equal:P},_e=function(r){return e.createElement(U,u({},r,{colorModel:be}))},xe={defaultColor:{r:0,g:0,b:0,a:1},toHsva:L,fromHsva:I,equal:F},Ce=function(r){return e.createElement(re,u({},r,{colorModel:xe}))},Ee={defaultColor:\"rgba(0, 0, 0, 1)\",toHsva:z,fromHsva:function(e){var r=I(e);return\"rgba(\"+r.r+\", \"+r.g+\", \"+r.b+\", \"+r.a+\")\"},equal:P},He=function(r){return e.createElement(re,u({},r,{colorModel:Ee}))},Me={defaultColor:{r:0,g:0,b:0},toHsva:function(e){return L({r:e.r,g:e.g,b:e.b,a:1})},fromHsva:function(e){return{r:(r=I(e)).r,g:r.g,b:r.b};var r},equal:F},Ne=function(r){return e.createElement(U,u({},r,{colorModel:Me}))},we={defaultColor:\"rgb(0, 0, 0)\",toHsva:B,fromHsva:function(e){var r=I(e);return\"rgb(\"+r.r+\", \"+r.g+\", \"+r.b+\")\"},equal:P},ye=function(r){return e.createElement(U,u({},r,{colorModel:we}))},qe=/^#?([0-9A-F]{3,8})$/i,ke=function(r){var t=r.color,l=void 0===t?\"\":t,s=r.onChange,f=r.onBlur,v=r.escape,d=r.validate,h=r.format,m=r.process,g=c(r,[\"color\",\"onChange\",\"onBlur\",\"escape\",\"validate\",\"format\",\"process\"]),p=o(function(){return v(l)}),b=p[0],_=p[1],x=i(s),C=i(f),E=a(function(e){var r=v(e.target.value);_(r),d(r)&&x(m?m(r):r)},[v,m,d,x]),H=a(function(e){d(e.target.value)||_(v(l)),C(e)},[l,v,d,C]);return n(function(){_(v(l))},[l,v]),e.createElement(\"input\",u({},g,{value:h?h(b):b,spellCheck:\"false\",onChange:E,onBlur:H}))},Ie=function(e){return\"#\"+e},Oe=function(r){var t=r.prefixed,n=r.alpha,o=c(r,[\"prefixed\",\"alpha\"]),l=a(function(e){return e.replace(/([^0-9A-F]+)/gi,\"\").substring(0,n?8:6)},[n]),i=a(function(e){return function(e,r){var t=qe.exec(e),n=t?t[1].length:0;return 3===n||6===n||!!r&&4===n||!!r&&8===n}(e,n)},[n]);return e.createElement(ke,u({},o,{escape:l,format:t?Ie:void 0,process:Ie,validate:i}))};export{ne as HexAlphaColorPicker,Oe as HexColorInput,Z as HexColorPicker,ie as HslColorPicker,fe as HslStringColorPicker,ae as HslaColorPicker,ue as HslaStringColorPicker,pe as HsvColorPicker,_e as HsvStringColorPicker,de as HsvaColorPicker,me as HsvaStringColorPicker,Ne as RgbColorPicker,ye as RgbStringColorPicker,Ce as RgbaColorPicker,He as RgbaStringColorPicker,G as setNonce};\n//# sourceMappingURL=index.module.js.map\n","'use strict'\r\n\r\nmodule.exports = {\r\n\t\"aliceblue\": [240, 248, 255],\r\n\t\"antiquewhite\": [250, 235, 215],\r\n\t\"aqua\": [0, 255, 255],\r\n\t\"aquamarine\": [127, 255, 212],\r\n\t\"azure\": [240, 255, 255],\r\n\t\"beige\": [245, 245, 220],\r\n\t\"bisque\": [255, 228, 196],\r\n\t\"black\": [0, 0, 0],\r\n\t\"blanchedalmond\": [255, 235, 205],\r\n\t\"blue\": [0, 0, 255],\r\n\t\"blueviolet\": [138, 43, 226],\r\n\t\"brown\": [165, 42, 42],\r\n\t\"burlywood\": [222, 184, 135],\r\n\t\"cadetblue\": [95, 158, 160],\r\n\t\"chartreuse\": [127, 255, 0],\r\n\t\"chocolate\": [210, 105, 30],\r\n\t\"coral\": [255, 127, 80],\r\n\t\"cornflowerblue\": [100, 149, 237],\r\n\t\"cornsilk\": [255, 248, 220],\r\n\t\"crimson\": [220, 20, 60],\r\n\t\"cyan\": [0, 255, 255],\r\n\t\"darkblue\": [0, 0, 139],\r\n\t\"darkcyan\": [0, 139, 139],\r\n\t\"darkgoldenrod\": [184, 134, 11],\r\n\t\"darkgray\": [169, 169, 169],\r\n\t\"darkgreen\": [0, 100, 0],\r\n\t\"darkgrey\": [169, 169, 169],\r\n\t\"darkkhaki\": [189, 183, 107],\r\n\t\"darkmagenta\": [139, 0, 139],\r\n\t\"darkolivegreen\": [85, 107, 47],\r\n\t\"darkorange\": [255, 140, 0],\r\n\t\"darkorchid\": [153, 50, 204],\r\n\t\"darkred\": [139, 0, 0],\r\n\t\"darksalmon\": [233, 150, 122],\r\n\t\"darkseagreen\": [143, 188, 143],\r\n\t\"darkslateblue\": [72, 61, 139],\r\n\t\"darkslategray\": [47, 79, 79],\r\n\t\"darkslategrey\": [47, 79, 79],\r\n\t\"darkturquoise\": [0, 206, 209],\r\n\t\"darkviolet\": [148, 0, 211],\r\n\t\"deeppink\": [255, 20, 147],\r\n\t\"deepskyblue\": [0, 191, 255],\r\n\t\"dimgray\": [105, 105, 105],\r\n\t\"dimgrey\": [105, 105, 105],\r\n\t\"dodgerblue\": [30, 144, 255],\r\n\t\"firebrick\": [178, 34, 34],\r\n\t\"floralwhite\": [255, 250, 240],\r\n\t\"forestgreen\": [34, 139, 34],\r\n\t\"fuchsia\": [255, 0, 255],\r\n\t\"gainsboro\": [220, 220, 220],\r\n\t\"ghostwhite\": [248, 248, 255],\r\n\t\"gold\": [255, 215, 0],\r\n\t\"goldenrod\": [218, 165, 32],\r\n\t\"gray\": [128, 128, 128],\r\n\t\"green\": [0, 128, 0],\r\n\t\"greenyellow\": [173, 255, 47],\r\n\t\"grey\": [128, 128, 128],\r\n\t\"honeydew\": [240, 255, 240],\r\n\t\"hotpink\": [255, 105, 180],\r\n\t\"indianred\": [205, 92, 92],\r\n\t\"indigo\": [75, 0, 130],\r\n\t\"ivory\": [255, 255, 240],\r\n\t\"khaki\": [240, 230, 140],\r\n\t\"lavender\": [230, 230, 250],\r\n\t\"lavenderblush\": [255, 240, 245],\r\n\t\"lawngreen\": [124, 252, 0],\r\n\t\"lemonchiffon\": [255, 250, 205],\r\n\t\"lightblue\": [173, 216, 230],\r\n\t\"lightcoral\": [240, 128, 128],\r\n\t\"lightcyan\": [224, 255, 255],\r\n\t\"lightgoldenrodyellow\": [250, 250, 210],\r\n\t\"lightgray\": [211, 211, 211],\r\n\t\"lightgreen\": [144, 238, 144],\r\n\t\"lightgrey\": [211, 211, 211],\r\n\t\"lightpink\": [255, 182, 193],\r\n\t\"lightsalmon\": [255, 160, 122],\r\n\t\"lightseagreen\": [32, 178, 170],\r\n\t\"lightskyblue\": [135, 206, 250],\r\n\t\"lightslategray\": [119, 136, 153],\r\n\t\"lightslategrey\": [119, 136, 153],\r\n\t\"lightsteelblue\": [176, 196, 222],\r\n\t\"lightyellow\": [255, 255, 224],\r\n\t\"lime\": [0, 255, 0],\r\n\t\"limegreen\": [50, 205, 50],\r\n\t\"linen\": [250, 240, 230],\r\n\t\"magenta\": [255, 0, 255],\r\n\t\"maroon\": [128, 0, 0],\r\n\t\"mediumaquamarine\": [102, 205, 170],\r\n\t\"mediumblue\": [0, 0, 205],\r\n\t\"mediumorchid\": [186, 85, 211],\r\n\t\"mediumpurple\": [147, 112, 219],\r\n\t\"mediumseagreen\": [60, 179, 113],\r\n\t\"mediumslateblue\": [123, 104, 238],\r\n\t\"mediumspringgreen\": [0, 250, 154],\r\n\t\"mediumturquoise\": [72, 209, 204],\r\n\t\"mediumvioletred\": [199, 21, 133],\r\n\t\"midnightblue\": [25, 25, 112],\r\n\t\"mintcream\": [245, 255, 250],\r\n\t\"mistyrose\": [255, 228, 225],\r\n\t\"moccasin\": [255, 228, 181],\r\n\t\"navajowhite\": [255, 222, 173],\r\n\t\"navy\": [0, 0, 128],\r\n\t\"oldlace\": [253, 245, 230],\r\n\t\"olive\": [128, 128, 0],\r\n\t\"olivedrab\": [107, 142, 35],\r\n\t\"orange\": [255, 165, 0],\r\n\t\"orangered\": [255, 69, 0],\r\n\t\"orchid\": [218, 112, 214],\r\n\t\"palegoldenrod\": [238, 232, 170],\r\n\t\"palegreen\": [152, 251, 152],\r\n\t\"paleturquoise\": [175, 238, 238],\r\n\t\"palevioletred\": [219, 112, 147],\r\n\t\"papayawhip\": [255, 239, 213],\r\n\t\"peachpuff\": [255, 218, 185],\r\n\t\"peru\": [205, 133, 63],\r\n\t\"pink\": [255, 192, 203],\r\n\t\"plum\": [221, 160, 221],\r\n\t\"powderblue\": [176, 224, 230],\r\n\t\"purple\": [128, 0, 128],\r\n\t\"rebeccapurple\": [102, 51, 153],\r\n\t\"red\": [255, 0, 0],\r\n\t\"rosybrown\": [188, 143, 143],\r\n\t\"royalblue\": [65, 105, 225],\r\n\t\"saddlebrown\": [139, 69, 19],\r\n\t\"salmon\": [250, 128, 114],\r\n\t\"sandybrown\": [244, 164, 96],\r\n\t\"seagreen\": [46, 139, 87],\r\n\t\"seashell\": [255, 245, 238],\r\n\t\"sienna\": [160, 82, 45],\r\n\t\"silver\": [192, 192, 192],\r\n\t\"skyblue\": [135, 206, 235],\r\n\t\"slateblue\": [106, 90, 205],\r\n\t\"slategray\": [112, 128, 144],\r\n\t\"slategrey\": [112, 128, 144],\r\n\t\"snow\": [255, 250, 250],\r\n\t\"springgreen\": [0, 255, 127],\r\n\t\"steelblue\": [70, 130, 180],\r\n\t\"tan\": [210, 180, 140],\r\n\t\"teal\": [0, 128, 128],\r\n\t\"thistle\": [216, 191, 216],\r\n\t\"tomato\": [255, 99, 71],\r\n\t\"turquoise\": [64, 224, 208],\r\n\t\"violet\": [238, 130, 238],\r\n\t\"wheat\": [245, 222, 179],\r\n\t\"white\": [255, 255, 255],\r\n\t\"whitesmoke\": [245, 245, 245],\r\n\t\"yellow\": [255, 255, 0],\r\n\t\"yellowgreen\": [154, 205, 50]\r\n};\r\n","/* MIT license */\n/* eslint-disable no-mixed-operators */\nconst cssKeywords = require('color-name');\n\n// NOTE: conversions should only return primitive values (i.e. arrays, or\n// values that give correct `typeof` results).\n// do not use box values types (i.e. Number(), String(), etc.)\n\nconst reverseKeywords = {};\nfor (const key of Object.keys(cssKeywords)) {\n\treverseKeywords[cssKeywords[key]] = key;\n}\n\nconst convert = {\n\trgb: {channels: 3, labels: 'rgb'},\n\thsl: {channels: 3, labels: 'hsl'},\n\thsv: {channels: 3, labels: 'hsv'},\n\thwb: {channels: 3, labels: 'hwb'},\n\tcmyk: {channels: 4, labels: 'cmyk'},\n\txyz: {channels: 3, labels: 'xyz'},\n\tlab: {channels: 3, labels: 'lab'},\n\tlch: {channels: 3, labels: 'lch'},\n\thex: {channels: 1, labels: ['hex']},\n\tkeyword: {channels: 1, labels: ['keyword']},\n\tansi16: {channels: 1, labels: ['ansi16']},\n\tansi256: {channels: 1, labels: ['ansi256']},\n\thcg: {channels: 3, labels: ['h', 'c', 'g']},\n\tapple: {channels: 3, labels: ['r16', 'g16', 'b16']},\n\tgray: {channels: 1, labels: ['gray']}\n};\n\nmodule.exports = convert;\n\n// Hide .channels and .labels properties\nfor (const model of Object.keys(convert)) {\n\tif (!('channels' in convert[model])) {\n\t\tthrow new Error('missing channels property: ' + model);\n\t}\n\n\tif (!('labels' in convert[model])) {\n\t\tthrow new Error('missing channel labels property: ' + model);\n\t}\n\n\tif (convert[model].labels.length !== convert[model].channels) {\n\t\tthrow new Error('channel and label counts mismatch: ' + model);\n\t}\n\n\tconst {channels, labels} = convert[model];\n\tdelete convert[model].channels;\n\tdelete convert[model].labels;\n\tObject.defineProperty(convert[model], 'channels', {value: channels});\n\tObject.defineProperty(convert[model], 'labels', {value: labels});\n}\n\nconvert.rgb.hsl = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst min = Math.min(r, g, b);\n\tconst max = Math.max(r, g, b);\n\tconst delta = max - min;\n\tlet h;\n\tlet s;\n\n\tif (max === min) {\n\t\th = 0;\n\t} else if (r === max) {\n\t\th = (g - b) / delta;\n\t} else if (g === max) {\n\t\th = 2 + (b - r) / delta;\n\t} else if (b === max) {\n\t\th = 4 + (r - g) / delta;\n\t}\n\n\th = Math.min(h * 60, 360);\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst l = (min + max) / 2;\n\n\tif (max === min) {\n\t\ts = 0;\n\t} else if (l <= 0.5) {\n\t\ts = delta / (max + min);\n\t} else {\n\t\ts = delta / (2 - max - min);\n\t}\n\n\treturn [h, s * 100, l * 100];\n};\n\nconvert.rgb.hsv = function (rgb) {\n\tlet rdif;\n\tlet gdif;\n\tlet bdif;\n\tlet h;\n\tlet s;\n\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst v = Math.max(r, g, b);\n\tconst diff = v - Math.min(r, g, b);\n\tconst diffc = function (c) {\n\t\treturn (v - c) / 6 / diff + 1 / 2;\n\t};\n\n\tif (diff === 0) {\n\t\th = 0;\n\t\ts = 0;\n\t} else {\n\t\ts = diff / v;\n\t\trdif = diffc(r);\n\t\tgdif = diffc(g);\n\t\tbdif = diffc(b);\n\n\t\tif (r === v) {\n\t\t\th = bdif - gdif;\n\t\t} else if (g === v) {\n\t\t\th = (1 / 3) + rdif - bdif;\n\t\t} else if (b === v) {\n\t\t\th = (2 / 3) + gdif - rdif;\n\t\t}\n\n\t\tif (h < 0) {\n\t\t\th += 1;\n\t\t} else if (h > 1) {\n\t\t\th -= 1;\n\t\t}\n\t}\n\n\treturn [\n\t\th * 360,\n\t\ts * 100,\n\t\tv * 100\n\t];\n};\n\nconvert.rgb.hwb = function (rgb) {\n\tconst r = rgb[0];\n\tconst g = rgb[1];\n\tlet b = rgb[2];\n\tconst h = convert.rgb.hsl(rgb)[0];\n\tconst w = 1 / 255 * Math.min(r, Math.min(g, b));\n\n\tb = 1 - 1 / 255 * Math.max(r, Math.max(g, b));\n\n\treturn [h, w * 100, b * 100];\n};\n\nconvert.rgb.cmyk = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\n\tconst k = Math.min(1 - r, 1 - g, 1 - b);\n\tconst c = (1 - r - k) / (1 - k) || 0;\n\tconst m = (1 - g - k) / (1 - k) || 0;\n\tconst y = (1 - b - k) / (1 - k) || 0;\n\n\treturn [c * 100, m * 100, y * 100, k * 100];\n};\n\nfunction comparativeDistance(x, y) {\n\t/*\n\t\tSee https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance\n\t*/\n\treturn (\n\t\t((x[0] - y[0]) ** 2) +\n\t\t((x[1] - y[1]) ** 2) +\n\t\t((x[2] - y[2]) ** 2)\n\t);\n}\n\nconvert.rgb.keyword = function (rgb) {\n\tconst reversed = reverseKeywords[rgb];\n\tif (reversed) {\n\t\treturn reversed;\n\t}\n\n\tlet currentClosestDistance = Infinity;\n\tlet currentClosestKeyword;\n\n\tfor (const keyword of Object.keys(cssKeywords)) {\n\t\tconst value = cssKeywords[keyword];\n\n\t\t// Compute comparative distance\n\t\tconst distance = comparativeDistance(rgb, value);\n\n\t\t// Check if its less, if so set as closest\n\t\tif (distance < currentClosestDistance) {\n\t\t\tcurrentClosestDistance = distance;\n\t\t\tcurrentClosestKeyword = keyword;\n\t\t}\n\t}\n\n\treturn currentClosestKeyword;\n};\n\nconvert.keyword.rgb = function (keyword) {\n\treturn cssKeywords[keyword];\n};\n\nconvert.rgb.xyz = function (rgb) {\n\tlet r = rgb[0] / 255;\n\tlet g = rgb[1] / 255;\n\tlet b = rgb[2] / 255;\n\n\t// Assume sRGB\n\tr = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);\n\tg = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);\n\tb = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);\n\n\tconst x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);\n\tconst y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);\n\tconst z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);\n\n\treturn [x * 100, y * 100, z * 100];\n};\n\nconvert.rgb.lab = function (rgb) {\n\tconst xyz = convert.rgb.xyz(rgb);\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.hsl.rgb = function (hsl) {\n\tconst h = hsl[0] / 360;\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\tlet t2;\n\tlet t3;\n\tlet val;\n\n\tif (s === 0) {\n\t\tval = l * 255;\n\t\treturn [val, val, val];\n\t}\n\n\tif (l < 0.5) {\n\t\tt2 = l * (1 + s);\n\t} else {\n\t\tt2 = l + s - l * s;\n\t}\n\n\tconst t1 = 2 * l - t2;\n\n\tconst rgb = [0, 0, 0];\n\tfor (let i = 0; i < 3; i++) {\n\t\tt3 = h + 1 / 3 * -(i - 1);\n\t\tif (t3 < 0) {\n\t\t\tt3++;\n\t\t}\n\n\t\tif (t3 > 1) {\n\t\t\tt3--;\n\t\t}\n\n\t\tif (6 * t3 < 1) {\n\t\t\tval = t1 + (t2 - t1) * 6 * t3;\n\t\t} else if (2 * t3 < 1) {\n\t\t\tval = t2;\n\t\t} else if (3 * t3 < 2) {\n\t\t\tval = t1 + (t2 - t1) * (2 / 3 - t3) * 6;\n\t\t} else {\n\t\t\tval = t1;\n\t\t}\n\n\t\trgb[i] = val * 255;\n\t}\n\n\treturn rgb;\n};\n\nconvert.hsl.hsv = function (hsl) {\n\tconst h = hsl[0];\n\tlet s = hsl[1] / 100;\n\tlet l = hsl[2] / 100;\n\tlet smin = s;\n\tconst lmin = Math.max(l, 0.01);\n\n\tl *= 2;\n\ts *= (l <= 1) ? l : 2 - l;\n\tsmin *= lmin <= 1 ? lmin : 2 - lmin;\n\tconst v = (l + s) / 2;\n\tconst sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);\n\n\treturn [h, sv * 100, v * 100];\n};\n\nconvert.hsv.rgb = function (hsv) {\n\tconst h = hsv[0] / 60;\n\tconst s = hsv[1] / 100;\n\tlet v = hsv[2] / 100;\n\tconst hi = Math.floor(h) % 6;\n\n\tconst f = h - Math.floor(h);\n\tconst p = 255 * v * (1 - s);\n\tconst q = 255 * v * (1 - (s * f));\n\tconst t = 255 * v * (1 - (s * (1 - f)));\n\tv *= 255;\n\n\tswitch (hi) {\n\t\tcase 0:\n\t\t\treturn [v, t, p];\n\t\tcase 1:\n\t\t\treturn [q, v, p];\n\t\tcase 2:\n\t\t\treturn [p, v, t];\n\t\tcase 3:\n\t\t\treturn [p, q, v];\n\t\tcase 4:\n\t\t\treturn [t, p, v];\n\t\tcase 5:\n\t\t\treturn [v, p, q];\n\t}\n};\n\nconvert.hsv.hsl = function (hsv) {\n\tconst h = hsv[0];\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\tconst vmin = Math.max(v, 0.01);\n\tlet sl;\n\tlet l;\n\n\tl = (2 - s) * v;\n\tconst lmin = (2 - s) * vmin;\n\tsl = s * vmin;\n\tsl /= (lmin <= 1) ? lmin : 2 - lmin;\n\tsl = sl || 0;\n\tl /= 2;\n\n\treturn [h, sl * 100, l * 100];\n};\n\n// http://dev.w3.org/csswg/css-color/#hwb-to-rgb\nconvert.hwb.rgb = function (hwb) {\n\tconst h = hwb[0] / 360;\n\tlet wh = hwb[1] / 100;\n\tlet bl = hwb[2] / 100;\n\tconst ratio = wh + bl;\n\tlet f;\n\n\t// Wh + bl cant be > 1\n\tif (ratio > 1) {\n\t\twh /= ratio;\n\t\tbl /= ratio;\n\t}\n\n\tconst i = Math.floor(6 * h);\n\tconst v = 1 - bl;\n\tf = 6 * h - i;\n\n\tif ((i & 0x01) !== 0) {\n\t\tf = 1 - f;\n\t}\n\n\tconst n = wh + f * (v - wh); // Linear interpolation\n\n\tlet r;\n\tlet g;\n\tlet b;\n\t/* eslint-disable max-statements-per-line,no-multi-spaces */\n\tswitch (i) {\n\t\tdefault:\n\t\tcase 6:\n\t\tcase 0: r = v; g = n; b = wh; break;\n\t\tcase 1: r = n; g = v; b = wh; break;\n\t\tcase 2: r = wh; g = v; b = n; break;\n\t\tcase 3: r = wh; g = n; b = v; break;\n\t\tcase 4: r = n; g = wh; b = v; break;\n\t\tcase 5: r = v; g = wh; b = n; break;\n\t}\n\t/* eslint-enable max-statements-per-line,no-multi-spaces */\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.cmyk.rgb = function (cmyk) {\n\tconst c = cmyk[0] / 100;\n\tconst m = cmyk[1] / 100;\n\tconst y = cmyk[2] / 100;\n\tconst k = cmyk[3] / 100;\n\n\tconst r = 1 - Math.min(1, c * (1 - k) + k);\n\tconst g = 1 - Math.min(1, m * (1 - k) + k);\n\tconst b = 1 - Math.min(1, y * (1 - k) + k);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.rgb = function (xyz) {\n\tconst x = xyz[0] / 100;\n\tconst y = xyz[1] / 100;\n\tconst z = xyz[2] / 100;\n\tlet r;\n\tlet g;\n\tlet b;\n\n\tr = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);\n\tg = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);\n\tb = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);\n\n\t// Assume sRGB\n\tr = r > 0.0031308\n\t\t? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)\n\t\t: r * 12.92;\n\n\tg = g > 0.0031308\n\t\t? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)\n\t\t: g * 12.92;\n\n\tb = b > 0.0031308\n\t\t? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)\n\t\t: b * 12.92;\n\n\tr = Math.min(Math.max(0, r), 1);\n\tg = Math.min(Math.max(0, g), 1);\n\tb = Math.min(Math.max(0, b), 1);\n\n\treturn [r * 255, g * 255, b * 255];\n};\n\nconvert.xyz.lab = function (xyz) {\n\tlet x = xyz[0];\n\tlet y = xyz[1];\n\tlet z = xyz[2];\n\n\tx /= 95.047;\n\ty /= 100;\n\tz /= 108.883;\n\n\tx = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);\n\ty = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);\n\tz = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);\n\n\tconst l = (116 * y) - 16;\n\tconst a = 500 * (x - y);\n\tconst b = 200 * (y - z);\n\n\treturn [l, a, b];\n};\n\nconvert.lab.xyz = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet x;\n\tlet y;\n\tlet z;\n\n\ty = (l + 16) / 116;\n\tx = a / 500 + y;\n\tz = y - b / 200;\n\n\tconst y2 = y ** 3;\n\tconst x2 = x ** 3;\n\tconst z2 = z ** 3;\n\ty = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;\n\tx = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;\n\tz = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;\n\n\tx *= 95.047;\n\ty *= 100;\n\tz *= 108.883;\n\n\treturn [x, y, z];\n};\n\nconvert.lab.lch = function (lab) {\n\tconst l = lab[0];\n\tconst a = lab[1];\n\tconst b = lab[2];\n\tlet h;\n\n\tconst hr = Math.atan2(b, a);\n\th = hr * 360 / 2 / Math.PI;\n\n\tif (h < 0) {\n\t\th += 360;\n\t}\n\n\tconst c = Math.sqrt(a * a + b * b);\n\n\treturn [l, c, h];\n};\n\nconvert.lch.lab = function (lch) {\n\tconst l = lch[0];\n\tconst c = lch[1];\n\tconst h = lch[2];\n\n\tconst hr = h / 360 * 2 * Math.PI;\n\tconst a = c * Math.cos(hr);\n\tconst b = c * Math.sin(hr);\n\n\treturn [l, a, b];\n};\n\nconvert.rgb.ansi16 = function (args, saturation = null) {\n\tconst [r, g, b] = args;\n\tlet value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization\n\n\tvalue = Math.round(value / 50);\n\n\tif (value === 0) {\n\t\treturn 30;\n\t}\n\n\tlet ansi = 30\n\t\t+ ((Math.round(b / 255) << 2)\n\t\t| (Math.round(g / 255) << 1)\n\t\t| Math.round(r / 255));\n\n\tif (value === 2) {\n\t\tansi += 60;\n\t}\n\n\treturn ansi;\n};\n\nconvert.hsv.ansi16 = function (args) {\n\t// Optimization here; we already know the value and don't need to get\n\t// it converted for us.\n\treturn convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);\n};\n\nconvert.rgb.ansi256 = function (args) {\n\tconst r = args[0];\n\tconst g = args[1];\n\tconst b = args[2];\n\n\t// We use the extended greyscale palette here, with the exception of\n\t// black and white. normal palette only has 4 greyscale shades.\n\tif (r === g && g === b) {\n\t\tif (r < 8) {\n\t\t\treturn 16;\n\t\t}\n\n\t\tif (r > 248) {\n\t\t\treturn 231;\n\t\t}\n\n\t\treturn Math.round(((r - 8) / 247) * 24) + 232;\n\t}\n\n\tconst ansi = 16\n\t\t+ (36 * Math.round(r / 255 * 5))\n\t\t+ (6 * Math.round(g / 255 * 5))\n\t\t+ Math.round(b / 255 * 5);\n\n\treturn ansi;\n};\n\nconvert.ansi16.rgb = function (args) {\n\tlet color = args % 10;\n\n\t// Handle greyscale\n\tif (color === 0 || color === 7) {\n\t\tif (args > 50) {\n\t\t\tcolor += 3.5;\n\t\t}\n\n\t\tcolor = color / 10.5 * 255;\n\n\t\treturn [color, color, color];\n\t}\n\n\tconst mult = (~~(args > 50) + 1) * 0.5;\n\tconst r = ((color & 1) * mult) * 255;\n\tconst g = (((color >> 1) & 1) * mult) * 255;\n\tconst b = (((color >> 2) & 1) * mult) * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.ansi256.rgb = function (args) {\n\t// Handle greyscale\n\tif (args >= 232) {\n\t\tconst c = (args - 232) * 10 + 8;\n\t\treturn [c, c, c];\n\t}\n\n\targs -= 16;\n\n\tlet rem;\n\tconst r = Math.floor(args / 36) / 5 * 255;\n\tconst g = Math.floor((rem = args % 36) / 6) / 5 * 255;\n\tconst b = (rem % 6) / 5 * 255;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hex = function (args) {\n\tconst integer = ((Math.round(args[0]) & 0xFF) << 16)\n\t\t+ ((Math.round(args[1]) & 0xFF) << 8)\n\t\t+ (Math.round(args[2]) & 0xFF);\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.hex.rgb = function (args) {\n\tconst match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);\n\tif (!match) {\n\t\treturn [0, 0, 0];\n\t}\n\n\tlet colorString = match[0];\n\n\tif (match[0].length === 3) {\n\t\tcolorString = colorString.split('').map(char => {\n\t\t\treturn char + char;\n\t\t}).join('');\n\t}\n\n\tconst integer = parseInt(colorString, 16);\n\tconst r = (integer >> 16) & 0xFF;\n\tconst g = (integer >> 8) & 0xFF;\n\tconst b = integer & 0xFF;\n\n\treturn [r, g, b];\n};\n\nconvert.rgb.hcg = function (rgb) {\n\tconst r = rgb[0] / 255;\n\tconst g = rgb[1] / 255;\n\tconst b = rgb[2] / 255;\n\tconst max = Math.max(Math.max(r, g), b);\n\tconst min = Math.min(Math.min(r, g), b);\n\tconst chroma = (max - min);\n\tlet grayscale;\n\tlet hue;\n\n\tif (chroma < 1) {\n\t\tgrayscale = min / (1 - chroma);\n\t} else {\n\t\tgrayscale = 0;\n\t}\n\n\tif (chroma <= 0) {\n\t\thue = 0;\n\t} else\n\tif (max === r) {\n\t\thue = ((g - b) / chroma) % 6;\n\t} else\n\tif (max === g) {\n\t\thue = 2 + (b - r) / chroma;\n\t} else {\n\t\thue = 4 + (r - g) / chroma;\n\t}\n\n\thue /= 6;\n\thue %= 1;\n\n\treturn [hue * 360, chroma * 100, grayscale * 100];\n};\n\nconvert.hsl.hcg = function (hsl) {\n\tconst s = hsl[1] / 100;\n\tconst l = hsl[2] / 100;\n\n\tconst c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));\n\n\tlet f = 0;\n\tif (c < 1.0) {\n\t\tf = (l - 0.5 * c) / (1.0 - c);\n\t}\n\n\treturn [hsl[0], c * 100, f * 100];\n};\n\nconvert.hsv.hcg = function (hsv) {\n\tconst s = hsv[1] / 100;\n\tconst v = hsv[2] / 100;\n\n\tconst c = s * v;\n\tlet f = 0;\n\n\tif (c < 1.0) {\n\t\tf = (v - c) / (1 - c);\n\t}\n\n\treturn [hsv[0], c * 100, f * 100];\n};\n\nconvert.hcg.rgb = function (hcg) {\n\tconst h = hcg[0] / 360;\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tif (c === 0.0) {\n\t\treturn [g * 255, g * 255, g * 255];\n\t}\n\n\tconst pure = [0, 0, 0];\n\tconst hi = (h % 1) * 6;\n\tconst v = hi % 1;\n\tconst w = 1 - v;\n\tlet mg = 0;\n\n\t/* eslint-disable max-statements-per-line */\n\tswitch (Math.floor(hi)) {\n\t\tcase 0:\n\t\t\tpure[0] = 1; pure[1] = v; pure[2] = 0; break;\n\t\tcase 1:\n\t\t\tpure[0] = w; pure[1] = 1; pure[2] = 0; break;\n\t\tcase 2:\n\t\t\tpure[0] = 0; pure[1] = 1; pure[2] = v; break;\n\t\tcase 3:\n\t\t\tpure[0] = 0; pure[1] = w; pure[2] = 1; break;\n\t\tcase 4:\n\t\t\tpure[0] = v; pure[1] = 0; pure[2] = 1; break;\n\t\tdefault:\n\t\t\tpure[0] = 1; pure[1] = 0; pure[2] = w;\n\t}\n\t/* eslint-enable max-statements-per-line */\n\n\tmg = (1.0 - c) * g;\n\n\treturn [\n\t\t(c * pure[0] + mg) * 255,\n\t\t(c * pure[1] + mg) * 255,\n\t\t(c * pure[2] + mg) * 255\n\t];\n};\n\nconvert.hcg.hsv = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst v = c + g * (1.0 - c);\n\tlet f = 0;\n\n\tif (v > 0.0) {\n\t\tf = c / v;\n\t}\n\n\treturn [hcg[0], f * 100, v * 100];\n};\n\nconvert.hcg.hsl = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\n\tconst l = g * (1.0 - c) + 0.5 * c;\n\tlet s = 0;\n\n\tif (l > 0.0 && l < 0.5) {\n\t\ts = c / (2 * l);\n\t} else\n\tif (l >= 0.5 && l < 1.0) {\n\t\ts = c / (2 * (1 - l));\n\t}\n\n\treturn [hcg[0], s * 100, l * 100];\n};\n\nconvert.hcg.hwb = function (hcg) {\n\tconst c = hcg[1] / 100;\n\tconst g = hcg[2] / 100;\n\tconst v = c + g * (1.0 - c);\n\treturn [hcg[0], (v - c) * 100, (1 - v) * 100];\n};\n\nconvert.hwb.hcg = function (hwb) {\n\tconst w = hwb[1] / 100;\n\tconst b = hwb[2] / 100;\n\tconst v = 1 - b;\n\tconst c = v - w;\n\tlet g = 0;\n\n\tif (c < 1) {\n\t\tg = (v - c) / (1 - c);\n\t}\n\n\treturn [hwb[0], c * 100, g * 100];\n};\n\nconvert.apple.rgb = function (apple) {\n\treturn [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];\n};\n\nconvert.rgb.apple = function (rgb) {\n\treturn [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];\n};\n\nconvert.gray.rgb = function (args) {\n\treturn [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];\n};\n\nconvert.gray.hsl = function (args) {\n\treturn [0, 0, args[0]];\n};\n\nconvert.gray.hsv = convert.gray.hsl;\n\nconvert.gray.hwb = function (gray) {\n\treturn [0, 100, gray[0]];\n};\n\nconvert.gray.cmyk = function (gray) {\n\treturn [0, 0, 0, gray[0]];\n};\n\nconvert.gray.lab = function (gray) {\n\treturn [gray[0], 0, 0];\n};\n\nconvert.gray.hex = function (gray) {\n\tconst val = Math.round(gray[0] / 100 * 255) & 0xFF;\n\tconst integer = (val << 16) + (val << 8) + val;\n\n\tconst string = integer.toString(16).toUpperCase();\n\treturn '000000'.substring(string.length) + string;\n};\n\nconvert.rgb.gray = function (rgb) {\n\tconst val = (rgb[0] + rgb[1] + rgb[2]) / 3;\n\treturn [val / 255 * 100];\n};\n","const conversions = require('./conversions');\n\n/*\n\tThis function routes a model to all other models.\n\n\tall functions that are routed have a property `.conversion` attached\n\tto the returned synthetic function. This property is an array\n\tof strings, each with the steps in between the 'from' and 'to'\n\tcolor models (inclusive).\n\n\tconversions that are not possible simply are not included.\n*/\n\nfunction buildGraph() {\n\tconst graph = {};\n\t// https://jsperf.com/object-keys-vs-for-in-with-closure/3\n\tconst models = Object.keys(conversions);\n\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tgraph[models[i]] = {\n\t\t\t// http://jsperf.com/1-vs-infinity\n\t\t\t// micro-opt, but this is simple.\n\t\t\tdistance: -1,\n\t\t\tparent: null\n\t\t};\n\t}\n\n\treturn graph;\n}\n\n// https://en.wikipedia.org/wiki/Breadth-first_search\nfunction deriveBFS(fromModel) {\n\tconst graph = buildGraph();\n\tconst queue = [fromModel]; // Unshift -> queue -> pop\n\n\tgraph[fromModel].distance = 0;\n\n\twhile (queue.length) {\n\t\tconst current = queue.pop();\n\t\tconst adjacents = Object.keys(conversions[current]);\n\n\t\tfor (let len = adjacents.length, i = 0; i < len; i++) {\n\t\t\tconst adjacent = adjacents[i];\n\t\t\tconst node = graph[adjacent];\n\n\t\t\tif (node.distance === -1) {\n\t\t\t\tnode.distance = graph[current].distance + 1;\n\t\t\t\tnode.parent = current;\n\t\t\t\tqueue.unshift(adjacent);\n\t\t\t}\n\t\t}\n\t}\n\n\treturn graph;\n}\n\nfunction link(from, to) {\n\treturn function (args) {\n\t\treturn to(from(args));\n\t};\n}\n\nfunction wrapConversion(toModel, graph) {\n\tconst path = [graph[toModel].parent, toModel];\n\tlet fn = conversions[graph[toModel].parent][toModel];\n\n\tlet cur = graph[toModel].parent;\n\twhile (graph[cur].parent) {\n\t\tpath.unshift(graph[cur].parent);\n\t\tfn = link(conversions[graph[cur].parent][cur], fn);\n\t\tcur = graph[cur].parent;\n\t}\n\n\tfn.conversion = path;\n\treturn fn;\n}\n\nmodule.exports = function (fromModel) {\n\tconst graph = deriveBFS(fromModel);\n\tconst conversion = {};\n\n\tconst models = Object.keys(graph);\n\tfor (let len = models.length, i = 0; i < len; i++) {\n\t\tconst toModel = models[i];\n\t\tconst node = graph[toModel];\n\n\t\tif (node.parent === null) {\n\t\t\t// No possible conversion, or this node is the source model.\n\t\t\tcontinue;\n\t\t}\n\n\t\tconversion[toModel] = wrapConversion(toModel, graph);\n\t}\n\n\treturn conversion;\n};\n\n","const conversions = require('./conversions');\nconst route = require('./route');\n\nconst convert = {};\n\nconst models = Object.keys(conversions);\n\nfunction wrapRaw(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\treturn fn(args);\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nfunction wrapRounded(fn) {\n\tconst wrappedFn = function (...args) {\n\t\tconst arg0 = args[0];\n\n\t\tif (arg0 === undefined || arg0 === null) {\n\t\t\treturn arg0;\n\t\t}\n\n\t\tif (arg0.length > 1) {\n\t\t\targs = arg0;\n\t\t}\n\n\t\tconst result = fn(args);\n\n\t\t// We're assuming the result is an array here.\n\t\t// see notice in conversions.js; don't use box types\n\t\t// in conversion functions.\n\t\tif (typeof result === 'object') {\n\t\t\tfor (let len = result.length, i = 0; i < len; i++) {\n\t\t\t\tresult[i] = Math.round(result[i]);\n\t\t\t}\n\t\t}\n\n\t\treturn result;\n\t};\n\n\t// Preserve .conversion property if there is one\n\tif ('conversion' in fn) {\n\t\twrappedFn.conversion = fn.conversion;\n\t}\n\n\treturn wrappedFn;\n}\n\nmodels.forEach(fromModel => {\n\tconvert[fromModel] = {};\n\n\tObject.defineProperty(convert[fromModel], 'channels', {value: conversions[fromModel].channels});\n\tObject.defineProperty(convert[fromModel], 'labels', {value: conversions[fromModel].labels});\n\n\tconst routes = route(fromModel);\n\tconst routeModels = Object.keys(routes);\n\n\trouteModels.forEach(toModel => {\n\t\tconst fn = routes[toModel];\n\n\t\tconvert[fromModel][toModel] = wrapRounded(fn);\n\t\tconvert[fromModel][toModel].raw = wrapRaw(fn);\n\t});\n});\n\nmodule.exports = convert;\n","var root = require('./_root');\n\n/**\n * Gets the timestamp of the number of milliseconds that have elapsed since\n * the Unix epoch (1 January 1970 00:00:00 UTC).\n *\n * @static\n * @memberOf _\n * @since 2.4.0\n * @category Date\n * @returns {number} Returns the timestamp.\n * @example\n *\n * _.defer(function(stamp) {\n * console.log(_.now() - stamp);\n * }, _.now());\n * // => Logs the number of milliseconds it took for the deferred invocation.\n */\nvar now = function() {\n return root.Date.now();\n};\n\nmodule.exports = now;\n","/** Used to match a single whitespace character. */\nvar reWhitespace = /\\s/;\n\n/**\n * Used by `_.trim` and `_.trimEnd` to get the index of the last non-whitespace\n * character of `string`.\n *\n * @private\n * @param {string} string The string to inspect.\n * @returns {number} Returns the index of the last non-whitespace character.\n */\nfunction trimmedEndIndex(string) {\n var index = string.length;\n\n while (index-- && reWhitespace.test(string.charAt(index))) {}\n return index;\n}\n\nmodule.exports = trimmedEndIndex;\n","var trimmedEndIndex = require('./_trimmedEndIndex');\n\n/** Used to match leading whitespace. */\nvar reTrimStart = /^\\s+/;\n\n/**\n * The base implementation of `_.trim`.\n *\n * @private\n * @param {string} string The string to trim.\n * @returns {string} Returns the trimmed string.\n */\nfunction baseTrim(string) {\n return string\n ? string.slice(0, trimmedEndIndex(string) + 1).replace(reTrimStart, '')\n : string;\n}\n\nmodule.exports = baseTrim;\n","var baseTrim = require('./_baseTrim'),\n isObject = require('./isObject'),\n isSymbol = require('./isSymbol');\n\n/** Used as references for various `Number` constants. */\nvar NAN = 0 / 0;\n\n/** Used to detect bad signed hexadecimal string values. */\nvar reIsBadHex = /^[-+]0x[0-9a-f]+$/i;\n\n/** Used to detect binary string values. */\nvar reIsBinary = /^0b[01]+$/i;\n\n/** Used to detect octal string values. */\nvar reIsOctal = /^0o[0-7]+$/i;\n\n/** Built-in method references without a dependency on `root`. */\nvar freeParseInt = parseInt;\n\n/**\n * Converts `value` to a number.\n *\n * @static\n * @memberOf _\n * @since 4.0.0\n * @category Lang\n * @param {*} value The value to process.\n * @returns {number} Returns the number.\n * @example\n *\n * _.toNumber(3.2);\n * // => 3.2\n *\n * _.toNumber(Number.MIN_VALUE);\n * // => 5e-324\n *\n * _.toNumber(Infinity);\n * // => Infinity\n *\n * _.toNumber('3.2');\n * // => 3.2\n */\nfunction toNumber(value) {\n if (typeof value == 'number') {\n return value;\n }\n if (isSymbol(value)) {\n return NAN;\n }\n if (isObject(value)) {\n var other = typeof value.valueOf == 'function' ? value.valueOf() : value;\n value = isObject(other) ? (other + '') : other;\n }\n if (typeof value != 'string') {\n return value === 0 ? value : +value;\n }\n value = baseTrim(value);\n var isBinary = reIsBinary.test(value);\n return (isBinary || reIsOctal.test(value))\n ? freeParseInt(value.slice(2), isBinary ? 2 : 8)\n : (reIsBadHex.test(value) ? NAN : +value);\n}\n\nmodule.exports = toNumber;\n","var isObject = require('./isObject'),\n now = require('./now'),\n toNumber = require('./toNumber');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/* Built-in method references for those with the same name as other `lodash` methods. */\nvar nativeMax = Math.max,\n nativeMin = Math.min;\n\n/**\n * Creates a debounced function that delays invoking `func` until after `wait`\n * milliseconds have elapsed since the last time the debounced function was\n * invoked. The debounced function comes with a `cancel` method to cancel\n * delayed `func` invocations and a `flush` method to immediately invoke them.\n * Provide `options` to indicate whether `func` should be invoked on the\n * leading and/or trailing edge of the `wait` timeout. The `func` is invoked\n * with the last arguments provided to the debounced function. Subsequent\n * calls to the debounced function return the result of the last `func`\n * invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the debounced function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.debounce` and `_.throttle`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to debounce.\n * @param {number} [wait=0] The number of milliseconds to delay.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=false]\n * Specify invoking on the leading edge of the timeout.\n * @param {number} [options.maxWait]\n * The maximum time `func` is allowed to be delayed before it's invoked.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new debounced function.\n * @example\n *\n * // Avoid costly calculations while the window size is in flux.\n * jQuery(window).on('resize', _.debounce(calculateLayout, 150));\n *\n * // Invoke `sendMail` when clicked, debouncing subsequent calls.\n * jQuery(element).on('click', _.debounce(sendMail, 300, {\n * 'leading': true,\n * 'trailing': false\n * }));\n *\n * // Ensure `batchLog` is invoked once after 1 second of debounced calls.\n * var debounced = _.debounce(batchLog, 250, { 'maxWait': 1000 });\n * var source = new EventSource('/stream');\n * jQuery(source).on('message', debounced);\n *\n * // Cancel the trailing debounced invocation.\n * jQuery(window).on('popstate', debounced.cancel);\n */\nfunction debounce(func, wait, options) {\n var lastArgs,\n lastThis,\n maxWait,\n result,\n timerId,\n lastCallTime,\n lastInvokeTime = 0,\n leading = false,\n maxing = false,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n wait = toNumber(wait) || 0;\n if (isObject(options)) {\n leading = !!options.leading;\n maxing = 'maxWait' in options;\n maxWait = maxing ? nativeMax(toNumber(options.maxWait) || 0, wait) : maxWait;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n\n function invokeFunc(time) {\n var args = lastArgs,\n thisArg = lastThis;\n\n lastArgs = lastThis = undefined;\n lastInvokeTime = time;\n result = func.apply(thisArg, args);\n return result;\n }\n\n function leadingEdge(time) {\n // Reset any `maxWait` timer.\n lastInvokeTime = time;\n // Start the timer for the trailing edge.\n timerId = setTimeout(timerExpired, wait);\n // Invoke the leading edge.\n return leading ? invokeFunc(time) : result;\n }\n\n function remainingWait(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime,\n timeWaiting = wait - timeSinceLastCall;\n\n return maxing\n ? nativeMin(timeWaiting, maxWait - timeSinceLastInvoke)\n : timeWaiting;\n }\n\n function shouldInvoke(time) {\n var timeSinceLastCall = time - lastCallTime,\n timeSinceLastInvoke = time - lastInvokeTime;\n\n // Either this is the first call, activity has stopped and we're at the\n // trailing edge, the system time has gone backwards and we're treating\n // it as the trailing edge, or we've hit the `maxWait` limit.\n return (lastCallTime === undefined || (timeSinceLastCall >= wait) ||\n (timeSinceLastCall < 0) || (maxing && timeSinceLastInvoke >= maxWait));\n }\n\n function timerExpired() {\n var time = now();\n if (shouldInvoke(time)) {\n return trailingEdge(time);\n }\n // Restart the timer.\n timerId = setTimeout(timerExpired, remainingWait(time));\n }\n\n function trailingEdge(time) {\n timerId = undefined;\n\n // Only invoke if we have `lastArgs` which means `func` has been\n // debounced at least once.\n if (trailing && lastArgs) {\n return invokeFunc(time);\n }\n lastArgs = lastThis = undefined;\n return result;\n }\n\n function cancel() {\n if (timerId !== undefined) {\n clearTimeout(timerId);\n }\n lastInvokeTime = 0;\n lastArgs = lastCallTime = lastThis = timerId = undefined;\n }\n\n function flush() {\n return timerId === undefined ? result : trailingEdge(now());\n }\n\n function debounced() {\n var time = now(),\n isInvoking = shouldInvoke(time);\n\n lastArgs = arguments;\n lastThis = this;\n lastCallTime = time;\n\n if (isInvoking) {\n if (timerId === undefined) {\n return leadingEdge(lastCallTime);\n }\n if (maxing) {\n // Handle invocations in a tight loop.\n clearTimeout(timerId);\n timerId = setTimeout(timerExpired, wait);\n return invokeFunc(lastCallTime);\n }\n }\n if (timerId === undefined) {\n timerId = setTimeout(timerExpired, wait);\n }\n return result;\n }\n debounced.cancel = cancel;\n debounced.flush = flush;\n return debounced;\n}\n\nmodule.exports = debounce;\n","var debounce = require('./debounce'),\n isObject = require('./isObject');\n\n/** Error message constants. */\nvar FUNC_ERROR_TEXT = 'Expected a function';\n\n/**\n * Creates a throttled function that only invokes `func` at most once per\n * every `wait` milliseconds. The throttled function comes with a `cancel`\n * method to cancel delayed `func` invocations and a `flush` method to\n * immediately invoke them. Provide `options` to indicate whether `func`\n * should be invoked on the leading and/or trailing edge of the `wait`\n * timeout. The `func` is invoked with the last arguments provided to the\n * throttled function. Subsequent calls to the throttled function return the\n * result of the last `func` invocation.\n *\n * **Note:** If `leading` and `trailing` options are `true`, `func` is\n * invoked on the trailing edge of the timeout only if the throttled function\n * is invoked more than once during the `wait` timeout.\n *\n * If `wait` is `0` and `leading` is `false`, `func` invocation is deferred\n * until to the next tick, similar to `setTimeout` with a timeout of `0`.\n *\n * See [David Corbacho's article](https://css-tricks.com/debouncing-throttling-explained-examples/)\n * for details over the differences between `_.throttle` and `_.debounce`.\n *\n * @static\n * @memberOf _\n * @since 0.1.0\n * @category Function\n * @param {Function} func The function to throttle.\n * @param {number} [wait=0] The number of milliseconds to throttle invocations to.\n * @param {Object} [options={}] The options object.\n * @param {boolean} [options.leading=true]\n * Specify invoking on the leading edge of the timeout.\n * @param {boolean} [options.trailing=true]\n * Specify invoking on the trailing edge of the timeout.\n * @returns {Function} Returns the new throttled function.\n * @example\n *\n * // Avoid excessively updating the position while scrolling.\n * jQuery(window).on('scroll', _.throttle(updatePosition, 100));\n *\n * // Invoke `renewToken` when the click event is fired, but not more than once every 5 minutes.\n * var throttled = _.throttle(renewToken, 300000, { 'trailing': false });\n * jQuery(element).on('click', throttled);\n *\n * // Cancel the trailing throttled invocation.\n * jQuery(window).on('popstate', throttled.cancel);\n */\nfunction throttle(func, wait, options) {\n var leading = true,\n trailing = true;\n\n if (typeof func != 'function') {\n throw new TypeError(FUNC_ERROR_TEXT);\n }\n if (isObject(options)) {\n leading = 'leading' in options ? !!options.leading : leading;\n trailing = 'trailing' in options ? !!options.trailing : trailing;\n }\n return debounce(func, wait, {\n 'leading': leading,\n 'maxWait': wait,\n 'trailing': trailing\n });\n}\n\nmodule.exports = throttle;\n","import { getControlId } from './chunk-GWAJ4KRU.mjs';\nimport React, { useCallback, useState, useEffect, useMemo } from 'react';\nimport { HexColorPicker, RgbaStringColorPicker, HslaStringColorPicker } from 'react-colorful';\nimport convert from 'color-convert';\nimport throttle from 'lodash/throttle.js';\nimport { styled } from '@storybook/theming';\nimport { WithTooltip, TooltipNote, Form, Icons } from '@storybook/components';\n\nvar Wrapper=styled.div({position:\"relative\",maxWidth:250}),PickerTooltip=styled(WithTooltip)({position:\"absolute\",zIndex:1,top:4,left:4}),TooltipContent=styled.div({width:200,margin:5,\".react-colorful__saturation\":{borderRadius:\"4px 4px 0 0\"},\".react-colorful__hue\":{boxShadow:\"inset 0 0 0 1px rgb(0 0 0 / 5%)\"},\".react-colorful__last-control\":{borderRadius:\"0 0 4px 4px\"}}),Note=styled(TooltipNote)(({theme})=>({fontFamily:theme.typography.fonts.base})),Swatches=styled.div({display:\"grid\",gridTemplateColumns:\"repeat(9, 16px)\",gap:6,padding:3,marginTop:5,width:200}),SwatchColor=styled.div(({theme,active})=>({width:16,height:16,boxShadow:active?`${theme.appBorderColor} 0 0 0 1px inset, ${theme.textMutedColor}50 0 0 0 4px`:`${theme.appBorderColor} 0 0 0 1px inset`,borderRadius:theme.appBorderRadius})),swatchBackground=`url('data:image/svg+xml;charset=utf-8,')`,Swatch=({value,active,onClick,style,...props})=>{let backgroundImage=`linear-gradient(${value}, ${value}), ${swatchBackground}, linear-gradient(#fff, #fff)`;return React.createElement(SwatchColor,{...props,active,onClick,style:{...style,backgroundImage}})},Input=styled(Form.Input)(({theme})=>({width:\"100%\",paddingLeft:30,paddingRight:30,boxSizing:\"border-box\",fontFamily:theme.typography.fonts.base})),ToggleIcon=styled(Icons)(({theme})=>({position:\"absolute\",zIndex:1,top:6,right:7,width:20,height:20,padding:4,boxSizing:\"border-box\",cursor:\"pointer\",color:theme.input.color})),ColorSpace=(ColorSpace2=>(ColorSpace2.RGB=\"rgb\",ColorSpace2.HSL=\"hsl\",ColorSpace2.HEX=\"hex\",ColorSpace2))(ColorSpace||{}),COLOR_SPACES=Object.values(ColorSpace),COLOR_REGEXP=/\\(([0-9]+),\\s*([0-9]+)%?,\\s*([0-9]+)%?,?\\s*([0-9.]+)?\\)/,RGB_REGEXP=/^\\s*rgba?\\(([0-9]+),\\s*([0-9]+),\\s*([0-9]+),?\\s*([0-9.]+)?\\)\\s*$/i,HSL_REGEXP=/^\\s*hsla?\\(([0-9]+),\\s*([0-9]+)%,\\s*([0-9]+)%,?\\s*([0-9.]+)?\\)\\s*$/i,HEX_REGEXP=/^\\s*#?([0-9a-f]{3}|[0-9a-f]{6})\\s*$/i,SHORTHEX_REGEXP=/^\\s*#?([0-9a-f]{3})\\s*$/i,ColorPicker={hex:HexColorPicker,rgb:RgbaStringColorPicker,hsl:HslaStringColorPicker},fallbackColor={hex:\"transparent\",rgb:\"rgba(0, 0, 0, 0)\",hsl:\"hsla(0, 0%, 0%, 0)\"},stringToArgs=value=>{let match=value?.match(COLOR_REGEXP);if(!match)return [0,0,0,1];let[,x,y,z,a=1]=match;return [x,y,z,a].map(Number)},parseValue=value=>{if(!value)return;let valid=!0;if(RGB_REGEXP.test(value)){let[r,g,b,a]=stringToArgs(value),[h,s,l]=convert.rgb.hsl([r,g,b])||[0,0,0];return {valid,value,keyword:convert.rgb.keyword([r,g,b]),colorSpace:\"rgb\",rgb:value,hsl:`hsla(${h}, ${s}%, ${l}%, ${a})`,hex:`#${convert.rgb.hex([r,g,b]).toLowerCase()}`}}if(HSL_REGEXP.test(value)){let[h,s,l,a]=stringToArgs(value),[r,g,b]=convert.hsl.rgb([h,s,l])||[0,0,0];return {valid,value,keyword:convert.hsl.keyword([h,s,l]),colorSpace:\"hsl\",rgb:`rgba(${r}, ${g}, ${b}, ${a})`,hsl:value,hex:`#${convert.hsl.hex([h,s,l]).toLowerCase()}`}}let plain=value.replace(\"#\",\"\"),rgb=convert.keyword.rgb(plain)||convert.hex.rgb(plain),hsl=convert.rgb.hsl(rgb),mapped=value;if(/[^#a-f0-9]/i.test(value)?mapped=plain:HEX_REGEXP.test(value)&&(mapped=`#${plain}`),mapped.startsWith(\"#\"))valid=HEX_REGEXP.test(mapped);else try{convert.keyword.hex(mapped);}catch{valid=!1;}return {valid,value:mapped,keyword:convert.rgb.keyword(rgb),colorSpace:\"hex\",rgb:`rgba(${rgb[0]}, ${rgb[1]}, ${rgb[2]}, 1)`,hsl:`hsla(${hsl[0]}, ${hsl[1]}%, ${hsl[2]}%, 1)`,hex:mapped}},getRealValue=(value,color,colorSpace)=>{if(!value||!color?.valid)return fallbackColor[colorSpace];if(colorSpace!==\"hex\")return color?.[colorSpace]||fallbackColor[colorSpace];if(!color.hex.startsWith(\"#\"))try{return `#${convert.keyword.hex(color.hex)}`}catch{return fallbackColor.hex}let short=color.hex.match(SHORTHEX_REGEXP);if(!short)return HEX_REGEXP.test(color.hex)?color.hex:fallbackColor.hex;let[r,g,b]=short[1].split(\"\");return `#${r}${r}${g}${g}${b}${b}`},useColorInput=(initialValue,onChange)=>{let[value,setValue]=useState(initialValue||\"\"),[color,setColor]=useState(()=>parseValue(value)),[colorSpace,setColorSpace]=useState(color?.colorSpace||\"hex\");useEffect(()=>{let nextValue=initialValue||\"\",nextColor=parseValue(nextValue);setValue(nextValue),setColor(nextColor),setColorSpace(nextColor?.colorSpace||\"hex\");},[initialValue]);let realValue=useMemo(()=>getRealValue(value,color,colorSpace).toLowerCase(),[value,color,colorSpace]),updateValue=useCallback(update=>{let parsed=parseValue(update),v=parsed?.value||update||\"\";setValue(v),v===\"\"&&(setColor(void 0),onChange(void 0)),parsed&&(setColor(parsed),setColorSpace(parsed.colorSpace),onChange(parsed.value));},[onChange]),cycleColorSpace=useCallback(()=>{let next=COLOR_SPACES.indexOf(colorSpace)+1;next>=COLOR_SPACES.length&&(next=0),setColorSpace(COLOR_SPACES[next]);let update=color?.[COLOR_SPACES[next]]||\"\";setValue(update),onChange(update);},[color,colorSpace,onChange]);return {value,realValue,updateValue,color,colorSpace,cycleColorSpace}},id=value=>value.replace(/\\s*/,\"\").toLowerCase(),usePresets=(presetColors,currentColor,colorSpace)=>{let[selectedColors,setSelectedColors]=useState(currentColor?.valid?[currentColor]:[]);useEffect(()=>{currentColor===void 0&&setSelectedColors([]);},[currentColor]);let presets=useMemo(()=>(presetColors||[]).map(preset=>typeof preset==\"string\"?parseValue(preset):preset.title?{...parseValue(preset.color),keyword:preset.title}:parseValue(preset.color)).concat(selectedColors).filter(Boolean).slice(-27),[presetColors,selectedColors]),addPreset=useCallback(color=>{color?.valid&&(presets.some(preset=>id(preset[colorSpace])===id(color[colorSpace]))||setSelectedColors(arr=>arr.concat(color)));},[colorSpace,presets]);return {presets,addPreset}},ColorControl=({name,value:initialValue,onChange,onFocus,onBlur,presetColors,startOpen=!1})=>{let throttledOnChange=useCallback(throttle(onChange,200),[onChange]),{value,realValue,updateValue,color,colorSpace,cycleColorSpace}=useColorInput(initialValue,throttledOnChange),{presets,addPreset}=usePresets(presetColors,color,colorSpace),Picker=ColorPicker[colorSpace];return React.createElement(Wrapper,null,React.createElement(PickerTooltip,{startOpen,closeOnOutsideClick:!0,onVisibleChange:()=>addPreset(color),tooltip:React.createElement(TooltipContent,null,React.createElement(Picker,{color:realValue===\"transparent\"?\"#000000\":realValue,onChange:updateValue,onFocus,onBlur}),presets.length>0&&React.createElement(Swatches,null,presets.map((preset,index)=>React.createElement(WithTooltip,{key:`${preset.value}-${index}`,hasChrome:!1,tooltip:React.createElement(Note,{note:preset.keyword||preset.value})},React.createElement(Swatch,{value:preset[colorSpace],active:color&&id(preset[colorSpace])===id(color[colorSpace]),onClick:()=>updateValue(preset.value)})))))},React.createElement(Swatch,{value:realValue,style:{margin:4}})),React.createElement(Input,{id:getControlId(name),value,onChange:e=>updateValue(e.target.value),onFocus:e=>e.target.select(),placeholder:\"Choose color...\"}),value?React.createElement(ToggleIcon,{icon:\"markup\",onClick:cycleColorSpace}):null)},Color_default=ColorControl;\n\nexport { ColorControl, Color_default as default };\n"],"names":["u","r","t","n","c","i","e","s","f","v","d","h","m","o","a","l","g","p","b","_","x","C","E","H","L","N","w","K","I","y","q","k","z","D","S","T","F","P","X","Y","V","$","J","Q","U","W","Z","ee","re","le","ue","Ee","He","colorName","cssKeywords","require$$0","reverseKeywords","key","convert","conversions","model","channels","labels","rgb","min","max","delta","rdif","gdif","bdif","diff","diffc","comparativeDistance","reversed","currentClosestDistance","currentClosestKeyword","keyword","value","distance","xyz","hsl","t2","t3","val","t1","smin","lmin","sv","hsv","hi","vmin","sl","hwb","wh","bl","ratio","cmyk","lab","y2","x2","z2","lch","hr","args","saturation","ansi","color","mult","rem","string","match","colorString","char","integer","chroma","grayscale","hue","hcg","pure","mg","apple","gray","buildGraph","graph","models","len","deriveBFS","fromModel","queue","current","adjacents","adjacent","node","link","from","to","wrapConversion","toModel","path","fn","cur","route","conversion","require$$1","wrapRaw","wrappedFn","arg0","wrapRounded","result","routes","colorConvert","root","now","now_1","reWhitespace","trimmedEndIndex","index","_trimmedEndIndex","reTrimStart","baseTrim","_baseTrim","isObject","isSymbol","require$$2","NAN","reIsBadHex","reIsBinary","reIsOctal","freeParseInt","toNumber","other","isBinary","toNumber_1","FUNC_ERROR_TEXT","nativeMax","nativeMin","debounce","func","wait","options","lastArgs","lastThis","maxWait","timerId","lastCallTime","lastInvokeTime","leading","maxing","trailing","invokeFunc","time","thisArg","leadingEdge","timerExpired","remainingWait","timeSinceLastCall","timeSinceLastInvoke","timeWaiting","shouldInvoke","trailingEdge","cancel","flush","debounced","isInvoking","debounce_1","throttle","throttle_1","Wrapper","styled","PickerTooltip","WithTooltip","TooltipContent","Note","TooltipNote","theme","Swatches","SwatchColor","active","swatchBackground","Swatch","onClick","style","props","backgroundImage","React","Input","Form","ToggleIcon","Icons","ColorSpace","ColorSpace2","COLOR_SPACES","COLOR_REGEXP","RGB_REGEXP","HSL_REGEXP","HEX_REGEXP","SHORTHEX_REGEXP","ColorPicker","HexColorPicker","RgbaStringColorPicker","HslaStringColorPicker","fallbackColor","stringToArgs","parseValue","valid","plain","mapped","getRealValue","colorSpace","short","useColorInput","initialValue","onChange","setValue","useState","setColor","setColorSpace","useEffect","nextValue","nextColor","realValue","useMemo","updateValue","useCallback","update","parsed","cycleColorSpace","next","id","usePresets","presetColors","currentColor","selectedColors","setSelectedColors","presets","preset","addPreset","arr","ColorControl","name","onFocus","onBlur","startOpen","throttledOnChange","Pic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CAAK,GAAG,UAAU,GAAG,QAAQoE,EAAM,cAAcZ,GAAK,CAAC,KAAK+D,EAAO,SAASA,EAAO,KAAK,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMwD,EAAO3B,CAAU,EAAE,OAAO9I,GAAOkK,EAAGO,EAAO3B,CAAU,CAAC,IAAIoB,EAAGlK,EAAM8I,CAAU,CAAC,EAAE,QAAQ,IAAIc,EAAYa,EAAO,KAAK,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAEnD,EAAM,cAAcL,GAAO,CAAC,MAAMyC,EAAU,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAEpC,EAAM,cAAcC,GAAM,CAAC,GAAG4D,GAAaN,CAAI,EAAE,MAAA1M,EAAM,SAASvE,GAAGgQ,EAAYhQ,EAAE,OAAO,KAAK,EAAE,QAAQA,GAAGA,EAAE,OAAO,OAAQ,EAAC,YAAY,iBAAiB,CAAC,EAAEuE,EAAMmJ,EAAM,cAAcG,GAAW,CAAC,KAAK,SAAS,QAAQuC,CAAe,CAAC,EAAE,IAAI,CAAC,EAAEoB,GAAcR","x_google_ignoreList":[0,1,2,3,4,5,6,7,8,9,10,11]} \ No newline at end of file diff --git a/assets/Community-f07a06bb.js b/assets/Community-f07a06bb.js new file mode 100644 index 0000000..bbcdfdd --- /dev/null +++ b/assets/Community-f07a06bb.js @@ -0,0 +1,22 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as t}from"./index-2ef8b458.js";import{M as s}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function r(n){const o=Object.assign({h1:"h1",h2:"h2",p:"p",ul:"ul",li:"li",a:"a",strong:"strong",code:"code"},t(),n.components);return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Docs/Community"}),` +`,e.jsx(o.h1,{id:"community",children:"Community"}),` +`,e.jsx(o.h2,{id:"products",children:"Products"}),` +`,e.jsx(o.p,{children:"Examples of commercial apps using reaflow:"}),` +`,e.jsxs(o.ul,{children:[` +`,e.jsxs(o.li,{children:[e.jsx(o.a,{href:"https://crft.app",target:"_blank",rel:"nofollow noopener noreferrer",children:"CRFT"}),": no-code cyber security automation."]}),` +`]}),` +`,e.jsx(o.h2,{id:"opensource",children:"Opensource"}),` +`,e.jsx(o.p,{children:"Examples of open-source projects using reaflow:"}),` +`,e.jsxs(o.ul,{children:[` +`,e.jsxs(o.li,{children:[` +`,e.jsxs(o.p,{children:[e.jsx(o.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow",target:"_blank",rel:"nofollow noopener noreferrer",children:"POC Next.js + Reaflow"}),`: Uses +Reaflow to build a "`,e.jsx(o.strong,{children:"decision tree"}),`". Advanced use-case with different kinds +of nodes with heavy usage of `,e.jsx(o.code,{children:"foreignObject"}),` to display actual HTML within the nodes themselves. +Hosted on Vercel and built with Next.js 10.`]}),` +`]}),` +`,e.jsxs(o.li,{children:[` +`,e.jsxs(o.p,{children:[e.jsx(o.a,{href:"https://github.com/AykutSarac/jsonvisio.com",target:"_blank",rel:"nofollow noopener noreferrer",children:"JSON Visio"}),`: Uses +Reaflow to mirror JSON onto "`,e.jsx(o.strong,{children:"graphs"}),'". JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.']}),` +`]}),` +`]})]})}function w(n={}){const{wrapper:o}=Object.assign({},t(),n.components);return o?e.jsx(o,Object.assign({},n,{children:e.jsx(r,n)})):r(n)}export{w as default}; +//# sourceMappingURL=Community-f07a06bb.js.map diff --git a/assets/Community-f07a06bb.js.map b/assets/Community-f07a06bb.js.map new file mode 100644 index 0000000..9e338b1 --- /dev/null +++ b/assets/Community-f07a06bb.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Community-f07a06bb.js","sources":["../../docs/Community.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Community\n\n## Products\nExamples of commercial apps using reaflow:\n\n- [CRFT](https://crft.app): no-code cyber security automation.\n\n## Opensource\nExamples of open-source projects using reaflow:\n\n- [POC Next.js + Reaflow](https://github.com/Vadorequest/poc-nextjs-reaflow): Uses\nReaflow to build a \"**decision tree**\". Advanced use-case with different kinds\nof nodes with heavy usage of `foreignObject` to display actual HTML within the nodes themselves.\nHosted on Vercel and built with Next.js 10.\n\n- [JSON Visio](https://github.com/AykutSarac/jsonvisio.com): Uses\nReaflow to mirror JSON onto \"**graphs**\". JSON Visio is data visualization tool for your json data which seamlessly illustrates your data on graphs without having to restructure anything, paste directly or import file.\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,GAAI,KACJ,EAAG,IACH,GAAI,KACJ,GAAI,KACJ,EAAG,IACH,OAAQ,SACR,KAAM,MACP,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAOG,EAAAA,KAAMC,EAAAA,SAAW,CACtB,SAAU,CAACC,EAAI,IAACC,EAAM,CACpB,MAAO,gBACR,CAAA,EAAG;AAAA,EAAMD,MAAKJ,EAAY,GAAI,CAC7B,GAAI,YACJ,SAAU,WACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,GAAI,WACJ,SAAU,UACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,4CACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,GAAI,CAC9B,SAAU,CAAC;AAAA,EAAME,OAAMF,EAAY,GAAI,CACrC,SAAU,CAACI,EAAAA,IAAKJ,EAAY,EAAG,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OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/Components-20eab782.js b/assets/Components-20eab782.js new file mode 100644 index 0000000..d10fb45 --- /dev/null +++ b/assets/Components-20eab782.js @@ -0,0 +1,35 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./chunk-S4VUQJ4A-48c253a4.js";import{M as i,A as o}from"./index-44920ba4.js";import{C as t,N as c,E as h,P as l,M as a,A as x,R as j,L as m,I as p}from"./Icon-81c21a65.js";import"./index-1b03fe98.js";import"./IntersectionQuery-9432d399.js";import{u as d}from"./index-2ef8b458.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./react-18-5df836b6.js";import"./index-6fd5a17b.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function r(s){const n=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li",h2:"h2",code:"code"},d(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Docs/Getting Started/Components"}),` +`,e.jsx(n.h1,{id:"components",children:"Components"}),` +`,e.jsx(n.p,{children:`The library uses a variety of components internally that you can +customize.`}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsx(n.li,{children:"Canvas - The root component"}),` +`,e.jsx(n.li,{children:"Node - The node element component"}),` +`,e.jsx(n.li,{children:"Edge - The connector between nodes"}),` +`,e.jsx(n.li,{children:"Port - The exit points of a node"}),` +`,e.jsx(n.li,{children:"Marker Arrow - The shape used to connect show direction on the edges"}),` +`,e.jsx(n.li,{children:"Add - The shape used on edges to show dropping between edges"}),` +`,e.jsx(n.li,{children:"Remove - The shape used on nodes and edges to remove each"}),` +`,e.jsx(n.li,{children:"Label - The component used by nodes and edges to show text"}),` +`,e.jsx(n.li,{children:"Icon - The component used by nodes to show an icon"}),` +`]}),` +`,e.jsx(n.p,{children:"Below are the props from each component."}),` +`,e.jsx(n.h2,{id:"canvas",children:e.jsx(n.code,{children:"Canvas"})}),` +`,e.jsx(o,{of:t}),` +`,e.jsx(n.h2,{id:"node",children:e.jsx(n.code,{children:"Node"})}),` +`,e.jsx(o,{of:c}),` +`,e.jsx(n.h2,{id:"edge",children:e.jsx(n.code,{children:"Edge"})}),` +`,e.jsx(o,{of:h}),` +`,e.jsx(n.h2,{id:"port",children:e.jsx(n.code,{children:"Port"})}),` +`,e.jsx(o,{of:l}),` +`,e.jsx(n.h2,{id:"markerarrow",children:e.jsx(n.code,{children:"MarkerArrow"})}),` +`,e.jsx(o,{of:a}),` +`,e.jsx(n.h2,{id:"add",children:e.jsx(n.code,{children:"Add"})}),` +`,e.jsx(o,{of:x}),` +`,e.jsx(n.h2,{id:"remove",children:e.jsx(n.code,{children:"Remove"})}),` +`,e.jsx(o,{of:j}),` +`,e.jsx(n.h2,{id:"label",children:e.jsx(n.code,{children:"Label"})}),` +`,e.jsx(o,{of:m}),` +`,e.jsx(n.h2,{id:"icon",children:e.jsx(n.code,{children:"Icon"})}),` +`,e.jsx(o,{of:p})]})}function I(s={}){const{wrapper:n}=Object.assign({},d(),s.components);return n?e.jsx(n,Object.assign({},s,{children:e.jsx(r,s)})):r(s)}export{I as default}; +//# sourceMappingURL=Components-20eab782.js.map diff --git a/assets/Components-20eab782.js.map b/assets/Components-20eab782.js.map new file mode 100644 index 0000000..2c62a24 --- /dev/null +++ b/assets/Components-20eab782.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Components-20eab782.js","sources":["../../docs/GettingStarted/Components.mdx"],"sourcesContent":["import { Meta, ArgTypes } from '@storybook/addon-docs';\nimport { Canvas, Node, Edge, Port, MarkerArrow, Add, Remove, Label, Icon } from '../../src';\n\n\n\n# Components\nThe library uses a variety of components internally that you can\ncustomize.\n\n- Canvas - The root component\n- Node - The node element component\n- Edge - The connector between nodes\n- Port - The exit points of a node\n- Marker Arrow - The shape used to connect show direction on the edges\n- Add - The shape used on edges to show dropping between edges\n- Remove - The shape used on nodes and edges to remove each\n- Label - The component used by nodes and edges to show text\n- Icon - The component used by nodes to show an icon\n\nBelow are the props from each component.\n\n## `Canvas`\n\n\n\n## `Node`\n\n\n## `Edge`\n\n\n## `Port`\n\n\n## `MarkerArrow`\n\n\n## `Add`\n\n\n## `Remove`\n\n\n## `Label`\n\n\n## `Icon`\n\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","ArgTypes","Canvas","Node","Edge","Port","MarkerArrow","Add","Remove","Label","Icon","MDXContent","MDXLayout"],"mappings":"+mBAKA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,KAAM,MACP,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAOG,EAAAA,KAAMC,EAAAA,SAAW,CACtB,SAAU,CAACC,EAAI,IAACC,EAAM,CACpB,MAAO,iCACR,CAAA,EAAG;AAAA,EAAMD,MAAKJ,EAAY,GAAI,CAC7B,GAAI,aACJ,SAAU,YACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU;AAAA,WACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,GAAI,CAC9B,SAAU,CAAC;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CACpC,SAAU,6BACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,SAAU,mCACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,SAAU,oCACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,SAAU,kCACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,SAAU,sEACX,CAAA,EAAG;AAAA,EAAMI,MA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AAAA,EAAMI,EAAI,IAACE,EAAU,CACvB,GAAIK,CACL,CAAA,EAAG;AAAA,EAAMP,MAAKJ,EAAY,GAAI,CAC7B,GAAI,MACJ,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,SAAU,KAClB,CAAO,CACP,CAAK,EAAG;AAAA,EAAMI,EAAI,IAACE,EAAU,CACvB,GAAIM,CACL,CAAA,EAAG;AAAA,EAAMR,MAAKJ,EAAY,GAAI,CAC7B,GAAI,SACJ,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,SAAU,QAClB,CAAO,CACP,CAAK,EAAG;AAAA,EAAMI,EAAI,IAACE,EAAU,CACvB,GAAIO,CACL,CAAA,EAAG;AAAA,EAAMT,MAAKJ,EAAY,GAAI,CAC7B,GAAI,QACJ,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,SAAU,OAClB,CAAO,CACP,CAAK,EAAG;AAAA,EAAMI,EAAI,IAACE,EAAU,CACvB,GAAIQ,CACL,CAAA,EAAG;AAAA,EAAMV,MAAKJ,EAAY,GAAI,CAC7B,GAAI,OACJ,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,SAAU,MAClB,CAAO,CACP,CAAK,EAAG;AAAA,EAAMI,EAAI,IAACE,EAAU,CACvB,GAAIS,CACV,CAAK,CAAC,CACN,CAAG,CACH,CACA,SAASC,EAAWjB,EAAQ,GAAI,CAC9B,KAAM,CAAC,QAASkB,CAAS,EAAI,OAAO,OAAO,CAAE,EAAEhB,EAAoB,EAAEF,EAAM,UAAU,EACrF,OAAOkB,EAAYb,EAAAA,IAAKa,EAAW,OAAO,OAAO,CAAE,EAAElB,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/Contributing-064182c5.js b/assets/Contributing-064182c5.js new file mode 100644 index 0000000..69e9149 --- /dev/null +++ b/assets/Contributing-064182c5.js @@ -0,0 +1,40 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as l}from"./index-2ef8b458.js";import{M as i}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function r(o){const n=Object.assign({h1:"h1",h2:"h2",ul:"ul",li:"li",code:"code",a:"a",p:"p",strong:"strong",h3:"h3",blockquote:"blockquote",h4:"h4",ol:"ol",em:"em"},l(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Docs/Contributing"}),` +`,e.jsx(n.h1,{id:"contributing",children:"Contributing"}),` +`,e.jsx(n.h2,{id:"getting-started",children:"Getting started"}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsx(n.li,{children:e.jsx(n.code,{children:"npm i"})}),` +`,e.jsxs(n.li,{children:[e.jsx(n.code,{children:"npm start"})," opens Storybook documentation on ",e.jsx(n.a,{href:"http://localhost:9009",target:"_blank",rel:"nofollow noopener noreferrer",children:"localhost:9009"})]}),` +`]}),` +`,e.jsxs(n.h2,{id:"using-the-reaflow-package-locally-as-a-dependency",children:["Using the ",e.jsx(n.code,{children:"reaflow"})," package locally as a dependency"]}),` +`,e.jsxs(n.p,{children:["If you're working on some app ",e.jsxs(n.strong,{children:["that uses ",e.jsx(n.code,{children:"reaflow"})," as a dependency"]}),", and if you want to quickly update the code of ",e.jsx(n.code,{children:"reaflow"})," locally (without publishing changes to NPM), you basically have two choices:"]}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsx(n.li,{children:e.jsx(n.a,{href:"https://git-scm.com/book/en/v2/Git-Tools-Submodules",target:"_blank",rel:"nofollow noopener noreferrer",children:"Use Git submodules"})}),` +`,e.jsxs(n.li,{children:["Use ",e.jsx(n.a,{href:"https://docs.npmjs.com/cli/v6/commands/npm-link",target:"_blank",rel:"nofollow noopener noreferrer",children:"NPM"}),"/",e.jsx(n.a,{href:"https://classic.yarnpkg.com/en/docs/cli/link/",target:"_blank",rel:"nofollow noopener noreferrer",children:"Yarn"})," ",e.jsx(n.code,{children:"link"})," feature"]}),` +`]}),` +`,e.jsx(n.p,{children:"At this time, we don't have an official recommandation about which one to use, it's up to you."}),` +`,e.jsxs(n.h3,{id:"using-link",children:["Using ",e.jsx(n.code,{children:"link"})]}),` +`,e.jsxs(n.p,{children:["Using NPM/Yarn link will link your dependencies on your main project to your local ",e.jsx(n.code,{children:"reaflow"})," folder."]}),` +`,e.jsxs(n.blockquote,{children:[` +`,e.jsx(n.p,{children:`:warning: Beware: The "link" might break quite often when installing new dependencies on your main project, and you'll need to unlink and link back again to fix it.`}),` +`]}),` +`,e.jsx(n.h4,{id:"configuration-example-with-yarn",children:"Configuration example (with Yarn):"}),` +`,e.jsxs(n.ol,{children:[` +`,e.jsxs(n.li,{children:["From your local ",e.jsx(n.code,{children:"reaflow"})," folder, run ",e.jsx(n.code,{children:"yarn install"})," and then ",e.jsx(n.code,{children:"yarn link:reaflow"}),", which will create the links in yarn"]}),` +`,e.jsxs(n.li,{children:["From your main project folder, run ",e.jsx(n.code,{children:"yarn link reaflow && yarn link react && yarn link react-dom"})]}),` +`]}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:[e.jsxs(n.em,{children:["We suggest adding it as a command in your package.json: ",e.jsx(n.code,{children:'"link:reaflow": "yarn link reaflow && yarn link react && yarn link react-dom"'})]})," - ",e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/cf8499008c4b70946d82803741401fac48264a5b/package.json#L8",target:"_blank",rel:"nofollow noopener noreferrer",children:"See example"})]}),` +`]}),` +`,e.jsxs(n.ol,{children:[` +`,e.jsxs(n.li,{children:[e.jsxs(n.strong,{children:["If you edit the ",e.jsx(n.code,{children:"reaflow"})," files"]})," and need to recompile the project then run ",e.jsx(n.code,{children:"yarn build:watch"})," from your local ",e.jsx(n.code,{children:"reaflow"})," folder (changes will be applied immediately, you'll benefit from hot-reloading, etc.)"]}),` +`]}),` +`,e.jsxs(n.p,{children:["Once everything is linked, your main project will use the files in your local ",e.jsx(n.code,{children:"reaflow"}),` folder. +While `,e.jsx(n.code,{children:"yarn build:watch"})," is running, your changes from ",e.jsx(n.code,{children:"reaflow"})," will automatically apply to your main project."]}),` +`,e.jsx(n.h4,{id:"warning-when-the-link-breaks",children:":warning When the link breaks"}),` +`,e.jsxs(n.p,{children:["When you install new dependencies in your main project, it might break the links with ",e.jsx(n.code,{children:"reaflow"}),"."]}),` +`,e.jsxs(n.p,{children:["To fix it, you'll need to remove your ",e.jsx(n.code,{children:"node_modules"})," folder and reinstall all packages ",e.jsx(n.strong,{children:"on both"})," your main project and ",e.jsx(n.code,{children:"reaflow"}),", starting with ",e.jsx(n.code,{children:"reaflow"}),"."]}),` +`,e.jsxs(n.ol,{children:[` +`,e.jsxs(n.li,{children:["From ",e.jsx(n.code,{children:"reaflow"})," folder: ",e.jsx(n.code,{children:"rm -rf node_modules && yarn && yarn link:reaflow"})]}),` +`,e.jsxs(n.li,{children:["From your main project folder: ",e.jsx(n.code,{children:"rm -rf node_modules && yarn && yarn link:reaflow"})]}),` +`]})]})}function g(o={}){const{wrapper:n}=Object.assign({},l(),o.components);return n?e.jsx(n,Object.assign({},o,{children:e.jsx(r,o)})):r(o)}export{g as default}; +//# sourceMappingURL=Contributing-064182c5.js.map diff --git a/assets/Contributing-064182c5.js.map b/assets/Contributing-064182c5.js.map new file mode 100644 index 0000000..d4661d8 --- /dev/null +++ b/assets/Contributing-064182c5.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Contributing-064182c5.js","sources":["../../docs/Contributing.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Contributing\n\n## Getting started\n\n- `npm i`\n- `npm start` opens Storybook documentation on [localhost:9009](http://localhost:9009)\n\n## Using the `reaflow` package locally as a dependency\n\nIf you're working on some app **that uses `reaflow` as a dependency**, and if you want to quickly update the code of `reaflow` locally (without publishing changes to NPM), you basically have two choices:\n- [Use Git submodules](https://git-scm.com/book/en/v2/Git-Tools-Submodules)\n- Use [NPM](https://docs.npmjs.com/cli/v6/commands/npm-link)/[Yarn](https://classic.yarnpkg.com/en/docs/cli/link/) `link` feature\n\nAt this time, we don't have an official recommandation about which one to use, it's up to you.\n\n### Using `link`\n\nUsing NPM/Yarn link will link your dependencies on your main project to your local `reaflow` folder.\n\n> :warning: Beware: The \"link\" might break quite often when installing new dependencies on your main project, and you'll need to unlink and link back again to fix it.\n\n#### Configuration example (with Yarn):\n\n1. From your local `reaflow` folder, run `yarn install` and then `yarn link:reaflow`, which will create the links in yarn\n1. From your main project folder, run `yarn link reaflow && yarn link react && yarn link react-dom`\n - _We suggest adding it as a command in your package.json: `\"link:reaflow\": \"yarn link reaflow && yarn link react && yarn link react-dom\"`_ - [See example](https://github.com/Vadorequest/poc-nextjs-reaflow/blob/cf8499008c4b70946d82803741401fac48264a5b/package.json#L8)\n1. **If you edit the `reaflow` files** and need to recompile the project then run `yarn build:watch` from your local `reaflow` folder (changes will be applied immediately, you'll benefit from hot-reloading, etc.)\n\nOnce everything is linked, your main project will use the files in your local `reaflow` folder.\nWhile `yarn build:watch` is running, your changes from `reaflow` will automatically apply to your main project.\n\n#### :warning When the link breaks\n\nWhen you install new dependencies in your main project, it might break the links with `reaflow`.\n\nTo fix it, you'll need to remove your `node_modules` folder and reinstall all packages **on both** your main project and `reaflow`, starting with `reaflow`.\n1. From `reaflow` folder: `rm -rf node_modules && yarn && yarn link:reaflow`\n1. From your main project folder: `rm -rf node_modules && yarn && yarn link:reaflow`\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC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M,UAAU,EACrF,OAAOQ,EAAYH,EAAAA,IAAKG,EAAW,OAAO,OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/Controls.stories-aa0f23e4.js b/assets/Controls.stories-aa0f23e4.js new file mode 100644 index 0000000..a01c0cc --- /dev/null +++ b/assets/Controls.stories-aa0f23e4.js @@ -0,0 +1,246 @@ +import{j as S}from"./jsx-runtime-9c4ae004.js";import{R as W,r as C}from"./index-1b03fe98.js";import{C as z,N as ge,E as be,M as Se,a as we,I as ye,L as Ce,P as Pe,R as Te,A as Ye,b as Xe}from"./Icon-81c21a65.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";var T=function(i,n){return Number(i.toFixed(n))},Ne=function(i,n){return typeof i=="number"?i:n},g=function(i,n,e){e&&typeof e=="function"&&e(i,n)},ze=function(i){return-Math.cos(i*Math.PI)/2+.5},Ae=function(i){return i},Ee=function(i){return i*i},_e=function(i){return i*(2-i)},We=function(i){return i<.5?2*i*i:-1+(4-2*i)*i},De=function(i){return i*i*i},Oe=function(i){return--i*i*i+1},Ze=function(i){return i<.5?4*i*i*i:(i-1)*(2*i-2)*(2*i-2)+1},ke=function(i){return i*i*i*i},Le=function(i){return 1- --i*i*i*i},Be=function(i){return i<.5?8*i*i*i*i:1-8*--i*i*i*i},Me=function(i){return i*i*i*i*i},je=function(i){return 1+--i*i*i*i*i},He=function(i){return i<.5?16*i*i*i*i*i:1+16*--i*i*i*i*i},Qi={easeOut:ze,linear:Ae,easeInQuad:Ee,easeOutQuad:_e,easeInOutQuad:We,easeInCubic:De,easeOutCubic:Oe,easeInOutCubic:Ze,easeInQuart:ke,easeOutQuart:Le,easeInOutQuart:Be,easeInQuint:Me,easeOutQuint:je,easeInOutQuint:He},qi=function(i){typeof i=="number"&&cancelAnimationFrame(i)},X=function(i){i.mounted&&(qi(i.animation),i.animate=!1,i.animation=null,i.velocity=null)};function Ui(i,n,e,o){if(i.mounted){var r=new Date().getTime(),a=1;X(i),i.animation=function(){if(!i.mounted)return qi(i.animation);var t=new Date().getTime()-r,s=t/e,l=Qi[n],d=l(s);t>=e?(o(a),i.animation=null):i.animation&&(o(d),requestAnimationFrame(i.animation))},requestAnimationFrame(i.animation)}}function Re(i){var n=i.scale,e=i.positionX,o=i.positionY;return!(Number.isNaN(n)||Number.isNaN(e)||Number.isNaN(o))}function A(i,n,e,o){var r=Re(n);if(!(!i.mounted||!r)){var a=i.setTransformState,t=i.transformState,s=t.scale,l=t.positionX,d=t.positionY,u=n.scale-s,f=n.positionX-l,m=n.positionY-d;e===0?a(n.scale,n.positionX,n.positionY):Ui(i,o,e,function(v){var p=s+u*v,h=l+f*v,b=d+m*v;a(p,h,b)})}}function Ke(i,n,e){var o=i.offsetWidth,r=i.offsetHeight,a=n.offsetWidth,t=n.offsetHeight,s=a*e,l=t*e,d=o-s,u=r-l;return{wrapperWidth:o,wrapperHeight:r,newContentWidth:s,newDiffWidth:d,newContentHeight:l,newDiffHeight:u}}var Ve=function(i,n,e,o,r,a,t){var s=i>n?e*(t?1:.5):0,l=o>r?a*(t?1:.5):0,d=i-n-s,u=s,f=o-r-l,m=l;return{minPositionX:d,maxPositionX:u,minPositionY:f,maxPositionY:m}},li=function(i,n){var e=i.wrapperComponent,o=i.contentComponent,r=i.setup.centerZoomedOut;if(!e||!o)throw new Error("Components are not mounted");var a=Ke(e,o,n),t=a.wrapperWidth,s=a.wrapperHeight,l=a.newContentWidth,d=a.newDiffWidth,u=a.newContentHeight,f=a.newDiffHeight,m=Ve(t,l,d,s,u,f,!!r);return m},ai=function(i,n,e,o){return o?ie?T(e,2):T(i,2):T(i,2)},Z=function(i,n){var e=li(i,n);return i.bounds=e,e};function J(i,n,e,o,r,a,t){var s=e.minPositionX,l=e.minPositionY,d=e.maxPositionX,u=e.maxPositionY,f=0,m=0;t&&(f=r,m=a);var v=ai(i,s-f,d+f,o),p=ai(n,l-m,u+m,o);return{x:v,y:p}}function $(i,n,e,o,r,a){var t=i.transformState,s=t.scale,l=t.positionX,d=t.positionY,u=o-s;if(typeof n!="number"||typeof e!="number")return console.error("Mouse X and Y position were not provided!"),{x:l,y:d};var f=l-n*u,m=d-e*u,v=J(f,m,r,a,0,0,null);return v}function j(i,n,e,o,r){var a=r?o:0,t=n-a;return!Number.isNaN(e)&&i>=e?e:!Number.isNaN(n)&&i<=t?t:i}var gi=function(i,n){var e=i.setup.panning.excluded,o=i.isInitialized,r=i.wrapperComponent,a=n.target,t=r==null?void 0:r.contains(a),s=o&&a&&t;if(!s)return!1;var l=I(a,e);return!l},bi=function(i){var n=i.isInitialized,e=i.isPanning,o=i.setup,r=o.panning.disabled,a=n&&e&&!r;return!!a},Fe=function(i,n){var e=i.transformState,o=e.positionX,r=e.positionY;i.isPanning=!0;var a=n.clientX,t=n.clientY;i.startCoords={x:a-o,y:t-r}},Qe=function(i,n){var e=n.touches,o=i.transformState,r=o.positionX,a=o.positionY;i.isPanning=!0;var t=e.length===1;if(t){var s=e[0].clientX,l=e[0].clientY;i.startCoords={x:s-r,y:l-a}}};function qe(i){var n=i.transformState,e=n.positionX,o=n.positionY,r=n.scale,a=i.setup,t=a.disabled,s=a.limitToBounds,l=a.centerZoomedOut,d=i.wrapperComponent;if(!(t||!d||!i.bounds)){var u=i.bounds,f=u.maxPositionX,m=u.minPositionX,v=u.maxPositionY,p=u.minPositionY,h=e>f||ev||of?d.offsetWidth:i.setup.minPositionX||0,P=o>v?d.offsetHeight:i.setup.minPositionY||0,w=$(i,y,P,r,i.bounds,s||l),E=w.x,Y=w.y;return{scale:r,positionX:h?E:e,positionY:b?Y:o}}}function Ue(i,n,e,o,r){var a=i.setup.limitToBounds,t=i.wrapperComponent,s=i.bounds,l=i.transformState,d=l.scale,u=l.positionX,f=l.positionY;if(!(t===null||s===null||n===u&&e===f)){var m=J(n,e,s,a,o,r,t),v=m.x,p=m.y;i.setTransformState(d,v,p)}}var xe=function(i,n,e){var o=i.startCoords,r=i.transformState,a=i.setup.panning,t=a.lockAxisX,s=a.lockAxisY,l=r.positionX,d=r.positionY;if(!o)return{x:l,y:d};var u=n-o.x,f=e-o.y,m=t?l:u,v=s?d:f;return{x:m,y:v}},G=function(i,n){var e=i.setup,o=i.transformState,r=o.scale,a=e.minScale,t=e.disablePadding;return n>0&&r>=a&&!t?n:0},Ge=function(i){var n=i.mounted,e=i.setup,o=e.disabled,r=e.velocityAnimation,a=i.transformState.scale,t=r.disabled,s=!t||a>1||!o||n;return!!s},Je=function(i){var n=i.mounted,e=i.velocity,o=i.bounds,r=i.setup,a=r.disabled,t=r.velocityAnimation,s=i.transformState.scale,l=t.disabled,d=!l||s>1||!a||n;return!(!d||!e||!o)};function $e(i,n){var e=i.setup.velocityAnimation,o=e.equalToMove,r=e.animationTime,a=e.sensitivity;return o?r*n*a:r}function Si(i,n,e,o,r,a,t,s,l,d){if(r){if(n>t&&e>t){var u=t+(i-t)*d;return u>l?l:ua?a:u}}return o?n:ai(i,a,t,r)}function Ie(i,n){var e=1;return n?Math.min(e,i.offsetWidth/window.innerWidth):e}function io(i,n){var e=Ge(i);if(e){var o=i.lastMousePosition,r=i.velocityTime,a=i.setup,t=i.wrapperComponent,s=a.velocityAnimation.equalToMove,l=Date.now();if(o&&r&&t){var d=Ie(t,s),u=n.x-o.x,f=n.y-o.y,m=u/d,v=f/d,p=l-r,h=u*u+f*f,b=Math.sqrt(h)/p;i.velocity={velocityX:m,velocityY:v,total:b}}i.lastMousePosition=n,i.velocityTime=l}}function eo(i){var n=i.velocity,e=i.bounds,o=i.setup,r=i.wrapperComponent,a=Je(i);if(!(!a||!n||!e||!r)){var t=n.velocityX,s=n.velocityY,l=n.total,d=e.maxPositionX,u=e.minPositionX,f=e.maxPositionY,m=e.minPositionY,v=o.limitToBounds,p=o.alignmentAnimation,h=o.zoomAnimation,b=o.panning,y=b.lockAxisY,P=b.lockAxisX,w=h.animationType,E=p.sizeX,Y=p.sizeY,k=p.velocityAlignmentTime,_=k,L=$e(i,l),D=Math.max(L,_),O=G(i,E),B=G(i,Y),H=O*r.offsetWidth/100,fi=B*r.offsetHeight/100,ae=d+H,te=u-H,se=f+fi,le=m-fi,mi=i.transformState,ue=new Date().getTime();Ui(i,w,D,function(de){var ii=i.transformState,fe=ii.scale,ei=ii.positionX,oi=ii.positionY,me=new Date().getTime()-ue,ve=me/_,pe=Qi[p.animationType],vi=1-pe(Math.min(1,ve)),pi=1-de,hi=ei+t*pi,ci=oi+s*pi,he=Si(hi,mi.positionX,ei,P,v,u,d,te,ae,vi),ce=Si(ci,mi.positionY,oi,y,v,m,f,le,se,vi);(ei!==hi||oi!==ci)&&i.setTransformState(fe,he,ce)})}}function wi(i,n){var e=i.transformState.scale;X(i),Z(i,e),window.TouchEvent!==void 0&&n instanceof TouchEvent?Qe(i,n):Fe(i,n)}function xi(i){var n=i.transformState.scale,e=i.setup,o=e.minScale,r=e.alignmentAnimation,a=r.disabled,t=r.sizeX,s=r.sizeY,l=r.animationTime,d=r.animationType,u=a||n.1&&f;m?eo(i):xi(i)}}function ui(i,n,e,o){var r=i.setup,a=r.minScale,t=r.maxScale,s=r.limitToBounds,l=j(T(n,2),a,t,0,!1),d=Z(i,l),u=$(i,e,o,l,d,s),f=u.x,m=u.y;return{scale:l,positionX:f,positionY:m}}function Gi(i,n,e){var o=i.transformState.scale,r=i.wrapperComponent,a=i.setup,t=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,d=l.disabled,u=l.animationTime,f=l.animationType,m=d||o>=t;if((o>=1||s)&&xi(i),!(m||!r||!i.mounted)){var v=n||r.offsetWidth/2,p=e||r.offsetHeight/2,h=ui(i,t,v,p);h&&A(i,h,u,f)}}var N=function(){return N=Object.assign||function(n){for(var e,o=1,r=arguments.length;ot||Math.sign(e.deltaY)!==Math.sign(n.deltaY)||e.deltaY>0&&e.deltaYn.deltaY||Math.sign(e.deltaY)!==Math.sign(n.deltaY):!1},wo=function(i,n){var e=i.setup.pinch,o=e.disabled,r=e.excluded,a=i.isInitialized,t=n.target,s=a&&!o&&t;if(!s)return!1;var l=I(t,r);return!l},yo=function(i){var n=i.setup.pinch.disabled,e=i.isInitialized,o=i.pinchStartDistance,r=e&&!n&&o;return!!r},Co=function(i,n,e){var o=e.getBoundingClientRect(),r=i.touches,a=T(r[0].clientX-o.left,5),t=T(r[0].clientY-o.top,5),s=T(r[1].clientX-o.left,5),l=T(r[1].clientY-o.top,5);return{x:(a+s)/2/n,y:(t+l)/2/n}},ne=function(i){return Math.sqrt(Math.pow(i.touches[0].pageX-i.touches[1].pageX,2)+Math.pow(i.touches[0].pageY-i.touches[1].pageY,2))},Po=function(i,n){var e=i.pinchStartScale,o=i.pinchStartDistance,r=i.setup,a=r.maxScale,t=r.minScale,s=r.zoomAnimation,l=r.disablePadding,d=s.size,u=s.disabled;if(!e||o===null||!n)throw new Error("Pinch touches distance was not provided");if(n<0)return i.transformState.scale;var f=n/o,m=f*e;return j(T(m,2),t,a,d,!u&&!l)},To=160,Yo=100,Xo=function(i,n){var e=i.props,o=e.onWheelStart,r=e.onZoomStart;i.wheelStopEventTimer||(X(i),g(c(i),n,o),g(c(i),n,r))},No=function(i,n){var e=i.props,o=e.onWheel,r=e.onZoom,a=i.contentComponent,t=i.setup,s=i.transformState,l=s.scale,d=t.limitToBounds,u=t.centerZoomedOut,f=t.zoomAnimation,m=t.wheel,v=t.disablePadding,p=t.smooth,h=f.size,b=f.disabled,y=m.step,P=m.smoothStep;if(!a)throw new Error("Component not mounted");n.preventDefault(),n.stopPropagation();var w=go(n,null),E=p?P*Math.abs(n.deltaY):y,Y=bo(i,w,E,!n.ctrlKey);if(l!==Y){var k=Z(i,Y),_=oe(n,a,l),L=b||h===0||u||v,D=d&&L,O=$(i,_.x,_.y,Y,k,D),B=O.x,H=O.y;i.previousWheelEvent=n,i.setTransformState(Y,B,H),g(c(i),n,o),g(c(i),n,r)}},zo=function(i,n){var e=i.props,o=e.onWheelStop,r=e.onZoomStop;si(i.wheelAnimationTimer),i.wheelAnimationTimer=setTimeout(function(){i.mounted&&(Gi(i,n.x,n.y),i.wheelAnimationTimer=null)},Yo);var a=So(i,n);a&&(si(i.wheelStopEventTimer),i.wheelStopEventTimer=setTimeout(function(){i.mounted&&(i.wheelStopEventTimer=null,g(c(i),n,o),g(c(i),n,r))},To))},Ao=function(i,n){var e=ne(n);i.pinchStartDistance=e,i.lastDistance=e,i.pinchStartScale=i.transformState.scale,i.isPanning=!1,X(i)},Eo=function(i,n){var e=i.contentComponent,o=i.pinchStartDistance,r=i.transformState.scale,a=i.setup,t=a.limitToBounds,s=a.centerZoomedOut,l=a.zoomAnimation,d=l.disabled,u=l.size;if(!(o===null||!e)){var f=Co(n,r,e);if(!(!Number.isFinite(f.x)||!Number.isFinite(f.y))){var m=ne(n),v=Po(i,m);if(v!==r){var p=Z(i,v),h=d||u===0||s,b=t&&h,y=$(i,f.x,f.y,v,p,b),P=y.x,w=y.y;i.pinchMidpoint=f,i.lastDistance=m,i.setTransformState(v,P,w)}}}},_o=function(i){var n=i.pinchMidpoint;i.velocity=null,i.lastDistance=null,i.pinchMidpoint=null,i.pinchStartScale=null,i.pinchStartDistance=null,Gi(i,n==null?void 0:n.x,n==null?void 0:n.y)},re=function(i,n){var e=i.props.onZoomStop,o=i.setup.doubleClick.animationTime;si(i.doubleClickStopEventTimer),i.doubleClickStopEventTimer=setTimeout(function(){i.doubleClickStopEventTimer=null,g(c(i),n,e)},o)},Wo=function(i,n){var e=i.props,o=e.onZoomStart,r=e.onZoom,a=i.setup.doubleClick,t=a.animationTime,s=a.animationType;g(c(i),n,o),ie(i,t,s,function(){return g(c(i),n,r)}),re(i,n)};function Do(i,n){var e=i.setup,o=i.doubleClickStopEventTimer,r=i.transformState,a=i.contentComponent,t=r.scale,s=i.props,l=s.onZoomStart,d=s.onZoom,u=e.doubleClick,f=u.disabled,m=u.mode,v=u.step,p=u.animationTime,h=u.animationType;if(!f&&!o){if(m==="reset")return Wo(i,n);if(!a)return console.error("No ContentComponent found");var b=m==="zoomOut"?-1:1,y=$i(i,b,v);if(t!==y){g(c(i),n,l);var P=oe(n,a,t),w=ui(i,y,P.x,P.y);if(!w)return console.error("Error during zoom event. New transformation state was not calculated.");g(c(i),n,d),A(i,w,p,h),re(i,n)}}}var Oo=function(i,n){var e=i.isInitialized,o=i.setup,r=i.wrapperComponent,a=o.doubleClick,t=a.disabled,s=a.excluded,l=n.target,d=r==null?void 0:r.contains(l),u=e&&l&&d&&!t;if(!u)return!1;var f=I(l,s);return!f},Zo=function(){function i(n){var e=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){e.initializeWindowEvents()},this.unmount=function(){e.cleanupWindowEvents()},this.update=function(o){Z(e,e.transformState.scale),e.setup=Pi(o)},this.initializeWindowEvents=function(){var o,r=ri(),a=(o=e.wrapperComponent)===null||o===void 0?void 0:o.ownerDocument,t=a==null?void 0:a.defaultView;t==null||t.addEventListener("mousedown",e.onPanningStart,r),t==null||t.addEventListener("mousemove",e.onPanning,r),t==null||t.addEventListener("mouseup",e.onPanningStop,r),a==null||a.addEventListener("mouseleave",e.clearPanning,r),t==null||t.addEventListener("keyup",e.setKeyUnPressed,r),t==null||t.addEventListener("keydown",e.setKeyPressed,r)},this.cleanupWindowEvents=function(){var o,r,a=ri(),t=(o=e.wrapperComponent)===null||o===void 0?void 0:o.ownerDocument,s=t==null?void 0:t.defaultView;s==null||s.removeEventListener("mousedown",e.onPanningStart,a),s==null||s.removeEventListener("mousemove",e.onPanning,a),s==null||s.removeEventListener("mouseup",e.onPanningStop,a),t==null||t.removeEventListener("mouseleave",e.clearPanning,a),s==null||s.removeEventListener("keyup",e.setKeyUnPressed,a),s==null||s.removeEventListener("keydown",e.setKeyPressed,a),document.removeEventListener("mouseleave",e.clearPanning,a),X(e),(r=e.observer)===null||r===void 0||r.disconnect()},this.handleInitializeWrapperEvents=function(o){var r=ri();o.addEventListener("wheel",e.onWheelZoom,r),o.addEventListener("dblclick",e.onDoubleClick,r),o.addEventListener("touchstart",e.onTouchPanningStart,r),o.addEventListener("touchmove",e.onTouchPanning,r),o.addEventListener("touchend",e.onTouchPanningStop,r)},this.handleInitialize=function(o){var r=e.setup.centerOnInit;e.applyTransformation(),e.onInitCallbacks.forEach(function(a){return a(c(e))}),r&&(e.setCenter(),e.observer=new ResizeObserver(function(){var a;e.onInitCallbacks.forEach(function(t){return t(c(e))}),e.setCenter(),(a=e.observer)===null||a===void 0||a.disconnect()}),e.observer.observe(o))},this.onWheelZoom=function(o){var r=e.setup.disabled;if(!r){var a=ho(e,o);if(a){var t=e.isPressingKeys(e.setup.wheel.activationKeys);t&&(Xo(e,o),No(e,o),zo(e,o))}}},this.onPanningStart=function(o){var r=e.setup.disabled,a=e.props.onPanningStart;if(!r){var t=gi(e,o);if(t){var s=e.isPressingKeys(e.setup.panning.activationKeys);s&&(o.preventDefault(),o.stopPropagation(),X(e),wi(e,o),g(c(e),o,a))}}},this.onPanning=function(o){var r=e.setup.disabled,a=e.props.onPanning;if(!r){var t=bi(e);if(t){var s=e.isPressingKeys(e.setup.panning.activationKeys);s&&(o.preventDefault(),o.stopPropagation(),yi(e,o.clientX,o.clientY),g(c(e),o,a))}}},this.onPanningStop=function(o){var r=e.props.onPanningStop;e.isPanning&&(oo(e),g(c(e),o,r))},this.onPinchStart=function(o){var r=e.setup.disabled,a=e.props,t=a.onPinchingStart,s=a.onZoomStart;if(!r){var l=wo(e,o);l&&(Ao(e,o),X(e),g(c(e),o,t),g(c(e),o,s))}},this.onPinch=function(o){var r=e.setup.disabled,a=e.props,t=a.onPinching,s=a.onZoom;if(!r){var l=yo(e);l&&(o.preventDefault(),o.stopPropagation(),Eo(e,o),g(c(e),o,t),g(c(e),o,s))}},this.onPinchStop=function(o){var r=e.props,a=r.onPinchingStop,t=r.onZoomStop;e.pinchStartScale&&(_o(e),g(c(e),o,a),g(c(e),o,t))},this.onTouchPanningStart=function(o){var r=e.setup.disabled,a=e.props.onPanningStart;if(!r){var t=gi(e,o);if(t){var s=e.lastTouch&&+new Date-e.lastTouch<200;if(s&&o.touches.length===1)e.onDoubleClick(o);else{e.lastTouch=+new Date,X(e);var l=o.touches,d=l.length===1,u=l.length===2;d&&(X(e),wi(e,o),g(c(e),o,a)),u&&e.onPinchStart(o)}}}},this.onTouchPanning=function(o){var r=e.setup.disabled,a=e.props.onPanning;if(e.isPanning&&o.touches.length===1){if(r)return;var t=bi(e);if(!t)return;o.preventDefault(),o.stopPropagation();var s=o.touches[0];yi(e,s.clientX,s.clientY),g(c(e),o,a)}else o.touches.length>1&&e.onPinch(o)},this.onTouchPanningStop=function(o){e.onPanningStop(o),e.onPinchStop(o)},this.onDoubleClick=function(o){var r=e.setup.disabled;if(!r){var a=Oo(e,o);a&&Do(e,o)}},this.clearPanning=function(o){e.isPanning&&e.onPanningStop(o)},this.setKeyPressed=function(o){e.pressedKeys[o.key]=!0},this.setKeyUnPressed=function(o){e.pressedKeys[o.key]=!1},this.isPressingKeys=function(o){return o.length?!!o.find(function(r){return e.pressedKeys[r]}):!0},this.setTransformState=function(o,r,a){var t=e.props.onTransformed;if(!Number.isNaN(o)&&!Number.isNaN(r)&&!Number.isNaN(a)){o!==e.transformState.scale&&(e.transformState.previousScale=e.transformState.scale,e.transformState.scale=o),e.transformState.positionX=r,e.transformState.positionY=a,e.applyTransformation();var s=c(e);e.onChangeCallbacks.forEach(function(l){return l(s)}),g(s,{scale:o,positionX:r,positionY:a},t)}else console.error("Detected NaN set state values")},this.setCenter=function(){if(e.wrapperComponent&&e.contentComponent){var o=ee(e.transformState.scale,e.wrapperComponent,e.contentComponent);e.setTransformState(o.scale,o.positionX,o.positionY)}},this.handleTransformStyles=function(o,r,a){return e.props.customTransform?e.props.customTransform(o,r,a):vo(o,r,a)},this.applyTransformation=function(){if(!(!e.mounted||!e.contentComponent)){var o=e.transformState,r=o.scale,a=o.positionX,t=o.positionY,s=e.handleTransformStyles(a,t,r);e.contentComponent.style.transform=s}},this.getContext=function(){return c(e)},this.onChange=function(o){return e.onChangeCallbacks.has(o)||e.onChangeCallbacks.add(o),function(){e.onChangeCallbacks.delete(o)}},this.onInit=function(o){return e.onInitCallbacks.has(o)||e.onInitCallbacks.add(o),function(){e.onInitCallbacks.delete(o)}},this.init=function(o,r){e.cleanupWindowEvents(),e.wrapperComponent=o,e.contentComponent=r,Z(e,e.transformState.scale),e.handleInitializeWrapperEvents(o),e.handleInitialize(r),e.initializeWindowEvents(),e.isInitialized=!0;var a=c(e);g(a,void 0,e.props.onInit)},this.props=n,this.setup=Pi(this.props),this.transformState=Ji(this.props)}return i}(),di=W.createContext(null),ko=function(i,n){return typeof i=="function"?i(n):i},Lo=W.forwardRef(function(i,n){var e=C.useRef(new Zo(i)).current,o=ko(i.children,ti(e));return C.useImperativeHandle(n,function(){return ti(e)},[e]),C.useEffect(function(){e.update(i)},[e,i]),W.createElement(di.Provider,{value:e},o)});W.forwardRef(function(i,n){var e=C.useRef(null),o=C.useContext(di);return C.useEffect(function(){return o.onChange(function(r){if(e.current){var a=0,t=0;e.current.style.transform=o.handleTransformStyles(a,t,1/r.instance.transformState.scale)}})},[o]),W.createElement("div",N({},i,{ref:po([e,n])}))});function Bo(i,n){n===void 0&&(n={});var e=n.insertAt;if(!(!i||typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}}var Mo=`.transform-component-module_wrapper__SPB86 { + position: relative; + width: -moz-fit-content; + width: fit-content; + height: -moz-fit-content; + height: fit-content; + overflow: hidden; + -webkit-touch-callout: none; /* iOS Safari */ + -webkit-user-select: none; /* Safari */ + -khtml-user-select: none; /* Konqueror HTML */ + -moz-user-select: none; /* Firefox */ + -ms-user-select: none; /* Internet Explorer/Edge */ + user-select: none; + margin: 0; + padding: 0; +} +.transform-component-module_content__FBWxo { + display: flex; + flex-wrap: wrap; + width: -moz-fit-content; + width: fit-content; + height: -moz-fit-content; + height: fit-content; + margin: 0; + padding: 0; + transform-origin: 0% 0%; +} +.transform-component-module_content__FBWxo img { + pointer-events: none; +} +`,Ti={wrapper:"transform-component-module_wrapper__SPB86",content:"transform-component-module_content__FBWxo"};Bo(Mo);var jo=function(i){var n=i.children,e=i.wrapperClass,o=e===void 0?"":e,r=i.contentClass,a=r===void 0?"":r,t=i.wrapperStyle,s=i.contentStyle,l=i.wrapperProps,d=l===void 0?{}:l,u=i.contentProps,f=u===void 0?{}:u,m=C.useContext(di).init,v=C.useRef(null),p=C.useRef(null);return C.useEffect(function(){var h=v.current,b=p.current;h!==null&&b!==null&&m&&m(h,b)},[]),W.createElement("div",N({},d,{ref:v,className:"react-transform-wrapper ".concat(Ti.wrapper," ").concat(o),style:t}),W.createElement("div",N({},f,{ref:p,className:"react-transform-component ".concat(Ti.content," ").concat(a),style:s}),n))};const Qo={title:"Demos/Controls",component:z,subcomponents:{Node:ge,Edge:be,MarkerArrow:Se,Arrow:we,Icon:ye,Label:Ce,Port:Pe,Remove:Te,Add:Ye}},K=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:450,width:450,position:"relative"},children:S.jsx(z,{pannable:!1,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),V=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:200,width:200,position:"relative"},children:S.jsx(z,{height:150,width:150,disabled:!0,fit:!0,pannable:!1,arrow:null,nodes:[{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"},{id:"1-4",from:"1",to:"4"}],onLayoutChange:i=>console.log("Layout",i)})}),F=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:450,width:450,position:"relative"},children:S.jsx(z,{pannable:!1,defaultPosition:null,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),Q=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:450,width:450,position:"relative"},children:S.jsx(z,{pannable:!1,defaultPosition:Xe.TOP,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),q=()=>S.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:S.jsx(z,{fit:!0,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),U=()=>{const[i,n]=C.useState(.7),e=C.useRef(null);return S.jsxs("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:[S.jsxs("pre",{style:{zIndex:9,position:"absolute",bottom:15,right:15,background:"rgba(0, 0, 0, .5)",padding:20,color:"white"},children:["Zoom: ",i,S.jsx("br",{}),S.jsx("button",{style:{display:"block",width:"100%",margin:"5px 0"},onClick:()=>e.current.zoomIn(),children:"Zoom In"}),S.jsx("button",{style:{display:"block",width:"100%",margin:"5px 0"},onClick:()=>e.current.zoomOut(),children:"Zoom Out"}),S.jsx("button",{style:{display:"block",width:"100%"},onClick:()=>e.current.fitCanvas(),children:"Fit"})]}),S.jsx(z,{maxZoom:.2,minZoom:-.9,zoom:i,ref:e,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onZoomChange:o=>{console.log("zooming",o),n(o)},onLayoutChange:o=>console.log("Layout",o)})]})},x=()=>{const i=C.useRef(null);return S.jsx(Lo,{wheel:{step:40},options:{maxScale:4,limitToBounds:!1},children:S.jsx(jo,{children:S.jsx(z,{ref:i,zoomable:!1,maxWidth:800,maxHeight:800,fit:!0,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}]})})})};var Yi,Xi,Ni;K.parameters={...K.parameters,docs:{...(Yi=K.parameters)==null?void 0:Yi.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(Ni=(Xi=K.parameters)==null?void 0:Xi.docs)==null?void 0:Ni.source}}};var zi,Ai,Ei;V.parameters={...V.parameters,docs:{...(zi=V.parameters)==null?void 0:zi.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(Ei=(Ai=V.parameters)==null?void 0:Ai.docs)==null?void 0:Ei.source}}};var _i,Wi,Di;F.parameters={...F.parameters,docs:{...(_i=F.parameters)==null?void 0:_i.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(Di=(Wi=F.parameters)==null?void 0:Wi.docs)==null?void 0:Di.source}}};var Oi,Zi,ki;Q.parameters={...Q.parameters,docs:{...(Oi=Q.parameters)==null?void 0:Oi.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(ki=(Zi=Q.parameters)==null?void 0:Zi.docs)==null?void 0:ki.source}}};var Li,Bi,Mi;q.parameters={...q.parameters,docs:{...(Li=q.parameters)==null?void 0:Li.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(Mi=(Bi=q.parameters)==null?void 0:Bi.docs)==null?void 0:Mi.source}}};var ji,Hi,Ri;U.parameters={...U.parameters,docs:{...(ji=U.parameters)==null?void 0:ji.docs,source:{originalSource:`() => { + const [zoom, setZoom] = useState(0.7); + const ref = useRef(null); + return
+
+        Zoom: {zoom}
+ + + +
+ { + console.log('zooming', z); + setZoom(z); + }} onLayoutChange={layout => console.log('Layout', layout)} /> +
; +}`,...(Ri=(Hi=U.parameters)==null?void 0:Hi.docs)==null?void 0:Ri.source}}};var Ki,Vi,Fi;x.parameters={...x.parameters,docs:{...(Ki=x.parameters)==null?void 0:Ki.docs,source:{originalSource:`() => { + const ref = useRef(null); + return + + + + ; +}`,...(Fi=(Vi=x.parameters)==null?void 0:Vi.docs)==null?void 0:Fi.source}}};const qo=["FixedPosition","Small","NonCentered","TopPosition","Fit","Zoom","ZoomExternal"];export{q as Fit,K as FixedPosition,F as NonCentered,V as Small,Q as TopPosition,U as Zoom,x as ZoomExternal,qo as __namedExportsOrder,Qo as default}; +//# sourceMappingURL=Controls.stories-aa0f23e4.js.map diff --git a/assets/Controls.stories-aa0f23e4.js.map b/assets/Controls.stories-aa0f23e4.js.map new file mode 100644 index 0000000..9475145 --- /dev/null +++ b/assets/Controls.stories-aa0f23e4.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Controls.stories-aa0f23e4.js","sources":["../../node_modules/react-zoom-pan-pinch/dist/index.esm.js"],"sourcesContent":["import React, { useRef, useImperativeHandle, useEffect, useContext, useLayoutEffect, useState, useCallback, useMemo } from 'react';\n\n/**\n * Rounds number to given decimal\n * eg. roundNumber(2.34343, 1) => 2.3\n */\nvar roundNumber = function (num, decimal) {\n return Number(num.toFixed(decimal));\n};\n/**\n * Checks if value is number, if not it returns default value\n * 1# eg. checkIsNumber(2, 30) => 2\n * 2# eg. checkIsNumber(null, 30) => 30\n */\nvar checkIsNumber = function (num, defaultValue) {\n return typeof num === \"number\" ? num : defaultValue;\n};\n\nvar handleCallback = function (context, event, callback) {\n if (callback && typeof callback === \"function\") {\n callback(context, event);\n }\n};\n\n/* eslint-disable no-plusplus */\n/* eslint-disable no-param-reassign */\n/**\n * Functions should return denominator of the target value, which is the next animation step.\n * t is a value from 0 to 1, reflecting the percentage of animation status.\n */\nvar easeOut = function (t) {\n return -Math.cos(t * Math.PI) / 2 + 0.5;\n};\n// linear\nvar linear = function (t) {\n return t;\n};\n// accelerating from zero velocity\nvar easeInQuad = function (t) {\n return t * t;\n};\n// decelerating to zero velocity\nvar easeOutQuad = function (t) {\n return t * (2 - t);\n};\n// acceleration until halfway, then deceleration\nvar easeInOutQuad = function (t) {\n return t < 0.5 ? 2 * t * t : -1 + (4 - 2 * t) * t;\n};\n// accelerating from zero velocity\nvar easeInCubic = function (t) {\n return t * t * t;\n};\n// decelerating to zero velocity\nvar easeOutCubic = function (t) {\n return --t * t * t + 1;\n};\n// acceleration until halfway, then deceleration\nvar easeInOutCubic = function (t) {\n return t < 0.5 ? 4 * t * t * t : (t - 1) * (2 * t - 2) * (2 * t - 2) + 1;\n};\n// accelerating from zero velocity\nvar easeInQuart = function (t) {\n return t * t * t * t;\n};\n// decelerating to zero velocity\nvar easeOutQuart = function (t) {\n return 1 - --t * t * t * t;\n};\n// acceleration until halfway, then deceleration\nvar easeInOutQuart = function (t) {\n return t < 0.5 ? 8 * t * t * t * t : 1 - 8 * --t * t * t * t;\n};\n// accelerating from zero velocity\nvar easeInQuint = function (t) {\n return t * t * t * t * t;\n};\n// decelerating to zero velocity\nvar easeOutQuint = function (t) {\n return 1 + --t * t * t * t * t;\n};\n// acceleration until halfway, then deceleration\nvar easeInOutQuint = function (t) {\n return t < 0.5 ? 16 * t * t * t * t * t : 1 + 16 * --t * t * t * t * t;\n};\nvar animations = {\n easeOut: easeOut,\n linear: linear,\n easeInQuad: easeInQuad,\n easeOutQuad: easeOutQuad,\n easeInOutQuad: easeInOutQuad,\n easeInCubic: easeInCubic,\n easeOutCubic: easeOutCubic,\n easeInOutCubic: easeInOutCubic,\n easeInQuart: easeInQuart,\n easeOutQuart: easeOutQuart,\n easeInOutQuart: easeInOutQuart,\n easeInQuint: easeInQuint,\n easeOutQuint: easeOutQuint,\n easeInOutQuint: easeInOutQuint,\n};\n\n/* eslint-disable no-param-reassign */\nvar handleCancelAnimationFrame = function (animation) {\n if (typeof animation === \"number\") {\n cancelAnimationFrame(animation);\n }\n};\nvar handleCancelAnimation = function (contextInstance) {\n if (!contextInstance.mounted)\n return;\n handleCancelAnimationFrame(contextInstance.animation);\n // Clear animation state\n contextInstance.animate = false;\n contextInstance.animation = null;\n contextInstance.velocity = null;\n};\nfunction handleSetupAnimation(contextInstance, animationName, animationTime, callback) {\n if (!contextInstance.mounted)\n return;\n var startTime = new Date().getTime();\n var lastStep = 1;\n // if another animation is active\n handleCancelAnimation(contextInstance);\n // new animation\n contextInstance.animation = function () {\n if (!contextInstance.mounted) {\n return handleCancelAnimationFrame(contextInstance.animation);\n }\n var frameTime = new Date().getTime() - startTime;\n var animationProgress = frameTime / animationTime;\n var animationType = animations[animationName];\n var step = animationType(animationProgress);\n if (frameTime >= animationTime) {\n callback(lastStep);\n contextInstance.animation = null;\n }\n else if (contextInstance.animation) {\n callback(step);\n requestAnimationFrame(contextInstance.animation);\n }\n };\n requestAnimationFrame(contextInstance.animation);\n}\nfunction isValidTargetState(targetState) {\n var scale = targetState.scale, positionX = targetState.positionX, positionY = targetState.positionY;\n if (Number.isNaN(scale) ||\n Number.isNaN(positionX) ||\n Number.isNaN(positionY)) {\n return false;\n }\n return true;\n}\nfunction animate(contextInstance, targetState, animationTime, animationName) {\n var isValid = isValidTargetState(targetState);\n if (!contextInstance.mounted || !isValid)\n return;\n var setTransformState = contextInstance.setTransformState;\n var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n var scaleDiff = targetState.scale - scale;\n var positionXDiff = targetState.positionX - positionX;\n var positionYDiff = targetState.positionY - positionY;\n if (animationTime === 0) {\n setTransformState(targetState.scale, targetState.positionX, targetState.positionY);\n }\n else {\n // animation start timestamp\n handleSetupAnimation(contextInstance, animationName, animationTime, function (step) {\n var newScale = scale + scaleDiff * step;\n var newPositionX = positionX + positionXDiff * step;\n var newPositionY = positionY + positionYDiff * step;\n setTransformState(newScale, newPositionX, newPositionY);\n });\n }\n}\n\n/* eslint-disable no-param-reassign */\nfunction getComponentsSizes(wrapperComponent, contentComponent, newScale) {\n var wrapperWidth = wrapperComponent.offsetWidth;\n var wrapperHeight = wrapperComponent.offsetHeight;\n var contentWidth = contentComponent.offsetWidth;\n var contentHeight = contentComponent.offsetHeight;\n var newContentWidth = contentWidth * newScale;\n var newContentHeight = contentHeight * newScale;\n var newDiffWidth = wrapperWidth - newContentWidth;\n var newDiffHeight = wrapperHeight - newContentHeight;\n return {\n wrapperWidth: wrapperWidth,\n wrapperHeight: wrapperHeight,\n newContentWidth: newContentWidth,\n newDiffWidth: newDiffWidth,\n newContentHeight: newContentHeight,\n newDiffHeight: newDiffHeight,\n };\n}\nvar getBounds = function (wrapperWidth, newContentWidth, diffWidth, wrapperHeight, newContentHeight, diffHeight, centerZoomedOut) {\n var scaleWidthFactor = wrapperWidth > newContentWidth\n ? diffWidth * (centerZoomedOut ? 1 : 0.5)\n : 0;\n var scaleHeightFactor = wrapperHeight > newContentHeight\n ? diffHeight * (centerZoomedOut ? 1 : 0.5)\n : 0;\n var minPositionX = wrapperWidth - newContentWidth - scaleWidthFactor;\n var maxPositionX = scaleWidthFactor;\n var minPositionY = wrapperHeight - newContentHeight - scaleHeightFactor;\n var maxPositionY = scaleHeightFactor;\n return { minPositionX: minPositionX, maxPositionX: maxPositionX, minPositionY: minPositionY, maxPositionY: maxPositionY };\n};\nvar calculateBounds = function (contextInstance, newScale) {\n var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;\n var centerZoomedOut = contextInstance.setup.centerZoomedOut;\n if (!wrapperComponent || !contentComponent) {\n throw new Error(\"Components are not mounted\");\n }\n var _a = getComponentsSizes(wrapperComponent, contentComponent, newScale), wrapperWidth = _a.wrapperWidth, wrapperHeight = _a.wrapperHeight, newContentWidth = _a.newContentWidth, newDiffWidth = _a.newDiffWidth, newContentHeight = _a.newContentHeight, newDiffHeight = _a.newDiffHeight;\n var bounds = getBounds(wrapperWidth, newContentWidth, newDiffWidth, wrapperHeight, newContentHeight, newDiffHeight, Boolean(centerZoomedOut));\n return bounds;\n};\n/**\n * Keeps value between given bounds, used for limiting view to given boundaries\n * 1# eg. boundLimiter(2, 0, 3, true) => 2\n * 2# eg. boundLimiter(4, 0, 3, true) => 3\n * 3# eg. boundLimiter(-2, 0, 3, true) => 0\n * 4# eg. boundLimiter(10, 0, 3, false) => 10\n */\nvar boundLimiter = function (value, minBound, maxBound, isActive) {\n if (!isActive)\n return roundNumber(value, 2);\n if (value < minBound)\n return roundNumber(minBound, 2);\n if (value > maxBound)\n return roundNumber(maxBound, 2);\n return roundNumber(value, 2);\n};\nvar handleCalculateBounds = function (contextInstance, newScale) {\n var bounds = calculateBounds(contextInstance, newScale);\n // Save bounds\n contextInstance.bounds = bounds;\n return bounds;\n};\nfunction getMouseBoundedPosition(positionX, positionY, bounds, limitToBounds, paddingValueX, paddingValueY, wrapperComponent) {\n var minPositionX = bounds.minPositionX, minPositionY = bounds.minPositionY, maxPositionX = bounds.maxPositionX, maxPositionY = bounds.maxPositionY;\n var paddingX = 0;\n var paddingY = 0;\n if (wrapperComponent) {\n paddingX = paddingValueX;\n paddingY = paddingValueY;\n }\n var x = boundLimiter(positionX, minPositionX - paddingX, maxPositionX + paddingX, limitToBounds);\n var y = boundLimiter(positionY, minPositionY - paddingY, maxPositionY + paddingY, limitToBounds);\n return { x: x, y: y };\n}\n\nfunction handleCalculateZoomPositions(contextInstance, mouseX, mouseY, newScale, bounds, limitToBounds) {\n var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n var scaleDifference = newScale - scale;\n if (typeof mouseX !== \"number\" || typeof mouseY !== \"number\") {\n console.error(\"Mouse X and Y position were not provided!\");\n return { x: positionX, y: positionY };\n }\n var calculatedPositionX = positionX - mouseX * scaleDifference;\n var calculatedPositionY = positionY - mouseY * scaleDifference;\n // do not limit to bounds when there is padding animation,\n // it causes animation strange behaviour\n var newPositions = getMouseBoundedPosition(calculatedPositionX, calculatedPositionY, bounds, limitToBounds, 0, 0, null);\n return newPositions;\n}\nfunction checkZoomBounds(zoom, minScale, maxScale, zoomPadding, enablePadding) {\n var scalePadding = enablePadding ? zoomPadding : 0;\n var minScaleWithPadding = minScale - scalePadding;\n if (!Number.isNaN(maxScale) && zoom >= maxScale)\n return maxScale;\n if (!Number.isNaN(minScale) && zoom <= minScaleWithPadding)\n return minScaleWithPadding;\n return zoom;\n}\n\nvar isPanningStartAllowed = function (contextInstance, event) {\n var excluded = contextInstance.setup.panning.excluded;\n var isInitialized = contextInstance.isInitialized, wrapperComponent = contextInstance.wrapperComponent;\n var target = event.target;\n var isWrapperChild = wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.contains(target);\n var isAllowed = isInitialized && target && isWrapperChild;\n if (!isAllowed)\n return false;\n var isExcluded = isExcludedNode(target, excluded);\n if (isExcluded)\n return false;\n return true;\n};\nvar isPanningAllowed = function (contextInstance) {\n var isInitialized = contextInstance.isInitialized, isPanning = contextInstance.isPanning, setup = contextInstance.setup;\n var disabled = setup.panning.disabled;\n var isAllowed = isInitialized && isPanning && !disabled;\n if (!isAllowed)\n return false;\n return true;\n};\nvar handlePanningSetup = function (contextInstance, event) {\n var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY;\n contextInstance.isPanning = true;\n // Panning with mouse\n var x = event.clientX;\n var y = event.clientY;\n contextInstance.startCoords = { x: x - positionX, y: y - positionY };\n};\nvar handleTouchPanningSetup = function (contextInstance, event) {\n var touches = event.touches;\n var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY;\n contextInstance.isPanning = true;\n // Panning with touch\n var oneFingerTouch = touches.length === 1;\n if (oneFingerTouch) {\n var x = touches[0].clientX;\n var y = touches[0].clientY;\n contextInstance.startCoords = { x: x - positionX, y: y - positionY };\n }\n};\nfunction handlePanToBounds(contextInstance) {\n var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY, scale = _a.scale;\n var _b = contextInstance.setup, disabled = _b.disabled, limitToBounds = _b.limitToBounds, centerZoomedOut = _b.centerZoomedOut;\n var wrapperComponent = contextInstance.wrapperComponent;\n if (disabled || !wrapperComponent || !contextInstance.bounds)\n return;\n var _c = contextInstance.bounds, maxPositionX = _c.maxPositionX, minPositionX = _c.minPositionX, maxPositionY = _c.maxPositionY, minPositionY = _c.minPositionY;\n var xChanged = positionX > maxPositionX || positionX < minPositionX;\n var yChanged = positionY > maxPositionY || positionY < minPositionY;\n var mousePosX = positionX > maxPositionX\n ? wrapperComponent.offsetWidth\n : contextInstance.setup.minPositionX || 0;\n var mousePosY = positionY > maxPositionY\n ? wrapperComponent.offsetHeight\n : contextInstance.setup.minPositionY || 0;\n var _d = handleCalculateZoomPositions(contextInstance, mousePosX, mousePosY, scale, contextInstance.bounds, limitToBounds || centerZoomedOut), x = _d.x, y = _d.y;\n return {\n scale: scale,\n positionX: xChanged ? x : positionX,\n positionY: yChanged ? y : positionY,\n };\n}\nfunction handleNewPosition(contextInstance, newPositionX, newPositionY, paddingValueX, paddingValueY) {\n var limitToBounds = contextInstance.setup.limitToBounds;\n var wrapperComponent = contextInstance.wrapperComponent, bounds = contextInstance.bounds;\n var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n if (wrapperComponent === null ||\n bounds === null ||\n (newPositionX === positionX && newPositionY === positionY)) {\n return;\n }\n var _b = getMouseBoundedPosition(newPositionX, newPositionY, bounds, limitToBounds, paddingValueX, paddingValueY, wrapperComponent), x = _b.x, y = _b.y;\n contextInstance.setTransformState(scale, x, y);\n}\nvar getPanningClientPosition = function (contextInstance, clientX, clientY) {\n var startCoords = contextInstance.startCoords, transformState = contextInstance.transformState;\n var panning = contextInstance.setup.panning;\n var lockAxisX = panning.lockAxisX, lockAxisY = panning.lockAxisY;\n var positionX = transformState.positionX, positionY = transformState.positionY;\n if (!startCoords) {\n return { x: positionX, y: positionY };\n }\n var mouseX = clientX - startCoords.x;\n var mouseY = clientY - startCoords.y;\n var newPositionX = lockAxisX ? positionX : mouseX;\n var newPositionY = lockAxisY ? positionY : mouseY;\n return { x: newPositionX, y: newPositionY };\n};\nvar getPaddingValue = function (contextInstance, size) {\n var setup = contextInstance.setup, transformState = contextInstance.transformState;\n var scale = transformState.scale;\n var minScale = setup.minScale, disablePadding = setup.disablePadding;\n if (size > 0 && scale >= minScale && !disablePadding) {\n return size;\n }\n return 0;\n};\n\nvar isVelocityCalculationAllowed = function (contextInstance) {\n var mounted = contextInstance.mounted;\n var _a = contextInstance.setup, disabled = _a.disabled, velocityAnimation = _a.velocityAnimation;\n var scale = contextInstance.transformState.scale;\n var disabledVelocity = velocityAnimation.disabled;\n var isAllowed = !disabledVelocity || scale > 1 || !disabled || mounted;\n if (!isAllowed)\n return false;\n return true;\n};\nvar isVelocityAllowed = function (contextInstance) {\n var mounted = contextInstance.mounted, velocity = contextInstance.velocity, bounds = contextInstance.bounds;\n var _a = contextInstance.setup, disabled = _a.disabled, velocityAnimation = _a.velocityAnimation;\n var scale = contextInstance.transformState.scale;\n var disabledVelocity = velocityAnimation.disabled;\n var isAllowed = !disabledVelocity || scale > 1 || !disabled || mounted;\n if (!isAllowed)\n return false;\n if (!velocity || !bounds)\n return false;\n return true;\n};\nfunction getVelocityMoveTime(contextInstance, velocity) {\n var velocityAnimation = contextInstance.setup.velocityAnimation;\n var equalToMove = velocityAnimation.equalToMove, animationTime = velocityAnimation.animationTime, sensitivity = velocityAnimation.sensitivity;\n if (equalToMove) {\n return animationTime * velocity * sensitivity;\n }\n return animationTime;\n}\nfunction getVelocityPosition(newPosition, startPosition, currentPosition, isLocked, limitToBounds, minPosition, maxPosition, minTarget, maxTarget, step) {\n if (limitToBounds) {\n if (startPosition > maxPosition && currentPosition > maxPosition) {\n var calculatedPosition = maxPosition + (newPosition - maxPosition) * step;\n if (calculatedPosition > maxTarget)\n return maxTarget;\n if (calculatedPosition < maxPosition)\n return maxPosition;\n return calculatedPosition;\n }\n if (startPosition < minPosition && currentPosition < minPosition) {\n var calculatedPosition = minPosition + (newPosition - minPosition) * step;\n if (calculatedPosition < minTarget)\n return minTarget;\n if (calculatedPosition > minPosition)\n return minPosition;\n return calculatedPosition;\n }\n }\n if (isLocked)\n return startPosition;\n return boundLimiter(newPosition, minPosition, maxPosition, limitToBounds);\n}\n\nfunction getSizeMultiplier(wrapperComponent, equalToMove) {\n var defaultMultiplier = 1;\n if (equalToMove) {\n return Math.min(defaultMultiplier, wrapperComponent.offsetWidth / window.innerWidth);\n }\n return defaultMultiplier;\n}\nfunction handleCalculateVelocity(contextInstance, position) {\n var isAllowed = isVelocityCalculationAllowed(contextInstance);\n if (!isAllowed) {\n return;\n }\n var lastMousePosition = contextInstance.lastMousePosition, velocityTime = contextInstance.velocityTime, setup = contextInstance.setup;\n var wrapperComponent = contextInstance.wrapperComponent;\n var equalToMove = setup.velocityAnimation.equalToMove;\n var now = Date.now();\n if (lastMousePosition && velocityTime && wrapperComponent) {\n var sizeMultiplier = getSizeMultiplier(wrapperComponent, equalToMove);\n var distanceX = position.x - lastMousePosition.x;\n var distanceY = position.y - lastMousePosition.y;\n var velocityX = distanceX / sizeMultiplier;\n var velocityY = distanceY / sizeMultiplier;\n var interval = now - velocityTime;\n var speed = distanceX * distanceX + distanceY * distanceY;\n var velocity = Math.sqrt(speed) / interval;\n contextInstance.velocity = { velocityX: velocityX, velocityY: velocityY, total: velocity };\n }\n contextInstance.lastMousePosition = position;\n contextInstance.velocityTime = now;\n}\nfunction handleVelocityPanning(contextInstance) {\n var velocity = contextInstance.velocity, bounds = contextInstance.bounds, setup = contextInstance.setup, wrapperComponent = contextInstance.wrapperComponent;\n var isAllowed = isVelocityAllowed(contextInstance);\n if (!isAllowed || !velocity || !bounds || !wrapperComponent) {\n return;\n }\n var velocityX = velocity.velocityX, velocityY = velocity.velocityY, total = velocity.total;\n var maxPositionX = bounds.maxPositionX, minPositionX = bounds.minPositionX, maxPositionY = bounds.maxPositionY, minPositionY = bounds.minPositionY;\n var limitToBounds = setup.limitToBounds, alignmentAnimation = setup.alignmentAnimation;\n var zoomAnimation = setup.zoomAnimation, panning = setup.panning;\n var lockAxisY = panning.lockAxisY, lockAxisX = panning.lockAxisX;\n var animationType = zoomAnimation.animationType;\n var sizeX = alignmentAnimation.sizeX, sizeY = alignmentAnimation.sizeY, velocityAlignmentTime = alignmentAnimation.velocityAlignmentTime;\n var alignAnimationTime = velocityAlignmentTime;\n var moveAnimationTime = getVelocityMoveTime(contextInstance, total);\n var finalAnimationTime = Math.max(moveAnimationTime, alignAnimationTime);\n var paddingValueX = getPaddingValue(contextInstance, sizeX);\n var paddingValueY = getPaddingValue(contextInstance, sizeY);\n var paddingX = (paddingValueX * wrapperComponent.offsetWidth) / 100;\n var paddingY = (paddingValueY * wrapperComponent.offsetHeight) / 100;\n var maxTargetX = maxPositionX + paddingX;\n var minTargetX = minPositionX - paddingX;\n var maxTargetY = maxPositionY + paddingY;\n var minTargetY = minPositionY - paddingY;\n var startState = contextInstance.transformState;\n var startTime = new Date().getTime();\n handleSetupAnimation(contextInstance, animationType, finalAnimationTime, function (step) {\n var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n var frameTime = new Date().getTime() - startTime;\n var animationProgress = frameTime / alignAnimationTime;\n var alignAnimation = animations[alignmentAnimation.animationType];\n var alignStep = 1 - alignAnimation(Math.min(1, animationProgress));\n var customStep = 1 - step;\n var newPositionX = positionX + velocityX * customStep;\n var newPositionY = positionY + velocityY * customStep;\n var currentPositionX = getVelocityPosition(newPositionX, startState.positionX, positionX, lockAxisX, limitToBounds, minPositionX, maxPositionX, minTargetX, maxTargetX, alignStep);\n var currentPositionY = getVelocityPosition(newPositionY, startState.positionY, positionY, lockAxisY, limitToBounds, minPositionY, maxPositionY, minTargetY, maxTargetY, alignStep);\n if (positionX !== newPositionX || positionY !== newPositionY) {\n contextInstance.setTransformState(scale, currentPositionX, currentPositionY);\n }\n });\n}\n\nfunction handlePanningStart(contextInstance, event) {\n var scale = contextInstance.transformState.scale;\n handleCancelAnimation(contextInstance);\n handleCalculateBounds(contextInstance, scale);\n if (window.TouchEvent !== undefined && event instanceof TouchEvent) {\n handleTouchPanningSetup(contextInstance, event);\n }\n else {\n handlePanningSetup(contextInstance, event);\n }\n}\nfunction handleAlignToBounds(contextInstance) {\n var scale = contextInstance.transformState.scale;\n var _a = contextInstance.setup, minScale = _a.minScale, alignmentAnimation = _a.alignmentAnimation;\n var disabled = alignmentAnimation.disabled, sizeX = alignmentAnimation.sizeX, sizeY = alignmentAnimation.sizeY, animationTime = alignmentAnimation.animationTime, animationType = alignmentAnimation.animationType;\n var isDisabled = disabled || scale < minScale || (!sizeX && !sizeY);\n if (isDisabled)\n return;\n var targetState = handlePanToBounds(contextInstance);\n if (targetState) {\n animate(contextInstance, targetState, animationTime, animationType);\n }\n}\nfunction handlePanning(contextInstance, clientX, clientY) {\n var startCoords = contextInstance.startCoords, setup = contextInstance.setup;\n var _a = setup.alignmentAnimation, sizeX = _a.sizeX, sizeY = _a.sizeY;\n if (!startCoords)\n return;\n var _b = getPanningClientPosition(contextInstance, clientX, clientY), x = _b.x, y = _b.y;\n var paddingValueX = getPaddingValue(contextInstance, sizeX);\n var paddingValueY = getPaddingValue(contextInstance, sizeY);\n handleCalculateVelocity(contextInstance, { x: x, y: y });\n handleNewPosition(contextInstance, x, y, paddingValueX, paddingValueY);\n}\nfunction handlePanningEnd(contextInstance) {\n if (contextInstance.isPanning) {\n var velocityDisabled = contextInstance.setup.panning.velocityDisabled;\n var velocity = contextInstance.velocity, wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;\n contextInstance.isPanning = false;\n contextInstance.animate = false;\n contextInstance.animation = null;\n var wrapperRect = wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.getBoundingClientRect();\n var contentRect = contentComponent === null || contentComponent === void 0 ? void 0 : contentComponent.getBoundingClientRect();\n var wrapperWidth = (wrapperRect === null || wrapperRect === void 0 ? void 0 : wrapperRect.width) || 0;\n var wrapperHeight = (wrapperRect === null || wrapperRect === void 0 ? void 0 : wrapperRect.height) || 0;\n var contentWidth = (contentRect === null || contentRect === void 0 ? void 0 : contentRect.width) || 0;\n var contentHeight = (contentRect === null || contentRect === void 0 ? void 0 : contentRect.height) || 0;\n var isZoomed = wrapperWidth < contentWidth || wrapperHeight < contentHeight;\n var shouldAnimate = !velocityDisabled && velocity && (velocity === null || velocity === void 0 ? void 0 : velocity.total) > 0.1 && isZoomed;\n if (shouldAnimate) {\n handleVelocityPanning(contextInstance);\n }\n else {\n handleAlignToBounds(contextInstance);\n }\n }\n}\n\nfunction handleZoomToPoint(contextInstance, scale, mouseX, mouseY) {\n var _a = contextInstance.setup, minScale = _a.minScale, maxScale = _a.maxScale, limitToBounds = _a.limitToBounds;\n var newScale = checkZoomBounds(roundNumber(scale, 2), minScale, maxScale, 0, false);\n var bounds = handleCalculateBounds(contextInstance, newScale);\n var _b = handleCalculateZoomPositions(contextInstance, mouseX, mouseY, newScale, bounds, limitToBounds), x = _b.x, y = _b.y;\n return { scale: newScale, positionX: x, positionY: y };\n}\nfunction handleAlignToScaleBounds(contextInstance, mousePositionX, mousePositionY) {\n var scale = contextInstance.transformState.scale;\n var wrapperComponent = contextInstance.wrapperComponent;\n var _a = contextInstance.setup, minScale = _a.minScale, limitToBounds = _a.limitToBounds, zoomAnimation = _a.zoomAnimation;\n var disabled = zoomAnimation.disabled, animationTime = zoomAnimation.animationTime, animationType = zoomAnimation.animationType;\n var isDisabled = disabled || scale >= minScale;\n if (scale >= 1 || limitToBounds) {\n // fire fit to bounds animation\n handleAlignToBounds(contextInstance);\n }\n if (isDisabled || !wrapperComponent || !contextInstance.mounted)\n return;\n var mouseX = mousePositionX || wrapperComponent.offsetWidth / 2;\n var mouseY = mousePositionY || wrapperComponent.offsetHeight / 2;\n var targetState = handleZoomToPoint(contextInstance, minScale, mouseX, mouseY);\n if (targetState) {\n animate(contextInstance, targetState, animationTime, animationType);\n }\n}\n\n/******************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n\r\nvar __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n };\r\n return __assign.apply(this, arguments);\r\n};\r\n\r\nfunction __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nfunction __spreadArray(to, from, pack) {\r\n if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {\r\n if (ar || !(i in from)) {\r\n if (!ar) ar = Array.prototype.slice.call(from, 0, i);\r\n ar[i] = from[i];\r\n }\r\n }\r\n return to.concat(ar || Array.prototype.slice.call(from));\r\n}\n\nvar initialState = {\n previousScale: 1,\n scale: 1,\n positionX: 0,\n positionY: 0,\n};\nvar initialSetup = {\n disabled: false,\n minPositionX: null,\n maxPositionX: null,\n minPositionY: null,\n maxPositionY: null,\n minScale: 1,\n maxScale: 8,\n limitToBounds: true,\n centerZoomedOut: false,\n centerOnInit: false,\n disablePadding: false,\n smooth: true,\n wheel: {\n step: 0.2,\n disabled: false,\n smoothStep: 0.001,\n wheelDisabled: false,\n touchPadDisabled: false,\n activationKeys: [],\n excluded: [],\n },\n panning: {\n disabled: false,\n velocityDisabled: false,\n lockAxisX: false,\n lockAxisY: false,\n activationKeys: [],\n excluded: [],\n },\n pinch: {\n step: 5,\n disabled: false,\n excluded: [],\n },\n doubleClick: {\n disabled: false,\n step: 0.7,\n mode: \"zoomIn\",\n animationType: \"easeOut\",\n animationTime: 200,\n excluded: [],\n },\n zoomAnimation: {\n disabled: false,\n size: 0.4,\n animationTime: 200,\n animationType: \"easeOut\",\n },\n alignmentAnimation: {\n disabled: false,\n sizeX: 100,\n sizeY: 100,\n animationTime: 200,\n velocityAlignmentTime: 400,\n animationType: \"easeOut\",\n },\n velocityAnimation: {\n disabled: false,\n sensitivity: 1,\n animationTime: 400,\n animationType: \"easeOut\",\n equalToMove: true,\n },\n};\n\nvar createState = function (props) {\n var _a, _b, _c, _d;\n return {\n previousScale: (_a = props.initialScale) !== null && _a !== void 0 ? _a : initialState.scale,\n scale: (_b = props.initialScale) !== null && _b !== void 0 ? _b : initialState.scale,\n positionX: (_c = props.initialPositionX) !== null && _c !== void 0 ? _c : initialState.positionX,\n positionY: (_d = props.initialPositionY) !== null && _d !== void 0 ? _d : initialState.positionY,\n };\n};\nvar createSetup = function (props) {\n var newSetup = __assign({}, initialSetup);\n Object.keys(props).forEach(function (key) {\n var validValue = typeof props[key] !== \"undefined\";\n var validParameter = typeof initialSetup[key] !== \"undefined\";\n if (validParameter && validValue) {\n var dataType = Object.prototype.toString.call(initialSetup[key]);\n var isObject = dataType === \"[object Object]\";\n var isArray = dataType === \"[object Array]\";\n if (isObject) {\n newSetup[key] = __assign(__assign({}, initialSetup[key]), props[key]);\n }\n else if (isArray) {\n newSetup[key] = __spreadArray(__spreadArray([], initialSetup[key], true), props[key], true);\n }\n else {\n newSetup[key] = props[key];\n }\n }\n });\n return newSetup;\n};\n\nvar handleCalculateButtonZoom = function (contextInstance, delta, step) {\n var scale = contextInstance.transformState.scale;\n var wrapperComponent = contextInstance.wrapperComponent, setup = contextInstance.setup;\n var maxScale = setup.maxScale, minScale = setup.minScale, zoomAnimation = setup.zoomAnimation, smooth = setup.smooth;\n var size = zoomAnimation.size;\n if (!wrapperComponent) {\n throw new Error(\"Wrapper is not mounted\");\n }\n var targetScale = smooth\n ? scale * Math.exp(delta * step)\n : scale + delta * step;\n var newScale = checkZoomBounds(roundNumber(targetScale, 3), minScale, maxScale, size, false);\n return newScale;\n};\nfunction handleZoomToViewCenter(contextInstance, delta, step, animationTime, animationType) {\n var wrapperComponent = contextInstance.wrapperComponent;\n var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n if (!wrapperComponent)\n return console.error(\"No WrapperComponent found\");\n var wrapperWidth = wrapperComponent.offsetWidth;\n var wrapperHeight = wrapperComponent.offsetHeight;\n var mouseX = (wrapperWidth / 2 - positionX) / scale;\n var mouseY = (wrapperHeight / 2 - positionY) / scale;\n var newScale = handleCalculateButtonZoom(contextInstance, delta, step);\n var targetState = handleZoomToPoint(contextInstance, newScale, mouseX, mouseY);\n if (!targetState) {\n return console.error(\"Error during zoom event. New transformation state was not calculated.\");\n }\n animate(contextInstance, targetState, animationTime, animationType);\n}\nfunction resetTransformations(contextInstance, animationTime, animationType, onResetTransformation) {\n var setup = contextInstance.setup, wrapperComponent = contextInstance.wrapperComponent;\n var limitToBounds = setup.limitToBounds;\n var initialTransformation = createState(contextInstance.props);\n var _a = contextInstance.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n if (!wrapperComponent)\n return;\n var newBounds = calculateBounds(contextInstance, initialTransformation.scale);\n var boundedPositions = getMouseBoundedPosition(initialTransformation.positionX, initialTransformation.positionY, newBounds, limitToBounds, 0, 0, wrapperComponent);\n var newState = {\n scale: initialTransformation.scale,\n positionX: boundedPositions.x,\n positionY: boundedPositions.y,\n };\n if (scale === initialTransformation.scale &&\n positionX === initialTransformation.positionX &&\n positionY === initialTransformation.positionY) {\n return;\n }\n onResetTransformation === null || onResetTransformation === void 0 ? void 0 : onResetTransformation();\n animate(contextInstance, newState, animationTime, animationType);\n}\nfunction getOffset(element, wrapper, content, state) {\n var offset = element.getBoundingClientRect();\n var wrapperOffset = wrapper.getBoundingClientRect();\n var contentOffset = content.getBoundingClientRect();\n var xOff = wrapperOffset.x * state.scale;\n var yOff = wrapperOffset.y * state.scale;\n return {\n x: (offset.x - contentOffset.x + xOff) / state.scale,\n y: (offset.y - contentOffset.y + yOff) / state.scale,\n };\n}\nfunction calculateZoomToNode(contextInstance, node, customZoom) {\n var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent, transformState = contextInstance.transformState;\n var _a = contextInstance.setup, limitToBounds = _a.limitToBounds, minScale = _a.minScale, maxScale = _a.maxScale;\n if (!wrapperComponent || !contentComponent)\n return transformState;\n var wrapperRect = wrapperComponent.getBoundingClientRect();\n var nodeRect = node.getBoundingClientRect();\n var nodeOffset = getOffset(node, wrapperComponent, contentComponent, transformState);\n var nodeLeft = nodeOffset.x;\n var nodeTop = nodeOffset.y;\n var nodeWidth = nodeRect.width / transformState.scale;\n var nodeHeight = nodeRect.height / transformState.scale;\n var scaleX = wrapperComponent.offsetWidth / nodeWidth;\n var scaleY = wrapperComponent.offsetHeight / nodeHeight;\n var newScale = checkZoomBounds(customZoom || Math.min(scaleX, scaleY), minScale, maxScale, 0, false);\n var offsetX = (wrapperRect.width - nodeWidth * newScale) / 2;\n var offsetY = (wrapperRect.height - nodeHeight * newScale) / 2;\n var newPositionX = (wrapperRect.left - nodeLeft) * newScale + offsetX;\n var newPositionY = (wrapperRect.top - nodeTop) * newScale + offsetY;\n var bounds = calculateBounds(contextInstance, newScale);\n var _b = getMouseBoundedPosition(newPositionX, newPositionY, bounds, limitToBounds, 0, 0, wrapperComponent), x = _b.x, y = _b.y;\n return { positionX: x, positionY: y, scale: newScale };\n}\n\nvar zoomIn = function (contextInstance) {\n return function (step, animationTime, animationType) {\n if (step === void 0) { step = 0.5; }\n if (animationTime === void 0) { animationTime = 300; }\n if (animationType === void 0) { animationType = \"easeOut\"; }\n handleZoomToViewCenter(contextInstance, 1, step, animationTime, animationType);\n };\n};\nvar zoomOut = function (contextInstance) {\n return function (step, animationTime, animationType) {\n if (step === void 0) { step = 0.5; }\n if (animationTime === void 0) { animationTime = 300; }\n if (animationType === void 0) { animationType = \"easeOut\"; }\n handleZoomToViewCenter(contextInstance, -1, step, animationTime, animationType);\n };\n};\nvar setTransform = function (contextInstance) {\n return function (newPositionX, newPositionY, newScale, animationTime, animationType) {\n if (animationTime === void 0) { animationTime = 300; }\n if (animationType === void 0) { animationType = \"easeOut\"; }\n var _a = contextInstance.transformState, positionX = _a.positionX, positionY = _a.positionY, scale = _a.scale;\n var wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;\n var disabled = contextInstance.setup.disabled;\n if (disabled || !wrapperComponent || !contentComponent)\n return;\n var targetState = {\n positionX: Number.isNaN(newPositionX) ? positionX : newPositionX,\n positionY: Number.isNaN(newPositionY) ? positionY : newPositionY,\n scale: Number.isNaN(newScale) ? scale : newScale,\n };\n animate(contextInstance, targetState, animationTime, animationType);\n };\n};\nvar resetTransform = function (contextInstance) {\n return function (animationTime, animationType) {\n if (animationTime === void 0) { animationTime = 200; }\n if (animationType === void 0) { animationType = \"easeOut\"; }\n resetTransformations(contextInstance, animationTime, animationType);\n };\n};\nvar centerView = function (contextInstance) {\n return function (scale, animationTime, animationType) {\n if (animationTime === void 0) { animationTime = 200; }\n if (animationType === void 0) { animationType = \"easeOut\"; }\n var transformState = contextInstance.transformState, wrapperComponent = contextInstance.wrapperComponent, contentComponent = contextInstance.contentComponent;\n if (wrapperComponent && contentComponent) {\n var targetState = getCenterPosition(scale || transformState.scale, wrapperComponent, contentComponent);\n animate(contextInstance, targetState, animationTime, animationType);\n }\n };\n};\nvar zoomToElement = function (contextInstance) {\n return function (node, scale, animationTime, animationType) {\n if (animationTime === void 0) { animationTime = 600; }\n if (animationType === void 0) { animationType = \"easeOut\"; }\n handleCancelAnimation(contextInstance);\n var wrapperComponent = contextInstance.wrapperComponent;\n var target = typeof node === \"string\" ? document.getElementById(node) : node;\n if (wrapperComponent && target && wrapperComponent.contains(target)) {\n var targetState = calculateZoomToNode(contextInstance, target, scale);\n animate(contextInstance, targetState, animationTime, animationType);\n }\n };\n};\n\nvar getControls = function (contextInstance) {\n return {\n instance: contextInstance,\n zoomIn: zoomIn(contextInstance),\n zoomOut: zoomOut(contextInstance),\n setTransform: setTransform(contextInstance),\n resetTransform: resetTransform(contextInstance),\n centerView: centerView(contextInstance),\n zoomToElement: zoomToElement(contextInstance),\n };\n};\nvar getState = function (contextInstance) {\n return {\n instance: contextInstance,\n state: contextInstance.transformState,\n };\n};\nvar getContext = function (contextInstance) {\n var ref = {};\n Object.assign(ref, getState(contextInstance));\n Object.assign(ref, getControls(contextInstance));\n return ref;\n};\n\n// We want to make event listeners non-passive, and to do so have to check\n// that browsers support EventListenerOptions in the first place.\n// https://developer.mozilla.org/en-US/docs/Web/API/EventTarget/addEventListener#Safely_detecting_option_support\nvar passiveSupported = false;\nfunction makePassiveEventOption() {\n try {\n var options = {\n get passive() {\n // This function will be called when the browser\n // attempts to access the passive property.\n passiveSupported = true;\n return false;\n },\n };\n return options;\n }\n catch (err) {\n passiveSupported = false;\n return passiveSupported;\n }\n}\n\nvar isExcludedNode = function (node, excluded) {\n var targetTagName = node.tagName.toUpperCase();\n var isExcludedTag = excluded.find(function (tag) { return tag.toUpperCase() === targetTagName; });\n if (isExcludedTag)\n return true;\n var isExcludedClassName = excluded.find(function (className) {\n return node.classList.contains(className);\n });\n if (isExcludedClassName)\n return true;\n return false;\n};\nvar cancelTimeout = function (timeout) {\n if (timeout) {\n clearTimeout(timeout);\n }\n};\n\nvar getTransformStyles = function (x, y, scale) {\n // Standard translate prevents blurry svg on the safari\n return \"translate(\".concat(x, \"px, \").concat(y, \"px) scale(\").concat(scale, \")\");\n};\nvar getMatrixTransformStyles = function (x, y, scale) {\n // The shorthand for matrix does not work for Safari hence the need to explicitly use matrix3d\n // Refer to https://developer.mozilla.org/en-US/docs/Web/CSS/transform-function/matrix\n var a = scale;\n var b = 0;\n var c = 0;\n var d = scale;\n var tx = x;\n var ty = y;\n return \"matrix3d(\".concat(a, \", \").concat(b, \", 0, 0, \").concat(c, \", \").concat(d, \", 0, 0, 0, 0, 1, 0, \").concat(tx, \", \").concat(ty, \", 0, 1)\");\n};\nvar getCenterPosition = function (scale, wrapperComponent, contentComponent) {\n var contentWidth = contentComponent.offsetWidth * scale;\n var contentHeight = contentComponent.offsetHeight * scale;\n var centerPositionX = (wrapperComponent.offsetWidth - contentWidth) / 2;\n var centerPositionY = (wrapperComponent.offsetHeight - contentHeight) / 2;\n return {\n scale: scale,\n positionX: centerPositionX,\n positionY: centerPositionY,\n };\n};\n\nfunction mergeRefs(refs) {\n return function (value) {\n refs.forEach(function (ref) {\n if (typeof ref === \"function\") {\n ref(value);\n }\n else if (ref != null) {\n ref.current = value;\n }\n });\n };\n}\n\nvar isWheelAllowed = function (contextInstance, event) {\n var _a = contextInstance.setup.wheel, disabled = _a.disabled, wheelDisabled = _a.wheelDisabled, touchPadDisabled = _a.touchPadDisabled, excluded = _a.excluded;\n var isInitialized = contextInstance.isInitialized, isPanning = contextInstance.isPanning;\n var target = event.target;\n var isAllowed = isInitialized && !isPanning && !disabled && target;\n if (!isAllowed)\n return false;\n // Event ctrlKey detects if touchpad action is executing wheel or pinch gesture\n if (wheelDisabled && !event.ctrlKey)\n return false;\n if (touchPadDisabled && event.ctrlKey)\n return false;\n var isExcluded = isExcludedNode(target, excluded);\n if (isExcluded)\n return false;\n return true;\n};\nvar getDeltaY = function (event) {\n if (event) {\n return event.deltaY < 0 ? 1 : -1;\n }\n return 0;\n};\nfunction getDelta(event, customDelta) {\n var deltaY = getDeltaY(event);\n var delta = checkIsNumber(customDelta, deltaY);\n return delta;\n}\nfunction getMousePosition(event, contentComponent, scale) {\n var contentRect = contentComponent.getBoundingClientRect();\n var mouseX = 0;\n var mouseY = 0;\n if (\"clientX\" in event) {\n // mouse position x, y over wrapper component\n mouseX = (event.clientX - contentRect.left) / scale;\n mouseY = (event.clientY - contentRect.top) / scale;\n }\n else {\n var touch = event.touches[0];\n mouseX = (touch.clientX - contentRect.left) / scale;\n mouseY = (touch.clientY - contentRect.top) / scale;\n }\n if (Number.isNaN(mouseX) || Number.isNaN(mouseY))\n console.error(\"No mouse or touch offset found\");\n return {\n x: mouseX,\n y: mouseY,\n };\n}\nvar handleCalculateWheelZoom = function (contextInstance, delta, step, disable, getTarget) {\n var scale = contextInstance.transformState.scale;\n var wrapperComponent = contextInstance.wrapperComponent, setup = contextInstance.setup;\n var maxScale = setup.maxScale, minScale = setup.minScale, zoomAnimation = setup.zoomAnimation, disablePadding = setup.disablePadding;\n var size = zoomAnimation.size, disabled = zoomAnimation.disabled;\n if (!wrapperComponent) {\n throw new Error(\"Wrapper is not mounted\");\n }\n var targetScale = scale + delta * step;\n if (getTarget)\n return targetScale;\n var paddingEnabled = disable ? false : !disabled;\n var newScale = checkZoomBounds(roundNumber(targetScale, 3), minScale, maxScale, size, paddingEnabled && !disablePadding);\n return newScale;\n};\nvar handleWheelZoomStop = function (contextInstance, event) {\n var previousWheelEvent = contextInstance.previousWheelEvent;\n var scale = contextInstance.transformState.scale;\n var _a = contextInstance.setup, maxScale = _a.maxScale, minScale = _a.minScale;\n if (!previousWheelEvent)\n return false;\n if (scale < maxScale || scale > minScale)\n return true;\n if (Math.sign(previousWheelEvent.deltaY) !== Math.sign(event.deltaY))\n return true;\n if (previousWheelEvent.deltaY > 0 && previousWheelEvent.deltaY < event.deltaY)\n return true;\n if (previousWheelEvent.deltaY < 0 && previousWheelEvent.deltaY > event.deltaY)\n return true;\n if (Math.sign(previousWheelEvent.deltaY) !== Math.sign(event.deltaY))\n return true;\n return false;\n};\n\nvar isPinchStartAllowed = function (contextInstance, event) {\n var _a = contextInstance.setup.pinch, disabled = _a.disabled, excluded = _a.excluded;\n var isInitialized = contextInstance.isInitialized;\n var target = event.target;\n var isAllowed = isInitialized && !disabled && target;\n if (!isAllowed)\n return false;\n var isExcluded = isExcludedNode(target, excluded);\n if (isExcluded)\n return false;\n return true;\n};\nvar isPinchAllowed = function (contextInstance) {\n var disabled = contextInstance.setup.pinch.disabled;\n var isInitialized = contextInstance.isInitialized, pinchStartDistance = contextInstance.pinchStartDistance;\n var isAllowed = isInitialized && !disabled && pinchStartDistance;\n if (!isAllowed)\n return false;\n return true;\n};\nvar calculateTouchMidPoint = function (event, scale, contentComponent) {\n var contentRect = contentComponent.getBoundingClientRect();\n var touches = event.touches;\n var firstPointX = roundNumber(touches[0].clientX - contentRect.left, 5);\n var firstPointY = roundNumber(touches[0].clientY - contentRect.top, 5);\n var secondPointX = roundNumber(touches[1].clientX - contentRect.left, 5);\n var secondPointY = roundNumber(touches[1].clientY - contentRect.top, 5);\n return {\n x: (firstPointX + secondPointX) / 2 / scale,\n y: (firstPointY + secondPointY) / 2 / scale,\n };\n};\nvar getTouchDistance = function (event) {\n return Math.sqrt(Math.pow((event.touches[0].pageX - event.touches[1].pageX), 2) +\n Math.pow((event.touches[0].pageY - event.touches[1].pageY), 2));\n};\nvar calculatePinchZoom = function (contextInstance, currentDistance) {\n var pinchStartScale = contextInstance.pinchStartScale, pinchStartDistance = contextInstance.pinchStartDistance, setup = contextInstance.setup;\n var maxScale = setup.maxScale, minScale = setup.minScale, zoomAnimation = setup.zoomAnimation, disablePadding = setup.disablePadding;\n var size = zoomAnimation.size, disabled = zoomAnimation.disabled;\n if (!pinchStartScale || pinchStartDistance === null || !currentDistance) {\n throw new Error(\"Pinch touches distance was not provided\");\n }\n if (currentDistance < 0) {\n return contextInstance.transformState.scale;\n }\n var touchProportion = currentDistance / pinchStartDistance;\n var scaleDifference = touchProportion * pinchStartScale;\n return checkZoomBounds(roundNumber(scaleDifference, 2), minScale, maxScale, size, !disabled && !disablePadding);\n};\n\nvar wheelStopEventTime = 160;\nvar wheelAnimationTime = 100;\nvar handleWheelStart = function (contextInstance, event) {\n var _a = contextInstance.props, onWheelStart = _a.onWheelStart, onZoomStart = _a.onZoomStart;\n if (!contextInstance.wheelStopEventTimer) {\n handleCancelAnimation(contextInstance);\n handleCallback(getContext(contextInstance), event, onWheelStart);\n handleCallback(getContext(contextInstance), event, onZoomStart);\n }\n};\nvar handleWheelZoom = function (contextInstance, event) {\n var _a = contextInstance.props, onWheel = _a.onWheel, onZoom = _a.onZoom;\n var contentComponent = contextInstance.contentComponent, setup = contextInstance.setup, transformState = contextInstance.transformState;\n var scale = transformState.scale;\n var limitToBounds = setup.limitToBounds, centerZoomedOut = setup.centerZoomedOut, zoomAnimation = setup.zoomAnimation, wheel = setup.wheel, disablePadding = setup.disablePadding, smooth = setup.smooth;\n var size = zoomAnimation.size, disabled = zoomAnimation.disabled;\n var step = wheel.step, smoothStep = wheel.smoothStep;\n if (!contentComponent) {\n throw new Error(\"Component not mounted\");\n }\n event.preventDefault();\n event.stopPropagation();\n var delta = getDelta(event, null);\n var zoomStep = smooth ? smoothStep * Math.abs(event.deltaY) : step;\n var newScale = handleCalculateWheelZoom(contextInstance, delta, zoomStep, !event.ctrlKey);\n // if scale not change\n if (scale === newScale)\n return;\n var bounds = handleCalculateBounds(contextInstance, newScale);\n var mousePosition = getMousePosition(event, contentComponent, scale);\n var isPaddingDisabled = disabled || size === 0 || centerZoomedOut || disablePadding;\n var isLimitedToBounds = limitToBounds && isPaddingDisabled;\n var _b = handleCalculateZoomPositions(contextInstance, mousePosition.x, mousePosition.y, newScale, bounds, isLimitedToBounds), x = _b.x, y = _b.y;\n contextInstance.previousWheelEvent = event;\n contextInstance.setTransformState(newScale, x, y);\n handleCallback(getContext(contextInstance), event, onWheel);\n handleCallback(getContext(contextInstance), event, onZoom);\n};\nvar handleWheelStop = function (contextInstance, event) {\n var _a = contextInstance.props, onWheelStop = _a.onWheelStop, onZoomStop = _a.onZoomStop;\n // fire animation\n cancelTimeout(contextInstance.wheelAnimationTimer);\n contextInstance.wheelAnimationTimer = setTimeout(function () {\n if (!contextInstance.mounted)\n return;\n handleAlignToScaleBounds(contextInstance, event.x, event.y);\n contextInstance.wheelAnimationTimer = null;\n }, wheelAnimationTime);\n // Wheel stop event\n var hasStoppedZooming = handleWheelZoomStop(contextInstance, event);\n if (hasStoppedZooming) {\n cancelTimeout(contextInstance.wheelStopEventTimer);\n contextInstance.wheelStopEventTimer = setTimeout(function () {\n if (!contextInstance.mounted)\n return;\n contextInstance.wheelStopEventTimer = null;\n handleCallback(getContext(contextInstance), event, onWheelStop);\n handleCallback(getContext(contextInstance), event, onZoomStop);\n }, wheelStopEventTime);\n }\n};\n\nvar handlePinchStart = function (contextInstance, event) {\n var distance = getTouchDistance(event);\n contextInstance.pinchStartDistance = distance;\n contextInstance.lastDistance = distance;\n contextInstance.pinchStartScale = contextInstance.transformState.scale;\n contextInstance.isPanning = false;\n handleCancelAnimation(contextInstance);\n};\nvar handlePinchZoom = function (contextInstance, event) {\n var contentComponent = contextInstance.contentComponent, pinchStartDistance = contextInstance.pinchStartDistance;\n var scale = contextInstance.transformState.scale;\n var _a = contextInstance.setup, limitToBounds = _a.limitToBounds, centerZoomedOut = _a.centerZoomedOut, zoomAnimation = _a.zoomAnimation;\n var disabled = zoomAnimation.disabled, size = zoomAnimation.size;\n // if one finger starts from outside of wrapper\n if (pinchStartDistance === null || !contentComponent)\n return;\n var midPoint = calculateTouchMidPoint(event, scale, contentComponent);\n // if touches goes off of the wrapper element\n if (!Number.isFinite(midPoint.x) || !Number.isFinite(midPoint.y))\n return;\n var currentDistance = getTouchDistance(event);\n var newScale = calculatePinchZoom(contextInstance, currentDistance);\n if (newScale === scale)\n return;\n var bounds = handleCalculateBounds(contextInstance, newScale);\n var isPaddingDisabled = disabled || size === 0 || centerZoomedOut;\n var isLimitedToBounds = limitToBounds && isPaddingDisabled;\n var _b = handleCalculateZoomPositions(contextInstance, midPoint.x, midPoint.y, newScale, bounds, isLimitedToBounds), x = _b.x, y = _b.y;\n contextInstance.pinchMidpoint = midPoint;\n contextInstance.lastDistance = currentDistance;\n contextInstance.setTransformState(newScale, x, y);\n};\nvar handlePinchStop = function (contextInstance) {\n var pinchMidpoint = contextInstance.pinchMidpoint;\n contextInstance.velocity = null;\n contextInstance.lastDistance = null;\n contextInstance.pinchMidpoint = null;\n contextInstance.pinchStartScale = null;\n contextInstance.pinchStartDistance = null;\n handleAlignToScaleBounds(contextInstance, pinchMidpoint === null || pinchMidpoint === void 0 ? void 0 : pinchMidpoint.x, pinchMidpoint === null || pinchMidpoint === void 0 ? void 0 : pinchMidpoint.y);\n};\n\nvar handleDoubleClickStop = function (contextInstance, event) {\n var onZoomStop = contextInstance.props.onZoomStop;\n var animationTime = contextInstance.setup.doubleClick.animationTime;\n cancelTimeout(contextInstance.doubleClickStopEventTimer);\n contextInstance.doubleClickStopEventTimer = setTimeout(function () {\n contextInstance.doubleClickStopEventTimer = null;\n handleCallback(getContext(contextInstance), event, onZoomStop);\n }, animationTime);\n};\nvar handleDoubleClickResetMode = function (contextInstance, event) {\n var _a = contextInstance.props, onZoomStart = _a.onZoomStart, onZoom = _a.onZoom;\n var _b = contextInstance.setup.doubleClick, animationTime = _b.animationTime, animationType = _b.animationType;\n handleCallback(getContext(contextInstance), event, onZoomStart);\n resetTransformations(contextInstance, animationTime, animationType, function () {\n return handleCallback(getContext(contextInstance), event, onZoom);\n });\n handleDoubleClickStop(contextInstance, event);\n};\nfunction handleDoubleClick(contextInstance, event) {\n var setup = contextInstance.setup, doubleClickStopEventTimer = contextInstance.doubleClickStopEventTimer, transformState = contextInstance.transformState, contentComponent = contextInstance.contentComponent;\n var scale = transformState.scale;\n var _a = contextInstance.props, onZoomStart = _a.onZoomStart, onZoom = _a.onZoom;\n var _b = setup.doubleClick, disabled = _b.disabled, mode = _b.mode, step = _b.step, animationTime = _b.animationTime, animationType = _b.animationType;\n if (disabled)\n return;\n if (doubleClickStopEventTimer)\n return;\n if (mode === \"reset\") {\n return handleDoubleClickResetMode(contextInstance, event);\n }\n if (!contentComponent)\n return console.error(\"No ContentComponent found\");\n var delta = mode === \"zoomOut\" ? -1 : 1;\n var newScale = handleCalculateButtonZoom(contextInstance, delta, step);\n // stop execution when scale didn't change\n if (scale === newScale)\n return;\n handleCallback(getContext(contextInstance), event, onZoomStart);\n var mousePosition = getMousePosition(event, contentComponent, scale);\n var targetState = handleZoomToPoint(contextInstance, newScale, mousePosition.x, mousePosition.y);\n if (!targetState) {\n return console.error(\"Error during zoom event. New transformation state was not calculated.\");\n }\n handleCallback(getContext(contextInstance), event, onZoom);\n animate(contextInstance, targetState, animationTime, animationType);\n handleDoubleClickStop(contextInstance, event);\n}\nvar isDoubleClickAllowed = function (contextInstance, event) {\n var isInitialized = contextInstance.isInitialized, setup = contextInstance.setup, wrapperComponent = contextInstance.wrapperComponent;\n var _a = setup.doubleClick, disabled = _a.disabled, excluded = _a.excluded;\n var target = event.target;\n var isWrapperChild = wrapperComponent === null || wrapperComponent === void 0 ? void 0 : wrapperComponent.contains(target);\n var isAllowed = isInitialized && target && isWrapperChild && !disabled;\n if (!isAllowed)\n return false;\n var isExcluded = isExcludedNode(target, excluded);\n if (isExcluded)\n return false;\n return true;\n};\n\nvar ZoomPanPinch = /** @class */ (function () {\n function ZoomPanPinch(props) {\n var _this = this;\n this.mounted = true;\n this.onChangeCallbacks = new Set();\n this.onInitCallbacks = new Set();\n // Components\n this.wrapperComponent = null;\n this.contentComponent = null;\n // Initialization\n this.isInitialized = false;\n this.bounds = null;\n // wheel helpers\n this.previousWheelEvent = null;\n this.wheelStopEventTimer = null;\n this.wheelAnimationTimer = null;\n // panning helpers\n this.isPanning = false;\n this.startCoords = null;\n this.lastTouch = null;\n // pinch helpers\n this.distance = null;\n this.lastDistance = null;\n this.pinchStartDistance = null;\n this.pinchStartScale = null;\n this.pinchMidpoint = null;\n // double click helpers\n this.doubleClickStopEventTimer = null;\n // velocity helpers\n this.velocity = null;\n this.velocityTime = null;\n this.lastMousePosition = null;\n // animations helpers\n this.animate = false;\n this.animation = null;\n this.maxBounds = null;\n // key press\n this.pressedKeys = {};\n this.mount = function () {\n _this.initializeWindowEvents();\n };\n this.unmount = function () {\n _this.cleanupWindowEvents();\n };\n this.update = function (newProps) {\n handleCalculateBounds(_this, _this.transformState.scale);\n _this.setup = createSetup(newProps);\n };\n this.initializeWindowEvents = function () {\n var _a;\n var passive = makePassiveEventOption();\n var currentDocument = (_a = _this.wrapperComponent) === null || _a === void 0 ? void 0 : _a.ownerDocument;\n var currentWindow = currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.defaultView;\n // Panning on window to allow panning when mouse is out of component wrapper\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener(\"mousedown\", _this.onPanningStart, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener(\"mousemove\", _this.onPanning, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener(\"mouseup\", _this.onPanningStop, passive);\n currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.addEventListener(\"mouseleave\", _this.clearPanning, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener(\"keyup\", _this.setKeyUnPressed, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.addEventListener(\"keydown\", _this.setKeyPressed, passive);\n };\n this.cleanupWindowEvents = function () {\n var _a, _b;\n var passive = makePassiveEventOption();\n var currentDocument = (_a = _this.wrapperComponent) === null || _a === void 0 ? void 0 : _a.ownerDocument;\n var currentWindow = currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.defaultView;\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener(\"mousedown\", _this.onPanningStart, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener(\"mousemove\", _this.onPanning, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener(\"mouseup\", _this.onPanningStop, passive);\n currentDocument === null || currentDocument === void 0 ? void 0 : currentDocument.removeEventListener(\"mouseleave\", _this.clearPanning, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener(\"keyup\", _this.setKeyUnPressed, passive);\n currentWindow === null || currentWindow === void 0 ? void 0 : currentWindow.removeEventListener(\"keydown\", _this.setKeyPressed, passive);\n document.removeEventListener(\"mouseleave\", _this.clearPanning, passive);\n handleCancelAnimation(_this);\n (_b = _this.observer) === null || _b === void 0 ? void 0 : _b.disconnect();\n };\n this.handleInitializeWrapperEvents = function (wrapper) {\n // Zooming events on wrapper\n var passive = makePassiveEventOption();\n wrapper.addEventListener(\"wheel\", _this.onWheelZoom, passive);\n wrapper.addEventListener(\"dblclick\", _this.onDoubleClick, passive);\n wrapper.addEventListener(\"touchstart\", _this.onTouchPanningStart, passive);\n wrapper.addEventListener(\"touchmove\", _this.onTouchPanning, passive);\n wrapper.addEventListener(\"touchend\", _this.onTouchPanningStop, passive);\n };\n this.handleInitialize = function (contentComponent) {\n var centerOnInit = _this.setup.centerOnInit;\n _this.applyTransformation();\n _this.onInitCallbacks.forEach(function (callback) { return callback(getContext(_this)); });\n if (centerOnInit) {\n _this.setCenter();\n _this.observer = new ResizeObserver(function () {\n var _a;\n _this.onInitCallbacks.forEach(function (callback) { return callback(getContext(_this)); });\n _this.setCenter();\n (_a = _this.observer) === null || _a === void 0 ? void 0 : _a.disconnect();\n });\n // Start observing the target node for configured mutations\n _this.observer.observe(contentComponent);\n }\n };\n /// ///////\n // Zoom\n /// ///////\n this.onWheelZoom = function (event) {\n var disabled = _this.setup.disabled;\n if (disabled)\n return;\n var isAllowed = isWheelAllowed(_this, event);\n if (!isAllowed)\n return;\n var keysPressed = _this.isPressingKeys(_this.setup.wheel.activationKeys);\n if (!keysPressed)\n return;\n handleWheelStart(_this, event);\n handleWheelZoom(_this, event);\n handleWheelStop(_this, event);\n };\n /// ///////\n // Pan\n /// ///////\n this.onPanningStart = function (event) {\n var disabled = _this.setup.disabled;\n var onPanningStart = _this.props.onPanningStart;\n if (disabled)\n return;\n var isAllowed = isPanningStartAllowed(_this, event);\n if (!isAllowed)\n return;\n var keysPressed = _this.isPressingKeys(_this.setup.panning.activationKeys);\n if (!keysPressed)\n return;\n event.preventDefault();\n event.stopPropagation();\n handleCancelAnimation(_this);\n handlePanningStart(_this, event);\n handleCallback(getContext(_this), event, onPanningStart);\n };\n this.onPanning = function (event) {\n var disabled = _this.setup.disabled;\n var onPanning = _this.props.onPanning;\n if (disabled)\n return;\n var isAllowed = isPanningAllowed(_this);\n if (!isAllowed)\n return;\n var keysPressed = _this.isPressingKeys(_this.setup.panning.activationKeys);\n if (!keysPressed)\n return;\n event.preventDefault();\n event.stopPropagation();\n handlePanning(_this, event.clientX, event.clientY);\n handleCallback(getContext(_this), event, onPanning);\n };\n this.onPanningStop = function (event) {\n var onPanningStop = _this.props.onPanningStop;\n if (_this.isPanning) {\n handlePanningEnd(_this);\n handleCallback(getContext(_this), event, onPanningStop);\n }\n };\n /// ///////\n // Pinch\n /// ///////\n this.onPinchStart = function (event) {\n var disabled = _this.setup.disabled;\n var _a = _this.props, onPinchingStart = _a.onPinchingStart, onZoomStart = _a.onZoomStart;\n if (disabled)\n return;\n var isAllowed = isPinchStartAllowed(_this, event);\n if (!isAllowed)\n return;\n handlePinchStart(_this, event);\n handleCancelAnimation(_this);\n handleCallback(getContext(_this), event, onPinchingStart);\n handleCallback(getContext(_this), event, onZoomStart);\n };\n this.onPinch = function (event) {\n var disabled = _this.setup.disabled;\n var _a = _this.props, onPinching = _a.onPinching, onZoom = _a.onZoom;\n if (disabled)\n return;\n var isAllowed = isPinchAllowed(_this);\n if (!isAllowed)\n return;\n event.preventDefault();\n event.stopPropagation();\n handlePinchZoom(_this, event);\n handleCallback(getContext(_this), event, onPinching);\n handleCallback(getContext(_this), event, onZoom);\n };\n this.onPinchStop = function (event) {\n var _a = _this.props, onPinchingStop = _a.onPinchingStop, onZoomStop = _a.onZoomStop;\n if (_this.pinchStartScale) {\n handlePinchStop(_this);\n handleCallback(getContext(_this), event, onPinchingStop);\n handleCallback(getContext(_this), event, onZoomStop);\n }\n };\n /// ///////\n // Touch\n /// ///////\n this.onTouchPanningStart = function (event) {\n var disabled = _this.setup.disabled;\n var onPanningStart = _this.props.onPanningStart;\n if (disabled)\n return;\n var isAllowed = isPanningStartAllowed(_this, event);\n if (!isAllowed)\n return;\n var isDoubleTap = _this.lastTouch && +new Date() - _this.lastTouch < 200;\n if (isDoubleTap && event.touches.length === 1) {\n _this.onDoubleClick(event);\n }\n else {\n _this.lastTouch = +new Date();\n handleCancelAnimation(_this);\n var touches = event.touches;\n var isPanningAction = touches.length === 1;\n var isPinchAction = touches.length === 2;\n if (isPanningAction) {\n handleCancelAnimation(_this);\n handlePanningStart(_this, event);\n handleCallback(getContext(_this), event, onPanningStart);\n }\n if (isPinchAction) {\n _this.onPinchStart(event);\n }\n }\n };\n this.onTouchPanning = function (event) {\n var disabled = _this.setup.disabled;\n var onPanning = _this.props.onPanning;\n if (_this.isPanning && event.touches.length === 1) {\n if (disabled)\n return;\n var isAllowed = isPanningAllowed(_this);\n if (!isAllowed)\n return;\n event.preventDefault();\n event.stopPropagation();\n var touch = event.touches[0];\n handlePanning(_this, touch.clientX, touch.clientY);\n handleCallback(getContext(_this), event, onPanning);\n }\n else if (event.touches.length > 1) {\n _this.onPinch(event);\n }\n };\n this.onTouchPanningStop = function (event) {\n _this.onPanningStop(event);\n _this.onPinchStop(event);\n };\n /// ///////\n // Double Click\n /// ///////\n this.onDoubleClick = function (event) {\n var disabled = _this.setup.disabled;\n if (disabled)\n return;\n var isAllowed = isDoubleClickAllowed(_this, event);\n if (!isAllowed)\n return;\n handleDoubleClick(_this, event);\n };\n /// ///////\n // Helpers\n /// ///////\n this.clearPanning = function (event) {\n if (_this.isPanning) {\n _this.onPanningStop(event);\n }\n };\n this.setKeyPressed = function (e) {\n _this.pressedKeys[e.key] = true;\n };\n this.setKeyUnPressed = function (e) {\n _this.pressedKeys[e.key] = false;\n };\n this.isPressingKeys = function (keys) {\n if (!keys.length) {\n return true;\n }\n return Boolean(keys.find(function (key) { return _this.pressedKeys[key]; }));\n };\n this.setTransformState = function (scale, positionX, positionY) {\n var onTransformed = _this.props.onTransformed;\n if (!Number.isNaN(scale) &&\n !Number.isNaN(positionX) &&\n !Number.isNaN(positionY)) {\n if (scale !== _this.transformState.scale) {\n _this.transformState.previousScale = _this.transformState.scale;\n _this.transformState.scale = scale;\n }\n _this.transformState.positionX = positionX;\n _this.transformState.positionY = positionY;\n _this.applyTransformation();\n var ctx_1 = getContext(_this);\n _this.onChangeCallbacks.forEach(function (callback) { return callback(ctx_1); });\n handleCallback(ctx_1, { scale: scale, positionX: positionX, positionY: positionY }, onTransformed);\n }\n else {\n console.error(\"Detected NaN set state values\");\n }\n };\n this.setCenter = function () {\n if (_this.wrapperComponent && _this.contentComponent) {\n var targetState = getCenterPosition(_this.transformState.scale, _this.wrapperComponent, _this.contentComponent);\n _this.setTransformState(targetState.scale, targetState.positionX, targetState.positionY);\n }\n };\n this.handleTransformStyles = function (x, y, scale) {\n if (_this.props.customTransform) {\n return _this.props.customTransform(x, y, scale);\n }\n return getTransformStyles(x, y, scale);\n };\n this.applyTransformation = function () {\n if (!_this.mounted || !_this.contentComponent)\n return;\n var _a = _this.transformState, scale = _a.scale, positionX = _a.positionX, positionY = _a.positionY;\n var transform = _this.handleTransformStyles(positionX, positionY, scale);\n _this.contentComponent.style.transform = transform;\n };\n this.getContext = function () {\n return getContext(_this);\n };\n /**\n * Hooks\n */\n this.onChange = function (callback) {\n if (!_this.onChangeCallbacks.has(callback)) {\n _this.onChangeCallbacks.add(callback);\n }\n return function () {\n _this.onChangeCallbacks.delete(callback);\n };\n };\n this.onInit = function (callback) {\n if (!_this.onInitCallbacks.has(callback)) {\n _this.onInitCallbacks.add(callback);\n }\n return function () {\n _this.onInitCallbacks.delete(callback);\n };\n };\n /**\n * Initialization\n */\n this.init = function (wrapperComponent, contentComponent) {\n _this.cleanupWindowEvents();\n _this.wrapperComponent = wrapperComponent;\n _this.contentComponent = contentComponent;\n handleCalculateBounds(_this, _this.transformState.scale);\n _this.handleInitializeWrapperEvents(wrapperComponent);\n _this.handleInitialize(contentComponent);\n _this.initializeWindowEvents();\n _this.isInitialized = true;\n var ctx = getContext(_this);\n handleCallback(ctx, undefined, _this.props.onInit);\n };\n this.props = props;\n this.setup = createSetup(this.props);\n this.transformState = createState(this.props);\n }\n return ZoomPanPinch;\n}());\n\nvar Context = React.createContext(null);\nvar getContent = function (children, ctx) {\n if (typeof children === \"function\") {\n return children(ctx);\n }\n return children;\n};\nvar TransformWrapper = React.forwardRef(function (props, ref) {\n var instance = useRef(new ZoomPanPinch(props)).current;\n var content = getContent(props.children, getControls(instance));\n useImperativeHandle(ref, function () { return getControls(instance); }, [instance]);\n useEffect(function () {\n instance.update(props);\n }, [instance, props]);\n return React.createElement(Context.Provider, { value: instance }, content);\n});\n\nvar KeepScale = React.forwardRef(function (props, ref) {\n var localRef = useRef(null);\n var instance = useContext(Context);\n useEffect(function () {\n return instance.onChange(function (ctx) {\n if (localRef.current) {\n var positionX = 0;\n var positionY = 0;\n localRef.current.style.transform = instance.handleTransformStyles(positionX, positionY, 1 / ctx.instance.transformState.scale);\n }\n });\n }, [instance]);\n return React.createElement(\"div\", __assign({}, props, { ref: mergeRefs([localRef, ref]) }));\n});\n\nvar initialElementRect = {\n width: 0,\n height: 0,\n y: 0,\n x: 0,\n top: 0,\n bottom: 0,\n left: 0,\n right: 0,\n};\nvar useResize = function (ref, onResize, dependencies) {\n var resizeObserverRef = useRef();\n var rectRef = useRef(initialElementRect);\n var didUnmount = useRef(false);\n useLayoutEffect(function () {\n var _a;\n didUnmount.current = false;\n if (ref) {\n resizeObserverRef.current = new ResizeObserver(function (entries) {\n var newSize = ref.getBoundingClientRect();\n if (!Array.isArray(entries) ||\n !entries.length ||\n didUnmount.current ||\n (newSize.width === rectRef.current.width &&\n newSize.height === rectRef.current.height))\n return;\n onResize(newSize, ref);\n rectRef.current = newSize;\n });\n (_a = resizeObserverRef.current) === null || _a === void 0 ? void 0 : _a.observe(ref);\n }\n return function () {\n var _a;\n didUnmount.current = true;\n if (ref) {\n (_a = resizeObserverRef.current) === null || _a === void 0 ? void 0 : _a.unobserve(ref);\n }\n };\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, __spreadArray([onResize, ref], dependencies, true));\n};\n\nvar previewStyles = {\n position: \"absolute\",\n zIndex: 2,\n top: \"0px\",\n left: \"0px\",\n boxSizing: \"border-box\",\n border: \"3px solid red\",\n transformOrigin: \"0% 0%\",\n boxShadow: \"rgba(0,0,0,0.2) 0 0 0 10000000px\",\n};\nvar MiniMap = function (_a) {\n var _b = _a.width, width = _b === void 0 ? 200 : _b, _c = _a.height, height = _c === void 0 ? 200 : _c, _d = _a.borderColor, borderColor = _d === void 0 ? \"red\" : _d, children = _a.children, rest = __rest(_a, [\"width\", \"height\", \"borderColor\", \"children\"]);\n var _e = useState(false), initialized = _e[0], setInitialized = _e[1];\n var instance = useTransformContext();\n var miniMapInstance = useRef(null);\n var mainRef = useRef(null);\n var wrapperRef = useRef(null);\n var previewRef = useRef(null);\n var getContentSize = useCallback(function () {\n if (instance.contentComponent) {\n var rect = instance.contentComponent.getBoundingClientRect();\n return {\n width: rect.width / instance.transformState.scale,\n height: rect.height / instance.transformState.scale,\n };\n }\n return {\n width: 0,\n height: 0,\n };\n }, [instance.contentComponent, instance.transformState.scale]);\n var computeMiniMapScale = useCallback(function () {\n var contentSize = getContentSize();\n var scaleX = width / contentSize.width;\n var scaleY = height / contentSize.height;\n var scale = scaleY > scaleX ? scaleX : scaleY;\n return scale;\n }, [getContentSize, height, width]);\n var computeMiniMapSize = function () {\n var contentSize = getContentSize();\n var scaleX = width / contentSize.width;\n var scaleY = height / contentSize.height;\n if (scaleY > scaleX) {\n return { width: width, height: contentSize.height * scaleX };\n }\n return { width: contentSize.width * scaleY, height: height };\n };\n var computeMiniMapStyle = function () {\n var scale = computeMiniMapScale();\n var style = {\n transform: \"scale(\".concat(scale || 1, \")\"),\n transformOrigin: \"0% 0%\",\n position: \"absolute\",\n boxSizing: \"border-box\",\n zIndex: 1,\n overflow: \"hidden\",\n };\n Object.keys(style).forEach(function (key) {\n if (wrapperRef.current) {\n wrapperRef.current.style[key] = style[key];\n }\n });\n };\n var transformMiniMap = function () {\n computeMiniMapStyle();\n var miniSize = computeMiniMapSize();\n var wrapSize = getContentSize();\n if (wrapperRef.current) {\n wrapperRef.current.style.width = \"\".concat(wrapSize.width, \"px\");\n wrapperRef.current.style.height = \"\".concat(wrapSize.height, \"px\");\n }\n if (mainRef.current) {\n mainRef.current.style.width = \"\".concat(miniSize.width, \"px\");\n mainRef.current.style.height = \"\".concat(miniSize.height, \"px\");\n }\n if (previewRef.current) {\n var size = getContentSize();\n var scale = computeMiniMapScale();\n var previewScale = scale * (1 / instance.transformState.scale);\n var transform = instance.handleTransformStyles(-instance.transformState.positionX * previewScale, -instance.transformState.positionY * previewScale, 1);\n previewRef.current.style.transform = transform;\n previewRef.current.style.width = \"\".concat(size.width * previewScale, \"px\");\n previewRef.current.style.height = \"\".concat(size.height * previewScale, \"px\");\n }\n };\n var initialize = function () {\n transformMiniMap();\n };\n useTransformEffect(function () {\n transformMiniMap();\n });\n useTransformInit(function () {\n initialize();\n setInitialized(true);\n });\n useResize(instance.contentComponent, initialize, [initialized]);\n useEffect(function () {\n return instance.onChange(function (zpp) {\n var scale = computeMiniMapScale();\n if (miniMapInstance.current) {\n miniMapInstance.current.instance.transformState.scale =\n zpp.instance.transformState.scale;\n miniMapInstance.current.instance.transformState.positionX =\n zpp.instance.transformState.positionX * scale;\n miniMapInstance.current.instance.transformState.positionY =\n zpp.instance.transformState.positionY * scale;\n }\n });\n }, [computeMiniMapScale, instance, miniMapInstance]);\n var wrapperStyle = useMemo(function () {\n return {\n position: \"relative\",\n zIndex: 2,\n overflow: \"hidden\",\n };\n }, []);\n return (React.createElement(\"div\", __assign({}, rest, { ref: mainRef, style: wrapperStyle, className: \"rzpp-mini-map \".concat(rest.className || \"\") }),\n React.createElement(\"div\", __assign({}, rest, { ref: wrapperRef, className: \"rzpp-wrapper\" }), children),\n React.createElement(\"div\", { className: \"rzpp-preview\", ref: previewRef, style: __assign(__assign({}, previewStyles), { borderColor: borderColor }) })));\n};\n\nfunction styleInject(css, ref) {\n if ( ref === void 0 ) ref = {};\n var insertAt = ref.insertAt;\n\n if (!css || typeof document === 'undefined') { return; }\n\n var head = document.head || document.getElementsByTagName('head')[0];\n var style = document.createElement('style');\n style.type = 'text/css';\n\n if (insertAt === 'top') {\n if (head.firstChild) {\n head.insertBefore(style, head.firstChild);\n } else {\n head.appendChild(style);\n }\n } else {\n head.appendChild(style);\n }\n\n if (style.styleSheet) {\n style.styleSheet.cssText = css;\n } else {\n style.appendChild(document.createTextNode(css));\n }\n}\n\nvar css_248z = \".transform-component-module_wrapper__SPB86 {\\n position: relative;\\n width: -moz-fit-content;\\n width: fit-content;\\n height: -moz-fit-content;\\n height: fit-content;\\n overflow: hidden;\\n -webkit-touch-callout: none; /* iOS Safari */\\n -webkit-user-select: none; /* Safari */\\n -khtml-user-select: none; /* Konqueror HTML */\\n -moz-user-select: none; /* Firefox */\\n -ms-user-select: none; /* Internet Explorer/Edge */\\n user-select: none;\\n margin: 0;\\n padding: 0;\\n}\\n.transform-component-module_content__FBWxo {\\n display: flex;\\n flex-wrap: wrap;\\n width: -moz-fit-content;\\n width: fit-content;\\n height: -moz-fit-content;\\n height: fit-content;\\n margin: 0;\\n padding: 0;\\n transform-origin: 0% 0%;\\n}\\n.transform-component-module_content__FBWxo img {\\n pointer-events: none;\\n}\\n\";\nvar styles = {\"wrapper\":\"transform-component-module_wrapper__SPB86\",\"content\":\"transform-component-module_content__FBWxo\"};\nstyleInject(css_248z);\n\nvar TransformComponent = function (_a) {\n var children = _a.children, _b = _a.wrapperClass, wrapperClass = _b === void 0 ? \"\" : _b, _c = _a.contentClass, contentClass = _c === void 0 ? \"\" : _c, wrapperStyle = _a.wrapperStyle, contentStyle = _a.contentStyle, _d = _a.wrapperProps, wrapperProps = _d === void 0 ? {} : _d, _e = _a.contentProps, contentProps = _e === void 0 ? {} : _e;\n var init = useContext(Context).init;\n var wrapperRef = useRef(null);\n var contentRef = useRef(null);\n useEffect(function () {\n var wrapper = wrapperRef.current;\n var content = contentRef.current;\n if (wrapper !== null && content !== null && init) {\n init(wrapper, content);\n }\n // eslint-disable-next-line react-hooks/exhaustive-deps\n }, []);\n return (React.createElement(\"div\", __assign({}, wrapperProps, { ref: wrapperRef, className: \"react-transform-wrapper \".concat(styles.wrapper, \" \").concat(wrapperClass), style: wrapperStyle }),\n React.createElement(\"div\", __assign({}, contentProps, { ref: contentRef, className: \"react-transform-component \".concat(styles.content, \" \").concat(contentClass), style: contentStyle }), children)));\n};\n\nvar useTransformContext = function () {\n var libraryContext = useContext(Context);\n if (!libraryContext) {\n throw new Error(\"Transform context must be placed inside TransformWrapper\");\n }\n return libraryContext;\n};\n\nvar useControls = function () {\n var libraryContext = useTransformContext();\n return getControls(libraryContext);\n};\n\nvar useTransformInit = function (callback) {\n var libraryContext = useTransformContext();\n useEffect(function () {\n var unmountCallback;\n var unmount;\n if (libraryContext.contentComponent && libraryContext.wrapperComponent) {\n unmountCallback = callback(getState(libraryContext));\n }\n else {\n unmount = libraryContext.onInit(function (ref) {\n unmountCallback = callback(getState(ref.instance));\n });\n }\n return function () {\n unmount === null || unmount === void 0 ? void 0 : unmount();\n unmountCallback === null || unmountCallback === void 0 ? void 0 : unmountCallback();\n };\n }, []);\n};\n\nvar useTransformEffect = function (callback) {\n var libraryContext = useTransformContext();\n useEffect(function () {\n var unmountCallback;\n var unmount = libraryContext.onChange(function (ref) {\n unmountCallback = callback(getState(ref.instance));\n });\n return function () {\n unmount();\n unmountCallback === null || unmountCallback === void 0 ? void 0 : unmountCallback();\n };\n }, [callback, libraryContext]);\n};\n\nexport { Context, KeepScale, MiniMap, TransformComponent, TransformWrapper, getCenterPosition, getMatrixTransformStyles, getTransformStyles, useControls, useTransformContext, useTransformEffect, useTransformInit };\n//# sourceMappingURL=index.esm.js.map\n"],"names":["roundNumber","num","decimal","checkIsNumber","defaultValue","handleCallback","context","event","callback","easeOut","t","linear","easeInQuad","easeOutQuad","easeInOutQuad","easeInCubic","easeOutCubic","easeInOutCubic","easeInQuart","easeOutQuart","easeInOutQuart","easeInQuint","easeOutQuint","easeInOutQuint","animations","handleCancelAnimationFrame","animation","handleCancelAnimation","contextInstance","handleSetupAnimation","animationName","animationTime","startTime","lastStep","frameTime","animationProgress","animationType","step","isValidTargetState","targetState","scale","positionX","positionY","animate","isValid","setTransformState","_a","scaleDiff","positionXDiff","positionYDiff","newScale","newPositionX","newPositionY","getComponentsSizes","wrapperComponent","contentComponent","wrapperWidth","wrapperHeight","contentWidth","contentHeight","newContentWidth","newContentHeight","newDiffWidth","newDiffHeight","getBounds","diffWidth","diffHeight","centerZoomedOut","scaleWidthFactor","scaleHeightFactor","minPositionX","maxPositionX","minPositionY","maxPositionY","calculateBounds","bounds","boundLimiter","value","minBound","maxBound","isActive","handleCalculateBounds","getMouseBoundedPosition","limitToBounds","paddingValueX","paddingValueY","paddingX","paddingY","x","y","handleCalculateZoomPositions","mouseX","mouseY","scaleDifference","calculatedPositionX","calculatedPositionY","newPositions","checkZoomBounds","zoom","minScale","maxScale","zoomPadding","enablePadding","scalePadding","minScaleWithPadding","isPanningStartAllowed","excluded","isInitialized","target","isWrapperChild","isAllowed","isExcluded","isExcludedNode","isPanningAllowed","isPanning","setup","disabled","handlePanningSetup","handleTouchPanningSetup","touches","oneFingerTouch","handlePanToBounds","_b","_c","xChanged","yChanged","mousePosX","mousePosY","_d","handleNewPosition","getPanningClientPosition","clientX","clientY","startCoords","transformState","panning","lockAxisX","lockAxisY","getPaddingValue","size","disablePadding","isVelocityCalculationAllowed","mounted","velocityAnimation","disabledVelocity","isVelocityAllowed","velocity","getVelocityMoveTime","equalToMove","sensitivity","getVelocityPosition","newPosition","startPosition","currentPosition","isLocked","minPosition","maxPosition","minTarget","maxTarget","calculatedPosition","getSizeMultiplier","defaultMultiplier","handleCalculateVelocity","position","lastMousePosition","velocityTime","now","sizeMultiplier","distanceX","distanceY","velocityX","velocityY","interval","speed","handleVelocityPanning","total","alignmentAnimation","zoomAnimation","sizeX","sizeY","velocityAlignmentTime","alignAnimationTime","moveAnimationTime","finalAnimationTime","maxTargetX","minTargetX","maxTargetY","minTargetY","startState","alignAnimation","alignStep","customStep","currentPositionX","currentPositionY","handlePanningStart","handleAlignToBounds","isDisabled","handlePanning","handlePanningEnd","velocityDisabled","wrapperRect","contentRect","isZoomed","shouldAnimate","handleZoomToPoint","handleAlignToScaleBounds","mousePositionX","mousePositionY","__assign","s","i","n","p","__spreadArray","to","from","pack","l","ar","initialState","initialSetup","createState","props","createSetup","newSetup","key","validValue","validParameter","dataType","isObject","isArray","handleCalculateButtonZoom","delta","smooth","targetScale","handleZoomToViewCenter","resetTransformations","onResetTransformation","initialTransformation","newBounds","boundedPositions","newState","getOffset","element","wrapper","content","state","offset","wrapperOffset","contentOffset","xOff","yOff","calculateZoomToNode","node","customZoom","nodeRect","nodeOffset","nodeLeft","nodeTop","nodeWidth","nodeHeight","scaleX","scaleY","offsetX","offsetY","zoomIn","zoomOut","setTransform","resetTransform","centerView","getCenterPosition","zoomToElement","getControls","getState","getContext","ref","passiveSupported","makePassiveEventOption","options","targetTagName","isExcludedTag","tag","isExcludedClassName","className","cancelTimeout","timeout","getTransformStyles","centerPositionX","centerPositionY","mergeRefs","refs","isWheelAllowed","wheelDisabled","touchPadDisabled","getDeltaY","getDelta","customDelta","deltaY","getMousePosition","touch","handleCalculateWheelZoom","disable","getTarget","paddingEnabled","handleWheelZoomStop","previousWheelEvent","isPinchStartAllowed","isPinchAllowed","pinchStartDistance","calculateTouchMidPoint","firstPointX","firstPointY","secondPointX","secondPointY","getTouchDistance","calculatePinchZoom","currentDistance","pinchStartScale","touchProportion","wheelStopEventTime","wheelAnimationTime","handleWheelStart","onWheelStart","onZoomStart","handleWheelZoom","onWheel","onZoom","wheel","smoothStep","zoomStep","mousePosition","isPaddingDisabled","isLimitedToBounds","handleWheelStop","onWheelStop","onZoomStop","hasStoppedZooming","handlePinchStart","distance","handlePinchZoom","midPoint","handlePinchStop","pinchMidpoint","handleDoubleClickStop","handleDoubleClickResetMode","handleDoubleClick","doubleClickStopEventTimer","mode","isDoubleClickAllowed","ZoomPanPinch","_this","newProps","passive","currentDocument","currentWindow","centerOnInit","keysPressed","onPanningStart","onPanning","onPanningStop","onPinchingStart","onPinching","onPinchingStop","isDoubleTap","isPanningAction","isPinchAction","e","keys","onTransformed","ctx_1","transform","ctx","Context","React","getContent","children","TransformWrapper","instance","useRef","useImperativeHandle","useEffect","localRef","useContext","styleInject","css","insertAt","head","style","css_248z","styles","TransformComponent","wrapperClass","contentClass","wrapperStyle","contentStyle","wrapperProps","_e","contentProps","init","wrapperRef","contentRef"],"mappings":"gSAMA,IAAIA,EAAc,SAAUC,EAAKC,EAAS,CACtC,OAAO,OAAOD,EAAI,QAAQC,CAAO,CAAC,CACtC,E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,UAAW,6BAA6B,OAAOX,GAAO,QAAS,GAAG,EAAE,OAAOG,CAAY,EAAG,MAAOE,CAAc,CAAA,EAAGnB,CAAQ,CAAC,CAC5M;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/assets/Crud-64485ba6.js b/assets/Crud-64485ba6.js new file mode 100644 index 0000000..4db5840 --- /dev/null +++ b/assets/Crud-64485ba6.js @@ -0,0 +1,18 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as s}from"./index-2ef8b458.js";import{M as i}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function o(n){const t=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li",h4:"h4",blockquote:"blockquote",a:"a"},s(),n.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Docs/Utils/Getting Started"}),` +`,e.jsx(t.h1,{id:"getting-started-with-utils",children:"Getting Started with Utils"}),` +`,e.jsx(t.p,{children:`There a variety of common interactions you want to make +with the canvas and graph. reaflow has some helpers out of +the box to help manage those typical operations. Those +helpers are broken up into two categories:`}),` +`,e.jsxs(t.ul,{children:[` +`,e.jsx(t.li,{children:"CRUD - Dealing with manipulating nodes/edges"}),` +`,e.jsx(t.li,{children:"Graph - Dealing with traversing the graph"}),` +`,e.jsx(t.li,{children:"Extended Utils - More use-case focused helpers"}),` +`]}),` +`,e.jsx(t.h4,{id:"notes",children:"Notes"}),` +`,e.jsxs(t.blockquote,{children:[` +`,e.jsx(t.p,{children:"These helpers are very generic and meant to help people getting started, but they're not meant to cover specific use-cases."}),` +`,e.jsxs(t.p,{children:["You should copy them and adapt them to your own needs if they don't cover your needs. ",e.jsx(t.a,{href:"https://github.com/reaviz/reaflow/issues/47#issuecomment-775919579",target:"_blank",rel:"nofollow noopener noreferrer",children:"See discussion"}),"."]}),` +`,e.jsxs(t.p,{children:["There are advanced examples in ",e.jsx(t.a,{href:"/?path=/story/docs-utils-extending--page",children:"Extending Utils"})," page."]}),` +`]})]})}function w(n={}){const{wrapper:t}=Object.assign({},s(),n.components);return t?e.jsx(t,Object.assign({},n,{children:e.jsx(o,n)})):o(n)}export{w as default}; +//# sourceMappingURL=Crud-64485ba6.js.map diff --git a/assets/Crud-64485ba6.js.map b/assets/Crud-64485ba6.js.map new file mode 100644 index 0000000..bb28597 --- /dev/null +++ b/assets/Crud-64485ba6.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Crud-64485ba6.js","sources":["../../docs/Utils/Crud.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Getting Started with Utils\n\nThere a variety of common interactions you want to make\nwith the canvas and graph. reaflow has some helpers out of\nthe box to help manage those typical operations. Those\nhelpers are broken up into two categories:\n\n- CRUD - Dealing with manipulating nodes/edges\n- Graph - Dealing with traversing the graph\n- Extended Utils - More use-case focused helpers\n\n#### Notes\n> These helpers are very generic and meant to help people getting started, but they're not meant to cover specific use-cases.\n>\n> You should copy them and adapt them to your own needs if they don't cover your needs. [See discussion](https://github.com/reaviz/reaflow/issues/47#issuecomment-775919579).\n>\n> There are advanced examples in [Extending Utils](/?path=/story/docs-utils-extending--page) page.\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,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N,CAAG,CACH,CACA,SAASM,EAAWP,EAAQ,GAAI,CAC9B,KAAM,CAAC,QAASQ,CAAS,EAAI,OAAO,OAAO,CAAE,EAAEN,EAAoB,EAAEF,EAAM,UAAU,EACrF,OAAOQ,EAAYH,EAAAA,IAAKG,EAAW,OAAO,OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/CustomNodes-511b91de.js b/assets/CustomNodes-511b91de.js new file mode 100644 index 0000000..f52615a --- /dev/null +++ b/assets/CustomNodes-511b91de.js @@ -0,0 +1,75 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as s}from"./index-2ef8b458.js";import{M as r}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function t(o){const n=Object.assign({h1:"h1",p:"p",code:"code",a:"a",blockquote:"blockquote",h2:"h2",pre:"pre",h3:"h3",ul:"ul",li:"li",strong:"strong"},s(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Docs/Advanced/Custom nodes"}),` +`,e.jsx(n.h1,{id:"custom-nodes",children:"Custom nodes"}),` +`,e.jsxs(n.p,{children:["Using HTML within a ",e.jsx(n.code,{children:"Node"})," component relies on the SVG ",e.jsx(n.a,{href:"https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject",target:"_blank",rel:"nofollow noopener noreferrer",children:e.jsx(n.code,{children:"foreignObject"})}),"."]}),` +`,e.jsxs(n.blockquote,{children:[` +`,e.jsxs(n.p,{children:["You do not need to use ",e.jsx(n.code,{children:"xmlns"})," (XML NameSpace) in the first ",e.jsx(n.code,{children:"div"})," within ",e.jsx(n.code,{children:"foreignObject"}),", it's only required when the SVG is a whole document."]}),` +`]}),` +`,e.jsx(n.h2,{id:"rendering-different-kindstypes-of-nodes",children:"Rendering different kinds/types of nodes"}),` +`,e.jsxs(n.p,{children:['Most apps will need to render different kinds of nodes. The way to go is to use a Node "',e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/734018e8135523fccc2c01077294bca0a32ddfbe/src/components/nodes/NodeRouter.tsx#L43",target:"_blank",rel:"nofollow noopener noreferrer",children:"Router"}),`" component, which checks what the node's type is, and renders the related React component.`]}),` +`,e.jsxs(n.h2,{id:"how-does-foreignobject-render-in-html",children:["How does ",e.jsx(n.code,{children:"foreignObject"})," render in HTML?"]}),` +`,e.jsxs(n.p,{children:["While using ",e.jsx(n.code,{children:"foreignObject"})," allows building components using usual HTML/CSS, there are a few quirks to consider."]}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-html",children:` + + + + + + + +
+ Node content +
+
+ + + + + + + + + + + +
+`})}),` +`,e.jsx(n.h2,{id:"known-issues-and-workarounds",children:"Known issues and workarounds"}),` +`,e.jsxs(n.h3,{id:"use-position-fixed-in-the-first-div",children:["Use ",e.jsx(n.code,{children:"position: fixed"})," in the first div"]}),` +`,e.jsxs(n.p,{children:["You must apply ",e.jsx(n.code,{children:"position: fixed"})," to the first ",e.jsx(n.code,{children:"div"})," element contained by the ",e.jsx(n.code,{children:"foreignObject"}),", otherwise any child element using ",e.jsx(n.code,{children:"position"})," ",e.jsx(n.a,{href:"https://github.com/reaviz/reaflow/issues/44#issuecomment-776883460",target:"_blank",rel:"nofollow noopener noreferrer",children:"will not be displayed"}),"."]}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:["This issue was the reason why ",e.jsx(n.code,{children:"react-select"})," and ",e.jsx(n.code,{children:"ChakraUI Select"})," components wouldn't display properly."]}),` +`]}),` +`,e.jsx(n.h3,{id:"z-index-doesnt-have-any-effect-on-svg-elements",children:"Z-index doesn't have any effect on SVG elements"}),` +`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"foreignObject"})," is still a SVG element, and it is displayed on top of the ",e.jsx(n.code,{children:"rect"})," (which represents the Node component created by reaflow)."]}),` +`,e.jsxs(n.p,{children:["It is not possible to re-order SVG elements using ",e.jsx(n.code,{children:"z-index"}),`. +The rule of display on the Z index being "the last element is displayed on top of the other element".`]}),` +`,e.jsxs(n.h3,{id:"the-foreignobject-will-steal-events-onclick-onenter-onleave-etc-that-are-bound-to-the-rect-node",children:["The ",e.jsx(n.code,{children:"foreignObject"})," will steal events (onClick, onEnter, onLeave, etc.) that are bound to the ",e.jsx(n.code,{children:"rect"})," (Node)"]}),` +`,e.jsxs(n.p,{children:["Because the ",e.jsx(n.code,{children:"foreignObject"})," displays on top of the ",e.jsx(n.code,{children:"rect"}),' element, it will "steal" events such as onClick, onEnter/onLeave (mouse).']}),` +`,e.jsxs(n.p,{children:["Those events are provided by default by Reaflow ",e.jsx(n.code,{children:"Canvas"})," to its ",e.jsx(n.code,{children:"Node"}),` components. +Thus, by using `,e.jsx(n.code,{children:"foreignObject"}),", ",e.jsx(n.strong,{children:"none of the built-in Node events will work anymore"}),", ",e.jsxs(n.a,{href:"https://github.com/reaviz/reaflow/discussions/34",target:"_blank",rel:"nofollow noopener noreferrer",children:["unless you set ",e.jsx(n.code,{children:"pointer-events: none"})," to the ",e.jsx(n.code,{children:"foreignObject"})," element"]}),"."]}),` +`,e.jsxs(n.p,{children:["Although, even if you disable ",e.jsx(n.code,{children:"pointer-events"}),", depending on your Node component UI, it might only work for part of the component."]}),` +`,e.jsx(n.p,{children:"Many built-in behaviors will be affected because of this, such as:"}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:["Dragging an edge from a node",` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:["Dragging won't work if the click doesn't happen on the ",e.jsx(n.code,{children:"rect"})]}),` +`]}),` +`]}),` +`,e.jsxs(n.li,{children:["Selecting nodes",` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:["The click won't work it doesn't happen on the ",e.jsx(n.code,{children:"rect"})]}),` +`,e.jsxs(n.li,{children:["Using shortcuts for multiple selection ",e.jsx(n.a,{href:"https://github.com/reaviz/reaflow/issues/50",target:"_blank",rel:"nofollow noopener noreferrer",children:"won't work because keyboard events won't be captured"})]}),` +`]}),` +`]}),` +`]}),` +`,e.jsxs(n.p,{children:["That's why, in addition to disabling ",e.jsx(n.code,{children:"pointer-events"}),", ",e.jsxs(n.strong,{children:["you might also want ",e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/272a23604e0a11ef0726e19091be58ffd5861d62/src/components/nodes/BaseNode.tsx#L357-L360",target:"_blank",rel:"nofollow noopener noreferrer",children:"to forward the native events"})]})," (onClick, onEnter, onLeave, onKeyPress, etc.) to the main div (",e.jsx(n.code,{children:".node"})," above)."]}),` +`,e.jsxs(n.p,{children:["By forwarding those events to the first ",e.jsx(n.code,{children:"div"}),", you'll work around most of the above-mentioned issues."]}),` +`,e.jsx(n.h3,{id:"enteringleaving-a-node",children:"Entering/leaving a node"}),` +`,e.jsx(n.p,{children:"Depending on how complicated your HTML is within the nodes themselves, it might be tough to detect whether you're in a node or not."}),` +`,e.jsxs(n.p,{children:["When not using ",e.jsx(n.code,{children:"foreignObject"}),", it is really straightforward, but when the ",e.jsx(n.code,{children:"foreignObject"})," contains complex HTML structure, the ",e.jsx(n.code,{children:"onEnter/onLeave"})," events applied to main ",e.jsx(n.code,{children:"div"})," will trigger when hovering other elements within that node, leading to a tons of false-positive events."]}),` +`,e.jsx(n.p,{children:"At this time, there was no viable solution being reported to work around this issue."}),` +`,e.jsx(n.h2,{id:"community-examples",children:"Community examples"}),` +`,e.jsxs(n.ul,{children:[` +`,e.jsxs(n.li,{children:[e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vadorequest/poc-nextjs-reaflow"})," uses custom nodes UI, and ",e.jsxs(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/287141b94145eec18fb02aab8f00676ae92f1310/src/components/nodes/BaseNode.tsx#L279-L418",target:"_blank",rel:"nofollow noopener noreferrer",children:["all nodes relies on ",e.jsx(n.code,{children:"foreignObject"})]})]}),` +`]})]})}function b(o={}){const{wrapper:n}=Object.assign({},s(),o.components);return n?e.jsx(n,Object.assign({},o,{children:e.jsx(t,o)})):t(o)}export{b as default}; +//# sourceMappingURL=CustomNodes-511b91de.js.map diff --git a/assets/CustomNodes-511b91de.js.map b/assets/CustomNodes-511b91de.js.map new file mode 100644 index 0000000..b62f741 --- /dev/null +++ b/assets/CustomNodes-511b91de.js.map @@ -0,0 +1 @@ +{"version":3,"file":"CustomNodes-511b91de.js","sources":["../../docs/Advanced/CustomNodes.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Custom nodes\n\nUsing HTML within a `Node` component relies on the SVG [`foreignObject`](https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject).\n\n> You do not need to use `xmlns` (XML NameSpace) in the first `div` within `foreignObject`, it's only required when the SVG is a whole document.\n\n## Rendering different kinds/types of nodes\n\nMost apps will need to render different kinds of nodes. The way to go is to use a Node \"[Router](https://github.com/Vadorequest/poc-nextjs-reaflow/blob/734018e8135523fccc2c01077294bca0a32ddfbe/src/components/nodes/NodeRouter.tsx#L43)\" component, which checks what the node's type is, and renders the related React component.\n\n## How does `foreignObject` render in HTML?\n\nWhile using `foreignObject` allows building components using usual HTML/CSS, there are a few quirks to consider.\n\n```html\n\n\n \n \n\n \n \n \n
\n Node content\n
\n
\n\n \n \n \n \n \n \n \n \n \n \n
\n```\n\n## Known issues and workarounds\n\n### Use `position: fixed` in the first div\n\nYou must apply `position: fixed` to the first `div` element contained by the `foreignObject`, otherwise any child element using `position` [will not be displayed](https://github.com/reaviz/reaflow/issues/44#issuecomment-776883460).\n - This issue was the reason why `react-select` and `ChakraUI Select` components wouldn't display properly.\n\n### Z-index doesn't have any effect on SVG elements\n\nThe `foreignObject` is still a SVG element, and it is displayed on top of the `rect` (which represents the Node component created by reaflow).\n\nIt is not possible to re-order SVG elements using `z-index`.\nThe rule of display on the Z index being \"the last element is displayed on top of the other element\".\n\n### The `foreignObject` will steal events (onClick, onEnter, onLeave, etc.) that are bound to the `rect` (Node)\n\nBecause the `foreignObject` displays on top of the `rect` element, it will \"steal\" events such as onClick, onEnter/onLeave (mouse).\n\nThose events are provided by default by Reaflow `Canvas` to its `Node` components.\nThus, by using `foreignObject`, **none of the built-in Node events will work anymore**, [unless you set `pointer-events: none` to the `foreignObject` element](https://github.com/reaviz/reaflow/discussions/34).\n\nAlthough, even if you disable `pointer-events`, depending on your Node component UI, it might only work for part of the component.\n\nMany built-in behaviors will be affected because of this, such as:\n- Dragging an edge from a node\n - Dragging won't work if the click doesn't happen on the `rect`\n- Selecting nodes\n - The click won't work it doesn't happen on the `rect`\n - Using shortcuts for multiple selection [won't work because keyboard events won't be captured](https://github.com/reaviz/reaflow/issues/50)\n\nThat's why, in addition to disabling `pointer-events`, **you might also want [to forward the native events](https://github.com/Vadorequest/poc-nextjs-reaflow/blob/272a23604e0a11ef0726e19091be58ffd5861d62/src/components/nodes/BaseNode.tsx#L357-L360)** (onClick, onEnter, onLeave, onKeyPress, etc.) to the main div (`.node` above).\n\nBy forwarding those events to the first `div`, you'll work around most of the above-mentioned issues.\n\n### Entering/leaving a node\n\nDepending on how complicated your HTML is within the nodes themselves, it might be tough to detect whether you're in a node or not.\n\nWhen not using `foreignObject`, it is really straightforward, but when the `foreignObject` contains complex HTML structure, the `onEnter/onLeave` events applied to main `div` will trigger when hovering other elements within that node, leading to a tons of false-positive events.\n\nAt this time, there was no viable solution being reported to work around this issue.\n\n## Community examples\n\n- [Vadorequest/poc-nextjs-reaflow](https://github.com/Vadorequest/poc-nextjs-reaflow) uses custom nodes UI, and [all nodes relies on `foreignObject`](https://github.com/Vadorequest/poc-nextjs-reaflow/blob/287141b94145eec18fb02aab8f00676ae92f1310/src/components/nodes/BaseNode.tsx#L279-L418)\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,KAAM,OACN,EAAG,IACH,WAAY,aACZ,GAAI,KACJ,IAAK,MACL,GAAI,KACJ,GAAI,KACJ,GAAI,KACJ,OAAQ,QACT,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAOG,EAAAA,KAAMC,EAAAA,SAAW,CACtB,SAAU,CAACC,EAAI,IAACC,EAAM,CACpB,MAAO,4BACR,CAAA,EAAG;AAAA,EAAMD,MAAKJ,EAAY,GAAI,CAC7B,GAAI,eACJ,SAAU,cACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,EAAG,CAC7B,SAAU,CAAC,uBAAwBI,MAAKJ,EAAY,KAAM,CACxD,SAAU,MACX,CAAA,EAAG,gCAAiCI,MAAKJ,EAAY,EAAG,CACvD,KAAM,yEACN,OAAQ,SACR,IAAK,+BACL,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,SAAU,eACpB,CAAS,CACF,CAAA,EAAG,GAAG,CACR,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,WAAY,CACtC,SAAU,CAAC;AAAA,EAAME,OAAMF,EAAY,EAAG,CACpC,SAAU,CAAC,0BAA2BI,MAAKJ,EAAY,KAAM,CAC3D,SAAU,OACX,CAAA,EAAG,iCAAkCI,MAAKJ,EAAY,KAAM,CAC3D,SAAU,KACX,CAAA,EAAG,WAAYI,MAAKJ,EAAY,KAAM,CACrC,SAAU,eACX,CAAA,EAAG,wDAAwD,CAC7D,CAAA,EAAG;AAAA,CAAI,CACT,CAAA,EAAG;AAAA,EAAMI,MAAKJ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,iBACX,CAAA,EAAG,2BAA4BI,MAAKJ,EAAY,KAAM,CACrD,SAAU,KACX,CAAA,EAAG,0GAA0G,CAC/G,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,sFACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,GAAI,qBACJ,SAAU,oBACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,GAAI,CAC9B,SAAU,CAAC;AAAA,EAAME,OAAMF,EAAY,GAAI,CACrC,SAAU,CAACI,EAAAA,IAAKJ,EAAY,EAAG,CAC7B,KAAM,oDACN,OAAQ,SACR,IAAK,+BACL,SAAU,gCACX,CAAA,EAAG,8BAA+BE,OAAMF,EAAY,EAAG,CACtD,KAAM,8IACN,OAAQ,SACR,IAAK,+BACL,SAAU,CAAC,uBAAwBI,MAAKJ,EAAY,KAAM,CACxD,SAAU,eACtB,CAAW,CAAC,CACZ,CAAS,CAAC,CACH,CAAA,EAAG;AAAA,CAAI,CACd,CAAK,CAAC,CACN,CAAG,CACH,CACA,SAASM,EAAWP,EAAQ,GAAI,CAC9B,KAAM,CAAC,QAASQ,CAAS,EAAI,OAAO,OAAO,CAAE,EAAEN,EAAoB,EAAEF,EAAM,UAAU,EACrF,OAAOQ,EAAYH,EAAAA,IAAKG,EAAW,OAAO,OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/DataShapes-05db0f71.js b/assets/DataShapes-05db0f71.js new file mode 100644 index 0000000..b7761a3 --- /dev/null +++ b/assets/DataShapes-05db0f71.js @@ -0,0 +1,204 @@ +import{j as n}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as a}from"./index-2ef8b458.js";import{M as i}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function o(t){const e=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li",code:"code",h2:"h2",pre:"pre"},a(),t.components);return n.jsxs(n.Fragment,{children:[n.jsx(i,{title:"Docs/Getting Started/Data Shapes"}),` +`,n.jsx(e.h1,{id:"data-shapes",children:"Data Shapes"}),` +`,n.jsx(e.p,{children:`The graph is made up of 3 basic data shape objects you +can pass to the graph.`}),` +`,n.jsxs(e.ul,{children:[` +`,n.jsxs(e.li,{children:[n.jsx(e.code,{children:"NodeData"})," - The element block which renders"]}),` +`,n.jsxs(e.li,{children:[n.jsx(e.code,{children:"EdgeData"})," - The link between Nodes"]}),` +`,n.jsxs(e.li,{children:[n.jsx(e.code,{children:"PortData"})," - A specific enter/exit block to link between Nodes"]}),` +`]}),` +`,n.jsx(e.h2,{id:"node",children:"Node"}),` +`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface NodeData { + /** + * Unique ID for the node. + */ + id: string; + + /** + * Whether the node is disabled or not. + */ + disabled?: boolean; + + /** + * Text label for the node. + */ + text?: any; + + /** + * Optional height attribute. If not passed with calculate + * default sizes using text. + */ + height?: number; + + /** + * Optional width attribute. If not passed with calculate + * default sizes using text. + */ + width?: number; + + /** + * Parent node id for nesting. + */ + parent?: string; + + /** + * List of ports. + */ + ports?: PortData[]; + + /** + * Icon for the node. + */ + icon?: IconData; + + /** + * Padding for the node. + */ + nodePadding?: number | [number, number] | [number, number, number, number]; + + /** + * Data for the node. + */ + data?: T; + + /** + * CSS classname for the node. + */ + className?: string; + + /** + * ELK layout options. + */ + layoutOptions?: ElkNodeLayoutOptions; + + /** + * Whether the node can be clicked. + */ + selectionDisabled?: boolean; +} +`})}),` +`,n.jsxs(e.p,{children:["The node also has a ",n.jsx(e.code,{children:"IconData"})," shape:"]}),` +`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface IconData { + /** + * URL for the icon. + */ + url: string; + + /** + * Height of the icon. + */ + height: number; + + /** + * Width of the icon. + */ + width: number; +} +`})}),` +`,n.jsx(e.h2,{id:"edge",children:"Edge"}),` +`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface EdgeData { + /** + * Unique ID of the edge. + */ + id: string; + + /** + * Whether the edge is disabled or not. + */ + disabled?: boolean; + + /** + * Text label for the edge. + */ + text?: any; + + /** + * ID of the from node. + */ + from?: string; + + /** + * ID of the to node. + */ + to?: string; + + /** + * Optional ID of the from port. + */ + fromPort?: string; + + /** + * Optional ID of the to port. + */ + toPort?: string; + + /** + * Data about the edge. + */ + data?: T; + + /** + * CSS Classname for the edge. + */ + className?: string; + + /** + * Optional arrow head type. + */ + arrowHeadType?: any; + + /** + * Parent of the edge for nesting. + */ + parent?: string; + + /** + * Whether the edge can be clicked. + */ + selectionDisabled?: boolean; +} +`})}),` +`,n.jsx(e.h2,{id:"port",children:"Port"}),` +`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface PortData { + /** + * Unique ID of the port. + */ + id: string; + + /** + * Height of the port. + */ + height: number; + + /** + * Width of the port. + */ + width: number; + + /** + * Whether the port is visually hidden or not. + */ + hidden?: boolean; + + /** + * Classname for the port. + */ + className?: string; + + /** + * Alignment of the port. + */ + alignment?: 'CENTER'; + + /** + * Side the port is located. + */ + side: 'NORTH' | 'SOUTH' | 'EAST' | 'WEST'; + + /** + * Port is disabled. + */ + disabled?: boolean; +} +`})})]})}function j(t={}){const{wrapper:e}=Object.assign({},a(),t.components);return e?n.jsx(e,Object.assign({},t,{children:n.jsx(o,t)})):o(t)}export{j as default}; +//# sourceMappingURL=DataShapes-05db0f71.js.map diff --git a/assets/DataShapes-05db0f71.js.map b/assets/DataShapes-05db0f71.js.map new file mode 100644 index 0000000..90011bd --- /dev/null +++ b/assets/DataShapes-05db0f71.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DataShapes-05db0f71.js","sources":["../../docs/GettingStarted/DataShapes.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Data Shapes\nThe graph is made up of 3 basic data shape objects you\ncan pass to the graph.\n\n- `NodeData` - The element block which renders\n- `EdgeData` - The link between Nodes\n- `PortData` - A specific enter/exit block to link between Nodes\n\n## Node\n```ts\nexport interface NodeData {\n /**\n * Unique ID for the node.\n */\n id: string;\n\n /**\n * Whether the node is disabled or not.\n */\n disabled?: boolean;\n\n /**\n * Text label for the node.\n */\n text?: any;\n\n /**\n * Optional height attribute. If not passed with calculate\n * default sizes using text.\n */\n height?: number;\n\n /**\n * Optional width attribute. If not passed with calculate\n * default sizes using text.\n */\n width?: number;\n\n /**\n * Parent node id for nesting.\n */\n parent?: string;\n\n /**\n * List of ports.\n */\n ports?: PortData[];\n\n /**\n * Icon for the node.\n */\n icon?: IconData;\n\n /**\n * Padding for the node.\n */\n nodePadding?: number | [number, number] | [number, number, number, number];\n\n /**\n * Data for the node.\n */\n data?: T;\n\n /**\n * CSS classname for the node.\n */\n className?: string;\n\n /**\n * ELK layout options.\n */\n layoutOptions?: ElkNodeLayoutOptions;\n\n /**\n * Whether the node can be clicked.\n */\n selectionDisabled?: boolean;\n}\n```\n\nThe node also has a `IconData` shape:\n\n```ts\nexport interface IconData {\n /**\n * URL for the icon.\n */\n url: string;\n\n /**\n * Height of the icon.\n */\n height: number;\n\n /**\n * Width of the icon.\n */\n width: number;\n}\n```\n\n## Edge\n```ts\nexport interface EdgeData {\n /**\n * Unique ID of the edge.\n */\n id: string;\n\n /**\n * Whether the edge is disabled or not.\n */\n disabled?: boolean;\n\n /**\n * Text label for the edge.\n */\n text?: any;\n\n /**\n * ID of the from node.\n */\n from?: string;\n\n /**\n * ID of the to node.\n */\n to?: string;\n\n /**\n * Optional ID of the from port.\n */\n fromPort?: string;\n\n /**\n * Optional ID of the to port.\n */\n toPort?: string;\n\n /**\n * Data about the edge.\n */\n data?: T;\n\n /**\n * CSS Classname for the edge.\n */\n className?: string;\n\n /**\n * Optional arrow head type.\n */\n arrowHeadType?: any;\n\n /**\n * Parent of the edge for nesting.\n */\n parent?: string;\n\n /**\n * Whether the edge can be clicked.\n */\n selectionDisabled?: boolean;\n}\n```\n\n## Port\n```ts\nexport interface PortData {\n /**\n * Unique ID of the port.\n */\n id: string;\n\n /**\n * Height of the port.\n */\n height: number;\n\n /**\n * Width of the port.\n */\n width: number;\n\n /**\n * Whether the port is visually hidden or not.\n */\n hidden?: boolean;\n\n /**\n * Classname for the port.\n */\n className?: string;\n\n /**\n * Alignment of the port.\n */\n alignment?: 'CENTER';\n\n /**\n * Side the port is located.\n */\n side: 'NORTH' | 'SOUTH' | 'EAST' | 'WEST';\n\n /**\n * Port is disabled.\n */\n disabled?: boolean;\n}\n```\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,GAAI,KACJ,GAAI,KACJ,KAAM,OACN,GAAI,KACJ,IAAK,KACN,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAOG,EAAAA,KAAMC,EAAAA,SAAW,CACtB,SAAU,CAACC,EAAI,IAACC,EAAM,CACpB,MAAO,kCACR,CAAA,EAAG;AAAA,EAAMD,MAAKJ,EAAY,GAAI,CAC7B,GAAI,cACJ,SAAU,aACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU;AAAA,uBACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,GAAI,CAC9B,SAAU,CAAC;AAAA,EAAME,OAAMF,EAAY,GAAI,CACrC,SAAU,CAACI,EAAAA,IAAKJ,EAAY,KAAM,CAChC,SAAU,UACX,CAAA,EAAG,oCAAoC,CACzC,C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AA,IAAKG,EAAW,OAAO,OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/DocsRenderer-3PUGWF3O-ee3b1a4c.js b/assets/DocsRenderer-3PUGWF3O-ee3b1a4c.js new file mode 100644 index 0000000..bacd8be --- /dev/null +++ b/assets/DocsRenderer-3PUGWF3O-ee3b1a4c.js @@ -0,0 +1,2 @@ +import{D as c,d as l}from"./chunk-S4VUQJ4A-48c253a4.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./index-1b03fe98.js";import"./react-18-5df836b6.js";import"./index-6fd5a17b.js";import"./index-44920ba4.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";export{c as DocsRenderer,l as defaultComponents}; +//# sourceMappingURL=DocsRenderer-3PUGWF3O-ee3b1a4c.js.map diff --git a/assets/DocsRenderer-3PUGWF3O-ee3b1a4c.js.map b/assets/DocsRenderer-3PUGWF3O-ee3b1a4c.js.map new file mode 100644 index 0000000..149bf49 --- /dev/null +++ b/assets/DocsRenderer-3PUGWF3O-ee3b1a4c.js.map @@ -0,0 +1 @@ +{"version":3,"file":"DocsRenderer-3PUGWF3O-ee3b1a4c.js","sources":[],"sourcesContent":[],"names":[],"mappings":""} \ No newline at end of file diff --git a/assets/Drag.stories-006fce37.js b/assets/Drag.stories-006fce37.js new file mode 100644 index 0000000..4c53c4e --- /dev/null +++ b/assets/Drag.stories-006fce37.js @@ -0,0 +1,350 @@ +import{j as o}from"./jsx-runtime-9c4ae004.js";import{r as f}from"./index-1b03fe98.js";import{C as n,N as p,E as X,M as Y,a as Z,I as ee,L as te,P as oe,R as re,A as se}from"./Icon-81c21a65.js";import"./IntersectionQuery-9432d399.js";import{c as D,r as j}from"./crudHelpers-031fd461.js";import{h as b}from"./graphHelpers-fa49f917.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const fe={title:"Demos/Drag",component:n,subcomponents:{Node:p,Edge:X,MarkerArrow:Y,Arrow:Z,Icon:ee,Label:te,Port:oe,Remove:re,Add:se}},c=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:o.jsx(p,{dragCursor:"grab",dragType:"node"})})}),u=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:[{id:"1",text:"1",ports:i("1")},{id:"2",text:"2",ports:i("2")}],edges:[l("1","2")],node:o.jsx(p,{dragType:"port"})})}),x=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:[{id:"1",text:"1",ports:i("1")},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:o.jsx(p,{dragType:"multiportOnly"})})}),N=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:[{id:"1",text:"1",ports:i("1")},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:o.jsx(p,{dragType:"all"})})}),k=()=>{const[r,g]=f.useState([{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"},{id:"5",text:"5"},{id:"6",text:"6"}]),[s,m]=f.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"},{id:"2-4",from:"2",to:"4"},{id:"2-5",from:"2",to:"5"},{id:"5-6",from:"5",to:"6"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:r,edges:s,node:o.jsx(p,{dragType:"node"}),onNodeLinkCheck:(d,e,t)=>!(e.id===t.id||b(s,e,t)),onNodeLink:(d,e,t)=>{const a=s.filter(E=>E.to!==e.id);m([...a,D(t,e)])}})})},h=()=>{const[r,g]=f.useState([{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"},{id:"5",text:"5"},{id:"6",text:"6"}]),[s,m]=f.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"},{id:"2-4",from:"2",to:"4"},{id:"2-5",from:"2",to:"5"},{id:"5-6",from:"5",to:"6"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:r,edges:s,node:o.jsx(p,{dragType:"node"}),onNodeLinkCheck:(d,e,t)=>!(e.id===t.id||b(s,e,t)),onNodeLink:(d,e,t)=>{const a=j(r,s,e);m([...a.edges,D(t,e)])}})})},v=()=>{const[r,g]=f.useState([{id:"1",text:"1",ports:i("1")},{id:"2",text:"2",ports:i("2")},{id:"3",text:"3",ports:i("3")},{id:"4",text:"4",ports:i("4")},{id:"5",text:"5",ports:i("5")},{id:"6",text:"6",ports:i("6")}]),[s,m]=f.useState([l("1","2"),l("2","3"),l("2","4"),l("2","5"),l("5","6")]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:r,edges:s,node:o.jsx(p,{dragType:"all"}),onNodeLinkCheck:(d,e,t)=>!(e.id===t.id||b(s,e,t)),onNodeLink:(d,e,t)=>{if(d.dragType==="node"){const a=j(r,s,e);m([...a.edges,l(t.id,e.id)])}else d.dragType==="port"&&m([...s,l(e.id,t.id)])}})})},y=()=>{const[r,g]=f.useState([{id:"1",text:"1"},{id:"2"},{id:"2-1-1",text:"2 > 1.1",parent:"2"},{id:"2-1-2",text:"2 > 1.2",parent:"2"},{id:"2-1-3",text:"2 > 1.3",parent:"2"},{id:"2-1-4",text:"2 > 1.4",parent:"2"},{id:"2-2-1",parent:"2"},{id:"2-2-1-1",text:"2 > 2.1 > 1.1",parent:"2-2-1"},{id:"3",text:"3"}]),[s,m]=f.useState([{id:"1-2",from:"1",to:"2"},{id:"2-1-1>2-1-2",from:"2-1-1",to:"2-1-2",parent:"2"},{id:"2-1-1>2-1-3",from:"2-1-1",to:"2-1-3",parent:"2"},{id:"2-1-2>2-2-1",from:"2-1-2",to:"2-2-1",parent:"2"},{id:"2-1-3>2-1-4",from:"2-1-3",to:"2-1-4",parent:"2"},{id:"2-3",from:"2",to:"3"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(n,{nodes:r,edges:s,node:d=>{const t=r.filter(a=>a.parent&&a.parent===d.id).length>3;return o.jsx(p,{...d,dragType:"node",draggable:!t})},onNodeLinkCheck:(d,e,t)=>!(e.id===t.id||e.id===t.parent||b(s,t,e)),onNodeLink:(d,e,t)=>{const a=j(r,s,e);if((e.parent||t.parent)&&e.parent!==t.parent){const E=r.map(P=>P.id===e.id?{...P,parent:t.parent}:{...P});e.parent=t.parent,g(E)}m([...a.edges,D(t,e)])}})})},i=r=>[{id:`${r}-from`,width:10,height:10,side:"SOUTH"},{id:`${r}-to`,width:10,height:10,side:"NORTH"}],l=(r,g)=>({id:`${r}-${g}`,from:r,to:g,fromPort:`${r}-from`,toPort:`${g}-to`});var S,F,L;c.parameters={...c.parameters,docs:{...(S=c.parameters)==null?void 0:S.docs,source:{originalSource:`() =>
+ } /> +
`,...(L=(F=c.parameters)==null?void 0:F.docs)==null?void 0:L.source}}};var T,C,_;u.parameters={...u.parameters,docs:{...(T=u.parameters)==null?void 0:T.docs,source:{originalSource:`() =>
+ } /> +
`,...(_=(C=u.parameters)==null?void 0:C.docs)==null?void 0:_.source}}};var O,w,R;x.parameters={...x.parameters,docs:{...(O=x.parameters)==null?void 0:O.docs,source:{originalSource:`() =>
+ } /> +
`,...(R=(w=x.parameters)==null?void 0:w.docs)==null?void 0:R.source}}};var A,W,U;N.parameters={...N.parameters,docs:{...(A=N.parameters)==null?void 0:A.docs,source:{originalSource:`() =>
+ } /> +
`,...(U=(W=N.parameters)==null?void 0:W.docs)==null?void 0:U.source}}};var $,M,H;k.parameters={...k.parameters,docs:{...($=k.parameters)==null?void 0:$.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: '1' + }, { + id: '2', + text: '2' + }, { + id: '3', + text: '3' + }, { + id: '4', + text: '4' + }, { + id: '5', + text: '5' + }, { + id: '6', + text: '6' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }, { + id: '2-3', + from: '2', + to: '3' + }, { + id: '2-4', + from: '2', + to: '4' + }, { + id: '2-5', + from: '2', + to: '5' + }, { + id: '5-6', + from: '5', + to: '6' + }]); + return
+ } onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => { + if (from.id === to.id) { + return false; + } + if (hasLink(edges, from, to)) { + return false; + } + return true; + }} onNodeLink={(_event, from, to) => { + const newEdges = edges.filter(e => e.to !== from.id); + setEdges([...newEdges, createEdgeFromNodes(to, from)]); + }} /> +
; +}`,...(H=(M=k.parameters)==null?void 0:M.docs)==null?void 0:H.source}}};var I,q,z;h.parameters={...h.parameters,docs:{...(I=h.parameters)==null?void 0:I.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: '1' + }, { + id: '2', + text: '2' + }, { + id: '3', + text: '3' + }, { + id: '4', + text: '4' + }, { + id: '5', + text: '5' + }, { + id: '6', + text: '6' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }, { + id: '2-3', + from: '2', + to: '3' + }, { + id: '2-4', + from: '2', + to: '4' + }, { + id: '2-5', + from: '2', + to: '5' + }, { + id: '5-6', + from: '5', + to: '6' + }]); + return
+ } onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => { + if (from.id === to.id) { + return false; + } + if (hasLink(edges, from, to)) { + return false; + } + return true; + }} onNodeLink={(_event, from, to) => { + const result = removeAndUpsertNodes(nodes, edges, from); + setEdges([...result.edges, createEdgeFromNodes(to, from)]); + }} /> +
; +}`,...(z=(q=h.parameters)==null?void 0:q.docs)==null?void 0:z.source}}};var B,G,J;v.parameters={...v.parameters,docs:{...(B=v.parameters)==null?void 0:B.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: '1', + ports: makeFakePorts('1') + }, { + id: '2', + text: '2', + ports: makeFakePorts('2') + }, { + id: '3', + text: '3', + ports: makeFakePorts('3') + }, { + id: '4', + text: '4', + ports: makeFakePorts('4') + }, { + id: '5', + text: '5', + ports: makeFakePorts('5') + }, { + id: '6', + text: '6', + ports: makeFakePorts('6') + }]); + const [edges, setEdges] = useState([makeFakeEdgeWithPorts('1', '2'), makeFakeEdgeWithPorts('2', '3'), makeFakeEdgeWithPorts('2', '4'), makeFakeEdgeWithPorts('2', '5'), makeFakeEdgeWithPorts('5', '6')]); + return
+ } onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => { + if (from.id === to.id) { + return false; + } + if (hasLink(edges, from, to)) { + return false; + } + return true; + }} onNodeLink={(event, from, to) => { + if (event.dragType === 'node') { + // TODO: Need to make handle ports + const result = removeAndUpsertNodes(nodes, edges, from); + setEdges([...result.edges, makeFakeEdgeWithPorts(to.id, from.id)]); + } else if (event.dragType === 'port') { + setEdges([...edges, makeFakeEdgeWithPorts(from.id, to.id)]); + } + }} /> +
; +}`,...(J=(G=v.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};var K,Q,V;y.parameters={...y.parameters,docs:{...(K=y.parameters)==null?void 0:K.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: '1' + }, { + id: '2' + }, { + id: '2-1-1', + text: '2 > 1.1', + parent: '2' + }, { + id: '2-1-2', + text: '2 > 1.2', + parent: '2' + }, { + id: '2-1-3', + text: '2 > 1.3', + parent: '2' + }, { + id: '2-1-4', + text: '2 > 1.4', + parent: '2' + }, { + id: '2-2-1', + parent: '2' + }, { + id: '2-2-1-1', + text: '2 > 2.1 > 1.1', + parent: '2-2-1' + }, { + id: '3', + text: '3' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }, { + id: '2-1-1>2-1-2', + from: '2-1-1', + to: '2-1-2', + parent: '2' + }, { + id: '2-1-1>2-1-3', + from: '2-1-1', + to: '2-1-3', + parent: '2' + }, { + id: '2-1-2>2-2-1', + from: '2-1-2', + to: '2-2-1', + parent: '2' + }, { + id: '2-1-3>2-1-4', + from: '2-1-3', + to: '2-1-4', + parent: '2' + }, { + id: '2-3', + from: '2', + to: '3' + }]); + return
+ { + // Prevent parent nodes with large number of children from dragging, but allow children to drag + const children = nodes.filter(n => n.parent && n.parent === node.id); + const notDraggable = children.length > 3; + return ; + }} onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => { + if (from.id === to.id) { + return false; + } + if (from.id === to.parent) { + return false; + } + if (hasLink(edges, to, from)) { + return false; + } + return true; + }} onNodeLink={(_event, from, to) => { + const result = removeAndUpsertNodes(nodes, edges, from); + + // Update parents + if ((from.parent || to.parent) && from.parent !== to.parent) { + const newNodes = nodes.map(n => n.id === from.id ? { + ...n, + parent: to.parent + } : { + ...n + }); + from.parent = to.parent; + setNodes(newNodes); + } + setEdges([...result.edges, createEdgeFromNodes(to, from)]); + }} /> +
; +}`,...(V=(Q=y.parameters)==null?void 0:Q.docs)==null?void 0:V.source}}};const ce=["NodeOnlyDrag","PortOnlyDrag","MultiPortOnlyDrag","AllDrag","NodeRearranging","NodeRearrangingUpsert","NodePortRearranging","NestedNodeRearranging"];export{N as AllDrag,x as MultiPortOnlyDrag,y as NestedNodeRearranging,c as NodeOnlyDrag,v as NodePortRearranging,k as NodeRearranging,h as NodeRearrangingUpsert,u as PortOnlyDrag,ce as __namedExportsOrder,fe as default}; +//# sourceMappingURL=Drag.stories-006fce37.js.map diff --git a/assets/Drag.stories-006fce37.js.map b/assets/Drag.stories-006fce37.js.map new file mode 100644 index 0000000..0b989f8 --- /dev/null +++ b/assets/Drag.stories-006fce37.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Drag.stories-006fce37.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Edge.stories-7f912866.js b/assets/Edge.stories-7f912866.js new file mode 100644 index 0000000..69b44d0 --- /dev/null +++ b/assets/Edge.stories-7f912866.js @@ -0,0 +1,266 @@ +import{j as o}from"./jsx-runtime-9c4ae004.js";import{r as i}from"./index-1b03fe98.js";import{C as r,N as h,E as u,M as Z,a as ee,I as oe,L as te,P as ne,R as se,A as C}from"./Icon-81c21a65.js";import"./IntersectionQuery-9432d399.js";import{u as X,r as Y}from"./crudHelpers-031fd461.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const ue={title:"Demos/Edges",component:r,subcomponents:{Node:h,Edge:u,MarkerArrow:Z,Arrow:ee,Icon:oe,Label:te,Port:ne,Remove:se,Add:C}},m=()=>{const[n,s]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}]),[a,g]=i.useState([{id:"1-2",from:"1",to:"2"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:n,edges:a,edge:o.jsx(u,{add:o.jsx(C,{hidden:!1}),onAdd:(l,c)=>{const e=`node-${Math.random()}`,d=X(n,a,c,{id:e,text:e});s(d.nodes),g(d.edges)}}),onLayoutChange:l=>console.log("Layout",l)})})},v=()=>{const[n,s]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}]),[a,g]=i.useState([{id:"1-2",from:"1",to:"2"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:n,edges:a,edge:o.jsx(u,{add:o.jsx(C,{hidden:!1}),upsertable:!1,onAdd:(l,c)=>{const e=`node-${Math.random()}`,d=X(n,a,c,{id:e,text:e});s(d.nodes),g(d.edges)}}),onLayoutChange:l=>console.log("Layout",l)})})},p=()=>{const[n]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}]),[s]=i.useState([{id:"1-2",from:"1",to:"2"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:n,edges:s,edge:o.jsx(u,{selectable:!1}),onLayoutChange:a=>console.log("Layout",a)})})},N=()=>{const[n,s]=i.useState(["1","1-2"]),[a,g]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}]),[l,c]=i.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:a,edges:l,selections:n,node:o.jsx(h,{onClick:(e,t)=>{console.log("Selecting Node",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Node",e,t);const d=Y(a,l,t);c(d.edges),g(d.nodes),s([])}}),edge:o.jsx(u,{onClick:(e,t)=>{console.log("Selecting Edge",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Edge",e,t),c(l.filter(d=>d.id!==t.id)),s([])}}),onCanvasClick:e=>{console.log("Canvas Clicked",e),s([])},onLayoutChange:e=>console.log("Layout",e)})})},x=()=>{const[n,s]=i.useState(["1-2"]),[a,g]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}]),[l,c]=i.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:a,edges:l,selections:n,node:o.jsx(h,{removable:!1,onClick:(e,t)=>{console.log("Selecting Node",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Node",e,t);const d=Y(a,l,t);c(d.edges),g(d.nodes),s([])}}),edge:o.jsx(u,{removable:!1,onClick:(e,t)=>{console.log("Selecting Edge",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Edge",e,t),c(l.filter(d=>d.id!==t.id)),s([])}}),onCanvasClick:e=>{console.log("Canvas Clicked",e),s([])},onLayoutChange:e=>console.log("Layout",e)})})},y=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{arrow:null,nodes:[{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"}],edges:[{id:"1-2",from:"1",to:"2",selectionDisabled:!0},{id:"2-3",from:"2",to:"3",disabled:!0},{id:"1-3",from:"1",to:"3"}],onLayoutChange:n=>console.log("Layout",n)})}),b=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{arrow:null,nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:n=>console.log("Layout",n)})}),f=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[],onLayoutChange:n=>console.log("Layout",n)})}),S=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[{id:"1-2",from:"1",to:"2",text:"Label 1-2"}],onLayoutChange:n=>console.log("Layout",n)})});var L,E,j;m.parameters={...m.parameters,docs:{...(L=m.parameters)==null?void 0:L.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: 'Node 1' + }, { + id: '2', + text: 'Node 2' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }]); + return
+
; +}`,...(j=(E=m.parameters)==null?void 0:E.docs)==null?void 0:j.source}}};var R,k,A;v.parameters={...v.parameters,docs:{...(R=v.parameters)==null?void 0:R.docs,source:{originalSource:`() => { + const [nodes, setNodes] = useState([{ + id: '1', + text: 'Node 1' + }, { + id: '2', + text: 'Node 2' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }]); + return
+
; +}`,...(A=(k=v.parameters)==null?void 0:k.docs)==null?void 0:A.source}}};var w,D,M;p.parameters={...p.parameters,docs:{...(w=p.parameters)==null?void 0:w.docs,source:{originalSource:`() => { + const [nodes] = useState([{ + id: '1', + text: 'Node 1' + }, { + id: '2', + text: 'Node 2' + }]); + const [edges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }]); + return
+ } onLayoutChange={layout => console.log('Layout', layout)} /> +
; +}`,...(M=(D=p.parameters)==null?void 0:D.docs)==null?void 0:M.source}}};var U,$,_;N.parameters={...N.parameters,docs:{...(U=N.parameters)==null?void 0:U.docs,source:{originalSource:`() => { + const [selections, setSelections] = useState(['1', '1-2']); + const [nodes, setNodes] = useState([{ + id: '1', + text: 'Node 1' + }, { + id: '2', + text: 'Node 2' + }, { + id: '3', + text: 'Node 3' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }, { + id: '2-3', + from: '2', + to: '3' + }]); + return
+ { + console.log('Selecting Node', event, node); + setSelections([node.id]); + }} onRemove={(event, node) => { + console.log('Removing Node', event, node); + const result = removeAndUpsertNodes(nodes, edges, node); + setEdges(result.edges); + setNodes(result.nodes); + setSelections([]); + }} />} edge={ { + console.log('Selecting Edge', event, edge); + setSelections([edge.id]); + }} onRemove={(event, edge) => { + console.log('Removing Edge', event, edge); + setEdges(edges.filter(e => e.id !== edge.id)); + setSelections([]); + }} />} onCanvasClick={event => { + console.log('Canvas Clicked', event); + setSelections([]); + }} onLayoutChange={layout => console.log('Layout', layout)} /> +
; +}`,...(_=($=N.parameters)==null?void 0:$.docs)==null?void 0:_.source}}};var I,P,O;x.parameters={...x.parameters,docs:{...(I=x.parameters)==null?void 0:I.docs,source:{originalSource:`() => { + const [selections, setSelections] = useState(['1-2']); + const [nodes, setNodes] = useState([{ + id: '1', + text: 'Node 1' + }, { + id: '2', + text: 'Node 2' + }, { + id: '3', + text: 'Node 3' + }]); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }, { + id: '2-3', + from: '2', + to: '3' + }]); + return
+ { + console.log('Selecting Node', event, node); + setSelections([node.id]); + }} onRemove={(event, node) => { + console.log('Removing Node', event, node); + const result = removeAndUpsertNodes(nodes, edges, node); + setEdges(result.edges); + setNodes(result.nodes); + setSelections([]); + }} />} edge={ { + console.log('Selecting Edge', event, edge); + setSelections([edge.id]); + }} onRemove={(event, edge) => { + console.log('Removing Edge', event, edge); + setEdges(edges.filter(e => e.id !== edge.id)); + setSelections([]); + }} />} onCanvasClick={event => { + console.log('Canvas Clicked', event); + setSelections([]); + }} onLayoutChange={layout => console.log('Layout', layout)} /> +
; +}`,...(O=(P=x.parameters)==null?void 0:P.docs)==null?void 0:O.source}}};var q,z,B;y.parameters={...y.parameters,docs:{...(q=y.parameters)==null?void 0:q.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(B=(z=y.parameters)==null?void 0:z.docs)==null?void 0:B.source}}};var F,G,H;b.parameters={...b.parameters,docs:{...(F=b.parameters)==null?void 0:F.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(H=(G=b.parameters)==null?void 0:G.docs)==null?void 0:H.source}}};var J,K,Q;f.parameters={...f.parameters,docs:{...(J=f.parameters)==null?void 0:J.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(Q=(K=f.parameters)==null?void 0:K.docs)==null?void 0:Q.source}}};var T,V,W;S.parameters={...S.parameters,docs:{...(T=S.parameters)==null?void 0:T.docs,source:{originalSource:`() =>
+ console.log('Layout', layout)} /> +
`,...(W=(V=S.parameters)==null?void 0:V.docs)==null?void 0:W.source}}};const me=["Adding","NotUpsertable","NotSelectable","Removeable","NotRemoveable","Disabled","NoArrows","NoEdges","Labels"];export{m as Adding,y as Disabled,S as Labels,b as NoArrows,f as NoEdges,x as NotRemoveable,p as NotSelectable,v as NotUpsertable,N as Removeable,me as __namedExportsOrder,ue as default}; +//# sourceMappingURL=Edge.stories-7f912866.js.map diff --git a/assets/Edge.stories-7f912866.js.map b/assets/Edge.stories-7f912866.js.map new file mode 100644 index 0000000..8263344 --- /dev/null +++ b/assets/Edge.stories-7f912866.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Edge.stories-7f912866.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Editor.stories-19410bbd.js b/assets/Editor.stories-19410bbd.js new file mode 100644 index 0000000..0a55a0a --- /dev/null +++ b/assets/Editor.stories-19410bbd.js @@ -0,0 +1,186 @@ +import{j as t}from"./jsx-runtime-9c4ae004.js";import{r as s}from"./index-1b03fe98.js";import{C as v,N as f,E as y,M as S,a as j,I as C,L as M,P as A,R as L,A as I,m as d,c as P}from"./Icon-81c21a65.js";import"./IntersectionQuery-9432d399.js";import{a as z}from"./crudHelpers-031fd461.js";import{u as B}from"./use-drag-controls-c572fac6.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const H={title:"Demos/Editor",component:v,subcomponents:{Node:f,Edge:y,MarkerArrow:S,Arrow:j,Icon:C,Label:M,Port:A,Remove:L,Add:I}},n=()=>{const i=B(),[D,r]=s.useState(null),[a,c]=s.useState(null),[N,l]=s.useState(!1),[g,E]=s.useState([{id:"1-2",from:"1",to:"2"}]),[u,k]=s.useState([{id:"1",text:"1"},{id:"2",text:"2"}]),p=(e,o)=>{console.log("Start of Dragging",e,o),c(o),i.start(e,{snapToCursor:!0})},w=e=>{if(console.log("End of Dragging",e),N){const o=`${a}-${Math.floor(Math.random()*100)+1}`,m=z(u,g,{id:o,text:o},D);k(m.nodes),E(m.edges)}l(!1),c(null),r(null)};return t.jsxs("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:[t.jsx("style",{children:` + .left { + position: absolute; + top: 0; + bottom: 0; + left: 0; + width: 150px; + background: #272626; + color: white; + padding: 20px; + display: flex; + } + .right { + position: absolute; + top: 0; + bottom: 0; + left: 150px; + right: 0; + } + .block { + height: 50px; + width: 50px; + cursor: grab; + background: black; + margin-right: 10px; + display: flex; + align-items: center; + justify-content: center; + padding: 5px; + -webkit-touch-callout: none; + -webkit-user-select: none; + -khtml-user-select: none; + -moz-user-select: none; + -ms-user-select: none; + user-select: none; + flex: 1; + } + .dragger { + z-index: 999; + pointer-events: none; + user-select: none; + cursor: grabbing; + height: 70px; + width: 150px; + } + .dragInner { + pointer-events: none; + margin-left: 80px; + border-radius: 5px; + background: black; + border: solid 1px #00c5be; + height: 40px; + width: 40px; + color: white; + display: flex; + align-items: center; + justify-content: center; + } + `}),t.jsxs("div",{className:"left",children:[t.jsx(d.div,{className:"block",onMouseDown:e=>p(e,"1"),children:"Block 1"}),t.jsx(d.div,{className:"block",onMouseDown:e=>p(e,"2"),children:"Block 2"})]}),t.jsx("div",{className:"right",children:t.jsx(v,{nodes:u,edges:g,node:t.jsx(f,{onEnter:(e,o)=>r(o),onLeave:(e,o)=>r(null)}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onLayoutChange:e=>console.log("Layout",e)})}),t.jsx(P,{children:t.jsx(d.div,{drag:!0,dragControls:i,className:"dragger",onDragEnd:w,children:a&&t.jsx("div",{className:"dragInner",children:a})})})]})};var x,b,h;n.parameters={...n.parameters,docs:{...(x=n.parameters)==null?void 0:x.docs,source:{originalSource:`() => { + const dragControls = useDragControls(); + const [enteredNode, setEnteredNode] = useState(null); + const [activeDrag, setActiveDrag] = useState(null); + const [droppable, setDroppable] = useState(false); + const [edges, setEdges] = useState([{ + id: '1-2', + from: '1', + to: '2' + }]); + const [nodes, setNodes] = useState([{ + id: '1', + text: '1' + }, { + id: '2', + text: '2' + }]); + const onDragStart = (event, data) => { + console.log('Start of Dragging', event, data); + setActiveDrag(data); + dragControls.start(event, { + snapToCursor: true + }); + }; + const onDragEnd = event => { + console.log('End of Dragging', event); + if (droppable) { + const id = \`\${activeDrag}-\${Math.floor(Math.random() * (100 - 1 + 1)) + 1}\`; + const result = addNodeAndEdge(nodes, edges, { + id, + text: id + }, enteredNode); + setNodes(result.nodes); + setEdges(result.edges); + } + setDroppable(false); + setActiveDrag(null); + setEnteredNode(null); + }; + return
+ +
+ onDragStart(event, '1')}> + Block 1 + + onDragStart(event, '2')}> + Block 2 + +
+
+ setEnteredNode(node)} onLeave={(event, node) => setEnteredNode(null)} />} onMouseEnter={() => setDroppable(true)} onMouseLeave={() => setDroppable(false)} onLayoutChange={layout => console.log('Layout', layout)} /> +
+ + + {activeDrag &&
+ {activeDrag} +
} +
+
+
; +}`,...(h=(b=n.parameters)==null?void 0:b.docs)==null?void 0:h.source}}};const J=["Simple"];export{n as Simple,J as __namedExportsOrder,H as default}; +//# sourceMappingURL=Editor.stories-19410bbd.js.map diff --git a/assets/Editor.stories-19410bbd.js.map b/assets/Editor.stories-19410bbd.js.map new file mode 100644 index 0000000..15c2f02 --- /dev/null +++ b/assets/Editor.stories-19410bbd.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Editor.stories-19410bbd.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"} \ No newline at end of file diff --git a/assets/Extending-3fdead41.js b/assets/Extending-3fdead41.js new file mode 100644 index 0000000..d43b5d2 --- /dev/null +++ b/assets/Extending-3fdead41.js @@ -0,0 +1,171 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as d}from"./index-2ef8b458.js";import{M as s}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function t(n){const o=Object.assign({h1:"h1",p:"p",strong:"strong",code:"code",blockquote:"blockquote",em:"em",a:"a",pre:"pre"},d(),n.components);return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Docs/Utils/Extending"}),` +`,e.jsx(o.h1,{id:"extended-utils",children:"Extended utils"}),` +`,e.jsx(o.p,{children:"The basic utils will not cover all use-cases."}),` +`,e.jsxs(o.p,{children:["Below are a few examples of advanced use-cases ",e.jsxs(o.strong,{children:["with first-class support for connecting nodes through their ",e.jsx(o.code,{children:"ports"})]}),", built on top of the default built-in utils."]}),` +`,e.jsxs(o.blockquote,{children:[` +`,e.jsx(o.p,{children:e.jsxs(o.em,{children:["Courtesy of ",e.jsx(o.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/91275644e9c3d0ed8cf7c2c80d49ef526b5e5069/src/utils/nodes.ts",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vadorequest/poc-nextjs-reaflow"}),"."]})}),` +`]}),` +`,e.jsx(o.pre,{children:e.jsx(o.code,{className:"language-tsx",children:`import BaseEdgeData from '../types/BaseEdgeData'; +import BaseNodeData from '../types/BaseNodeData'; +import BasePortData from '../types/BasePortData'; +import { CanvasDataset } from '../types/CanvasDataset'; +import { createEdge } from './edges'; +import { + getDefaultFromPort, + getDefaultToPort, +} from './ports'; + +/** + * Add a node and optional edge, and automatically link their ports. + * + * Automatically connects the fromNode (left node) using its EAST port (right side) to the newNode (right node) using it's WEST port (left side). + * + * Similar to reaflow.addNodeAndEdge utility. + */ +export function addNodeAndEdgeThroughPorts( + nodes: BaseNodeData[], + edges: BaseEdgeData[], + newNode: BaseNodeData, + fromNode?: BaseNodeData, + toNode?: BaseNodeData, + fromPort?: BasePortData, + toPort?: BasePortData, +): CanvasDataset { + // The default destination node is the newly created node + toNode = toNode || newNode; + + const newEdge: BaseEdgeData = createEdge( + fromNode, + toNode, + getDefaultFromPort(fromNode, fromPort), + getDefaultToPort(toNode, toPort), + ); + + return { + nodes: [...nodes, newNode], + edges: [ + ...edges, + ...(fromNode ? + [ + newEdge, + ] + : []), + ], + }; +} + +/** + * Helper function for upserting a node in a edge (split the edge in 2 and put the node in between), and automatically link their ports. + * + * Automatically connects the left edge to the newNode using it's WEST port (left side). + * Automatically connects the right edge to the newNode using it's EAST port (right side). + * + * Similar to reaflow.upsertNode utility. + */ +export function upsertNodeThroughPorts( + nodes: BaseNodeData[], + edges: BaseEdgeData[], + edge: BaseEdgeData, + newNode: BaseNodeData, +): CanvasDataset { + const oldEdgeIndex = edges.findIndex(e => e.id === edge.id); + const edgeBeforeNewNode = { + ...edge, + id: \`\${edge.from}-\${newNode.id}\`, + to: newNode.id, + }; + const edgeAfterNewNode = { + ...edge, + id: \`\${newNode.id}-\${edge.to}\`, + from: newNode.id, + }; + + if (edge.fromPort && edge.toPort) { + const fromLeftNodeToWestPort: BasePortData | undefined = newNode?.ports?.find((port: BasePortData) => port?.side === 'WEST'); + const fromRightNodeToEastPort: BasePortData | undefined = newNode?.ports?.find((port: BasePortData) => port?.side === 'EAST'); + + edgeBeforeNewNode.fromPort = edge.fromPort; + edgeBeforeNewNode.toPort = fromLeftNodeToWestPort?.id || \`\${newNode.id}-to\`; + + edgeAfterNewNode.fromPort = fromRightNodeToEastPort?.id || \`\${newNode.id}-from\`; + edgeAfterNewNode.toPort = edge.toPort; + } + + edges.splice(oldEdgeIndex, 1, edgeBeforeNewNode, edgeAfterNewNode); + + return { + nodes: [...nodes, newNode], + edges: [...edges], + }; +} + +/** + * Removes a node between two edges and merges the two edges into one, and automatically link their ports. + * + * Similar to reaflow.removeAndUpsertNodes utility. + */ +export function removeAndUpsertNodesThroughPorts( + nodes: BaseNodeData[], + edges: BaseEdgeData[], + removeNodes: BaseNodeData | BaseNodeData[], + onNodeLinkCheck?: ( + newNodes: BaseNodeData[], + newEdges: BaseEdgeData[], + from: BaseNodeData, + to: BaseNodeData, + port?: BasePortData, + ) => undefined | boolean, +): CanvasDataset { + if (!Array.isArray(removeNodes)) { + removeNodes = [removeNodes]; + } + + const nodeIds = removeNodes.map((n) => n.id); + const newNodes = nodes.filter((n) => !nodeIds.includes(n.id)); + const newEdges = edges.filter( + (e: BaseEdgeData) => !nodeIds.includes(e?.from as string) && !nodeIds.includes(e?.to as string), + ); + + for (const nodeId of nodeIds) { + const sourceEdges = edges.filter((e) => e.to === nodeId); + const targetEdges = edges.filter((e) => e.from === nodeId); + + for (const sourceEdge of sourceEdges) { + for (const targetEdge of targetEdges) { + const sourceNode = nodes.find((n) => n.id === sourceEdge.from); + const targetNode = nodes.find((n) => n.id === targetEdge.to); + + if (sourceNode && targetNode) { + const canLink = onNodeLinkCheck?.( + newNodes, + newEdges, + sourceNode, + targetNode, + ); + + if (canLink === undefined || canLink) { + const fromPort: BasePortData | undefined = sourceNode?.ports?.find((port: BasePortData) => port?.side === 'EAST'); + const toPort: BasePortData | undefined = targetNode?.ports?.find((port: BasePortData) => port?.side === 'WEST'); + + newEdges.push({ + id: \`\${sourceNode.id}-\${targetNode.id}\`, + from: sourceNode.id, + to: targetNode.id, + parent: sourceNode?.parent, + fromPort: fromPort?.id, + toPort: toPort?.id, + }); + } + } + } + } + } + + return { + edges: newEdges, + nodes: newNodes, + }; +} + +`})})]})}function D(n={}){const{wrapper:o}=Object.assign({},d(),n.components);return o?e.jsx(o,Object.assign({},n,{children:e.jsx(t,n)})):t(n)}export{D as default}; +//# sourceMappingURL=Extending-3fdead41.js.map diff --git a/assets/Extending-3fdead41.js.map b/assets/Extending-3fdead41.js.map new file mode 100644 index 0000000..9fe3532 --- /dev/null +++ b/assets/Extending-3fdead41.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Extending-3fdead41.js","sources":["../../docs/Utils/Extending.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Extended utils\n\nThe basic utils will not cover all use-cases.\n\nBelow are a few examples of advanced use-cases **with first-class support for connecting nodes through their `ports`**, built on top of the default built-in utils.\n\n> _Courtesy of [Vadorequest/poc-nextjs-reaflow](https://github.com/Vadorequest/poc-nextjs-reaflow/blob/91275644e9c3d0ed8cf7c2c80d49ef526b5e5069/src/utils/nodes.ts)._\n\n```tsx\nimport BaseEdgeData from '../types/BaseEdgeData';\nimport BaseNodeData from '../types/BaseNodeData';\nimport BasePortData from '../types/BasePortData';\nimport { CanvasDataset } from '../types/CanvasDataset';\nimport { createEdge } from './edges';\nimport {\n getDefaultFromPort,\n getDefaultToPort,\n} from './ports';\n\n/**\n * Add a node and optional edge, and automatically link their ports.\n *\n * Automatically connects the fromNode (left node) using its EAST port (right side) to the newNode (right node) using it's WEST port (left side).\n *\n * Similar to reaflow.addNodeAndEdge utility.\n */\nexport function addNodeAndEdgeThroughPorts(\n nodes: BaseNodeData[],\n edges: BaseEdgeData[],\n newNode: BaseNodeData,\n fromNode?: BaseNodeData,\n toNode?: BaseNodeData,\n fromPort?: BasePortData,\n toPort?: BasePortData,\n): CanvasDataset {\n // The default destination node is the newly created node\n toNode = toNode || newNode;\n\n const newEdge: BaseEdgeData = createEdge(\n fromNode,\n toNode,\n getDefaultFromPort(fromNode, fromPort),\n getDefaultToPort(toNode, toPort),\n );\n\n return {\n nodes: [...nodes, newNode],\n edges: [\n ...edges,\n ...(fromNode ?\n [\n newEdge,\n ]\n : []),\n ],\n };\n}\n\n/**\n * Helper function for upserting a node in a edge (split the edge in 2 and put the node in between), and automatically link their ports.\n *\n * Automatically connects the left edge to the newNode using it's WEST port (left side).\n * Automatically connects the right edge to the newNode using it's EAST port (right side).\n *\n * Similar to reaflow.upsertNode utility.\n */\nexport function upsertNodeThroughPorts(\n nodes: BaseNodeData[],\n edges: BaseEdgeData[],\n edge: BaseEdgeData,\n newNode: BaseNodeData,\n): CanvasDataset {\n const oldEdgeIndex = edges.findIndex(e => e.id === edge.id);\n const edgeBeforeNewNode = {\n ...edge,\n id: `${edge.from}-${newNode.id}`,\n to: newNode.id,\n };\n const edgeAfterNewNode = {\n ...edge,\n id: `${newNode.id}-${edge.to}`,\n from: newNode.id,\n };\n\n if (edge.fromPort && edge.toPort) {\n const fromLeftNodeToWestPort: BasePortData | undefined = newNode?.ports?.find((port: BasePortData) => port?.side === 'WEST');\n const fromRightNodeToEastPort: BasePortData | undefined = newNode?.ports?.find((port: BasePortData) => port?.side === 'EAST');\n\n edgeBeforeNewNode.fromPort = edge.fromPort;\n edgeBeforeNewNode.toPort = fromLeftNodeToWestPort?.id || `${newNode.id}-to`;\n\n edgeAfterNewNode.fromPort = fromRightNodeToEastPort?.id || `${newNode.id}-from`;\n edgeAfterNewNode.toPort = edge.toPort;\n }\n\n edges.splice(oldEdgeIndex, 1, edgeBeforeNewNode, edgeAfterNewNode);\n\n return {\n nodes: [...nodes, newNode],\n edges: [...edges],\n };\n}\n\n/**\n * Removes a node between two edges and merges the two edges into one, and automatically link their ports.\n *\n * Similar to reaflow.removeAndUpsertNodes utility.\n */\nexport function removeAndUpsertNodesThroughPorts(\n nodes: BaseNodeData[],\n edges: BaseEdgeData[],\n removeNodes: BaseNodeData | BaseNodeData[],\n onNodeLinkCheck?: (\n newNodes: BaseNodeData[],\n newEdges: BaseEdgeData[],\n from: BaseNodeData,\n to: BaseNodeData,\n port?: BasePortData,\n ) => undefined | boolean,\n): CanvasDataset {\n if (!Array.isArray(removeNodes)) {\n removeNodes = [removeNodes];\n }\n\n const nodeIds = removeNodes.map((n) => n.id);\n const newNodes = nodes.filter((n) => !nodeIds.includes(n.id));\n const newEdges = edges.filter(\n (e: BaseEdgeData) => !nodeIds.includes(e?.from as string) && !nodeIds.includes(e?.to as string),\n );\n\n for (const nodeId of nodeIds) {\n const sourceEdges = edges.filter((e) => e.to === nodeId);\n const targetEdges = edges.filter((e) => e.from === nodeId);\n\n for (const sourceEdge of sourceEdges) {\n for (const targetEdge of targetEdges) {\n const sourceNode = nodes.find((n) => n.id === sourceEdge.from);\n const targetNode = nodes.find((n) => n.id === targetEdge.to);\n\n if (sourceNode && targetNode) {\n const canLink = onNodeLinkCheck?.(\n newNodes,\n newEdges,\n sourceNode,\n targetNode,\n );\n\n if (canLink === undefined || canLink) {\n const fromPort: BasePortData | undefined = sourceNode?.ports?.find((port: BasePortData) => port?.side === 'EAST');\n const toPort: BasePortData | undefined = targetNode?.ports?.find((port: BasePortData) => port?.side === 'WEST');\n\n newEdges.push({\n id: `${sourceNode.id}-${targetNode.id}`,\n from: sourceNode.id,\n to: targetNode.id,\n parent: sourceNode?.parent,\n fromPort: fromPort?.id,\n toPort: toPort?.id,\n });\n }\n }\n }\n }\n }\n\n return {\n edges: newEdges,\n nodes: newNodes,\n };\n}\n\n```\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,EAAG,IACH,OAAQ,SACR,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;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACP,CAAK,CAAC,CACN,CAAG,CACH,CACA,SAASM,EAAWP,EAAQ,GAAI,CAC9B,KAAM,CAAC,QAASQ,CAAS,EAAI,OAAO,OAAO,CAAE,EAAEN,EAAoB,EAAEF,EAAM,UAAU,EACrF,OAAOQ,EAAYH,EAAAA,IAAKG,EAAW,OAAO,OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js b/assets/GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js new file mode 100644 index 0000000..5f1d47c --- /dev/null +++ b/assets/GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js @@ -0,0 +1,8 @@ +import{R as o}from"./index-1b03fe98.js";import{G as s}from"./index-44920ba4.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";var a=r=>({".os-size-observer,\n.os-size-observer-listener":{direction:"inherit",pointerEvents:"none",overflow:"hidden",visibility:"hidden",boxSizing:"border-box"},".os-size-observer,\n.os-size-observer-listener,\n.os-size-observer-listener-item,\n.os-size-observer-listener-item-final":{writingMode:"horizontal-tb",position:"absolute",left:"0",top:"0"},".os-size-observer":{zIndex:-1,contain:"strict",display:"flex",flexDirection:"row",flexWrap:"nowrap",padding:"inherit",border:"inherit",boxSizing:"inherit",margin:"-133px",top:"0",right:"0",bottom:"0",left:"0",transform:"scale(0.1)"},".os-size-observer::before":{content:'""',flex:"none",boxSizing:"inherit",padding:"10px",width:"10px",height:"10px"},".os-size-observer-appear":{animation:"os-size-observer-appear-animation 1ms forwards"},".os-size-observer-listener":{boxSizing:"border-box",position:"relative",flex:"auto",padding:"inherit",border:"inherit",margin:"-133px",transform:"scale(10)"},".os-size-observer-listener.ltr":{marginRight:"-266px",marginLeft:"0"},".os-size-observer-listener.rtl":{marginLeft:"-266px",marginRight:"0"},".os-size-observer-listener:empty::before":{content:'""',width:"100%",height:"100%"},".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item":{display:"block",position:"relative",padding:"inherit",border:"inherit",boxSizing:"content-box",flex:"auto"},".os-size-observer-listener-scroll":{boxSizing:"border-box",display:"flex"},".os-size-observer-listener-item":{right:"0",bottom:"0",overflow:"hidden",direction:"ltr",flex:"none"},".os-size-observer-listener-item-final":{transition:"none"},"@keyframes os-size-observer-appear-animation":{from:{cursor:"auto"},to:{cursor:"none"}},".os-trinsic-observer":{flex:"none",boxSizing:"border-box",position:"relative",maxWidth:"0px",maxHeight:"1px",padding:"0",margin:"0",border:"none",overflow:"hidden",zIndex:-1,height:"0",top:"calc(100% + 1px)",contain:"strict"},".os-trinsic-observer:not(:empty)":{height:"calc(100% + 1px)",top:"-1px"},".os-trinsic-observer:not(:empty) > .os-size-observer":{width:"1000%",height:"1000%",minHeight:"1px",minWidth:"1px"},".os-environment":{"--os-custom-prop":"-1",position:"fixed",opacity:0,visibility:"hidden",overflow:"scroll",height:"200px",width:"200px",zIndex:"var(--os-custom-prop)"},".os-environment div":{width:"200%",height:"200%",margin:"10px 0"},".os-environment.os-environment-flexbox-glue":{display:"flex",flexDirection:"row",flexWrap:"nowrap",height:"auto",width:"auto",minHeight:"200px",minWidth:"200px"},".os-environment.os-environment-flexbox-glue div":{flex:"auto",width:"auto",height:"auto",maxHeight:"100%",maxWidth:"100%",margin:"0"},".os-environment.os-environment-flexbox-glue-max":{maxHeight:"200px"},".os-environment.os-environment-flexbox-glue-max div":{overflow:"visible"},".os-environment.os-environment-flexbox-glue-max div::before":{content:'""',display:"block",height:"999px",width:"999px"},".os-environment,\n[data-overlayscrollbars-viewport]":{msOverflowStyle:"scrollbar !important"},"[data-overlayscrollbars-initialize],\n[data-overlayscrollbars~=scrollbarHidden],\n[data-overlayscrollbars-viewport~=scrollbarHidden],\n.os-scrollbar-hidden.os-environment":{scrollbarWidth:"none !important"},"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner":{WebkitAppearance:"none !important",appearance:"none !important",display:"none !important",width:"0 !important",height:"0 !important"},"[data-overlayscrollbars-initialize]":{overflow:"auto"},"html[data-overlayscrollbars],\nhtml.os-scrollbar-hidden,\nhtml.os-scrollbar-hidden > body":{boxSizing:"border-box",margin:"0",width:"100%",height:"100%"},"html[data-overlayscrollbars] > body":{overflow:"visible"},"[data-overlayscrollbars~=host]":{position:"relative"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars-padding]":{display:"flex",flexDirection:"row !important",flexWrap:"nowrap !important"},"[data-overlayscrollbars-padding],\n[data-overlayscrollbars-viewport]":{boxSizing:"inherit",position:"relative",flex:"auto !important",height:"auto",width:"100%",padding:"0",margin:"0",border:"none",zIndex:0,overflow:"hidden"},"[data-overlayscrollbars-viewport]":{"--os-vaw":"0","--os-vah":"0"},"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before":{content:'""',position:"absolute",pointerEvents:"none",zIndex:-1,minWidth:"1px",minHeight:"1px",width:"var(--os-vaw)",height:"var(--os-vah)"},"[data-overlayscrollbars~=host],\n[data-overlayscrollbars~=viewport]":{overflow:"hidden"},"[data-overlayscrollbars~=overflowVisible],\n[data-overlayscrollbars-padding~=overflowVisible],\n[data-overlayscrollbars-viewport~=overflowVisible]":{overflow:"visible"},"[data-overlayscrollbars-overflow-x=hidden]":{overflowX:"hidden",overflowY:"hidden"},"[data-overlayscrollbars-overflow-x=scroll]":{overflowX:"scroll"},"[data-overlayscrollbars-overflow-y=scroll]":{overflowY:"scroll"},"[data-overlayscrollbars~=scrollbarPressed],\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]":{scrollBehavior:"auto !important"},"[data-overlayscrollbars-content]":{boxSizing:"inherit"},"[data-overlayscrollbars-grid],\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]":{display:"grid",gridTemplate:"1fr/1fr"},"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]":{height:"auto !important",width:"auto !important"},".os-scrollbar":{contain:["size layout","size layout style"],transition:"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s",pointerEvents:"none",position:"absolute",opacity:0,visibility:"hidden","--os-size":"0","--os-padding-perpendicular":"0","--os-padding-axis":"0","--os-track-border-radius":"0","--os-track-bg":"none","--os-track-bg-hover":"none","--os-track-bg-active":"none","--os-track-border":"none","--os-track-border-hover":"none","--os-track-border-active":"none","--os-handle-border-radius":"0","--os-handle-bg":"none","--os-handle-bg-hover":"none","--os-handle-bg-active":"none","--os-handle-border":"none","--os-handle-border-hover":"none","--os-handle-border-active":"none","--os-handle-min-size":"33px","--os-handle-max-size":"none","--os-handle-perpendicular-size":"100%","--os-handle-perpendicular-size-hover":"100%","--os-handle-perpendicular-size-active":"100%","--os-handle-interactive-area-offset":"0"},"body > .os-scrollbar":{position:"fixed",zIndex:99999},".os-scrollbar-transitionless":{transition:"none"},".os-scrollbar-track":{position:"relative",direction:"ltr !important",padding:"0 !important",border:"none !important"},".os-scrollbar-handle":{position:"absolute"},".os-scrollbar-track,\n.os-scrollbar-handle":{pointerEvents:"none",width:"100%",height:"100%"},".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle":{pointerEvents:"auto",touchAction:"none"},".os-scrollbar-horizontal":{bottom:"0",left:"0",padding:"var(--os-padding-perpendicular) var(--os-padding-axis)",right:"var(--os-size)",height:"var(--os-size)"},".os-scrollbar-vertical":{top:"0",right:"0",padding:"var(--os-padding-axis) var(--os-padding-perpendicular)",bottom:"var(--os-size)",width:"var(--os-size)"},".os-scrollbar-rtl.os-scrollbar-horizontal":{right:"0"},".os-scrollbar-rtl.os-scrollbar-vertical":{right:"auto",left:"0"},".os-scrollbar-visible,\n.os-scrollbar-interaction.os-scrollbar-visible":{opacity:1,visibility:"visible"},".os-scrollbar-auto-hidden":{opacity:0,visibility:"hidden"},".os-scrollbar-unusable,\n.os-scrollbar-unusable *,\n.os-scrollbar-wheel,\n.os-scrollbar-wheel *":{pointerEvents:"none !important"},".os-scrollbar-unusable .os-scrollbar-handle":{opacity:"0 !important"},".os-scrollbar-horizontal .os-scrollbar-handle":{bottom:"0",minWidth:"var(--os-handle-min-size)",maxWidth:"var(--os-handle-max-size)",height:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s"},".os-scrollbar-vertical .os-scrollbar-handle":{right:"0",minHeight:"var(--os-handle-min-size)",maxHeight:"var(--os-handle-max-size)",width:"var(--os-handle-perpendicular-size)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s"},".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle":{right:"auto",left:"0"},".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl":{left:"0",right:"0"},".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl":{top:"0",bottom:"0"},".os-scrollbar .os-scrollbar-track":{border:"var(--os-track-border)",borderRadius:"var(--os-track-border-radius)",background:"var(--os-track-bg)",transition:"opacity 0.15s, background-color 0.15s, border-color 0.15s"},".os-scrollbar .os-scrollbar-track:hover":{border:"var(--os-track-border-hover)",background:"var(--os-track-bg-hover)"},".os-scrollbar .os-scrollbar-track:active":{border:"var(--os-track-border-active)",background:"var(--os-track-bg-active)"},".os-scrollbar .os-scrollbar-handle":{border:"var(--os-handle-border)",borderRadius:"var(--os-handle-border-radius)",background:r.textMutedColor,opacity:.5},".os-scrollbar .os-scrollbar-handle:before":{content:'""',position:"absolute",left:"0",right:"0",top:"0",bottom:"0",display:"block"},".os-scrollbar .os-scrollbar-handle:hover":{border:"var(--os-handle-border-hover)",opacity:.6},".os-scrollbar .os-scrollbar-handle:active":{border:"var(--os-handle-border-active)",background:"var(--os-handle-bg-active)"},".os-scrollbar-horizontal.os-scrollbar-rtl":{left:"var(--os-size)",right:"0"},".os-scrollbar-horizontal .os-scrollbar-handle:before":{top:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",bottom:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-horizontal:hover .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-horizontal:active .os-scrollbar-handle":{height:"var(--os-handle-perpendicular-size-active)"},".os-scrollbar-vertical .os-scrollbar-handle:before":{left:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",right:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)",left:"calc(var(--os-padding-perpendicular) * -1)"},".os-scrollbar-vertical:hover .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-hover)"},".os-scrollbar-vertical:active .os-scrollbar-handle":{width:"var(--os-handle-perpendicular-size-active)"},"[data-overlayscrollbars~=updating] > .os-scrollbar,\n.os-theme-none.os-scrollbar":{display:"none !important"},".os-theme-dark,\n.os-theme-light":{boxSizing:"border-box","--os-size":"10px","--os-padding-perpendicular":"2px","--os-padding-axis":"2px","--os-track-border-radius":"10px","--os-handle-interactive-area-offset":"4px","--os-handle-border-radius":"10px"},".os-theme-dark":{"--os-handle-bg":"rgba(0, 0, 0, 0.44)","--os-handle-bg-hover":"rgba(0, 0, 0, 0.55)","--os-handle-bg-active":"rgba(0, 0, 0, 0.66)"},".os-theme-light":{"--os-handle-bg":"rgba(255, 255, 255, 0.44)","--os-handle-bg-hover":"rgba(255, 255, 255, 0.55)","--os-handle-bg-active":"rgba(255, 255, 255, 0.66)"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track":{borderRadius:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal":{padding:"2px 2px",right:"10px",height:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl":{left:"10px",right:"0"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle":{minWidth:"33px",maxWidth:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before":{top:`calc(( + 2px + 4px + ) * -1)`,bottom:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical":{padding:"2px 2px",bottom:"10px",width:"10px"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle":{minHeight:"33px",maxHeight:"none"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before":{left:`calc(( + 2px + 4px + ) * -1)`,right:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before":{right:`calc(( + 2px + 4px + ) * -1)`,left:"calc(2px * -1)"},".os-no-css-vars.os-theme-dark .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.44)"},".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.55)"},".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle":{background:"rgba(0, 0, 0, 0.66)"},".os-no-css-vars.os-theme-light .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.44)"},".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.55)"},".os-no-css-vars.os-theme-light:active .os-scrollbar-handle":{background:"rgba(255, 255, 255, 0.66)"}}),e=()=>o.createElement(s,{styles:a}),g=e;export{g as default,a as getScrollAreaStyles}; +//# sourceMappingURL=GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js.map diff --git a/assets/GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js.map b/assets/GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js.map new file mode 100644 index 0000000..55c536b --- /dev/null +++ b/assets/GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js.map @@ -0,0 +1 @@ +{"version":3,"file":"GlobalScrollAreaStyles-DZEYMYDM-a718cfb3.js","sources":["../../node_modules/@storybook/components/dist/GlobalScrollAreaStyles-DZEYMYDM.mjs"],"sourcesContent":["import './chunk-NNAAFZ4U.mjs';\nimport React from 'react';\nimport { Global } from '@storybook/theming';\n\nvar getScrollAreaStyles=theme=>({\".os-size-observer,\\n.os-size-observer-listener\":{direction:\"inherit\",pointerEvents:\"none\",overflow:\"hidden\",visibility:\"hidden\",boxSizing:\"border-box\"},\".os-size-observer,\\n.os-size-observer-listener,\\n.os-size-observer-listener-item,\\n.os-size-observer-listener-item-final\":{writingMode:\"horizontal-tb\",position:\"absolute\",left:\"0\",top:\"0\"},\".os-size-observer\":{zIndex:-1,contain:\"strict\",display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",padding:\"inherit\",border:\"inherit\",boxSizing:\"inherit\",margin:\"-133px\",top:\"0\",right:\"0\",bottom:\"0\",left:\"0\",transform:\"scale(0.1)\"},\".os-size-observer::before\":{content:'\"\"',flex:\"none\",boxSizing:\"inherit\",padding:\"10px\",width:\"10px\",height:\"10px\"},\".os-size-observer-appear\":{animation:\"os-size-observer-appear-animation 1ms forwards\"},\".os-size-observer-listener\":{boxSizing:\"border-box\",position:\"relative\",flex:\"auto\",padding:\"inherit\",border:\"inherit\",margin:\"-133px\",transform:\"scale(10)\"},\".os-size-observer-listener.ltr\":{marginRight:\"-266px\",marginLeft:\"0\"},\".os-size-observer-listener.rtl\":{marginLeft:\"-266px\",marginRight:\"0\"},\".os-size-observer-listener:empty::before\":{content:'\"\"',width:\"100%\",height:\"100%\"},\".os-size-observer-listener:empty::before, .os-size-observer-listener > .os-size-observer-listener-item\":{display:\"block\",position:\"relative\",padding:\"inherit\",border:\"inherit\",boxSizing:\"content-box\",flex:\"auto\"},\".os-size-observer-listener-scroll\":{boxSizing:\"border-box\",display:\"flex\"},\".os-size-observer-listener-item\":{right:\"0\",bottom:\"0\",overflow:\"hidden\",direction:\"ltr\",flex:\"none\"},\".os-size-observer-listener-item-final\":{transition:\"none\"},\"@keyframes os-size-observer-appear-animation\":{from:{cursor:\"auto\"},to:{cursor:\"none\"}},\".os-trinsic-observer\":{flex:\"none\",boxSizing:\"border-box\",position:\"relative\",maxWidth:\"0px\",maxHeight:\"1px\",padding:\"0\",margin:\"0\",border:\"none\",overflow:\"hidden\",zIndex:-1,height:\"0\",top:\"calc(100% + 1px)\",contain:\"strict\"},\".os-trinsic-observer:not(:empty)\":{height:\"calc(100% + 1px)\",top:\"-1px\"},\".os-trinsic-observer:not(:empty) > .os-size-observer\":{width:\"1000%\",height:\"1000%\",minHeight:\"1px\",minWidth:\"1px\"},\".os-environment\":{\"--os-custom-prop\":\"-1\",position:\"fixed\",opacity:0,visibility:\"hidden\",overflow:\"scroll\",height:\"200px\",width:\"200px\",zIndex:\"var(--os-custom-prop)\"},\".os-environment div\":{width:\"200%\",height:\"200%\",margin:\"10px 0\"},\".os-environment.os-environment-flexbox-glue\":{display:\"flex\",flexDirection:\"row\",flexWrap:\"nowrap\",height:\"auto\",width:\"auto\",minHeight:\"200px\",minWidth:\"200px\"},\".os-environment.os-environment-flexbox-glue div\":{flex:\"auto\",width:\"auto\",height:\"auto\",maxHeight:\"100%\",maxWidth:\"100%\",margin:\"0\"},\".os-environment.os-environment-flexbox-glue-max\":{maxHeight:\"200px\"},\".os-environment.os-environment-flexbox-glue-max div\":{overflow:\"visible\"},\".os-environment.os-environment-flexbox-glue-max div::before\":{content:'\"\"',display:\"block\",height:\"999px\",width:\"999px\"},\".os-environment,\\n[data-overlayscrollbars-viewport]\":{msOverflowStyle:\"scrollbar !important\"},\"[data-overlayscrollbars-initialize],\\n[data-overlayscrollbars~=scrollbarHidden],\\n[data-overlayscrollbars-viewport~=scrollbarHidden],\\n.os-scrollbar-hidden.os-environment\":{scrollbarWidth:\"none !important\"},\"[data-overlayscrollbars-initialize]::-webkit-scrollbar,\\n[data-overlayscrollbars-initialize]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars~=scrollbarHidden]::-webkit-scrollbar-corner,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar,\\n[data-overlayscrollbars-viewport~=scrollbarHidden]::-webkit-scrollbar-corner,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar,\\n.os-scrollbar-hidden.os-environment::-webkit-scrollbar-corner\":{WebkitAppearance:\"none !important\",appearance:\"none !important\",display:\"none !important\",width:\"0 !important\",height:\"0 !important\"},\"[data-overlayscrollbars-initialize]\":{overflow:\"auto\"},\"html[data-overlayscrollbars],\\nhtml.os-scrollbar-hidden,\\nhtml.os-scrollbar-hidden > body\":{boxSizing:\"border-box\",margin:\"0\",width:\"100%\",height:\"100%\"},\"html[data-overlayscrollbars] > body\":{overflow:\"visible\"},\"[data-overlayscrollbars~=host]\":{position:\"relative\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars-padding]\":{display:\"flex\",flexDirection:\"row !important\",flexWrap:\"nowrap !important\"},\"[data-overlayscrollbars-padding],\\n[data-overlayscrollbars-viewport]\":{boxSizing:\"inherit\",position:\"relative\",flex:\"auto !important\",height:\"auto\",width:\"100%\",padding:\"0\",margin:\"0\",border:\"none\",zIndex:0,overflow:\"hidden\"},\"[data-overlayscrollbars-viewport]\":{\"--os-vaw\":\"0\",\"--os-vah\":\"0\"},\"[data-overlayscrollbars-viewport][data-overlayscrollbars-viewport~=arrange]::before\":{content:'\"\"',position:\"absolute\",pointerEvents:\"none\",zIndex:-1,minWidth:\"1px\",minHeight:\"1px\",width:\"var(--os-vaw)\",height:\"var(--os-vah)\"},\"[data-overlayscrollbars~=host],\\n[data-overlayscrollbars~=viewport]\":{overflow:\"hidden\"},\"[data-overlayscrollbars~=overflowVisible],\\n[data-overlayscrollbars-padding~=overflowVisible],\\n[data-overlayscrollbars-viewport~=overflowVisible]\":{overflow:\"visible\"},\"[data-overlayscrollbars-overflow-x=hidden]\":{overflowX:\"hidden\",overflowY:\"hidden\"},\"[data-overlayscrollbars-overflow-x=scroll]\":{overflowX:\"scroll\"},\"[data-overlayscrollbars-overflow-y=scroll]\":{overflowY:\"scroll\"},\"[data-overlayscrollbars~=scrollbarPressed],\\n[data-overlayscrollbars~=scrollbarPressed] [data-overlayscrollbars-viewport]\":{scrollBehavior:\"auto !important\"},\"[data-overlayscrollbars-content]\":{boxSizing:\"inherit\"},\"[data-overlayscrollbars-grid],\\n[data-overlayscrollbars-grid] [data-overlayscrollbars-padding]\":{display:\"grid\",gridTemplate:\"1fr/1fr\"},\"[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-viewport],\\n[data-overlayscrollbars-grid] > [data-overlayscrollbars-padding] > [data-overlayscrollbars-viewport]\":{height:\"auto !important\",width:\"auto !important\"},\".os-scrollbar\":{contain:[\"size layout\",\"size layout style\"],transition:\"opacity 0.15s, visibility 0.15s, top 0.15s, right 0.15s, bottom 0.15s, left 0.15s\",pointerEvents:\"none\",position:\"absolute\",opacity:0,visibility:\"hidden\",\"--os-size\":\"0\",\"--os-padding-perpendicular\":\"0\",\"--os-padding-axis\":\"0\",\"--os-track-border-radius\":\"0\",\"--os-track-bg\":\"none\",\"--os-track-bg-hover\":\"none\",\"--os-track-bg-active\":\"none\",\"--os-track-border\":\"none\",\"--os-track-border-hover\":\"none\",\"--os-track-border-active\":\"none\",\"--os-handle-border-radius\":\"0\",\"--os-handle-bg\":\"none\",\"--os-handle-bg-hover\":\"none\",\"--os-handle-bg-active\":\"none\",\"--os-handle-border\":\"none\",\"--os-handle-border-hover\":\"none\",\"--os-handle-border-active\":\"none\",\"--os-handle-min-size\":\"33px\",\"--os-handle-max-size\":\"none\",\"--os-handle-perpendicular-size\":\"100%\",\"--os-handle-perpendicular-size-hover\":\"100%\",\"--os-handle-perpendicular-size-active\":\"100%\",\"--os-handle-interactive-area-offset\":\"0\"},\"body > .os-scrollbar\":{position:\"fixed\",zIndex:99999},\".os-scrollbar-transitionless\":{transition:\"none\"},\".os-scrollbar-track\":{position:\"relative\",direction:\"ltr !important\",padding:\"0 !important\",border:\"none !important\"},\".os-scrollbar-handle\":{position:\"absolute\"},\".os-scrollbar-track,\\n.os-scrollbar-handle\":{pointerEvents:\"none\",width:\"100%\",height:\"100%\"},\".os-scrollbar.os-scrollbar-track-interactive .os-scrollbar-track,\\n.os-scrollbar.os-scrollbar-handle-interactive .os-scrollbar-handle\":{pointerEvents:\"auto\",touchAction:\"none\"},\".os-scrollbar-horizontal\":{bottom:\"0\",left:\"0\",padding:\"var(--os-padding-perpendicular) var(--os-padding-axis)\",right:\"var(--os-size)\",height:\"var(--os-size)\"},\".os-scrollbar-vertical\":{top:\"0\",right:\"0\",padding:\"var(--os-padding-axis) var(--os-padding-perpendicular)\",bottom:\"var(--os-size)\",width:\"var(--os-size)\"},\".os-scrollbar-rtl.os-scrollbar-horizontal\":{right:\"0\"},\".os-scrollbar-rtl.os-scrollbar-vertical\":{right:\"auto\",left:\"0\"},\".os-scrollbar-visible,\\n.os-scrollbar-interaction.os-scrollbar-visible\":{opacity:1,visibility:\"visible\"},\".os-scrollbar-auto-hidden\":{opacity:0,visibility:\"hidden\"},\".os-scrollbar-unusable,\\n.os-scrollbar-unusable *,\\n.os-scrollbar-wheel,\\n.os-scrollbar-wheel *\":{pointerEvents:\"none !important\"},\".os-scrollbar-unusable .os-scrollbar-handle\":{opacity:\"0 !important\"},\".os-scrollbar-horizontal .os-scrollbar-handle\":{bottom:\"0\",minWidth:\"var(--os-handle-min-size)\",maxWidth:\"var(--os-handle-max-size)\",height:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, height 0.15s\"},\".os-scrollbar-vertical .os-scrollbar-handle\":{right:\"0\",minHeight:\"var(--os-handle-min-size)\",maxHeight:\"var(--os-handle-max-size)\",width:\"var(--os-handle-perpendicular-size)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s, width 0.15s\"},\".os-scrollbar-rtl.os-scrollbar-vertical .os-scrollbar-handle\":{right:\"auto\",left:\"0\"},\".os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-horizontal.os-scrollbar-cornerless.os-scrollbar-rtl\":{left:\"0\",right:\"0\"},\".os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless,\\n.os-scrollbar.os-scrollbar-vertical.os-scrollbar-cornerless.os-scrollbar-rtl\":{top:\"0\",bottom:\"0\"},\".os-scrollbar .os-scrollbar-track\":{border:\"var(--os-track-border)\",borderRadius:\"var(--os-track-border-radius)\",background:\"var(--os-track-bg)\",transition:\"opacity 0.15s, background-color 0.15s, border-color 0.15s\"},\".os-scrollbar .os-scrollbar-track:hover\":{border:\"var(--os-track-border-hover)\",background:\"var(--os-track-bg-hover)\"},\".os-scrollbar .os-scrollbar-track:active\":{border:\"var(--os-track-border-active)\",background:\"var(--os-track-bg-active)\"},\".os-scrollbar .os-scrollbar-handle\":{border:\"var(--os-handle-border)\",borderRadius:\"var(--os-handle-border-radius)\",background:theme.textMutedColor,opacity:.5},\".os-scrollbar .os-scrollbar-handle:before\":{content:'\"\"',position:\"absolute\",left:\"0\",right:\"0\",top:\"0\",bottom:\"0\",display:\"block\"},\".os-scrollbar .os-scrollbar-handle:hover\":{border:\"var(--os-handle-border-hover)\",opacity:.6},\".os-scrollbar .os-scrollbar-handle:active\":{border:\"var(--os-handle-border-active)\",background:\"var(--os-handle-bg-active)\"},\".os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"var(--os-size)\",right:\"0\"},\".os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",bottom:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-horizontal:hover .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-horizontal:active .os-scrollbar-handle\":{height:\"var(--os-handle-perpendicular-size-active)\"},\".os-scrollbar-vertical .os-scrollbar-handle:before\":{left:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",right:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:\"calc((var(--os-padding-perpendicular) + var(--os-handle-interactive-area-offset)) * -1)\",left:\"calc(var(--os-padding-perpendicular) * -1)\"},\".os-scrollbar-vertical:hover .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-hover)\"},\".os-scrollbar-vertical:active .os-scrollbar-handle\":{width:\"var(--os-handle-perpendicular-size-active)\"},\"[data-overlayscrollbars~=updating] > .os-scrollbar,\\n.os-theme-none.os-scrollbar\":{display:\"none !important\"},\".os-theme-dark,\\n.os-theme-light\":{boxSizing:\"border-box\",\"--os-size\":\"10px\",\"--os-padding-perpendicular\":\"2px\",\"--os-padding-axis\":\"2px\",\"--os-track-border-radius\":\"10px\",\"--os-handle-interactive-area-offset\":\"4px\",\"--os-handle-border-radius\":\"10px\"},\".os-theme-dark\":{\"--os-handle-bg\":\"rgba(0, 0, 0, 0.44)\",\"--os-handle-bg-hover\":\"rgba(0, 0, 0, 0.55)\",\"--os-handle-bg-active\":\"rgba(0, 0, 0, 0.66)\"},\".os-theme-light\":{\"--os-handle-bg\":\"rgba(255, 255, 255, 0.44)\",\"--os-handle-bg-hover\":\"rgba(255, 255, 255, 0.55)\",\"--os-handle-bg-active\":\"rgba(255, 255, 255, 0.66)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-handle\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar .os-scrollbar-track, .os-no-css-vars.os-theme-light.os-scrollbar .os-scrollbar-track\":{borderRadius:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal\":{padding:\"2px 2px\",right:\"10px\",height:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal.os-scrollbar-rtl, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal.os-scrollbar-rtl\":{left:\"10px\",right:\"0\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle\":{minWidth:\"33px\",maxWidth:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-horizontal .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-horizontal .os-scrollbar-handle:before\":{top:`calc((\n 2px + 4px\n ) * -1)`,bottom:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical, .os-no-css-vars.os-theme-light.os-scrollbar-vertical\":{padding:\"2px 2px\",bottom:\"10px\",width:\"10px\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle\":{minHeight:\"33px\",maxHeight:\"none\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical .os-scrollbar-handle:before\":{left:`calc((\n 2px + 4px\n ) * -1)`,right:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before, .os-no-css-vars.os-theme-light.os-scrollbar-vertical.os-scrollbar-rtl .os-scrollbar-handle:before\":{right:`calc((\n 2px + 4px\n ) * -1)`,left:\"calc(2px * -1)\"},\".os-no-css-vars.os-theme-dark .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.44)\"},\".os-no-css-vars.os-theme-dark:hover .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.55)\"},\".os-no-css-vars.os-theme-dark:active .os-scrollbar-handle\":{background:\"rgba(0, 0, 0, 0.66)\"},\".os-no-css-vars.os-theme-light .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.44)\"},\".os-no-css-vars.os-theme-light:hover .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.55)\"},\".os-no-css-vars.os-theme-light:active .os-scrollbar-handle\":{background:\"rgba(255, 255, 255, 0.66)\"}}),GlobalScrollAreaStyles=()=>React.createElement(Global,{styles:getScrollAreaStyles}),GlobalScrollAreaStyles_default=GlobalScrollAreaStyles;\n\nexport { GlobalScrollAreaStyles_default as default, getScrollAreaStyles };\n"],"names":["getScrollAreaStyles","theme","GlobalScrollAreaStyles","React","Global","GlobalScrollAreaStyles_default"],"mappings":"mVAIG,IAACA,EAAoBC,IAAQ,CAAC,iDAAiD,CAAC,UAAU,UAAU,cAAc,OAAO,SAAS,SAAS,WAAW,SAAS,UAAU,YAAY,EAAE,2HAA2H,CAAC,YAAY,gBAAgB,SAAS,WAAW,KAAK,IAAI,IAAI,GAAG,E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newline at end of file diff --git a/assets/Graph-763b6e82.js b/assets/Graph-763b6e82.js new file mode 100644 index 0000000..96201e7 --- /dev/null +++ b/assets/Graph-763b6e82.js @@ -0,0 +1,73 @@ +import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as a}from"./index-2ef8b458.js";import{M as d}from"./index-44920ba4.js";import"./index-1b03fe98.js";import"./iframe-983ca2ba.js";import"../sb-preview/runtime.js";import"./chunk-H6ZRF7XV-146ce0bc.js";import"./index-d475d2ea.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-4d52b68d.js";import"./index-356e4a49.js";function o(s){const n=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre"},a(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Docs/Utils/Graph"}),` +`,e.jsx(n.h1,{id:"graph-utils",children:"Graph Utils"}),` +`,e.jsx(n.h2,{id:"detecting-circulars",children:"Detecting Circulars"}),` +`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"detectCircular"}),` function helps you determine if +the source node will create a circular link if connected +to the target node.`]}),` +`,e.jsx(n.p,{children:"The signature for this looks like:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`detectCircular( + nodes: NodeData[], + edges: EdgeData[], + fromNode: NodeData, + toNode: NodeData +) => boolean; +`})}),` +`,e.jsx(n.p,{children:"Below is an example usage:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { detectCircular } from 'reaflow'; + +const has = detectCircular(nodes, edges, fromNode, toNode); +if (!has) { + // Do something +} +`})}),` +`,e.jsx(n.h2,{id:"parent-node-traversal",children:"Parent Node Traversal"}),` +`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"getParentsForNodeId"}),` function helps you find all the +parent nodes for a given node id.`]}),` +`,e.jsx(n.p,{children:"The signature for this looks like:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`getParentsForNodeId( + nodes: NodeData[], + edges: EdgeData[], + nodeId: string +) => NodeData[]; +`})}),` +`,e.jsx(n.p,{children:"Below is an example usage:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { getParentsForNodeId } from 'reaflow'; + +const nodes = getParentsForNodeId(nodes, edges, node.id); +`})}),` +`,e.jsx(n.h2,{id:"has-link",children:"Has Link"}),` +`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"hasLink"}),` function helps you determine if +the source node already has a link to the target node.`]}),` +`,e.jsx(n.p,{children:"The signature for this looks like:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`hasLink( + edges: EdgeData[], + fromNode: NodeData, + toNode: NodeData +) => boolean; +`})}),` +`,e.jsx(n.p,{children:"Below is an example usage:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { hasLink } from 'reaflow'; + +const has = hasLink(edges, fromNode, toNode); +if (!has) { + // Do something +} +`})}),` +`,e.jsx(n.h2,{id:"get-edges-given-a-node",children:"Get Edges Given a Node"}),` +`,e.jsxs(n.p,{children:["Similar to ",e.jsx(n.code,{children:"hasLink"})," the ",e.jsx(n.code,{children:"getEdgesByNode"}),` function will +return all the edges given a node.`]}),` +`,e.jsx(n.p,{children:"The signature looks like this:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`getEdgesByNode( + edges: EdgeData[], + node: NodeData, +) => { all: EdgeData[], to: EdgeData[], from: EdgeData[] } +`})}),` +`,e.jsx(n.p,{children:"Below is an example usage:"}),` +`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { getEdgesByNode } from 'reaflow'; + +const { all, to, from } = getEdgesByNode(edges, node); +if (!all.length) { + // Do something +} +`})})]})}function N(s={}){const{wrapper:n}=Object.assign({},a(),s.components);return n?e.jsx(n,Object.assign({},s,{children:e.jsx(o,s)})):o(s)}export{N as default}; +//# sourceMappingURL=Graph-763b6e82.js.map diff --git a/assets/Graph-763b6e82.js.map b/assets/Graph-763b6e82.js.map new file mode 100644 index 0000000..49d2939 --- /dev/null +++ b/assets/Graph-763b6e82.js.map @@ -0,0 +1 @@ +{"version":3,"file":"Graph-763b6e82.js","sources":["../../docs/Utils/Graph.mdx"],"sourcesContent":["import { Meta } from '@storybook/addon-docs/blocks';\n\n\n\n# Graph Utils\n\n## Detecting Circulars\nThe `detectCircular` function helps you determine if\nthe source node will create a circular link if connected\nto the target node.\n\nThe signature for this looks like:\n\n```js\ndetectCircular(\n nodes: NodeData[],\n edges: EdgeData[],\n fromNode: NodeData,\n toNode: NodeData\n) => boolean;\n```\n\nBelow is an example usage:\n\n```js\nimport { detectCircular } from 'reaflow';\n\nconst has = detectCircular(nodes, edges, fromNode, toNode);\nif (!has) {\n // Do something\n}\n```\n\n## Parent Node Traversal\nThe `getParentsForNodeId` function helps you find all the\nparent nodes for a given node id.\n\nThe signature for this looks like:\n\n```js\ngetParentsForNodeId(\n nodes: NodeData[],\n edges: EdgeData[],\n nodeId: string\n) => NodeData[];\n```\n\nBelow is an example usage:\n\n```js\nimport { getParentsForNodeId } from 'reaflow';\n\nconst nodes = getParentsForNodeId(nodes, edges, node.id);\n```\n\n## Has Link\nThe `hasLink` function helps you determine if\nthe source node already has a link to the target node.\n\nThe signature for this looks like:\n\n```js\nhasLink(\n edges: EdgeData[],\n fromNode: NodeData,\n toNode: NodeData\n) => boolean;\n```\n\nBelow is an example usage:\n\n```js\nimport { hasLink } from 'reaflow';\n\nconst has = hasLink(edges, fromNode, toNode);\nif (!has) {\n // Do something\n}\n```\n\n## Get Edges Given a Node\nSimilar to `hasLink` the `getEdgesByNode` function will\nreturn all the edges given a node.\n\nThe signature looks like this:\n\n```js\ngetEdgesByNode(\n edges: EdgeData[],\n node: NodeData,\n) => { all: EdgeData[], to: EdgeData[], from: EdgeData[] }\n```\n\nBelow is an example usage:\n\n```js\nimport { getEdgesByNode } from 'reaflow';\n\nconst { all, to, from } = getEdgesByNode(edges, node);\nif (!all.length) {\n // Do something\n}\n```\n"],"names":["_createMdxContent","props","_components","_provideComponents","_jsxs","_Fragment","_jsx","Meta","MDXContent","MDXLayout"],"mappings":"0bAIA,SAASA,EAAkBC,EAAO,CAChC,MAAMC,EAAc,OAAO,OAAO,CAChC,GAAI,KACJ,GAAI,KACJ,EAAG,IACH,KAAM,OACN,IAAK,KACN,EAAEC,EAAoB,EAAEF,EAAM,UAAU,EACzC,OAAOG,EAAAA,KAAMC,EAAAA,SAAW,CACtB,SAAU,CAACC,EAAI,IAACC,EAAM,CACpB,MAAO,kBACR,CAAA,EAAG;AAAA,EAAMD,MAAKJ,EAAY,GAAI,CAC7B,GAAI,cACJ,SAAU,aACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,GAAI,sBACJ,SAAU,qBACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,EAAG,CAC7B,SAAU,CAAC,OAAQI,MAAKJ,EAAY,KAAM,CACxC,SAAU,gBACX,CAAA,EAAG;AAAA;AAAA,oBAAiH,CACtH,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,oCACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,IAAK,CAC9B,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,UAAW,cACX,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACF,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,4BACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,IAAK,CAC9B,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,UAAW,cACX,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACF,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,GAAI,wBACJ,SAAU,uBACX,CAAA,EAAG;AAAA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AAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,GAAI,CAC7B,GAAI,yBACJ,SAAU,wBACX,CAAA,EAAG;AAAA,EAAME,OAAMF,EAAY,EAAG,CAC7B,SAAU,CAAC,cAAeI,MAAKJ,EAAY,KAAM,CAC/C,SAAU,SACX,CAAA,EAAG,QAASI,MAAKJ,EAAY,KAAM,CAClC,SAAU,gBACX,CAAA,EAAG;AAAA,mCAAoD,CACzD,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,gCACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,IAAK,CAC9B,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,UAAW,cACX,SAAU;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACF,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,EAAG,CAC5B,SAAU,4BACX,CAAA,EAAG;AAAA,EAAMI,MAAKJ,EAAY,IAAK,CAC9B,SAAUI,EAAAA,IAAKJ,EAAY,KAAM,CAC/B,UAAW,cACX,SAAU;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,CAClB,CAAO,CACP,CAAK,CAAC,CACN,CAAG,CACH,CACA,SAASM,EAAWP,EAAQ,GAAI,CAC9B,KAAM,CAAC,QAASQ,CAAS,EAAI,OAAO,OAAO,CAAE,EAAEN,EAAoB,EAAEF,EAAM,UAAU,EACrF,OAAOQ,EAAYH,EAAAA,IAAKG,EAAW,OAAO,OAAO,CAAE,EAAER,EAAO,CAC1D,SAAUK,EAAAA,IAAKN,EAAmBC,CAAK,CAC3C,CAAG,CAAC,EAAID,EAAkBC,CAAK,CAC/B"} \ No newline at end of file diff --git a/assets/Icon-81c21a65.js b/assets/Icon-81c21a65.js new file mode 100644 index 0000000..2867c66 --- /dev/null +++ b/assets/Icon-81c21a65.js @@ -0,0 +1,72 @@ +import{j as At}from"./jsx-runtime-9c4ae004.js";import{r as Ee,g as OG,R as gO,c as Vcn}from"./index-1b03fe98.js";import{r as XDn}from"./index-6fd5a17b.js";import{c as uG}from"./_commonjs-dynamic-modules-302442b1.js";if(typeof window<"u"){var Gcn={get passive(){}};window.addEventListener("testPassive",null,Gcn),window.removeEventListener("testPassive",null,Gcn)}const YDn=Ee.createContext(null),QDn=typeof document<"u",psn=QDn?Ee.useLayoutEffect:Ee.useEffect;function JDn(d){const b=Ee.useRef(null);return b.current===null&&(b.current=d()),b.current}const ZDn=Ee.createContext({});function e$n(d){return Ee.useEffect(()=>()=>d(),[])}const n$n="production",t$n=typeof process>"u"||process.env===void 0?n$n:"production",zcn=new Set;function i$n(d,b,m){d||zcn.has(b)||(console.warn(b),m&&console.warn(m),zcn.add(b))}var r$n=function(){},wG=function(){};const msn=1/60*1e3,c$n=typeof performance<"u"?()=>performance.now():()=>Date.now(),vsn=typeof window<"u"?d=>window.requestAnimationFrame(d):d=>setTimeout(()=>d(c$n()),msn);function u$n(d){let b=[],m=[],v=0,E=!1,S=!1;const y=new WeakSet,$={schedule:(N,B=!1,H=!1)=>{const z=H&&E,Y=z?b:m;return B&&y.add(N),Y.indexOf(N)===-1&&(Y.push(N),z&&E&&(v=b.length)),N},cancel:N=>{const B=m.indexOf(N);B!==-1&&m.splice(B,1),y.delete(N)},process:N=>{if(E){S=!0;return}if(E=!0,[b,m]=[m,b],m.length=0,v=b.length,v)for(let B=0;B(d[b]=u$n(()=>pO=!0),d),{}),o$n=TO.reduce((d,b)=>{const m=DG[b];return d[b]=(v,E=!1,S=!1)=>(pO||l$n(),m.schedule(v,E,S)),d},{});TO.reduce((d,b)=>(d[b]=DG[b].cancel,d),{});TO.reduce((d,b)=>(d[b]=()=>DG[b].process(fO),d),{});const f$n=d=>DG[d].process(fO),ysn=d=>{pO=!1,fO.delta=S0e?msn:Math.max(Math.min(d-fO.timestamp,s$n),1),fO.timestamp=d,P0e=!0,TO.forEach(f$n),P0e=!1,pO&&(S0e=!1,vsn(ysn))},l$n=()=>{pO=!0,S0e=!0,P0e||vsn(ysn)};function ksn(){const d=Ee.useRef(!1);return psn(()=>(d.current=!0,()=>{d.current=!1}),[]),d}function a$n(){const d=ksn(),[b,m]=Ee.useState(0),v=Ee.useCallback(()=>{d.current&&m(b+1)},[b]);return[Ee.useCallback(()=>o$n.postRender(v),[v]),b]}class h$n extends Ee.Component{getSnapshotBeforeUpdate(b){const m=this.props.childRef.current;if(m&&b.isPresent&&!this.props.isPresent){const v=this.props.sizeRef.current;v.height=m.offsetHeight||0,v.width=m.offsetWidth||0,v.top=m.offsetTop,v.left=m.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function d$n({children:d,isPresent:b}){const m=Ee.useId(),v=Ee.useRef(null),E=Ee.useRef({width:0,height:0,top:0,left:0});return Ee.useInsertionEffect(()=>{const{width:S,height:y,top:$,left:N}=E.current;if(b||!v.current||!S||!y)return;v.current.dataset.motionPopId=m;const B=document.createElement("style");return document.head.appendChild(B),B.sheet&&B.sheet.insertRule(` + [data-motion-pop-id="${m}"] { + position: absolute !important; + width: ${S}px !important; + height: ${y}px !important; + top: ${$}px !important; + left: ${N}px !important; + } + `),()=>{document.head.removeChild(B)}},[b]),Ee.createElement(h$n,{isPresent:b,childRef:v,sizeRef:E},Ee.cloneElement(d,{ref:v}))}const s0e=({children:d,initial:b,isPresent:m,onExitComplete:v,custom:E,presenceAffectsLayout:S,mode:y})=>{const $=JDn(b$n),N=Ee.useId(),B=Ee.useMemo(()=>({id:N,initial:b,isPresent:m,custom:E,onExitComplete:H=>{$.set(H,!0);for(const z of $.values())if(!z)return;v&&v()},register:H=>($.set(H,!1),()=>$.delete(H))}),S?void 0:[m]);return Ee.useMemo(()=>{$.forEach((H,z)=>$.set(z,!1))},[m]),Ee.useEffect(()=>{!m&&!$.size&&v&&v()},[m]),y==="popLayout"&&(d=Ee.createElement(d$n,{isPresent:m},d)),Ee.createElement(YDn.Provider,{value:B},d)};function b$n(){return new Map}const wE=d=>d.key||"";function w$n(d,b){d.forEach(m=>{const v=wE(m);b.set(v,m)})}function g$n(d){const b=[];return Ee.Children.forEach(d,m=>{Ee.isValidElement(m)&&b.push(m)}),b}const p$n=({children:d,custom:b,initial:m=!0,onExitComplete:v,exitBeforeEnter:E,presenceAffectsLayout:S=!0,mode:y="sync"})=>{E&&(y="wait",i$n(!1,"Replace exitBeforeEnter with mode='wait'"));let[$]=a$n();const N=Ee.useContext(ZDn).forceRender;N&&($=N);const B=ksn(),H=g$n(d);let z=H;const Y=new Set,Z=Ee.useRef(z),J=Ee.useRef(new Map).current,qe=Ee.useRef(!0);if(psn(()=>{qe.current=!1,w$n(H,J),Z.current=z}),e$n(()=>{qe.current=!0,J.clear(),Y.clear()}),qe.current)return Ee.createElement(Ee.Fragment,null,z.map(Ue=>Ee.createElement(s0e,{key:wE(Ue),isPresent:!0,initial:m?void 0:!1,presenceAffectsLayout:S,mode:y},Ue)));z=[...z];const on=Z.current.map(wE),bn=H.map(wE),xn=on.length;for(let Ue=0;Ue{if(bn.indexOf(Ue)!==-1)return;const mn=J.get(Ue);if(!mn)return;const bt=on.indexOf(Ue),_t=()=>{J.delete(Ue),Y.delete(Ue);const Mi=Z.current.findIndex(li=>li.key===Ue);if(Z.current.splice(Mi,1),!Y.size){if(Z.current=H,B.current===!1)return;$(),v&&v()}};z.splice(bt,0,Ee.createElement(s0e,{key:wE(mn),isPresent:!1,onExitComplete:_t,custom:b,presenceAffectsLayout:S,mode:y},mn))}),z=z.map(Ue=>{const mn=Ue.key;return Y.has(mn)?Ue:Ee.createElement(s0e,{key:wE(Ue),isPresent:!0,presenceAffectsLayout:S,mode:y},Ue)}),t$n!=="production"&&y==="wait"&&z.length>1&&console.warn(`You're attempting to animate multiple children within AnimatePresence, but its mode is set to "wait". This will lead to odd visual behaviour.`),Ee.createElement(Ee.Fragment,null,Y.size?z:z.map(Ue=>Ee.cloneElement(Ue)))};var jsn={exports:{}};/*! + Copyright (c) 2018 Jed Watson. + Licensed under the MIT License (MIT), see + http://jedwatson.github.io/classnames +*/(function(d){(function(){var b={}.hasOwnProperty;function m(){for(var v=[],E=0;E=0)return 1;return 0}();function y$n(d){var b=!1;return function(){b||(b=!0,window.Promise.resolve().then(function(){b=!1,d()}))}}function k$n(d){var b=!1;return function(){b||(b=!0,setTimeout(function(){b=!1,d()},v$n))}}var j$n=CO&&window.Promise,E$n=j$n?y$n:k$n;function Esn(d){var b={};return d&&b.toString.call(d)==="[object Function]"}function q9(d,b){if(d.nodeType!==1)return[];var m=d.ownerDocument.defaultView,v=m.getComputedStyle(d,null);return b?v[b]:v}function ube(d){return d.nodeName==="HTML"?d:d.parentNode||d.host}function MO(d){if(!d)return document.body;switch(d.nodeName){case"HTML":case"BODY":return d.ownerDocument.body;case"#document":return d.body}var b=q9(d),m=b.overflow,v=b.overflowX,E=b.overflowY;return/(auto|scroll|overlay)/.test(m+E+v)?d:MO(ube(d))}function Tsn(d){return d&&d.referenceNode?d.referenceNode:d}var Ucn=CO&&!!(window.MSInputMethodContext&&document.documentMode),Wcn=CO&&/MSIE 10/.test(navigator.userAgent);function AE(d){return d===11?Ucn:d===10?Wcn:Ucn||Wcn}function EE(d){if(!d)return document.documentElement;for(var b=AE(10)?document.body:null,m=d.offsetParent||null;m===b&&d.nextElementSibling;)m=(d=d.nextElementSibling).offsetParent;var v=m&&m.nodeName;return!v||v==="BODY"||v==="HTML"?d?d.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(m.nodeName)!==-1&&q9(m,"position")==="static"?EE(m):m}function T$n(d){var b=d.nodeName;return b==="BODY"?!1:b==="HTML"||EE(d.firstElementChild)===d}function A0e(d){return d.parentNode!==null?A0e(d.parentNode):d}function gG(d,b){if(!d||!d.nodeType||!b||!b.nodeType)return document.documentElement;var m=d.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING,v=m?d:b,E=m?b:d,S=document.createRange();S.setStart(v,0),S.setEnd(E,0);var y=S.commonAncestorContainer;if(d!==y&&b!==y||v.contains(E))return T$n(y)?y:EE(y);var $=A0e(d);return $.host?gG($.host,b):gG(d,A0e(b).host)}function TE(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",m=b==="top"?"scrollTop":"scrollLeft",v=d.nodeName;if(v==="BODY"||v==="HTML"){var E=d.ownerDocument.documentElement,S=d.ownerDocument.scrollingElement||E;return S[m]}return d[m]}function C$n(d,b){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=TE(b,"top"),E=TE(b,"left"),S=m?-1:1;return d.top+=v*S,d.bottom+=v*S,d.left+=E*S,d.right+=E*S,d}function Xcn(d,b){var m=b==="x"?"Left":"Top",v=m==="Left"?"Right":"Bottom";return parseFloat(d["border"+m+"Width"])+parseFloat(d["border"+v+"Width"])}function Ycn(d,b,m,v){return Math.max(b["offset"+d],b["scroll"+d],m["client"+d],m["offset"+d],m["scroll"+d],AE(10)?parseInt(m["offset"+d])+parseInt(v["margin"+(d==="Height"?"Top":"Left")])+parseInt(v["margin"+(d==="Height"?"Bottom":"Right")]):0)}function Csn(d){var b=d.body,m=d.documentElement,v=AE(10)&&getComputedStyle(m);return{height:Ycn("Height",b,m,v),width:Ycn("Width",b,m,v)}}var M$n=function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")},S$n=function(){function d(b,m){for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1,v=AE(10),E=b.nodeName==="HTML",S=x0e(d),y=x0e(b),$=MO(d),N=q9(b),B=parseFloat(N.borderTopWidth),H=parseFloat(N.borderLeftWidth);m&&E&&(y.top=Math.max(y.top,0),y.left=Math.max(y.left,0));var z=L4({top:S.top-y.top-B,left:S.left-y.left-H,width:S.width,height:S.height});if(z.marginTop=0,z.marginLeft=0,!v&&E){var Y=parseFloat(N.marginTop),Z=parseFloat(N.marginLeft);z.top-=B-Y,z.bottom-=B-Y,z.left-=H-Z,z.right-=H-Z,z.marginTop=Y,z.marginLeft=Z}return(v&&!m?b.contains($):b===$&&$.nodeName!=="BODY")&&(z=C$n(z,b)),z}function P$n(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=d.ownerDocument.documentElement,v=sbe(d,m),E=Math.max(m.clientWidth,window.innerWidth||0),S=Math.max(m.clientHeight,window.innerHeight||0),y=b?0:TE(m),$=b?0:TE(m,"left"),N={top:y-v.top+v.marginTop,left:$-v.left+v.marginLeft,width:E,height:S};return L4(N)}function Msn(d){var b=d.nodeName;if(b==="BODY"||b==="HTML")return!1;if(q9(d,"position")==="fixed")return!0;var m=ube(d);return m?Msn(m):!1}function Ssn(d){if(!d||!d.parentElement||AE())return document.documentElement;for(var b=d.parentElement;b&&q9(b,"transform")==="none";)b=b.parentElement;return b||document.documentElement}function obe(d,b,m,v){var E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,S={top:0,left:0},y=E?Ssn(d):gG(d,Tsn(b));if(v==="viewport")S=P$n(y,E);else{var $=void 0;v==="scrollParent"?($=MO(ube(b)),$.nodeName==="BODY"&&($=d.ownerDocument.documentElement)):v==="window"?$=d.ownerDocument.documentElement:$=v;var N=sbe($,y,E);if($.nodeName==="HTML"&&!Msn(y)){var B=Csn(d.ownerDocument),H=B.height,z=B.width;S.top+=N.top-N.marginTop,S.bottom=H+N.top,S.left+=N.left-N.marginLeft,S.right=z+N.left}else S=N}m=m||0;var Y=typeof m=="number";return S.left+=Y?m:m.left||0,S.top+=Y?m:m.top||0,S.right-=Y?m:m.right||0,S.bottom-=Y?m:m.bottom||0,S}function A$n(d){var b=d.width,m=d.height;return b*m}function Psn(d,b,m,v,E){var S=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(d.indexOf("auto")===-1)return d;var y=obe(m,v,S,E),$={top:{width:y.width,height:b.top-y.top},right:{width:y.right-b.right,height:y.height},bottom:{width:y.width,height:y.bottom-b.bottom},left:{width:b.left-y.left,height:y.height}},N=Object.keys($).map(function(Y){return kb({key:Y},$[Y],{area:A$n($[Y])})}).sort(function(Y,Z){return Z.area-Y.area}),B=N.filter(function(Y){var Z=Y.width,J=Y.height;return Z>=m.clientWidth&&J>=m.clientHeight}),H=B.length>0?B[0].key:N[0].key,z=d.split("-")[1];return H+(z?"-"+z:"")}function Asn(d,b,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,E=v?Ssn(b):gG(b,Tsn(m));return sbe(m,E,v)}function xsn(d){var b=d.ownerDocument.defaultView,m=b.getComputedStyle(d),v=parseFloat(m.marginTop||0)+parseFloat(m.marginBottom||0),E=parseFloat(m.marginLeft||0)+parseFloat(m.marginRight||0),S={width:d.offsetWidth+E,height:d.offsetHeight+v};return S}function pG(d){var b={left:"right",right:"left",bottom:"top",top:"bottom"};return d.replace(/left|right|bottom|top/g,function(m){return b[m]})}function Isn(d,b,m){m=m.split("-")[0];var v=xsn(d),E={width:v.width,height:v.height},S=["right","left"].indexOf(m)!==-1,y=S?"top":"left",$=S?"left":"top",N=S?"height":"width",B=S?"width":"height";return E[y]=b[y]+b[N]/2-v[N]/2,m===$?E[$]=b[$]-v[B]:E[$]=b[pG($)],E}function SO(d,b){return Array.prototype.find?d.find(b):d.filter(b)[0]}function x$n(d,b,m){if(Array.prototype.findIndex)return d.findIndex(function(E){return E[b]===m});var v=SO(d,function(E){return E[b]===m});return d.indexOf(v)}function Osn(d,b,m){var v=m===void 0?d:d.slice(0,x$n(d,"name",m));return v.forEach(function(E){E.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var S=E.function||E.fn;E.enabled&&Esn(S)&&(b.offsets.popper=L4(b.offsets.popper),b.offsets.reference=L4(b.offsets.reference),b=S(b,E))}),b}function I$n(){if(!this.state.isDestroyed){var d={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};d.offsets.reference=Asn(this.state,this.popper,this.reference,this.options.positionFixed),d.placement=Psn(this.options.placement,d.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),d.originalPlacement=d.placement,d.positionFixed=this.options.positionFixed,d.offsets.popper=Isn(this.popper,d.offsets.reference,d.placement),d.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",d=Osn(this.modifiers,d),this.state.isCreated?this.options.onUpdate(d):(this.state.isCreated=!0,this.options.onCreate(d))}}function Dsn(d,b){return d.some(function(m){var v=m.name,E=m.enabled;return E&&v===b})}function fbe(d){for(var b=[!1,"ms","Webkit","Moz","O"],m=d.charAt(0).toUpperCase()+d.slice(1),v=0;vy[Z]&&(d.offsets.popper[z]+=$[z]+J-y[Z]),d.offsets.popper=L4(d.offsets.popper);var qe=$[z]+$[B]/2-J/2,on=q9(d.instance.popper),bn=parseFloat(on["margin"+H]),xn=parseFloat(on["border"+H+"Width"]),Ue=qe-d.offsets.popper[z]-bn-xn;return Ue=Math.max(Math.min(y[B]-J,Ue),0),d.arrowElement=v,d.offsets.arrow=(m={},CE(m,z,Math.round(Ue)),CE(m,Y,""),m),d}function V$n(d){return d==="end"?"start":d==="start"?"end":d}var Nsn=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],o0e=Nsn.slice(3);function Qcn(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=o0e.indexOf(d),v=o0e.slice(m+1).concat(o0e.slice(0,m));return b?v.reverse():v}var f0e={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function G$n(d,b){if(Dsn(d.instance.modifiers,"inner")||d.flipped&&d.placement===d.originalPlacement)return d;var m=obe(d.instance.popper,d.instance.reference,b.padding,b.boundariesElement,d.positionFixed),v=d.placement.split("-")[0],E=pG(v),S=d.placement.split("-")[1]||"",y=[];switch(b.behavior){case f0e.FLIP:y=[v,E];break;case f0e.CLOCKWISE:y=Qcn(v);break;case f0e.COUNTERCLOCKWISE:y=Qcn(v,!0);break;default:y=b.behavior}return y.forEach(function($,N){if(v!==$||y.length===N+1)return d;v=d.placement.split("-")[0],E=pG(v);var B=d.offsets.popper,H=d.offsets.reference,z=Math.floor,Y=v==="left"&&z(B.right)>z(H.left)||v==="right"&&z(B.left)z(H.top)||v==="bottom"&&z(B.top)z(m.right),qe=z(B.top)z(m.bottom),bn=v==="left"&&Z||v==="right"&&J||v==="top"&&qe||v==="bottom"&&on,xn=["top","bottom"].indexOf(v)!==-1,Ue=!!b.flipVariations&&(xn&&S==="start"&&Z||xn&&S==="end"&&J||!xn&&S==="start"&&qe||!xn&&S==="end"&&on),mn=!!b.flipVariationsByContent&&(xn&&S==="start"&&J||xn&&S==="end"&&Z||!xn&&S==="start"&&on||!xn&&S==="end"&&qe),bt=Ue||mn;(Y||bn||bt)&&(d.flipped=!0,(Y||bn)&&(v=y[N+1]),bt&&(S=V$n(S)),d.placement=v+(S?"-"+S:""),d.offsets.popper=kb({},d.offsets.popper,Isn(d.instance.popper,d.offsets.reference,d.placement)),d=Osn(d.instance.modifiers,d,"flip"))}),d}function z$n(d){var b=d.offsets,m=b.popper,v=b.reference,E=d.placement.split("-")[0],S=Math.floor,y=["top","bottom"].indexOf(E)!==-1,$=y?"right":"bottom",N=y?"left":"top",B=y?"width":"height";return m[$]S(v[$])&&(d.offsets.popper[N]=S(v[$])),d}function U$n(d,b,m,v){var E=d.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),S=+E[1],y=E[2];if(!S)return d;if(y.indexOf("%")===0){var $=void 0;switch(y){case"%p":$=m;break;case"%":case"%r":default:$=v}var N=L4($);return N[b]/100*S}else if(y==="vh"||y==="vw"){var B=void 0;return y==="vh"?B=Math.max(document.documentElement.clientHeight,window.innerHeight||0):B=Math.max(document.documentElement.clientWidth,window.innerWidth||0),B/100*S}else return S}function W$n(d,b,m,v){var E=[0,0],S=["right","left"].indexOf(v)!==-1,y=d.split(/(\+|\-)/).map(function(H){return H.trim()}),$=y.indexOf(SO(y,function(H){return H.search(/,|\s/)!==-1}));y[$]&&y[$].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var N=/\s*,\s*|\s+/,B=$!==-1?[y.slice(0,$).concat([y[$].split(N)[0]]),[y[$].split(N)[1]].concat(y.slice($+1))]:[y];return B=B.map(function(H,z){var Y=(z===1?!S:S)?"height":"width",Z=!1;return H.reduce(function(J,qe){return J[J.length-1]===""&&["+","-"].indexOf(qe)!==-1?(J[J.length-1]=qe,Z=!0,J):Z?(J[J.length-1]+=qe,Z=!1,J):J.concat(qe)},[]).map(function(J){return U$n(J,Y,b,m)})}),B.forEach(function(H,z){H.forEach(function(Y,Z){lbe(Y)&&(E[z]+=Y*(H[Z-1]==="-"?-1:1))})}),E}function X$n(d,b){var m=b.offset,v=d.placement,E=d.offsets,S=E.popper,y=E.reference,$=v.split("-")[0],N=void 0;return lbe(+m)?N=[+m,0]:N=W$n(m,S,y,$),$==="left"?(S.top+=N[0],S.left-=N[1]):$==="right"?(S.top+=N[0],S.left+=N[1]):$==="top"?(S.left+=N[0],S.top-=N[1]):$==="bottom"&&(S.left+=N[0],S.top+=N[1]),d.popper=S,d}function Y$n(d,b){var m=b.boundariesElement||EE(d.instance.popper);d.instance.reference===m&&(m=EE(m));var v=fbe("transform"),E=d.instance.popper.style,S=E.top,y=E.left,$=E[v];E.top="",E.left="",E[v]="";var N=obe(d.instance.popper,d.instance.reference,b.padding,m,d.positionFixed);E.top=S,E.left=y,E[v]=$,b.boundaries=N;var B=b.priority,H=d.offsets.popper,z={primary:function(Z){var J=H[Z];return H[Z]N[Z]&&!b.escapeWithReference&&(qe=Math.min(H[J],N[Z]-(Z==="right"?H.width:H.height))),CE({},J,qe)}};return B.forEach(function(Y){var Z=["left","top"].indexOf(Y)!==-1?"primary":"secondary";H=kb({},H,z[Z](Y))}),d.offsets.popper=H,d}function Q$n(d){var b=d.placement,m=b.split("-")[0],v=b.split("-")[1];if(v){var E=d.offsets,S=E.reference,y=E.popper,$=["bottom","top"].indexOf(m)!==-1,N=$?"left":"top",B=$?"width":"height",H={start:CE({},N,S[N]),end:CE({},N,S[N]+S[B]-y[B])};d.offsets.popper=kb({},y,H[v])}return d}function J$n(d){if(!Fsn(d.instance.modifiers,"hide","preventOverflow"))return d;var b=d.offsets.reference,m=SO(d.instance.modifiers,function(v){return v.name==="preventOverflow"}).boundaries;if(b.bottomm.right||b.top>m.bottom||b.right2&&arguments[2]!==void 0?arguments[2]:{};M$n(this,d),this.scheduleUpdate=function(){return requestAnimationFrame(v.update)},this.update=E$n(this.update.bind(this)),this.options=kb({},d.Defaults,E),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=b&&b.jquery?b[0]:b,this.popper=m&&m.jquery?m[0]:m,this.options.modifiers={},Object.keys(kb({},d.Defaults.modifiers,E.modifiers)).forEach(function(y){v.options.modifiers[y]=kb({},d.Defaults.modifiers[y]||{},E.modifiers?E.modifiers[y]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(y){return kb({name:y},v.options.modifiers[y])}).sort(function(y,$){return y.order-$.order}),this.modifiers.forEach(function(y){y.enabled&&Esn(y.onLoad)&&y.onLoad(v.reference,v.popper,v.options,y,v.state)}),this.update();var S=this.options.eventsEnabled;S&&this.enableEventListeners(),this.state.eventsEnabled=S}return S$n(d,[{key:"update",value:function(){return I$n.call(this)}},{key:"destroy",value:function(){return O$n.call(this)}},{key:"enableEventListeners",value:function(){return $$n.call(this)}},{key:"disableEventListeners",value:function(){return F$n.call(this)}}]),d}();$G.Utils=(typeof window<"u"?window:global).PopperUtils;$G.placements=Nsn;$G.Defaults=nLn;const tLn=$G;(function(){try{if(typeof document<"u"){var d=document.createElement("style");d.appendChild(document.createTextNode(`._backdrop_uxwv8_1 { + position: fixed; + background: var(--color-layer-transparent); + top: 0; + bottom: 0; + right: 0; + left: 0; + opacity: 0; + user-select: none; +}`)),document.head.appendChild(d)}}catch(b){console.error("vite-plugin-css-injected-by-js",b)}})();const iLn=({ref:d,open:b=!0,onClickOutside:m,onEscape:v})=>{Ee.useEffect(()=>{if(!b)return;const E=y=>{d.current&&!d.current.contains(y.target)&&(m==null||m(y))},S=y=>{y.code==="Escape"&&(v==null||v(y))};return m&&(document.addEventListener("mousedown",E),document.addEventListener("touchstart",E)),v&&document.addEventListener("keydown",S),()=>{m&&(document.removeEventListener("mousedown",E),document.removeEventListener("touchstart",E)),v&&document.removeEventListener("keydown",S)}},[d,m,v,b])},rLn=Ee.createContext({close:()=>{}});let cLn=0;const uLn=()=>`ref-${++cLn}`,abe=d=>{const[b]=Ee.useState(d||uLn());return`${b}`},sLn=d=>{const b=Ee.useRef(d);b.current=d,Ee.useLayoutEffect(()=>()=>b.current(),[])},oLn=Ee.forwardRef(({children:d,className:b,element:m="div",onMount:v,onUnmount:E},S)=>{const y=Ee.useRef(null),$=Ee.useRef(!1);return Ee.useEffect(()=>{b&&y.current&&y.current.setAttribute("class",`${b} rdk-portal`)},[b,y.current]),Ee.useLayoutEffect(()=>{y.current=document.createElement(m),v==null||v()},[]),sLn(()=>{E==null||E();const N=y.current;N&&document.body.contains(N)&&document.body.removeChild(N)}),Ee.useImperativeHandle(S,()=>y.current),y.current?($.current||($.current=!0,y.current.classList.add("rdk-portal"),document.body.appendChild(y.current)),XDn.createPortal(d,y.current)):null}),gE=[],fLn=990,_sn=Ee.forwardRef(({className:d,children:b,onMount:m,onUnmount:v,appendToBody:E,id:S},y)=>{let $=abe(S);const[N,B]=Ee.useState(null),[H,z]=Ee.useState(null),Y=Ee.useRef(null);return Ee.useImperativeHandle(y,()=>Y.current),At.jsx(oLn,{className:d,ref:Y,appendToBody:E,onMount:()=>{gE.push($);let Z=gE.indexOf($);B(Z);const J=fLn+Z*2+1;z(J),m==null||m({portalId:$,overlayIndex:J,portalIndex:Z,backdropIndex:J})},onUnmount:()=>{v==null||v(),gE.splice(gE.indexOf($),1),B(null),z(null)},children:b({overlayIndex:H,portalIndex:N,backdropIndex:H,portalId:$})})});_sn.defaultProps={appendToBody:!0};const lLn=Ee.forwardRef(({children:d,className:b,elementType:m="span",trigger:v=["click"],onOpen:E=()=>{},onClose:S=()=>{}},y)=>{const $=Ee.useCallback(on=>Array.isArray(v)?v.includes(on):on===v,[v]),N=Ee.useCallback(on=>{$("focus")&&E({type:"focus",nativeEvent:on})},[E,$]),B=Ee.useCallback(on=>{$("focus")&&S({type:"focus",nativeEvent:on})},[S,$]),H=Ee.useCallback(on=>{$("hover")&&E({type:"hover",nativeEvent:on})},[E,$]),z=Ee.useCallback(on=>{$("hover")&&S({type:"hover",nativeEvent:on})},[S,$]),Y=Ee.useCallback(on=>{$("click")&&E({type:"click",nativeEvent:on}),$("click")||S({type:"hover",nativeEvent:on})},[E,S,$]),Z=Ee.useCallback(on=>{$("contextmenu")&&(on.preventDefault(),E({type:"contextmenu",nativeEvent:on}))},[E]),J=$("focus")?-1:void 0,qe=m;return At.jsx(qe,{ref:y,tabIndex:J,onMouseEnter:H,onMouseLeave:z,onFocus:N,onBlur:B,onClick:Y,onContextMenu:Z,className:b,children:d})}),aLn=(d,{followCursor:b,placement:m,modifiers:v}={})=>{const E=Ee.useRef(null),S=Ee.useRef(null),y=Ee.useRef({pageX:0,pageY:0}),$=d.current,N=Ee.useMemo(()=>{const B=d;if(B.current!==void 0)return B.current;const H=d;if(b)return{getBoundingClientRect:()=>({top:y.current.pageY,right:y.current.pageX,bottom:y.current.pageY,left:y.current.pageX,width:0,height:0}),clientWidth:0,clientHeight:0};if(H&&!H.getBoundingClientRect){const{top:z,left:Y,width:Z,height:J}=d;return{getBoundingClientRect:()=>({top:z,left:Y,width:Z,bottom:z-J,right:Y-Z,height:J}),clientWidth:Z,clientHeight:J}}return H},[b,d,$,y]);return Ee.useLayoutEffect(()=>{let B;const H=({pageX:Y,pageY:Z})=>{var J;y.current={pageX:Y,pageY:Z},(J=S.current)==null||J.scheduleUpdate()},z=()=>{B=requestAnimationFrame(()=>{var Y;(Y=S.current)==null||Y.scheduleUpdate()})};return E.current&&N&&(S.current=new tLn(N,E.current,{placement:m||"top",modifiers:v||{},onCreate:()=>{window.addEventListener("scroll",z),b&&window.addEventListener("mousemove",H)}})),()=>{var Y;E.current||((Y=S.current)==null||Y.destroy(),cancelAnimationFrame(B),window.removeEventListener("scroll",z),b&&window.removeEventListener("mousemove",H))}},[E.current]),Ee.useLayoutEffect(()=>{S.current&&(S.current.reference=N,S.current.scheduleUpdate())},[N]),[E,S]};function Ch({children:d,element:b,childRef:m,...v}){const E=Ee.useMemo(()=>$=>{const N=b.props;return Object.keys($).reduce((B,H)=>{const z=$[H],Y=N[H];return typeof z=="function"&&typeof Y=="function"?B[H]=(...Z)=>{z(...Z),Y(...Z)}:H==="className"?B[H]=jb(z,Y):B[H]=z,B},{})},[v]);if(b===null)return d;const S=m?$=>{typeof m=="function"?m($):S&&(m.current=$)}:void 0,y=E(v);return Ee.cloneElement(b,{...b.props,...y,children:d,ref:S})}const Bsn=Ee.forwardRef(({triggerRef:d,children:b,portalClassName:m,closeOnBodyClick:v,closeOnEscape:E,elementType:S,appendToBody:y,followCursor:$,modifiers:N,placement:B,onClose:H},z)=>{const Y=abe(),[Z,J]=Ee.useState(null),[qe,on]=aLn(d,{followCursor:$,modifiers:N,placement:B});Ee.useImperativeHandle(z,()=>({updatePosition:()=>{var Ue;(Ue=on==null?void 0:on.current)==null||Ue.scheduleUpdate()}}));const bn=Ee.useCallback(Ue=>{if(v){let mn=null;d.current?mn=d.current:d.contains!==void 0&&(mn=d);const bt=Ue.target.closest(".rdk-portal"),_t=gE.indexOf(Y)===gE.length-1;!(mn!=null&&mn.contains(Ue.target))&&(_t||!bt)&&(H==null||H(Ue))}},[v,H]),xn=Ee.useCallback(()=>{E&&(H==null||H())},[E,H]);return iLn({open:!0,ref:qe,onClickOutside:bn,onEscape:xn}),Ee.useEffect(()=>{qe&&Z&&(qe.current.style.zIndex=Z)},[qe.current,Z]),At.jsx(_sn,{id:Y,ref:qe,className:m,elementType:S,appendToBody:y,onMount:Ue=>J(Ue.overlayIndex),onUnmount:()=>J(null),children:b})});Bsn.defaultProps={closeOnBodyClick:!0,closeOnEscape:!0,appendToBody:!0,placement:"bottom"};const hLn=Ee.forwardRef(({reference:d,children:b,open:m,content:v,triggerElement:E,triggerClassName:S,trigger:y,onOpen:$,onClose:N,...B},H)=>{const z=Ee.useRef(!1),Y=Ee.useRef(null),Z=Ee.useRef(null),J=d||Y;Ee.useImperativeHandle(H,()=>({updatePosition:()=>{var on;(on=Z.current)==null||on.updatePosition()}})),Ee.useEffect(()=>{z.current&&(m?$==null||$():N==null||N())},[m]),Ee.useEffect(()=>{z.current||(z.current=!0)});const qe=Ee.useMemo(()=>({close:()=>N==null?void 0:N()}),[N]);return At.jsxs(rLn.Provider,{value:qe,children:[b&&At.jsx(Ee.Fragment,{children:y?At.jsx(lLn,{elementType:E,ref:Y,className:S,trigger:y,onOpen:$,onClose:N,children:b}):b}),At.jsx(p$n,{children:m&&At.jsx(Bsn,{...B,ref:Z,triggerRef:J,onClose:N,children:v})})]})});hLn.defaultProps={trigger:"click"};const hbe=Ee.createContext({transformPagePoint:d=>d,isStatic:!1,reducedMotion:"never"}),LG=Ee.createContext({});function dLn(){return Ee.useContext(LG).visualElement}const FG=Ee.createContext(null),H9=typeof document<"u",l0e=H9?Ee.useLayoutEffect:Ee.useEffect,Rsn=Ee.createContext({strict:!1});function bLn(d,b,m,v){const E=dLn(),S=Ee.useContext(Rsn),y=Ee.useContext(FG),$=Ee.useContext(hbe).reducedMotion,N=Ee.useRef();v=v||S.renderer,!N.current&&v&&(N.current=v(d,{visualState:b,parent:E,props:m,presenceId:y?y.id:void 0,blockInitialAnimation:y?y.initial===!1:!1,reducedMotionConfig:$}));const B=N.current;return l0e(()=>{B&&B.render()}),l0e(()=>{B&&B.animationState&&B.animationState.animateChanges()}),l0e(()=>()=>B&&B.notify("Unmount"),[]),B}function pE(d){return typeof d=="object"&&Object.prototype.hasOwnProperty.call(d,"current")}function wLn(d,b,m){return Ee.useCallback(v=>{v&&d.mount&&d.mount(v),b&&(v?b.mount(v):b.unmount()),m&&(typeof m=="function"?m(v):pE(m)&&(m.current=v))},[b])}function mO(d){return typeof d=="string"||Array.isArray(d)}function NG(d){return typeof d=="object"&&typeof d.start=="function"}const gLn=["initial","animate","exit","whileHover","whileDrag","whileTap","whileFocus","whileInView"];function _G(d){return NG(d.animate)||gLn.some(b=>mO(d[b]))}function Ksn(d){return!!(_G(d)||d.variants)}function pLn(d,b){if(_G(d)){const{initial:m,animate:v}=d;return{initial:m===!1||mO(m)?m:void 0,animate:mO(v)?v:void 0}}return d.inherit!==!1?b:{}}function mLn(d){const{initial:b,animate:m}=pLn(d,Ee.useContext(LG));return Ee.useMemo(()=>({initial:b,animate:m}),[Jcn(b),Jcn(m)])}function Jcn(d){return Array.isArray(d)?d.join(" "):d}const xm=d=>({isEnabled:b=>d.some(m=>!!b[m])}),vO={measureLayout:xm(["layout","layoutId","drag"]),animation:xm(["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"]),exit:xm(["exit"]),drag:xm(["drag","dragControls"]),focus:xm(["whileFocus"]),hover:xm(["whileHover","onHoverStart","onHoverEnd"]),tap:xm(["whileTap","onTap","onTapStart","onTapCancel"]),pan:xm(["onPan","onPanStart","onPanSessionStart","onPanEnd"]),inView:xm(["whileInView","onViewportEnter","onViewportLeave"])};function vLn(d){for(const b in d)b==="projectionNodeConstructor"?vO.projectionNodeConstructor=d[b]:vO[b].Component=d[b]}function BG(d){const b=Ee.useRef(null);return b.current===null&&(b.current=d()),b.current}const lO={hasAnimatedSinceResize:!0,hasEverUpdated:!1};let yLn=1;function kLn(){return BG(()=>{if(lO.hasEverUpdated)return yLn++})}const qsn=Ee.createContext({});class jLn extends gO.Component{getSnapshotBeforeUpdate(){const{visualElement:b,props:m}=this.props;return b&&b.setProps(m),null}componentDidUpdate(){}render(){return this.props.children}}const Hsn=Ee.createContext({}),ELn=Symbol.for("motionComponentSymbol");function TLn({preloadedFeatures:d,createVisualElement:b,projectionNodeConstructor:m,useRender:v,useVisualState:E,Component:S}){d&&vLn(d);function y(N,B){const H={...Ee.useContext(hbe),...N,layoutId:CLn(N)},{isStatic:z}=H;let Y=null;const Z=mLn(N),J=z?void 0:kLn(),qe=E(N,z);if(!z&&H9){Z.visualElement=bLn(S,qe,H,b);const on=Ee.useContext(Rsn).strict,bn=Ee.useContext(Hsn);Z.visualElement&&(Y=Z.visualElement.loadFeatures(H,on,d,J,m||vO.projectionNodeConstructor,bn))}return Ee.createElement(jLn,{visualElement:Z.visualElement,props:H},Y,Ee.createElement(LG.Provider,{value:Z},v(S,N,J,wLn(qe,Z.visualElement,B),qe,z,Z.visualElement)))}const $=Ee.forwardRef(y);return $[ELn]=S,$}function CLn({layoutId:d}){const b=Ee.useContext(qsn).id;return b&&d!==void 0?b+"-"+d:d}function MLn(d){function b(v,E={}){return TLn(d(v,E))}if(typeof Proxy>"u")return b;const m=new Map;return new Proxy(b,{get:(v,E)=>(m.has(E)||m.set(E,b(E)),m.get(E))})}const SLn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function dbe(d){return typeof d!="string"||d.includes("-")?!1:!!(SLn.indexOf(d)>-1||/[A-Z]/.test(d))}const mG={};function PLn(d){Object.assign(mG,d)}const vG=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],V9=new Set(vG);function Vsn(d,{layout:b,layoutId:m}){return V9.has(d)||d.startsWith("origin")||(b||m!==void 0)&&(!!mG[d]||d==="opacity")}const Gp=d=>!!(d!=null&&d.getVelocity),ALn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},xLn=(d,b)=>vG.indexOf(d)-vG.indexOf(b);function ILn({transform:d,transformKeys:b},{enableHardwareAcceleration:m=!0,allowTransformNone:v=!0},E,S){let y="";b.sort(xLn);for(const $ of b)y+=`${ALn[$]||$}(${d[$]}) `;return m&&!d.z&&(y+="translateZ(0)"),y=y.trim(),S?y=S(d,E?"":y):v&&E&&(y="none"),y}function Gsn(d){return d.startsWith("--")}const OLn=(d,b)=>b&&typeof d=="number"?b.transform(d):d,ME=(d,b,m)=>Math.min(Math.max(m,d),b),G9={test:d=>typeof d=="number",parse:parseFloat,transform:d=>d},aO={...G9,transform:d=>ME(0,1,d)},sG={...G9,default:1},hO=d=>Math.round(d*1e5)/1e5,yO=/(-)?([\d]*\.?[\d])+/g,O0e=/(#[0-9a-f]{6}|#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,DLn=/^(#[0-9a-f]{3}|#(?:[0-9a-f]{2}){2,4}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function PO(d){return typeof d=="string"}const AO=d=>({test:b=>PO(b)&&b.endsWith(d)&&b.split(" ").length===1,parse:parseFloat,transform:b=>`${b}${d}`}),I4=AO("deg"),Vp=AO("%"),Ui=AO("px"),$Ln=AO("vh"),LLn=AO("vw"),Zcn={...Vp,parse:d=>Vp.parse(d)/100,transform:d=>Vp.transform(d*100)},eun={...G9,transform:Math.round},zsn={borderWidth:Ui,borderTopWidth:Ui,borderRightWidth:Ui,borderBottomWidth:Ui,borderLeftWidth:Ui,borderRadius:Ui,radius:Ui,borderTopLeftRadius:Ui,borderTopRightRadius:Ui,borderBottomRightRadius:Ui,borderBottomLeftRadius:Ui,width:Ui,maxWidth:Ui,height:Ui,maxHeight:Ui,size:Ui,top:Ui,right:Ui,bottom:Ui,left:Ui,padding:Ui,paddingTop:Ui,paddingRight:Ui,paddingBottom:Ui,paddingLeft:Ui,margin:Ui,marginTop:Ui,marginRight:Ui,marginBottom:Ui,marginLeft:Ui,rotate:I4,rotateX:I4,rotateY:I4,rotateZ:I4,scale:sG,scaleX:sG,scaleY:sG,scaleZ:sG,skew:I4,skewX:I4,skewY:I4,distance:Ui,translateX:Ui,translateY:Ui,translateZ:Ui,x:Ui,y:Ui,z:Ui,perspective:Ui,transformPerspective:Ui,opacity:aO,originX:Zcn,originY:Zcn,originZ:Ui,zIndex:eun,fillOpacity:aO,strokeOpacity:aO,numOctaves:eun};function bbe(d,b,m,v){const{style:E,vars:S,transform:y,transformKeys:$,transformOrigin:N}=d;$.length=0;let B=!1,H=!1,z=!0;for(const Y in b){const Z=b[Y];if(Gsn(Y)){S[Y]=Z;continue}const J=zsn[Y],qe=OLn(Z,J);if(V9.has(Y)){if(B=!0,y[Y]=qe,$.push(Y),!z)continue;Z!==(J.default||0)&&(z=!1)}else Y.startsWith("origin")?(H=!0,N[Y]=qe):E[Y]=qe}if(b.transform||(B||v?E.transform=ILn(d,m,z,v):E.transform&&(E.transform="none")),H){const{originX:Y="50%",originY:Z="50%",originZ:J=0}=N;E.transformOrigin=`${Y} ${Z} ${J}`}}const wbe=()=>({style:{},transform:{},transformKeys:[],transformOrigin:{},vars:{}});function Usn(d,b,m){for(const v in b)!Gp(b[v])&&!Vsn(v,m)&&(d[v]=b[v])}function FLn({transformTemplate:d},b,m){return Ee.useMemo(()=>{const v=wbe();return bbe(v,b,{enableHardwareAcceleration:!m},d),Object.assign({},v.vars,v.style)},[b])}function NLn(d,b,m){const v=d.style||{},E={};return Usn(E,v,d),Object.assign(E,FLn(d,b,m)),d.transformValues?d.transformValues(E):E}function _Ln(d,b,m){const v={},E=NLn(d,b,m);return d.drag&&d.dragListener!==!1&&(v.draggable=!1,E.userSelect=E.WebkitUserSelect=E.WebkitTouchCallout="none",E.touchAction=d.drag===!0?"none":`pan-${d.drag==="x"?"y":"x"}`),v.style=E,v}const BLn=["animate","exit","variants","whileHover","whileTap","whileFocus","whileDrag","whileInView"],RLn=["whileTap","onTap","onTapStart","onTapCancel"],KLn=["onPan","onPanStart","onPanSessionStart","onPanEnd"],qLn=["whileInView","onViewportEnter","onViewportLeave","viewport"],HLn=new Set(["initial","style","values","variants","transition","transformTemplate","transformValues","custom","inherit","layout","layoutId","layoutDependency","onLayoutAnimationStart","onLayoutAnimationComplete","onLayoutMeasure","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","drag","dragControls","dragListener","dragConstraints","dragDirectionLock","dragSnapToOrigin","_dragX","_dragY","dragElastic","dragMomentum","dragPropagation","dragTransition","onHoverStart","onHoverEnd","layoutScroll",...qLn,...RLn,...BLn,...KLn]);function yG(d){return HLn.has(d)}let Wsn=d=>!yG(d);function VLn(d){d&&(Wsn=b=>b.startsWith("on")?!yG(b):d(b))}try{VLn(require("@emotion/is-prop-valid").default)}catch{}function GLn(d,b,m){const v={};for(const E in d)(Wsn(E)||m===!0&&yG(E)||!b&&!yG(E)||d.draggable&&E.startsWith("onDrag"))&&(v[E]=d[E]);return v}function nun(d,b,m){return typeof d=="string"?d:Ui.transform(b+m*d)}function zLn(d,b,m){const v=nun(b,d.x,d.width),E=nun(m,d.y,d.height);return`${v} ${E}`}const ULn={offset:"stroke-dashoffset",array:"stroke-dasharray"},WLn={offset:"strokeDashoffset",array:"strokeDasharray"};function XLn(d,b,m=1,v=0,E=!0){d.pathLength=1;const S=E?ULn:WLn;d[S.offset]=Ui.transform(-v);const y=Ui.transform(b),$=Ui.transform(m);d[S.array]=`${y} ${$}`}function gbe(d,{attrX:b,attrY:m,originX:v,originY:E,pathLength:S,pathSpacing:y=1,pathOffset:$=0,...N},B,H,z){if(bbe(d,N,B,z),H){d.style.viewBox&&(d.attrs.viewBox=d.style.viewBox);return}d.attrs=d.style,d.style={};const{attrs:Y,style:Z,dimensions:J}=d;Y.transform&&(J&&(Z.transform=Y.transform),delete Y.transform),J&&(v!==void 0||E!==void 0||Z.transform)&&(Z.transformOrigin=zLn(J,v!==void 0?v:.5,E!==void 0?E:.5)),b!==void 0&&(Y.x=b),m!==void 0&&(Y.y=m),S!==void 0&&XLn(Y,S,y,$,!1)}const Xsn=()=>({...wbe(),attrs:{}}),pbe=d=>typeof d=="string"&&d.toLowerCase()==="svg";function YLn(d,b,m,v){const E=Ee.useMemo(()=>{const S=Xsn();return gbe(S,b,{enableHardwareAcceleration:!1},pbe(v),d.transformTemplate),{...S.attrs,style:{...S.style}}},[b]);if(d.style){const S={};Usn(S,d.style,d),E.style={...S,...E.style}}return E}function QLn(d=!1){return(m,v,E,S,{latestValues:y},$)=>{const B=(dbe(m)?YLn:_Ln)(v,y,$,m),z={...GLn(v,typeof m=="string",d),...B,ref:S};return E&&(z["data-projection-id"]=E),Ee.createElement(m,z)}}const mbe=d=>d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase();function Ysn(d,{style:b,vars:m},v,E){Object.assign(d.style,b,E&&E.getProjectionStyles(v));for(const S in m)d.style.setProperty(S,m[S])}const Qsn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Jsn(d,b,m,v){Ysn(d,b,void 0,v);for(const E in b.attrs)d.setAttribute(Qsn.has(E)?E:mbe(E),b.attrs[E])}function vbe(d){const{style:b}=d,m={};for(const v in b)(Gp(b[v])||Vsn(v,d))&&(m[v]=b[v]);return m}function Zsn(d){const b=vbe(d);for(const m in d)if(Gp(d[m])){const v=m==="x"||m==="y"?"attr"+m.toUpperCase():m;b[v]=d[m]}return b}function ybe(d,b,m,v={},E={}){return typeof b=="function"&&(b=b(m!==void 0?m:d.custom,v,E)),typeof b=="string"&&(b=d.variants&&d.variants[b]),typeof b=="function"&&(b=b(m!==void 0?m:d.custom,v,E)),b}const kG=d=>Array.isArray(d),JLn=d=>!!(d&&typeof d=="object"&&d.mix&&d.toValue),ZLn=d=>kG(d)?d[d.length-1]||0:d;function aG(d){const b=Gp(d)?d.get():d;return JLn(b)?b.toValue():b}function eFn({scrapeMotionValuesFromProps:d,createRenderState:b,onMount:m},v,E,S){const y={latestValues:nFn(v,E,S,d),renderState:b()};return m&&(y.mount=$=>m(v,$,y)),y}const eon=d=>(b,m)=>{const v=Ee.useContext(LG),E=Ee.useContext(FG),S=()=>eFn(d,b,v,E);return m?S():BG(S)};function nFn(d,b,m,v){const E={},S=v(d);for(const Y in S)E[Y]=aG(S[Y]);let{initial:y,animate:$}=d;const N=_G(d),B=Ksn(d);b&&B&&!N&&d.inherit!==!1&&(y===void 0&&(y=b.initial),$===void 0&&($=b.animate));let H=m?m.initial===!1:!1;H=H||y===!1;const z=H?$:y;return z&&typeof z!="boolean"&&!NG(z)&&(Array.isArray(z)?z:[z]).forEach(Z=>{const J=ybe(d,Z);if(!J)return;const{transitionEnd:qe,transition:on,...bn}=J;for(const xn in bn){let Ue=bn[xn];if(Array.isArray(Ue)){const mn=H?Ue.length-1:0;Ue=Ue[mn]}Ue!==null&&(E[xn]=Ue)}for(const xn in qe)E[xn]=qe[xn]}),E}const tFn={useVisualState:eon({scrapeMotionValuesFromProps:Zsn,createRenderState:Xsn,onMount:(d,b,{renderState:m,latestValues:v})=>{try{m.dimensions=typeof b.getBBox=="function"?b.getBBox():b.getBoundingClientRect()}catch{m.dimensions={x:0,y:0,width:0,height:0}}gbe(m,v,{enableHardwareAcceleration:!1},pbe(b.tagName),d.transformTemplate),Jsn(b,m)}})},iFn={useVisualState:eon({scrapeMotionValuesFromProps:vbe,createRenderState:wbe})};function rFn(d,{forwardMotionProps:b=!1},m,v,E){return{...dbe(d)?tFn:iFn,preloadedFeatures:m,useRender:QLn(b),createVisualElement:v,projectionNodeConstructor:E,Component:d}}var ds;(function(d){d.Animate="animate",d.Hover="whileHover",d.Tap="whileTap",d.Drag="whileDrag",d.Focus="whileFocus",d.InView="whileInView",d.Exit="exit"})(ds||(ds={}));function RG(d,b,m,v={passive:!0}){return d.addEventListener(b,m,v),()=>d.removeEventListener(b,m)}function D0e(d,b,m,v){Ee.useEffect(()=>{const E=d.current;if(m&&E)return RG(E,b,m,v)},[d,b,m,v])}function cFn({whileFocus:d,visualElement:b}){const{animationState:m}=b,v=()=>{m&&m.setActive(ds.Focus,!0)},E=()=>{m&&m.setActive(ds.Focus,!1)};D0e(b,"focus",d?v:void 0),D0e(b,"blur",d?E:void 0)}function non(d){return typeof PointerEvent<"u"&&d instanceof PointerEvent?d.pointerType==="mouse":d instanceof MouseEvent}function ton(d){return!!d.touches}function uFn(d){return b=>{const m=b instanceof MouseEvent;(!m||m&&b.button===0)&&d(b)}}const sFn={pageX:0,pageY:0};function oFn(d,b="page"){const v=d.touches[0]||d.changedTouches[0]||sFn;return{x:v[b+"X"],y:v[b+"Y"]}}function fFn(d,b="page"){return{x:d[b+"X"],y:d[b+"Y"]}}function kbe(d,b="page"){return{point:ton(d)?oFn(d,b):fFn(d,b)}}const ion=(d,b=!1)=>{const m=v=>d(v,kbe(v));return b?uFn(m):m},lFn=()=>H9&&window.onpointerdown===null,aFn=()=>H9&&window.ontouchstart===null,hFn=()=>H9&&window.onmousedown===null,dFn={pointerdown:"mousedown",pointermove:"mousemove",pointerup:"mouseup",pointercancel:"mousecancel",pointerover:"mouseover",pointerout:"mouseout",pointerenter:"mouseenter",pointerleave:"mouseleave"},bFn={pointerdown:"touchstart",pointermove:"touchmove",pointerup:"touchend",pointercancel:"touchcancel"};function ron(d){return lFn()?d:aFn()?bFn[d]:hFn()?dFn[d]:d}function jE(d,b,m,v){return RG(d,ron(b),ion(m,b==="pointerdown"),v)}function jG(d,b,m,v){return D0e(d,ron(b),m&&ion(m,b==="pointerdown"),v)}function con(d){let b=null;return()=>{const m=()=>{b=null};return b===null?(b=d,m):!1}}const tun=con("dragHorizontal"),iun=con("dragVertical");function uon(d){let b=!1;if(d==="y")b=iun();else if(d==="x")b=tun();else{const m=tun(),v=iun();m&&v?b=()=>{m(),v()}:(m&&m(),v&&v())}return b}function son(){const d=uon(!0);return d?(d(),!1):!0}function run(d,b,m){return(v,E)=>{!non(v)||son()||(d.animationState&&d.animationState.setActive(ds.Hover,b),m&&m(v,E))}}function wFn({onHoverStart:d,onHoverEnd:b,whileHover:m,visualElement:v}){jG(v,"pointerenter",d||m?run(v,!0,d):void 0,{passive:!d}),jG(v,"pointerleave",b||m?run(v,!1,b):void 0,{passive:!b})}const oon=(d,b)=>b?d===b?!0:oon(d,b.parentElement):!1;function fon(d){return Ee.useEffect(()=>()=>d(),[])}const gFn=(d,b)=>m=>b(d(m)),KG=(...d)=>d.reduce(gFn);function pFn({onTap:d,onTapStart:b,onTapCancel:m,whileTap:v,visualElement:E}){const S=d||b||m||v,y=Ee.useRef(!1),$=Ee.useRef(null),N={passive:!(b||d||m||Z)};function B(){$.current&&$.current(),$.current=null}function H(){return B(),y.current=!1,E.animationState&&E.animationState.setActive(ds.Tap,!1),!son()}function z(J,qe){H()&&(oon(E.current,J.target)?d&&d(J,qe):m&&m(J,qe))}function Y(J,qe){H()&&m&&m(J,qe)}function Z(J,qe){B(),!y.current&&(y.current=!0,$.current=KG(jE(window,"pointerup",z,N),jE(window,"pointercancel",Y,N)),E.animationState&&E.animationState.setActive(ds.Tap,!0),b&&b(J,qe))}jG(E,"pointerdown",S?Z:void 0,N),fon(B)}const mFn="production",vFn=typeof process>"u"||process.env===void 0?mFn:"production",cun=new Set;function yFn(d,b,m){d||cun.has(b)||(console.warn(b),m&&console.warn(m),cun.add(b))}const $0e=new WeakMap,a0e=new WeakMap,kFn=d=>{const b=$0e.get(d.target);b&&b(d)},jFn=d=>{d.forEach(kFn)};function EFn({root:d,...b}){const m=d||document;a0e.has(m)||a0e.set(m,{});const v=a0e.get(m),E=JSON.stringify(b);return v[E]||(v[E]=new IntersectionObserver(jFn,{root:d,...b})),v[E]}function TFn(d,b,m){const v=EFn(b);return $0e.set(d,m),v.observe(d),()=>{$0e.delete(d),v.unobserve(d)}}function CFn({visualElement:d,whileInView:b,onViewportEnter:m,onViewportLeave:v,viewport:E={}}){const S=Ee.useRef({hasEnteredView:!1,isInView:!1});let y=!!(b||m||v);E.once&&S.current.hasEnteredView&&(y=!1),(typeof IntersectionObserver>"u"?PFn:SFn)(y,S.current,d,E)}const MFn={some:0,all:1};function SFn(d,b,m,{root:v,margin:E,amount:S="some",once:y}){Ee.useEffect(()=>{if(!d||!m.current)return;const $={root:v==null?void 0:v.current,rootMargin:E,threshold:typeof S=="number"?S:MFn[S]},N=B=>{const{isIntersecting:H}=B;if(b.isInView===H||(b.isInView=H,y&&!H&&b.hasEnteredView))return;H&&(b.hasEnteredView=!0),m.animationState&&m.animationState.setActive(ds.InView,H);const z=m.getProps(),Y=H?z.onViewportEnter:z.onViewportLeave;Y&&Y(B)};return TFn(m.current,$,N)},[d,v,E,S])}function PFn(d,b,m,{fallback:v=!0}){Ee.useEffect(()=>{!d||!v||(vFn!=="production"&&yFn(!1,"IntersectionObserver not available on this device. whileInView animations will trigger on mount."),requestAnimationFrame(()=>{b.hasEnteredView=!0;const{onViewportEnter:E}=m.getProps();E&&E(null),m.animationState&&m.animationState.setActive(ds.InView,!0)}))},[d])}const $4=d=>b=>(d(b),null),AFn={inView:$4(CFn),tap:$4(pFn),focus:$4(cFn),hover:$4(wFn)};function lon(){const d=Ee.useContext(FG);if(d===null)return[!0,null];const{isPresent:b,onExitComplete:m,register:v}=d,E=Ee.useId();return Ee.useEffect(()=>v(E),[]),!b&&m?[!1,()=>m&&m(E)]:[!0]}function aon(d,b){if(!Array.isArray(b))return!1;const m=b.length;if(m!==d.length)return!1;for(let v=0;v/^\-?\d*\.?\d+$/.test(d),IFn=d=>/^0[^.\s]+$/.test(d),Im={delta:0,timestamp:0},hon=1/60*1e3,OFn=typeof performance<"u"?()=>performance.now():()=>Date.now(),don=typeof window<"u"?d=>window.requestAnimationFrame(d):d=>setTimeout(()=>d(OFn()),hon);function DFn(d){let b=[],m=[],v=0,E=!1,S=!1;const y=new WeakSet,$={schedule:(N,B=!1,H=!1)=>{const z=H&&E,Y=z?b:m;return B&&y.add(N),Y.indexOf(N)===-1&&(Y.push(N),z&&E&&(v=b.length)),N},cancel:N=>{const B=m.indexOf(N);B!==-1&&m.splice(B,1),y.delete(N)},process:N=>{if(E){S=!0;return}if(E=!0,[b,m]=[m,b],m.length=0,v=b.length,v)for(let B=0;B(d[b]=DFn(()=>kO=!0),d),{}),Hd=xO.reduce((d,b)=>{const m=qG[b];return d[b]=(v,E=!1,S=!1)=>(kO||FFn(),m.schedule(v,E,S)),d},{}),F4=xO.reduce((d,b)=>(d[b]=qG[b].cancel,d),{}),h0e=xO.reduce((d,b)=>(d[b]=()=>qG[b].process(Im),d),{}),LFn=d=>qG[d].process(Im),bon=d=>{kO=!1,Im.delta=L0e?hon:Math.max(Math.min(d-Im.timestamp,$Fn),1),Im.timestamp=d,F0e=!0,xO.forEach(LFn),F0e=!1,kO&&(L0e=!1,don(bon))},FFn=()=>{kO=!0,L0e=!0,F0e||don(bon)};function jbe(d,b){d.indexOf(b)===-1&&d.push(b)}function Ebe(d,b){const m=d.indexOf(b);m>-1&&d.splice(m,1)}class Tbe{constructor(){this.subscriptions=[]}add(b){return jbe(this.subscriptions,b),()=>Ebe(this.subscriptions,b)}notify(b,m,v){const E=this.subscriptions.length;if(E)if(E===1)this.subscriptions[0](b,m,v);else for(let S=0;S!isNaN(parseFloat(d));class _Fn{constructor(b,m={}){this.version="7.10.3",this.timeDelta=0,this.lastUpdated=0,this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(v,E=!0)=>{this.prev=this.current,this.current=v;const{delta:S,timestamp:y}=Im;this.lastUpdated!==y&&(this.timeDelta=S,this.lastUpdated=y,Hd.postRender(this.scheduleVelocityCheck)),this.prev!==this.current&&this.events.change&&this.events.change.notify(this.current),this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()),E&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.scheduleVelocityCheck=()=>Hd.postRender(this.velocityCheck),this.velocityCheck=({timestamp:v})=>{v!==this.lastUpdated&&(this.prev=this.current,this.events.velocityChange&&this.events.velocityChange.notify(this.getVelocity()))},this.hasAnimated=!1,this.prev=this.current=b,this.canTrackVelocity=NFn(this.current),this.owner=m.owner}onChange(b){return this.on("change",b)}on(b,m){return this.events[b]||(this.events[b]=new Tbe),this.events[b].add(m)}clearListeners(){for(const b in this.events)this.events[b].clear()}attach(b){this.passiveEffect=b}set(b,m=!0){!m||!this.passiveEffect?this.updateAndNotify(b,m):this.passiveEffect(b,this.updateAndNotify)}setWithVelocity(b,m,v){this.set(m),this.prev=b,this.timeDelta=v}get(){return this.current}getPrevious(){return this.prev}getVelocity(){return this.canTrackVelocity?Cbe(parseFloat(this.current)-parseFloat(this.prev),this.timeDelta):0}start(b){return this.stop(),new Promise(m=>{this.hasAnimated=!0,this.stopAnimation=b(m),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.stopAnimation&&(this.stopAnimation(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.stopAnimation}clearAnimation(){this.stopAnimation=null}destroy(){this.clearListeners(),this.stop()}}function SE(d,b){return new _Fn(d,b)}const Mbe=(d,b)=>m=>!!(PO(m)&&DLn.test(m)&&m.startsWith(d)||b&&Object.prototype.hasOwnProperty.call(m,b)),won=(d,b,m)=>v=>{if(!PO(v))return v;const[E,S,y,$]=v.match(yO);return{[d]:parseFloat(E),[b]:parseFloat(S),[m]:parseFloat(y),alpha:$!==void 0?parseFloat($):1}},BFn=d=>ME(0,255,d),d0e={...G9,transform:d=>Math.round(BFn(d))},B9={test:Mbe("rgb","red"),parse:won("red","green","blue"),transform:({red:d,green:b,blue:m,alpha:v=1})=>"rgba("+d0e.transform(d)+", "+d0e.transform(b)+", "+d0e.transform(m)+", "+hO(aO.transform(v))+")"};function RFn(d){let b="",m="",v="",E="";return d.length>5?(b=d.substring(1,3),m=d.substring(3,5),v=d.substring(5,7),E=d.substring(7,9)):(b=d.substring(1,2),m=d.substring(2,3),v=d.substring(3,4),E=d.substring(4,5),b+=b,m+=m,v+=v,E+=E),{red:parseInt(b,16),green:parseInt(m,16),blue:parseInt(v,16),alpha:E?parseInt(E,16)/255:1}}const N0e={test:Mbe("#"),parse:RFn,transform:B9.transform},mE={test:Mbe("hsl","hue"),parse:won("hue","saturation","lightness"),transform:({hue:d,saturation:b,lightness:m,alpha:v=1})=>"hsla("+Math.round(d)+", "+Vp.transform(hO(b))+", "+Vp.transform(hO(m))+", "+hO(aO.transform(v))+")"},Th={test:d=>B9.test(d)||N0e.test(d)||mE.test(d),parse:d=>B9.test(d)?B9.parse(d):mE.test(d)?mE.parse(d):N0e.parse(d),transform:d=>PO(d)?d:d.hasOwnProperty("red")?B9.transform(d):mE.transform(d)},gon="${c}",pon="${n}";function KFn(d){var b,m;return isNaN(d)&&PO(d)&&(((b=d.match(yO))===null||b===void 0?void 0:b.length)||0)+(((m=d.match(O0e))===null||m===void 0?void 0:m.length)||0)>0}function EG(d){typeof d=="number"&&(d=`${d}`);const b=[];let m=0,v=0;const E=d.match(O0e);E&&(m=E.length,d=d.replace(O0e,gon),b.push(...E.map(Th.parse)));const S=d.match(yO);return S&&(v=S.length,d=d.replace(yO,pon),b.push(...S.map(G9.parse))),{values:b,numColors:m,numNumbers:v,tokenised:d}}function mon(d){return EG(d).values}function von(d){const{values:b,numColors:m,tokenised:v}=EG(d),E=b.length;return S=>{let y=v;for(let $=0;$typeof d=="number"?0:d;function HFn(d){const b=mon(d);return von(d)(b.map(qFn))}const N4={test:KFn,parse:mon,createTransformer:von,getAnimatableNone:HFn},VFn=new Set(["brightness","contrast","saturate","opacity"]);function GFn(d){const[b,m]=d.slice(0,-1).split("(");if(b==="drop-shadow")return d;const[v]=m.match(yO)||[];if(!v)return d;const E=m.replace(v,"");let S=VFn.has(b)?1:0;return v!==m&&(S*=100),b+"("+S+E+")"}const zFn=/([a-z-]*)\(.*?\)/g,_0e={...N4,getAnimatableNone:d=>{const b=d.match(zFn);return b?b.map(GFn).join(" "):d}},UFn={...zsn,color:Th,backgroundColor:Th,outlineColor:Th,fill:Th,stroke:Th,borderColor:Th,borderTopColor:Th,borderRightColor:Th,borderBottomColor:Th,borderLeftColor:Th,filter:_0e,WebkitFilter:_0e},Sbe=d=>UFn[d];function Pbe(d,b){var m;let v=Sbe(d);return v!==_0e&&(v=N4),(m=v.getAnimatableNone)===null||m===void 0?void 0:m.call(v,b)}const yon=d=>b=>b.test(d),WFn={test:d=>d==="auto",parse:d=>d},kon=[G9,Ui,Vp,I4,LLn,$Ln,WFn],nO=d=>kon.find(yon(d)),XFn=[...kon,Th,N4],YFn=d=>XFn.find(yon(d));function QFn(d){const b={};return d.values.forEach((m,v)=>b[v]=m.get()),b}function JFn(d){const b={};return d.values.forEach((m,v)=>b[v]=m.getVelocity()),b}function HG(d,b,m){const v=d.getProps();return ybe(v,b,m!==void 0?m:v.custom,QFn(d),JFn(d))}function ZFn(d,b,m){d.hasValue(b)?d.getValue(b).set(m):d.addValue(b,SE(m))}function Abe(d,b){const m=HG(d,b);let{transitionEnd:v={},transition:E={},...S}=m?d.makeTargetAnimatable(m,!1):{};S={...S,...v};for(const y in S){const $=ZLn(S[y]);ZFn(d,y,$)}}function B0e(d,b){[...b].reverse().forEach(v=>{var E;const S=d.getVariant(v);S&&Abe(d,S),(E=d.variantChildren)===null||E===void 0||E.forEach(y=>{B0e(y,b)})})}function eNn(d,b){if(Array.isArray(b))return B0e(d,b);if(typeof b=="string")return B0e(d,[b]);Abe(d,b)}function nNn(d,b,m){var v,E;const S=Object.keys(b).filter($=>!d.hasValue($)),y=S.length;if(y)for(let $=0;$`${d}: ${b}`;function cNn(d,b){const{MotionAppearAnimations:m}=window,v=rNn(d,V9.has(b)?"transform":b),E=m&&m.get(v);return E?(Hd.render(()=>{try{E.cancel(),m.delete(v)}catch{}}),E.currentTime||0):0}const uNn="framerAppearId",sNn="data-"+mbe(uNn),hG=d=>d*1e3,oNn={current:!1},xbe=d=>b=>b<=.5?d(2*b)/2:(2-d(2*(1-b)))/2,Ibe=d=>b=>1-d(1-b),Obe=d=>d*d,fNn=Ibe(Obe),Dbe=xbe(Obe),Bo=(d,b,m)=>-m*d+m*b+d;function b0e(d,b,m){return m<0&&(m+=1),m>1&&(m-=1),m<1/6?d+(b-d)*6*m:m<1/2?b:m<2/3?d+(b-d)*(2/3-m)*6:d}function lNn({hue:d,saturation:b,lightness:m,alpha:v}){d/=360,b/=100,m/=100;let E=0,S=0,y=0;if(!b)E=S=y=m;else{const $=m<.5?m*(1+b):m+b-m*b,N=2*m-$;E=b0e(N,$,d+1/3),S=b0e(N,$,d),y=b0e(N,$,d-1/3)}return{red:Math.round(E*255),green:Math.round(S*255),blue:Math.round(y*255),alpha:v}}const w0e=(d,b,m)=>{const v=d*d;return Math.sqrt(Math.max(0,m*(b*b-v)+v))},aNn=[N0e,B9,mE],hNn=d=>aNn.find(b=>b.test(d));function uun(d){const b=hNn(d);let m=b.parse(d);return b===mE&&(m=lNn(m)),m}const jon=(d,b)=>{const m=uun(d),v=uun(b),E={...m};return S=>(E.red=w0e(m.red,v.red,S),E.green=w0e(m.green,v.green,S),E.blue=w0e(m.blue,v.blue,S),E.alpha=Bo(m.alpha,v.alpha,S),B9.transform(E))};function Eon(d,b){return typeof d=="number"?m=>Bo(d,b,m):Th.test(d)?jon(d,b):Con(d,b)}const Ton=(d,b)=>{const m=[...d],v=m.length,E=d.map((S,y)=>Eon(S,b[y]));return S=>{for(let y=0;y{const m={...d,...b},v={};for(const E in m)d[E]!==void 0&&b[E]!==void 0&&(v[E]=Eon(d[E],b[E]));return E=>{for(const S in v)m[S]=v[S](E);return m}},Con=(d,b)=>{const m=N4.createTransformer(b),v=EG(d),E=EG(b);return v.numColors===E.numColors&&v.numNumbers>=E.numNumbers?KG(Ton(v.values,E.values),m):y=>`${y>0?b:d}`},CG=(d,b,m)=>{const v=b-d;return v===0?1:(m-d)/v},sun=(d,b)=>m=>Bo(d,b,m);function bNn(d){return typeof d=="number"?sun:typeof d=="string"?Th.test(d)?jon:Con:Array.isArray(d)?Ton:typeof d=="object"?dNn:sun}function wNn(d,b,m){const v=[],E=m||bNn(d[0]),S=d.length-1;for(let y=0;yd[S-1]&&(d=[...d].reverse(),b=[...b].reverse());const y=wNn(b,v,E),$=y.length,N=B=>{let H=0;if($>1)for(;HN(ME(d[0],d[S-1],B)):N}const $be=d=>d,Son=(d,b,m)=>(((1-3*m+3*b)*d+(3*m-6*b))*d+3*b)*d,gNn=1e-7,pNn=12;function mNn(d,b,m,v,E){let S,y,$=0;do y=b+(m-b)/2,S=Son(y,v,E)-d,S>0?m=y:b=y;while(Math.abs(S)>gNn&&++$mNn(S,0,1,d,m);return S=>S===0||S===1?S:Son(E(S),b,v)}const Aon=d=>1-Math.sin(Math.acos(d)),Lbe=Ibe(Aon),vNn=xbe(Lbe),xon=Pon(.33,1.53,.69,.99),Fbe=Ibe(xon),yNn=xbe(Fbe),kNn=d=>(d*=2)<1?.5*Fbe(d):.5*(2-Math.pow(2,-10*(d-1))),jNn={linear:$be,easeIn:Obe,easeInOut:Dbe,easeOut:fNn,circIn:Aon,circInOut:vNn,circOut:Lbe,backIn:Fbe,backInOut:yNn,backOut:xon,anticipate:kNn},oun=d=>{if(Array.isArray(d)){wG(d.length===4);const[b,m,v,E]=d;return Pon(b,m,v,E)}else if(typeof d=="string")return jNn[d];return d},ENn=d=>Array.isArray(d)&&typeof d[0]!="number";function TNn(d,b){return d.map(()=>b||Dbe).splice(0,d.length-1)}function CNn(d){const b=d.length;return d.map((m,v)=>v!==0?v/(b-1):0)}function MNn(d,b){return d.map(m=>m*b)}function MG({keyframes:d,ease:b=Dbe,times:m,duration:v=300}){d=[...d];const E=MG[0],S=ENn(b)?b.map(oun):oun(b),y={done:!1,value:E},$=MNn(m&&m.length===MG.length?m:CNn(d),v);function N(){return Mon($,d,{ease:Array.isArray(S)?S:TNn(d,S)})}let B=N();return{next:H=>(y.value=B(H),y.done=H>=v,y),flipTarget:()=>{d.reverse(),B=N()}}}const g0e=.001,SNn=.01,fun=10,PNn=.05,ANn=1;function xNn({duration:d=800,bounce:b=.25,velocity:m=0,mass:v=1}){let E,S;r$n(d<=fun*1e3);let y=1-b;y=ME(PNn,ANn,y),d=ME(SNn,fun,d/1e3),y<1?(E=B=>{const H=B*y,z=H*d,Y=H-m,Z=R0e(B,y),J=Math.exp(-z);return g0e-Y/Z*J},S=B=>{const z=B*y*d,Y=z*m+m,Z=Math.pow(y,2)*Math.pow(B,2)*d,J=Math.exp(-z),qe=R0e(Math.pow(B,2),y);return(-E(B)+g0e>0?-1:1)*((Y-Z)*J)/qe}):(E=B=>{const H=Math.exp(-B*d),z=(B-m)*d+1;return-g0e+H*z},S=B=>{const H=Math.exp(-B*d),z=(m-B)*(d*d);return H*z});const $=5/d,N=ONn(E,S,$);if(d=d*1e3,isNaN(N))return{stiffness:100,damping:10,duration:d};{const B=Math.pow(N,2)*v;return{stiffness:B,damping:y*2*Math.sqrt(v*B),duration:d}}}const INn=12;function ONn(d,b,m){let v=m;for(let E=1;Ed[m]!==void 0)}function LNn(d){let b={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...d};if(!lun(d,$Nn)&&lun(d,DNn)){const m=xNn(d);b={...b,...m,velocity:0,mass:1},b.isResolvedFromDuration=!0}return b}const FNn=5;function Ion({keyframes:d,restSpeed:b=2,restDelta:m=.01,...v}){let E=d[0],S=d[d.length-1];const y={done:!1,value:E},{stiffness:$,damping:N,mass:B,velocity:H,duration:z,isResolvedFromDuration:Y}=LNn(v);let Z=NNn,J=H?-(H/1e3):0;const qe=N/(2*Math.sqrt($*B));function on(){const bn=S-E,xn=Math.sqrt($/B)/1e3;if(m===void 0&&(m=Math.min(Math.abs(S-E)/100,.4)),qe<1){const Ue=R0e(xn,qe);Z=mn=>{const bt=Math.exp(-qe*xn*mn);return S-bt*((J+qe*xn*bn)/Ue*Math.sin(Ue*mn)+bn*Math.cos(Ue*mn))}}else if(qe===1)Z=Ue=>S-Math.exp(-xn*Ue)*(bn+(J+xn*bn)*Ue);else{const Ue=xn*Math.sqrt(qe*qe-1);Z=mn=>{const bt=Math.exp(-qe*xn*mn),_t=Math.min(Ue*mn,300);return S-bt*((J+qe*xn*bn)*Math.sinh(_t)+Ue*bn*Math.cosh(_t))/Ue}}}return on(),{next:bn=>{const xn=Z(bn);if(Y)y.done=bn>=z;else{let Ue=J;if(bn!==0)if(qe<1){const _t=Math.max(0,bn-FNn);Ue=Cbe(xn-Z(_t),bn-_t)}else Ue=0;const mn=Math.abs(Ue)<=b,bt=Math.abs(S-xn)<=m;y.done=mn&&bt}return y.value=y.done?S:xn,y},flipTarget:()=>{J=-J,[E,S]=[S,E],on()}}}Ion.needsInterpolation=(d,b)=>typeof d=="string"||typeof b=="string";const NNn=d=>0;function _Nn({keyframes:d=[0],velocity:b=0,power:m=.8,timeConstant:v=350,restDelta:E=.5,modifyTarget:S}){const y=d[0],$={done:!1,value:y};let N=m*b;const B=y+N,H=S===void 0?B:S(B);return H!==B&&(N=H-y),{next:z=>{const Y=-N*Math.exp(-z/v);return $.done=!(Y>E||Y<-E),$.value=$.done?H:H+Y,$},flipTarget:()=>{}}}const BNn={decay:_Nn,keyframes:MG,tween:MG,spring:Ion};function Oon(d,b,m=0){return d-b-m}function RNn(d,b=0,m=0,v=!0){return v?Oon(b+-d,b,m):b-(d-b)+m}function KNn(d,b,m,v){return v?d>=b+m:d<=-m}const qNn=d=>{const b=({delta:m})=>d(m);return{start:()=>Hd.update(b,!0),stop:()=>F4.update(b)}};function SG({duration:d,driver:b=qNn,elapsed:m=0,repeat:v=0,repeatType:E="loop",repeatDelay:S=0,keyframes:y,autoplay:$=!0,onPlay:N,onStop:B,onComplete:H,onRepeat:z,onUpdate:Y,type:Z="keyframes",...J}){var qe,on;let bn,xn=0,Ue=d,mn,bt=!1,_t=!0,Mi;const li=BNn[y.length>2?"keyframes":Z],sc=y[0],Zi=y[y.length-1];!((on=(qe=li).needsInterpolation)===null||on===void 0)&&on.call(qe,sc,Zi)&&(Mi=Mon([0,100],[sc,Zi],{clamp:!1}),y=[0,100]);const fr=li({...J,duration:d,keyframes:y});function Mc(){xn++,E==="reverse"?(_t=xn%2===0,m=RNn(m,Ue,S,_t)):(m=Oon(m,Ue,S),E==="mirror"&&fr.flipTarget()),bt=!1,z&&z()}function lr(){bn.stop(),H&&H()}function er(wr){if(_t||(wr=-wr),m+=wr,!bt){const ai=fr.next(Math.max(0,m));mn=ai.value,Mi&&(mn=Mi(mn)),bt=_t?ai.done:m<=0}Y&&Y(mn),bt&&(xn===0&&(Ue=Ue!==void 0?Ue:m),xn{B&&B(),bn.stop()},sample:wr=>fr.next(Math.max(0,wr))}}function HNn(d){return!d||Array.isArray(d)||typeof d=="string"&&Don[d]}const oO=([d,b,m,v])=>`cubic-bezier(${d}, ${b}, ${m}, ${v})`,Don={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:oO([0,.65,.55,1]),circOut:oO([.55,0,1,.45]),backIn:oO([.31,.01,.66,-.59]),backOut:oO([.33,1.53,.69,.99])};function VNn(d){if(d)return Array.isArray(d)?oO(d):Don[d]}function GNn(d,b,m,{delay:v=0,duration:E,repeat:S=0,repeatType:y="loop",ease:$,times:N}={}){return d.animate({[b]:m,offset:N},{delay:v,duration:E,easing:VNn($),fill:"both",iterations:S+1,direction:y==="reverse"?"alternate":"normal"})}const oG=10;function zNn(d,b,{onUpdate:m,onComplete:v,...E}){let{keyframes:S,duration:y=.3,elapsed:$=0,ease:N}=E;if(E.type==="spring"||!HNn(E.ease)){const H=SG(E);let z={done:!1,value:S[0]};const Y=[];let Z=0;for(;!z.done;)z=H.sample(Z),Y.push(z.value),Z+=oG;S=Y,y=Z-oG,N="linear"}const B=GNn(d.owner.current,b,S,{...E,delay:-$,duration:y,ease:N});return B.onfinish=()=>{d.set(S[S.length-1]),v&&v()},()=>{const{currentTime:H}=B;if(H){const z=SG(E);d.setWithVelocity(z.sample(H-oG).value,z.sample(H).value,oG)}Hd.update(()=>B.cancel())}}function $on(d,b){const m=performance.now(),v=({timestamp:E})=>{const S=E-m;S>=b&&(F4.read(v),d(S-b))};return Hd.read(v,!0),()=>F4.read(v)}function UNn({keyframes:d,elapsed:b,onUpdate:m,onComplete:v}){const E=()=>(m&&m(d[d.length-1]),v&&v(),()=>{});return b?$on(E,-b):E()}function WNn({keyframes:d,velocity:b=0,min:m,max:v,power:E=.8,timeConstant:S=750,bounceStiffness:y=500,bounceDamping:$=10,restDelta:N=1,modifyTarget:B,driver:H,onUpdate:z,onComplete:Y,onStop:Z}){const J=d[0];let qe;function on(mn){return m!==void 0&&mnv}function bn(mn){return m===void 0?v:v===void 0||Math.abs(m-mn){var _t;z==null||z(bt),(_t=mn.onUpdate)===null||_t===void 0||_t.call(mn,bt)},onComplete:Y,onStop:Z})}function Ue(mn){xn({type:"spring",stiffness:y,damping:$,restDelta:N,...mn})}if(on(J))Ue({velocity:b,keyframes:[J,bn(J)]});else{let mn=E*b+J;typeof B<"u"&&(mn=B(mn));const bt=bn(mn),_t=bt===m?-1:1;let Mi,li;const sc=Zi=>{Mi=li,li=Zi,b=Cbe(Zi-Mi,Im.delta),(_t===1&&Zi>bt||_t===-1&&Ziqe==null?void 0:qe.stop()}}const $9=()=>({type:"spring",stiffness:500,damping:25,restSpeed:10}),fG=d=>({type:"spring",stiffness:550,damping:d===0?2*Math.sqrt(550):30,restSpeed:10}),p0e=()=>({type:"keyframes",ease:"linear",duration:.3}),XNn={type:"keyframes",duration:.8},aun={x:$9,y:$9,z:$9,rotate:$9,rotateX:$9,rotateY:$9,rotateZ:$9,scaleX:fG,scaleY:fG,scale:fG,opacity:p0e,backgroundColor:p0e,color:p0e,default:fG},YNn=(d,{keyframes:b})=>b.length>2?XNn:(aun[d]||aun.default)(b[1]),K0e=(d,b)=>d==="zIndex"?!1:!!(typeof b=="number"||Array.isArray(b)||typeof b=="string"&&N4.test(b)&&!b.startsWith("url("));function QNn({when:d,delay:b,delayChildren:m,staggerChildren:v,staggerDirection:E,repeat:S,repeatType:y,repeatDelay:$,from:N,...B}){return!!Object.keys(B).length}function hun(d){return d===0||typeof d=="string"&&parseFloat(d)===0&&d.indexOf(" ")===-1}function dun(d){return typeof d=="number"?0:Pbe("",d)}function Lon(d,b){return d[b]||d.default||d}function JNn(d,b,m,v){const E=K0e(b,m);let S=v.from!==void 0?v.from:d.get();return S==="none"&&E&&typeof m=="string"?S=Pbe(b,m):hun(S)&&typeof m=="string"?S=dun(m):!Array.isArray(m)&&hun(m)&&typeof S=="string"&&(m=dun(S)),Array.isArray(m)?(m[0]===null&&(m[0]=S),m):[S,m]}const bun={waapi:()=>Object.hasOwnProperty.call(Element.prototype,"animate")},m0e={},Fon={};for(const d in bun)Fon[d]=()=>(m0e[d]===void 0&&(m0e[d]=bun[d]()),m0e[d]);const ZNn=new Set(["opacity"]),Nbe=(d,b,m,v={})=>E=>{const S=Lon(v,d)||{},y=S.delay||v.delay||0;let{elapsed:$=0}=v;$=$-hG(y);const N=JNn(b,d,m,S),B=N[0],H=N[N.length-1],z=K0e(d,B),Y=K0e(d,H);let Z={keyframes:N,velocity:b.getVelocity(),...S,elapsed:$,onUpdate:bn=>{b.set(bn),S.onUpdate&&S.onUpdate(bn)},onComplete:()=>{E(),S.onComplete&&S.onComplete()}};if(!z||!Y||oNn.current||S.type===!1)return UNn(Z);if(S.type==="inertia"){const bn=WNn(Z);return()=>bn.stop()}QNn(S)||(Z={...Z,...YNn(d,Z)}),Z.duration&&(Z.duration=hG(Z.duration)),Z.repeatDelay&&(Z.repeatDelay=hG(Z.repeatDelay));const J=b.owner,qe=J&&J.current;if(Fon.waapi()&&ZNn.has(d)&&!Z.repeatDelay&&Z.repeatType!=="mirror"&&Z.damping!==0&&J&&qe instanceof HTMLElement&&!J.getProps().onUpdate)return zNn(b,d,Z);{const bn=SG(Z);return()=>bn.stop()}};function Non(d,b,m={}){d.notify("AnimationStart",b);let v;if(Array.isArray(b)){const E=b.map(S=>q0e(d,S,m));v=Promise.all(E)}else if(typeof b=="string")v=q0e(d,b,m);else{const E=typeof b=="function"?HG(d,b,m.custom):b;v=_on(d,E,m)}return v.then(()=>d.notify("AnimationComplete",b))}function q0e(d,b,m={}){var v;const E=HG(d,b,m.custom);let{transition:S=d.getDefaultTransition()||{}}=E||{};m.transitionOverride&&(S=m.transitionOverride);const y=E?()=>_on(d,E,m):()=>Promise.resolve(),$=!((v=d.variantChildren)===null||v===void 0)&&v.size?(B=0)=>{const{delayChildren:H=0,staggerChildren:z,staggerDirection:Y}=S;return e_n(d,b,H+B,z,Y,m)}:()=>Promise.resolve(),{when:N}=S;if(N){const[B,H]=N==="beforeChildren"?[y,$]:[$,y];return B().then(H)}else return Promise.all([y(),$(m.delay)])}function _on(d,b,{delay:m=0,transitionOverride:v,type:E}={}){var S;let{transition:y=d.getDefaultTransition(),transitionEnd:$,...N}=d.makeTargetAnimatable(b);const B=d.getValue("willChange");v&&(y=v);const H=[],z=E&&((S=d.animationState)===null||S===void 0?void 0:S.getState()[E]);for(const Y in N){const Z=d.getValue(Y),J=N[Y];if(!Z||J===void 0||z&&i_n(z,Y))continue;let qe={delay:m,elapsed:0,...y};if(d.shouldReduceMotion&&V9.has(Y)&&(qe={...qe,type:!1,delay:0}),!Z.hasAnimated){const bn=d.getProps()[sNn];bn&&(qe.elapsed=cNn(bn,Y))}let on=Z.start(Nbe(Y,Z,J,qe));TG(B)&&(B.add(Y),on=on.then(()=>B.remove(Y))),H.push(on)}return Promise.all(H).then(()=>{$&&Abe(d,$)})}function e_n(d,b,m=0,v=0,E=1,S){const y=[],$=(d.variantChildren.size-1)*v,N=E===1?(B=0)=>B*v:(B=0)=>$-B*v;return Array.from(d.variantChildren).sort(t_n).forEach((B,H)=>{y.push(q0e(B,b,{...S,delay:m+N(H)}).then(()=>B.notify("AnimationComplete",b)))}),Promise.all(y)}function n_n(d){d.values.forEach(b=>b.stop())}function t_n(d,b){return d.sortNodePosition(b)}function i_n({protectedKeys:d,needsAnimating:b},m){const v=d.hasOwnProperty(m)&&b[m]!==!0;return b[m]=!1,v}const _be=[ds.Animate,ds.InView,ds.Focus,ds.Hover,ds.Tap,ds.Drag,ds.Exit],r_n=[..._be].reverse(),c_n=_be.length;function u_n(d){return b=>Promise.all(b.map(({animation:m,options:v})=>Non(d,m,v)))}function s_n(d){let b=u_n(d);const m=f_n();let v=!0;const E=(N,B)=>{const H=HG(d,B);if(H){const{transition:z,transitionEnd:Y,...Z}=H;N={...N,...Z,...Y}}return N};function S(N){b=N(d)}function y(N,B){const H=d.getProps(),z=d.getVariantContext(!0)||{},Y=[],Z=new Set;let J={},qe=1/0;for(let bn=0;bnqe&&bt;const Zi=Array.isArray(mn)?mn:[mn];let fr=Zi.reduce(E,{});_t===!1&&(fr={});const{prevResolvedValues:Mc={}}=Ue,lr={...Mc,...fr},er=nr=>{sc=!0,Z.delete(nr),Ue.needsAnimating[nr]=!0};for(const nr in lr){const wr=fr[nr],ai=Mc[nr];J.hasOwnProperty(nr)||(wr!==ai?kG(wr)&&kG(ai)?!aon(wr,ai)||li?er(nr):Ue.protectedKeys[nr]=!0:wr!==void 0?er(nr):Z.add(nr):wr!==void 0&&Z.has(nr)?er(nr):Ue.protectedKeys[nr]=!0)}Ue.prevProp=mn,Ue.prevResolvedValues=fr,Ue.isActive&&(J={...J,...fr}),v&&d.blockInitialAnimation&&(sc=!1),sc&&!Mi&&Y.push(...Zi.map(nr=>({animation:nr,options:{type:xn,...N}})))}if(Z.size){const bn={};Z.forEach(xn=>{const Ue=d.getBaseTarget(xn);Ue!==void 0&&(bn[xn]=Ue)}),Y.push({animation:bn})}let on=!!Y.length;return v&&H.initial===!1&&!d.manuallyAnimateOnMount&&(on=!1),v=!1,on?b(Y):Promise.resolve()}function $(N,B,H){var z;if(m[N].isActive===B)return Promise.resolve();(z=d.variantChildren)===null||z===void 0||z.forEach(Z=>{var J;return(J=Z.animationState)===null||J===void 0?void 0:J.setActive(N,B)}),m[N].isActive=B;const Y=y(H,N);for(const Z in m)m[Z].protectedKeys={};return Y}return{animateChanges:y,setActive:$,setAnimateFunction:S,getState:()=>m}}function o_n(d,b){return typeof b=="string"?b!==d:Array.isArray(b)?!aon(b,d):!1}function L9(d=!1){return{isActive:d,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function f_n(){return{[ds.Animate]:L9(!0),[ds.InView]:L9(),[ds.Hover]:L9(),[ds.Tap]:L9(),[ds.Drag]:L9(),[ds.Focus]:L9(),[ds.Exit]:L9()}}const l_n={animation:$4(({visualElement:d,animate:b})=>{d.animationState||(d.animationState=s_n(d)),NG(b)&&Ee.useEffect(()=>b.subscribe(d),[b])}),exit:$4(d=>{const{custom:b,visualElement:m}=d,[v,E]=lon(),S=Ee.useContext(FG);Ee.useEffect(()=>{m.isPresent=v;const y=m.animationState&&m.animationState.setActive(ds.Exit,!v,{custom:S&&S.custom||b});y&&!v&&y.then(E)},[v])})},wun=(d,b)=>Math.abs(d-b);function a_n(d,b){const m=wun(d.x,b.x),v=wun(d.y,b.y);return Math.sqrt(m**2+v**2)}class Bon{constructor(b,m,{transformPagePoint:v}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const B=y0e(this.lastMoveEventInfo,this.history),H=this.startEvent!==null,z=a_n(B.offset,{x:0,y:0})>=3;if(!H&&!z)return;const{point:Y}=B,{timestamp:Z}=Im;this.history.push({...Y,timestamp:Z});const{onStart:J,onMove:qe}=this.handlers;H||(J&&J(this.lastMoveEvent,B),this.startEvent=this.lastMoveEvent),qe&&qe(this.lastMoveEvent,B)},this.handlePointerMove=(B,H)=>{if(this.lastMoveEvent=B,this.lastMoveEventInfo=v0e(H,this.transformPagePoint),non(B)&&B.buttons===0){this.handlePointerUp(B,H);return}Hd.update(this.updatePoint,!0)},this.handlePointerUp=(B,H)=>{this.end();const{onEnd:z,onSessionEnd:Y}=this.handlers,Z=y0e(v0e(H,this.transformPagePoint),this.history);this.startEvent&&z&&z(B,Z),Y&&Y(B,Z)},ton(b)&&b.touches.length>1)return;this.handlers=m,this.transformPagePoint=v;const E=kbe(b),S=v0e(E,this.transformPagePoint),{point:y}=S,{timestamp:$}=Im;this.history=[{...y,timestamp:$}];const{onSessionStart:N}=m;N&&N(b,y0e(S,this.history)),this.removeListeners=KG(jE(window,"pointermove",this.handlePointerMove),jE(window,"pointerup",this.handlePointerUp),jE(window,"pointercancel",this.handlePointerUp))}updateHandlers(b){this.handlers=b}end(){this.removeListeners&&this.removeListeners(),F4.update(this.updatePoint)}}function v0e(d,b){return b?{point:b(d.point)}:d}function gun(d,b){return{x:d.x-b.x,y:d.y-b.y}}function y0e({point:d},b){return{point:d,delta:gun(d,Ron(b)),offset:gun(d,h_n(b)),velocity:d_n(b,.1)}}function h_n(d){return d[0]}function Ron(d){return d[d.length-1]}function d_n(d,b){if(d.length<2)return{x:0,y:0};let m=d.length-1,v=null;const E=Ron(d);for(;m>=0&&(v=d[m],!(E.timestamp-v.timestamp>hG(b)));)m--;if(!v)return{x:0,y:0};const S=(E.timestamp-v.timestamp)/1e3;if(S===0)return{x:0,y:0};const y={x:(E.x-v.x)/S,y:(E.y-v.y)/S};return y.x===1/0&&(y.x=0),y.y===1/0&&(y.y=0),y}function Vd(d){return d.max-d.min}function H0e(d,b=0,m=.01){return Math.abs(d-b)<=m}function pun(d,b,m,v=.5){d.origin=v,d.originPoint=Bo(b.min,b.max,d.origin),d.scale=Vd(m)/Vd(b),(H0e(d.scale,1,1e-4)||isNaN(d.scale))&&(d.scale=1),d.translate=Bo(m.min,m.max,d.origin)-d.originPoint,(H0e(d.translate)||isNaN(d.translate))&&(d.translate=0)}function dO(d,b,m,v){pun(d.x,b.x,m.x,v==null?void 0:v.originX),pun(d.y,b.y,m.y,v==null?void 0:v.originY)}function mun(d,b,m){d.min=m.min+b.min,d.max=d.min+Vd(b)}function b_n(d,b,m){mun(d.x,b.x,m.x),mun(d.y,b.y,m.y)}function vun(d,b,m){d.min=b.min-m.min,d.max=d.min+Vd(b)}function bO(d,b,m){vun(d.x,b.x,m.x),vun(d.y,b.y,m.y)}function w_n(d,{min:b,max:m},v){return b!==void 0&&dm&&(d=v?Bo(m,d,v.max):Math.min(d,m)),d}function yun(d,b,m){return{min:b!==void 0?d.min+b:void 0,max:m!==void 0?d.max+m-(d.max-d.min):void 0}}function g_n(d,{top:b,left:m,bottom:v,right:E}){return{x:yun(d.x,m,E),y:yun(d.y,b,v)}}function kun(d,b){let m=b.min-d.min,v=b.max-d.max;return b.max-b.minv?m=CG(b.min,b.max-v,d.min):v>E&&(m=CG(d.min,d.max-E,b.min)),ME(0,1,m)}function v_n(d,b){const m={};return b.min!==void 0&&(m.min=b.min-d.min),b.max!==void 0&&(m.max=b.max-d.min),m}const V0e=.35;function y_n(d=V0e){return d===!1?d=0:d===!0&&(d=V0e),{x:jun(d,"left","right"),y:jun(d,"top","bottom")}}function jun(d,b,m){return{min:Eun(d,b),max:Eun(d,m)}}function Eun(d,b){return typeof d=="number"?d:d[b]||0}const Tun=()=>({translate:0,scale:1,origin:0,originPoint:0}),wO=()=>({x:Tun(),y:Tun()}),Cun=()=>({min:0,max:0}),cl=()=>({x:Cun(),y:Cun()});function Hp(d){return[d("x"),d("y")]}function Kon({top:d,left:b,right:m,bottom:v}){return{x:{min:b,max:m},y:{min:d,max:v}}}function k_n({x:d,y:b}){return{top:b.min,right:d.max,bottom:b.max,left:d.min}}function j_n(d,b){if(!b)return d;const m=b({x:d.left,y:d.top}),v=b({x:d.right,y:d.bottom});return{top:m.y,left:m.x,bottom:v.y,right:v.x}}function k0e(d){return d===void 0||d===1}function G0e({scale:d,scaleX:b,scaleY:m}){return!k0e(d)||!k0e(b)||!k0e(m)}function N9(d){return G0e(d)||qon(d)||d.z||d.rotate||d.rotateX||d.rotateY}function qon(d){return Mun(d.x)||Mun(d.y)}function Mun(d){return d&&d!=="0%"}function PG(d,b,m){const v=d-m,E=b*v;return m+E}function Sun(d,b,m,v,E){return E!==void 0&&(d=PG(d,E,v)),PG(d,m,v)+b}function z0e(d,b=0,m=1,v,E){d.min=Sun(d.min,b,m,v,E),d.max=Sun(d.max,b,m,v,E)}function Hon(d,{x:b,y:m}){z0e(d.x,b.translate,b.scale,b.originPoint),z0e(d.y,m.translate,m.scale,m.originPoint)}function E_n(d,b,m,v=!1){var E,S;const y=m.length;if(!y)return;b.x=b.y=1;let $,N;for(let B=0;B1.0000000000001||d<.999999999999?d:1}function O4(d,b){d.min=d.min+b,d.max=d.max+b}function Aun(d,b,[m,v,E]){const S=b[E]!==void 0?b[E]:.5,y=Bo(d.min,d.max,S);z0e(d,b[m],b[v],y,b.scale)}const T_n=["x","scaleX","originX"],C_n=["y","scaleY","originY"];function vE(d,b){Aun(d.x,b,T_n),Aun(d.y,b,C_n)}function Von(d,b){return Kon(j_n(d.getBoundingClientRect(),b))}function M_n(d,b,m){const v=Von(d,m),{scroll:E}=b;return E&&(O4(v.x,E.offset.x),O4(v.y,E.offset.y)),v}const S_n=new WeakMap;class P_n{constructor(b){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=cl(),this.visualElement=b}start(b,{snapToCursor:m=!1}={}){if(this.visualElement.isPresent===!1)return;const v=$=>{this.stopAnimation(),m&&this.snapToCursor(kbe($,"page").point)},E=($,N)=>{var B;const{drag:H,dragPropagation:z,onDragStart:Y}=this.getProps();H&&!z&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=uon(H),!this.openGlobalLock)||(this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Hp(Z=>{var J,qe;let on=this.getAxisMotionValue(Z).get()||0;if(Vp.test(on)){const bn=(qe=(J=this.visualElement.projection)===null||J===void 0?void 0:J.layout)===null||qe===void 0?void 0:qe.layoutBox[Z];bn&&(on=Vd(bn)*(parseFloat(on)/100))}this.originPoint[Z]=on}),Y==null||Y($,N),(B=this.visualElement.animationState)===null||B===void 0||B.setActive(ds.Drag,!0))},S=($,N)=>{const{dragPropagation:B,dragDirectionLock:H,onDirectionLock:z,onDrag:Y}=this.getProps();if(!B&&!this.openGlobalLock)return;const{offset:Z}=N;if(H&&this.currentDirection===null){this.currentDirection=A_n(Z),this.currentDirection!==null&&(z==null||z(this.currentDirection));return}this.updateAxis("x",N.point,Z),this.updateAxis("y",N.point,Z),this.visualElement.render(),Y==null||Y($,N)},y=($,N)=>this.stop($,N);this.panSession=new Bon(b,{onSessionStart:v,onStart:E,onMove:S,onSessionEnd:y},{transformPagePoint:this.visualElement.getTransformPagePoint()})}stop(b,m){const v=this.isDragging;if(this.cancel(),!v)return;const{velocity:E}=m;this.startAnimation(E);const{onDragEnd:S}=this.getProps();S==null||S(b,m)}cancel(){var b,m;this.isDragging=!1,this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!1),(b=this.panSession)===null||b===void 0||b.end(),this.panSession=void 0;const{dragPropagation:v}=this.getProps();!v&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),(m=this.visualElement.animationState)===null||m===void 0||m.setActive(ds.Drag,!1)}updateAxis(b,m,v){const{drag:E}=this.getProps();if(!v||!lG(b,E,this.currentDirection))return;const S=this.getAxisMotionValue(b);let y=this.originPoint[b]+v[b];this.constraints&&this.constraints[b]&&(y=w_n(y,this.constraints[b],this.elastic[b])),S.set(y)}resolveConstraints(){const{dragConstraints:b,dragElastic:m}=this.getProps(),{layout:v}=this.visualElement.projection||{},E=this.constraints;b&&pE(b)?this.constraints||(this.constraints=this.resolveRefConstraints()):b&&v?this.constraints=g_n(v.layoutBox,b):this.constraints=!1,this.elastic=y_n(m),E!==this.constraints&&v&&this.constraints&&!this.hasMutatedConstraints&&Hp(S=>{this.getAxisMotionValue(S)&&(this.constraints[S]=v_n(v.layoutBox[S],this.constraints[S]))})}resolveRefConstraints(){const{dragConstraints:b,onMeasureDragConstraints:m}=this.getProps();if(!b||!pE(b))return!1;const v=b.current,{projection:E}=this.visualElement;if(!E||!E.layout)return!1;const S=M_n(v,E.root,this.visualElement.getTransformPagePoint());let y=p_n(E.layout.layoutBox,S);if(m){const $=m(k_n(y));this.hasMutatedConstraints=!!$,$&&(y=Kon($))}return y}startAnimation(b){const{drag:m,dragMomentum:v,dragElastic:E,dragTransition:S,dragSnapToOrigin:y,onDragTransitionEnd:$}=this.getProps(),N=this.constraints||{},B=Hp(H=>{if(!lG(H,m,this.currentDirection))return;let z=(N==null?void 0:N[H])||{};y&&(z={min:0,max:0});const Y=E?200:1e6,Z=E?40:1e7,J={type:"inertia",velocity:v?b[H]:0,bounceStiffness:Y,bounceDamping:Z,timeConstant:750,restDelta:1,restSpeed:10,...S,...z};return this.startAxisValueAnimation(H,J)});return Promise.all(B).then($)}startAxisValueAnimation(b,m){const v=this.getAxisMotionValue(b);return v.start(Nbe(b,v,0,m))}stopAnimation(){Hp(b=>this.getAxisMotionValue(b).stop())}getAxisMotionValue(b){var m;const v="_drag"+b.toUpperCase(),E=this.visualElement.getProps()[v];return E||this.visualElement.getValue(b,((m=this.visualElement.getProps().initial)===null||m===void 0?void 0:m[b])||0)}snapToCursor(b){Hp(m=>{const{drag:v}=this.getProps();if(!lG(m,v,this.currentDirection))return;const{projection:E}=this.visualElement,S=this.getAxisMotionValue(m);if(E&&E.layout){const{min:y,max:$}=E.layout.layoutBox[m];S.set(b[m]-Bo(y,$,.5))}})}scalePositionWithinConstraints(){var b;if(!this.visualElement.current)return;const{drag:m,dragConstraints:v}=this.getProps(),{projection:E}=this.visualElement;if(!pE(v)||!E||!this.constraints)return;this.stopAnimation();const S={x:0,y:0};Hp($=>{const N=this.getAxisMotionValue($);if(N){const B=N.get();S[$]=m_n({min:B,max:B},this.constraints[$])}});const{transformTemplate:y}=this.visualElement.getProps();this.visualElement.current.style.transform=y?y({},""):"none",(b=E.root)===null||b===void 0||b.updateScroll(),E.updateLayout(),this.resolveConstraints(),Hp($=>{if(!lG($,m,null))return;const N=this.getAxisMotionValue($),{min:B,max:H}=this.constraints[$];N.set(Bo(B,H,S[$]))})}addListeners(){var b;if(!this.visualElement.current)return;S_n.set(this.visualElement,this);const m=this.visualElement.current,v=jE(m,"pointerdown",B=>{const{drag:H,dragListener:z=!0}=this.getProps();H&&z&&this.start(B)}),E=()=>{const{dragConstraints:B}=this.getProps();pE(B)&&(this.constraints=this.resolveRefConstraints())},{projection:S}=this.visualElement,y=S.addEventListener("measure",E);S&&!S.layout&&((b=S.root)===null||b===void 0||b.updateScroll(),S.updateLayout()),E();const $=RG(window,"resize",()=>this.scalePositionWithinConstraints()),N=S.addEventListener("didUpdate",({delta:B,hasLayoutChanged:H})=>{this.isDragging&&H&&(Hp(z=>{const Y=this.getAxisMotionValue(z);Y&&(this.originPoint[z]+=B[z].translate,Y.set(Y.get()+B[z].translate))}),this.visualElement.render())});return()=>{$(),v(),y(),N==null||N()}}getProps(){const b=this.visualElement.getProps(),{drag:m=!1,dragDirectionLock:v=!1,dragPropagation:E=!1,dragConstraints:S=!1,dragElastic:y=V0e,dragMomentum:$=!0}=b;return{...b,drag:m,dragDirectionLock:v,dragPropagation:E,dragConstraints:S,dragElastic:y,dragMomentum:$}}}function lG(d,b,m){return(b===!0||b===d)&&(m===null||m===d)}function A_n(d,b=10){let m=null;return Math.abs(d.y)>b?m="y":Math.abs(d.x)>b&&(m="x"),m}function x_n(d){const{dragControls:b,visualElement:m}=d,v=BG(()=>new P_n(m));Ee.useEffect(()=>b&&b.subscribe(v),[v,b]),Ee.useEffect(()=>v.addListeners(),[v])}function I_n({onPan:d,onPanStart:b,onPanEnd:m,onPanSessionStart:v,visualElement:E}){const S=d||b||m||v,y=Ee.useRef(null),{transformPagePoint:$}=Ee.useContext(hbe),N={onSessionStart:v,onStart:b,onMove:d,onEnd:(H,z)=>{y.current=null,m&&m(H,z)}};Ee.useEffect(()=>{y.current!==null&&y.current.updateHandlers(N)});function B(H){y.current=new Bon(H,N,{transformPagePoint:$})}jG(E,"pointerdown",S&&B),fon(()=>y.current&&y.current.end())}const O_n={pan:$4(I_n),drag:$4(x_n)};function U0e(d){return typeof d=="string"&&d.startsWith("var(--")}const Gon=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function D_n(d){const b=Gon.exec(d);if(!b)return[,];const[,m,v]=b;return[m,v]}function W0e(d,b,m=1){const[v,E]=D_n(d);if(!v)return;const S=window.getComputedStyle(b).getPropertyValue(v);return S?S.trim():U0e(E)?W0e(E,b,m+1):E}function $_n(d,{...b},m){const v=d.current;if(!(v instanceof Element))return{target:b,transitionEnd:m};m&&(m={...m}),d.values.forEach(E=>{const S=E.get();if(!U0e(S))return;const y=W0e(S,v);y&&E.set(y)});for(const E in b){const S=b[E];if(!U0e(S))continue;const y=W0e(S,v);y&&(b[E]=y,m&&m[E]===void 0&&(m[E]=S))}return{target:b,transitionEnd:m}}const L_n=new Set(["width","height","top","left","right","bottom","x","y"]),zon=d=>L_n.has(d),F_n=d=>Object.keys(d).some(zon),Uon=(d,b)=>{d.set(b,!1),d.set(b)},xun=d=>d===G9||d===Ui;var Iun;(function(d){d.width="width",d.height="height",d.left="left",d.right="right",d.top="top",d.bottom="bottom"})(Iun||(Iun={}));const Oun=(d,b)=>parseFloat(d.split(", ")[b]),Dun=(d,b)=>(m,{transform:v})=>{if(v==="none"||!v)return 0;const E=v.match(/^matrix3d\((.+)\)$/);if(E)return Oun(E[1],b);{const S=v.match(/^matrix\((.+)\)$/);return S?Oun(S[1],d):0}},N_n=new Set(["x","y","z"]),__n=vG.filter(d=>!N_n.has(d));function B_n(d){const b=[];return __n.forEach(m=>{const v=d.getValue(m);v!==void 0&&(b.push([m,v.get()]),v.set(m.startsWith("scale")?1:0))}),b.length&&d.render(),b}const $un={width:({x:d},{paddingLeft:b="0",paddingRight:m="0"})=>d.max-d.min-parseFloat(b)-parseFloat(m),height:({y:d},{paddingTop:b="0",paddingBottom:m="0"})=>d.max-d.min-parseFloat(b)-parseFloat(m),top:(d,{top:b})=>parseFloat(b),left:(d,{left:b})=>parseFloat(b),bottom:({y:d},{top:b})=>parseFloat(b)+(d.max-d.min),right:({x:d},{left:b})=>parseFloat(b)+(d.max-d.min),x:Dun(4,13),y:Dun(5,14)},R_n=(d,b,m)=>{const v=b.measureViewportBox(),E=b.current,S=getComputedStyle(E),{display:y}=S,$={};y==="none"&&b.setStaticValue("display",d.display||"block"),m.forEach(B=>{$[B]=$un[B](v,S)}),b.render();const N=b.measureViewportBox();return m.forEach(B=>{const H=b.getValue(B);Uon(H,$[B]),d[B]=$un[B](N,S)}),d},K_n=(d,b,m={},v={})=>{b={...b},v={...v};const E=Object.keys(b).filter(zon);let S=[],y=!1;const $=[];if(E.forEach(N=>{const B=d.getValue(N);if(!d.hasValue(N))return;let H=m[N],z=nO(H);const Y=b[N];let Z;if(kG(Y)){const J=Y.length,qe=Y[0]===null?1:0;H=Y[qe],z=nO(H);for(let on=qe;on=0?window.pageYOffset:null,B=R_n(b,d,$);return S.length&&S.forEach(([H,z])=>{d.getValue(H).set(z)}),d.render(),H9&&N!==null&&window.scrollTo({top:N}),{target:B,transitionEnd:v}}else return{target:b,transitionEnd:v}};function q_n(d,b,m,v){return F_n(b)?K_n(d,b,m,v):{target:b,transitionEnd:v}}const H_n=(d,b,m,v)=>{const E=$_n(d,b,v);return b=E.target,v=E.transitionEnd,q_n(d,b,m,v)},X0e={current:null},Won={current:!1};function V_n(){if(Won.current=!0,!!H9)if(window.matchMedia){const d=window.matchMedia("(prefers-reduced-motion)"),b=()=>X0e.current=d.matches;d.addListener(b),b()}else X0e.current=!1}function G_n(d,b,m){const{willChange:v}=b;for(const E in b){const S=b[E],y=m[E];if(Gp(S))d.addValue(E,S),TG(v)&&v.add(E);else if(Gp(y))d.addValue(E,SE(S,{owner:d})),TG(v)&&v.remove(E);else if(y!==S)if(d.hasValue(E)){const $=d.getValue(E);!$.hasAnimated&&$.set(S)}else{const $=d.getStaticValue(E);d.addValue(E,SE($!==void 0?$:S))}}for(const E in m)b[E]===void 0&&d.removeValue(E);return b}const Xon=Object.keys(vO),z_n=Xon.length,Lun=["AnimationStart","AnimationComplete","Update","Unmount","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class U_n{constructor({parent:b,props:m,reducedMotionConfig:v,visualState:E},S={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.isPresent=!0,this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Hd.render(this.render,!1,!0);const{latestValues:y,renderState:$}=E;this.latestValues=y,this.baseTarget={...y},this.initialValues=m.initial?{...y}:{},this.renderState=$,this.parent=b,this.props=m,this.depth=b?b.depth+1:0,this.reducedMotionConfig=v,this.options=S,this.isControllingVariants=_G(m),this.isVariantNode=Ksn(m),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(b&&b.current);const{willChange:N,...B}=this.scrapeMotionValuesFromProps(m);for(const H in B){const z=B[H];y[H]!==void 0&&Gp(z)&&(z.set(y[H],!1),TG(N)&&N.add(H))}}scrapeMotionValuesFromProps(b){return{}}mount(b){var m;this.current=b,this.projection&&this.projection.mount(b),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=(m=this.parent)===null||m===void 0?void 0:m.addVariantChild(this)),this.values.forEach((v,E)=>this.bindToMotionValue(E,v)),Won.current||V_n(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:X0e.current,this.parent&&this.parent.children.add(this),this.setProps(this.props)}unmount(){var b,m,v;(b=this.projection)===null||b===void 0||b.unmount(),F4.update(this.notifyUpdate),F4.render(this.render),this.valueSubscriptions.forEach(E=>E()),(m=this.removeFromVariantTree)===null||m===void 0||m.call(this),(v=this.parent)===null||v===void 0||v.children.delete(this);for(const E in this.events)this.events[E].clear();this.current=null}bindToMotionValue(b,m){const v=V9.has(b),E=m.on("change",y=>{this.latestValues[b]=y,this.props.onUpdate&&Hd.update(this.notifyUpdate,!1,!0),v&&this.projection&&(this.projection.isTransformDirty=!0)}),S=m.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(b,()=>{E(),S()})}sortNodePosition(b){return!this.current||!this.sortInstanceNodePosition||this.type!==b.type?0:this.sortInstanceNodePosition(this.current,b.current)}loadFeatures(b,m,v,E,S,y){const $=[];for(let N=0;Nthis.scheduleRender(),animationType:typeof B=="string"?B:"both",initialPromotionConfig:y,layoutScroll:Y})}return $}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):cl()}getStaticValue(b){return this.latestValues[b]}setStaticValue(b,m){this.latestValues[b]=m}makeTargetAnimatable(b,m=!0){return this.makeTargetAnimatableFromInstance(b,this.props,m)}setProps(b){(b.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.props=b;for(let m=0;mv.variantChildren.delete(b)}addValue(b,m){this.hasValue(b)&&this.removeValue(b),this.values.set(b,m),this.latestValues[b]=m.get(),this.bindToMotionValue(b,m)}removeValue(b){var m;this.values.delete(b),(m=this.valueSubscriptions.get(b))===null||m===void 0||m(),this.valueSubscriptions.delete(b),delete this.latestValues[b],this.removeValueFromRenderState(b,this.renderState)}hasValue(b){return this.values.has(b)}getValue(b,m){if(this.props.values&&this.props.values[b])return this.props.values[b];let v=this.values.get(b);return v===void 0&&m!==void 0&&(v=SE(m,{owner:this}),this.addValue(b,v)),v}readValue(b){return this.latestValues[b]!==void 0||!this.current?this.latestValues[b]:this.readValueFromInstance(this.current,b,this.options)}setBaseTarget(b,m){this.baseTarget[b]=m}getBaseTarget(b){var m;const{initial:v}=this.props,E=typeof v=="string"||typeof v=="object"?(m=ybe(this.props,v))===null||m===void 0?void 0:m[b]:void 0;if(v&&E!==void 0)return E;const S=this.getBaseTargetFromProps(this.props,b);return S!==void 0&&!Gp(S)?S:this.initialValues[b]!==void 0&&E===void 0?void 0:this.baseTarget[b]}on(b,m){return this.events[b]||(this.events[b]=new Tbe),this.events[b].add(m)}notify(b,...m){var v;(v=this.events[b])===null||v===void 0||v.notify(...m)}}const Yon=["initial",..._be],W_n=Yon.length;class Qon extends U_n{sortInstanceNodePosition(b,m){return b.compareDocumentPosition(m)&2?1:-1}getBaseTargetFromProps(b,m){var v;return(v=b.style)===null||v===void 0?void 0:v[m]}removeValueFromRenderState(b,{vars:m,style:v}){delete m[b],delete v[b]}makeTargetAnimatableFromInstance({transition:b,transitionEnd:m,...v},{transformValues:E},S){let y=iNn(v,b||{},this);if(E&&(m&&(m=E(m)),v&&(v=E(v)),y&&(y=E(y))),S){nNn(this,v,y);const $=H_n(this,v,y,m);m=$.transitionEnd,v=$.target}return{transition:b,transitionEnd:m,...v}}}function X_n(d){return window.getComputedStyle(d)}class Y_n extends Qon{readValueFromInstance(b,m){if(V9.has(m)){const v=Sbe(m);return v&&v.default||0}else{const v=X_n(b),E=(Gsn(m)?v.getPropertyValue(m):v[m])||0;return typeof E=="string"?E.trim():E}}measureInstanceViewportBox(b,{transformPagePoint:m}){return Von(b,m)}build(b,m,v,E){bbe(b,m,v,E.transformTemplate)}scrapeMotionValuesFromProps(b){return vbe(b)}renderInstance(b,m,v,E){Ysn(b,m,v,E)}}class Q_n extends Qon{constructor(){super(...arguments),this.isSVGTag=!1}getBaseTargetFromProps(b,m){return b[m]}readValueFromInstance(b,m){var v;return V9.has(m)?((v=Sbe(m))===null||v===void 0?void 0:v.default)||0:(m=Qsn.has(m)?m:mbe(m),b.getAttribute(m))}measureInstanceViewportBox(){return cl()}scrapeMotionValuesFromProps(b){return Zsn(b)}build(b,m,v,E){gbe(b,m,v,this.isSVGTag,E.transformTemplate)}renderInstance(b,m,v,E){Jsn(b,m,v,E)}mount(b){this.isSVGTag=pbe(b.tagName),super.mount(b)}}const J_n=(d,b)=>dbe(d)?new Q_n(b,{enableHardwareAcceleration:!1}):new Y_n(b,{enableHardwareAcceleration:!0});function Fun(d,b){return b.max===b.min?0:d/(b.max-b.min)*100}const tO={correct:(d,b)=>{if(!b.target)return d;if(typeof d=="string")if(Ui.test(d))d=parseFloat(d);else return d;const m=Fun(d,b.target.x),v=Fun(d,b.target.y);return`${m}% ${v}%`}},Nun="_$css",Z_n={correct:(d,{treeScale:b,projectionDelta:m})=>{const v=d,E=d.includes("var("),S=[];E&&(d=d.replace(Gon,Z=>(S.push(Z),Nun)));const y=N4.parse(d);if(y.length>5)return v;const $=N4.createTransformer(d),N=typeof y[0]!="number"?1:0,B=m.x.scale*b.x,H=m.y.scale*b.y;y[0+N]/=B,y[1+N]/=H;const z=Bo(B,H,.5);typeof y[2+N]=="number"&&(y[2+N]/=z),typeof y[3+N]=="number"&&(y[3+N]/=z);let Y=$(y);if(E){let Z=0;Y=Y.replace(Nun,()=>{const J=S[Z];return Z++,J})}return Y}};class eBn extends gO.Component{componentDidMount(){const{visualElement:b,layoutGroup:m,switchLayoutGroup:v,layoutId:E}=this.props,{projection:S}=b;PLn(tBn),S&&(m.group&&m.group.add(S),v&&v.register&&E&&v.register(S),S.root.didUpdate(),S.addEventListener("animationComplete",()=>{this.safeToRemove()}),S.setOptions({...S.options,onExitComplete:()=>this.safeToRemove()})),lO.hasEverUpdated=!0}getSnapshotBeforeUpdate(b){const{layoutDependency:m,visualElement:v,drag:E,isPresent:S}=this.props,y=v.projection;return y&&(y.isPresent=S,E||b.layoutDependency!==m||m===void 0?y.willUpdate():this.safeToRemove(),b.isPresent!==S&&(S?y.promote():y.relegate()||Hd.postRender(()=>{var $;!(($=y.getStack())===null||$===void 0)&&$.members.length||this.safeToRemove()}))),null}componentDidUpdate(){const{projection:b}=this.props.visualElement;b&&(b.root.didUpdate(),!b.currentAnimation&&b.isLead()&&this.safeToRemove())}componentWillUnmount(){const{visualElement:b,layoutGroup:m,switchLayoutGroup:v}=this.props,{projection:E}=b;E&&(E.scheduleCheckAfterUnmount(),m!=null&&m.group&&m.group.remove(E),v!=null&&v.deregister&&v.deregister(E))}safeToRemove(){const{safeToRemove:b}=this.props;b==null||b()}render(){return null}}function nBn(d){const[b,m]=lon(),v=Ee.useContext(qsn);return gO.createElement(eBn,{...d,layoutGroup:v,switchLayoutGroup:Ee.useContext(Hsn),isPresent:b,safeToRemove:m})}const tBn={borderRadius:{...tO,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:tO,borderTopRightRadius:tO,borderBottomLeftRadius:tO,borderBottomRightRadius:tO,boxShadow:Z_n},iBn={measureLayout:nBn};function rBn(d,b,m={}){const v=Gp(d)?d:SE(d);return v.start(Nbe("",v,b,m)),{stop:()=>v.stop(),isAnimating:()=>v.isAnimating()}}const Jon=["TopLeft","TopRight","BottomLeft","BottomRight"],cBn=Jon.length,_un=d=>typeof d=="string"?parseFloat(d):d,Bun=d=>typeof d=="number"||Ui.test(d);function uBn(d,b,m,v,E,S){E?(d.opacity=Bo(0,m.opacity!==void 0?m.opacity:1,sBn(v)),d.opacityExit=Bo(b.opacity!==void 0?b.opacity:1,0,oBn(v))):S&&(d.opacity=Bo(b.opacity!==void 0?b.opacity:1,m.opacity!==void 0?m.opacity:1,v));for(let y=0;yvb?1:m(CG(d,b,v))}function Kun(d,b){d.min=b.min,d.max=b.max}function sg(d,b){Kun(d.x,b.x),Kun(d.y,b.y)}function qun(d,b,m,v,E){return d-=b,d=PG(d,1/m,v),E!==void 0&&(d=PG(d,1/E,v)),d}function fBn(d,b=0,m=1,v=.5,E,S=d,y=d){if(Vp.test(b)&&(b=parseFloat(b),b=Bo(y.min,y.max,b/100)-y.min),typeof b!="number")return;let $=Bo(S.min,S.max,v);d===S&&($-=b),d.min=qun(d.min,b,m,$,E),d.max=qun(d.max,b,m,$,E)}function Hun(d,b,[m,v,E],S,y){fBn(d,b[m],b[v],b[E],b.scale,S,y)}const lBn=["x","scaleX","originX"],aBn=["y","scaleY","originY"];function Vun(d,b,m,v){Hun(d.x,b,lBn,m==null?void 0:m.x,v==null?void 0:v.x),Hun(d.y,b,aBn,m==null?void 0:m.y,v==null?void 0:v.y)}function Gun(d){return d.translate===0&&d.scale===1}function efn(d){return Gun(d.x)&&Gun(d.y)}function nfn(d,b){return d.x.min===b.x.min&&d.x.max===b.x.max&&d.y.min===b.y.min&&d.y.max===b.y.max}function zun(d){return Vd(d.x)/Vd(d.y)}class hBn{constructor(){this.members=[]}add(b){jbe(this.members,b),b.scheduleRender()}remove(b){if(Ebe(this.members,b),b===this.prevLead&&(this.prevLead=void 0),b===this.lead){const m=this.members[this.members.length-1];m&&this.promote(m)}}relegate(b){const m=this.members.findIndex(E=>b===E);if(m===0)return!1;let v;for(let E=m;E>=0;E--){const S=this.members[E];if(S.isPresent!==!1){v=S;break}}return v?(this.promote(v),!0):!1}promote(b,m){var v;const E=this.lead;if(b!==E&&(this.prevLead=E,this.lead=b,b.show(),E)){E.instance&&E.scheduleRender(),b.scheduleRender(),b.resumeFrom=E,m&&(b.resumeFrom.preserveOpacity=!0),E.snapshot&&(b.snapshot=E.snapshot,b.snapshot.latestValues=E.animationValues||E.latestValues),!((v=b.root)===null||v===void 0)&&v.isUpdating&&(b.isLayoutDirty=!0);const{crossfade:S}=b.options;S===!1&&E.hide()}}exitAnimationComplete(){this.members.forEach(b=>{var m,v,E,S,y;(v=(m=b.options).onExitComplete)===null||v===void 0||v.call(m),(y=(E=b.resumingFrom)===null||E===void 0?void 0:(S=E.options).onExitComplete)===null||y===void 0||y.call(S)})}scheduleRender(){this.members.forEach(b=>{b.instance&&b.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Uun(d,b,m){let v="";const E=d.x.translate/b.x,S=d.y.translate/b.y;if((E||S)&&(v=`translate3d(${E}px, ${S}px, 0) `),(b.x!==1||b.y!==1)&&(v+=`scale(${1/b.x}, ${1/b.y}) `),m){const{rotate:N,rotateX:B,rotateY:H}=m;N&&(v+=`rotate(${N}deg) `),B&&(v+=`rotateX(${B}deg) `),H&&(v+=`rotateY(${H}deg) `)}const y=d.x.scale*b.x,$=d.y.scale*b.y;return(y!==1||$!==1)&&(v+=`scale(${y}, ${$})`),v||"none"}const dBn=(d,b)=>d.depth-b.depth;class bBn{constructor(){this.children=[],this.isDirty=!1}add(b){jbe(this.children,b),this.isDirty=!0}remove(b){Ebe(this.children,b),this.isDirty=!0}forEach(b){this.isDirty&&this.children.sort(dBn),this.isDirty=!1,this.children.forEach(b)}}const Wun=["","X","Y","Z"],Xun=1e3;let wBn=0;function tfn({attachResizeListener:d,defaultParent:b,measureScroll:m,checkIsScrollRoot:v,resetTransform:E}){return class{constructor(y,$={},N=b==null?void 0:b()){this.id=wBn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isTransformDirty=!1,this.isProjectionDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.potentialNodes=new Map,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.nodes.forEach(mBn),this.nodes.forEach(kBn),this.nodes.forEach(jBn)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.elementId=y,this.latestValues=$,this.root=N?N.root||N:this,this.path=N?[...N.path,N]:[],this.parent=N,this.depth=N?N.depth+1:0,y&&this.root.registerPotentialNode(y,this);for(let B=0;Bthis.root.updateBlockedByResize=!1;d(y,()=>{this.root.updateBlockedByResize=!0,Y&&Y(),Y=$on(Z,250),lO.hasAnimatedSinceResize&&(lO.hasAnimatedSinceResize=!1,this.nodes.forEach(Qun))})}B&&this.root.registerSharedNode(B,this),this.options.animate!==!1&&z&&(B||H)&&this.addEventListener("didUpdate",({delta:Y,hasLayoutChanged:Z,hasRelativeTargetChanged:J,layout:qe})=>{var on,bn,xn,Ue,mn;if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const bt=(bn=(on=this.options.transition)!==null&&on!==void 0?on:z.getDefaultTransition())!==null&&bn!==void 0?bn:SBn,{onLayoutAnimationStart:_t,onLayoutAnimationComplete:Mi}=z.getProps(),li=!this.targetLayout||!nfn(this.targetLayout,qe)||J,sc=!Z&&J;if(!((xn=this.resumeFrom)===null||xn===void 0)&&xn.instance||sc||Z&&(li||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(Y,sc);const Zi={...Lon(bt,"layout"),onPlay:_t,onComplete:Mi};z.shouldReduceMotion&&(Zi.delay=0,Zi.type=!1),this.startAnimation(Zi)}else!Z&&this.animationProgress===0&&Qun(this),this.isLead()&&((mn=(Ue=this.options).onExitComplete)===null||mn===void 0||mn.call(Ue));this.targetLayout=qe})}unmount(){var y,$;this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this),(y=this.getStack())===null||y===void 0||y.remove(this),($=this.parent)===null||$===void 0||$.children.delete(this),this.instance=void 0,F4.preRender(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){var y;return this.isAnimationBlocked||((y=this.parent)===null||y===void 0?void 0:y.isTreeAnimationBlocked())||!1}startUpdate(){var y;this.isUpdateBlocked()||(this.isUpdating=!0,(y=this.nodes)===null||y===void 0||y.forEach(EBn),this.animationId++)}willUpdate(y=!0){var $,N,B;if(this.root.isUpdateBlocked()){(N=($=this.options).onExitComplete)===null||N===void 0||N.call($);return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let Z=0;Z{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){var y;if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let N=0;N{var Ue;const mn=xn/1e3;Jun(Z.x,y.x,mn),Jun(Z.y,y.y,mn),this.setTargetDelta(Z),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&(!((Ue=this.relativeParent)===null||Ue===void 0)&&Ue.layout)&&(bO(J,this.layout.layoutBox,this.relativeParent.layout.layoutBox),CBn(this.relativeTarget,this.relativeTargetOrigin,J,mn)),qe&&(this.animationValues=Y,uBn(Y,z,this.latestValues,mn,bn,on)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=mn},this.mixTargetDelta(0)}startAnimation(y){var $,N;this.notifyListeners("animationStart"),($=this.currentAnimation)===null||$===void 0||$.stop(),this.resumingFrom&&((N=this.resumingFrom.currentAnimation)===null||N===void 0||N.stop()),this.pendingAnimation&&(F4.update(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Hd.update(()=>{lO.hasAnimatedSinceResize=!0,this.currentAnimation=rBn(0,Xun,{...y,onUpdate:B=>{var H;this.mixTargetDelta(B),(H=y.onUpdate)===null||H===void 0||H.call(y,B)},onComplete:()=>{var B;(B=y.onComplete)===null||B===void 0||B.call(y),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){var y;this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0),(y=this.getStack())===null||y===void 0||y.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){var y;this.currentAnimation&&((y=this.mixTargetDelta)===null||y===void 0||y.call(this,Xun),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const y=this.getLead();let{targetWithTransforms:$,target:N,layout:B,latestValues:H}=y;if(!(!$||!N||!B)){if(this!==y&&this.layout&&B&&ifn(this.options.animationType,this.layout.layoutBox,B.layoutBox)){N=this.target||cl();const z=Vd(this.layout.layoutBox.x);N.x.min=y.target.x.min,N.x.max=N.x.min+z;const Y=Vd(this.layout.layoutBox.y);N.y.min=y.target.y.min,N.y.max=N.y.min+Y}sg($,N),vE($,H),dO(this.projectionDeltaWithTransform,this.layoutCorrected,$,H)}}registerSharedNode(y,$){var N,B,H;this.sharedNodes.has(y)||this.sharedNodes.set(y,new hBn),this.sharedNodes.get(y).add($),$.promote({transition:(N=$.options.initialPromotionConfig)===null||N===void 0?void 0:N.transition,preserveFollowOpacity:(H=(B=$.options.initialPromotionConfig)===null||B===void 0?void 0:B.shouldPreserveFollowOpacity)===null||H===void 0?void 0:H.call(B,$)})}isLead(){const y=this.getStack();return y?y.lead===this:!0}getLead(){var y;const{layoutId:$}=this.options;return $?((y=this.getStack())===null||y===void 0?void 0:y.lead)||this:this}getPrevLead(){var y;const{layoutId:$}=this.options;return $?(y=this.getStack())===null||y===void 0?void 0:y.prevLead:void 0}getStack(){const{layoutId:y}=this.options;if(y)return this.root.sharedNodes.get(y)}promote({needsReset:y,transition:$,preserveFollowOpacity:N}={}){const B=this.getStack();B&&B.promote(this,N),y&&(this.projectionDelta=void 0,this.needsReset=!0),$&&this.setOptions({transition:$})}relegate(){const y=this.getStack();return y?y.relegate(this):!1}resetRotation(){const{visualElement:y}=this.options;if(!y)return;let $=!1;const{latestValues:N}=y;if((N.rotate||N.rotateX||N.rotateY||N.rotateZ)&&($=!0),!$)return;const B={};for(let H=0;H{var $;return($=y.currentAnimation)===null||$===void 0?void 0:$.stop()}),this.root.nodes.forEach(Yun),this.root.sharedNodes.clear()}}}function gBn(d){d.updateLayout()}function pBn(d){var b,m,v;const E=((b=d.resumeFrom)===null||b===void 0?void 0:b.snapshot)||d.snapshot;if(d.isLead()&&d.layout&&E&&d.hasListeners("didUpdate")){const{layoutBox:S,measuredBox:y}=d.layout,{animationType:$}=d.options,N=E.source!==d.layout.source;$==="size"?Hp(Z=>{const J=N?E.measuredBox[Z]:E.layoutBox[Z],qe=Vd(J);J.min=S[Z].min,J.max=J.min+qe}):ifn($,E.layoutBox,S)&&Hp(Z=>{const J=N?E.measuredBox[Z]:E.layoutBox[Z],qe=Vd(S[Z]);J.max=J.min+qe});const B=wO();dO(B,S,E.layoutBox);const H=wO();N?dO(H,d.applyTransform(y,!0),E.measuredBox):dO(H,S,E.layoutBox);const z=!efn(B);let Y=!1;if(!d.resumeFrom){const Z=d.getClosestProjectingParent();if(Z&&!Z.resumeFrom){const{snapshot:J,layout:qe}=Z;if(J&&qe){const on=cl();bO(on,E.layoutBox,J.layoutBox);const bn=cl();bO(bn,S,qe.layoutBox),nfn(on,bn)||(Y=!0)}}}d.notifyListeners("didUpdate",{layout:S,snapshot:E,delta:H,layoutDelta:B,hasLayoutChanged:z,hasRelativeTargetChanged:Y})}else d.isLead()&&((v=(m=d.options).onExitComplete)===null||v===void 0||v.call(m));d.options.transition=void 0}function mBn(d){d.isProjectionDirty||(d.isProjectionDirty=!!(d.parent&&d.parent.isProjectionDirty)),d.isTransformDirty||(d.isTransformDirty=!!(d.parent&&d.parent.isTransformDirty))}function vBn(d){d.clearSnapshot()}function Yun(d){d.clearMeasurements()}function yBn(d){const{visualElement:b}=d.options;b!=null&&b.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),d.resetTransform()}function Qun(d){d.finishAnimation(),d.targetDelta=d.relativeTarget=d.target=void 0}function kBn(d){d.resolveTargetDelta()}function jBn(d){d.calcProjection()}function EBn(d){d.resetRotation()}function TBn(d){d.removeLeadSnapshot()}function Jun(d,b,m){d.translate=Bo(b.translate,0,m),d.scale=Bo(b.scale,1,m),d.origin=b.origin,d.originPoint=b.originPoint}function Zun(d,b,m,v){d.min=Bo(b.min,m.min,v),d.max=Bo(b.max,m.max,v)}function CBn(d,b,m,v){Zun(d.x,b.x,m.x,v),Zun(d.y,b.y,m.y,v)}function MBn(d){return d.animationValues&&d.animationValues.opacityExit!==void 0}const SBn={duration:.45,ease:[.4,0,.1,1]};function PBn(d,b){let m=d.root;for(let S=d.path.length-1;S>=0;S--)if(d.path[S].instance){m=d.path[S];break}const E=(m&&m!==d.root?m.instance:document).querySelector(`[data-projection-id="${b}"]`);E&&d.mount(E,!0)}function esn(d){d.min=Math.round(d.min),d.max=Math.round(d.max)}function ABn(d){esn(d.x),esn(d.y)}function ifn(d,b,m){return d==="position"||d==="preserve-aspect"&&!H0e(zun(b),zun(m),.2)}const xBn=tfn({attachResizeListener:(d,b)=>RG(d,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),j0e={current:void 0},IBn=tfn({measureScroll:d=>({x:d.scrollLeft,y:d.scrollTop}),defaultParent:()=>{if(!j0e.current){const d=new xBn(0,{});d.mount(window),d.setOptions({layoutScroll:!0}),j0e.current=d}return j0e.current},resetTransform:(d,b)=>{d.style.transform=b!==void 0?b:"none"},checkIsScrollRoot:d=>window.getComputedStyle(d).position==="fixed"}),OBn={...l_n,...AFn,...O_n,...iBn},K9=MLn((d,b)=>rFn(d,b,OBn,J_n,IBn));function DBn(){let d=!1;const b=[],m=new Set,v={subscribe(E){return m.add(E),()=>void m.delete(E)},start(E,S){if(d){const y=[];return m.forEach($=>{y.push(Non($,E,{transitionOverride:S}))}),Promise.all(y)}else return new Promise(y=>{b.push({animation:[E,S],resolve:y})})},set(E){return m.forEach(S=>{eNn(S,E)})},stop(){m.forEach(E=>{n_n(E)})},mount(){return d=!0,b.forEach(({animation:E,resolve:S})=>{v.start(...E).then(S)}),()=>{d=!1,v.stop()}}};return v}function $Bn(){const d=BG(DBn);return Ee.useEffect(d.mount,[]),d}const LBn=$Bn;function Y0e(d,b){return d.map(function(m,v){return m+b[v]})}function Bbe(d,b){return d.map(function(m,v){return m-b[v]})}function jO(d){return Math.hypot.apply(Math,d)}function rfn(d,b){b===void 0&&(b=d);var m=jO(b),v=m===0?0:1/m,E=b.map(function(y){return v*y}),S=jO(d);return{distance:S,direction:E}}function cfn(d,b,m){var v=jO(b),E=v===0?0:1/v,S=m===0?0:1/m,y=S*v,$=b.map(function(H){return S*H}),N=b.map(function(H){return E*H}),B=jO(d);return{velocities:$,velocity:y,distance:B,direction:N}}function AG(d){return Math.sign?Math.sign(d):+(d>0)-+(d<0)||+d}function FBn(d,b,m){return Math.max(b,Math.min(d,m))}function NBn(d,b){return Math.pow(d,b*5)}function nsn(d,b,m){return b===0||Math.abs(b)===1/0?NBn(d,m):d*b*m/(b+m*d)}function tsn(d,b,m,v){return v===void 0&&(v=.15),v===0?FBn(d,b,m):dm?+nsn(d-m,m-b,v)+m:d}function isn(d,b){for(var m=0;m=0)&&(m[E]=d[E]);return m}function hs(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function RBn(d,b){if(d){if(typeof d=="string")return rsn(d,b);var m=Object.prototype.toString.call(d).slice(8,-1);if(m==="Object"&&d.constructor&&(m=d.constructor.name),m==="Map"||m==="Set")return Array.from(d);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return rsn(d,b)}}function rsn(d,b){(b==null||b>d.length)&&(b=d.length);for(var m=0,v=new Array(b);m"u"||d[Symbol.iterator]==null){if(Array.isArray(d)||(m=RBn(d))||b&&d&&typeof d.length=="number"){m&&(d=m);var v=0;return function(){return v>=d.length?{done:!0}:{done:!1,value:d[v++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return m=d[Symbol.iterator](),m.next.bind(m)}function ufn(){}function sfn(){for(var d=arguments.length,b=new Array(d),m=0;m1?b-1:0),v=1;v0,H},swipeVelocity:function(b){return b===void 0&&(b=HBn),D4(b)},swipeDistance:function(b){return b===void 0&&(b=VBn),D4(b)},delay:function(b){switch(b===void 0&&(b=0),b){case!0:return KBn;case!1:return 0;default:return b}}});function ffn(d){return d===void 0&&(d={}),IO(d,zBn)}function E0e(d){return d===void 0&&(d={}),IO(d,Rbe)}function XBn(d){return d===void 0&&(d={}),IO(d,UBn)}function lfn(d){return d===void 0&&(d={}),IO(d,WBn)}function YBn(d){var b=d.domTarget,m=d.eventOptions,v=d.window,E=d.enabled,S=BBn(d,["domTarget","eventOptions","window","enabled"]),y=ffn({domTarget:b,eventOptions:m,window:v,enabled:E});return y.drag=lfn(S),y}function QBn(d,b){d===void 0&&(d={}),b===void 0&&(b=new Set);var m=d,v=m.drag,E=m.wheel,S=m.move,y=m.scroll,$=m.pinch,N=m.hover,B=m.eventOptions,H=m.window,z=m.domTarget,Y=m.enabled,Z=ffn({eventOptions:B,window:H,domTarget:z,enabled:Y});return b.has("onDrag")&&(Z.drag=lfn(v)),b.has("onWheel")&&(Z.wheel=E0e(E)),b.has("onScroll")&&(Z.scroll=E0e(y)),b.has("onMove")&&(Z.move=E0e(S)),b.has("onPinch")&&(Z.pinch=XBn($)),b.has("onHover")&&(Z.hover=pc({enabled:!0},N)),Z}function iO(d){return pc({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:ufn,canceled:!1,memo:void 0,args:void 0},d)}function afn(){var d={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},b=iO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),m=iO({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),v=iO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),E=iO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),S=iO({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:d,drag:b,pinch:m,wheel:v,move:E,scroll:S}}var qd=new Map,hfn=function(){function d(m,v){var E=this;v===void 0&&(v=[]),this.controller=m,this.args=v,this.debounced=!0,this.setTimeout=function(S,y){var $;y===void 0&&(y=140),clearTimeout(E.controller.timeouts[E.stateKey]);for(var N=arguments.length,B=new Array(N>2?N-2:0),H=2;H=b?AG(d)*b:!1}function ssn(d,b,m){var v=b[0],E=b[1],S=m[0],y=m[1],$=d[0],N=$[0],B=$[1],H=d[1],z=H[0],Y=H[1];return[tsn(v,N,B,S),tsn(E,z,Y,y)]}function ul(d,b,m){var v=d.state,E=d.args,S=b.timeStamp,y=b.type,$=v.values,N=m?0:S-v.startTime;return{_lastEventType:y,event:b,timeStamp:S,elapsedTime:N,args:E,previous:$}}function R9(d,b,m){var v=d.state.offset,E=m.timeStamp;return pc({},afn()[d.stateKey],{_active:!0,values:b,initial:b,offset:v,lastOffset:v,startTime:E})}function JBn(d,b){return function(m){for(var v=arguments.length,E=new Array(v>1?v-1:0),S=1;SN?"x":$0?b:m}return null}function Kd(d){var b="buttons"in d?d.buttons:0,m=pfn(d),v=m&&m.length||0,E=v>0||b>0,S=d.shiftKey,y=d.altKey,$=d.metaKey,N=d.ctrlKey;return{touches:v,down:E,buttons:b,shiftKey:S,altKey:y,metaKey:$,ctrlKey:N}}function kE(d){var b=pfn(d),m=b?b[0]:d,v=m.clientX,E=m.clientY;return[v,E]}function lRn(d){var b=d.currentTarget,m=b.scrollX,v=b.scrollY,E=b.scrollLeft,S=b.scrollTop;return[m||E||0,v||S||0]}function mfn(d){var b=d.deltaX,m=d.deltaY;return[b,m]}function osn(d){return[d.scale*sRn,d.rotation]}function fsn(d){var b,m=d.targetTouches,v=m[0],E=m[1],S=E.clientX-v.clientX,y=E.clientY-v.clientY,$=(E.clientX+v.clientX)/2,N=(E.clientY+v.clientY)/2,B="nativeEvent"in d?d.nativeEvent:d,H=Math.hypot(S,y),z=(b=B.rotation)!=null?b:-(Math.atan2(S,y)*180)/Math.PI,Y=[H,z],Z=[$,N];return{values:Y,origin:Z}}var aRn=3,hRn=220,vfn=function(d){z9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="dragging",v.stateKey="drag",v.onDragStart=function(E){!v.enabled||v.state._active||(tRn(v.controller,v.stateKey,[["pointermove",v.onDragChange],["pointerup",v.onDragEnd],["pointercancel",v.onDragEnd]]),v.updateGestureState({_pointerId:E.pointerId}),v.config.delay>0?(v.state._delayedEvent=!0,"persist"in E&&typeof E.persist=="function"&&E.persist(),v.setTimeout(v.startDrag.bind(hs(v)),v.config.delay,E)):v.startDrag(E))},v.onDragChange=function(E){if(!v.state.canceled&&E.pointerId===v.state._pointerId){if(!v.state._active){v.state._delayedEvent&&(v.clearTimeout(),v.startDrag(E));return}var S=Kd(E);if(!S.down){v.onDragEnd(E);return}v.updateSharedState(S);var y=kE(E),$=v.getKinematics(y,E),N=ul(hs(v),E),B=v.state._isTap,H=jO($._movement);B&&H>=aRn&&(B=!1),v.updateGestureState(pc({},N,$,{_isTap:B})),v.fireGestureHandler()}},v.onDragEnd=function(E){if(E.pointerId===v.state._pointerId){v.state._active=!1,v.updateSharedState({down:!1,buttons:0,touches:0});var S=v.state._isTap,y=v.state.velocities,$=y[0],N=y[1],B=v.state.movement,H=B[0],z=B[1],Y=v.state._intentional,Z=Y[0],J=Y[1],qe=v.config.swipeVelocity,on=qe[0],bn=qe[1],xn=v.config.swipeDistance,Ue=xn[0],mn=xn[1],bt=pc({},ul(hs(v),E),v.getMovement(v.state.values)),_t=[0,0];bt.elapsedTimeon&&Math.abs(H)>Ue&&(_t[0]=AG($)),J!==!1&&Math.abs(N)>bn&&Math.abs(z)>mn&&(_t[1]=AG(N))),v.updateGestureState(pc({},bt,{tap:S,swipe:_t})),v.fireGestureHandler(S===!0)}},v.clean=function(){d.prototype.clean.call(hs(v)),v.state._delayedEvent=!1,nRn(v.controller,v.stateKey)},v.onCancel=function(){v.state.canceled||(v.updateGestureState({canceled:!0}),v.state._active=!1,v.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return v.fireGestureHandler()}))},v.onClick=function(E){v.state._isTap||E.stopPropagation()},v}var m=b.prototype;return m.startDrag=function(E){var S=kE(E);this.updateSharedState(Kd(E)),this.updateGestureState(pc({},R9(this,S,E),ul(this,E,!0),{_pointerId:E.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(S)),this.fireGestureHandler()},m.addBindings=function(E){if(Na(E,"onPointerDown",this.onDragStart),this.config.filterTaps){var S=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";Na(E,S,this.onClick)}},b}(GG);function dRn(d,b){var m,v=[],E,S=!1;function y(){for(var $=arguments.length,N=new Array($),B=0;B<$;B++)N[B]=arguments[B];return S&&m===this&&b(N,v)||(E=d.apply(this,N),S=!0,m=this,v=N),E}return y}function dG(d,b){if(d===b)return!0;if(d&&b&&typeof d=="object"&&typeof b=="object"){if(d.constructor!==b.constructor)return!1;var m,v,E;if(Array.isArray(d)){if(m=d.length,m!==b.length)return!1;for(v=m;v--!==0;)if(!dG(d[v],b[v]))return!1;return!0}var S;if(typeof Map=="function"&&d instanceof Map&&b instanceof Map){if(d.size!==b.size)return!1;for(S=d.entries();!(v=S.next()).done;)if(!b.has(v.value[0]))return!1;for(S=d.entries();!(v=S.next()).done;)if(!dG(v.value[1],b.get(v.value[0])))return!1;return!0}if(typeof Set=="function"&&d instanceof Set&&b instanceof Set){if(d.size!==b.size)return!1;for(S=d.entries();!(v=S.next()).done;)if(!b.has(v.value[0]))return!1;return!0}if(d.constructor===RegExp)return d.source===b.source&&d.flags===b.flags;if(d.valueOf!==Object.prototype.valueOf)return d.valueOf()===b.valueOf();if(d.toString!==Object.prototype.toString)return d.toString()===b.toString();if(E=Object.keys(d),m=E.length,m!==Object.keys(b).length)return!1;for(v=m;v--!==0;)if(!Object.prototype.hasOwnProperty.call(b,E[v]))return!1;if(typeof Element<"u"&&d instanceof Element)return!1;for(v=m;v--!==0;)if(!(E[v]==="_owner"&&d.$$typeof)&&!dG(d[E[v]],b[E[v]]))return!1;return!0}return d!==d&&b!==b}function bRn(d,b){try{return dG(d,b)}catch(m){if((m.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw m}}function wRn(d,b){b===void 0&&(b={}),qd.set("drag",vfn);var m=Ee.useRef();return m.current||(m.current=dRn(YBn,bRn)),gfn({drag:d},m.current(b))}var gRn=function(d){z9(b,d);function b(){return d.apply(this,arguments)||this}var m=b.prototype;return m.getInternalMovement=function(E,S){var y=S.values[1],$=E[0],N=E[1],B=N===void 0?y:N,H=B-y,z=S.turns;return Math.abs(H)>270&&(z+=AG(H)),Bbe([$,B-360*z],S.initial)},m.getKinematics=function(E,S){var y=this.getMovement(E),$=(E[1]-y.movement[1]-this.state.initial[1])/360,N=S.timeStamp-this.state.timeStamp,B=cfn(y.movement,y.delta,N);return pc({turns:$},y,B)},m.mapStateValues=function(E){return{da:E.values,vdva:E.velocities}},b}(hfn),pRn=function(d){z9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="pinching",v.stateKey="pinch",v.pinchShouldStart=function(E){var S=Kd(E),y=S.touches;return v.enabled&&y===2},v.onPinchStart=function(E){if(v.pinchShouldStart(E)){var S=fsn(E),y=S.values,$=S.origin;v.updateSharedState(Kd(E)),v.updateGestureState(pc({},R9(hs(v),y,E),ul(hs(v),E,!0),{cancel:v.onCancel,origin:$})),v.updateGestureState(v.getMovement(y)),v.fireGestureHandler()}},v.onPinchChange=function(E){var S=v.state,y=S.canceled,$=S._active;if(!(y||!$)){var N=Kd(E);v.updateSharedState(N);var B=fsn(E),H=B.values,z=B.origin,Y=v.getKinematics(H,E);v.updateGestureState(pc({},ul(hs(v),E),Y,{origin:z})),v.fireGestureHandler()}},v.onPinchEnd=function(E){v.state.active&&(v.state._active=!1,v.updateSharedState({down:!1,touches:0}),v.updateGestureState(pc({},ul(hs(v),E),v.getMovement(v.state.values))),v.fireGestureHandler())},v.onCancel=function(){v.state.canceled||(v.state._active=!1,v.updateGestureState({canceled:!0}),v.updateSharedState({down:!1,touches:0}),requestAnimationFrame(function(){return v.fireGestureHandler()}))},v.onGestureStart=function(E){if(v.enabled){E.preventDefault();var S=osn(E);v.updateSharedState(Kd(E)),v.updateGestureState(pc({},R9(hs(v),S,E),ul(hs(v),E,!0),{origin:[E.clientX,E.clientY],cancel:v.onCancel})),v.updateGestureState(v.getMovement(S)),v.fireGestureHandler()}},v.onGestureChange=function(E){var S=v.state,y=S.canceled,$=S._active;if(!(y||!$)){E.preventDefault();var N=Kd(E);v.updateSharedState(N);var B=osn(E),H=v.getKinematics(B,E);v.updateGestureState(pc({},ul(hs(v),E),H,{origin:[E.clientX,E.clientY]})),v.fireGestureHandler()}},v.onGestureEnd=function(E){E.preventDefault(),v.state.active&&(v.state._active=!1,v.updateSharedState({down:!1,touches:0}),v.updateGestureState(pc({},ul(hs(v),E),v.getMovement(v.state.values),{origin:[E.clientX,E.clientY]})),v.fireGestureHandler())},v.wheelShouldRun=function(E){return v.enabled&&E.ctrlKey},v.getWheelValuesFromEvent=function(E){var S=mfn(E),y=S[1],$=v.state.values,N=$[0],B=$[1],H=N-y,z=B!==void 0?B:0;return{values:[H,z],origin:[E.clientX,E.clientY],delta:[0,y]}},v.onWheel=function(E){v.wheelShouldRun(E)&&(v.setTimeout(v.onWheelEnd),v.state._active?v.onWheelChange(E):v.onWheelStart(E))},v.onWheelStart=function(E){var S=v.getWheelValuesFromEvent(E),y=S.values,$=S.delta,N=S.origin;E.cancelable&&E.preventDefault(),v.updateSharedState(Kd(E)),v.updateGestureState(pc({},R9(hs(v),y,E),ul(hs(v),E,!0),{initial:v.state.values,offset:y,delta:$,origin:N})),v.updateGestureState(v.getMovement(y)),v.fireGestureHandler()},v.onWheelChange=function(E){v.updateSharedState(Kd(E));var S=v.getWheelValuesFromEvent(E),y=S.values,$=S.origin,N=S.delta;v.updateGestureState(pc({},ul(hs(v),E),v.getKinematics(y,E),{origin:$,delta:N})),v.fireGestureHandler()},v.onWheelEnd=function(){v.state._active=!1,v.updateGestureState(v.getMovement(v.state.values)),v.fireGestureHandler()},v}var m=b.prototype;return m.addBindings=function(E){this.controller.config.domTarget&&!fRn()&&oRn()?(Na(E,"onGestureStart",this.onGestureStart),Na(E,"onGestureChange",this.onGestureChange),Na(E,"onGestureEnd",this.onGestureEnd)):(Na(E,"onTouchStart",this.onPinchStart),Na(E,"onTouchMove",this.onPinchChange),Na(E,"onTouchEnd",this.onPinchEnd),Na(E,"onTouchCancel",this.onPinchEnd),Na(E,"onWheel",this.onWheel))},b}(gRn),mRn=function(d){z9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="wheeling",v.stateKey="wheel",v.debounced=!0,v.handleEvent=function(E){if(!(E.ctrlKey&&"pinch"in v.controller.handlers)&&v.enabled){v.setTimeout(v.onEnd),v.updateSharedState(Kd(E));var S=Y0e(mfn(E),v.state.values);if(v.state._active)v.updateGestureState(pc({},ul(hs(v),E),v.getKinematics(S,E)));else{v.updateGestureState(pc({},R9(hs(v),S,E),ul(hs(v),E,!0),{initial:v.state.values}));var y=v.getMovement(S),$=rfn(y.delta);v.updateGestureState(y),v.updateGestureState($)}v.fireGestureHandler()}},v.onEnd=function(){var E=v.getMovement(v.state.values);v.updateGestureState(E),v.updateGestureState({_active:!1,velocities:[0,0],velocity:0}),v.fireGestureHandler()},v}var m=b.prototype;return m.addBindings=function(E){Na(E,"onWheel",this.handleEvent)},b}(GG),lsn=function(d){z9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="moving",v.stateKey="move",v.debounced=!0,v.onMove=function(E){v.enabled&&(v.setTimeout(v.onMoveEnd),v.state._active?v.onMoveChange(E):v.onMoveStart(E))},v.onMoveStart=function(E){v.updateSharedState(Kd(E));var S=kE(E);v.updateGestureState(pc({},R9(hs(v),S,E),ul(hs(v),E,!0))),v.updateGestureState(v.getMovement(S)),v.fireGestureHandler()},v.onMoveChange=function(E){v.updateSharedState(Kd(E));var S=kE(E);v.updateGestureState(pc({},ul(hs(v),E),v.getKinematics(S,E))),v.fireGestureHandler()},v.onMoveEnd=function(){var E=v.state.values;v.updateGestureState(v.getMovement(E)),v.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),v.fireGestureHandler()},v.onPointerEnter=function(E){if(v.controller.state.shared.hovering=!0,!!v.controller.config.enabled){if(v.controller.config.hover.enabled){var S=kE(E),y=pc({},v.controller.state.shared,v.state,ul(hs(v),E,!0),{values:S,active:!0,hovering:!0});v.controller.handlers.hover(pc({},y,v.mapStateValues(y)))}"move"in v.controller.handlers&&v.onMoveStart(E)}},v.onPointerLeave=function(E){if(v.controller.state.shared.hovering=!1,"move"in v.controller.handlers&&v.onMoveEnd(),!!v.controller.config.hover.enabled){var S=kE(E),y=pc({},v.controller.state.shared,v.state,ul(hs(v),E),{values:S,active:!1});v.controller.handlers.hover(pc({},y,v.mapStateValues(y)))}},v}var m=b.prototype;return m.addBindings=function(E){"move"in this.controller.handlers&&Na(E,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(Na(E,"onPointerEnter",this.onPointerEnter),Na(E,"onPointerLeave",this.onPointerLeave))},b}(GG),vRn=function(d){z9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="scrolling",v.stateKey="scroll",v.debounced=!0,v.handleEvent=function(E){if(v.enabled){v.clearTimeout(),v.setTimeout(v.onEnd);var S=lRn(E);if(v.updateSharedState(Kd(E)),v.state._active)v.updateGestureState(pc({},ul(hs(v),E),v.getKinematics(S,E)));else{v.updateGestureState(pc({},R9(hs(v),S,E),ul(hs(v),E,!0),{initial:v.state.values}));var y=v.getMovement(S),$=rfn(y.delta);v.updateGestureState(y),v.updateGestureState($)}v.fireGestureHandler()}},v.onEnd=function(){v.state._active=!1,v.updateGestureState(pc({},v.getMovement(v.state.values),{velocities:[0,0],velocity:0})),v.fireGestureHandler()},v}var m=b.prototype;return m.addBindings=function(E){Na(E,"onScroll",this.handleEvent)},b}(GG),yRn=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function kRn(d){var b={},m={},v=new Set;for(var E in d)yRn.test(E)?(v.add(RegExp.lastMatch),m[E]=d[E]):b[E]=d[E];return[m,b,v]}function jRn(d,b){b===void 0&&(b={});var m=kRn(d),v=m[0],E=m[1],S=m[2];qd.set("drag",vfn),qd.set("hover",lsn),qd.set("move",lsn),qd.set("pinch",pRn),qd.set("scroll",vRn),qd.set("wheel",mRn);var y=QBn(b,S),$={};return S.has("onDrag")&&($.drag=rO(v,"onDrag")),S.has("onWheel")&&($.wheel=rO(v,"onWheel")),S.has("onScroll")&&($.scroll=rO(v,"onScroll")),S.has("onMove")&&($.move=rO(v,"onMove")),S.has("onPinch")&&($.pinch=rO(v,"onPinch")),S.has("onHover")&&($.hover=v.onHover),gfn($,y,E)}function rO(d,b){var m=b+"Start",v=b+"End",E=function(y){var $=void 0;return y.first&&m in d&&d[m](y),b in d&&($=d[b](y)),y.last&&v in d&&d[v](y),$};return E}var yfn={exports:{}};(function(d,b){(function(m){d.exports=m()})(function(){return function(){function m(v,E,S){function y(B,H){if(!E[B]){if(!v[B]){var z=typeof uG=="function"&&uG;if(!H&&z)return z(B,!0);if($)return $(B,!0);var Y=new Error("Cannot find module '"+B+"'");throw Y.code="MODULE_NOT_FOUND",Y}var Z=E[B]={exports:{}};v[B][0].call(Z.exports,function(J){var qe=v[B][1][J];return y(qe||J)},Z,Z.exports,m,v,E,S)}return E[B].exports}for(var $=typeof uG=="function"&&uG,N=0;N0&&arguments[0]!==void 0?arguments[0]:{},Y=z.defaultLayoutOptions,Z=Y===void 0?{}:Y,J=z.algorithms,qe=J===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:J,on=z.workerFactory,bn=z.workerUrl;if(y(this,B),this.defaultLayoutOptions=Z,this.initialized=!1,typeof bn>"u"&&typeof on>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var xn=on;typeof bn<"u"&&typeof on>"u"&&(xn=function(bt){return new Worker(bt)});var Ue=xn(bn);if(typeof Ue.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new N(Ue),this.worker.postMessage({cmd:"register",algorithms:qe}).then(function(mn){return H.initialized=!0}).catch(console.err)}return S(B,[{key:"layout",value:function(z){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Z=Y.layoutOptions,J=Z===void 0?this.defaultLayoutOptions:Z,qe=Y.logging,on=qe===void 0?!1:qe,bn=Y.measureExecutionTime,xn=bn===void 0?!1:bn;return z?this.worker.postMessage({cmd:"layout",graph:z,layoutOptions:J,options:{logging:on,measureExecutionTime:xn}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),B}();E.default=$;var N=function(){function B(H){var z=this;if(y(this,B),H===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=H,this.worker.onmessage=function(Y){setTimeout(function(){z.receive(z,Y)},0)}}return S(B,[{key:"postMessage",value:function(z){var Y=this.id||0;this.id=Y+1,z.id=Y;var Z=this;return new Promise(function(J,qe){Z.resolvers[Y]=function(on,bn){on?(Z.convertGwtStyleError(on),qe(on)):J(bn)},Z.worker.postMessage(z)})}},{key:"receive",value:function(z,Y){var Z=Y.data,J=z.resolvers[Z.id];J&&(delete z.resolvers[Z.id],Z.error?J(Z.error):J(null,Z.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(z){if(z){var Y=z.__java$exception;Y&&(Y.cause&&Y.cause.backingJsObject&&(z.cause=Y.cause.backingJsObject,this.convertGwtStyleError(z.cause)),delete z.__java$exception)}}}]),B}()},{}],2:[function(m,v,E){(function(S){(function(){var y;typeof window<"u"?y=window:typeof S<"u"?y=S:typeof self<"u"&&(y=self);var $;function N(){}function B(){}function H(){}function z(){}function Y(){}function Z(){}function J(){}function qe(){}function on(){}function bn(){}function xn(){}function Ue(){}function mn(){}function bt(){}function _t(){}function Mi(){}function li(){}function sc(){}function Zi(){}function fr(){}function Mc(){}function lr(){}function er(){}function nr(){}function wr(){}function ai(){}function U(){}function Mh(){}function _a(){}function ua(){}function Gs(){}function _4(){}function Om(){}function zp(){}function Eb(){}function og(){}function Dm(){}function nu(){}function Af(){}function Tb(){}function pu(){}function ao(){}function sl(){}function Cb(){}function B4(){}function $O(){}function O1(){}function D1(){}function $m(){}function bs(){}function R4(){}function U9(){}function fg(){}function Ro(){}function Mb(){}function Sb(){}function LO(){}function UG(){}function W9(){}function FO(){}function NO(){}function _O(){}function BO(){}function RO(){}function Ot(){}function Dc(){}function qc(){}function lg(){}function KO(){}function qO(){}function HO(){}function VO(){}function GO(){}function xE(){}function IE(){}function OE(){}function DE(){}function $E(){}function LE(){}function qbe(){}function Hbe(){}function Vbe(){}function Gbe(){}function zbe(){}function Ube(){}function Wbe(){}function Xbe(){}function Ybe(){}function Qbe(){}function Jbe(){}function Zbe(){}function ewe(){}function WG(){}function nwe(){}function twe(){}function iwe(){}function rwe(){}function zO(){}function UO(){}function FE(){}function cwe(){}function uwe(){}function WO(){}function swe(){}function owe(){}function fwe(){}function NE(){}function lwe(){}function awe(){}function hwe(){}function dwe(){}function bwe(){}function wwe(){}function gwe(){}function pwe(){}function mwe(){}function XG(){}function vwe(){}function ywe(){}function kwe(){}function jwe(){}function Ewe(){}function YG(){}function Twe(){}function Cwe(){}function Mwe(){}function Swe(){}function Pwe(){}function Awe(){}function xwe(){}function Iwe(){}function Owe(){}function Dwe(){}function $we(){}function Lwe(){}function Fwe(){}function Nwe(){}function XO(){}function _we(){}function Bwe(){}function Rwe(){}function Kwe(){}function qwe(){}function QG(){}function Hwe(){}function Vwe(){}function Gwe(){}function zwe(){}function Uwe(){}function Wwe(){}function Xwe(){}function Ywe(){}function Qwe(){}function Jwe(){}function Zwe(){}function ege(){}function nge(){}function tge(){}function ige(){}function rge(){}function cge(){}function uge(){}function sge(){}function oge(){}function fge(){}function lge(){}function age(){}function hge(){}function dge(){}function bge(){}function wge(){}function gge(){}function pge(){}function mge(){}function vge(){}function yge(){}function kge(){}function jge(){}function Ege(){}function Tge(){}function Cge(){}function Mge(){}function Sge(){}function Pge(){}function Age(){}function xge(){}function Ige(){}function Oge(){}function Dge(){}function $ge(){}function Lge(){}function Fge(){}function Nge(){}function _ge(){}function Bge(){}function Rge(){}function Kge(){}function qge(){}function Hge(){}function Vge(){}function Gge(){}function zge(){}function Uge(){}function Wge(){}function Xge(){}function Yge(){}function Qge(){}function Jge(){}function Zge(){}function epe(){}function npe(){}function tpe(){}function ipe(){}function rpe(){}function cpe(){}function upe(){}function spe(){}function ope(){}function fpe(){}function lpe(){}function ape(){}function hpe(){}function dpe(){}function bpe(){}function wpe(){}function gpe(){}function ppe(){}function mpe(){}function vpe(){}function ype(){}function kpe(){}function jpe(){}function Epe(){}function Tpe(){}function Cpe(){}function Mpe(){}function Spe(){}function Ppe(){}function Ape(){}function xpe(){}function Ipe(){}function Ope(){}function Dpe(){}function $pe(){}function JG(){}function Lpe(){}function Fpe(){}function Npe(){}function _pe(){}function Bpe(){}function Rpe(){}function Kpe(){}function qpe(){}function Hpe(){}function Vpe(){}function Gpe(){}function zpe(){}function Upe(){}function Wpe(){}function Xpe(){}function Ype(){}function Qpe(){}function Jpe(){}function Zpe(){}function e2e(){}function n2e(){}function t2e(){}function i2e(){}function r2e(){}function c2e(){}function u2e(){}function s2e(){}function o2e(){}function f2e(){}function l2e(){}function a2e(){}function h2e(){}function d2e(){}function b2e(){}function w2e(){}function g2e(){}function p2e(){}function m2e(){}function v2e(){}function y2e(){}function k2e(){}function j2e(){}function E2e(){}function T2e(){}function C2e(){}function M2e(){}function S2e(){}function P2e(){}function A2e(){}function x2e(){}function I2e(){}function O2e(){}function D2e(){}function $2e(){}function L2e(){}function F2e(){}function N2e(){}function _2e(){}function B2e(){}function R2e(){}function K2e(){}function q2e(){}function H2e(){}function V2e(){}function G2e(){}function z2e(){}function U2e(){}function ZG(){}function W2e(){}function X2e(){}function Y2e(){}function Q2e(){}function J2e(){}function Z2e(){}function eme(){}function nme(){}function tme(){}function ime(){}function rme(){}function cme(){}function ume(){}function sme(){}function ome(){}function fme(){}function lme(){}function ame(){}function hme(){}function dme(){}function ez(){}function bme(){}function wme(){}function gme(){}function pme(){}function mme(){}function vme(){}function nz(){}function tz(){}function yme(){}function iz(){}function rz(){}function kme(){}function jme(){}function Eme(){}function Tme(){}function Cme(){}function Mme(){}function Sme(){}function Pme(){}function Ame(){}function cz(){}function xme(){}function Ime(){}function Ome(){}function Dme(){}function $me(){}function Lme(){}function Fme(){}function Nme(){}function _me(){}function Bme(){}function Rme(){}function Kme(){}function qme(){}function Hme(){}function Vme(){}function Gme(){}function zme(){}function Ume(){}function Wme(){}function Xme(){}function Yme(){}function Qme(){}function Jme(){}function Zme(){}function eve(){}function nve(){}function tve(){}function ive(){}function rve(){}function cve(){}function uve(){}function sve(){}function ove(){}function fve(){}function lve(){}function ave(){}function hve(){}function dve(){}function bve(){}function wve(){}function gve(){}function pve(){}function mve(){}function vve(){}function yve(){}function kve(){}function jve(){}function Eve(){}function Tve(){}function Cve(){}function Mve(){}function Sve(){}function Pve(){}function Ave(){}function xve(){}function Ive(){}function Ove(){}function Dve(){}function $ve(){}function Lve(){}function Fve(){}function Nve(){}function _ve(){}function Bve(){}function Rve(){}function Kve(){}function qve(){}function Hve(){}function YO(){}function QO(){}function JO(){}function Vve(){}function Gve(){}function zve(){}function Uve(){}function Wve(){}function uz(){}function Xve(){}function Yve(){}function Ifn(){}function Qve(){}function Jve(){}function Zve(){}function e3e(){}function n3e(){}function t3e(){}function i3e(){}function $1(){}function r3e(){}function Up(){}function sz(){}function c3e(){}function u3e(){}function s3e(){}function o3e(){}function f3e(){}function l3e(){}function a3e(){}function h3e(){}function d3e(){}function b3e(){}function w3e(){}function g3e(){}function p3e(){}function m3e(){}function v3e(){}function y3e(){}function k3e(){}function j3e(){}function E3e(){}function T3e(){}function C3e(){}function Se(){}function M3e(){}function S3e(){}function P3e(){}function A3e(){}function x3e(){}function I3e(){}function O3e(){}function D3e(){}function $3e(){}function L3e(){}function ZO(){}function F3e(){}function N3e(){}function _3e(){}function B3e(){}function R3e(){}function oz(){}function _E(){}function BE(){}function K3e(){}function fz(){}function RE(){}function q3e(){}function H3e(){}function V3e(){}function G3e(){}function z3e(){}function U3e(){}function KE(){}function W3e(){}function X3e(){}function Y3e(){}function qE(){}function Q3e(){}function lz(){}function J3e(){}function eD(){}function az(){}function Z3e(){}function e4e(){}function n4e(){}function t4e(){}function Ofn(){}function i4e(){}function r4e(){}function c4e(){}function u4e(){}function s4e(){}function o4e(){}function f4e(){}function l4e(){}function a4e(){}function h4e(){}function Lm(){}function nD(){}function d4e(){}function b4e(){}function w4e(){}function g4e(){}function p4e(){}function m4e(){}function v4e(){}function y4e(){}function k4e(){}function j4e(){}function E4e(){}function T4e(){}function C4e(){}function M4e(){}function S4e(){}function P4e(){}function A4e(){}function x4e(){}function I4e(){}function O4e(){}function D4e(){}function $4e(){}function L4e(){}function F4e(){}function N4e(){}function _4e(){}function B4e(){}function R4e(){}function K4e(){}function q4e(){}function H4e(){}function V4e(){}function G4e(){}function z4e(){}function U4e(){}function W4e(){}function X4e(){}function Y4e(){}function Q4e(){}function J4e(){}function Z4e(){}function e5e(){}function n5e(){}function t5e(){}function i5e(){}function r5e(){}function c5e(){}function u5e(){}function s5e(){}function o5e(){}function f5e(){}function l5e(){}function a5e(){}function h5e(){}function d5e(){}function b5e(){}function w5e(){}function g5e(){}function p5e(){}function m5e(){}function v5e(){}function y5e(){}function k5e(){}function j5e(){}function E5e(){}function T5e(){}function C5e(){}function M5e(){}function S5e(){}function P5e(){}function A5e(){}function x5e(){}function I5e(){}function O5e(){}function D5e(){}function $5e(){}function L5e(){}function F5e(){}function N5e(){}function _5e(){}function B5e(){}function R5e(){}function K5e(){}function q5e(){}function H5e(){}function V5e(){}function G5e(){}function z5e(){}function U5e(){}function W5e(){}function X5e(){}function Y5e(){}function Q5e(){}function J5e(){}function Z5e(){}function e6e(){}function n6e(){}function t6e(){}function i6e(){}function r6e(){}function c6e(){}function hz(){}function u6e(){}function s6e(){}function tD(){U4()}function o6e(){WF()}function f6e(){y6()}function l6e(){NS()}function a6e(){ane()}function h6e(){jf()}function d6e(){jee()}function b6e(){U7()}function w6e(){h8()}function g6e(){a8()}function p6e(){_8()}function m6e(){yEe()}function v6e(){A2()}function y6e(){mT()}function k6e(){IOe()}function j6e(){V$e()}function E6e(){fDe()}function T6e(){Mxe()}function C6e(){zv()}function M6e(){e1()}function S6e(){G$e()}function P6e(){vIe()}function A6e(){rie()}function x6e(){O_e()}function I6e(){Sxe()}function O6e(){be()}function D6e(){Cxe()}function $6e(){z$e()}function L6e(){XLe()}function F6e(){Axe()}function N6e(){bDe()}function _6e(){kEe()}function B6e(){zne()}function R6e(){ow()}function K6e(){vLe()}function q6e(){Q7()}function H6e(){E_()}function V6e(){xN()}function G6e(){B0()}function z6e(){qJ()}function U6e(){Pxe()}function W6e(){Rqe()}function X6e(){Hne()}function Y6e(){w_()}function Q6e(){jM()}function J6e(){VS()}function dz(){ht()}function Z6e(){cS()}function eye(){YZ()}function bz(){fP()}function hf(){wSe()}function wz(){OF()}function nye(){xte()}function gz(e){nn(e)}function tye(e){this.a=e}function HE(e){this.a=e}function iye(e){this.a=e}function rye(e){this.a=e}function cye(e){this.a=e}function uye(e){this.a=e}function sye(e){this.a=e}function oye(e){this.a=e}function pz(e){this.a=e}function mz(e){this.a=e}function fye(e){this.a=e}function iD(e){this.a=e}function lye(e){this.a=e}function rD(e){this.a=e}function aye(e){this.a=e}function cD(e){this.a=e}function hye(e){this.a=e}function uD(e){this.a=e}function dye(e){this.a=e}function bye(e){this.a=e}function wye(e){this.a=e}function vz(e){this.b=e}function gye(e){this.c=e}function pye(e){this.a=e}function mye(e){this.a=e}function vye(e){this.a=e}function yye(e){this.a=e}function kye(e){this.a=e}function jye(e){this.a=e}function Eye(e){this.a=e}function Tye(e){this.a=e}function Cye(e){this.a=e}function Mye(e){this.a=e}function Sye(e){this.a=e}function Pye(e){this.a=e}function Aye(e){this.a=e}function yz(e){this.a=e}function kz(e){this.a=e}function VE(e){this.a=e}function X9(e){this.a=e}function L1(){this.a=[]}function xye(e,n){e.a=n}function Dfn(e,n){e.a=n}function $fn(e,n){e.b=n}function Lfn(e,n){e.b=n}function Ffn(e,n){e.b=n}function jz(e,n){e.j=n}function Nfn(e,n){e.g=n}function _fn(e,n){e.i=n}function Bfn(e,n){e.c=n}function Rfn(e,n){e.d=n}function Kfn(e,n){e.d=n}function qfn(e,n){e.c=n}function F1(e,n){e.k=n}function Hfn(e,n){e.c=n}function Ez(e,n){e.c=n}function Tz(e,n){e.a=n}function Vfn(e,n){e.a=n}function Gfn(e,n){e.f=n}function zfn(e,n){e.a=n}function Ufn(e,n){e.b=n}function sD(e,n){e.d=n}function GE(e,n){e.i=n}function Cz(e,n){e.o=n}function Wfn(e,n){e.r=n}function Xfn(e,n){e.a=n}function Yfn(e,n){e.b=n}function Iye(e,n){e.e=n}function Qfn(e,n){e.f=n}function Mz(e,n){e.g=n}function Jfn(e,n){e.e=n}function Zfn(e,n){e.f=n}function eln(e,n){e.f=n}function nln(e,n){e.n=n}function tln(e,n){e.a=n}function iln(e,n){e.a=n}function rln(e,n){e.c=n}function cln(e,n){e.c=n}function uln(e,n){e.d=n}function sln(e,n){e.e=n}function oln(e,n){e.g=n}function fln(e,n){e.a=n}function lln(e,n){e.c=n}function aln(e,n){e.d=n}function hln(e,n){e.e=n}function dln(e,n){e.f=n}function bln(e,n){e.j=n}function wln(e,n){e.a=n}function gln(e,n){e.b=n}function pln(e,n){e.a=n}function Oye(e){e.b=e.a}function Dye(e){e.c=e.d.d}function K4(e){this.d=e}function N1(e){this.a=e}function Fm(e){this.a=e}function Sz(e){this.a=e}function sa(e){this.a=e}function Y9(e){this.a=e}function $ye(e){this.a=e}function Pz(e){this.a=e}function Q9(e){this.a=e}function Az(e){this.a=e}function xz(e){this.a=e}function Iz(e){this.a=e}function Pb(e){this.a=e}function J9(e){this.a=e}function Z9(e){this.a=e}function Oz(e){this.b=e}function Nm(e){this.b=e}function _m(e){this.b=e}function oD(e){this.a=e}function Lye(e){this.a=e}function Dz(e){this.a=e}function fD(e){this.c=e}function A(e){this.c=e}function Fye(e){this.c=e}function $z(e){this.a=e}function Lz(e){this.a=e}function Fz(e){this.a=e}function Nz(e){this.a=e}function Ct(e){this.a=e}function Nye(e){this.a=e}function _z(e){this.a=e}function Bz(e){this.a=e}function _ye(e){this.a=e}function Bye(e){this.a=e}function q4(e){this.a=e}function Rye(e){this.a=e}function Kye(e){this.a=e}function qye(e){this.a=e}function Hye(e){this.a=e}function Vye(e){this.a=e}function Gye(e){this.a=e}function zye(e){this.a=e}function Uye(e){this.a=e}function Wye(e){this.a=e}function Xye(e){this.a=e}function Yye(e){this.a=e}function Qye(e){this.a=e}function Jye(e){this.a=e}function Zye(e){this.a=e}function e9e(e){this.a=e}function n9e(e){this.a=e}function t9e(e){this.a=e}function e8(e){this.a=e}function i9e(e){this.a=e}function r9e(e){this.a=e}function zE(e){this.a=e}function c9e(e){this.a=e}function u9e(e){this.a=e}function Bm(e){this.a=e}function Rz(e){this.a=e}function s9e(e){this.a=e}function o9e(e){this.a=e}function f9e(e){this.a=e}function l9e(e){this.a=e}function a9e(e){this.a=e}function Kz(e){this.a=e}function qz(e){this.a=e}function Hz(e){this.a=e}function UE(e){this.a=e}function WE(e){this.e=e}function Rm(e){this.a=e}function h9e(e){this.a=e}function Wp(e){this.a=e}function Vz(e){this.a=e}function d9e(e){this.a=e}function b9e(e){this.a=e}function w9e(e){this.a=e}function g9e(e){this.a=e}function p9e(e){this.a=e}function m9e(e){this.a=e}function v9e(e){this.a=e}function y9e(e){this.a=e}function k9e(e){this.a=e}function j9e(e){this.a=e}function E9e(e){this.a=e}function Gz(e){this.a=e}function T9e(e){this.a=e}function C9e(e){this.a=e}function M9e(e){this.a=e}function S9e(e){this.a=e}function P9e(e){this.a=e}function A9e(e){this.a=e}function x9e(e){this.a=e}function I9e(e){this.a=e}function O9e(e){this.a=e}function D9e(e){this.a=e}function $9e(e){this.a=e}function L9e(e){this.a=e}function F9e(e){this.a=e}function N9e(e){this.a=e}function _9e(e){this.a=e}function B9e(e){this.a=e}function R9e(e){this.a=e}function K9e(e){this.a=e}function q9e(e){this.a=e}function H9e(e){this.a=e}function V9e(e){this.a=e}function G9e(e){this.a=e}function z9e(e){this.a=e}function U9e(e){this.a=e}function W9e(e){this.a=e}function X9e(e){this.a=e}function Y9e(e){this.a=e}function Q9e(e){this.a=e}function J9e(e){this.a=e}function Z9e(e){this.a=e}function e8e(e){this.a=e}function n8e(e){this.a=e}function t8e(e){this.a=e}function i8e(e){this.a=e}function r8e(e){this.a=e}function c8e(e){this.a=e}function u8e(e){this.a=e}function s8e(e){this.c=e}function o8e(e){this.b=e}function f8e(e){this.a=e}function l8e(e){this.a=e}function a8e(e){this.a=e}function h8e(e){this.a=e}function d8e(e){this.a=e}function b8e(e){this.a=e}function w8e(e){this.a=e}function g8e(e){this.a=e}function p8e(e){this.a=e}function m8e(e){this.a=e}function v8e(e){this.a=e}function y8e(e){this.a=e}function k8e(e){this.a=e}function j8e(e){this.a=e}function E8e(e){this.a=e}function T8e(e){this.a=e}function C8e(e){this.a=e}function M8e(e){this.a=e}function S8e(e){this.a=e}function P8e(e){this.a=e}function A8e(e){this.a=e}function x8e(e){this.a=e}function I8e(e){this.a=e}function O8e(e){this.a=e}function Sh(e){this.a=e}function Xp(e){this.a=e}function D8e(e){this.a=e}function $8e(e){this.a=e}function L8e(e){this.a=e}function F8e(e){this.a=e}function N8e(e){this.a=e}function _8e(e){this.a=e}function B8e(e){this.a=e}function R8e(e){this.a=e}function K8e(e){this.a=e}function q8e(e){this.a=e}function H8e(e){this.a=e}function V8e(e){this.a=e}function G8e(e){this.a=e}function z8e(e){this.a=e}function U8e(e){this.a=e}function W8e(e){this.a=e}function XE(e){this.a=e}function X8e(e){this.a=e}function Y8e(e){this.a=e}function Q8e(e){this.a=e}function J8e(e){this.a=e}function Z8e(e){this.a=e}function e7e(e){this.a=e}function n7e(e){this.a=e}function t7e(e){this.a=e}function i7e(e){this.a=e}function r7e(e){this.a=e}function c7e(e){this.a=e}function u7e(e){this.a=e}function s7e(e){this.a=e}function o7e(e){this.a=e}function f7e(e){this.a=e}function l7e(e){this.a=e}function a7e(e){this.a=e}function h7e(e){this.a=e}function d7e(e){this.a=e}function b7e(e){this.a=e}function w7e(e){this.a=e}function g7e(e){this.a=e}function p7e(e){this.a=e}function m7e(e){this.a=e}function v7e(e){this.a=e}function y7e(e){this.a=e}function k7e(e){this.a=e}function j7e(e){this.a=e}function zz(e){this.a=e}function Rt(e){this.b=e}function E7e(e){this.f=e}function Uz(e){this.a=e}function T7e(e){this.a=e}function C7e(e){this.a=e}function M7e(e){this.a=e}function S7e(e){this.a=e}function P7e(e){this.a=e}function A7e(e){this.a=e}function x7e(e){this.a=e}function I7e(e){this.a=e}function n8(e){this.a=e}function O7e(e){this.a=e}function D7e(e){this.b=e}function Wz(e){this.c=e}function YE(e){this.e=e}function $7e(e){this.a=e}function QE(e){this.a=e}function JE(e){this.a=e}function lD(e){this.a=e}function L7e(e){this.a=e}function F7e(e){this.d=e}function Xz(e){this.a=e}function Yz(e){this.a=e}function Gd(e){this.e=e}function mln(){this.a=0}function ag(){wCe(this)}function oe(){g$(this)}function Ln(){Wu(this)}function aD(){vAe(this)}function N7e(){}function zd(){this.c=xde}function vln(e,n){n.Wb(e)}function _7e(e,n){e.b+=n}function B7e(e){e.b=new PD}function I(e){return e.e}function yln(e){return e.a}function kln(e){return e.a}function jln(e){return e.a}function Eln(e){return e.a}function Tln(e){return e.a}function Cln(){return null}function Mln(){return null}function Sln(){FU(),_On()}function Pln(e){e.b.tf(e.e)}function H4(e,n){e.b=n-e.b}function V4(e,n){e.a=n-e.a}function R7e(e,n){n.ad(e.a)}function Aln(e,n){Ei(n,e)}function xln(e,n,t){e.Od(t,n)}function t8(e,n){e.e=n,n.b=e}function Qz(e){dl(),this.a=e}function K7e(e){dl(),this.a=e}function q7e(e){dl(),this.a=e}function Jz(e){zb(),this.a=e}function H7e(e){pv(),HK.be(e)}function _1(){JCe.call(this)}function Zz(){JCe.call(this)}function eU(){_1.call(this)}function hD(){_1.call(this)}function V7e(){_1.call(this)}function i8(){_1.call(this)}function $u(){_1.call(this)}function G4(){_1.call(this)}function Kn(){_1.call(this)}function zs(){_1.call(this)}function G7e(){_1.call(this)}function Sc(){_1.call(this)}function z7e(){_1.call(this)}function U7e(){this.a=this}function ZE(){this.Bb|=256}function W7e(){this.b=new YTe}function nU(){nU=U,new Ln}function tU(){eU.call(this)}function X7e(e,n){e.length=n}function eT(e,n){se(e.a,n)}function Iln(e,n){dne(e.c,n)}function Oln(e,n){ki(e.b,n)}function Dln(e,n){IS(e.a,n)}function $ln(e,n){iN(e.a,n)}function Km(e,n){yt(e.e,n)}function Yp(e){US(e.c,e.b)}function Lln(e,n){e.kc().Nb(n)}function iU(e){this.a=D6n(e)}function Si(){this.a=new Ln}function Y7e(){this.a=new Ln}function nT(){this.a=new oe}function dD(){this.a=new oe}function rU(){this.a=new oe}function ho(){this.a=new HO}function B1(){this.a=new SOe}function cU(){this.a=new XG}function uU(){this.a=new hEe}function Q7e(){this.a=new eIe}function sU(){this.a=new gxe}function oU(){this.a=new RMe}function J7e(){this.a=new oe}function fU(){this.a=new oe}function Z7e(){this.a=new oe}function eke(){this.a=new oe}function nke(){this.d=new oe}function tke(){this.a=new Si}function ike(){this.a=new Ln}function rke(){this.b=new Ln}function cke(){this.b=new oe}function lU(){this.e=new oe}function uke(){this.d=new oe}function ske(){this.a=new M6e}function oke(){oe.call(this)}function aU(){nT.call(this)}function fke(){lC.call(this)}function lke(){fU.call(this)}function bD(){z4.call(this)}function z4(){N7e.call(this)}function Qp(){N7e.call(this)}function hU(){Qp.call(this)}function ake(){UAe.call(this)}function hke(){UAe.call(this)}function dke(){vU.call(this)}function bke(){vU.call(this)}function wke(){vU.call(this)}function gke(){yU.call(this)}function Lu(){Vt.call(this)}function dU(){R3e.call(this)}function bU(){R3e.call(this)}function pke(){Dke.call(this)}function mke(){Dke.call(this)}function vke(){Ln.call(this)}function yke(){Ln.call(this)}function kke(){Ln.call(this)}function jke(){Si.call(this)}function wD(){K$e.call(this)}function Eke(){ZE.call(this)}function gD(){VW.call(this)}function pD(){VW.call(this)}function wU(){Ln.call(this)}function mD(){Ln.call(this)}function Tke(){Ln.call(this)}function gU(){qE.call(this)}function Cke(){qE.call(this)}function Mke(){gU.call(this)}function Ske(){hz.call(this)}function Pke(e){h$e.call(this,e)}function Ake(e){h$e.call(this,e)}function pU(e){pz.call(this,e)}function mU(e){tEe.call(this,e)}function Fln(e){mU.call(this,e)}function Nln(e){tEe.call(this,e)}function qm(){this.a=new Vt}function vU(){this.a=new Si}function yU(){this.a=new Ln}function xke(){this.a=new oe}function Ike(){this.j=new oe}function kU(){this.a=new Kve}function Oke(){this.a=new Sje}function Dke(){this.a=new Y3e}function vD(){vD=U,NK=new Qke}function yD(){yD=U,FK=new Yke}function U4(){U4=U,LK=new B}function tT(){tT=U,RK=new YCe}function _ln(e){mU.call(this,e)}function Bln(e){mU.call(this,e)}function $ke(e){YL.call(this,e)}function Lke(e){YL.call(this,e)}function Fke(e){oSe.call(this,e)}function kD(e){cjn.call(this,e)}function Ud(e){Ob.call(this,e)}function W4(e){bT.call(this,e)}function jU(e){bT.call(this,e)}function Nke(e){bT.call(this,e)}function oc(e){jPe.call(this,e)}function _ke(e){oc.call(this,e)}function Jp(){X9.call(this,{})}function iT(e){tv(),this.a=e}function X4(e){e.b=null,e.c=0}function Rln(e,n){e.e=n,BKe(e,n)}function Kln(e,n){e.a=n,Gjn(e)}function jD(e,n,t){e.a[n.g]=t}function qln(e,n,t){s7n(t,e,n)}function Hln(e,n){bdn(n.i,e.n)}function Bke(e,n){w5n(e).td(n)}function Vln(e,n){return e*e/n}function Rke(e,n){return e.g-n.g}function Gln(e){return new VE(e)}function zln(e){return new Gb(e)}function rT(e){oc.call(this,e)}function Rr(e){oc.call(this,e)}function Kke(e){oc.call(this,e)}function ED(e){jPe.call(this,e)}function TD(e){RJ(),this.a=e}function qke(e){bSe(),this.a=e}function Ab(e){eL(),this.f=e}function CD(e){eL(),this.f=e}function Hm(e){oc.call(this,e)}function rn(e){oc.call(this,e)}function ec(e){oc.call(this,e)}function Hke(e){oc.call(this,e)}function Zp(e){oc.call(this,e)}function ke(e){return nn(e),e}function ne(e){return nn(e),e}function r8(e){return nn(e),e}function EU(e){return nn(e),e}function Uln(e){return nn(e),e}function Y4(e){return e.b==e.c}function xb(e){return!!e&&e.b}function Wln(e){return!!e&&e.k}function Xln(e){return!!e&&e.j}function ws(e){nn(e),this.a=e}function TU(e){return id(e),e}function Q4(e){FY(e,e.length)}function Ba(e){oc.call(this,e)}function ol(e){oc.call(this,e)}function MD(e){oc.call(this,e)}function hg(e){oc.call(this,e)}function J4(e){oc.call(this,e)}function Hn(e){oc.call(this,e)}function SD(e){oX.call(this,e,0)}function PD(){gQ.call(this,12,3)}function CU(){CU=U,Mue=new Zi}function Vke(){Vke=U,Cue=new N}function cT(){cT=U,ky=new mn}function Gke(){Gke=U,yXe=new _t}function zke(){throw I(new Kn)}function MU(){throw I(new Kn)}function Uke(){throw I(new Kn)}function Yln(){throw I(new Kn)}function Qln(){throw I(new Kn)}function Jln(){throw I(new Kn)}function AD(){this.a=Vn(Nn(vr))}function e2(e){dl(),this.a=Nn(e)}function Wke(e,n){e.Td(n),n.Sd(e)}function Zln(e,n){e.a.ec().Mc(n)}function ean(e,n,t){e.c.lf(n,t)}function SU(e){Rr.call(this,e)}function fl(e){rn.call(this,e)}function Ra(){Y9.call(this,"")}function Z4(){Y9.call(this,"")}function Ph(){Y9.call(this,"")}function Ib(){Y9.call(this,"")}function PU(e){Rr.call(this,e)}function Vm(e){Nm.call(this,e)}function xD(e){nC.call(this,e)}function Xke(e){Vm.call(this,e)}function Yke(){rD.call(this,null)}function Qke(){rD.call(this,null)}function uT(){uT=U,pv()}function Jke(){Jke=U,xXe=$7n()}function Zke(e){return e.a?e.b:0}function nan(e){return e.a?e.b:0}function tan(e,n){return e.a-n.a}function ian(e,n){return e.a-n.a}function ran(e,n){return e.a-n.a}function sT(e,n){return uJ(e,n)}function O(e,n){return vxe(e,n)}function can(e,n){return n in e.a}function eje(e,n){return e.f=n,e}function uan(e,n){return e.b=n,e}function nje(e,n){return e.c=n,e}function san(e,n){return e.g=n,e}function AU(e,n){return e.a=n,e}function xU(e,n){return e.f=n,e}function oan(e,n){return e.k=n,e}function IU(e,n){return e.a=n,e}function fan(e,n){return e.e=n,e}function OU(e,n){return e.e=n,e}function lan(e,n){return e.f=n,e}function aan(e,n){e.b=!0,e.d=n}function han(e,n){e.b=new Kr(n)}function dan(e,n,t){n.td(e.a[t])}function ban(e,n,t){n.we(e.a[t])}function wan(e,n){return e.b-n.b}function gan(e,n){return e.g-n.g}function pan(e,n){return e.s-n.s}function man(e,n){return e?0:n-1}function tje(e,n){return e?0:n-1}function van(e,n){return e?n-1:0}function yan(e,n){return n.Yf(e)}function Wd(e,n){return e.b=n,e}function oT(e,n){return e.a=n,e}function Xd(e,n){return e.c=n,e}function Yd(e,n){return e.d=n,e}function Qd(e,n){return e.e=n,e}function DU(e,n){return e.f=n,e}function e5(e,n){return e.a=n,e}function Gm(e,n){return e.b=n,e}function zm(e,n){return e.c=n,e}function xe(e,n){return e.c=n,e}function ze(e,n){return e.b=n,e}function Ie(e,n){return e.d=n,e}function Oe(e,n){return e.e=n,e}function kan(e,n){return e.f=n,e}function De(e,n){return e.g=n,e}function $e(e,n){return e.a=n,e}function Le(e,n){return e.i=n,e}function Fe(e,n){return e.j=n,e}function ije(e,n){return e.k=n,e}function jan(e,n){return e.j=n,e}function Ean(e,n){e1(),lc(n,e)}function Tan(e,n,t){mwn(e.a,n,t)}function rje(e){kAe.call(this,e)}function $U(e){kAe.call(this,e)}function fT(e){N$.call(this,e)}function cje(e){K6n.call(this,e)}function Ah(e){j0.call(this,e)}function uje(e){CL.call(this,e)}function sje(e){CL.call(this,e)}function oje(){BW.call(this,"")}function tr(){this.a=0,this.b=0}function fje(){this.b=0,this.a=0}function lje(e,n){e.b=0,tw(e,n)}function Can(e,n){e.c=n,e.b=!0}function aje(e,n){return e.c._b(n)}function df(e){return e.e&&e.e()}function ID(e){return e?e.d:null}function hje(e,n){return _Fe(e.b,n)}function Man(e){return e?e.g:null}function San(e){return e?e.i:null}function xh(e){return la(e),e.o}function Jd(){Jd=U,Prn=G8n()}function dje(){dje=U,Fi=ikn()}function Um(){Um=U,Ade=U8n()}function bje(){bje=U,hcn=z8n()}function LU(){LU=U,Oc=qjn()}function FU(){FU=U,M1=$v()}function wje(){throw I(new Kn)}function gje(){throw I(new Kn)}function pje(){throw I(new Kn)}function mje(){throw I(new Kn)}function vje(){throw I(new Kn)}function yje(){throw I(new Kn)}function lT(e){this.a=new n2(e)}function NU(e){wVe(),QOn(this,e)}function Ih(e){this.a=new rL(e)}function dg(e,n){for(;e.ye(n););}function _U(e,n){for(;e.sd(n););}function bg(e,n){return e.a+=n,e}function OD(e,n){return e.a+=n,e}function Ka(e,n){return e.a+=n,e}function Zd(e,n){return e.a+=n,e}function n5(e){return qh(e),e.a}function aT(e){return e.b!=e.d.c}function kje(e){return e.l|e.m<<22}function BU(e,n){return e.d[n.p]}function jje(e,n){return IMn(e,n)}function RU(e,n,t){e.splice(n,t)}function Eje(e){e.c?uqe(e):sqe(e)}function hT(e){this.a=0,this.b=e}function Tje(){this.a=new sk(qae)}function Cje(){this.b=new sk(Pae)}function Mje(){this.b=new sk(oV)}function Sje(){this.b=new sk(oV)}function Pje(){throw I(new Kn)}function Aje(){throw I(new Kn)}function xje(){throw I(new Kn)}function Ije(){throw I(new Kn)}function Oje(){throw I(new Kn)}function Dje(){throw I(new Kn)}function $je(){throw I(new Kn)}function Lje(){throw I(new Kn)}function Fje(){throw I(new Kn)}function Nje(){throw I(new Kn)}function Pan(){throw I(new Sc)}function Aan(){throw I(new Sc)}function c8(e){this.a=new _je(e)}function _je(e){R3n(this,e,R7n())}function u8(e){return!e||cAe(e)}function s8(e){return il[e]!=-1}function xan(){xA!=0&&(xA=0),IA=-1}function Bje(){$K==null&&($K=[])}function Ian(e,n){l_(Q(e.a),n)}function Oan(e,n){l_(Q(e.a),n)}function o8(e,n){Eg.call(this,e,n)}function Wm(e,n){o8.call(this,e,n)}function KU(e,n){this.b=e,this.c=n}function Rje(e,n){this.b=e,this.a=n}function Kje(e,n){this.a=e,this.b=n}function qje(e,n){this.a=e,this.b=n}function Hje(e,n){this.a=e,this.b=n}function Vje(e,n){this.a=e,this.b=n}function Gje(e,n){this.a=e,this.b=n}function zje(e,n){this.a=e,this.b=n}function Uje(e,n){this.a=e,this.b=n}function Wje(e,n){this.a=e,this.b=n}function Xje(e,n){this.b=e,this.a=n}function Yje(e,n){this.b=e,this.a=n}function Qje(e,n){this.b=e,this.a=n}function Jje(e,n){this.b=e,this.a=n}function Yn(e,n){this.f=e,this.g=n}function Xm(e,n){this.e=e,this.d=n}function e0(e,n){this.g=e,this.i=n}function DD(e,n){this.a=e,this.b=n}function Zje(e,n){this.a=e,this.f=n}function eEe(e,n){this.b=e,this.c=n}function Dan(e,n){this.a=e,this.b=n}function nEe(e,n){this.a=e,this.b=n}function $D(e,n){this.a=e,this.b=n}function tEe(e){QW(e.dc()),this.c=e}function dT(e){this.b=u(Nn(e),83)}function iEe(e){this.a=u(Nn(e),83)}function Ob(e){this.a=u(Nn(e),15)}function rEe(e){this.a=u(Nn(e),15)}function bT(e){this.b=u(Nn(e),47)}function wT(){this.q=new y.Date}function $l(){$l=U,Kue=new Mh}function Ym(){Ym=U,G3=new nr}function t5(e){return e.f.c+e.g.c}function f8(e,n){return e.b.Hc(n)}function cEe(e,n){return e.b.Ic(n)}function uEe(e,n){return e.b.Qc(n)}function sEe(e,n){return e.b.Hc(n)}function oEe(e,n){return e.c.uc(n)}function oa(e,n){return e.a._b(n)}function fEe(e,n){return kt(e.c,n)}function lEe(e,n){return vs(e.b,n)}function aEe(e,n){return e>n&&n0}function FD(e,n){return $c(e,n)<0}function o5(e,n){return e.a.get(n)}function zan(e,n){return n.split(e)}function xEe(e,n){return vs(e.e,n)}function XU(e){return nn(e),!1}function CT(e){Ye.call(this,e,21)}function Uan(e,n){sxe.call(this,e,n)}function MT(e,n){Yn.call(this,e,n)}function ND(e,n){Yn.call(this,e,n)}function YU(e){pL(),oSe.call(this,e)}function QU(e,n){aPe(e,e.length,n)}function b8(e,n){RPe(e,e.length,n)}function Wan(e,n,t){n.ud(e.a.Ge(t))}function Xan(e,n,t){n.we(e.a.Fe(t))}function Yan(e,n,t){n.td(e.a.Kb(t))}function Qan(e,n,t){e.Mb(t)&&n.td(t)}function f5(e,n,t){e.splice(n,0,t)}function Jan(e,n){return Nu(e.e,n)}function ST(e,n){this.d=e,this.e=n}function IEe(e,n){this.b=e,this.a=n}function OEe(e,n){this.b=e,this.a=n}function JU(e,n){this.b=e,this.a=n}function DEe(e,n){this.a=e,this.b=n}function $Ee(e,n){this.a=e,this.b=n}function LEe(e,n){this.a=e,this.b=n}function FEe(e,n){this.a=e,this.b=n}function i2(e,n){this.a=e,this.b=n}function ZU(e,n){this.b=e,this.a=n}function eW(e,n){this.b=e,this.a=n}function PT(e,n){Yn.call(this,e,n)}function AT(e,n){Yn.call(this,e,n)}function nW(e,n){Yn.call(this,e,n)}function tW(e,n){Yn.call(this,e,n)}function wg(e,n){Yn.call(this,e,n)}function _D(e,n){Yn.call(this,e,n)}function BD(e,n){Yn.call(this,e,n)}function RD(e,n){Yn.call(this,e,n)}function xT(e,n){Yn.call(this,e,n)}function iW(e,n){Yn.call(this,e,n)}function KD(e,n){Yn.call(this,e,n)}function w8(e,n){Yn.call(this,e,n)}function IT(e,n){Yn.call(this,e,n)}function qD(e,n){Yn.call(this,e,n)}function l5(e,n){Yn.call(this,e,n)}function rW(e,n){Yn.call(this,e,n)}function ui(e,n){Yn.call(this,e,n)}function OT(e,n){Yn.call(this,e,n)}function NEe(e,n){this.a=e,this.b=n}function _Ee(e,n){this.a=e,this.b=n}function BEe(e,n){this.a=e,this.b=n}function REe(e,n){this.a=e,this.b=n}function KEe(e,n){this.a=e,this.b=n}function qEe(e,n){this.a=e,this.b=n}function HEe(e,n){this.a=e,this.b=n}function VEe(e,n){this.a=e,this.b=n}function GEe(e,n){this.a=e,this.b=n}function cW(e,n){this.b=e,this.a=n}function zEe(e,n){this.b=e,this.a=n}function UEe(e,n){this.b=e,this.a=n}function WEe(e,n){this.b=e,this.a=n}function Zm(e,n){this.c=e,this.d=n}function XEe(e,n){this.e=e,this.d=n}function YEe(e,n){this.a=e,this.b=n}function QEe(e,n){this.b=n,this.c=e}function DT(e,n){Yn.call(this,e,n)}function g8(e,n){Yn.call(this,e,n)}function HD(e,n){Yn.call(this,e,n)}function a5(e,n){Yn.call(this,e,n)}function uW(e,n){Yn.call(this,e,n)}function VD(e,n){Yn.call(this,e,n)}function GD(e,n){Yn.call(this,e,n)}function p8(e,n){Yn.call(this,e,n)}function sW(e,n){Yn.call(this,e,n)}function zD(e,n){Yn.call(this,e,n)}function h5(e,n){Yn.call(this,e,n)}function oW(e,n){Yn.call(this,e,n)}function d5(e,n){Yn.call(this,e,n)}function b5(e,n){Yn.call(this,e,n)}function $b(e,n){Yn.call(this,e,n)}function UD(e,n){Yn.call(this,e,n)}function WD(e,n){Yn.call(this,e,n)}function fW(e,n){Yn.call(this,e,n)}function w5(e,n){Yn.call(this,e,n)}function XD(e,n){Yn.call(this,e,n)}function $T(e,n){Yn.call(this,e,n)}function m8(e,n){Yn.call(this,e,n)}function v8(e,n){Yn.call(this,e,n)}function r2(e,n){Yn.call(this,e,n)}function YD(e,n){Yn.call(this,e,n)}function lW(e,n){Yn.call(this,e,n)}function QD(e,n){Yn.call(this,e,n)}function JD(e,n){Yn.call(this,e,n)}function aW(e,n){Yn.call(this,e,n)}function ZD(e,n){Yn.call(this,e,n)}function e$(e,n){Yn.call(this,e,n)}function n$(e,n){Yn.call(this,e,n)}function t$(e,n){Yn.call(this,e,n)}function hW(e,n){Yn.call(this,e,n)}function JEe(e,n){this.b=e,this.a=n}function ZEe(e,n){this.a=e,this.b=n}function eTe(e,n){this.a=e,this.b=n}function nTe(e,n){this.a=e,this.b=n}function tTe(e,n){this.a=e,this.b=n}function dW(e,n){Yn.call(this,e,n)}function bW(e,n){Yn.call(this,e,n)}function iTe(e,n){this.b=e,this.d=n}function wW(e,n){Yn.call(this,e,n)}function gW(e,n){Yn.call(this,e,n)}function rTe(e,n){this.a=e,this.b=n}function cTe(e,n){this.a=e,this.b=n}function LT(e,n){Yn.call(this,e,n)}function g5(e,n){Yn.call(this,e,n)}function pW(e,n){Yn.call(this,e,n)}function mW(e,n){Yn.call(this,e,n)}function vW(e,n){Yn.call(this,e,n)}function i$(e,n){Yn.call(this,e,n)}function yW(e,n){Yn.call(this,e,n)}function r$(e,n){Yn.call(this,e,n)}function FT(e,n){Yn.call(this,e,n)}function c$(e,n){Yn.call(this,e,n)}function u$(e,n){Yn.call(this,e,n)}function y8(e,n){Yn.call(this,e,n)}function s$(e,n){Yn.call(this,e,n)}function kW(e,n){Yn.call(this,e,n)}function k8(e,n){Yn.call(this,e,n)}function jW(e,n){Yn.call(this,e,n)}function Zan(e,n){return Nu(e.c,n)}function ehn(e,n){return Nu(n.b,e)}function nhn(e,n){return-e.b.Je(n)}function EW(e,n){return Nu(e.g,n)}function j8(e,n){Yn.call(this,e,n)}function c2(e,n){Yn.call(this,e,n)}function uTe(e,n){this.a=e,this.b=n}function sTe(e,n){this.a=e,this.b=n}function je(e,n){this.a=e,this.b=n}function p5(e,n){Yn.call(this,e,n)}function m5(e,n){Yn.call(this,e,n)}function E8(e,n){Yn.call(this,e,n)}function o$(e,n){Yn.call(this,e,n)}function NT(e,n){Yn.call(this,e,n)}function v5(e,n){Yn.call(this,e,n)}function f$(e,n){Yn.call(this,e,n)}function _T(e,n){Yn.call(this,e,n)}function gg(e,n){Yn.call(this,e,n)}function T8(e,n){Yn.call(this,e,n)}function y5(e,n){Yn.call(this,e,n)}function k5(e,n){Yn.call(this,e,n)}function C8(e,n){Yn.call(this,e,n)}function BT(e,n){Yn.call(this,e,n)}function pg(e,n){Yn.call(this,e,n)}function RT(e,n){Yn.call(this,e,n)}function oTe(e,n){this.a=e,this.b=n}function fTe(e,n){this.a=e,this.b=n}function lTe(e,n){this.a=e,this.b=n}function aTe(e,n){this.a=e,this.b=n}function hTe(e,n){this.a=e,this.b=n}function dTe(e,n){this.a=e,this.b=n}function Gi(e,n){this.a=e,this.b=n}function KT(e,n){Yn.call(this,e,n)}function bTe(e,n){this.a=e,this.b=n}function wTe(e,n){this.a=e,this.b=n}function gTe(e,n){this.a=e,this.b=n}function pTe(e,n){this.a=e,this.b=n}function mTe(e,n){this.a=e,this.b=n}function vTe(e,n){this.a=e,this.b=n}function yTe(e,n){this.b=e,this.a=n}function kTe(e,n){this.b=e,this.a=n}function jTe(e,n){this.b=e,this.a=n}function ETe(e,n){this.b=e,this.a=n}function TTe(e,n){this.a=e,this.b=n}function CTe(e,n){this.a=e,this.b=n}function thn(e,n){OCn(e.a,u(n,56))}function MTe(e,n){Vvn(e.a,u(n,11))}function ihn(e,n){return sv(),n!=e}function STe(){return Jke(),new xXe}function PTe(){FL(),this.b=new Si}function ATe(){eP(),this.a=new Si}function xTe(){wQ(),TY.call(this)}function u2(e,n){Yn.call(this,e,n)}function ITe(e,n){this.a=e,this.b=n}function OTe(e,n){this.a=e,this.b=n}function qT(e,n){this.a=e,this.b=n}function DTe(e,n){this.a=e,this.b=n}function $Te(e,n){this.a=e,this.b=n}function LTe(e,n){this.a=e,this.b=n}function FTe(e,n){this.d=e,this.b=n}function TW(e,n){this.d=e,this.e=n}function NTe(e,n){this.f=e,this.c=n}function M8(e,n){this.b=e,this.c=n}function CW(e,n){this.i=e,this.g=n}function _Te(e,n){this.e=e,this.a=n}function BTe(e,n){this.a=e,this.b=n}function MW(e,n){e.i=null,VM(e,n)}function rhn(e,n){e&&jt(tE,e,n)}function RTe(e,n){return bN(e.a,n)}function HT(e){return B7(e.c,e.b)}function mc(e){return e?e.dd():null}function X(e){return e??null}function Lb(e){return typeof e===q2}function Fb(e){return typeof e===cie}function Ni(e){return typeof e===eB}function $h(e,n){return e.Hd().Xb(n)}function VT(e,n){return y4n(e.Kc(),n)}function t0(e,n){return $c(e,n)==0}function chn(e,n){return $c(e,n)>=0}function j5(e,n){return $c(e,n)!=0}function uhn(e){return""+(nn(e),e)}function S8(e,n){return e.substr(n)}function KTe(e){return rs(e),e.d.gc()}function l$(e){return tTn(e,e.c),e}function GT(e){return L5(e==null),e}function E5(e,n){return e.a+=""+n,e}function Lr(e,n){return e.a+=""+n,e}function T5(e,n){return e.a+=""+n,e}function Pc(e,n){return e.a+=""+n,e}function Qn(e,n){return e.a+=""+n,e}function SW(e,n){return e.a+=""+n,e}function qTe(e,n){ri(e,n,e.a,e.a.a)}function K1(e,n){ri(e,n,e.c.b,e.c)}function shn(e,n,t){Q_e(n,i_(e,t))}function ohn(e,n,t){Q_e(n,i_(e,t))}function fhn(e,n){n3n(new jn(e),n)}function HTe(e,n){e.q.setTime(v0(n))}function VTe(e,n){DY.call(this,e,n)}function GTe(e,n){DY.call(this,e,n)}function a$(e,n){DY.call(this,e,n)}function zTe(e){Wu(this),s6(this,e)}function PW(e){return Qe(e,0),null}function bf(e){return e.a=0,e.b=0,e}function UTe(e,n){return e.a=n.g+1,e}function lhn(e,n){return e.j[n.p]==2}function AW(e){return zwn(u(e,79))}function WTe(){WTe=U,TYe=Zn(yN())}function XTe(){XTe=U,KQe=Zn(IKe())}function YTe(){this.b=new n2(Zb(12))}function QTe(){this.b=0,this.a=!1}function JTe(){this.b=0,this.a=!1}function C5(e){this.a=e,tD.call(this)}function ZTe(e){this.a=e,tD.call(this)}function Ve(e,n){yi.call(this,e,n)}function h$(e,n){Kb.call(this,e,n)}function mg(e,n){CW.call(this,e,n)}function d$(e,n){Bv.call(this,e,n)}function eCe(e,n){P8.call(this,e,n)}function st(e,n){ET(),jt(GI,e,n)}function b$(e,n){return Ms(e.a,0,n)}function nCe(e,n){return e.a.a.a.cc(n)}function tCe(e,n){return X(e)===X(n)}function ahn(e,n){return gi(e.a,n.a)}function hhn(e,n){return mu(e.a,n.a)}function dhn(e,n){return NPe(e.a,n.a)}function ll(e,n){return e.indexOf(n)}function i0(e,n){return e==n?0:e?1:-1}function zT(e){return e<10?"0"+e:""+e}function bhn(e){return Nn(e),new C5(e)}function iCe(e){return fu(e.l,e.m,e.h)}function ev(e){return ci((nn(e),e))}function whn(e){return ci((nn(e),e))}function rCe(e,n){return mu(e.g,n.g)}function nc(e){return typeof e===cie}function ghn(e){return e==eb||e==$w}function phn(e){return e==eb||e==Dw}function xW(e){return tc(e.b.b,e,0)}function cCe(e){this.a=STe(),this.b=e}function uCe(e){this.a=STe(),this.b=e}function mhn(e,n){return se(e.a,n),n}function vhn(e,n){return se(e.c,n),e}function sCe(e,n){return Os(e.a,n),e}function yhn(e,n){return zo(),n.a+=e}function khn(e,n){return zo(),n.a+=e}function jhn(e,n){return zo(),n.c+=e}function IW(e,n){Cv(e,0,e.length,n)}function fa(){_z.call(this,new X1)}function oCe(){CC.call(this,0,0,0,0)}function s2(){Xs.call(this,0,0,0,0)}function Kr(e){this.a=e.a,this.b=e.b}function Lh(e){return e==Ao||e==cf}function nv(e){return e==Da||e==Oa}function fCe(e){return e==xp||e==Ap}function vg(e){return e!=el&&e!=j1}function gs(e){return e.Lg()&&e.Mg()}function lCe(e){return KC(u(e,118))}function UT(e){return Os(new Pi,e)}function aCe(e,n){return new Bv(n,e)}function Ehn(e,n){return new Bv(n,e)}function OW(e,n,t){FM(e,n),NM(e,t)}function WT(e,n,t){C0(e,n),T0(e,t)}function xf(e,n,t){Cu(e,n),Mu(e,t)}function XT(e,n,t){Av(e,n),Iv(e,t)}function YT(e,n,t){xv(e,n),Ov(e,t)}function w$(e,n){Gv(e,n),Dv(e,e.D)}function DW(e){NTe.call(this,e,!0)}function hCe(e,n,t){jX.call(this,e,n,t)}function Fh(e){n1(),T4n.call(this,e)}function dCe(){MT.call(this,"Head",1)}function bCe(){MT.call(this,"Tail",3)}function g$(e){e.c=V(pn,pe,1,0,5,1)}function wCe(e){e.a=V(pn,pe,1,8,5,1)}function gCe(e){Tu(e.xf(),new r9e(e))}function yg(e){return e!=null?Bt(e):0}function Thn(e,n){return ew(n,Df(e))}function Chn(e,n){return ew(n,Df(e))}function Mhn(e,n){return e[e.length]=n}function Shn(e,n){return e[e.length]=n}function $W(e){return Mbn(e.b.Kc(),e.a)}function Phn(e,n){return HM(wL(e.d),n)}function Ahn(e,n){return HM(wL(e.g),n)}function xhn(e,n){return HM(wL(e.j),n)}function Tr(e,n){yi.call(this,e.b,n)}function r0(e){CC.call(this,e,e,e,e)}function LW(e){return e.b&&N_(e),e.a}function FW(e){return e.b&&N_(e),e.c}function Ihn(e,n){Xf||(e.b=n)}function p$(e,n,t){return zt(e,n,t),t}function pCe(e,n,t){zt(e.c[n.g],n.g,t)}function Ohn(e,n,t){u(e.c,69).Xh(n,t)}function Dhn(e,n,t){xf(t,t.i+e,t.j+n)}function $hn(e,n){Bn(Bc(e.a),Ixe(n))}function Lhn(e,n){Bn(ts(e.a),Oxe(n))}function M5(e){gt(),Gd.call(this,e)}function Fhn(e){return e==null?0:Bt(e)}function mCe(){mCe=U,KH=new p6(FV)}function qn(){qn=U,new vCe,new oe}function vCe(){new Ln,new Ln,new Ln}function NW(){NW=U,nU(),Sue=new Ln}function If(){If=U,y.Math.log(2)}function Us(){Us=U,ra=(CEe(),$rn)}function Nhn(){throw I(new Ba(cXe))}function _hn(){throw I(new Ba(cXe))}function Bhn(){throw I(new Ba(uXe))}function Rhn(){throw I(new Ba(uXe))}function yCe(e){this.a=e,nY.call(this,e)}function m$(e){this.a=e,dT.call(this,e)}function v$(e){this.a=e,dT.call(this,e)}function Oi(e,n){Y$(e.c,e.c.length,n)}function fc(e){return e.an?1:0}function jCe(e,n){return $c(e,n)>0?e:n}function fu(e,n,t){return{l:e,m:n,h:t}}function Khn(e,n){e.a!=null&&MTe(n,e.a)}function ECe(e){e.a=new _a,e.c=new _a}function QT(e){this.b=e,this.a=new oe}function TCe(e){this.b=new fwe,this.a=e}function BW(e){IX.call(this),this.a=e}function CCe(){MT.call(this,"Range",2)}function MCe(){Dee(),this.a=new sk(noe)}function qhn(e,n){Nn(n),Cg(e).Jc(new bn)}function Hhn(e,n){return Ss(),n.n.b+=e}function Vhn(e,n,t){return jt(e.g,t,n)}function Ghn(e,n,t){return jt(e.k,t,n)}function zhn(e,n){return jt(e.a,n.a,n)}function kg(e,n,t){return ZZ(n,t,e.c)}function RW(e){return new je(e.c,e.d)}function Uhn(e){return new je(e.c,e.d)}function vc(e){return new je(e.a,e.b)}function SCe(e,n){return gIn(e.a,n,null)}function Whn(e){sr(e,null),Ki(e,null)}function PCe(e){_L(e,null),BL(e,null)}function ACe(){P8.call(this,null,null)}function xCe(){cC.call(this,null,null)}function KW(e){this.a=e,Ln.call(this)}function Xhn(e){this.b=(He(),new fD(e))}function JT(e){e.j=V(Rue,ie,310,0,0,1)}function Yhn(e,n,t){e.c.Vc(n,u(t,133))}function Qhn(e,n,t){e.c.ji(n,u(t,133))}function ICe(e,n){Dn(e),e.Gc(u(n,15))}function S5(e,n){return Oxn(e.c,e.b,n)}function Jhn(e,n){return new ZCe(e.Kc(),n)}function y$(e,n){return Q4n(e.Kc(),n)!=-1}function qW(e,n){return e.a.Bc(n)!=null}function ZT(e){return e.Ob()?e.Pb():null}function OCe(e){return mo(e,0,e.length)}function _(e,n){return e!=null&&TN(e,n)}function Zhn(e,n){e.q.setHours(n),F6(e,n)}function DCe(e,n){e.c&&(hY(n),cxe(n))}function e1n(e,n,t){u(e.Kb(t),164).Nb(n)}function n1n(e,n,t){return fIn(e,n,t),t}function $Ce(e,n,t){e.a=n^1502,e.b=t^DB}function k$(e,n,t){return e.a[n.g][t.g]}function Of(e,n){return e.a[n.c.p][n.p]}function t1n(e,n){return e.e[n.c.p][n.p]}function i1n(e,n){return e.c[n.c.p][n.p]}function r1n(e,n){return e.j[n.p]=dCn(n)}function c1n(e,n){return GQ(e.f,n.tg())}function u1n(e,n){return GQ(e.b,n.tg())}function s1n(e,n){return e.a0?n*n/e:n*n*100}function O1n(e,n){return e>0?n/(e*e):n*100}function D1n(e,n,t){return se(n,iNe(e,t))}function $1n(e,n,t){jM(),e.Xe(n)&&t.td(e)}function rv(e,n,t){var i;i=e.Zc(n),i.Rb(t)}function _b(e,n,t){return e.a+=n,e.b+=t,e}function L1n(e,n,t){return e.a*=n,e.b*=t,e}function I8(e,n,t){return e.a-=n,e.b-=t,e}function hX(e,n){return e.a=n.a,e.b=n.b,e}function oC(e){return e.a=-e.a,e.b=-e.b,e}function aMe(e){this.c=e,this.a=1,this.b=1}function hMe(e){this.c=e,Cu(e,0),Mu(e,0)}function dMe(e){Vt.call(this),i6(this,e)}function bMe(e){J_(),B7e(this),this.mf(e)}function wMe(e,n){s5(),P8.call(this,e,n)}function dX(e,n){qa(),cC.call(this,e,n)}function gMe(e,n){qa(),cC.call(this,e,n)}function pMe(e,n){qa(),dX.call(this,e,n)}function ps(e,n,t){ks.call(this,e,n,t,2)}function P$(e,n){Us(),TC.call(this,e,n)}function mMe(e,n){Us(),P$.call(this,e,n)}function bX(e,n){Us(),P$.call(this,e,n)}function vMe(e,n){Us(),bX.call(this,e,n)}function wX(e,n){Us(),TC.call(this,e,n)}function yMe(e,n){Us(),wX.call(this,e,n)}function kMe(e,n){Us(),TC.call(this,e,n)}function F1n(e,n){return e.c.Fc(u(n,133))}function gX(e,n,t){return hP(d7(e,n),t)}function N1n(e,n,t){return n.Qk(e.e,e.c,t)}function _1n(e,n,t){return n.Rk(e.e,e.c,t)}function A$(e,n){return Yh(e.e,u(n,49))}function B1n(e,n,t){w6(ts(e.a),n,Oxe(t))}function R1n(e,n,t){w6(Bc(e.a),n,Ixe(t))}function pX(e,n){n.$modCount=e.$modCount}function O5(){O5=U,t9=new Rt("root")}function cv(){cv=U,rE=new pke,new mke}function jMe(){this.a=new p0,this.b=new p0}function mX(){K$e.call(this),this.Bb|=yr}function EMe(){Yn.call(this,"GROW_TREE",0)}function K1n(e){return e==null?null:cOn(e)}function q1n(e){return e==null?null:djn(e)}function H1n(e){return e==null?null:rc(e)}function V1n(e){return e==null?null:rc(e)}function la(e){e.o==null&&KTn(e)}function ye(e){return L5(e==null||Lb(e)),e}function he(e){return L5(e==null||Fb(e)),e}function Vn(e){return L5(e==null||Ni(e)),e}function vX(e){this.q=new y.Date(v0(e))}function O8(e,n){this.c=e,Xm.call(this,e,n)}function fC(e,n){this.a=e,O8.call(this,e,n)}function G1n(e,n){this.d=e,Dye(this),this.b=n}function yX(e,n){uF.call(this,e),this.a=n}function kX(e,n){uF.call(this,e),this.a=n}function z1n(e){WZ.call(this,0,0),this.f=e}function jX(e,n,t){yM.call(this,e,n,t,null)}function TMe(e,n,t){yM.call(this,e,n,t,null)}function U1n(e,n,t){return e.ue(n,t)<=0?t:n}function W1n(e,n,t){return e.ue(n,t)<=0?n:t}function X1n(e,n){return u(k0(e.b,n),149)}function Y1n(e,n){return u(k0(e.c,n),229)}function x$(e){return u(ve(e.a,e.b),287)}function CMe(e){return new je(e.c,e.d+e.a)}function MMe(e){return Ss(),fCe(u(e,197))}function Bb(){Bb=U,xse=_e((Es(),_d))}function Q1n(e,n){n.a?FMn(e,n):j$(e.a,n.b)}function SMe(e,n){Xf||se(e.a,n)}function J1n(e,n){return a8(),_v(n.d.i,e)}function Z1n(e,n){return A2(),new Aqe(n,e)}function hl(e,n){return W8(n,Cie),e.f=n,e}function EX(e,n,t){return t=Ls(e,n,3,t),t}function TX(e,n,t){return t=Ls(e,n,6,t),t}function CX(e,n,t){return t=Ls(e,n,9,t),t}function D8(e,n,t){++e.j,e.Ki(),rF(e,n,t)}function PMe(e,n,t){++e.j,e.Hi(n,e.oi(n,t))}function AMe(e,n,t){var i;i=e.Zc(n),i.Rb(t)}function xMe(e,n,t){return Bte(e.c,e.b,n,t)}function MX(e,n){return(n&vt)%e.d.length}function yi(e,n){Rt.call(this,e),this.a=n}function SX(e,n){Wz.call(this,e),this.a=n}function I$(e,n){Wz.call(this,e),this.a=n}function IMe(e,n){this.c=e,j0.call(this,n)}function OMe(e,n){this.a=e,D7e.call(this,n)}function $8(e,n){this.a=e,D7e.call(this,n)}function DMe(e){this.a=(Is(e,kw),new tu(e))}function $Me(e){this.a=(Is(e,kw),new tu(e))}function L8(e){return!e.a&&(e.a=new xn),e.a}function LMe(e){return e>8?0:e+1}function edn(e,n){return cn(),e==n?0:e?1:-1}function PX(e,n,t){return d2(e,u(n,22),t)}function ndn(e,n,t){return e.apply(n,t)}function FMe(e,n,t){return e.a+=mo(n,0,t),e}function AX(e,n){var t;return t=e.e,e.e=n,t}function tdn(e,n){var t;t=e[OB],t.call(e,n)}function idn(e,n){var t;t=e[OB],t.call(e,n)}function Rb(e,n){e.a.Vc(e.b,n),++e.b,e.c=-1}function NMe(e){Wu(e.e),e.d.b=e.d,e.d.a=e.d}function F8(e){e.b?F8(e.b):e.f.c.zc(e.e,e.d)}function rdn(e,n,t){R1(),xye(e,n.Ce(e.a,t))}function cdn(e,n){return ID(vNe(e.a,n,!0))}function udn(e,n){return ID(yNe(e.a,n,!0))}function Go(e,n){return sT(new Array(n),e)}function O$(e){return String.fromCharCode(e)}function sdn(e){return e==null?null:e.message}function _Me(){this.a=new oe,this.b=new oe}function BMe(){this.a=new XG,this.b=new W7e}function RMe(){this.b=new tr,this.c=new oe}function xX(){this.d=new tr,this.e=new tr}function IX(){this.n=new tr,this.o=new tr}function lC(){this.n=new Qp,this.i=new s2}function KMe(){this.a=new y6e,this.b=new sme}function qMe(){this.a=new oe,this.d=new oe}function HMe(){this.b=new Si,this.a=new Si}function VMe(){this.b=new Ln,this.a=new Ln}function GMe(){this.b=new Cje,this.a=new fve}function zMe(){lC.call(this),this.a=new tr}function D5(e){O4n.call(this,e,(TM(),XK))}function OX(e,n,t,i){CC.call(this,e,n,t,i)}function odn(e,n,t){t!=null&&KM(n,LN(e,t))}function fdn(e,n,t){t!=null&&qM(n,LN(e,t))}function DX(e,n,t){return t=Ls(e,n,11,t),t}function Mt(e,n){return e.a+=n.a,e.b+=n.b,e}function _i(e,n){return e.a-=n.a,e.b-=n.b,e}function ldn(e,n){return e.n.a=(nn(n),n+10)}function adn(e,n){return e.n.a=(nn(n),n+10)}function hdn(e,n){return n==e||c3(QS(n),e)}function UMe(e,n){return jt(e.a,n,"")==null}function ddn(e,n){return a8(),!_v(n.d.i,e)}function bdn(e,n){Lh(e.f)?ITn(e,n):wkn(e,n)}function wdn(e,n){var t;return t=n.Hh(e.a),t}function Kb(e,n){Rr.call(this,hy+e+yd+n)}function l2(e,n,t,i){fe.call(this,e,n,t,i)}function $X(e,n,t,i){fe.call(this,e,n,t,i)}function WMe(e,n,t,i){$X.call(this,e,n,t,i)}function XMe(e,n,t,i){LC.call(this,e,n,t,i)}function D$(e,n,t,i){LC.call(this,e,n,t,i)}function LX(e,n,t,i){LC.call(this,e,n,t,i)}function YMe(e,n,t,i){D$.call(this,e,n,t,i)}function FX(e,n,t,i){D$.call(this,e,n,t,i)}function Xe(e,n,t,i){LX.call(this,e,n,t,i)}function QMe(e,n,t,i){FX.call(this,e,n,t,i)}function JMe(e,n,t,i){$Y.call(this,e,n,t,i)}function ZMe(e,n,t){this.a=e,oX.call(this,n,t)}function eSe(e,n,t){this.c=n,this.b=t,this.a=e}function gdn(e,n,t){return e.d=u(n.Kb(t),164)}function NX(e,n){return e.Aj().Nh().Kh(e,n)}function _X(e,n){return e.Aj().Nh().Ih(e,n)}function nSe(e,n){return nn(e),X(e)===X(n)}function Re(e,n){return nn(e),X(e)===X(n)}function $$(e,n){return ID(vNe(e.a,n,!1))}function L$(e,n){return ID(yNe(e.a,n,!1))}function pdn(e,n){return e.b.sd(new $Ee(e,n))}function mdn(e,n){return e.b.sd(new LEe(e,n))}function tSe(e,n){return e.b.sd(new FEe(e,n))}function BX(e,n,t){return e.lastIndexOf(n,t)}function vdn(e,n,t){return gi(e[n.b],e[t.b])}function ydn(e,n){return te(n,(be(),yj),e)}function kdn(e,n){return mu(n.a.d.p,e.a.d.p)}function jdn(e,n){return mu(e.a.d.p,n.a.d.p)}function Edn(e,n){return gi(e.c-e.s,n.c-n.s)}function iSe(e){return e.c?tc(e.c.a,e,0):-1}function Tdn(e){return e<100?null:new Ah(e)}function a2(e){return e==Nd||e==ia||e==Zc}function rSe(e,n){return _(n,15)&&lqe(e.c,n)}function Cdn(e,n){Xf||n&&(e.d=n)}function F$(e,n){var t;return t=n,!!oZ(e,t)}function RX(e,n){this.c=e,fL.call(this,e,n)}function cSe(e){this.c=e,a$.call(this,yP,0)}function uSe(e,n){xbn.call(this,e,e.length,n)}function Mdn(e,n,t){return u(e.c,69).lk(n,t)}function aC(e,n,t){return u(e.c,69).mk(n,t)}function Sdn(e,n,t){return N1n(e,u(n,332),t)}function KX(e,n,t){return _1n(e,u(n,332),t)}function Pdn(e,n,t){return rBe(e,u(n,332),t)}function sSe(e,n,t){return Mkn(e,u(n,332),t)}function $5(e,n){return n==null?null:rw(e.b,n)}function qX(e){return Fb(e)?(nn(e),e):e.ke()}function hC(e){return!isNaN(e)&&!isFinite(e)}function oSe(e){dl(),this.a=(He(),new Vm(e))}function N8(e){sv(),this.d=e,this.a=new ag}function Ws(e,n,t){this.a=e,this.b=n,this.c=t}function fSe(e,n,t){this.a=e,this.b=n,this.c=t}function lSe(e,n,t){this.d=e,this.b=t,this.a=n}function N$(e){ECe(this),go(this),pr(this,e)}function _u(e){g$(this),iY(this.c,0,e.Pc())}function aSe(e){ys(e.a),oDe(e.c,e.b),e.b=null}function hSe(e){this.a=e,$l(),Su(Date.now())}function dSe(){dSe=U,sse=new N,_A=new N}function _$(){_$=U,Jue=new ua,IXe=new Gs}function bSe(){bSe=U,Brn=V(pn,pe,1,0,5,1)}function wSe(){wSe=U,icn=V(pn,pe,1,0,5,1)}function HX(){HX=U,rcn=V(pn,pe,1,0,5,1)}function dl(){dl=U,new Qz((He(),He(),Sr))}function Adn(e){return TM(),Jn((vDe(),$Xe),e)}function xdn(e){return qf(),Jn((_Oe(),RXe),e)}function Idn(e){return ES(),Jn((GIe(),zXe),e)}function Odn(e){return AM(),Jn((zIe(),UXe),e)}function Ddn(e){return iP(),Jn((OLe(),WXe),e)}function $dn(e){return mf(),Jn((LOe(),QXe),e)}function Ldn(e){return Xu(),Jn((FOe(),ZXe),e)}function Fdn(e){return Eu(),Jn((NOe(),nYe),e)}function Ndn(e){return mP(),Jn((WTe(),TYe),e)}function _dn(e){return P0(),Jn((kDe(),MYe),e)}function Bdn(e){return L2(),Jn((jDe(),PYe),e)}function Rdn(e){return k6(),Jn((EDe(),IYe),e)}function Kdn(e){return pT(),Jn((EIe(),OYe),e)}function qdn(e){return xM(),Jn((UIe(),XYe),e)}function Hdn(e){return n6(),Jn((BOe(),gQe),e)}function Vdn(e){return mr(),Jn((ZDe(),yQe),e)}function Gdn(e){return Kv(),Jn((yDe(),CQe),e)}function zdn(e){return A0(),Jn((ROe(),IQe),e)}function VX(e,n){if(!e)throw I(new rn(n))}function Udn(e){return dn(),Jn((y$e(),LQe),e)}function GX(e){CC.call(this,e.d,e.c,e.a,e.b)}function B$(e){CC.call(this,e.d,e.c,e.a,e.b)}function zX(e,n,t){this.b=e,this.c=n,this.a=t}function dC(e,n,t){this.b=e,this.a=n,this.c=t}function gSe(e,n,t){this.a=e,this.b=n,this.c=t}function UX(e,n,t){this.a=e,this.b=n,this.c=t}function pSe(e,n,t){this.a=e,this.b=n,this.c=t}function WX(e,n,t){this.a=e,this.b=n,this.c=t}function mSe(e,n,t){this.b=e,this.a=n,this.c=t}function bC(e,n,t){this.e=n,this.b=e,this.d=t}function Wdn(e,n,t){return R1(),e.a.Od(n,t),n}function R$(e){var n;return n=new VO,n.e=e,n}function XX(e){var n;return n=new nke,n.b=e,n}function _8(){_8=U,QA=new Fge,JA=new Nge}function zo(){zo=U,XQe=new v2e,YQe=new y2e}function Xdn(e){return tS(),Jn((CDe(),VQe),e)}function Ydn(e){return Kf(),Jn((SDe(),ZQe),e)}function Qdn(e){return nP(),Jn((kLe(),sJe),e)}function Jdn(e){return N2(),Jn((E$e(),oJe),e)}function Zdn(e){return kM(),Jn((ZIe(),fJe),e)}function e0n(e){return P2(),Jn((KOe(),lJe),e)}function n0n(e){return Vg(),Jn((WDe(),nJe),e)}function t0n(e){return S0(),Jn((VOe(),uJe),e)}function i0n(e){return BM(),Jn((qOe(),aJe),e)}function r0n(e){return ld(),Jn((zDe(),hJe),e)}function c0n(e){return m7(),Jn((XIe(),dJe),e)}function u0n(e){return td(),Jn((HOe(),wJe),e)}function s0n(e){return GS(),Jn((S$e(),gJe),e)}function o0n(e){return l7(),Jn((YIe(),pJe),e)}function f0n(e){return Y7(),Jn((C$e(),mJe),e)}function l0n(e){return s3(),Jn((T$e(),vJe),e)}function a0n(e){return xr(),Jn((ULe(),yJe),e)}function h0n(e){return Rv(),Jn((zOe(),kJe),e)}function d0n(e){return ma(),Jn((GOe(),EJe),e)}function b0n(e){return lM(),Jn((eOe(),TJe),e)}function w0n(e){return to(),Jn((XDe(),CJe),e)}function g0n(e){return KS(),Jn((M$e(),Ren),e)}function p0n(e){return a6(),Jn((UOe(),Ken),e)}function m0n(e){return sw(),Jn((PDe(),qen),e)}function v0n(e){return Pr(),Jn((YOe(),Wen),e)}function y0n(e){return Wg(),Jn((yLe(),Ven),e)}function k0n(e){return ya(),Jn((XOe(),Gen),e)}function j0n(e){return b7(),Jn((JIe(),zen),e)}function E0n(e){return JM(),Jn((WOe(),Xen),e)}function T0n(e){return j6(),Jn((UDe(),Hen),e)}function C0n(e){return r7(),Jn((QIe(),Yen),e)}function M0n(e){return Uv(),Jn((JOe(),Qen),e)}function S0n(e){return YM(),Jn((ZOe(),Jen),e)}function P0n(e){return iS(),Jn((QOe(),Zen),e)}function A0n(e){return M0(),Jn((eDe(),hnn),e)}function x0n(e){return Z5(),Jn((tOe(),pnn),e)}function I0n(e){return wl(),Jn((iOe(),Tnn),e)}function O0n(e){return $f(),Jn((rOe(),Mnn),e)}function D0n(e){return wf(),Jn((nOe(),Knn),e)}function $0n(e){return g0(),Jn((cOe(),Wnn),e)}function L0n(e){return t3(),Jn((TDe(),Xnn),e)}function F0n(e){return P6(),Jn((P$e(),Qnn),e)}function N0n(e){return tM(),Jn((oOe(),atn),e)}function _0n(e){return UM(),Jn((sOe(),ptn),e)}function B0n(e){return uM(),Jn((uOe(),htn),e)}function R0n(e){return bS(),Jn((nDe(),vtn),e)}function K0n(e){return EM(),Jn((fOe(),ytn),e)}function q0n(e){return O7(),Jn((tDe(),ktn),e)}function H0n(e){return DS(),Jn((MDe(),Ftn),e)}function V0n(e){return QM(),Jn((rDe(),Ntn),e)}function G0n(e){return dS(),Jn((iDe(),_tn),e)}function z0n(e){return d3(),Jn((JDe(),rin),e)}function U0n(e){return _7(),Jn((cDe(),cin),e)}function W0n(e){return vT(),Jn((kIe(),uin),e)}function X0n(e){return yT(),Jn((yIe(),oin),e)}function Y0n(e){return c7(),Jn((aOe(),fin),e)}function Q0n(e){return J7(),Jn((YDe(),lin),e)}function J0n(e){return c5(),Jn((jIe(),Min),e)}function Z0n(e){return P7(),Jn((lOe(),Sin),e)}function ebn(e){return yf(),Jn((QDe(),Din),e)}function nbn(e){return rh(),Jn((jLe(),Lin),e)}function tbn(e){return Hl(),Jn((j$e(),Fin),e)}function ibn(e){return lw(),Jn((k$e(),qin),e)}function rbn(e){return Mr(),Jn((XTe(),KQe),e)}function cbn(e){return Lv(),Jn((WIe(),RQe),e)}function ubn(e){return Ar(),Jn((e$e(),irn),e)}function sbn(e){return Bf(),Jn((sDe(),rrn),e)}function obn(e){return Ea(),Jn((IDe(),crn),e)}function fbn(e){return HS(),Jn((x$e(),urn),e)}function lbn(e){return ka(),Jn((uDe(),orn),e)}function abn(e){return Ds(),Jn((xDe(),lrn),e)}function hbn(e){return bw(),Jn((ILe(),arn),e)}function dbn(e){return _g(),Jn((n$e(),hrn),e)}function bbn(e){return Hi(),Jn((g$e(),drn),e)}function wbn(e){return Yu(),Jn((A$e(),brn),e)}function gbn(e){return Es(),Jn((DDe(),yrn),e)}function pbn(e){return us(),Jn((WLe(),krn),e)}function mbn(e){return ae(),Jn((t$e(),wrn),e)}function vbn(e){return pS(),Jn((ODe(),jrn),e)}function ybn(e){return js(),Jn((ADe(),Crn),e)}function kbn(e){return l3(),Jn((ELe(),_rn),e)}function jbn(e,n){return nn(e),e+(nn(n),n)}function Ebn(e,n){return $l(),Bn(Q(e.a),n)}function Tbn(e,n){return $l(),Bn(Q(e.a),n)}function K$(e,n){this.c=e,this.a=n,this.b=n-e}function vSe(e,n,t){this.a=e,this.b=n,this.c=t}function YX(e,n,t){this.a=e,this.b=n,this.c=t}function QX(e,n,t){this.a=e,this.b=n,this.c=t}function ySe(e,n,t){this.a=e,this.b=n,this.c=t}function kSe(e,n,t){this.a=e,this.b=n,this.c=t}function Va(e,n,t){this.e=e,this.a=n,this.c=t}function jSe(e,n,t){Us(),fQ.call(this,e,n,t)}function q$(e,n,t){Us(),UY.call(this,e,n,t)}function JX(e,n,t){Us(),UY.call(this,e,n,t)}function ZX(e,n,t){Us(),UY.call(this,e,n,t)}function ESe(e,n,t){Us(),q$.call(this,e,n,t)}function eY(e,n,t){Us(),q$.call(this,e,n,t)}function TSe(e,n,t){Us(),eY.call(this,e,n,t)}function CSe(e,n,t){Us(),JX.call(this,e,n,t)}function MSe(e,n,t){Us(),ZX.call(this,e,n,t)}function B8(e,n){return Nn(e),Nn(n),new Uje(e,n)}function h2(e,n){return Nn(e),Nn(n),new BSe(e,n)}function Cbn(e,n){return Nn(e),Nn(n),new RSe(e,n)}function Mbn(e,n){return Nn(e),Nn(n),new Xje(e,n)}function u(e,n){return L5(e==null||TN(e,n)),e}function uv(e){var n;return n=new oe,pF(n,e),n}function Sbn(e){var n;return n=new Si,pF(n,e),n}function SSe(e){var n;return n=new uU,IF(n,e),n}function R8(e){var n;return n=new Vt,IF(n,e),n}function Pbn(e){return!e.e&&(e.e=new oe),e.e}function Abn(e){return!e.c&&(e.c=new Lm),e.c}function se(e,n){return e.c[e.c.length]=n,!0}function PSe(e,n){this.c=e,this.b=n,this.a=!1}function nY(e){this.d=e,Dye(this),this.b=kwn(e.d)}function ASe(){this.a=";,;",this.b="",this.c=""}function xbn(e,n,t){xPe.call(this,n,t),this.a=e}function xSe(e,n,t){this.b=e,VTe.call(this,n,t)}function tY(e,n,t){this.c=e,ST.call(this,n,t)}function iY(e,n,t){Cne(t,0,e,n,t.length,!1)}function Fl(e,n,t,i,r){e.b=n,e.c=t,e.d=i,e.a=r}function Ibn(e,n){n&&(e.b=n,e.a=(qh(n),n.a))}function rY(e,n,t,i,r){e.d=n,e.c=t,e.a=i,e.b=r}function cY(e){var n,t;n=e.b,t=e.c,e.b=t,e.c=n}function uY(e){var n,t;t=e.d,n=e.a,e.d=n,e.a=t}function sY(e){return Uh(Nwn(nc(e)?po(e):e))}function Obn(e,n){return mu(zSe(e.d),zSe(n.d))}function Dbn(e,n){return n==(ae(),un)?e.c:e.d}function sv(){sv=U,Mae=(ae(),un),iI=hn}function ISe(){this.b=ne(he(me((jf(),hq))))}function OSe(e){return R1(),V(pn,pe,1,e,5,1)}function $bn(e){return new je(e.c+e.b,e.d+e.a)}function Lbn(e,n){return mT(),mu(e.d.p,n.d.p)}function H$(e){return vn(e.b!=0),Zs(e,e.a.a)}function Fbn(e){return vn(e.b!=0),Zs(e,e.c.b)}function oY(e,n){if(!e)throw I(new Kke(n))}function wC(e,n){if(!e)throw I(new rn(n))}function fY(e,n,t){Zm.call(this,e,n),this.b=t}function K8(e,n,t){TW.call(this,e,n),this.c=t}function DSe(e,n,t){l$e.call(this,n,t),this.d=e}function lY(e){HX(),qE.call(this),this.th(e)}function $Se(e,n,t){this.a=e,mg.call(this,n,t)}function LSe(e,n,t){this.a=e,mg.call(this,n,t)}function gC(e,n,t){TW.call(this,e,n),this.c=t}function FSe(){jv(),ngn.call(this,(Oh(),Fo))}function NSe(e){return e!=null&&!lN(e,y9,k9)}function Nbn(e,n){return(zFe(e)<<4|zFe(n))&si}function _bn(e,n){return RC(),ON(e,n),new lAe(e,n)}function q1(e,n){var t;e.n&&(t=n,se(e.f,t))}function ov(e,n,t){var i;i=new Gb(t),pf(e,n,i)}function Bbn(e,n){var t;return t=e.c,PJ(e,n),t}function aY(e,n){return n<0?e.g=-1:e.g=n,e}function pC(e,n){return E3n(e),e.a*=n,e.b*=n,e}function _Se(e,n,t,i,r){e.c=n,e.d=t,e.b=i,e.a=r}function ut(e,n){return ri(e,n,e.c.b,e.c),!0}function hY(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function V$(e){this.b=e,this.a=f0(this.b.a).Ed()}function BSe(e,n){this.b=e,this.a=n,tD.call(this)}function RSe(e,n){this.a=e,this.b=n,tD.call(this)}function KSe(e,n){xPe.call(this,n,1040),this.a=e}function q8(e){return e==0||isNaN(e)?e:e<0?-1:1}function Rbn(e){return m2(),Vl(e)==Ut(Jh(e))}function Kbn(e){return m2(),Jh(e)==Ut(Vl(e))}function o0(e,n){return M6(e,new Zm(n.a,n.b))}function qbn(e){return!gr(e)&&e.c.i.c==e.d.i.c}function mC(e){var n;return n=e.n,e.a.b+n.d+n.a}function qSe(e){var n;return n=e.n,e.e.b+n.d+n.a}function dY(e){var n;return n=e.n,e.e.a+n.b+n.c}function HSe(e){return gt(),new Nl(0,e)}function Hbn(e){return e.a?e.a:TL(e)}function L5(e){if(!e)throw I(new Hm(null))}function VSe(){VSe=U,YV=(He(),new oD(CK))}function vC(){vC=U,new lee((vD(),NK),(yD(),FK))}function GSe(){GSe=U,Lue=V(br,ie,19,256,0,1)}function G$(e,n,t,i){BZ.call(this,e,n,t,i,0,0)}function Vbn(e,n,t){return jt(e.b,u(t.b,17),n)}function Gbn(e,n,t){return jt(e.b,u(t.b,17),n)}function zbn(e,n){return se(e,new je(n.a,n.b))}function Ubn(e,n){return e.c=n)throw I(new tU)}function Awn(e,n,t){return zt(n,0,pY(n[0],t[0])),n}function xwn(e,n,t){n.Ye(t,ne(he(kn(e.b,t)))*e.a)}function APe(e,n,t){return Yg(),Fv(e,n)&&Fv(e,t)}function R5(e){return Yu(),!e.Hc(La)&&!e.Hc(E1)}function DC(e){return new je(e.c+e.b/2,e.d+e.a/2)}function iL(e,n){return n.kh()?Yh(e.b,u(n,49)):n}function DY(e,n){this.e=e,this.d=n&64?n|ml:n}function xPe(e,n){this.c=0,this.d=e,this.b=n|64|ml}function $C(e){this.b=new tu(11),this.a=(Mg(),e)}function rL(e){this.b=null,this.a=(Mg(),e||Xue)}function IPe(e){this.a=e_e(e.a),this.b=new _u(e.b)}function OPe(e){this.b=e,o2.call(this,e),LCe(this)}function DPe(e){this.b=e,A8.call(this,e),FCe(this)}function Vb(e,n,t){this.a=e,l2.call(this,n,t,5,6)}function $Y(e,n,t,i){this.b=e,bi.call(this,n,t,i)}function Di(e,n,t,i,r){fF.call(this,e,n,t,i,r,-1)}function K5(e,n,t,i,r){o7.call(this,e,n,t,i,r,-1)}function fe(e,n,t,i){bi.call(this,e,n,t),this.b=i}function LC(e,n,t,i){K8.call(this,e,n,t),this.b=i}function $Pe(e){NTe.call(this,e,!1),this.a=!1}function LPe(e,n){this.b=e,gye.call(this,e.b),this.a=n}function FPe(e,n){zb(),Dan.call(this,e,fS(new ws(n)))}function FC(e,n){return gt(),new WY(e,n,0)}function cL(e,n){return gt(),new WY(6,e,n)}function Iwn(e,n){return Re(e.substr(0,n.length),n)}function vs(e,n){return Ni(n)?SL(e,n):!!Xr(e.f,n)}function Wi(e,n){for(nn(n);e.Ob();)n.td(e.Pb())}function Tg(e,n,t){n1(),this.e=e,this.d=n,this.a=t}function Ga(e,n,t,i){var r;r=e.i,r.i=n,r.a=t,r.b=i}function LY(e){var n;for(n=e;n.f;)n=n.f;return n}function w2(e){var n;return n=l6(e),vn(n!=null),n}function Own(e){var n;return n=p6n(e),vn(n!=null),n}function lv(e,n){var t;return t=e.a.gc(),zQ(n,t),t-n}function FY(e,n){var t;for(t=0;t0?y.Math.log(e/n):-100}function NPe(e,n){return $c(e,n)<0?-1:$c(e,n)>0?1:0}function KY(e,n,t){return PHe(e,u(n,46),u(t,167))}function _Pe(e,n){return u(IY(f0(e.a)).Xb(n),42).cd()}function Kwn(e,n){return l3n(n,e.length),new KSe(e,n)}function fL(e,n){this.d=e,jn.call(this,e),this.e=n}function l0(e){this.d=(nn(e),e),this.a=0,this.c=yP}function qY(e,n){Gd.call(this,1),this.a=e,this.b=n}function BPe(e,n){return e.c?BPe(e.c,n):se(e.b,n),e}function qwn(e,n,t){var i;return i=Jb(e,n),UL(e,n,t),i}function HY(e,n){var t;return t=e.slice(0,n),uJ(t,e)}function RPe(e,n,t){var i;for(i=0;i=e.g}function mL(e,n,t){var i;return i=AF(e,n,t),pte(e,i)}function g2(e,n){var t;t=e.a.length,Jb(e,t),UL(e,t,n)}function nAe(e,n){var t;t=console[e],t.call(console,n)}function tAe(e,n){var t;++e.j,t=e.Vi(),e.Ii(e.oi(t,n))}function egn(e,n,t){u(n.b,65),Tu(n.a,new YX(e,t,n))}function UY(e,n,t){YE.call(this,n),this.a=e,this.b=t}function WY(e,n,t){Gd.call(this,e),this.a=n,this.b=t}function XY(e,n,t){this.a=e,Wz.call(this,n),this.b=t}function iAe(e,n,t){this.a=e,CQ.call(this,8,n,null,t)}function ngn(e){this.a=(nn(et),et),this.b=e,new wU}function rAe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function YY(e){this.c=e,this.b=e.a.d.a,pX(e.a.e,this)}function ys(e){Nb(e.c!=-1),e.d.$c(e.c),e.b=e.c,e.c=-1}function V5(e){return y.Math.sqrt(e.a*e.a+e.b*e.b)}function h0(e,n){return fv(n,e.a.c.length),ve(e.a,n)}function bl(e,n){return X(e)===X(n)||e!=null&&kt(e,n)}function tgn(e){return 0>=e?new qU:q3n(e-1)}function ign(e){return rg?SL(rg,e):!1}function cAe(e){return e?e.dc():!e.Kc().Ob()}function ar(e){return!e.a&&e.c?e.c.b:e.a}function rgn(e){return!e.a&&(e.a=new bi(T1,e,4)),e.a}function d0(e){return!e.d&&(e.d=new bi($r,e,1)),e.d}function nn(e){if(e==null)throw I(new G4);return e}function G5(e){e.c?e.c.He():(e.d=!0,fMn(e))}function qh(e){e.c?qh(e.c):(ud(e),e.d=!0)}function uAe(e){eQ(e.a),e.b=V(pn,pe,1,e.b.length,5,1)}function cgn(e,n){return mu(n.j.c.length,e.j.c.length)}function ugn(e,n){e.c<0||e.b.b=0?e.Bh(t):Sne(e,n)}function sAe(e){var n,t;return n=e.c.i.c,t=e.d.i.c,n==t}function ogn(e){if(e.p!=4)throw I(new $u);return e.e}function fgn(e){if(e.p!=3)throw I(new $u);return e.e}function lgn(e){if(e.p!=6)throw I(new $u);return e.f}function agn(e){if(e.p!=6)throw I(new $u);return e.k}function hgn(e){if(e.p!=3)throw I(new $u);return e.j}function dgn(e){if(e.p!=4)throw I(new $u);return e.j}function QY(e){return!e.b&&(e.b=new QE(new mD)),e.b}function b0(e){return e.c==-2&&lln(e,Ikn(e.g,e.b)),e.c}function dv(e,n){var t;return t=dL("",e),t.n=n,t.i=1,t}function bgn(e,n){J$(u(n.b,65),e),Tu(n.a,new Rz(e))}function wgn(e,n){Bn((!e.a&&(e.a=new $8(e,e)),e.a),n)}function oAe(e,n){this.b=e,fL.call(this,e,n),LCe(this)}function fAe(e,n){this.b=e,RX.call(this,e,n),FCe(this)}function JY(e,n,t,i){e0.call(this,e,n),this.d=t,this.a=i}function BC(e,n,t,i){e0.call(this,e,t),this.a=n,this.f=i}function lAe(e,n){Xhn.call(this,H3n(Nn(e),Nn(n))),this.a=n}function aAe(){cne.call(this,jd,(bje(),hcn)),Nxn(this)}function hAe(){cne.call(this,Co,(Um(),Ade)),zAn(this)}function dAe(){Yn.call(this,"DELAUNAY_TRIANGULATION",0)}function ggn(e){return String.fromCharCode.apply(null,e)}function jt(e,n,t){return Ni(n)?qr(e,n,t):au(e.f,n,t)}function ZY(e){return He(),e?e.ve():(Mg(),Mg(),Que)}function pgn(e,n,t){return x2(),t.pg(e,u(n.cd(),146))}function bAe(e,n){return vC(),new lee(new XCe(e),new WCe(n))}function mgn(e){return Is(e,rB),IM(or(or(5,e),e/10|0))}function RC(){RC=U,aXe=new kD(D(O(Ed,1),kP,42,0,[]))}function wAe(e){return!e.d&&(e.d=new Nm(e.c.Cc())),e.d}function bv(e){return!e.a&&(e.a=new Xke(e.c.vc())),e.a}function gAe(e){return!e.b&&(e.b=new Vm(e.c.ec())),e.b}function Bl(e,n){for(;n-- >0;)e=e<<1|(e<0?1:0);return e}function Hc(e,n){return X(e)===X(n)||e!=null&&kt(e,n)}function vgn(e,n){return cn(),u(n.b,19).ai&&++i,i}function ha(e){var n,t;return t=(n=new zd,n),Pv(t,e),t}function EL(e){var n,t;return t=(n=new zd,n),one(t,e),t}function $gn(e,n){var t;return t=kn(e.f,n),BJ(n,t),null}function TL(e){var n;return n=G3n(e),n||null}function MAe(e){return!e.b&&(e.b=new fe(Ii,e,12,3)),e.b}function Lgn(e){return e!=null&&f8(zI,e.toLowerCase())}function Fgn(e,n){return gi(Bu(e)*ms(e),Bu(n)*ms(n))}function Ngn(e,n){return gi(Bu(e)*ms(e),Bu(n)*ms(n))}function _gn(e,n){return gi(e.d.c+e.d.b/2,n.d.c+n.d.b/2)}function Bgn(e,n){return gi(e.g.c+e.g.b/2,n.g.c+n.g.b/2)}function SAe(e,n,t){t.a?Mu(e,n.b-e.f/2):Cu(e,n.a-e.g/2)}function PAe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function AAe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function G1(e,n,t,i){this.e=e,this.a=n,this.c=t,this.d=i}function xAe(e,n,t,i){this.a=e,this.c=n,this.d=t,this.b=i}function IAe(e,n,t,i){Us(),EOe.call(this,n,t,i),this.a=e}function OAe(e,n,t,i){Us(),EOe.call(this,n,t,i),this.a=e}function DAe(e,n){this.a=e,G1n.call(this,e,u(e.d,15).Zc(n))}function CL(e){this.f=e,this.c=this.f.e,e.f>0&&G_e(this)}function $Ae(e,n,t,i){this.b=e,this.c=i,a$.call(this,n,t)}function LAe(e){return vn(e.b=0&&Re(e.substr(t,n.length),n)}function Hh(e,n,t,i,r,c,o){return new XL(e.e,n,t,i,r,c,o)}function JAe(e,n,t,i,r,c){this.a=e,jF.call(this,n,t,i,r,c)}function ZAe(e,n,t,i,r,c){this.a=e,jF.call(this,n,t,i,r,c)}function exe(e,n){this.g=e,this.d=D(O(Zl,1),uh,10,0,[n])}function za(e,n){this.e=e,this.a=pn,this.b=Eqe(n),this.c=n}function nxe(e,n){lC.call(this),bJ(this),this.a=e,this.c=n}function X8(e,n,t,i){zt(e.c[n.g],t.g,i),zt(e.c[t.g],n.g,i)}function xL(e,n,t,i){zt(e.c[n.g],n.g,t),zt(e.b[n.g],n.g,i)}function spn(){return r7(),D(O(pae,1),ce,376,0,[NH,Mj])}function opn(){return l7(),D(O(ffe,1),ce,479,0,[ofe,Cx])}function fpn(){return m7(),D(O(ufe,1),ce,419,0,[Ex,cfe])}function lpn(){return kM(),D(O(Joe,1),ce,422,0,[Qoe,_q])}function apn(){return lM(),D(O(jfe,1),ce,420,0,[Zq,kfe])}function hpn(){return b7(),D(O(dae,1),ce,421,0,[$H,LH])}function dpn(){return Z5(),D(O(gnn,1),ce,523,0,[Yy,Xy])}function bpn(){return wf(),D(O(Rnn,1),ce,520,0,[Ww,p1])}function wpn(){return wl(),D(O(Enn,1),ce,516,0,[hb,dh])}function gpn(){return $f(),D(O(Cnn,1),ce,515,0,[Od,Jf])}function ppn(){return g0(),D(O(Unn,1),ce,455,0,[m1,Ip])}function mpn(){return uM(),D(O(Kae,1),ce,425,0,[JH,Rae])}function vpn(){return tM(),D(O(Bae,1),ce,480,0,[QH,_ae])}function ypn(){return UM(),D(O(qae,1),ce,495,0,[dI,g4])}function kpn(){return EM(),D(O(Vae,1),ce,426,0,[Hae,tV])}function jpn(){return P7(),D(O(Uhe,1),ce,429,0,[jI,zhe])}function Epn(){return c7(),D(O(Che,1),ce,430,0,[aV,yI])}function Tpn(){return ES(),D(O(lse,1),ce,428,0,[JK,fse])}function Cpn(){return AM(),D(O(hse,1),ce,427,0,[ase,ZK])}function Mpn(){return xM(),D(O(Rse,1),ce,424,0,[lq,zA])}function Spn(){return Lv(),D(O(BQe,1),ce,511,0,[fj,Eq])}function QC(e,n,t,i){return t>=0?e.jh(n,t,i):e.Sg(null,t,i)}function IL(e){return e.b.b==0?e.a.$e():H$(e.b)}function Ppn(e){if(e.p!=5)throw I(new $u);return Fn(e.f)}function Apn(e){if(e.p!=5)throw I(new $u);return Fn(e.k)}function oQ(e){return X(e.a)===X((OF(),UV))&&xxn(e),e.a}function txe(e){this.a=u(Nn(e),271),this.b=(He(),new nX(e))}function ixe(e,n){Xfn(this,new je(e.a,e.b)),Yfn(this,R8(n))}function g0(){g0=U,m1=new gW(z2,0),Ip=new gW(U2,1)}function wl(){wl=U,hb=new bW(U2,0),dh=new bW(z2,1)}function p0(){Bln.call(this,new n2(Zb(12))),QW(!0),this.a=2}function OL(e,n,t){gt(),Gd.call(this,e),this.b=n,this.a=t}function fQ(e,n,t){Us(),YE.call(this,n),this.a=e,this.b=t}function rxe(e){lC.call(this),bJ(this),this.a=e,this.c=!0}function cxe(e){var n;n=e.c.d.b,e.b=n,e.a=e.c.d,n.a=e.c.d.b=e}function JC(e){var n;F3n(e.a),gCe(e.a),n=new zE(e.a),_Z(n)}function xpn(e,n){bqe(e,!0),Tu(e.e.wf(),new zX(e,!0,n))}function ZC(e,n){return _Ie(n),D3n(e,V($n,nt,25,n,15,1),n)}function Ipn(e,n){return m2(),e==Ut(Vl(n))||e==Ut(Jh(n))}function Vc(e,n){return n==null?mc(Xr(e.f,null)):o5(e.g,n)}function Opn(e){return e.b==0?null:(vn(e.b!=0),Zs(e,e.a.a))}function ci(e){return Math.max(Math.min(e,vt),-2147483648)|0}function Dpn(e,n){var t=qK[e.charCodeAt(0)];return t??e}function eM(e,n){return zC(e,"set1"),zC(n,"set2"),new nEe(e,n)}function $pn(e,n){var t;return t=P3n(e.f,n),Mt(oC(t),e.f.d)}function U5(e,n){var t,i;return t=n,i=new Tb,tVe(e,t,i),i.d}function DL(e,n,t,i){var r;r=new zMe,n.a[t.g]=r,d2(e.b,i,r)}function lQ(e,n,t){var i;i=e.Yg(n),i>=0?e.sh(i,t):Zne(e,n,t)}function Sg(e,n,t){iM(),e&&jt(VV,e,n),e&&jt(tE,e,t)}function uxe(e,n,t){this.i=new oe,this.b=e,this.g=n,this.a=t}function nM(e,n,t){this.c=new oe,this.e=e,this.f=n,this.b=t}function aQ(e,n,t){this.a=new oe,this.e=e,this.f=n,this.c=t}function sxe(e,n){JT(this),this.f=n,this.g=e,GC(this),this._d()}function Y8(e,n){var t;t=e.q.getHours(),e.q.setDate(n),F6(e,t)}function oxe(e,n){var t;for(Nn(n),t=e.a;t;t=t.c)n.Od(t.g,t.i)}function fxe(e){var n;return n=new lT(Zb(e.length)),tZ(n,e),n}function Lpn(e){function n(){}return n.prototype=e||{},new n}function Fpn(e,n){return _Le(e,n)?(F$e(e),!0):!1}function da(e,n){if(n==null)throw I(new G4);return Dyn(e,n)}function Npn(e){if(e.qe())return null;var n=e.n;return AA[n]}function Q8(e){return e.Db>>16!=3?null:u(e.Cb,33)}function Df(e){return e.Db>>16!=9?null:u(e.Cb,33)}function lxe(e){return e.Db>>16!=6?null:u(e.Cb,79)}function axe(e){return e.Db>>16!=7?null:u(e.Cb,235)}function hxe(e){return e.Db>>16!=7?null:u(e.Cb,160)}function Ut(e){return e.Db>>16!=11?null:u(e.Cb,33)}function dxe(e,n){var t;return t=e.Yg(n),t>=0?e.lh(t):o_(e,n)}function bxe(e,n){var t;return t=new gY(n),wBe(t,e),new _u(t)}function hQ(e){var n;return n=e.d,n=e.si(e.f),Bn(e,n),n.Ob()}function wxe(e,n){return e.b+=n.b,e.c+=n.c,e.d+=n.d,e.a+=n.a,e}function $L(e,n){return y.Math.abs(e)0}function gxe(){this.a=new fa,this.e=new Si,this.g=0,this.i=0}function pxe(e){this.a=e,this.b=V(dnn,ie,1944,e.e.length,0,2)}function LL(e,n,t){var i;i=rFe(e,n,t),e.b=new zM(i.c.length)}function $f(){$f=U,Od=new dW(KB,0),Jf=new dW("UP",1)}function tM(){tM=U,QH=new pW(Ize,0),_ae=new pW("FAN",1)}function iM(){iM=U,VV=new Ln,tE=new Ln,rhn(AXe,new U3e)}function Bpn(e){if(e.p!=0)throw I(new $u);return j5(e.f,0)}function Rpn(e){if(e.p!=0)throw I(new $u);return j5(e.k,0)}function mxe(e){return e.Db>>16!=3?null:u(e.Cb,147)}function mv(e){return e.Db>>16!=6?null:u(e.Cb,235)}function Ub(e){return e.Db>>16!=17?null:u(e.Cb,26)}function vxe(e,n){var t=e.a=e.a||[];return t[n]||(t[n]=e.le(n))}function Kpn(e,n){var t;return t=e.a.get(n),t??new Array}function qpn(e,n){var t;t=e.q.getHours(),e.q.setMonth(n),F6(e,t)}function qr(e,n,t){return n==null?au(e.f,null,t):x0(e.g,n,t)}function W5(e,n,t,i,r,c){return new pa(e.e,n,e.aj(),t,i,r,c)}function J8(e,n,t){return e.a=Ms(e.a,0,n)+(""+t)+S8(e.a,n),e}function Hpn(e,n,t){return se(e.a,(RC(),ON(n,t),new e0(n,t))),e}function dQ(e){return ZW(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function yxe(e){return ZW(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function Ki(e,n){e.d&&ju(e.d.e,e),e.d=n,e.d&&se(e.d.e,e)}function sr(e,n){e.c&&ju(e.c.g,e),e.c=n,e.c&&se(e.c.g,e)}function Hr(e,n){e.c&&ju(e.c.a,e),e.c=n,e.c&&se(e.c.a,e)}function lc(e,n){e.i&&ju(e.i.j,e),e.i=n,e.i&&se(e.i.j,e)}function kxe(e,n,t){this.a=n,this.c=e,this.b=(Nn(t),new _u(t))}function jxe(e,n,t){this.a=n,this.c=e,this.b=(Nn(t),new _u(t))}function Exe(e,n){this.a=e,this.c=vc(this.a),this.b=new YC(n)}function Vpn(e){var n;return ud(e),n=new Si,Lt(e,new Qye(n))}function Wb(e,n){if(e<0||e>n)throw I(new Rr(mie+e+vie+n))}function bQ(e,n){return dPe(e.a,n)?_Y(e,u(n,22).g,null):null}function Gpn(e){return JF(),cn(),u(e.a,81).d.e!=0}function Txe(){Txe=U,bXe=Zn((tT(),D(O(dXe,1),ce,538,0,[RK])))}function Cxe(){Cxe=U,enn=Uu(new Pi,(mr(),Jr),(Mr(),lj))}function wQ(){wQ=U,nnn=Uu(new Pi,(mr(),Jr),(Mr(),lj))}function Mxe(){Mxe=U,inn=Uu(new Pi,(mr(),Jr),(Mr(),lj))}function Sxe(){Sxe=U,mnn=mt(new Pi,(mr(),Jr),(Mr(),Py))}function Ss(){Ss=U,knn=mt(new Pi,(mr(),Jr),(Mr(),Py))}function Pxe(){Pxe=U,jnn=mt(new Pi,(mr(),Jr),(Mr(),Py))}function FL(){FL=U,Snn=mt(new Pi,(mr(),Jr),(Mr(),Py))}function Axe(){Axe=U,dtn=Uu(new Pi,(t3(),Jy),(P6(),qH))}function U1(e,n,t,i){this.c=e,this.d=i,_L(this,n),BL(this,t)}function y2(e){this.c=new Vt,this.b=e.b,this.d=e.c,this.a=e.a}function NL(e){this.a=y.Math.cos(e),this.b=y.Math.sin(e)}function _L(e,n){e.a&&ju(e.a.k,e),e.a=n,e.a&&se(e.a.k,e)}function BL(e,n){e.b&&ju(e.b.f,e),e.b=n,e.b&&se(e.b.f,e)}function xxe(e,n){egn(e,e.b,e.c),u(e.b.b,65),n&&u(n.b,65).b}function zpn(e,n){IZ(e,n),_(e.Cb,88)&&dw(ns(u(e.Cb,88)),2)}function RL(e,n){_(e.Cb,88)&&dw(ns(u(e.Cb,88)),4),iu(e,n)}function rM(e,n){_(e.Cb,179)&&(u(e.Cb,179).tb=null),iu(e,n)}function Gc(e,n){return Er(),gF(n)?new yC(n,e):new M8(n,e)}function Upn(e,n){var t,i;t=n.c,i=t!=null,i&&g2(e,new Gb(n.c))}function Ixe(e){var n,t;return t=(Um(),n=new zd,n),Pv(t,e),t}function Oxe(e){var n,t;return t=(Um(),n=new zd,n),Pv(t,e),t}function Dxe(e,n){var t;return t=new wo(e),n.c[n.c.length]=t,t}function $xe(e,n){var t;return t=u(rw(v2(e.a),n),14),t?t.gc():0}function Lxe(e){var n;return ud(e),n=(Mg(),Mg(),Yue),DM(e,n)}function Fxe(e){for(var n;;)if(n=e.Pb(),!e.Ob())return n}function gQ(e,n){Nln.call(this,new n2(Zb(e))),Is(n,XVe),this.a=n}function Rl(e,n,t){HFe(n,t,e.gc()),this.c=e,this.a=n,this.b=t-n}function Nxe(e,n,t){var i;HFe(n,t,e.c.length),i=t-n,RU(e.c,n,i)}function Wpn(e,n){$Ce(e,Fn(ji(_h(n,24),TP)),Fn(ji(n,TP)))}function Qe(e,n){if(e<0||e>=n)throw I(new Rr(mie+e+vie+n))}function Gn(e,n){if(e<0||e>=n)throw I(new PU(mie+e+vie+n))}function Ye(e,n){this.b=(nn(e),e),this.a=n&jw?n:n|64|ml}function _xe(e){wCe(this),X7e(this.a,eZ(y.Math.max(8,e))<<1)}function Lf(e){return hc(D(O(xi,1),ie,8,0,[e.i.n,e.n,e.a]))}function Xpn(){return qf(),D(O(os,1),ce,132,0,[use,_s,Iw])}function Ypn(){return mf(),D(O(Ow,1),ce,232,0,[jc,su,Ec])}function Qpn(){return Xu(),D(O(JXe,1),ce,461,0,[Al,l1,nf])}function Jpn(){return Eu(),D(O(eYe,1),ce,462,0,[Cf,a1,tf])}function Zpn(){return A0(),D(O(roe,1),ce,423,0,[gp,ioe,yq])}function e2n(){return n6(),D(O(eoe,1),ce,379,0,[bq,dq,wq])}function n2n(){return a6(),D(O(iae,1),ce,378,0,[PH,tae,Jx])}function t2n(){return P2(),D(O(efe,1),ce,314,0,[um,hj,Zoe])}function i2n(){return BM(),D(O(tfe,1),ce,337,0,[nfe,jx,Bq])}function r2n(){return td(),D(O(bJe,1),ce,450,0,[qq,t4,yp])}function c2n(){return S0(),D(O(Aq,1),ce,361,0,[tb,d1,nb])}function u2n(){return ma(),D(O(jJe,1),ce,303,0,[bj,jp,sm])}function s2n(){return Rv(),D(O(Jq,1),ce,292,0,[Yq,Qq,dj])}function o2n(){return Pr(),D(O(Uen,1),ce,452,0,[zy,Ju,ou])}function f2n(){return ya(),D(O(hae,1),ce,339,0,[g1,aae,DH])}function l2n(){return JM(),D(O(gae,1),ce,375,0,[bae,FH,wae])}function a2n(){return iS(),D(O(Eae,1),ce,377,0,[RH,b4,Uw])}function h2n(){return Uv(),D(O(vae,1),ce,336,0,[_H,mae,Uy])}function d2n(){return YM(),D(O(jae,1),ce,338,0,[kae,BH,yae])}function b2n(){return M0(),D(O(ann,1),ce,454,0,[Sj,Wy,tI])}function w2n(){return bS(),D(O(mtn,1),ce,442,0,[nV,ZH,eV])}function g2n(){return O7(),D(O(Uae,1),ce,380,0,[bI,Gae,zae])}function p2n(){return dS(),D(O(ahe,1),ce,381,0,[lhe,sV,fhe])}function m2n(){return QM(),D(O(she,1),ce,293,0,[uV,uhe,che])}function v2n(){return _7(),D(O(oV,1),ce,437,0,[pI,mI,vI])}function y2n(){return ka(),D(O(ede,1),ce,334,0,[OI,ph,a9])}function k2n(){return Bf(),D(O(q1e,1),ce,272,0,[v4,Qw,y4])}function j2n(e,n){return HTn(e,n,_(n,99)&&(u(n,18).Bb&yr)!=0)}function E2n(e,n,t){var i;return i=B6(e,n,!1),i.b<=n&&i.a<=t}function Bxe(e,n,t){var i;i=new Zme,i.b=n,i.a=t,++n.b,se(e.d,i)}function T2n(e,n){var t;return t=(nn(e),e).g,aX(!!t),nn(n),t(n)}function pQ(e,n){var t,i;return i=lv(e,n),t=e.a.Zc(i),new eEe(e,t)}function C2n(e){return e.Db>>16!=6?null:u(a_(e),235)}function M2n(e){if(e.p!=2)throw I(new $u);return Fn(e.f)&si}function S2n(e){if(e.p!=2)throw I(new $u);return Fn(e.k)&si}function P2n(e){return e.a==(jv(),YI)&&fln(e,cCn(e.g,e.b)),e.a}function k2(e){return e.d==(jv(),YI)&&aln(e,JSn(e.g,e.b)),e.d}function P(e){return vn(e.ai?1:0}function Rxe(e,n){var t,i;return t=aF(n),i=t,u(kn(e.c,i),19).a}function Kxe(e,n){var t;for(t=e+"";t.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function uIe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function B2n(e){return!!e.a&&ts(e.a.a).i!=0&&!(e.b&&AN(e.b))}function R2n(e){return!!e.u&&Bc(e.u.a).i!=0&&!(e.n&&PN(e.n))}function sIe(e){return U$(e.e.Hd().gc()*e.c.Hd().gc(),16,new rye(e))}function K2n(e,n){return NPe(Su(e.q.getTime()),Su(n.q.getTime()))}function gl(e){return u(Hf(e,V(kq,iR,17,e.c.length,0,1)),474)}function Z8(e){return u(Hf(e,V(Zl,uh,10,e.c.length,0,1)),193)}function q2n(e){return Ss(),!gr(e)&&!(!gr(e)&&e.c.i.c==e.d.i.c)}function oIe(e,n,t){var i;i=(Nn(e),new _u(e)),m8n(new kxe(i,n,t))}function e7(e,n,t){var i;i=(Nn(e),new _u(e)),v8n(new jxe(i,n,t))}function fIe(e,n){var t;return t=1-n,e.a[t]=GM(e.a[t],t),GM(e,n)}function lIe(e,n){var t;e.e=new kU,t=gw(n),Oi(t,e.c),iqe(e,t,0)}function qi(e,n,t,i){var r;r=new sz,r.a=n,r.b=t,r.c=i,ut(e.a,r)}function de(e,n,t,i){var r;r=new sz,r.a=n,r.b=t,r.c=i,ut(e.b,r)}function Wo(e){var n,t,i;return n=new VPe,t=x_(n,e),SIn(n),i=t,i}function EQ(){var e,n,t;return n=(t=(e=new zd,e),t),se(Bde,n),n}function sM(e){return e.j.c=V(pn,pe,1,0,5,1),eQ(e.c),jgn(e.a),e}function Pg(e){return r5(),_(e.g,10)?u(e.g,10):null}function H2n(e){return Cg(e).dc()?!1:(qhn(e,new Mi),!0)}function V2n(e){if(!("stack"in e))try{throw e}catch{}return e}function n7(e,n){if(e<0||e>=n)throw I(new Rr(iEn(e,n)));return e}function aIe(e,n,t){if(e<0||nt)throw I(new Rr(Pjn(e,n,t)))}function VL(e,n){if(ki(e.a,n),n.d)throw I(new oc(pGe));n.d=e}function GL(e,n){if(n.$modCount!=e.$modCount)throw I(new zs)}function hIe(e,n){return _(n,42)?$N(e.a,u(n,42)):!1}function dIe(e,n){return _(n,42)?$N(e.a,u(n,42)):!1}function bIe(e,n){return _(n,42)?$N(e.a,u(n,42)):!1}function G2n(e,n){return e.a<=e.b?(n.ud(e.a++),!0):!1}function v0(e){var n;return nc(e)?(n=e,n==-0?0:n):e3n(e)}function oM(e){var n;return qh(e),n=new Dm,dg(e.a,new Xye(n)),n}function wIe(e){var n;return qh(e),n=new og,dg(e.a,new Wye(n)),n}function zi(e,n){this.a=e,K4.call(this,e),Wb(n,e.gc()),this.b=n}function TQ(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function z2n(e){return U$(e.e.Hd().gc()*e.c.Hd().gc(),273,new iye(e))}function fM(e){return new tu((Is(e,rB),IM(or(or(5,e),e/10|0))))}function gIe(e){return u(Hf(e,V(FQe,WGe,11,e.c.length,0,1)),1943)}function U2n(e,n,t){return t.f.c.length>0?KY(e.a,n,t):KY(e.b,n,t)}function W2n(e,n,t){e.d&&ju(e.d.e,e),e.d=n,e.d&&qb(e.d.e,t,e)}function zL(e,n){KOn(n,e),uY(e.d),uY(u(M(e,(be(),Gx)),207))}function Y5(e,n){ROn(n,e),cY(e.d),cY(u(M(e,(be(),Gx)),207))}function y0(e,n){var t,i;return t=da(e,n),i=null,t&&(i=t.fe()),i}function vv(e,n){var t,i;return t=Jb(e,n),i=null,t&&(i=t.ie()),i}function Q5(e,n){var t,i;return t=da(e,n),i=null,t&&(i=t.ie()),i}function ba(e,n){var t,i;return t=da(e,n),i=null,t&&(i=wne(t)),i}function X2n(e,n,t){var i;return i=e3(t),uP(e.g,i,n),uP(e.i,n,t),n}function Y2n(e,n,t){var i;i=Tyn();try{return ndn(e,n,t)}finally{smn(i)}}function pIe(e){var n;n=e.Wg(),this.a=_(n,69)?u(n,69).Zh():n.Kc()}function Pi(){Ike.call(this),this.j.c=V(pn,pe,1,0,5,1),this.a=-1}function CQ(e,n,t,i){this.d=e,this.n=n,this.g=t,this.o=i,this.p=-1}function mIe(e,n,t,i){this.e=i,this.d=null,this.c=e,this.a=n,this.b=t}function MQ(e,n,t){this.d=new u8e(this),this.e=e,this.i=n,this.f=t}function lM(){lM=U,Zq=new fW(S3,0),kfe=new fW("TOP_LEFT",1)}function vIe(){vIe=U,Cae=bAe(le(1),le(4)),Tae=bAe(le(1),le(2))}function yIe(){yIe=U,oin=Zn((yT(),D(O(sin,1),ce,551,0,[lV])))}function kIe(){kIe=U,uin=Zn((vT(),D(O(The,1),ce,482,0,[fV])))}function jIe(){jIe=U,Min=Zn((c5(),D(O(Ghe,1),ce,530,0,[Dj])))}function EIe(){EIe=U,OYe=Zn((pT(),D(O(Dse,1),ce,481,0,[cq])))}function Q2n(){return P0(),D(O(CYe,1),ce,406,0,[ej,Zk,iq,rq])}function J2n(){return TM(),D(O(NA,1),ce,297,0,[XK,tse,ise,rse])}function Z2n(){return k6(),D(O(xYe,1),ce,394,0,[cj,qA,HA,uj])}function emn(){return L2(),D(O(SYe,1),ce,323,0,[tj,nj,ij,rj])}function nmn(){return Kv(),D(O(TQe,1),ce,405,0,[eb,$w,Dw,wp])}function tmn(){return tS(),D(O(HQe,1),ce,360,0,[Sq,wx,gx,aj])}function TIe(e,n,t,i){return _(t,54)?new lMe(e,n,t,i):new xY(e,n,t,i)}function imn(){return Kf(),D(O(JQe,1),ce,411,0,[cm,Q3,J3,Pq])}function rmn(e){var n;return e.j==(ae(),On)&&(n=zRe(e),Nu(n,hn))}function cmn(e,n){var t;t=n.a,sr(t,n.c.d),Ki(t,n.d.d),nw(t.a,e.n)}function CIe(e,n){return u(s0(IC(u(Tt(e.k,n),15).Oc(),pp)),113)}function MIe(e,n){return u(s0(OC(u(Tt(e.k,n),15).Oc(),pp)),113)}function umn(e){return new Ye(i4n(u(e.a.dd(),14).gc(),e.a.cd()),16)}function yv(e){return _(e,14)?u(e,14).dc():!e.Kc().Ob()}function j2(e){return r5(),_(e.g,145)?u(e.g,145):null}function SIe(e){if(e.e.g!=e.b)throw I(new zs);return!!e.c&&e.d>0}function rt(e){return vn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function SQ(e,n){nn(n),zt(e.a,e.c,n),e.c=e.c+1&e.a.length-1,P_e(e)}function Vh(e,n){nn(n),e.b=e.b-1&e.a.length-1,zt(e.a,e.b,n),P_e(e)}function PIe(e,n){var t;for(t=e.j.c.length;t0&&Kc(e.g,0,n,0,e.i),n}function OIe(e,n){ET();var t;return t=u(kn(GI,e),55),!t||t.wj(n)}function vmn(e){if(e.p!=1)throw I(new $u);return Fn(e.f)<<24>>24}function ymn(e){if(e.p!=1)throw I(new $u);return Fn(e.k)<<24>>24}function kmn(e){if(e.p!=7)throw I(new $u);return Fn(e.k)<<16>>16}function jmn(e){if(e.p!=7)throw I(new $u);return Fn(e.f)<<16>>16}function wa(e){var n;for(n=0;e.Ob();)e.Pb(),n=or(n,1);return IM(n)}function DIe(e,n){var t;return t=new Ib,e.xd(t),t.a+="..",n.yd(t),t.a}function Emn(e,n,t){var i;i=u(kn(e.g,t),57),se(e.a.c,new Gi(n,i))}function Tmn(e,n,t){return tL(he(mc(Xr(e.f,n))),he(mc(Xr(e.f,t))))}function aM(e,n,t){return oP(e,n,t,_(n,99)&&(u(n,18).Bb&yr)!=0)}function Cmn(e,n,t){return g3(e,n,t,_(n,99)&&(u(n,18).Bb&yr)!=0)}function Mmn(e,n,t){return XTn(e,n,t,_(n,99)&&(u(n,18).Bb&yr)!=0)}function xQ(e,n){return e==(dn(),vi)&&n==vi?4:e==vi||n==vi?8:32}function $Ie(e,n){return X(n)===X(e)?"(this Map)":n==null?Au:rc(n)}function Smn(e,n){return u(n==null?mc(Xr(e.f,null)):o5(e.g,n),281)}function LIe(e,n,t){var i;return i=e3(t),jt(e.b,i,n),jt(e.c,n,t),n}function FIe(e,n){var t;for(t=n;t;)_b(e,t.i,t.j),t=Ut(t);return e}function IQ(e,n){var t;return t=U8(uv(new hF(e,n))),jC(new hF(e,n)),t}function Kl(e,n){Er();var t;return t=u(e,66).Mj(),sjn(t,n),t.Ok(n)}function Pmn(e,n,t,i,r){var c;c=eCn(r,t,i),se(n,Jjn(r,c)),Hkn(e,r,n)}function NIe(e,n,t){e.i=0,e.e=0,n!=t&&(oFe(e,n,t),sFe(e,n,t))}function OQ(e,n){var t;t=e.q.getHours(),e.q.setFullYear(n+r1),F6(e,t)}function Amn(e,n,t){if(t){var i=t.ee();e.a[n]=i(t)}else delete e.a[n]}function UL(e,n,t){if(t){var i=t.ee();t=i(t)}else t=void 0;e.a[n]=t}function _Ie(e){if(e<0)throw I(new Hke("Negative array size: "+e))}function Bc(e){return e.n||(ns(e),e.n=new pPe(e,$r,e),Wr(e)),e.n}function J5(e){return vn(e.a=0&&e.a[t]===n[t];t--);return t<0}function HIe(e,n){zv();var t;return t=e.j.g-n.j.g,t!=0?t:0}function VIe(e,n){return nn(n),e.a!=null?bwn(n.Kb(e.a)):FA}function hM(e){var n;return e?new gY(e):(n=new fa,IF(n,e),n)}function As(e,n){var t;return n.b.Kb(FDe(e,n.c.Ee(),(t=new Zye(n),t)))}function dM(e){Zee(),$Ce(this,Fn(ji(_h(e,24),TP)),Fn(ji(e,TP)))}function GIe(){GIe=U,zXe=Zn((ES(),D(O(lse,1),ce,428,0,[JK,fse])))}function zIe(){zIe=U,UXe=Zn((AM(),D(O(hse,1),ce,427,0,[ase,ZK])))}function UIe(){UIe=U,XYe=Zn((xM(),D(O(Rse,1),ce,424,0,[lq,zA])))}function WIe(){WIe=U,RQe=Zn((Lv(),D(O(BQe,1),ce,511,0,[fj,Eq])))}function XIe(){XIe=U,dJe=Zn((m7(),D(O(ufe,1),ce,419,0,[Ex,cfe])))}function YIe(){YIe=U,pJe=Zn((l7(),D(O(ffe,1),ce,479,0,[ofe,Cx])))}function QIe(){QIe=U,Yen=Zn((r7(),D(O(pae,1),ce,376,0,[NH,Mj])))}function JIe(){JIe=U,zen=Zn((b7(),D(O(dae,1),ce,421,0,[$H,LH])))}function ZIe(){ZIe=U,fJe=Zn((kM(),D(O(Joe,1),ce,422,0,[Qoe,_q])))}function eOe(){eOe=U,TJe=Zn((lM(),D(O(jfe,1),ce,420,0,[Zq,kfe])))}function nOe(){nOe=U,Knn=Zn((wf(),D(O(Rnn,1),ce,520,0,[Ww,p1])))}function tOe(){tOe=U,pnn=Zn((Z5(),D(O(gnn,1),ce,523,0,[Yy,Xy])))}function iOe(){iOe=U,Tnn=Zn((wl(),D(O(Enn,1),ce,516,0,[hb,dh])))}function rOe(){rOe=U,Mnn=Zn(($f(),D(O(Cnn,1),ce,515,0,[Od,Jf])))}function cOe(){cOe=U,Wnn=Zn((g0(),D(O(Unn,1),ce,455,0,[m1,Ip])))}function uOe(){uOe=U,htn=Zn((uM(),D(O(Kae,1),ce,425,0,[JH,Rae])))}function sOe(){sOe=U,ptn=Zn((UM(),D(O(qae,1),ce,495,0,[dI,g4])))}function oOe(){oOe=U,atn=Zn((tM(),D(O(Bae,1),ce,480,0,[QH,_ae])))}function fOe(){fOe=U,ytn=Zn((EM(),D(O(Vae,1),ce,426,0,[Hae,tV])))}function lOe(){lOe=U,Sin=Zn((P7(),D(O(Uhe,1),ce,429,0,[jI,zhe])))}function aOe(){aOe=U,fin=Zn((c7(),D(O(Che,1),ce,430,0,[aV,yI])))}function Z5(){Z5=U,Yy=new hW("UPPER",0),Xy=new hW("LOWER",1)}function Dmn(e,n){var t;t=new Jp,z1(t,"x",n.a),z1(t,"y",n.b),g2(e,t)}function $mn(e,n){var t;t=new Jp,z1(t,"x",n.a),z1(t,"y",n.b),g2(e,t)}function Lmn(e,n){var t,i;i=!1;do t=ZLe(e,n),i=i|t;while(t);return i}function LQ(e,n){var t,i;for(t=n,i=0;t>0;)i+=e.a[t],t-=t&-t;return i}function hOe(e,n){var t;for(t=n;t;)_b(e,-t.i,-t.j),t=Ut(t);return e}function Yi(e,n){var t,i;for(nn(n),i=e.Kc();i.Ob();)t=i.Pb(),n.td(t)}function dOe(e,n){var t;return t=n.cd(),new e0(t,e.e.pc(t,u(n.dd(),14)))}function ri(e,n,t,i){var r;r=new _a,r.c=n,r.b=t,r.a=i,i.b=t.a=r,++e.b}function Qs(e,n,t){var i;return i=(Qe(n,e.c.length),e.c[n]),e.c[n]=t,i}function Fmn(e,n,t){return u(n==null?au(e.f,null,t):x0(e.g,n,t),281)}function QL(e){return e.c&&e.d?mQ(e.c)+"->"+mQ(e.d):"e_"+c0(e)}function kv(e,n){return(ud(e),n5(new We(e,new cJ(n,e.a)))).sd(z3)}function Nmn(){return mr(),D(O(noe,1),ce,356,0,[xl,h1,du,Yc,Jr])}function _mn(){return ae(),D(O(kr,1),Lc,61,0,[gc,tn,hn,On,un])}function Bmn(e){return uT(),function(){return Y2n(e,this,arguments)}}function Rmn(){return Date.now?Date.now():new Date().getTime()}function gr(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function bOe(e){if(!e.c.Sb())throw I(new Sc);return e.a=!0,e.c.Ub()}function t7(e){e.i=0,b8(e.b,null),b8(e.c,null),e.a=null,e.e=null,++e.g}function FQ(e){Uan.call(this,e==null?Au:rc(e),_(e,78)?u(e,78):null)}function wOe(e){RVe(),B7e(this),this.a=new Vt,fZ(this,e),ut(this.a,e)}function gOe(){g$(this),this.b=new je(Jt,Jt),this.a=new je(hi,hi)}function pOe(e,n){this.c=0,this.b=n,GTe.call(this,e,17493),this.a=this.c}function JL(e){bM(),!Xf&&(this.c=e,this.e=!0,this.a=new oe)}function bM(){bM=U,Xf=!0,FXe=!1,NXe=!1,BXe=!1,_Xe=!1}function NQ(e,n){return _(n,149)?Re(e.c,u(n,149).c):!1}function _Q(e,n){var t;return t=0,e&&(t+=e.f.a/2),n&&(t+=n.f.a/2),t}function ZL(e,n){var t;return t=u(k0(e.d,n),23),t||u(k0(e.e,n),23)}function mOe(e){this.b=e,jn.call(this,e),this.a=u(en(this.b.a,4),126)}function vOe(e){this.b=e,f2.call(this,e),this.a=u(en(this.b.a,4),126)}function ns(e){return e.t||(e.t=new A7e(e),w6(new qke(e),0,e.t)),e.t}function Kmn(){return Ar(),D(O(f9,1),ce,103,0,[ea,cf,Ao,Oa,Da])}function qmn(){return _g(),D(O(d9,1),ce,249,0,[k1,Uj,nde,h9,tde])}function Hmn(){return yf(),D(O(gh,1),ce,175,0,[an,Li,Dl,Dd,wh])}function Vmn(){return J7(),D(O(Ahe,1),ce,316,0,[Mhe,hV,Phe,dV,She])}function Gmn(){return j6(),D(O(cae,1),ce,315,0,[rae,IH,OH,Vy,Gy])}function zmn(){return ld(),D(O(rfe,1),ce,335,0,[Rq,ife,Kq,Iy,xy])}function Umn(){return d3(),D(O(iin,1),ce,355,0,[Op,pm,r9,i9,c9])}function Wmn(){return Vg(),D(O(eJe,1),ce,363,0,[mx,yx,kx,vx,px])}function Xmn(){return to(),D(O(Lfe,1),ce,163,0,[vj,Fy,b1,Ny,_w])}function jv(){jv=U;var e,n;XI=(Um(),n=new ZE,n),YI=(e=new wD,e)}function yOe(e){var n;return e.c||(n=e.r,_(n,88)&&(e.c=u(n,26))),e.c}function Ymn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function eF(e){var n,t,i;return n=e&ss,t=e>>22&ss,i=e<0?Pa:0,fu(n,t,i)}function Qmn(e){var n,t,i,r;for(t=e,i=0,r=t.length;i0?mNe(e,n):RKe(e,-n)}function BQ(e,n){return n==0||e.e==0?e:n>0?RKe(e,n):mNe(e,-n)}function _n(e){if(Un(e))return e.c=e.a,e.a.Pb();throw I(new Sc)}function jOe(e){var n,t;return n=e.c.i,t=e.d.i,n.k==(dn(),fi)&&t.k==fi}function nF(e){var n;return n=new w0,Yr(n,e),te(n,(be(),Ur),null),n}function tF(e,n,t){var i;return i=e.Yg(n),i>=0?e._g(i,t,!0):_0(e,n,t)}function RQ(e,n,t,i){var r;for(r=0;rn)throw I(new Rr(jne(e,n,"index")));return e}function iF(e,n,t,i){var r;return r=V($n,nt,25,n,15,1),lkn(r,e,n,t,i),r}function Zmn(e,n){var t;t=e.q.getHours()+(n/60|0),e.q.setMinutes(n),F6(e,t)}function evn(e,n){return y.Math.min(Gh(n.a,e.d.d.c),Gh(n.b,e.d.d.c))}function C2(e,n){return Ni(n)?n==null?Bne(e.f,null):LLe(e.g,n):Bne(e.f,n)}function _f(e){this.c=e,this.a=new A(this.c.a),this.b=new A(this.c.b)}function wM(){this.e=new oe,this.c=new oe,this.d=new oe,this.b=new oe}function SOe(){this.g=new rU,this.b=new rU,this.a=new oe,this.k=new oe}function POe(e,n,t){this.a=e,this.c=n,this.d=t,se(n.e,this),se(t.b,this)}function AOe(e,n){VTe.call(this,n.rd(),n.qd()&-6),nn(e),this.a=e,this.b=n}function xOe(e,n){GTe.call(this,n.rd(),n.qd()&-6),nn(e),this.a=e,this.b=n}function UQ(e,n){a$.call(this,n.rd(),n.qd()&-6),nn(e),this.a=e,this.b=n}function gM(e,n,t){this.a=e,this.b=n,this.c=t,se(e.t,this),se(n.i,this)}function pM(){this.b=new Vt,this.a=new Vt,this.b=new Vt,this.a=new Vt}function mM(){mM=U,u9=new Rt("org.eclipse.elk.labels.labelManager")}function IOe(){IOe=U,zoe=new yi("separateLayerConnections",(tS(),Sq))}function wf(){wf=U,Ww=new wW("REGULAR",0),p1=new wW("CRITICAL",1)}function r7(){r7=U,NH=new aW("STACKED",0),Mj=new aW("SEQUENCED",1)}function c7(){c7=U,aV=new kW("FIXED",0),yI=new kW("CENTER_NODE",1)}function nvn(e,n){var t;return t=cIn(e,n),e.b=new zM(t.c.length),pxn(e,t)}function tvn(e,n,t){var i;return++e.e,--e.f,i=u(e.d[n].$c(t),133),i.dd()}function OOe(e){var n;return e.a||(n=e.r,_(n,148)&&(e.a=u(n,148))),e.a}function WQ(e){if(e.a){if(e.e)return WQ(e.e)}else return e;return null}function ivn(e,n){return e.pn.p?-1:0}function vM(e,n){return nn(n),e.c=0,"Initial capacity must not be negative")}function LOe(){LOe=U,QXe=Zn((mf(),D(O(Ow,1),ce,232,0,[jc,su,Ec])))}function FOe(){FOe=U,ZXe=Zn((Xu(),D(O(JXe,1),ce,461,0,[Al,l1,nf])))}function NOe(){NOe=U,nYe=Zn((Eu(),D(O(eYe,1),ce,462,0,[Cf,a1,tf])))}function _Oe(){_Oe=U,RXe=Zn((qf(),D(O(os,1),ce,132,0,[use,_s,Iw])))}function BOe(){BOe=U,gQe=Zn((n6(),D(O(eoe,1),ce,379,0,[bq,dq,wq])))}function ROe(){ROe=U,IQe=Zn((A0(),D(O(roe,1),ce,423,0,[gp,ioe,yq])))}function KOe(){KOe=U,lJe=Zn((P2(),D(O(efe,1),ce,314,0,[um,hj,Zoe])))}function qOe(){qOe=U,aJe=Zn((BM(),D(O(tfe,1),ce,337,0,[nfe,jx,Bq])))}function HOe(){HOe=U,wJe=Zn((td(),D(O(bJe,1),ce,450,0,[qq,t4,yp])))}function VOe(){VOe=U,uJe=Zn((S0(),D(O(Aq,1),ce,361,0,[tb,d1,nb])))}function GOe(){GOe=U,EJe=Zn((ma(),D(O(jJe,1),ce,303,0,[bj,jp,sm])))}function zOe(){zOe=U,kJe=Zn((Rv(),D(O(Jq,1),ce,292,0,[Yq,Qq,dj])))}function UOe(){UOe=U,Ken=Zn((a6(),D(O(iae,1),ce,378,0,[PH,tae,Jx])))}function WOe(){WOe=U,Xen=Zn((JM(),D(O(gae,1),ce,375,0,[bae,FH,wae])))}function XOe(){XOe=U,Gen=Zn((ya(),D(O(hae,1),ce,339,0,[g1,aae,DH])))}function YOe(){YOe=U,Wen=Zn((Pr(),D(O(Uen,1),ce,452,0,[zy,Ju,ou])))}function QOe(){QOe=U,Zen=Zn((iS(),D(O(Eae,1),ce,377,0,[RH,b4,Uw])))}function JOe(){JOe=U,Qen=Zn((Uv(),D(O(vae,1),ce,336,0,[_H,mae,Uy])))}function ZOe(){ZOe=U,Jen=Zn((YM(),D(O(jae,1),ce,338,0,[kae,BH,yae])))}function eDe(){eDe=U,hnn=Zn((M0(),D(O(ann,1),ce,454,0,[Sj,Wy,tI])))}function nDe(){nDe=U,vtn=Zn((bS(),D(O(mtn,1),ce,442,0,[nV,ZH,eV])))}function tDe(){tDe=U,ktn=Zn((O7(),D(O(Uae,1),ce,380,0,[bI,Gae,zae])))}function iDe(){iDe=U,_tn=Zn((dS(),D(O(ahe,1),ce,381,0,[lhe,sV,fhe])))}function rDe(){rDe=U,Ntn=Zn((QM(),D(O(she,1),ce,293,0,[uV,uhe,che])))}function cDe(){cDe=U,cin=Zn((_7(),D(O(oV,1),ce,437,0,[pI,mI,vI])))}function uDe(){uDe=U,orn=Zn((ka(),D(O(ede,1),ce,334,0,[OI,ph,a9])))}function sDe(){sDe=U,rrn=Zn((Bf(),D(O(q1e,1),ce,272,0,[v4,Qw,y4])))}function lvn(){return Hi(),D(O(ide,1),ce,98,0,[j1,el,j4,Nd,ia,Zc])}function Y1(e,n){return!e.o&&(e.o=new ks((cu(),C1),bb,e,0)),bN(e.o,n)}function avn(e){return!e.g&&(e.g=new RE),!e.g.d&&(e.g.d=new M7e(e)),e.g.d}function hvn(e){return!e.g&&(e.g=new RE),!e.g.a&&(e.g.a=new S7e(e)),e.g.a}function dvn(e){return!e.g&&(e.g=new RE),!e.g.b&&(e.g.b=new C7e(e)),e.g.b}function u7(e){return!e.g&&(e.g=new RE),!e.g.c&&(e.g.c=new P7e(e)),e.g.c}function bvn(e,n,t){var i,r;for(r=new Bv(n,e),i=0;it||n=0?e._g(t,!0,!0):_0(e,n,!0)}function Ivn(e,n){return gi(ne(he(M(e,(re(),ub)))),ne(he(M(n,ub))))}function bDe(){bDe=U,btn=$0($0(jT(new Pi,(t3(),Qy)),(P6(),sI)),HH)}function Ovn(e,n,t){var i;return i=rFe(e,n,t),e.b=new zM(i.c.length),lte(e,i)}function Dvn(e){if(e.b<=0)throw I(new Sc);return--e.b,e.a-=e.c.c,le(e.a)}function $vn(e){var n;if(!e.a)throw I(new mAe);return n=e.a,e.a=Ut(e.a),n}function Lvn(e){for(;!e.a;)if(!tSe(e.c,new Yye(e)))return!1;return!0}function S2(e){var n;return Nn(e),_(e,198)?(n=u(e,198),n):new wye(e)}function Fvn(e){jM(),u(e.We((ht(),Yw)),174).Fc((Yu(),Wj)),e.Ye(OV,null)}function jM(){jM=U,xin=new t3e,Oin=new i3e,Iin=y5n((ht(),OV),xin,v1,Oin)}function EM(){EM=U,Hae=new yW("LEAF_NUMBER",0),tV=new yW("NODE_SIZE",1)}function Nvn(e,n,t){e.a=n,e.c=t,e.b.a.$b(),go(e.d),e.e.a.c=V(pn,pe,1,0,5,1)}function lF(e){e.a=V($n,nt,25,e.b+1,15,1),e.c=V($n,nt,25,e.b,15,1),e.d=0}function _vn(e,n){e.a.ue(n.d,e.b)>0&&(se(e.c,new fY(n.c,n.d,e.d)),e.b=n.d)}function rJ(e,n){if(e.g==null||n>=e.i)throw I(new h$(n,e.i));return e.g[n]}function wDe(e,n,t){if(Vv(e,t),t!=null&&!e.wj(t))throw I(new hD);return t}function gDe(e){var n;if(e.Ek())for(n=e.i-1;n>=0;--n)K(e,n);return AQ(e)}function Bvn(e){var n,t;if(!e.b)return null;for(t=e.b;n=t.a[0];)t=n;return t}function Rvn(e,n){var t,i;return _Ie(n),t=(i=e.slice(0,n),uJ(i,e)),t.length=n,t}function Cv(e,n,t,i){var r;i=(Mg(),i||Xue),r=e.slice(n,t),Ene(r,e,n,t,-n,i)}function Js(e,n,t,i,r){return n<0?_0(e,t,i):u(t,66).Nj().Pj(e,e.yh(),n,i,r)}function Kvn(e){return _(e,172)?""+u(e,172).a:e==null?null:rc(e)}function qvn(e){return _(e,172)?""+u(e,172).a:e==null?null:rc(e)}function pDe(e,n){if(n.a)throw I(new oc(pGe));ki(e.a,n),n.a=e,!e.j&&(e.j=n)}function cJ(e,n){a$.call(this,n.rd(),n.qd()&-16449),nn(e),this.a=e,this.c=n}function mDe(e,n){var t,i;return i=n/e.c.Hd().gc()|0,t=n%e.c.Hd().gc(),M2(e,i,t)}function Xu(){Xu=U,Al=new BD(z2,0),l1=new BD(S3,1),nf=new BD(U2,2)}function TM(){TM=U,XK=new MT("All",0),tse=new dCe,ise=new CCe,rse=new bCe}function vDe(){vDe=U,$Xe=Zn((TM(),D(O(NA,1),ce,297,0,[XK,tse,ise,rse])))}function yDe(){yDe=U,CQe=Zn((Kv(),D(O(TQe,1),ce,405,0,[eb,$w,Dw,wp])))}function kDe(){kDe=U,MYe=Zn((P0(),D(O(CYe,1),ce,406,0,[ej,Zk,iq,rq])))}function jDe(){jDe=U,PYe=Zn((L2(),D(O(SYe,1),ce,323,0,[tj,nj,ij,rj])))}function EDe(){EDe=U,IYe=Zn((k6(),D(O(xYe,1),ce,394,0,[cj,qA,HA,uj])))}function TDe(){TDe=U,Xnn=Zn((t3(),D(O(Pae,1),ce,393,0,[uI,Qy,Aj,Jy])))}function CDe(){CDe=U,VQe=Zn((tS(),D(O(HQe,1),ce,360,0,[Sq,wx,gx,aj])))}function MDe(){MDe=U,Ftn=Zn((DS(),D(O(rhe,1),ce,340,0,[cV,the,ihe,nhe])))}function SDe(){SDe=U,ZQe=Zn((Kf(),D(O(JQe,1),ce,411,0,[cm,Q3,J3,Pq])))}function PDe(){PDe=U,qen=Zn((sw(),D(O(xH,1),ce,197,0,[Zx,AH,xp,Ap])))}function ADe(){ADe=U,Crn=Zn((js(),D(O(Trn,1),ce,396,0,[Hs,ade,lde,hde])))}function xDe(){xDe=U,lrn=Zn((Ds(),D(O(frn,1),ce,285,0,[zj,na,y1,Gj])))}function IDe(){IDe=U,crn=Zn((Ea(),D(O(FV,1),ce,218,0,[LV,Vj,k4,jm])))}function ODe(){ODe=U,jrn=Zn((pS(),D(O(fde,1),ce,311,0,[BV,ude,ode,sde])))}function DDe(){DDe=U,yrn=Zn((Es(),D(O(g9,1),ce,374,0,[Yj,_d,Xj,Jw])))}function $De(){$De=U,fP(),Ude=Jt,Scn=hi,Wde=new Q9(Jt),Pcn=new Q9(hi)}function l7(){l7=U,ofe=new oW(Aa,0),Cx=new oW("IMPROVE_STRAIGHTNESS",1)}function Hvn(e,n){return sv(),se(e,new Gi(n,le(n.e.c.length+n.g.c.length)))}function Vvn(e,n){return sv(),se(e,new Gi(n,le(n.e.c.length+n.g.c.length)))}function uJ(e,n){return w7(n)!=10&&D(is(n),n.hm,n.__elementTypeId$,w7(n),e),e}function ju(e,n){var t;return t=tc(e,n,0),t==-1?!1:(Ua(e,t),!0)}function LDe(e,n){var t;return t=u(C2(e.e,n),387),t?(hY(t),t.e):null}function Mv(e){var n;return nc(e)&&(n=0-e,!isNaN(n))?n:Uh(qv(e))}function tc(e,n,t){for(;t=0?PS(e,t,!0,!0):_0(e,n,!0)}function aJ(e,n){r5();var t,i;return t=j2(e),i=j2(n),!!t&&!!i&&!QNe(t.k,i.k)}function Uvn(e,n){Cu(e,n==null||hC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function Wvn(e,n){Mu(e,n==null||hC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function Xvn(e,n){C0(e,n==null||hC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function Yvn(e,n){T0(e,n==null||hC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function RDe(e){(this.q?this.q:(He(),He(),Jl)).Ac(e.q?e.q:(He(),He(),Jl))}function Qvn(e,n){return _(n,99)&&u(n,18).Bb&yr?new d$(n,e):new Bv(n,e)}function Jvn(e,n){return _(n,99)&&u(n,18).Bb&yr?new d$(n,e):new Bv(n,e)}function KDe(e,n){Ise=new NE,AYe=n,Ty=e,u(Ty.b,65),QQ(Ty,Ise,null),$He(Ty)}function wF(e,n,t){var i;return i=e.g[n],P5(e,n,e.oi(n,t)),e.gi(n,t,i),e.ci(),i}function PM(e,n){var t;return t=e.Xc(n),t>=0?(e.$c(t),!0):!1}function gF(e){var n;return e.d!=e.r&&(n=vo(e),e.e=!!n&&n.Cj()==jWe,e.d=n),e.e}function pF(e,n){var t;for(Nn(e),Nn(n),t=!1;n.Ob();)t=t|e.Fc(n.Pb());return t}function k0(e,n){var t;return t=u(kn(e.e,n),387),t?(DCe(e,t),t.e):null}function qDe(e){var n,t;return n=e/60|0,t=e%60,t==0?""+n:""+n+":"+(""+t)}function ac(e,n){var t,i;return ud(e),i=new UQ(n,e.a),t=new cSe(i),new We(e,t)}function Jb(e,n){var t=e.a[n],i=(FF(),VK)[typeof t];return i?i(t):wZ(typeof t)}function Zvn(e){switch(e.g){case 0:return vt;case 1:return-1;default:return 0}}function e3n(e){return Oee(e,(Sv(),xue))<0?-g1n(qv(e)):e.l+e.m*G2+e.h*bd}function w7(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function mF(e){var n;return n=e.b.c.length==0?null:ve(e.b,0),n!=null&&PF(e,0),n}function HDe(e,n){for(;n[0]=0;)++n[0]}function g7(e,n){this.e=n,this.a=FLe(e),this.a<54?this.f=v0(e):this.c=q7(e)}function VDe(e,n,t,i){gt(),Gd.call(this,26),this.c=e,this.a=n,this.d=t,this.b=i}function ql(e,n,t){var i,r;for(i=10,r=0;re.a[i]&&(i=t);return i}function u3n(e,n){var t;return t=I0(e.e.c,n.e.c),t==0?gi(e.e.d,n.e.d):t}function Ag(e,n){return n.e==0||e.e==0?V3:(f3(),v_(e,n))}function s3n(e,n){if(!e)throw I(new rn(lMn("Enum constant undefined: %s",n)))}function t6(){t6=U,PQe=new xwe,AQe=new Pwe,MQe=new Lwe,SQe=new Fwe,xQe=new Nwe}function AM(){AM=U,ase=new tW("BY_SIZE",0),ZK=new tW("BY_SIZE_AND_SHAPE",1)}function xM(){xM=U,lq=new iW("EADES",0),zA=new iW("FRUCHTERMAN_REINGOLD",1)}function m7(){m7=U,Ex=new sW("READING_DIRECTION",0),cfe=new sW("ROTATION",1)}function zDe(){zDe=U,hJe=Zn((ld(),D(O(rfe,1),ce,335,0,[Rq,ife,Kq,Iy,xy])))}function UDe(){UDe=U,Hen=Zn((j6(),D(O(cae,1),ce,315,0,[rae,IH,OH,Vy,Gy])))}function WDe(){WDe=U,nJe=Zn((Vg(),D(O(eJe,1),ce,363,0,[mx,yx,kx,vx,px])))}function XDe(){XDe=U,CJe=Zn((to(),D(O(Lfe,1),ce,163,0,[vj,Fy,b1,Ny,_w])))}function YDe(){YDe=U,lin=Zn((J7(),D(O(Ahe,1),ce,316,0,[Mhe,hV,Phe,dV,She])))}function QDe(){QDe=U,Din=Zn((yf(),D(O(gh,1),ce,175,0,[an,Li,Dl,Dd,wh])))}function JDe(){JDe=U,rin=Zn((d3(),D(O(iin,1),ce,355,0,[Op,pm,r9,i9,c9])))}function ZDe(){ZDe=U,yQe=Zn((mr(),D(O(noe,1),ce,356,0,[xl,h1,du,Yc,Jr])))}function e$e(){e$e=U,irn=Zn((Ar(),D(O(f9,1),ce,103,0,[ea,cf,Ao,Oa,Da])))}function n$e(){n$e=U,hrn=Zn((_g(),D(O(d9,1),ce,249,0,[k1,Uj,nde,h9,tde])))}function t$e(){t$e=U,wrn=Zn((ae(),D(O(kr,1),Lc,61,0,[gc,tn,hn,On,un])))}function vF(e,n){var t;return t=u(kn(e.a,n),134),t||(t=new WO,jt(e.a,n,t)),t}function i$e(e){var n;return n=u(M(e,(re(),ib)),305),n?n.a==e:!1}function r$e(e){var n;return n=u(M(e,(re(),ib)),305),n?n.i==e:!1}function c$e(e,n){return nn(n),OY(e),e.d.Ob()?(n.td(e.d.Pb()),!0):!1}function IM(e){return $c(e,vt)>0?vt:$c(e,rr)<0?rr:Fn(e)}function Zb(e){return e<3?(Is(e,ZVe),e+1):e=0&&n=-.01&&e.a<=zf&&(e.a=0),e.b>=-.01&&e.b<=zf&&(e.b=0),e}function s$e(e,n){return n==(_$(),_$(),IXe)?e.toLocaleLowerCase():e.toLowerCase()}function dJ(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(la(e),e.o)}function Gr(e){var n,t;t=(n=new gD,n),Bn((!e.q&&(e.q=new fe(Lo,e,11,10)),e.q),t)}function o3n(e,n){var t;return t=n>0?n-1:n,ije(jan(O$e(aY(new qm,t),e.n),e.j),e.k)}function f3n(e,n,t,i){var r;e.j=-1,Fne(e,gne(e,n,t),(Er(),r=u(n,66).Mj(),r.Ok(i)))}function o$e(e){this.g=e,this.f=new oe,this.a=y.Math.min(this.g.c.c,this.g.d.c)}function f$e(e){this.b=new oe,this.a=new oe,this.c=new oe,this.d=new oe,this.e=e}function l$e(e,n){this.a=new Ln,this.e=new Ln,this.b=(a6(),Jx),this.c=e,this.b=n}function a$e(e,n,t){lC.call(this),bJ(this),this.a=e,this.c=t,this.b=n.d,this.f=n.e}function h$e(e){this.d=e,this.c=e.c.vc().Kc(),this.b=null,this.a=null,this.e=(tT(),RK)}function j0(e){if(e<0)throw I(new rn("Illegal Capacity: "+e));this.g=this.ri(e)}function l3n(e,n){if(0>e||e>n)throw I(new SU("fromIndex: 0, toIndex: "+e+wie+n))}function a3n(e){var n;if(e.a==e.b.a)throw I(new Sc);return n=e.a,e.c=n,e.a=e.a.e,n}function OM(e){var n;Nb(!!e.c),n=e.c.a,Zs(e.d,e.c),e.b==e.c?e.b=n:--e.a,e.c=null}function DM(e,n){var t;return ud(e),t=new $Ae(e,e.a.rd(),e.a.qd()|4,n),new We(e,t)}function h3n(e,n){var t,i;return t=u(rw(e.d,n),14),t?(i=n,e.e.pc(i,t)):null}function $M(e,n){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),70),te(t,(re(),am),n)}function d3n(e){var n;return n=ne(he(M(e,(be(),ah)))),n<0&&(n=0,te(e,ah,n)),n}function b3n(e,n,t){var i;i=y.Math.max(0,e.b/2-.5),T6(t,i,1),se(n,new _Ee(t,i))}function w3n(e,n,t){var i;return i=e.a.e[u(n.a,10).p]-e.a.e[u(t.a,10).p],ci(q8(i))}function d$e(e,n,t,i,r,c){var o;o=nF(i),sr(o,r),Ki(o,c),Be(e.a,i,new dC(o,n,t.f))}function b$e(e,n){var t;if(t=ok(e.Tg(),n),!t)throw I(new rn(o1+n+iK));return t}function ew(e,n){var t;for(t=e;Ut(t);)if(t=Ut(t),t==n)return!0;return!1}function g3n(e,n){var t,i,r;for(i=n.a.cd(),t=u(n.a.dd(),14).gc(),r=0;r0&&(e.a/=n,e.b/=n),e}function xs(e){var n;return e.w?e.w:(n=C2n(e),n&&!n.kh()&&(e.w=n),n)}function T3n(e){var n;return e==null?null:(n=u(e,190),Ckn(n,n.length))}function K(e,n){if(e.g==null||n>=e.i)throw I(new h$(n,e.i));return e.li(n,e.g[n])}function C3n(e){var n,t;for(n=e.a.d.j,t=e.c.d.j;n!=t;)Qo(e.b,n),n=aS(n);Qo(e.b,n)}function M3n(e){var n;for(n=0;n=14&&n<=16))),e}function m$e(e,n,t){var i=function(){return e.apply(i,arguments)};return n.apply(i,t),i}function v$e(e,n,t){var i,r;i=n;do r=ne(e.p[i.p])+t,e.p[i.p]=r,i=e.a[i.p];while(i!=n)}function Pv(e,n){var t,i;i=e.a,t=u6n(e,n,null),i!=n&&!e.e&&(t=v3(e,n,t)),t&&t.Fi()}function wJ(e,n){return If(),Yo(i1),y.Math.abs(e-n)<=i1||e==n||isNaN(e)&&isNaN(n)}function gJ(e,n){return If(),Yo(i1),y.Math.abs(e-n)<=i1||e==n||isNaN(e)&&isNaN(n)}function A3n(e,n){return e1(),mu(e.b.c.length-e.e.c.length,n.b.c.length-n.e.c.length)}function xg(e,n){return San(c6(e,n,Fn(ir(Ul,Bl(Fn(ir(n==null?0:Bt(n),Wl)),15)))))}function y$e(){y$e=U,LQe=Zn((dn(),D(O(jq,1),ce,267,0,[vi,$i,fi,Qc,Ts,Yf])))}function k$e(){k$e=U,qin=Zn((lw(),D(O(EV,1),ce,291,0,[jV,Bj,_j,kV,Fj,Nj])))}function j$e(){j$e=U,Fin=Zn((Hl(),D(O(Jhe,1),ce,248,0,[vV,$j,Lj,CI,EI,TI])))}function E$e(){E$e=U,oJe=Zn((N2(),D(O(n4,1),ce,227,0,[e4,Ay,Z3,Lw,vp,mp])))}function T$e(){T$e=U,vJe=Zn((s3(),D(O(yfe,1),ce,275,0,[Oy,gfe,vfe,mfe,pfe,wfe])))}function C$e(){C$e=U,mJe=Zn((Y7(),D(O(bfe,1),ce,274,0,[Mx,afe,dfe,lfe,hfe,Wq])))}function M$e(){M$e=U,Ren=Zn((KS(),D(O(nae,1),ce,313,0,[SH,Zle,MH,Jle,eae,Qx])))}function S$e(){S$e=U,gJe=Zn((GS(),D(O(sfe,1),ce,276,0,[Vq,Hq,zq,Gq,Uq,Tx])))}function P$e(){P$e=U,Qnn=Zn((P6(),D(O(Ynn,1),ce,327,0,[sI,HH,GH,VH,zH,qH])))}function A$e(){A$e=U,brn=Zn((Yu(),D(O(DI,1),ce,273,0,[E1,La,Wj,w9,b9,Em])))}function x$e(){x$e=U,urn=Zn((HS(),D(O(W1e,1),ce,312,0,[NV,G1e,U1e,H1e,z1e,V1e])))}function x3n(){return bw(),D(O(Dr,1),ce,93,0,[uf,$a,sf,ff,ta,Io,Rs,of,xo])}function FM(e,n){var t;t=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,0,t,e.a))}function NM(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,1,t,e.b))}function Av(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,3,t,e.b))}function T0(e,n){var t;t=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,3,t,e.f))}function C0(e,n){var t;t=e.g,e.g=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,4,t,e.g))}function Cu(e,n){var t;t=e.i,e.i=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,5,t,e.i))}function Mu(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,6,t,e.j))}function xv(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,1,t,e.j))}function Iv(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,4,t,e.c))}function Ov(e,n){var t;t=e.k,e.k=n,e.Db&4&&!(e.Db&1)&&yt(e,new Yb(e,2,t,e.k))}function kF(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&yt(e,new WL(e,2,t,e.d))}function Ya(e,n){var t;t=e.s,e.s=n,e.Db&4&&!(e.Db&1)&&yt(e,new WL(e,4,t,e.s))}function tw(e,n){var t;t=e.t,e.t=n,e.Db&4&&!(e.Db&1)&&yt(e,new WL(e,5,t,e.t))}function Dv(e,n){var t;t=e.F,e.F=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,5,t,n))}function v7(e,n){var t;return t=u(kn((ET(),GI),e),55),t?t.xj(n):V(pn,pe,1,n,5,1)}function va(e,n){var t,i;return t=n in e.a,t&&(i=da(e,n).he(),i)?i.a:null}function I3n(e,n){var t,i,r;return t=(i=(Jd(),r=new fz,r),n&&rte(i,n),i),CJ(t,e),t}function I$e(e,n,t){if(Vv(e,t),!e.Bk()&&t!=null&&!e.wj(t))throw I(new hD);return t}function O$e(e,n){return e.n=n,e.n?(e.f=new oe,e.e=new oe):(e.f=null,e.e=null),e}function zn(e,n,t,i,r,c){var o;return o=dL(e,n),$$e(t,o),o.i=r?8:0,o.f=i,o.e=r,o.g=c,o}function pJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=e,this.a=t}function mJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=e,this.a=t}function vJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=e,this.a=t}function yJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=e,this.a=t}function kJ(e,n,t,i,r){this.d=n,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=e,this.a=t}function D$e(e,n){var t,i,r,c;for(i=n,r=0,c=i.length;r=0),Iyn(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function jJ(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=D7(e.f)),e.c).e}function Yo(e){if(!(e>=0))throw I(new rn("tolerance ("+e+") must be >= 0"));return e}function $v(){return pV||(pV=new jqe,Lg(pV,D(O(bp,1),pe,130,0,[new dz]))),pV}function Pr(){Pr=U,zy=new QD(X6,0),Ju=new QD("INPUT",1),ou=new QD("OUTPUT",2)}function BM(){BM=U,nfe=new GD("ARD",0),jx=new GD("MSD",1),Bq=new GD("MANUAL",2)}function M0(){M0=U,Sj=new t$("BARYCENTER",0),Wy=new t$(uze,1),tI=new t$(sze,2)}function y7(e,n){var t;if(t=e.gc(),n<0||n>t)throw I(new Kb(n,t));return new RX(e,n)}function N$e(e,n){var t;return _(n,42)?e.c.Mc(n):(t=bN(e,n),yS(e,n),t)}function Nr(e,n,t){return cd(e,n),iu(e,t),Ya(e,0),tw(e,1),eh(e,!0),Za(e,!0),e}function Is(e,n){if(e<0)throw I(new rn(n+" cannot be negative but was: "+e));return e}function _$e(e,n){var t,i;for(t=0,i=e.gc();t0?u(ve(t.a,i-1),10):null}function r6(e,n){var t;t=e.k,e.k=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,2,t,e.k))}function KM(e,n){var t;t=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,8,t,e.f))}function qM(e,n){var t;t=e.i,e.i=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,7,t,e.i))}function CJ(e,n){var t;t=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,8,t,e.a))}function MJ(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,0,t,e.b))}function SJ(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,0,t,e.b))}function PJ(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,1,t,e.c))}function AJ(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,1,t,e.c))}function EF(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,4,t,e.c))}function xJ(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,1,t,e.d))}function TF(e,n){var t;t=e.D,e.D=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,2,t,e.D))}function CF(e,n){e.r>0&&e.c0&&e.g!=0&&CF(e.i,n/e.r*e.i.d))}function R3n(e,n,t){var i;e.b=n,e.a=t,i=(e.a&512)==512?new Ske:new hz,e.c=tSn(i,e.b,e.a)}function U$e(e,n){return Ma(e.e,n)?(Er(),gF(n)?new yC(n,e):new M8(n,e)):new BTe(n,e)}function HM(e,n){return Man(u6(e.a,n,Fn(ir(Ul,Bl(Fn(ir(n==null?0:Bt(n),Wl)),15)))))}function K3n(e,n,t){return Qb(e,new Vye(n),new LO,new Gye(t),D(O(os,1),ce,132,0,[]))}function q3n(e){var n,t;return 0>e?new qU:(n=e+1,t=new pOe(n,e),new kX(null,t))}function H3n(e,n){He();var t;return t=new n2(1),Ni(e)?qr(t,e,n):au(t.f,e,n),new fD(t)}function V3n(e,n){var t,i;return t=e.o+e.p,i=n.o+n.p,tn?(n<<=1,n>0?n:V6):n}function MF(e){switch(JW(e.e!=3),e.e){case 2:return!1;case 0:return!0}return Ymn(e)}function X$e(e,n){var t;return _(n,8)?(t=u(n,8),e.a==t.a&&e.b==t.b):!1}function SF(e,n,t){var i,r,c;return c=n>>5,r=n&31,i=ji(Hb(e.n[t][c],Fn(aa(r,1))),3),i}function z3n(e,n){var t,i;for(i=n.vc().Kc();i.Ob();)t=u(i.Pb(),42),_S(e,t.cd(),t.dd())}function U3n(e,n){var t;t=new NE,u(n.b,65),u(n.b,65),u(n.b,65),Tu(n.a,new QX(e,t,n))}function IJ(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,21,t,e.b))}function OJ(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,11,t,e.d))}function VM(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,13,t,e.j))}function Y$e(e,n,t){var i,r,c;for(c=e.a.length-1,r=e.b,i=0;i>>31;i!=0&&(e[t]=i)}function i4n(e,n){He();var t,i;for(i=new oe,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Qt(e,n){gC.call(this,ucn,e,n),this.b=this,this.a=hu(e.Tg(),Ge(this.e.Tg(),this.c))}function s6(e,n){var t,i;for(nn(n),i=n.vc().Kc();i.Ob();)t=u(i.Pb(),42),e.zc(t.cd(),t.dd())}function d4n(e,n,t){var i;for(i=t.Kc();i.Ob();)if(!aM(e,n,i.Pb()))return!1;return!0}function b4n(e,n,t,i,r){var c;return t&&(c=Kt(n.Tg(),e.c),r=t.gh(n,-1-(c==-1?i:c),null,r)),r}function w4n(e,n,t,i,r){var c;return t&&(c=Kt(n.Tg(),e.c),r=t.ih(n,-1-(c==-1?i:c),null,r)),r}function wLe(e){var n;if(e.b==-2){if(e.e==0)n=-1;else for(n=0;e.a[n]==0;n++);e.b=n}return e.b}function gLe(e){switch(e.g){case 2:return ae(),un;case 4:return ae(),hn;default:return e}}function pLe(e){switch(e.g){case 1:return ae(),On;case 3:return ae(),tn;default:return e}}function g4n(e){var n,t,i;return e.j==(ae(),tn)&&(n=zRe(e),t=Nu(n,hn),i=Nu(n,un),i||i&&t)}function p4n(e){var n,t;return n=u(e.e&&e.e(),9),t=u(HY(n,n.length),9),new Ws(n,t,n.length)}function m4n(e,n){In(n,cze,1),_Z(_an(new zE((i5(),new kL(e,!1,!1,new QG))))),Tn(n)}function k7(e,n){return cn(),Ni(e)?GQ(e,Vn(n)):Fb(e)?tL(e,he(n)):Lb(e)?jwn(e,ye(n)):e.wd(n)}function _J(e,n){n.q=e,e.d=y.Math.max(e.d,n.r),e.b+=n.d+(e.a.c.length==0?0:e.c),se(e.a,n)}function Fv(e,n){var t,i,r,c;return r=e.c,t=e.c+e.b,c=e.d,i=e.d+e.a,n.a>r&&n.ac&&n.b1||e.Ob())return++e.a,e.g=0,n=e.i,e.Ob(),n;throw I(new Sc)}function x4n(e){mCe();var n;return PEe(KH,e)||(n=new nve,n.a=e,PX(KH,e,n)),u(Fr(KH,e),635)}function po(e){var n,t,i,r;return r=e,i=0,r<0&&(r+=bd,i=Pa),t=ci(r/G2),n=ci(r-t*G2),fu(n,t,i)}function j7(e){var n,t,i;for(i=0,t=new t2(e.a);t.a>22),r=e.h+n.h+(i>>22),fu(t&ss,i&ss,r&Pa)}function NLe(e,n){var t,i,r;return t=e.l-n.l,i=e.m-n.m+(t>>22),r=e.h-n.h+(i>>22),fu(t&ss,i&ss,r&Pa)}function M7(e){var n;return e<128?(n=(JSe(),$ue)[e],!n&&(n=$ue[e]=new Pz(e)),n):new Pz(e)}function qt(e){var n;return _(e,78)?e:(n=e&&e.__java$exception,n||(n=new MFe(e),H7e(n)),n)}function S7(e){if(_(e,186))return u(e,118);if(e)return null;throw I(new Zp(OUe))}function _Le(e,n){if(n==null)return!1;for(;e.a!=e.b;)if(kt(n,oS(e)))return!0;return!1}function VJ(e){return e.a.Ob()?!0:e.a!=e.d?!1:(e.a=new TQ(e.e.f),e.a.Ob())}function wi(e,n){var t,i;return t=n.Pc(),i=t.length,i==0?!1:(iY(e.c,e.c.length,t),!0)}function G4n(e,n,t){var i,r;for(r=n.vc().Kc();r.Ob();)i=u(r.Pb(),42),e.yc(i.cd(),i.dd(),t);return e}function BLe(e,n){var t,i;for(i=new A(e.b);i.a=0,"Negative initial capacity"),wC(n>=0,"Non-positive load factor"),Wu(this)}function NF(e,n,t){return e>=128?!1:e<64?j5(ji(aa(1,e),t),0):j5(ji(aa(1,e-64),n),0)}function e5n(e,n){return!e||!n||e==n?!1:I0(e.b.c,n.b.c+n.b.b)<0&&I0(n.b.c,e.b.c+e.b.b)<0}function QLe(e){var n,t,i;return t=e.n,i=e.o,n=e.d,new Xs(t.a-n.b,t.b-n.d,i.a+(n.b+n.c),i.b+(n.d+n.a))}function n5n(e){var n,t,i,r;for(t=e.a,i=0,r=t.length;ii)throw I(new Kb(n,i));return e.hi()&&(t=bxe(e,t)),e.Vh(n,t)}function x7(e,n,t){return t==null?(!e.q&&(e.q=new Ln),C2(e.q,n)):(!e.q&&(e.q=new Ln),jt(e.q,n,t)),e}function te(e,n,t){return t==null?(!e.q&&(e.q=new Ln),C2(e.q,n)):(!e.q&&(e.q=new Ln),jt(e.q,n,t)),e}function JLe(e){var n,t;return t=new wM,Yr(t,e),te(t,(zh(),rm),e),n=new Ln,cAn(e,t,n),IIn(e,t,n),t}function r5n(e){Yg();var n,t,i;for(t=V(xi,ie,8,2,0,1),i=0,n=0;n<2;n++)i+=.5,t[n]=B9n(i,e);return t}function ZLe(e,n){var t,i,r,c;for(t=!1,i=e.a[n].length,c=0;c>=1);return n}function nFe(e){var n,t;return t=rk(e.h),t==32?(n=rk(e.m),n==32?rk(e.l)+32:n+20-10):t-12}function l6(e){var n;return n=e.a[e.b],n==null?null:(zt(e.a,e.b,null),e.b=e.b+1&e.a.length-1,n)}function tFe(e){var n,t;return n=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,t=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,n||t}function rS(e,n,t){var i,r;return i=new sF(n,t),r=new Tb,e.b=UKe(e,e.b,i,r),r.b||++e.c,e.b.b=!1,r.d}function iFe(e,n,t){var i,r,c,o;for(o=d6(n,t),c=0,r=o.Kc();r.Ob();)i=u(r.Pb(),11),jt(e.c,i,le(c++))}function Wh(e){var n,t;for(t=new A(e.a.b);t.at&&(t=e[n]);return t}function rFe(e,n,t){var i;return i=new oe,ste(e,n,i,(ae(),hn),!0,!1),ste(e,t,i,un,!1,!1),i}function BF(e,n,t){var i,r,c,o;return c=null,o=n,r=y0(o,"labels"),i=new TTe(e,t),c=(ETn(i.a,i.b,r),r),c}function u5n(e,n,t,i){var r;return r=Wne(e,n,t,i),!r&&(r=s6n(e,t,i),r&&!Zg(e,n,r))?null:r}function s5n(e,n,t,i){var r;return r=Xne(e,n,t,i),!r&&(r=tN(e,t,i),r&&!Zg(e,n,r))?null:r}function cFe(e,n){var t;for(t=0;t1||n>=0&&e.b<3)}function I7(e){var n,t,i;for(n=new Lu,i=ct(e,0);i.b!=i.d.c;)t=u(rt(i),8),rv(n,0,new Kr(t));return n}function id(e){var n,t;for(t=new A(e.a.b);t.ai?1:0}function fZ(e,n){return AKe(e,n)?(Be(e.b,u(M(n,(re(),Fw)),21),n),ut(e.a,n),!0):!1}function v5n(e){var n,t;n=u(M(e,(re(),Qu)),10),n&&(t=n.c,ju(t.a,n),t.a.c.length==0&&ju(ar(n).b,t))}function aFe(e){return Xf?V(LXe,dGe,572,0,0,1):u(Hf(e.a,V(LXe,dGe,572,e.a.c.length,0,1)),842)}function y5n(e,n,t,i){return RC(),new kD(D(O(Ed,1),kP,42,0,[(ON(e,n),new e0(e,n)),(ON(t,i),new e0(t,i))]))}function $g(e,n,t){var i,r;return r=(i=new gD,i),Nr(r,n,t),Bn((!e.q&&(e.q=new fe(Lo,e,11,10)),e.q),r),r}function HF(e){var n,t,i,r;for(r=zan(Lrn,e),t=r.length,i=V(ge,ie,2,t,6,1),n=0;n=e.b.c.length||(lZ(e,2*n+1),t=2*n+2,t=0&&e[i]===n[i];i--);return i<0?0:FD(ji(e[i],Ir),ji(n[i],Ir))?-1:1}function k5n(e,n){var t,i;for(i=ct(e,0);i.b!=i.d.c;)t=u(rt(i),214),t.e.length>0&&(n.td(t),t.i&&w6n(t))}function GF(e,n){var t,i;return i=u(en(e.a,4),126),t=V(GV,yK,415,n,0,1),i!=null&&Kc(i,0,t,0,i.length),t}function dFe(e,n){var t;return t=new j_((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,n),e.e!=null||(t.c=e),t}function j5n(e,n){var t,i;for(i=e.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(n))return!0;return!1}function zF(e,n,t,i,r){var c,o;for(o=t;o<=r;o++)for(c=n;c<=i;c++)if(Rg(e,c,o))return!0;return!1}function bFe(e,n,t){var i,r,c,o;for(nn(t),o=!1,c=e.Zc(n),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),o=!0;return o}function E5n(e,n){var t;return e===n?!0:_(n,83)?(t=u(n,83),hne(f0(e),t.vc())):!1}function wFe(e,n,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),e.re(n,i.dd()))return!0;return!1}function gFe(e,n,t){return e.d[n.p][t.p]||(v9n(e,n,t),e.d[n.p][t.p]=!0,e.d[t.p][n.p]=!0),e.a[n.p][t.p]}function Vv(e,n){if(!e.ai()&&n==null)throw I(new rn("The 'no null' constraint is violated"));return n}function Gv(e,n){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),TF(e,n==null?null:(nn(n),n)),e.C&&e.yk(null)}function T5n(e,n){var t;return!e||e==n||!Ai(n,(re(),cb))?!1:(t=u(M(n,(re(),cb)),10),t!=e)}function UF(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.pl()}}function pFe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.ql()}}function mFe(e){sxe.call(this,"The given string does not match the expected format for individual spacings.",e)}function js(){js=U,Hs=new KT("ELK",0),ade=new KT("JSON",1),lde=new KT("DOT",2),hde=new KT("SVG",3)}function O7(){O7=U,bI=new r$(Aa,0),Gae=new r$("RADIAL_COMPACTION",1),zae=new r$("WEDGE_COMPACTION",2)}function qf(){qf=U,use=new ND("CONCURRENT",0),_s=new ND("IDENTITY_FINISH",1),Iw=new ND("UNORDERED",2)}function WF(){WF=U,Lse=(pT(),cq),$se=new Ve(xie,Lse),DYe=new Rt(Iie),$Ye=new Rt(Oie),LYe=new Rt(Die)}function zv(){zv=U,Woe=new Tpe,Xoe=new Cpe,UQe=new Mpe,zQe=new Spe,GQe=new Ppe,Uoe=(nn(GQe),new Om)}function Uv(){Uv=U,_H=new ZD("CONSERVATIVE",0),mae=new ZD("CONSERVATIVE_SOFT",1),Uy=new ZD("SLOPPY",2)}function cS(){cS=U,Z1e=new r0(15),srn=new Tr((ht(),Ld),Z1e),l9=ym,X1e=Vin,Y1e=$d,J1e=Fp,Q1e=PI}function XF(e,n,t){var i,r,c;for(i=new Vt,c=ct(t,0);c.b!=c.d.c;)r=u(rt(c),8),ut(i,new Kr(r));bFe(e,n,i)}function C5n(e){var n,t,i;for(n=0,i=V(xi,ie,8,e.b,0,1),t=ct(e,0);t.b!=t.d.c;)i[n++]=u(rt(t),8);return i}function hZ(e){var n;return n=(!e.a&&(e.a=new fe(Fa,e,9,5)),e.a),n.i!=0?Han(u(K(n,0),678)):null}function M5n(e,n){var t;return t=or(e,n),FD(KL(e,n),0)|chn(KL(e,t),0)?t:or(yP,KL(Hb(t,63),1))}function S5n(e,n){var t;t=me((hN(),Yx))!=null&&n.wg()!=null?ne(he(n.wg()))/ne(he(me(Yx))):1,jt(e.b,n,t)}function P5n(e,n){var t,i;return t=u(e.d.Bc(n),14),t?(i=e.e.hc(),i.Gc(t),e.e.d-=t.gc(),t.$b(),i):null}function dZ(e,n){var t,i;if(i=e.c[n],i!=0)for(e.c[n]=0,e.d-=i,t=n+1;t0)return fv(n-1,e.a.c.length),Ua(e.a,n-1);throw I(new G7e)}function A5n(e,n,t){if(n<0)throw I(new Rr(qze+n));nn)throw I(new rn(CP+e+bGe+n));if(e<0||n>t)throw I(new SU(CP+e+pie+n+wie+t))}function kFe(e){if(!e.a||!(e.a.i&8))throw I(new ec("Enumeration class expected for layout option "+e.f))}function iw(e){var n;++e.j,e.i==0?e.g=null:e.ieA?e-t>eA:t-e>eA}function QF(e,n){return!e||n&&!e.j||_(e,124)&&u(e,124).a.b==0?0:e.Re()}function sS(e,n){return!e||n&&!e.k||_(e,124)&&u(e,124).a.a==0?0:e.Se()}function D7(e){return n1(),e<0?e!=-1?new oee(-1,-e):UK:e<=10?Wue[ci(e)]:new oee(1,e)}function wZ(e){throw FF(),I(new _ke("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function MFe(e){Vke(),JT(this),GC(this),this.e=e,BKe(this,e),this.g=e==null?Au:rc(e),this.a="",this.b=e,this.a=""}function gZ(){this.a=new Gve,this.f=new D8e(this),this.b=new $8e(this),this.i=new L8e(this),this.e=new F8e(this)}function SFe(){_ln.call(this,new ZQ(Zb(16))),Is(2,XVe),this.b=2,this.a=new JY(null,null,0,null),t8(this.a,this.a)}function a6(){a6=U,PH=new XD("DUMMY_NODE_OVER",0),tae=new XD("DUMMY_NODE_UNDER",1),Jx=new XD("EQUAL",2)}function JF(){JF=U,pq=fxe(D(O(f9,1),ce,103,0,[(Ar(),Ao),cf])),mq=fxe(D(O(f9,1),ce,103,0,[Da,Oa]))}function ZF(e){return(ae(),Iu).Hc(e.j)?ne(he(M(e,(re(),s4)))):hc(D(O(xi,1),ie,8,0,[e.i.n,e.n,e.a])).b}function $5n(e){var n,t,i,r;for(i=e.b.a,t=i.a.ec().Kc();t.Ob();)n=u(t.Pb(),561),r=new vKe(n,e.e,e.f),se(e.g,r)}function cd(e,n){var t,i,r;i=e.nk(n,null),r=null,n&&(r=(Um(),t=new zd,t),Pv(r,e.r)),i=Vf(e,r,i),i&&i.Fi()}function L5n(e,n){var t,i;for(i=cs(e.d,1)!=0,t=!0;t;)t=!1,t=n.c.Tf(n.e,i),t=t|fk(e,n,i,!1),i=!i;$J(e)}function pZ(e,n){var t,i,r;return i=!1,t=n.q.d,n.dr&&(Z_e(n.q,r),i=t!=n.q.d)),i}function PFe(e,n){var t,i,r,c,o,f,l,a;return l=n.i,a=n.j,i=e.f,r=i.i,c=i.j,o=l-r,f=a-c,t=y.Math.sqrt(o*o+f*f),t}function mZ(e,n){var t,i;return i=kS(e),i||(t=(G_(),eRe(n)),i=new F7e(t),Bn(i.Vk(),e)),i}function $7(e,n){var t,i;return t=u(e.c.Bc(n),14),t?(i=e.hc(),i.Gc(t),e.d-=t.gc(),t.$b(),e.mc(i)):e.jc()}function AFe(e,n){var t;for(t=0;t=e.c.b:e.a<=e.c.b))throw I(new Sc);return n=e.a,e.a+=e.c.c,++e.b,le(n)}function _5n(e){var n;return n=new o$e(e),e7(e.a,xQe,new ws(D(O(oj,1),pe,369,0,[n]))),n.d&&se(n.f,n.d),n.f}function eN(e){var n;return n=new BW(e.a),Yr(n,e),te(n,(re(),Et),e),n.o.a=e.g,n.o.b=e.f,n.n.a=e.i,n.n.b=e.j,n}function B5n(e,n,t,i){var r,c;for(c=e.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=n.a+(i.a-r.o.a)/2,r.n.b=n.b,n.b+=r.o.b+t}function R5n(e,n,t){var i,r;for(r=n.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),qAe(e,i,t))return!0;return!1}function K5n(e){var n,t;for(t=new A(e.r);t.a=0?n:-n;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return n<0?1/r:r}function G5n(e,n){var t,i,r;for(r=1,t=e,i=n>=0?n:-n;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return n<0?1/r:r}function FFe(e){var n,t;if(e!=null)for(t=0;t0&&(t=u(ve(e.a,e.a.c.length-1),570),fZ(t,n))||se(e.a,new wOe(n))}function Y5n(e){zo();var n,t;n=e.d.c-e.e.c,t=u(e.g,145),Tu(t.b,new q9e(n)),Tu(t.c,new H9e(n)),Yi(t.i,new V9e(n))}function RFe(e){var n;return n=new Ph,n.a+="VerticalSegment ",Pc(n,e.e),n.a+=" ",Qn(n,XW(new AD,new A(e.k))),n.a}function Q5n(e){var n;return n=u(k0(e.c.c,""),229),n||(n=new y2(zm(Gm(new Up,""),"Other")),od(e.c.c,"",n)),n}function h6(e){var n;return e.Db&64?Jo(e):(n=new bo(Jo(e)),n.a+=" (name: ",Lr(n,e.zb),n.a+=")",n.a)}function EZ(e,n,t){var i,r;return r=e.sb,e.sb=n,e.Db&4&&!(e.Db&1)&&(i=new Di(e,1,4,r,n),t?t.Ei(i):t=i),t}function nN(e,n){var t,i,r;for(t=0,r=dc(e,n).Kc();r.Ob();)i=u(r.Pb(),11),t+=M(i,(re(),Qu))!=null?1:0;return t}function Fg(e,n,t){var i,r,c;for(i=0,c=ct(e,0);c.b!=c.d.c&&(r=ne(he(rt(c))),!(r>t));)r>=n&&++i;return i}function J5n(e,n,t){var i,r;return i=new pa(e.e,3,13,null,(r=n.c,r||(Ke(),tl)),nh(e,n),!1),t?t.Ei(i):t=i,t}function Z5n(e,n,t){var i,r;return i=new pa(e.e,4,13,(r=n.c,r||(Ke(),tl)),null,nh(e,n),!1),t?t.Ei(i):t=i,t}function TZ(e,n,t){var i,r;return r=e.r,e.r=n,e.Db&4&&!(e.Db&1)&&(i=new Di(e,1,8,r,e.r),t?t.Ei(i):t=i),t}function Ja(e,n){var t,i;return t=u(n,676),i=t.vk(),!i&&t.wk(i=_(n,88)?new FTe(e,u(n,26)):new iIe(e,u(n,148))),i}function L7(e,n,t){var i;e.qi(e.i+1),i=e.oi(n,t),n!=e.i&&Kc(e.g,n,e.g,n+1,e.i-n),zt(e.g,n,i),++e.i,e.bi(n,t),e.ci()}function e6n(e,n){var t;return n.a&&(t=n.a.a.length,e.a?Qn(e.a,e.b):e.a=new Cs(e.d),cIe(e.a,n.a,n.d.length,t)),e}function n6n(e,n){var t,i,r,c;if(n.vi(e.a),c=u(en(e.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw I(new Rr(CP+e+pie+n+", size: "+t));if(e>n)throw I(new rn(CP+e+bGe+n))}function no(e,n,t){if(n<0)Sne(e,t);else{if(!t.Ij())throw I(new rn(o1+t.ne()+fy));u(t,66).Nj().Vj(e,e.yh(),n)}}function r6n(e,n,t,i,r,c,o,f){var l;for(l=t;c=i||n=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function UFe(e){var n;return e.Db&64?Jo(e):(n=new bo(Jo(e)),n.a+=" (source: ",Lr(n,e.d),n.a+=")",n.a)}function u6n(e,n,t){var i,r;return r=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&(i=new Di(e,1,5,r,e.a),t?Uee(t,i):t=i),t}function Za(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,2,t,n))}function MZ(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,8,t,n))}function lS(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,8,t,n))}function eh(e,n){var t;t=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,3,t,n))}function SZ(e,n){var t;t=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,9,t,n))}function b6(e,n){var t;return e.b==-1&&e.a&&(t=e.a.Gj(),e.b=t?e.c.Xg(e.a.aj(),t):Kt(e.c.Tg(),e.a)),e.c.Og(e.b,n)}function le(e){var n,t;return e>-129&&e<128?(n=e+128,t=(GSe(),Lue)[n],!t&&(t=Lue[n]=new Az(e)),t):new Az(e)}function Wv(e){var n,t;return e>-129&&e<128?(n=e+128,t=(QSe(),Bue)[n],!t&&(t=Bue[n]=new Iz(e)),t):new Iz(e)}function PZ(e){var n,t;return n=e.k,n==(dn(),fi)?(t=u(M(e,(re(),Tc)),61),t==(ae(),tn)||t==On):!1}function s6n(e,n,t){var i,r,c;return c=(r=a3(e.b,n),r),c&&(i=u(hP(d7(e,c),""),26),i)?Wne(e,i,n,t):null}function tN(e,n,t){var i,r,c;return c=(r=a3(e.b,n),r),c&&(i=u(hP(d7(e,c),""),26),i)?Xne(e,i,n,t):null}function WFe(e,n){var t,i;for(i=new jn(e);i.e!=i.i.gc();)if(t=u(Sn(i),138),X(n)===X(t))return!0;return!1}function w6(e,n,t){var i;if(i=e.gc(),n>i)throw I(new Kb(n,i));if(e.hi()&&e.Hc(t))throw I(new rn(Vk));e.Xh(n,t)}function o6n(e,n){var t;if(t=xg(e.i,n),t==null)throw I(new ol("Node did not exist in input."));return BJ(n,t),null}function f6n(e,n){var t;if(t=ok(e,n),_(t,322))return u(t,34);throw I(new rn(o1+n+"' is not a valid attribute"))}function l6n(e,n,t){var i,r;for(r=_(n,99)&&u(n,18).Bb&yr?new d$(n,e):new Bv(n,e),i=0;in?1:e==n?e==0?gi(1/e,1/n):0:isNaN(e)?isNaN(n)?0:1:-1}function v6n(e,n){In(n,"Sort end labels",1),ti(Lt(ac(new We(null,new Ye(e.b,16)),new gge),new pge),new mge),Tn(n)}function g6(e,n,t){var i,r;return e.ej()?(r=e.fj(),i=f_(e,n,t),e.$i(e.Zi(7,le(t),i,n,r)),i):f_(e,n,t)}function iN(e,n){var t,i,r;e.d==null?(++e.e,--e.f):(r=n.cd(),t=n.Sh(),i=(t&vt)%e.d.length,tvn(e,i,hKe(e,i,t,r)))}function Xv(e,n){var t;t=(e.Bb&ef)!=0,n?e.Bb|=ef:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,10,t,n))}function Yv(e,n){var t;t=(e.Bb&jw)!=0,n?e.Bb|=jw:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,12,t,n))}function Qv(e,n){var t;t=(e.Bb&Vu)!=0,n?e.Bb|=Vu:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,15,t,n))}function Jv(e,n){var t;t=(e.Bb&xw)!=0,n?e.Bb|=xw:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&yt(e,new Xo(e,1,11,t,n))}function y6n(e,n){var t;return t=gi(e.b.c,n.b.c),t!=0||(t=gi(e.a.a,n.a.a),t!=0)?t:gi(e.a.b,n.a.b)}function k6n(e,n){var t;if(t=kn(e.k,n),t==null)throw I(new ol("Port did not exist in input."));return BJ(n,t),null}function j6n(e){var n,t;for(t=pKe(xs(e)).Kc();t.Ob();)if(n=Vn(t.Pb()),L6(e,n))return xmn((MEe(),Urn),n);return null}function E6n(e,n){var t,i,r,c,o;for(o=hu(e.e.Tg(),n),c=0,t=u(e.g,119),r=0;r>10)+Sk&si,n[1]=(e&1023)+56320&si,mo(n,0,n.length)}function hS(e){var n,t;return t=u(M(e,(be(),Bs)),103),t==(Ar(),ea)?(n=ne(he(M(e,Lx))),n>=1?cf:Oa):t}function M6n(e){switch(u(M(e,(be(),Ia)),218).g){case 1:return new ime;case 3:return new ome;default:return new tme}}function ud(e){if(e.c)ud(e.c);else if(e.d)throw I(new ec("Stream already terminated, can't be modified or used"))}function uN(e){var n;return e.Db&64?Jo(e):(n=new bo(Jo(e)),n.a+=" (identifier: ",Lr(n,e.k),n.a+=")",n.a)}function JFe(e,n,t){var i,r;return i=(Jd(),r=new _E,r),FM(i,n),NM(i,t),e&&Bn((!e.a&&(e.a=new bi(Do,e,5)),e.a),i),i}function sN(e,n,t,i){var r,c;return nn(i),nn(t),r=e.xc(n),c=r==null?t:dEe(u(r,15),u(t,14)),c==null?e.Bc(n):e.zc(n,c),c}function _e(e){var n,t,i,r;return t=(n=u(df((i=e.gm,r=i.f,r==Xn?i:r)),9),new Ws(n,u(Go(n,n.length),9),0)),Qo(t,e),t}function S6n(e,n,t){var i,r;for(r=e.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),C7(t,u(ve(n,i.p),14)))return i;return null}function P6n(e,n,t){var i;try{o5n(e,n,t)}catch(r){throw r=qt(r),_(r,597)?(i=r,I(new FQ(i))):I(r)}return n}function Qh(e,n){var t;return nc(e)&&nc(n)&&(t=e-n,Mk>1,e.k=t-1>>1}function oN(){Zee();var e,n,t;t=TDn+++Date.now(),e=ci(y.Math.floor(t*Ak))&TP,n=ci(t-e*bie),this.a=e^1502,this.b=n^DB}function ja(e){var n,t,i;for(n=new oe,i=new A(e.j);i.a34028234663852886e22?Jt:n<-34028234663852886e22?hi:n}function ZFe(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function eNe(e){var n,t,i,r;for(n=new $Me(e.Hd().gc()),r=0,i=S2(e.Hd().Kc());i.Ob();)t=i.Pb(),Hpn(n,t,le(r++));return bjn(n.a)}function $6n(e,n){var t,i,r;for(r=new Ln,i=n.vc().Kc();i.Ob();)t=u(i.Pb(),42),jt(r,t.cd(),C4n(e,u(t.dd(),15)));return r}function $Z(e,n){e.n.c.length==0&&se(e.n,new nM(e.s,e.t,e.i)),se(e.b,n),gee(u(ve(e.n,e.n.c.length-1),211),n),lHe(e,n)}function Ng(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(e.a.c=V(pn,pe,1,0,5,1),wi(e.a,e.b),wi(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}function fN(e,n){var t,i,r;for(r=0,i=u(n.Kb(e),20).Kc();i.Ob();)t=u(i.Pb(),17),ke(ye(M(t,(re(),Qf))))||++r;return r}function L6n(e,n){var t,i,r;i=Pg(n),r=ne(he(uw(i,(be(),rf)))),t=y.Math.max(0,r/2-.5),T6(n,t,1),se(e,new zEe(n,t))}function to(){to=U,vj=new v8(Aa,0),Fy=new v8("FIRST",1),b1=new v8(oze,2),Ny=new v8("LAST",3),_w=new v8(fze,4)}function Ea(){Ea=U,LV=new NT(X6,0),Vj=new NT("POLYLINE",1),k4=new NT("ORTHOGONAL",2),jm=new NT("SPLINES",3)}function dS(){dS=U,lhe=new u$("ASPECT_RATIO_DRIVEN",0),sV=new u$("MAX_SCALE_DRIVEN",1),fhe=new u$("AREA_DRIVEN",2)}function _7(){_7=U,pI=new s$("P1_STRUCTURE",0),mI=new s$("P2_PROCESSING_ORDER",1),vI=new s$("P3_EXECUTION",2)}function bS(){bS=U,nV=new i$("OVERLAP_REMOVAL",0),ZH=new i$("COMPACTION",1),eV=new i$("GRAPH_SIZE_CALCULATION",2)}function I0(e,n){return If(),Yo(i1),y.Math.abs(e-n)<=i1||e==n||isNaN(e)&&isNaN(n)?0:en?1:i0(isNaN(e),isNaN(n))}function nNe(e,n){var t,i;for(t=ct(e,0);t.b!=t.d.c;){if(i=r8(he(rt(t))),i==n)return;if(i>n){HL(t);break}}V8(t,n)}function Ne(e,n){var t,i,r,c,o;if(t=n.f,od(e.c.d,t,n),n.g!=null)for(r=n.g,c=0,o=r.length;cn&&i.ue(e[c-1],e[c])>0;--c)o=e[c],zt(e,c,e[c-1]),zt(e,c-1,o)}function io(e,n,t,i){if(n<0)Zne(e,t,i);else{if(!t.Ij())throw I(new rn(o1+t.ne()+fy));u(t,66).Nj().Tj(e,e.yh(),n,i)}}function wS(e,n){if(n==e.d)return e.e;if(n==e.e)return e.d;throw I(new rn("Node "+n+" not part of edge "+e))}function N6n(e,n){switch(n.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function tNe(e,n){switch(n.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function LZ(e,n,t,i){switch(n){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return CZ(e,n,t,i)}function _6n(e){return e.k!=(dn(),vi)?!1:kv(new We(null,new l0(new En(Cn(pi(e).a.Kc(),new J)))),new V2e)}function B6n(e){return e.e==null?e:(!e.c&&(e.c=new j_((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function R6n(e,n){return e.h==Ck&&e.m==0&&e.l==0?(n&&(f1=fu(0,0,0)),iCe((Sv(),Aue))):(n&&(f1=fu(e.l,e.m,e.h)),fu(0,0,0))}function rc(e){var n;return Array.isArray(e)&&e.im===ai?xh(is(e))+"@"+(n=Bt(e)>>>0,n.toString(16)):e.toString()}function p6(e){var n;this.a=(n=u(e.e&&e.e(),9),new Ws(n,u(Go(n,n.length),9),0)),this.b=V(pn,pe,1,this.a.a.length,5,1)}function K6n(e){var n,t,i;for(this.a=new fa,i=new A(e);i.a0&&(Gn(n-1,e.length),e.charCodeAt(n-1)==58)&&!lN(e,y9,k9))}function lN(e,n,t){var i,r;for(i=0,r=e.length;i=r)return n.c+t;return n.c+n.b.gc()}function z6n(e,n){cv();var t,i,r,c;for(i=gDe(e),r=n,Cv(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=e.d*(t-1)),i}function NZ(e){var n,t,i;for(i=new Ra,i.a+="[",n=0,t=e.gc();n0&&this.b>0&&mY(this.c,this.b,this.a)}function RZ(e){hN(),this.c=Nf(D(O(qDn,1),pe,831,0,[_en])),this.b=new Ln,this.a=e,jt(this.b,Yx,1),Tu(Ben,new G8e(this))}function iNe(e,n){var t;return e.d?vs(e.b,n)?u(kn(e.b,n),51):(t=n.Kf(),jt(e.b,n,t),t):n.Kf()}function KZ(e,n){var t;return X(e)===X(n)?!0:_(n,91)?(t=u(n,91),e.e==t.e&&e.d==t.d&&Omn(e,t.a)):!1}function O2(e){switch(ae(),e.g){case 4:return tn;case 1:return hn;case 3:return On;case 2:return un;default:return gc}}function qZ(e,n){switch(n){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return KJ(e,n)}function J6n(e){switch(e.g){case 0:return new _ve;case 1:return new Bve;default:throw I(new rn(qR+(e.f!=null?e.f:""+e.g)))}}function rNe(e){switch(e.g){case 0:return new Nve;case 1:return new Rve;default:throw I(new rn(rR+(e.f!=null?e.f:""+e.g)))}}function cNe(e){switch(e.g){case 0:return new yU;case 1:return new gke;default:throw I(new rn(rA+(e.f!=null?e.f:""+e.g)))}}function Z6n(e){switch(e.g){case 1:return new Ive;case 2:return new jMe;default:throw I(new rn(qR+(e.f!=null?e.f:""+e.g)))}}function eyn(e){var n,t;if(e.b)return e.b;for(t=Xf?null:e.d;t;){if(n=Xf?null:t.b,n)return n;t=Xf?null:t.d}return Jm(),cse}function nyn(e){var n,t,i;return e.e==0?0:(n=e.d<<5,t=e.a[e.d-1],e.e<0&&(i=wLe(e),i==e.d-1&&(--t,t=t|0)),n-=rk(t),n)}function tyn(e){var n,t,i;return e<$A.length?$A[e]:(t=e>>5,n=e&31,i=V($n,nt,25,t+1,15,1),i[t]=1<3;)r*=10,--c;e=(e+(r>>1))/r|0}return i.i=e,!0}function ryn(e){return JF(),cn(),!!(tNe(u(e.a,81).j,u(e.b,103))||u(e.a,81).d.e!=0&&tNe(u(e.a,81).j,u(e.b,103)))}function cyn(e){jM(),u(e.We((ht(),v1)),174).Hc((us(),FI))&&(u(e.We(Yw),174).Fc((Yu(),Em)),u(e.We(v1),174).Mc(FI))}function sNe(e,n){var t,i;if(n){for(t=0;t=0;--i)for(n=t[i],r=0;r>1,this.k=n-1>>1}function ayn(e,n){In(n,"End label post-processing",1),ti(Lt(ac(new We(null,new Ye(e.b,16)),new oge),new fge),new lge),Tn(n)}function hyn(e,n,t){var i,r;return i=ne(e.p[n.i.p])+ne(e.d[n.i.p])+n.n.b+n.a.b,r=ne(e.p[t.i.p])+ne(e.d[t.i.p])+t.n.b+t.a.b,r-i}function dyn(e,n,t){var i,r;for(i=ji(t,Ir),r=0;$c(i,0)!=0&&r0&&(Gn(0,n.length),n.charCodeAt(0)==43)?n.substr(1):n))}function wyn(e){var n;return e==null?null:new Fh((n=Wc(e,!0),n.length>0&&(Gn(0,n.length),n.charCodeAt(0)==43)?n.substr(1):n))}function XZ(e,n){var t;return e.i>0&&(n.lengthe.i&&zt(n,e.i,null),n}function ru(e,n,t){var i,r,c;return e.ej()?(i=e.i,c=e.fj(),L7(e,i,n),r=e.Zi(3,null,n,i,c),t?t.Ei(r):t=r):L7(e,e.i,n),t}function gyn(e,n,t){var i,r;return i=new pa(e.e,4,10,(r=n.c,_(r,88)?u(r,26):(Ke(),No)),null,nh(e,n),!1),t?t.Ei(i):t=i,t}function pyn(e,n,t){var i,r;return i=new pa(e.e,3,10,null,(r=n.c,_(r,88)?u(r,26):(Ke(),No)),nh(e,n),!1),t?t.Ei(i):t=i,t}function lNe(e){Bb();var n;return n=new Kr(u(e.e.We((ht(),Fp)),8)),e.B.Hc((us(),E4))&&(n.a<=0&&(n.a=20),n.b<=0&&(n.b=20)),n}function aNe(e){sw();var n;return(e.q?e.q:(He(),He(),Jl))._b((be(),ob))?n=u(M(e,ob),197):n=u(M(ar(e),Ky),197),n}function uw(e,n){var t,i;return i=null,Ai(e,(be(),Wx))&&(t=u(M(e,Wx),94),t.Xe(n)&&(i=t.We(n))),i==null&&(i=M(ar(e),n)),i}function hNe(e,n){var t,i,r;return _(n,42)?(t=u(n,42),i=t.cd(),r=rw(e.Rc(),i),bl(r,t.dd())&&(r!=null||e.Rc()._b(i))):!1}function bN(e,n){var t,i,r;return e.f>0?(e.qj(),i=n==null?0:Bt(n),r=(i&vt)%e.d.length,t=hKe(e,r,i,n),t!=-1):!1}function vf(e,n){var t,i,r;return e.f>0&&(e.qj(),i=n==null?0:Bt(n),r=(i&vt)%e.d.length,t=Dne(e,r,i,n),t)?t.dd():null}function B7(e,n){var t,i,r,c;for(c=hu(e.e.Tg(),n),t=u(e.g,119),r=0;r1?Ff(aa(n.a[1],32),ji(n.a[0],Ir)):ji(n.a[0],Ir),v0(ir(n.e,t))))}function R7(e,n){var t;return nc(e)&&nc(n)&&(t=e%n,Mk>5,n&=31,r=e.d+t+(n==0?0:1),i=V($n,nt,25,r,15,1),mkn(i,e.a,t,n),c=new Tg(e.e,r,i),X5(c),c}function QZ(e,n,t){var i,r;i=u(Vc(M4,n),117),r=u(Vc(S9,n),117),t?(qr(M4,e,i),qr(S9,e,r)):(qr(S9,e,i),qr(M4,e,r))}function vNe(e,n,t){var i,r,c;for(r=null,c=e.b;c;){if(i=e.a.ue(n,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function yNe(e,n,t){var i,r,c;for(r=null,c=e.b;c;){if(i=e.a.ue(n,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function jyn(e,n,t,i){var r,c,o;return r=!1,iIn(e.f,t,i)&&(Uyn(e.f,e.a[n][t],e.a[n][i]),c=e.a[n],o=c[i],c[i]=c[t],c[t]=o,r=!0),r}function JZ(e,n,t,i,r){var c,o,f;for(o=r;n.b!=n.c;)c=u(w2(n),10),f=u(dc(c,i).Xb(0),11),e.d[f.p]=o++,t.c[t.c.length]=f;return o}function ZZ(e,n,t){var i,r,c,o,f;return o=e.k,f=n.k,i=t[o.g][f.g],r=he(uw(e,i)),c=he(uw(n,i)),y.Math.max((nn(r),r),(nn(c),c))}function Eyn(e,n,t){var i,r,c,o;for(i=t/e.c.length,r=0,o=new A(e);o.a2e3&&(pXe=e,IA=y.setTimeout(xan,10))),xA++==0?(r3n((CU(),Mue)),!0):!1}function Cyn(e,n){var t,i,r;for(i=new En(Cn(pi(e).a.Kc(),new J));Un(i);)if(t=u(_n(i),17),r=t.d.i,r.c==n)return!1;return!0}function eee(e,n){var t,i;if(_(n,245)){i=u(n,245);try{return t=e.vd(i),t==0}catch(r){if(r=qt(r),!_(r,205))throw I(r)}}return!1}function Myn(){return Error.stackTraceLimit>0?(y.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function Syn(e,n){return If(),If(),Yo(i1),(y.Math.abs(e-n)<=i1||e==n||isNaN(e)&&isNaN(n)?0:en?1:i0(isNaN(e),isNaN(n)))>0}function nee(e,n){return If(),If(),Yo(i1),(y.Math.abs(e-n)<=i1||e==n||isNaN(e)&&isNaN(n)?0:en?1:i0(isNaN(e),isNaN(n)))<0}function ENe(e,n){return If(),If(),Yo(i1),(y.Math.abs(e-n)<=i1||e==n||isNaN(e)&&isNaN(n)?0:en?1:i0(isNaN(e),isNaN(n)))<=0}function gN(e,n){for(var t=0;!n[t]||n[t]=="";)t++;for(var i=n[t++];tPB)return t.fh();if(i=t.Zg(),i||t==e)break}return i}function tee(e){return iM(),_(e,156)?u(kn(tE,AXe),288).vg(e):vs(tE,is(e))?u(kn(tE,is(e)),288).vg(e):null}function Ayn(e){if(jS(L3,e))return cn(),q3;if(jS(eK,e))return cn(),Td;throw I(new rn("Expecting true or false"))}function xyn(e,n){if(n.c==e)return n.d;if(n.d==e)return n.c;throw I(new rn("Input edge is not connected to the input port."))}function ANe(e,n){return e.e>n.e?1:e.en.d?e.e:e.d=48&&e<48+y.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function INe(e,n){var t;return X(n)===X(e)?!0:!_(n,21)||(t=u(n,21),t.gc()!=e.gc())?!1:e.Ic(t)}function Iyn(e,n){var t,i,r,c;return i=e.a.length-1,t=n-e.b&i,c=e.c-n&i,r=e.c-e.b&i,sMe(t=c?(x5n(e,n),-1):(I5n(e,n),1)}function Oyn(e,n){var t,i;for(t=(Gn(n,e.length),e.charCodeAt(n)),i=n+1;in.e?1:e.fn.f?1:Bt(e)-Bt(n)}function jS(e,n){return nn(e),n==null?!1:Re(e,n)?!0:e.length==n.length&&Re(e.toLowerCase(),n.toLowerCase())}function Kyn(e,n){var t,i,r,c;for(i=0,r=n.gc();i0&&$c(e,128)<0?(n=Fn(e)+128,t=(YSe(),Fue)[n],!t&&(t=Fue[n]=new xz(e)),t):new xz(e)}function DNe(e,n){var t,i;return t=n.Hh(e.a),t&&(i=Vn(vf((!t.b&&(t.b=new ps((Ke(),jr),Cc,t)),t.b),at)),i!=null)?i:n.ne()}function qyn(e,n){var t,i;return t=n.Hh(e.a),t&&(i=Vn(vf((!t.b&&(t.b=new ps((Ke(),jr),Cc,t)),t.b),at)),i!=null)?i:n.ne()}function Hyn(e,n){FL();var t,i;for(i=new En(Cn(ja(e).a.Kc(),new J));Un(i);)if(t=u(_n(i),17),t.d.i==n||t.c.i==n)return t;return null}function cee(e,n,t){this.c=e,this.f=new oe,this.e=new tr,this.j=new bY,this.n=new bY,this.b=n,this.g=new Xs(n.c,n.d,n.b,n.a),this.a=t}function pN(e){var n,t,i,r;for(this.a=new fa,this.d=new Si,this.e=0,t=e,i=0,r=t.length;i0):!1}function FNe(e){var n;X(Te(e,(ht(),Dp)))===X((ka(),OI))&&(Ut(e)?(n=u(Te(Ut(e),Dp),334),_r(e,Dp,n)):_r(e,Dp,a9))}function Uyn(e,n,t){var i,r;JN(e.e,n,t,(ae(),un)),JN(e.i,n,t,hn),e.a&&(r=u(M(n,(re(),Et)),11),i=u(M(t,Et),11),qL(e.g,r,i))}function NNe(e,n,t){var i,r,c;i=n.c.p,c=n.p,e.b[i][c]=new exe(e,n),t&&(e.a[i][c]=new s8e(n),r=u(M(n,(re(),cb)),10),r&&Be(e.d,r,n))}function _Ne(e,n){var t,i,r;if(se(GA,e),n.Fc(e),t=u(kn(fq,e),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),tc(GA,i,0)!=-1||_Ne(i,n)}function Wyn(e,n,t){var i;(FXe?(eyn(e),!0):NXe||BXe?(Jm(),!0):_Xe&&(Jm(),!1))&&(i=new hSe(n),i.b=t,Qkn(e,i))}function mN(e,n){var t;t=!e.A.Hc((Es(),_d))||e.q==(Hi(),Zc),e.u.Hc((Yu(),La))?t?gOn(e,n):bVe(e,n):e.u.Hc(E1)&&(t?LIn(e,n):PVe(e,n))}function n3(e,n){var t,i;if(++e.j,n!=null&&(t=(i=e.a.Cb,_(i,97)?u(i,97).Jg():null),HEn(n,t))){D2(e.a,4,t);return}D2(e.a,4,u(n,126))}function BNe(e,n,t){return new Xs(y.Math.min(e.a,n.a)-t/2,y.Math.min(e.b,n.b)-t/2,y.Math.abs(e.a-n.a)+t,y.Math.abs(e.b-n.b)+t)}function Xyn(e,n){var t,i;return t=mu(e.a.c.p,n.a.c.p),t!=0?t:(i=mu(e.a.d.i.p,n.a.d.i.p),i!=0?i:mu(n.a.d.p,e.a.d.p))}function Yyn(e,n,t){var i,r,c,o;return c=n.j,o=t.j,c!=o?c.g-o.g:(i=e.f[n.p],r=e.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:gi(i,r))}function RNe(e,n,t){var i,r,c;if(!t[n.d])for(t[n.d]=!0,r=new A(Ng(n));r.a=r)return r;for(n=n>0?n:0;ni&&zt(n,i,null),n}function qNe(e,n){var t,i;for(i=e.a.length,n.lengthi&&zt(n,i,null),n}function od(e,n,t){var i,r,c;return r=u(kn(e.e,n),387),r?(c=AX(r,t),DCe(e,r),c):(i=new tY(e,n,t),jt(e.e,n,i),cxe(i),null)}function Zyn(e){var n;if(e==null)return null;if(n=UTn(Wc(e,!0)),n==null)throw I(new MD("Invalid hexBinary value: '"+e+"'"));return n}function q7(e){return n1(),$c(e,0)<0?$c(e,-1)!=0?new Vee(-1,Mv(e)):UK:$c(e,10)<=0?Wue[Fn(e)]:new Vee(1,e)}function yN(){return mP(),D(O(EYe,1),ce,159,0,[kYe,yYe,jYe,hYe,aYe,dYe,gYe,wYe,bYe,vYe,mYe,pYe,fYe,oYe,lYe,uYe,cYe,sYe,iYe,tYe,rYe,tq])}function HNe(e){var n;this.d=new oe,this.j=new tr,this.g=new tr,n=e.g.b,this.f=u(M(ar(n),(be(),Bs)),103),this.e=ne(he(CS(n,zw)))}function VNe(e){this.b=new oe,this.e=new oe,this.d=e,this.a=!n5(Lt(new We(null,new l0(new _f(e.b))),new q4(new G2e))).sd((R1(),z3))}function yf(){yf=U,an=new j8("PARENTS",0),Li=new j8("NODES",1),Dl=new j8("EDGES",2),Dd=new j8("PORTS",3),wh=new j8("LABELS",4)}function _g(){_g=U,k1=new T8("DISTRIBUTED",0),Uj=new T8("JUSTIFIED",1),nde=new T8("BEGIN",2),h9=new T8(S3,3),tde=new T8("END",4)}function e9n(e){var n;switch(n=e.yi(null),n){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function kN(e){switch(e.g){case 1:return Ar(),Da;case 4:return Ar(),Ao;case 2:return Ar(),cf;case 3:return Ar(),Oa}return Ar(),ea}function n9n(e,n,t){var i;switch(i=t.q.getFullYear()-r1+r1,i<0&&(i=-i),n){case 1:e.a+=i;break;case 2:ql(e,i%100,2);break;default:ql(e,i,n)}}function ct(e,n){var t,i;if(Wb(n,e.b),n>=e.b>>1)for(i=e.c,t=e.b;t>n;--t)i=i.b;else for(i=e.a.a,t=0;t=64&&n<128&&(r=Ff(r,aa(1,n-64)));return r}function CS(e,n){var t,i;return i=null,Ai(e,(ht(),km))&&(t=u(M(e,km),94),t.Xe(n)&&(i=t.We(n))),i==null&&ar(e)&&(i=M(ar(e),n)),i}function UNe(e,n){var t,i,r;r=n.d.i,i=r.k,!(i==(dn(),vi)||i==Yf)&&(t=new En(Cn(pi(r).a.Kc(),new J)),Un(t)&&jt(e.k,n,u(_n(t),17)))}function jN(e,n){var t,i,r;return i=Ge(e.Tg(),n),t=n-e.Ah(),t<0?(r=e.Yg(i),r>=0?e.lh(r):o_(e,i)):t<0?o_(e,i):u(i,66).Nj().Sj(e,e.yh(),t)}function me(e){var n;if(_(e.a,4)){if(n=tee(e.a),n==null)throw I(new ec(Vze+e.b+"'. "+Hze+(la(iE),iE.k)+Fce));return n}else return e.a}function r9n(e){var n;if(e==null)return null;if(n=TOn(Wc(e,!0)),n==null)throw I(new MD("Invalid base64Binary value: '"+e+"'"));return n}function Sn(e){var n;try{return n=e.i.Xb(e.e),e.mj(),e.g=e.e++,n}catch(t){throw t=qt(t),_(t,73)?(e.mj(),I(new Sc)):I(t)}}function EN(e){var n;try{return n=e.c.ki(e.e),e.mj(),e.g=e.e++,n}catch(t){throw t=qt(t),_(t,73)?(e.mj(),I(new Sc)):I(t)}}function y6(){y6=U,_se=(ht(),$1e),sq=h1e,FYe=vm,Nse=Ld,RYe=(NS(),gse),BYe=bse,KYe=mse,_Ye=dse,NYe=(WF(),$se),uq=DYe,Fse=$Ye,VA=LYe}function MS(e){switch(GU(),this.c=new oe,this.d=e,e.g){case 0:case 2:this.a=ZY(toe),this.b=Jt;break;case 3:case 1:this.a=toe,this.b=hi}}function WNe(e,n,t){var i,r;if(e.c)Cu(e.c,e.c.i+n),Mu(e.c,e.c.j+t);else for(r=new A(e.b);r.a0&&(se(e.b,new PSe(n.a,t)),i=n.a.length,0i&&(n.a+=OCe(V(lo,vl,25,-i,15,1))))}function XNe(e,n){var t,i,r;for(t=e.o,r=u(u(Tt(e.r,n),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=s8n(i,t.a),i.e.b=t.b*ne(he(i.b.We(KA)))}function u9n(e,n){var t,i,r,c;return r=e.k,t=ne(he(M(e,(re(),ub)))),c=n.k,i=ne(he(M(n,ub))),c!=(dn(),fi)?-1:r!=fi?1:t==i?0:t=0?e.hh(n,t,i):(e.eh()&&(i=(r=e.Vg(),r>=0?e.Qg(i):e.eh().ih(e,-1-r,null,i))),e.Sg(n,t,i))}function see(e,n){switch(n){case 7:!e.e&&(e.e=new Xe(Ii,e,7,4)),Dn(e.e);return;case 8:!e.d&&(e.d=new Xe(Ii,e,8,5)),Dn(e.d);return}UZ(e,n)}function kf(e,n){var t;t=e.Zc(n);try{return t.Pb()}catch(i){throw i=qt(i),_(i,109)?I(new Rr("Can't get element "+n)):I(i)}}function oee(e,n){this.e=e,n=0&&(t.d=e.t);break;case 3:e.t>=0&&(t.a=e.t)}e.C&&(t.b=e.C.b,t.c=e.C.c)}function L2(){L2=U,tj=new AT(SP,0),nj=new AT(qB,1),ij=new AT(HB,2),rj=new AT(VB,3),tj.a=!1,nj.a=!0,ij.a=!1,rj.a=!0}function k6(){k6=U,cj=new PT(SP,0),qA=new PT(qB,1),HA=new PT(HB,2),uj=new PT(VB,3),cj.a=!1,qA.a=!0,HA.a=!1,uj.a=!0}function a9n(e){var n;n=e.a;do n=u(_n(new En(Cn(ic(n).a.Kc(),new J))),17).c.i,n.k==(dn(),$i)&&e.b.Fc(n);while(n.k==(dn(),$i));e.b=Z1(e.b)}function h9n(e){var n,t,i;for(i=e.c.a,e.p=(Nn(i),new _u(i)),t=new A(i);t.at.b)return!0}return!1}function TN(e,n){return Ni(e)?!!lXe[n]:e.hm?!!e.hm[n]:Fb(e)?!!fXe[n]:Lb(e)?!!oXe[n]:!1}function _r(e,n,t){return t==null?(!e.o&&(e.o=new ks((cu(),C1),bb,e,0)),yS(e.o,n)):(!e.o&&(e.o=new ks((cu(),C1),bb,e,0)),_S(e.o,n,t)),e}function g9n(e,n,t,i){var r,c;c=n.Xe((ht(),Lp))?u(n.We(Lp),21):e.j,r=c6n(c),r!=(mP(),tq)&&(t&&!iee(r)||dne(WTn(e,r,i),n))}function PS(e,n,t,i){var r,c,o;return c=Ge(e.Tg(),n),r=n-e.Ah(),r<0?(o=e.Yg(c),o>=0?e._g(o,t,!0):_0(e,c,t)):u(c,66).Nj().Pj(e,e.yh(),r,t,i)}function p9n(e,n,t,i){var r,c,o;t.mh(n)&&(Er(),gF(n)?(r=u(t.ah(n),153),Kyn(e,r)):(c=(o=n,o?u(i,49).xh(o):null),c&&vln(t.ah(n),c)))}function m9n(e){switch(e.g){case 1:return P0(),ej;case 3:return P0(),Zk;case 2:return P0(),rq;case 4:return P0(),iq;default:return null}}function fee(e){switch(typeof e){case eB:return th(e);case cie:return ci(e);case q2:return cn(),e?1231:1237;default:return e==null?0:c0(e)}}function v9n(e,n,t){if(e.e)switch(e.b){case 1:Wgn(e.c,n,t);break;case 0:Xgn(e.c,n,t)}else NIe(e.c,n,t);e.a[n.p][t.p]=e.c.i,e.a[t.p][n.p]=e.c.e}function e_e(e){var n,t;if(e==null)return null;for(t=V(Zl,ie,193,e.length,0,2),n=0;n=0)return r;if(e.Fk()){for(i=0;i=r)throw I(new Kb(n,r));if(e.hi()&&(i=e.Xc(t),i>=0&&i!=n))throw I(new rn(Vk));return e.mi(n,t)}function lee(e,n){if(this.a=u(Nn(e),245),this.b=u(Nn(n),245),e.vd(n)>0||e==(yD(),FK)||n==(vD(),NK))throw I(new rn("Invalid range: "+DIe(e,n)))}function n_e(e){var n,t;for(this.b=new oe,this.c=e,this.a=!1,t=new A(e.a);t.a0),(n&-n)==n)return ci(n*cs(e,31)*4656612873077393e-25);do t=cs(e,31),i=t%n;while(t-i+(n-1)<0);return ci(i)}function th(e){dSe();var n,t,i;return t=":"+e,i=_A[t],i!=null?ci((nn(i),i)):(i=sse[t],n=i==null?aMn(e):ci((nn(i),i)),Rgn(),_A[t]=n,n)}function i_e(e,n,t){In(t,"Compound graph preprocessor",1),e.a=new p0,fVe(e,n,null),JAn(e,n),$Cn(e),te(n,(re(),Mfe),e.a),e.a=null,Wu(e.b),Tn(t)}function j9n(e,n,t){switch(t.g){case 1:e.a=n.a/2,e.b=0;break;case 2:e.a=n.a,e.b=n.b/2;break;case 3:e.a=n.a/2,e.b=n.b;break;case 4:e.a=0,e.b=n.b/2}}function E9n(e){var n,t,i;for(i=u(Tt(e.a,(Vg(),yx)),15).Kc();i.Ob();)t=u(i.Pb(),101),n=Eee(t),av(e,t,n[0],(S0(),nb),0),av(e,t,n[1],tb,1)}function T9n(e){var n,t,i;for(i=u(Tt(e.a,(Vg(),kx)),15).Kc();i.Ob();)t=u(i.Pb(),101),n=Eee(t),av(e,t,n[0],(S0(),nb),0),av(e,t,n[1],tb,1)}function CN(e){switch(e.g){case 0:return null;case 1:return new iLe;case 2:return new kU;default:throw I(new rn(qR+(e.f!=null?e.f:""+e.g)))}}function H7(e,n,t){var i,r;for(z4n(e,n-e.s,t-e.t),r=new A(e.n);r.a1&&(c=k9n(e,n)),c}function MN(e){var n;return e.f&&e.f.kh()&&(n=u(e.f,49),e.f=u(Yh(e,n),82),e.f!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,9,8,n,e.f))),e.f}function SN(e){var n;return e.i&&e.i.kh()&&(n=u(e.i,49),e.i=u(Yh(e,n),82),e.i!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,9,7,n,e.i))),e.i}function Cr(e){var n;return e.b&&e.b.Db&64&&(n=e.b,e.b=u(Yh(e,n),18),e.b!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,9,21,n,e.b))),e.b}function IS(e,n){var t,i,r;e.d==null?(++e.e,++e.f):(i=n.Sh(),KCn(e,e.f+1),r=(i&vt)%e.d.length,t=e.d[r],!t&&(t=e.d[r]=e.uj()),t.Fc(n),++e.f)}function dee(e,n,t){var i;return n.Kj()?!1:n.Zj()!=-2?(i=n.zj(),i==null?t==null:kt(i,t)):n.Hj()==e.e.Tg()&&t==null}function OS(){var e;Is(16,ZVe),e=W$e(16),this.b=V(BK,Ek,317,e,0,1),this.c=V(BK,Ek,317,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function Ta(e){IX.call(this),this.k=(dn(),vi),this.j=(Is(6,kw),new tu(6)),this.b=(Is(2,kw),new tu(2)),this.d=new bD,this.f=new hU,this.a=e}function M9n(e){var n,t;e.c.length<=1||(n=nqe(e,(ae(),On)),HBe(e,u(n.a,19).a,u(n.b,19).a),t=nqe(e,un),HBe(e,u(t.a,19).a,u(t.b,19).a))}function j6(){j6=U,rae=new m8("SIMPLE",0),IH=new m8(uR,1),OH=new m8("LINEAR_SEGMENTS",2),Vy=new m8("BRANDES_KOEPF",3),Gy=new m8(Cze,4)}function bee(e,n,t){a2(u(M(n,(be(),ei)),98))||(oJ(e,n,ih(n,t)),oJ(e,n,ih(n,(ae(),On))),oJ(e,n,ih(n,tn)),He(),Oi(n.j,new c8e(e)))}function r_e(e,n,t,i){var r,c,o;for(r=u(Tt(i?e.a:e.b,n),21),o=r.Kc();o.Ob();)if(c=u(o.Pb(),33),tP(e,t,c))return!0;return!1}function PN(e){var n,t;for(t=new jn(e);t.e!=t.i.gc();)if(n=u(Sn(t),87),n.e||(!n.d&&(n.d=new bi($r,n,1)),n.d).i!=0)return!0;return!1}function AN(e){var n,t;for(t=new jn(e);t.e!=t.i.gc();)if(n=u(Sn(t),87),n.e||(!n.d&&(n.d=new bi($r,n,1)),n.d).i!=0)return!0;return!1}function S9n(e){var n,t,i;for(n=0,i=new A(e.c.a);i.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function ON(e,n){if(e==null)throw I(new Zp("null key in entry: null="+n));if(n==null)throw I(new Zp("null value in entry: "+e+"=null"))}function P9n(e,n){for(var t,i;e.Ob();)if(!n.Ob()||(t=e.Pb(),i=n.Pb(),!(X(t)===X(i)||t!=null&&kt(t,i))))return!1;return!n.Ob()}function u_e(e,n){var t;return t=D(O(Ri,1),Br,25,15,[QF(e.a[0],n),QF(e.a[1],n),QF(e.a[2],n)]),e.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function s_e(e,n){var t;return t=D(O(Ri,1),Br,25,15,[sS(e.a[0],n),sS(e.a[1],n),sS(e.a[2],n)]),e.d&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function ld(){ld=U,Rq=new p8("GREEDY",0),ife=new p8(aze,1),Kq=new p8(uR,2),Iy=new p8("MODEL_ORDER",3),xy=new p8("GREEDY_MODEL_ORDER",4)}function o_e(e,n){var t,i,r;for(e.b[n.g]=1,i=ct(n.d,0);i.b!=i.d.c;)t=u(rt(i),188),r=t.c,e.b[r.g]==1?ut(e.a,t):e.b[r.g]==2?e.b[r.g]=1:o_e(e,r)}function A9n(e,n){var t,i,r;for(r=new tu(n.gc()),i=n.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?o3(e,t,t.c):Sjn(e,t)||(r.c[r.c.length]=t);return r}function x9n(e,n,t){var i,r,c,o,f;for(f=e.r+n,e.r+=n,e.d+=t,i=t/e.n.c.length,r=0,o=new A(e.n);o.ac&&zt(n,c,null),n}function V9n(e,n){var t,i;if(i=e.gc(),n==null){for(t=0;t0&&(l+=r),a[h]=o,o+=f*(l+i)}function g_e(e){var n,t,i;for(i=e.f,e.n=V(Ri,Br,25,i,15,1),e.d=V(Ri,Br,25,i,15,1),n=0;n0?e.c:0),++r;e.b=i,e.d=c}function Q9n(e,n){var t,i,r,c,o;for(i=0,r=0,t=0,o=new A(n);o.a0?e.g:0),++t;e.c=r,e.d=i}function k_e(e,n){var t;return t=D(O(Ri,1),Br,25,15,[hee(e,(mf(),jc),n),hee(e,su,n),hee(e,Ec,n)]),e.f&&(t[0]=y.Math.max(t[0],t[2]),t[2]=t[0]),t}function J9n(e,n,t){var i;try{cP(e,n+e.j,t+e.k,!1,!0)}catch(r){throw r=qt(r),_(r,73)?(i=r,I(new Rr(i.g+AP+n+vr+t+")."))):I(r)}}function Z9n(e,n,t){var i;try{cP(e,n+e.j,t+e.k,!0,!1)}catch(r){throw r=qt(r),_(r,73)?(i=r,I(new Rr(i.g+AP+n+vr+t+")."))):I(r)}}function j_e(e){var n;Ai(e,(be(),sb))&&(n=u(M(e,sb),21),n.Hc((bw(),uf))?(n.Mc(uf),n.Fc(sf)):n.Hc(sf)&&(n.Mc(sf),n.Fc(uf)))}function E_e(e){var n;Ai(e,(be(),sb))&&(n=u(M(e,sb),21),n.Hc((bw(),ff))?(n.Mc(ff),n.Fc(Io)):n.Hc(Io)&&(n.Mc(Io),n.Fc(ff)))}function e8n(e,n,t){In(t,"Self-Loop ordering",1),ti(yu(Lt(Lt(ac(new We(null,new Ye(n.b,16)),new Ipe),new Ope),new Dpe),new $pe),new D9e(e)),Tn(t)}function G7(e,n,t,i){var r,c;for(r=n;r0&&(r.b+=n),r}function LS(e,n){var t,i,r;for(r=new tr,i=e.Kc();i.Ob();)t=u(i.Pb(),37),$6(t,0,r.b),r.b+=t.f.b+n,r.a=y.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=n),r}function C_e(e){var n,t,i;for(i=vt,t=new A(e.a);t.a>16==6?e.Cb.ih(e,5,Sf,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||e.zh()),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function c8n(e){pv();var n=e.e;if(n&&n.stack){var t=n.stack,i=n+` +`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(` +`)}return[]}function u8n(e){var n;return n=(q$e(),jXe),n[e>>>28]|n[e>>24&15]<<4|n[e>>20&15]<<8|n[e>>16&15]<<12|n[e>>12&15]<<16|n[e>>8&15]<<20|n[e>>4&15]<<24|n[e&15]<<28}function P_e(e){var n,t,i;e.b==e.c&&(i=e.a.length,t=eZ(y.Math.max(8,i))<<1,e.b!=0?(n=Go(e.a,t),Y$e(e,n,i),e.a=n,e.b=0):X7e(e.a,t),e.c=i)}function s8n(e,n){var t;return t=e.b,t.Xe((ht(),fs))?t.Hf()==(ae(),un)?-t.rf().a-ne(he(t.We(fs))):n+ne(he(t.We(fs))):t.Hf()==(ae(),un)?-t.rf().a:n}function z7(e){var n;return e.b.c.length!=0&&u(ve(e.b,0),70).a?u(ve(e.b,0),70).a:(n=TL(e),n??""+(e.c?tc(e.c.a,e,0):-1))}function FS(e){var n;return e.f.c.length!=0&&u(ve(e.f,0),70).a?u(ve(e.f,0),70).a:(n=TL(e),n??""+(e.i?tc(e.i.j,e,0):-1))}function o8n(e,n){var t,i;if(n<0||n>=e.gc())return null;for(t=n;t0?e.c:0),r=y.Math.max(r,n.d),++i;e.e=c,e.b=r}function l8n(e){var n,t;if(!e.b)for(e.b=fM(u(e.f,118).Ag().i),t=new jn(u(e.f,118).Ag());t.e!=t.i.gc();)n=u(Sn(t),137),se(e.b,new CD(n));return e.b}function a8n(e,n){var t,i,r;if(n.dc())return cv(),cv(),rE;for(t=new IMe(e,n.gc()),r=new jn(e);r.e!=r.i.gc();)i=Sn(r),n.Hc(i)&&Bn(t,i);return t}function kee(e,n,t,i){return n==0?i?(!e.o&&(e.o=new ks((cu(),C1),bb,e,0)),e.o):(!e.o&&(e.o=new ks((cu(),C1),bb,e,0)),u7(e.o)):PS(e,n,t,i)}function RN(e){var n,t;if(e.rb)for(n=0,t=e.rb.i;n>22),r+=i>>22,r<0)?!1:(e.l=t&ss,e.m=i&ss,e.h=r&Pa,!0)}function w8n(e,n,t,i,r,c,o){var f,l;return!(n.Ae()&&(l=e.a.ue(t,i),l<0||!r&&l==0)||n.Be()&&(f=e.a.ue(t,c),f>0||!o&&f==0))}function g8n(e,n){zv();var t;if(t=e.j.g-n.j.g,t!=0)return 0;switch(e.j.g){case 2:return fN(n,Xoe)-fN(e,Xoe);case 4:return fN(e,Woe)-fN(n,Woe)}return 0}function p8n(e){switch(e.g){case 0:return Hq;case 1:return Vq;case 2:return Gq;case 3:return zq;case 4:return Tx;case 5:return Uq;default:return null}}function zr(e,n,t){var i,r;return i=(r=new pD,cd(r,n),iu(r,t),Bn((!e.c&&(e.c=new fe(wb,e,12,10)),e.c),r),r),Ya(i,0),tw(i,1),eh(i,!0),Za(i,!0),i}function F2(e,n){var t,i;if(n>=e.i)throw I(new h$(n,e.i));return++e.j,t=e.g[n],i=e.i-n-1,i>0&&Kc(e.g,n+1,e.g,n,i),zt(e.g,--e.i,null),e.fi(n,t),e.ci(),t}function A_e(e,n){var t,i;return e.Db>>16==17?e.Cb.ih(e,21,$o,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||e.zh()),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function m8n(e){var n,t,i,r;for(He(),Oi(e.c,e.a),r=new A(e.c);r.at.a.c.length))throw I(new rn("index must be >= 0 and <= layer node count"));e.c&&ju(e.c.a,e),e.c=t,t&&qb(t.a,n,e)}function $_e(e,n){var t,i,r;for(i=new En(Cn(ja(e).a.Kc(),new J));Un(i);)return t=u(_n(i),17),r=u(n.Kb(t),10),new HE(Nn(r.n.b+r.o.b/2));return U4(),U4(),LK}function L_e(e,n){this.c=new Ln,this.a=e,this.b=n,this.d=u(M(e,(re(),Cp)),304),X(M(e,(be(),$le)))===X((l7(),Cx))?this.e=new hke:this.e=new ake}function T8n(e,n){var t,i,r,c;for(c=0,i=new A(e);i.a>16==6?e.Cb.ih(e,6,Ii,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(cu(),_I)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function See(e,n){var t,i;return e.Db>>16==7?e.Cb.ih(e,1,Zj,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(cu(),bde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Pee(e,n){var t,i;return e.Db>>16==9?e.Cb.ih(e,9,Xt,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(cu(),gde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function N_e(e,n){var t,i;return e.Db>>16==5?e.Cb.ih(e,9,UI,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(Ke(),vh)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Aee(e,n){var t,i;return e.Db>>16==3?e.Cb.ih(e,0,nE,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(Ke(),mh)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function __e(e,n){var t,i;return e.Db>>16==7?e.Cb.ih(e,6,Sf,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(Ke(),kh)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function B_e(){this.a=new G3e,this.g=new OS,this.j=new OS,this.b=new Ln,this.d=new OS,this.i=new OS,this.k=new Ln,this.c=new Ln,this.e=new Ln,this.f=new Ln}function P8n(e,n,t){var i,r,c;for(t<0&&(t=0),c=e.i,r=t;rPB)return i3(e,i);if(i==e)return!0}}return!1}function x8n(e){switch(iC(),e.q.g){case 5:ERe(e,(ae(),tn)),ERe(e,On);break;case 4:mKe(e,(ae(),tn)),mKe(e,On);break;default:mVe(e,(ae(),tn)),mVe(e,On)}}function I8n(e){switch(iC(),e.q.g){case 5:_Re(e,(ae(),hn)),_Re(e,un);break;case 4:XNe(e,(ae(),hn)),XNe(e,un);break;default:vVe(e,(ae(),hn)),vVe(e,un)}}function O8n(e){var n,t;n=u(M(e,(jf(),iQe)),19),n?(t=n.a,t==0?te(e,(zh(),XA),new oN):te(e,(zh(),XA),new dM(t))):te(e,(zh(),XA),new dM(1))}function D8n(e,n){var t;switch(t=e.i,n.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-t.o.a;case 3:return e.n.b-t.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function $8n(e,n){switch(e.g){case 0:return n==(to(),b1)?wx:gx;case 1:return n==(to(),b1)?wx:aj;case 2:return n==(to(),b1)?aj:gx;default:return aj}}function W7(e,n){var t,i,r;for(ju(e.a,n),e.e-=n.r+(e.a.c.length==0?0:e.c),r=wce,i=new A(e.a);i.a>16==3?e.Cb.ih(e,12,Xt,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(cu(),dde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Iee(e,n){var t,i;return e.Db>>16==11?e.Cb.ih(e,10,Xt,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(cu(),wde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function R_e(e,n){var t,i;return e.Db>>16==10?e.Cb.ih(e,11,$o,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(Ke(),yh)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function K_e(e,n){var t,i;return e.Db>>16==10?e.Cb.ih(e,12,Lo,n):(i=Cr(u(Ge((t=u(en(e,16),26),t||(Ke(),ig)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function vo(e){var n;return!(e.Bb&1)&&e.r&&e.r.kh()&&(n=u(e.r,49),e.r=u(Yh(e,n),138),e.r!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,9,8,n,e.r))),e.r}function qN(e,n,t){var i;return i=D(O(Ri,1),Br,25,15,[tne(e,(mf(),jc),n,t),tne(e,su,n,t),tne(e,Ec,n,t)]),e.f&&(i[0]=y.Math.max(i[0],i[2]),i[2]=i[0]),i}function L8n(e,n){var t,i,r;if(r=A9n(e,n),r.c.length!=0)for(Oi(r,new ipe),t=r.c.length,i=0;i>19,a=n.h>>19,l!=a?a-l:(r=e.h,f=n.h,r!=f?r-f:(i=e.m,o=n.m,i!=o?i-o:(t=e.l,c=n.l,t-c)))}function NS(){NS=U,vse=(iP(),eq),mse=new Ve(yie,vse),pse=(AM(),ZK),gse=new Ve(kie,pse),wse=(ES(),JK),bse=new Ve(jie,wse),dse=new Ve(Eie,(cn(),!0))}function T6(e,n,t){var i,r;i=n*t,_(e.g,145)?(r=j2(e),r.f.d?r.f.a||(e.d.a+=i+zf):(e.d.d-=i+zf,e.d.a+=i+zf)):_(e.g,10)&&(e.d.d-=i,e.d.a+=2*i)}function q_e(e,n,t){var i,r,c,o,f;for(r=e[t.g],f=new A(n.d);f.a0?e.g:0),++t;n.b=i,n.e=r}function H_e(e){var n,t,i;if(i=e.b,aEe(e.i,i.length)){for(t=i.length*2,e.b=V(BK,Ek,317,t,0,1),e.c=V(BK,Ek,317,t,0,1),e.f=t-1,e.i=0,n=e.a;n;n=n.c)nk(e,n,n);++e.g}}function H8n(e,n,t,i){var r,c,o,f;for(r=0;ro&&(f=o/i),r>c&&(l=c/r),al(e,y.Math.min(f,l)),e}function G8n(){fP();var e,n;try{if(n=u(qee((Oh(),Fo),N3),2014),n)return n}catch(t){if(t=qt(t),_(t,102))e=t,AY((qn(),e));else throw I(t)}return new K3e}function z8n(){$De();var e,n;try{if(n=u(qee((Oh(),Fo),jd),2024),n)return n}catch(t){if(t=qt(t),_(t,102))e=t,AY((qn(),e));else throw I(t)}return new u5e}function U8n(){fP();var e,n;try{if(n=u(qee((Oh(),Fo),Co),1941),n)return n}catch(t){if(t=qt(t),_(t,102))e=t,AY((qn(),e));else throw I(t)}return new d4e}function W8n(e,n,t){var i,r;return r=e.e,e.e=n,e.Db&4&&!(e.Db&1)&&(i=new Di(e,1,4,r,n),t?t.Ei(i):t=i),r!=n&&(n?t=v3(e,YS(e,n),t):t=v3(e,e.a,t)),t}function V_e(){wT.call(this),this.e=-1,this.a=!1,this.p=rr,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=rr}function X8n(e,n){var t,i,r;if(i=e.b.d.d,e.a||(i+=e.b.d.a),r=n.b.d.d,n.a||(r+=n.b.d.a),t=gi(i,r),t==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return t}function Y8n(e,n){var t,i,r;if(i=e.b.b.d,e.a||(i+=e.b.b.a),r=n.b.b.d,n.a||(r+=n.b.b.a),t=gi(i,r),t==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return t}function Q8n(e,n){var t,i,r;if(i=e.b.g.d,e.a||(i+=e.b.g.a),r=n.b.g.d,n.a||(r+=n.b.g.a),t=gi(i,r),t==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return t}function Dee(){Dee=U,pQe=Uu(mt(mt(mt(new Pi,(mr(),Yc),(Mr(),$oe)),Yc,Loe),Jr,Foe),Jr,Eoe),vQe=mt(mt(new Pi,Yc,goe),Yc,Toe),mQe=Uu(new Pi,Jr,Moe)}function J8n(e){var n,t,i,r,c;for(n=u(M(e,(re(),Ly)),83),c=e.n,i=n.Cc().Kc();i.Ob();)t=u(i.Pb(),306),r=t.i,r.c+=c.a,r.d+=c.b,t.c?uqe(t):sqe(t);te(e,Ly,null)}function Z8n(e,n,t){var i,r;switch(r=e.b,i=r.d,n.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function e7n(e){var n,t,i,r,c;if(i=0,r=A3,e.b)for(n=0;n<360;n++)t=n*.017453292519943295,Ete(e,e.d,0,0,sp,t),c=e.b.ig(e.d),c0&&(o=(c&vt)%e.d.length,r=Dne(e,o,c,n),r)?(f=r.ed(t),f):(i=e.tj(c,n,t),e.c.Fc(i),null)}function Fee(e,n){var t,i,r,c;switch(Ja(e,n)._k()){case 3:case 2:{for(t=Jg(n),r=0,c=t.i;r=0;i--)if(Re(e[i].d,n)||Re(e[i].d,t)){e.length>=i+1&&e.splice(0,i+1);break}return e}function X7(e,n){var t;return nc(e)&&nc(n)&&(t=e/n,Mk0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=y.Math.min(i,r))}function Q_e(e,n){var t,i;if(i=!1,Ni(n)&&(i=!0,g2(e,new Gb(Vn(n)))),i||_(n,236)&&(i=!0,g2(e,(t=qX(u(n,236)),new VE(t)))),!i)throw I(new ED(Qce))}function m7n(e,n,t,i){var r,c,o;return r=new pa(e.e,1,10,(o=n.c,_(o,88)?u(o,26):(Ke(),No)),(c=t.c,_(c,88)?u(c,26):(Ke(),No)),nh(e,n),!1),i?i.Ei(r):i=r,i}function Bee(e){var n,t;switch(u(M(ar(e),(be(),Mle)),420).g){case 0:return n=e.n,t=e.o,new je(n.a+t.a/2,n.b+t.b/2);case 1:return new Kr(e.n);default:return null}}function Y7(){Y7=U,Mx=new d5(Aa,0),afe=new d5("LEFTUP",1),dfe=new d5("RIGHTUP",2),lfe=new d5("LEFTDOWN",3),hfe=new d5("RIGHTDOWN",4),Wq=new d5("BALANCED",5)}function v7n(e,n,t){var i,r,c;if(i=gi(e.a[n.p],e.a[t.p]),i==0){if(r=u(M(n,(re(),lm)),15),c=u(M(t,lm),15),r.Hc(t))return-1;if(c.Hc(n))return 1}return i}function y7n(e){switch(e.g){case 1:return new Dve;case 2:return new $ve;case 3:return new Ove;case 0:return null;default:throw I(new rn(qR+(e.f!=null?e.f:""+e.g)))}}function Ree(e,n,t){switch(n){case 1:!e.n&&(e.n=new fe(uc,e,1,7)),Dn(e.n),!e.n&&(e.n=new fe(uc,e,1,7)),Yt(e.n,u(t,14));return;case 2:r6(e,Vn(t));return}uZ(e,n,t)}function Kee(e,n,t){switch(n){case 3:T0(e,ne(he(t)));return;case 4:C0(e,ne(he(t)));return;case 5:Cu(e,ne(he(t)));return;case 6:Mu(e,ne(he(t)));return}Ree(e,n,t)}function BS(e,n,t){var i,r,c;c=(i=new pD,i),r=Vf(c,n,null),r&&r.Fi(),iu(c,t),Bn((!e.c&&(e.c=new fe(wb,e,12,10)),e.c),c),Ya(c,0),tw(c,1),eh(c,!0),Za(c,!0)}function qee(e,n){var t,i,r;return t=o5(e.g,n),_(t,235)?(r=u(t,235),r.Qh()==null,r.Nh()):_(t,498)?(i=u(t,1938),r=i.b,r):null}function k7n(e,n,t,i){var r,c;return Nn(n),Nn(t),c=u($5(e.d,n),19),BDe(!!c,"Row %s not in %s",n,e.e),r=u($5(e.b,t),19),BDe(!!r,"Column %s not in %s",t,e.c),VLe(e,c.a,r.a,i)}function J_e(e,n,t,i,r,c,o){var f,l,a,h,w;if(h=r[c],a=c==o-1,f=a?i:0,w=v_e(f,h),i!=10&&D(O(e,o-c),n[c],t[c],f,w),!a)for(++c,l=0;l1||f==-1?(c=u(l,15),r.Wb(Pyn(e,c))):r.Wb(x_(e,u(l,56)))))}function P7n(e,n,t,i){Bje();var r=$K;function c(){for(var o=0;oBR)return t;r>-1e-6&&++t}return t}function Gee(e,n){var t;n!=e.b?(t=null,e.b&&(t=QC(e.b,e,-4,t)),n&&(t=$2(n,e,-4,t)),t=$Fe(e,n,t),t&&t.Fi()):e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,3,n,n))}function nBe(e,n){var t;n!=e.f?(t=null,e.f&&(t=QC(e.f,e,-1,t)),n&&(t=$2(n,e,-1,t)),t=LFe(e,n,t),t&&t.Fi()):e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,0,n,n))}function tBe(e){var n,t,i;if(e==null)return null;if(t=u(e,15),t.dc())return"";for(i=new Ra,n=t.Kc();n.Ob();)Lr(i,(Pt(),Vn(n.Pb()))),i.a+=" ";return b$(i,i.a.length-1)}function iBe(e){var n,t,i;if(e==null)return null;if(t=u(e,15),t.dc())return"";for(i=new Ra,n=t.Kc();n.Ob();)Lr(i,(Pt(),Vn(n.Pb()))),i.a+=" ";return b$(i,i.a.length-1)}function F7n(e,n,t){var i,r;return i=e.c[n.c.p][n.p],r=e.c[t.c.p][t.p],i.a!=null&&r.a!=null?tL(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function N7n(e,n){var t,i,r,c,o,f;if(n)for(c=n.a.length,t=new V1(c),f=(t.b-t.a)*t.c<0?(Dh(),x1):new Nh(t);f.Ob();)o=u(f.Pb(),19),r=vv(n,o.a),i=new r7e(e),Mgn(i.a,r)}function _7n(e,n){var t,i,r,c,o,f;if(n)for(c=n.a.length,t=new V1(c),f=(t.b-t.a)*t.c<0?(Dh(),x1):new Nh(t);f.Ob();)o=u(f.Pb(),19),r=vv(n,o.a),i=new X8e(e),Cgn(i.a,r)}function B7n(e){var n;if(e!=null&&e.length>0&&Xi(e,e.length-1)==33)try{return n=eRe(Ms(e,0,e.length-1)),n.e==null}catch(t){if(t=qt(t),!_(t,32))throw I(t)}return!1}function rBe(e,n,t){var i,r,c;return i=n.ak(),c=n.dd(),r=i.$j()?Hh(e,3,i,null,c,g3(e,i,c,_(i,99)&&(u(i,18).Bb&yr)!=0),!0):Hh(e,1,i,i.zj(),c,-1,!0),t?t.Ei(r):t=r,t}function R7n(){var e,n,t;for(n=0,e=0;e<1;e++){if(t=Nne((Gn(e,1),"X".charCodeAt(e))),t==0)throw I(new Hn("Unknown Option: "+"X".substr(e)));n|=t}return n}function K7n(e,n,t){var i,r,c;switch(i=ar(n),r=hS(i),c=new Rc,lc(c,n),t.g){case 1:Ei(c,N7(O2(r)));break;case 2:Ei(c,O2(r))}return te(c,(be(),Hw),he(M(e,Hw))),c}function zee(e){var n,t;return n=u(_n(new En(Cn(ic(e.a).a.Kc(),new J))),17),t=u(_n(new En(Cn(pi(e.a).a.Kc(),new J))),17),ke(ye(M(n,(re(),Qf))))||ke(ye(M(t,Qf)))}function Vg(){Vg=U,mx=new g8("ONE_SIDE",0),yx=new g8("TWO_SIDES_CORNER",1),kx=new g8("TWO_SIDES_OPPOSING",2),vx=new g8("THREE_SIDES",3),px=new g8("FOUR_SIDES",4)}function zN(e,n,t,i,r){var c,o;c=u(As(Lt(n.Oc(),new Z2e),Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[(qf(),_s)]))),15),o=u(ed(e.b,t,i),15),r==0?o.Wc(0,c):o.Gc(c)}function q7n(e,n){var t,i,r,c,o;for(c=new A(n.a);c.a0&&x_e(this,this.c-1,(ae(),hn)),this.c0&&e[0].length>0&&(this.c=ke(ye(M(ar(e[0][0]),(re(),Pfe))))),this.a=V(snn,ie,2018,e.length,0,2),this.b=V(onn,ie,2019,e.length,0,2),this.d=new SFe}function U7n(e){return e.c.length==0?!1:(Qe(0,e.c.length),u(e.c[0],17)).c.i.k==(dn(),$i)?!0:kv(yu(new We(null,new Ye(e,16)),new Ome),new Dme)}function W7n(e,n,t){return In(t,"Tree layout",1),sM(e.b),_l(e.b,(t3(),uI),uI),_l(e.b,Qy,Qy),_l(e.b,Aj,Aj),_l(e.b,Jy,Jy),e.a=dP(e.b,n),EMn(e,n,zc(t,1)),Tn(t),n}function uBe(e,n){var t,i,r,c,o,f,l;for(f=gw(n),c=n.f,l=n.g,o=y.Math.sqrt(c*c+l*l),r=0,i=new A(f);i.a=0?(t=X7(e,EP),i=R7(e,EP)):(n=Hb(e,1),t=X7(n,5e8),i=R7(n,5e8),i=or(aa(i,1),ji(e,1))),Ff(aa(i,32),ji(t,Ir))}function fBe(e,n,t){var i,r;switch(i=(vn(n.b!=0),u(Zs(n,n.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=e.f;break;case 3:i.a=0;break;default:i.a=e.g}return r=ct(n,0),V8(r,i),n}function lBe(e,n,t,i){var r,c,o,f,l;switch(l=e.b,c=n.d,o=c.j,f=uee(o,l.d[o.g],t),r=Mt(vc(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}ri(i,f,i.c.b,i.c)}function ukn(e,n,t){var i,r,c,o;for(o=tc(e.e,n,0),c=new lU,c.b=t,i=new zi(e.e,o);i.b1;n>>=1)n&1&&(i=Ag(i,t)),t.d==1?t=Ag(t,t):t=new $Ne(Hqe(t.a,t.d,V($n,nt,25,t.d<<1,15,1)));return i=Ag(i,t),i}function Zee(){Zee=U;var e,n,t,i;for(ese=V(Ri,Br,25,25,15,1),nse=V(Ri,Br,25,33,15,1),i=152587890625e-16,n=32;n>=0;n--)nse[n]=i,i*=.5;for(t=1,e=24;e>=0;e--)ese[e]=t,t*=.5}function hkn(e){var n,t;if(ke(ye(Te(e,(be(),qw))))){for(t=new En(Cn(Ca(e).a.Kc(),new J));Un(t);)if(n=u(_n(t),79),N0(n)&&ke(ye(Te(n,Pd))))return!0}return!1}function aBe(e,n){var t,i,r;ki(e.f,n)&&(n.b=e,i=n.c,tc(e.j,i,0)!=-1||se(e.j,i),r=n.d,tc(e.j,r,0)!=-1||se(e.j,r),t=n.a.b,t.c.length!=0&&(!e.i&&(e.i=new HNe(e)),P4n(e.i,t)))}function dkn(e){var n,t,i,r,c;return t=e.c.d,i=t.j,r=e.d.d,c=r.j,i==c?t.p=0&&Re(e.substr(n,3),"GMT")||n>=0&&Re(e.substr(n,3),"UTC"))&&(t[0]=n+3),Mte(e,t,i)}function wkn(e,n){var t,i,r,c,o;for(c=e.g.a,o=e.g.b,i=new A(e.d);i.at;c--)e[c]|=n[c-t-1]>>>o,e[c-1]=n[c-t-1]<=e.f)break;c.c[c.c.length]=t}return c}function nne(e){var n,t,i,r;for(n=null,r=new A(e.wf());r.a0&&Kc(e.g,n,e.g,n+i,f),o=t.Kc(),e.i+=i,r=0;rc&&Iwn(a,s$e(t[f],Jue))&&(r=f,c=l);return r>=0&&(i[0]=n+c),r}function jkn(e,n){var t;if(t=rCe(e.b.Hf(),n.b.Hf()),t!=0)return t;switch(e.b.Hf().g){case 1:case 2:return mu(e.b.sf(),n.b.sf());case 3:case 4:return mu(n.b.sf(),e.b.sf())}return 0}function Ekn(e){var n,t,i;for(i=e.e.c.length,e.a=H1($n,[ie,nt],[48,25],15,[i,i],2),t=new A(e.c);t.a>4&15,c=e[i]&15,o[r++]=pde[t],o[r++]=pde[c];return mo(o,0,o.length)}function Mkn(e,n,t){var i,r,c;return i=n.ak(),c=n.dd(),r=i.$j()?Hh(e,4,i,c,null,g3(e,i,c,_(i,99)&&(u(i,18).Bb&yr)!=0),!0):Hh(e,i.Kj()?2:1,i,c,i.zj(),-1,!0),t?t.Ei(r):t=r,t}function Pu(e){var n,t;return e>=yr?(n=Sk+(e-yr>>10&1023)&si,t=56320+(e-yr&1023)&si,String.fromCharCode(n)+(""+String.fromCharCode(t))):String.fromCharCode(e&si)}function Skn(e,n){Bb();var t,i,r,c;return r=u(u(Tt(e.r,n),21),84),r.gc()>=2?(i=u(r.Kc().Pb(),111),t=e.u.Hc((Yu(),w9)),c=e.u.Hc(Em),!i.a&&!t&&(r.gc()==2||c)):!1}function bBe(e,n,t,i,r){var c,o,f;for(c=QKe(e,n,t,i,r),f=!1;!c;)WS(e,r,!0),f=!0,c=QKe(e,n,t,i,r);f&&WS(e,r,!1),o=LF(r),o.c.length!=0&&(e.d&&e.d.lg(o),bBe(e,r,t,i,o))}function HS(){HS=U,NV=new v5(Aa,0),G1e=new v5("DIRECTED",1),U1e=new v5("UNDIRECTED",2),H1e=new v5("ASSOCIATION",3),z1e=new v5("GENERALIZATION",4),V1e=new v5("DEPENDENCY",5)}function Pkn(e,n){var t;if(!Df(e))throw I(new ec(fUe));switch(t=Df(e),n.g){case 1:return-(e.j+e.f);case 2:return e.i-t.g;case 3:return e.j-t.f;case 4:return-(e.i+e.g)}return 0}function u3(e,n){var t,i;for(nn(n),i=e.b.c.length,se(e.b,n);i>0;){if(t=i,i=(i-1)/2|0,e.a.ue(ve(e.b,i),n)<=0)return Qs(e.b,t,n),!0;Qs(e.b,t,ve(e.b,i))}return Qs(e.b,i,n),!0}function tne(e,n,t,i){var r,c;if(r=0,t)r=sS(e.a[t.g][n.g],i);else for(c=0;c=f)}function ine(e,n,t,i){var r;if(r=!1,Ni(i)&&(r=!0,ov(n,t,Vn(i))),r||Lb(i)&&(r=!0,ine(e,n,t,i)),r||_(i,236)&&(r=!0,z1(n,t,u(i,236))),!r)throw I(new ED(Qce))}function xkn(e,n){var t,i,r;if(t=n.Hh(e.a),t&&(r=vf((!t.b&&(t.b=new ps((Ke(),jr),Cc,t)),t.b),To),r!=null)){for(i=1;i<(Ku(),Kde).length;++i)if(Re(Kde[i],r))return i}return 0}function Ikn(e,n){var t,i,r;if(t=n.Hh(e.a),t&&(r=vf((!t.b&&(t.b=new ps((Ke(),jr),Cc,t)),t.b),To),r!=null)){for(i=1;i<(Ku(),qde).length;++i)if(Re(qde[i],r))return i}return 0}function wBe(e,n){var t,i,r,c;if(nn(n),c=e.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=e.a.ue(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function $kn(e){Yu();var n,t;return n=Ft(La,D(O(DI,1),ce,273,0,[E1])),!(j7(eM(n,e))>1||(t=Ft(w9,D(O(DI,1),ce,273,0,[b9,Em])),j7(eM(t,e))>1))}function cne(e,n){var t;t=Vc((Oh(),Fo),e),_(t,498)?qr(Fo,e,new $Te(this,n)):qr(Fo,e,this),ZN(this,n),n==(Um(),Ade)?(this.wb=u(this,1939),u(n,1941)):this.wb=(Kh(),Je)}function Lkn(e){var n,t,i;if(e==null)return null;for(n=null,t=0;t=ch?"error":i>=900?"warn":i>=800?"info":"log"),nAe(t,e.a),e.b&&cte(n,t,e.b,"Exception: ",!0))}function M(e,n){var t,i;return i=(!e.q&&(e.q=new Ln),kn(e.q,n)),i??(t=n.wg(),_(t,4)&&(t==null?(!e.q&&(e.q=new Ln),C2(e.q,n)):(!e.q&&(e.q=new Ln),jt(e.q,n,t))),t)}function mr(){mr=U,xl=new w8("P1_CYCLE_BREAKING",0),h1=new w8("P2_LAYERING",1),du=new w8("P3_NODE_ORDERING",2),Yc=new w8("P4_NODE_PLACEMENT",3),Jr=new w8("P5_EDGE_ROUTING",4)}function vBe(e,n){var t,i,r,c,o;for(r=n==1?mq:pq,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),103),o=u(Tt(e.f.c,t),21).Kc();o.Ob();)c=u(o.Pb(),46),ju(e.b.b,c.b),ju(e.b.a,u(c.b,81).d)}function Fkn(e,n){t6();var t;if(e.c==n.c){if(e.b==n.b||s4n(e.b,n.b)){if(t=ghn(e.b)?1:-1,e.a&&!n.a)return t;if(!e.a&&n.a)return-t}return mu(e.b.g,n.b.g)}else return gi(e.c,n.c)}function Nkn(e,n){var t;In(n,"Hierarchical port position processing",1),t=e.b,t.c.length>0&&_qe((Qe(0,t.c.length),u(t.c[0],29)),e),t.c.length>1&&_qe(u(ve(t,t.c.length-1),29),e),Tn(n)}function yBe(e,n){var t,i,r;if(sne(e,n))return!0;for(i=new A(n);i.a=r||n<0)throw I(new Rr(bK+n+yd+r));if(t>=r||t<0)throw I(new Rr(wK+t+yd+r));return n!=t?i=(c=e.Ti(t),e.Hi(n,c),c):i=e.Oi(t),i}function EBe(e){var n,t,i;if(i=e,e)for(n=0,t=e.Ug();t;t=t.Ug()){if(++n>PB)return EBe(t);if(i=t,t==e)throw I(new ec("There is a cycle in the containment hierarchy of "+e))}return i}function Zh(e){var n,t,i;for(i=new nd(vr,"[","]"),t=e.Kc();t.Ob();)n=t.Pb(),ga(i,X(n)===X(e)?"(this Collection)":n==null?Au:rc(n));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function sne(e,n){var t,i;if(i=!1,n.gc()<2)return!1;for(t=0;ti&&(Gn(n-1,e.length),e.charCodeAt(n-1)<=32);)--n;return i>0||n1&&(e.j.b+=e.e)):(e.j.a+=t.a,e.j.b=y.Math.max(e.j.b,t.b),e.d.c.length>1&&(e.j.a+=e.e))}function e1(){e1=U,iJe=D(O(kr,1),Lc,61,0,[(ae(),tn),hn,On]),tJe=D(O(kr,1),Lc,61,0,[hn,On,un]),rJe=D(O(kr,1),Lc,61,0,[On,un,tn]),cJe=D(O(kr,1),Lc,61,0,[un,tn,hn])}function Bkn(e,n,t,i){var r,c,o,f,l,a,h;if(o=e.c.d,f=e.d.d,o.j!=f.j)for(h=e.b,r=o.j,l=null;r!=f.j;)l=n==0?aS(r):xZ(r),c=uee(r,h.d[r.g],t),a=uee(l,h.d[l.g],t),ut(i,Mt(c,a)),r=l}function Rkn(e,n,t,i){var r,c,o,f,l;return o=I_e(e.a,n,t),f=u(o.a,19).a,c=u(o.b,19).a,i&&(l=u(M(n,(re(),Qu)),10),r=u(M(t,Qu),10),l&&r&&(NIe(e.b,l,r),f+=e.b.i,c+=e.b.e)),f>c}function CBe(e){var n,t,i,r,c,o,f,l,a;for(this.a=e_e(e),this.b=new oe,t=e,i=0,r=t.length;ix$(e.d).c?(e.i+=e.g.c,wN(e.d)):x$(e.d).c>x$(e.g).c?(e.e+=e.d.c,wN(e.g)):(e.i+=tPe(e.g),e.e+=tPe(e.d),wN(e.g),wN(e.d))}function Hkn(e,n,t){var i,r,c,o;for(c=n.q,o=n.r,new U1((wf(),p1),n,c,1),new U1(p1,c,o,1),r=new A(t);r.af&&(l=f/i),r>c&&(a=c/r),o=y.Math.min(l,a),e.a+=o*(n.a-e.a),e.b+=o*(n.b-e.b)}function Ukn(e,n,t,i,r){var c,o;for(o=!1,c=u(ve(t.b,0),33);oAn(e,n,c,i,r)&&(o=!0,M7n(t,c),t.b.c.length!=0);)c=u(ve(t.b,0),33);return t.b.c.length==0&&W7(t.j,t),o&&$S(n.q),o}function Wkn(e,n){Yg();var t,i,r,c;if(n.b<2)return!1;for(c=ct(n,0),t=u(rt(c),8),i=t;c.b!=c.d.c;){if(r=u(rt(c),8),m_(e,i,r))return!0;i=r}return!!m_(e,i,t)}function fne(e,n,t,i){var r,c;return t==0?(!e.o&&(e.o=new ks((cu(),C1),bb,e,0)),aC(e.o,n,i)):(c=u(Ge((r=u(en(e,16),26),r||e.zh()),t),66),c.Nj().Rj(e,lu(e),t-yn(e.zh()),n,i))}function ZN(e,n){var t;n!=e.sb?(t=null,e.sb&&(t=u(e.sb,49).ih(e,1,m9,t)),n&&(t=u(n,49).gh(e,1,m9,t)),t=EZ(e,n,t),t&&t.Fi()):e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,4,n,n))}function Xkn(e,n){var t,i,r,c;if(n)r=va(n,"x"),t=new n7e(e),Av(t.a,(nn(r),r)),c=va(n,"y"),i=new t7e(e),Iv(i.a,(nn(c),c));else throw I(new ol("All edge sections need an end point."))}function Ykn(e,n){var t,i,r,c;if(n)r=va(n,"x"),t=new J8e(e),xv(t.a,(nn(r),r)),c=va(n,"y"),i=new Z8e(e),Ov(i.a,(nn(c),c));else throw I(new ol("All edge sections need a start point."))}function Qkn(e,n){var t,i,r,c,o,f,l;for(i=aFe(e),c=0,f=i.length;c>22-n,r=e.h<>22-n):n<44?(t=0,i=e.l<>44-n):(t=0,i=0,r=e.l<e)throw I(new rn("k must be smaller than n"));return n==0||n==e?1:e==0?0:Nee(e)/(Nee(n)*Nee(e-n))}function lne(e,n){var t,i,r,c;for(t=new DW(e);t.g==null&&!t.c?hQ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],47).Ob();)if(c=u(XS(t),56),_(c,160))for(i=u(c,160),r=0;r>4],n[t*2+1]=JI[c&15];return mo(n,0,n.length)}function bjn(e){RC();var n,t,i;switch(i=e.c.length,i){case 0:return aXe;case 1:return n=u(wRe(new A(e)),42),_bn(n.cd(),n.dd());default:return t=u(Hf(e,V(Ed,kP,42,e.c.length,0,1)),165),new kD(t)}}function wjn(e){var n,t,i,r,c,o;for(n=new ag,t=new ag,Vh(n,e),Vh(t,e);t.b!=t.c;)for(r=u(w2(t),37),o=new A(r.a);o.a0&&ak(e,t,n),r):QEn(e,n,t)}function DBe(e,n,t){var i,r,c,o;if(n.b!=0){for(i=new Vt,o=ct(n,0);o.b!=o.d.c;)c=u(rt(o),86),pr(i,zJ(c)),r=c.e,r.a=u(M(c,(Ac(),YH)),19).a,r.b=u(M(c,xae),19).a;DBe(e,i,zc(t,i.b/e.a|0))}}function $Be(e,n){var t,i,r,c,o;if(e.e<=n||E2n(e,e.g,n))return e.g;for(c=e.r,i=e.g,o=e.r,r=(c-i)/2+i;i+11&&(e.e.b+=e.a)):(e.e.a+=t.a,e.e.b=y.Math.max(e.e.b,t.b),e.d.c.length>1&&(e.e.a+=e.a))}function yjn(e){var n,t,i,r;switch(r=e.i,n=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(e.g.b.o.a-i.a)/2;break;case 1:t.a=n.d.n.a+n.d.a.a;break;case 2:t.a=n.d.n.a+n.d.a.a-i.a;break;case 3:t.b=n.d.n.b+n.d.a.b}}function LBe(e,n,t,i,r){if(ii&&(e.a=i),e.br&&(e.b=r),e}function kjn(e){if(_(e,149))return YCn(u(e,149));if(_(e,229))return U6n(u(e,229));if(_(e,23))return ejn(u(e,23));throw I(new rn(Jce+Zh(new ws(D(O(pn,1),pe,1,5,[e])))))}function jjn(e,n,t,i,r){var c,o,f;for(c=!0,o=0;o>>r|t[o+i+1]<>>r,++o}return c}function bne(e,n,t,i){var r,c,o;if(n.k==(dn(),$i)){for(c=new En(Cn(ic(n).a.Kc(),new J));Un(c);)if(r=u(_n(c),17),o=r.c.i.k,o==$i&&e.c.a[r.c.i.c.p]==i&&e.c.a[n.c.p]==t)return!0}return!1}function Ejn(e,n){var t,i,r,c;return n&=63,t=e.h&Pa,n<22?(c=t>>>n,r=e.m>>n|t<<22-n,i=e.l>>n|e.m<<22-n):n<44?(c=0,r=t>>>n-22,i=e.m>>n-22|e.h<<44-n):(c=0,r=0,i=t>>>n-44),fu(i&ss,r&ss,c&Pa)}function FBe(e,n,t,i){var r;this.b=i,this.e=e==(M0(),Wy),r=n[t],this.d=H1(as,[ie,Yl],[177,25],16,[r.length,r.length],2),this.a=H1($n,[ie,nt],[48,25],15,[r.length,r.length],2),this.c=new Yee(n,t)}function Tjn(e){var n,t,i;for(e.k=new gQ((ae(),D(O(kr,1),Lc,61,0,[gc,tn,hn,On,un])).length,e.j.c.length),i=new A(e.j);i.a=t)return o3(e,n,i.p),!0;return!1}function _Be(e){var n;return e.Db&64?e_(e):(n=new Cs(Kce),!e.a||Qn(Qn((n.a+=' "',n),e.a),'"'),Qn(Zd(Qn(Zd(Qn(Zd(Qn(Zd((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}function BBe(e,n,t){var i,r,c,o,f;for(f=hu(e.e.Tg(),n),r=u(e.g,119),i=0,o=0;ot?jne(e,t,"start index"):n<0||n>t?jne(n,t,"end index"):D6("end index (%s) must not be less than start index (%s)",D(O(pn,1),pe,1,5,[le(n),le(e)]))}function KBe(e,n){var t,i,r,c;for(i=0,r=e.length;i0&&qBe(e,c,t));n.p=0}function Pe(e){var n;this.c=new Vt,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(n=u(df(gh),9),new Ws(n,u(Go(n,n.length),9),0)),this.g=e.f}function xjn(e){var n,t,i,r;for(n=Rh(Qn(new Cs("Predicates."),"and"),40),t=!0,r=new K4(e);r.b0?f[o-1]:V(Zl,uh,10,0,0,1),r=f[o],a=o=0?e.Bh(r):Sne(e,i);else throw I(new rn(o1+i.ne()+fy));else throw I(new rn(yUe+n+kUe));else no(e,t,i)}function wne(e){var n,t;if(t=null,n=!1,_(e,204)&&(n=!0,t=u(e,204).a),n||_(e,258)&&(n=!0,t=""+u(e,258).a),n||_(e,483)&&(n=!0,t=""+u(e,483).a),!n)throw I(new ED(Qce));return t}function zBe(e,n){var t,i;if(e.f){for(;n.Ob();)if(t=u(n.Pb(),72),i=t.ak(),_(i,99)&&u(i,18).Bb&xc&&(!e.e||i.Gj()!=T4||i.aj()!=0)&&t.dd()!=null)return n.Ub(),!0;return!1}else return n.Ob()}function UBe(e,n){var t,i;if(e.f){for(;n.Sb();)if(t=u(n.Ub(),72),i=t.ak(),_(i,99)&&u(i,18).Bb&xc&&(!e.e||i.Gj()!=T4||i.aj()!=0)&&t.dd()!=null)return n.Pb(),!0;return!1}else return n.Sb()}function gne(e,n,t){var i,r,c,o,f,l;for(l=hu(e.e.Tg(),n),i=0,f=e.i,r=u(e.g,119),o=0;o1&&(n.c[n.c.length]=c))}function $jn(e){var n,t,i,r;for(t=new Vt,pr(t,e.o),i=new aU;t.b!=0;)n=u(t.b==0?null:(vn(t.b!=0),Zs(t,t.a.a)),508),r=MVe(e,n,!0),r&&se(i.a,n);for(;i.a.c.length!=0;)n=u(vFe(i),508),MVe(e,n,!1)}function rh(){rh=U,Xhe=new c2(X6,0),ur=new c2("BOOLEAN",1),Ic=new c2("INT",2),p4=new c2("STRING",3),Zr=new c2("DOUBLE",4),ni=new c2("ENUM",5),mm=new c2("ENUMSET",6),Zf=new c2("OBJECT",7)}function S6(e,n){var t,i,r,c,o;i=y.Math.min(e.c,n.c),c=y.Math.min(e.d,n.d),r=y.Math.max(e.c+e.b,n.c+n.b),o=y.Math.max(e.d+e.a,n.d+n.a),r=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)dQ(this);this.b=n,this.a=null}function Njn(e,n){var t,i;n.a?uMn(e,n):(t=u(L$(e.b,n.b),57),t&&t==e.a[n.b.f]&&t.a&&t.a!=n.b.a&&t.c.Fc(n.b),i=u($$(e.b,n.b),57),i&&e.a[i.f]==n.b&&i.a&&i.a!=n.b.a&&n.b.c.Fc(i),j$(e.b,n.b))}function XBe(e,n){var t,i;if(t=u(Fr(e.b,n),124),u(u(Tt(e.r,n),21),84).dc()){t.n.b=0,t.n.c=0;return}t.n.b=e.C.b,t.n.c=e.C.c,e.A.Hc((Es(),_d))&&vqe(e,n),i=d9n(e,n),y_(e,n)==(_g(),k1)&&(i+=2*e.w),t.a.a=i}function YBe(e,n){var t,i;if(t=u(Fr(e.b,n),124),u(u(Tt(e.r,n),21),84).dc()){t.n.d=0,t.n.a=0;return}t.n.d=e.C.d,t.n.a=e.C.a,e.A.Hc((Es(),_d))&&yqe(e,n),i=b9n(e,n),y_(e,n)==(_g(),k1)&&(i+=2*e.w),t.a.b=i}function _jn(e,n){var t,i,r,c;for(c=new oe,i=new A(n);i.at.a&&(i.Hc((lw(),Fj))?r=(n.a-t.a)/2:i.Hc(Nj)&&(r=n.a-t.a)),n.b>t.b&&(i.Hc((lw(),Bj))?c=(n.b-t.b)/2:i.Hc(_j)&&(c=n.b-t.b)),rne(e,r,c)}function rRe(e,n,t,i,r,c,o,f,l,a,h,w,k){_(e.Cb,88)&&dw(ns(u(e.Cb,88)),4),iu(e,t),e.f=o,Yv(e,f),Jv(e,l),Xv(e,a),Qv(e,h),eh(e,w),Zv(e,k),Za(e,!0),Ya(e,r),e.ok(c),cd(e,n),i!=null&&(e.i=null,VM(e,i))}function cRe(e){var n,t;if(e.f){for(;e.n>0;){if(n=u(e.k.Xb(e.n-1),72),t=n.ak(),_(t,99)&&u(t,18).Bb&xc&&(!e.e||t.Gj()!=T4||t.aj()!=0)&&n.dd()!=null)return!0;--e.n}return!1}else return e.n>0}function jne(e,n,t){if(e<0)return D6(HVe,D(O(pn,1),pe,1,5,[t,le(e)]));if(n<0)throw I(new rn(VVe+n));return D6("%s (%s) must not be greater than size (%s)",D(O(pn,1),pe,1,5,[t,le(e),le(n)]))}function Ene(e,n,t,i,r,c){var o,f,l,a;if(o=i-t,o<7){F6n(n,t,i,c);return}if(l=t+r,f=i+r,a=l+(f-l>>1),Ene(n,e,l,a,-r,c),Ene(n,e,a,f,-r,c),c.ue(e[a-1],e[a])<=0){for(;t=0?e.sh(c,t):Zne(e,r,t);else throw I(new rn(o1+r.ne()+fy));else throw I(new rn(yUe+n+kUe));else io(e,i,r,t)}function uRe(e){var n,t,i,r;if(t=u(e,49).qh(),t)try{if(i=null,n=a3((Oh(),Fo),qqe(B6n(t))),n&&(r=n.rh(),r&&(i=r.Wk(Uln(t.e)))),i&&i!=e)return uRe(i)}catch(c){if(c=qt(c),!_(c,60))throw I(c)}return e}function au(e,n,t){var i,r,c,o;if(o=n==null?0:e.b.se(n),r=(i=e.a.get(o),i??new Array),r.length==0)e.a.set(o,r);else if(c=jFe(e,n,r),c)return c.ed(t);return zt(r,r.length,new ST(n,t)),++e.c,XC(e.b),null}function sRe(e,n){var t,i;return sM(e.a),_l(e.a,(UM(),dI),dI),_l(e.a,g4,g4),i=new Pi,mt(i,g4,(bS(),nV)),X(Te(n,(ow(),rV)))!==X((O7(),bI))&&mt(i,g4,ZH),mt(i,g4,eV),sCe(e.a,i),t=dP(e.a,n),t}function oRe(e){if(!e)return Gke(),yXe;var n=e.valueOf?e.valueOf():e;if(n!==e){var t=VK[typeof n];return t?t(n):wZ(typeof n)}else return e instanceof Array||e instanceof y.Array?new yz(e):new X9(e)}function fRe(e,n,t){var i,r,c;switch(c=e.o,i=u(Fr(e.p,t),244),r=i.i,r.b=ik(i),r.a=tk(i),r.b=y.Math.max(r.b,c.a),r.b>c.a&&!n&&(r.b=c.a),r.c=-(r.b-c.a)/2,t.g){case 1:r.d=-r.a;break;case 3:r.d=c.b}D_(i),$_(i)}function lRe(e,n,t){var i,r,c;switch(c=e.o,i=u(Fr(e.p,t),244),r=i.i,r.b=ik(i),r.a=tk(i),r.a=y.Math.max(r.a,c.b),r.a>c.b&&!n&&(r.a=c.b),r.d=-(r.a-c.b)/2,t.g){case 4:r.c=-r.b;break;case 2:r.c=c.a}D_(i),$_(i)}function Zjn(e,n){var t,i,r,c,o;if(!n.dc()){if(r=u(n.Xb(0),128),n.gc()==1){NKe(e,r,r,1,0,n);return}for(t=1;t0)try{r=$s(n,rr,vt)}catch(c){throw c=qt(c),_(c,127)?(i=c,I(new CM(i))):I(c)}return t=(!e.a&&(e.a=new lD(e)),e.a),r=0?u(K(t,r),56):null}function iEn(e,n){if(e<0)return D6(HVe,D(O(pn,1),pe,1,5,["index",le(e)]));if(n<0)throw I(new rn(VVe+n));return D6("%s (%s) must be less than size (%s)",D(O(pn,1),pe,1,5,["index",le(e),le(n)]))}function rEn(e){var n,t,i,r,c;if(e==null)return Au;for(c=new nd(vr,"[","]"),t=e,i=0,r=t.length;i0)for(o=e.c.d,f=e.d.d,r=al(_i(new je(f.a,f.b),o),1/(i+1)),c=new je(o.a,o.b),t=new A(e.a);t.a=0?e._g(t,!0,!0):_0(e,r,!0),153)),u(i,215).ol(n);else throw I(new rn(o1+n.ne()+fy))}function Pne(e){var n,t;return e>-0x800000000000&&e<0x800000000000?e==0?0:(n=e<0,n&&(e=-e),t=ci(y.Math.floor(y.Math.log(e)/.6931471805599453)),(!n||e!=y.Math.pow(2,t))&&++t,t):FLe(Su(e))}function pEn(e){var n,t,i,r,c,o,f;for(c=new fa,t=new A(e);t.a2&&f.e.b+f.j.b<=2&&(r=f,i=o),c.a.zc(r,c),r.q=i);return c}function mRe(e,n){var t,i,r;return i=new Ta(e),Yr(i,n),te(i,(re(),Dx),n),te(i,(be(),ei),(Hi(),Zc)),te(i,Il,(Hl(),TI)),F1(i,(dn(),fi)),t=new Rc,lc(t,i),Ei(t,(ae(),un)),r=new Rc,lc(r,i),Ei(r,hn),i}function vRe(e){switch(e.g){case 0:return new TD((M0(),Sj));case 1:return new $6e;case 2:return new K6e;default:throw I(new rn("No implementation is available for the crossing minimizer "+(e.f!=null?e.f:""+e.g)))}}function yRe(e,n){var t,i,r,c,o;for(e.c[n.p]=!0,se(e.a,n),o=new A(n.j);o.a=c)o.$b();else for(r=o.Kc(),i=0;i0?MU():o<0&&TRe(e,n,-o),!0):!1}function tk(e){var n,t,i,r,c,o,f;if(f=0,e.b==0){for(o=u_e(e,!0),n=0,i=o,r=0,c=i.length;r0&&(f+=t,++n);n>1&&(f+=e.c*(n-1))}else f=Zke(lLe(qC(Lt(sL(e.a),new IE),new OE)));return f>0?f+e.n.d+e.n.a:0}function ik(e){var n,t,i,r,c,o,f;if(f=0,e.b==0)f=Zke(lLe(qC(Lt(sL(e.a),new GO),new xE)));else{for(o=s_e(e,!0),n=0,i=o,r=0,c=i.length;r0&&(f+=t,++n);n>1&&(f+=e.c*(n-1))}return f>0?f+e.n.b+e.n.c:0}function CEn(e,n){var t,i,r,c;for(c=u(Fr(e.b,n),124),t=c.a,r=u(u(Tt(e.r,n),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.c&&(t.a=y.Math.max(t.a,dY(i.c)));if(t.a>0)switch(n.g){case 2:c.n.c=e.s;break;case 4:c.n.b=e.s}}function MEn(e,n){var t,i,r;return t=u(M(n,(jf(),U3)),19).a-u(M(e,U3),19).a,t==0?(i=_i(vc(u(M(e,(zh(),sj)),8)),u(M(e,My),8)),r=_i(vc(u(M(n,sj),8)),u(M(n,My),8)),gi(i.a*i.b,r.a*r.b)):t}function SEn(e,n){var t,i,r;return t=u(M(n,(B0(),hI)),19).a-u(M(e,hI),19).a,t==0?(i=_i(vc(u(M(e,(Ac(),xj)),8)),u(M(e,Zy),8)),r=_i(vc(u(M(n,xj),8)),u(M(n,Zy),8)),gi(i.a*i.b,r.a*r.b)):t}function CRe(e){var n,t;return t=new Ph,t.a+="e_",n=F4n(e),n!=null&&(t.a+=""+n),e.c&&e.d&&(Qn((t.a+=" ",t),FS(e.c)),Qn(Pc((t.a+="[",t),e.c.i),"]"),Qn((t.a+=tR,t),FS(e.d)),Qn(Pc((t.a+="[",t),e.d.i),"]")),t.a}function MRe(e){switch(e.g){case 0:return new F6e;case 1:return new N6e;case 2:return new L6e;case 3:return new _6e;default:throw I(new rn("No implementation is available for the layout phase "+(e.f!=null?e.f:""+e.g)))}}function xne(e,n,t,i,r){var c;switch(c=0,r.g){case 1:c=y.Math.max(0,n.b+e.b-(t.b+i));break;case 3:c=y.Math.max(0,-e.b-i);break;case 2:c=y.Math.max(0,-e.a-i);break;case 4:c=y.Math.max(0,n.a+e.a-(t.a+i))}return c}function PEn(e,n,t){var i,r,c,o,f;if(t)for(r=t.a.length,i=new V1(r),f=(i.b-i.a)*i.c<0?(Dh(),x1):new Nh(i);f.Ob();)o=u(f.Pb(),19),c=vv(t,o.a),Gce in c.a||hK in c.a?BSn(e,c,n):GOn(e,c,n),h1n(u(kn(e.b,e3(c)),79))}function Ine(e){var n,t;switch(e.b){case-1:return!0;case 0:return t=e.t,t>1||t==-1?(e.b=-1,!0):(n=vo(e),n&&(Er(),n.Cj()==jWe)?(e.b=-1,!0):(e.b=1,!1));default:case 1:return!1}}function AEn(e,n){var t,i,r,c,o;for(i=(!n.s&&(n.s=new fe(Du,n,21,17)),n.s),c=null,r=0,o=i.i;r=0&&i=0?e._g(t,!0,!0):_0(e,r,!0),153)),u(i,215).ll(n);throw I(new rn(o1+n.ne()+iK))}function $En(){UU();var e;return scn?u(a3((Oh(),Fo),Co),1939):(st(Ed,new J4e),wIn(),e=u(_(Vc((Oh(),Fo),Co),547)?Vc(Fo,Co):new hAe,547),scn=!0,aDn(e),gDn(e),jt((zU(),Pde),e,new b4e),qr(Fo,Co,e),e)}function LEn(e,n){var t,i,r,c;e.j=-1,gs(e.e)?(t=e.i,c=e.i!=0,i7(e,n),i=new pa(e.e,3,e.c,null,n,t,c),r=n.Qk(e.e,e.c,null),r=rBe(e,n,r),r?(r.Ei(i),r.Fi()):yt(e.e,i)):(i7(e,n),r=n.Qk(e.e,e.c,null),r&&r.Fi())}function zS(e,n){var t,i,r;if(r=0,i=n[0],i>=e.length)return-1;for(t=(Gn(i,e.length),e.charCodeAt(i));t>=48&&t<=57&&(r=r*10+(t-48),++i,!(i>=e.length));)t=(Gn(i,e.length),e.charCodeAt(i));return i>n[0]?n[0]=i:r=-1,r}function FEn(e){var n,t,i,r,c;return r=u(e.a,19).a,c=u(e.b,19).a,t=r,i=c,n=y.Math.max(y.Math.abs(r),y.Math.abs(c)),r<=0&&r==c?(t=0,i=c-1):r==-n&&c!=n?(t=c,i=r,c>=0&&++t):(t=-c,i=r),new Gi(le(t),le(i))}function NEn(e,n,t,i){var r,c,o,f,l,a;for(r=0;r=0&&a>=0&&l=e.i)throw I(new Rr(bK+n+yd+e.i));if(t>=e.i)throw I(new Rr(wK+t+yd+e.i));return i=e.g[t],n!=t&&(n>16),n=i>>16&16,t=16-n,e=e>>n,i=e-256,n=i>>16&8,t+=n,e<<=n,i=e-jw,n=i>>16&4,t+=n,e<<=n,i=e-ml,n=i>>16&2,t+=n,e<<=n,i=e>>14,n=i&~(i>>1),t+2-n)}function BEn(e){m2();var n,t,i,r;for(GA=new oe,fq=new Ln,oq=new oe,n=(!e.a&&(e.a=new fe(Xt,e,10,11)),e.a),pOn(n),r=new jn(n);r.e!=r.i.gc();)i=u(Sn(r),33),tc(GA,i,0)==-1&&(t=new oe,se(oq,t),_Ne(i,t));return oq}function REn(e,n,t){var i,r,c,o;e.a=t.b.d,_(n,352)?(r=Xg(u(n,79),!1,!1),c=Z7(r),i=new f9e(e),Yi(c,i),bk(c,r),n.We((ht(),$p))!=null&&Yi(u(n.We($p),74),i)):(o=u(n,470),o.Hg(o.Dg()+e.a.a),o.Ig(o.Eg()+e.a.b))}function PRe(e,n){var t,i,r,c,o,f,l,a;for(a=ne(he(M(n,(be(),qy)))),l=e[0].n.a+e[0].o.a+e[0].d.c+a,f=1;f=0?t:(f=V5(_i(new je(o.c+o.b/2,o.d+o.a/2),new je(c.c+c.b/2,c.d+c.a/2))),-(Yqe(c,o)-1)*f)}function qEn(e,n,t){var i;ti(new We(null,(!t.a&&(t.a=new fe(Gt,t,6,6)),new Ye(t.a,16))),new hTe(e,n)),ti(new We(null,(!t.n&&(t.n=new fe(uc,t,1,7)),new Ye(t.n,16))),new dTe(e,n)),i=u(Te(t,(ht(),$p)),74),i&&FJ(i,e,n)}function _0(e,n,t){var i,r,c;if(c=Zg((Ku(),Ji),e.Tg(),n),c)return Er(),u(c,66).Oj()||(c=k2(Vr(Ji,c))),r=(i=e.Yg(c),u(i>=0?e._g(i,!0,!0):_0(e,c,!0),153)),u(r,215).hl(n,t);throw I(new rn(o1+n.ne()+iK))}function Dne(e,n,t,i){var r,c,o,f,l;if(r=e.d[n],r){if(c=r.g,l=r.i,i!=null){for(f=0;f=t&&(i=n,a=(l.c+l.a)/2,o=a-t,l.c<=a-t&&(r=new K$(l.c,o),qb(e,i++,r)),f=a+t,f<=l.a&&(c=new K$(f,l.a),Wb(i,e.c.length),f5(e.c,i,c)))}function $ne(e){var n;if(!e.c&&e.g==null)e.d=e.si(e.f),Bn(e,e.d),n=e.d;else{if(e.g==null)return!0;if(e.i==0)return!1;n=u(e.g[e.i-1],47)}return n==e.b&&null.km>=null.jm()?(XS(e),$ne(e)):n.Ob()}function zEn(e,n,t){var i,r,c,o,f;if(f=t,!f&&(f=aY(new qm,0)),In(f,GGe,1),YHe(e.c,n),o=uIn(e.a,n),o.gc()==1)OHe(u(o.Xb(0),37),f);else for(c=1/o.gc(),r=o.Kc();r.Ob();)i=u(r.Pb(),37),OHe(i,zc(f,c));ean(e.a,o,n),uSn(n),Tn(f)}function IRe(e){if(this.a=e,e.c.i.k==(dn(),fi))this.c=e.c,this.d=u(M(e.c.i,(re(),Tc)),61);else if(e.d.i.k==fi)this.c=e.d,this.d=u(M(e.d.i,(re(),Tc)),61);else throw I(new rn("Edge "+e+" is not an external edge."))}function ORe(e,n){var t,i,r;r=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,3,r,e.b)),n?n!=e&&(iu(e,n.zb),kF(e,n.d),t=(i=n.c,i??n.zb),EF(e,t==null||Re(t,n.zb)?null:t)):(iu(e,null),kF(e,0),EF(e,null))}function DRe(e){var n,t;if(e.f){for(;e.n=o)throw I(new Kb(n,o));return r=t[n],o==1?i=null:(i=V(GV,yK,415,o-1,0,1),Kc(t,0,i,0,n),c=o-n-1,c>0&&Kc(t,n+1,i,n,c)),n3(e,i),tRe(e,n,r),r}function B2(){B2=U,Mm=u(K(Q((LU(),Oc).qb),6),34),Cm=u(K(Q(Oc.qb),3),34),QV=u(K(Q(Oc.qb),4),34),JV=u(K(Q(Oc.qb),5),18),RS(Mm),RS(Cm),RS(QV),RS(JV),acn=new ws(D(O(Du,1),ap,170,0,[Mm,Cm]))}function NRe(e,n){var t;this.d=new z4,this.b=n,this.e=new Kr(n.qf()),t=e.u.Hc((Yu(),Wj)),e.u.Hc(La)?e.D?this.a=t&&!n.If():this.a=!0:e.u.Hc(E1)?t?this.a=!(n.zf().Kc().Ob()||n.Bf().Kc().Ob()):this.a=!1:this.a=!1}function _Re(e,n){var t,i,r,c;for(t=e.o.a,c=u(u(Tt(e.r,n),21),84).Kc();c.Ob();)r=u(c.Pb(),111),r.e.a=(i=r.b,i.Xe((ht(),fs))?i.Hf()==(ae(),un)?-i.rf().a-ne(he(i.We(fs))):t+ne(he(i.We(fs))):i.Hf()==(ae(),un)?-i.rf().a:t)}function BRe(e,n){var t,i,r,c;t=u(M(e,(be(),Bs)),103),c=u(Te(n,l4),61),r=u(M(e,ei),98),r!=(Hi(),el)&&r!=j1?c==(ae(),gc)&&(c=Ote(n,t),c==gc&&(c=O2(t))):(i=IHe(n),i>0?c=O2(t):c=N7(O2(t))),_r(n,l4,c)}function YEn(e,n){var t,i,r,c,o;for(o=e.j,n.a!=n.b&&Oi(o,new U2e),r=o.c.length/2|0,i=0;i0&&ak(e,t,n),c):i.a!=null?(ak(e,n,t),-1):r.a!=null?(ak(e,t,n),1):0}function RRe(e,n){var t,i,r,c;e.ej()?(t=e.Vi(),c=e.fj(),++e.j,e.Hi(t,e.oi(t,n)),i=e.Zi(3,null,n,t,c),e.bj()?(r=e.cj(n,null),r?(r.Ei(i),r.Fi()):e.$i(i)):e.$i(i)):(tAe(e,n),e.bj()&&(r=e.cj(n,null),r&&r.Fi()))}function US(e,n){var t,i,r,c,o;for(o=hu(e.e.Tg(),n),r=new KE,t=u(e.g,119),c=e.i;--c>=0;)i=t[c],o.rl(i.ak())&&Bn(r,i);!AVe(e,r)&&gs(e.e)&&Km(e,n.$j()?Hh(e,6,n,(He(),Sr),null,-1,!1):Hh(e,n.Kj()?2:1,n,null,null,-1,!1))}function f3(){f3=U;var e,n;for(im=V(dp,ie,91,32,0,1),Ey=V(dp,ie,91,32,0,1),e=1,n=0;n<=18;n++)im[n]=q7(e),Ey[n]=q7(aa(e,n)),e=ir(e,5);for(;no)||n.q&&(i=n.C,o=i.c.c.a-i.o.a/2,r=i.n.a-t,r>o)))}function ZEn(e,n){var t;In(n,"Partition preprocessing",1),t=u(As(Lt(ac(Lt(new We(null,new Ye(e.a,16)),new ype),new kpe),new jpe),Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[(qf(),_s)]))),15),ti(t.Oc(),new Epe),Tn(n)}function KRe(e){FL();var n,t,i,r,c,o,f;for(t=new X1,r=new A(e.e.b);r.a1?e.e*=ne(e.a):e.f/=ne(e.a),$5n(e),Byn(e),kSn(e),te(e.b,(y6(),VA),e.g)}function GRe(e,n,t){var i,r,c,o,f,l;for(i=0,l=t,n||(i=t*(e.c.length-1),l*=-1),c=new A(e);c.a=0?(n||(n=new Z4,i>0&&Lr(n,e.substr(0,i))),n.a+="\\",hv(n,t&si)):n&&hv(n,t&si);return n?n.a:e}function oTn(e){var n;if(!e.a)throw I(new ec("IDataType class expected for layout option "+e.f));if(n=gmn(e.a),n==null)throw I(new ec("Couldn't create new instance of property '"+e.f+"'. "+Hze+(la(iE),iE.k)+Fce));return u(n,414)}function a_(e){var n,t,i,r,c;return c=e.eh(),c&&c.kh()&&(r=Yh(e,c),r!=c)?(t=e.Vg(),i=(n=e.Vg(),n>=0?e.Qg(null):e.eh().ih(e,-1-n,null,null)),e.Rg(u(r,49),t),i&&i.Fi(),e.Lg()&&e.Mg()&&t>-1&&yt(e,new Di(e,9,t,c,r)),r):c}function YRe(e){var n,t,i,r,c,o,f,l;for(o=0,c=e.f.e,i=0;i>5,r>=e.d)return e.e<0;if(t=e.a[r],n=1<<(n&31),e.e<0){if(i=wLe(e),r>16)),15).Xc(c),f0&&(!(Lh(e.a.c)&&n.n.d)&&!(nv(e.a.c)&&n.n.b)&&(n.g.d+=y.Math.max(0,i/2-.5)),!(Lh(e.a.c)&&n.n.a)&&!(nv(e.a.c)&&n.n.c)&&(n.g.a-=i-1))}function ZRe(e){var n,t,i,r,c;if(r=new oe,c=zqe(e,r),n=u(M(e,(re(),Qu)),10),n)for(i=new A(n.j);i.a>n,c=e.m>>n|t<<22-n,r=e.l>>n|e.m<<22-n):n<44?(o=i?Pa:0,c=t>>n-22,r=e.m>>n-22|t<<44-n):(o=i?Pa:0,c=i?ss:0,r=t>>n-44),fu(r&ss,c&ss,o&Pa)}function h_(e){var n,t,i,r,c,o;for(this.c=new oe,this.d=e,i=Jt,r=Jt,n=hi,t=hi,o=ct(e,0);o.b!=o.d.c;)c=u(rt(o),8),i=y.Math.min(i,c.a),r=y.Math.min(r,c.b),n=y.Math.max(n,c.a),t=y.Math.max(t,c.b);this.a=new Xs(i,r,n-i,t-r)}function tKe(e,n){var t,i,r,c,o,f;for(c=new A(e.b);c.a0&&_(n,42)&&(e.a.qj(),a=u(n,42),l=a.cd(),c=l==null?0:Bt(l),o=MX(e.a,c),t=e.a.d[o],t)){for(i=u(t.g,367),h=t.i,f=0;f=2)for(t=r.Kc(),n=he(t.Pb());t.Ob();)c=n,n=he(t.Pb()),i=y.Math.min(i,(nn(n),n-(nn(c),c)));return i}function vTn(e,n){var t,i,r,c,o;i=new Vt,ri(i,n,i.c.b,i.c);do for(t=(vn(i.b!=0),u(Zs(i,i.a.a),86)),e.b[t.g]=1,c=ct(t.d,0);c.b!=c.d.c;)r=u(rt(c),188),o=r.c,e.b[o.g]==1?ut(e.a,r):e.b[o.g]==2?e.b[o.g]=1:ri(i,o,i.c.b,i.c);while(i.b!=0)}function yTn(e,n){var t,i,r;if(X(n)===X(Nn(e)))return!0;if(!_(n,15)||(i=u(n,15),r=e.gc(),r!=i.gc()))return!1;if(_(i,54)){for(t=0;t0&&(r=t),o=new A(e.f.e);o.a0?(n-=1,t-=1):i>=0&&r<0?(n+=1,t+=1):i>0&&r>=0?(n-=1,t+=1):(n+=1,t-=1),new Gi(le(n),le(t))}function _Tn(e,n){return e.cn.c?1:e.bn.b?1:e.a!=n.a?Bt(e.a)-Bt(n.a):e.d==(Z5(),Yy)&&n.d==Xy?-1:e.d==Xy&&n.d==Yy?1:0}function fKe(e,n){var t,i,r,c,o;return c=n.a,c.c.i==n.b?o=c.d:o=c.c,c.c.i==n.b?i=c.c:i=c.d,r=hyn(e.a,o,i),r>0&&r0):r<0&&-r0):!1}function BTn(e,n,t,i){var r,c,o,f,l,a,h,w;for(r=(n-e.d)/e.c.c.length,c=0,e.a+=t,e.d=n,w=new A(e.c);w.a>24;return o}function KTn(e){if(e.pe()){var n=e.c;n.qe()?e.o="["+n.n:n.pe()?e.o="["+n.ne():e.o="[L"+n.ne()+";",e.b=n.me()+"[]",e.k=n.oe()+"[]";return}var t=e.j,i=e.d;i=i.split("/"),e.o=gN(".",[t,gN("$",i)]),e.b=gN(".",[t,gN(".",i)]),e.k=i[i.length-1]}function qTn(e,n){var t,i,r,c,o;for(o=null,c=new A(e.e.a);c.a=0;n-=2)for(t=0;t<=n;t+=2)(e.b[t]>e.b[t+2]||e.b[t]===e.b[t+2]&&e.b[t+1]>e.b[t+3])&&(i=e.b[t+2],e.b[t+2]=e.b[t],e.b[t]=i,i=e.b[t+3],e.b[t+3]=e.b[t+1],e.b[t+1]=i);e.c=!0}}function lKe(e,n){var t,i,r,c,o,f,l,a;for(o=n==1?mq:pq,c=o.a.ec().Kc();c.Ob();)for(r=u(c.Pb(),103),l=u(Tt(e.f.c,r),21).Kc();l.Ob();)switch(f=u(l.Pb(),46),i=u(f.b,81),a=u(f.a,189),t=a.c,r.g){case 2:case 1:i.g.d+=t;break;case 4:case 3:i.g.c+=t}}function GTn(e,n){var t,i,r,c,o,f,l,a,h;for(a=-1,h=0,o=e,f=0,l=o.length;f0&&++h;++a}return h}function Jo(e){var n,t;return t=new Cs(xh(e.gm)),t.a+="@",Qn(t,(n=Bt(e)>>>0,n.toString(16))),e.kh()?(t.a+=" (eProxyURI: ",Pc(t,e.qh()),e.$g()&&(t.a+=" eClass: ",Pc(t,e.$g())),t.a+=")"):e.$g()&&(t.a+=" (eClass: ",Pc(t,e.$g()),t.a+=")"),t.a}function I6(e){var n,t,i,r;if(e.e)throw I(new ec((la(QK),NB+QK.k+_B)));for(e.d==(Ar(),ea)&&wP(e,Ao),t=new A(e.a.a);t.a>24}return t}function WTn(e,n,t){var i,r,c;if(r=u(Fr(e.i,n),306),!r)if(r=new a$e(e.d,n,t),d2(e.i,n,r),iee(n))l1n(e.a,n.c,n.b,r);else switch(c=Ljn(n),i=u(Fr(e.p,c),244),c.g){case 1:case 3:r.j=!0,jD(i,n.b,r);break;case 4:case 2:r.k=!0,jD(i,n.c,r)}return r}function XTn(e,n,t,i){var r,c,o,f,l,a;if(f=new KE,l=hu(e.e.Tg(),n),r=u(e.g,119),Er(),u(n,66).Oj())for(o=0;o=0)return r;for(c=1,f=new A(n.j);f.a0&&n.ue((Qe(r-1,e.c.length),u(e.c[r-1],10)),c)>0;)Qs(e,r,(Qe(r-1,e.c.length),u(e.c[r-1],10))),--r;Qe(r,e.c.length),e.c[r]=c}t.a=new Ln,t.b=new Ln}function YTn(e,n,t){var i,r,c,o,f,l,a,h;for(h=(i=u(n.e&&n.e(),9),new Ws(i,u(Go(i,i.length),9),0)),l=pw(t,"[\\[\\]\\s,]+"),c=l,o=0,f=c.length;o0&&(!(Lh(e.a.c)&&n.n.d)&&!(nv(e.a.c)&&n.n.b)&&(n.g.d-=y.Math.max(0,i/2-.5)),!(Lh(e.a.c)&&n.n.a)&&!(nv(e.a.c)&&n.n.c)&&(n.g.a+=y.Math.max(0,i-1)))}function wKe(e,n,t){var i,r;if((e.c-e.b&e.a.length-1)==2)n==(ae(),tn)||n==hn?($M(u(l6(e),15),(Ds(),na)),$M(u(l6(e),15),y1)):($M(u(l6(e),15),(Ds(),y1)),$M(u(l6(e),15),na));else for(r=new z5(e);r.a!=r.b;)i=u(oS(r),15),$M(i,t)}function JTn(e,n){var t,i,r,c,o,f,l;for(r=uv(new Uz(e)),f=new zi(r,r.c.length),c=uv(new Uz(n)),l=new zi(c,c.c.length),o=null;f.b>0&&l.b>0&&(t=(vn(f.b>0),u(f.a.Xb(f.c=--f.b),33)),i=(vn(l.b>0),u(l.a.Xb(l.c=--l.b),33)),t==i);)o=t;return o}function cs(e,n){var t,i,r,c,o,f;return c=e.a*DB+e.b*1502,f=e.b*DB+11,t=y.Math.floor(f*Ak),c+=t,f-=t*bie,c%=bie,e.a=c,e.b=f,n<=24?y.Math.floor(e.a*ese[n]):(r=e.a*(1<=2147483648&&(i-=AB),i)}function gKe(e,n,t){var i,r,c,o;Rxe(e,n)>Rxe(e,t)?(i=dc(t,(ae(),hn)),e.d=i.dc()?0:z$(u(i.Xb(0),11)),o=dc(n,un),e.b=o.dc()?0:z$(u(o.Xb(0),11))):(r=dc(t,(ae(),un)),e.d=r.dc()?0:z$(u(r.Xb(0),11)),c=dc(n,hn),e.b=c.dc()?0:z$(u(c.Xb(0),11)))}function pKe(e){var n,t,i,r,c,o,f;if(e&&(n=e.Hh(Co),n&&(o=Vn(vf((!n.b&&(n.b=new ps((Ke(),jr),Cc,n)),n.b),"conversionDelegates")),o!=null))){for(f=new oe,i=pw(o,"\\w+"),r=0,c=i.length;re.c));o++)r.a>=e.s&&(c<0&&(c=o),f=o);return l=(e.s+e.c)/2,c>=0&&(i=LSn(e,n,c,f),l=Van((Qe(i,n.c.length),u(n.c[i],329))),GEn(n,i,t)),l}function w_(){w_=U,Utn=new Tr((ht(),vm),1.3),bhe=b1e,khe=new r0(15),ein=new Tr(Ld,khe),tin=new Tr(Fd,15),Wtn=MI,Qtn=$d,Jtn=Fp,Ztn=v1,Ytn=Lp,mhe=Hj,nin=Yw,yhe=(Hne(),Vtn),phe=qtn,vhe=Htn,jhe=Gtn,whe=Ktn,ghe=SI,Xtn=g1e,Oj=Rtn,dhe=Btn,Ehe=ztn}function Rn(e,n,t){var i,r,c,o,f,l,a;for(o=(c=new lz,c),xJ(o,(nn(n),n)),a=(!o.b&&(o.b=new ps((Ke(),jr),Cc,o)),o.b),l=1;l0&&Pxn(this,r)}function Yne(e,n,t,i,r,c){var o,f,l;if(!r[n.b]){for(r[n.b]=!0,o=i,!o&&(o=new wM),se(o.e,n),l=c[n.b].Kc();l.Ob();)f=u(l.Pb(),282),!(f.d==t||f.c==t)&&(f.c!=n&&Yne(e,f.c,n,o,r,c),f.d!=n&&Yne(e,f.d,n,o,r,c),se(o.c,f),wi(o.d,f.b));return o}return null}function nCn(e){var n,t,i,r,c,o,f;for(n=0,r=new A(e.e);r.a=2}function tCn(e,n){var t,i,r,c;for(In(n,"Self-Loop pre-processing",1),i=new A(e.a);i.a1||(n=Ft(uf,D(O(Dr,1),ce,93,0,[$a,sf])),j7(eM(n,e))>1)||(i=Ft(ff,D(O(Dr,1),ce,93,0,[ta,Io])),j7(eM(i,e))>1))}function cCn(e,n){var t,i,r;return t=n.Hh(e.a),t&&(r=Vn(vf((!t.b&&(t.b=new ps((Ke(),jr),Cc,t)),t.b),"affiliation")),r!=null)?(i=tC(r,Pu(35)),i==-1?tN(e,_5(e,xs(n.Hj())),r):i==0?tN(e,null,r.substr(1)):tN(e,r.substr(0,i),r.substr(i+1))):null}function uCn(e){var n,t,i;try{return e==null?Au:rc(e)}catch(r){if(r=qt(r),_(r,102))return n=r,i=xh(is(e))+"@"+(t=($l(),fee(e)>>>0),t.toString(16)),Wyn(U4n(),(Jm(),"Exception during lenientFormat for "+i),n),"<"+i+" threw "+xh(n.gm)+">";throw I(r)}}function yKe(e){switch(e.g){case 0:return new S6e;case 1:return new j6e;case 2:return new jEe;case 3:return new Tme;case 4:return new HMe;case 5:return new P6e;default:throw I(new rn("No implementation is available for the layerer "+(e.f!=null?e.f:""+e.g)))}}function Qne(e,n,t){var i,r,c;for(c=new A(e.t);c.a0&&(i.b.n-=i.c,i.b.n<=0&&i.b.u>0&&ut(n,i.b));for(r=new A(e.i);r.a0&&(i.a.u-=i.c,i.a.u<=0&&i.a.n>0&&ut(t,i.a))}function XS(e){var n,t,i,r,c;if(e.g==null&&(e.d=e.si(e.f),Bn(e,e.d),e.c))return c=e.f,c;if(n=u(e.g[e.i-1],47),r=n.Pb(),e.e=n,t=e.si(r),t.Ob())e.d=t,Bn(e,t);else for(e.d=null;!n.Ob()&&(zt(e.g,--e.i,null),e.i!=0);)i=u(e.g[e.i-1],47),n=i;return r}function sCn(e,n){var t,i,r,c,o,f;if(i=n,r=i.ak(),Ma(e.e,r)){if(r.hi()&&aM(e,r,i.dd()))return!1}else for(f=hu(e.e.Tg(),r),t=u(e.g,119),c=0;c1||t>1)return 2;return n+t==1?2:0}function jKe(e,n,t){var i,r,c,o,f;for(In(t,"ELK Force",1),ke(ye(Te(n,(jf(),Hse))))||JC((i=new e8((Db(),new Ab(n))),i)),f=JLe(n),O8n(f),a5n(e,u(M(f,qse),424)),o=aHe(e.a,f),c=o.Kc();c.Ob();)r=u(c.Pb(),231),USn(e.b,r,zc(t,1/o.gc()));f=TVe(o),kVe(f),Tn(t)}function bCn(e,n){var t,i,r,c,o;if(In(n,"Breaking Point Processor",1),$In(e),ke(ye(M(e,(be(),Yle))))){for(r=new A(e.b);r.a=0?e._g(i,!0,!0):_0(e,c,!0),153)),u(r,215).ml(n,t)}else throw I(new rn(o1+n.ne()+fy))}function mCn(e,n){var t,i,r,c,o;for(t=new oe,r=ac(new We(null,new Ye(e,16)),new pve),c=ac(new We(null,new Ye(e,16)),new mve),o=Gvn(uvn(qC(QCn(D(O(SDn,1),pe,833,0,[r,c])),new vve))),i=1;i=2*n&&se(t,new K$(o[i-1]+n,o[i]-n));return t}function vCn(e,n,t){In(t,"Eades radial",1),t.n&&n&&Uo(t,Wo(n),(js(),Hs)),e.d=u(Te(n,(O5(),t9)),33),e.c=ne(he(Te(n,(ow(),gI)))),e.e=CN(u(Te(n,Ij),293)),e.a=J6n(u(Te(n,ehe),426)),e.b=y7n(u(Te(n,Zae),340)),e7n(e),t.n&&n&&Uo(t,Wo(n),(js(),Hs))}function yCn(e,n,t){var i,r,c,o,f,l,a,h;if(t)for(c=t.a.length,i=new V1(c),f=(i.b-i.a)*i.c<0?(Dh(),x1):new Nh(i);f.Ob();)o=u(f.Pb(),19),r=vv(t,o.a),r&&(l=mmn(e,(a=(Jd(),h=new bU,h),n&&ete(a,n),a),r),r6(l,ba(r,Sl)),qS(r,l),Tne(r,l),BF(e,r,l))}function QS(e){var n,t,i,r,c,o;if(!e.j){if(o=new t4e,n=j9,c=n.a.zc(e,n),c==null){for(i=new jn(Wr(e));i.e!=i.i.gc();)t=u(Sn(i),26),r=QS(t),Yt(o,r),Bn(o,t);n.a.Bc(e)!=null}iw(o),e.j=new mg((u(K(Q((Kh(),Je).o),11),18),o.i),o.g),ns(e).b&=-33}return e.j}function kCn(e){var n,t,i,r;if(e==null)return null;if(i=Wc(e,!0),r=Yk.length,Re(i.substr(i.length-r,r),Yk)){if(t=i.length,t==4){if(n=(Gn(0,i.length),i.charCodeAt(0)),n==43)return Wde;if(n==45)return Pcn}else if(t==3)return Wde}return new iU(i)}function jCn(e){var n,t,i;return t=e.l,t&t-1||(i=e.m,i&i-1)||(n=e.h,n&n-1)||n==0&&i==0&&t==0?-1:n==0&&i==0&&t!=0?EJ(t):n==0&&i!=0&&t==0?EJ(i)+22:n!=0&&i==0&&t==0?EJ(n)+44:-1}function ECn(e,n){var t,i,r,c,o;for(In(n,"Edge joining",1),t=ke(ye(M(e,(be(),EH)))),r=new A(e.b);r.a1)for(r=new A(e.a);r.a0),c.a.Xb(c.c=--c.b),Rb(c,r),vn(c.b3&&ql(e,0,n-3))}function SCn(e){var n,t,i,r;return X(M(e,(be(),Kw)))===X((ka(),ph))?!e.e&&X(M(e,yj))!==X((Rv(),dj)):(i=u(M(e,aH),292),r=ke(ye(M(e,hH)))||X(M(e,By))===X((P2(),hj)),n=u(M(e,dle),19).a,t=e.a.c.length,!r&&i!=(Rv(),dj)&&(n==0||n>t))}function PCn(e){var n,t;for(t=0;t0);t++);if(t>0&&t0);n++);return n>0&&t>16!=6&&n){if(i3(e,n))throw I(new rn(ly+qRe(e)));i=null,e.Cb&&(i=(t=e.Db>>16,t>=0?Mee(e,i):e.Cb.ih(e,-1-t,null,i))),n&&(i=$2(n,e,6,i)),i=TX(e,n,i),i&&i.Fi()}else e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,6,n,n))}function ete(e,n){var t,i;if(n!=e.Cb||e.Db>>16!=9&&n){if(i3(e,n))throw I(new rn(ly+Tqe(e)));i=null,e.Cb&&(i=(t=e.Db>>16,t>=0?Pee(e,i):e.Cb.ih(e,-1-t,null,i))),n&&(i=$2(n,e,9,i)),i=CX(e,n,i),i&&i.Fi()}else e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,9,n,n))}function p_(e,n){var t,i;if(n!=e.Cb||e.Db>>16!=3&&n){if(i3(e,n))throw I(new rn(ly+EHe(e)));i=null,e.Cb&&(i=(t=e.Db>>16,t>=0?xee(e,i):e.Cb.ih(e,-1-t,null,i))),n&&(i=$2(n,e,12,i)),i=EX(e,n,i),i&&i.Fi()}else e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,3,n,n))}function h3(e){var n,t,i,r,c;if(i=vo(e),c=e.j,c==null&&i)return e.$j()?null:i.zj();if(_(i,148)){if(t=i.Aj(),t&&(r=t.Nh(),r!=e.i)){if(n=u(i,148),n.Ej())try{e.g=r.Kh(n,c)}catch(o){if(o=qt(o),_(o,78))e.g=null;else throw I(o)}e.i=r}return e.g}return null}function CKe(e){var n;return n=new oe,se(n,new i2(new je(e.c,e.d),new je(e.c+e.b,e.d))),se(n,new i2(new je(e.c,e.d),new je(e.c,e.d+e.a))),se(n,new i2(new je(e.c+e.b,e.d+e.a),new je(e.c+e.b,e.d))),se(n,new i2(new je(e.c+e.b,e.d+e.a),new je(e.c,e.d+e.a))),n}function MKe(e,n,t,i){var r,c,o;if(o=_ee(n,t),i.c[i.c.length]=n,e.j[o.p]==-1||e.j[o.p]==2||e.a[n.p])return i;for(e.j[o.p]=-1,c=new En(Cn(ja(o).a.Kc(),new J));Un(c);)if(r=u(_n(c),17),!(!(!gr(r)&&!(!gr(r)&&r.c.i.c==r.d.i.c))||r==n))return MKe(e,r,o,i);return i}function ACn(e,n,t){var i,r,c;for(c=n.a.ec().Kc();c.Ob();)r=u(c.Pb(),79),i=u(kn(e.b,r),266),!i&&(Ut(Vl(r))==Ut(Jh(r))?VMn(e,r,t):Vl(r)==Ut(Jh(r))?kn(e.c,r)==null&&kn(e.b,Jh(r))!=null&&cVe(e,r,t,!1):kn(e.d,r)==null&&kn(e.b,Vl(r))!=null&&cVe(e,r,t,!0))}function xCn(e,n){var t,i,r,c,o,f,l;for(r=e.Kc();r.Ob();)for(i=u(r.Pb(),10),f=new Rc,lc(f,i),Ei(f,(ae(),hn)),te(f,(re(),$x),(cn(),!0)),o=n.Kc();o.Ob();)c=u(o.Pb(),10),l=new Rc,lc(l,c),Ei(l,un),te(l,$x,!0),t=new w0,te(t,$x,!0),sr(t,f),Ki(t,l)}function ICn(e,n,t,i){var r,c,o,f;r=kNe(e,n,t),c=kNe(e,t,n),o=u(kn(e.c,n),112),f=u(kn(e.c,t),112),ri.b.g&&(c.c[c.c.length]=i);return c}function d3(){d3=U,Op=new y8("CANDIDATE_POSITION_LAST_PLACED_RIGHT",0),pm=new y8("CANDIDATE_POSITION_LAST_PLACED_BELOW",1),r9=new y8("CANDIDATE_POSITION_WHOLE_DRAWING_RIGHT",2),i9=new y8("CANDIDATE_POSITION_WHOLE_DRAWING_BELOW",3),c9=new y8("WHOLE_DRAWING",4)}function OCn(e,n){if(_(n,239))return o6n(e,u(n,33));if(_(n,186))return k6n(e,u(n,118));if(_(n,354))return $gn(e,u(n,137));if(_(n,352))return rAn(e,u(n,79));if(n)return null;throw I(new rn(Jce+Zh(new ws(D(O(pn,1),pe,1,5,[n])))))}function DCn(e){var n,t,i,r,c,o,f;for(c=new Vt,r=new A(e.d.a);r.a1)for(n=u0((t=new B1,++e.b,t),e.d),f=ct(c,0);f.b!=f.d.c;)o=u(rt(f),121),Zo(Ho(qo(Vo(Ko(new ho,1),0),n),o))}function nte(e,n){var t,i;if(n!=e.Cb||e.Db>>16!=11&&n){if(i3(e,n))throw I(new rn(ly+vte(e)));i=null,e.Cb&&(i=(t=e.Db>>16,t>=0?Iee(e,i):e.Cb.ih(e,-1-t,null,i))),n&&(i=$2(n,e,10,i)),i=DX(e,n,i),i&&i.Fi()}else e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,11,n,n))}function $Cn(e){var n,t,i,r;for(i=new rd(new N1(e.b).a);i.b;)t=E0(i),r=u(t.cd(),11),n=u(t.dd(),10),te(n,(re(),Et),r),te(r,Qu,n),te(r,gj,(cn(),!0)),Ei(r,u(M(n,Tc),61)),M(n,Tc),te(r.i,(be(),ei),(Hi(),j4)),u(M(ar(r.i),Jc),21).Fc((xr(),c4))}function LCn(e,n,t){var i,r,c,o,f,l;if(c=0,o=0,e.c)for(l=new A(e.d.i.j);l.ac.a?-1:r.al){for(h=e.d,e.d=V(vde,sue,63,2*l+4,0,1),c=0;c=9223372036854776e3?(Sv(),Pue):(r=!1,e<0&&(r=!0,e=-e),i=0,e>=bd&&(i=ci(e/bd),e-=i*bd),t=0,e>=G2&&(t=ci(e/G2),e-=t*G2),n=ci(e),c=fu(n,t,i),r&&_F(c),c)}function GCn(e,n){var t,i,r,c;for(t=!n||!e.u.Hc((Yu(),La)),c=0,r=new A(e.e.Cf());r.a=-n&&i==n?new Gi(le(t-1),le(i)):new Gi(le(t),le(i-1))}function IKe(){return Mr(),D(O(LDn,1),ce,77,0,[joe,voe,Sy,Tq,Koe,ix,dx,Y3,Boe,xoe,Noe,X3,Roe,Soe,qoe,doe,sx,Cq,nx,lx,Voe,fx,boe,_oe,Goe,ax,Hoe,tx,Toe,Loe,$oe,bx,poe,ex,cx,goe,W3,Ooe,Poe,Foe,Py,yoe,moe,Doe,Aoe,ux,hx,woe,ox,Ioe,rx,Coe,Eoe,lj,ZA,Moe,koe])}function XCn(e,n,t){e.d=0,e.b=0,n.k==(dn(),Qc)&&t.k==Qc&&u(M(n,(re(),Et)),10)==u(M(t,Et),10)&&(aF(n).j==(ae(),tn)?gKe(e,n,t):gKe(e,t,n)),n.k==Qc&&t.k==$i?aF(n).j==(ae(),tn)?e.d=1:e.b=1:t.k==Qc&&n.k==$i&&(aF(t).j==(ae(),tn)?e.b=1:e.d=1),F9n(e,n,t)}function YCn(e){var n,t,i,r,c,o,f,l,a,h,w;return w=ene(e),n=e.a,l=n!=null,l&&ov(w,"category",e.a),r=u8(new Fm(e.d)),o=!r,o&&(a=new L1,pf(w,"knownOptions",a),t=new v7e(a),Yi(new Fm(e.d),t)),c=u8(e.g),f=!c,f&&(h=new L1,pf(w,"supportedFeatures",h),i=new y7e(h),Yi(e.g,i)),w}function QCn(e){var n,t,i,r,c,o,f,l,a;for(i=!1,n=336,t=0,c=new DMe(e.length),f=e,l=0,a=f.length;l>16!=7&&n){if(i3(e,n))throw I(new rn(ly+_Be(e)));i=null,e.Cb&&(i=(t=e.Db>>16,t>=0?See(e,i):e.Cb.ih(e,-1-t,null,i))),n&&(i=u(n,49).gh(e,1,Zj,i)),i=CY(e,n,i),i&&i.Fi()}else e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,7,n,n))}function OKe(e,n){var t,i;if(n!=e.Cb||e.Db>>16!=3&&n){if(i3(e,n))throw I(new rn(ly+UFe(e)));i=null,e.Cb&&(i=(t=e.Db>>16,t>=0?Aee(e,i):e.Cb.ih(e,-1-t,null,i))),n&&(i=u(n,49).gh(e,0,nE,i)),i=MY(e,n,i),i&&i.Fi()}else e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,3,n,n))}function v_(e,n){f3();var t,i,r,c,o,f,l,a,h;return n.d>e.d&&(f=e,e=n,n=f),n.d<63?KMn(e,n):(o=(e.d&-2)<<4,a=BQ(e,o),h=BQ(n,o),i=L_(e,E2(a,o)),r=L_(n,E2(h,o)),l=v_(a,h),t=v_(i,r),c=v_(L_(a,i),L_(r,h)),c=H_(H_(c,l),t),c=E2(c,o),l=E2(l,o<<1),H_(H_(l,c),t))}function ZCn(e,n,t){var i,r,c,o,f;for(o=d6(e,t),f=V(Zl,uh,10,n.length,0,1),i=0,c=o.Kc();c.Ob();)r=u(c.Pb(),11),ke(ye(M(r,(re(),gj))))&&(f[i++]=u(M(r,Qu),10));if(i=0;c+=t?1:-1)o=o|n.c.Sf(l,c,t,i&&!ke(ye(M(n.j,(re(),rb))))&&!ke(ye(M(n.j,(re(),Tp))))),o=o|n.q._f(l,c,t),o=o|pqe(e,l[c],t,i);return ki(e.c,n),o}function ZS(e,n,t){var i,r,c,o,f,l,a,h,w,k;for(h=gIe(e.j),w=0,k=h.length;w1&&(e.a=!0),wwn(u(t.b,65),Mt(vc(u(n.b,65).c),al(_i(vc(u(t.b,65).a),u(n.b,65).a),r))),xxe(e,n),DKe(e,t)}function $Ke(e){var n,t,i,r,c,o,f;for(c=new A(e.a.a);c.a0&&c>0?o.p=n++:i>0?o.p=t++:c>0?o.p=r++:o.p=t++}He(),Oi(e.j,new wpe)}function rMn(e){var n,t;t=null,n=u(ve(e.g,0),17);do{if(t=n.d.i,Ai(t,(re(),Po)))return u(M(t,Po),11).i;if(t.k!=(dn(),vi)&&Un(new En(Cn(pi(t).a.Kc(),new J))))n=u(_n(new En(Cn(pi(t).a.Kc(),new J))),17);else if(t.k!=vi)return null}while(t&&t.k!=(dn(),vi));return t}function cMn(e,n){var t,i,r,c,o,f,l,a,h;for(f=n.j,o=n.g,l=u(ve(f,f.c.length-1),113),h=(Qe(0,f.c.length),u(f.c[0],113)),a=_N(e,o,l,h),c=1;ca&&(l=t,h=r,a=i);n.a=h,n.c=l}function uMn(e,n){var t,i;if(i=H8(e.b,n.b),!i)throw I(new ec("Invalid hitboxes for scanline constraint calculation."));(KLe(n.b,u(udn(e.b,n.b),57))||KLe(n.b,u(cdn(e.b,n.b),57)))&&($l(),n.b+""),e.a[n.b.f]=u(L$(e.b,n.b),57),t=u($$(e.b,n.b),57),t&&(e.a[t.f]=n.b)}function Zo(e){if(!e.a.d||!e.a.e)throw I(new ec((la(XXe),XXe.k+" must have a source and target "+(la(Ase),Ase.k)+" specified.")));if(e.a.d==e.a.e)throw I(new ec("Network simplex does not support self-loops: "+e.a+" "+e.a.d+" "+e.a.e));return rC(e.a.d.g,e.a),rC(e.a.e.b,e.a),e.a}function sMn(e,n,t){var i,r,c,o,f,l,a;for(a=new Ih(new m8e(e)),o=D(O(FQe,1),WGe,11,0,[n,t]),f=0,l=o.length;fl-e.b&&fl-e.a&&f0&&++j;++k}return j}function pMn(e,n){var t,i,r,c,o;for(o=u(M(n,(B0(),Fae)),425),c=ct(n.b,0);c.b!=c.d.c;)if(r=u(rt(c),86),e.b[r.g]==0){switch(o.g){case 0:o_e(e,r);break;case 1:vTn(e,r)}e.b[r.g]=2}for(i=ct(e.a,0);i.b!=i.d.c;)t=u(rt(i),188),cw(t.b.d,t,!0),cw(t.c.b,t,!0);te(n,(Ac(),Aae),e.a)}function hu(e,n){Er();var t,i,r,c;return n?n==(Pt(),Mcn)||(n==bcn||n==Bd||n==dcn)&&e!=zde?new Qte(e,n):(i=u(n,677),t=i.pk(),t||(wv(Vr((Ku(),Ji),n)),t=i.pk()),c=(!t.i&&(t.i=new Ln),t.i),r=u(mc(Xr(c.f,e)),1942),!r&&jt(c,e,r=new Qte(e,n)),r):lcn}function mMn(e,n){var t,i,r,c,o,f,l,a,h;for(l=u(M(e,(re(),Et)),11),a=hc(D(O(xi,1),ie,8,0,[l.i.n,l.n,l.a])).a,h=e.i.n.b,t=gl(e.e),r=t,c=0,o=r.length;c0?c.a?(f=c.b.rf().a,t>f&&(r=(t-f)/2,c.d.b=r,c.d.c=r)):c.d.c=e.s+t:R5(e.u)&&(i=nne(c.b),i.c<0&&(c.d.b=-i.c),i.c+i.b>c.b.rf().a&&(c.d.c=i.c+i.b-c.b.rf().a))}function jMn(e,n){var t,i,r,c;for(In(n,"Semi-Interactive Crossing Minimization Processor",1),t=!1,r=new A(e.b);r.a=0){if(n==t)return new Gi(le(-n-1),le(-n-1));if(n==-t)return new Gi(le(-n),le(t+1))}return y.Math.abs(n)>y.Math.abs(t)?n<0?new Gi(le(-n),le(t)):new Gi(le(-n),le(t+1)):new Gi(le(n+1),le(t))}function CMn(e){var n,t;t=u(M(e,(be(),bu)),163),n=u(M(e,(re(),Md)),303),t==(to(),b1)?(te(e,bu,vj),te(e,Md,(ma(),jp))):t==_w?(te(e,bu,vj),te(e,Md,(ma(),sm))):n==(ma(),jp)?(te(e,bu,b1),te(e,Md,bj)):n==sm&&(te(e,bu,_w),te(e,Md,bj))}function eP(){eP=U,Pj=new tve,Lnn=mt(new Pi,(mr(),du),(Mr(),nx)),_nn=Uu(mt(new Pi,du,fx),Jr,ox),Bnn=$0($0(jT(Uu(mt(new Pi,xl,dx),Jr,hx),Yc),ax),bx),Fnn=Uu(mt(mt(mt(new Pi,h1,ix),Yc,cx),Yc,W3),Jr,rx),Nnn=Uu(mt(mt(new Pi,Yc,W3),Yc,ex),Jr,ZA)}function O6(){O6=U,qnn=mt(Uu(new Pi,(mr(),Jr),(Mr(),Coe)),du,nx),znn=$0($0(jT(Uu(mt(new Pi,xl,dx),Jr,hx),Yc),ax),bx),Hnn=Uu(mt(mt(mt(new Pi,h1,ix),Yc,cx),Yc,W3),Jr,rx),Gnn=mt(mt(new Pi,du,fx),Jr,ox),Vnn=Uu(mt(mt(new Pi,Yc,W3),Yc,ex),Jr,ZA)}function MMn(e,n,t,i,r){var c,o;(!gr(n)&&n.c.i.c==n.d.i.c||!X$e(hc(D(O(xi,1),ie,8,0,[r.i.n,r.n,r.a])),t))&&!gr(n)&&(n.c==r?rv(n.a,0,new Kr(t)):ut(n.a,new Kr(t)),i&&!oa(e.a,t)&&(o=u(M(n,(be(),Ur)),74),o||(o=new Lu,te(n,Ur,o)),c=new Kr(t),ri(o,c,o.c.b,o.c),ki(e.a,c)))}function SMn(e){var n,t;for(t=new En(Cn(ic(e).a.Kc(),new J));Un(t);)if(n=u(_n(t),17),n.c.i.k!=(dn(),Ts))throw I(new hg(cR+z7(e)+"' has its layer constraint set to FIRST, but has at least one incoming edge that does not come from a FIRST_SEPARATE node. That must not happen."))}function PMn(e,n,t){var i,r,c,o,f,l,a;if(r=ZFe(e.Db&254),r==0)e.Eb=t;else{if(r==1)f=V(pn,pe,1,2,5,1),c=NN(e,n),c==0?(f[0]=t,f[1]=e.Eb):(f[0]=e.Eb,f[1]=t);else for(f=V(pn,pe,1,r+1,5,1),o=J1(e.Eb),i=2,l=0,a=0;i<=128;i<<=1)i==n?f[a++]=t:e.Db&i&&(f[a++]=o[l++]);e.Eb=f}e.Db|=n}function FKe(e,n,t){var i,r,c,o;for(this.b=new oe,r=0,i=0,o=new A(e);o.a0&&(c=u(ve(this.b,0),167),r+=c.o,i+=c.p),r*=2,i*=2,n>1?r=ci(y.Math.ceil(r*n)):i=ci(y.Math.ceil(i/n)),this.a=new WZ(r,i)}function NKe(e,n,t,i,r,c){var o,f,l,a,h,w,k,j,T,C,x,L;for(h=i,n.j&&n.o?(j=u(kn(e.f,n.A),57),C=j.d.c+j.d.b,--h):C=n.a.c+n.a.b,w=r,t.q&&t.o?(j=u(kn(e.f,t.C),57),a=j.d.c,++w):a=t.a.c,x=a-C,l=y.Math.max(2,w-h),f=x/l,T=C+f,k=h;k=0;o+=r?1:-1){for(f=n[o],l=i==(ae(),hn)?r?dc(f,i):Z1(dc(f,i)):r?Z1(dc(f,i)):dc(f,i),c&&(e.c[f.p]=l.gc()),w=l.Kc();w.Ob();)h=u(w.Pb(),11),e.d[h.p]=a++;wi(t,l)}}function _Ke(e,n,t){var i,r,c,o,f,l,a,h;for(c=ne(he(e.b.Kc().Pb())),a=ne(he(N4n(n.b))),i=al(vc(e.a),a-t),r=al(vc(n.a),t-c),h=Mt(i,r),al(h,1/(a-c)),this.a=h,this.b=new oe,f=!0,o=e.b.Kc(),o.Pb();o.Ob();)l=ne(he(o.Pb())),f&&l-t>BR&&(this.b.Fc(t),f=!1),this.b.Fc(l);f&&this.b.Fc(t)}function AMn(e){var n,t,i,r;if(RSn(e,e.n),e.d.c.length>0){for(Q4(e.c);Rne(e,u(P(new A(e.e.a)),121))>5,n&=31,i>=e.d)return e.e<0?(n1(),UK):(n1(),V3);if(c=e.d-i,r=V($n,nt,25,c+1,15,1),jjn(r,c,e.a,i,n),e.e<0){for(t=0;t0&&e.a[t]<<32-n){for(t=0;t=0?!1:(t=Zg((Ku(),Ji),r,n),t?(i=t.Zj(),(i>1||i==-1)&&b0(Vr(Ji,t))!=3):!0)):!1}function DMn(e,n,t,i){var r,c,o,f,l;return f=Qr(u(K((!n.b&&(n.b=new Xe(An,n,4,7)),n.b),0),82)),l=Qr(u(K((!n.c&&(n.c=new Xe(An,n,5,8)),n.c),0),82)),Ut(f)==Ut(l)||ew(l,f)?null:(o=Q8(n),o==t?i:(c=u(kn(e.a,o),10),c&&(r=c.e,r)?r:null))}function $Mn(e,n){var t;switch(t=u(M(e,(be(),Kx)),276),In(n,"Label side selection ("+t+")",1),t.g){case 0:tKe(e,(Ds(),na));break;case 1:tKe(e,(Ds(),y1));break;case 2:pHe(e,(Ds(),na));break;case 3:pHe(e,(Ds(),y1));break;case 4:JKe(e,(Ds(),na));break;case 5:JKe(e,(Ds(),y1))}Tn(n)}function ote(e,n,t){var i,r,c,o,f,l;if(i=van(t,e.length),o=e[i],o[0].k==(dn(),fi))for(c=tje(t,o.length),l=n.j,r=0;r0&&(t[0]+=e.d,o-=t[0]),t[2]>0&&(t[2]+=e.d,o-=t[2]),c=y.Math.max(0,o),t[1]=y.Math.max(t[1],o),KQ(e,su,r.c+i.b+t[0]-(t[1]-o)/2,t),n==su&&(e.c.b=c,e.c.c=r.c+i.b+(c-o)/2)}function XKe(){this.c=V(Ri,Br,25,(ae(),D(O(kr,1),Lc,61,0,[gc,tn,hn,On,un])).length,15,1),this.b=V(Ri,Br,25,D(O(kr,1),Lc,61,0,[gc,tn,hn,On,un]).length,15,1),this.a=V(Ri,Br,25,D(O(kr,1),Lc,61,0,[gc,tn,hn,On,un]).length,15,1),QU(this.c,Jt),QU(this.b,hi),QU(this.a,hi)}function Uc(e,n,t){var i,r,c,o;if(n<=t?(r=n,c=t):(r=t,c=n),i=0,e.b==null)e.b=V($n,nt,25,2,15,1),e.b[0]=r,e.b[1]=c,e.c=!0;else{if(i=e.b.length,e.b[i-1]+1==r){e.b[i-1]=c;return}o=V($n,nt,25,i+2,15,1),Kc(e.b,0,o,0,i),e.b=o,e.b[i-1]>=r&&(e.c=!1,e.a=!1),e.b[i++]=r,e.b[i]=c,e.c||zg(e)}}function qMn(e,n,t){var i,r,c,o,f,l,a;for(a=n.d,e.a=new tu(a.c.length),e.c=new Ln,f=new A(a);f.a=0?e._g(a,!1,!0):_0(e,t,!1),58));e:for(c=w.Kc();c.Ob();){for(r=u(c.Pb(),56),h=0;h1;)ww(r,r.i-1);return i}function UMn(e,n){var t,i,r,c,o,f,l;for(In(n,"Comment post-processing",1),c=new A(e.b);c.ae.d[o.p]&&(t+=LQ(e.b,c),Vh(e.a,le(c)));for(;!Y4(e.a);)hJ(e.b,u(w2(e.a),19).a)}return t}function ZKe(e,n,t){var i,r,c,o;for(c=(!n.a&&(n.a=new fe(Xt,n,10,11)),n.a).i,r=new jn((!n.a&&(n.a=new fe(Xt,n,10,11)),n.a));r.e!=r.i.gc();)i=u(Sn(r),33),(!i.a&&(i.a=new fe(Xt,i,10,11)),i.a).i==0||(c+=ZKe(e,i,!1));if(t)for(o=Ut(n);o;)c+=(!o.a&&(o.a=new fe(Xt,o,10,11)),o.a).i,o=Ut(o);return c}function ww(e,n){var t,i,r,c;return e.ej()?(i=null,r=e.fj(),e.ij()&&(i=e.kj(e.pi(n),null)),t=e.Zi(4,c=F2(e,n),null,n,r),e.bj()&&c!=null&&(i=e.dj(c,i)),i?(i.Ei(t),i.Fi()):e.$i(t),c):(c=F2(e,n),e.bj()&&c!=null&&(i=e.dj(c,null),i&&i.Fi()),c)}function XMn(e){var n,t,i,r,c,o,f,l,a,h;for(a=e.a,n=new Si,l=0,i=new A(e.d);i.af.d&&(h=f.d+f.a+a));t.c.d=h,n.a.zc(t,n),l=y.Math.max(l,t.c.d+t.c.a)}return l}function xr(){xr=U,Sx=new $b("COMMENTS",0),so=new $b("EXTERNAL_PORTS",1),Dy=new $b("HYPEREDGES",2),Px=new $b("HYPERNODES",3),c4=new $b("NON_FREE_PORTS",4),kp=new $b("NORTH_SOUTH_PORTS",5),$y=new $b(dze,6),i4=new $b("CENTER_LABELS",7),r4=new $b("END_LABELS",8),Ax=new $b("PARTITIONS",9)}function gw(e){var n,t,i,r,c;for(r=new oe,n=new F5((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a)),i=new En(Cn(Ca(e).a.Kc(),new J));Un(i);)t=u(_n(i),79),_(K((!t.b&&(t.b=new Xe(An,t,4,7)),t.b),0),186)||(c=Qr(u(K((!t.c&&(t.c=new Xe(An,t,5,8)),t.c),0),82)),n.a._b(c)||(r.c[r.c.length]=c));return r}function YMn(e){var n,t,i,r,c,o;for(c=new Si,n=new F5((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a)),r=new En(Cn(Ca(e).a.Kc(),new J));Un(r);)i=u(_n(r),79),_(K((!i.b&&(i.b=new Xe(An,i,4,7)),i.b),0),186)||(o=Qr(u(K((!i.c&&(i.c=new Xe(An,i,5,8)),i.c),0),82)),n.a._b(o)||(t=c.a.zc(o,c),t==null));return c}function QMn(e,n,t,i,r){return i<0?(i=Gg(e,r,D(O(ge,1),ie,2,6,[sB,oB,fB,lB,H2,aB,hB,dB,bB,wB,gB,pB]),n),i<0&&(i=Gg(e,r,D(O(ge,1),ie,2,6,["Jan","Feb","Mar","Apr",H2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function JMn(e,n,t,i,r){return i<0?(i=Gg(e,r,D(O(ge,1),ie,2,6,[sB,oB,fB,lB,H2,aB,hB,dB,bB,wB,gB,pB]),n),i<0&&(i=Gg(e,r,D(O(ge,1),ie,2,6,["Jan","Feb","Mar","Apr",H2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"]),n)),i<0?!1:(t.k=i,!0)):i>0?(t.k=i-1,!0):!1}function ZMn(e,n,t,i,r,c){var o,f,l,a;if(f=32,i<0){if(n[0]>=e.length||(f=Xi(e,n[0]),f!=43&&f!=45)||(++n[0],i=zS(e,n),i<0))return!1;f==45&&(i=-i)}return f==32&&n[0]-t==2&&r.b==2&&(l=new wT,a=l.q.getFullYear()-r1+r1-80,o=a%100,c.a=i==o,i+=(a/100|0)*100+(i=a&&(l=i);l&&(h=y.Math.max(h,l.a.o.a)),h>k&&(w=a,k=h)}return w}function tSn(e,n,t){var i,r,c;if(e.e=t,e.d=0,e.b=0,e.f=1,e.i=n,(e.e&16)==16&&(e.i=qSn(e.i)),e.j=e.i.length,wt(e),c=D0(e),e.d!=e.j)throw I(new Hn(Wn((qn(),LUe))));if(e.g){for(i=0;iFze?Oi(l,e.b):i<=Fze&&i>Nze?Oi(l,e.d):i<=Nze&&i>_ze?Oi(l,e.c):i<=_ze&&Oi(l,e.a),c=iqe(e,l,c);return r}function n1(){n1=U;var e;for(DA=new Wa(1,1),WK=new Wa(1,10),V3=new Wa(0,0),UK=new Wa(-1,1),Wue=D(O(dp,1),ie,91,0,[V3,DA,new Wa(1,2),new Wa(1,3),new Wa(1,4),new Wa(1,5),new Wa(1,6),new Wa(1,7),new Wa(1,8),new Wa(1,9),WK]),$A=V(dp,ie,91,32,0,1),e=0;e<$A.length;e++)$A[e]=q7(aa(1,e))}function rSn(e,n,t,i,r,c){var o,f,l,a;for(f=!n5(Lt(e.Oc(),new q4(new epe))).sd((R1(),z3)),o=e,c==(Ar(),Da)&&(o=_(o,152)?T2(u(o,152)):_(o,131)?u(o,131).a:_(o,54)?new Ud(o):new Ob(o)),a=o.Kc();a.Ob();)l=u(a.Pb(),70),l.n.a=n.a,f?l.n.b=n.b+(i.b-l.o.b)/2:r?l.n.b=n.b:l.n.b=n.b+i.b-l.o.b,n.a+=l.o.a+t}function rqe(e,n,t,i){var r,c,o,f,l,a;for(r=(i.c+i.a)/2,go(n.j),ut(n.j,r),go(t.e),ut(t.e,r),a=new fje,f=new A(e.f);f.a1,f&&(i=new je(r,t.b),ut(n.a,i)),i6(n.a,D(O(xi,1),ie,8,0,[k,w]))}function oqe(e){n0(e,new ad(Qd(Wd(Yd(Xd(new $1,uA),"ELK Randomizer"),'Distributes the nodes randomly on the plane, leading to very obfuscating layouts. Can be useful to demonstrate the power of "real" layout algorithms.'),new L3e))),de(e,uA,z0,rde),de(e,uA,Tw,15),de(e,uA,OP,le(0)),de(e,uA,X2,x3)}function ate(){ate=U;var e,n,t,i,r,c;for(M9=V(zu,lp,25,255,15,1),JI=V(lo,vl,25,16,15,1),n=0;n<255;n++)M9[n]=-1;for(t=57;t>=48;t--)M9[t]=t-48<<24>>24;for(i=70;i>=65;i--)M9[i]=i-65+10<<24>>24;for(r=102;r>=97;r--)M9[r]=r-97+10<<24>>24;for(c=0;c<10;c++)JI[c]=48+c&si;for(e=10;e<=15;e++)JI[e]=65+e-10&si}function tP(e,n,t){var i,r,c,o,f,l,a,h;return f=n.i-e.g/2,l=t.i-e.g/2,a=n.j-e.g/2,h=t.j-e.g/2,c=n.g+e.g/2,o=t.g+e.g/2,i=n.f+e.g/2,r=t.f+e.g/2,f>19)return"-"+fqe(qv(e));for(t=e,i="";!(t.l==0&&t.m==0&&t.h==0);){if(r=eF(EP),t=Hte(t,r,!0),n=""+kje(f1),!(t.l==0&&t.m==0&&t.h==0))for(c=9-n.length;c>0;c--)n="0"+n;i=n+i}return i}function oSn(){if(!Object.create||!Object.getOwnPropertyNames)return!1;var e="__proto__",n=Object.create(null);if(n[e]!==void 0)return!1;var t=Object.getOwnPropertyNames(n);return!(t.length!=0||(n[e]=42,n[e]!==42)||Object.getOwnPropertyNames(n).length==0)}function fSn(e){var n,t,i,r,c,o,f;for(n=!1,t=0,r=new A(e.d.b);r.a=e.a||!Jee(n,t))return-1;if(yv(u(i.Kb(n),20)))return 1;for(r=0,o=u(i.Kb(n),20).Kc();o.Ob();)if(c=u(o.Pb(),17),l=c.c.i==n?c.d.i:c.c.i,f=dte(e,l,t,i),f==-1||(r=y.Math.max(r,f),r>e.c-1))return-1;return r+1}function lqe(e,n){var t,i,r,c,o,f;if(X(n)===X(e))return!0;if(!_(n,15)||(i=u(n,15),f=e.gc(),i.gc()!=f))return!1;if(o=i.Kc(),e.ni()){for(t=0;t0){if(e.qj(),n!=null){for(c=0;c>24;case 97:case 98:case 99:case 100:case 101:case 102:return e-97+10<<24>>24;case 65:case 66:case 67:case 68:case 69:case 70:return e-65+10<<24>>24;default:throw I(new fl("Invalid hexadecimal"))}}function dSn(e,n,t){var i,r,c,o;for(In(t,"Processor order nodes",2),e.a=ne(he(M(n,(B0(),Nae)))),r=new Vt,o=ct(n.b,0);o.b!=o.d.c;)c=u(rt(o),86),ke(ye(M(c,(Ac(),Xw))))&&ri(r,c,r.c.b,r.c);i=(vn(r.b!=0),u(r.a.a.c,86)),xHe(e,i),!t.b&&CF(t,1),mte(e,i,0-ne(he(M(i,(Ac(),lI))))/2,0),!t.b&&CF(t,1),Tn(t)}function iP(){iP=U,Sse=new wg("SPIRAL",0),Ese=new wg("LINE_BY_LINE",1),Tse=new wg("MANHATTAN",2),jse=new wg("JITTER",3),eq=new wg("QUADRANTS_LINE_BY_LINE",4),Mse=new wg("QUADRANTS_MANHATTAN",5),Cse=new wg("QUADRANTS_JITTER",6),kse=new wg("COMBINE_LINE_BY_LINE_MANHATTAN",7),yse=new wg("COMBINE_JITTER_MANHATTAN",8)}function hqe(e,n,t,i){var r,c,o,f,l,a;for(l=HN(e,t),a=HN(n,t),r=!1;l&&a&&(i||f8n(l,a,t));)o=HN(l,t),f=HN(a,t),a7(n),a7(e),c=l.c,U_(l,!1),U_(a,!1),t?(fw(n,a.p,c),n.p=a.p,fw(e,l.p+1,c),e.p=l.p):(fw(e,l.p,c),e.p=l.p,fw(n,a.p+1,c),n.p=a.p),Hr(l,null),Hr(a,null),l=o,a=f,r=!0;return r}function bSn(e,n,t,i){var r,c,o,f,l;for(r=!1,c=!1,f=new A(i.j);f.a=n.length)throw I(new Rr("Greedy SwitchDecider: Free layer not in graph."));this.c=n[e],this.e=new N8(i),AF(this.e,this.c,(ae(),un)),this.i=new N8(i),AF(this.i,this.c,hn),this.f=new lPe(this.c),this.a=!c&&r.i&&!r.s&&this.c[0].k==(dn(),fi),this.a&&Ijn(this,e,n.length)}function bqe(e,n){var t,i,r,c,o,f;c=!e.B.Hc((us(),Qj)),o=e.B.Hc(_V),e.a=new fNe(o,c,e.c),e.n&&iQ(e.a.n,e.n),jD(e.g,(mf(),su),e.a),n||(i=new v6(1,c,e.c),i.n.a=e.k,d2(e.p,(ae(),tn),i),r=new v6(1,c,e.c),r.n.d=e.k,d2(e.p,On,r),f=new v6(0,c,e.c),f.n.c=e.k,d2(e.p,un,f),t=new v6(0,c,e.c),t.n.b=e.k,d2(e.p,hn,t))}function gSn(e){var n,t,i;switch(n=u(M(e.d,(be(),Ia)),218),n.g){case 2:t=zOn(e);break;case 3:t=(i=new oe,ti(Lt(yu(ac(ac(new We(null,new Ye(e.d.b,16)),new I2e),new O2e),new D2e),new m2e),new W9e(i)),i);break;default:throw I(new ec("Compaction not supported for "+n+" edges."))}bxn(e,t),Yi(new Fm(e.g),new z9e(e))}function pSn(e,n){var t;return t=new WO,n&&Yr(t,u(kn(e.a,Zj),94)),_(n,470)&&Yr(t,u(kn(e.a,eE),94)),_(n,354)?(Yr(t,u(kn(e.a,uc),94)),t):(_(n,82)&&Yr(t,u(kn(e.a,An),94)),_(n,239)?(Yr(t,u(kn(e.a,Xt),94)),t):_(n,186)?(Yr(t,u(kn(e.a,ls),94)),t):(_(n,352)&&Yr(t,u(kn(e.a,Ii),94)),t))}function jf(){jf=U,U3=new Tr((ht(),xI),le(1)),WA=new Tr(Fd,80),cQe=new Tr(L1e,5),YYe=new Tr(vm,x3),iQe=new Tr(DV,le(1)),rQe=new Tr($V,(cn(),!0)),Vse=new r0(50),nQe=new Tr(Ld,Vse),Kse=SI,Gse=o9,QYe=new Tr(TV,!1),Hse=Hj,eQe=v1,ZYe=$d,JYe=Lp,tQe=Yw,qse=(ane(),HYe),hq=UYe,UA=qYe,aq=VYe,zse=zYe}function mSn(e){var n,t,i,r,c,o,f,l;for(l=new gOe,f=new A(e.a);f.a0&&n=0)return!1;if(n.p=t.b,se(t.e,n),r==(dn(),$i)||r==Qc){for(o=new A(n.j);o.a1||o==-1)&&(c|=16),r.Bb&xc&&(c|=64)),t.Bb&yr&&(c|=xw),c|=ef):_(n,457)?c|=512:(i=n.Bj(),i&&i.i&1&&(c|=256)),e.Bb&512&&(c|=128),c}function D6(e,n){var t,i,r,c,o;for(e=e==null?Au:(nn(e),e),r=0;re.d[f.p]&&(t+=LQ(e.b,c),Vh(e.a,le(c)))):++o;for(t+=e.b.d*o;!Y4(e.a);)hJ(e.b,u(w2(e.a),19).a)}return t}function SSn(e,n){var t;return e.f==YV?(t=b0(Vr((Ku(),Ji),n)),e.e?t==4&&n!=(B2(),Mm)&&n!=(B2(),Cm)&&n!=(B2(),QV)&&n!=(B2(),JV):t==2):e.d&&(e.d.Hc(n)||e.d.Hc(k2(Vr((Ku(),Ji),n)))||e.d.Hc(Zg((Ku(),Ji),e.b,n)))?!0:e.f&&tte((Ku(),e.f),z8(Vr(Ji,n)))?(t=b0(Vr(Ji,n)),e.e?t==4:t==2):!1}function PSn(e,n,t,i){var r,c,o,f,l,a,h,w;return o=u(Te(t,(ht(),ym)),8),l=o.a,h=o.b+e,r=y.Math.atan2(h,l),r<0&&(r+=sp),r+=n,r>sp&&(r-=sp),f=u(Te(i,ym),8),a=f.a,w=f.b+e,c=y.Math.atan2(w,a),c<0&&(c+=sp),c+=n,c>sp&&(c-=sp),If(),Yo(1e-10),y.Math.abs(r-c)<=1e-10||r==c||isNaN(r)&&isNaN(c)?0:rc?1:i0(isNaN(r),isNaN(c))}function T_(e){var n,t,i,r,c,o,f;for(f=new Ln,i=new A(e.a.b);i.a=e.o)throw I(new tU);f=n>>5,o=n&31,c=aa(1,Fn(aa(o,1))),r?e.n[t][f]=Ff(e.n[t][f],c):e.n[t][f]=ji(e.n[t][f],sY(c)),c=aa(c,1),i?e.n[t][f]=Ff(e.n[t][f],c):e.n[t][f]=ji(e.n[t][f],sY(c))}catch(l){throw l=qt(l),_(l,320)?I(new Rr(GB+e.o+"*"+e.p+zB+n+vr+t+UB)):I(l)}}function mte(e,n,t,i){var r,c,o;n&&(c=ne(he(M(n,(Ac(),bh))))+i,o=t+ne(he(M(n,lI)))/2,te(n,YH,le(Fn(Su(y.Math.round(c))))),te(n,xae,le(Fn(Su(y.Math.round(o))))),n.d.b==0||mte(e,u(ZT((r=ct(new Sh(n).a.d,0),new Xp(r))),86),t+ne(he(M(n,lI)))+e.a,i+ne(he(M(n,w4)))),M(n,XH)!=null&&mte(e,u(M(n,XH),86),t,i))}function xSn(e,n){var t,i,r,c,o,f,l,a,h,w,k;for(l=ar(n.a),r=ne(he(M(l,(be(),Id))))*2,h=ne(he(M(l,Pp))),a=y.Math.max(r,h),c=V(Ri,Br,25,n.f-n.c+1,15,1),i=-a,t=0,f=n.b.Kc();f.Ob();)o=u(f.Pb(),10),i+=e.a[o.c.p]+a,c[t++]=i;for(i+=e.a[n.a.c.p]+a,c[t++]=i,k=new A(n.e);k.a0&&(i=(!e.n&&(e.n=new fe(uc,e,1,7)),u(K(e.n,0),137)).a,!i||Qn(Qn((n.a+=' "',n),i),'"'))),Qn(Zd(Qn(Zd(Qn(Zd(Qn(Zd((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}function Tqe(e){var n,t,i;return e.Db&64?e_(e):(n=new Cs(Hce),t=e.k,t?Qn(Qn((n.a+=' "',n),t),'"'):(!e.n&&(e.n=new fe(uc,e,1,7)),e.n.i>0&&(i=(!e.n&&(e.n=new fe(uc,e,1,7)),u(K(e.n,0),137)).a,!i||Qn(Qn((n.a+=' "',n),i),'"'))),Qn(Zd(Qn(Zd(Qn(Zd(Qn(Zd((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}function M_(e,n){var t,i,r,c,o,f,l;if(n==null||n.length==0)return null;if(r=u(Vc(e.a,n),149),!r){for(i=(f=new sa(e.b).a.vc().Kc(),new Pb(f));i.a.Ob();)if(t=(c=u(i.a.Pb(),42),u(c.dd(),149)),o=t.c,l=n.length,Re(o.substr(o.length-l,l),n)&&(n.length==o.length||Xi(o,o.length-n.length-1)==46)){if(r)return null;r=t}r&&qr(e.a,n,r)}return r}function DSn(e,n){var t,i,r,c;return t=new Ube,i=u(As(yu(new We(null,new Ye(e.f,16)),t),Qb(new O1,new D1,new Mb,new Sb,D(O(os,1),ce,132,0,[(qf(),Iw),_s]))),21),r=i.gc(),i=u(As(yu(new We(null,new Ye(n.f,16)),t),Qb(new O1,new D1,new Mb,new Sb,D(O(os,1),ce,132,0,[Iw,_s]))),21),c=i.gc(),rr.p?(Ei(c,On),c.d&&(f=c.o.b,n=c.a.b,c.a.b=f-n)):c.j==On&&r.p>e.p&&(Ei(c,tn),c.d&&(f=c.o.b,n=c.a.b,c.a.b=-(f-n)));break}return r}function LSn(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T;if(c=t,t1,f&&(i=new je(r,t.b),ut(n.a,i)),i6(n.a,D(O(xi,1),ie,8,0,[k,w]))}function S_(e,n,t){var i,r,c,o,f,l;if(n)if(t<=-1){if(i=Ge(n.Tg(),-1-t),_(i,99))return u(i,18);for(o=u(n.ah(i),153),f=0,l=o.gc();f0){for(r=l.length;r>0&&l[r-1]=="";)--r;r=40,o&&zPn(e),YAn(e),AMn(e),t=XFe(e),i=0;t&&i0&&ut(e.f,c)):(e.c[o]-=a+1,e.c[o]<=0&&e.a[o]>0&&ut(e.e,c))))}function sPn(e){var n,t,i,r,c,o,f,l,a;for(f=new Ih(u(Nn(new Xbe),62)),a=hi,t=new A(e.d);t.a=0&&lt?n:t;a<=w;++a)a==t?f=i++:(c=r[a],h=T.rl(c.ak()),a==n&&(l=a==w&&!h?i-1:i),h&&++i);return k=u(g6(e,n,t),72),f!=l&&Km(e,new o7(e.e,7,o,le(f),j.dd(),l)),k}}else return u(f_(e,n,t),72);return u(g6(e,n,t),72)}function aPn(e,n){var t,i,r,c,o,f,l;for(In(n,"Port order processing",1),l=u(M(e,(be(),Kle)),421),i=new A(e.b);i.a=0&&(f=b8n(e,o),!(f&&(a<22?l.l|=1<>>1,o.m=h>>>1|(w&1)<<21,o.l=k>>>1|(h&1)<<21,--a;return t&&_F(l),c&&(i?(f1=qv(e),r&&(f1=NLe(f1,(Sv(),Aue)))):f1=fu(e.l,e.m,e.h)),l}function bPn(e,n){var t,i,r,c,o,f,l,a,h,w;for(a=e.e[n.c.p][n.p]+1,l=n.c.a.c.length+1,f=new A(e.a);f.a0&&(Gn(0,e.length),e.charCodeAt(0)==45||(Gn(0,e.length),e.charCodeAt(0)==43))?1:0,i=o;it)throw I(new fl(G0+e+'"'));return f}function wPn(e){var n,t,i,r,c,o,f;for(o=new Vt,c=new A(e.a);c.a1)&&n==1&&u(e.a[e.b],10).k==(dn(),Ts)?K2(u(e.a[e.b],10),(Ds(),na)):i&&(!t||(e.c-e.b&e.a.length-1)>1)&&n==1&&u(e.a[e.c-1&e.a.length-1],10).k==(dn(),Ts)?K2(u(e.a[e.c-1&e.a.length-1],10),(Ds(),y1)):(e.c-e.b&e.a.length-1)==2?(K2(u(l6(e),10),(Ds(),na)),K2(u(l6(e),10),y1)):fCn(e,r),DQ(e)}function mPn(e,n,t){var i,r,c,o,f;for(c=0,r=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));r.e!=r.i.gc();)i=u(Sn(r),33),o="",(!i.n&&(i.n=new fe(uc,i,1,7)),i.n).i==0||(o=u(K((!i.n&&(i.n=new fe(uc,i,1,7)),i.n),0),137).a),f=new KF(c++,n,o),Yr(f,i),te(f,(Ac(),n9),i),f.e.b=i.j+i.f/2,f.f.a=y.Math.max(i.g,1),f.e.a=i.i+i.g/2,f.f.b=y.Math.max(i.f,1),ut(n.b,f),au(t.f,i,f)}function vPn(e){var n,t,i,r,c;i=u(M(e,(re(),Et)),33),c=u(Te(i,(be(),Ad)),174).Hc((Es(),_d)),e.e||(r=u(M(e,Jc),21),n=new je(e.f.a+e.d.b+e.d.c,e.f.b+e.d.d+e.d.a),r.Hc((xr(),so))?(_r(i,ei,(Hi(),Zc)),q0(i,n.a,n.b,!1,!0)):ke(ye(Te(i,vH)))||q0(i,n.a,n.b,!0,!0)),c?_r(i,Ad,_e(_d)):_r(i,Ad,(t=u(df(g9),9),new Ws(t,u(Go(t,t.length),9),0)))}function Mte(e,n,t){var i,r,c,o;if(n[0]>=e.length)return t.o=0,!0;switch(Xi(e,n[0])){case 43:r=1;break;case 45:r=-1;break;default:return t.o=0,!0}if(++n[0],c=n[0],o=zS(e,n),o==0&&n[0]==c)return!1;if(n[0]=0&&f!=t&&(c=new Di(e,1,f,o,null),i?i.Ei(c):i=c),t>=0&&(c=new Di(e,1,t,f==t?o:null,n),i?i.Ei(c):i=c)),i}function qqe(e){var n,t,i;if(e.b==null){if(i=new Ra,e.i!=null&&(Lr(i,e.i),i.a+=":"),e.f&256){for(e.f&256&&e.a!=null&&(Lgn(e.i)||(i.a+="//"),Lr(i,e.a)),e.d!=null&&(i.a+="/",Lr(i,e.d)),e.f&16&&(i.a+="/"),n=0,t=e.j.length;nk?!1:(w=(l=B6(i,k,!1),l.a),h+f+w<=n.b&&(s7(t,c-t.s),t.c=!0,s7(i,c-t.s),H7(i,t.s,t.t+t.d+f),i.k=!0,_J(t.q,i),j=!0,r&&(_M(n,i),i.j=n,e.c.length>o&&(W7((Qe(o,e.c.length),u(e.c[o],200)),i),(Qe(o,e.c.length),u(e.c[o],200)).a.c.length==0&&Ua(e,o)))),j)}function SPn(e,n){var t,i,r,c,o,f;if(In(n,"Partition midprocessing",1),r=new p0,ti(Lt(new We(null,new Ye(e.a,16)),new ppe),new O9e(r)),r.d!=0){for(f=u(As(Lxe((c=r.i,new We(null,(c||(r.i=new Eg(r,r.c))).Nc()))),Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[(qf(),_s)]))),15),i=f.Kc(),t=u(i.Pb(),19);i.Ob();)o=u(i.Pb(),19),xCn(u(Tt(r,t),21),u(Tt(r,o),21)),t=o;Tn(n)}}function Gqe(e,n,t){var i,r,c,o,f,l,a,h;if(n.p==0){for(n.p=1,o=t,o||(r=new oe,c=(i=u(df(kr),9),new Ws(i,u(Go(i,i.length),9),0)),o=new Gi(r,c)),u(o.a,15).Fc(n),n.k==(dn(),fi)&&u(o.b,21).Fc(u(M(n,(re(),Tc)),61)),l=new A(n.j);l.a0){if(r=u(e.Ab.g,1934),n==null){for(c=0;c1)for(i=new A(r);i.at.s&&ff&&(f=r,h.c=V(pn,pe,1,0,5,1)),r==f&&se(h,new Gi(t.c.i,t)));He(),Oi(h,e.c),qb(e.b,l.p,h)}}function DPn(e,n){var t,i,r,c,o,f,l,a,h;for(o=new A(n.b);o.af&&(f=r,h.c=V(pn,pe,1,0,5,1)),r==f&&se(h,new Gi(t.d.i,t)));He(),Oi(h,e.c),qb(e.f,l.p,h)}}function Uqe(e){n0(e,new ad(Qd(Wd(Yd(Xd(new $1,X0),"ELK Box"),"Algorithm for packing of unconnected boxes, i.e. graphs without edges."),new k3e))),de(e,X0,z0,i1e),de(e,X0,Tw,15),de(e,X0,Dk,le(0)),de(e,X0,iA,me(e1e)),de(e,X0,cp,me(_in)),de(e,X0,Y2,me(Bin)),de(e,X0,X2,Gze),de(e,X0,$k,me(n1e)),de(e,X0,Q2,me(t1e)),de(e,X0,Nce,me(yV)),de(e,X0,QP,me(Nin))}function Wqe(e,n){var t,i,r,c,o,f,l,a,h;if(r=e.i,o=r.o.a,c=r.o.b,o<=0&&c<=0)return ae(),gc;switch(a=e.n.a,h=e.n.b,f=e.o.a,t=e.o.b,n.g){case 2:case 1:if(a<0)return ae(),un;if(a+f>o)return ae(),hn;break;case 4:case 3:if(h<0)return ae(),tn;if(h+t>c)return ae(),On}return l=(a+f/2)/o,i=(h+t/2)/c,l+i<=1&&l-i<=0?(ae(),un):l+i>=1&&l-i>=0?(ae(),hn):i<.5?(ae(),tn):(ae(),On)}function $Pn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C;for(t=!1,h=ne(he(M(n,(be(),ab)))),T=i1*h,r=new A(n.b);r.al+T&&(C=w.g+k.g,k.a=(k.g*k.a+w.g*w.a)/C,k.g=C,w.f=k,t=!0)),c=f,w=k;return t}function Xqe(e,n,t,i,r,c,o){var f,l,a,h,w,k;for(k=new s2,a=n.Kc();a.Ob();)for(f=u(a.Pb(),839),w=new A(f.wf());w.a0?f.a?(a=f.b.rf().b,r>a&&(e.v||f.c.d.c.length==1?(o=(r-a)/2,f.d.d=o,f.d.a=o):(t=u(ve(f.c.d,0),181).rf().b,i=(t-a)/2,f.d.d=y.Math.max(0,i),f.d.a=r-i-a))):f.d.a=e.t+r:R5(e.u)&&(c=nne(f.b),c.d<0&&(f.d.d=-c.d),c.d+c.a>f.b.rf().b&&(f.d.a=c.d+c.a-f.b.rf().b))}function NPn(e,n){var t;switch(w7(e)){case 6:return Ni(n);case 7:return Fb(n);case 8:return Lb(n);case 3:return Array.isArray(n)&&(t=w7(n),!(t>=14&&t<=16));case 11:return n!=null&&typeof n===nB;case 12:return n!=null&&(typeof n===vk||typeof n==nB);case 0:return TN(n,e.__elementTypeId$);case 2:return oL(n)&&n.im!==ai;case 1:return oL(n)&&n.im!==ai||TN(n,e.__elementTypeId$);default:return!0}}function Yqe(e,n){var t,i,r,c;return i=y.Math.min(y.Math.abs(e.c-(n.c+n.b)),y.Math.abs(e.c+e.b-n.c)),c=y.Math.min(y.Math.abs(e.d-(n.d+n.a)),y.Math.abs(e.d+e.a-n.d)),t=y.Math.abs(e.c+e.b/2-(n.c+n.b/2)),t>e.b/2+n.b/2||(r=y.Math.abs(e.d+e.a/2-(n.d+n.a/2)),r>e.a/2+n.a/2)?1:t==0&&r==0?0:t==0?c/r+1:r==0?i/t+1:y.Math.min(i/t,c/r)+1}function Qqe(e,n){var t,i,r,c,o,f;return r=jJ(e),f=jJ(n),r==f?e.e==n.e&&e.a<54&&n.a<54?e.fn.f?1:0:(i=e.e-n.e,t=(e.d>0?e.d:y.Math.floor((e.a-1)*oGe)+1)-(n.d>0?n.d:y.Math.floor((n.a-1)*oGe)+1),t>i+1?r:t0&&(o=Ag(o,vHe(i))),ANe(c,o))):r0&&e.d!=(n6(),wq)&&(f+=o*(i.d.a+e.a[n.b][i.b]*(n.d.a-i.d.a)/t)),t>0&&e.d!=(n6(),dq)&&(l+=o*(i.d.b+e.a[n.b][i.b]*(n.d.b-i.d.b)/t)));switch(e.d.g){case 1:return new je(f/c,n.d.b);case 2:return new je(n.d.a,l/c);default:return new je(f/c,l/c)}}function Jqe(e,n){zv();var t,i,r,c,o;if(o=u(M(e.i,(be(),ei)),98),c=e.j.g-n.j.g,c!=0||!(o==(Hi(),Nd)||o==ia||o==Zc))return 0;if(o==(Hi(),Nd)&&(t=u(M(e,hh),19),i=u(M(n,hh),19),t&&i&&(r=t.a-i.a,r!=0)))return r;switch(e.j.g){case 1:return gi(e.n.a,n.n.a);case 2:return gi(e.n.b,n.n.b);case 3:return gi(n.n.a,e.n.a);case 4:return gi(n.n.b,e.n.b);default:throw I(new ec(zie))}}function Zqe(e){var n,t,i,r,c,o;for(t=(!e.a&&(e.a=new bi(Do,e,5)),e.a).i+2,o=new tu(t),se(o,new je(e.j,e.k)),ti(new We(null,(!e.a&&(e.a=new bi(Do,e,5)),new Ye(e.a,16))),new U8e(o)),se(o,new je(e.b,e.c)),n=1;n0&&(A7(l,!1,(Ar(),Ao)),A7(l,!0,cf)),Tu(n.g,new VEe(e,t)),jt(e.g,n,t)}function nHe(){nHe=U;var e;for(Nue=D(O($n,1),nt,25,15,[-1,-1,30,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5]),GK=V($n,nt,25,37,15,1),EXe=D(O($n,1),nt,25,15,[-1,-1,63,40,32,28,25,23,21,20,19,19,18,18,17,17,16,16,16,15,15,15,15,14,14,14,14,14,14,13,13,13,13,13,13,13,13]),_ue=V(I1,SB,25,37,14,1),e=2;e<=36;e++)GK[e]=ci(y.Math.pow(e,Nue[e])),_ue[e]=X7(yP,GK[e])}function BPn(e){var n;if((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a).i!=1)throw I(new rn(lUe+(!e.a&&(e.a=new fe(Gt,e,6,6)),e.a).i));return n=new Lu,S7(u(K((!e.b&&(e.b=new Xe(An,e,4,7)),e.b),0),82))&&pr(n,NVe(e,S7(u(K((!e.b&&(e.b=new Xe(An,e,4,7)),e.b),0),82)),!1)),S7(u(K((!e.c&&(e.c=new Xe(An,e,5,8)),e.c),0),82))&&pr(n,NVe(e,S7(u(K((!e.c&&(e.c=new Xe(An,e,5,8)),e.c),0),82)),!0)),n}function tHe(e,n){var t,i,r,c,o;for(n.d?r=e.a.c==(wl(),hb)?ic(n.b):pi(n.b):r=e.a.c==(wl(),dh)?ic(n.b):pi(n.b),c=!1,i=new En(Cn(r.a.Kc(),new J));Un(i);)if(t=u(_n(i),17),o=ke(e.a.f[e.a.g[n.b.p].p]),!(!o&&!gr(t)&&t.c.i.c==t.d.i.c)&&!(ke(e.a.n[e.a.g[n.b.p].p])||ke(e.a.n[e.a.g[n.b.p].p]))&&(c=!0,oa(e.b,e.a.g[X9n(t,n.b).p])))return n.c=!0,n.a=t,n;return n.c=c,n.a=null,n}function RPn(e,n,t,i,r){var c,o,f,l,a,h,w;for(He(),Oi(e,new O3e),f=new zi(e,0),w=new oe,c=0;f.bc*2?(h=new LM(w),a=Bu(o)/ms(o),l=Q_(h,n,new Qp,t,i,r,a),Mt(bf(h.e),l),w.c=V(pn,pe,1,0,5,1),c=0,w.c[w.c.length]=h,w.c[w.c.length]=o,c=Bu(h)*ms(h)+Bu(o)*ms(o)):(w.c[w.c.length]=o,c+=Bu(o)*ms(o));return w}function Pte(e,n,t){var i,r,c,o,f,l,a;if(i=t.gc(),i==0)return!1;if(e.ej())if(l=e.fj(),HZ(e,n,t),o=i==1?e.Zi(3,null,t.Kc().Pb(),n,l):e.Zi(5,null,t,n,l),e.bj()){for(f=i<100?null:new Ah(i),c=n+i,r=n;r0){for(o=0;o>16==-15&&e.Cb.nh()&&dF(new fF(e.Cb,9,13,t,e.c,nh(ts(u(e.Cb,59)),e))):_(e.Cb,88)&&e.Db>>16==-23&&e.Cb.nh()&&(n=e.c,_(n,88)||(n=(Ke(),No)),_(t,88)||(t=(Ke(),No)),dF(new fF(e.Cb,9,10,t,n,nh(Bc(u(e.Cb,26)),e)))))),e.c}function KPn(e,n){var t,i,r,c,o,f,l,a,h,w;for(In(n,"Hypernodes processing",1),r=new A(e.b);r.at);return r}function rHe(e,n){var t,i,r;i=cs(e.d,1)!=0,!ke(ye(M(n.j,(re(),rb))))&&!ke(ye(M(n.j,Tp)))||X(M(n.j,(be(),w1)))===X((ya(),g1))?n.c.Tf(n.e,i):i=ke(ye(M(n.j,rb))),fk(e,n,i,!0),ke(ye(M(n.j,Tp)))&&te(n.j,Tp,(cn(),!1)),ke(ye(M(n.j,rb)))&&(te(n.j,rb,(cn(),!1)),te(n.j,Tp,!0)),t=c_(e,n);do{if($J(e),t==0)return 0;i=!i,r=t,fk(e,n,i,!1),t=c_(e,n)}while(r>t);return r}function cHe(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T;if(n==t)return!0;if(n=_ne(e,n),t=_ne(e,t),i=IN(n),i){if(h=IN(t),h!=i)return h?(l=i.Dj(),T=h.Dj(),l==T&&l!=null):!1;if(o=(!n.d&&(n.d=new bi($r,n,1)),n.d),c=o.i,k=(!t.d&&(t.d=new bi($r,t,1)),t.d),c==k.i){for(a=0;a0,f=wS(n,c),cX(t?f.b:f.g,n),Ng(f).c.length==1&&ri(i,f,i.c.b,i.c),r=new Gi(c,n),Vh(e.o,r),ju(e.e.a,c))}function fHe(e,n){var t,i,r,c,o,f,l;return i=y.Math.abs(DC(e.b).a-DC(n.b).a),f=y.Math.abs(DC(e.b).b-DC(n.b).b),r=0,l=0,t=1,o=1,i>e.b.b/2+n.b.b/2&&(r=y.Math.min(y.Math.abs(e.b.c-(n.b.c+n.b.b)),y.Math.abs(e.b.c+e.b.b-n.b.c)),t=1-r/i),f>e.b.a/2+n.b.a/2&&(l=y.Math.min(y.Math.abs(e.b.d-(n.b.d+n.b.a)),y.Math.abs(e.b.d+e.b.a-n.b.d)),o=1-l/f),c=y.Math.min(t,o),(1-c)*y.Math.sqrt(i*i+f*f)}function UPn(e){var n,t,i,r;for(Y_(e,e.e,e.f,(g0(),m1),!0,e.c,e.i),Y_(e,e.e,e.f,m1,!1,e.c,e.i),Y_(e,e.e,e.f,Ip,!0,e.c,e.i),Y_(e,e.e,e.f,Ip,!1,e.c,e.i),XPn(e,e.c,e.e,e.f,e.i),i=new zi(e.i,0);i.b=65;t--)il[t]=t-65<<24>>24;for(i=122;i>=97;i--)il[i]=i-97+26<<24>>24;for(r=57;r>=48;r--)il[r]=r-48+52<<24>>24;for(il[43]=62,il[47]=63,c=0;c<=25;c++)jh[c]=65+c&si;for(o=26,l=0;o<=51;++o,l++)jh[o]=97+l&si;for(e=52,f=0;e<=61;++e,f++)jh[e]=48+f&si;jh[62]=43,jh[63]=47}function WPn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j;if(e.dc())return new tr;for(a=0,w=0,r=e.Kc();r.Ob();)i=u(r.Pb(),37),c=i.f,a=y.Math.max(a,c.a),w+=c.a*c.b;for(a=y.Math.max(a,y.Math.sqrt(w)*ne(he(M(u(e.Kc().Pb(),37),(be(),Lx))))),k=0,j=0,l=0,t=n,f=e.Kc();f.Ob();)o=u(f.Pb(),37),h=o.f,k+h.a>a&&(k=0,j+=l+n,l=0),$6(o,k,j),t=y.Math.max(t,k+h.a),l=y.Math.max(l,h.b),k+=h.a+n;return new je(t+n,j+l+n)}function XPn(e,n,t,i,r){var c,o,f,l,a,h,w;for(o=new A(n);o.ac)return ae(),hn;break;case 4:case 3:if(l<0)return ae(),tn;if(l+e.f>r)return ae(),On}return o=(f+e.g/2)/c,t=(l+e.f/2)/r,o+t<=1&&o-t<=0?(ae(),un):o+t>=1&&o-t>=0?(ae(),hn):t<.5?(ae(),tn):(ae(),On)}function YPn(e,n,t,i,r){var c,o;if(c=or(ji(n[0],Ir),ji(i[0],Ir)),e[0]=Fn(c),c=_h(c,32),t>=r){for(o=1;o0&&(r.b[o++]=0,r.b[o++]=c.b[0]-1),n=1;n0&&(sD(l,l.d-r.d),r.c==(wf(),p1)&&zfn(l,l.a-r.d),l.d<=0&&l.i>0&&ri(n,l,n.c.b,n.c)));for(c=new A(e.f);c.a0&&(GE(f,f.i-r.d),r.c==(wf(),p1)&&Ufn(f,f.b-r.d),f.i<=0&&f.d>0&&ri(t,f,t.c.b,t.c)))}function QPn(e,n,t){var i,r,c,o,f,l,a,h;for(In(t,"Processor compute fanout",1),Wu(e.b),Wu(e.a),f=null,c=ct(n.b,0);!f&&c.b!=c.d.c;)a=u(rt(c),86),ke(ye(M(a,(Ac(),Xw))))&&(f=a);for(l=new Vt,ri(l,f,l.c.b,l.c),yVe(e,l),h=ct(n.b,0);h.b!=h.d.c;)a=u(rt(h),86),o=Vn(M(a,(Ac(),e9))),r=Vc(e.b,o)!=null?u(Vc(e.b,o),19).a:0,te(a,oI,le(r)),i=1+(Vc(e.a,o)!=null?u(Vc(e.a,o),19).a:0),te(a,Jnn,le(i));Tn(t)}function JPn(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T;for(k=L7n(e,t),l=0;l0),i.a.Xb(i.c=--i.b),w>k+l&&ys(i);for(o=new A(j);o.a0),i.a.Xb(i.c=--i.b)}}function ZPn(){gt();var e,n,t,i,r,c;if(eG)return eG;for(e=new Ps(4),vw(e,t1(OK,!0)),q6(e,t1("M",!0)),q6(e,t1("C",!0)),c=new Ps(4),i=0;i<11;i++)Uc(c,i,i);return n=new Ps(4),vw(n,t1("M",!0)),Uc(n,4448,4607),Uc(n,65438,65439),r=new M5(2),hd(r,e),hd(r,P9),t=new M5(2),t.$l(MC(c,t1("L",!0))),t.$l(n),t=new Xb(3,t),t=new qY(r,t),eG=t,eG}function eAn(e){var n,t;if(n=Vn(Te(e,(ht(),s9))),!CLe(n,e)&&!Y1(e,m4)&&((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a).i!=0||ke(ye(Te(e,Kj)))))if(n==null||aw(n).length==0){if(!CLe(wn,e))throw t=Qn(Qn(new Cs("Unable to load default layout algorithm "),wn)," for unconfigured node "),bP(e,t),I(new hg(t.a))}else throw t=Qn(Qn(new Cs("Layout algorithm '"),n),"' not found for "),bP(e,t),I(new hg(t.a))}function D_(e){var n,t,i,r,c,o,f,l,a,h,w,k,j;if(t=e.i,n=e.n,e.b==0)for(j=t.c+n.b,k=t.b-n.b-n.c,o=e.a,l=0,h=o.length;l0&&(w-=i[0]+e.c,i[0]+=e.c),i[2]>0&&(w-=i[2]+e.c),i[1]=y.Math.max(i[1],w),PC(e.a[1],t.c+n.b+i[0]-(i[1]-w)/2,i[1]);for(c=e.a,f=0,a=c.length;f0?(e.n.c.length-1)*e.i:0,i=new A(e.n);i.a1)for(i=ct(r,0);i.b!=i.d.c;)for(t=u(rt(i),231),c=0,l=new A(t.e);l.a0&&(n[0]+=e.c,w-=n[0]),n[2]>0&&(w-=n[2]+e.c),n[1]=y.Math.max(n[1],w),AC(e.a[1],i.d+t.d+n[0]-(n[1]-w)/2,n[1]);else for(T=i.d+t.d,j=i.a-t.d-t.a,o=e.a,l=0,h=o.length;l=0&&c!=t))throw I(new rn(Vk));for(r=0,l=0;l0||I0(r.b.d,e.b.d+e.b.a)==0&&i.b<0||I0(r.b.d+r.b.a,e.b.d)==0&&i.b>0){f=0;break}}else f=y.Math.min(f,dRe(e,r,i));f=y.Math.min(f,dHe(e,c,f,i))}return f}function bk(e,n){var t,i,r,c,o,f,l;if(e.b<2)throw I(new rn("The vector chain must contain at least a source and a target point."));for(r=(vn(e.b!=0),u(e.a.a.c,8)),YT(n,r.a,r.b),l=new o2((!n.a&&(n.a=new bi(Do,n,5)),n.a)),o=ct(e,1);o.ane(Of(o.g,o.d[0]).a)?(vn(l.b>0),l.a.Xb(l.c=--l.b),Rb(l,o),r=!0):f.e&&f.e.gc()>0&&(c=(!f.e&&(f.e=new oe),f.e).Mc(n),a=(!f.e&&(f.e=new oe),f.e).Mc(t),(c||a)&&((!f.e&&(f.e=new oe),f.e).Fc(o),++o.c));r||(i.c[i.c.length]=o)}function gHe(e){var n,t,i;if(vg(u(M(e,(be(),ei)),98)))for(t=new A(e.j);t.a>>0,"0"+n.toString(16)),i="\\x"+Ms(t,t.length-2,t.length)):e>=yr?(t=(n=e>>>0,"0"+n.toString(16)),i="\\v"+Ms(t,t.length-6,t.length)):i=""+String.fromCharCode(e&si)}return i}function L_(e,n){var t,i,r,c,o,f,l,a,h,w;if(o=e.e,l=n.e,l==0)return e;if(o==0)return n.e==0?n:new Tg(-n.e,n.d,n.a);if(c=e.d,f=n.d,c+f==2)return t=ji(e.a[0],Ir),i=ji(n.a[0],Ir),o<0&&(t=Mv(t)),l<0&&(i=Mv(i)),q7(Qh(t,i));if(r=c!=f?c>f?1:-1:aZ(e.a,n.a,c),r==-1)w=-l,h=o==l?iF(n.a,f,e.a,c):cF(n.a,f,e.a,c);else if(w=o,o==l){if(r==0)return n1(),V3;h=iF(e.a,c,n.a,f)}else h=cF(e.a,c,n.a,f);return a=new Tg(w,h.length,h),X5(a),a}function Lte(e){var n,t,i,r,c,o;for(this.e=new oe,this.a=new oe,t=e.b-1;t<3;t++)rv(e,0,u(kf(e,0),8));if(e.b<4)throw I(new rn("At (least dimension + 1) control points are necessary!"));for(this.b=3,this.d=!0,this.c=!1,zTn(this,e.b+this.b-1),o=new oe,c=new A(this.e),n=0;n=n.o&&t.f<=n.f||n.a*.5<=t.f&&n.a*1.5>=t.f){if(o=u(ve(n.n,n.n.c.length-1),211),o.e+o.d+t.g+r<=i&&(c=u(ve(n.n,n.n.c.length-1),211),c.f-e.f+t.f<=e.b||e.a.c.length==1))return $Z(n,t),!0;if(n.s+t.g<=i&&(n.t+n.d+t.f+r<=e.b||e.a.c.length==1))return se(n.b,t),f=u(ve(n.n,n.n.c.length-1),211),se(n.n,new nM(n.s,f.f+f.a+n.i,n.i)),gee(u(ve(n.n,n.n.c.length-1),211),t),lHe(n,t),!0}return!1}function mHe(e,n,t){var i,r,c,o;return e.ej()?(r=null,c=e.fj(),i=e.Zi(1,o=wF(e,n,t),t,n,c),e.bj()&&!(e.ni()&&o!=null?kt(o,t):X(o)===X(t))?(o!=null&&(r=e.dj(o,r)),r=e.cj(t,r),e.ij()&&(r=e.lj(o,t,r)),r?(r.Ei(i),r.Fi()):e.$i(i)):(e.ij()&&(r=e.lj(o,t,r)),r?(r.Ei(i),r.Fi()):e.$i(i)),o):(o=wF(e,n,t),e.bj()&&!(e.ni()&&o!=null?kt(o,t):X(o)===X(t))&&(r=null,o!=null&&(r=e.dj(o,null)),r=e.cj(t,r),r&&r.Fi()),o)}function F6(e,n){var t,i,r,c,o,f,l,a;n%=24,e.q.getHours()!=n&&(i=new y.Date(e.q.getTime()),i.setDate(i.getDate()+1),f=e.q.getTimezoneOffset()-i.getTimezoneOffset(),f>0&&(l=f/60|0,a=f%60,r=e.q.getDate(),t=e.q.getHours(),t+l>=24&&++r,c=new y.Date(e.q.getFullYear(),e.q.getMonth(),r,n+l,e.q.getMinutes()+a,e.q.getSeconds(),e.q.getMilliseconds()),e.q.setTime(c.getTime()))),o=e.q.getTime(),e.q.setTime(o+36e5),e.q.getHours()!=n&&e.q.setTime(o)}function fAn(e,n){var t,i,r,c,o;if(In(n,"Path-Like Graph Wrapping",1),e.b.c.length==0){Tn(n);return}if(r=new qne(e),o=(r.i==null&&(r.i=LJ(r,new nz)),ne(r.i)*r.f),t=o/(r.i==null&&(r.i=LJ(r,new nz)),ne(r.i)),r.b>t){Tn(n);return}switch(u(M(e,(be(),TH)),337).g){case 2:c=new iz;break;case 0:c=new ez;break;default:c=new rz}if(i=c.Vf(e,r),!c.Wf())switch(u(M(e,Xx),338).g){case 2:i=bRe(r,i);break;case 1:i=dBe(r,i)}uxn(e,r,i),Tn(n)}function lAn(e,n){var t,i,r,c;if(Wpn(e.d,e.e),e.c.a.$b(),ne(he(M(n.j,(be(),_x))))!=0||ne(he(M(n.j,_x)))!=0)for(t=A3,X(M(n.j,w1))!==X((ya(),g1))&&te(n.j,(re(),rb),(cn(),!0)),c=u(M(n.j,Hy),19).a,r=0;rr&&++a,se(o,(Qe(f+a,n.c.length),u(n.c[f+a],19))),l+=(Qe(f+a,n.c.length),u(n.c[f+a],19)).a-i,++t;t1&&(l>Bu(f)*ms(f)/2||o.b==0)&&(w=new LM(k),h=Bu(f)/ms(f),a=Q_(w,n,new Qp,t,i,r,h),Mt(bf(w.e),a),f=w,j.c[j.c.length]=w,l=0,k.c=V(pn,pe,1,0,5,1)));return wi(j,k),j}function dAn(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C;if(t.mh(n)&&(h=(j=n,j?u(i,49).xh(j):null),h))if(C=t.bh(n,e.a),T=n.t,T>1||T==-1)if(w=u(C,69),k=u(h,69),w.dc())k.$b();else for(o=!!Cr(n),c=0,f=e.a?w.Kc():w.Zh();f.Ob();)a=u(f.Pb(),56),r=u(k0(e,a),56),r?(o?(l=k.Xc(r),l==-1?k.Xh(c,r):c!=l&&k.ji(c,r)):k.Xh(c,r),++c):e.b&&!o&&(k.Xh(c,a),++c);else C==null?h.Wb(null):(r=k0(e,C),r==null?e.b&&!Cr(n)&&h.Wb(C):h.Wb(r))}function bAn(e,n){var t,i,r,c,o,f,l,a;for(t=new Lge,r=new En(Cn(ic(n).a.Kc(),new J));Un(r);)if(i=u(_n(r),17),!gr(i)&&(f=i.c.i,Jee(f,JA))){if(a=dte(e,f,JA,QA),a==-1)continue;t.b=y.Math.max(t.b,a),!t.a&&(t.a=new oe),se(t.a,f)}for(o=new En(Cn(pi(n).a.Kc(),new J));Un(o);)if(c=u(_n(o),17),!gr(c)&&(l=c.d.i,Jee(l,QA))){if(a=dte(e,l,QA,JA),a==-1)continue;t.d=y.Math.max(t.d,a),!t.c&&(t.c=new oe),se(t.c,l)}return t}function vHe(e){f3();var n,t,i,r;if(n=ci(e),e1e6)throw I(new rT("power of ten too big"));if(e<=vt)return E2(ck(im[1],n),n);for(i=ck(im[1],vt),r=i,t=Su(e-vt),n=ci(e%vt);$c(t,vt)>0;)r=Ag(r,i),t=Qh(t,vt);for(r=Ag(r,ck(im[1],n)),r=E2(r,vt),t=Su(e-vt);$c(t,vt)>0;)r=E2(r,vt),t=Qh(t,vt);return r=E2(r,n),r}function wAn(e,n){var t,i,r,c,o,f,l,a,h;for(In(n,"Hierarchical port dummy size processing",1),l=new oe,h=new oe,i=ne(he(M(e,(be(),Sp)))),t=i*2,c=new A(e.b);c.aa&&i>a)h=f,a=ne(n.p[f.p])+ne(n.d[f.p])+f.o.b+f.d.a;else{r=!1,t.n&&q1(t,"bk node placement breaks on "+f+" which should have been after "+h);break}if(!r)break}return t.n&&q1(t,n+" is feasible: "+r),r}function yAn(e,n,t,i){var r,c,o,f,l,a,h;for(f=-1,h=new A(e);h.a=x&&e.e[l.p]>T*e.b||R>=t*x)&&(k.c[k.c.length]=f,f=new oe,pr(o,c),c.a.$b(),a-=h,j=y.Math.max(j,a*e.b+C),a+=R,q=R,R=0,h=0,C=0);return new Gi(j,k)}function TAn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j;for(t=(a=new sa(e.c.b).a.vc().Kc(),new Pb(a));t.a.Ob();)n=(f=u(t.a.Pb(),42),u(f.dd(),149)),r=n.a,r==null&&(r=""),i=Y1n(e.c,r),!i&&r.length==0&&(i=Q5n(e)),i&&!cw(i.c,n,!1)&&ut(i.c,n);for(o=ct(e.a,0);o.b!=o.d.c;)c=u(rt(o),478),h=ZL(e.c,c.a),j=ZL(e.c,c.b),h&&j&&ut(h.c,new Gi(j,c.c));for(go(e.a),k=ct(e.b,0);k.b!=k.d.c;)w=u(rt(k),478),n=X1n(e.c,w.a),l=ZL(e.c,w.b),n&&l&&Ban(n,l,w.c);go(e.b)}function CAn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j;c=new X9(e),o=new B_e,r=(t7(o.g),t7(o.j),Wu(o.b),t7(o.d),t7(o.i),Wu(o.k),Wu(o.c),Wu(o.e),j=jRe(o,c,null),aKe(o,c),j),n&&(a=new X9(n),f=LAn(a),lne(r,D(O(Whe,1),pe,527,0,[f]))),k=!1,w=!1,t&&(a=new X9(t),lA in a.a&&(k=da(a,lA).ge().a),$Ue in a.a&&(w=da(a,$Ue).ge().a)),h=ije(O$e(new qm,k),w),mjn(new Jve,r,h),lA in c.a&&pf(c,lA,null),(k||w)&&(l=new Jp,wHe(h,l,k,w),pf(c,lA,l)),i=new l7e(o),h5n(new DW(r),i)}function MAn(e,n,t){var i,r,c,o,f,l,a,h,w;for(o=new V_e,a=D(O($n,1),nt,25,15,[0]),r=-1,c=0,i=0,l=0;l0){if(r<0&&h.a&&(r=l,c=a[0],i=0),r>=0){if(f=h.b,l==r&&(f-=i++,f==0))return 0;if(!jVe(n,a,h,f,o)){l=r-1,a[0]=c;continue}}else if(r=-1,!jVe(n,a,h,0,o))return 0}else{if(r=-1,Xi(h.c,0)==32){if(w=a[0],HDe(n,a),a[0]>w)continue}else if(upn(n,h.c,a[0])){a[0]+=h.c.length;continue}return 0}return uOn(o,t)?a[0]:0}function _6(e){var n,t,i,r,c,o,f,l;if(!e.f){if(l=new az,f=new az,n=j9,o=n.a.zc(e,n),o==null){for(c=new jn(Wr(e));c.e!=c.i.gc();)r=u(Sn(c),26),Yt(l,_6(r));n.a.Bc(e)!=null,n.a.gc()==0}for(i=(!e.s&&(e.s=new fe(Du,e,21,17)),new jn(e.s));i.e!=i.i.gc();)t=u(Sn(i),170),_(t,99)&&Bn(f,u(t,18));iw(f),e.r=new LSe(e,(u(K(Q((Kh(),Je).o),6),18),f.i),f.g),Yt(l,e.r),iw(l),e.f=new mg((u(K(Q(Je.o),5),18),l.i),l.g),ns(e).b&=-3}return e.f}function SAn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T;for(o=e.o,i=V($n,nt,25,o,15,1),r=V($n,nt,25,o,15,1),t=e.p,n=V($n,nt,25,t,15,1),c=V($n,nt,25,t,15,1),a=0;a=0&&!Rg(e,h,w);)--w;r[h]=w}for(j=0;j=0&&!Rg(e,f,T);)--f;c[T]=f}for(l=0;ln[k]&&ki[l]&&cP(e,l,k,!1,!0)}function Fte(e){var n,t,i,r,c,o,f,l;t=ke(ye(M(e,(jf(),QYe)))),c=e.a.c.d,f=e.a.d.d,t?(o=al(_i(new je(f.a,f.b),c),.5),l=al(vc(e.e),.5),n=_i(Mt(new je(c.a,c.b),o),l),hX(e.d,n)):(r=ne(he(M(e.a,cQe))),i=e.d,c.a>=f.a?c.b>=f.b?(i.a=f.a+(c.a-f.a)/2+r,i.b=f.b+(c.b-f.b)/2-r-e.e.b):(i.a=f.a+(c.a-f.a)/2+r,i.b=c.b+(f.b-c.b)/2+r):c.b>=f.b?(i.a=c.a+(f.a-c.a)/2+r,i.b=f.b+(c.b-f.b)/2+r):(i.a=c.a+(f.a-c.a)/2+r,i.b=c.b+(f.b-c.b)/2-r-e.e.b))}function Wc(e,n){var t,i,r,c,o,f,l;if(e==null)return null;if(c=e.length,c==0)return"";for(l=V(lo,vl,25,c,15,1),JQ(0,c,e.length),JQ(0,c,l.length),KPe(e,0,c,l,0),t=null,f=n,r=0,o=0;r0?Ms(t.a,0,c-1):""):e.substr(0,c-1):t?t.a:e}function jHe(e){n0(e,new ad(Qd(Wd(Yd(Xd(new $1,pd),"ELK DisCo"),"Layouter for arranging unconnected subgraphs. The subgraphs themselves are, by default, not laid out."),new hwe))),de(e,pd,XB,me(_se)),de(e,pd,YB,me(sq)),de(e,pd,X2,me(FYe)),de(e,pd,z0,me(Nse)),de(e,pd,kie,me(RYe)),de(e,pd,jie,me(BYe)),de(e,pd,yie,me(KYe)),de(e,pd,Eie,me(_Ye)),de(e,pd,xie,me(NYe)),de(e,pd,Iie,me(uq)),de(e,pd,Oie,me(Fse)),de(e,pd,Die,me(VA))}function Nte(e,n,t,i){var r,c,o,f,l,a,h,w,k;if(c=new Ta(e),F1(c,(dn(),Qc)),te(c,(be(),ei),(Hi(),Zc)),r=0,n){for(o=new Rc,te(o,(re(),Et),n),te(c,Et,n.i),Ei(o,(ae(),un)),lc(o,c),k=gl(n.e),a=k,h=0,w=a.length;h0)if(t-=i.length-n,t>=0){for(r.a+="0.";t>Cd.length;t-=Cd.length)ePe(r,Cd);FMe(r,Cd,ci(t)),Qn(r,i.substr(n))}else t=n-t,Qn(r,Ms(i,n,ci(t))),r.a+=".",Qn(r,S8(i,ci(t)));else{for(Qn(r,i.substr(n));t<-Cd.length;t+=Cd.length)ePe(r,Cd);FMe(r,Cd,ci(-t))}return r.a}function _te(e,n,t,i){var r,c,o,f,l,a,h,w,k;return l=_i(new je(t.a,t.b),e),a=l.a*n.b-l.b*n.a,h=n.a*i.b-n.b*i.a,w=(l.a*i.b-l.b*i.a)/h,k=a/h,h==0?a==0?(r=Mt(new je(t.a,t.b),al(new je(i.a,i.b),.5)),c=Gh(e,r),o=Gh(Mt(new je(e.a,e.b),n),r),f=y.Math.sqrt(i.a*i.a+i.b*i.b)*.5,c=0&&w<=1&&k>=0&&k<=1?Mt(new je(e.a,e.b),al(new je(n.a,n.b),w)):null}function AAn(e,n,t){var i,r,c,o,f;if(i=u(M(e,(be(),lH)),21),t.a>n.a&&(i.Hc((lw(),Fj))?e.c.a+=(t.a-n.a)/2:i.Hc(Nj)&&(e.c.a+=t.a-n.a)),t.b>n.b&&(i.Hc((lw(),Bj))?e.c.b+=(t.b-n.b)/2:i.Hc(_j)&&(e.c.b+=t.b-n.b)),u(M(e,(re(),Jc)),21).Hc((xr(),so))&&(t.a>n.a||t.b>n.b))for(f=new A(e.a);f.an.a&&(i.Hc((lw(),Fj))?e.c.a+=(t.a-n.a)/2:i.Hc(Nj)&&(e.c.a+=t.a-n.a)),t.b>n.b&&(i.Hc((lw(),Bj))?e.c.b+=(t.b-n.b)/2:i.Hc(_j)&&(e.c.b+=t.b-n.b)),u(M(e,(re(),Jc)),21).Hc((xr(),so))&&(t.a>n.a||t.b>n.b))for(o=new A(e.a);o.an&&(r=0,c+=h.b+t,w.c[w.c.length]=h,h=new kQ(c,t),i=new qF(0,h.f,h,t),_M(h,i),r=0),i.b.c.length==0||l.f>=i.o&&l.f<=i.f||i.a*.5<=l.f&&i.a*1.5>=l.f?$Z(i,l):(o=new qF(i.s+i.r+t,h.f,h,t),_M(h,o),$Z(o,l)),r=l.i+l.g;return w.c[w.c.length]=h,w}function Jg(e){var n,t,i,r,c,o,f,l;if(!e.a){if(e.o=null,l=new x7e(e),n=new Z3e,t=j9,f=t.a.zc(e,t),f==null){for(o=new jn(Wr(e));o.e!=o.i.gc();)c=u(Sn(o),26),Yt(l,Jg(c));t.a.Bc(e)!=null,t.a.gc()==0}for(r=(!e.s&&(e.s=new fe(Du,e,21,17)),new jn(e.s));r.e!=r.i.gc();)i=u(Sn(r),170),_(i,322)&&Bn(n,u(i,34));iw(n),e.k=new $Se(e,(u(K(Q((Kh(),Je).o),7),18),n.i),n.g),Yt(l,e.k),iw(l),e.a=new mg((u(K(Q(Je.o),4),18),l.i),l.g),ns(e).b&=-2}return e.a}function DAn(e,n,t,i,r,c,o){var f,l,a,h,w,k;return w=!1,l=xKe(t.q,n.f+n.b-t.q.f),k=r-(t.q.e+l-o),k=(Qe(c,e.c.length),u(e.c[c],200)).e,h=(f=B6(i,k,!1),f.a),h>n.b&&!a)?!1:((a||h<=n.b)&&(a&&h>n.b?(t.d=h,s7(t,$Be(t,h))):(Z_e(t.q,l),t.c=!0),s7(i,r-(t.s+t.r)),H7(i,t.q.e+t.q.d,n.f),_M(n,i),e.c.length>c&&(W7((Qe(c,e.c.length),u(e.c[c],200)),i),(Qe(c,e.c.length),u(e.c[c],200)).a.c.length==0&&Ua(e,c)),w=!0),w)}function Bte(e,n,t,i){var r,c,o,f,l,a,h;if(h=hu(e.e.Tg(),n),r=0,c=u(e.g,119),l=null,Er(),u(n,66).Oj()){for(f=0;fe.o.a&&(h=(l-e.o.a)/2,f.b=y.Math.max(f.b,h),f.c=y.Math.max(f.c,h))}}function LAn(e){var n,t,i,r,c,o,f,l;for(c=new nIe,vhn(c,(x2(),Pin)),i=(r=xF(e,V(ge,ie,2,0,6,1)),new K4(new ws(new $D(e,r).b)));i.b0?e.i:0)>n&&l>0&&(c=0,o+=l+e.i,r=y.Math.max(r,k),i+=l+e.i,l=0,k=0,t&&(++w,se(e.n,new nM(e.s,o,e.i))),f=0),k+=a.g+(f>0?e.i:0),l=y.Math.max(l,a.f),t&&gee(u(ve(e.n,w),211),a),c+=a.g+(f>0?e.i:0),++f;return r=y.Math.max(r,k),i+=l,t&&(e.r=r,e.d=i,yee(e.j)),new Xs(e.s,e.t,r,i)}function Kc(e,n,t,i,r){$l();var c,o,f,l,a,h,w,k,j;if(BY(e,"src"),BY(t,"dest"),k=is(e),l=is(t),oY((k.i&4)!=0,"srcType is not an array"),oY((l.i&4)!=0,"destType is not an array"),w=k.c,o=l.c,oY(w.i&1?w==o:(o.i&1)==0,"Array types don't match"),j=e.length,a=t.length,n<0||i<0||r<0||n+r>j||i+r>a)throw I(new eU);if(!(w.i&1)&&k!=l)if(h=J1(e),c=J1(t),X(e)===X(t)&&ni;)zt(c,f,h[--n]);else for(f=i+r;i0&&Cne(e,n,t,i,r,!0)}function B_(){B_=U,CXe=D(O($n,1),nt,25,15,[rr,1162261467,V6,1220703125,362797056,1977326743,V6,387420489,EP,214358881,429981696,815730721,1475789056,170859375,268435456,410338673,612220032,893871739,128e7,1801088541,113379904,148035889,191102976,244140625,308915776,387420489,481890304,594823321,729e6,887503681,V6,1291467969,1544804416,1838265625,60466176]),MXe=D(O($n,1),nt,25,15,[-1,-1,31,19,15,13,11,11,10,9,9,8,8,8,8,7,7,7,7,7,7,7,6,6,6,6,6,6,6,6,6,6,6,6,6,6,5])}function FAn(e){var n,t,i,r,c,o,f,l;for(r=new A(e.b);r.a=e.b.length?(c[r++]=o.b[i++],c[r++]=o.b[i++]):i>=o.b.length?(c[r++]=e.b[t++],c[r++]=e.b[t++]):o.b[i]0?e.i:0)),++n;for(W6n(e.n,l),e.d=t,e.r=i,e.g=0,e.f=0,e.e=0,e.o=Jt,e.p=Jt,c=new A(e.b);c.a0&&(r=(!e.n&&(e.n=new fe(uc,e,1,7)),u(K(e.n,0),137)).a,!r||Qn(Qn((n.a+=' "',n),r),'"'))),t=(!e.b&&(e.b=new Xe(An,e,4,7)),!(e.b.i<=1&&(!e.c&&(e.c=new Xe(An,e,5,8)),e.c.i<=1))),t?n.a+=" [":n.a+=" ",Qn(n,XW(new AD,new jn(e.b))),t&&(n.a+="]"),n.a+=tR,t&&(n.a+="["),Qn(n,XW(new AD,new jn(e.c))),t&&(n.a+="]"),n.a)}function R_(e,n){var t,i,r,c,o,f,l;if(e.a){if(f=e.a.ne(),l=null,f!=null?n.a+=""+f:(o=e.a.Dj(),o!=null&&(c=ll(o,Pu(91)),c!=-1?(l=o.substr(c),n.a+=""+Ms(o==null?Au:(nn(o),o),0,c)):n.a+=""+o)),e.d&&e.d.i!=0){for(r=!0,n.a+="<",i=new jn(e.d);i.e!=i.i.gc();)t=u(Sn(i),87),r?r=!1:n.a+=vr,R_(t,n);n.a+=">"}l!=null&&(n.a+=""+l)}else e.e?(f=e.e.zb,f!=null&&(n.a+=""+f)):(n.a+="?",e.b?(n.a+=" super ",R_(e.b,n)):e.f&&(n.a+=" extends ",R_(e.f,n)))}function BAn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn;for(ee=e.c,ue=n.c,t=tc(ee.a,e,0),i=tc(ue.a,n,0),R=u(O0(e,(Pr(),Ju)).Kc().Pb(),11),Ae=u(O0(e,ou).Kc().Pb(),11),G=u(O0(n,Ju).Kc().Pb(),11),sn=u(O0(n,ou).Kc().Pb(),11),L=gl(R.e),we=gl(Ae.g),q=gl(G.e),Ce=gl(sn.g),fw(e,i,ue),o=q,h=0,T=o.length;hh?new U1((wf(),Ww),t,n,a-h):a>0&&h>0&&(new U1((wf(),Ww),n,t,0),new U1(Ww,t,n,0))),o)}function CHe(e,n){var t,i,r,c,o,f;for(o=new rd(new N1(e.f.b).a);o.b;){if(c=E0(o),r=u(c.cd(),594),n==1){if(r.gf()!=(Ar(),Da)&&r.gf()!=Oa)continue}else if(r.gf()!=(Ar(),Ao)&&r.gf()!=cf)continue;switch(i=u(u(c.dd(),46).b,81),f=u(u(c.dd(),46).a,189),t=f.c,r.gf().g){case 2:i.g.c=e.e.a,i.g.b=y.Math.max(1,i.g.b+t);break;case 1:i.g.c=i.g.c+t,i.g.b=y.Math.max(1,i.g.b-t);break;case 4:i.g.d=e.e.b,i.g.a=y.Math.max(1,i.g.a+t);break;case 3:i.g.d=i.g.d+t,i.g.a=y.Math.max(1,i.g.a-t)}}}function RAn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C;for(f=V($n,nt,25,n.b.c.length,15,1),a=V(jq,ce,267,n.b.c.length,0,1),l=V(Zl,uh,10,n.b.c.length,0,1),w=e.a,k=0,j=w.length;k0&&l[i]&&(T=kg(e.b,l[i],r)),C=y.Math.max(C,r.c.c.b+T);for(c=new A(h.e);c.a1)throw I(new rn(Xk));l||(c=Kl(n,i.Kc().Pb()),o.Fc(c))}return YJ(e,gne(e,n,t),o)}function HAn(e,n){var t,i,r,c;for(M3n(n.b.j),ti(yu(new We(null,new Ye(n.d,16)),new cme),new ume),c=new A(n.d);c.ae.o.b||(t=dc(e,hn),f=n.d+n.a+(t.gc()-1)*o,f>e.o.b)))}function H_(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T;if(o=e.e,l=n.e,o==0)return n;if(l==0)return e;if(c=e.d,f=n.d,c+f==2)return t=ji(e.a[0],Ir),i=ji(n.a[0],Ir),o==l?(h=or(t,i),T=Fn(h),j=Fn(Hb(h,32)),j==0?new Wa(o,T):new Tg(o,2,D(O($n,1),nt,25,15,[T,j]))):q7(o<0?Qh(i,t):Qh(t,i));if(o==l)k=o,w=c>=f?cF(e.a,c,n.a,f):cF(n.a,f,e.a,c);else{if(r=c!=f?c>f?1:-1:aZ(e.a,n.a,c),r==0)return n1(),V3;r==1?(k=o,w=iF(e.a,c,n.a,f)):(k=l,w=iF(n.a,f,e.a,c))}return a=new Tg(k,w.length,w),X5(a),a}function V_(e,n,t,i,r,c,o){var f,l,a,h,w,k,j;return w=ke(ye(M(n,(be(),Dle)))),k=null,c==(Pr(),Ju)&&i.c.i==t?k=i.c:c==ou&&i.d.i==t&&(k=i.d),a=o,!a||!w||k?(h=(ae(),gc),k?h=k.j:vg(u(M(t,ei),98))&&(h=c==Ju?un:hn),l=UAn(e,n,t,c,h,i),f=nF((ar(t),i)),c==Ju?(sr(f,u(ve(l.j,0),11)),Ki(f,r)):(sr(f,r),Ki(f,u(ve(l.j,0),11))),a=new VFe(i,f,l,u(M(l,(re(),Et)),11),c,!k)):(se(a.e,i),j=y.Math.max(ne(he(M(a.d,ah))),ne(he(M(i,ah)))),te(a.d,ah,j)),Be(e.a,i,new dC(a.d,n,c)),a}function hP(e,n){var t,i,r,c,o,f,l,a,h,w;if(h=null,e.d&&(h=u(Vc(e.d,n),138)),!h){if(c=e.a.Mh(),w=c.i,!e.d||t5(e.d)!=w){for(l=new Ln,e.d&&s6(l,e.d),a=l.f.c+l.g.c,f=a;f0?(j=(T-1)*t,f&&(j+=i),h&&(j+=i),j=e.b[r+1])r+=2;else if(t0)for(i=new _u(u(Tt(e.a,c),21)),He(),Oi(i,new Hz(n)),r=new zi(c.b,0);r.bee)?(l=2,o=vt):l==0?(l=1,o=we):(l=0,o=we)):(j=we>=o||o-we0?1:i0(isNaN(i),isNaN(0)))>=0^(Yo(Cl),(y.Math.abs(f)<=Cl||f==0||isNaN(f)&&isNaN(0)?0:f<0?-1:f>0?1:i0(isNaN(f),isNaN(0)))>=0)?y.Math.max(f,i):(Yo(Cl),(y.Math.abs(i)<=Cl||i==0||isNaN(i)&&isNaN(0)?0:i<0?-1:i>0?1:i0(isNaN(i),isNaN(0)))>0?y.Math.sqrt(f*f+i*i):-y.Math.sqrt(f*f+i*i))}function hd(e,n){var t,i,r,c,o,f;if(n){if(!e.a&&(e.a=new nT),e.e==2){eT(e.a,n);return}if(n.e==1){for(r=0;r=yr?Lr(t,DZ(i)):hv(t,i&si),o=new OL(10,null,0),$wn(e.a,o,f-1)):(t=(o.bm().length+c,new Z4),Lr(t,o.bm())),n.e==0?(i=n._l(),i>=yr?Lr(t,DZ(i)):hv(t,i&si)):Lr(t,n.bm()),u(o,521).b=t.a}}function DHe(e){var n,t,i,r,c;return e.g!=null?e.g:e.a<32?(e.g=mOn(Su(e.f),ci(e.e)),e.g):(r=Z_((!e.c&&(e.c=D7(e.f)),e.c),0),e.e==0?r:(n=(!e.c&&(e.c=D7(e.f)),e.c).e<0?2:1,t=r.length,i=-e.e+t-n,c=new Ph,c.a+=""+r,e.e>0&&i>=-6?i>=0?J8(c,t-ci(e.e),String.fromCharCode(46)):(c.a=Ms(c.a,0,n-1)+"0."+S8(c.a,n-1),J8(c,n+1,mo(Cd,0,-ci(i)-1))):(t-n>=1&&(J8(c,n,String.fromCharCode(46)),++t),J8(c,t,String.fromCharCode(69)),i>0&&J8(c,++t,String.fromCharCode(43)),J8(c,++t,""+B5(Su(i)))),e.g=c.a,e.g))}function uxn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x;if(!t.dc()){for(f=0,k=0,i=t.Kc(),T=u(i.Pb(),19).a;f1&&(l=a.mg(l,e.a,f));return l.c.length==1?u(ve(l,l.c.length-1),220):l.c.length==2?XAn((Qe(0,l.c.length),u(l.c[0],220)),(Qe(1,l.c.length),u(l.c[1],220)),o,c):null}function $He(e){var n,t,i,r,c,o;for(Tu(e.a,new swe),t=new A(e.a);t.a=y.Math.abs(i.b)?(i.b=0,c.d+c.a>o.d&&c.do.c&&c.c0){if(n=new CW(e.i,e.g),t=e.i,c=t<100?null:new Ah(t),e.ij())for(i=0;i0){for(f=e.g,a=e.i,e6(e),c=a<100?null:new Ah(a),i=0;i>13|(e.m&15)<<9,r=e.m>>4&8191,c=e.m>>17|(e.h&255)<<5,o=(e.h&1048320)>>8,f=n.l&8191,l=n.l>>13|(n.m&15)<<9,a=n.m>>4&8191,h=n.m>>17|(n.h&255)<<5,w=(n.h&1048320)>>8,Ce=t*f,Ae=i*f,sn=r*f,ln=c*f,Mn=o*f,l!=0&&(Ae+=t*l,sn+=i*l,ln+=r*l,Mn+=c*l),a!=0&&(sn+=t*a,ln+=i*a,Mn+=r*a),h!=0&&(ln+=t*h,Mn+=i*h),w!=0&&(Mn+=t*w),j=Ce&ss,T=(Ae&511)<<13,k=j+T,x=Ce>>22,L=Ae>>9,q=(sn&262143)<<4,R=(ln&31)<<17,C=x+L+q+R,ee=sn>>18,ue=ln>>5,we=(Mn&4095)<<8,G=ee+ue+we,C+=k>>22,k&=ss,G+=C>>22,C&=ss,G&=Pa,fu(k,C,G)}function LHe(e){var n,t,i,r,c,o,f;if(f=u(ve(e.j,0),11),f.g.c.length!=0&&f.e.c.length!=0)throw I(new ec("Interactive layout does not support NORTH/SOUTH ports with incoming _and_ outgoing edges."));if(f.g.c.length!=0){for(c=Jt,t=new A(f.g);t.a4)if(e.wj(n)){if(e.rk()){if(r=u(n,49),i=r.Ug(),l=i==e.e&&(e.Dk()?r.Og(r.Vg(),e.zk())==e.Ak():-1-r.Vg()==e.aj()),e.Ek()&&!l&&!i&&r.Zg()){for(c=0;c0&&(a=e.n.a/c);break;case 2:case 4:r=e.i.o.b,r>0&&(a=e.n.b/r)}te(e,(re(),ub),a)}if(l=e.o,o=e.a,i)o.a=i.a,o.b=i.b,e.d=!0;else if(n!=el&&n!=j1&&f!=gc)switch(f.g){case 1:o.a=l.a/2;break;case 2:o.a=l.a,o.b=l.b/2;break;case 3:o.a=l.a/2,o.b=l.b;break;case 4:o.b=l.b/2}else o.a=l.a/2,o.b=l.b/2}function K6(e){var n,t,i,r,c,o,f,l,a,h;if(e.ej())if(h=e.Vi(),l=e.fj(),h>0)if(n=new NJ(e.Gi()),t=h,c=t<100?null:new Ah(t),D8(e,t,n.g),r=t==1?e.Zi(4,K(n,0),null,0,l):e.Zi(6,n,null,-1,l),e.bj()){for(i=new jn(n);i.e!=i.i.gc();)c=e.dj(Sn(i),c);c?(c.Ei(r),c.Fi()):e.$i(r)}else c?(c.Ei(r),c.Fi()):e.$i(r);else D8(e,e.Vi(),e.Wi()),e.$i(e.Zi(6,(He(),Sr),null,-1,l));else if(e.bj())if(h=e.Vi(),h>0){for(f=e.Wi(),a=h,D8(e,h,f),c=a<100?null:new Ah(a),i=0;ie.d[o.p]&&(t+=LQ(e.b,c)*u(l.b,19).a,Vh(e.a,le(c)));for(;!Y4(e.a);)hJ(e.b,u(w2(e.a),19).a)}return t}function mxn(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x;for(w=new Kr(u(Te(e,(VS(),t1e)),8)),w.a=y.Math.max(w.a-t.b-t.c,0),w.b=y.Math.max(w.b-t.d-t.a,0),r=he(Te(e,Zhe)),(r==null||(nn(r),r<=0))&&(r=1.3),f=new oe,T=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));T.e!=T.i.gc();)j=u(Sn(T),33),o=new hMe(j),f.c[f.c.length]=o;switch(k=u(Te(e,yV),311),k.g){case 3:x=RPn(f,n,w.a,w.b,(a=i,nn(r),a));break;case 1:x=hAn(f,n,w.a,w.b,(h=i,nn(r),h));break;default:x=kxn(f,n,w.a,w.b,(l=i,nn(r),l))}c=new LM(x),C=Q_(c,n,t,w.a,w.b,i,(nn(r),r)),q0(e,C.a,C.b,!1,!0)}function vxn(e,n){var t,i,r,c;t=n.b,c=new _u(t.j),r=0,i=t.j,i.c=V(pn,pe,1,0,5,1),a0(u(ed(e.b,(ae(),tn),(S0(),tb)),15),t),r=G7(c,r,new F2e,i),a0(u(ed(e.b,tn,d1),15),t),r=G7(c,r,new L2e,i),a0(u(ed(e.b,tn,nb),15),t),a0(u(ed(e.b,hn,tb),15),t),a0(u(ed(e.b,hn,d1),15),t),r=G7(c,r,new N2e,i),a0(u(ed(e.b,hn,nb),15),t),a0(u(ed(e.b,On,tb),15),t),r=G7(c,r,new _2e,i),a0(u(ed(e.b,On,d1),15),t),r=G7(c,r,new B2e,i),a0(u(ed(e.b,On,nb),15),t),a0(u(ed(e.b,un,tb),15),t),r=G7(c,r,new Y2e,i),a0(u(ed(e.b,un,d1),15),t),a0(u(ed(e.b,un,nb),15),t)}function yxn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C;for(In(n,"Layer size calculation",1),h=Jt,a=hi,r=!1,f=new A(e.b);f.a.5?L-=o*2*(T-.5):T<.5&&(L+=c*2*(.5-T)),r=f.d.b,Lx.a-C-h&&(L=x.a-C-h),f.n.a=n+L}}function kxn(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T,C,x;for(f=V(Ri,Br,25,e.c.length,15,1),k=new $C(new I3e),Tee(k,e),a=0,C=new oe;k.b.c.length!=0;)if(o=u(k.b.c.length==0?null:ve(k.b,0),157),a>1&&Bu(o)*ms(o)/2>f[0]){for(c=0;cf[c];)++c;T=new Rl(C,0,c+1),w=new LM(T),h=Bu(o)/ms(o),l=Q_(w,n,new Qp,t,i,r,h),Mt(bf(w.e),l),Ev(u3(k,w)),j=new Rl(C,c+1,C.c.length),Tee(k,j),C.c=V(pn,pe,1,0,5,1),a=0,aPe(f,f.length,0)}else x=k.b.c.length==0?null:ve(k.b,0),x!=null&&PF(k,0),a>0&&(f[a]=f[a-1]),f[a]+=Bu(o)*ms(o),++a,C.c[C.c.length]=o;return C}function jxn(e){var n,t,i,r,c;if(i=u(M(e,(be(),bu)),163),i==(to(),b1)){for(t=new En(Cn(ic(e).a.Kc(),new J));Un(t);)if(n=u(_n(t),17),!jOe(n))throw I(new hg(cR+z7(e)+"' has its layer constraint set to FIRST_SEPARATE, but has at least one incoming edge. FIRST_SEPARATE nodes must not have incoming edges."))}else if(i==_w){for(c=new En(Cn(pi(e).a.Kc(),new J));Un(c);)if(r=u(_n(c),17),!jOe(r))throw I(new hg(cR+z7(e)+"' has its layer constraint set to LAST_SEPARATE, but has at least one outgoing edge. LAST_SEPARATE nodes must not have outgoing edges."))}}function Exn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T;for(In(n,"Label dummy removal",1),i=ne(he(M(e,(be(),gm)))),r=ne(he(M(e,zw))),a=u(M(e,Bs),103),l=new A(e.b);l.a0&&qBe(e,f,w);for(r=new A(w);r.a>19&&(n=qv(n),l=!l),o=jCn(n),c=!1,r=!1,i=!1,e.h==Ck&&e.m==0&&e.l==0)if(r=!0,c=!0,o==-1)e=iCe((Sv(),Pue)),i=!0,l=!l;else return f=Kne(e,o),l&&_F(f),t&&(f1=fu(0,0,0)),f;else e.h>>19&&(c=!0,e=qv(e),i=!0,l=!l);return o!=-1?f5n(e,o,l,c,t):Oee(e,n)<0?(t&&(c?f1=qv(e):f1=fu(e.l,e.m,e.h)),fu(0,0,0)):dPn(i?e:fu(e.l,e.m,e.h),n,l,c,r,t)}function dP(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T;if(e.e&&e.c.cn.f||n.g>e.f)){for(t=0,i=0,o=e.w.a.ec().Kc();o.Ob();)r=u(o.Pb(),11),YF(hc(D(O(xi,1),ie,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&++t;for(f=e.r.a.ec().Kc();f.Ob();)r=u(f.Pb(),11),YF(hc(D(O(xi,1),ie,8,0,[r.i.n,r.n,r.a])).b,n.g,n.f)&&--t;for(l=n.w.a.ec().Kc();l.Ob();)r=u(l.Pb(),11),YF(hc(D(O(xi,1),ie,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&++i;for(c=n.r.a.ec().Kc();c.Ob();)r=u(c.Pb(),11),YF(hc(D(O(xi,1),ie,8,0,[r.i.n,r.n,r.a])).b,e.g,e.f)&&--i;t=0)return r=O6n(e,n.substr(1,o-1)),h=n.substr(o+1,l-(o+1)),SOn(e,h,r)}else{if(t=-1,Due==null&&(Due=new RegExp("\\d")),Due.test(String.fromCharCode(f))&&(t=BX(n,Pu(46),l-1),t>=0)){i=u(tF(e,b$e(e,n.substr(1,t-1)),!1),58),a=0;try{a=$s(n.substr(t+1),rr,vt)}catch(k){throw k=qt(k),_(k,127)?(c=k,I(new CM(c))):I(k)}if(a=0)return t;switch(b0(Vr(e,t))){case 2:{if(Re("",Ja(e,t.Hj()).ne())){if(l=z8(Vr(e,t)),f=wv(Vr(e,t)),h=Wne(e,n,l,f),h)return h;for(r=kte(e,n),o=0,w=r.gc();o1)throw I(new rn(Xk));for(h=hu(e.e.Tg(),n),i=u(e.g,119),o=0;o1,a=new _f(k.b);fc(a.a)||fc(a.b);)l=u(fc(a.a)?P(a.a):P(a.b),17),w=l.c==k?l.d:l.c,y.Math.abs(hc(D(O(xi,1),ie,8,0,[w.i.n,w.n,w.a])).b-o.b)>1&&MMn(e,l,o,c,k)}}function Lxn(e){var n,t,i,r,c,o;if(r=new zi(e.e,0),i=new zi(e.a,0),e.d)for(t=0;tBR;){for(c=n,o=0;y.Math.abs(n-c)0),r.a.Xb(r.c=--r.b),JPn(e,e.b-o,c,i,r),vn(r.b0),i.a.Xb(i.c=--i.b)}if(!e.d)for(t=0;t0?(e.f[h.p]=j/(h.e.c.length+h.g.c.length),e.c=y.Math.min(e.c,e.f[h.p]),e.b=y.Math.max(e.b,e.f[h.p])):f&&(e.f[h.p]=j)}}function Nxn(e){e.b=null,e.bb=null,e.fb=null,e.qb=null,e.a=null,e.c=null,e.d=null,e.e=null,e.f=null,e.n=null,e.M=null,e.L=null,e.Q=null,e.R=null,e.K=null,e.db=null,e.eb=null,e.g=null,e.i=null,e.j=null,e.k=null,e.gb=null,e.o=null,e.p=null,e.q=null,e.r=null,e.$=null,e.ib=null,e.S=null,e.T=null,e.t=null,e.s=null,e.u=null,e.v=null,e.w=null,e.B=null,e.A=null,e.C=null,e.D=null,e.F=null,e.G=null,e.H=null,e.I=null,e.J=null,e.P=null,e.Z=null,e.U=null,e.V=null,e.W=null,e.X=null,e.Y=null,e._=null,e.ab=null,e.cb=null,e.hb=null,e.nb=null,e.lb=null,e.mb=null,e.ob=null,e.pb=null,e.jb=null,e.kb=null,e.N=!1,e.O=!1}function _xn(e,n,t){var i,r,c,o;for(In(t,"Graph transformation ("+e.a+")",1),o=m0(n.a),c=new A(n.b);c.a0&&(e.a=l+(j-1)*c,n.c.b+=e.a,n.f.b+=e.a)),T.a.gc()!=0&&(k=new aL(1,c),j=Ute(k,n,T,C,n.f.b+l-n.c.b),j>0&&(n.f.b+=l+(j-1)*c))}function m3(e,n){var t,i,r,c;c=e.F,n==null?(e.F=null,Gv(e,null)):(e.F=(nn(n),n),i=ll(n,Pu(60)),i!=-1?(r=n.substr(0,i),ll(n,Pu(46))==-1&&!Re(r,q2)&&!Re(r,dy)&&!Re(r,dA)&&!Re(r,by)&&!Re(r,wy)&&!Re(r,gy)&&!Re(r,py)&&!Re(r,my)&&(r=EWe),t=tC(n,Pu(62)),t!=-1&&(r+=""+n.substr(t+1)),Gv(e,r)):(r=n,ll(n,Pu(46))==-1&&(i=ll(n,Pu(91)),i!=-1&&(r=n.substr(0,i)),!Re(r,q2)&&!Re(r,dy)&&!Re(r,dA)&&!Re(r,by)&&!Re(r,wy)&&!Re(r,gy)&&!Re(r,py)&&!Re(r,my)?(r=EWe,i!=-1&&(r+=""+n.substr(i))):r=n),Gv(e,r),r==n&&(e.F=e.D))),e.Db&4&&!(e.Db&1)&&yt(e,new Di(e,1,5,c,n))}function Rxn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R;if(C=n.b.c.length,!(C<3)){for(j=V($n,nt,25,C,15,1),w=0,h=new A(n.b);h.ao)&&ki(e.b,u(x.b,17));++f}c=o}}}function Vte(e,n){var t;if(n==null||Re(n,Au)||n.length==0&&e.k!=(rh(),mm))return null;switch(e.k.g){case 1:return jS(n,L3)?(cn(),q3):jS(n,eK)?(cn(),Td):null;case 2:try{return le($s(n,rr,vt))}catch(i){if(i=qt(i),_(i,127))return null;throw I(i)}case 4:try{return hw(n)}catch(i){if(i=qt(i),_(i,127))return null;throw I(i)}case 3:return n;case 5:return kFe(e),SRe(e,n);case 6:return kFe(e),YTn(e,e.a,n);case 7:try{return t=oTn(e),t.Jf(n),t}catch(i){if(i=qt(i),_(i,32))return null;throw I(i)}default:throw I(new ec("Invalid type set for this layout option."))}}function Kxn(e){t6();var n,t,i,r,c,o,f;for(f=new J7e,t=new A(e);t.a=f.b.c)&&(f.b=n),(!f.c||n.c<=f.c.c)&&(f.d=f.c,f.c=n),(!f.e||n.d>=f.e.d)&&(f.e=n),(!f.f||n.d<=f.f.d)&&(f.f=n);return i=new MS((Kv(),eb)),e7(e,AQe,new ws(D(O(oj,1),pe,369,0,[i]))),o=new MS($w),e7(e,PQe,new ws(D(O(oj,1),pe,369,0,[o]))),r=new MS(Dw),e7(e,SQe,new ws(D(O(oj,1),pe,369,0,[r]))),c=new MS(wp),e7(e,MQe,new ws(D(O(oj,1),pe,369,0,[c]))),g_(i.c,eb),g_(r.c,Dw),g_(c.c,wp),g_(o.c,$w),f.a.c=V(pn,pe,1,0,5,1),wi(f.a,i.c),wi(f.a,Z1(r.c)),wi(f.a,c.c),wi(f.a,Z1(o.c)),f}function Gte(e){var n;switch(e.d){case 1:{if(e.hj())return e.o!=-2;break}case 2:{if(e.hj())return e.o==-2;break}case 3:case 5:case 4:case 6:case 7:return e.o>-2;default:return!1}switch(n=e.gj(),e.p){case 0:return n!=null&&ke(ye(n))!=j5(e.k,0);case 1:return n!=null&&u(n,217).a!=Fn(e.k)<<24>>24;case 2:return n!=null&&u(n,172).a!=(Fn(e.k)&si);case 6:return n!=null&&j5(u(n,162).a,e.k);case 5:return n!=null&&u(n,19).a!=Fn(e.k);case 7:return n!=null&&u(n,184).a!=Fn(e.k)<<16>>16;case 3:return n!=null&&ne(he(n))!=e.j;case 4:return n!=null&&u(n,155).a!=e.j;default:return n==null?e.n!=null:!kt(n,e.n)}}function pk(e,n,t){var i,r,c,o;return e.Fk()&&e.Ek()&&(o=iL(e,u(t,56)),X(o)!==X(t))?(e.Oi(n),e.Ui(n,wDe(e,n,o)),e.rk()&&(c=(r=u(t,49),e.Dk()?e.Bk()?r.ih(e.b,Cr(u(Ge(ku(e.b),e.aj()),18)).n,u(Ge(ku(e.b),e.aj()).Yj(),26).Bj(),null):r.ih(e.b,Kt(r.Tg(),Cr(u(Ge(ku(e.b),e.aj()),18))),null,null):r.ih(e.b,-1-e.aj(),null,null)),!u(o,49).eh()&&(c=(i=u(o,49),e.Dk()?e.Bk()?i.gh(e.b,Cr(u(Ge(ku(e.b),e.aj()),18)).n,u(Ge(ku(e.b),e.aj()).Yj(),26).Bj(),c):i.gh(e.b,Kt(i.Tg(),Cr(u(Ge(ku(e.b),e.aj()),18))),null,c):i.gh(e.b,-1-e.aj(),null,c))),c&&c.Fi()),gs(e.b)&&e.$i(e.Zi(9,t,o,n,!1)),o):t}function BHe(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G;for(h=ne(he(M(e,(be(),lb)))),i=ne(he(M(e,Vle))),k=new ZO,te(k,lb,h+i),a=n,L=a.d,C=a.c.i,q=a.d.i,x=xW(C.c),R=xW(q.c),r=new oe,w=x;w<=R;w++)f=new Ta(e),F1(f,(dn(),$i)),te(f,(re(),Et),a),te(f,ei,(Hi(),Zc)),te(f,Wx,k),j=u(ve(e.b,w),29),w==x?fw(f,j.a.c.length-t,j):Hr(f,j),G=ne(he(M(a,ah))),G<0&&(G=0,te(a,ah,G)),f.o.b=G,T=y.Math.floor(G/2),o=new Rc,Ei(o,(ae(),un)),lc(o,f),o.n.b=T,l=new Rc,Ei(l,hn),lc(l,f),l.n.b=T,Ki(a,o),c=new w0,Yr(c,a),te(c,Ur,null),sr(c,l),Ki(c,L),V8n(f,a,c),r.c[r.c.length]=c,a=c;return r}function U_(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R;for(l=u(ih(e,(ae(),un)).Kc().Pb(),11).e,j=u(ih(e,hn).Kc().Pb(),11).g,f=l.c.length,R=Lf(u(ve(e.j,0),11));f-- >0;){for(C=(Qe(0,l.c.length),u(l.c[0],17)),r=(Qe(0,j.c.length),u(j.c[0],17)),q=r.d.e,c=tc(q,r,0),W2n(C,r.d,c),sr(r,null),Ki(r,null),T=C.a,n&&ut(T,new Kr(R)),i=ct(r.a,0);i.b!=i.d.c;)t=u(rt(i),8),ut(T,new Kr(t));for(L=C.b,k=new A(r.b);k.a0&&(o=y.Math.max(o,dLe(e.C.b+i.d.b,r))),h=i,w=r,k=c;e.C&&e.C.c>0&&(j=k+e.C.c,a&&(j+=h.d.c),o=y.Math.max(o,(If(),Yo(zf),y.Math.abs(w-1)<=zf||w==1||isNaN(w)&&isNaN(1)?0:j/(1-w)))),t.n.b=0,t.a.a=o}function KHe(e,n){var t,i,r,c,o,f,l,a,h,w,k,j;if(t=u(Fr(e.b,n),124),l=u(u(Tt(e.r,n),21),84),l.dc()){t.n.d=0,t.n.a=0;return}for(a=e.u.Hc((Yu(),La)),o=0,e.A.Hc((Es(),_d))&&yqe(e,n),f=l.Kc(),h=null,k=0,w=0;f.Ob();)i=u(f.Pb(),111),c=ne(he(i.b.We((iC(),KA)))),r=i.b.rf().b,h?(j=w+h.d.a+e.w+i.d.d,o=y.Math.max(o,(If(),Yo(zf),y.Math.abs(k-c)<=zf||k==c||isNaN(k)&&isNaN(c)?0:j/(c-k)))):e.C&&e.C.d>0&&(o=y.Math.max(o,dLe(e.C.d+i.d.d,c))),h=i,k=c,w=r;e.C&&e.C.a>0&&(j=w+e.C.a,a&&(j+=h.d.a),o=y.Math.max(o,(If(),Yo(zf),y.Math.abs(k-1)<=zf||k==1||isNaN(k)&&isNaN(1)?0:j/(1-k)))),t.n.d=0,t.a.b=o}function qHe(e,n,t){var i,r,c,o,f,l;for(this.g=e,f=n.d.length,l=t.d.length,this.d=V(Zl,uh,10,f+l,0,1),o=0;o0?yF(this,this.f/this.a):Of(n.g,n.d[0]).a!=null&&Of(t.g,t.d[0]).a!=null?yF(this,(ne(Of(n.g,n.d[0]).a)+ne(Of(t.g,t.d[0]).a))/2):Of(n.g,n.d[0]).a!=null?yF(this,Of(n.g,n.d[0]).a):Of(t.g,t.d[0]).a!=null&&yF(this,Of(t.g,t.d[0]).a)}function qxn(e,n){var t,i,r,c,o,f,l,a,h,w;for(e.a=new YPe(p4n(f9)),i=new A(n.a);i.a=1&&(x-o>0&&w>=0?(l.n.a+=C,l.n.b+=c*o):x-o<0&&h>=0&&(l.n.a+=C*x,l.n.b+=c));e.o.a=n.a,e.o.b=n.b,te(e,(be(),Ad),(Es(),i=u(df(g9),9),new Ws(i,u(Go(i,i.length),9),0)))}function zxn(e,n,t,i,r,c){var o;if(!(n==null||!lN(n,Cde,Mde)))throw I(new rn("invalid scheme: "+n));if(!e&&!(t!=null&&ll(t,Pu(35))==-1&&t.length>0&&(Gn(0,t.length),t.charCodeAt(0)!=47)))throw I(new rn("invalid opaquePart: "+t));if(e&&!(n!=null&&f8(zI,n.toLowerCase()))&&!(t==null||!lN(t,y9,k9)))throw I(new rn(lWe+t));if(e&&n!=null&&f8(zI,n.toLowerCase())&&!B7n(t))throw I(new rn(lWe+t));if(!H6n(i))throw I(new rn("invalid device: "+i));if(!F5n(r))throw o=r==null?"invalid segments: null":"invalid segment: "+O5n(r),I(new rn(o));if(!(c==null||ll(c,Pu(35))==-1))throw I(new rn("invalid query: "+c))}function Uxn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L;for(In(n,"Calculate Graph Size",1),n.n&&e&&Uo(n,Wo(e),(js(),Hs)),f=A3,l=A3,c=wce,o=wce,w=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));w.e!=w.i.gc();)a=u(Sn(w),33),T=a.i,C=a.j,L=a.g,i=a.f,r=u(Te(a,(ht(),qj)),142),f=y.Math.min(f,T-r.b),l=y.Math.min(l,C-r.d),c=y.Math.max(c,T+L+r.c),o=y.Math.max(o,C+i+r.a);for(j=u(Te(e,(ht(),Ld)),116),k=new je(f-j.b,l-j.d),h=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));h.e!=h.i.gc();)a=u(Sn(h),33),Cu(a,a.i-k.a),Mu(a,a.j-k.b);x=c-f+(j.b+j.c),t=o-l+(j.d+j.a),C0(e,x),T0(e,t),n.n&&e&&Uo(n,Wo(e),(js(),Hs))}function GHe(e){var n,t,i,r,c,o,f,l,a,h;for(i=new oe,o=new A(e.e.a);o.a0){SS(e,t,0),t.a+=String.fromCharCode(i),r=Oyn(n,c),SS(e,t,r),c+=r-1;continue}i==39?c+11)for(C=V($n,nt,25,e.b.b.c.length,15,1),w=0,a=new A(e.b.b);a.a=f&&r<=l)f<=r&&c<=l?(t[h++]=r,t[h++]=c,i+=2):f<=r?(t[h++]=r,t[h++]=l,e.b[i]=l+1,o+=2):c<=l?(t[h++]=f,t[h++]=c,i+=2):(t[h++]=f,t[h++]=l,e.b[i]=l+1);else if(li1)&&f<10);OU(e.c,new Swe),zHe(e),Fwn(e.c),Vxn(e.f)}function Qxn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x;if(ke(ye(M(t,(be(),qw)))))for(f=new A(t.j);f.a=2){for(l=ct(t,0),o=u(rt(l),8),f=u(rt(l),8);f.a0&&A7(a,!0,(Ar(),cf)),f.k==(dn(),fi)&&vAe(a),jt(e.f,f,n)}}function nIn(e,n,t){var i,r,c,o,f,l,a,h,w,k;switch(In(t,"Node promotion heuristic",1),e.g=n,sOn(e),e.q=u(M(n,(be(),pH)),260),h=u(M(e.g,xle),19).a,c=new hpe,e.q.g){case 2:case 1:p3(e,c);break;case 3:for(e.q=(Wg(),nI),p3(e,c),l=0,f=new A(e.a);f.ae.j&&(e.q=Tj,p3(e,c));break;case 4:for(e.q=(Wg(),nI),p3(e,c),a=0,r=new A(e.b);r.ae.k&&(e.q=Cj,p3(e,c));break;case 6:k=ci(y.Math.ceil(e.f.length*h/100)),p3(e,new P9e(k));break;case 5:w=ci(y.Math.ceil(e.d*h/100)),p3(e,new A9e(w));break;default:p3(e,c)}WMn(e,n),Tn(t)}function WHe(e,n,t){var i,r,c,o;this.j=e,this.e=Xee(e),this.o=this.j.e,this.i=!!this.o,this.p=this.i?u(ve(t,ar(this.o).p),214):null,r=u(M(e,(re(),Jc)),21),this.g=r.Hc((xr(),so)),this.b=new oe,this.d=new gNe(this.e),o=u(M(this.j,hm),230),this.q=D4n(n,o,this.e),this.k=new pxe(this),c=Nf(D(O(QQe,1),pe,225,0,[this,this.d,this.k,this.q])),n==(M0(),Sj)&&!ke(ye(M(e,(be(),Bw))))?(i=new Qee(this.e),c.c[c.c.length]=i,this.c=new MQ(i,o,u(this.q,402))):n==Sj&&ke(ye(M(e,(be(),Bw))))?(i=new Qee(this.e),c.c[c.c.length]=i,this.c=new Z$e(i,o,u(this.q,402))):this.c=new QEe(n,this),se(c,this.c),AHe(c,this.e),this.s=NOn(this.k)}function tIn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G;for(w=u(ZT((o=ct(new Sh(n).a.d,0),new Xp(o))),86),T=w?u(M(w,(Ac(),WH)),86):null,r=1;w&&T;){for(l=0,G=0,t=w,i=T,f=0;f=e.i?(++e.i,se(e.a,le(1)),se(e.b,h)):(i=e.c[n.p][1],Qs(e.a,a,le(u(ve(e.a,a),19).a+1-i)),Qs(e.b,a,ne(he(ve(e.b,a)))+h-i*e.e)),(e.q==(Wg(),Tj)&&(u(ve(e.a,a),19).a>e.j||u(ve(e.a,a-1),19).a>e.j)||e.q==Cj&&(ne(he(ve(e.b,a)))>e.k||ne(he(ve(e.b,a-1)))>e.k))&&(l=!1),o=new En(Cn(ic(n).a.Kc(),new J));Un(o);)c=u(_n(o),17),f=c.c.i,e.f[f.p]==a&&(w=XHe(e,f),r=r+u(w.a,19).a,l=l&&ke(ye(w.b)));return e.f[n.p]=a,r=r+e.c[n.p][0],new Gi(le(r),(cn(),!!l))}function Ute(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T,C,x,L;for(w=new Ln,o=new oe,pRe(e,t,e.d.fg(),o,w),pRe(e,i,e.d.gg(),o,w),e.b=.2*(C=uKe(ac(new We(null,new Ye(o,16)),new yve)),x=uKe(ac(new We(null,new Ye(o,16)),new kve)),y.Math.min(C,x)),c=0,f=0;f=2&&(L=PKe(o,!0,k),!e.e&&(e.e=new O8e(e)),$yn(e.e,L,o,e.b)),oBe(o,k),mIn(o),j=-1,h=new A(o);h.af)}function rIn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C;for(t=u(M(e,(be(),ei)),98),o=e.f,c=e.d,f=o.a+c.b+c.c,l=0-c.d-e.c.b,h=o.b+c.d+c.a-e.c.b,a=new oe,w=new oe,r=new A(n);r.a0),u(h.a.Xb(h.c=--h.b),17));c!=i&&h.b>0;)e.a[c.p]=!0,e.a[i.p]=!0,c=(vn(h.b>0),u(h.a.Xb(h.c=--h.b),17));h.b>0&&ys(h)}}function ZHe(e,n,t){var i,r,c,o,f,l,a,h,w;if(e.a!=n.Aj())throw I(new rn(F3+n.ne()+Y0));if(i=Ja((Ku(),Ji),n).$k(),i)return i.Aj().Nh().Ih(i,t);if(o=Ja(Ji,n).al(),o){if(t==null)return null;if(f=u(t,15),f.dc())return"";for(w=new Ra,c=f.Kc();c.Ob();)r=c.Pb(),Lr(w,o.Aj().Nh().Ih(o,r)),w.a+=" ";return b$(w,w.a.length-1)}if(h=Ja(Ji,n).bl(),!h.dc()){for(a=h.Kc();a.Ob();)if(l=u(a.Pb(),148),l.wj(t))try{if(w=l.Aj().Nh().Ih(l,t),w!=null)return w}catch(k){if(k=qt(k),!_(k,102))throw I(k)}throw I(new rn("Invalid value: '"+t+"' for datatype :"+n.ne()))}return u(n,834).Fj(),t==null?null:_(t,172)?""+u(t,172).a:is(t)==OA?SCe(v9[0],u(t,199)):rc(t)}function lIn(e){var n,t,i,r,c,o,f,l,a,h;for(a=new Vt,f=new Vt,c=new A(e);c.a-1){for(r=ct(f,0);r.b!=r.d.c;)i=u(rt(r),128),i.v=o;for(;f.b!=0;)for(i=u(KN(f,0),128),t=new A(i.i);t.a0&&(t+=l.n.a+l.o.a/2,++w),T=new A(l.j);T.a0&&(t/=w),L=V(Ri,Br,25,i.a.c.length,15,1),f=0,a=new A(i.a);a.a=f&&r<=l)f<=r&&c<=l?i+=2:f<=r?(e.b[i]=l+1,o+=2):c<=l?(t[h++]=r,t[h++]=f-1,i+=2):(t[h++]=r,t[h++]=f-1,e.b[i]=l+1,o+=2);else if(l0?r-=864e5:r+=864e5,l=new vX(or(Su(n.q.getTime()),r))),h=new Ib,a=e.a.length,c=0;c=97&&i<=122||i>=65&&i<=90){for(o=c+1;o=a)throw I(new rn("Missing trailing '"));o+10&&t.c==0&&(!n&&(n=new oe),n.c[n.c.length]=t);if(n)for(;n.c.length!=0;){if(t=u(Ua(n,0),233),t.b&&t.b.c.length>0){for(c=(!t.b&&(t.b=new oe),new A(t.b));c.atc(e,t,0))return new Gi(r,t)}else if(ne(Of(r.g,r.d[0]).a)>ne(Of(t.g,t.d[0]).a))return new Gi(r,t)}for(f=(!t.e&&(t.e=new oe),t.e).Kc();f.Ob();)o=u(f.Pb(),233),l=(!o.b&&(o.b=new oe),o.b),Wb(0,l.c.length),f5(l.c,0,t),o.c==l.c.length&&(n.c[n.c.length]=o)}return null}function rVe(e,n){var t,i,r,c,o,f,l,a,h;if(e==null)return Au;if(l=n.a.zc(e,n),l!=null)return"[...]";for(t=new nd(vr,"[","]"),r=e,c=0,o=r.length;c=14&&h<=16))?n.a._b(i)?(t.a?Qn(t.a,t.b):t.a=new Cs(t.d),T5(t.a,"[...]")):(f=J1(i),a=new F5(n),ga(t,rVe(f,a))):_(i,177)?ga(t,sEn(u(i,177))):_(i,190)?ga(t,Y7n(u(i,190))):_(i,195)?ga(t,ujn(u(i,195))):_(i,2012)?ga(t,Q7n(u(i,2012))):_(i,48)?ga(t,uEn(u(i,48))):_(i,364)?ga(t,yEn(u(i,364))):_(i,832)?ga(t,cEn(u(i,832))):_(i,104)&&ga(t,rEn(u(i,104))):ga(t,i==null?Au:rc(i));return t.a?t.e.length==0?t.a.a:t.a.a+(""+t.e):t.c}function cVe(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R;for(f=Xg(n,!1,!1),L=Z7(f),i&&(L=I7(L)),R=ne(he(Te(n,(y6(),sq)))),x=(vn(L.b!=0),u(L.a.a.c,8)),w=u(kf(L,1),8),L.b>2?(h=new oe,wi(h,new Rl(L,1,L.b)),c=_Ve(h,R+e.a),q=new h_(c),Yr(q,n),t.c[t.c.length]=q):i?q=u(kn(e.b,Vl(n)),266):q=u(kn(e.b,Jh(n)),266),l=Vl(n),i&&(l=Jh(n)),o=Mjn(x,l),a=R+e.a,o.a?(a+=y.Math.abs(x.b-w.b),C=new je(w.a,(w.b+x.b)/2)):(a+=y.Math.abs(x.a-w.a),C=new je((w.a+x.a)/2,w.b)),i?jt(e.d,n,new mee(q,o,C,a)):jt(e.c,n,new mee(q,o,C,a)),jt(e.b,n,q),T=(!n.n&&(n.n=new fe(uc,n,1,7)),n.n),j=new jn(T);j.e!=j.i.gc();)k=u(Sn(j),137),r=lk(e,k,!0,0,0),t.c[t.c.length]=r}function mIn(e){var n,t,i,r,c,o,f,l,a,h;for(a=new oe,f=new oe,o=new A(e);o.a-1){for(c=new A(f);c.a0)&&(Cz(l,y.Math.min(l.o,r.o-1)),GE(l,l.i-1),l.i==0&&(f.c[f.c.length]=l))}}function v3(e,n,t){var i,r,c,o,f,l,a;if(a=e.c,!n&&(n=xde),e.c=n,e.Db&4&&!(e.Db&1)&&(l=new Di(e,1,2,a,e.c),t?t.Ei(l):t=l),a!=n){if(_(e.Cb,284))e.Db>>16==-10?t=u(e.Cb,284).nk(n,t):e.Db>>16==-15&&(!n&&(n=(Ke(),tl)),!a&&(a=(Ke(),tl)),e.Cb.nh()&&(l=new pa(e.Cb,1,13,a,n,nh(ts(u(e.Cb,59)),e),!1),t?t.Ei(l):t=l));else if(_(e.Cb,88))e.Db>>16==-23&&(_(n,88)||(n=(Ke(),No)),_(a,88)||(a=(Ke(),No)),e.Cb.nh()&&(l=new pa(e.Cb,1,10,a,n,nh(Bc(u(e.Cb,26)),e),!1),t?t.Ei(l):t=l));else if(_(e.Cb,444))for(f=u(e.Cb,836),o=(!f.b&&(f.b=new QE(new mD)),f.b),c=(i=new rd(new N1(o.a).a),new JE(i));c.a.b;)r=u(E0(c.a).cd(),87),t=v3(r,YS(r,f),t)}return t}function vIn(e,n){var t,i,r,c,o,f,l,a,h,w,k;for(o=ke(ye(Te(e,(be(),qw)))),k=u(Te(e,Vw),21),l=!1,a=!1,w=new jn((!e.c&&(e.c=new fe(ls,e,9,9)),e.c));w.e!=w.i.gc()&&(!l||!a);){for(c=u(Sn(w),118),f=0,r=Bh(Rf(D(O(Wf,1),pe,20,0,[(!c.d&&(c.d=new Xe(Ii,c,8,5)),c.d),(!c.e&&(c.e=new Xe(Ii,c,7,4)),c.e)])));Un(r)&&(i=u(_n(r),79),h=o&&N0(i)&&ke(ye(Te(i,Pd))),t=FHe((!i.b&&(i.b=new Xe(An,i,4,7)),i.b),c)?e==Ut(Qr(u(K((!i.c&&(i.c=new Xe(An,i,5,8)),i.c),0),82))):e==Ut(Qr(u(K((!i.b&&(i.b=new Xe(An,i,4,7)),i.b),0),82))),!((h||t)&&(++f,f>1))););(f>0||k.Hc((Yu(),La))&&(!c.n&&(c.n=new fe(uc,c,1,7)),c.n).i>0)&&(l=!0),f>1&&(a=!0)}l&&n.Fc((xr(),so)),a&&n.Fc((xr(),Dy))}function uVe(e){var n,t,i,r,c,o,f,l,a,h,w,k;if(k=u(Te(e,(ht(),$d)),21),k.dc())return null;if(f=0,o=0,k.Hc((Es(),Yj))){for(h=u(Te(e,o9),98),i=2,t=2,r=2,c=2,n=Ut(e)?u(Te(Ut(e),db),103):u(Te(e,db),103),a=new jn((!e.c&&(e.c=new fe(ls,e,9,9)),e.c));a.e!=a.i.gc();)if(l=u(Sn(a),118),w=u(Te(l,Np),61),w==(ae(),gc)&&(w=Ote(l,n),_r(l,Np,w)),h==(Hi(),Zc))switch(w.g){case 1:i=y.Math.max(i,l.i+l.g);break;case 2:t=y.Math.max(t,l.j+l.f);break;case 3:r=y.Math.max(r,l.i+l.g);break;case 4:c=y.Math.max(c,l.j+l.f)}else switch(w.g){case 1:i+=l.g+2;break;case 2:t+=l.f+2;break;case 3:r+=l.g+2;break;case 4:c+=l.f+2}f=y.Math.max(i,r),o=y.Math.max(t,c)}return q0(e,f,o,!0,!0)}function W_(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G;for(q=u(As(DM(Lt(new We(null,new Ye(n.d,16)),new J9e(t)),new Z9e(t)),Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[(qf(),_s)]))),15),w=vt,h=rr,l=new A(n.b.j);l.a0,a?a&&(k=L.p,o?++k:--k,w=u(ve(L.c.a,k),10),i=QLe(w),j=!(m_(i,ue,t[0])||APe(i,ue,t[0]))):j=!0),T=!1,ee=n.D.i,ee&&ee.c&&f.e&&(h=o&&ee.p>0||!o&&ee.p0&&(n.a+=vr),bP(u(Sn(f),160),n);for(n.a+=tR,l=new o2((!i.c&&(i.c=new Xe(An,i,5,8)),i.c));l.e!=l.i.gc();)l.e>0&&(n.a+=vr),bP(u(Sn(l),160),n);n.a+=")"}}function CIn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j;if(c=u(M(e,(re(),Et)),79),!!c){for(i=e.a,r=new Kr(t),Mt(r,w7n(e)),_v(e.d.i,e.c.i)?(k=e.c,w=hc(D(O(xi,1),ie,8,0,[k.n,k.a])),_i(w,t)):w=Lf(e.c),ri(i,w,i.a,i.a.a),j=Lf(e.d),M(e,sH)!=null&&Mt(j,u(M(e,sH),8)),ri(i,j,i.c.b,i.c),nw(i,r),o=Xg(c,!0,!0),KM(o,u(K((!c.b&&(c.b=new Xe(An,c,4,7)),c.b),0),82)),qM(o,u(K((!c.c&&(c.c=new Xe(An,c,5,8)),c.c),0),82)),bk(i,o),h=new A(e.b);h.a=0){for(l=null,f=new zi(h.a,a+1);f.bo?1:i0(isNaN(0),isNaN(o)))<0&&(Yo(Cl),(y.Math.abs(o-1)<=Cl||o==1||isNaN(o)&&isNaN(1)?0:o<1?-1:o>1?1:i0(isNaN(o),isNaN(1)))<0)&&(Yo(Cl),(y.Math.abs(0-f)<=Cl||f==0||isNaN(0)&&isNaN(f)?0:0f?1:i0(isNaN(0),isNaN(f)))<0)&&(Yo(Cl),(y.Math.abs(f-1)<=Cl||f==1||isNaN(f)&&isNaN(1)?0:f<1?-1:f>1?1:i0(isNaN(f),isNaN(1)))<0)),c)}function SIn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue;for(w=new YY(new Bz(e));w.b!=w.c.a.d;)for(h=aDe(w),f=u(h.d,56),n=u(h.e,56),o=f.Tg(),C=0,G=(o.i==null&&pl(o),o.i).length;C=0&&C=a.c.c.length?h=xQ((dn(),vi),$i):h=xQ((dn(),$i),$i),h*=2,c=t.a.g,t.a.g=y.Math.max(c,c+(h-c)),o=t.b.g,t.b.g=y.Math.max(o,o+(h-o)),r=n}}function xIn(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee;for(ee=SSe(e),h=new oe,f=e.c.length,w=f-1,k=f+1;ee.a.c!=0;){for(;t.b!=0;)R=(vn(t.b!=0),u(Zs(t,t.a.a),112)),U5(ee.a,R)!=null,R.g=w--,Dte(R,n,t,i);for(;n.b!=0;)G=(vn(n.b!=0),u(Zs(n,n.a.a),112)),U5(ee.a,G)!=null,G.g=k++,Dte(G,n,t,i);for(a=rr,L=(o=new D5(new x5(new J9(ee.a).a).b),new Z9(o));d8(L.a.a);){if(x=(c=sC(L.a),u(c.cd(),112)),!i&&x.b>0&&x.a<=0){h.c=V(pn,pe,1,0,5,1),h.c[h.c.length]=x;break}C=x.i-x.d,C>=a&&(C>a&&(h.c=V(pn,pe,1,0,5,1),a=C),h.c[h.c.length]=x)}h.c.length!=0&&(l=u(ve(h,xS(r,h.c.length)),112),U5(ee.a,l)!=null,l.g=k++,Dte(l,n,t,i),h.c=V(pn,pe,1,0,5,1))}for(q=e.c.length+1,T=new A(e);T.a0&&(k.d+=h.n.d,k.d+=h.d),k.a>0&&(k.a+=h.n.a,k.a+=h.d),k.b>0&&(k.b+=h.n.b,k.b+=h.d),k.c>0&&(k.c+=h.n.c,k.c+=h.d),k}function oVe(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T;for(k=t.d,w=t.c,c=new je(t.f.a+t.d.b+t.d.c,t.f.b+t.d.d+t.d.a),o=c.b,a=new A(e.a);a.a0&&(e.c[n.c.p][n.p].d+=cs(e.i,24)*Ak*.07000000029802322-.03500000014901161,e.c[n.c.p][n.p].a=e.c[n.c.p][n.p].d/e.c[n.c.p][n.p].b)}}function _In(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x;for(T=new A(e);T.ai.d,i.d=y.Math.max(i.d,n),f&&t&&(i.d=y.Math.max(i.d,i.a),i.a=i.d+r);break;case 3:t=n>i.a,i.a=y.Math.max(i.a,n),f&&t&&(i.a=y.Math.max(i.a,i.d),i.d=i.a+r);break;case 2:t=n>i.c,i.c=y.Math.max(i.c,n),f&&t&&(i.c=y.Math.max(i.b,i.c),i.b=i.c+r);break;case 4:t=n>i.b,i.b=y.Math.max(i.b,n),f&&t&&(i.b=y.Math.max(i.b,i.c),i.c=i.b+r)}}}function qIn(e){var n,t,i,r,c,o,f,l,a,h,w;for(a=new A(e);a.a0||h.j==un&&h.e.c.length-h.g.c.length<0)){n=!1;break}for(r=new A(h.g);r.a=a&&ee>=x&&(k+=T.n.b+C.n.b+C.a.b-G,++f));if(t)for(o=new A(q.e);o.a=a&&ee>=x&&(k+=T.n.b+C.n.b+C.a.b-G,++f))}f>0&&(ue+=k/f,++j)}j>0?(n.a=r*ue/j,n.g=j):(n.a=0,n.g=0)}function VIn(e,n){var t,i,r,c,o,f,l,a,h,w,k;for(r=new A(e.a.b);r.ahi||n.o==Od&&h0&&Cu(L,G*ue),ee>0&&Mu(L,ee*we);for(o6(e.b,new mwe),n=new oe,f=new rd(new N1(e.c).a);f.b;)o=E0(f),i=u(o.cd(),79),t=u(o.dd(),395).a,r=Xg(i,!1,!1),w=fBe(Vl(i),Z7(r),t),bk(w,r),R=kBe(i),R&&tc(n,R,0)==-1&&(n.c[n.c.length]=R,SAe(R,(vn(w.b!=0),u(w.a.a.c,8)),t));for(x=new rd(new N1(e.d).a);x.b;)C=E0(x),i=u(C.cd(),79),t=u(C.dd(),395).a,r=Xg(i,!1,!1),w=fBe(Jh(i),I7(Z7(r)),t),w=I7(w),bk(w,r),R=jBe(i),R&&tc(n,R,0)==-1&&(n.c[n.c.length]=R,SAe(R,(vn(w.b!=0),u(w.c.b.c,8)),t))}function aVe(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we;if(t.c.length!=0){for(j=new oe,k=new A(t);k.a1)for(j=new Kte(T,R,i),Yi(R,new rTe(e,j)),o.c[o.c.length]=j,w=R.a.ec().Kc();w.Ob();)h=u(w.Pb(),46),ju(c,h.b);if(f.a.gc()>1)for(j=new Kte(T,f,i),Yi(f,new cTe(e,j)),o.c[o.c.length]=j,w=f.a.ec().Kc();w.Ob();)h=u(w.Pb(),46),ju(c,h.b)}}function dVe(e){n0(e,new ad(oT(Qd(Wd(Yd(Xd(new $1,Ml),"ELK Radial"),'A radial layout provider which is based on the algorithm of Peter Eades published in "Drawing free trees.", published by International Institute for Advanced Study of Social Information Science, Fujitsu Limited in 1991. The radial layouter takes a tree and places the nodes in radial order around the root. The nodes of the same tree level are placed on the same radius.'),new Fve),Ml))),de(e,Ml,JP,me($tn)),de(e,Ml,Tw,me(Ltn)),de(e,Ml,cp,me(xtn)),de(e,Ml,Q2,me(Itn)),de(e,Ml,Y2,me(Otn)),de(e,Ml,I3,me(Atn)),de(e,Ml,J6,me(Jae)),de(e,Ml,O3,me(Dtn)),de(e,Ml,VR,me(iV)),de(e,Ml,HR,me(rV)),de(e,Ml,kce,me(Zae)),de(e,Ml,pce,me(wI)),de(e,Ml,mce,me(gI)),de(e,Ml,vce,me(Ij)),de(e,Ml,yce,me(ehe))}function Yte(e){var n;if(this.r=Sgn(new DE,new $E),this.b=new p6(u(Nn(kr),290)),this.p=new p6(u(Nn(kr),290)),this.i=new p6(u(Nn(EYe),290)),this.e=e,this.o=new Kr(e.rf()),this.D=e.Df()||ke(ye(e.We((ht(),Kj)))),this.A=u(e.We((ht(),$d)),21),this.B=u(e.We(v1),21),this.q=u(e.We(o9),98),this.u=u(e.We(Yw),21),!$kn(this.u))throw I(new hg("Invalid port label placement: "+this.u));if(this.v=ke(ye(e.We(O1e))),this.j=u(e.We(Lp),21),!rCn(this.j))throw I(new hg("Invalid node label placement: "+this.j));this.n=u(E6(e,v1e),116),this.k=ne(he(E6(e,II))),this.d=ne(he(E6(e,F1e))),this.w=ne(he(E6(e,K1e))),this.s=ne(he(E6(e,N1e))),this.t=ne(he(E6(e,_1e))),this.C=u(E6(e,B1e),142),this.c=2*this.d,n=!this.B.Hc((us(),Qj)),this.f=new v6(0,n,0),this.g=new v6(1,n,0),jD(this.f,(mf(),su),this.g)}function ZIn(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn;for(R=0,T=0,j=0,k=1,q=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));q.e!=q.i.gc();)x=u(Sn(q),33),k+=wa(new En(Cn(Ca(x).a.Kc(),new J))),Ce=x.g,T=y.Math.max(T,Ce),w=x.f,j=y.Math.max(j,w),R+=Ce*w;for(C=(!e.a&&(e.a=new fe(Xt,e,10,11)),e.a).i,o=R+2*i*i*k*C,c=y.Math.sqrt(o),l=y.Math.max(c*t,T),f=y.Math.max(c/t,j),L=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));L.e!=L.i.gc();)x=u(Sn(L),33),Ae=r.b+(cs(n,26)*G6+cs(n,27)*z6)*(l-x.g),sn=r.b+(cs(n,26)*G6+cs(n,27)*z6)*(f-x.f),Cu(x,Ae),Mu(x,sn);for(we=l+(r.b+r.c),ue=f+(r.d+r.a),ee=new jn((!e.a&&(e.a=new fe(Xt,e,10,11)),e.a));ee.e!=ee.i.gc();)for(G=u(Sn(ee),33),h=new En(Cn(Ca(G).a.Kc(),new J));Un(h);)a=u(_n(h),79),x6(a)||eDn(a,n,we,ue);we+=r.b+r.c,ue+=r.d+r.a,q0(e,we,ue,!1,!0)}function gP(e){var n,t,i,r,c,o,f,l,a,h,w;if(e==null)throw I(new fl(Au));if(a=e,c=e.length,l=!1,c>0&&(n=(Gn(0,e.length),e.charCodeAt(0)),(n==45||n==43)&&(e=e.substr(1),--c,l=n==45)),c==0)throw I(new fl(G0+a+'"'));for(;e.length>0&&(Gn(0,e.length),e.charCodeAt(0)==48);)e=e.substr(1),--c;if(c>(nHe(),EXe)[10])throw I(new fl(G0+a+'"'));for(r=0;r0&&(w=-parseInt(e.substr(0,i),10),e=e.substr(i),c-=i,t=!1);c>=o;){if(i=parseInt(e.substr(0,o),10),e=e.substr(o),c-=o,t)t=!1;else{if($c(w,f)<0)throw I(new fl(G0+a+'"'));w=ir(w,h)}w=Qh(w,i)}if($c(w,0)>0)throw I(new fl(G0+a+'"'));if(!l&&(w=Mv(w),$c(w,0)<0))throw I(new fl(G0+a+'"'));return w}function Qte(e,n){VSe();var t,i,r,c,o,f,l;if(this.a=new KW(this),this.b=e,this.c=n,this.f=uL(Vr((Ku(),Ji),n)),this.f.dc())if((f=Fee(Ji,e))==n)for(this.e=!0,this.d=new oe,this.f=new V3e,this.f.Fc(jd),u(hP(d7(Ji,xs(e)),""),26)==e&&this.f.Fc(_5(Ji,xs(e))),r=P_(Ji,e).Kc();r.Ob();)switch(i=u(r.Pb(),170),b0(Vr(Ji,i))){case 4:{this.d.Fc(i);break}case 5:{this.f.Gc(uL(Vr(Ji,i)));break}}else if(Er(),u(n,66).Oj())for(this.e=!0,this.f=null,this.d=new oe,o=0,l=(e.i==null&&pl(e),e.i).length;o=0&&o0&&(u(Fr(e.b,n),124).a.b=t)}function eOn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L;for(In(n,"Comment pre-processing",1),t=0,l=new A(e.a);l.a0&&(l=(Gn(0,n.length),n.charCodeAt(0)),l!=64)){if(l==37&&(w=n.lastIndexOf("%"),a=!1,w!=0&&(w==k-1||(a=(Gn(w+1,n.length),n.charCodeAt(w+1)==46))))){if(o=n.substr(1,w-1),R=Re("%",o)?null:Zte(o),i=0,a)try{i=$s(n.substr(w+2),rr,vt)}catch(G){throw G=qt(G),_(G,127)?(f=G,I(new CM(f))):I(G)}for(x=DJ(e.Wg());x.Ob();)if(T=eS(x),_(T,510)&&(r=u(T,590),q=r.d,(R==null?q==null:Re(R,q))&&i--==0))return r;return null}if(h=n.lastIndexOf("."),j=h==-1?n:n.substr(0,h),t=0,h!=-1)try{t=$s(n.substr(h+1),rr,vt)}catch(G){if(G=qt(G),_(G,127))j=n;else throw I(G)}for(j=Re("%",j)?null:Zte(j),C=DJ(e.Wg());C.Ob();)if(T=eS(C),_(T,191)&&(c=u(T,191),L=c.ne(),(j==null?L==null:Re(j,L))&&t--==0))return c;return null}return _He(e,n)}function iOn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln;for(ue=new oe,T=new A(e.b);T.a=n.length)return{done:!0};var r=n[i++];return{value:[r,t.get(r)],done:!1}}}},oSn()||(e.prototype.createObject=function(){return{}},e.prototype.get=function(n){return this.obj[":"+n]},e.prototype.set=function(n,t){this.obj[":"+n]=t},e.prototype[OB]=function(n){delete this.obj[":"+n]},e.prototype.keys=function(){var n=[];for(var t in this.obj)t.charCodeAt(0)==58&&n.push(t.substring(1));return n}),e}function cOn(e){Ite();var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x;if(e==null)return null;if(w=e.length*8,w==0)return"";for(f=w%24,j=w/24|0,k=f!=0?j+1:j,c=null,c=V(lo,vl,25,k*4,15,1),a=0,h=0,n=0,t=0,i=0,o=0,r=0,l=0;l>24,a=(n&3)<<24>>24,T=n&-128?(n>>2^192)<<24>>24:n>>2<<24>>24,C=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,x=i&-128?(i>>6^252)<<24>>24:i>>6<<24>>24,c[o++]=jh[T],c[o++]=jh[C|a<<4],c[o++]=jh[h<<2|x],c[o++]=jh[i&63];return f==8?(n=e[r],a=(n&3)<<24>>24,T=n&-128?(n>>2^192)<<24>>24:n>>2<<24>>24,c[o++]=jh[T],c[o++]=jh[a<<4],c[o++]=61,c[o++]=61):f==16&&(n=e[r],t=e[r+1],h=(t&15)<<24>>24,a=(n&3)<<24>>24,T=n&-128?(n>>2^192)<<24>>24:n>>2<<24>>24,C=t&-128?(t>>4^240)<<24>>24:t>>4<<24>>24,c[o++]=jh[T],c[o++]=jh[C|a<<4],c[o++]=jh[h<<2],c[o++]=61),mo(c,0,c.length)}function uOn(e,n){var t,i,r,c,o,f,l;if(e.e==0&&e.p>0&&(e.p=-(e.p-1)),e.p>rr&&OQ(n,e.p-r1),o=n.q.getDate(),Y8(n,1),e.k>=0&&qpn(n,e.k),e.c>=0?Y8(n,e.c):e.k>=0?(l=new ZJ(n.q.getFullYear()-r1,n.q.getMonth(),35),i=35-l.q.getDate(),Y8(n,y.Math.min(i,o))):Y8(n,o),e.f<0&&(e.f=n.q.getHours()),e.b>0&&e.f<12&&(e.f+=12),Zhn(n,e.f==24&&e.g?0:e.f),e.j>=0&&Zmn(n,e.j),e.n>=0&&pvn(n,e.n),e.i>=0&&HTe(n,or(ir(X7(Su(n.q.getTime()),ch),ch),e.i)),e.a&&(r=new wT,OQ(r,r.q.getFullYear()-r1-80),FD(Su(n.q.getTime()),Su(r.q.getTime()))&&OQ(n,r.q.getFullYear()-r1+100)),e.d>=0){if(e.c==-1)t=(7+e.d-n.q.getDay())%7,t>3&&(t-=7),f=n.q.getMonth(),Y8(n,n.q.getDate()+t),n.q.getMonth()!=f&&Y8(n,n.q.getDate()+(t>0?-7:7));else if(n.q.getDay()!=e.d)return!1}return e.o>rr&&(c=n.q.getTimezoneOffset(),HTe(n,or(Su(n.q.getTime()),(e.o-c)*60*ch))),!0}function gVe(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G;if(r=M(n,(re(),Et)),!!_(r,239)){for(T=u(r,33),C=n.e,k=new Kr(n.c),c=n.d,k.a+=c.b,k.b+=c.d,G=u(Te(T,(be(),Ux)),174),Nu(G,(us(),$I))&&(j=u(Te(T,Fle),116),Dfn(j,c.a),Kfn(j,c.d),$fn(j,c.b),qfn(j,c.c)),t=new oe,h=new A(n.a);h.a0&&se(e.p,h),se(e.o,h);n-=i,j=l+n,a+=n*e.e,Qs(e.a,f,le(j)),Qs(e.b,f,a),e.j=y.Math.max(e.j,j),e.k=y.Math.max(e.k,a),e.d+=n,n+=C}}function ae(){ae=U;var e;gc=new C8(X6,0),tn=new C8(SP,1),hn=new C8(qB,2),On=new C8(HB,3),un=new C8(VB,4),nl=(He(),new Vm((e=u(df(kr),9),new Ws(e,u(Go(e,e.length),9),0)))),lf=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[]))),oo=Qa(Ft(hn,D(O(kr,1),Lc,61,0,[]))),Ks=Qa(Ft(On,D(O(kr,1),Lc,61,0,[]))),Oo=Qa(Ft(un,D(O(kr,1),Lc,61,0,[]))),Iu=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[On]))),wu=Qa(Ft(hn,D(O(kr,1),Lc,61,0,[un]))),af=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[un]))),Zu=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[hn]))),qs=Qa(Ft(On,D(O(kr,1),Lc,61,0,[un]))),fo=Qa(Ft(hn,D(O(kr,1),Lc,61,0,[On]))),es=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[hn,un]))),xu=Qa(Ft(hn,D(O(kr,1),Lc,61,0,[On,un]))),Ou=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[On,un]))),Gu=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[hn,On]))),eu=Qa(Ft(tn,D(O(kr,1),Lc,61,0,[hn,On,un])))}function yVe(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R;if(n.b!=0){for(j=new Vt,f=null,T=null,i=ci(y.Math.floor(y.Math.log(n.b)*y.Math.LOG10E)+1),l=0,R=ct(n,0);R.b!=R.d.c;)for(L=u(rt(R),86),X(T)!==X(M(L,(Ac(),e9)))&&(T=Vn(M(L,e9)),l=0),T!=null?f=T+Kxe(l++,i):f=Kxe(l++,i),te(L,e9,f),x=(r=ct(new Sh(L).a.d,0),new Xp(r));aT(x.a);)C=u(rt(x.a),188).c,ri(j,C,j.c.b,j.c),te(C,e9,f);for(k=new Ln,o=0;o=l){vn(L.b>0),L.a.Xb(L.c=--L.b);break}else C.a>a&&(r?(wi(r.b,C.b),r.a=y.Math.max(r.a,C.a),ys(L)):(se(C.b,w),C.c=y.Math.min(C.c,a),C.a=y.Math.max(C.a,l),r=C));r||(r=new cke,r.c=a,r.a=l,Rb(L,r),se(r.b,w))}for(f=n.b,h=0,x=new A(i);x.af?1:0:(e.b&&(e.b._b(c)&&(r=u(e.b.xc(c),19).a),e.b._b(l)&&(f=u(e.b.xc(l),19).a)),rf?1:0)):n.e.c.length!=0&&t.g.c.length!=0?1:-1}function lOn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we;for(In(n,lze,1),C=new oe,ue=new oe,a=new A(e.b);a.a0&&(R-=j),qte(o,R),h=0,k=new A(o.a);k.a0),f.a.Xb(f.c=--f.b)),l=.4*i*h,!c&&f.bn.d.c){if(j=e.c[n.a.d],x=e.c[w.a.d],j==x)continue;Zo(Ho(qo(Vo(Ko(new ho,1),100),j),x))}}}}}function Zte(e){G_();var n,t,i,r,c,o,f,l;if(e==null)return null;if(r=ll(e,Pu(37)),r<0)return e;for(l=new Cs(e.substr(0,r)),n=V(zu,lp,25,4,15,1),f=0,i=0,o=e.length;rr+2&&NF((Gn(r+1,e.length),e.charCodeAt(r+1)),Ede,Tde)&&NF((Gn(r+2,e.length),e.charCodeAt(r+2)),Ede,Tde))if(t=Nbn((Gn(r+1,e.length),e.charCodeAt(r+1)),(Gn(r+2,e.length),e.charCodeAt(r+2))),r+=2,i>0?(t&192)==128?n[f++]=t<<24>>24:i=0:t>=128&&((t&224)==192?(n[f++]=t<<24>>24,i=2):(t&240)==224?(n[f++]=t<<24>>24,i=3):(t&248)==240&&(n[f++]=t<<24>>24,i=4)),i>0){if(f==i){switch(f){case 2:{Rh(l,((n[0]&31)<<6|n[1]&63)&si);break}case 3:{Rh(l,((n[0]&15)<<12|(n[1]&63)<<6|n[2]&63)&si);break}}f=0,i=0}}else{for(c=0;c0){if(o+i>e.length)return!1;f=zS(e.substr(0,o+i),n)}else f=zS(e,n);switch(c){case 71:return f=Gg(e,o,D(O(ge,1),ie,2,6,[tGe,iGe]),n),r.e=f,!0;case 77:return QMn(e,n,r,f,o);case 76:return JMn(e,n,r,f,o);case 69:return Hjn(e,n,o,r);case 99:return Vjn(e,n,o,r);case 97:return f=Gg(e,o,D(O(ge,1),ie,2,6,["AM","PM"]),n),r.b=f,!0;case 121:return ZMn(e,n,o,f,t,r);case 100:return f<=0?!1:(r.c=f,!0);case 83:return f<0?!1:iyn(f,o,n[0],r);case 104:f==12&&(f=0);case 75:case 72:return f<0?!1:(r.f=f,r.g=!1,!0);case 107:return f<0?!1:(r.f=f,r.g=!0,!0);case 109:return f<0?!1:(r.j=f,!0);case 115:return f<0?!1:(r.n=f,!0);case 90:if(oue&&(T.c=ue-T.b),se(o.d,new Z$(T,AZ(o,T))),q=n==tn?y.Math.max(q,C.b+a.b.rf().b):y.Math.min(q,C.b));for(q+=n==tn?e.t:-e.t,R=GZ((o.e=q,o)),R>0&&(u(Fr(e.b,n),124).a.b=R),h=k.Kc();h.Ob();)a=u(h.Pb(),111),!(!a.c||a.c.d.c.length<=0)&&(T=a.c.i,T.c-=a.e.a,T.d-=a.e.b)}function pOn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j;for(n=new Ln,l=new jn(e);l.e!=l.i.gc();){for(f=u(Sn(l),33),t=new Si,jt(fq,f,t),j=new dwe,r=u(As(new We(null,new l0(new En(Cn(uk(f).a.Kc(),new J)))),hPe(j,Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[(qf(),_s)])))),83),L$e(t,u(r.xc((cn(),!0)),14),new bwe),i=u(As(Lt(u(r.xc(!1),15).Lc(),new wwe),Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[_s]))),15),o=i.Kc();o.Ob();)c=u(o.Pb(),79),k=kBe(c),k&&(a=u(mc(Xr(n.f,k)),21),a||(a=KKe(k),au(n.f,k,a)),pr(t,a));for(r=u(As(new We(null,new l0(new En(Cn(Ca(f).a.Kc(),new J)))),hPe(j,Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[_s])))),83),L$e(t,u(r.xc(!0),14),new gwe),i=u(As(Lt(u(r.xc(!1),15).Lc(),new pwe),Q1(new Af,new nu,new Ro,D(O(os,1),ce,132,0,[_s]))),15),w=i.Kc();w.Ob();)h=u(w.Pb(),79),k=jBe(h),k&&(a=u(mc(Xr(n.f,k)),21),a||(a=KKe(k),au(n.f,k,a)),pr(t,a))}}function mOn(e,n){B_();var t,i,r,c,o,f,l,a,h,w,k,j,T,C;if(l=$c(e,0)<0,l&&(e=Mv(e)),$c(e,0)==0)switch(n){case 0:return"0";case 1:return C3;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return j=new Ph,n<0?j.a+="0E+":j.a+="0E",j.a+=n==rr?"2147483648":""+-n,j.a}h=18,w=V(lo,vl,25,h+1,15,1),t=h,C=e;do a=C,C=X7(C,10),w[--t]=Fn(or(48,Qh(a,ir(C,10))))&si;while($c(C,0)!=0);if(r=Qh(Qh(Qh(h,t),n),1),n==0)return l&&(w[--t]=45),mo(w,t,h-t);if(n>0&&$c(r,-6)>=0){if($c(r,0)>=0){for(c=t+Fn(r),f=h-1;f>=c;f--)w[f+1]=w[f];return w[++c]=46,l&&(w[--t]=45),mo(w,t,h-t+1)}for(o=2;FD(o,or(Mv(r),1));o++)w[--t]=48;return w[--t]=46,w[--t]=48,l&&(w[--t]=45),mo(w,t,h-t)}return T=t+1,i=h,k=new Ib,l&&(k.a+="-"),i-T>=1?(Rh(k,w[t]),k.a+=".",k.a+=mo(w,t+1,h-t-1)):k.a+=mo(w,t,h-t),k.a+="E",$c(r,0)>0&&(k.a+="+"),k.a+=""+B5(r),k.a}function vOn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j;if(e.e.a.$b(),e.f.a.$b(),e.c.c=V(pn,pe,1,0,5,1),e.i.c=V(pn,pe,1,0,5,1),e.g.a.$b(),n)for(o=new A(n.a);o.a=1&&(ee-a>0&&T>=0?(Cu(w,w.i+G),Mu(w,w.j+l*a)):ee-a<0&&j>=0&&(Cu(w,w.i+G*ee),Mu(w,w.j+l)));return _r(e,(ht(),$d),(Es(),c=u(df(g9),9),new Ws(c,u(Go(c,c.length),9),0))),new je(ue,h)}function EVe(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T;if(j=Ut(Qr(u(K((!e.b&&(e.b=new Xe(An,e,4,7)),e.b),0),82))),T=Ut(Qr(u(K((!e.c&&(e.c=new Xe(An,e,5,8)),e.c),0),82))),w=j==T,f=new tr,n=u(Te(e,(cS(),X1e)),74),n&&n.b>=2){if((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a).i==0)t=(Jd(),r=new BE,r),Bn((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a),t);else if((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a).i>1)for(k=new o2((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a));k.e!=k.i.gc();)C6(k);bk(n,u(K((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a),0),202))}if(w)for(i=new jn((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a));i.e!=i.i.gc();)for(t=u(Sn(i),202),a=new jn((!t.a&&(t.a=new bi(Do,t,5)),t.a));a.e!=a.i.gc();)l=u(Sn(a),469),f.a=y.Math.max(f.a,l.a),f.b=y.Math.max(f.b,l.b);for(o=new jn((!e.n&&(e.n=new fe(uc,e,1,7)),e.n));o.e!=o.i.gc();)c=u(Sn(o),137),h=u(Te(c,l9),8),h&&xf(c,h.a,h.b),w&&(f.a=y.Math.max(f.a,c.i+c.g),f.b=y.Math.max(f.b,c.j+c.f));return f}function yOn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce;for(R=n.c.length,r=new Qg(e.a,t,null,null),Ce=V(Ri,Br,25,R,15,1),C=V(Ri,Br,25,R,15,1),T=V(Ri,Br,25,R,15,1),x=0,f=0;fCe[l]&&(x=l),w=new A(e.a.b);w.aj&&(c&&(K1(ue,k),K1(Ce,le(a.b-1))),pt=t.b,Ci+=k+n,k=0,h=y.Math.max(h,t.b+t.c+Mn)),Cu(f,pt),Mu(f,Ci),h=y.Math.max(h,pt+Mn+t.c),k=y.Math.max(k,w),pt+=Mn+n;if(h=y.Math.max(h,i),ln=Ci+k+t.a,lnjl,Ae=y.Math.abs(k.b-T.b)>jl,(!t&&Ce&&Ae||t&&(Ce||Ae))&&ut(x.a,G)),pr(x.a,i),i.b==0?k=G:k=(vn(i.b!=0),u(i.c.b.c,8)),_4n(j,w,C),hLe(r)==we&&(ar(we.i)!=r.a&&(C=new tr,pne(C,ar(we.i),q)),te(x,sH,C)),ojn(j,x,q),h.a.zc(j,h);sr(x,ee),Ki(x,we)}for(a=h.a.ec().Kc();a.Ob();)l=u(a.Pb(),17),sr(l,null),Ki(l,null);Tn(n)}function TVe(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G;if(e.gc()==1)return u(e.Xb(0),231);if(e.gc()<=0)return new wM;for(r=e.Kc();r.Ob();){for(t=u(r.Pb(),231),T=0,h=vt,w=vt,l=rr,a=rr,j=new A(t.e);j.af&&(R=0,G+=o+L,o=0),uPn(C,t,R,G),n=y.Math.max(n,R+x.a),o=y.Math.max(o,x.b),R+=x.a+L;return C}function CVe(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T;switch(h=new Lu,e.a.g){case 3:k=u(M(n.e,(re(),Sd)),15),j=u(M(n.j,Sd),15),T=u(M(n.f,Sd),15),t=u(M(n.e,Mp),15),i=u(M(n.j,Mp),15),r=u(M(n.f,Mp),15),o=new oe,wi(o,k),j.Jc(new vme),wi(o,_(j,152)?T2(u(j,152)):_(j,131)?u(j,131).a:_(j,54)?new Ud(j):new Ob(j)),wi(o,T),c=new oe,wi(c,t),wi(c,_(i,152)?T2(u(i,152)):_(i,131)?u(i,131).a:_(i,54)?new Ud(i):new Ob(i)),wi(c,r),te(n.f,Sd,o),te(n.f,Mp,c),te(n.f,$fe,n.f),te(n.e,Sd,null),te(n.e,Mp,null),te(n.j,Sd,null),te(n.j,Mp,null);break;case 1:pr(h,n.e.a),ut(h,n.i.n),pr(h,Z1(n.j.a)),ut(h,n.a.n),pr(h,n.f.a);break;default:pr(h,n.e.a),pr(h,Z1(n.j.a)),pr(h,n.f.a)}go(n.f.a),pr(n.f.a,h),sr(n.f,n.e.c),f=u(M(n.e,(be(),Ur)),74),a=u(M(n.j,Ur),74),l=u(M(n.f,Ur),74),(f||a||l)&&(w=new Lu,RY(w,l),RY(w,a),RY(w,f),te(n.f,Ur,w)),sr(n.j,null),Ki(n.j,null),sr(n.e,null),Ki(n.e,null),Hr(n.a,null),Hr(n.i,null),n.g&&CVe(e,n.g)}function TOn(e){Ite();var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x;if(e==null||(c=SM(e),T=a6n(c),T%4!=0))return null;if(C=T/4|0,C==0)return V(zu,lp,25,0,15,1);for(w=null,n=0,t=0,i=0,r=0,o=0,f=0,l=0,a=0,j=0,k=0,h=0,w=V(zu,lp,25,C*3,15,1);j>4)<<24>>24,w[k++]=((t&15)<<4|i>>2&15)<<24>>24,w[k++]=(i<<6|r)<<24>>24}return!s8(o=c[h++])||!s8(f=c[h++])?null:(n=il[o],t=il[f],l=c[h++],a=c[h++],il[l]==-1||il[a]==-1?l==61&&a==61?t&15?null:(x=V(zu,lp,25,j*3+1,15,1),Kc(w,0,x,0,j*3),x[k]=(n<<2|t>>4)<<24>>24,x):l!=61&&a==61?(i=il[l],i&3?null:(x=V(zu,lp,25,j*3+2,15,1),Kc(w,0,x,0,j*3),x[k++]=(n<<2|t>>4)<<24>>24,x[k]=((t&15)<<4|i>>2&15)<<24>>24,x)):null:(i=il[l],r=il[a],w[k++]=(n<<2|t>>4)<<24>>24,w[k++]=((t&15)<<4|i>>2&15)<<24>>24,w[k++]=(i<<6|r)<<24>>24,w))}function COn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee;for(In(n,lze,1),T=u(M(e,(be(),Ia)),218),r=new A(e.b);r.a=2){for(C=!0,k=new A(c.j),t=u(P(k),11),j=null;k.a0&&(r=u(ve(x.c.a,ue-1),10),o=e.i[r.p],Ce=y.Math.ceil(kg(e.n,r,x)),c=ee.a.e-x.d.d-(o.a.e+r.o.b+r.d.a)-Ce),a=Jt,ue0&&we.a.e.e-we.a.a-(we.b.e.e-we.b.a)<0,T=R.a.e.e-R.a.a-(R.b.e.e-R.b.a)<0&&we.a.e.e-we.a.a-(we.b.e.e-we.b.a)>0,j=R.a.e.e+R.b.awe.b.e.e+we.a.a,G=0,!C&&!T&&(k?c+w>0?G=w:a-i>0&&(G=i):j&&(c+f>0?G=f:a-q>0&&(G=q))),ee.a.e+=G,ee.b&&(ee.d.e+=G),!1))}function SVe(e,n,t){var i,r,c,o,f,l,a,h,w,k;if(i=new Xs(n.qf().a,n.qf().b,n.rf().a,n.rf().b),r=new s2,e.c)for(o=new A(n.wf());o.aa&&(i.a+=OCe(V(lo,vl,25,-a,15,1))),i.a+="Is",ll(l,Pu(32))>=0)for(r=0;r=i.o.b/2}else q=!w;q?(L=u(M(i,(re(),dm)),15),L?k?c=L:(r=u(M(i,om),15),r?L.gc()<=r.gc()?c=L:c=r:(c=new oe,te(i,om,c))):(c=new oe,te(i,dm,c))):(r=u(M(i,(re(),om)),15),r?w?c=r:(L=u(M(i,dm),15),L?r.gc()<=L.gc()?c=r:c=L:(c=new oe,te(i,dm,c))):(c=new oe,te(i,om,c))),c.Fc(e),te(e,(re(),xx),t),n.d==t?(Ki(n,null),t.e.c.length+t.g.c.length==0&&lc(t,null),v5n(t)):(sr(n,null),t.e.c.length+t.g.c.length==0&&lc(t,null)),go(n.a)}function AOn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt;for(q=new zi(e.b,0),h=n.Kc(),T=0,a=u(h.Pb(),19).a,ee=0,t=new Si,we=new fa;q.b=e.a&&(i=bAn(e,q),h=y.Math.max(h,i.b),G=y.Math.max(G,i.d),se(f,new Gi(q,i)));for(Ce=new oe,a=0;a0),x.a.Xb(x.c=--x.b),Ae=new wo(e.b),Rb(x,Ae),vn(x.b0?(a=0,x&&(a+=f),a+=(Ae-1)*o,R&&(a+=f),Ce&&R&&(a=y.Math.max(a,dMn(R,o,q,we))),a0){for(k=h<100?null:new Ah(h),a=new NJ(n),T=a.g,L=V($n,nt,25,h,15,1),i=0,G=new j0(h),r=0;r=0;)if(j!=null?kt(j,T[l]):X(j)===X(T[l])){L.length<=i&&(x=L,L=V($n,nt,25,2*L.length,15,1),Kc(x,0,L,0,i)),L[i++]=r,Bn(G,T[l]);break e}if(j=j,X(j)===X(f))break}}if(a=G,T=G.g,h=i,i>L.length&&(x=L,L=V($n,nt,25,i,15,1),Kc(x,0,L,0,i)),i>0){for(R=!0,c=0;c=0;)F2(e,L[o]);if(i!=h){for(r=h;--r>=i;)F2(a,r);x=L,L=V($n,nt,25,i,15,1),Kc(x,0,L,0,i)}n=a}}}else for(n=a8n(e,n),r=e.i;--r>=0;)n.Hc(e.g[r])&&(F2(e,r),R=!0);if(R){if(L!=null){for(t=n.gc(),w=t==1?W5(e,4,n.Kc().Pb(),null,L[0],C):W5(e,6,n,L,L[0],C),k=t<100?null:new Ah(t),r=n.Kc();r.Ob();)j=r.Pb(),k=KX(e,u(j,72),k);k?(k.Ei(w),k.Fi()):yt(e.e,w)}else{for(k=Tdn(n.gc()),r=n.Kc();r.Ob();)j=r.Pb(),k=KX(e,u(j,72),k);k&&k.Fi()}return!0}else return!1}function $On(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R;for(t=new n_e(n),t.a||pPn(n),a=mSn(n),l=new p0,x=new XKe,C=new A(n.a);C.a0||t.o==Jf&&r0?(w=u(ve(k.c.a,o-1),10),Ce=kg(e.b,k,w),x=k.n.b-k.d.d-(w.n.b+w.o.b+w.d.a+Ce)):x=k.n.b-k.d.d,a=y.Math.min(x,a),oo?b3(e,n,t):b3(e,t,n),ro?1:0}return i=u(M(n,(re(),_c)),19).a,c=u(M(t,_c),19).a,i>c?b3(e,n,t):b3(e,t,n),ic?1:0}function eie(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x,L,q;if(ke(ye(Te(n,(ht(),AI)))))return He(),He(),Sr;if(a=(!n.a&&(n.a=new fe(Xt,n,10,11)),n.a).i!=0,w=jEn(n),h=!w.dc(),a||h){if(r=u(Te(n,m4),149),!r)throw I(new hg("Resolved algorithm is not set; apply a LayoutAlgorithmResolver before computing layout."));if(q=EW(r,(l3(),qI)),FNe(n),!a&&h&&!q)return He(),He(),Sr;if(l=new oe,X(Te(n,Dp))===X((ka(),ph))&&(EW(r,RI)||EW(r,BI)))for(j=mqe(e,n),T=new Vt,pr(T,(!n.a&&(n.a=new fe(Xt,n,10,11)),n.a));T.b!=0;)k=u(T.b==0?null:(vn(T.b!=0),Zs(T,T.a.a)),33),FNe(k),L=X(Te(k,Dp))===X(a9),L||Y1(k,s9)&&!NQ(r,Te(k,m4))?(f=eie(e,k,t,i),wi(l,f),_r(k,Dp,a9),Lqe(k)):pr(T,(!k.a&&(k.a=new fe(Xt,k,10,11)),k.a));else for(j=(!n.a&&(n.a=new fe(Xt,n,10,11)),n.a).i,o=new jn((!n.a&&(n.a=new fe(Xt,n,10,11)),n.a));o.e!=o.i.gc();)c=u(Sn(o),33),f=eie(e,c,t,i),wi(l,f),Lqe(c);for(x=new A(l);x.a=0?j=O2(f):j=N7(O2(f)),e.Ye(l4,j)),a=new tr,k=!1,e.Xe(fb)?(hX(a,u(e.We(fb),8)),k=!0):f1n(a,o.a/2,o.b/2),j.g){case 4:te(h,bu,(to(),b1)),te(h,Ox,(td(),yp)),h.o.b=o.b,C<0&&(h.o.a=-C),Ei(w,(ae(),hn)),k||(a.a=o.a),a.a-=o.a;break;case 2:te(h,bu,(to(),_w)),te(h,Ox,(td(),t4)),h.o.b=o.b,C<0&&(h.o.a=-C),Ei(w,(ae(),un)),k||(a.a=0);break;case 1:te(h,Md,(ma(),jp)),h.o.a=o.a,C<0&&(h.o.b=-C),Ei(w,(ae(),On)),k||(a.b=o.b),a.b-=o.b;break;case 3:te(h,Md,(ma(),sm)),h.o.a=o.a,C<0&&(h.o.b=-C),Ei(w,(ae(),tn)),k||(a.b=0)}if(hX(w.n,a),te(h,fb,a),n==Nd||n==ia||n==Zc){if(T=0,n==Nd&&e.Xe(hh))switch(j.g){case 1:case 2:T=u(e.We(hh),19).a;break;case 3:case 4:T=-u(e.We(hh),19).a}else switch(j.g){case 4:case 2:T=c.b,n==ia&&(T/=r.b);break;case 1:case 3:T=c.a,n==ia&&(T/=r.a)}te(h,ub,T)}return te(h,Tc,j),h}function NOn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae;if(t=ne(he(M(e.a.j,(be(),ble)))),t<-1||!e.a.i||a2(u(M(e.a.o,ei),98))||dc(e.a.o,(ae(),hn)).gc()<2&&dc(e.a.o,un).gc()<2)return!0;if(e.a.c.Rf())return!1;for(ee=0,G=0,R=new oe,l=e.a.e,a=0,h=l.length;a=t}function _On(){FU();function e(i){var r=this;this.dispatch=function(c){var o=c.data;switch(o.cmd){case"algorithms":var f=VZ((He(),new Nm(new sa(M1.b))));i.postMessage({id:o.id,data:f});break;case"categories":var l=VZ((He(),new Nm(new sa(M1.c))));i.postMessage({id:o.id,data:l});break;case"options":var a=VZ((He(),new Nm(new sa(M1.d))));i.postMessage({id:o.id,data:a});break;case"register":Gxn(o.algorithms),i.postMessage({id:o.id});break;case"layout":CAn(o.graph,o.layoutOptions||{},o.options||{}),i.postMessage({id:o.id,data:o.graph});break}},this.saveDispatch=function(c){try{r.dispatch(c)}catch(o){i.postMessage({id:c.data.id,error:o})}}}function n(i){var r=this;this.dispatcher=new e({postMessage:function(c){r.onmessage({data:c})}}),this.postMessage=function(c){setTimeout(function(){r.dispatcher.saveDispatch({data:c})},0)}}if(typeof document===FB&&typeof self!==FB){var t=new e(self);self.onmessage=t.saveDispatch}else typeof v!==FB&&v.exports&&(Object.defineProperty(E,"__esModule",{value:!0}),v.exports={default:n,Worker:n})}function BOn(e){e.N||(e.N=!0,e.b=kc(e,0),Wt(e.b,0),Wt(e.b,1),Wt(e.b,2),e.bb=kc(e,1),Wt(e.bb,0),Wt(e.bb,1),e.fb=kc(e,2),Wt(e.fb,3),Wt(e.fb,4),Dt(e.fb,5),e.qb=kc(e,3),Wt(e.qb,0),Dt(e.qb,1),Dt(e.qb,2),Wt(e.qb,3),Wt(e.qb,4),Dt(e.qb,5),Wt(e.qb,6),e.a=lt(e,4),e.c=lt(e,5),e.d=lt(e,6),e.e=lt(e,7),e.f=lt(e,8),e.g=lt(e,9),e.i=lt(e,10),e.j=lt(e,11),e.k=lt(e,12),e.n=lt(e,13),e.o=lt(e,14),e.p=lt(e,15),e.q=lt(e,16),e.s=lt(e,17),e.r=lt(e,18),e.t=lt(e,19),e.u=lt(e,20),e.v=lt(e,21),e.w=lt(e,22),e.B=lt(e,23),e.A=lt(e,24),e.C=lt(e,25),e.D=lt(e,26),e.F=lt(e,27),e.G=lt(e,28),e.H=lt(e,29),e.J=lt(e,30),e.I=lt(e,31),e.K=lt(e,32),e.M=lt(e,33),e.L=lt(e,34),e.P=lt(e,35),e.Q=lt(e,36),e.R=lt(e,37),e.S=lt(e,38),e.T=lt(e,39),e.U=lt(e,40),e.V=lt(e,41),e.X=lt(e,42),e.W=lt(e,43),e.Y=lt(e,44),e.Z=lt(e,45),e.$=lt(e,46),e._=lt(e,47),e.ab=lt(e,48),e.cb=lt(e,49),e.db=lt(e,50),e.eb=lt(e,51),e.gb=lt(e,52),e.hb=lt(e,53),e.ib=lt(e,54),e.jb=lt(e,55),e.kb=lt(e,56),e.lb=lt(e,57),e.mb=lt(e,58),e.nb=lt(e,59),e.ob=lt(e,60),e.pb=lt(e,61))}function ROn(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G;if(q=0,n.f.a==0)for(x=new A(e);x.aa&&(Qe(a,n.c.length),u(n.c[a],200)).a.c.length==0;)ju(n,(Qe(a,n.c.length),n.c[a]));if(!l){--c;continue}if(MPn(n,h,r,l,k,t,a,i)){w=!0;continue}if(k){if(DAn(n,h,r,l,t,a,i)){w=!0;continue}else if(pZ(h,r)){r.c=!0,w=!0;continue}}else if(pZ(h,r)){r.c=!0,w=!0;continue}if(w)continue}if(pZ(h,r)){r.c=!0,w=!0,l&&(l.k=!1);continue}else $S(r.q)}return w}function Q_(e,n,t,i,r,c,o){var f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt,Ci;for(C=0,sn=0,a=new A(e.b);a.aC&&(c&&(K1(ue,j),K1(Ce,le(h.b-1)),se(e.d,T),f.c=V(pn,pe,1,0,5,1)),pt=t.b,Ci+=j+n,j=0,w=y.Math.max(w,t.b+t.c+Mn)),f.c[f.c.length]=l,WNe(l,pt,Ci),w=y.Math.max(w,pt+Mn+t.c),j=y.Math.max(j,k),pt+=Mn+n,T=l;if(wi(e.a,f),se(e.d,u(ve(f,f.c.length-1),157)),w=y.Math.max(w,i),ln=Ci+j+t.a,ln1&&(o=y.Math.min(o,y.Math.abs(u(kf(f.a,1),8).b-h.b)))));else for(C=new A(n.j);C.ar&&(c=k.a-r,o=vt,i.c=V(pn,pe,1,0,5,1),r=k.a),k.a>=r&&(i.c[i.c.length]=f,f.a.b>1&&(o=y.Math.min(o,y.Math.abs(u(kf(f.a,f.a.b-2),8).b-k.b)))));if(i.c.length!=0&&c>n.o.a/2&&o>n.o.b/2){for(j=new Rc,lc(j,n),Ei(j,(ae(),tn)),j.n.a=n.o.a/2,L=new Rc,lc(L,n),Ei(L,On),L.n.a=n.o.a/2,L.n.b=n.o.b,l=new A(i);l.a=a.b?sr(f,L):sr(f,j)):(a=u(Fbn(f.a),8),x=f.a.b==0?Lf(f.c):u(uC(f.a),8),x.b>=a.b?Ki(f,L):Ki(f,j)),w=u(M(f,(be(),Ur)),74),w&&cw(w,a,!0);n.n.a=r-n.o.a/2}}function GOn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt,Ci,Vs,_o;if(sn=null,Mn=n,ln=LIe(e,IIe(t),Mn),r6(ln,ba(Mn,Sl)),pt=u(xg(e.g,_2(da(Mn,uK))),33),k=da(Mn,"sourcePort"),i=null,k&&(i=_2(k)),Ci=u(xg(e.j,i),118),!pt)throw f=e3(Mn),T="An edge must have a source node (edge id: '"+f,C=T+_3,I(new ol(C));if(Ci&&!bl(Df(Ci),pt))throw l=ba(Mn,Sl),x="The source port of an edge must be a port of the edge's source node (edge id: '"+l,L=x+_3,I(new ol(L));if(Ce=(!ln.b&&(ln.b=new Xe(An,ln,4,7)),ln.b),c=null,Ci?c=Ci:c=pt,Bn(Ce,c),Vs=u(xg(e.g,_2(da(Mn,Zce))),33),j=da(Mn,"targetPort"),r=null,j&&(r=_2(j)),_o=u(xg(e.j,r),118),!Vs)throw w=e3(Mn),q="An edge must have a target node (edge id: '"+w,R=q+_3,I(new ol(R));if(_o&&!bl(Df(_o),Vs))throw a=ba(Mn,Sl),G="The target port of an edge must be a port of the edge's target node (edge id: '"+a,ee=G+_3,I(new ol(ee));if(Ae=(!ln.c&&(ln.c=new Xe(An,ln,5,8)),ln.c),o=null,_o?o=_o:o=Vs,Bn(Ae,o),(!ln.b&&(ln.b=new Xe(An,ln,4,7)),ln.b).i==0||(!ln.c&&(ln.c=new Xe(An,ln,5,8)),ln.c).i==0)throw h=ba(Mn,Sl),ue=SUe+h,we=ue+_3,I(new ol(we));return qS(Mn,ln),LTn(Mn,ln),sn=BF(e,Mn,ln),sn}function OVe(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn;return w=WPn(vu(e,(ae(),nl)),n),T=Kg(vu(e,lf),n),G=Kg(vu(e,Ks),n),Ce=LS(vu(e,Oo),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En(Cn(ic(j).a.Kc(),new J));Un(f);)o=u(_n(f),17),o.a.b!=0&&(n=u(uC(o.a),8),o.d.j==(ae(),tn)&&(x=new N6(n,new je(n.a,r.d.d),r,o),x.f.a=!0,x.a=o.d,C.c[C.c.length]=x),o.d.j==On&&(x=new N6(n,new je(n.a,r.d.d+r.d.a),r,o),x.f.d=!0,x.a=o.d,C.c[C.c.length]=x))}return C}function UOn(e,n,t){var i,r,c,o,f,l,a,h,w;if(In(t,"Network simplex node placement",1),e.e=n,e.n=u(M(n,(re(),Cp)),304),lxn(e),V7n(e),ti(ac(new We(null,new Ye(e.e.b,16)),new Fme),new C8e(e)),ti(Lt(ac(Lt(ac(new We(null,new Ye(e.e.b,16)),new Xme),new Yme),new Qme),new Jme),new T8e(e)),ke(ye(M(e.e,(be(),Ry))))&&(o=zc(t,1),In(o,"Straight Edges Pre-Processing",1),AIn(e),Tn(o)),C9n(e.f),c=u(M(n,Hy),19).a*e.f.a.c.length,A_(AU(xU(R$(e.f),c),!1),zc(t,1)),e.d.a.gc()!=0){for(o=zc(t,1),In(o,"Flexible Where Space Processing",1),f=u(s0(OC(yu(new We(null,new Ye(e.f.a,16)),new Nme),new xme)),19).a,l=u(s0(IC(yu(new We(null,new Ye(e.f.a,16)),new _me),new Ime)),19).a,a=l-f,h=u0(new B1,e.f),w=u0(new B1,e.f),Zo(Ho(qo(Ko(Vo(new ho,2e4),a),h),w)),ti(Lt(Lt(sL(e.i),new Bme),new Rme),new jAe(f,h,a,w)),r=e.d.a.ec().Kc();r.Ob();)i=u(r.Pb(),213),i.g=1;A_(AU(xU(R$(e.f),c),!1),zc(o,1)),Tn(o)}ke(ye(M(n,Ry)))&&(o=zc(t,1),In(o,"Straight Edges Post-Processing",1),$jn(e),Tn(o)),dIn(e),e.e=null,e.f=null,e.i=null,e.c=null,Wu(e.k),e.j=null,e.a=null,e.o=null,e.d.a.$b(),Tn(t)}function WOn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee;for(f=new A(e.a.b);f.a0)if(i=w.gc(),a=ci(y.Math.floor((i+1)/2))-1,r=ci(y.Math.ceil((i+1)/2))-1,n.o==Jf)for(h=r;h>=a;h--)n.a[G.p]==G&&(C=u(w.Xb(h),46),T=u(C.a,10),!oa(t,C.b)&&j>e.b.e[T.p]&&(n.a[T.p]=G,n.g[G.p]=n.g[T.p],n.a[G.p]=n.g[G.p],n.f[n.g[G.p].p]=(cn(),!!(ke(n.f[n.g[G.p].p])&G.k==(dn(),$i))),j=e.b.e[T.p]));else for(h=a;h<=r;h++)n.a[G.p]==G&&(L=u(w.Xb(h),46),x=u(L.a,10),!oa(t,L.b)&&j=T&&(q>T&&(j.c=V(pn,pe,1,0,5,1),T=q),j.c[j.c.length]=o);j.c.length!=0&&(k=u(ve(j,xS(n,j.c.length)),128),ln.a.Bc(k)!=null,k.s=C++,Qne(k,Ae,ue),j.c=V(pn,pe,1,0,5,1))}for(G=e.c.length+1,f=new A(e);f.asn.s&&(ys(t),ju(sn.i,i),i.c>0&&(i.a=sn,se(sn.t,i),i.b=we,se(we.i,i)))}function nie(e){var n,t,i,r,c;switch(n=e.c,n){case 11:return e.Ml();case 12:return e.Ol();case 14:return e.Ql();case 15:return e.Tl();case 16:return e.Rl();case 17:return e.Ul();case 21:return wt(e),gt(),gt(),P9;case 10:switch(e.a){case 65:return e.yl();case 90:return e.Dl();case 122:return e.Kl();case 98:return e.El();case 66:return e.zl();case 60:return e.Jl();case 62:return e.Hl()}}switch(c=HOn(e),n=e.c,n){case 3:return e.Zl(c);case 4:return e.Xl(c);case 5:return e.Yl(c);case 0:if(e.a==123&&e.d=48&&n<=57){for(i=n-48;r=48&&n<=57;)if(i=i*10+n-48,i<0)throw I(new Hn(Wn((qn(),cue))))}else throw I(new Hn(Wn((qn(),nWe))));if(t=i,n==44){if(r>=e.j)throw I(new Hn(Wn((qn(),iWe))));if((n=Xi(e.i,r++))>=48&&n<=57){for(t=n-48;r=48&&n<=57;)if(t=t*10+n-48,t<0)throw I(new Hn(Wn((qn(),cue))));if(i>t)throw I(new Hn(Wn((qn(),rWe))))}else t=-1}if(n!=125)throw I(new Hn(Wn((qn(),tWe))));e.sl(r)?(c=(gt(),gt(),new Xb(9,c)),e.d=r+1):(c=(gt(),gt(),new Xb(3,c)),e.d=r),c.dm(i),c.cm(t),wt(e)}}return c}function DVe(e,n,t,i,r){var c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln;for(C=new tu(n.b),G=new tu(n.b),k=new tu(n.b),Ce=new tu(n.b),x=new tu(n.b),we=ct(n,0);we.b!=we.d.c;)for(ee=u(rt(we),11),f=new A(ee.g);f.a0,L=ee.g.c.length>0,a&&L?k.c[k.c.length]=ee:a?C.c[C.c.length]=ee:L&&(G.c[G.c.length]=ee);for(T=new A(C);T.a1)for(T=new o2((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a));T.e!=T.i.gc();)C6(T);for(o=u(K((!e.a&&(e.a=new fe(Gt,e,6,6)),e.a),0),202),x=pt,pt>ee+G?x=ee+G:ptue+C?L=ue+C:Ciee-G&&xue-C&&Lpt+Mn?Ce=pt+Mn:eeCi+we?Ae=Ci+we:uept-Mn&&CeCi-we&&Aet&&(k=t-1),j=lE+cs(n,24)*Ak*w-w/2,j<0?j=1:j>i&&(j=i-1),r=(Jd(),l=new _E,l),FM(r,k),NM(r,j),Bn((!o.a&&(o.a=new bi(Do,o,5)),o.a),r)}function be(){be=U,yH=(ht(),Jin),Hle=Zin,jj=$1e,rf=ern,gm=L1e,lb=nrn,zw=F1e,h4=N1e,d4=_1e,kH=II,ab=Fd,jH=trn,qy=K1e,Wx=km,kj=(rie(),XZe),Sp=YZe,Id=QZe,Pp=JZe,Len=new Tr(xI,le(0)),a4=zZe,qle=UZe,wm=WZe,Qle=yen,Vle=nen,Gle=ren,TH=aen,zle=sen,Ule=fen,Xx=Ten,CH=ken,Xle=gen,Wle=ben,Yle=men,ob=RZe,Ky=KZe,wH=rZe,yle=uZe,Nle=new r0(12),Fle=new Tr(Ld,Nle),ple=(Ea(),k4),Ia=new Tr(l1e,ple),Hw=new Tr(fs,0),Fen=new Tr(DV,le(1)),Lx=new Tr(vm,x3),xd=AI,ei=o9,l4=Np,Pen=Rj,Il=Hin,Kw=Dp,Nen=new Tr($V,(cn(),!0)),qw=Kj,Pd=MV,Ad=$d,Ux=v1,vH=PI,gle=(Ar(),ea),Bs=new Tr(db,gle),sb=Lp,Gx=v1e,Vw=Yw,$en=OV,Rle=O1e,Ble=(_g(),Uj),new Tr(S1e,Ble),Ien=PV,Oen=AV,Den=xV,xen=SV,EH=een,Ile=PZe,pH=SZe,Hy=ZZe,bu=yZe,Rw=YJe,By=XJe,Bw=FJe,dle=NJe,aH=KJe,yj=_Je,hH=UJe,Ole=AZe,Dle=xZe,Mle=bZe,zx=VZe,mH=DZe,gH=fZe,Lle=_Ze,vle=tZe,bH=iZe,lH=MI,$le=IZe,Nx=AJe,lle=PJe,Fx=SJe,Ele=hZe,jle=aZe,Tle=dZe,o4=Fp,Ur=$p,ah=h1e,Ol=CV,dH=TV,ble=HJe,hh=IV,_y=zin,qx=Uin,fb=A1e,_le=Win,f4=Xin,Ple=jZe,Ale=TZe,Gw=ym,oH=MJe,xle=MZe,Kx=ZJe,Rx=JJe,Vx=qj,Sle=pZe,Ry=LZe,Ej=B1e,wle=QJe,Kle=GZe,mle=eZe,Aen=vZe,Sen=GJe,Cle=g1e,Hx=kZe,Bx=zJe,w1=LJe,hle=DJe,_x=IJe,ale=OJe,fH=$Je,bm=xJe,kle=lZe}function Z_(e,n){B_();var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt;if(Ce=e.e,T=e.d,r=e.a,Ce==0)switch(n){case 0:return"0";case 1:return C3;case 2:return"0.00";case 3:return"0.000";case 4:return"0.0000";case 5:return"0.00000";case 6:return"0.000000";default:return ue=new Ph,n<0?ue.a+="0E+":ue.a+="0E",ue.a+=-n,ue.a}if(R=T*10+1+7,G=V(lo,vl,25,R+1,15,1),t=R,T==1)if(f=r[0],f<0){pt=ji(f,Ir);do C=pt,pt=X7(pt,10),G[--t]=48+Fn(Qh(C,ir(pt,10)))&si;while($c(pt,0)!=0)}else{pt=f;do C=pt,pt=pt/10|0,G[--t]=48+(C-pt*10)&si;while(pt!=0)}else{sn=V($n,nt,25,T,15,1),Mn=T,Kc(r,0,sn,0,Mn);e:for(;;){for(we=0,a=Mn-1;a>=0;a--)ln=or(aa(we,32),ji(sn[a],Ir)),L=ckn(ln),sn[a]=Fn(L),we=Fn(_h(L,32));q=Fn(we),x=t;do G[--t]=48+q%10&si;while((q=q/10|0)!=0&&t!=0);for(i=9-x+t,l=0;l0;l++)G[--t]=48;for(w=Mn-1;sn[w]==0;w--)if(w==0)break e;Mn=w+1}for(;G[t]==48;)++t}if(j=Ce<0,o=R-t-n-1,n==0)return j&&(G[--t]=45),mo(G,t,R-t);if(n>0&&o>=-6){if(o>=0){for(h=t+o,k=R-1;k>=h;k--)G[k+1]=G[k];return G[++h]=46,j&&(G[--t]=45),mo(G,t,R-t+1)}for(w=2;w<-o+1;w++)G[--t]=48;return G[--t]=46,G[--t]=48,j&&(G[--t]=45),mo(G,t,R-t)}return Ae=t+1,c=R,ee=new Ib,j&&(ee.a+="-"),c-Ae>=1?(Rh(ee,G[t]),ee.a+=".",ee.a+=mo(G,t+1,R-t-1)):ee.a+=mo(G,t,R-t),ee.a+="E",o>0&&(ee.a+="+"),ee.a+=""+o,ee.a}function FVe(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue;switch(e.c=n,e.g=new Ln,t=(Db(),new Ab(e.c)),i=new zE(t),_Z(i),R=Vn(Te(e.c,(Q7(),Dhe))),l=u(Te(e.c,wV),316),ee=u(Te(e.c,gV),429),o=u(Te(e.c,xhe),482),G=u(Te(e.c,bV),430),e.j=ne(he(Te(e.c,din))),f=e.a,l.g){case 0:f=e.a;break;case 1:f=e.b;break;case 2:f=e.i;break;case 3:f=e.e;break;case 4:f=e.f;break;default:throw I(new rn(rA+(l.f!=null?l.f:""+l.g)))}if(e.d=new uxe(f,ee,o),te(e.d,(Nv(),Cy),ye(Te(e.c,ain))),e.d.c=ke(ye(Te(e.c,Ihe))),UC(e.c).i==0)return e.d;for(w=new jn(UC(e.c));w.e!=w.i.gc();){for(h=u(Sn(w),33),j=h.g/2,k=h.f/2,ue=new je(h.i+j,h.j+k);vs(e.g,ue);)_b(ue,(y.Math.random()-.5)*jl,(y.Math.random()-.5)*jl);C=u(Te(h,(ht(),qj)),142),x=new Exe(ue,new Xs(ue.a-j-e.j/2-C.b,ue.b-k-e.j/2-C.d,h.g+e.j+(C.b+C.c),h.f+e.j+(C.d+C.a))),se(e.d.i,x),jt(e.g,ue,new Gi(x,h))}switch(G.g){case 0:if(R==null)e.d.d=u(ve(e.d.i,0),65);else for(q=new A(e.d.i);q.a1&&ri(h,L,h.c.b,h.c),OM(r)));L=q}return h}function nDn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt,Ci,Vs,_o,rl;for(In(t,"Greedy cycle removal",1),R=n.a,rl=R.c.length,e.a=V($n,nt,25,rl,15,1),e.c=V($n,nt,25,rl,15,1),e.b=V($n,nt,25,rl,15,1),a=0,L=new A(R);L.a0?Mn+1:1);for(o=new A(ue.g);o.a0?Mn+1:1)}e.c[a]==0?ut(e.e,C):e.a[a]==0&&ut(e.f,C),++a}for(T=-1,j=1,w=new oe,e.d=u(M(n,(re(),hm)),230);rl>0;){for(;e.e.b!=0;)Ci=u(H$(e.e),10),e.b[Ci.p]=T--,Tte(e,Ci),--rl;for(;e.f.b!=0;)Vs=u(H$(e.f),10),e.b[Vs.p]=j++,Tte(e,Vs),--rl;if(rl>0){for(k=rr,q=new A(R);q.a=k&&(G>k&&(w.c=V(pn,pe,1,0,5,1),k=G),w.c[w.c.length]=C));h=e.Zf(w),e.b[h.p]=j++,Tte(e,h),--rl}}for(pt=R.c.length+1,a=0;ae.b[_o]&&(K0(i,!0),te(n,wj,(cn(),!0)));e.a=null,e.c=null,e.b=null,go(e.f),go(e.e),Tn(t)}function _Ve(e,n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L;for(i=new oe,f=new oe,x=n/2,j=e.gc(),r=u(e.Xb(0),8),L=u(e.Xb(1),8),T=d_(r.a,r.b,L.a,L.b,x),se(i,(Qe(0,T.c.length),u(T.c[0],8))),se(f,(Qe(1,T.c.length),u(T.c[1],8))),a=2;a=0;l--)ut(t,(Qe(l,o.c.length),u(o.c[l],8)));return t}function tDn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j;if(o=!0,w=null,i=null,r=null,n=!1,j=Vrn,a=null,c=null,f=0,l=vN(e,f,Cde,Mde),l=0&&Re(e.substr(f,2),"//")?(f+=2,l=vN(e,f,y9,k9),i=e.substr(f,l-f),f=l):w!=null&&(f==e.length||(Gn(f,e.length),e.charCodeAt(f)!=47))&&(o=!1,l=tX(e,Pu(35),f),l==-1&&(l=e.length),i=e.substr(f,l-f),f=l);if(!t&&f0&&Xi(h,h.length-1)==58&&(r=h,f=l)),f=e.j){e.a=-1,e.c=1;return}if(n=Xi(e.i,e.d++),e.a=n,e.b==1){switch(n){case 92:if(i=10,e.d>=e.j)throw I(new Hn(Wn((qn(),aA))));e.a=Xi(e.i,e.d++);break;case 45:(e.e&512)==512&&e.d=e.j||Xi(e.i,e.d)!=63)break;if(++e.d>=e.j)throw I(new Hn(Wn((qn(),pK))));switch(n=Xi(e.i,e.d++),n){case 58:i=13;break;case 61:i=14;break;case 33:i=15;break;case 91:i=19;break;case 62:i=18;break;case 60:if(e.d>=e.j)throw I(new Hn(Wn((qn(),pK))));if(n=Xi(e.i,e.d++),n==61)i=16;else if(n==33)i=17;else throw I(new Hn(Wn((qn(),NUe))));break;case 35:for(;e.d=e.j)throw I(new Hn(Wn((qn(),aA))));e.a=Xi(e.i,e.d++);break;default:i=0}e.c=i}function rDn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn;if(we=u(M(e,(be(),ei)),98),we!=(Hi(),el)&&we!=j1){for(T=e.b,j=T.c.length,h=new tu((Is(j+2,rB),IM(or(or(5,j+2),(j+2)/10|0)))),C=new tu((Is(j+2,rB),IM(or(or(5,j+2),(j+2)/10|0)))),se(h,new Ln),se(h,new Ln),se(C,new oe),se(C,new oe),ue=new oe,n=0;n=ee||!Cyn(L,i))&&(i=Dxe(n,h)),Hr(L,i),c=new En(Cn(ic(L).a.Kc(),new J));Un(c);)r=u(_n(c),17),!e.a[r.p]&&(C=r.c.i,--e.e[C.p],e.e[C.p]==0&&Ev(u3(j,C)));for(a=h.c.length-1;a>=0;--a)se(n.b,(Qe(a,h.c.length),u(h.c[a],29)));n.a.c=V(pn,pe,1,0,5,1),Tn(t)}function BVe(e){var n,t,i,r,c,o,f,l,a;for(e.b=1,wt(e),n=null,e.c==0&&e.a==94?(wt(e),n=(gt(),gt(),new Ps(4)),Uc(n,0,R3),f=new Ps(4)):f=(gt(),gt(),new Ps(4)),r=!0;(a=e.c)!=1;){if(a==0&&e.a==93&&!r){n&&(q6(n,f),f=n);break}if(t=e.a,i=!1,a==10)switch(t){case 100:case 68:case 119:case 87:case 115:case 83:vw(f,w3(t)),i=!0;break;case 105:case 73:case 99:case 67:t=(vw(f,w3(t)),-1),t<0&&(i=!0);break;case 112:case 80:if(l=One(e,t),!l)throw I(new Hn(Wn((qn(),mK))));vw(f,l),i=!0;break;default:t=hte(e)}else if(a==24&&!r){if(n&&(q6(n,f),f=n),c=BVe(e),q6(f,c),e.c!=0||e.a!=93)throw I(new Hn(Wn((qn(),UUe))));break}if(wt(e),!i){if(a==0){if(t==91)throw I(new Hn(Wn((qn(),iue))));if(t==93)throw I(new Hn(Wn((qn(),rue))));if(t==45&&!r&&e.a!=93)throw I(new Hn(Wn((qn(),vK))))}if(e.c!=0||e.a!=45||t==45&&r)Uc(f,t,t);else{if(wt(e),(a=e.c)==1)throw I(new Hn(Wn((qn(),hA))));if(a==0&&e.a==93)Uc(f,t,t),Uc(f,45,45);else{if(a==0&&e.a==93||a==24)throw I(new Hn(Wn((qn(),vK))));if(o=e.a,a==0){if(o==91)throw I(new Hn(Wn((qn(),iue))));if(o==93)throw I(new Hn(Wn((qn(),rue))));if(o==45)throw I(new Hn(Wn((qn(),vK))))}else a==10&&(o=hte(e));if(wt(e),t>o)throw I(new Hn(Wn((qn(),YUe))));Uc(f,t,o)}}}r=!1}if(e.c==1)throw I(new Hn(Wn((qn(),hA))));return zg(f),R6(f),e.b=0,wt(e),f}function uDn(e){Rn(e.c,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#decimal"])),Rn(e.d,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#integer"])),Rn(e.e,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#boolean"])),Rn(e.f,et,D(O(ge,1),ie,2,6,[cr,"EBoolean",at,"EBoolean:Object"])),Rn(e.i,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#byte"])),Rn(e.g,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#hexBinary"])),Rn(e.j,et,D(O(ge,1),ie,2,6,[cr,"EByte",at,"EByte:Object"])),Rn(e.n,et,D(O(ge,1),ie,2,6,[cr,"EChar",at,"EChar:Object"])),Rn(e.t,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#double"])),Rn(e.u,et,D(O(ge,1),ie,2,6,[cr,"EDouble",at,"EDouble:Object"])),Rn(e.F,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#float"])),Rn(e.G,et,D(O(ge,1),ie,2,6,[cr,"EFloat",at,"EFloat:Object"])),Rn(e.I,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#int"])),Rn(e.J,et,D(O(ge,1),ie,2,6,[cr,"EInt",at,"EInt:Object"])),Rn(e.N,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#long"])),Rn(e.O,et,D(O(ge,1),ie,2,6,[cr,"ELong",at,"ELong:Object"])),Rn(e.Z,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#short"])),Rn(e.$,et,D(O(ge,1),ie,2,6,[cr,"EShort",at,"EShort:Object"])),Rn(e._,et,D(O(ge,1),ie,2,6,[cr,"http://www.w3.org/2001/XMLSchema#string"]))}function sDn(e){var n,t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn;if(e.c.length==1)return Qe(0,e.c.length),u(e.c[0],135);if(e.c.length<=0)return new pM;for(l=new A(e);l.aw&&(ln=0,Mn+=h+we,h=0),pCn(ee,o,ln,Mn),n=y.Math.max(n,ln+ue.a),h=y.Math.max(h,ue.b),ln+=ue.a+we;for(G=new Ln,t=new Ln,Ae=new A(e);Ae.ab_(c))&&(w=c);for(!w&&(w=(Qe(0,x.c.length),u(x.c[0],180))),C=new A(n.b);C.a=-1900?1:0,t>=4?Qn(e,D(O(ge,1),ie,2,6,[tGe,iGe])[f]):Qn(e,D(O(ge,1),ie,2,6,["BC","AD"])[f]);break;case 121:n9n(e,t,i);break;case 77:cPn(e,t,i);break;case 107:l=r.q.getHours(),l==0?ql(e,24,t):ql(e,l,t);break;case 83:MCn(e,t,r);break;case 69:h=i.q.getDay(),t==5?Qn(e,D(O(ge,1),ie,2,6,["S","M","T","W","T","F","S"])[h]):t==4?Qn(e,D(O(ge,1),ie,2,6,[mB,vB,yB,kB,jB,EB,TB])[h]):Qn(e,D(O(ge,1),ie,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[h]);break;case 97:r.q.getHours()>=12&&r.q.getHours()<24?Qn(e,D(O(ge,1),ie,2,6,["AM","PM"])[1]):Qn(e,D(O(ge,1),ie,2,6,["AM","PM"])[0]);break;case 104:w=r.q.getHours()%12,w==0?ql(e,12,t):ql(e,w,t);break;case 75:k=r.q.getHours()%12,ql(e,k,t);break;case 72:j=r.q.getHours(),ql(e,j,t);break;case 99:T=i.q.getDay(),t==5?Qn(e,D(O(ge,1),ie,2,6,["S","M","T","W","T","F","S"])[T]):t==4?Qn(e,D(O(ge,1),ie,2,6,[mB,vB,yB,kB,jB,EB,TB])[T]):t==3?Qn(e,D(O(ge,1),ie,2,6,["Sun","Mon","Tue","Wed","Thu","Fri","Sat"])[T]):ql(e,T,1);break;case 76:C=i.q.getMonth(),t==5?Qn(e,D(O(ge,1),ie,2,6,["J","F","M","A","M","J","J","A","S","O","N","D"])[C]):t==4?Qn(e,D(O(ge,1),ie,2,6,[sB,oB,fB,lB,H2,aB,hB,dB,bB,wB,gB,pB])[C]):t==3?Qn(e,D(O(ge,1),ie,2,6,["Jan","Feb","Mar","Apr",H2,"Jun","Jul","Aug","Sep","Oct","Nov","Dec"])[C]):ql(e,C+1,t);break;case 81:x=i.q.getMonth()/3|0,t<4?Qn(e,D(O(ge,1),ie,2,6,["Q1","Q2","Q3","Q4"])[x]):Qn(e,D(O(ge,1),ie,2,6,["1st quarter","2nd quarter","3rd quarter","4th quarter"])[x]);break;case 100:L=i.q.getDate(),ql(e,L,t);break;case 109:a=r.q.getMinutes(),ql(e,a,t);break;case 115:o=r.q.getSeconds(),ql(e,o,t);break;case 122:t<4?Qn(e,c.c[0]):Qn(e,c.c[1]);break;case 118:Qn(e,c.b);break;case 90:t<3?Qn(e,wEn(c)):t==3?Qn(e,mEn(c)):Qn(e,vEn(c.a));break;default:return!1}return!0}function iie(e,n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt;if(Mqe(n),l=u(K((!n.b&&(n.b=new Xe(An,n,4,7)),n.b),0),82),h=u(K((!n.c&&(n.c=new Xe(An,n,5,8)),n.c),0),82),f=Qr(l),a=Qr(h),o=(!n.a&&(n.a=new fe(Gt,n,6,6)),n.a).i==0?null:u(K((!n.a&&(n.a=new fe(Gt,n,6,6)),n.a),0),202),we=u(kn(e.a,f),10),ln=u(kn(e.a,a),10),Ce=null,Mn=null,_(l,186)&&(ue=u(kn(e.a,l),299),_(ue,11)?Ce=u(ue,11):_(ue,10)&&(we=u(ue,10),Ce=u(ve(we.j,0),11))),_(h,186)&&(sn=u(kn(e.a,h),299),_(sn,11)?Mn=u(sn,11):_(sn,10)&&(ln=u(sn,10),Mn=u(ve(ln.j,0),11))),!we||!ln)throw I(new J4("The source or the target of edge "+n+" could not be found. This usually happens when an edge connects a node laid out by ELK Layered to a node in another level of hierarchy laid out by either another instance of ELK Layered or another layout algorithm alltogether. The former can be solved by setting the hierarchyHandling option to INCLUDE_CHILDREN."));for(C=new w0,Yr(C,n),te(C,(re(),Et),n),te(C,(be(),Ur),null),j=u(M(i,Jc),21),we==ln&&j.Fc((xr(),$y)),Ce||(ee=(Pr(),ou),Ae=null,o&&vg(u(M(we,ei),98))&&(Ae=new je(o.j,o.k),FIe(Ae,Q8(n)),hOe(Ae,t),ew(a,f)&&(ee=Ju,Mt(Ae,we.n))),Ce=THe(we,Ae,ee,i)),Mn||(ee=(Pr(),Ju),pt=null,o&&vg(u(M(ln,ei),98))&&(pt=new je(o.b,o.c),FIe(pt,Q8(n)),hOe(pt,t)),Mn=THe(ln,pt,ee,ar(ln))),sr(C,Ce),Ki(C,Mn),(Ce.e.c.length>1||Ce.g.c.length>1||Mn.e.c.length>1||Mn.g.c.length>1)&&j.Fc((xr(),Dy)),k=new jn((!n.n&&(n.n=new fe(uc,n,1,7)),n.n));k.e!=k.i.gc();)if(w=u(Sn(k),137),!ke(ye(Te(w,xd)))&&w.a)switch(x=eN(w),se(C.b,x),u(M(x,Ol),272).g){case 1:case 2:j.Fc((xr(),r4));break;case 0:j.Fc((xr(),i4)),te(x,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Dt(e.T,14),Gr(e.T),Gr(e.T),e.U=kc(e,12),Wt(e.U,2),Wt(e.U,3),Dt(e.U,4),Dt(e.U,5),Dt(e.U,6),Dt(e.U,7),Gr(e.U),e.V=kc(e,13),Dt(e.V,10),e.W=kc(e,14),Wt(e.W,18),Wt(e.W,19),Wt(e.W,20),Dt(e.W,21),Dt(e.W,22),Dt(e.W,23),e.bb=kc(e,15),Wt(e.bb,10),Wt(e.bb,11),Wt(e.bb,12),Wt(e.bb,13),Wt(e.bb,14),Wt(e.bb,15),Wt(e.bb,16),Dt(e.bb,17),Gr(e.bb),Gr(e.bb),e.eb=kc(e,16),Wt(e.eb,2),Wt(e.eb,3),Wt(e.eb,4),Wt(e.eb,5),Wt(e.eb,6),Wt(e.eb,7),Dt(e.eb,8),Dt(e.eb,9),e.ab=kc(e,17),Wt(e.ab,0),Wt(e.ab,1),e.H=kc(e,18),Dt(e.H,0),Dt(e.H,1),Dt(e.H,2),Dt(e.H,3),Dt(e.H,4),Dt(e.H,5),Gr(e.H),e.db=kc(e,19),Dt(e.db,2),e.c=lt(e,20),e.d=lt(e,21),e.e=lt(e,22),e.f=lt(e,23),e.i=lt(e,24),e.g=lt(e,25),e.j=lt(e,26),e.k=lt(e,27),e.n=lt(e,28),e.r=lt(e,29),e.s=lt(e,30),e.t=lt(e,31),e.u=lt(e,32),e.fb=lt(e,33),e.A=lt(e,34),e.C=lt(e,35),e.D=lt(e,36),e.F=lt(e,37),e.G=lt(e,38),e.I=lt(e,39),e.J=lt(e,40),e.L=lt(e,41),e.M=lt(e,42),e.N=lt(e,43),e.O=lt(e,44),e.P=lt(e,45),e.X=lt(e,46),e.Y=lt(e,47),e.Z=lt(e,48),e.$=lt(e,49),e._=lt(e,50),e.cb=lt(e,51),e.K=lt(e,52))}function ht(){ht=U;var e,n;s9=new Rt(zze),m4=new Rt(Uze),c1e=(Hl(),vV),Hin=new Ve(Vre,c1e),vm=new Ve(X2,null),Vin=new Rt(_ce),s1e=(lw(),Ft(jV,D(O(EV,1),ce,291,0,[kV]))),MI=new Ve(QP,s1e),Rj=new Ve(qk,(cn(),!1)),o1e=(Ar(),ea),db=new Ve(Ure,o1e),a1e=(Ea(),LV),l1e=new Ve(Rk,a1e),b1e=new Ve(iA,!1),w1e=(ka(),OI),Dp=new Ve(YP,w1e),C1e=new r0(12),Ld=new Ve(z0,C1e),SI=new Ve($k,!1),g1e=new Ve(FR,!1),Hj=new Ve(J6,!1),x1e=(Hi(),j1),o9=new Ve(nR,x1e),ym=new Rt(JP),xI=new Rt(Dk),DV=new Rt(OP),$V=new Rt(Q6),p1e=new Lu,$p=new Ve(tce,p1e),zin=new Ve(cce,!1),Uin=new Ve(uce,!1),m1e=new z4,qj=new Ve(oce,m1e),AI=new Ve(qre,!1),Qin=new Ve(Wze,1),new Ve(Xze,!0),le(0),new Ve(Yze,le(100)),new Ve(Qze,!1),le(0),new Ve(Jze,le(4e3)),le(0),new Ve(Zze,le(400)),new Ve(eUe,!1),new Ve(nUe,!1),new Ve(tUe,!0),new Ve(iUe,!1),u1e=(pS(),BV),Gin=new Ve(Nce,u1e),Jin=new Ve(xre,10),Zin=new Ve(Ire,10),$1e=new Ve(XB,20),ern=new Ve(Ore,10),L1e=new Ve(eR,2),nrn=new Ve(Dre,10),F1e=new Ve($re,0),II=new Ve(Nre,5),N1e=new Ve(Lre,1),_1e=new Ve(Fre,1),Fd=new Ve(Tw,20),trn=new Ve(_re,10),K1e=new Ve(Bre,10),km=new Rt(Rre),R1e=new oCe,B1e=new Ve(fce,R1e),Xin=new Rt(LR),M1e=!1,Win=new Ve($R,M1e),y1e=new r0(5),v1e=new Ve(Wre,y1e),k1e=(bw(),n=u(df(Dr),9),new Ws(n,u(Go(n,n.length),9),0)),Lp=new Ve(I3,k1e),P1e=(_g(),k1),S1e=new Ve(Qre,P1e),PV=new Rt(Jre),AV=new Rt(Zre),xV=new Rt(ece),SV=new Rt(nce),j1e=(e=u(df(g9),9),new Ws(e,u(Go(e,e.length),9),0)),$d=new Ve(cp,j1e),T1e=_e((us(),E4)),v1=new Ve(Y2,T1e),E1e=new je(0,0),Fp=new Ve(Q2,E1e),PI=new Ve(DR,!1),f1e=(Bf(),v4),CV=new Ve(ice,f1e),TV=new Ve(DP,!1),le(1),new Ve(rUe,null),A1e=new Rt(sce),IV=new Rt(rce),D1e=(ae(),gc),Np=new Ve(Hre,D1e),fs=new Rt(Kre),I1e=(Yu(),_e(E1)),Yw=new Ve(O3,I1e),OV=new Ve(Xre,!1),O1e=new Ve(Yre,!0),Kj=new Ve(Gre,!1),MV=new Ve(zre,!1),h1e=new Ve(YB,1),d1e=(HS(),NV),new Ve(cUe,d1e),Yin=!0}function re(){re=U;var e,n;Et=new Rt(Rie),Cfe=new Rt("coordinateOrigin"),cH=new Rt("processors"),Tfe=new yi("compoundNode",(cn(),!1)),gj=new yi("insideConnections",!1),Afe=new Rt("originalBendpoints"),xfe=new Rt("originalDummyNodePosition"),Ife=new Rt("originalLabelEdge"),mj=new Rt("representedLabels"),Ly=new Rt("endLabels"),fm=new Rt("endLabel.origin"),am=new yi("labelSide",(Ds(),zj)),Ep=new yi("maxEdgeThickness",0),Qf=new yi("reversed",!1),hm=new Rt(KGe),Mf=new yi("longEdgeSource",null),Po=new yi("longEdgeTarget",null),Nw=new yi("longEdgeHasLabelDummies",!1),pj=new yi("longEdgeBeforeLabelDummy",!1),Ox=new yi("edgeConstraint",(td(),qq)),cb=new Rt("inLayerLayoutUnit"),Md=new yi("inLayerConstraint",(ma(),bj)),lm=new yi("inLayerSuccessorConstraint",new oe),Pfe=new yi("inLayerSuccessorConstraintBetweenNonDummies",!1),Qu=new Rt("portDummy"),Ix=new yi("crossingHint",le(0)),Jc=new yi("graphProperties",(n=u(df(Xq),9),new Ws(n,u(Go(n,n.length),9),0))),Tc=new yi("externalPortSide",(ae(),gc)),Sfe=new yi("externalPortSize",new tr),eH=new Rt("externalPortReplacedDummies"),Dx=new Rt("externalPortReplacedDummy"),Fw=new yi("externalPortConnections",(e=u(df(kr),9),new Ws(e,u(Go(e,e.length),9),0))),ub=new yi(DGe,0),Efe=new Rt("barycenterAssociates"),dm=new Rt("TopSideComments"),om=new Rt("BottomSideComments"),xx=new Rt("CommentConnectionPort"),tH=new yi("inputCollect",!1),rH=new yi("outputCollect",!1),wj=new yi("cyclic",!1),Mfe=new Rt("crossHierarchyMap"),sH=new Rt("targetOffset"),new yi("splineLabelSize",new tr),Cp=new Rt("spacings"),$x=new yi("partitionConstraint",!1),ib=new Rt("breakingPoint.info"),$fe=new Rt("splines.survivingEdge"),Sd=new Rt("splines.route.start"),Mp=new Rt("splines.edgeChain"),Dfe=new Rt("originalPortConstraints"),u4=new Rt("selfLoopHolder"),s4=new Rt("splines.nsPortY"),_c=new Rt("modelOrder"),iH=new Rt("longEdgeTargetNode"),rb=new yi(bze,!1),Tp=new yi(bze,!1),nH=new Rt("layerConstraints.hiddenNodes"),Ofe=new Rt("layerConstraints.opposidePort"),uH=new Rt("targetNode.modelOrder")}function rie(){rie=U,Gfe=(m7(),Ex),QJe=new Ve(Wie,Gfe),fZe=new Ve(Xie,(cn(),!1)),Qfe=(lM(),Zq),bZe=new Ve(NP,Qfe),AZe=new Ve(Yie,!1),xZe=new Ve(Qie,!0),MJe=new Ve(Jie,!1),cle=(b7(),$H),GZe=new Ve(Zie,cle),le(1),ZZe=new Ve(ere,le(7)),een=new Ve(nre,!1),lZe=new Ve(tre,!1),Vfe=(ld(),Rq),YJe=new Ve(sR,Vfe),ele=(KS(),SH),PZe=new Ve(_k,ele),Jfe=(to(),vj),yZe=new Ve(ire,Jfe),le(-1),vZe=new Ve(rre,le(-1)),le(-1),kZe=new Ve(cre,le(-1)),le(-1),jZe=new Ve(oR,le(4)),le(-1),TZe=new Ve(fR,le(2)),Zfe=(Wg(),eI),SZe=new Ve(lR,Zfe),le(0),MZe=new Ve(aR,le(0)),pZe=new Ve(hR,le(vt)),Hfe=(P2(),um),XJe=new Ve(ty,Hfe),FJe=new Ve(ure,!1),HJe=new Ve(dR,.1),UJe=new Ve(bR,!1),le(-1),GJe=new Ve(sre,le(-1)),le(-1),zJe=new Ve(ore,le(-1)),le(0),NJe=new Ve(fre,le(40)),qfe=(Rv(),Qq),KJe=new Ve(wR,qfe),Kfe=dj,_Je=new Ve(_P,Kfe),rle=(j6(),Vy),VZe=new Ve(up,rle),LZe=new Rt(BP),nle=(l7(),Cx),IZe=new Ve(gR,nle),tle=(Y7(),Mx),DZe=new Ve(pR,tle),_Ze=new Ve(mR,.3),RZe=new Rt(vR),ile=(sw(),Zx),KZe=new Ve(yR,ile),Wfe=(JM(),FH),tZe=new Ve(lre,Wfe),Xfe=(r7(),NH),iZe=new Ve(are,Xfe),Yfe=(Uv(),Uy),rZe=new Ve(RP,Yfe),uZe=new Ve(KP,.2),eZe=new Ve(kR,2),XZe=new Ve(hre,null),QZe=new Ve(dre,10),YZe=new Ve(bre,10),JZe=new Ve(wre,20),le(0),zZe=new Ve(gre,le(0)),le(0),UZe=new Ve(pre,le(0)),le(0),WZe=new Ve(mre,le(0)),SJe=new Ve(jR,!1),Nfe=(s3(),Oy),AJe=new Ve(vre,Nfe),Ffe=(kM(),_q),PJe=new Ve(yre,Ffe),hZe=new Ve(qP,!1),le(0),aZe=new Ve(ER,le(16)),le(0),dZe=new Ve(TR,le(5)),ole=(iS(),RH),yen=new Ve(xa,ole),nen=new Ve(HP,10),ren=new Ve(VP,1),sle=(BM(),jx),aen=new Ve(iy,sle),sen=new Rt(CR),ule=le(1),le(0),fen=new Ve(MR,ule),fle=(YM(),BH),Ten=new Ve(GP,fle),ken=new Rt(zP),gen=new Ve(UP,!0),ben=new Ve(WP,2),men=new Ve(SR,!0),Ufe=(GS(),Tx),ZJe=new Ve(kre,Ufe),zfe=(N2(),e4),JJe=new Ve(jre,zfe),Rfe=(ya(),g1),LJe=new Ve(XP,Rfe),$Je=new Ve(Ere,!1),_fe=(A0(),gp),xJe=new Ve(PR,_fe),Bfe=(a6(),PH),DJe=new Ve(Tre,Bfe),IJe=new Ve(AR,0),OJe=new Ve(xR,0),gZe=Kq,wZe=hj,EZe=Qx,CZe=Qx,mZe=MH,VJe=(ka(),ph),WJe=um,qJe=um,BJe=um,RJe=ph,FZe=Gy,NZe=Vy,OZe=Vy,$Ze=Vy,BZe=OH,HZe=Gy,qZe=Gy,cZe=(Ea(),jm),sZe=jm,oZe=Uy,nZe=Vj,ten=b4,ien=Uw,cen=b4,uen=Uw,hen=b4,den=Uw,oen=Bq,len=jx,Cen=b4,Men=Uw,jen=b4,Een=Uw,pen=Uw,wen=Uw,ven=Uw}function Mr(){Mr=U,joe=new ui("DIRECTION_PREPROCESSOR",0),voe=new ui("COMMENT_PREPROCESSOR",1),Sy=new ui("EDGE_AND_LAYER_CONSTRAINT_EDGE_REVERSER",2),Tq=new ui("INTERACTIVE_EXTERNAL_PORT_POSITIONER",3),Koe=new ui("PARTITION_PREPROCESSOR",4),ix=new ui("LABEL_DUMMY_INSERTER",5),dx=new ui("SELF_LOOP_PREPROCESSOR",6),Y3=new ui("LAYER_CONSTRAINT_PREPROCESSOR",7),Boe=new ui("PARTITION_MIDPROCESSOR",8),xoe=new ui("HIGH_DEGREE_NODE_LAYER_PROCESSOR",9),Noe=new ui("NODE_PROMOTION",10),X3=new ui("LAYER_CONSTRAINT_POSTPROCESSOR",11),Roe=new ui("PARTITION_POSTPROCESSOR",12),Soe=new ui("HIERARCHICAL_PORT_CONSTRAINT_PROCESSOR",13),qoe=new ui("SEMI_INTERACTIVE_CROSSMIN_PROCESSOR",14),doe=new ui("BREAKING_POINT_INSERTER",15),sx=new ui("LONG_EDGE_SPLITTER",16),Cq=new ui("PORT_SIDE_PROCESSOR",17),nx=new ui("INVERTED_PORT_PROCESSOR",18),lx=new ui("PORT_LIST_SORTER",19),Voe=new ui("SORT_BY_INPUT_ORDER_OF_MODEL",20),fx=new ui("NORTH_SOUTH_PORT_PREPROCESSOR",21),boe=new ui("BREAKING_POINT_PROCESSOR",22),_oe=new ui(uze,23),Goe=new ui(sze,24),ax=new ui("SELF_LOOP_PORT_RESTORER",25),Hoe=new ui("SINGLE_EDGE_GRAPH_WRAPPER",26),tx=new ui("IN_LAYER_CONSTRAINT_PROCESSOR",27),Toe=new ui("END_NODE_PORT_LABEL_MANAGEMENT_PROCESSOR",28),Loe=new ui("LABEL_AND_NODE_SIZE_PROCESSOR",29),$oe=new ui("INNERMOST_NODE_MARGIN_CALCULATOR",30),bx=new ui("SELF_LOOP_ROUTER",31),poe=new ui("COMMENT_NODE_MARGIN_CALCULATOR",32),ex=new ui("END_LABEL_PREPROCESSOR",33),cx=new ui("LABEL_DUMMY_SWITCHER",34),goe=new ui("CENTER_LABEL_MANAGEMENT_PROCESSOR",35),W3=new ui("LABEL_SIDE_SELECTOR",36),Ooe=new ui("HYPEREDGE_DUMMY_MERGER",37),Poe=new ui("HIERARCHICAL_PORT_DUMMY_SIZE_PROCESSOR",38),Foe=new ui("LAYER_SIZE_AND_GRAPH_HEIGHT_CALCULATOR",39),Py=new ui("HIERARCHICAL_PORT_POSITION_PROCESSOR",40),yoe=new ui("CONSTRAINTS_POSTPROCESSOR",41),moe=new ui("COMMENT_POSTPROCESSOR",42),Doe=new ui("HYPERNODE_PROCESSOR",43),Aoe=new ui("HIERARCHICAL_PORT_ORTHOGONAL_EDGE_ROUTER",44),ux=new ui("LONG_EDGE_JOINER",45),hx=new ui("SELF_LOOP_POSTPROCESSOR",46),woe=new ui("BREAKING_POINT_REMOVER",47),ox=new ui("NORTH_SOUTH_PORT_POSTPROCESSOR",48),Ioe=new ui("HORIZONTAL_COMPACTOR",49),rx=new ui("LABEL_DUMMY_REMOVER",50),Coe=new ui("FINAL_SPLINE_BENDPOINTS_CALCULATOR",51),Eoe=new ui("END_LABEL_SORTER",52),lj=new ui("REVERSED_EDGE_RESTORER",53),ZA=new ui("END_LABEL_POSTPROCESSOR",54),Moe=new ui("HIERARCHICAL_NODE_RESIZER",55),koe=new ui("DIRECTION_POSTPROCESSOR",56)}function hDn(e,n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae,sn,ln,Mn,pt,Ci,Vs,_o,rl,eO,lE,A9,aE,P4,nG,Kcn,tG,Eh,vb,A4,hE,dE,Pm,iG,x9,qcn,u0e,yb,I9,rG,Am,O9,ug,D9,cG,Hcn;for(u0e=0,pt=n,_o=0,lE=pt.length;_o0&&(e.a[Eh.p]=u0e++)}for(O9=0,Ci=t,rl=0,A9=Ci.length;rl0;){for(Eh=(vn(dE.b>0),u(dE.a.Xb(dE.c=--dE.b),11)),hE=0,f=new A(Eh.e);f.a0&&(Eh.j==(ae(),tn)?(e.a[Eh.p]=O9,++O9):(e.a[Eh.p]=O9+aE+nG,++nG))}O9+=nG}for(A4=new Ln,T=new fa,Mn=n,Vs=0,eO=Mn.length;Vsa.b&&(a.b=Pm)):Eh.i.c==qcn&&(Pma.c&&(a.c=Pm));for(Cv(C,0,C.length,null),Am=V($n,nt,25,C.length,15,1),i=V($n,nt,25,O9+1,15,1),L=0;L0;)we%2>0&&(r+=cG[we+1]),we=(we-1)/2|0,++cG[we];for(Ae=V(wnn,pe,362,C.length*2,0,1),G=0;G'?":Re(NUe,e)?"'(?<' or '(? toIndex: ",pie=", toIndex: ",mie="Index: ",vie=", Size: ",M3="org.eclipse.elk.alg.common",xt={62:1},wGe="org.eclipse.elk.alg.common.compaction",gGe="Scanline/EventHandler",Xl="org.eclipse.elk.alg.common.compaction.oned",pGe="CNode belongs to another CGroup.",mGe="ISpacingsHandler/1",NB="The ",_B=" instance has been finished already.",vGe="The direction ",yGe=" is not supported by the CGraph instance.",kGe="OneDimensionalCompactor",jGe="OneDimensionalCompactor/lambda$0$Type",EGe="Quadruplet",TGe="ScanlineConstraintCalculator",CGe="ScanlineConstraintCalculator/ConstraintsScanlineHandler",MGe="ScanlineConstraintCalculator/ConstraintsScanlineHandler/lambda$0$Type",SGe="ScanlineConstraintCalculator/Timestamp",PGe="ScanlineConstraintCalculator/lambda$0$Type",yl={169:1,45:1},BB="org.eclipse.elk.alg.common.compaction.options",wc="org.eclipse.elk.core.data",yie="org.eclipse.elk.polyomino.traversalStrategy",kie="org.eclipse.elk.polyomino.lowLevelSort",jie="org.eclipse.elk.polyomino.highLevelSort",Eie="org.eclipse.elk.polyomino.fill",ko={130:1},RB="polyomino",W6="org.eclipse.elk.alg.common.networksimplex",Yl={177:1,3:1,4:1},AGe="org.eclipse.elk.alg.common.nodespacing",wd="org.eclipse.elk.alg.common.nodespacing.cellsystem",S3="CENTER",xGe={212:1,326:1},Tie={3:1,4:1,5:1,595:1},z2="LEFT",U2="RIGHT",Cie="Vertical alignment cannot be null",Mie="BOTTOM",MP="org.eclipse.elk.alg.common.nodespacing.internal",X6="UNDEFINED",zf=.01,xk="org.eclipse.elk.alg.common.nodespacing.internal.algorithm",IGe="LabelPlacer/lambda$0$Type",OGe="LabelPlacer/lambda$1$Type",DGe="portRatioOrPosition",P3="org.eclipse.elk.alg.common.overlaps",KB="DOWN",kl="org.eclipse.elk.alg.common.polyomino",SP="NORTH",qB="EAST",HB="SOUTH",VB="WEST",PP="org.eclipse.elk.alg.common.polyomino.structures",Sie="Direction",GB="Grid is only of size ",zB=". Requested point (",UB=") is out of bounds.",AP=" Given center based coordinates were (",Ik="org.eclipse.elk.graph.properties",$Ge="IPropertyHolder",Pie={3:1,94:1,134:1},W2="org.eclipse.elk.alg.common.spore",LGe="org.eclipse.elk.alg.common.utils",gd={209:1},ip="org.eclipse.elk.core",FGe="Connected Components Compaction",NGe="org.eclipse.elk.alg.disco",xP="org.eclipse.elk.alg.disco.graph",WB="org.eclipse.elk.alg.disco.options",Aie="CompactionStrategy",xie="org.eclipse.elk.disco.componentCompaction.strategy",Iie="org.eclipse.elk.disco.componentCompaction.componentLayoutAlgorithm",Oie="org.eclipse.elk.disco.debug.discoGraph",Die="org.eclipse.elk.disco.debug.discoPolys",_Ge="componentCompaction",pd="org.eclipse.elk.disco",XB="org.eclipse.elk.spacing.componentComponent",YB="org.eclipse.elk.edge.thickness",X2="org.eclipse.elk.aspectRatio",z0="org.eclipse.elk.padding",rp="org.eclipse.elk.alg.disco.transform",QB=1.5707963267948966,A3=17976931348623157e292,Ew={3:1,4:1,5:1,192:1},$ie={3:1,6:1,4:1,5:1,106:1,120:1},Lie="org.eclipse.elk.alg.force",Fie="ComponentsProcessor",BGe="ComponentsProcessor/1",Ok="org.eclipse.elk.alg.force.graph",RGe="Component Layout",Nie="org.eclipse.elk.alg.force.model",IP="org.eclipse.elk.force.model",_ie="org.eclipse.elk.force.iterations",Bie="org.eclipse.elk.force.repulsivePower",JB="org.eclipse.elk.force.temperature",jl=.001,ZB="org.eclipse.elk.force.repulsion",Y6="org.eclipse.elk.alg.force.options",x3=1.600000023841858,Fs="org.eclipse.elk.force",Dk="org.eclipse.elk.priority",Tw="org.eclipse.elk.spacing.nodeNode",eR="org.eclipse.elk.spacing.edgeLabel",OP="org.eclipse.elk.randomSeed",Q6="org.eclipse.elk.separateConnectedComponents",$k="org.eclipse.elk.interactive",nR="org.eclipse.elk.portConstraints",DP="org.eclipse.elk.edgeLabels.inline",J6="org.eclipse.elk.omitNodeMicroLayout",Y2="org.eclipse.elk.nodeSize.options",cp="org.eclipse.elk.nodeSize.constraints",I3="org.eclipse.elk.nodeLabels.placement",O3="org.eclipse.elk.portLabels.placement",Rie="origin",KGe="random",qGe="boundingBox.upLeft",HGe="boundingBox.lowRight",Kie="org.eclipse.elk.stress.fixed",qie="org.eclipse.elk.stress.desiredEdgeLength",Hie="org.eclipse.elk.stress.dimension",Vie="org.eclipse.elk.stress.epsilon",Gie="org.eclipse.elk.stress.iterationLimit",c1="org.eclipse.elk.stress",VGe="ELK Stress",Q2="org.eclipse.elk.nodeSize.minimum",$P="org.eclipse.elk.alg.force.stress",GGe="Layered layout",J2="org.eclipse.elk.alg.layered",Lk="org.eclipse.elk.alg.layered.compaction.components",Z6="org.eclipse.elk.alg.layered.compaction.oned",LP="org.eclipse.elk.alg.layered.compaction.oned.algs",md="org.eclipse.elk.alg.layered.compaction.recthull",El="org.eclipse.elk.alg.layered.components",Aa="NONE",Lc={3:1,6:1,4:1,9:1,5:1,122:1},zGe={3:1,6:1,4:1,5:1,141:1,106:1,120:1},FP="org.eclipse.elk.alg.layered.compound",Zt={51:1},uu="org.eclipse.elk.alg.layered.graph",tR=" -> ",UGe="Not supported by LGraph",zie="Port side is undefined",iR={3:1,6:1,4:1,5:1,474:1,141:1,106:1,120:1},uh={3:1,6:1,4:1,5:1,141:1,193:1,203:1,106:1,120:1},WGe={3:1,6:1,4:1,5:1,141:1,1943:1,203:1,106:1,120:1},XGe=`([{"' \r +`,YGe=`)]}"' \r +`,QGe="The given string contains parts that cannot be parsed as numbers.",Fk="org.eclipse.elk.core.math",JGe={3:1,4:1,142:1,207:1,414:1},ZGe={3:1,4:1,116:1,207:1,414:1},wn="org.eclipse.elk.layered",sh="org.eclipse.elk.alg.layered.graph.transform",eze="ElkGraphImporter",nze="ElkGraphImporter/lambda$0$Type",tze="ElkGraphImporter/lambda$1$Type",ize="ElkGraphImporter/lambda$2$Type",rze="ElkGraphImporter/lambda$4$Type",cze="Node margin calculation",fn="org.eclipse.elk.alg.layered.intermediate",uze="ONE_SIDED_GREEDY_SWITCH",sze="TWO_SIDED_GREEDY_SWITCH",rR="No implementation is available for the layout processor ",Uie="IntermediateProcessorStrategy",cR="Node '",oze="FIRST_SEPARATE",fze="LAST_SEPARATE",lze="Odd port side processing",di="org.eclipse.elk.alg.layered.intermediate.compaction",ey="org.eclipse.elk.alg.layered.intermediate.greedyswitch",Ql="org.eclipse.elk.alg.layered.p3order.counting",Nk={225:1},Z2="org.eclipse.elk.alg.layered.intermediate.loops",Ns="org.eclipse.elk.alg.layered.intermediate.loops.ordering",u1="org.eclipse.elk.alg.layered.intermediate.loops.routing",ny="org.eclipse.elk.alg.layered.intermediate.preserveorder",Tl="org.eclipse.elk.alg.layered.intermediate.wrapping",Fc="org.eclipse.elk.alg.layered.options",uR="INTERACTIVE",aze="DEPTH_FIRST",hze="EDGE_LENGTH",dze="SELF_LOOPS",bze="firstTryWithInitialOrder",Wie="org.eclipse.elk.layered.directionCongruency",Xie="org.eclipse.elk.layered.feedbackEdges",NP="org.eclipse.elk.layered.interactiveReferencePoint",Yie="org.eclipse.elk.layered.mergeEdges",Qie="org.eclipse.elk.layered.mergeHierarchyEdges",Jie="org.eclipse.elk.layered.allowNonFlowPortsToSwitchSides",Zie="org.eclipse.elk.layered.portSortingStrategy",ere="org.eclipse.elk.layered.thoroughness",nre="org.eclipse.elk.layered.unnecessaryBendpoints",tre="org.eclipse.elk.layered.generatePositionAndLayerIds",sR="org.eclipse.elk.layered.cycleBreaking.strategy",_k="org.eclipse.elk.layered.layering.strategy",ire="org.eclipse.elk.layered.layering.layerConstraint",rre="org.eclipse.elk.layered.layering.layerChoiceConstraint",cre="org.eclipse.elk.layered.layering.layerId",oR="org.eclipse.elk.layered.layering.minWidth.upperBoundOnWidth",fR="org.eclipse.elk.layered.layering.minWidth.upperLayerEstimationScalingFactor",lR="org.eclipse.elk.layered.layering.nodePromotion.strategy",aR="org.eclipse.elk.layered.layering.nodePromotion.maxIterations",hR="org.eclipse.elk.layered.layering.coffmanGraham.layerBound",ty="org.eclipse.elk.layered.crossingMinimization.strategy",ure="org.eclipse.elk.layered.crossingMinimization.forceNodeModelOrder",dR="org.eclipse.elk.layered.crossingMinimization.hierarchicalSweepiness",bR="org.eclipse.elk.layered.crossingMinimization.semiInteractive",sre="org.eclipse.elk.layered.crossingMinimization.positionChoiceConstraint",ore="org.eclipse.elk.layered.crossingMinimization.positionId",fre="org.eclipse.elk.layered.crossingMinimization.greedySwitch.activationThreshold",wR="org.eclipse.elk.layered.crossingMinimization.greedySwitch.type",_P="org.eclipse.elk.layered.crossingMinimization.greedySwitchHierarchical.type",up="org.eclipse.elk.layered.nodePlacement.strategy",BP="org.eclipse.elk.layered.nodePlacement.favorStraightEdges",gR="org.eclipse.elk.layered.nodePlacement.bk.edgeStraightening",pR="org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment",mR="org.eclipse.elk.layered.nodePlacement.linearSegments.deflectionDampening",vR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility",yR="org.eclipse.elk.layered.nodePlacement.networkSimplex.nodeFlexibility.default",lre="org.eclipse.elk.layered.edgeRouting.selfLoopDistribution",are="org.eclipse.elk.layered.edgeRouting.selfLoopOrdering",RP="org.eclipse.elk.layered.edgeRouting.splines.mode",KP="org.eclipse.elk.layered.edgeRouting.splines.sloppy.layerSpacingFactor",kR="org.eclipse.elk.layered.edgeRouting.polyline.slopedEdgeZoneWidth",hre="org.eclipse.elk.layered.spacing.baseValue",dre="org.eclipse.elk.layered.spacing.edgeNodeBetweenLayers",bre="org.eclipse.elk.layered.spacing.edgeEdgeBetweenLayers",wre="org.eclipse.elk.layered.spacing.nodeNodeBetweenLayers",gre="org.eclipse.elk.layered.priority.direction",pre="org.eclipse.elk.layered.priority.shortness",mre="org.eclipse.elk.layered.priority.straightness",jR="org.eclipse.elk.layered.compaction.connectedComponents",vre="org.eclipse.elk.layered.compaction.postCompaction.strategy",yre="org.eclipse.elk.layered.compaction.postCompaction.constraints",qP="org.eclipse.elk.layered.highDegreeNodes.treatment",ER="org.eclipse.elk.layered.highDegreeNodes.threshold",TR="org.eclipse.elk.layered.highDegreeNodes.treeHeight",xa="org.eclipse.elk.layered.wrapping.strategy",HP="org.eclipse.elk.layered.wrapping.additionalEdgeSpacing",VP="org.eclipse.elk.layered.wrapping.correctionFactor",iy="org.eclipse.elk.layered.wrapping.cutting.strategy",CR="org.eclipse.elk.layered.wrapping.cutting.cuts",MR="org.eclipse.elk.layered.wrapping.cutting.msd.freedom",GP="org.eclipse.elk.layered.wrapping.validify.strategy",zP="org.eclipse.elk.layered.wrapping.validify.forbiddenIndices",UP="org.eclipse.elk.layered.wrapping.multiEdge.improveCuts",WP="org.eclipse.elk.layered.wrapping.multiEdge.distancePenalty",SR="org.eclipse.elk.layered.wrapping.multiEdge.improveWrappedEdges",kre="org.eclipse.elk.layered.edgeLabels.sideSelection",jre="org.eclipse.elk.layered.edgeLabels.centerLabelPlacementStrategy",XP="org.eclipse.elk.layered.considerModelOrder.strategy",Ere="org.eclipse.elk.layered.considerModelOrder.noModelOrder",PR="org.eclipse.elk.layered.considerModelOrder.components",Tre="org.eclipse.elk.layered.considerModelOrder.longEdgeStrategy",AR="org.eclipse.elk.layered.considerModelOrder.crossingCounterNodeInfluence",xR="org.eclipse.elk.layered.considerModelOrder.crossingCounterPortInfluence",IR="layering",wze="layering.minWidth",gze="layering.nodePromotion",Bk="crossingMinimization",YP="org.eclipse.elk.hierarchyHandling",pze="crossingMinimization.greedySwitch",mze="nodePlacement",vze="nodePlacement.bk",yze="edgeRouting",Rk="org.eclipse.elk.edgeRouting",Uf="spacing",Cre="priority",Mre="compaction",kze="compaction.postCompaction",jze="Specifies whether and how post-process compaction is applied.",Sre="highDegreeNodes",Pre="wrapping",Eze="wrapping.cutting",Tze="wrapping.validify",Are="wrapping.multiEdge",OR="edgeLabels",Kk="considerModelOrder",xre="org.eclipse.elk.spacing.commentComment",Ire="org.eclipse.elk.spacing.commentNode",Ore="org.eclipse.elk.spacing.edgeEdge",Dre="org.eclipse.elk.spacing.edgeNode",$re="org.eclipse.elk.spacing.labelLabel",Lre="org.eclipse.elk.spacing.labelPortHorizontal",Fre="org.eclipse.elk.spacing.labelPortVertical",Nre="org.eclipse.elk.spacing.labelNode",_re="org.eclipse.elk.spacing.nodeSelfLoop",Bre="org.eclipse.elk.spacing.portPort",Rre="org.eclipse.elk.spacing.individual",Kre="org.eclipse.elk.port.borderOffset",qre="org.eclipse.elk.noLayout",Hre="org.eclipse.elk.port.side",qk="org.eclipse.elk.debugMode",Vre="org.eclipse.elk.alignment",Gre="org.eclipse.elk.insideSelfLoops.activate",zre="org.eclipse.elk.insideSelfLoops.yo",DR="org.eclipse.elk.nodeSize.fixedGraphSize",Ure="org.eclipse.elk.direction",Wre="org.eclipse.elk.nodeLabels.padding",Xre="org.eclipse.elk.portLabels.nextToPortIfPossible",Yre="org.eclipse.elk.portLabels.treatAsGroup",Qre="org.eclipse.elk.portAlignment.default",Jre="org.eclipse.elk.portAlignment.north",Zre="org.eclipse.elk.portAlignment.south",ece="org.eclipse.elk.portAlignment.west",nce="org.eclipse.elk.portAlignment.east",QP="org.eclipse.elk.contentAlignment",tce="org.eclipse.elk.junctionPoints",ice="org.eclipse.elk.edgeLabels.placement",rce="org.eclipse.elk.port.index",cce="org.eclipse.elk.commentBox",uce="org.eclipse.elk.hypernode",sce="org.eclipse.elk.port.anchor",$R="org.eclipse.elk.partitioning.activate",LR="org.eclipse.elk.partitioning.partition",JP="org.eclipse.elk.position",oce="org.eclipse.elk.margins",fce="org.eclipse.elk.spacing.portsSurrounding",FR="org.eclipse.elk.interactiveLayout",Nc="org.eclipse.elk.core.util",lce={3:1,4:1,5:1,593:1},Cze="NETWORK_SIMPLEX",Xc={123:1,51:1},ZP="org.eclipse.elk.alg.layered.p1cycles",Cw="org.eclipse.elk.alg.layered.p2layers",ace={402:1,225:1},Mze={832:1,3:1,4:1},Hu="org.eclipse.elk.alg.layered.p3order",Or="org.eclipse.elk.alg.layered.p4nodes",Sze={3:1,4:1,5:1,840:1},Cl=1e-5,s1="org.eclipse.elk.alg.layered.p4nodes.bk",NR="org.eclipse.elk.alg.layered.p5edges",Ef="org.eclipse.elk.alg.layered.p5edges.orthogonal",_R="org.eclipse.elk.alg.layered.p5edges.orthogonal.direction",BR=1e-6,Mw="org.eclipse.elk.alg.layered.p5edges.splines",RR=.09999999999999998,eA=1e-8,Pze=4.71238898038469,Aze=3.141592653589793,ry="org.eclipse.elk.alg.mrtree",cy="org.eclipse.elk.alg.mrtree.graph",em="org.eclipse.elk.alg.mrtree.intermediate",xze="Set neighbors in level",Ize="DESCENDANTS",hce="org.eclipse.elk.mrtree.weighting",dce="org.eclipse.elk.mrtree.searchOrder",nA="org.eclipse.elk.alg.mrtree.options",oh="org.eclipse.elk.mrtree",Oze="org.eclipse.elk.tree",bce="org.eclipse.elk.alg.radial",sp=6.283185307179586,wce=5e-324,Dze="org.eclipse.elk.alg.radial.intermediate",KR="org.eclipse.elk.alg.radial.intermediate.compaction",$ze={3:1,4:1,5:1,106:1},gce="org.eclipse.elk.alg.radial.intermediate.optimization",qR="No implementation is available for the layout option ",uy="org.eclipse.elk.alg.radial.options",pce="org.eclipse.elk.radial.orderId",mce="org.eclipse.elk.radial.radius",HR="org.eclipse.elk.radial.compactor",VR="org.eclipse.elk.radial.compactionStepSize",vce="org.eclipse.elk.radial.sorter",yce="org.eclipse.elk.radial.wedgeCriteria",kce="org.eclipse.elk.radial.optimizationCriteria",Ml="org.eclipse.elk.radial",Lze="org.eclipse.elk.alg.radial.p1position.wedge",jce="org.eclipse.elk.alg.radial.sorting",Fze=5.497787143782138,Nze=3.9269908169872414,_ze=2.356194490192345,Bze="org.eclipse.elk.alg.rectpacking",tA="org.eclipse.elk.alg.rectpacking.firstiteration",GR="org.eclipse.elk.alg.rectpacking.options",Ece="org.eclipse.elk.rectpacking.optimizationGoal",Tce="org.eclipse.elk.rectpacking.lastPlaceShift",Cce="org.eclipse.elk.rectpacking.currentPosition",Mce="org.eclipse.elk.rectpacking.desiredPosition",Sce="org.eclipse.elk.rectpacking.onlyFirstIteration",Pce="org.eclipse.elk.rectpacking.rowCompaction",zR="org.eclipse.elk.rectpacking.expandToAspectRatio",Ace="org.eclipse.elk.rectpacking.targetWidth",iA="org.eclipse.elk.expandNodes",jo="org.eclipse.elk.rectpacking",Hk="org.eclipse.elk.alg.rectpacking.util",rA="No implementation available for ",Sw="org.eclipse.elk.alg.spore",Pw="org.eclipse.elk.alg.spore.options",U0="org.eclipse.elk.sporeCompaction",UR="org.eclipse.elk.underlyingLayoutAlgorithm",xce="org.eclipse.elk.processingOrder.treeConstruction",Ice="org.eclipse.elk.processingOrder.spanningTreeCostFunction",WR="org.eclipse.elk.processingOrder.preferredRoot",XR="org.eclipse.elk.processingOrder.rootSelection",YR="org.eclipse.elk.structure.structureExtractionStrategy",Oce="org.eclipse.elk.compaction.compactionStrategy",Dce="org.eclipse.elk.compaction.orthogonal",$ce="org.eclipse.elk.overlapRemoval.maxIterations",Lce="org.eclipse.elk.overlapRemoval.runScanline",QR="processingOrder",Rze="overlapRemoval",D3="org.eclipse.elk.sporeOverlap",Kze="org.eclipse.elk.alg.spore.p1structure",JR="org.eclipse.elk.alg.spore.p2processingorder",ZR="org.eclipse.elk.alg.spore.p3execution",qze="Invalid index: ",$3="org.eclipse.elk.core.alg",op={331:1},Aw={288:1},Hze="Make sure its type is registered with the ",Fce=" utility class.",L3="true",eK="false",Vze="Couldn't clone property '",W0=.05,Eo="org.eclipse.elk.core.options",Gze=1.2999999523162842,X0="org.eclipse.elk.box",Nce="org.eclipse.elk.box.packingMode",zze="org.eclipse.elk.algorithm",Uze="org.eclipse.elk.resolvedAlgorithm",_ce="org.eclipse.elk.bendPoints",pDn="org.eclipse.elk.labelManager",Wze="org.eclipse.elk.scaleFactor",Xze="org.eclipse.elk.animate",Yze="org.eclipse.elk.animTimeFactor",Qze="org.eclipse.elk.layoutAncestors",Jze="org.eclipse.elk.maxAnimTime",Zze="org.eclipse.elk.minAnimTime",eUe="org.eclipse.elk.progressBar",nUe="org.eclipse.elk.validateGraph",tUe="org.eclipse.elk.validateOptions",iUe="org.eclipse.elk.zoomToFit",mDn="org.eclipse.elk.font.name",rUe="org.eclipse.elk.font.size",cUe="org.eclipse.elk.edge.type",uUe="partitioning",sUe="nodeLabels",cA="portAlignment",nK="nodeSize",tK="port",Bce="portLabels",oUe="insideSelfLoops",sy="org.eclipse.elk.fixed",uA="org.eclipse.elk.random",fUe="port must have a parent node to calculate the port side",lUe="The edge needs to have exactly one edge section. Found: ",oy="org.eclipse.elk.core.util.adapters",ro="org.eclipse.emf.ecore",fp="org.eclipse.elk.graph",aUe="EMapPropertyHolder",hUe="ElkBendPoint",dUe="ElkGraphElement",bUe="ElkConnectableShape",Rce="ElkEdge",wUe="ElkEdgeSection",gUe="EModelElement",pUe="ENamedElement",Kce="ElkLabel",qce="ElkNode",Hce="ElkPort",mUe={92:1,90:1},nm="org.eclipse.emf.common.notify.impl",o1="The feature '",fy="' is not a valid changeable feature",vUe="Expecting null",iK="' is not a valid feature",yUe="The feature ID",kUe=" is not a valid feature ID",xc=32768,jUe={105:1,92:1,90:1,56:1,49:1,97:1},Ze="org.eclipse.emf.ecore.impl",vd="org.eclipse.elk.graph.impl",ly="Recursive containment not allowed for ",F3="The datatype '",Y0="' is not a valid classifier",rK="The value '",lp={190:1,3:1,4:1},cK="The class '",N3="http://www.eclipse.org/elk/ElkGraph",ef=1024,Vce="property",ay="value",uK="source",EUe="properties",TUe="identifier",sK="height",oK="width",fK="parent",lK="text",aK="children",CUe="hierarchical",Gce="sources",hK="targets",zce="sections",sA="bendPoints",Uce="outgoingShape",Wce="incomingShape",Xce="outgoingSections",Yce="incomingSections",dr="org.eclipse.emf.common.util",Qce="Severe implementation error in the Json to ElkGraph importer.",Sl="id",Qi="org.eclipse.elk.graph.json",Jce="Unhandled parameter types: ",MUe="startPoint",SUe="An edge must have at least one source and one target (edge id: '",_3="').",PUe="Referenced edge section does not exist: ",AUe=" (edge id: '",Zce="target",xUe="sourcePoint",IUe="targetPoint",oA="group",at="name",OUe="connectableShape cannot be null",DUe="edge cannot be null",dK="Passed edge is not 'simple'.",fA="org.eclipse.elk.graph.util",Vk="The 'no duplicates' constraint is violated",bK="targetIndex=",yd=", size=",wK="sourceIndex=",Pl={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1},gK={3:1,4:1,20:1,28:1,52:1,14:1,47:1,15:1,54:1,67:1,63:1,58:1,588:1},lA="logging",$Ue="measureExecutionTime",LUe="parser.parse.1",FUe="parser.parse.2",aA="parser.next.1",pK="parser.next.2",NUe="parser.next.3",_Ue="parser.next.4",kd="parser.factor.1",eue="parser.factor.2",BUe="parser.factor.3",RUe="parser.factor.4",KUe="parser.factor.5",qUe="parser.factor.6",HUe="parser.atom.1",VUe="parser.atom.2",GUe="parser.atom.3",nue="parser.atom.4",mK="parser.atom.5",tue="parser.cc.1",hA="parser.cc.2",zUe="parser.cc.3",UUe="parser.cc.5",iue="parser.cc.6",rue="parser.cc.7",vK="parser.cc.8",WUe="parser.ope.1",XUe="parser.ope.2",YUe="parser.ope.3",fh="parser.descape.1",QUe="parser.descape.2",JUe="parser.descape.3",ZUe="parser.descape.4",eWe="parser.descape.5",co="parser.process.1",nWe="parser.quantifier.1",tWe="parser.quantifier.2",iWe="parser.quantifier.3",rWe="parser.quantifier.4",cue="parser.quantifier.5",cWe="org.eclipse.emf.common.notify",uue={415:1,672:1},uWe={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1},Gk={366:1,143:1},hy="index=",yK={3:1,4:1,5:1,126:1},sWe={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,58:1},sue={3:1,6:1,4:1,5:1,192:1},oWe={3:1,4:1,5:1,165:1,367:1},fWe=";/?:@&=+$,",lWe="invalid authority: ",aWe="EAnnotation",hWe="ETypedElement",dWe="EStructuralFeature",bWe="EAttribute",wWe="EClassifier",gWe="EEnumLiteral",pWe="EGenericType",mWe="EOperation",vWe="EParameter",yWe="EReference",kWe="ETypeParameter",Nt="org.eclipse.emf.ecore.util",kK={76:1},oue={3:1,20:1,14:1,15:1,58:1,589:1,76:1,69:1,95:1},jWe="org.eclipse.emf.ecore.util.FeatureMap$Entry",Vu=8192,xw=2048,dy="byte",dA="char",by="double",wy="float",gy="int",py="long",my="short",EWe="java.lang.Object",ap={3:1,4:1,5:1,247:1},fue={3:1,4:1,5:1,673:1},TWe={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,69:1},cc={3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,69:1,95:1},zk="mixed",et="http:///org/eclipse/emf/ecore/util/ExtendedMetaData",To="kind",CWe={3:1,4:1,5:1,674:1},lue={3:1,4:1,20:1,28:1,52:1,14:1,15:1,67:1,58:1,76:1,69:1,95:1},bA={20:1,28:1,52:1,14:1,15:1,58:1,69:1},wA={47:1,125:1,279:1},gA={72:1,332:1},pA="The value of type '",mA="' must be of type '",hp=1316,Co="http://www.eclipse.org/emf/2002/Ecore",vA=-32768,Q0="constraints",cr="baseType",MWe="getEStructuralFeature",SWe="getFeatureID",vy="feature",PWe="getOperationID",aue="operation",AWe="defaultValue",xWe="eTypeParameters",IWe="isInstance",OWe="getEEnumLiteral",DWe="eContainingClass",ot={55:1},$We={3:1,4:1,5:1,119:1},LWe="org.eclipse.emf.ecore.resource",FWe={92:1,90:1,591:1,1935:1},jK="org.eclipse.emf.ecore.resource.impl",hue="unspecified",Uk="simple",yA="attribute",NWe="attributeWildcard",kA="element",EK="elementWildcard",Tf="collapse",TK="itemType",jA="namespace",Wk="##targetNamespace",Mo="whiteSpace",due="wildcards",jd="http://www.eclipse.org/emf/2003/XMLType",CK="##any",B3="uninitialized",Xk="The multiplicity constraint is violated",EA="org.eclipse.emf.ecore.xml.type",_We="ProcessingInstruction",BWe="SimpleAnyType",RWe="XMLTypeDocumentRoot",oi="org.eclipse.emf.ecore.xml.type.impl",Yk="INF",KWe="processing",qWe="ENTITIES_._base",bue="minLength",wue="ENTITY",TA="NCName",HWe="IDREFS_._base",gue="integer",MK="token",SK="pattern",VWe="[a-zA-Z]{1,8}(-[a-zA-Z0-9]{1,8})*",pue="\\i\\c*",GWe="[\\i-[:]][\\c-[:]]*",zWe="nonPositiveInteger",Qk="maxInclusive",mue="NMTOKEN",UWe="NMTOKENS_._base",vue="nonNegativeInteger",Jk="minInclusive",WWe="normalizedString",XWe="unsignedByte",YWe="unsignedInt",QWe="18446744073709551615",JWe="unsignedShort",ZWe="processingInstruction",lh="org.eclipse.emf.ecore.xml.type.internal",R3=1114111,eXe="Internal Error: shorthands: \\u",yy="xml:isDigit",PK="xml:isWord",AK="xml:isSpace",xK="xml:isNameChar",IK="xml:isInitialNameChar",nXe="09٠٩۰۹०९০৯੦੯૦૯୦୯௧௯౦౯೦೯൦൯๐๙໐໙༠༩",tXe="AZazÀÖØöøıĴľŁňŊžƀǃǍǰǴǵǺȗɐʨʻˁΆΆΈΊΌΌΎΡΣώϐϖϚϚϜϜϞϞϠϠϢϳЁЌЎяёќўҁҐӄӇӈӋӌӐӫӮӵӸӹԱՖՙՙաֆאתװײءغفيٱڷںھۀێېۓەەۥۦअहऽऽक़ॡঅঌএঐওনপরললশহড়ঢ়য়ৡৰৱਅਊਏਐਓਨਪਰਲਲ਼ਵਸ਼ਸਹਖ਼ੜਫ਼ਫ਼ੲੴઅઋઍઍએઑઓનપરલળવહઽઽૠૠଅଌଏଐଓନପରଲଳଶହଽଽଡ଼ଢ଼ୟୡஅஊஎஐஒகஙசஜஜஞடணதநபமவஷஹఅఌఎఐఒనపళవహౠౡಅಌಎಐಒನಪಳವಹೞೞೠೡഅഌഎഐഒനപഹൠൡกฮะะาำเๅກຂຄຄງຈຊຊຍຍດທນຟມຣລລວວສຫອຮະະາຳຽຽເໄཀཇཉཀྵႠჅაჶᄀᄀᄂᄃᄅᄇᄉᄉᄋᄌᄎᄒᄼᄼᄾᄾᅀᅀᅌᅌᅎᅎᅐᅐᅔᅕᅙᅙᅟᅡᅣᅣᅥᅥᅧᅧᅩᅩᅭᅮᅲᅳᅵᅵᆞᆞᆨᆨᆫᆫᆮᆯᆷᆸᆺᆺᆼᇂᇫᇫᇰᇰᇹᇹḀẛẠỹἀἕἘἝἠὅὈὍὐὗὙὙὛὛὝὝὟώᾀᾴᾶᾼιιῂῄῆῌῐΐῖΊῠῬῲῴῶῼΩΩKÅ℮℮ↀↂ〇〇〡〩ぁゔァヺㄅㄬ一龥가힣",iXe="Private Use",OK="ASSIGNED",DK="\0€ÿĀſƀɏɐʯʰ˿̀ͯͰϿЀӿ԰֏֐׿؀ۿ܀ݏހ޿ऀॿঀ৿਀੿઀૿଀୿஀௿ఀ౿ಀ೿ഀൿ඀෿฀๿຀໿ༀ࿿က႟Ⴀჿᄀᇿሀ፿Ꭰ᏿᐀ᙿ ᚟ᚠ᛿ក៿᠀᢯Ḁỿἀ῿ ⁰₟₠⃏⃐⃿℀⅏⅐↏←⇿∀⋿⌀⏿␀␿⑀⑟①⓿─╿▀▟■◿☀⛿✀➿⠀⣿⺀⻿⼀⿟⿰⿿ 〿぀ゟ゠ヿ㄀ㄯ㄰㆏㆐㆟ㆠㆿ㈀㋿㌀㏿㐀䶵一鿿ꀀ꒏꒐꓏가힣豈﫿ffﭏﭐ﷿︠︯︰﹏﹐﹯ﹰ﻾\uFEFF\uFEFF＀￯",yue="UNASSIGNED",K3={3:1,117:1},rXe="org.eclipse.emf.ecore.xml.type.util",CA={3:1,4:1,5:1,368:1},kue="org.eclipse.xtext.xbase.lib",cXe="Cannot add elements to a Range",uXe="Cannot set elements in a Range",sXe="Cannot remove elements from a Range",MA="locale",SA="default",PA="user.agent",s,AA,$K;y.goog=y.goog||{},y.goog.global=y.goog.global||y,Vkn(),g(1,null,{},N),s.Fb=function(n){return tCe(this,n)},s.Gb=function(){return this.gm},s.Hb=function(){return c0(this)},s.Ib=function(){var n;return xh(is(this))+"@"+(n=Bt(this)>>>0,n.toString(16))},s.equals=function(e){return this.Fb(e)},s.hashCode=function(){return this.Hb()},s.toString=function(){return this.Ib()};var oXe,fXe,lXe;g(290,1,{290:1,2026:1},JJ),s.le=function(n){var t;return t=new JJ,t.i=4,n>1?t.c=vxe(this,n-1):t.c=this,t},s.me=function(){return la(this),this.b},s.ne=function(){return xh(this)},s.oe=function(){return la(this),this.k},s.pe=function(){return(this.i&4)!=0},s.qe=function(){return(this.i&1)!=0},s.Ib=function(){return dJ(this)},s.i=0;var pn=p(bc,"Object",1),jue=p(bc,"Class",290);g(1998,1,yk),p(kk,"Optional",1998),g(1170,1998,yk,B),s.Fb=function(n){return n===this},s.Hb=function(){return 2040732332},s.Ib=function(){return"Optional.absent()"},s.Jb=function(n){return Nn(n),U4(),LK};var LK;p(kk,"Absent",1170),g(628,1,{},AD),p(kk,"Joiner",628);var vDn=Ht(kk,"Predicate");g(582,1,{169:1,582:1,3:1,45:1},tye),s.Mb=function(n){return cFe(this,n)},s.Lb=function(n){return cFe(this,n)},s.Fb=function(n){var t;return _(n,582)?(t=u(n,582),Gne(this.a,t.a)):!1},s.Hb=function(){return iZ(this.a)+306654252},s.Ib=function(){return xjn(this.a)},p(kk,"Predicates/AndPredicate",582),g(408,1998,{408:1,3:1},HE),s.Fb=function(n){var t;return _(n,408)?(t=u(n,408),kt(this.a,t.a)):!1},s.Hb=function(){return 1502476572+Bt(this.a)},s.Ib=function(){return GVe+this.a+")"},s.Jb=function(n){return new HE(zC(n.Kb(this.a),"the Function passed to Optional.transform() must not return null."))},p(kk,"Present",408),g(198,1,y3),s.Nb=function(n){Wi(this,n)},s.Qb=function(){zke()},p(Me,"UnmodifiableIterator",198),g(1978,198,k3),s.Qb=function(){zke()},s.Rb=function(n){throw I(new Kn)},s.Wb=function(n){throw I(new Kn)},p(Me,"UnmodifiableListIterator",1978),g(386,1978,k3),s.Ob=function(){return this.c0},s.Pb=function(){if(this.c>=this.d)throw I(new Sc);return this.Xb(this.c++)},s.Tb=function(){return this.c},s.Ub=function(){if(this.c<=0)throw I(new Sc);return this.Xb(--this.c)},s.Vb=function(){return this.c-1},s.c=0,s.d=0,p(Me,"AbstractIndexedListIterator",386),g(699,198,y3),s.Ob=function(){return MF(this)},s.Pb=function(){return sJ(this)},s.e=1,p(Me,"AbstractIterator",699),g(1986,1,{224:1}),s.Zb=function(){var n;return n=this.f,n||(this.f=this.ac())},s.Fb=function(n){return VF(this,n)},s.Hb=function(){return Bt(this.Zb())},s.dc=function(){return this.gc()==0},s.ec=function(){return b2(this)},s.Ib=function(){return rc(this.Zb())},p(Me,"AbstractMultimap",1986),g(726,1986,dd),s.$b=function(){RM(this)},s._b=function(n){return aje(this,n)},s.ac=function(){return new Xm(this,this.c)},s.ic=function(n){return this.hc()},s.bc=function(){return new Eg(this,this.c)},s.jc=function(){return this.mc(this.hc())},s.kc=function(){return new Ake(this)},s.lc=function(){return QN(this.c.vc().Nc(),new z,64,this.d)},s.cc=function(n){return Tt(this,n)},s.fc=function(n){return $7(this,n)},s.gc=function(){return this.d},s.mc=function(n){return He(),new Nm(n)},s.nc=function(){return new Pke(this)},s.oc=function(){return QN(this.c.Cc().Nc(),new H,64,this.d)},s.pc=function(n,t){return new yM(this,n,t,null)},s.d=0,p(Me,"AbstractMapBasedMultimap",726),g(1631,726,dd),s.hc=function(){return new tu(this.a)},s.jc=function(){return He(),He(),Sr},s.cc=function(n){return u(Tt(this,n),15)},s.fc=function(n){return u($7(this,n),15)},s.Zb=function(){return v2(this)},s.Fb=function(n){return VF(this,n)},s.qc=function(n){return u(Tt(this,n),15)},s.rc=function(n){return u($7(this,n),15)},s.mc=function(n){return U8(u(n,15))},s.pc=function(n,t){return TIe(this,n,u(t,15),null)},p(Me,"AbstractListMultimap",1631),g(732,1,Bi),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return this.c.Ob()||this.e.Ob()},s.Pb=function(){var n;return this.e.Ob()||(n=u(this.c.Pb(),42),this.b=n.cd(),this.a=u(n.dd(),14),this.e=this.a.Kc()),this.sc(this.b,this.e.Pb())},s.Qb=function(){this.e.Qb(),this.a.dc()&&this.c.Qb(),--this.d.d},p(Me,"AbstractMapBasedMultimap/Itr",732),g(1099,732,Bi,Pke),s.sc=function(n,t){return t},p(Me,"AbstractMapBasedMultimap/1",1099),g(1100,1,{},H),s.Kb=function(n){return u(n,14).Nc()},p(Me,"AbstractMapBasedMultimap/1methodref$spliterator$Type",1100),g(1101,732,Bi,Ake),s.sc=function(n,t){return new e0(n,t)},p(Me,"AbstractMapBasedMultimap/2",1101);var Eue=Ht(Pn,"Map");g(1967,1,V0),s.wc=function(n){o6(this,n)},s.yc=function(n,t,i){return sN(this,n,t,i)},s.$b=function(){this.vc().$b()},s.tc=function(n){return $N(this,n)},s._b=function(n){return!!Wee(this,n,!1)},s.uc=function(n){var t,i,r;for(i=this.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),r=t.dd(),X(n)===X(r)||n!=null&&kt(n,r))return!0;return!1},s.Fb=function(n){var t,i,r;if(n===this)return!0;if(!_(n,83)||(r=u(n,83),this.gc()!=r.gc()))return!1;for(i=r.vc().Kc();i.Ob();)if(t=u(i.Pb(),42),!this.tc(t))return!1;return!0},s.xc=function(n){return mc(Wee(this,n,!1))},s.Hb=function(){return UJ(this.vc())},s.dc=function(){return this.gc()==0},s.ec=function(){return new Fm(this)},s.zc=function(n,t){throw I(new Ba("Put not supported on this map"))},s.Ac=function(n){s6(this,n)},s.Bc=function(n){return mc(Wee(this,n,!0))},s.gc=function(){return this.vc().gc()},s.Ib=function(){return sBe(this)},s.Cc=function(){return new sa(this)},p(Pn,"AbstractMap",1967),g(1987,1967,V0),s.bc=function(){return new dT(this)},s.vc=function(){return EPe(this)},s.ec=function(){var n;return n=this.g,n||(this.g=this.bc())},s.Cc=function(){var n;return n=this.i,n||(this.i=new iEe(this))},p(Me,"Maps/ViewCachingAbstractMap",1987),g(389,1987,V0,Xm),s.xc=function(n){return h3n(this,n)},s.Bc=function(n){return P5n(this,n)},s.$b=function(){this.d==this.e.c?this.e.$b():jC(new wY(this))},s._b=function(n){return _Fe(this.d,n)},s.Ec=function(){return new uye(this)},s.Dc=function(){return this.Ec()},s.Fb=function(n){return this===n||kt(this.d,n)},s.Hb=function(){return Bt(this.d)},s.ec=function(){return this.e.ec()},s.gc=function(){return this.d.gc()},s.Ib=function(){return rc(this.d)},p(Me,"AbstractMapBasedMultimap/AsMap",389);var Wf=Ht(bc,"Iterable");g(28,1,yw),s.Jc=function(n){Yi(this,n)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new Ye(this,0)},s.Oc=function(){return new We(null,this.Nc())},s.Fc=function(n){throw I(new Ba("Add not supported on this collection"))},s.Gc=function(n){return pr(this,n)},s.$b=function(){eQ(this)},s.Hc=function(n){return cw(this,n,!1)},s.Ic=function(n){return C7(this,n)},s.dc=function(){return this.gc()==0},s.Mc=function(n){return cw(this,n,!0)},s.Pc=function(){return PY(this)},s.Qc=function(n){return V7(this,n)},s.Ib=function(){return Zh(this)},p(Pn,"AbstractCollection",28);var So=Ht(Pn,"Set");g(Gf,28,qu),s.Nc=function(){return new Ye(this,1)},s.Fb=function(n){return INe(this,n)},s.Hb=function(){return UJ(this)},p(Pn,"AbstractSet",Gf),g(1970,Gf,qu),p(Me,"Sets/ImprovedAbstractSet",1970),g(1971,1970,qu),s.$b=function(){this.Rc().$b()},s.Hc=function(n){return hNe(this,n)},s.dc=function(){return this.Rc().dc()},s.Mc=function(n){var t;return this.Hc(n)?(t=u(n,42),this.Rc().ec().Mc(t.cd())):!1},s.gc=function(){return this.Rc().gc()},p(Me,"Maps/EntrySet",1971),g(1097,1971,qu,uye),s.Hc=function(n){return jZ(this.a.d.vc(),n)},s.Kc=function(){return new wY(this.a)},s.Rc=function(){return this.a},s.Mc=function(n){var t;return jZ(this.a.d.vc(),n)?(t=u(n,42),Jmn(this.a.e,t.cd()),!0):!1},s.Nc=function(){return B8(this.a.d.vc().Nc(),new sye(this.a))},p(Me,"AbstractMapBasedMultimap/AsMap/AsMapEntries",1097),g(1098,1,{},sye),s.Kb=function(n){return dOe(this.a,u(n,42))},p(Me,"AbstractMapBasedMultimap/AsMap/AsMapEntries/0methodref$wrapEntry$Type",1098),g(730,1,Bi,wY),s.Nb=function(n){Wi(this,n)},s.Pb=function(){var n;return n=u(this.b.Pb(),42),this.a=u(n.dd(),14),dOe(this.c,n)},s.Ob=function(){return this.b.Ob()},s.Qb=function(){Og(!!this.a),this.b.Qb(),this.c.e.d-=this.a.gc(),this.a.$b(),this.a=null},p(Me,"AbstractMapBasedMultimap/AsMap/AsMapIterator",730),g(532,1970,qu,dT),s.$b=function(){this.b.$b()},s.Hc=function(n){return this.b._b(n)},s.Jc=function(n){Nn(n),this.b.wc(new Tye(n))},s.dc=function(){return this.b.dc()},s.Kc=function(){return new W4(this.b.vc().Kc())},s.Mc=function(n){return this.b._b(n)?(this.b.Bc(n),!0):!1},s.gc=function(){return this.b.gc()},p(Me,"Maps/KeySet",532),g(318,532,qu,Eg),s.$b=function(){var n;jC((n=this.b.vc().Kc(),new KU(this,n)))},s.Ic=function(n){return this.b.ec().Ic(n)},s.Fb=function(n){return this===n||kt(this.b.ec(),n)},s.Hb=function(){return Bt(this.b.ec())},s.Kc=function(){var n;return n=this.b.vc().Kc(),new KU(this,n)},s.Mc=function(n){var t,i;return i=0,t=u(this.b.Bc(n),14),t&&(i=t.gc(),t.$b(),this.a.d-=i),i>0},s.Nc=function(){return this.b.ec().Nc()},p(Me,"AbstractMapBasedMultimap/KeySet",318),g(731,1,Bi,KU),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return this.c.Ob()},s.Pb=function(){return this.a=u(this.c.Pb(),42),this.a.cd()},s.Qb=function(){var n;Og(!!this.a),n=u(this.a.dd(),14),this.c.Qb(),this.b.a.d-=n.gc(),n.$b(),this.a=null},p(Me,"AbstractMapBasedMultimap/KeySet/1",731),g(491,389,{83:1,161:1},O8),s.bc=function(){return this.Sc()},s.ec=function(){return this.Tc()},s.Sc=function(){return new o8(this.c,this.Uc())},s.Tc=function(){var n;return n=this.b,n||(this.b=this.Sc())},s.Uc=function(){return u(this.d,161)},p(Me,"AbstractMapBasedMultimap/SortedAsMap",491),g(542,491,zVe,fC),s.bc=function(){return new Wm(this.a,u(u(this.d,161),171))},s.Sc=function(){return new Wm(this.a,u(u(this.d,161),171))},s.ec=function(){var n;return n=this.b,u(n||(this.b=new Wm(this.a,u(u(this.d,161),171))),271)},s.Tc=function(){var n;return n=this.b,u(n||(this.b=new Wm(this.a,u(u(this.d,161),171))),271)},s.Uc=function(){return u(u(this.d,161),171)},p(Me,"AbstractMapBasedMultimap/NavigableAsMap",542),g(490,318,UVe,o8),s.Nc=function(){return this.b.ec().Nc()},p(Me,"AbstractMapBasedMultimap/SortedKeySet",490),g(388,490,uie,Wm),p(Me,"AbstractMapBasedMultimap/NavigableKeySet",388),g(541,28,yw,yM),s.Fc=function(n){var t,i;return rs(this),i=this.d.dc(),t=this.d.Fc(n),t&&(++this.f.d,i&&F8(this)),t},s.Gc=function(n){var t,i,r;return n.dc()?!1:(r=(rs(this),this.d.gc()),t=this.d.Gc(n),t&&(i=this.d.gc(),this.f.d+=i-r,r==0&&F8(this)),t)},s.$b=function(){var n;n=(rs(this),this.d.gc()),n!=0&&(this.d.$b(),this.f.d-=n,SC(this))},s.Hc=function(n){return rs(this),this.d.Hc(n)},s.Ic=function(n){return rs(this),this.d.Ic(n)},s.Fb=function(n){return n===this?!0:(rs(this),kt(this.d,n))},s.Hb=function(){return rs(this),Bt(this.d)},s.Kc=function(){return rs(this),new nY(this)},s.Mc=function(n){var t;return rs(this),t=this.d.Mc(n),t&&(--this.f.d,SC(this)),t},s.gc=function(){return KTe(this)},s.Nc=function(){return rs(this),this.d.Nc()},s.Ib=function(){return rs(this),rc(this.d)},p(Me,"AbstractMapBasedMultimap/WrappedCollection",541);var uo=Ht(Pn,"List");g(728,541,{20:1,28:1,14:1,15:1},xY),s.ad=function(n){Ig(this,n)},s.Nc=function(){return rs(this),this.d.Nc()},s.Vc=function(n,t){var i;rs(this),i=this.d.dc(),u(this.d,15).Vc(n,t),++this.a.d,i&&F8(this)},s.Wc=function(n,t){var i,r,c;return t.dc()?!1:(c=(rs(this),this.d.gc()),i=u(this.d,15).Wc(n,t),i&&(r=this.d.gc(),this.a.d+=r-c,c==0&&F8(this)),i)},s.Xb=function(n){return rs(this),u(this.d,15).Xb(n)},s.Xc=function(n){return rs(this),u(this.d,15).Xc(n)},s.Yc=function(){return rs(this),new yCe(this)},s.Zc=function(n){return rs(this),new DAe(this,n)},s.$c=function(n){var t;return rs(this),t=u(this.d,15).$c(n),--this.a.d,SC(this),t},s._c=function(n,t){return rs(this),u(this.d,15)._c(n,t)},s.bd=function(n,t){return rs(this),TIe(this.a,this.e,u(this.d,15).bd(n,t),this.b?this.b:this)},p(Me,"AbstractMapBasedMultimap/WrappedList",728),g(1096,728,{20:1,28:1,14:1,15:1,54:1},lMe),p(Me,"AbstractMapBasedMultimap/RandomAccessWrappedList",1096),g(620,1,Bi,nY),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return gv(this),this.b.Ob()},s.Pb=function(){return gv(this),this.b.Pb()},s.Qb=function(){UCe(this)},p(Me,"AbstractMapBasedMultimap/WrappedCollection/WrappedIterator",620),g(729,620,Gl,yCe,DAe),s.Qb=function(){UCe(this)},s.Rb=function(n){var t;t=KTe(this.a)==0,(gv(this),u(this.b,125)).Rb(n),++this.a.a.d,t&&F8(this.a)},s.Sb=function(){return(gv(this),u(this.b,125)).Sb()},s.Tb=function(){return(gv(this),u(this.b,125)).Tb()},s.Ub=function(){return(gv(this),u(this.b,125)).Ub()},s.Vb=function(){return(gv(this),u(this.b,125)).Vb()},s.Wb=function(n){(gv(this),u(this.b,125)).Wb(n)},p(Me,"AbstractMapBasedMultimap/WrappedList/WrappedListIterator",729),g(727,541,UVe,jX),s.Nc=function(){return rs(this),this.d.Nc()},p(Me,"AbstractMapBasedMultimap/WrappedSortedSet",727),g(1095,727,uie,hCe),p(Me,"AbstractMapBasedMultimap/WrappedNavigableSet",1095),g(1094,541,qu,TMe),s.Nc=function(){return rs(this),this.d.Nc()},p(Me,"AbstractMapBasedMultimap/WrappedSet",1094),g(1103,1,{},z),s.Kb=function(n){return rvn(u(n,42))},p(Me,"AbstractMapBasedMultimap/lambda$1$Type",1103),g(1102,1,{},oye),s.Kb=function(n){return new e0(this.a,n)},p(Me,"AbstractMapBasedMultimap/lambda$2$Type",1102);var Ed=Ht(Pn,"Map/Entry");g(345,1,vP),s.Fb=function(n){var t;return _(n,42)?(t=u(n,42),bl(this.cd(),t.cd())&&bl(this.dd(),t.dd())):!1},s.Hb=function(){var n,t;return n=this.cd(),t=this.dd(),(n==null?0:Bt(n))^(t==null?0:Bt(t))},s.ed=function(n){throw I(new Kn)},s.Ib=function(){return this.cd()+"="+this.dd()},p(Me,WVe,345),g(1988,28,yw),s.$b=function(){this.fd().$b()},s.Hc=function(n){var t;return _(n,42)?(t=u(n,42),_2n(this.fd(),t.cd(),t.dd())):!1},s.Mc=function(n){var t;return _(n,42)?(t=u(n,42),rIe(this.fd(),t.cd(),t.dd())):!1},s.gc=function(){return this.fd().d},p(Me,"Multimaps/Entries",1988),g(733,1988,yw,pz),s.Kc=function(){return this.a.kc()},s.fd=function(){return this.a},s.Nc=function(){return this.a.lc()},p(Me,"AbstractMultimap/Entries",733),g(734,733,qu,pU),s.Nc=function(){return this.a.lc()},s.Fb=function(n){return hne(this,n)},s.Hb=function(){return cLe(this)},p(Me,"AbstractMultimap/EntrySet",734),g(735,28,yw,mz),s.$b=function(){this.a.$b()},s.Hc=function(n){return j5n(this.a,n)},s.Kc=function(){return this.a.nc()},s.gc=function(){return this.a.d},s.Nc=function(){return this.a.oc()},p(Me,"AbstractMultimap/Values",735),g(1989,28,{835:1,20:1,28:1,14:1}),s.Jc=function(n){Nn(n),Cg(this).Jc(new Eye(n))},s.Nc=function(){var n;return n=Cg(this).Nc(),QN(n,new li,64|n.qd()&1296,this.a.d)},s.Fc=function(n){return MU(),!0},s.Gc=function(n){return Nn(this),Nn(n),_(n,543)?H2n(u(n,835)):!n.dc()&&pF(this,n.Kc())},s.Hc=function(n){var t;return t=u(rw(v2(this.a),n),14),(t?t.gc():0)>0},s.Fb=function(n){return FTn(this,n)},s.Hb=function(){return Bt(Cg(this))},s.dc=function(){return Cg(this).dc()},s.Mc=function(n){return TRe(this,n,1)>0},s.Ib=function(){return rc(Cg(this))},p(Me,"AbstractMultiset",1989),g(1991,1970,qu),s.$b=function(){RM(this.a.a)},s.Hc=function(n){var t,i;return _(n,492)?(i=u(n,416),u(i.a.dd(),14).gc()<=0?!1:(t=$xe(this.a,i.a.cd()),t==u(i.a.dd(),14).gc())):!1},s.Mc=function(n){var t,i,r,c;return _(n,492)&&(i=u(n,416),t=i.a.cd(),r=u(i.a.dd(),14).gc(),r!=0)?(c=this.a,TEn(c,t,r)):!1},p(Me,"Multisets/EntrySet",1991),g(1109,1991,qu,fye),s.Kc=function(){return new Nke(EPe(v2(this.a.a)).Kc())},s.gc=function(){return v2(this.a.a).gc()},p(Me,"AbstractMultiset/EntrySet",1109),g(619,726,dd),s.hc=function(){return this.gd()},s.jc=function(){return this.hd()},s.cc=function(n){return this.jd(n)},s.fc=function(n){return this.kd(n)},s.Zb=function(){var n;return n=this.f,n||(this.f=this.ac())},s.hd=function(){return He(),He(),LA},s.Fb=function(n){return VF(this,n)},s.jd=function(n){return u(Tt(this,n),21)},s.kd=function(n){return u($7(this,n),21)},s.mc=function(n){return He(),new Vm(u(n,21))},s.pc=function(n,t){return new TMe(this,n,u(t,21))},p(Me,"AbstractSetMultimap",619),g(1657,619,dd),s.hc=function(){return new Ih(this.b)},s.gd=function(){return new Ih(this.b)},s.jc=function(){return GY(new Ih(this.b))},s.hd=function(){return GY(new Ih(this.b))},s.cc=function(n){return u(u(Tt(this,n),21),84)},s.jd=function(n){return u(u(Tt(this,n),21),84)},s.fc=function(n){return u(u($7(this,n),21),84)},s.kd=function(n){return u(u($7(this,n),21),84)},s.mc=function(n){return _(n,271)?GY(u(n,271)):(He(),new nX(u(n,84)))},s.Zb=function(){var n;return n=this.f,n||(this.f=_(this.c,171)?new fC(this,u(this.c,171)):_(this.c,161)?new O8(this,u(this.c,161)):new Xm(this,this.c))},s.pc=function(n,t){return _(t,271)?new hCe(this,n,u(t,271)):new jX(this,n,u(t,84))},p(Me,"AbstractSortedSetMultimap",1657),g(1658,1657,dd),s.Zb=function(){var n;return n=this.f,u(u(n||(this.f=_(this.c,171)?new fC(this,u(this.c,171)):_(this.c,161)?new O8(this,u(this.c,161)):new Xm(this,this.c)),161),171)},s.ec=function(){var n;return n=this.i,u(u(n||(this.i=_(this.c,171)?new Wm(this,u(this.c,171)):_(this.c,161)?new o8(this,u(this.c,161)):new Eg(this,this.c)),84),271)},s.bc=function(){return _(this.c,171)?new Wm(this,u(this.c,171)):_(this.c,161)?new o8(this,u(this.c,161)):new Eg(this,this.c)},p(Me,"AbstractSortedKeySortedSetMultimap",1658),g(2010,1,{1947:1}),s.Fb=function(n){return d7n(this,n)},s.Hb=function(){var n;return UJ((n=this.g,n||(this.g=new iD(this))))},s.Ib=function(){var n;return sBe((n=this.f,n||(this.f=new UW(this))))},p(Me,"AbstractTable",2010),g(665,Gf,qu,iD),s.$b=function(){Uke()},s.Hc=function(n){var t,i;return _(n,468)?(t=u(n,682),i=u(rw(zPe(this.a),$h(t.c.e,t.b)),83),!!i&&jZ(i.vc(),new e0($h(t.c.c,t.a),M2(t.c,t.b,t.a)))):!1},s.Kc=function(){return Qgn(this.a)},s.Mc=function(n){var t,i;return _(n,468)?(t=u(n,682),i=u(rw(zPe(this.a),$h(t.c.e,t.b)),83),!!i&&X5n(i.vc(),new e0($h(t.c.c,t.a),M2(t.c,t.b,t.a)))):!1},s.gc=function(){return rPe(this.a)},s.Nc=function(){return z2n(this.a)},p(Me,"AbstractTable/CellSet",665),g(1928,28,yw,lye),s.$b=function(){Uke()},s.Hc=function(n){return rkn(this.a,n)},s.Kc=function(){return Jgn(this.a)},s.gc=function(){return rPe(this.a)},s.Nc=function(){return sIe(this.a)},p(Me,"AbstractTable/Values",1928),g(1632,1631,dd),p(Me,"ArrayListMultimapGwtSerializationDependencies",1632),g(513,1632,dd,PD,gQ),s.hc=function(){return new tu(this.a)},s.a=0,p(Me,"ArrayListMultimap",513),g(664,2010,{664:1,1947:1,3:1},$Re),p(Me,"ArrayTable",664),g(1924,386,k3,KCe),s.Xb=function(n){return new QJ(this.a,n)},p(Me,"ArrayTable/1",1924),g(1925,1,{},iye),s.ld=function(n){return new QJ(this.a,n)},p(Me,"ArrayTable/1methodref$getCell$Type",1925),g(2011,1,{682:1}),s.Fb=function(n){var t;return n===this?!0:_(n,468)?(t=u(n,682),bl($h(this.c.e,this.b),$h(t.c.e,t.b))&&bl($h(this.c.c,this.a),$h(t.c.c,t.a))&&bl(M2(this.c,this.b,this.a),M2(t.c,t.b,t.a))):!1},s.Hb=function(){return uS(D(O(pn,1),pe,1,5,[$h(this.c.e,this.b),$h(this.c.c,this.a),M2(this.c,this.b,this.a)]))},s.Ib=function(){return"("+$h(this.c.e,this.b)+","+$h(this.c.c,this.a)+")="+M2(this.c,this.b,this.a)},p(Me,"Tables/AbstractCell",2011),g(468,2011,{468:1,682:1},QJ),s.a=0,s.b=0,s.d=0,p(Me,"ArrayTable/2",468),g(1927,1,{},rye),s.ld=function(n){return mDe(this.a,n)},p(Me,"ArrayTable/2methodref$getValue$Type",1927),g(1926,386,k3,qCe),s.Xb=function(n){return mDe(this.a,n)},p(Me,"ArrayTable/3",1926),g(1979,1967,V0),s.$b=function(){jC(this.kc())},s.vc=function(){return new Cye(this)},s.lc=function(){return new yAe(this.kc(),this.gc())},p(Me,"Maps/IteratorBasedAbstractMap",1979),g(828,1979,V0),s.$b=function(){throw I(new Kn)},s._b=function(n){return hje(this.c,n)},s.kc=function(){return new HCe(this,this.c.b.c.gc())},s.lc=function(){return U$(this.c.b.c.gc(),16,new cye(this))},s.xc=function(n){var t;return t=u($5(this.c,n),19),t?this.nd(t.a):null},s.dc=function(){return this.c.b.c.dc()},s.ec=function(){return nL(this.c)},s.zc=function(n,t){var i;if(i=u($5(this.c,n),19),!i)throw I(new rn(this.md()+" "+n+" not in "+nL(this.c)));return this.od(i.a,t)},s.Bc=function(n){throw I(new Kn)},s.gc=function(){return this.c.b.c.gc()},p(Me,"ArrayTable/ArrayMap",828),g(1923,1,{},cye),s.ld=function(n){return WPe(this.a,n)},p(Me,"ArrayTable/ArrayMap/0methodref$getEntry$Type",1923),g(1921,345,vP,zje),s.cd=function(){return d1n(this.a,this.b)},s.dd=function(){return this.a.nd(this.b)},s.ed=function(n){return this.a.od(this.b,n)},s.b=0,p(Me,"ArrayTable/ArrayMap/1",1921),g(1922,386,k3,HCe),s.Xb=function(n){return WPe(this.a,n)},p(Me,"ArrayTable/ArrayMap/2",1922),g(1920,828,V0,LPe),s.md=function(){return"Column"},s.nd=function(n){return M2(this.b,this.a,n)},s.od=function(n,t){return VLe(this.b,this.a,n,t)},s.a=0,p(Me,"ArrayTable/Row",1920),g(829,828,V0,UW),s.nd=function(n){return new LPe(this.a,n)},s.zc=function(n,t){return u(t,83),Yln()},s.od=function(n,t){return u(t,83),Qln()},s.md=function(){return"Row"},p(Me,"ArrayTable/RowMap",829),g(1120,1,yo,Uje),s.qd=function(){return this.a.qd()&-262},s.rd=function(){return this.a.rd()},s.Nb=function(n){this.a.Nb(new qje(n,this.b))},s.sd=function(n){return this.a.sd(new Kje(n,this.b))},p(Me,"CollectSpliterators/1",1120),g(1121,1,gn,Kje),s.td=function(n){this.a.td(this.b.Kb(n))},p(Me,"CollectSpliterators/1/lambda$0$Type",1121),g(1122,1,gn,qje),s.td=function(n){this.a.td(this.b.Kb(n))},p(Me,"CollectSpliterators/1/lambda$1$Type",1122),g(1123,1,yo,mIe),s.qd=function(){return this.a},s.rd=function(){return this.d&&(this.b=jCe(this.b,this.d.rd())),jCe(this.b,0)},s.Nb=function(n){this.d&&(this.d.Nb(n),this.d=null),this.c.Nb(new Rje(this.e,n)),this.b=0},s.sd=function(n){for(;;){if(this.d&&this.d.sd(n))return j5(this.b,yP)&&(this.b=Qh(this.b,1)),!0;if(this.d=null,!this.c.sd(new Hje(this,this.e)))return!1}},s.a=0,s.b=0,p(Me,"CollectSpliterators/1FlatMapSpliterator",1123),g(1124,1,gn,Hje),s.td=function(n){gdn(this.a,this.b,n)},p(Me,"CollectSpliterators/1FlatMapSpliterator/lambda$0$Type",1124),g(1125,1,gn,Rje),s.td=function(n){e1n(this.b,this.a,n)},p(Me,"CollectSpliterators/1FlatMapSpliterator/lambda$1$Type",1125),g(1117,1,yo,eSe),s.qd=function(){return 16464|this.b},s.rd=function(){return this.a.rd()},s.Nb=function(n){this.a.xe(new Gje(n,this.c))},s.sd=function(n){return this.a.ye(new Vje(n,this.c))},s.b=0,p(Me,"CollectSpliterators/1WithCharacteristics",1117),g(1118,1,jk,Vje),s.ud=function(n){this.a.td(this.b.ld(n))},p(Me,"CollectSpliterators/1WithCharacteristics/lambda$0$Type",1118),g(1119,1,jk,Gje),s.ud=function(n){this.a.td(this.b.ld(n))},p(Me,"CollectSpliterators/1WithCharacteristics/lambda$1$Type",1119),g(245,1,tB),s.wd=function(n){return this.vd(u(n,245))},s.vd=function(n){var t;return n==(vD(),NK)?1:n==(yD(),FK)?-1:(t=(vC(),k7(this.a,n.a)),t!=0?t:_(this,519)==_(n,519)?0:_(this,519)?1:-1)},s.zd=function(){return this.a},s.Fb=function(n){return eee(this,n)},p(Me,"Cut",245),g(1761,245,tB,Yke),s.vd=function(n){return n==this?0:1},s.xd=function(n){throw I(new Zz)},s.yd=function(n){n.a+="+∞)"},s.zd=function(){throw I(new ec(YVe))},s.Hb=function(){return $l(),fee(this)},s.Ad=function(n){return!1},s.Ib=function(){return"+∞"};var FK;p(Me,"Cut/AboveAll",1761),g(519,245,{245:1,519:1,3:1,35:1},WCe),s.xd=function(n){Pc((n.a+="(",n),this.a)},s.yd=function(n){Rh(Pc(n,this.a),93)},s.Hb=function(){return~Bt(this.a)},s.Ad=function(n){return vC(),k7(this.a,n)<0},s.Ib=function(){return"/"+this.a+"\\"},p(Me,"Cut/AboveValue",519),g(1760,245,tB,Qke),s.vd=function(n){return n==this?0:-1},s.xd=function(n){n.a+="(-∞"},s.yd=function(n){throw I(new Zz)},s.zd=function(){throw I(new ec(YVe))},s.Hb=function(){return $l(),fee(this)},s.Ad=function(n){return!0},s.Ib=function(){return"-∞"};var NK;p(Me,"Cut/BelowAll",1760),g(1762,245,tB,XCe),s.xd=function(n){Pc((n.a+="[",n),this.a)},s.yd=function(n){Rh(Pc(n,this.a),41)},s.Hb=function(){return Bt(this.a)},s.Ad=function(n){return vC(),k7(this.a,n)<=0},s.Ib=function(){return"\\"+this.a+"/"},p(Me,"Cut/BelowValue",1762),g(537,1,zl),s.Jc=function(n){Yi(this,n)},s.Ib=function(){return C6n(u(zC(this,"use Optional.orNull() instead of Optional.or(null)"),20).Kc())},p(Me,"FluentIterable",537),g(433,537,zl,C5),s.Kc=function(){return new En(Cn(this.a.Kc(),new J))},p(Me,"FluentIterable/2",433),g(1046,537,zl,ZTe),s.Kc=function(){return Bh(this)},p(Me,"FluentIterable/3",1046),g(708,386,k3,WW),s.Xb=function(n){return this.a[n].Kc()},p(Me,"FluentIterable/3/1",708),g(1972,1,{}),s.Ib=function(){return rc(this.Bd().b)},p(Me,"ForwardingObject",1972),g(1973,1972,QVe),s.Bd=function(){return this.Cd()},s.Jc=function(n){Yi(this,n)},s.Lc=function(){return this.Oc()},s.Nc=function(){return new Ye(this,0)},s.Oc=function(){return new We(null,this.Nc())},s.Fc=function(n){return this.Cd(),gje()},s.Gc=function(n){return this.Cd(),pje()},s.$b=function(){this.Cd(),mje()},s.Hc=function(n){return this.Cd().Hc(n)},s.Ic=function(n){return this.Cd().Ic(n)},s.dc=function(){return this.Cd().b.dc()},s.Kc=function(){return this.Cd().Kc()},s.Mc=function(n){return this.Cd(),vje()},s.gc=function(){return this.Cd().b.gc()},s.Pc=function(){return this.Cd().Pc()},s.Qc=function(n){return this.Cd().Qc(n)},p(Me,"ForwardingCollection",1973),g(1980,28,sie),s.Kc=function(){return this.Ed()},s.Fc=function(n){throw I(new Kn)},s.Gc=function(n){throw I(new Kn)},s.$b=function(){throw I(new Kn)},s.Hc=function(n){return n!=null&&cw(this,n,!1)},s.Dd=function(){switch(this.gc()){case 0:return zb(),zb(),_K;case 1:return zb(),new W$(Nn(this.Ed().Pb()));default:return new FPe(this,this.Pc())}},s.Mc=function(n){throw I(new Kn)},p(Me,"ImmutableCollection",1980),g(712,1980,sie,Qz),s.Kc=function(){return S2(this.a.Kc())},s.Hc=function(n){return n!=null&&this.a.Hc(n)},s.Ic=function(n){return this.a.Ic(n)},s.dc=function(){return this.a.dc()},s.Ed=function(){return S2(this.a.Kc())},s.gc=function(){return this.a.gc()},s.Pc=function(){return this.a.Pc()},s.Qc=function(n){return this.a.Qc(n)},s.Ib=function(){return rc(this.a)},p(Me,"ForwardingImmutableCollection",712),g(152,1980,H6),s.Kc=function(){return this.Ed()},s.Yc=function(){return this.Fd(0)},s.Zc=function(n){return this.Fd(n)},s.ad=function(n){Ig(this,n)},s.Nc=function(){return new Ye(this,16)},s.bd=function(n,t){return this.Gd(n,t)},s.Vc=function(n,t){throw I(new Kn)},s.Wc=function(n,t){throw I(new Kn)},s.Fb=function(n){return yTn(this,n)},s.Hb=function(){return I4n(this)},s.Xc=function(n){return n==null?-1:V9n(this,n)},s.Ed=function(){return this.Fd(0)},s.Fd=function(n){return fX(this,n)},s.$c=function(n){throw I(new Kn)},s._c=function(n,t){throw I(new Kn)},s.Gd=function(n,t){var i;return fS((i=new rEe(this),new Rl(i,n,t)))};var _K;p(Me,"ImmutableList",152),g(2006,152,H6),s.Kc=function(){return S2(this.Hd().Kc())},s.bd=function(n,t){return fS(this.Hd().bd(n,t))},s.Hc=function(n){return n!=null&&this.Hd().Hc(n)},s.Ic=function(n){return this.Hd().Ic(n)},s.Fb=function(n){return kt(this.Hd(),n)},s.Xb=function(n){return $h(this,n)},s.Hb=function(){return Bt(this.Hd())},s.Xc=function(n){return this.Hd().Xc(n)},s.dc=function(){return this.Hd().dc()},s.Ed=function(){return S2(this.Hd().Kc())},s.gc=function(){return this.Hd().gc()},s.Gd=function(n,t){return fS(this.Hd().bd(n,t))},s.Pc=function(){return this.Hd().Qc(V(pn,pe,1,this.Hd().gc(),5,1))},s.Qc=function(n){return this.Hd().Qc(n)},s.Ib=function(){return rc(this.Hd())},p(Me,"ForwardingImmutableList",2006),g(714,1,j3),s.vc=function(){return f0(this)},s.wc=function(n){o6(this,n)},s.ec=function(){return nL(this)},s.yc=function(n,t,i){return sN(this,n,t,i)},s.Cc=function(){return this.Ld()},s.$b=function(){throw I(new Kn)},s._b=function(n){return this.xc(n)!=null},s.uc=function(n){return this.Ld().Hc(n)},s.Jd=function(){return new K7e(this)},s.Kd=function(){return new q7e(this)},s.Fb=function(n){return E5n(this,n)},s.Hb=function(){return f0(this).Hb()},s.dc=function(){return this.gc()==0},s.zc=function(n,t){return Jln()},s.Bc=function(n){throw I(new Kn)},s.Ib=function(){return njn(this)},s.Ld=function(){return this.e?this.e:this.e=this.Kd()},s.c=null,s.d=null,s.e=null;var aXe;p(Me,"ImmutableMap",714),g(715,714,j3),s._b=function(n){return hje(this,n)},s.uc=function(n){return oEe(this.b,n)},s.Id=function(){return NFe(new aye(this))},s.Jd=function(){return NFe(gAe(this.b))},s.Kd=function(){return dl(),new Qz(wAe(this.b))},s.Fb=function(n){return fEe(this.b,n)},s.xc=function(n){return $5(this,n)},s.Hb=function(){return Bt(this.b.c)},s.dc=function(){return this.b.c.dc()},s.gc=function(){return this.b.c.gc()},s.Ib=function(){return rc(this.b.c)},p(Me,"ForwardingImmutableMap",715),g(1974,1973,iB),s.Bd=function(){return this.Md()},s.Cd=function(){return this.Md()},s.Nc=function(){return new Ye(this,1)},s.Fb=function(n){return n===this||this.Md().Fb(n)},s.Hb=function(){return this.Md().Hb()},p(Me,"ForwardingSet",1974),g(1069,1974,iB,aye),s.Bd=function(){return bv(this.a.b)},s.Cd=function(){return bv(this.a.b)},s.Hc=function(n){if(_(n,42)&&u(n,42).cd()==null)return!1;try{return sEe(bv(this.a.b),n)}catch(t){if(t=qt(t),_(t,205))return!1;throw I(t)}},s.Md=function(){return bv(this.a.b)},s.Qc=function(n){var t;return t=QAe(bv(this.a.b),n),bv(this.a.b).b.gc()=0?"+":"")+(i/60|0),t=zT(y.Math.abs(i)%60),(pBe(),SXe)[this.q.getDay()]+" "+PXe[this.q.getMonth()]+" "+zT(this.q.getDate())+" "+zT(this.q.getHours())+":"+zT(this.q.getMinutes())+":"+zT(this.q.getSeconds())+" GMT"+n+t+" "+this.q.getFullYear()};var OA=p(Pn,"Date",199);g(1915,199,uGe,V_e),s.a=!1,s.b=0,s.c=0,s.d=0,s.e=0,s.f=0,s.g=!1,s.i=0,s.j=0,s.k=0,s.n=0,s.o=0,s.p=0,p("com.google.gwt.i18n.shared.impl","DateRecord",1915),g(1966,1,{}),s.fe=function(){return null},s.ge=function(){return null},s.he=function(){return null},s.ie=function(){return null},s.je=function(){return null},p(V2,"JSONValue",1966),g(216,1966,{216:1},L1,yz),s.Fb=function(n){return _(n,216)?vQ(this.a,u(n,216).a):!1},s.ee=function(){return yln},s.Hb=function(){return uQ(this.a)},s.fe=function(){return this},s.Ib=function(){var n,t,i;for(i=new Cs("["),t=0,n=this.a.length;t0&&(i.a+=","),Pc(i,Jb(this,t));return i.a+="]",i.a},p(V2,"JSONArray",216),g(483,1966,{483:1},kz),s.ee=function(){return kln},s.ge=function(){return this},s.Ib=function(){return cn(),""+this.a},s.a=!1;var mXe,vXe;p(V2,"JSONBoolean",483),g(985,60,Sa,_ke),p(V2,"JSONException",985),g(1023,1966,{},_t),s.ee=function(){return Mln},s.Ib=function(){return Au};var yXe;p(V2,"JSONNull",1023),g(258,1966,{258:1},VE),s.Fb=function(n){return _(n,258)?this.a==u(n,258).a:!1},s.ee=function(){return jln},s.Hb=function(){return ev(this.a)},s.he=function(){return this},s.Ib=function(){return this.a+""},s.a=0,p(V2,"JSONNumber",258),g(183,1966,{183:1},Jp,X9),s.Fb=function(n){return _(n,183)?vQ(this.a,u(n,183).a):!1},s.ee=function(){return Eln},s.Hb=function(){return uQ(this.a)},s.ie=function(){return this},s.Ib=function(){var n,t,i,r,c,o,f;for(f=new Cs("{"),n=!0,o=xF(this,V(ge,ie,2,0,6,1)),i=o,r=0,c=i.length;r=0?":"+this.c:"")+")"},s.c=0;var Rue=p(bc,"StackTraceElement",310);lXe={3:1,475:1,35:1,2:1};var ge=p(bc,oie,2);g(107,418,{475:1},Ra,Z4,bo),p(bc,"StringBuffer",107),g(100,418,{475:1},Ph,Ib,Cs),p(bc,"StringBuilder",100),g(687,73,MB,PU),p(bc,"StringIndexOutOfBoundsException",687),g(2043,1,{});var Kue;g(844,1,{},_4),s.Kb=function(n){return u(n,78).e},p(bc,"Throwable/lambda$0$Type",844),g(41,60,{3:1,102:1,60:1,78:1,41:1},Kn,Ba),p(bc,"UnsupportedOperationException",41),g(240,236,{3:1,35:1,236:1,240:1},g7,NU),s.wd=function(n){return Qqe(this,u(n,240))},s.ke=function(){return hw(DHe(this))},s.Fb=function(n){var t;return this===n?!0:_(n,240)?(t=u(n,240),this.e==t.e&&Qqe(this,t)==0):!1},s.Hb=function(){var n;return this.b!=0?this.b:this.a<54?(n=Su(this.f),this.b=Fn(ji(n,-1)),this.b=33*this.b+Fn(ji(_h(n,32),-1)),this.b=17*this.b+ci(this.e),this.b):(this.b=17*IFe(this.c)+ci(this.e),this.b)},s.Ib=function(){return DHe(this)},s.a=0,s.b=0,s.d=0,s.e=0,s.f=0;var TXe,Cd,que,Hue,Vue,Gue,zue,Uue,zK=p("java.math","BigDecimal",240);g(91,236,{3:1,35:1,236:1,91:1},oee,Wa,Tg,Vee,$Ne,Fh),s.wd=function(n){return ANe(this,u(n,91))},s.ke=function(){return hw(Z_(this,0))},s.Fb=function(n){return KZ(this,n)},s.Hb=function(){return IFe(this)},s.Ib=function(){return Z_(this,0)},s.b=-2,s.c=0,s.d=0,s.e=0;var UK,DA,Wue,WK,$A,V3,dp=p("java.math","BigInteger",91),CXe,MXe,im,Ey;g(488,1967,V0),s.$b=function(){Wu(this)},s._b=function(n){return vs(this,n)},s.uc=function(n){return wFe(this,n,this.g)||wFe(this,n,this.f)},s.vc=function(){return new N1(this)},s.xc=function(n){return kn(this,n)},s.zc=function(n,t){return jt(this,n,t)},s.Bc=function(n){return C2(this,n)},s.gc=function(){return t5(this)},p(Pn,"AbstractHashMap",488),g(261,Gf,qu,N1),s.$b=function(){this.a.$b()},s.Hc=function(n){return dIe(this,n)},s.Kc=function(){return new rd(this.a)},s.Mc=function(n){var t;return dIe(this,n)?(t=u(n,42).cd(),this.a.Bc(t),!0):!1},s.gc=function(){return this.a.gc()},p(Pn,"AbstractHashMap/EntrySet",261),g(262,1,Bi,rd),s.Nb=function(n){Wi(this,n)},s.Pb=function(){return E0(this)},s.Ob=function(){return this.b},s.Qb=function(){lDe(this)},s.b=!1,p(Pn,"AbstractHashMap/EntrySetIterator",262),g(417,1,Bi,K4),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return d8(this)},s.Pb=function(){return LAe(this)},s.Qb=function(){ys(this)},s.b=0,s.c=-1,p(Pn,"AbstractList/IteratorImpl",417),g(96,417,Gl,zi),s.Qb=function(){ys(this)},s.Rb=function(n){Rb(this,n)},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Ub=function(){return vn(this.b>0),this.a.Xb(this.c=--this.b)},s.Vb=function(){return this.b-1},s.Wb=function(n){Nb(this.c!=-1),this.a._c(this.c,n)},p(Pn,"AbstractList/ListIteratorImpl",96),g(219,52,T3,Rl),s.Vc=function(n,t){Wb(n,this.b),this.c.Vc(this.a+n,t),++this.b},s.Xb=function(n){return Qe(n,this.b),this.c.Xb(this.a+n)},s.$c=function(n){var t;return Qe(n,this.b),t=this.c.$c(this.a+n),--this.b,t},s._c=function(n,t){return Qe(n,this.b),this.c._c(this.a+n,t)},s.gc=function(){return this.b},s.a=0,s.b=0,p(Pn,"AbstractList/SubList",219),g(384,Gf,qu,Fm),s.$b=function(){this.a.$b()},s.Hc=function(n){return this.a._b(n)},s.Kc=function(){var n;return n=this.a.vc().Kc(),new Sz(n)},s.Mc=function(n){return this.a._b(n)?(this.a.Bc(n),!0):!1},s.gc=function(){return this.a.gc()},p(Pn,"AbstractMap/1",384),g(691,1,Bi,Sz),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var n;return n=u(this.a.Pb(),42),n.cd()},s.Qb=function(){this.a.Qb()},p(Pn,"AbstractMap/1/1",691),g(226,28,yw,sa),s.$b=function(){this.a.$b()},s.Hc=function(n){return this.a.uc(n)},s.Kc=function(){var n;return n=this.a.vc().Kc(),new Pb(n)},s.gc=function(){return this.a.gc()},p(Pn,"AbstractMap/2",226),g(294,1,Bi,Pb),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return this.a.Ob()},s.Pb=function(){var n;return n=u(this.a.Pb(),42),n.dd()},s.Qb=function(){this.a.Qb()},p(Pn,"AbstractMap/2/1",294),g(484,1,{484:1,42:1}),s.Fb=function(n){var t;return _(n,42)?(t=u(n,42),Hc(this.d,t.cd())&&Hc(this.e,t.dd())):!1},s.cd=function(){return this.d},s.dd=function(){return this.e},s.Hb=function(){return yg(this.d)^yg(this.e)},s.ed=function(n){return AX(this,n)},s.Ib=function(){return this.d+"="+this.e},p(Pn,"AbstractMap/AbstractEntry",484),g(383,484,{484:1,383:1,42:1},ST),p(Pn,"AbstractMap/SimpleEntry",383),g(1984,1,xB),s.Fb=function(n){var t;return _(n,42)?(t=u(n,42),Hc(this.cd(),t.cd())&&Hc(this.dd(),t.dd())):!1},s.Hb=function(){return yg(this.cd())^yg(this.dd())},s.Ib=function(){return this.cd()+"="+this.dd()},p(Pn,WVe,1984),g(1992,1967,zVe),s.tc=function(n){return kOe(this,n)},s._b=function(n){return F$(this,n)},s.vc=function(){return new Oz(this)},s.xc=function(n){var t;return t=n,mc(oZ(this,t))},s.ec=function(){return new J9(this)},p(Pn,"AbstractNavigableMap",1992),g(739,Gf,qu,Oz),s.Hc=function(n){return _(n,42)&&kOe(this.b,u(n,42))},s.Kc=function(){return new D5(this.b)},s.Mc=function(n){var t;return _(n,42)?(t=u(n,42),oDe(this.b,t)):!1},s.gc=function(){return this.b.c},p(Pn,"AbstractNavigableMap/EntrySet",739),g(493,Gf,uie,J9),s.Nc=function(){return new CT(this)},s.$b=function(){X4(this.a)},s.Hc=function(n){return F$(this.a,n)},s.Kc=function(){var n;return n=new D5(new x5(this.a).b),new Z9(n)},s.Mc=function(n){return F$(this.a,n)?(U5(this.a,n),!0):!1},s.gc=function(){return this.a.c},p(Pn,"AbstractNavigableMap/NavigableKeySet",493),g(494,1,Bi,Z9),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return d8(this.a.a)},s.Pb=function(){var n;return n=sC(this.a),n.cd()},s.Qb=function(){aSe(this.a)},p(Pn,"AbstractNavigableMap/NavigableKeySet/1",494),g(2004,28,yw),s.Fc=function(n){return Ev(u3(this,n)),!0},s.Gc=function(n){return nn(n),wC(n!=this,"Can't add a queue to itself"),pr(this,n)},s.$b=function(){for(;mF(this)!=null;);},p(Pn,"AbstractQueue",2004),g(302,28,{4:1,20:1,28:1,14:1},ag,_xe),s.Fc=function(n){return SQ(this,n),!0},s.$b=function(){DQ(this)},s.Hc=function(n){return _Le(new z5(this),n)},s.dc=function(){return Y4(this)},s.Kc=function(){return new z5(this)},s.Mc=function(n){return Fpn(new z5(this),n)},s.gc=function(){return this.c-this.b&this.a.length-1},s.Nc=function(){return new Ye(this,272)},s.Qc=function(n){var t;return t=this.c-this.b&this.a.length-1,n.lengtht&&zt(n,t,null),n},s.b=0,s.c=0,p(Pn,"ArrayDeque",302),g(446,1,Bi,z5),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return this.a!=this.b},s.Pb=function(){return oS(this)},s.Qb=function(){F$e(this)},s.a=0,s.b=0,s.c=-1,p(Pn,"ArrayDeque/IteratorImpl",446),g(12,52,fGe,oe,tu,_u),s.Vc=function(n,t){qb(this,n,t)},s.Fc=function(n){return se(this,n)},s.Wc=function(n,t){return bZ(this,n,t)},s.Gc=function(n){return wi(this,n)},s.$b=function(){this.c=V(pn,pe,1,0,5,1)},s.Hc=function(n){return tc(this,n,0)!=-1},s.Jc=function(n){Tu(this,n)},s.Xb=function(n){return ve(this,n)},s.Xc=function(n){return tc(this,n,0)},s.dc=function(){return this.c.length==0},s.Kc=function(){return new A(this)},s.$c=function(n){return Ua(this,n)},s.Mc=function(n){return ju(this,n)},s.Ud=function(n,t){Nxe(this,n,t)},s._c=function(n,t){return Qs(this,n,t)},s.gc=function(){return this.c.length},s.ad=function(n){Oi(this,n)},s.Pc=function(){return C$(this)},s.Qc=function(n){return Hf(this,n)};var yDn=p(Pn,"ArrayList",12);g(7,1,Bi,A),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return fc(this)},s.Pb=function(){return P(this)},s.Qb=function(){q5(this)},s.a=0,s.b=-1,p(Pn,"ArrayList/1",7),g(2013,y.Function,{},Mc),s.te=function(n,t){return gi(n,t)},g(154,52,lGe,ws),s.Hc=function(n){return _$e(this,n)!=-1},s.Jc=function(n){var t,i,r,c;for(nn(n),i=this.a,r=0,c=i.length;r>>0,n.toString(16)))},s.f=0,s.i=hi;var BA=p(Xl,"CNode",57);g(814,1,{},oU),p(Xl,"CNode/CNodeBuilder",814);var qXe;g(1525,1,{},Ot),s.Oe=function(n,t){return 0},s.Pe=function(n,t){return 0},p(Xl,mGe,1525),g(1790,1,{},Dc),s.Le=function(n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x;for(h=Jt,r=new A(n.a.b);r.ar.d.c||r.d.c==o.d.c&&r.d.b0?n+this.n.d+this.n.a:0},s.Se=function(){var n,t,i,r,c;if(c=0,this.e)this.b?c=this.b.a:this.a[1][1]&&(c=this.a[1][1].Se());else if(this.g)c=FZ(this,qN(this,null,!0));else for(t=(mf(),D(O(Ow,1),ce,232,0,[jc,su,Ec])),i=0,r=t.length;i0?c+this.n.b+this.n.c:0},s.Te=function(){var n,t,i,r,c;if(this.g)for(n=qN(this,null,!1),i=(mf(),D(O(Ow,1),ce,232,0,[jc,su,Ec])),r=0,c=i.length;r0&&(r[0]+=this.d,i-=r[0]),r[2]>0&&(r[2]+=this.d,i-=r[2]),this.c.a=y.Math.max(0,i),this.c.d=t.d+n.d+(this.c.a-i)/2,r[1]=y.Math.max(r[1],i),RQ(this,su,t.d+n.d+r[0]-(r[1]-i)/2,r)},s.b=null,s.d=0,s.e=!1,s.f=!1,s.g=!1;var nq=0,RA=0;p(wd,"GridContainerCell",1473),g(461,22,{3:1,35:1,22:1,461:1},BD);var l1,Al,nf,JXe=zn(wd,"HorizontalLabelAlignment",461,Xn,Qpn,Ldn),ZXe;g(306,212,{212:1,306:1},rxe,a$e,nxe),s.Re=function(){return qSe(this)},s.Se=function(){return dY(this)},s.a=0,s.c=!1;var xDn=p(wd,"LabelCell",306);g(244,326,{212:1,326:1,244:1},v6),s.Re=function(){return tk(this)},s.Se=function(){return ik(this)},s.Te=function(){D_(this)},s.Ue=function(){$_(this)},s.b=0,s.c=0,s.d=!1,p(wd,"StripContainerCell",244),g(1626,1,dt,GO),s.Mb=function(n){return Wln(u(n,212))},p(wd,"StripContainerCell/lambda$0$Type",1626),g(1627,1,{},xE),s.Fe=function(n){return u(n,212).Se()},p(wd,"StripContainerCell/lambda$1$Type",1627),g(1628,1,dt,IE),s.Mb=function(n){return Xln(u(n,212))},p(wd,"StripContainerCell/lambda$2$Type",1628),g(1629,1,{},OE),s.Fe=function(n){return u(n,212).Re()},p(wd,"StripContainerCell/lambda$3$Type",1629),g(462,22,{3:1,35:1,22:1,462:1},RD);var tf,a1,Cf,eYe=zn(wd,"VerticalLabelAlignment",462,Xn,Jpn,Fdn),nYe;g(789,1,{},Yte),s.c=0,s.d=0,s.k=0,s.s=0,s.t=0,s.v=!1,s.w=0,s.D=!1,p(MP,"NodeContext",789),g(1471,1,xt,DE),s.ue=function(n,t){return rCe(u(n,61),u(t,61))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(MP,"NodeContext/0methodref$comparePortSides$Type",1471),g(1472,1,xt,$E),s.ue=function(n,t){return jkn(u(n,111),u(t,111))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(MP,"NodeContext/1methodref$comparePortContexts$Type",1472),g(159,22,{3:1,35:1,22:1,159:1},eo);var tYe,iYe,rYe,cYe,uYe,sYe,oYe,fYe,lYe,aYe,hYe,dYe,bYe,wYe,gYe,pYe,mYe,vYe,yYe,kYe,jYe,tq,EYe=zn(MP,"NodeLabelLocation",159,Xn,yN,Ndn),TYe;g(111,1,{111:1},NRe),s.a=!1,p(MP,"PortContext",111),g(1476,1,gn,LE),s.td=function(n){Eje(u(n,306))},p(xk,IGe,1476),g(1477,1,dt,qbe),s.Mb=function(n){return!!u(n,111).c},p(xk,OGe,1477),g(1478,1,gn,Hbe),s.td=function(n){Eje(u(n,111).c)},p(xk,"LabelPlacer/lambda$2$Type",1478);var xse;g(1475,1,gn,Gbe),s.td=function(n){Bb(),Pln(u(n,111))},p(xk,"NodeLabelAndSizeUtilities/lambda$0$Type",1475),g(790,1,gn,zX),s.td=function(n){Ran(this.b,this.c,this.a,u(n,181))},s.a=!1,s.c=!1,p(xk,"NodeLabelCellCreator/lambda$0$Type",790),g(1474,1,gn,c9e),s.td=function(n){Iln(this.a,u(n,181))},p(xk,"PortContextCreator/lambda$0$Type",1474);var KA;g(1829,1,{},zbe),p(P3,"GreedyRectangleStripOverlapRemover",1829),g(1830,1,xt,Vbe),s.ue=function(n,t){return m1n(u(n,222),u(t,222))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(P3,"GreedyRectangleStripOverlapRemover/0methodref$compareByYCoordinate$Type",1830),g(1786,1,{},nke),s.a=5,s.e=0,p(P3,"RectangleStripOverlapRemover",1786),g(1787,1,xt,Wbe),s.ue=function(n,t){return v1n(u(n,222),u(t,222))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(P3,"RectangleStripOverlapRemover/0methodref$compareLeftRectangleBorders$Type",1787),g(1789,1,xt,Xbe),s.ue=function(n,t){return Hwn(u(n,222),u(t,222))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(P3,"RectangleStripOverlapRemover/1methodref$compareRightRectangleBorders$Type",1789),g(406,22,{3:1,35:1,22:1,406:1},xT);var Zk,iq,rq,ej,CYe=zn(P3,"RectangleStripOverlapRemover/OverlapRemovalDirection",406,Xn,Q2n,_dn),MYe;g(222,1,{222:1},Z$),p(P3,"RectangleStripOverlapRemover/RectangleNode",222),g(1788,1,gn,u9e),s.td=function(n){U9n(this.a,u(n,222))},p(P3,"RectangleStripOverlapRemover/lambda$1$Type",1788),g(1304,1,xt,Ybe),s.ue=function(n,t){return ZAn(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(kl,"PolyominoCompactor/CornerCasesGreaterThanRestComparator",1304),g(1307,1,{},Qbe),s.Kb=function(n){return u(n,324).a},p(kl,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$0$Type",1307),g(1308,1,dt,Jbe),s.Mb=function(n){return u(n,323).a},p(kl,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$1$Type",1308),g(1309,1,dt,Zbe),s.Mb=function(n){return u(n,323).a},p(kl,"PolyominoCompactor/CornerCasesGreaterThanRestComparator/lambda$2$Type",1309),g(1302,1,xt,ewe),s.ue=function(n,t){return DSn(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(kl,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator",1302),g(1305,1,{},Ube),s.Kb=function(n){return u(n,324).a},p(kl,"PolyominoCompactor/MinNumOfExtensionDirectionsComparator/lambda$0$Type",1305),g(767,1,xt,WG),s.ue=function(n,t){return L4n(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(kl,"PolyominoCompactor/MinNumOfExtensionsComparator",767),g(1300,1,xt,nwe),s.ue=function(n,t){return V3n(u(n,321),u(t,321))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(kl,"PolyominoCompactor/MinPerimeterComparator",1300),g(1301,1,xt,twe),s.ue=function(n,t){return y9n(u(n,321),u(t,321))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(kl,"PolyominoCompactor/MinPerimeterComparatorWithShape",1301),g(1303,1,xt,iwe),s.ue=function(n,t){return tPn(u(n,167),u(t,167))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(kl,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator",1303),g(1306,1,{},rwe),s.Kb=function(n){return u(n,324).a},p(kl,"PolyominoCompactor/SingleExtensionSideGreaterThanRestComparator/lambda$0$Type",1306),g(777,1,{},ZU),s.Ce=function(n,t){return U2n(this,u(n,46),u(t,167))},p(kl,"SuccessorCombination",777),g(644,1,{},zO),s.Ce=function(n,t){var i;return FEn((i=u(n,46),u(t,167),i))},p(kl,"SuccessorJitter",644),g(643,1,{},UO),s.Ce=function(n,t){var i;return TMn((i=u(n,46),u(t,167),i))},p(kl,"SuccessorLineByLine",643),g(568,1,{},FE),s.Ce=function(n,t){var i;return NTn((i=u(n,46),u(t,167),i))},p(kl,"SuccessorManhattan",568),g(1356,1,{},cwe),s.Ce=function(n,t){var i;return WCn((i=u(n,46),u(t,167),i))},p(kl,"SuccessorMaxNormWindingInMathPosSense",1356),g(400,1,{},Bm),s.Ce=function(n,t){return KY(this,n,t)},s.c=!1,s.d=!1,s.e=!1,s.f=!1,p(kl,"SuccessorQuadrantsGeneric",400),g(1357,1,{},uwe),s.Kb=function(n){return u(n,324).a},p(kl,"SuccessorQuadrantsGeneric/lambda$0$Type",1357),g(323,22,{3:1,35:1,22:1,323:1},AT),s.a=!1;var nj,tj,ij,rj,SYe=zn(PP,Sie,323,Xn,emn,Bdn),PYe;g(1298,1,{}),s.Ib=function(){var n,t,i,r,c,o;for(i=" ",n=le(0),c=0;c=0?"b"+n+"["+QL(this.a)+"]":"b["+QL(this.a)+"]"):"b_"+c0(this)},p(Ok,"FBendpoint",559),g(282,134,{3:1,282:1,94:1,134:1},_Me),s.Ib=function(){return QL(this)},p(Ok,"FEdge",282),g(231,134,{3:1,231:1,94:1,134:1},wM);var ODn=p(Ok,"FGraph",231);g(447,357,{3:1,447:1,357:1,94:1,134:1},KIe),s.Ib=function(){return this.b==null||this.b.length==0?"l["+QL(this.a)+"]":"l_"+this.b},p(Ok,"FLabel",447),g(144,357,{3:1,144:1,357:1,94:1,134:1},QPe),s.Ib=function(){return mQ(this)},s.b=0,p(Ok,"FNode",144),g(2003,1,{}),s.bf=function(n){Ate(this,n)},s.cf=function(){y_e(this)},s.d=0,p(Nie,"AbstractForceModel",2003),g(631,2003,{631:1},xLe),s.af=function(n,t){var i,r,c,o,f;return gRe(this.f,n,t),c=_i(vc(t.d),n.d),f=y.Math.sqrt(c.a*c.a+c.b*c.b),r=y.Math.max(0,f-V5(n.e)/2-V5(t.e)/2),i=uFe(this.e,n,t),i>0?o=-Rwn(r,this.c)*i:o=O1n(r,this.b)*u(M(n,(jf(),U3)),19).a,al(c,o/f),c},s.bf=function(n){Ate(this,n),this.a=u(M(n,(jf(),UA)),19).a,this.c=ne(he(M(n,WA))),this.b=ne(he(M(n,aq)))},s.df=function(n){return n0&&(o-=Vln(r,this.a)*i),al(c,o*this.b/f),c},s.bf=function(n){var t,i,r,c,o,f,l;for(Ate(this,n),this.b=ne(he(M(n,(jf(),hq)))),this.c=this.b/u(M(n,UA),19).a,r=n.e.c.length,o=0,c=0,l=new A(n.e);l.a0},s.a=0,s.b=0,s.c=0,p(Nie,"FruchtermanReingoldModel",632),g(849,1,ko,a6e),s.Qe=function(n){Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,IP),""),"Force Model"),"Determines the model for force calculation."),Bse),(rh(),ni)),Rse),_e((yf(),an))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,_ie),""),"Iterations"),"The number of iterations on the force model."),le(300)),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Bie),""),"Repulsive Power"),"Determines how many bend points are added to the edge; such bend points are regarded as repelling particles in the force model"),le(0)),Ic),br),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,JB),""),"FR Temperature"),"The temperature is used as a scaling factor for particle displacements."),jl),Zr),Vi),_e(an)))),qi(n,JB,IP,WYe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ZB),""),"Eades Repulsion"),"Factor for repulsive forces in Eades' model."),5),Zr),Vi),_e(an)))),qi(n,ZB,IP,GYe),pVe((new h6e,n))};var qYe,HYe,Bse,VYe,GYe,zYe,UYe,WYe;p(Y6,"ForceMetaDataProvider",849),g(424,22,{3:1,35:1,22:1,424:1},iW);var lq,zA,Rse=zn(Y6,"ForceModelStrategy",424,Xn,Mpn,qdn),XYe;g(988,1,ko,h6e),s.Qe=function(n){pVe(n)};var YYe,QYe,Kse,UA,qse,JYe,ZYe,eQe,Hse,nQe,Vse,Gse,tQe,U3,iQe,aq,zse,rQe,cQe,WA,hq;p(Y6,"ForceOptions",988),g(989,1,{},ywe),s.$e=function(){var n;return n=new cU,n},s._e=function(n){},p(Y6,"ForceOptions/ForceFactory",989);var sj,My,rm,XA;g(850,1,ko,d6e),s.Qe=function(n){Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Kie),""),"Fixed Position"),"Prevent that the node is moved by the layout algorithm."),(cn(),!1)),(rh(),ur)),Ti),_e((yf(),Li))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,qie),""),"Desired Edge Length"),"Either specified for parent nodes or for individual edges, where the latter takes higher precedence."),100),Zr),Vi),Ft(an,D(O(gh,1),ce,175,0,[Dl]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Hie),""),"Layout Dimension"),"Dimensions that are permitted to be altered during layout."),Use),ni),eoe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Vie),""),"Stress Epsilon"),"Termination criterion for the iterative process."),jl),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Gie),""),"Iteration Limit"),"Maximum number of performed iterations. Takes higher precedence than 'epsilon'."),le(vt)),Ic),br),_e(an)))),nVe((new b6e,n))};var uQe,sQe,Use,oQe,fQe,lQe;p(Y6,"StressMetaDataProvider",850),g(992,1,ko,b6e),s.Qe=function(n){nVe(n)};var YA,Wse,Xse,Yse,Qse,Jse,aQe,hQe,dQe,bQe,Zse,wQe;p(Y6,"StressOptions",992),g(993,1,{},kwe),s.$e=function(){var n;return n=new BMe,n},s._e=function(n){},p(Y6,"StressOptions/StressFactory",993),g(1128,209,gd,BMe),s.Ze=function(n,t){var i,r,c,o,f;for(In(t,VGe,1),ke(ye(Te(n,(U7(),Qse))))?ke(ye(Te(n,Zse)))||JC((i=new e8((Db(),new Ab(n))),i)):jKe(new cU,n,zc(t,1)),c=JLe(n),r=aHe(this.a,c),f=r.Kc();f.Ob();)o=u(f.Pb(),231),!(o.e.c.length<=1)&&(QAn(this.b,o),ATn(this.b),Tu(o.d,new jwe));c=TVe(r),kVe(c),Tn(t)},p($P,"StressLayoutProvider",1128),g(1129,1,gn,jwe),s.td=function(n){Fte(u(n,447))},p($P,"StressLayoutProvider/lambda$0$Type",1129),g(990,1,{},W7e),s.c=0,s.e=0,s.g=0,p($P,"StressMajorization",990),g(379,22,{3:1,35:1,22:1,379:1},KD);var dq,bq,wq,eoe=zn($P,"StressMajorization/Dimension",379,Xn,e2n,Hdn),gQe;g(991,1,xt,l9e),s.ue=function(n,t){return vdn(this.a,u(n,144),u(t,144))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p($P,"StressMajorization/lambda$0$Type",991),g(1229,1,{},eIe),p(J2,"ElkLayered",1229),g(1230,1,gn,Ewe),s.td=function(n){xEn(u(n,37))},p(J2,"ElkLayered/lambda$0$Type",1230),g(1231,1,gn,a9e),s.td=function(n){ydn(this.a,u(n,37))},p(J2,"ElkLayered/lambda$1$Type",1231),g(1263,1,{},MCe);var pQe,mQe,vQe;p(J2,"GraphConfigurator",1263),g(759,1,gn,Kz),s.td=function(n){PBe(this.a,u(n,10))},p(J2,"GraphConfigurator/lambda$0$Type",759),g(760,1,{},YG),s.Kb=function(n){return Dee(),new We(null,new Ye(u(n,29).a,16))},p(J2,"GraphConfigurator/lambda$1$Type",760),g(761,1,gn,qz),s.td=function(n){PBe(this.a,u(n,10))},p(J2,"GraphConfigurator/lambda$2$Type",761),g(1127,209,gd,Q7e),s.Ze=function(n,t){var i;i=mAn(new ike,n),X(Te(n,(be(),Kw)))===X((ka(),ph))?Y6n(this.a,i,t):zEn(this.a,i,t),gVe(new g6e,i)},p(J2,"LayeredLayoutProvider",1127),g(356,22,{3:1,35:1,22:1,356:1},w8);var xl,h1,du,Yc,Jr,noe=zn(J2,"LayeredPhases",356,Xn,Nmn,Vdn),yQe;g(1651,1,{},B$e),s.i=0;var kQe;p(Lk,"ComponentsToCGraphTransformer",1651);var jQe;g(1652,1,{},Twe),s.ef=function(n,t){return y.Math.min(n.a!=null?ne(n.a):n.c.i,t.a!=null?ne(t.a):t.c.i)},s.ff=function(n,t){return y.Math.min(n.a!=null?ne(n.a):n.c.i,t.a!=null?ne(t.a):t.c.i)},p(Lk,"ComponentsToCGraphTransformer/1",1652),g(81,1,{81:1}),s.i=0,s.k=!0,s.o=hi;var gq=p(Z6,"CNode",81);g(460,81,{460:1,81:1},rX,cee),s.Ib=function(){return""},p(Lk,"ComponentsToCGraphTransformer/CRectNode",460),g(1623,1,{},Cwe);var pq,mq;p(Lk,"OneDimensionalComponentsCompaction",1623),g(1624,1,{},Mwe),s.Kb=function(n){return Gpn(u(n,46))},s.Fb=function(n){return this===n},p(Lk,"OneDimensionalComponentsCompaction/lambda$0$Type",1624),g(1625,1,{},Swe),s.Kb=function(n){return ryn(u(n,46))},s.Fb=function(n){return this===n},p(Lk,"OneDimensionalComponentsCompaction/lambda$1$Type",1625),g(1654,1,{},YPe),p(Z6,"CGraph",1654),g(189,1,{189:1},pN),s.b=0,s.c=0,s.e=0,s.g=!0,s.i=hi,p(Z6,"CGroup",189),g(1653,1,{},Iwe),s.ef=function(n,t){return y.Math.max(n.a!=null?ne(n.a):n.c.i,t.a!=null?ne(t.a):t.c.i)},s.ff=function(n,t){return y.Math.max(n.a!=null?ne(n.a):n.c.i,t.a!=null?ne(t.a):t.c.i)},p(Z6,mGe,1653),g(1655,1,{},ARe),s.d=!1;var EQe,vq=p(Z6,kGe,1655);g(1656,1,{},Owe),s.Kb=function(n){return VU(),cn(),u(u(n,46).a,81).d.e!=0},s.Fb=function(n){return this===n},p(Z6,jGe,1656),g(823,1,{},bY),s.a=!1,s.b=!1,s.c=!1,s.d=!1,p(Z6,EGe,823),g(1825,1,{},bPe),p(LP,TGe,1825);var oj=Ht(md,gGe);g(1826,1,{369:1},GAe),s.Ke=function(n){BMn(this,u(n,466))},p(LP,CGe,1826),g(1827,1,xt,Dwe),s.ue=function(n,t){return Bgn(u(n,81),u(t,81))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(LP,MGe,1827),g(466,1,{466:1},cW),s.a=!1,p(LP,SGe,466),g(1828,1,xt,$we),s.ue=function(n,t){return Q8n(u(n,466),u(t,466))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(LP,PGe,1828),g(140,1,{140:1},Zm,fY),s.Fb=function(n){var t;return n==null||DDn!=is(n)?!1:(t=u(n,140),Hc(this.c,t.c)&&Hc(this.d,t.d))},s.Hb=function(){return uS(D(O(pn,1),pe,1,5,[this.c,this.d]))},s.Ib=function(){return"("+this.c+vr+this.d+(this.a?"cx":"")+this.b+")"},s.a=!0,s.c=0,s.d=0;var DDn=p(md,"Point",140);g(405,22,{3:1,35:1,22:1,405:1},IT);var eb,Dw,wp,$w,TQe=zn(md,"Point/Quadrant",405,Xn,nmn,Gdn),CQe;g(1642,1,{},J7e),s.b=null,s.c=null,s.d=null,s.e=null,s.f=null;var MQe,SQe,PQe,AQe,xQe;p(md,"RectilinearConvexHull",1642),g(574,1,{369:1},MS),s.Ke=function(n){_vn(this,u(n,140))},s.b=0;var toe;p(md,"RectilinearConvexHull/MaximalElementsEventHandler",574),g(1644,1,xt,Awe),s.ue=function(n,t){return Pgn(he(n),he(t))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(md,"RectilinearConvexHull/MaximalElementsEventHandler/lambda$0$Type",1644),g(1643,1,{369:1},o$e),s.Ke=function(n){JCn(this,u(n,140))},s.a=0,s.b=null,s.c=null,s.d=null,s.e=null,p(md,"RectilinearConvexHull/RectangleEventHandler",1643),g(1645,1,xt,xwe),s.ue=function(n,t){return I2n(u(n,140),u(t,140))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(md,"RectilinearConvexHull/lambda$0$Type",1645),g(1646,1,xt,Pwe),s.ue=function(n,t){return O2n(u(n,140),u(t,140))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(md,"RectilinearConvexHull/lambda$1$Type",1646),g(1647,1,xt,Lwe),s.ue=function(n,t){return $2n(u(n,140),u(t,140))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(md,"RectilinearConvexHull/lambda$2$Type",1647),g(1648,1,xt,Fwe),s.ue=function(n,t){return D2n(u(n,140),u(t,140))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(md,"RectilinearConvexHull/lambda$3$Type",1648),g(1649,1,xt,Nwe),s.ue=function(n,t){return Fkn(u(n,140),u(t,140))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(md,"RectilinearConvexHull/lambda$4$Type",1649),g(1650,1,{},jxe),p(md,"Scanline",1650),g(2005,1,{}),p(El,"AbstractGraphPlacer",2005),g(325,1,{325:1},bMe),s.mf=function(n){return this.nf(n)?(Be(this.b,u(M(n,(re(),Fw)),21),n),!0):!1},s.nf=function(n){var t,i,r,c;for(t=u(M(n,(re(),Fw)),21),c=u(Tt(It,t),21),r=c.Kc();r.Ob();)if(i=u(r.Pb(),21),!u(Tt(this.b,i),15).dc())return!1;return!0};var It;p(El,"ComponentGroup",325),g(765,2005,{},fU),s.of=function(n){var t,i;for(i=new A(this.a);i.aT&&(ue=0,we+=j+c,j=0),L=f.c,$6(f,ue+L.a,we+L.b),bf(L),i=y.Math.max(i,ue+R.a),j=y.Math.max(j,R.b),ue+=R.a+c;if(t.f.a=i,t.f.b=we+j,ke(ye(M(o,Fx)))){for(r=new XO,tie(r,n,c),k=n.Kc();k.Ob();)w=u(k.Pb(),37),Mt(bf(w.c),r.e);Mt(bf(t.f),r.a)}tJ(t,n)},p(El,"SimpleRowGraphPlacer",1291),g(1292,1,xt,Rwe),s.ue=function(n,t){return $4n(u(n,37),u(t,37))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(El,"SimpleRowGraphPlacer/1",1292);var OQe;g(1262,1,yl,Kwe),s.Lb=function(n){var t;return t=u(M(u(n,243).b,(be(),Ur)),74),!!t&&t.b!=0},s.Fb=function(n){return this===n},s.Mb=function(n){var t;return t=u(M(u(n,243).b,(be(),Ur)),74),!!t&&t.b!=0},p(FP,"CompoundGraphPostprocessor/1",1262),g(1261,1,Zt,rke),s.pf=function(n,t){i_e(this,u(n,37),t)},p(FP,"CompoundGraphPreprocessor",1261),g(441,1,{441:1},VFe),s.c=!1,p(FP,"CompoundGraphPreprocessor/ExternalPort",441),g(243,1,{243:1},dC),s.Ib=function(){return M$(this.c)+":"+CRe(this.b)},p(FP,"CrossHierarchyEdge",243),g(763,1,xt,Hz),s.ue=function(n,t){return E8n(this,u(n,243),u(t,243))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(FP,"CrossHierarchyEdgeComparator",763),g(299,134,{3:1,299:1,94:1,134:1}),s.p=0,p(uu,"LGraphElement",299),g(17,299,{3:1,17:1,299:1,94:1,134:1},w0),s.Ib=function(){return CRe(this)};var kq=p(uu,"LEdge",17);g(37,299,{3:1,20:1,37:1,299:1,94:1,134:1},TJ),s.Jc=function(n){Yi(this,n)},s.Kc=function(){return new A(this.b)},s.Ib=function(){return this.b.c.length==0?"G-unlayered"+Zh(this.a):this.a.c.length==0?"G-layered"+Zh(this.b):"G[layerless"+Zh(this.a)+", layers"+Zh(this.b)+"]"};var DQe=p(uu,"LGraph",37),$Qe;g(657,1,{}),s.qf=function(){return this.e.n},s.We=function(n){return M(this.e,n)},s.rf=function(){return this.e.o},s.sf=function(){return this.e.p},s.Xe=function(n){return Ai(this.e,n)},s.tf=function(n){this.e.n.a=n.a,this.e.n.b=n.b},s.uf=function(n){this.e.o.a=n.a,this.e.o.b=n.b},s.vf=function(n){this.e.p=n},p(uu,"LGraphAdapters/AbstractLShapeAdapter",657),g(577,1,{839:1},UE),s.wf=function(){var n,t;if(!this.b)for(this.b=Ll(this.a.b.c.length),t=new A(this.a.b);t.a0&&xFe((Gn(t-1,n.length),n.charCodeAt(t-1)),YGe);)--t;if(o> ",n),FS(i)),Qn(Pc((n.a+="[",n),i.i),"]")),n.a},s.c=!0,s.d=!1;var soe,ooe,foe,loe,aoe,hoe,FQe=p(uu,"LPort",11);g(397,1,zl,Rm),s.Jc=function(n){Yi(this,n)},s.Kc=function(){var n;return n=new A(this.a.e),new h9e(n)},p(uu,"LPort/1",397),g(1290,1,Bi,h9e),s.Nb=function(n){Wi(this,n)},s.Pb=function(){return u(P(this.a),17).c},s.Ob=function(){return fc(this.a)},s.Qb=function(){q5(this.a)},p(uu,"LPort/1/1",1290),g(359,1,zl,Wp),s.Jc=function(n){Yi(this,n)},s.Kc=function(){var n;return n=new A(this.a.g),new Vz(n)},p(uu,"LPort/2",359),g(762,1,Bi,Vz),s.Nb=function(n){Wi(this,n)},s.Pb=function(){return u(P(this.a),17).d},s.Ob=function(){return fc(this.a)},s.Qb=function(){q5(this.a)},p(uu,"LPort/2/1",762),g(1283,1,zl,GEe),s.Jc=function(n){Yi(this,n)},s.Kc=function(){return new _f(this)},p(uu,"LPort/CombineIter",1283),g(201,1,Bi,_f),s.Nb=function(n){Wi(this,n)},s.Qb=function(){wje()},s.Ob=function(){return I5(this)},s.Pb=function(){return fc(this.a)?P(this.a):P(this.b)},p(uu,"LPort/CombineIter/1",201),g(1285,1,yl,Hwe),s.Lb=function(n){return MPe(n)},s.Fb=function(n){return this===n},s.Mb=function(n){return Ru(),u(n,11).e.c.length!=0},p(uu,"LPort/lambda$0$Type",1285),g(1284,1,yl,Vwe),s.Lb=function(n){return SPe(n)},s.Fb=function(n){return this===n},s.Mb=function(n){return Ru(),u(n,11).g.c.length!=0},p(uu,"LPort/lambda$1$Type",1284),g(1286,1,yl,Gwe),s.Lb=function(n){return Ru(),u(n,11).j==(ae(),tn)},s.Fb=function(n){return this===n},s.Mb=function(n){return Ru(),u(n,11).j==(ae(),tn)},p(uu,"LPort/lambda$2$Type",1286),g(1287,1,yl,zwe),s.Lb=function(n){return Ru(),u(n,11).j==(ae(),hn)},s.Fb=function(n){return this===n},s.Mb=function(n){return Ru(),u(n,11).j==(ae(),hn)},p(uu,"LPort/lambda$3$Type",1287),g(1288,1,yl,Uwe),s.Lb=function(n){return Ru(),u(n,11).j==(ae(),On)},s.Fb=function(n){return this===n},s.Mb=function(n){return Ru(),u(n,11).j==(ae(),On)},p(uu,"LPort/lambda$4$Type",1288),g(1289,1,yl,Wwe),s.Lb=function(n){return Ru(),u(n,11).j==(ae(),un)},s.Fb=function(n){return this===n},s.Mb=function(n){return Ru(),u(n,11).j==(ae(),un)},p(uu,"LPort/lambda$5$Type",1289),g(29,299,{3:1,20:1,299:1,29:1,94:1,134:1},wo),s.Jc=function(n){Yi(this,n)},s.Kc=function(){return new A(this.a)},s.Ib=function(){return"L_"+tc(this.b.b,this,0)+Zh(this.a)},p(uu,"Layer",29),g(1342,1,{},ike),p(sh,eze,1342),g(1346,1,{},Xwe),s.Kb=function(n){return Qr(u(n,82))},p(sh,"ElkGraphImporter/0methodref$connectableShapeToNode$Type",1346),g(1349,1,{},Ywe),s.Kb=function(n){return Qr(u(n,82))},p(sh,"ElkGraphImporter/1methodref$connectableShapeToNode$Type",1349),g(1343,1,gn,d9e),s.td=function(n){BRe(this.a,u(n,118))},p(sh,nze,1343),g(1344,1,gn,b9e),s.td=function(n){BRe(this.a,u(n,118))},p(sh,tze,1344),g(1345,1,{},Qwe),s.Kb=function(n){return new We(null,new Ye(Egn(u(n,79)),16))},p(sh,ize,1345),g(1347,1,dt,w9e),s.Mb=function(n){return Thn(this.a,u(n,33))},p(sh,rze,1347),g(1348,1,{},Jwe),s.Kb=function(n){return new We(null,new Ye(Tgn(u(n,79)),16))},p(sh,"ElkGraphImporter/lambda$5$Type",1348),g(1350,1,dt,g9e),s.Mb=function(n){return Chn(this.a,u(n,33))},p(sh,"ElkGraphImporter/lambda$7$Type",1350),g(1351,1,dt,Zwe),s.Mb=function(n){return Kgn(u(n,79))},p(sh,"ElkGraphImporter/lambda$8$Type",1351),g(1278,1,{},g6e);var NQe;p(sh,"ElkGraphLayoutTransferrer",1278),g(1279,1,dt,p9e),s.Mb=function(n){return ddn(this.a,u(n,17))},p(sh,"ElkGraphLayoutTransferrer/lambda$0$Type",1279),g(1280,1,gn,m9e),s.td=function(n){a8(),se(this.a,u(n,17))},p(sh,"ElkGraphLayoutTransferrer/lambda$1$Type",1280),g(1281,1,dt,v9e),s.Mb=function(n){return J1n(this.a,u(n,17))},p(sh,"ElkGraphLayoutTransferrer/lambda$2$Type",1281),g(1282,1,gn,y9e),s.td=function(n){a8(),se(this.a,u(n,17))},p(sh,"ElkGraphLayoutTransferrer/lambda$3$Type",1282),g(1485,1,Zt,ege),s.pf=function(n,t){e4n(u(n,37),t)},p(fn,"CommentNodeMarginCalculator",1485),g(1486,1,{},nge),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"CommentNodeMarginCalculator/lambda$0$Type",1486),g(1487,1,gn,tge),s.td=function(n){$An(u(n,10))},p(fn,"CommentNodeMarginCalculator/lambda$1$Type",1487),g(1488,1,Zt,ige),s.pf=function(n,t){UMn(u(n,37),t)},p(fn,"CommentPostprocessor",1488),g(1489,1,Zt,rge),s.pf=function(n,t){eOn(u(n,37),t)},p(fn,"CommentPreprocessor",1489),g(1490,1,Zt,cge),s.pf=function(n,t){gCn(u(n,37),t)},p(fn,"ConstraintsPostprocessor",1490),g(1491,1,Zt,uge),s.pf=function(n,t){E4n(u(n,37),t)},p(fn,"EdgeAndLayerConstraintEdgeReverser",1491),g(1492,1,Zt,sge),s.pf=function(n,t){ayn(u(n,37),t)},p(fn,"EndLabelPostprocessor",1492),g(1493,1,{},oge),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"EndLabelPostprocessor/lambda$0$Type",1493),g(1494,1,dt,fge),s.Mb=function(n){return cpn(u(n,10))},p(fn,"EndLabelPostprocessor/lambda$1$Type",1494),g(1495,1,gn,lge),s.td=function(n){J8n(u(n,10))},p(fn,"EndLabelPostprocessor/lambda$2$Type",1495),g(1496,1,Zt,age),s.pf=function(n,t){Kjn(u(n,37),t)},p(fn,"EndLabelPreprocessor",1496),g(1497,1,{},hge),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"EndLabelPreprocessor/lambda$0$Type",1497),g(1498,1,gn,pSe),s.td=function(n){Kan(this.a,this.b,this.c,u(n,10))},s.a=0,s.b=0,s.c=!1,p(fn,"EndLabelPreprocessor/lambda$1$Type",1498),g(1499,1,dt,dge),s.Mb=function(n){return X(M(u(n,70),(be(),Ol)))===X((Bf(),y4))},p(fn,"EndLabelPreprocessor/lambda$2$Type",1499),g(1500,1,gn,k9e),s.td=function(n){ut(this.a,u(n,70))},p(fn,"EndLabelPreprocessor/lambda$3$Type",1500),g(1501,1,dt,bge),s.Mb=function(n){return X(M(u(n,70),(be(),Ol)))===X((Bf(),Qw))},p(fn,"EndLabelPreprocessor/lambda$4$Type",1501),g(1502,1,gn,j9e),s.td=function(n){ut(this.a,u(n,70))},p(fn,"EndLabelPreprocessor/lambda$5$Type",1502),g(1551,1,Zt,w6e),s.pf=function(n,t){v6n(u(n,37),t)};var _Qe;p(fn,"EndLabelSorter",1551),g(1552,1,xt,wge),s.ue=function(n,t){return Xyn(u(n,456),u(t,456))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"EndLabelSorter/1",1552),g(456,1,{456:1},NAe),p(fn,"EndLabelSorter/LabelGroup",456),g(1553,1,{},gge),s.Kb=function(n){return h8(),new We(null,new Ye(u(n,29).a,16))},p(fn,"EndLabelSorter/lambda$0$Type",1553),g(1554,1,dt,pge),s.Mb=function(n){return h8(),u(n,10).k==(dn(),vi)},p(fn,"EndLabelSorter/lambda$1$Type",1554),g(1555,1,gn,mge),s.td=function(n){Jkn(u(n,10))},p(fn,"EndLabelSorter/lambda$2$Type",1555),g(1556,1,dt,vge),s.Mb=function(n){return h8(),X(M(u(n,70),(be(),Ol)))===X((Bf(),Qw))},p(fn,"EndLabelSorter/lambda$3$Type",1556),g(1557,1,dt,yge),s.Mb=function(n){return h8(),X(M(u(n,70),(be(),Ol)))===X((Bf(),y4))},p(fn,"EndLabelSorter/lambda$4$Type",1557),g(1503,1,Zt,kge),s.pf=function(n,t){GAn(this,u(n,37))},s.b=0,s.c=0,p(fn,"FinalSplineBendpointsCalculator",1503),g(1504,1,{},jge),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"FinalSplineBendpointsCalculator/lambda$0$Type",1504),g(1505,1,{},Ege),s.Kb=function(n){return new We(null,new l0(new En(Cn(pi(u(n,10)).a.Kc(),new J))))},p(fn,"FinalSplineBendpointsCalculator/lambda$1$Type",1505),g(1506,1,dt,Tge),s.Mb=function(n){return!gr(u(n,17))},p(fn,"FinalSplineBendpointsCalculator/lambda$2$Type",1506),g(1507,1,dt,Cge),s.Mb=function(n){return Ai(u(n,17),(re(),Sd))},p(fn,"FinalSplineBendpointsCalculator/lambda$3$Type",1507),g(1508,1,gn,E9e),s.td=function(n){rPn(this.a,u(n,128))},p(fn,"FinalSplineBendpointsCalculator/lambda$4$Type",1508),g(1509,1,gn,Mge),s.td=function(n){r_(u(n,17).a)},p(fn,"FinalSplineBendpointsCalculator/lambda$5$Type",1509),g(792,1,Zt,Gz),s.pf=function(n,t){_xn(this,u(n,37),t)},p(fn,"GraphTransformer",792),g(511,22,{3:1,35:1,22:1,511:1},rW);var Eq,fj,BQe=zn(fn,"GraphTransformer/Mode",511,Xn,Spn,cbn),RQe;g(1510,1,Zt,Sge),s.pf=function(n,t){bMn(u(n,37),t)},p(fn,"HierarchicalNodeResizingProcessor",1510),g(1511,1,Zt,Pge),s.pf=function(n,t){X3n(u(n,37),t)},p(fn,"HierarchicalPortConstraintProcessor",1511),g(1512,1,xt,Age),s.ue=function(n,t){return u9n(u(n,10),u(t,10))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"HierarchicalPortConstraintProcessor/NodeComparator",1512),g(1513,1,Zt,xge),s.pf=function(n,t){wAn(u(n,37),t)},p(fn,"HierarchicalPortDummySizeProcessor",1513),g(1514,1,Zt,Ige),s.pf=function(n,t){hSn(this,u(n,37),t)},s.a=0,p(fn,"HierarchicalPortOrthogonalEdgeRouter",1514),g(1515,1,xt,Oge),s.ue=function(n,t){return p1n(u(n,10),u(t,10))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"HierarchicalPortOrthogonalEdgeRouter/1",1515),g(1516,1,xt,Dge),s.ue=function(n,t){return Ivn(u(n,10),u(t,10))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"HierarchicalPortOrthogonalEdgeRouter/2",1516),g(1517,1,Zt,$ge),s.pf=function(n,t){Nkn(u(n,37),t)},p(fn,"HierarchicalPortPositionProcessor",1517),g(1518,1,Zt,p6e),s.pf=function(n,t){OOn(this,u(n,37))},s.a=0,s.c=0;var QA,JA;p(fn,"HighDegreeNodeLayeringProcessor",1518),g(571,1,{571:1},Lge),s.b=-1,s.d=-1,p(fn,"HighDegreeNodeLayeringProcessor/HighDegreeNodeInformation",571),g(1519,1,{},Fge),s.Kb=function(n){return _8(),ic(u(n,10))},s.Fb=function(n){return this===n},p(fn,"HighDegreeNodeLayeringProcessor/lambda$0$Type",1519),g(1520,1,{},Nge),s.Kb=function(n){return _8(),pi(u(n,10))},s.Fb=function(n){return this===n},p(fn,"HighDegreeNodeLayeringProcessor/lambda$1$Type",1520),g(1526,1,Zt,_ge),s.pf=function(n,t){HPn(this,u(n,37),t)},p(fn,"HyperedgeDummyMerger",1526),g(793,1,{},WX),s.a=!1,s.b=!1,s.c=!1,p(fn,"HyperedgeDummyMerger/MergeState",793),g(1527,1,{},Bge),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"HyperedgeDummyMerger/lambda$0$Type",1527),g(1528,1,{},Rge),s.Kb=function(n){return new We(null,new Ye(u(n,10).j,16))},p(fn,"HyperedgeDummyMerger/lambda$1$Type",1528),g(1529,1,gn,Kge),s.td=function(n){u(n,11).p=-1},p(fn,"HyperedgeDummyMerger/lambda$2$Type",1529),g(1530,1,Zt,qge),s.pf=function(n,t){KPn(u(n,37),t)},p(fn,"HypernodesProcessor",1530),g(1531,1,Zt,Hge),s.pf=function(n,t){qPn(u(n,37),t)},p(fn,"InLayerConstraintProcessor",1531),g(1532,1,Zt,Vge),s.pf=function(n,t){m4n(u(n,37),t)},p(fn,"InnermostNodeMarginCalculator",1532),g(1533,1,Zt,Gge),s.pf=function(n,t){XIn(this,u(n,37))},s.a=hi,s.b=hi,s.c=Jt,s.d=Jt;var $Dn=p(fn,"InteractiveExternalPortPositioner",1533);g(1534,1,{},zge),s.Kb=function(n){return u(n,17).d.i},s.Fb=function(n){return this===n},p(fn,"InteractiveExternalPortPositioner/lambda$0$Type",1534),g(1535,1,{},T9e),s.Kb=function(n){return y1n(this.a,he(n))},s.Fb=function(n){return this===n},p(fn,"InteractiveExternalPortPositioner/lambda$1$Type",1535),g(1536,1,{},Uge),s.Kb=function(n){return u(n,17).c.i},s.Fb=function(n){return this===n},p(fn,"InteractiveExternalPortPositioner/lambda$2$Type",1536),g(1537,1,{},C9e),s.Kb=function(n){return k1n(this.a,he(n))},s.Fb=function(n){return this===n},p(fn,"InteractiveExternalPortPositioner/lambda$3$Type",1537),g(1538,1,{},M9e),s.Kb=function(n){return ldn(this.a,he(n))},s.Fb=function(n){return this===n},p(fn,"InteractiveExternalPortPositioner/lambda$4$Type",1538),g(1539,1,{},S9e),s.Kb=function(n){return adn(this.a,he(n))},s.Fb=function(n){return this===n},p(fn,"InteractiveExternalPortPositioner/lambda$5$Type",1539),g(77,22,{3:1,35:1,22:1,77:1,234:1},ui),s.Kf=function(){switch(this.g){case 15:return new bme;case 22:return new wme;case 47:return new mme;case 28:case 35:return new rpe;case 32:return new ege;case 42:return new ige;case 1:return new rge;case 41:return new cge;case 56:return new Gz((Lv(),fj));case 0:return new Gz((Lv(),Eq));case 2:return new uge;case 54:return new sge;case 33:return new age;case 51:return new kge;case 55:return new Sge;case 13:return new Pge;case 38:return new xge;case 44:return new Ige;case 40:return new $ge;case 9:return new p6e;case 49:return new iMe;case 37:return new _ge;case 43:return new qge;case 27:return new Hge;case 30:return new Vge;case 3:return new Gge;case 18:return new Xge;case 29:return new Yge;case 5:return new m6e;case 50:return new Wge;case 34:return new v6e;case 36:return new cpe;case 52:return new w6e;case 11:return new spe;case 7:return new k6e;case 39:return new ope;case 45:return new fpe;case 16:return new lpe;case 10:return new ape;case 48:return new dpe;case 21:return new bpe;case 23:return new TD((M0(),Wy));case 8:return new gpe;case 12:return new mpe;case 4:return new vpe;case 19:return new C6e;case 17:return new Ape;case 53:return new xpe;case 6:return new qpe;case 25:return new ske;case 46:return new Lpe;case 31:return new KMe;case 14:return new Ype;case 26:return new kme;case 20:return new n2e;case 24:return new TD((M0(),tI));default:throw I(new rn(rR+(this.f!=null?this.f:""+this.g)))}};var doe,boe,woe,goe,poe,moe,voe,yoe,koe,joe,Sy,ZA,ex,Eoe,Toe,Coe,Moe,Soe,Poe,Aoe,Py,xoe,Ioe,Ooe,Doe,$oe,Tq,nx,tx,Loe,ix,rx,cx,W3,X3,Y3,Foe,ux,sx,Noe,ox,fx,_oe,Boe,Roe,Koe,lx,Cq,lj,ax,hx,dx,bx,qoe,Hoe,Voe,Goe,LDn=zn(fn,Uie,77,Xn,IKe,rbn),KQe;g(1540,1,Zt,Xge),s.pf=function(n,t){QIn(u(n,37),t)},p(fn,"InvertedPortProcessor",1540),g(1541,1,Zt,Yge),s.pf=function(n,t){QSn(u(n,37),t)},p(fn,"LabelAndNodeSizeProcessor",1541),g(1542,1,dt,Qge),s.Mb=function(n){return u(n,10).k==(dn(),vi)},p(fn,"LabelAndNodeSizeProcessor/lambda$0$Type",1542),g(1543,1,dt,Jge),s.Mb=function(n){return u(n,10).k==(dn(),fi)},p(fn,"LabelAndNodeSizeProcessor/lambda$1$Type",1543),g(1544,1,gn,mSe),s.td=function(n){qan(this.b,this.a,this.c,u(n,10))},s.a=!1,s.c=!1,p(fn,"LabelAndNodeSizeProcessor/lambda$2$Type",1544),g(1545,1,Zt,m6e),s.pf=function(n,t){kIn(u(n,37),t)};var qQe;p(fn,"LabelDummyInserter",1545),g(1546,1,yl,Zge),s.Lb=function(n){return X(M(u(n,70),(be(),Ol)))===X((Bf(),v4))},s.Fb=function(n){return this===n},s.Mb=function(n){return X(M(u(n,70),(be(),Ol)))===X((Bf(),v4))},p(fn,"LabelDummyInserter/1",1546),g(1547,1,Zt,Wge),s.pf=function(n,t){Exn(u(n,37),t)},p(fn,"LabelDummyRemover",1547),g(1548,1,dt,epe),s.Mb=function(n){return ke(ye(M(u(n,70),(be(),dH))))},p(fn,"LabelDummyRemover/lambda$0$Type",1548),g(1359,1,Zt,v6e),s.pf=function(n,t){Jxn(this,u(n,37),t)},s.a=null;var Mq;p(fn,"LabelDummySwitcher",1359),g(286,1,{286:1},Aqe),s.c=0,s.d=null,s.f=0,p(fn,"LabelDummySwitcher/LabelDummyInfo",286),g(1360,1,{},npe),s.Kb=function(n){return A2(),new We(null,new Ye(u(n,29).a,16))},p(fn,"LabelDummySwitcher/lambda$0$Type",1360),g(1361,1,dt,tpe),s.Mb=function(n){return A2(),u(n,10).k==(dn(),Ts)},p(fn,"LabelDummySwitcher/lambda$1$Type",1361),g(1362,1,{},x9e),s.Kb=function(n){return Z1n(this.a,u(n,10))},p(fn,"LabelDummySwitcher/lambda$2$Type",1362),g(1363,1,gn,I9e),s.td=function(n){Jwn(this.a,u(n,286))},p(fn,"LabelDummySwitcher/lambda$3$Type",1363),g(1364,1,xt,ipe),s.ue=function(n,t){return Mwn(u(n,286),u(t,286))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"LabelDummySwitcher/lambda$4$Type",1364),g(791,1,Zt,rpe),s.pf=function(n,t){fvn(u(n,37),t)},p(fn,"LabelManagementProcessor",791),g(1549,1,Zt,cpe),s.pf=function(n,t){$Mn(u(n,37),t)},p(fn,"LabelSideSelector",1549),g(1550,1,dt,upe),s.Mb=function(n){return ke(ye(M(u(n,70),(be(),dH))))},p(fn,"LabelSideSelector/lambda$0$Type",1550),g(1558,1,Zt,spe),s.pf=function(n,t){gAn(u(n,37),t)},p(fn,"LayerConstraintPostprocessor",1558),g(1559,1,Zt,k6e),s.pf=function(n,t){xTn(u(n,37),t)};var zoe;p(fn,"LayerConstraintPreprocessor",1559),g(360,22,{3:1,35:1,22:1,360:1},OT);var aj,wx,gx,Sq,HQe=zn(fn,"LayerConstraintPreprocessor/HiddenNodeConnections",360,Xn,tmn,Xdn),VQe;g(1560,1,Zt,ope),s.pf=function(n,t){yxn(u(n,37),t)},p(fn,"LayerSizeAndGraphHeightCalculator",1560),g(1561,1,Zt,fpe),s.pf=function(n,t){ECn(u(n,37),t)},p(fn,"LongEdgeJoiner",1561),g(1562,1,Zt,lpe),s.pf=function(n,t){nxn(u(n,37),t)},p(fn,"LongEdgeSplitter",1562),g(1563,1,Zt,ape),s.pf=function(n,t){nIn(this,u(n,37),t)},s.d=0,s.e=0,s.i=0,s.j=0,s.k=0,s.n=0,p(fn,"NodePromotion",1563),g(1564,1,{},hpe),s.Kb=function(n){return u(n,46),cn(),!0},s.Fb=function(n){return this===n},p(fn,"NodePromotion/lambda$0$Type",1564),g(1565,1,{},P9e),s.Kb=function(n){return vgn(this.a,u(n,46))},s.Fb=function(n){return this===n},s.a=0,p(fn,"NodePromotion/lambda$1$Type",1565),g(1566,1,{},A9e),s.Kb=function(n){return ygn(this.a,u(n,46))},s.Fb=function(n){return this===n},s.a=0,p(fn,"NodePromotion/lambda$2$Type",1566),g(1567,1,Zt,dpe),s.pf=function(n,t){COn(u(n,37),t)},p(fn,"NorthSouthPortPostprocessor",1567),g(1568,1,Zt,bpe),s.pf=function(n,t){lOn(u(n,37),t)},p(fn,"NorthSouthPortPreprocessor",1568),g(1569,1,xt,wpe),s.ue=function(n,t){return B4n(u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"NorthSouthPortPreprocessor/lambda$0$Type",1569),g(1570,1,Zt,gpe),s.pf=function(n,t){SPn(u(n,37),t)},p(fn,"PartitionMidprocessor",1570),g(1571,1,dt,ppe),s.Mb=function(n){return Ai(u(n,10),(be(),f4))},p(fn,"PartitionMidprocessor/lambda$0$Type",1571),g(1572,1,gn,O9e),s.td=function(n){qgn(this.a,u(n,10))},p(fn,"PartitionMidprocessor/lambda$1$Type",1572),g(1573,1,Zt,mpe),s.pf=function(n,t){HCn(u(n,37),t)},p(fn,"PartitionPostprocessor",1573),g(1574,1,Zt,vpe),s.pf=function(n,t){ZEn(u(n,37),t)},p(fn,"PartitionPreprocessor",1574),g(1575,1,dt,ype),s.Mb=function(n){return Ai(u(n,10),(be(),f4))},p(fn,"PartitionPreprocessor/lambda$0$Type",1575),g(1576,1,{},kpe),s.Kb=function(n){return new We(null,new l0(new En(Cn(pi(u(n,10)).a.Kc(),new J))))},p(fn,"PartitionPreprocessor/lambda$1$Type",1576),g(1577,1,dt,jpe),s.Mb=function(n){return zyn(u(n,17))},p(fn,"PartitionPreprocessor/lambda$2$Type",1577),g(1578,1,gn,Epe),s.td=function(n){X4n(u(n,17))},p(fn,"PartitionPreprocessor/lambda$3$Type",1578),g(1579,1,Zt,C6e),s.pf=function(n,t){aPn(u(n,37),t)};var Uoe,GQe,zQe,UQe,Woe,Xoe;p(fn,"PortListSorter",1579),g(1580,1,{},Tpe),s.Kb=function(n){return zv(),u(n,11).e},p(fn,"PortListSorter/lambda$0$Type",1580),g(1581,1,{},Cpe),s.Kb=function(n){return zv(),u(n,11).g},p(fn,"PortListSorter/lambda$1$Type",1581),g(1582,1,xt,Mpe),s.ue=function(n,t){return HIe(u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"PortListSorter/lambda$2$Type",1582),g(1583,1,xt,Spe),s.ue=function(n,t){return g8n(u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"PortListSorter/lambda$3$Type",1583),g(1584,1,xt,Ppe),s.ue=function(n,t){return Jqe(u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"PortListSorter/lambda$4$Type",1584),g(1585,1,Zt,Ape),s.pf=function(n,t){TTn(u(n,37),t)},p(fn,"PortSideProcessor",1585),g(1586,1,Zt,xpe),s.pf=function(n,t){CSn(u(n,37),t)},p(fn,"ReversedEdgeRestorer",1586),g(1591,1,Zt,ske),s.pf=function(n,t){e8n(this,u(n,37),t)},p(fn,"SelfLoopPortRestorer",1591),g(1592,1,{},Ipe),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"SelfLoopPortRestorer/lambda$0$Type",1592),g(1593,1,dt,Ope),s.Mb=function(n){return u(n,10).k==(dn(),vi)},p(fn,"SelfLoopPortRestorer/lambda$1$Type",1593),g(1594,1,dt,Dpe),s.Mb=function(n){return Ai(u(n,10),(re(),u4))},p(fn,"SelfLoopPortRestorer/lambda$2$Type",1594),g(1595,1,{},$pe),s.Kb=function(n){return u(M(u(n,10),(re(),u4)),403)},p(fn,"SelfLoopPortRestorer/lambda$3$Type",1595),g(1596,1,gn,D9e),s.td=function(n){fjn(this.a,u(n,403))},p(fn,"SelfLoopPortRestorer/lambda$4$Type",1596),g(794,1,gn,JG),s.td=function(n){Tjn(u(n,101))},p(fn,"SelfLoopPortRestorer/lambda$5$Type",794),g(1597,1,Zt,Lpe),s.pf=function(n,t){f9n(u(n,37),t)},p(fn,"SelfLoopPostProcessor",1597),g(1598,1,{},Fpe),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"SelfLoopPostProcessor/lambda$0$Type",1598),g(1599,1,dt,Npe),s.Mb=function(n){return u(n,10).k==(dn(),vi)},p(fn,"SelfLoopPostProcessor/lambda$1$Type",1599),g(1600,1,dt,_pe),s.Mb=function(n){return Ai(u(n,10),(re(),u4))},p(fn,"SelfLoopPostProcessor/lambda$2$Type",1600),g(1601,1,gn,Bpe),s.td=function(n){g7n(u(n,10))},p(fn,"SelfLoopPostProcessor/lambda$3$Type",1601),g(1602,1,{},Rpe),s.Kb=function(n){return new We(null,new Ye(u(n,101).f,1))},p(fn,"SelfLoopPostProcessor/lambda$4$Type",1602),g(1603,1,gn,$9e),s.td=function(n){cmn(this.a,u(n,409))},p(fn,"SelfLoopPostProcessor/lambda$5$Type",1603),g(1604,1,dt,Kpe),s.Mb=function(n){return!!u(n,101).i},p(fn,"SelfLoopPostProcessor/lambda$6$Type",1604),g(1605,1,gn,L9e),s.td=function(n){Hln(this.a,u(n,101))},p(fn,"SelfLoopPostProcessor/lambda$7$Type",1605),g(1587,1,Zt,qpe),s.pf=function(n,t){tCn(u(n,37),t)},p(fn,"SelfLoopPreProcessor",1587),g(1588,1,{},Hpe),s.Kb=function(n){return new We(null,new Ye(u(n,101).f,1))},p(fn,"SelfLoopPreProcessor/lambda$0$Type",1588),g(1589,1,{},Vpe),s.Kb=function(n){return u(n,409).a},p(fn,"SelfLoopPreProcessor/lambda$1$Type",1589),g(1590,1,gn,Gpe),s.td=function(n){Whn(u(n,17))},p(fn,"SelfLoopPreProcessor/lambda$2$Type",1590),g(1606,1,Zt,KMe),s.pf=function(n,t){Zkn(this,u(n,37),t)},p(fn,"SelfLoopRouter",1606),g(1607,1,{},zpe),s.Kb=function(n){return new We(null,new Ye(u(n,29).a,16))},p(fn,"SelfLoopRouter/lambda$0$Type",1607),g(1608,1,dt,Upe),s.Mb=function(n){return u(n,10).k==(dn(),vi)},p(fn,"SelfLoopRouter/lambda$1$Type",1608),g(1609,1,dt,Wpe),s.Mb=function(n){return Ai(u(n,10),(re(),u4))},p(fn,"SelfLoopRouter/lambda$2$Type",1609),g(1610,1,{},Xpe),s.Kb=function(n){return u(M(u(n,10),(re(),u4)),403)},p(fn,"SelfLoopRouter/lambda$3$Type",1610),g(1611,1,gn,NEe),s.td=function(n){Dgn(this.a,this.b,u(n,403))},p(fn,"SelfLoopRouter/lambda$4$Type",1611),g(1612,1,Zt,Ype),s.pf=function(n,t){jMn(u(n,37),t)},p(fn,"SemiInteractiveCrossMinProcessor",1612),g(1613,1,dt,Qpe),s.Mb=function(n){return u(n,10).k==(dn(),vi)},p(fn,"SemiInteractiveCrossMinProcessor/lambda$0$Type",1613),g(1614,1,dt,Jpe),s.Mb=function(n){return iPe(u(n,10))._b((be(),Gw))},p(fn,"SemiInteractiveCrossMinProcessor/lambda$1$Type",1614),g(1615,1,xt,Zpe),s.ue=function(n,t){return Q3n(u(n,10),u(t,10))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(fn,"SemiInteractiveCrossMinProcessor/lambda$2$Type",1615),g(1616,1,{},e2e),s.Ce=function(n,t){return Ygn(u(n,10),u(t,10))},p(fn,"SemiInteractiveCrossMinProcessor/lambda$3$Type",1616),g(1618,1,Zt,n2e),s.pf=function(n,t){pAn(u(n,37),t)},p(fn,"SortByInputModelProcessor",1618),g(1619,1,dt,t2e),s.Mb=function(n){return u(n,11).g.c.length!=0},p(fn,"SortByInputModelProcessor/lambda$0$Type",1619),g(1620,1,gn,F9e),s.td=function(n){Ajn(this.a,u(n,11))},p(fn,"SortByInputModelProcessor/lambda$1$Type",1620),g(1693,803,{},J$e),s.Me=function(n){var t,i,r,c;switch(this.c=n,this.a.g){case 2:t=new oe,ti(Lt(new We(null,new Ye(this.c.a.b,16)),new g2e),new qEe(this,t)),ek(this,new c2e),Tu(t,new u2e),t.c=V(pn,pe,1,0,5,1),ti(Lt(new We(null,new Ye(this.c.a.b,16)),new s2e),new _9e(t)),ek(this,new o2e),Tu(t,new f2e),t.c=V(pn,pe,1,0,5,1),i=kCe(aLe(qC(new We(null,new Ye(this.c.a.b,16)),new B9e(this))),new l2e),ti(new We(null,new Ye(this.c.a.a,16)),new BEe(i,t)),ek(this,new h2e),Tu(t,new i2e),t.c=V(pn,pe,1,0,5,1);break;case 3:r=new oe,ek(this,new r2e),c=kCe(aLe(qC(new We(null,new Ye(this.c.a.b,16)),new N9e(this))),new a2e),ti(Lt(new We(null,new Ye(this.c.a.b,16)),new d2e),new KEe(c,r)),ek(this,new b2e),Tu(r,new w2e),r.c=V(pn,pe,1,0,5,1);break;default:throw I(new z7e)}},s.b=0,p(di,"EdgeAwareScanlineConstraintCalculation",1693),g(1694,1,yl,r2e),s.Lb=function(n){return _(u(n,57).g,145)},s.Fb=function(n){return this===n},s.Mb=function(n){return _(u(n,57).g,145)},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$0$Type",1694),g(1695,1,{},N9e),s.Fe=function(n){return oEn(this.a,u(n,57))},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$1$Type",1695),g(1703,1,jP,_Ee),s.Vd=function(){T6(this.a,this.b,-1)},s.b=0,p(di,"EdgeAwareScanlineConstraintCalculation/lambda$10$Type",1703),g(1705,1,yl,c2e),s.Lb=function(n){return _(u(n,57).g,145)},s.Fb=function(n){return this===n},s.Mb=function(n){return _(u(n,57).g,145)},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$11$Type",1705),g(1706,1,gn,u2e),s.td=function(n){u(n,365).Vd()},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$12$Type",1706),g(1707,1,dt,s2e),s.Mb=function(n){return _(u(n,57).g,10)},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$13$Type",1707),g(1709,1,gn,_9e),s.td=function(n){L6n(this.a,u(n,57))},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$14$Type",1709),g(1708,1,jP,zEe),s.Vd=function(){T6(this.b,this.a,-1)},s.a=0,p(di,"EdgeAwareScanlineConstraintCalculation/lambda$15$Type",1708),g(1710,1,yl,o2e),s.Lb=function(n){return _(u(n,57).g,10)},s.Fb=function(n){return this===n},s.Mb=function(n){return _(u(n,57).g,10)},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$16$Type",1710),g(1711,1,gn,f2e),s.td=function(n){u(n,365).Vd()},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$17$Type",1711),g(1712,1,{},B9e),s.Fe=function(n){return fEn(this.a,u(n,57))},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$18$Type",1712),g(1713,1,{},l2e),s.De=function(){return 0},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$19$Type",1713),g(1696,1,{},a2e),s.De=function(){return 0},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$2$Type",1696),g(1715,1,gn,BEe),s.td=function(n){gwn(this.a,this.b,u(n,307))},s.a=0,p(di,"EdgeAwareScanlineConstraintCalculation/lambda$20$Type",1715),g(1714,1,jP,REe),s.Vd=function(){oKe(this.a,this.b,-1)},s.b=0,p(di,"EdgeAwareScanlineConstraintCalculation/lambda$21$Type",1714),g(1716,1,yl,h2e),s.Lb=function(n){return u(n,57),!0},s.Fb=function(n){return this===n},s.Mb=function(n){return u(n,57),!0},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$22$Type",1716),g(1717,1,gn,i2e),s.td=function(n){u(n,365).Vd()},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$23$Type",1717),g(1697,1,dt,d2e),s.Mb=function(n){return _(u(n,57).g,10)},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$3$Type",1697),g(1699,1,gn,KEe),s.td=function(n){pwn(this.a,this.b,u(n,57))},s.a=0,p(di,"EdgeAwareScanlineConstraintCalculation/lambda$4$Type",1699),g(1698,1,jP,UEe),s.Vd=function(){T6(this.b,this.a,-1)},s.a=0,p(di,"EdgeAwareScanlineConstraintCalculation/lambda$5$Type",1698),g(1700,1,yl,b2e),s.Lb=function(n){return u(n,57),!0},s.Fb=function(n){return this===n},s.Mb=function(n){return u(n,57),!0},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$6$Type",1700),g(1701,1,gn,w2e),s.td=function(n){u(n,365).Vd()},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$7$Type",1701),g(1702,1,dt,g2e),s.Mb=function(n){return _(u(n,57).g,145)},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$8$Type",1702),g(1704,1,gn,qEe),s.td=function(n){b3n(this.a,this.b,u(n,57))},p(di,"EdgeAwareScanlineConstraintCalculation/lambda$9$Type",1704),g(1521,1,Zt,iMe),s.pf=function(n,t){oxn(this,u(n,37),t)};var WQe;p(di,"HorizontalGraphCompactor",1521),g(1522,1,{},R9e),s.Oe=function(n,t){var i,r,c;return aJ(n,t)||(i=Pg(n),r=Pg(t),i&&i.k==(dn(),fi)||r&&r.k==(dn(),fi))?0:(c=u(M(this.a.a,(re(),Cp)),304),j1n(c,i?i.k:(dn(),$i),r?r.k:(dn(),$i)))},s.Pe=function(n,t){var i,r,c;return aJ(n,t)?1:(i=Pg(n),r=Pg(t),c=u(M(this.a.a,(re(),Cp)),304),uX(c,i?i.k:(dn(),$i),r?r.k:(dn(),$i)))},p(di,"HorizontalGraphCompactor/1",1522),g(1523,1,{},p2e),s.Ne=function(n,t){return r5(),n.a.i==0},p(di,"HorizontalGraphCompactor/lambda$0$Type",1523),g(1524,1,{},K9e),s.Ne=function(n,t){return zgn(this.a,n,t)},p(di,"HorizontalGraphCompactor/lambda$1$Type",1524),g(1664,1,{},NDe);var XQe,YQe;p(di,"LGraphToCGraphTransformer",1664),g(1672,1,dt,m2e),s.Mb=function(n){return n!=null},p(di,"LGraphToCGraphTransformer/0methodref$nonNull$Type",1672),g(1665,1,{},v2e),s.Kb=function(n){return zo(),rc(M(u(u(n,57).g,10),(re(),Et)))},p(di,"LGraphToCGraphTransformer/lambda$0$Type",1665),g(1666,1,{},y2e),s.Kb=function(n){return zo(),RFe(u(u(n,57).g,145))},p(di,"LGraphToCGraphTransformer/lambda$1$Type",1666),g(1675,1,dt,k2e),s.Mb=function(n){return zo(),_(u(n,57).g,10)},p(di,"LGraphToCGraphTransformer/lambda$10$Type",1675),g(1676,1,gn,j2e),s.td=function(n){Ggn(u(n,57))},p(di,"LGraphToCGraphTransformer/lambda$11$Type",1676),g(1677,1,dt,E2e),s.Mb=function(n){return zo(),_(u(n,57).g,145)},p(di,"LGraphToCGraphTransformer/lambda$12$Type",1677),g(1681,1,gn,T2e),s.td=function(n){Y5n(u(n,57))},p(di,"LGraphToCGraphTransformer/lambda$13$Type",1681),g(1678,1,gn,q9e),s.td=function(n){yhn(this.a,u(n,8))},s.a=0,p(di,"LGraphToCGraphTransformer/lambda$14$Type",1678),g(1679,1,gn,H9e),s.td=function(n){jhn(this.a,u(n,110))},s.a=0,p(di,"LGraphToCGraphTransformer/lambda$15$Type",1679),g(1680,1,gn,V9e),s.td=function(n){khn(this.a,u(n,8))},s.a=0,p(di,"LGraphToCGraphTransformer/lambda$16$Type",1680),g(1682,1,{},C2e),s.Kb=function(n){return zo(),new We(null,new l0(new En(Cn(pi(u(n,10)).a.Kc(),new J))))},p(di,"LGraphToCGraphTransformer/lambda$17$Type",1682),g(1683,1,dt,M2e),s.Mb=function(n){return zo(),gr(u(n,17))},p(di,"LGraphToCGraphTransformer/lambda$18$Type",1683),g(1684,1,gn,G9e),s.td=function(n){t3n(this.a,u(n,17))},p(di,"LGraphToCGraphTransformer/lambda$19$Type",1684),g(1668,1,gn,z9e),s.td=function(n){F2n(this.a,u(n,145))},p(di,"LGraphToCGraphTransformer/lambda$2$Type",1668),g(1685,1,{},S2e),s.Kb=function(n){return zo(),new We(null,new Ye(u(n,29).a,16))},p(di,"LGraphToCGraphTransformer/lambda$20$Type",1685),g(1686,1,{},P2e),s.Kb=function(n){return zo(),new We(null,new l0(new En(Cn(pi(u(n,10)).a.Kc(),new J))))},p(di,"LGraphToCGraphTransformer/lambda$21$Type",1686),g(1687,1,{},A2e),s.Kb=function(n){return zo(),u(M(u(n,17),(re(),Sd)),15)},p(di,"LGraphToCGraphTransformer/lambda$22$Type",1687),g(1688,1,dt,x2e),s.Mb=function(n){return T1n(u(n,15))},p(di,"LGraphToCGraphTransformer/lambda$23$Type",1688),g(1689,1,gn,U9e),s.td=function(n){Zjn(this.a,u(n,15))},p(di,"LGraphToCGraphTransformer/lambda$24$Type",1689),g(1667,1,gn,HEe),s.td=function(n){Emn(this.a,this.b,u(n,145))},p(di,"LGraphToCGraphTransformer/lambda$3$Type",1667),g(1669,1,{},I2e),s.Kb=function(n){return zo(),new We(null,new Ye(u(n,29).a,16))},p(di,"LGraphToCGraphTransformer/lambda$4$Type",1669),g(1670,1,{},O2e),s.Kb=function(n){return zo(),new We(null,new l0(new En(Cn(pi(u(n,10)).a.Kc(),new J))))},p(di,"LGraphToCGraphTransformer/lambda$5$Type",1670),g(1671,1,{},D2e),s.Kb=function(n){return zo(),u(M(u(n,17),(re(),Sd)),15)},p(di,"LGraphToCGraphTransformer/lambda$6$Type",1671),g(1673,1,gn,W9e),s.td=function(n){IEn(this.a,u(n,15))},p(di,"LGraphToCGraphTransformer/lambda$8$Type",1673),g(1674,1,gn,VEe),s.td=function(n){Vhn(this.a,this.b,u(n,145))},p(di,"LGraphToCGraphTransformer/lambda$9$Type",1674),g(1663,1,{},$2e),s.Le=function(n){var t,i,r,c,o;for(this.a=n,this.d=new dD,this.c=V(Ase,pe,121,this.a.a.a.c.length,0,1),this.b=0,i=new A(this.a.a.a);i.a=x&&(se(o,le(w)),R=y.Math.max(R,G[w-1]-k),l+=C,L+=G[w-1]-L,k=G[w-1],C=a[w]),C=y.Math.max(C,a[w]),++w;l+=C}T=y.Math.min(1/R,1/t.b/l),T>r&&(r=T,i=o)}return i},s.Wf=function(){return!1},p(Tl,"MSDCutIndexHeuristic",802),g(1617,1,Zt,kme),s.pf=function(n,t){fAn(u(n,37),t)},p(Tl,"SingleEdgeGraphWrapper",1617),g(227,22,{3:1,35:1,22:1,227:1},a5);var mp,Z3,e4,Lw,Ay,vp,n4=zn(Fc,"CenterEdgeLabelPlacementStrategy",227,Xn,yvn,Jdn),oJe;g(422,22,{3:1,35:1,22:1,422:1},uW);var Qoe,_q,Joe=zn(Fc,"ConstraintCalculationStrategy",422,Xn,lpn,Zdn),fJe;g(314,22,{3:1,35:1,22:1,314:1,246:1,234:1},VD),s.Kf=function(){return vRe(this)},s.Xf=function(){return vRe(this)};var hj,um,Zoe,efe=zn(Fc,"CrossingMinimizationStrategy",314,Xn,t2n,e0n),lJe;g(337,22,{3:1,35:1,22:1,337:1},GD);var nfe,Bq,jx,tfe=zn(Fc,"CuttingStrategy",337,Xn,i2n,i0n),aJe;g(335,22,{3:1,35:1,22:1,335:1,246:1,234:1},p8),s.Kf=function(){return cKe(this)},s.Xf=function(){return cKe(this)};var ife,Rq,xy,Kq,Iy,rfe=zn(Fc,"CycleBreakingStrategy",335,Xn,zmn,r0n),hJe;g(419,22,{3:1,35:1,22:1,419:1},sW);var Ex,cfe,ufe=zn(Fc,"DirectionCongruency",419,Xn,fpn,c0n),dJe;g(450,22,{3:1,35:1,22:1,450:1},zD);var t4,qq,yp,bJe=zn(Fc,"EdgeConstraint",450,Xn,r2n,u0n),wJe;g(276,22,{3:1,35:1,22:1,276:1},h5);var Hq,Vq,Gq,zq,Tx,Uq,sfe=zn(Fc,"EdgeLabelSideSelection",276,Xn,Tvn,s0n),gJe;g(479,22,{3:1,35:1,22:1,479:1},oW);var Cx,ofe,ffe=zn(Fc,"EdgeStraighteningStrategy",479,Xn,opn,o0n),pJe;g(274,22,{3:1,35:1,22:1,274:1},d5);var Wq,lfe,afe,Mx,hfe,dfe,bfe=zn(Fc,"FixedAlignment",274,Xn,jvn,f0n),mJe;g(275,22,{3:1,35:1,22:1,275:1},b5);var wfe,gfe,pfe,mfe,Oy,vfe,yfe=zn(Fc,"GraphCompactionStrategy",275,Xn,kvn,l0n),vJe;g(256,22,{3:1,35:1,22:1,256:1},$b);var i4,Sx,r4,so,Dy,Px,c4,kp,Ax,$y,Xq=zn(Fc,"GraphProperties",256,Xn,f4n,a0n),yJe;g(292,22,{3:1,35:1,22:1,292:1},UD);var dj,Yq,Qq,Jq=zn(Fc,"GreedySwitchType",292,Xn,s2n,h0n),kJe;g(303,22,{3:1,35:1,22:1,303:1},WD);var sm,bj,jp,jJe=zn(Fc,"InLayerConstraint",303,Xn,u2n,d0n),EJe;g(420,22,{3:1,35:1,22:1,420:1},fW);var Zq,kfe,jfe=zn(Fc,"InteractiveReferencePoint",420,Xn,apn,b0n),TJe,Efe,om,ib,xx,Tfe,Cfe,Ix,Mfe,wj,Ox,Ly,fm,Fw,eH,Dx,Tc,Sfe,rb,Jc,nH,tH,gj,Md,cb,lm,Pfe,am,pj,Nw,Mf,Po,iH,Ep,_c,Et,Afe,xfe,Ife,Ofe,Dfe,rH,$x,Qu,ub,cH,hm,mj,Qf,Tp,u4,Cp,Mp,s4,Sd,$fe,uH,sH,dm;g(163,22,{3:1,35:1,22:1,163:1},v8);var Fy,b1,Ny,_w,vj,Lfe=zn(Fc,"LayerConstraint",163,Xn,Xmn,w0n),CJe;g(848,1,ko,A6e),s.Qe=function(n){Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Wie),""),"Direction Congruency"),"Specifies how drawings of the same graph with different layout directions compare to each other: either a natural reading direction is preserved or the drawings are rotated versions of each other."),Gfe),(rh(),ni)),ufe),_e((yf(),an))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Xie),""),"Feedback Edges"),"Whether feedback edges should be highlighted by routing around the nodes."),(cn(),!1)),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,NP),""),"Interactive Reference Point"),"Determines which point of a node is considered by interactive layout phases."),Qfe),ni),jfe),_e(an)))),qi(n,NP,sR,gZe),qi(n,NP,ty,wZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Yie),""),"Merge Edges"),"Edges that have no ports are merged so they touch the connected nodes at the same points. When this option is disabled, one port is created for each edge directly connected to a node. When it is enabled, all such incoming edges share an input port, and all outgoing edges share an output port."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Qie),""),"Merge Hierarchy-Crossing Edges"),"If hierarchical layout is active, hierarchy-crossing edges use as few hierarchical ports as possible. They are broken by the algorithm, with hierarchical ports inserted as required. Usually, one such port is created for each edge at each hierarchy crossing point. With this option set to true, we try to create as few hierarchical ports as possible in the process. In particular, all edges that form a hyperedge can share a port."),!0),ur),Ti),_e(an)))),Ne(n,new Pe(kan(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Jie),""),"Allow Non-Flow Ports To Switch Sides"),"Specifies whether non-flow ports may switch sides if their node's port constraints are either FIXED_SIDE or FIXED_ORDER. A non-flow port is a port on a side that is not part of the currently configured layout flow. For instance, given a left-to-right layout direction, north and south ports would be considered non-flow ports. Further note that the underlying criterium whether to switch sides or not solely relies on the minimization of edge crossings. Hence, edge length and other aesthetics criteria are not addressed."),!1),ur),Ti),_e(Dd)),D(O(ge,1),ie,2,6,["org.eclipse.elk.layered.northOrSouthPort"])))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Zie),""),"Port Sorting Strategy"),"Only relevant for nodes with FIXED_SIDE port constraints. Determines the way a node's ports are distributed on the sides of a node if their order is not prescribed. The option is set on parent nodes."),cle),ni),dae),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ere),""),"Thoroughness"),"How much effort should be spent to produce a nice layout."),le(7)),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,nre),""),"Add Unnecessary Bendpoints"),"Adds bend points even if an edge does not change direction. If true, each long edge dummy will contribute a bend point to its edges and hierarchy-crossing edges will always get a bend point where they cross hierarchy boundaries. By default, bend points are only added where an edge changes direction."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,tre),""),"Generate Position and Layer IDs"),"If enabled position id and layer id are generated, which are usually only used internally when setting the interactiveLayout option. This option should be specified on the root node."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,sR),"cycleBreaking"),"Cycle Breaking Strategy"),"Strategy for cycle breaking. Cycle breaking looks for cycles in the graph and determines which edges to reverse to break the cycles. Reversed edges will end up pointing to the opposite direction of regular edges (that is, reversed edges will point left if edges usually point right)."),Vfe),ni),rfe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,_k),IR),"Node Layering Strategy"),"Strategy for node layering."),ele),ni),nae),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ire),IR),"Layer Constraint"),"Determines a constraint on the placement of the node regarding the layering."),Jfe),ni),Lfe),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,rre),IR),"Layer Choice Constraint"),"Allows to set a constraint regarding the layer placement of a node. Let i be the value of teh constraint. Assumed the drawing has n layers and i < n. If set to i, it expresses that the node should be placed in i-th layer. Should i>=n be true then the node is placed in the last layer of the drawing. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),le(-1)),Ic),br),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,cre),IR),"Layer ID"),"Layer identifier that was calculated by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),le(-1)),Ic),br),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,oR),wze),"Upper Bound On Width [MinWidth Layerer]"),"Defines a loose upper bound on the width of the MinWidth layerer. If set to '-1' multiple values are tested and the best result is selected."),le(4)),Ic),br),_e(an)))),qi(n,oR,_k,EZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,fR),wze),"Upper Layer Estimation Scaling Factor [MinWidth Layerer]"),"Multiplied with Upper Bound On Width for defining an upper bound on the width of layers which haven't been determined yet, but whose maximum width had been (roughly) estimated by the MinWidth algorithm. Compensates for too high estimations. If set to '-1' multiple values are tested and the best result is selected."),le(2)),Ic),br),_e(an)))),qi(n,fR,_k,CZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,lR),gze),"Node Promotion Strategy"),"Reduces number of dummy nodes after layering phase (if possible)."),Zfe),ni),lae),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,aR),gze),"Max Node Promotion Iterations"),"Limits the number of iterations for node promotion."),le(0)),Ic),br),_e(an)))),qi(n,aR,lR,null),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,hR),"layering.coffmanGraham"),"Layer Bound"),"The maximum number of nodes allowed per layer."),le(vt)),Ic),br),_e(an)))),qi(n,hR,_k,mZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ty),Bk),"Crossing Minimization Strategy"),"Strategy for crossing minimization."),Hfe),ni),efe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ure),Bk),"Force Node Model Order"),"The node order given by the model does not change to produce a better layout. E.g. if node A is before node B in the model this is not changed during crossing minimization. This assumes that the node model order is already respected before crossing minimization. This can be achieved by setting considerModelOrder.strategy to NODES_AND_EDGES."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,dR),Bk),"Hierarchical Sweepiness"),"How likely it is to use cross-hierarchy (1) vs bottom-up (-1)."),.1),Zr),Vi),_e(an)))),qi(n,dR,YP,VJe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,bR),Bk),"Semi-Interactive Crossing Minimization"),"Preserves the order of nodes within a layer but still minimizes crossings between edges connecting long edge dummies. Derives the desired order from positions specified by the 'org.eclipse.elk.position' layout option. Requires a crossing minimization strategy that is able to process 'in-layer' constraints."),!1),ur),Ti),_e(an)))),qi(n,bR,ty,WJe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,sre),Bk),"Position Choice Constraint"),"Allows to set a constraint regarding the position placement of a node in a layer. Assumed the layer in which the node placed includes n other nodes and i < n. If set to i, it expresses that the node should be placed at the i-th position. Should i>=n be true then the node is placed at the last position in the layer. Note that this option is not part of any of ELK Layered's default configurations but is only evaluated as part of the `InteractiveLayeredGraphVisitor`, which must be applied manually or used via the `DiagramLayoutEngine."),le(-1)),Ic),br),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ore),Bk),"Position ID"),"Position within a layer that was determined by ELK Layered for a node. This is only generated if interactiveLayot or generatePositionAndLayerIds is set."),le(-1)),Ic),br),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,fre),pze),"Greedy Switch Activation Threshold"),"By default it is decided automatically if the greedy switch is activated or not. The decision is based on whether the size of the input graph (without dummy nodes) is smaller than the value of this option. A '0' enforces the activation."),le(40)),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,wR),pze),"Greedy Switch Crossing Minimization"),"Greedy Switch strategy for crossing minimization. The greedy switch heuristic is executed after the regular crossing minimization as a post-processor. Note that if 'hierarchyHandling' is set to 'INCLUDE_CHILDREN', the 'greedySwitchHierarchical.type' option must be used."),qfe),ni),Jq),_e(an)))),qi(n,wR,ty,qJe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,_P),"crossingMinimization.greedySwitchHierarchical"),"Greedy Switch Crossing Minimization (hierarchical)"),"Activates the greedy switch heuristic in case hierarchical layout is used. The differences to the non-hierarchical case (see 'greedySwitch.type') are: 1) greedy switch is inactive by default, 3) only the option value set on the node at which hierarchical layout starts is relevant, and 2) if it's activated by the user, it properly addresses hierarchy-crossing edges."),Kfe),ni),Jq),_e(an)))),qi(n,_P,ty,BJe),qi(n,_P,YP,RJe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,up),mze),"Node Placement Strategy"),"Strategy for node placement."),rle),ni),cae),_e(an)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,BP),mze),"Favor Straight Edges Over Balancing"),"Favor straight edges over a balanced node placement. The default behavior is determined automatically based on the used 'edgeRouting'. For an orthogonal style it is set to true, for all other styles to false."),ur),Ti),_e(an)))),qi(n,BP,up,FZe),qi(n,BP,up,NZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,gR),vze),"BK Edge Straightening"),"Specifies whether the Brandes Koepf node placer tries to increase the number of straight edges at the expense of diagram size. There is a subtle difference to the 'favorStraightEdges' option, which decides whether a balanced placement of the nodes is desired, or not. In bk terms this means combining the four alignments into a single balanced one, or not. This option on the other hand tries to straighten additional edges during the creation of each of the four alignments."),nle),ni),ffe),_e(an)))),qi(n,gR,up,OZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,pR),vze),"BK Fixed Alignment"),"Tells the BK node placer to use a certain alignment (out of its four) instead of the one producing the smallest height, or the combination of all four."),tle),ni),bfe),_e(an)))),qi(n,pR,up,$Ze),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,mR),"nodePlacement.linearSegments"),"Linear Segments Deflection Dampening"),"Dampens the movement of nodes to keep the diagram from getting too large."),.3),Zr),Vi),_e(an)))),qi(n,mR,up,BZe),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,vR),"nodePlacement.networkSimplex"),"Node Flexibility"),"Aims at shorter and straighter edges. Two configurations are possible: (a) allow ports to move freely on the side they are assigned to (the order is always defined beforehand), (b) additionally allow to enlarge a node wherever it helps. If this option is not configured for a node, the 'nodeFlexibility.default' value is used, which is specified for the node's parent."),ni),xH),_e(Li)))),qi(n,vR,up,HZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,yR),"nodePlacement.networkSimplex.nodeFlexibility"),"Node Flexibility Default"),"Default value of the 'nodeFlexibility' option for the children of a hierarchical node."),ile),ni),xH),_e(an)))),qi(n,yR,up,qZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,lre),yze),"Self-Loop Distribution"),"Alter the distribution of the loops around the node. It only takes effect for PortConstraints.FREE."),Wfe),ni),gae),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,are),yze),"Self-Loop Ordering"),"Alter the ordering of the loops they can either be stacked or sequenced. It only takes effect for PortConstraints.FREE."),Xfe),ni),pae),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,RP),"edgeRouting.splines"),"Spline Routing Mode"),"Specifies the way control points are assembled for each individual edge. CONSERVATIVE ensures that edges are properly routed around the nodes but feels rather orthogonal at times. SLOPPY uses fewer control points to obtain curvier edge routes but may result in edges overlapping nodes."),Yfe),ni),vae),_e(an)))),qi(n,RP,Rk,cZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,KP),"edgeRouting.splines.sloppy"),"Sloppy Spline Layer Spacing Factor"),"Spacing factor for routing area between layers when using sloppy spline routing."),.2),Zr),Vi),_e(an)))),qi(n,KP,Rk,sZe),qi(n,KP,RP,oZe),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,kR),"edgeRouting.polyline"),"Sloped Edge Zone Width"),"Width of the strip to the left and to the right of each layer where the polyline edge router is allowed to refrain from ensuring that edges are routed horizontally. This prevents awkward bend points for nodes that extent almost to the edge of their layer."),2),Zr),Vi),_e(an)))),qi(n,kR,Rk,nZe),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,hre),Uf),"Spacing Base Value"),"An optional base value for all other layout options of the 'spacing' group. It can be used to conveniently alter the overall 'spaciousness' of the drawing. Whenever an explicit value is set for the other layout options, this base value will have no effect. The base value is not inherited, i.e. it must be set for each hierarchical node."),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,dre),Uf),"Edge Node Between Layers Spacing"),"The spacing to be preserved between nodes and edges that are routed next to the node's layer. For the spacing between nodes and edges that cross the node's layer 'spacing.edgeNode' is used."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,bre),Uf),"Edge Edge Between Layer Spacing"),"Spacing to be preserved between pairs of edges that are routed between the same pair of layers. Note that 'spacing.edgeEdge' is used for the spacing between pairs of edges crossing the same layer."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,wre),Uf),"Node Node Between Layers Spacing"),"The spacing to be preserved between any pair of nodes of two adjacent layers. Note that 'spacing.nodeNode' is used for the spacing between nodes within the layer itself."),20),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,gre),Cre),"Direction Priority"),"Defines how important it is to have a certain edge point into the direction of the overall layout. This option is evaluated during the cycle breaking phase."),le(0)),Ic),br),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,pre),Cre),"Shortness Priority"),"Defines how important it is to keep an edge as short as possible. This option is evaluated during the layering phase."),le(0)),Ic),br),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,mre),Cre),"Straightness Priority"),"Defines how important it is to keep an edge straight, i.e. aligned with one of the two axes. This option is evaluated during node placement."),le(0)),Ic),br),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,jR),Mre),FGe),"Tries to further compact components (disconnected sub-graphs)."),!1),ur),Ti),_e(an)))),qi(n,jR,Q6,!0),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,vre),kze),"Post Compaction Strategy"),jze),Nfe),ni),yfe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,yre),kze),"Post Compaction Constraint Calculation"),jze),Ffe),ni),Joe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,qP),Sre),"High Degree Node Treatment"),"Makes room around high degree nodes to place leafs and trees."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ER),Sre),"High Degree Node Threshold"),"Whether a node is considered to have a high degree."),le(16)),Ic),br),_e(an)))),qi(n,ER,qP,!0),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,TR),Sre),"High Degree Node Maximum Tree Height"),"Maximum height of a subtree connected to a high degree node to be moved to separate layers."),le(5)),Ic),br),_e(an)))),qi(n,TR,qP,!0),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,xa),Pre),"Graph Wrapping Strategy"),"For certain graphs and certain prescribed drawing areas it may be desirable to split the laid out graph into chunks that are placed side by side. The edges that connect different chunks are 'wrapped' around from the end of one chunk to the start of the other chunk. The points between the chunks are referred to as 'cuts'."),ole),ni),Eae),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,HP),Pre),"Additional Wrapped Edges Spacing"),"To visually separate edges that are wrapped from regularly routed edges an additional spacing value can be specified in form of this layout option. The spacing is added to the regular edgeNode spacing."),10),Zr),Vi),_e(an)))),qi(n,HP,xa,ten),qi(n,HP,xa,ien),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,VP),Pre),"Correction Factor for Wrapping"),"At times and for certain types of graphs the executed wrapping may produce results that are consistently biased in the same fashion: either wrapping to often or to rarely. This factor can be used to correct the bias. Internally, it is simply multiplied with the 'aspect ratio' layout option."),1),Zr),Vi),_e(an)))),qi(n,VP,xa,cen),qi(n,VP,xa,uen),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,iy),Eze),"Cutting Strategy"),"The strategy by which the layer indexes are determined at which the layering crumbles into chunks."),sle),ni),tfe),_e(an)))),qi(n,iy,xa,hen),qi(n,iy,xa,den),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,CR),Eze),"Manually Specified Cuts"),"Allows the user to specify her own cuts for a certain graph."),Zf),uo),_e(an)))),qi(n,CR,iy,oen),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,MR),"wrapping.cutting.msd"),"MSD Freedom"),"The MSD cutting strategy starts with an initial guess on the number of chunks the graph should be split into. The freedom specifies how much the strategy may deviate from this guess. E.g. if an initial number of 3 is computed, a freedom of 1 allows 2, 3, and 4 cuts."),ule),Ic),br),_e(an)))),qi(n,MR,iy,len),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,GP),Tze),"Validification Strategy"),"When wrapping graphs, one can specify indices that are not allowed as split points. The validification strategy makes sure every computed split point is allowed."),fle),ni),jae),_e(an)))),qi(n,GP,xa,Cen),qi(n,GP,xa,Men),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,zP),Tze),"Valid Indices for Wrapping"),null),Zf),uo),_e(an)))),qi(n,zP,xa,jen),qi(n,zP,xa,Een),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,UP),Are),"Improve Cuts"),"For general graphs it is important that not too many edges wrap backwards. Thus a compromise between evenly-distributed cuts and the total number of cut edges is sought."),!0),ur),Ti),_e(an)))),qi(n,UP,xa,pen),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,WP),Are),"Distance Penalty When Improving Cuts"),null),2),Zr),Vi),_e(an)))),qi(n,WP,xa,wen),qi(n,WP,UP,!0),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,SR),Are),"Improve Wrapped Edges"),"The initial wrapping is performed in a very simple way. As a consequence, edges that wrap from one chunk to another may be unnecessarily long. Activating this option tries to shorten such edges."),!0),ur),Ti),_e(an)))),qi(n,SR,xa,ven),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,kre),OR),"Edge Label Side Selection"),"Method to decide on edge label sides."),Ufe),ni),sfe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,jre),OR),"Edge Center Label Placement Strategy"),"Determines in which layer center labels of long edges should be placed."),zfe),ni),n4),Ft(an,D(O(gh,1),ce,175,0,[wh]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,XP),Kk),"Consider Model Order"),"Preserves the order of nodes and edges in the model file if this does not lead to additional edge crossings. Depending on the strategy this is not always possible since the node and edge order might be conflicting."),Rfe),ni),hae),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Ere),Kk),"No Model Order"),"Set on a node to not set a model order for this node even though it is a real node."),!1),ur),Ti),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,PR),Kk),"Consider Model Order for Components"),"If set to NONE the usual ordering strategy (by cumulative node priority and size of nodes) is used. INSIDE_PORT_SIDES orders the components with external ports only inside the groups with the same port side. FORCE_MODEL_ORDER enforces the mode order on components. This option might produce bad alignments and sub optimal drawings in terms of used area since the ordering should be respected."),_fe),ni),roe),_e(an)))),qi(n,PR,Q6,null),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Tre),Kk),"Long Edge Ordering Strategy"),"Indicates whether long edges are sorted under, over, or equal to nodes that have no connection to a previous layer in a left-to-right or right-to-left layout. Under and over changes to right and left in a vertical layout."),Bfe),ni),iae),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,AR),Kk),"Crossing Counter Node Order Influence"),"Indicates with what percentage (1 for 100%) violations of the node model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal node order. Defaults to no influence (0)."),0),Zr),Vi),_e(an)))),qi(n,AR,XP,null),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,xR),Kk),"Crossing Counter Port Order Influence"),"Indicates with what percentage (1 for 100%) violations of the port model order are weighted against the crossings e.g. a value of 0.5 means two model order violations are as important as on edge crossing. This allows some edge crossings in favor of preserving the model order. It is advised to set this value to a very small positive value (e.g. 0.001) to have minimal crossing and a optimal port order. Defaults to no influence (0)."),0),Zr),Vi),_e(an)))),qi(n,xR,XP,null),KVe((new O6e,n))};var MJe,SJe,PJe,Ffe,AJe,Nfe,xJe,_fe,IJe,OJe,DJe,Bfe,$Je,LJe,Rfe,FJe,NJe,_Je,Kfe,BJe,RJe,KJe,qfe,qJe,HJe,VJe,GJe,zJe,UJe,WJe,XJe,Hfe,YJe,Vfe,QJe,Gfe,JJe,zfe,ZJe,Ufe,eZe,nZe,tZe,Wfe,iZe,Xfe,rZe,Yfe,cZe,uZe,sZe,oZe,fZe,lZe,aZe,hZe,dZe,bZe,Qfe,wZe,gZe,pZe,mZe,vZe,yZe,Jfe,kZe,jZe,EZe,TZe,CZe,MZe,SZe,Zfe,PZe,ele,AZe,xZe,IZe,nle,OZe,DZe,tle,$Ze,LZe,FZe,NZe,_Ze,BZe,RZe,KZe,ile,qZe,HZe,VZe,rle,GZe,cle,zZe,UZe,WZe,XZe,YZe,QZe,JZe,ZZe,een,nen,ten,ien,ren,cen,uen,sen,oen,fen,ule,len,aen,sle,hen,den,ben,wen,gen,pen,men,ven,yen,ole,ken,jen,Een,Ten,fle,Cen,Men;p(Fc,"LayeredMetaDataProvider",848),g(986,1,ko,O6e),s.Qe=function(n){KVe(n)};var Il,oH,Lx,_y,Fx,lle,Nx,bm,_x,ale,hle,fH,w1,lH,Bw,dle,yj,aH,ble,Sen,Bx,hH,By,Rw,Pen,Bs,wle,gle,Rx,dH,Ol,Kx,Ia,ple,mle,vle,bH,wH,yle,ah,gH,kle,Kw,jle,Ele,Tle,qx,qw,Pd,Cle,Mle,Ur,Sle,Aen,bu,Hx,Ple,Ale,xle,pH,Ile,Vx,Ole,Dle,Gx,sb,$le,mH,Ry,Lle,ob,Ky,zx,Ad,vH,o4,Ux,xd,Fle,Nle,_le,f4,Ble,xen,Ien,Oen,Den,fb,Hw,ei,hh,$en,Vw,Rle,l4,Kle,Gw,Len,a4,qle,wm,Fen,Nen,kj,yH,Hle,jj,rf,Sp,gm,lb,Id,Wx,zw,kH,h4,d4,ab,Pp,jH,Ej,qy,Hy,EH,Vle,Gle,zle,Ule,TH,Wle,Xle,Yle,Qle,CH,Xx;p(Fc,"LayeredOptions",986),g(987,1,{},Eme),s.$e=function(){var n;return n=new Q7e,n},s._e=function(n){},p(Fc,"LayeredOptions/LayeredFactory",987),g(1372,1,{}),s.a=0;var _en;p(Nc,"ElkSpacings/AbstractSpacingsBuilder",1372),g(779,1372,{},RZ);var Yx,Ben;p(Fc,"LayeredSpacings/LayeredSpacingsBuilder",779),g(313,22,{3:1,35:1,22:1,313:1,246:1,234:1},w5),s.Kf=function(){return yKe(this)},s.Xf=function(){return yKe(this)};var MH,Jle,Zle,Qx,SH,eae,nae=zn(Fc,"LayeringStrategy",313,Xn,Evn,g0n),Ren;g(378,22,{3:1,35:1,22:1,378:1},XD);var PH,tae,Jx,iae=zn(Fc,"LongEdgeOrderingStrategy",378,Xn,n2n,p0n),Ken;g(197,22,{3:1,35:1,22:1,197:1},$T);var Ap,xp,Zx,AH,xH=zn(Fc,"NodeFlexibility",197,Xn,omn,m0n),qen;g(315,22,{3:1,35:1,22:1,315:1,246:1,234:1},m8),s.Kf=function(){return rKe(this)},s.Xf=function(){return rKe(this)};var Vy,IH,OH,Gy,rae,cae=zn(Fc,"NodePlacementStrategy",315,Xn,Gmn,T0n),Hen;g(260,22,{3:1,35:1,22:1,260:1},r2);var uae,Tj,sae,oae,Cj,fae,eI,nI,lae=zn(Fc,"NodePromotionStrategy",260,Xn,j3n,y0n),Ven;g(339,22,{3:1,35:1,22:1,339:1},YD);var aae,g1,DH,hae=zn(Fc,"OrderingStrategy",339,Xn,f2n,k0n),Gen;g(421,22,{3:1,35:1,22:1,421:1},lW);var $H,LH,dae=zn(Fc,"PortSortingStrategy",421,Xn,hpn,j0n),zen;g(452,22,{3:1,35:1,22:1,452:1},QD);var Ju,ou,zy,Uen=zn(Fc,"PortType",452,Xn,o2n,v0n),Wen;g(375,22,{3:1,35:1,22:1,375:1},JD);var bae,FH,wae,gae=zn(Fc,"SelfLoopDistributionStrategy",375,Xn,l2n,E0n),Xen;g(376,22,{3:1,35:1,22:1,376:1},aW);var Mj,NH,pae=zn(Fc,"SelfLoopOrderingStrategy",376,Xn,spn,C0n),Yen;g(304,1,{304:1},HHe),p(Fc,"Spacings",304),g(336,22,{3:1,35:1,22:1,336:1},ZD);var _H,mae,Uy,vae=zn(Fc,"SplineRoutingMode",336,Xn,h2n,M0n),Qen;g(338,22,{3:1,35:1,22:1,338:1},e$);var BH,yae,kae,jae=zn(Fc,"ValidifyStrategy",338,Xn,d2n,S0n),Jen;g(377,22,{3:1,35:1,22:1,377:1},n$);var Uw,RH,b4,Eae=zn(Fc,"WrappingStrategy",377,Xn,a2n,P0n),Zen;g(1383,1,Xc,D6e),s.Yf=function(n){return u(n,37),enn},s.pf=function(n,t){ixn(this,u(n,37),t)};var enn;p(ZP,"DepthFirstCycleBreaker",1383),g(782,1,Xc,TY),s.Yf=function(n){return u(n,37),nnn},s.pf=function(n,t){nDn(this,u(n,37),t)},s.Zf=function(n){return u(ve(n,xS(this.d,n.c.length)),10)};var nnn;p(ZP,"GreedyCycleBreaker",782),g(1386,782,Xc,xTe),s.Zf=function(n){var t,i,r,c;for(c=null,t=vt,r=new A(n);r.a1&&(ke(ye(M(ar((Qe(0,n.c.length),u(n.c[0],10))),(be(),Bw))))?bKe(n,this.d,u(this,660)):(He(),Oi(n,this.d)),$Le(this.e,n))},s.Sf=function(n,t,i,r){var c,o,f,l,a,h,w;for(t!=cPe(i,n.length)&&(o=n[t-(i?1:-1)],XQ(this.f,o,i?(Pr(),ou):(Pr(),Ju))),c=n[t][0],w=!r||c.k==(dn(),fi),h=Nf(n[t]),this.ag(h,w,!1,i),f=0,a=new A(h);a.a"),n0?LL(this.a,n[t-1],n[t]):!i&&t1&&(ke(ye(M(ar((Qe(0,n.c.length),u(n.c[0],10))),(be(),Bw))))?bKe(n,this.d,this):(He(),Oi(n,this.d)),ke(ye(M(ar((Qe(0,n.c.length),u(n.c[0],10))),Bw)))||$Le(this.e,n))},p(Hu,"ModelOrderBarycenterHeuristic",660),g(1803,1,xt,b8e),s.ue=function(n,t){return pjn(this.a,u(n,10),u(t,10))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Hu,"ModelOrderBarycenterHeuristic/lambda$0$Type",1803),g(1403,1,Xc,K6e),s.Yf=function(n){var t;return u(n,37),t=UT(bnn),mt(t,(mr(),du),(Mr(),lx)),t},s.pf=function(n,t){tpn((u(n,37),t))};var bnn;p(Hu,"NoCrossingMinimizer",1403),g(796,402,ace,$U),s.$f=function(n,t,i){var r,c,o,f,l,a,h,w,k,j,T;switch(k=this.g,i.g){case 1:{for(c=0,o=0,w=new A(n.j);w.a1&&(c.j==(ae(),hn)?this.b[n]=!0:c.j==un&&n>0&&(this.b[n-1]=!0))},s.f=0,p(Ql,"AllCrossingsCounter",1798),g(587,1,{},zM),s.b=0,s.d=0,p(Ql,"BinaryIndexedTree",587),g(524,1,{},N8);var Mae,iI;p(Ql,"CrossingsCounter",524),g(1906,1,xt,w8e),s.ue=function(n,t){return cwn(this.a,u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Ql,"CrossingsCounter/lambda$0$Type",1906),g(1907,1,xt,g8e),s.ue=function(n,t){return uwn(this.a,u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Ql,"CrossingsCounter/lambda$1$Type",1907),g(1908,1,xt,p8e),s.ue=function(n,t){return swn(this.a,u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Ql,"CrossingsCounter/lambda$2$Type",1908),g(1909,1,xt,m8e),s.ue=function(n,t){return own(this.a,u(n,11),u(t,11))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Ql,"CrossingsCounter/lambda$3$Type",1909),g(1910,1,gn,v8e),s.td=function(n){Hvn(this.a,u(n,11))},p(Ql,"CrossingsCounter/lambda$4$Type",1910),g(1911,1,dt,y8e),s.Mb=function(n){return ihn(this.a,u(n,11))},p(Ql,"CrossingsCounter/lambda$5$Type",1911),g(1912,1,gn,k8e),s.td=function(n){MTe(this,n)},p(Ql,"CrossingsCounter/lambda$6$Type",1912),g(1913,1,gn,JEe),s.td=function(n){var t;sv(),Vh(this.b,(t=this.a,u(n,11),t))},p(Ql,"CrossingsCounter/lambda$7$Type",1913),g(826,1,yl,cz),s.Lb=function(n){return sv(),Ai(u(n,11),(re(),Qu))},s.Fb=function(n){return this===n},s.Mb=function(n){return sv(),Ai(u(n,11),(re(),Qu))},p(Ql,"CrossingsCounter/lambda$8$Type",826),g(1905,1,{},j8e),p(Ql,"HyperedgeCrossingsCounter",1905),g(467,1,{35:1,467:1},qMe),s.wd=function(n){return Ryn(this,u(n,467))},s.b=0,s.c=0,s.e=0,s.f=0;var FDn=p(Ql,"HyperedgeCrossingsCounter/Hyperedge",467);g(362,1,{35:1,362:1},VC),s.wd=function(n){return _Tn(this,u(n,362))},s.b=0,s.c=0;var wnn=p(Ql,"HyperedgeCrossingsCounter/HyperedgeCorner",362);g(523,22,{3:1,35:1,22:1,523:1},hW);var Xy,Yy,gnn=zn(Ql,"HyperedgeCrossingsCounter/HyperedgeCorner/Type",523,Xn,dpn,x0n),pnn;g(1405,1,Xc,I6e),s.Yf=function(n){return u(M(u(n,37),(re(),Jc)),21).Hc((xr(),so))?mnn:null},s.pf=function(n,t){c7n(this,u(n,37),t)};var mnn;p(Or,"InteractiveNodePlacer",1405),g(1406,1,Xc,x6e),s.Yf=function(n){return u(M(u(n,37),(re(),Jc)),21).Hc((xr(),so))?vnn:null},s.pf=function(n,t){H9n(this,u(n,37),t)};var vnn,rI,cI;p(Or,"LinearSegmentsNodePlacer",1406),g(257,1,{35:1,257:1},lU),s.wd=function(n){return wan(this,u(n,257))},s.Fb=function(n){var t;return _(n,257)?(t=u(n,257),this.b==t.b):!1},s.Hb=function(){return this.b},s.Ib=function(){return"ls"+Zh(this.e)},s.a=0,s.b=0,s.c=-1,s.d=-1,s.g=0;var ynn=p(Or,"LinearSegmentsNodePlacer/LinearSegment",257);g(1408,1,Xc,wPe),s.Yf=function(n){return u(M(u(n,37),(re(),Jc)),21).Hc((xr(),so))?knn:null},s.pf=function(n,t){UOn(this,u(n,37),t)},s.b=0,s.g=0;var knn;p(Or,"NetworkSimplexPlacer",1408),g(1427,1,xt,xme),s.ue=function(n,t){return mu(u(n,19).a,u(t,19).a)},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Or,"NetworkSimplexPlacer/0methodref$compare$Type",1427),g(1429,1,xt,Ime),s.ue=function(n,t){return mu(u(n,19).a,u(t,19).a)},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Or,"NetworkSimplexPlacer/1methodref$compare$Type",1429),g(649,1,{649:1},ZEe);var NDn=p(Or,"NetworkSimplexPlacer/EdgeRep",649);g(401,1,{401:1},tQ),s.b=!1;var _Dn=p(Or,"NetworkSimplexPlacer/NodeRep",401);g(508,12,{3:1,4:1,20:1,28:1,52:1,12:1,14:1,15:1,54:1,508:1},oke),p(Or,"NetworkSimplexPlacer/Path",508),g(1409,1,{},Ome),s.Kb=function(n){return u(n,17).d.i.k},p(Or,"NetworkSimplexPlacer/Path/lambda$0$Type",1409),g(1410,1,dt,Dme),s.Mb=function(n){return u(n,267)==(dn(),$i)},p(Or,"NetworkSimplexPlacer/Path/lambda$1$Type",1410),g(1411,1,{},$me),s.Kb=function(n){return u(n,17).d.i},p(Or,"NetworkSimplexPlacer/Path/lambda$2$Type",1411),g(1412,1,dt,E8e),s.Mb=function(n){return MMe(aNe(u(n,10)))},p(Or,"NetworkSimplexPlacer/Path/lambda$3$Type",1412),g(1413,1,dt,Lme),s.Mb=function(n){return Wbn(u(n,11))},p(Or,"NetworkSimplexPlacer/lambda$0$Type",1413),g(1414,1,gn,eTe),s.td=function(n){Ghn(this.a,this.b,u(n,11))},p(Or,"NetworkSimplexPlacer/lambda$1$Type",1414),g(1423,1,gn,T8e),s.td=function(n){aEn(this.a,u(n,17))},p(Or,"NetworkSimplexPlacer/lambda$10$Type",1423),g(1424,1,{},Fme),s.Kb=function(n){return Ss(),new We(null,new Ye(u(n,29).a,16))},p(Or,"NetworkSimplexPlacer/lambda$11$Type",1424),g(1425,1,gn,C8e),s.td=function(n){sSn(this.a,u(n,10))},p(Or,"NetworkSimplexPlacer/lambda$12$Type",1425),g(1426,1,{},Nme),s.Kb=function(n){return Ss(),le(u(n,121).e)},p(Or,"NetworkSimplexPlacer/lambda$13$Type",1426),g(1428,1,{},_me),s.Kb=function(n){return Ss(),le(u(n,121).e)},p(Or,"NetworkSimplexPlacer/lambda$15$Type",1428),g(1430,1,dt,Bme),s.Mb=function(n){return Ss(),u(n,401).c.k==(dn(),vi)},p(Or,"NetworkSimplexPlacer/lambda$17$Type",1430),g(1431,1,dt,Rme),s.Mb=function(n){return Ss(),u(n,401).c.j.c.length>1},p(Or,"NetworkSimplexPlacer/lambda$18$Type",1431),g(1432,1,gn,jAe),s.td=function(n){Q6n(this.c,this.b,this.d,this.a,u(n,401))},s.c=0,s.d=0,p(Or,"NetworkSimplexPlacer/lambda$19$Type",1432),g(1415,1,{},Kme),s.Kb=function(n){return Ss(),new We(null,new Ye(u(n,29).a,16))},p(Or,"NetworkSimplexPlacer/lambda$2$Type",1415),g(1433,1,gn,M8e),s.td=function(n){Hhn(this.a,u(n,11))},s.a=0,p(Or,"NetworkSimplexPlacer/lambda$20$Type",1433),g(1434,1,{},qme),s.Kb=function(n){return Ss(),new We(null,new Ye(u(n,29).a,16))},p(Or,"NetworkSimplexPlacer/lambda$21$Type",1434),g(1435,1,gn,S8e),s.td=function(n){r1n(this.a,u(n,10))},p(Or,"NetworkSimplexPlacer/lambda$22$Type",1435),g(1436,1,dt,Hme),s.Mb=function(n){return MMe(n)},p(Or,"NetworkSimplexPlacer/lambda$23$Type",1436),g(1437,1,{},Vme),s.Kb=function(n){return Ss(),new We(null,new Ye(u(n,29).a,16))},p(Or,"NetworkSimplexPlacer/lambda$24$Type",1437),g(1438,1,dt,P8e),s.Mb=function(n){return lhn(this.a,u(n,10))},p(Or,"NetworkSimplexPlacer/lambda$25$Type",1438),g(1439,1,gn,nTe),s.td=function(n){Djn(this.a,this.b,u(n,10))},p(Or,"NetworkSimplexPlacer/lambda$26$Type",1439),g(1440,1,dt,Gme),s.Mb=function(n){return Ss(),!gr(u(n,17))},p(Or,"NetworkSimplexPlacer/lambda$27$Type",1440),g(1441,1,dt,zme),s.Mb=function(n){return Ss(),!gr(u(n,17))},p(Or,"NetworkSimplexPlacer/lambda$28$Type",1441),g(1442,1,{},A8e),s.Ce=function(n,t){return n1n(this.a,u(n,29),u(t,29))},p(Or,"NetworkSimplexPlacer/lambda$29$Type",1442),g(1416,1,{},Ume),s.Kb=function(n){return Ss(),new We(null,new l0(new En(Cn(pi(u(n,10)).a.Kc(),new J))))},p(Or,"NetworkSimplexPlacer/lambda$3$Type",1416),g(1417,1,dt,Wme),s.Mb=function(n){return Ss(),q2n(u(n,17))},p(Or,"NetworkSimplexPlacer/lambda$4$Type",1417),g(1418,1,gn,x8e),s.td=function(n){uAn(this.a,u(n,17))},p(Or,"NetworkSimplexPlacer/lambda$5$Type",1418),g(1419,1,{},Xme),s.Kb=function(n){return Ss(),new We(null,new Ye(u(n,29).a,16))},p(Or,"NetworkSimplexPlacer/lambda$6$Type",1419),g(1420,1,dt,Yme),s.Mb=function(n){return Ss(),u(n,10).k==(dn(),vi)},p(Or,"NetworkSimplexPlacer/lambda$7$Type",1420),g(1421,1,{},Qme),s.Kb=function(n){return Ss(),new We(null,new l0(new En(Cn(ja(u(n,10)).a.Kc(),new J))))},p(Or,"NetworkSimplexPlacer/lambda$8$Type",1421),g(1422,1,dt,Jme),s.Mb=function(n){return Ss(),qbn(u(n,17))},p(Or,"NetworkSimplexPlacer/lambda$9$Type",1422),g(1404,1,Xc,U6e),s.Yf=function(n){return u(M(u(n,37),(re(),Jc)),21).Hc((xr(),so))?jnn:null},s.pf=function(n,t){KAn(u(n,37),t)};var jnn;p(Or,"SimpleNodePlacer",1404),g(180,1,{180:1},Qg),s.Ib=function(){var n;return n="",this.c==(wl(),hb)?n+=U2:this.c==dh&&(n+=z2),this.o==($f(),Od)?n+=KB:this.o==Jf?n+="UP":n+="BALANCED",n},p(s1,"BKAlignedLayout",180),g(516,22,{3:1,35:1,22:1,516:1},bW);var dh,hb,Enn=zn(s1,"BKAlignedLayout/HDirection",516,Xn,wpn,I0n),Tnn;g(515,22,{3:1,35:1,22:1,515:1},dW);var Od,Jf,Cnn=zn(s1,"BKAlignedLayout/VDirection",515,Xn,gpn,O0n),Mnn;g(1634,1,{},tTe),p(s1,"BKAligner",1634),g(1637,1,{},L_e),p(s1,"BKCompactor",1637),g(654,1,{654:1},Zme),s.a=0,p(s1,"BKCompactor/ClassEdge",654),g(458,1,{458:1},uke),s.a=null,s.b=0,p(s1,"BKCompactor/ClassNode",458),g(1407,1,Xc,PTe),s.Yf=function(n){return u(M(u(n,37),(re(),Jc)),21).Hc((xr(),so))?Snn:null},s.pf=function(n,t){oDn(this,u(n,37),t)},s.d=!1;var Snn;p(s1,"BKNodePlacer",1407),g(1635,1,{},eve),s.d=0,p(s1,"NeighborhoodInformation",1635),g(1636,1,xt,I8e),s.ue=function(n,t){return w3n(this,u(n,46),u(t,46))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(s1,"NeighborhoodInformation/NeighborComparator",1636),g(808,1,{}),p(s1,"ThresholdStrategy",808),g(1763,808,{},ake),s.bg=function(n,t,i){return this.a.o==($f(),Jf)?Jt:hi},s.cg=function(){},p(s1,"ThresholdStrategy/NullThresholdStrategy",1763),g(579,1,{579:1},iTe),s.c=!1,s.d=!1,p(s1,"ThresholdStrategy/Postprocessable",579),g(1764,808,{},hke),s.bg=function(n,t,i){var r,c,o;return c=t==i,r=this.a.a[i.p]==t,c||r?(o=n,this.a.c==(wl(),hb)?(c&&(o=K_(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=K_(this,i,!1))):(c&&(o=K_(this,t,!0)),!isNaN(o)&&!isFinite(o)&&r&&(o=K_(this,i,!1))),o):n},s.cg=function(){for(var n,t,i,r,c;this.d.b!=0;)c=u(Opn(this.d),579),r=tHe(this,c),r.a&&(n=r.a,i=ke(this.a.f[this.a.g[c.b.p].p]),!(!i&&!gr(n)&&n.c.i.c==n.d.i.c)&&(t=fKe(this,c),t||mhn(this.e,c)));for(;this.e.a.c.length!=0;)fKe(this,u(vFe(this.e),579))},p(s1,"ThresholdStrategy/SimpleThresholdStrategy",1764),g(635,1,{635:1,246:1,234:1},nve),s.Kf=function(){return ALe(this)},s.Xf=function(){return ALe(this)};var KH;p(NR,"EdgeRouterFactory",635),g(1458,1,Xc,W6e),s.Yf=function(n){return RMn(u(n,37))},s.pf=function(n,t){WAn(u(n,37),t)};var Pnn,Ann,xnn,Inn,Onn,Sae,Dnn,$nn;p(NR,"OrthogonalEdgeRouter",1458),g(1451,1,Xc,ATe),s.Yf=function(n){return l7n(u(n,37))},s.pf=function(n,t){bOn(this,u(n,37),t)};var Lnn,Fnn,Nnn,_nn,Pj,Bnn;p(NR,"PolylineEdgeRouter",1451),g(1452,1,yl,tve),s.Lb=function(n){return HJ(u(n,10))},s.Fb=function(n){return this===n},s.Mb=function(n){return HJ(u(n,10))},p(NR,"PolylineEdgeRouter/1",1452),g(1809,1,dt,ive),s.Mb=function(n){return u(n,129).c==(wf(),p1)},p(Ef,"HyperEdgeCycleDetector/lambda$0$Type",1809),g(1810,1,{},rve),s.Ge=function(n){return u(n,129).d},p(Ef,"HyperEdgeCycleDetector/lambda$1$Type",1810),g(1811,1,dt,cve),s.Mb=function(n){return u(n,129).c==(wf(),p1)},p(Ef,"HyperEdgeCycleDetector/lambda$2$Type",1811),g(1812,1,{},uve),s.Ge=function(n){return u(n,129).d},p(Ef,"HyperEdgeCycleDetector/lambda$3$Type",1812),g(1813,1,{},sve),s.Ge=function(n){return u(n,129).d},p(Ef,"HyperEdgeCycleDetector/lambda$4$Type",1813),g(1814,1,{},ove),s.Ge=function(n){return u(n,129).d},p(Ef,"HyperEdgeCycleDetector/lambda$5$Type",1814),g(112,1,{35:1,112:1},E7),s.wd=function(n){return gan(this,u(n,112))},s.Fb=function(n){var t;return _(n,112)?(t=u(n,112),this.g==t.g):!1},s.Hb=function(){return this.g},s.Ib=function(){var n,t,i,r;for(n=new Cs("{"),r=new A(this.n);r.a"+this.b+" ("+S1n(this.c)+")"},s.d=0,p(Ef,"HyperEdgeSegmentDependency",129),g(520,22,{3:1,35:1,22:1,520:1},wW);var p1,Ww,Rnn=zn(Ef,"HyperEdgeSegmentDependency/DependencyType",520,Xn,bpn,D0n),Knn;g(1815,1,{},O8e),p(Ef,"HyperEdgeSegmentSplitter",1815),g(1816,1,{},fje),s.a=0,s.b=0,p(Ef,"HyperEdgeSegmentSplitter/AreaRating",1816),g(329,1,{329:1},K$),s.a=0,s.b=0,s.c=0,p(Ef,"HyperEdgeSegmentSplitter/FreeArea",329),g(1817,1,xt,gve),s.ue=function(n,t){return Edn(u(n,112),u(t,112))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Ef,"HyperEdgeSegmentSplitter/lambda$0$Type",1817),g(1818,1,gn,EAe),s.td=function(n){Pmn(this.a,this.d,this.c,this.b,u(n,112))},s.b=0,p(Ef,"HyperEdgeSegmentSplitter/lambda$1$Type",1818),g(1819,1,{},pve),s.Kb=function(n){return new We(null,new Ye(u(n,112).e,16))},p(Ef,"HyperEdgeSegmentSplitter/lambda$2$Type",1819),g(1820,1,{},mve),s.Kb=function(n){return new We(null,new Ye(u(n,112).j,16))},p(Ef,"HyperEdgeSegmentSplitter/lambda$3$Type",1820),g(1821,1,{},vve),s.Fe=function(n){return ne(he(n))},p(Ef,"HyperEdgeSegmentSplitter/lambda$4$Type",1821),g(655,1,{},aL),s.a=0,s.b=0,s.c=0,p(Ef,"OrthogonalRoutingGenerator",655),g(1638,1,{},yve),s.Kb=function(n){return new We(null,new Ye(u(n,112).e,16))},p(Ef,"OrthogonalRoutingGenerator/lambda$0$Type",1638),g(1639,1,{},kve),s.Kb=function(n){return new We(null,new Ye(u(n,112).j,16))},p(Ef,"OrthogonalRoutingGenerator/lambda$1$Type",1639),g(661,1,{}),p(_R,"BaseRoutingDirectionStrategy",661),g(1807,661,{},dke),s.dg=function(n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x;if(!(n.r&&!n.q))for(w=t+n.o*i,h=new A(n.n);h.ajl&&(o=w,c=n,r=new je(k,o),ut(f.a,r),R0(this,f,c,r,!1),j=n.r,j&&(T=ne(he(kf(j.e,0))),r=new je(T,o),ut(f.a,r),R0(this,f,c,r,!1),o=t+j.o*i,c=j,r=new je(T,o),ut(f.a,r),R0(this,f,c,r,!1)),r=new je(x,o),ut(f.a,r),R0(this,f,c,r,!1)))},s.eg=function(n){return n.i.n.a+n.n.a+n.a.a},s.fg=function(){return ae(),On},s.gg=function(){return ae(),tn},p(_R,"NorthToSouthRoutingStrategy",1807),g(1808,661,{},bke),s.dg=function(n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x;if(!(n.r&&!n.q))for(w=t-n.o*i,h=new A(n.n);h.ajl&&(o=w,c=n,r=new je(k,o),ut(f.a,r),R0(this,f,c,r,!1),j=n.r,j&&(T=ne(he(kf(j.e,0))),r=new je(T,o),ut(f.a,r),R0(this,f,c,r,!1),o=t-j.o*i,c=j,r=new je(T,o),ut(f.a,r),R0(this,f,c,r,!1)),r=new je(x,o),ut(f.a,r),R0(this,f,c,r,!1)))},s.eg=function(n){return n.i.n.a+n.n.a+n.a.a},s.fg=function(){return ae(),tn},s.gg=function(){return ae(),On},p(_R,"SouthToNorthRoutingStrategy",1808),g(1806,661,{},wke),s.dg=function(n,t,i){var r,c,o,f,l,a,h,w,k,j,T,C,x;if(!(n.r&&!n.q))for(w=t+n.o*i,h=new A(n.n);h.ajl&&(o=w,c=n,r=new je(o,k),ut(f.a,r),R0(this,f,c,r,!0),j=n.r,j&&(T=ne(he(kf(j.e,0))),r=new je(o,T),ut(f.a,r),R0(this,f,c,r,!0),o=t+j.o*i,c=j,r=new je(o,T),ut(f.a,r),R0(this,f,c,r,!0)),r=new je(o,x),ut(f.a,r),R0(this,f,c,r,!0)))},s.eg=function(n){return n.i.n.b+n.n.b+n.a.b},s.fg=function(){return ae(),hn},s.gg=function(){return ae(),un},p(_R,"WestToEastRoutingStrategy",1806),g(813,1,{},Lte),s.Ib=function(){return Zh(this.a)},s.b=0,s.c=!1,s.d=!1,s.f=0,p(Mw,"NubSpline",813),g(407,1,{407:1},_Ke,ixe),p(Mw,"NubSpline/PolarCP",407),g(1453,1,Xc,S_e),s.Yf=function(n){return Z7n(u(n,37))},s.pf=function(n,t){DOn(this,u(n,37),t)};var qnn,Hnn,Vnn,Gnn,znn;p(Mw,"SplineEdgeRouter",1453),g(268,1,{268:1},gM),s.Ib=function(){return this.a+" ->("+this.c+") "+this.b},s.c=0,p(Mw,"SplineEdgeRouter/Dependency",268),g(455,22,{3:1,35:1,22:1,455:1},gW);var m1,Ip,Unn=zn(Mw,"SplineEdgeRouter/SideToProcess",455,Xn,ppn,$0n),Wnn;g(1454,1,dt,bve),s.Mb=function(n){return O6(),!u(n,128).o},p(Mw,"SplineEdgeRouter/lambda$0$Type",1454),g(1455,1,{},dve),s.Ge=function(n){return O6(),u(n,128).v+1},p(Mw,"SplineEdgeRouter/lambda$1$Type",1455),g(1456,1,gn,rTe),s.td=function(n){Vbn(this.a,this.b,u(n,46))},p(Mw,"SplineEdgeRouter/lambda$2$Type",1456),g(1457,1,gn,cTe),s.td=function(n){Gbn(this.a,this.b,u(n,46))},p(Mw,"SplineEdgeRouter/lambda$3$Type",1457),g(128,1,{35:1,128:1},nRe,Kte),s.wd=function(n){return pan(this,u(n,128))},s.b=0,s.e=!1,s.f=0,s.g=0,s.j=!1,s.k=!1,s.n=0,s.o=!1,s.p=!1,s.q=!1,s.s=0,s.u=0,s.v=0,s.F=0,p(Mw,"SplineSegment",128),g(459,1,{459:1},wve),s.a=0,s.b=!1,s.c=!1,s.d=!1,s.e=!1,s.f=0,p(Mw,"SplineSegment/EdgeInformation",459),g(1234,1,{},fve),p(ry,Fie,1234),g(1235,1,xt,lve),s.ue=function(n,t){return SEn(u(n,135),u(t,135))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(ry,BGe,1235),g(1233,1,{},Cje),p(ry,"MrTree",1233),g(393,22,{3:1,35:1,22:1,393:1,246:1,234:1},LT),s.Kf=function(){return MRe(this)},s.Xf=function(){return MRe(this)};var uI,Qy,Aj,Jy,Pae=zn(ry,"TreeLayoutPhases",393,Xn,fmn,L0n),Xnn;g(1130,209,gd,GMe),s.Ze=function(n,t){var i,r,c,o,f,l,a;for(ke(ye(Te(n,(B0(),$ae))))||JC((i=new e8((Db(),new Ab(n))),i)),f=(l=new pM,Yr(l,n),te(l,(Ac(),n9),n),a=new Ln,mPn(n,l,a),LPn(n,l,a),l),o=PPn(this.a,f),c=new A(o);c.a"+cM(this.c):"e_"+Bt(this)},p(cy,"TEdge",188),g(135,134,{3:1,135:1,94:1,134:1},pM),s.Ib=function(){var n,t,i,r,c;for(c=null,r=ct(this.b,0);r.b!=r.d.c;)i=u(rt(r),86),c+=(i.c==null||i.c.length==0?"n_"+i.g:"n_"+i.c)+` +`;for(t=ct(this.a,0);t.b!=t.d.c;)n=u(rt(t),188),c+=(n.b&&n.c?cM(n.b)+"->"+cM(n.c):"e_"+Bt(n))+` +`;return c};var BDn=p(cy,"TGraph",135);g(633,502,{3:1,502:1,633:1,94:1,134:1}),p(cy,"TShape",633),g(86,633,{3:1,502:1,86:1,633:1,94:1,134:1},KF),s.Ib=function(){return cM(this)};var RDn=p(cy,"TNode",86);g(255,1,zl,Sh),s.Jc=function(n){Yi(this,n)},s.Kc=function(){var n;return n=ct(this.a.d,0),new Xp(n)},p(cy,"TNode/2",255),g(358,1,Bi,Xp),s.Nb=function(n){Wi(this,n)},s.Pb=function(){return u(rt(this.a),188).c},s.Ob=function(){return aT(this.a)},s.Qb=function(){OM(this.a)},p(cy,"TNode/2/1",358),g(1840,1,Zt,VMe),s.pf=function(n,t){QPn(this,u(n,135),t)},p(em,"FanProcessor",1840),g(327,22,{3:1,35:1,22:1,327:1,234:1},g5),s.Kf=function(){switch(this.g){case 0:return new xke;case 1:return new VMe;case 2:return new Tve;case 3:return new jve;case 4:return new Mve;case 5:return new Sve;default:throw I(new rn(rR+(this.f!=null?this.f:""+this.g)))}};var qH,HH,VH,GH,zH,sI,Ynn=zn(em,Uie,327,Xn,Cvn,F0n),Qnn;g(1843,1,Zt,jve),s.pf=function(n,t){DTn(this,u(n,135),t)},s.a=0,p(em,"LevelHeightProcessor",1843),g(1844,1,zl,Eve),s.Jc=function(n){Yi(this,n)},s.Kc=function(){return He(),Ym(),G3},p(em,"LevelHeightProcessor/1",1844),g(1841,1,Zt,Tve),s.pf=function(n,t){Rjn(this,u(n,135),t)},s.a=0,p(em,"NeighborsProcessor",1841),g(1842,1,zl,Cve),s.Jc=function(n){Yi(this,n)},s.Kc=function(){return He(),Ym(),G3},p(em,"NeighborsProcessor/1",1842),g(1845,1,Zt,Mve),s.pf=function(n,t){OTn(this,u(n,135),t)},s.a=0,p(em,"NodePositionProcessor",1845),g(1839,1,Zt,xke),s.pf=function(n,t){rxn(this,u(n,135))},p(em,"RootProcessor",1839),g(1846,1,Zt,Sve),s.pf=function(n,t){d6n(u(n,135))},p(em,"Untreeifyer",1846);var xj,Zy,Jnn,UH,oI,e9,WH,fI,lI,w4,n9,aI,bh,Aae,Znn,XH,Xw,YH,xae;g(851,1,ko,z6e),s.Qe=function(n){Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,hce),""),"Weighting of Nodes"),"Which weighting to use when computing a node order."),Oae),(rh(),ni)),Bae),_e((yf(),an))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,dce),""),"Search Order"),"Which search order to use when computing a spanning tree."),Iae),ni),Kae),_e(an)))),JHe((new G6e,n))};var etn,Iae,ntn,Oae;p(nA,"MrTreeMetaDataProvider",851),g(994,1,ko,G6e),s.Qe=function(n){JHe(n)};var ttn,Dae,itn,rtn,ctn,utn,$ae,stn,Lae,otn,hI,Fae,ftn,Nae,ltn;p(nA,"MrTreeOptions",994),g(995,1,{},Pve),s.$e=function(){var n;return n=new GMe,n},s._e=function(n){},p(nA,"MrTreeOptions/MrtreeFactory",995),g(480,22,{3:1,35:1,22:1,480:1},pW);var QH,_ae,Bae=zn(nA,"OrderWeighting",480,Xn,vpn,N0n),atn;g(425,22,{3:1,35:1,22:1,425:1},mW);var Rae,JH,Kae=zn(nA,"TreeifyingOrder",425,Xn,mpn,B0n),htn;g(1459,1,Xc,F6e),s.Yf=function(n){return u(n,135),dtn},s.pf=function(n,t){h4n(this,u(n,135),t)};var dtn;p("org.eclipse.elk.alg.mrtree.p1treeify","DFSTreeifyer",1459),g(1460,1,Xc,N6e),s.Yf=function(n){return u(n,135),btn},s.pf=function(n,t){Yjn(this,u(n,135),t)};var btn;p("org.eclipse.elk.alg.mrtree.p2order","NodeOrderer",1460),g(1461,1,Xc,L6e),s.Yf=function(n){return u(n,135),wtn},s.pf=function(n,t){dSn(this,u(n,135),t)},s.a=0;var wtn;p("org.eclipse.elk.alg.mrtree.p3place","NodePlacer",1461),g(1462,1,Xc,_6e),s.Yf=function(n){return u(n,135),gtn},s.pf=function(n,t){B8n(u(n,135),t)};var gtn;p("org.eclipse.elk.alg.mrtree.p4route","EdgeRouter",1462);var t9;g(495,22,{3:1,35:1,22:1,495:1,246:1,234:1},vW),s.Kf=function(){return rNe(this)},s.Xf=function(){return rNe(this)};var dI,g4,qae=zn(bce,"RadialLayoutPhases",495,Xn,ypn,_0n),ptn;g(1131,209,gd,Tje),s.Ze=function(n,t){var i,r,c,o,f,l;if(i=sRe(this,n),In(t,"Radial layout",i.c.length),ke(ye(Te(n,(ow(),Jae))))||JC((r=new e8((Db(),new Ab(n))),r)),l=tkn(n),_r(n,(O5(),t9),l),!l)throw I(new rn("The given graph is not a tree!"));for(c=ne(he(Te(n,gI))),c==0&&(c=kRe(n)),_r(n,gI,c),f=new A(sRe(this,n));f.a0&&AFe((Gn(t-1,n.length),n.charCodeAt(t-1)),YGe);)--t;if(r>=t)throw I(new rn("The given string does not contain any numbers."));if(c=pw(n.substr(r,t-r),`,|;|\r| +`),c.length!=2)throw I(new rn("Exactly two numbers are expected, "+c.length+" were found."));try{this.a=hw(aw(c[0])),this.b=hw(aw(c[1]))}catch(o){throw o=qt(o),_(o,127)?(i=o,I(new rn(QGe+i))):I(o)}},s.Ib=function(){return"("+this.a+","+this.b+")"},s.a=0,s.b=0;var xi=p(Fk,"KVector",8);g(74,68,{3:1,4:1,20:1,28:1,52:1,14:1,68:1,15:1,74:1,414:1},Lu,fT,dMe),s.Pc=function(){return C5n(this)},s.Jf=function(n){var t,i,r,c,o,f;r=pw(n,`,|;|\\(|\\)|\\[|\\]|\\{|\\}| | | +`),go(this);try{for(i=0,o=0,c=0,f=0;i0&&(o%2==0?c=hw(r[i]):f=hw(r[i]),o>0&&o%2!=0&&ut(this,new je(c,f)),++o),++i}catch(l){throw l=qt(l),_(l,127)?(t=l,I(new rn("The given string does not match the expected format for vectors."+t))):I(l)}},s.Ib=function(){var n,t,i;for(n=new Cs("("),t=ct(this,0);t.b!=t.d.c;)i=u(rt(t),8),Qn(n,i.a+","+i.b),t.b!=t.d.c&&(n.a+="; ");return(n.a+=")",n).a};var Qhe=p(Fk,"KVectorChain",74);g(248,22,{3:1,35:1,22:1,248:1},p5);var vV,EI,TI,$j,Lj,CI,Jhe=zn(Eo,"Alignment",248,Xn,vvn,tbn),Fin;g(979,1,ko,J6e),s.Qe=function(n){Uqe(n)};var Zhe,yV,Nin,e1e,n1e,_in,t1e,Bin,Rin,i1e,r1e,Kin;p(Eo,"BoxLayouterOptions",979),g(980,1,{},k3e),s.$e=function(){var n;return n=new A3e,n},s._e=function(n){},p(Eo,"BoxLayouterOptions/BoxFactory",980),g(291,22,{3:1,35:1,22:1,291:1},m5);var Fj,kV,Nj,_j,Bj,jV,EV=zn(Eo,"ContentAlignment",291,Xn,mvn,ibn),qin;g(684,1,ko,dz),s.Qe=function(n){Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,zze),""),"Layout Algorithm"),"Select a specific layout algorithm."),(rh(),p4)),ge),_e((yf(),an))))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Uze),""),"Resolved Layout Algorithm"),"Meta data associated with the selected algorithm."),Zf),HDn),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Vre),""),"Alignment"),"Alignment of the selected node relative to other nodes; the exact meaning depends on the used algorithm."),c1e),ni),Jhe),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,X2),""),"Aspect Ratio"),"The desired aspect ratio of the drawing, that is the quotient of width by height."),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,_ce),""),"Bend Points"),"A fixed list of bend points for the edge. This is used by the 'Fixed Layout' algorithm to specify a pre-defined routing for an edge. The vector chain must include the source point, any bend points, and the target point, so it must have at least two points."),Zf),Qhe),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,QP),""),"Content Alignment"),"Specifies how the content of a node are aligned. Each node can individually control the alignment of its contents. I.e. if a node should be aligned top left in its parent node, the parent node should specify that option."),s1e),mm),EV),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,qk),""),"Debug Mode"),"Whether additional debug information shall be generated."),(cn(),!1)),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Ure),""),Sie),"Overall direction of edges: horizontal (right / left) or vertical (down / up)."),o1e),ni),f9),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Rk),""),"Edge Routing"),"What kind of edge routing style should be applied for the content of a parent node. Algorithms may also set this option to single edges in order to mark them as splines. The bend point list of edges with this option set to SPLINES must be interpreted as control points for a piecewise cubic spline."),a1e),ni),FV),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,iA),""),"Expand Nodes"),"If active, nodes are expanded to fill the area of their parent."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,YP),""),"Hierarchy Handling"),"Determines whether separate layout runs are triggered for different compound nodes in a hierarchical graph. Setting a node's hierarchy handling to `INCLUDE_CHILDREN` will lay out that node and all of its descendants in a single layout run, until a descendant is encountered which has its hierarchy handling set to `SEPARATE_CHILDREN`. In general, `SEPARATE_CHILDREN` will ensure that a new layout run is triggered for a node with that setting. Including multiple levels of hierarchy in a single layout run may allow cross-hierarchical edges to be laid out properly. If the root node is set to `INHERIT` (or not set at all), the default behavior is `SEPARATE_CHILDREN`."),w1e),ni),ede),Ft(an,D(O(gh,1),ce,175,0,[Li]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,z0),""),"Padding"),"The padding to be left to a parent element's border when placing child elements. This can also serve as an output option of a layout algorithm if node size calculation is setup appropriately."),C1e),Zf),uoe),Ft(an,D(O(gh,1),ce,175,0,[Li]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,$k),""),"Interactive"),"Whether the algorithm should be run in interactive mode for the content of a parent node. What this means exactly depends on how the specific algorithm interprets this option. Usually in the interactive mode algorithms try to modify the current layout as little as possible."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,FR),""),"interactive Layout"),"Whether the graph should be changeable interactively and by setting constraints"),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,J6),""),"Omit Node Micro Layout"),"Node micro layout comprises the computation of node dimensions (if requested), the placement of ports and their labels, and the placement of node labels. The functionality is implemented independent of any specific layout algorithm and shouldn't have any negative impact on the layout algorithm's performance itself. Yet, if any unforeseen behavior occurs, this option allows to deactivate the micro layout."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,nR),""),"Port Constraints"),"Defines constraints of the position of the ports of a node."),x1e),ni),ide),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,JP),""),"Position"),"The position of a node, port, or label. This is used by the 'Fixed Layout' algorithm to specify a pre-defined position."),Zf),xi),Ft(Li,D(O(gh,1),ce,175,0,[Dd,wh]))))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Dk),""),"Priority"),"Defines the priority of an object; its meaning depends on the specific layout algorithm and the context where it is used."),Ic),br),Ft(Li,D(O(gh,1),ce,175,0,[Dl]))))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,OP),""),"Randomization Seed"),"Seed used for pseudo-random number generators to control the layout algorithm. If the value is 0, the seed shall be determined pseudo-randomly (e.g. from the system time)."),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Q6),""),"Separate Connected Components"),"Whether each connected component should be processed separately."),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,tce),""),"Junction Points"),"This option is not used as option, but as output of the layout algorithms. It is attached to edges and determines the points where junction symbols should be drawn in order to represent hyperedges with orthogonal routing. Whether such points are computed depends on the chosen layout algorithm and edge routing style. The points are put into the vector chain with no specific order."),p1e),Zf),Qhe),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,cce),""),"Comment Box"),"Whether the node should be regarded as a comment box instead of a regular node. In that case its placement should be similar to how labels are handled. Any edges incident to a comment box specify to which graph elements the comment is related."),!1),ur),Ti),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,uce),""),"Hypernode"),"Whether the node should be handled as a hypernode."),!1),ur),Ti),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,pDn),""),"Label Manager"),"Label managers can shorten labels upon a layout algorithm's request."),Zf),WDn),Ft(an,D(O(gh,1),ce,175,0,[wh]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,oce),""),"Margins"),"Margins define additional space around the actual bounds of a graph element. For instance, ports or labels being placed on the outside of a node's border might introduce such a margin. The margin is used to guarantee non-overlap of other graph elements with those ports or labels."),m1e),Zf),coe),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,qre),""),"No Layout"),"No layout is done for the associated element. This is used to mark parts of a diagram to avoid their inclusion in the layout graph, or to mark parts of the layout graph to prevent layout engines from processing them. If you wish to exclude the contents of a compound node from automatic layout, while the node itself is still considered on its own layer, use the 'Fixed Layout' algorithm for that node."),!1),ur),Ti),Ft(Li,D(O(gh,1),ce,175,0,[Dl,Dd,wh]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Wze),""),"Scale Factor"),"The scaling factor to be applied to the corresponding node in recursive layout. It causes the corresponding node's size to be adjusted, and its ports and labels to be sized and placed accordingly after the layout of that node has been determined (and before the node itself and its siblings are arranged). The scaling is not reverted afterwards, so the resulting layout graph contains the adjusted size and position data. This option is currently not supported if 'Layout Hierarchy' is set."),1),Zr),Vi),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Xze),""),"Animate"),"Whether the shift from the old layout to the new computed layout shall be animated."),!0),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Yze),""),"Animation Time Factor"),"Factor for computation of animation time. The higher the value, the longer the animation time. If the value is 0, the resulting time is always equal to the minimum defined by 'Minimal Animation Time'."),le(100)),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Qze),""),"Layout Ancestors"),"Whether the hierarchy levels on the path from the selected element to the root of the diagram shall be included in the layout process."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Jze),""),"Maximal Animation Time"),"The maximal time for animations, in milliseconds."),le(4e3)),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Zze),""),"Minimal Animation Time"),"The minimal time for animations, in milliseconds."),le(400)),Ic),br),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,eUe),""),"Progress Bar"),"Whether a progress bar shall be displayed during layout computations."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,nUe),""),"Validate Graph"),"Whether the graph shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,tUe),""),"Validate Options"),"Whether layout options shall be validated before any layout algorithm is applied. If this option is enabled and at least one error is found, the layout process is aborted and a message is shown to the user."),!0),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,iUe),""),"Zoom to Fit"),"Whether the zoom level shall be set to view the whole diagram after layout."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Nce),"box"),"Box Layout Mode"),"Configures the packing mode used by the {@link BoxLayoutProvider}. If SIMPLE is not required (neither priorities are used nor the interactive mode), GROUP_DEC can improve the packing and decrease the area. GROUP_MIXED and GROUP_INC may, in very specific scenarios, work better."),u1e),ni),fde),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,xre),Uf),"Comment Comment Spacing"),"Spacing to be preserved between a comment box and other comment boxes connected to the same node. The space left between comment boxes of different nodes is controlled by the node-node spacing."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Ire),Uf),"Comment Node Spacing"),"Spacing to be preserved between a node and its connected comment boxes. The space left between a node and the comments of another node is controlled by the node-node spacing."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,XB),Uf),"Components Spacing"),"Spacing to be preserved between pairs of connected components. This option is only relevant if 'separateConnectedComponents' is activated."),20),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Ore),Uf),"Edge Spacing"),"Spacing to be preserved between any two edges. Note that while this can somewhat easily be satisfied for the segments of orthogonally drawn edges, it is harder for general polylines or splines."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,eR),Uf),"Edge Label Spacing"),"The minimal distance to be preserved between a label and the edge it is associated with. Note that the placement of a label is influenced by the 'edgelabels.placement' option."),2),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Dre),Uf),"Edge Node Spacing"),"Spacing to be preserved between nodes and edges."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,$re),Uf),"Label Spacing"),"Determines the amount of space to be left between two labels of the same graph element."),0),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Nre),Uf),"Label Node Spacing"),"Spacing to be preserved between labels and the border of node they are associated with. Note that the placement of a label is influenced by the 'nodelabels.placement' option."),5),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Lre),Uf),"Horizontal spacing between Label and Port"),"Horizontal spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Fre),Uf),"Vertical spacing between Label and Port"),"Vertical spacing to be preserved between labels and the ports they are associated with. Note that the placement of a label is influenced by the 'portlabels.placement' option."),1),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Tw),Uf),"Node Spacing"),"The minimal distance to be preserved between each two nodes."),20),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,_re),Uf),"Node Self Loop Spacing"),"Spacing to be preserved between a node and its self loops."),10),Zr),Vi),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Bre),Uf),"Port Spacing"),"Spacing between pairs of ports of the same node."),10),Zr),Vi),Ft(an,D(O(gh,1),ce,175,0,[Li]))))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Rre),Uf),"Individual Spacing"),"Allows to specify individual spacing values for graph elements that shall be different from the value specified for the element's parent."),Zf),Ern),Ft(Li,D(O(gh,1),ce,175,0,[Dl,Dd,wh]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,fce),Uf),"Additional Port Space"),"Additional space around the sets of ports on each node side. For each side of a node, this option can reserve additional space before and after the ports on each side. For example, a top spacing of 20 makes sure that the first port on the western and eastern side is 20 units away from the northern border."),R1e),Zf),coe),_e(an)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,LR),uUe),"Layout Partition"),"Partition to which the node belongs. This requires Layout Partitioning to be active. Nodes with lower partition IDs will appear to the left of nodes with higher partition IDs (assuming a left-to-right layout direction)."),Ic),br),Ft(an,D(O(gh,1),ce,175,0,[Li]))))),qi(n,LR,$R,Yin),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,$R),uUe),"Layout Partitioning"),"Whether to activate partitioned layout. This will allow to group nodes through the Layout Partition option. a pair of nodes with different partition indices is then placed such that the node with lower index is placed to the left of the other node (with left-to-right layout direction). Depending on the layout algorithm, this may only be guaranteed to work if all nodes have a layout partition configured, or at least if edges that cross partitions are not part of a partition-crossing cycle."),M1e),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Wre),sUe),"Node Label Padding"),"Define padding for node labels that are placed inside of a node."),y1e),Zf),uoe),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,I3),sUe),"Node Label Placement"),"Hints for where node labels are to be placed; if empty, the node label's position is not modified."),k1e),mm),Dr),Ft(Li,D(O(gh,1),ce,175,0,[wh]))))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Qre),cA),"Port Alignment"),"Defines the default port distribution for a node. May be overridden for each side individually."),P1e),ni),d9),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Jre),cA),"Port Alignment (North)"),"Defines how ports on the northern side are placed, overriding the node's general port alignment."),ni),d9),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Zre),cA),"Port Alignment (South)"),"Defines how ports on the southern side are placed, overriding the node's general port alignment."),ni),d9),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,ece),cA),"Port Alignment (West)"),"Defines how ports on the western side are placed, overriding the node's general port alignment."),ni),d9),_e(Li)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,nce),cA),"Port Alignment (East)"),"Defines how ports on the eastern side are placed, overriding the node's general port alignment."),ni),d9),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,cp),nK),"Node Size Constraints"),"What should be taken into account when calculating a node's size. Empty size constraints specify that a node's size is already fixed and should not be changed."),j1e),mm),g9),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Y2),nK),"Node Size Options"),"Options modifying the behavior of the size constraints set on a node. Each member of the set specifies something that should be taken into account when calculating node sizes. The empty set corresponds to no further modifications."),T1e),mm),cde),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Q2),nK),"Node Size Minimum"),"The minimal size to which a node can be reduced."),E1e),Zf),xi),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,DR),nK),"Fixed Graph Size"),"By default, the fixed layout provider will enlarge a graph until it is large enough to contain its children. If this option is set, it won't do so."),!1),ur),Ti),_e(an)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,ice),OR),"Edge Label Placement"),"Gives a hint on where to put edge labels."),f1e),ni),q1e),_e(wh)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,DP),OR),"Inline Edge Labels"),"If true, an edge label is placed directly on its edge. May only apply to center edge labels. This kind of label placement is only advisable if the label's rendering is such that it is not crossed by its edge and thus stays legible."),!1),ur),Ti),_e(wh)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,mDn),"font"),"Font Name"),"Font name used for a label."),p4),ge),_e(wh)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,rUe),"font"),"Font Size"),"Font size used for a label."),Ic),br),_e(wh)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,sce),tK),"Port Anchor Offset"),"The offset to the port position where connections shall be attached."),Zf),xi),_e(Dd)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,rce),tK),"Port Index"),"The index of a port in the fixed order around a node. The order is assumed as clockwise, starting with the leftmost port on the top side. This option must be set if 'Port Constraints' is set to FIXED_ORDER and no specific positions are given for the ports. Additionally, the option 'Port Side' must be defined in this case."),Ic),br),_e(Dd)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Hre),tK),"Port Side"),"The side of a node on which a port is situated. This option must be set if 'Port Constraints' is set to FIXED_SIDE or FIXED_ORDER and no specific positions are given for the ports."),D1e),ni),kr),_e(Dd)))),Ne(n,new Pe(Le($e(Fe(xe(De(Ie(Oe(new Se,Kre),tK),"Port Border Offset"),"The offset of ports on the node border. With a positive offset the port is moved outside of the node, while with a negative offset the port is moved towards the inside. An offset of 0 means that the port is placed directly on the node border, i.e. if the port side is north, the port's south border touches the nodes's north border; if the port side is east, the port's west border touches the nodes's east border; if the port side is south, the port's north border touches the node's south border; if the port side is west, the port's east border touches the node's west border."),Zr),Vi),_e(Dd)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,O3),Bce),"Port Label Placement"),"Decides on a placement method for port labels; if empty, the node label's position is not modified."),I1e),mm),DI),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Xre),Bce),"Port Labels Next to Port"),"Use 'portLabels.placement': NEXT_TO_PORT_OF_POSSIBLE."),!1),ur),Ti),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Yre),Bce),"Treat Port Labels as Group"),"If this option is true (default), the labels of a port will be treated as a group when it comes to centering them next to their port. If this option is false, only the first label will be centered next to the port, with the others being placed below. This only applies to labels of eastern and western ports and will have no effect if labels are not placed next to their port."),!0),ur),Ti),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,Gre),oUe),"Activate Inside Self Loops"),"Whether this node allows to route self loops inside of it instead of around it. If set to true, this will make the node a compound node if it isn't already, and will require the layout algorithm to support compound nodes with hierarchical ports."),!1),ur),Ti),_e(Li)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,zre),oUe),"Inside Self Loop"),"Whether a self loop should be routed inside a node instead of around that node."),!1),ur),Ti),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,YB),"edge"),"Edge Thickness"),"The thickness of an edge. This is a hint on the line width used to draw an edge, possibly requiring more space to be reserved for it."),1),Zr),Vi),_e(Dl)))),Ne(n,new Pe(Le($e(Fe(ze(xe(De(Ie(Oe(new Se,cUe),"edge"),"Edge Type"),"The type of an edge. This is usually used for UML class diagrams, where associations must be handled differently from generalizations."),d1e),ni),W1e),_e(Dl)))),u5(n,new y2(e5(zm(Gm(new Up,wn),"Layered"),'The layer-based method was introduced by Sugiyama, Tagawa and Toda in 1981. It emphasizes the direction of edges by pointing as many edges as possible into the same direction. The nodes are arranged in layers, which are sometimes called "hierarchies", and then reordered such that the number of edge crossings is minimized. Afterwards, concrete coordinates are computed for the nodes and edge bend points.'))),u5(n,new y2(e5(zm(Gm(new Up,"org.eclipse.elk.orthogonal"),"Orthogonal"),`Orthogonal methods that follow the "topology-shape-metrics" approach by Batini, Nardelli and Tamassia '86. The first phase determines the topology of the drawing by applying a planarization technique, which results in a planar representation of the graph. The orthogonal shape is computed in the second phase, which aims at minimizing the number of edge bends, and is called orthogonalization. The third phase leads to concrete coordinates for nodes and edge bend points by applying a compaction method, thus defining the metrics.`))),u5(n,new y2(e5(zm(Gm(new Up,Fs),"Force"),"Layout algorithms that follow physical analogies by simulating a system of attractive and repulsive forces. The first successful method of this kind was proposed by Eades in 1984."))),u5(n,new y2(e5(zm(Gm(new Up,"org.eclipse.elk.circle"),"Circle"),"Circular layout algorithms emphasize cycles or biconnected components of a graph by arranging them in circles. This is useful if a drawing is desired where such components are clearly grouped, or where cycles are shown as prominent OPTIONS of the graph."))),u5(n,new y2(e5(zm(Gm(new Up,Oze),"Tree"),"Specialized layout methods for trees, i.e. acyclic graphs. The regular structure of graphs that have no undirected cycles can be emphasized using an algorithm of this type."))),u5(n,new y2(e5(zm(Gm(new Up,"org.eclipse.elk.planar"),"Planar"),"Algorithms that require a planar or upward planar graph. Most of these algorithms are theoretically interesting, but not practically usable."))),u5(n,new y2(e5(zm(Gm(new Up,Ml),"Radial"),"Radial layout algorithms usually position the nodes of the graph on concentric circles."))),Oqe((new Z6e,n)),Uqe((new J6e,n)),oqe((new eye,n))};var s9,Hin,c1e,vm,Vin,Gin,u1e,zin,MI,s1e,Rj,db,o1e,TV,CV,f1e,l1e,a1e,h1e,d1e,b1e,Dp,w1e,Uin,Kj,MV,SI,g1e,$p,p1e,qj,m1e,v1e,y1e,Lp,k1e,$d,j1e,PI,Fp,E1e,v1,T1e,AI,Hj,Ld,C1e,Win,M1e,Xin,Yin,S1e,P1e,SV,PV,AV,xV,A1e,fs,o9,x1e,IV,OV,Yw,I1e,O1e,Np,D1e,ym,xI,DV,m4,Qin,$V,Jin,Zin,$1e,ern,L1e,nrn,km,F1e,II,N1e,_1e,Fd,trn,B1e,R1e,K1e;p(Eo,"CoreOptions",684),g(103,22,{3:1,35:1,22:1,103:1},E8);var Oa,Ao,cf,ea,Da,f9=zn(Eo,Sie,103,Xn,Kmn,ubn),irn;g(272,22,{3:1,35:1,22:1,272:1},o$);var v4,Qw,y4,q1e=zn(Eo,"EdgeLabelPlacement",272,Xn,k2n,sbn),rrn;g(218,22,{3:1,35:1,22:1,218:1},NT);var k4,Vj,jm,LV,FV=zn(Eo,"EdgeRouting",218,Xn,dmn,obn),crn;g(312,22,{3:1,35:1,22:1,312:1},v5);var H1e,V1e,G1e,z1e,NV,U1e,W1e=zn(Eo,"EdgeType",312,Xn,Svn,fbn),urn;g(977,1,ko,Z6e),s.Qe=function(n){Oqe(n)};var X1e,Y1e,Q1e,J1e,srn,Z1e,l9;p(Eo,"FixedLayouterOptions",977),g(978,1,{},$3e),s.$e=function(){var n;return n=new S3e,n},s._e=function(n){},p(Eo,"FixedLayouterOptions/FixedFactory",978),g(334,22,{3:1,35:1,22:1,334:1},f$);var ph,OI,a9,ede=zn(Eo,"HierarchyHandling",334,Xn,y2n,lbn),orn;g(285,22,{3:1,35:1,22:1,285:1},_T);var na,y1,Gj,zj,frn=zn(Eo,"LabelSide",285,Xn,hmn,abn),lrn;g(93,22,{3:1,35:1,22:1,93:1},gg);var $a,uf,xo,sf,Rs,of,Io,ta,ff,Dr=zn(Eo,"NodeLabelPlacement",93,Xn,x3n,hbn),arn;g(249,22,{3:1,35:1,22:1,249:1},T8);var nde,h9,k1,tde,Uj,d9=zn(Eo,"PortAlignment",249,Xn,qmn,dbn),hrn;g(98,22,{3:1,35:1,22:1,98:1},y5);var Nd,Zc,ia,j4,el,j1,ide=zn(Eo,"PortConstraints",98,Xn,lvn,bbn),drn;g(273,22,{3:1,35:1,22:1,273:1},k5);var b9,w9,La,Wj,E1,Em,DI=zn(Eo,"PortLabelPlacement",273,Xn,Mvn,wbn),brn;g(61,22,{3:1,35:1,22:1,61:1},C8);var hn,tn,oo,fo,xu,wu,nl,lf,Zu,Gu,eu,es,Iu,Ou,af,Ks,qs,Oo,On,gc,un,kr=zn(Eo,"PortSide",61,Xn,_mn,mbn),wrn;g(981,1,ko,eye),s.Qe=function(n){oqe(n)};var grn,prn,rde,mrn,vrn;p(Eo,"RandomLayouterOptions",981),g(982,1,{},L3e),s.$e=function(){var n;return n=new _3e,n},s._e=function(n){},p(Eo,"RandomLayouterOptions/RandomFactory",982),g(374,22,{3:1,35:1,22:1,374:1},BT);var Jw,Xj,Yj,_d,g9=zn(Eo,"SizeConstraint",374,Xn,amn,gbn),yrn;g(259,22,{3:1,35:1,22:1,259:1},pg);var Qj,$I,E4,_V,Jj,p9,LI,FI,NI,cde=zn(Eo,"SizeOptions",259,Xn,N3n,pbn),krn;g(370,1,{1949:1},qm),s.b=!1,s.c=0,s.d=-1,s.e=null,s.f=null,s.g=-1,s.j=!1,s.k=!1,s.n=!1,s.o=0,s.q=0,s.r=0,p(Nc,"BasicProgressMonitor",370),g(972,209,gd,A3e),s.Ze=function(n,t){var i,r,c,o,f,l,a,h,w;switch(In(t,"Box layout",2),c=r8(he(Te(n,(VS(),Kin)))),o=u(Te(n,Rin),116),i=ke(ye(Te(n,e1e))),r=ke(ye(Te(n,n1e))),u(Te(n,yV),311).g){case 0:f=(l=new _u((!n.a&&(n.a=new fe(Xt,n,10,11)),n.a)),He(),Oi(l,new V8e(r)),l),a=yne(n),h=he(Te(n,Zhe)),(h==null||(nn(h),h<=0))&&(h=1.3),w=jOn(f,c,o,a.a,a.b,i,(nn(h),h)),q0(n,w.a,w.b,!1,!0);break;default:mxn(n,c,o,i)}Tn(t)},p(Nc,"BoxLayoutProvider",972),g(973,1,xt,V8e),s.ue=function(n,t){return RCn(this,u(n,33),u(t,33))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},s.a=!1,p(Nc,"BoxLayoutProvider/1",973),g(157,1,{157:1},LM,hMe),s.Ib=function(){return this.c?vte(this.c):Zh(this.b)},p(Nc,"BoxLayoutProvider/Group",157),g(311,22,{3:1,35:1,22:1,311:1},RT);var ude,sde,ode,BV,fde=zn(Nc,"BoxLayoutProvider/PackingMode",311,Xn,bmn,vbn),jrn;g(974,1,xt,x3e),s.ue=function(n,t){return Hgn(u(n,157),u(t,157))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Nc,"BoxLayoutProvider/lambda$0$Type",974),g(975,1,xt,I3e),s.ue=function(n,t){return Fgn(u(n,157),u(t,157))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Nc,"BoxLayoutProvider/lambda$1$Type",975),g(976,1,xt,O3e),s.ue=function(n,t){return Ngn(u(n,157),u(t,157))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Nc,"BoxLayoutProvider/lambda$2$Type",976),g(1365,1,{831:1},D3e),s.qg=function(n,t){return kT(),!_(t,160)||jje((x2(),u(n,160)),t)},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$0$Type",1365),g(1366,1,gn,G8e),s.td=function(n){S5n(this.a,u(n,146))},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$1$Type",1366),g(1367,1,gn,P3e),s.td=function(n){u(n,94),kT()},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$2$Type",1367),g(1371,1,gn,z8e),s.td=function(n){J3n(this.a,u(n,94))},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$3$Type",1371),g(1369,1,dt,oTe),s.Mb=function(n){return d5n(this.a,this.b,u(n,146))},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$4$Type",1369),g(1368,1,dt,fTe),s.Mb=function(n){return x1n(this.a,this.b,u(n,831))},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$5$Type",1368),g(1370,1,gn,lTe),s.td=function(n){xwn(this.a,this.b,u(n,146))},p(Nc,"ElkSpacings/AbstractSpacingsBuilder/lambda$6$Type",1370),g(935,1,{},M3e),s.Kb=function(n){return lCe(n)},s.Fb=function(n){return this===n},p(Nc,"ElkUtil/lambda$0$Type",935),g(936,1,gn,aTe),s.td=function(n){qEn(this.a,this.b,u(n,79))},s.a=0,s.b=0,p(Nc,"ElkUtil/lambda$1$Type",936),g(937,1,gn,hTe),s.td=function(n){qln(this.a,this.b,u(n,202))},s.a=0,s.b=0,p(Nc,"ElkUtil/lambda$2$Type",937),g(938,1,gn,dTe),s.td=function(n){Dhn(this.a,this.b,u(n,137))},s.a=0,s.b=0,p(Nc,"ElkUtil/lambda$3$Type",938),g(939,1,gn,U8e),s.td=function(n){zbn(this.a,u(n,469))},p(Nc,"ElkUtil/lambda$4$Type",939),g(342,1,{35:1,342:1},mln),s.wd=function(n){return s1n(this,u(n,236))},s.Fb=function(n){var t;return _(n,342)?(t=u(n,342),this.a==t.a):!1},s.Hb=function(){return ci(this.a)},s.Ib=function(){return this.a+" (exclusive)"},s.a=0,p(Nc,"ExclusiveBounds/ExclusiveLowerBound",342),g(1138,209,gd,S3e),s.Ze=function(n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q,R,G,ee,ue,we,Ce,Ae;for(In(t,"Fixed Layout",1),o=u(Te(n,(ht(),l1e)),218),k=0,j=0,R=new jn((!n.a&&(n.a=new fe(Xt,n,10,11)),n.a));R.e!=R.i.gc();){for(L=u(Sn(R),33),Ae=u(Te(L,(cS(),l9)),8),Ae&&(xf(L,Ae.a,Ae.b),u(Te(L,Y1e),174).Hc((Es(),Jw))&&(T=u(Te(L,J1e),8),T.a>0&&T.b>0&&q0(L,T.a,T.b,!0,!0))),k=y.Math.max(k,L.i+L.g),j=y.Math.max(j,L.j+L.f),h=new jn((!L.n&&(L.n=new fe(uc,L,1,7)),L.n));h.e!=h.i.gc();)l=u(Sn(h),137),Ae=u(Te(l,l9),8),Ae&&xf(l,Ae.a,Ae.b),k=y.Math.max(k,L.i+l.i+l.g),j=y.Math.max(j,L.j+l.j+l.f);for(ue=new jn((!L.c&&(L.c=new fe(ls,L,9,9)),L.c));ue.e!=ue.i.gc();)for(ee=u(Sn(ue),118),Ae=u(Te(ee,l9),8),Ae&&xf(ee,Ae.a,Ae.b),we=L.i+ee.i,Ce=L.j+ee.j,k=y.Math.max(k,we+ee.g),j=y.Math.max(j,Ce+ee.f),a=new jn((!ee.n&&(ee.n=new fe(uc,ee,1,7)),ee.n));a.e!=a.i.gc();)l=u(Sn(a),137),Ae=u(Te(l,l9),8),Ae&&xf(l,Ae.a,Ae.b),k=y.Math.max(k,we+l.i+l.g),j=y.Math.max(j,Ce+l.j+l.f);for(c=new En(Cn(Ca(L).a.Kc(),new J));Un(c);)i=u(_n(c),79),w=EVe(i),k=y.Math.max(k,w.a),j=y.Math.max(j,w.b);for(r=new En(Cn(uk(L).a.Kc(),new J));Un(r);)i=u(_n(r),79),Ut(Vl(i))!=n&&(w=EVe(i),k=y.Math.max(k,w.a),j=y.Math.max(j,w.b))}if(o==(Ea(),k4))for(q=new jn((!n.a&&(n.a=new fe(Xt,n,10,11)),n.a));q.e!=q.i.gc();)for(L=u(Sn(q),33),r=new En(Cn(Ca(L).a.Kc(),new J));Un(r);)i=u(_n(r),79),f=BPn(i),f.b==0?_r(i,$p,null):_r(i,$p,f);ke(ye(Te(n,(cS(),Q1e))))||(G=u(Te(n,srn),116),x=k+G.b+G.c,C=j+G.d+G.a,q0(n,x,C,!0,!0)),Tn(t)},p(Nc,"FixedLayoutProvider",1138),g(373,134,{3:1,414:1,373:1,94:1,134:1},ZO,RDe),s.Jf=function(n){var t,i,r,c,o,f,l,a,h;if(n)try{for(a=pw(n,";,;"),o=a,f=0,l=o.length;f>16&si|t^r<<16},s.Kc=function(){return new W8e(this)},s.Ib=function(){return this.a==null&&this.b==null?"pair(null,null)":this.a==null?"pair(null,"+rc(this.b)+")":this.b==null?"pair("+rc(this.a)+",null)":"pair("+rc(this.a)+","+rc(this.b)+")"},p(Nc,"Pair",46),g(983,1,Bi,W8e),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return!this.c&&(!this.b&&this.a.a!=null||this.a.b!=null)},s.Pb=function(){if(!this.c&&!this.b&&this.a.a!=null)return this.b=!0,this.a.a;if(!this.c&&this.a.b!=null)return this.c=!0,this.a.b;throw I(new Sc)},s.Qb=function(){throw this.c&&this.a.b!=null?this.a.b=null:this.b&&this.a.a!=null&&(this.a.a=null),I(new $u)},s.b=!1,s.c=!1,p(Nc,"Pair/1",983),g(448,1,{448:1},TAe),s.Fb=function(n){return Hc(this.a,u(n,448).a)&&Hc(this.c,u(n,448).c)&&Hc(this.d,u(n,448).d)&&Hc(this.b,u(n,448).b)},s.Hb=function(){return uS(D(O(pn,1),pe,1,5,[this.a,this.c,this.d,this.b]))},s.Ib=function(){return"("+this.a+vr+this.c+vr+this.d+vr+this.b+")"},p(Nc,"Quadruple",448),g(1126,209,gd,_3e),s.Ze=function(n,t){var i,r,c,o,f;if(In(t,"Random Layout",1),(!n.a&&(n.a=new fe(Xt,n,10,11)),n.a).i==0){Tn(t);return}o=u(Te(n,(YZ(),mrn)),19),o&&o.a!=0?c=new dM(o.a):c=new oN,i=r8(he(Te(n,grn))),f=r8(he(Te(n,vrn))),r=u(Te(n,prn),116),ZIn(n,c,i,f,r),Tn(t)},p(Nc,"RandomLayoutProvider",1126);var Mrn;g(553,1,{}),s.qf=function(){return new je(this.f.i,this.f.j)},s.We=function(n){return YAe(n,(ht(),fs))?Te(this.f,Srn):Te(this.f,n)},s.rf=function(){return new je(this.f.g,this.f.f)},s.sf=function(){return this.g},s.Xe=function(n){return Y1(this.f,n)},s.tf=function(n){Cu(this.f,n.a),Mu(this.f,n.b)},s.uf=function(n){C0(this.f,n.a),T0(this.f,n.b)},s.vf=function(n){this.g=n},s.g=0;var Srn;p(oy,"ElkGraphAdapters/AbstractElkGraphElementAdapter",553),g(554,1,{839:1},XE),s.wf=function(){var n,t;if(!this.b)for(this.b=fM(KC(this.a).i),t=new jn(KC(this.a));t.e!=t.i.gc();)n=u(Sn(t),137),se(this.b,new CD(n));return this.b},s.b=null,p(oy,"ElkGraphAdapters/ElkEdgeAdapter",554),g(301,553,{},Ab),s.xf=function(){return T_e(this)},s.a=null,p(oy,"ElkGraphAdapters/ElkGraphAdapter",301),g(630,553,{181:1},CD),p(oy,"ElkGraphAdapters/ElkLabelAdapter",630),g(629,553,{680:1},T$),s.wf=function(){return n8n(this)},s.Af=function(){var n;return n=u(Te(this.f,(ht(),qj)),142),!n&&(n=new z4),n},s.Cf=function(){return t8n(this)},s.Ef=function(n){var t;t=new B$(n),_r(this.f,(ht(),qj),t)},s.Ff=function(n){_r(this.f,(ht(),Ld),new GX(n))},s.yf=function(){return this.d},s.zf=function(){var n,t;if(!this.a)for(this.a=new oe,t=new En(Cn(uk(u(this.f,33)).a.Kc(),new J));Un(t);)n=u(_n(t),79),se(this.a,new XE(n));return this.a},s.Bf=function(){var n,t;if(!this.c)for(this.c=new oe,t=new En(Cn(Ca(u(this.f,33)).a.Kc(),new J));Un(t);)n=u(_n(t),79),se(this.c,new XE(n));return this.c},s.Df=function(){return UC(u(this.f,33)).i!=0||ke(ye(u(this.f,33).We((ht(),Kj))))},s.Gf=function(){zvn(this,(Db(),Mrn))},s.a=null,s.b=null,s.c=null,s.d=null,s.e=null,p(oy,"ElkGraphAdapters/ElkNodeAdapter",629),g(1266,553,{838:1},E7e),s.wf=function(){return l8n(this)},s.zf=function(){var n,t;if(!this.a)for(this.a=Ll(u(this.f,118).xg().i),t=new jn(u(this.f,118).xg());t.e!=t.i.gc();)n=u(Sn(t),79),se(this.a,new XE(n));return this.a},s.Bf=function(){var n,t;if(!this.c)for(this.c=Ll(u(this.f,118).yg().i),t=new jn(u(this.f,118).yg());t.e!=t.i.gc();)n=u(Sn(t),79),se(this.c,new XE(n));return this.c},s.Hf=function(){return u(u(this.f,118).We((ht(),Np)),61)},s.If=function(){var n,t,i,r,c,o,f,l;for(r=Df(u(this.f,118)),i=new jn(u(this.f,118).yg());i.e!=i.i.gc();)for(n=u(Sn(i),79),l=new jn((!n.c&&(n.c=new Xe(An,n,5,8)),n.c));l.e!=l.i.gc();){if(f=u(Sn(l),82),ew(Qr(f),r))return!0;if(Qr(f)==r&&ke(ye(Te(n,(ht(),MV)))))return!0}for(t=new jn(u(this.f,118).xg());t.e!=t.i.gc();)for(n=u(Sn(t),79),o=new jn((!n.b&&(n.b=new Xe(An,n,4,7)),n.b));o.e!=o.i.gc();)if(c=u(Sn(o),82),ew(Qr(c),r))return!0;return!1},s.a=null,s.b=null,s.c=null,p(oy,"ElkGraphAdapters/ElkPortAdapter",1266),g(1267,1,xt,B3e),s.ue=function(n,t){return OSn(u(n,118),u(t,118))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(oy,"ElkGraphAdapters/PortComparator",1267);var T1=Ht(ro,"EObject"),T4=Ht(fp,aUe),Do=Ht(fp,hUe),Zj=Ht(fp,dUe),eE=Ht(fp,"ElkShape"),An=Ht(fp,bUe),Ii=Ht(fp,Rce),Gt=Ht(fp,wUe),nE=Ht(ro,gUe),m9=Ht(ro,"EFactory"),Prn,RV=Ht(ro,pUe),Sf=Ht(ro,"EPackage"),Fi,Arn,xrn,dde,_I,Irn,bde,wde,gde,C1,Orn,Drn,uc=Ht(fp,Kce),Xt=Ht(fp,qce),ls=Ht(fp,Hce);g(90,1,mUe),s.Jg=function(){return this.Kg(),null},s.Kg=function(){return null},s.Lg=function(){return this.Kg(),!1},s.Mg=function(){return!1},s.Ng=function(n){yt(this,n)},p(nm,"BasicNotifierImpl",90),g(97,90,jUe),s.nh=function(){return gs(this)},s.Og=function(n,t){return n},s.Pg=function(){throw I(new Kn)},s.Qg=function(n){var t;return t=Cr(u(Ge(this.Tg(),this.Vg()),18)),this.eh().ih(this,t.n,t.f,n)},s.Rg=function(n,t){throw I(new Kn)},s.Sg=function(n,t,i){return Ls(this,n,t,i)},s.Tg=function(){var n;return this.Pg()&&(n=this.Pg().ck(),n)?n:this.zh()},s.Ug=function(){return a_(this)},s.Vg=function(){throw I(new Kn)},s.Wg=function(){var n,t;return t=this.ph().dk(),!t&&this.Pg().ik(t=(s5(),n=oQ(pl(this.Tg())),n==null?WV:new P8(this,n))),t},s.Xg=function(n,t){return n},s.Yg=function(n){var t;return t=n.Gj(),t?n.aj():Kt(this.Tg(),n)},s.Zg=function(){var n;return n=this.Pg(),n?n.fk():null},s.$g=function(){return this.Pg()?this.Pg().ck():null},s._g=function(n,t,i){return PS(this,n,t,i)},s.ah=function(n){return Tv(this,n)},s.bh=function(n,t){return tF(this,n,t)},s.dh=function(){var n;return n=this.Pg(),!!n&&n.gk()},s.eh=function(){throw I(new Kn)},s.fh=function(){return kS(this)},s.gh=function(n,t,i,r){return $2(this,n,t,r)},s.hh=function(n,t,i){var r;return r=u(Ge(this.Tg(),t),66),r.Nj().Qj(this,this.yh(),t-this.Ah(),n,i)},s.ih=function(n,t,i,r){return QC(this,n,t,r)},s.jh=function(n,t,i){var r;return r=u(Ge(this.Tg(),t),66),r.Nj().Rj(this,this.yh(),t-this.Ah(),n,i)},s.kh=function(){return!!this.Pg()&&!!this.Pg().ek()},s.lh=function(n){return jN(this,n)},s.mh=function(n){return dxe(this,n)},s.oh=function(n){return _He(this,n)},s.ph=function(){throw I(new Kn)},s.qh=function(){return this.Pg()?this.Pg().ek():null},s.rh=function(){return kS(this)},s.sh=function(n,t){u_(this,n,t)},s.th=function(n){this.ph().hk(n)},s.uh=function(n){this.ph().kk(n)},s.vh=function(n){this.ph().jk(n)},s.wh=function(n,t){var i,r,c,o;return o=this.Zg(),o&&n&&(t=hr(o.Vk(),this,t),o.Zk(this)),r=this.eh(),r&&(S_(this,this.eh(),this.Vg()).Bb&yr?(c=r.fh(),c&&(n?!o&&c.Zk(this):c.Yk(this))):(t=(i=this.Vg(),i>=0?this.Qg(t):this.eh().ih(this,-1-i,null,t)),t=this.Sg(null,-1,t))),this.uh(n),t},s.xh=function(n){var t,i,r,c,o,f,l,a;if(i=this.Tg(),o=Kt(i,n),t=this.Ah(),o>=t)return u(n,66).Nj().Uj(this,this.yh(),o-t);if(o<=-1)if(f=Zg((Ku(),Ji),i,n),f){if(Er(),u(f,66).Oj()||(f=k2(Vr(Ji,f))),c=(r=this.Yg(f),u(r>=0?this._g(r,!0,!0):_0(this,f,!0),153)),a=f.Zj(),a>1||a==-1)return u(u(c,215).hl(n,!1),76)}else throw I(new rn(o1+n.ne()+iK));else if(n.$j())return r=this.Yg(n),u(r>=0?this._g(r,!1,!0):_0(this,n,!1),76);return l=new DTe(this,n),l},s.yh=function(){return fJ(this)},s.zh=function(){return(Kh(),Je).S},s.Ah=function(){return yn(this.zh())},s.Bh=function(n){n_(this,n)},s.Ib=function(){return Jo(this)},p(Ze,"BasicEObjectImpl",97);var $rn;g(114,97,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1}),s.Ch=function(n){var t;return t=lJ(this),t[n]},s.Dh=function(n,t){var i;i=lJ(this),zt(i,n,t)},s.Eh=function(n){var t;t=lJ(this),zt(t,n,null)},s.Jg=function(){return u(en(this,4),126)},s.Kg=function(){throw I(new Kn)},s.Lg=function(){return(this.Db&4)!=0},s.Pg=function(){throw I(new Kn)},s.Fh=function(n){D2(this,2,n)},s.Rg=function(n,t){this.Db=t<<16|this.Db&255,this.Fh(n)},s.Tg=function(){return ku(this)},s.Vg=function(){return this.Db>>16},s.Wg=function(){var n,t;return s5(),t=oQ(pl((n=u(en(this,16),26),n||this.zh()))),t==null?WV:new P8(this,t)},s.Mg=function(){return(this.Db&1)==0},s.Zg=function(){return u(en(this,128),1935)},s.$g=function(){return u(en(this,16),26)},s.dh=function(){return(this.Db&32)!=0},s.eh=function(){return u(en(this,2),49)},s.kh=function(){return(this.Db&64)!=0},s.ph=function(){throw I(new Kn)},s.qh=function(){return u(en(this,64),281)},s.th=function(n){D2(this,16,n)},s.uh=function(n){D2(this,128,n)},s.vh=function(n){D2(this,64,n)},s.yh=function(){return lu(this)},s.Db=0,p(Ze,"MinimalEObjectImpl",114),g(115,114,{105:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s.Fh=function(n){this.Cb=n},s.eh=function(){return this.Cb},p(Ze,"MinimalEObjectImpl/Container",115),g(1985,115,{105:1,413:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(n,t,i){return kee(this,n,t,i)},s.jh=function(n,t,i){return fne(this,n,t,i)},s.lh=function(n){return yQ(this,n)},s.sh=function(n,t){uZ(this,n,t)},s.zh=function(){return cu(),Drn},s.Bh=function(n){XJ(this,n)},s.Ve=function(){return GNe(this)},s.We=function(n){return Te(this,n)},s.Xe=function(n){return Y1(this,n)},s.Ye=function(n,t){return _r(this,n,t)},p(vd,"EMapPropertyHolderImpl",1985),g(567,115,{105:1,469:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},_E),s._g=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return PS(this,n,t,i)},s.lh=function(n){switch(n){case 0:return this.a!=0;case 1:return this.b!=0}return jN(this,n)},s.sh=function(n,t){switch(n){case 0:FM(this,ne(he(t)));return;case 1:NM(this,ne(he(t)));return}u_(this,n,t)},s.zh=function(){return cu(),Arn},s.Bh=function(n){switch(n){case 0:FM(this,0);return;case 1:NM(this,0);return}n_(this,n)},s.Ib=function(){var n;return this.Db&64?Jo(this):(n=new bo(Jo(this)),n.a+=" (x: ",bg(n,this.a),n.a+=", y: ",bg(n,this.b),n.a+=")",n.a)},s.a=0,s.b=0,p(vd,"ElkBendPointImpl",567),g(723,1985,{105:1,413:1,160:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(n,t,i){return CZ(this,n,t,i)},s.hh=function(n,t,i){return XN(this,n,t,i)},s.jh=function(n,t,i){return DF(this,n,t,i)},s.lh=function(n){return KJ(this,n)},s.sh=function(n,t){Ree(this,n,t)},s.zh=function(){return cu(),Irn},s.Bh=function(n){kZ(this,n)},s.zg=function(){return this.k},s.Ag=function(){return KC(this)},s.Ib=function(){return uN(this)},s.k=null,p(vd,"ElkGraphElementImpl",723),g(724,723,{105:1,413:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(n,t,i){return LZ(this,n,t,i)},s.lh=function(n){return qZ(this,n)},s.sh=function(n,t){Kee(this,n,t)},s.zh=function(){return cu(),Orn},s.Bh=function(n){UZ(this,n)},s.Bg=function(){return this.f},s.Cg=function(){return this.g},s.Dg=function(){return this.i},s.Eg=function(){return this.j},s.Fg=function(n,t){WT(this,n,t)},s.Gg=function(n,t){xf(this,n,t)},s.Hg=function(n){Cu(this,n)},s.Ig=function(n){Mu(this,n)},s.Ib=function(){return e_(this)},s.f=0,s.g=0,s.i=0,s.j=0,p(vd,"ElkShapeImpl",724),g(725,724,{105:1,413:1,82:1,160:1,470:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1}),s._g=function(n,t,i){return wee(this,n,t,i)},s.hh=function(n,t,i){return $ee(this,n,t,i)},s.jh=function(n,t,i){return Lee(this,n,t,i)},s.lh=function(n){return rZ(this,n)},s.sh=function(n,t){Vne(this,n,t)},s.zh=function(){return cu(),xrn},s.Bh=function(n){see(this,n)},s.xg=function(){return!this.d&&(this.d=new Xe(Ii,this,8,5)),this.d},s.yg=function(){return!this.e&&(this.e=new Xe(Ii,this,7,4)),this.e},p(vd,"ElkConnectableShapeImpl",725),g(352,723,{105:1,413:1,79:1,160:1,352:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},oz),s.Qg=function(n){return xee(this,n)},s._g=function(n,t,i){switch(n){case 3:return Q8(this);case 4:return!this.b&&(this.b=new Xe(An,this,4,7)),this.b;case 5:return!this.c&&(this.c=new Xe(An,this,5,8)),this.c;case 6:return!this.a&&(this.a=new fe(Gt,this,6,6)),this.a;case 7:return cn(),!this.b&&(this.b=new Xe(An,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Xe(An,this,5,8)),this.c.i<=1));case 8:return cn(),!!x6(this);case 9:return cn(),!!N0(this);case 10:return cn(),!this.b&&(this.b=new Xe(An,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Xe(An,this,5,8)),this.c.i!=0)}return CZ(this,n,t,i)},s.hh=function(n,t,i){var r;switch(t){case 3:return this.Cb&&(i=(r=this.Db>>16,r>=0?xee(this,i):this.Cb.ih(this,-1-r,null,i))),EX(this,u(n,33),i);case 4:return!this.b&&(this.b=new Xe(An,this,4,7)),ru(this.b,n,i);case 5:return!this.c&&(this.c=new Xe(An,this,5,8)),ru(this.c,n,i);case 6:return!this.a&&(this.a=new fe(Gt,this,6,6)),ru(this.a,n,i)}return XN(this,n,t,i)},s.jh=function(n,t,i){switch(t){case 3:return EX(this,null,i);case 4:return!this.b&&(this.b=new Xe(An,this,4,7)),hr(this.b,n,i);case 5:return!this.c&&(this.c=new Xe(An,this,5,8)),hr(this.c,n,i);case 6:return!this.a&&(this.a=new fe(Gt,this,6,6)),hr(this.a,n,i)}return DF(this,n,t,i)},s.lh=function(n){switch(n){case 3:return!!Q8(this);case 4:return!!this.b&&this.b.i!=0;case 5:return!!this.c&&this.c.i!=0;case 6:return!!this.a&&this.a.i!=0;case 7:return!this.b&&(this.b=new Xe(An,this,4,7)),!(this.b.i<=1&&(!this.c&&(this.c=new Xe(An,this,5,8)),this.c.i<=1));case 8:return x6(this);case 9:return N0(this);case 10:return!this.b&&(this.b=new Xe(An,this,4,7)),this.b.i!=0&&(!this.c&&(this.c=new Xe(An,this,5,8)),this.c.i!=0)}return KJ(this,n)},s.sh=function(n,t){switch(n){case 3:p_(this,u(t,33));return;case 4:!this.b&&(this.b=new Xe(An,this,4,7)),Dn(this.b),!this.b&&(this.b=new Xe(An,this,4,7)),Yt(this.b,u(t,14));return;case 5:!this.c&&(this.c=new Xe(An,this,5,8)),Dn(this.c),!this.c&&(this.c=new Xe(An,this,5,8)),Yt(this.c,u(t,14));return;case 6:!this.a&&(this.a=new fe(Gt,this,6,6)),Dn(this.a),!this.a&&(this.a=new fe(Gt,this,6,6)),Yt(this.a,u(t,14));return}Ree(this,n,t)},s.zh=function(){return cu(),dde},s.Bh=function(n){switch(n){case 3:p_(this,null);return;case 4:!this.b&&(this.b=new Xe(An,this,4,7)),Dn(this.b);return;case 5:!this.c&&(this.c=new Xe(An,this,5,8)),Dn(this.c);return;case 6:!this.a&&(this.a=new fe(Gt,this,6,6)),Dn(this.a);return}kZ(this,n)},s.Ib=function(){return EHe(this)},p(vd,"ElkEdgeImpl",352),g(439,1985,{105:1,413:1,202:1,439:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},BE),s.Qg=function(n){return Mee(this,n)},s._g=function(n,t,i){switch(n){case 1:return this.j;case 2:return this.k;case 3:return this.b;case 4:return this.c;case 5:return!this.a&&(this.a=new bi(Do,this,5)),this.a;case 6:return lxe(this);case 7:return t?SN(this):this.i;case 8:return t?MN(this):this.f;case 9:return!this.g&&(this.g=new Xe(Gt,this,9,10)),this.g;case 10:return!this.e&&(this.e=new Xe(Gt,this,10,9)),this.e;case 11:return this.d}return kee(this,n,t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?Mee(this,i):this.Cb.ih(this,-1-c,null,i))),TX(this,u(n,79),i);case 9:return!this.g&&(this.g=new Xe(Gt,this,9,10)),ru(this.g,n,i);case 10:return!this.e&&(this.e=new Xe(Gt,this,10,9)),ru(this.e,n,i)}return o=u(Ge((r=u(en(this,16),26),r||(cu(),_I)),t),66),o.Nj().Qj(this,lu(this),t-yn((cu(),_I)),n,i)},s.jh=function(n,t,i){switch(t){case 5:return!this.a&&(this.a=new bi(Do,this,5)),hr(this.a,n,i);case 6:return TX(this,null,i);case 9:return!this.g&&(this.g=new Xe(Gt,this,9,10)),hr(this.g,n,i);case 10:return!this.e&&(this.e=new Xe(Gt,this,10,9)),hr(this.e,n,i)}return fne(this,n,t,i)},s.lh=function(n){switch(n){case 1:return this.j!=0;case 2:return this.k!=0;case 3:return this.b!=0;case 4:return this.c!=0;case 5:return!!this.a&&this.a.i!=0;case 6:return!!lxe(this);case 7:return!!this.i;case 8:return!!this.f;case 9:return!!this.g&&this.g.i!=0;case 10:return!!this.e&&this.e.i!=0;case 11:return this.d!=null}return yQ(this,n)},s.sh=function(n,t){switch(n){case 1:xv(this,ne(he(t)));return;case 2:Ov(this,ne(he(t)));return;case 3:Av(this,ne(he(t)));return;case 4:Iv(this,ne(he(t)));return;case 5:!this.a&&(this.a=new bi(Do,this,5)),Dn(this.a),!this.a&&(this.a=new bi(Do,this,5)),Yt(this.a,u(t,14));return;case 6:TKe(this,u(t,79));return;case 7:qM(this,u(t,82));return;case 8:KM(this,u(t,82));return;case 9:!this.g&&(this.g=new Xe(Gt,this,9,10)),Dn(this.g),!this.g&&(this.g=new Xe(Gt,this,9,10)),Yt(this.g,u(t,14));return;case 10:!this.e&&(this.e=new Xe(Gt,this,10,9)),Dn(this.e),!this.e&&(this.e=new Xe(Gt,this,10,9)),Yt(this.e,u(t,14));return;case 11:OJ(this,Vn(t));return}uZ(this,n,t)},s.zh=function(){return cu(),_I},s.Bh=function(n){switch(n){case 1:xv(this,0);return;case 2:Ov(this,0);return;case 3:Av(this,0);return;case 4:Iv(this,0);return;case 5:!this.a&&(this.a=new bi(Do,this,5)),Dn(this.a);return;case 6:TKe(this,null);return;case 7:qM(this,null);return;case 8:KM(this,null);return;case 9:!this.g&&(this.g=new Xe(Gt,this,9,10)),Dn(this.g);return;case 10:!this.e&&(this.e=new Xe(Gt,this,10,9)),Dn(this.e);return;case 11:OJ(this,null);return}XJ(this,n)},s.Ib=function(){return qRe(this)},s.b=0,s.c=0,s.d=null,s.j=0,s.k=0,p(vd,"ElkEdgeSectionImpl",439),g(150,115,{105:1,92:1,90:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s._g=function(n,t,i){var r;return n==0?(!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab):Js(this,n-yn(this.zh()),Ge((r=u(en(this,16),26),r||this.zh()),n),t,i)},s.hh=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i)):(c=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),c.Nj().Qj(this,lu(this),t-yn(this.zh()),n,i))},s.jh=function(n,t,i){var r,c;return t==0?(!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i)):(c=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,lu(this),t-yn(this.zh()),n,i))},s.lh=function(n){var t;return n==0?!!this.Ab&&this.Ab.i!=0:Ys(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.oh=function(n){return Jte(this,n)},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return}io(this,n-yn(this.zh()),Ge((i=u(en(this,16),26),i||this.zh()),n),t)},s.uh=function(n){D2(this,128,n)},s.zh=function(){return Ke(),Jrn},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return}no(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.Gh=function(){this.Bb|=1},s.Hh=function(n){return L6(this,n)},s.Bb=0,p(Ze,"EModelElementImpl",150),g(704,150,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},bz),s.Ih=function(n,t){return ZHe(this,n,t)},s.Jh=function(n){var t,i,r,c,o;if(this.a!=xs(n)||n.Bb&256)throw I(new rn(cK+n.zb+Y0));for(r=Wr(n);Bc(r.a).i!=0;){if(i=u(pk(r,0,(t=u(K(Bc(r.a),0),87),o=t.c,_(o,88)?u(o,26):(Ke(),No))),26),F0(i))return c=xs(i).Nh().Jh(i),u(c,49).th(n),c;r=Wr(i)}return(n.D!=null?n.D:n.B)=="java.util.Map$Entry"?new WSe(n):new lY(n)},s.Kh=function(n,t){return H0(this,n,t)},s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.a}return Js(this,n-yn((Ke(),A1)),Ge((r=u(en(this,16),26),r||A1),n),t,i)},s.hh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 1:return this.a&&(i=u(this.a,49).ih(this,4,Sf,i)),vZ(this,u(n,235),i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),A1)),t),66),c.Nj().Qj(this,lu(this),t-yn((Ke(),A1)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 1:return vZ(this,null,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),A1)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),A1)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return!!this.a}return Ys(this,n-yn((Ke(),A1)),Ge((t=u(en(this,16),26),t||A1),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:TBe(this,u(t,235));return}io(this,n-yn((Ke(),A1)),Ge((i=u(en(this,16),26),i||A1),n),t)},s.zh=function(){return Ke(),A1},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:TBe(this,null);return}no(this,n-yn((Ke(),A1)),Ge((t=u(en(this,16),26),t||A1),n))};var v9,pde,Lrn;p(Ze,"EFactoryImpl",704),g(ef,704,{105:1,2014:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1},K3e),s.Ih=function(n,t){switch(n.yj()){case 12:return u(t,146).tg();case 13:return rc(t);default:throw I(new rn(F3+n.ne()+Y0))}},s.Jh=function(n){var t,i,r,c,o,f,l,a;switch(n.G==-1&&(n.G=(t=xs(n),t?nh(t.Mh(),n):-1)),n.G){case 4:return o=new fz,o;case 6:return f=new dU,f;case 7:return l=new bU,l;case 8:return r=new oz,r;case 9:return i=new _E,i;case 10:return c=new BE,c;case 11:return a=new q3e,a;default:throw I(new rn(cK+n.zb+Y0))}},s.Kh=function(n,t){switch(n.yj()){case 13:case 12:return null;default:throw I(new rn(F3+n.ne()+Y0))}},p(vd,"ElkGraphFactoryImpl",ef),g(438,150,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1}),s.Wg=function(){var n,t;return t=(n=u(en(this,16),26),oQ(pl(n||this.zh()))),t==null?(s5(),s5(),WV):new wMe(this,t)},s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.ne()}return Js(this,n-yn(this.zh()),Ge((r=u(en(this,16),26),r||this.zh()),n),t,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null}return Ys(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:this.Lh(Vn(t));return}io(this,n-yn(this.zh()),Ge((i=u(en(this,16),26),i||this.zh()),n),t)},s.zh=function(){return Ke(),Zrn},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:this.Lh(null);return}no(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.ne=function(){return this.zb},s.Lh=function(n){iu(this,n)},s.Ib=function(){return h6(this)},s.zb=null,p(Ze,"ENamedElementImpl",438),g(179,438,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},XAe),s.Qg=function(n){return __e(this,n)},s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.yb;case 3:return this.xb;case 4:return this.sb;case 5:return!this.rb&&(this.rb=new Vb(this,Pf,this)),this.rb;case 6:return!this.vb&&(this.vb=new l2(Sf,this,6,7)),this.vb;case 7:return t?this.Db>>16==7?u(this.Cb,235):null:axe(this)}return Js(this,n-yn((Ke(),kh)),Ge((r=u(en(this,16),26),r||kh),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 4:return this.sb&&(i=u(this.sb,49).ih(this,1,m9,i)),EZ(this,u(n,471),i);case 5:return!this.rb&&(this.rb=new Vb(this,Pf,this)),ru(this.rb,n,i);case 6:return!this.vb&&(this.vb=new l2(Sf,this,6,7)),ru(this.vb,n,i);case 7:return this.Cb&&(i=(c=this.Db>>16,c>=0?__e(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,7,i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),kh)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),kh)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 4:return EZ(this,null,i);case 5:return!this.rb&&(this.rb=new Vb(this,Pf,this)),hr(this.rb,n,i);case 6:return!this.vb&&(this.vb=new l2(Sf,this,6,7)),hr(this.vb,n,i);case 7:return Ls(this,null,7,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),kh)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),kh)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.yb!=null;case 3:return this.xb!=null;case 4:return!!this.sb;case 5:return!!this.rb&&this.rb.i!=0;case 6:return!!this.vb&&this.vb.i!=0;case 7:return!!axe(this)}return Ys(this,n-yn((Ke(),kh)),Ge((t=u(en(this,16),26),t||kh),n))},s.oh=function(n){var t;return t=eMn(this,n),t||Jte(this,n)},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:iu(this,Vn(t));return;case 2:XM(this,Vn(t));return;case 3:WM(this,Vn(t));return;case 4:ZN(this,u(t,471));return;case 5:!this.rb&&(this.rb=new Vb(this,Pf,this)),Dn(this.rb),!this.rb&&(this.rb=new Vb(this,Pf,this)),Yt(this.rb,u(t,14));return;case 6:!this.vb&&(this.vb=new l2(Sf,this,6,7)),Dn(this.vb),!this.vb&&(this.vb=new l2(Sf,this,6,7)),Yt(this.vb,u(t,14));return}io(this,n-yn((Ke(),kh)),Ge((i=u(en(this,16),26),i||kh),n),t)},s.vh=function(n){var t,i;if(n&&this.rb)for(i=new jn(this.rb);i.e!=i.i.gc();)t=Sn(i),_(t,351)&&(u(t,351).w=null);D2(this,64,n)},s.zh=function(){return Ke(),kh},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:iu(this,null);return;case 2:XM(this,null);return;case 3:WM(this,null);return;case 4:ZN(this,null);return;case 5:!this.rb&&(this.rb=new Vb(this,Pf,this)),Dn(this.rb);return;case 6:!this.vb&&(this.vb=new l2(Sf,this,6,7)),Dn(this.vb);return}no(this,n-yn((Ke(),kh)),Ge((t=u(en(this,16),26),t||kh),n))},s.Gh=function(){RN(this)},s.Mh=function(){return!this.rb&&(this.rb=new Vb(this,Pf,this)),this.rb},s.Nh=function(){return this.sb},s.Oh=function(){return this.ub},s.Ph=function(){return this.xb},s.Qh=function(){return this.yb},s.Rh=function(n){this.ub=n},s.Ib=function(){var n;return this.Db&64?h6(this):(n=new bo(h6(this)),n.a+=" (nsURI: ",Lr(n,this.yb),n.a+=", nsPrefix: ",Lr(n,this.xb),n.a+=")",n.a)},s.xb=null,s.yb=null,p(Ze,"EPackageImpl",179),g(555,179,{105:1,2016:1,555:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1},QRe),s.q=!1,s.r=!1;var Frn=!1;p(vd,"ElkGraphPackageImpl",555),g(354,724,{105:1,413:1,160:1,137:1,470:1,354:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},fz),s.Qg=function(n){return See(this,n)},s._g=function(n,t,i){switch(n){case 7:return hxe(this);case 8:return this.a}return LZ(this,n,t,i)},s.hh=function(n,t,i){var r;switch(t){case 7:return this.Cb&&(i=(r=this.Db>>16,r>=0?See(this,i):this.Cb.ih(this,-1-r,null,i))),CY(this,u(n,160),i)}return XN(this,n,t,i)},s.jh=function(n,t,i){return t==7?CY(this,null,i):DF(this,n,t,i)},s.lh=function(n){switch(n){case 7:return!!hxe(this);case 8:return!Re("",this.a)}return qZ(this,n)},s.sh=function(n,t){switch(n){case 7:rte(this,u(t,160));return;case 8:CJ(this,Vn(t));return}Kee(this,n,t)},s.zh=function(){return cu(),bde},s.Bh=function(n){switch(n){case 7:rte(this,null);return;case 8:CJ(this,"");return}UZ(this,n)},s.Ib=function(){return _Be(this)},s.a="",p(vd,"ElkLabelImpl",354),g(239,725,{105:1,413:1,82:1,160:1,33:1,470:1,239:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},dU),s.Qg=function(n){return Iee(this,n)},s._g=function(n,t,i){switch(n){case 9:return!this.c&&(this.c=new fe(ls,this,9,9)),this.c;case 10:return!this.a&&(this.a=new fe(Xt,this,10,11)),this.a;case 11:return Ut(this);case 12:return!this.b&&(this.b=new fe(Ii,this,12,3)),this.b;case 13:return cn(),!this.a&&(this.a=new fe(Xt,this,10,11)),this.a.i>0}return wee(this,n,t,i)},s.hh=function(n,t,i){var r;switch(t){case 9:return!this.c&&(this.c=new fe(ls,this,9,9)),ru(this.c,n,i);case 10:return!this.a&&(this.a=new fe(Xt,this,10,11)),ru(this.a,n,i);case 11:return this.Cb&&(i=(r=this.Db>>16,r>=0?Iee(this,i):this.Cb.ih(this,-1-r,null,i))),DX(this,u(n,33),i);case 12:return!this.b&&(this.b=new fe(Ii,this,12,3)),ru(this.b,n,i)}return $ee(this,n,t,i)},s.jh=function(n,t,i){switch(t){case 9:return!this.c&&(this.c=new fe(ls,this,9,9)),hr(this.c,n,i);case 10:return!this.a&&(this.a=new fe(Xt,this,10,11)),hr(this.a,n,i);case 11:return DX(this,null,i);case 12:return!this.b&&(this.b=new fe(Ii,this,12,3)),hr(this.b,n,i)}return Lee(this,n,t,i)},s.lh=function(n){switch(n){case 9:return!!this.c&&this.c.i!=0;case 10:return!!this.a&&this.a.i!=0;case 11:return!!Ut(this);case 12:return!!this.b&&this.b.i!=0;case 13:return!this.a&&(this.a=new fe(Xt,this,10,11)),this.a.i>0}return rZ(this,n)},s.sh=function(n,t){switch(n){case 9:!this.c&&(this.c=new fe(ls,this,9,9)),Dn(this.c),!this.c&&(this.c=new fe(ls,this,9,9)),Yt(this.c,u(t,14));return;case 10:!this.a&&(this.a=new fe(Xt,this,10,11)),Dn(this.a),!this.a&&(this.a=new fe(Xt,this,10,11)),Yt(this.a,u(t,14));return;case 11:nte(this,u(t,33));return;case 12:!this.b&&(this.b=new fe(Ii,this,12,3)),Dn(this.b),!this.b&&(this.b=new fe(Ii,this,12,3)),Yt(this.b,u(t,14));return}Vne(this,n,t)},s.zh=function(){return cu(),wde},s.Bh=function(n){switch(n){case 9:!this.c&&(this.c=new fe(ls,this,9,9)),Dn(this.c);return;case 10:!this.a&&(this.a=new fe(Xt,this,10,11)),Dn(this.a);return;case 11:nte(this,null);return;case 12:!this.b&&(this.b=new fe(Ii,this,12,3)),Dn(this.b);return}see(this,n)},s.Ib=function(){return vte(this)},p(vd,"ElkNodeImpl",239),g(186,725,{105:1,413:1,82:1,160:1,118:1,470:1,186:1,94:1,92:1,90:1,56:1,108:1,49:1,97:1,114:1,115:1},bU),s.Qg=function(n){return Pee(this,n)},s._g=function(n,t,i){return n==9?Df(this):wee(this,n,t,i)},s.hh=function(n,t,i){var r;switch(t){case 9:return this.Cb&&(i=(r=this.Db>>16,r>=0?Pee(this,i):this.Cb.ih(this,-1-r,null,i))),CX(this,u(n,33),i)}return $ee(this,n,t,i)},s.jh=function(n,t,i){return t==9?CX(this,null,i):Lee(this,n,t,i)},s.lh=function(n){return n==9?!!Df(this):rZ(this,n)},s.sh=function(n,t){switch(n){case 9:ete(this,u(t,33));return}Vne(this,n,t)},s.zh=function(){return cu(),gde},s.Bh=function(n){switch(n){case 9:ete(this,null);return}see(this,n)},s.Ib=function(){return Tqe(this)},p(vd,"ElkPortImpl",186);var Nrn=Ht(dr,"BasicEMap/Entry");g(1092,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,114:1,115:1},q3e),s.Fb=function(n){return this===n},s.cd=function(){return this.b},s.Hb=function(){return c0(this)},s.Uh=function(n){MJ(this,u(n,146))},s._g=function(n,t,i){switch(n){case 0:return this.b;case 1:return this.c}return PS(this,n,t,i)},s.lh=function(n){switch(n){case 0:return!!this.b;case 1:return this.c!=null}return jN(this,n)},s.sh=function(n,t){switch(n){case 0:MJ(this,u(t,146));return;case 1:AJ(this,t);return}u_(this,n,t)},s.zh=function(){return cu(),C1},s.Bh=function(n){switch(n){case 0:MJ(this,null);return;case 1:AJ(this,null);return}n_(this,n)},s.Sh=function(){var n;return this.a==-1&&(n=this.b,this.a=n?Bt(n):0),this.a},s.dd=function(){return this.c},s.Th=function(n){this.a=n},s.ed=function(n){var t;return t=this.c,AJ(this,n),t},s.Ib=function(){var n;return this.Db&64?Jo(this):(n=new Ph,Qn(Qn(Qn(n,this.b?this.b.tg():Au),tR),A5(this.c)),n.a)},s.a=-1,s.c=null;var bb=p(vd,"ElkPropertyToValueMapEntryImpl",1092);g(984,1,{},G3e),p(Qi,"JsonAdapter",984),g(210,60,Sa,ol),p(Qi,"JsonImportException",210),g(857,1,{},B_e),p(Qi,"JsonImporter",857),g(891,1,{},bTe),p(Qi,"JsonImporter/lambda$0$Type",891),g(892,1,{},wTe),p(Qi,"JsonImporter/lambda$1$Type",892),g(900,1,{},X8e),p(Qi,"JsonImporter/lambda$10$Type",900),g(902,1,{},gTe),p(Qi,"JsonImporter/lambda$11$Type",902),g(903,1,{},pTe),p(Qi,"JsonImporter/lambda$12$Type",903),g(909,1,{},AAe),p(Qi,"JsonImporter/lambda$13$Type",909),g(908,1,{},PAe),p(Qi,"JsonImporter/lambda$14$Type",908),g(904,1,{},mTe),p(Qi,"JsonImporter/lambda$15$Type",904),g(905,1,{},vTe),p(Qi,"JsonImporter/lambda$16$Type",905),g(906,1,{},yTe),p(Qi,"JsonImporter/lambda$17$Type",906),g(907,1,{},kTe),p(Qi,"JsonImporter/lambda$18$Type",907),g(912,1,{},Y8e),p(Qi,"JsonImporter/lambda$19$Type",912),g(893,1,{},Q8e),p(Qi,"JsonImporter/lambda$2$Type",893),g(910,1,{},J8e),p(Qi,"JsonImporter/lambda$20$Type",910),g(911,1,{},Z8e),p(Qi,"JsonImporter/lambda$21$Type",911),g(915,1,{},e7e),p(Qi,"JsonImporter/lambda$22$Type",915),g(913,1,{},n7e),p(Qi,"JsonImporter/lambda$23$Type",913),g(914,1,{},t7e),p(Qi,"JsonImporter/lambda$24$Type",914),g(917,1,{},i7e),p(Qi,"JsonImporter/lambda$25$Type",917),g(916,1,{},r7e),p(Qi,"JsonImporter/lambda$26$Type",916),g(918,1,gn,jTe),s.td=function(n){Avn(this.b,this.a,Vn(n))},p(Qi,"JsonImporter/lambda$27$Type",918),g(919,1,gn,ETe),s.td=function(n){xvn(this.b,this.a,Vn(n))},p(Qi,"JsonImporter/lambda$28$Type",919),g(920,1,{},TTe),p(Qi,"JsonImporter/lambda$29$Type",920),g(896,1,{},c7e),p(Qi,"JsonImporter/lambda$3$Type",896),g(921,1,{},CTe),p(Qi,"JsonImporter/lambda$30$Type",921),g(922,1,{},u7e),p(Qi,"JsonImporter/lambda$31$Type",922),g(923,1,{},s7e),p(Qi,"JsonImporter/lambda$32$Type",923),g(924,1,{},o7e),p(Qi,"JsonImporter/lambda$33$Type",924),g(925,1,{},f7e),p(Qi,"JsonImporter/lambda$34$Type",925),g(859,1,{},l7e),p(Qi,"JsonImporter/lambda$35$Type",859),g(929,1,{},ySe),p(Qi,"JsonImporter/lambda$36$Type",929),g(926,1,gn,a7e),s.td=function(n){Dmn(this.a,u(n,469))},p(Qi,"JsonImporter/lambda$37$Type",926),g(927,1,gn,ITe),s.td=function(n){shn(this.a,this.b,u(n,202))},p(Qi,"JsonImporter/lambda$38$Type",927),g(928,1,gn,OTe),s.td=function(n){ohn(this.a,this.b,u(n,202))},p(Qi,"JsonImporter/lambda$39$Type",928),g(894,1,{},h7e),p(Qi,"JsonImporter/lambda$4$Type",894),g(930,1,gn,d7e),s.td=function(n){$mn(this.a,u(n,8))},p(Qi,"JsonImporter/lambda$40$Type",930),g(895,1,{},b7e),p(Qi,"JsonImporter/lambda$5$Type",895),g(899,1,{},w7e),p(Qi,"JsonImporter/lambda$6$Type",899),g(897,1,{},g7e),p(Qi,"JsonImporter/lambda$7$Type",897),g(898,1,{},p7e),p(Qi,"JsonImporter/lambda$8$Type",898),g(901,1,{},m7e),p(Qi,"JsonImporter/lambda$9$Type",901),g(948,1,gn,v7e),s.td=function(n){g2(this.a,new Gb(Vn(n)))},p(Qi,"JsonMetaDataConverter/lambda$0$Type",948),g(949,1,gn,y7e),s.td=function(n){Ywn(this.a,u(n,237))},p(Qi,"JsonMetaDataConverter/lambda$1$Type",949),g(950,1,gn,k7e),s.td=function(n){Upn(this.a,u(n,149))},p(Qi,"JsonMetaDataConverter/lambda$2$Type",950),g(951,1,gn,j7e),s.td=function(n){Qwn(this.a,u(n,175))},p(Qi,"JsonMetaDataConverter/lambda$3$Type",951),g(237,22,{3:1,35:1,22:1,237:1},u2);var BI,RI,KV,KI,qI,HI,qV,HV,VI=zn(Ik,"GraphFeature",237,Xn,v3n,kbn),_rn;g(13,1,{35:1,146:1},Rt,yi,Ve,Tr),s.wd=function(n){return u1n(this,u(n,146))},s.Fb=function(n){return YAe(this,n)},s.wg=function(){return me(this)},s.tg=function(){return this.b},s.Hb=function(){return th(this.b)},s.Ib=function(){return this.b},p(Ik,"Property",13),g(818,1,xt,zz),s.ue=function(n,t){return T6n(this,u(n,94),u(t,94))},s.Fb=function(n){return this===n},s.ve=function(){return new Ct(this)},p(Ik,"PropertyHolderComparator",818),g(695,1,Bi,Uz),s.Nb=function(n){Wi(this,n)},s.Pb=function(){return $vn(this)},s.Qb=function(){wje()},s.Ob=function(){return!!this.a},p(fA,"ElkGraphUtil/AncestorIterator",695);var mde=Ht(dr,"EList");g(67,52,{20:1,28:1,52:1,14:1,15:1,67:1,58:1}),s.Vc=function(n,t){w6(this,n,t)},s.Fc=function(n){return Bn(this,n)},s.Wc=function(n,t){return YJ(this,n,t)},s.Gc=function(n){return Yt(this,n)},s.Zh=function(){return new f2(this)},s.$h=function(){return new A8(this)},s._h=function(n){return y7(this,n)},s.ai=function(){return!0},s.bi=function(n,t){},s.ci=function(){},s.di=function(n,t){rF(this,n,t)},s.ei=function(n,t,i){},s.fi=function(n,t){},s.gi=function(n,t,i){},s.Fb=function(n){return lqe(this,n)},s.Hb=function(){return GJ(this)},s.hi=function(){return!1},s.Kc=function(){return new jn(this)},s.Yc=function(){return new o2(this)},s.Zc=function(n){var t;if(t=this.gc(),n<0||n>t)throw I(new Kb(n,t));return new fL(this,n)},s.ji=function(n,t){this.ii(n,this.Xc(t))},s.Mc=function(n){return PM(this,n)},s.li=function(n,t){return t},s._c=function(n,t){return Bg(this,n,t)},s.Ib=function(){return NZ(this)},s.ni=function(){return!0},s.oi=function(n,t){return Vv(this,t)},p(dr,"AbstractEList",67),g(63,67,Pl,KE,j0,NJ),s.Vh=function(n,t){return YN(this,n,t)},s.Wh=function(n){return h_e(this,n)},s.Xh=function(n,t){L7(this,n,t)},s.Yh=function(n){i7(this,n)},s.pi=function(n){return rJ(this,n)},s.$b=function(){e6(this)},s.Hc=function(n){return c3(this,n)},s.Xb=function(n){return K(this,n)},s.qi=function(n){var t,i,r;++this.j,i=this.g==null?0:this.g.length,n>i&&(r=this.g,t=i+(i/2|0)+4,t=0?(this.$c(t),!0):!1},s.mi=function(n,t){return this.Ui(n,this.oi(n,t))},s.gc=function(){return this.Vi()},s.Pc=function(){return this.Wi()},s.Qc=function(n){return this.Xi(n)},s.Ib=function(){return this.Yi()},p(dr,"DelegatingEList",1995),g(1996,1995,uWe),s.Vh=function(n,t){return Pte(this,n,t)},s.Wh=function(n){return this.Vh(this.Vi(),n)},s.Xh=function(n,t){XRe(this,n,t)},s.Yh=function(n){RRe(this,n)},s.ai=function(){return!this.bj()},s.$b=function(){K6(this)},s.Zi=function(n,t,i,r,c){return new JAe(this,n,t,i,r,c)},s.$i=function(n){yt(this.Ai(),n)},s._i=function(){return null},s.aj=function(){return-1},s.Ai=function(){return null},s.bj=function(){return!1},s.cj=function(n,t){return t},s.dj=function(n,t){return t},s.ej=function(){return!1},s.fj=function(){return!this.Ri()},s.ii=function(n,t){var i,r;return this.ej()?(r=this.fj(),i=une(this,n,t),this.$i(this.Zi(7,le(t),i,n,r)),i):une(this,n,t)},s.$c=function(n){var t,i,r,c;return this.ej()?(i=null,r=this.fj(),t=this.Zi(4,c=kC(this,n),null,n,r),this.bj()&&c?(i=this.dj(c,i),i?(i.Ei(t),i.Fi()):this.$i(t)):i?(i.Ei(t),i.Fi()):this.$i(t),c):(c=kC(this,n),this.bj()&&c&&(i=this.dj(c,null),i&&i.Fi()),c)},s.mi=function(n,t){return iHe(this,n,t)},p(nm,"DelegatingNotifyingListImpl",1996),g(143,1,Gk),s.Ei=function(n){return Uee(this,n)},s.Fi=function(){dF(this)},s.xi=function(){return this.d},s._i=function(){return null},s.gj=function(){return null},s.yi=function(n){return-1},s.zi=function(){return HKe(this)},s.Ai=function(){return null},s.Bi=function(){return fte(this)},s.Ci=function(){return this.o<0?this.o<-2?-2-this.o-1:-1:this.o},s.hj=function(){return!1},s.Di=function(n){var t,i,r,c,o,f,l,a,h,w,k;switch(this.d){case 1:case 2:switch(c=n.xi(),c){case 1:case 2:if(o=n.Ai(),X(o)===X(this.Ai())&&this.yi(null)==n.yi(null))return this.g=n.zi(),n.xi()==1&&(this.d=1),!0}case 4:{switch(c=n.xi(),c){case 4:{if(o=n.Ai(),X(o)===X(this.Ai())&&this.yi(null)==n.yi(null))return h=Gte(this),a=this.o<0?this.o<-2?-2-this.o-1:-1:this.o,f=n.Ci(),this.d=6,k=new j0(2),a<=f?(Bn(k,this.n),Bn(k,n.Bi()),this.g=D(O($n,1),nt,25,15,[this.o=a,f+1])):(Bn(k,n.Bi()),Bn(k,this.n),this.g=D(O($n,1),nt,25,15,[this.o=f,a])),this.n=k,h||(this.o=-2-this.o-1),!0;break}}break}case 6:{switch(c=n.xi(),c){case 4:{if(o=n.Ai(),X(o)===X(this.Ai())&&this.yi(null)==n.yi(null)){for(h=Gte(this),f=n.Ci(),w=u(this.g,48),r=V($n,nt,25,w.length+1,15,1),t=0;t>>0,t.toString(16))),r.a+=" (eventType: ",this.d){case 1:{r.a+="SET";break}case 2:{r.a+="UNSET";break}case 3:{r.a+="ADD";break}case 5:{r.a+="ADD_MANY";break}case 4:{r.a+="REMOVE";break}case 6:{r.a+="REMOVE_MANY";break}case 7:{r.a+="MOVE";break}case 8:{r.a+="REMOVING_ADAPTER";break}case 9:{r.a+="RESOLVE";break}default:{OD(r,this.d);break}}if(Iqe(this)&&(r.a+=", touch: true"),r.a+=", position: ",OD(r,this.o<0?this.o<-2?-2-this.o-1:-1:this.o),r.a+=", notifier: ",E5(r,this.Ai()),r.a+=", feature: ",E5(r,this._i()),r.a+=", oldValue: ",E5(r,fte(this)),r.a+=", newValue: ",this.d==6&&_(this.g,48)){for(i=u(this.g,48),r.a+="[",n=0;n10?((!this.b||this.c.j!=this.a)&&(this.b=new F5(this),this.a=this.j),oa(this.b,n)):c3(this,n)},s.ni=function(){return!0},s.a=0,p(dr,"AbstractEList/1",953),g(295,73,MB,Kb),p(dr,"AbstractEList/BasicIndexOutOfBoundsException",295),g(40,1,Bi,jn),s.Nb=function(n){Wi(this,n)},s.mj=function(){if(this.i.j!=this.f)throw I(new zs)},s.nj=function(){return Sn(this)},s.Ob=function(){return this.e!=this.i.gc()},s.Pb=function(){return this.nj()},s.Qb=function(){C6(this)},s.e=0,s.f=0,s.g=-1,p(dr,"AbstractEList/EIterator",40),g(278,40,Gl,o2,fL),s.Qb=function(){C6(this)},s.Rb=function(n){bNe(this,n)},s.oj=function(){var n;try{return n=this.d.Xb(--this.e),this.mj(),this.g=this.e,n}catch(t){throw t=qt(t),_(t,73)?(this.mj(),I(new Sc)):I(t)}},s.pj=function(n){w_e(this,n)},s.Sb=function(){return this.e!=0},s.Tb=function(){return this.e},s.Ub=function(){return this.oj()},s.Vb=function(){return this.e-1},s.Wb=function(n){this.pj(n)},p(dr,"AbstractEList/EListIterator",278),g(341,40,Bi,f2),s.nj=function(){return EN(this)},s.Qb=function(){throw I(new Kn)},p(dr,"AbstractEList/NonResolvingEIterator",341),g(385,278,Gl,A8,RX),s.Rb=function(n){throw I(new Kn)},s.nj=function(){var n;try{return n=this.c.ki(this.e),this.mj(),this.g=this.e++,n}catch(t){throw t=qt(t),_(t,73)?(this.mj(),I(new Sc)):I(t)}},s.oj=function(){var n;try{return n=this.c.ki(--this.e),this.mj(),this.g=this.e,n}catch(t){throw t=qt(t),_(t,73)?(this.mj(),I(new Sc)):I(t)}},s.Qb=function(){throw I(new Kn)},s.Wb=function(n){throw I(new Kn)},p(dr,"AbstractEList/NonResolvingEListIterator",385),g(1982,67,sWe),s.Vh=function(n,t){var i,r,c,o,f,l,a,h,w,k,j;if(c=t.gc(),c!=0){for(h=u(en(this.a,4),126),w=h==null?0:h.length,j=w+c,r=GF(this,j),k=w-n,k>0&&Kc(h,n,r,n+c,k),a=t.Kc(),f=0;fi)throw I(new Kb(n,i));return new fAe(this,n)},s.$b=function(){var n,t;++this.j,n=u(en(this.a,4),126),t=n==null?0:n.length,n3(this,null),rF(this,t,n)},s.Hc=function(n){var t,i,r,c,o;if(t=u(en(this.a,4),126),t!=null){if(n!=null){for(r=t,c=0,o=r.length;c=i)throw I(new Kb(n,i));return t[n]},s.Xc=function(n){var t,i,r;if(t=u(en(this.a,4),126),t!=null){if(n!=null){for(i=0,r=t.length;ii)throw I(new Kb(n,i));return new oAe(this,n)},s.ii=function(n,t){var i,r,c;if(i=jNe(this),c=i==null?0:i.length,n>=c)throw I(new Rr(bK+n+yd+c));if(t>=c)throw I(new Rr(wK+t+yd+c));return r=i[t],n!=t&&(n0&&Kc(n,0,t,0,i),t},s.Qc=function(n){var t,i,r;return t=u(en(this.a,4),126),r=t==null?0:t.length,r>0&&(n.lengthr&&zt(n,r,null),n};var Brn;p(dr,"ArrayDelegatingEList",1982),g(1038,40,Bi,mOe),s.mj=function(){if(this.b.j!=this.f||X(u(en(this.b.a,4),126))!==X(this.a))throw I(new zs)},s.Qb=function(){C6(this),this.a=u(en(this.b.a,4),126)},p(dr,"ArrayDelegatingEList/EIterator",1038),g(706,278,Gl,OPe,oAe),s.mj=function(){if(this.b.j!=this.f||X(u(en(this.b.a,4),126))!==X(this.a))throw I(new zs)},s.pj=function(n){w_e(this,n),this.a=u(en(this.b.a,4),126)},s.Qb=function(){C6(this),this.a=u(en(this.b.a,4),126)},p(dr,"ArrayDelegatingEList/EListIterator",706),g(1039,341,Bi,vOe),s.mj=function(){if(this.b.j!=this.f||X(u(en(this.b.a,4),126))!==X(this.a))throw I(new zs)},p(dr,"ArrayDelegatingEList/NonResolvingEIterator",1039),g(707,385,Gl,DPe,fAe),s.mj=function(){if(this.b.j!=this.f||X(u(en(this.b.a,4),126))!==X(this.a))throw I(new zs)},p(dr,"ArrayDelegatingEList/NonResolvingEListIterator",707),g(606,295,MB,h$),p(dr,"BasicEList/BasicIndexOutOfBoundsException",606),g(696,63,Pl,CW),s.Vc=function(n,t){throw I(new Kn)},s.Fc=function(n){throw I(new Kn)},s.Wc=function(n,t){throw I(new Kn)},s.Gc=function(n){throw I(new Kn)},s.$b=function(){throw I(new Kn)},s.qi=function(n){throw I(new Kn)},s.Kc=function(){return this.Zh()},s.Yc=function(){return this.$h()},s.Zc=function(n){return this._h(n)},s.ii=function(n,t){throw I(new Kn)},s.ji=function(n,t){throw I(new Kn)},s.$c=function(n){throw I(new Kn)},s.Mc=function(n){throw I(new Kn)},s._c=function(n,t){throw I(new Kn)},p(dr,"BasicEList/UnmodifiableEList",696),g(705,1,{3:1,20:1,14:1,15:1,58:1,589:1}),s.Vc=function(n,t){Yhn(this,n,u(t,42))},s.Fc=function(n){return F1n(this,u(n,42))},s.Jc=function(n){Yi(this,n)},s.Xb=function(n){return u(K(this.c,n),133)},s.ii=function(n,t){return u(this.c.ii(n,t),42)},s.ji=function(n,t){Qhn(this,n,u(t,42))},s.Lc=function(){return new We(null,new Ye(this,16))},s.$c=function(n){return u(this.c.$c(n),42)},s._c=function(n,t){return Vwn(this,n,u(t,42))},s.ad=function(n){Ig(this,n)},s.Nc=function(){return new Ye(this,16)},s.Oc=function(){return new We(null,new Ye(this,16))},s.Wc=function(n,t){return this.c.Wc(n,t)},s.Gc=function(n){return this.c.Gc(n)},s.$b=function(){this.c.$b()},s.Hc=function(n){return this.c.Hc(n)},s.Ic=function(n){return C7(this.c,n)},s.qj=function(){var n,t,i;if(this.d==null){for(this.d=V(vde,sue,63,2*this.f+1,0,1),i=this.e,this.f=0,t=this.c.Kc();t.e!=t.i.gc();)n=u(t.nj(),133),IS(this,n);this.e=i}},s.Fb=function(n){return rSe(this,n)},s.Hb=function(){return GJ(this.c)},s.Xc=function(n){return this.c.Xc(n)},s.rj=function(){this.c=new T7e(this)},s.dc=function(){return this.f==0},s.Kc=function(){return this.c.Kc()},s.Yc=function(){return this.c.Yc()},s.Zc=function(n){return this.c.Zc(n)},s.sj=function(){return u7(this)},s.tj=function(n,t,i){return new kSe(n,t,i)},s.uj=function(){return new X3e},s.Mc=function(n){return N$e(this,n)},s.gc=function(){return this.f},s.bd=function(n,t){return new Rl(this.c,n,t)},s.Pc=function(){return this.c.Pc()},s.Qc=function(n){return this.c.Qc(n)},s.Ib=function(){return NZ(this.c)},s.e=0,s.f=0,p(dr,"BasicEMap",705),g(1033,63,Pl,T7e),s.bi=function(n,t){Dln(this,u(t,133))},s.ei=function(n,t,i){var r;++(r=this,u(t,133),r).a.e},s.fi=function(n,t){$ln(this,u(t,133))},s.gi=function(n,t,i){E1n(this,u(t,133),u(i,133))},s.di=function(n,t){SLe(this.a)},p(dr,"BasicEMap/1",1033),g(1034,63,Pl,X3e),s.ri=function(n){return V(GDn,oWe,612,n,0,1)},p(dr,"BasicEMap/2",1034),g(1035,Gf,qu,C7e),s.$b=function(){this.a.c.$b()},s.Hc=function(n){return bN(this.a,n)},s.Kc=function(){return this.a.f==0?(cv(),rE.a):new uje(this.a)},s.Mc=function(n){var t;return t=this.a.f,yS(this.a,n),this.a.f!=t},s.gc=function(){return this.a.f},p(dr,"BasicEMap/3",1035),g(1036,28,yw,M7e),s.$b=function(){this.a.c.$b()},s.Hc=function(n){return aqe(this.a,n)},s.Kc=function(){return this.a.f==0?(cv(),rE.a):new sje(this.a)},s.gc=function(){return this.a.f},p(dr,"BasicEMap/4",1036),g(1037,Gf,qu,S7e),s.$b=function(){this.a.c.$b()},s.Hc=function(n){var t,i,r,c,o,f,l,a,h;if(this.a.f>0&&_(n,42)&&(this.a.qj(),a=u(n,42),l=a.cd(),c=l==null?0:Bt(l),o=MX(this.a,c),t=this.a.d[o],t)){for(i=u(t.g,367),h=t.i,f=0;f"+this.c},s.a=0;var GDn=p(dr,"BasicEMap/EntryImpl",612);g(536,1,{},RE),p(dr,"BasicEMap/View",536);var rE;g(768,1,{}),s.Fb=function(n){return Gne((He(),Sr),n)},s.Hb=function(){return iZ((He(),Sr))},s.Ib=function(){return Zh((He(),Sr))},p(dr,"ECollections/BasicEmptyUnmodifiableEList",768),g(1312,1,Gl,Y3e),s.Nb=function(n){Wi(this,n)},s.Rb=function(n){throw I(new Kn)},s.Ob=function(){return!1},s.Sb=function(){return!1},s.Pb=function(){throw I(new Sc)},s.Tb=function(){return 0},s.Ub=function(){throw I(new Sc)},s.Vb=function(){return-1},s.Qb=function(){throw I(new Kn)},s.Wb=function(n){throw I(new Kn)},p(dr,"ECollections/BasicEmptyUnmodifiableEList/1",1312),g(1310,768,{20:1,14:1,15:1,58:1},pke),s.Vc=function(n,t){Pje()},s.Fc=function(n){return Aje()},s.Wc=function(n,t){return xje()},s.Gc=function(n){return Ije()},s.$b=function(){Oje()},s.Hc=function(n){return!1},s.Ic=function(n){return!1},s.Jc=function(n){Yi(this,n)},s.Xb=function(n){return PW((He(),n)),null},s.Xc=function(n){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(n){return this.a},s.ii=function(n,t){return Dje()},s.ji=function(n,t){$je()},s.Lc=function(){return new We(null,new Ye(this,16))},s.$c=function(n){return Lje()},s.Mc=function(n){return Fje()},s._c=function(n,t){return Nje()},s.gc=function(){return 0},s.ad=function(n){Ig(this,n)},s.Nc=function(){return new Ye(this,16)},s.Oc=function(){return new We(null,new Ye(this,16))},s.bd=function(n,t){return He(),new Rl(Sr,n,t)},s.Pc=function(){return PY((He(),Sr))},s.Qc=function(n){return He(),V7(Sr,n)},p(dr,"ECollections/EmptyUnmodifiableEList",1310),g(1311,768,{20:1,14:1,15:1,58:1,589:1},mke),s.Vc=function(n,t){Pje()},s.Fc=function(n){return Aje()},s.Wc=function(n,t){return xje()},s.Gc=function(n){return Ije()},s.$b=function(){Oje()},s.Hc=function(n){return!1},s.Ic=function(n){return!1},s.Jc=function(n){Yi(this,n)},s.Xb=function(n){return PW((He(),n)),null},s.Xc=function(n){return-1},s.dc=function(){return!0},s.Kc=function(){return this.a},s.Yc=function(){return this.a},s.Zc=function(n){return this.a},s.ii=function(n,t){return Dje()},s.ji=function(n,t){$je()},s.Lc=function(){return new We(null,new Ye(this,16))},s.$c=function(n){return Lje()},s.Mc=function(n){return Fje()},s._c=function(n,t){return Nje()},s.gc=function(){return 0},s.ad=function(n){Ig(this,n)},s.Nc=function(){return new Ye(this,16)},s.Oc=function(){return new We(null,new Ye(this,16))},s.bd=function(n,t){return He(),new Rl(Sr,n,t)},s.Pc=function(){return PY((He(),Sr))},s.Qc=function(n){return He(),V7(Sr,n)},s.sj=function(){return He(),He(),Jl},p(dr,"ECollections/EmptyUnmodifiableEMap",1311);var kde=Ht(dr,"Enumerator"),GI;g(281,1,{281:1},j_),s.Fb=function(n){var t;return this===n?!0:_(n,281)?(t=u(n,281),this.f==t.f&&awn(this.i,t.i)&&X$(this.a,this.f&256?t.f&256?t.a:null:t.f&256?null:t.a)&&X$(this.d,t.d)&&X$(this.g,t.g)&&X$(this.e,t.e)&&c9n(this,t)):!1},s.Hb=function(){return this.f},s.Ib=function(){return qqe(this)},s.f=0;var Rrn=0,Krn=0,qrn=0,Hrn=0,jde=0,Ede=0,Tde=0,Cde=0,Mde=0,Vrn,y9=0,k9=0,Grn=0,zrn=0,zI,Sde;p(dr,"URI",281),g(1091,43,tp,vke),s.zc=function(n,t){return u(qr(this,Vn(n),u(t,281)),281)},p(dr,"URI/URICache",1091),g(497,63,Pl,V3e,EC),s.hi=function(){return!0},p(dr,"UniqueEList",497),g(581,60,Sa,CM),p(dr,"WrappedException",581);var it=Ht(ro,aWe),Zw=Ht(ro,hWe),Du=Ht(ro,dWe),eg=Ht(ro,bWe),Pf=Ht(ro,wWe),$o=Ht(ro,"EClass"),zV=Ht(ro,"EDataType"),Urn;g(1183,43,tp,yke),s.xc=function(n){return Ni(n)?Vc(this,n):mc(Xr(this.f,n))},p(ro,"EDataType/Internal/ConversionDelegate/Factory/Registry/Impl",1183);var UI=Ht(ro,"EEnum"),Fa=Ht(ro,gWe),$r=Ht(ro,pWe),Lo=Ht(ro,mWe),Fo,wb=Ht(ro,vWe),ng=Ht(ro,yWe);g(1029,1,{},H3e),s.Ib=function(){return"NIL"},p(ro,"EStructuralFeature/Internal/DynamicValueHolder/1",1029);var Wrn;g(1028,43,tp,kke),s.xc=function(n){return Ni(n)?Vc(this,n):mc(Xr(this.f,n))},p(ro,"EStructuralFeature/Internal/SettingDelegate/Factory/Registry/Impl",1028);var gu=Ht(ro,kWe),Tm=Ht(ro,"EValidator/PatternMatcher"),Pde,Ade,Je,mh,tg,S1,Xrn,Yrn,Qrn,P1,vh,A1,gb,tl,Jrn,Zrn,No,yh,ecn,kh,ig,_p,jr,ncn,tcn,pb,WI=Ht(Nt,"FeatureMap/Entry");g(535,1,{72:1},qT),s.ak=function(){return this.a},s.dd=function(){return this.b},p(Ze,"BasicEObjectImpl/1",535),g(1027,1,kK,DTe),s.Wj=function(n){return tF(this.a,this.b,n)},s.fj=function(){return dxe(this.a,this.b)},s.Wb=function(n){lQ(this.a,this.b,n)},s.Xj=function(){sgn(this.a,this.b)},p(Ze,"BasicEObjectImpl/4",1027),g(1983,1,{108:1}),s.bk=function(n){this.e=n==0?icn:V(pn,pe,1,n,5,1)},s.Ch=function(n){return this.e[n]},s.Dh=function(n,t){this.e[n]=t},s.Eh=function(n){this.e[n]=null},s.ck=function(){return this.c},s.dk=function(){throw I(new Kn)},s.ek=function(){throw I(new Kn)},s.fk=function(){return this.d},s.gk=function(){return this.e!=null},s.hk=function(n){this.c=n},s.ik=function(n){throw I(new Kn)},s.jk=function(n){throw I(new Kn)},s.kk=function(n){this.d=n};var icn;p(Ze,"BasicEObjectImpl/EPropertiesHolderBaseImpl",1983),g(185,1983,{108:1},hf),s.dk=function(){return this.a},s.ek=function(){return this.b},s.ik=function(n){this.a=n},s.jk=function(n){this.b=n},p(Ze,"BasicEObjectImpl/EPropertiesHolderImpl",185),g(506,97,jUe,qE),s.Kg=function(){return this.f},s.Pg=function(){return this.k},s.Rg=function(n,t){this.g=n,this.i=t},s.Tg=function(){return this.j&2?this.ph().ck():this.zh()},s.Vg=function(){return this.i},s.Mg=function(){return(this.j&1)!=0},s.eh=function(){return this.g},s.kh=function(){return(this.j&4)!=0},s.ph=function(){return!this.k&&(this.k=new hf),this.k},s.th=function(n){this.ph().hk(n),n?this.j|=2:this.j&=-3},s.vh=function(n){this.ph().jk(n),n?this.j|=4:this.j&=-5},s.zh=function(){return(Kh(),Je).S},s.i=0,s.j=1,p(Ze,"EObjectImpl",506),g(780,506,{105:1,92:1,90:1,56:1,108:1,49:1,97:1},lY),s.Ch=function(n){return this.e[n]},s.Dh=function(n,t){this.e[n]=t},s.Eh=function(n){this.e[n]=null},s.Tg=function(){return this.d},s.Yg=function(n){return Kt(this.d,n)},s.$g=function(){return this.d},s.dh=function(){return this.e!=null},s.ph=function(){return!this.k&&(this.k=new Q3e),this.k},s.th=function(n){this.d=n},s.yh=function(){var n;return this.e==null&&(n=yn(this.d),this.e=n==0?rcn:V(pn,pe,1,n,5,1)),this},s.Ah=function(){return 0};var rcn;p(Ze,"DynamicEObjectImpl",780),g(1376,780,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1},WSe),s.Fb=function(n){return this===n},s.Hb=function(){return c0(this)},s.th=function(n){this.d=n,this.b=ok(n,"key"),this.c=ok(n,ay)},s.Sh=function(){var n;return this.a==-1&&(n=bF(this,this.b),this.a=n==null?0:Bt(n)),this.a},s.cd=function(){return bF(this,this.b)},s.dd=function(){return bF(this,this.c)},s.Th=function(n){this.a=n},s.Uh=function(n){lQ(this,this.b,n)},s.ed=function(n){var t;return t=bF(this,this.c),lQ(this,this.c,n),t},s.a=0,p(Ze,"DynamicEObjectImpl/BasicEMapEntry",1376),g(1377,1,{108:1},Q3e),s.bk=function(n){throw I(new Kn)},s.Ch=function(n){throw I(new Kn)},s.Dh=function(n,t){throw I(new Kn)},s.Eh=function(n){throw I(new Kn)},s.ck=function(){throw I(new Kn)},s.dk=function(){return this.a},s.ek=function(){return this.b},s.fk=function(){return this.c},s.gk=function(){throw I(new Kn)},s.hk=function(n){throw I(new Kn)},s.ik=function(n){this.a=n},s.jk=function(n){this.b=n},s.kk=function(n){this.c=n},p(Ze,"DynamicEObjectImpl/DynamicEPropertiesHolderImpl",1377),g(510,150,{105:1,92:1,90:1,590:1,147:1,56:1,108:1,49:1,97:1,510:1,150:1,114:1,115:1},lz),s.Qg=function(n){return Aee(this,n)},s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.d;case 2:return i?(!this.b&&(this.b=new ps((Ke(),jr),Cc,this)),this.b):(!this.b&&(this.b=new ps((Ke(),jr),Cc,this)),u7(this.b));case 3:return mxe(this);case 4:return!this.a&&(this.a=new bi(T1,this,4)),this.a;case 5:return!this.c&&(this.c=new jg(T1,this,5)),this.c}return Js(this,n-yn((Ke(),mh)),Ge((r=u(en(this,16),26),r||mh),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 3:return this.Cb&&(i=(c=this.Db>>16,c>=0?Aee(this,i):this.Cb.ih(this,-1-c,null,i))),MY(this,u(n,147),i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),mh)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),mh)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 2:return!this.b&&(this.b=new ps((Ke(),jr),Cc,this)),aC(this.b,n,i);case 3:return MY(this,null,i);case 4:return!this.a&&(this.a=new bi(T1,this,4)),hr(this.a,n,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),mh)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),mh)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.d!=null;case 2:return!!this.b&&this.b.f!=0;case 3:return!!mxe(this);case 4:return!!this.a&&this.a.i!=0;case 5:return!!this.c&&this.c.i!=0}return Ys(this,n-yn((Ke(),mh)),Ge((t=u(en(this,16),26),t||mh),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:Ybn(this,Vn(t));return;case 2:!this.b&&(this.b=new ps((Ke(),jr),Cc,this)),ZM(this.b,t);return;case 3:OKe(this,u(t,147));return;case 4:!this.a&&(this.a=new bi(T1,this,4)),Dn(this.a),!this.a&&(this.a=new bi(T1,this,4)),Yt(this.a,u(t,14));return;case 5:!this.c&&(this.c=new jg(T1,this,5)),Dn(this.c),!this.c&&(this.c=new jg(T1,this,5)),Yt(this.c,u(t,14));return}io(this,n-yn((Ke(),mh)),Ge((i=u(en(this,16),26),i||mh),n),t)},s.zh=function(){return Ke(),mh},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:xJ(this,null);return;case 2:!this.b&&(this.b=new ps((Ke(),jr),Cc,this)),this.b.c.$b();return;case 3:OKe(this,null);return;case 4:!this.a&&(this.a=new bi(T1,this,4)),Dn(this.a);return;case 5:!this.c&&(this.c=new jg(T1,this,5)),Dn(this.c);return}no(this,n-yn((Ke(),mh)),Ge((t=u(en(this,16),26),t||mh),n))},s.Ib=function(){return UFe(this)},s.d=null,p(Ze,"EAnnotationImpl",510),g(151,705,oue,ks),s.Xh=function(n,t){Ohn(this,n,u(t,42))},s.lk=function(n,t){return Mdn(this,u(n,42),t)},s.pi=function(n){return u(u(this.c,69).pi(n),133)},s.Zh=function(){return u(this.c,69).Zh()},s.$h=function(){return u(this.c,69).$h()},s._h=function(n){return u(this.c,69)._h(n)},s.mk=function(n,t){return aC(this,n,t)},s.Wj=function(n){return u(this.c,76).Wj(n)},s.rj=function(){},s.fj=function(){return u(this.c,76).fj()},s.tj=function(n,t,i){var r;return r=u(xs(this.b).Nh().Jh(this.b),133),r.Th(n),r.Uh(t),r.ed(i),r},s.uj=function(){return new Xz(this)},s.Wb=function(n){ZM(this,n)},s.Xj=function(){u(this.c,76).Xj()},p(Nt,"EcoreEMap",151),g(158,151,oue,ps),s.qj=function(){var n,t,i,r,c,o;if(this.d==null){for(o=V(vde,sue,63,2*this.f+1,0,1),i=this.c.Kc();i.e!=i.i.gc();)t=u(i.nj(),133),r=t.Sh(),c=(r&vt)%o.length,n=o[c],!n&&(n=o[c]=new Xz(this)),n.Fc(t);this.d=o}},p(Ze,"EAnnotationImpl/1",158),g(284,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,472:1,49:1,97:1,150:1,284:1,114:1,115:1}),s._g=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return le(this.s);case 5:return le(this.t);case 6:return cn(),!!this.$j();case 7:return cn(),c=this.s,c>=1;case 8:return t?vo(this):this.r;case 9:return this.q}return Js(this,n-yn(this.zh()),Ge((r=u(en(this,16),26),r||this.zh()),n),t,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 9:return hL(this,i)}return c=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,lu(this),t-yn(this.zh()),n,i)},s.lh=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&d0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&d0(this.q).i==0)}return Ys(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.sh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:this.Lh(Vn(t));return;case 2:Za(this,ke(ye(t)));return;case 3:eh(this,ke(ye(t)));return;case 4:Ya(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:cd(this,u(t,138));return;case 9:r=Vf(this,u(t,87),null),r&&r.Fi();return}io(this,n-yn(this.zh()),Ge((i=u(en(this,16),26),i||this.zh()),n),t)},s.zh=function(){return Ke(),tcn},s.Bh=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:this.Lh(null);return;case 2:Za(this,!0);return;case 3:eh(this,!0);return;case 4:Ya(this,0);return;case 5:this.ok(1);return;case 8:cd(this,null);return;case 9:i=Vf(this,null,null),i&&i.Fi();return}no(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.Gh=function(){vo(this),this.Bb|=1},s.Yj=function(){return vo(this)},s.Zj=function(){return this.t},s.$j=function(){var n;return n=this.t,n>1||n==-1},s.hi=function(){return(this.Bb&512)!=0},s.nk=function(n,t){return TZ(this,n,t)},s.ok=function(n){tw(this,n)},s.Ib=function(){return Lne(this)},s.s=0,s.t=1,p(Ze,"ETypedElementImpl",284),g(449,284,{105:1,92:1,90:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,449:1,284:1,114:1,115:1,677:1}),s.Qg=function(n){return A_e(this,n)},s._g=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return le(this.s);case 5:return le(this.t);case 6:return cn(),!!this.$j();case 7:return cn(),c=this.s,c>=1;case 8:return t?vo(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&ef);case 11:return cn(),!!(this.Bb&xw);case 12:return cn(),!!(this.Bb&jw);case 13:return this.j;case 14:return h3(this);case 15:return cn(),!!(this.Bb&Vu);case 16:return cn(),!!(this.Bb&ml);case 17:return Ub(this)}return Js(this,n-yn(this.zh()),Ge((r=u(en(this,16),26),r||this.zh()),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 17:return this.Cb&&(i=(c=this.Db>>16,c>=0?A_e(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,17,i)}return o=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),o.Nj().Qj(this,lu(this),t-yn(this.zh()),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 9:return hL(this,i);case 17:return Ls(this,null,17,i)}return c=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,lu(this),t-yn(this.zh()),n,i)},s.lh=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return this.$j();case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&d0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&d0(this.q).i==0);case 10:return(this.Bb&ef)==0;case 11:return(this.Bb&xw)!=0;case 12:return(this.Bb&jw)!=0;case 13:return this.j!=null;case 14:return h3(this)!=null;case 15:return(this.Bb&Vu)!=0;case 16:return(this.Bb&ml)!=0;case 17:return!!Ub(this)}return Ys(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.sh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:RL(this,Vn(t));return;case 2:Za(this,ke(ye(t)));return;case 3:eh(this,ke(ye(t)));return;case 4:Ya(this,u(t,19).a);return;case 5:this.ok(u(t,19).a);return;case 8:cd(this,u(t,138));return;case 9:r=Vf(this,u(t,87),null),r&&r.Fi();return;case 10:Xv(this,ke(ye(t)));return;case 11:Jv(this,ke(ye(t)));return;case 12:Yv(this,ke(ye(t)));return;case 13:MW(this,Vn(t));return;case 15:Qv(this,ke(ye(t)));return;case 16:Zv(this,ke(ye(t)));return}io(this,n-yn(this.zh()),Ge((i=u(en(this,16),26),i||this.zh()),n),t)},s.zh=function(){return Ke(),ncn},s.Bh=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:_(this.Cb,88)&&dw(ns(u(this.Cb,88)),4),iu(this,null);return;case 2:Za(this,!0);return;case 3:eh(this,!0);return;case 4:Ya(this,0);return;case 5:this.ok(1);return;case 8:cd(this,null);return;case 9:i=Vf(this,null,null),i&&i.Fi();return;case 10:Xv(this,!0);return;case 11:Jv(this,!1);return;case 12:Yv(this,!1);return;case 13:this.i=null,VM(this,null);return;case 15:Qv(this,!1);return;case 16:Zv(this,!1);return}no(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.Gh=function(){wv(Vr((Ku(),Ji),this)),vo(this),this.Bb|=1},s.Gj=function(){return this.f},s.zj=function(){return h3(this)},s.Hj=function(){return Ub(this)},s.Lj=function(){return null},s.pk=function(){return this.k},s.aj=function(){return this.n},s.Mj=function(){return RS(this)},s.Nj=function(){var n,t,i,r,c,o,f,l,a;return this.p||(i=Ub(this),(i.i==null&&pl(i),i.i).length,r=this.Lj(),r&&yn(Ub(r)),c=vo(this),f=c.Bj(),n=f?f.i&1?f==as?Ti:f==$n?br:f==cg?H3:f==Ri?Vi:f==I1?J0:f==qp?Z0:f==zu?tm:jy:f:null,t=h3(this),l=c.zj(),x6n(this),this.Bb&ml&&((o=Fee((Ku(),Ji),i))&&o!=this||(o=k2(Vr(Ji,this))))?this.p=new LTe(this,o):this.$j()?this.rk()?r?this.Bb&Vu?n?this.sk()?this.p=new G1(47,n,this,r):this.p=new G1(5,n,this,r):this.sk()?this.p=new W1(46,this,r):this.p=new W1(4,this,r):n?this.sk()?this.p=new G1(49,n,this,r):this.p=new G1(7,n,this,r):this.sk()?this.p=new W1(48,this,r):this.p=new W1(6,this,r):this.Bb&Vu?n?n==Ed?this.p=new Va(50,Nrn,this):this.sk()?this.p=new Va(43,n,this):this.p=new Va(1,n,this):this.sk()?this.p=new za(42,this):this.p=new za(0,this):n?n==Ed?this.p=new Va(41,Nrn,this):this.sk()?this.p=new Va(45,n,this):this.p=new Va(3,n,this):this.sk()?this.p=new za(44,this):this.p=new za(2,this):_(c,148)?n==WI?this.p=new za(40,this):this.Bb&512?this.Bb&Vu?n?this.p=new Va(9,n,this):this.p=new za(8,this):n?this.p=new Va(11,n,this):this.p=new za(10,this):this.Bb&Vu?n?this.p=new Va(13,n,this):this.p=new za(12,this):n?this.p=new Va(15,n,this):this.p=new za(14,this):r?(a=r.t,a>1||a==-1?this.sk()?this.Bb&Vu?n?this.p=new G1(25,n,this,r):this.p=new W1(24,this,r):n?this.p=new G1(27,n,this,r):this.p=new W1(26,this,r):this.Bb&Vu?n?this.p=new G1(29,n,this,r):this.p=new W1(28,this,r):n?this.p=new G1(31,n,this,r):this.p=new W1(30,this,r):this.sk()?this.Bb&Vu?n?this.p=new G1(33,n,this,r):this.p=new W1(32,this,r):n?this.p=new G1(35,n,this,r):this.p=new W1(34,this,r):this.Bb&Vu?n?this.p=new G1(37,n,this,r):this.p=new W1(36,this,r):n?this.p=new G1(39,n,this,r):this.p=new W1(38,this,r)):this.sk()?this.Bb&Vu?n?this.p=new Va(17,n,this):this.p=new za(16,this):n?this.p=new Va(19,n,this):this.p=new za(18,this):this.Bb&Vu?n?this.p=new Va(21,n,this):this.p=new za(20,this):n?this.p=new Va(23,n,this):this.p=new za(22,this):this.qk()?this.sk()?this.p=new jSe(u(c,26),this,r):this.p=new fQ(u(c,26),this,r):_(c,148)?n==WI?this.p=new za(40,this):this.Bb&Vu?n?this.p=new yPe(t,l,this,(dN(),f==$n?Fde:f==as?Ide:f==I1?Nde:f==cg?Lde:f==Ri?$de:f==qp?_de:f==zu?Ode:f==lo?Dde:XV)):this.p=new OAe(u(c,148),t,l,this):n?this.p=new vPe(t,l,this,(dN(),f==$n?Fde:f==as?Ide:f==I1?Nde:f==cg?Lde:f==Ri?$de:f==qp?_de:f==zu?Ode:f==lo?Dde:XV)):this.p=new IAe(u(c,148),t,l,this):this.rk()?r?this.Bb&Vu?this.sk()?this.p=new TSe(u(c,26),this,r):this.p=new eY(u(c,26),this,r):this.sk()?this.p=new ESe(u(c,26),this,r):this.p=new q$(u(c,26),this,r):this.Bb&Vu?this.sk()?this.p=new vMe(u(c,26),this):this.p=new bX(u(c,26),this):this.sk()?this.p=new mMe(u(c,26),this):this.p=new P$(u(c,26),this):this.sk()?r?this.Bb&Vu?this.p=new CSe(u(c,26),this,r):this.p=new JX(u(c,26),this,r):this.Bb&Vu?this.p=new yMe(u(c,26),this):this.p=new wX(u(c,26),this):r?this.Bb&Vu?this.p=new MSe(u(c,26),this,r):this.p=new ZX(u(c,26),this,r):this.Bb&Vu?this.p=new kMe(u(c,26),this):this.p=new TC(u(c,26),this)),this.p},s.Ij=function(){return(this.Bb&ef)!=0},s.qk=function(){return!1},s.rk=function(){return!1},s.Jj=function(){return(this.Bb&ml)!=0},s.Oj=function(){return gF(this)},s.sk=function(){return!1},s.Kj=function(){return(this.Bb&Vu)!=0},s.tk=function(n){this.k=n},s.Lh=function(n){RL(this,n)},s.Ib=function(){return rP(this)},s.e=!1,s.n=0,p(Ze,"EStructuralFeatureImpl",449),g(322,449,{105:1,92:1,90:1,34:1,147:1,191:1,56:1,170:1,66:1,108:1,472:1,49:1,97:1,322:1,150:1,449:1,284:1,114:1,115:1,677:1},wD),s._g=function(n,t,i){var r,c;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return le(this.s);case 5:return le(this.t);case 6:return cn(),!!Ine(this);case 7:return cn(),c=this.s,c>=1;case 8:return t?vo(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&ef);case 11:return cn(),!!(this.Bb&xw);case 12:return cn(),!!(this.Bb&jw);case 13:return this.j;case 14:return h3(this);case 15:return cn(),!!(this.Bb&Vu);case 16:return cn(),!!(this.Bb&ml);case 17:return Ub(this);case 18:return cn(),!!(this.Bb&xc);case 19:return t?$F(this):OOe(this)}return Js(this,n-yn((Ke(),tg)),Ge((r=u(en(this,16),26),r||tg),n),t,i)},s.lh=function(n){var t,i;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return Ine(this);case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&d0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&d0(this.q).i==0);case 10:return(this.Bb&ef)==0;case 11:return(this.Bb&xw)!=0;case 12:return(this.Bb&jw)!=0;case 13:return this.j!=null;case 14:return h3(this)!=null;case 15:return(this.Bb&Vu)!=0;case 16:return(this.Bb&ml)!=0;case 17:return!!Ub(this);case 18:return(this.Bb&xc)!=0;case 19:return!!OOe(this)}return Ys(this,n-yn((Ke(),tg)),Ge((t=u(en(this,16),26),t||tg),n))},s.sh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:RL(this,Vn(t));return;case 2:Za(this,ke(ye(t)));return;case 3:eh(this,ke(ye(t)));return;case 4:Ya(this,u(t,19).a);return;case 5:lje(this,u(t,19).a);return;case 8:cd(this,u(t,138));return;case 9:r=Vf(this,u(t,87),null),r&&r.Fi();return;case 10:Xv(this,ke(ye(t)));return;case 11:Jv(this,ke(ye(t)));return;case 12:Yv(this,ke(ye(t)));return;case 13:MW(this,Vn(t));return;case 15:Qv(this,ke(ye(t)));return;case 16:Zv(this,ke(ye(t)));return;case 18:cN(this,ke(ye(t)));return}io(this,n-yn((Ke(),tg)),Ge((i=u(en(this,16),26),i||tg),n),t)},s.zh=function(){return Ke(),tg},s.Bh=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:_(this.Cb,88)&&dw(ns(u(this.Cb,88)),4),iu(this,null);return;case 2:Za(this,!0);return;case 3:eh(this,!0);return;case 4:Ya(this,0);return;case 5:this.b=0,tw(this,1);return;case 8:cd(this,null);return;case 9:i=Vf(this,null,null),i&&i.Fi();return;case 10:Xv(this,!0);return;case 11:Jv(this,!1);return;case 12:Yv(this,!1);return;case 13:this.i=null,VM(this,null);return;case 15:Qv(this,!1);return;case 16:Zv(this,!1);return;case 18:cN(this,!1);return}no(this,n-yn((Ke(),tg)),Ge((t=u(en(this,16),26),t||tg),n))},s.Gh=function(){$F(this),wv(Vr((Ku(),Ji),this)),vo(this),this.Bb|=1},s.$j=function(){return Ine(this)},s.nk=function(n,t){return this.b=0,this.a=null,TZ(this,n,t)},s.ok=function(n){lje(this,n)},s.Ib=function(){var n;return this.Db&64?rP(this):(n=new bo(rP(this)),n.a+=" (iD: ",Ka(n,(this.Bb&xc)!=0),n.a+=")",n.a)},s.b=0,p(Ze,"EAttributeImpl",322),g(351,438,{105:1,92:1,90:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,351:1,150:1,114:1,115:1,676:1}),s.uk=function(n){return n.Tg()==this},s.Qg=function(n){return BN(this,n)},s.Rg=function(n,t){this.w=null,this.Db=t<<16|this.Db&255,this.Cb=n},s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return F0(this);case 4:return this.zj();case 5:return this.F;case 6:return t?xs(this):mv(this);case 7:return!this.A&&(this.A=new Fu(gu,this,7)),this.A}return Js(this,n-yn(this.zh()),Ge((r=u(en(this,16),26),r||this.zh()),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?BN(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,6,i)}return o=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),o.Nj().Qj(this,lu(this),t-yn(this.zh()),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 6:return Ls(this,null,6,i);case 7:return!this.A&&(this.A=new Fu(gu,this,7)),hr(this.A,n,i)}return c=u(Ge((r=u(en(this,16),26),r||this.zh()),t),66),c.Nj().Rj(this,lu(this),t-yn(this.zh()),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!F0(this);case 4:return this.zj()!=null;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!mv(this);case 7:return!!this.A&&this.A.i!=0}return Ys(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:rM(this,Vn(t));return;case 2:w$(this,Vn(t));return;case 5:m3(this,Vn(t));return;case 7:!this.A&&(this.A=new Fu(gu,this,7)),Dn(this.A),!this.A&&(this.A=new Fu(gu,this,7)),Yt(this.A,u(t,14));return}io(this,n-yn(this.zh()),Ge((i=u(en(this,16),26),i||this.zh()),n),t)},s.zh=function(){return Ke(),Xrn},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:_(this.Cb,179)&&(u(this.Cb,179).tb=null),iu(this,null);return;case 2:Gv(this,null),Dv(this,this.D);return;case 5:m3(this,null);return;case 7:!this.A&&(this.A=new Fu(gu,this,7)),Dn(this.A);return}no(this,n-yn(this.zh()),Ge((t=u(en(this,16),26),t||this.zh()),n))},s.yj=function(){var n;return this.G==-1&&(this.G=(n=xs(this),n?nh(n.Mh(),this):-1)),this.G},s.zj=function(){return null},s.Aj=function(){return xs(this)},s.vk=function(){return this.v},s.Bj=function(){return F0(this)},s.Cj=function(){return this.D!=null?this.D:this.B},s.Dj=function(){return this.F},s.wj=function(n){return I_(this,n)},s.wk=function(n){this.v=n},s.xk=function(n){oLe(this,n)},s.yk=function(n){this.C=n},s.Lh=function(n){rM(this,n)},s.Ib=function(){return gS(this)},s.C=null,s.D=null,s.G=-1,p(Ze,"EClassifierImpl",351),g(88,351,{105:1,92:1,90:1,26:1,138:1,147:1,191:1,56:1,108:1,49:1,97:1,88:1,351:1,150:1,473:1,114:1,115:1,676:1},wz),s.uk=function(n){return hdn(this,n.Tg())},s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return this.D!=null?this.D:this.B;case 3:return F0(this);case 4:return null;case 5:return this.F;case 6:return t?xs(this):mv(this);case 7:return!this.A&&(this.A=new Fu(gu,this,7)),this.A;case 8:return cn(),!!(this.Bb&256);case 9:return cn(),!!(this.Bb&512);case 10:return Wr(this);case 11:return!this.q&&(this.q=new fe(Lo,this,11,10)),this.q;case 12:return Jg(this);case 13:return _6(this);case 14:return _6(this),this.r;case 15:return Jg(this),this.k;case 16:return kne(this);case 17:return F_(this);case 18:return pl(this);case 19:return QS(this);case 20:return Jg(this),this.o;case 21:return!this.s&&(this.s=new fe(Du,this,21,17)),this.s;case 22:return Bc(this);case 23:return k_(this)}return Js(this,n-yn((Ke(),S1)),Ge((r=u(en(this,16),26),r||S1),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 6:return this.Cb&&(i=(c=this.Db>>16,c>=0?BN(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,6,i);case 11:return!this.q&&(this.q=new fe(Lo,this,11,10)),ru(this.q,n,i);case 21:return!this.s&&(this.s=new fe(Du,this,21,17)),ru(this.s,n,i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),S1)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),S1)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 6:return Ls(this,null,6,i);case 7:return!this.A&&(this.A=new Fu(gu,this,7)),hr(this.A,n,i);case 11:return!this.q&&(this.q=new fe(Lo,this,11,10)),hr(this.q,n,i);case 21:return!this.s&&(this.s=new fe(Du,this,21,17)),hr(this.s,n,i);case 22:return hr(Bc(this),n,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),S1)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),S1)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!F0(this);case 4:return!1;case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!mv(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)!=0;case 9:return(this.Bb&512)!=0;case 10:return!!this.u&&Bc(this.u.a).i!=0&&!(this.n&&PN(this.n));case 11:return!!this.q&&this.q.i!=0;case 12:return Jg(this).i!=0;case 13:return _6(this).i!=0;case 14:return _6(this),this.r.i!=0;case 15:return Jg(this),this.k.i!=0;case 16:return kne(this).i!=0;case 17:return F_(this).i!=0;case 18:return pl(this).i!=0;case 19:return QS(this).i!=0;case 20:return Jg(this),!!this.o;case 21:return!!this.s&&this.s.i!=0;case 22:return!!this.n&&PN(this.n);case 23:return k_(this).i!=0}return Ys(this,n-yn((Ke(),S1)),Ge((t=u(en(this,16),26),t||S1),n))},s.oh=function(n){var t;return t=this.i==null||this.q&&this.q.i!=0?null:ok(this,n),t||Jte(this,n)},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:rM(this,Vn(t));return;case 2:w$(this,Vn(t));return;case 5:m3(this,Vn(t));return;case 7:!this.A&&(this.A=new Fu(gu,this,7)),Dn(this.A),!this.A&&(this.A=new Fu(gu,this,7)),Yt(this.A,u(t,14));return;case 8:MZ(this,ke(ye(t)));return;case 9:SZ(this,ke(ye(t)));return;case 10:K6(Wr(this)),Yt(Wr(this),u(t,14));return;case 11:!this.q&&(this.q=new fe(Lo,this,11,10)),Dn(this.q),!this.q&&(this.q=new fe(Lo,this,11,10)),Yt(this.q,u(t,14));return;case 21:!this.s&&(this.s=new fe(Du,this,21,17)),Dn(this.s),!this.s&&(this.s=new fe(Du,this,21,17)),Yt(this.s,u(t,14));return;case 22:Dn(Bc(this)),Yt(Bc(this),u(t,14));return}io(this,n-yn((Ke(),S1)),Ge((i=u(en(this,16),26),i||S1),n),t)},s.zh=function(){return Ke(),S1},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:_(this.Cb,179)&&(u(this.Cb,179).tb=null),iu(this,null);return;case 2:Gv(this,null),Dv(this,this.D);return;case 5:m3(this,null);return;case 7:!this.A&&(this.A=new Fu(gu,this,7)),Dn(this.A);return;case 8:MZ(this,!1);return;case 9:SZ(this,!1);return;case 10:this.u&&K6(this.u);return;case 11:!this.q&&(this.q=new fe(Lo,this,11,10)),Dn(this.q);return;case 21:!this.s&&(this.s=new fe(Du,this,21,17)),Dn(this.s);return;case 22:this.n&&Dn(this.n);return}no(this,n-yn((Ke(),S1)),Ge((t=u(en(this,16),26),t||S1),n))},s.Gh=function(){var n,t;if(Jg(this),_6(this),kne(this),F_(this),pl(this),QS(this),k_(this),e6(Abn(ns(this))),this.s)for(n=0,t=this.s.i;n=0;--t)K(this,t);return XZ(this,n)},s.Xj=function(){Dn(this)},s.oi=function(n,t){return I$e(this,n,t)},p(Nt,"EcoreEList",622),g(496,622,cc,K8),s.ai=function(){return!1},s.aj=function(){return this.c},s.bj=function(){return!1},s.Fk=function(){return!0},s.hi=function(){return!0},s.li=function(n,t){return t},s.ni=function(){return!1},s.c=0,p(Nt,"EObjectEList",496),g(85,496,cc,bi),s.bj=function(){return!0},s.Dk=function(){return!1},s.rk=function(){return!0},p(Nt,"EObjectContainmentEList",85),g(545,85,cc,eC),s.ci=function(){this.b=!0},s.fj=function(){return this.b},s.Xj=function(){var n;Dn(this),gs(this.e)?(n=this.b,this.b=!1,yt(this.e,new Xo(this.e,2,this.c,n,!1))):this.b=!1},s.b=!1,p(Nt,"EObjectContainmentEList/Unsettable",545),g(1140,545,cc,pPe),s.ii=function(n,t){var i,r;return i=u(g6(this,n,t),87),gs(this.e)&&Km(this,new o7(this.a,7,(Ke(),Yrn),le(t),(r=i.c,_(r,88)?u(r,26):No),n)),i},s.jj=function(n,t){return pyn(this,u(n,87),t)},s.kj=function(n,t){return gyn(this,u(n,87),t)},s.lj=function(n,t,i){return m7n(this,u(n,87),u(t,87),i)},s.Zi=function(n,t,i,r,c){switch(n){case 3:return W5(this,n,t,i,r,this.i>1);case 5:return W5(this,n,t,i,r,this.i-u(i,15).gc()>0);default:return new pa(this.e,n,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return PN(this)},s.Xj=function(){Dn(this)},p(Ze,"EClassImpl/1",1140),g(1154,1153,uue),s.ui=function(n){var t,i,r,c,o,f,l;if(i=n.xi(),i!=8){if(r=e9n(n),r==0)switch(i){case 1:case 9:{l=n.Bi(),l!=null&&(t=ns(u(l,473)),!t.c&&(t.c=new Lm),PM(t.c,n.Ai())),f=n.zi(),f!=null&&(c=u(f,473),c.Bb&1||(t=ns(c),!t.c&&(t.c=new Lm),Bn(t.c,u(n.Ai(),26))));break}case 3:{f=n.zi(),f!=null&&(c=u(f,473),c.Bb&1||(t=ns(c),!t.c&&(t.c=new Lm),Bn(t.c,u(n.Ai(),26))));break}case 5:{if(f=n.zi(),f!=null)for(o=u(f,14).Kc();o.Ob();)c=u(o.Pb(),473),c.Bb&1||(t=ns(c),!t.c&&(t.c=new Lm),Bn(t.c,u(n.Ai(),26)));break}case 4:{l=n.Bi(),l!=null&&(c=u(l,473),c.Bb&1||(t=ns(c),!t.c&&(t.c=new Lm),PM(t.c,n.Ai())));break}case 6:{if(l=n.Bi(),l!=null)for(o=u(l,14).Kc();o.Ob();)c=u(o.Pb(),473),c.Bb&1||(t=ns(c),!t.c&&(t.c=new Lm),PM(t.c,n.Ai()));break}}this.Hk(r)}},s.Hk=function(n){gqe(this,n)},s.b=63,p(Ze,"ESuperAdapter",1154),g(1155,1154,uue,A7e),s.Hk=function(n){dw(this,n)},p(Ze,"EClassImpl/10",1155),g(1144,696,cc),s.Vh=function(n,t){return YN(this,n,t)},s.Wh=function(n){return h_e(this,n)},s.Xh=function(n,t){L7(this,n,t)},s.Yh=function(n){i7(this,n)},s.pi=function(n){return rJ(this,n)},s.mi=function(n,t){return wF(this,n,t)},s.lk=function(n,t){throw I(new Kn)},s.Zh=function(){return new f2(this)},s.$h=function(){return new A8(this)},s._h=function(n){return y7(this,n)},s.mk=function(n,t){throw I(new Kn)},s.Wj=function(n){return this},s.fj=function(){return this.i!=0},s.Wb=function(n){throw I(new Kn)},s.Xj=function(){throw I(new Kn)},p(Nt,"EcoreEList/UnmodifiableEList",1144),g(319,1144,cc,mg),s.ni=function(){return!1},p(Nt,"EcoreEList/UnmodifiableEList/FastCompare",319),g(1147,319,cc,eFe),s.Xc=function(n){var t,i,r;if(_(n,170)&&(t=u(n,170),i=t.aj(),i!=-1)){for(r=this.i;i4)if(this.wj(n)){if(this.rk()){if(r=u(n,49),i=r.Ug(),l=i==this.b&&(this.Dk()?r.Og(r.Vg(),u(Ge(ku(this.b),this.aj()).Yj(),26).Bj())==Cr(u(Ge(ku(this.b),this.aj()),18)).n:-1-r.Vg()==this.aj()),this.Ek()&&!l&&!i&&r.Zg()){for(c=0;c1||r==-1)):!1},s.Dk=function(){var n,t,i;return t=Ge(ku(this.b),this.aj()),_(t,99)?(n=u(t,18),i=Cr(n),!!i):!1},s.Ek=function(){var n,t;return t=Ge(ku(this.b),this.aj()),_(t,99)?(n=u(t,18),(n.Bb&yr)!=0):!1},s.Xc=function(n){var t,i,r,c;if(r=this.Qi(n),r>=0)return r;if(this.Fk()){for(i=0,c=this.Vi();i=0;--n)pk(this,n,this.Oi(n));return this.Wi()},s.Qc=function(n){var t;if(this.Ek())for(t=this.Vi()-1;t>=0;--t)pk(this,t,this.Oi(t));return this.Xi(n)},s.Xj=function(){K6(this)},s.oi=function(n,t){return wDe(this,n,t)},p(Nt,"DelegatingEcoreEList",742),g(1150,742,lue,OMe),s.Hi=function(n,t){R1n(this,n,u(t,26))},s.Ii=function(n){$hn(this,u(n,26))},s.Oi=function(n){var t,i;return t=u(K(Bc(this.a),n),87),i=t.c,_(i,88)?u(i,26):(Ke(),No)},s.Ti=function(n){var t,i;return t=u(ww(Bc(this.a),n),87),i=t.c,_(i,88)?u(i,26):(Ke(),No)},s.Ui=function(n,t){return K9n(this,n,u(t,26))},s.ai=function(){return!1},s.Zi=function(n,t,i,r,c){return null},s.Ji=function(){return new I7e(this)},s.Ki=function(){Dn(Bc(this.a))},s.Li=function(n){return GFe(this,n)},s.Mi=function(n){var t,i;for(i=n.Kc();i.Ob();)if(t=i.Pb(),!GFe(this,t))return!1;return!0},s.Ni=function(n){var t,i,r;if(_(n,15)&&(r=u(n,15),r.gc()==Bc(this.a).i)){for(t=r.Kc(),i=new jn(this);t.Ob();)if(X(t.Pb())!==X(Sn(i)))return!1;return!0}return!1},s.Pi=function(){var n,t,i,r,c;for(i=1,t=new jn(Bc(this.a));t.e!=t.i.gc();)n=u(Sn(t),87),r=(c=n.c,_(c,88)?u(c,26):(Ke(),No)),i=31*i+(r?c0(r):0);return i},s.Qi=function(n){var t,i,r,c;for(r=0,i=new jn(Bc(this.a));i.e!=i.i.gc();){if(t=u(Sn(i),87),X(n)===X((c=t.c,_(c,88)?u(c,26):(Ke(),No))))return r;++r}return-1},s.Ri=function(){return Bc(this.a).i==0},s.Si=function(){return null},s.Vi=function(){return Bc(this.a).i},s.Wi=function(){var n,t,i,r,c,o;for(o=Bc(this.a).i,c=V(pn,pe,1,o,5,1),i=0,t=new jn(Bc(this.a));t.e!=t.i.gc();)n=u(Sn(t),87),c[i++]=(r=n.c,_(r,88)?u(r,26):(Ke(),No));return c},s.Xi=function(n){var t,i,r,c,o,f,l;for(l=Bc(this.a).i,n.lengthl&&zt(n,l,null),r=0,i=new jn(Bc(this.a));i.e!=i.i.gc();)t=u(Sn(i),87),o=(f=t.c,_(f,88)?u(f,26):(Ke(),No)),zt(n,r++,o);return n},s.Yi=function(){var n,t,i,r,c;for(c=new Ra,c.a+="[",n=Bc(this.a),t=0,r=Bc(this.a).i;t>16,c>=0?BN(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,6,i);case 9:return!this.a&&(this.a=new fe(Fa,this,9,5)),ru(this.a,n,i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),P1)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),P1)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 6:return Ls(this,null,6,i);case 7:return!this.A&&(this.A=new Fu(gu,this,7)),hr(this.A,n,i);case 9:return!this.a&&(this.a=new fe(Fa,this,9,5)),hr(this.a,n,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),P1)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),P1)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.D!=null&&this.D==this.F;case 3:return!!F0(this);case 4:return!!hZ(this);case 5:return this.F!=null&&this.F!=this.D&&this.F!=this.B;case 6:return!!mv(this);case 7:return!!this.A&&this.A.i!=0;case 8:return(this.Bb&256)==0;case 9:return!!this.a&&this.a.i!=0}return Ys(this,n-yn((Ke(),P1)),Ge((t=u(en(this,16),26),t||P1),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:rM(this,Vn(t));return;case 2:w$(this,Vn(t));return;case 5:m3(this,Vn(t));return;case 7:!this.A&&(this.A=new Fu(gu,this,7)),Dn(this.A),!this.A&&(this.A=new Fu(gu,this,7)),Yt(this.A,u(t,14));return;case 8:lS(this,ke(ye(t)));return;case 9:!this.a&&(this.a=new fe(Fa,this,9,5)),Dn(this.a),!this.a&&(this.a=new fe(Fa,this,9,5)),Yt(this.a,u(t,14));return}io(this,n-yn((Ke(),P1)),Ge((i=u(en(this,16),26),i||P1),n),t)},s.zh=function(){return Ke(),P1},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:_(this.Cb,179)&&(u(this.Cb,179).tb=null),iu(this,null);return;case 2:Gv(this,null),Dv(this,this.D);return;case 5:m3(this,null);return;case 7:!this.A&&(this.A=new Fu(gu,this,7)),Dn(this.A);return;case 8:lS(this,!0);return;case 9:!this.a&&(this.a=new fe(Fa,this,9,5)),Dn(this.a);return}no(this,n-yn((Ke(),P1)),Ge((t=u(en(this,16),26),t||P1),n))},s.Gh=function(){var n,t;if(this.a)for(n=0,t=this.a.i;n>16==5?u(this.Cb,671):null}return Js(this,n-yn((Ke(),vh)),Ge((r=u(en(this,16),26),r||vh),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 5:return this.Cb&&(i=(c=this.Db>>16,c>=0?N_e(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,5,i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),vh)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),vh)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 5:return Ls(this,null,5,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),vh)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),vh)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return this.d!=0;case 3:return!!this.b;case 4:return this.c!=null;case 5:return!!(this.Db>>16==5&&u(this.Cb,671))}return Ys(this,n-yn((Ke(),vh)),Ge((t=u(en(this,16),26),t||vh),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:iu(this,Vn(t));return;case 2:kF(this,u(t,19).a);return;case 3:ORe(this,u(t,1940));return;case 4:EF(this,Vn(t));return}io(this,n-yn((Ke(),vh)),Ge((i=u(en(this,16),26),i||vh),n),t)},s.zh=function(){return Ke(),vh},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:iu(this,null);return;case 2:kF(this,0);return;case 3:ORe(this,null);return;case 4:EF(this,null);return}no(this,n-yn((Ke(),vh)),Ge((t=u(en(this,16),26),t||vh),n))},s.Ib=function(){var n;return n=this.c,n??this.zb},s.b=null,s.c=null,s.d=0,p(Ze,"EEnumLiteralImpl",573);var zDn=Ht(Ze,"EFactoryImpl/InternalEDateTimeFormat");g(489,1,{2015:1},n8),p(Ze,"EFactoryImpl/1ClientInternalEDateTimeFormat",489),g(241,115,{105:1,92:1,90:1,87:1,56:1,108:1,49:1,97:1,241:1,114:1,115:1},zd),s.Sg=function(n,t,i){var r;return i=Ls(this,n,t,i),this.e&&_(n,170)&&(r=YS(this,this.e),r!=this.c&&(i=v3(this,r,i))),i},s._g=function(n,t,i){var r;switch(n){case 0:return this.f;case 1:return!this.d&&(this.d=new bi($r,this,1)),this.d;case 2:return t?sP(this):this.c;case 3:return this.b;case 4:return this.e;case 5:return t?IN(this):this.a}return Js(this,n-yn((Ke(),gb)),Ge((r=u(en(this,16),26),r||gb),n),t,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return LFe(this,null,i);case 1:return!this.d&&(this.d=new bi($r,this,1)),hr(this.d,n,i);case 3:return $Fe(this,null,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),gb)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),gb)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.f;case 1:return!!this.d&&this.d.i!=0;case 2:return!!this.c;case 3:return!!this.b;case 4:return!!this.e;case 5:return!!this.a}return Ys(this,n-yn((Ke(),gb)),Ge((t=u(en(this,16),26),t||gb),n))},s.sh=function(n,t){var i;switch(n){case 0:nBe(this,u(t,87));return;case 1:!this.d&&(this.d=new bi($r,this,1)),Dn(this.d),!this.d&&(this.d=new bi($r,this,1)),Yt(this.d,u(t,14));return;case 3:Gee(this,u(t,87));return;case 4:one(this,u(t,836));return;case 5:Pv(this,u(t,138));return}io(this,n-yn((Ke(),gb)),Ge((i=u(en(this,16),26),i||gb),n),t)},s.zh=function(){return Ke(),gb},s.Bh=function(n){var t;switch(n){case 0:nBe(this,null);return;case 1:!this.d&&(this.d=new bi($r,this,1)),Dn(this.d);return;case 3:Gee(this,null);return;case 4:one(this,null);return;case 5:Pv(this,null);return}no(this,n-yn((Ke(),gb)),Ge((t=u(en(this,16),26),t||gb),n))},s.Ib=function(){var n;return n=new Cs(Jo(this)),n.a+=" (expression: ",R_(this,n),n.a+=")",n.a};var xde;p(Ze,"EGenericTypeImpl",241),g(1969,1964,bA),s.Xh=function(n,t){AMe(this,n,t)},s.lk=function(n,t){return AMe(this,this.gc(),n),t},s.pi=function(n){return kf(this.Gi(),n)},s.Zh=function(){return this.$h()},s.Gi=function(){return new L7e(this)},s.$h=function(){return this._h(0)},s._h=function(n){return this.Gi().Zc(n)},s.mk=function(n,t){return cw(this,n,!0),t},s.ii=function(n,t){var i,r;return r=KN(this,t),i=this.Zc(n),i.Rb(r),r},s.ji=function(n,t){var i;cw(this,t,!0),i=this.Zc(n),i.Rb(t)},p(Nt,"AbstractSequentialInternalEList",1969),g(486,1969,bA,P8),s.pi=function(n){return kf(this.Gi(),n)},s.Zh=function(){return this.b==null?(qa(),qa(),cE):this.Jk()},s.Gi=function(){return new eCe(this.a,this.b)},s.$h=function(){return this.b==null?(qa(),qa(),cE):this.Jk()},s._h=function(n){var t,i;if(this.b==null){if(n<0||n>1)throw I(new Rr(hy+n+", size=0"));return qa(),qa(),cE}for(i=this.Jk(),t=0;t0;)if(t=this.c[--this.d],(!this.e||t.Gj()!=T4||t.aj()!=0)&&(!this.Mk()||this.b.mh(t))){if(o=this.b.bh(t,this.Lk()),this.f=(Er(),u(t,66).Oj()),this.f||t.$j()){if(this.Lk()?(r=u(o,15),this.k=r):(r=u(o,69),this.k=this.j=r),_(this.k,54)?(this.o=this.k.gc(),this.n=this.o):this.p=this.j?this.j._h(this.k.gc()):this.k.Zc(this.k.gc()),this.p?UBe(this,this.p):cRe(this))return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,72),n.ak(),i=n.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}else if(o!=null)return this.k=null,this.p=null,i=o,this.i=i,this.g=-2,!0}return this.k=null,this.p=null,this.g=-1,!1}else return c=this.p?this.p.Ub():this.j?this.j.pi(--this.n):this.k.Xb(--this.n),this.f?(n=u(c,72),n.ak(),i=n.dd(),this.i=i):(i=c,this.i=i),this.g=-3,!0}},s.Pb=function(){return eS(this)},s.Tb=function(){return this.a},s.Ub=function(){var n;if(this.g<-1||this.Sb())return--this.a,this.g=0,n=this.i,this.Sb(),n;throw I(new Sc)},s.Vb=function(){return this.a-1},s.Qb=function(){throw I(new Kn)},s.Lk=function(){return!1},s.Wb=function(n){throw I(new Kn)},s.Mk=function(){return!0},s.a=0,s.d=0,s.f=!1,s.g=0,s.n=0,s.o=0;var cE;p(Nt,"EContentsEList/FeatureIteratorImpl",279),g(697,279,wA,dX),s.Lk=function(){return!0},p(Nt,"EContentsEList/ResolvingFeatureIteratorImpl",697),g(1157,697,wA,pMe),s.Mk=function(){return!1},p(Ze,"ENamedElementImpl/1/1",1157),g(1158,279,wA,gMe),s.Mk=function(){return!1},p(Ze,"ENamedElementImpl/1/2",1158),g(36,143,Gk,Yb,WL,Di,fF,pa,Xo,pJ,Gxe,mJ,zxe,qQ,Uxe,kJ,Wxe,HQ,Xxe,vJ,Yxe,K5,o7,ML,yJ,Qxe,VQ,Jxe),s._i=function(){return nJ(this)},s.gj=function(){var n;return n=nJ(this),n?n.zj():null},s.yi=function(n){return this.b==-1&&this.a&&(this.b=this.c.Xg(this.a.aj(),this.a.Gj())),this.c.Og(this.b,n)},s.Ai=function(){return this.c},s.hj=function(){var n;return n=nJ(this),n?n.Kj():!1},s.b=-1,p(Ze,"ENotificationImpl",36),g(399,284,{105:1,92:1,90:1,147:1,191:1,56:1,59:1,108:1,472:1,49:1,97:1,150:1,399:1,284:1,114:1,115:1},gD),s.Qg=function(n){return R_e(this,n)},s._g=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return le(this.s);case 5:return le(this.t);case 6:return cn(),o=this.t,o>1||o==-1;case 7:return cn(),c=this.s,c>=1;case 8:return t?vo(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,26):null;case 11:return!this.d&&(this.d=new Fu(gu,this,11)),this.d;case 12:return!this.c&&(this.c=new fe(wb,this,12,10)),this.c;case 13:return!this.a&&(this.a=new $8(this,this)),this.a;case 14:return ts(this)}return Js(this,n-yn((Ke(),yh)),Ge((r=u(en(this,16),26),r||yh),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?R_e(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,10,i);case 12:return!this.c&&(this.c=new fe(wb,this,12,10)),ru(this.c,n,i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),yh)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),yh)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 9:return hL(this,i);case 10:return Ls(this,null,10,i);case 11:return!this.d&&(this.d=new Fu(gu,this,11)),hr(this.d,n,i);case 12:return!this.c&&(this.c=new fe(wb,this,12,10)),hr(this.c,n,i);case 14:return hr(ts(this),n,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),yh)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),yh)),n,i)},s.lh=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&d0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&d0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,26));case 11:return!!this.d&&this.d.i!=0;case 12:return!!this.c&&this.c.i!=0;case 13:return!!this.a&&ts(this.a.a).i!=0&&!(this.b&&AN(this.b));case 14:return!!this.b&&AN(this.b)}return Ys(this,n-yn((Ke(),yh)),Ge((t=u(en(this,16),26),t||yh),n))},s.sh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:iu(this,Vn(t));return;case 2:Za(this,ke(ye(t)));return;case 3:eh(this,ke(ye(t)));return;case 4:Ya(this,u(t,19).a);return;case 5:tw(this,u(t,19).a);return;case 8:cd(this,u(t,138));return;case 9:r=Vf(this,u(t,87),null),r&&r.Fi();return;case 11:!this.d&&(this.d=new Fu(gu,this,11)),Dn(this.d),!this.d&&(this.d=new Fu(gu,this,11)),Yt(this.d,u(t,14));return;case 12:!this.c&&(this.c=new fe(wb,this,12,10)),Dn(this.c),!this.c&&(this.c=new fe(wb,this,12,10)),Yt(this.c,u(t,14));return;case 13:!this.a&&(this.a=new $8(this,this)),K6(this.a),!this.a&&(this.a=new $8(this,this)),Yt(this.a,u(t,14));return;case 14:Dn(ts(this)),Yt(ts(this),u(t,14));return}io(this,n-yn((Ke(),yh)),Ge((i=u(en(this,16),26),i||yh),n),t)},s.zh=function(){return Ke(),yh},s.Bh=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:iu(this,null);return;case 2:Za(this,!0);return;case 3:eh(this,!0);return;case 4:Ya(this,0);return;case 5:tw(this,1);return;case 8:cd(this,null);return;case 9:i=Vf(this,null,null),i&&i.Fi();return;case 11:!this.d&&(this.d=new Fu(gu,this,11)),Dn(this.d);return;case 12:!this.c&&(this.c=new fe(wb,this,12,10)),Dn(this.c);return;case 13:this.a&&K6(this.a);return;case 14:this.b&&Dn(this.b);return}no(this,n-yn((Ke(),yh)),Ge((t=u(en(this,16),26),t||yh),n))},s.Gh=function(){var n,t;if(this.c)for(n=0,t=this.c.i;nl&&zt(n,l,null),r=0,i=new jn(ts(this.a));i.e!=i.i.gc();)t=u(Sn(i),87),o=(f=t.c,f||(Ke(),tl)),zt(n,r++,o);return n},s.Yi=function(){var n,t,i,r,c;for(c=new Ra,c.a+="[",n=ts(this.a),t=0,r=ts(this.a).i;t1);case 5:return W5(this,n,t,i,r,this.i-u(i,15).gc()>0);default:return new pa(this.e,n,this.c,t,i,r,!0)}},s.ij=function(){return!0},s.fj=function(){return AN(this)},s.Xj=function(){Dn(this)},p(Ze,"EOperationImpl/2",1341),g(498,1,{1938:1,498:1},$Te),p(Ze,"EPackageImpl/1",498),g(16,85,cc,fe),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.Dk=function(){return!0},s.b=0,p(Nt,"EObjectContainmentWithInverseEList",16),g(353,16,cc,l2),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectContainmentWithInverseEList/Resolving",353),g(298,353,cc,Vb),s.ci=function(){this.a.tb=null},p(Ze,"EPackageImpl/2",298),g(1228,1,{},Ofn),p(Ze,"EPackageImpl/3",1228),g(718,43,tp,wU),s._b=function(n){return Ni(n)?SL(this,n):!!Xr(this.f,n)},p(Ze,"EPackageRegistryImpl",718),g(509,284,{105:1,92:1,90:1,147:1,191:1,56:1,2017:1,108:1,472:1,49:1,97:1,150:1,509:1,284:1,114:1,115:1},pD),s.Qg=function(n){return K_e(this,n)},s._g=function(n,t,i){var r,c,o;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return le(this.s);case 5:return le(this.t);case 6:return cn(),o=this.t,o>1||o==-1;case 7:return cn(),c=this.s,c>=1;case 8:return t?vo(this):this.r;case 9:return this.q;case 10:return this.Db>>16==10?u(this.Cb,59):null}return Js(this,n-yn((Ke(),ig)),Ge((r=u(en(this,16),26),r||ig),n),t,i)},s.hh=function(n,t,i){var r,c,o;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),ru(this.Ab,n,i);case 10:return this.Cb&&(i=(c=this.Db>>16,c>=0?K_e(this,i):this.Cb.ih(this,-1-c,null,i))),Ls(this,n,10,i)}return o=u(Ge((r=u(en(this,16),26),r||(Ke(),ig)),t),66),o.Nj().Qj(this,lu(this),t-yn((Ke(),ig)),n,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 9:return hL(this,i);case 10:return Ls(this,null,10,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),ig)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),ig)),n,i)},s.lh=function(n){var t,i,r;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return r=this.t,r>1||r==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&d0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&d0(this.q).i==0);case 10:return!!(this.Db>>16==10&&u(this.Cb,59))}return Ys(this,n-yn((Ke(),ig)),Ge((t=u(en(this,16),26),t||ig),n))},s.zh=function(){return Ke(),ig},p(Ze,"EParameterImpl",509),g(99,449,{105:1,92:1,90:1,147:1,191:1,56:1,18:1,170:1,66:1,108:1,472:1,49:1,97:1,150:1,99:1,449:1,284:1,114:1,115:1,677:1},mX),s._g=function(n,t,i){var r,c,o,f;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return cn(),!!(this.Bb&256);case 3:return cn(),!!(this.Bb&512);case 4:return le(this.s);case 5:return le(this.t);case 6:return cn(),f=this.t,f>1||f==-1;case 7:return cn(),c=this.s,c>=1;case 8:return t?vo(this):this.r;case 9:return this.q;case 10:return cn(),!!(this.Bb&ef);case 11:return cn(),!!(this.Bb&xw);case 12:return cn(),!!(this.Bb&jw);case 13:return this.j;case 14:return h3(this);case 15:return cn(),!!(this.Bb&Vu);case 16:return cn(),!!(this.Bb&ml);case 17:return Ub(this);case 18:return cn(),!!(this.Bb&xc);case 19:return cn(),o=Cr(this),!!(o&&o.Bb&xc);case 20:return cn(),!!(this.Bb&yr);case 21:return t?Cr(this):this.b;case 22:return t?nZ(this):yOe(this);case 23:return!this.a&&(this.a=new jg(eg,this,23)),this.a}return Js(this,n-yn((Ke(),_p)),Ge((r=u(en(this,16),26),r||_p),n),t,i)},s.lh=function(n){var t,i,r,c;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return(this.Bb&256)==0;case 3:return(this.Bb&512)==0;case 4:return this.s!=0;case 5:return this.t!=1;case 6:return c=this.t,c>1||c==-1;case 7:return i=this.s,i>=1;case 8:return!!this.r&&!this.q.e&&d0(this.q).i==0;case 9:return!!this.q&&!(this.r&&!this.q.e&&d0(this.q).i==0);case 10:return(this.Bb&ef)==0;case 11:return(this.Bb&xw)!=0;case 12:return(this.Bb&jw)!=0;case 13:return this.j!=null;case 14:return h3(this)!=null;case 15:return(this.Bb&Vu)!=0;case 16:return(this.Bb&ml)!=0;case 17:return!!Ub(this);case 18:return(this.Bb&xc)!=0;case 19:return r=Cr(this),!!r&&(r.Bb&xc)!=0;case 20:return(this.Bb&yr)==0;case 21:return!!this.b;case 22:return!!yOe(this);case 23:return!!this.a&&this.a.i!=0}return Ys(this,n-yn((Ke(),_p)),Ge((t=u(en(this,16),26),t||_p),n))},s.sh=function(n,t){var i,r;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:RL(this,Vn(t));return;case 2:Za(this,ke(ye(t)));return;case 3:eh(this,ke(ye(t)));return;case 4:Ya(this,u(t,19).a);return;case 5:tw(this,u(t,19).a);return;case 8:cd(this,u(t,138));return;case 9:r=Vf(this,u(t,87),null),r&&r.Fi();return;case 10:Xv(this,ke(ye(t)));return;case 11:Jv(this,ke(ye(t)));return;case 12:Yv(this,ke(ye(t)));return;case 13:MW(this,Vn(t));return;case 15:Qv(this,ke(ye(t)));return;case 16:Zv(this,ke(ye(t)));return;case 18:zpn(this,ke(ye(t)));return;case 20:OZ(this,ke(ye(t)));return;case 21:IJ(this,u(t,18));return;case 23:!this.a&&(this.a=new jg(eg,this,23)),Dn(this.a),!this.a&&(this.a=new jg(eg,this,23)),Yt(this.a,u(t,14));return}io(this,n-yn((Ke(),_p)),Ge((i=u(en(this,16),26),i||_p),n),t)},s.zh=function(){return Ke(),_p},s.Bh=function(n){var t,i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:_(this.Cb,88)&&dw(ns(u(this.Cb,88)),4),iu(this,null);return;case 2:Za(this,!0);return;case 3:eh(this,!0);return;case 4:Ya(this,0);return;case 5:tw(this,1);return;case 8:cd(this,null);return;case 9:i=Vf(this,null,null),i&&i.Fi();return;case 10:Xv(this,!0);return;case 11:Jv(this,!1);return;case 12:Yv(this,!1);return;case 13:this.i=null,VM(this,null);return;case 15:Qv(this,!1);return;case 16:Zv(this,!1);return;case 18:IZ(this,!1),_(this.Cb,88)&&dw(ns(u(this.Cb,88)),2);return;case 20:OZ(this,!0);return;case 21:IJ(this,null);return;case 23:!this.a&&(this.a=new jg(eg,this,23)),Dn(this.a);return}no(this,n-yn((Ke(),_p)),Ge((t=u(en(this,16),26),t||_p),n))},s.Gh=function(){nZ(this),wv(Vr((Ku(),Ji),this)),vo(this),this.Bb|=1},s.Lj=function(){return Cr(this)},s.qk=function(){var n;return n=Cr(this),!!n&&(n.Bb&xc)!=0},s.rk=function(){return(this.Bb&xc)!=0},s.sk=function(){return(this.Bb&yr)!=0},s.nk=function(n,t){return this.c=null,TZ(this,n,t)},s.Ib=function(){var n;return this.Db&64?rP(this):(n=new bo(rP(this)),n.a+=" (containment: ",Ka(n,(this.Bb&xc)!=0),n.a+=", resolveProxies: ",Ka(n,(this.Bb&yr)!=0),n.a+=")",n.a)},p(Ze,"EReferenceImpl",99),g(548,115,{105:1,42:1,92:1,90:1,133:1,56:1,108:1,49:1,97:1,548:1,114:1,115:1},i4e),s.Fb=function(n){return this===n},s.cd=function(){return this.b},s.dd=function(){return this.c},s.Hb=function(){return c0(this)},s.Uh=function(n){Qbn(this,Vn(n))},s.ed=function(n){return Bbn(this,Vn(n))},s._g=function(n,t,i){var r;switch(n){case 0:return this.b;case 1:return this.c}return Js(this,n-yn((Ke(),jr)),Ge((r=u(en(this,16),26),r||jr),n),t,i)},s.lh=function(n){var t;switch(n){case 0:return this.b!=null;case 1:return this.c!=null}return Ys(this,n-yn((Ke(),jr)),Ge((t=u(en(this,16),26),t||jr),n))},s.sh=function(n,t){var i;switch(n){case 0:Jbn(this,Vn(t));return;case 1:PJ(this,Vn(t));return}io(this,n-yn((Ke(),jr)),Ge((i=u(en(this,16),26),i||jr),n),t)},s.zh=function(){return Ke(),jr},s.Bh=function(n){var t;switch(n){case 0:SJ(this,null);return;case 1:PJ(this,null);return}no(this,n-yn((Ke(),jr)),Ge((t=u(en(this,16),26),t||jr),n))},s.Sh=function(){var n;return this.a==-1&&(n=this.b,this.a=n==null?0:th(n)),this.a},s.Th=function(n){this.a=n},s.Ib=function(){var n;return this.Db&64?Jo(this):(n=new bo(Jo(this)),n.a+=" (key: ",Lr(n,this.b),n.a+=", value: ",Lr(n,this.c),n.a+=")",n.a)},s.a=-1,s.b=null,s.c=null;var Cc=p(Ze,"EStringToStringMapEntryImpl",548),ucn=Ht(Nt,"FeatureMap/Entry/Internal");g(565,1,gA),s.Ok=function(n){return this.Pk(u(n,49))},s.Pk=function(n){return this.Ok(n)},s.Fb=function(n){var t,i;return this===n?!0:_(n,72)?(t=u(n,72),t.ak()==this.c?(i=this.dd(),i==null?t.dd()==null:kt(i,t.dd())):!1):!1},s.ak=function(){return this.c},s.Hb=function(){var n;return n=this.dd(),Bt(this.c)^(n==null?0:Bt(n))},s.Ib=function(){var n,t;return n=this.c,t=xs(n.Hj()).Ph(),n.ne(),(t!=null&&t.length!=0?t+":"+n.ne():n.ne())+"="+this.dd()},p(Ze,"EStructuralFeatureImpl/BasicFeatureMapEntry",565),g(776,565,gA,SX),s.Pk=function(n){return new SX(this.c,n)},s.dd=function(){return this.a},s.Qk=function(n,t,i){return b4n(this,n,this.a,t,i)},s.Rk=function(n,t,i){return w4n(this,n,this.a,t,i)},p(Ze,"EStructuralFeatureImpl/ContainmentUpdatingFeatureMapEntry",776),g(1314,1,{},LTe),s.Pj=function(n,t,i,r,c){var o;return o=u(Tv(n,this.b),215),o.nl(this.a).Wj(r)},s.Qj=function(n,t,i,r,c){var o;return o=u(Tv(n,this.b),215),o.el(this.a,r,c)},s.Rj=function(n,t,i,r,c){var o;return o=u(Tv(n,this.b),215),o.fl(this.a,r,c)},s.Sj=function(n,t,i){var r;return r=u(Tv(n,this.b),215),r.nl(this.a).fj()},s.Tj=function(n,t,i,r){var c;c=u(Tv(n,this.b),215),c.nl(this.a).Wb(r)},s.Uj=function(n,t,i){return u(Tv(n,this.b),215).nl(this.a)},s.Vj=function(n,t,i){var r;r=u(Tv(n,this.b),215),r.nl(this.a).Xj()},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateFeatureMapDelegator",1314),g(89,1,{},Va,G1,za,W1),s.Pj=function(n,t,i,r,c){var o;if(o=t.Ch(i),o==null&&t.Dh(i,o=pP(this,n)),!c)switch(this.e){case 50:case 41:return u(o,589).sj();case 40:return u(o,215).kl()}return o},s.Qj=function(n,t,i,r,c){var o,f;return f=t.Ch(i),f==null&&t.Dh(i,f=pP(this,n)),o=u(f,69).lk(r,c),o},s.Rj=function(n,t,i,r,c){var o;return o=t.Ch(i),o!=null&&(c=u(o,69).mk(r,c)),c},s.Sj=function(n,t,i){var r;return r=t.Ch(i),r!=null&&u(r,76).fj()},s.Tj=function(n,t,i,r){var c;c=u(t.Ch(i),76),!c&&t.Dh(i,c=pP(this,n)),c.Wb(r)},s.Uj=function(n,t,i){var r,c;return c=t.Ch(i),c==null&&t.Dh(i,c=pP(this,n)),_(c,76)?u(c,76):(r=u(t.Ch(i),15),new $7e(r))},s.Vj=function(n,t,i){var r;r=u(t.Ch(i),76),!r&&t.Dh(i,r=pP(this,n)),r.Xj()},s.b=0,s.e=0,p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateMany",89),g(504,1,{}),s.Qj=function(n,t,i,r,c){throw I(new Kn)},s.Rj=function(n,t,i,r,c){throw I(new Kn)},s.Uj=function(n,t,i){return new xAe(this,n,t,i)};var ra;p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingle",504),g(1331,1,kK,xAe),s.Wj=function(n){return this.a.Pj(this.c,this.d,this.b,n,!0)},s.fj=function(){return this.a.Sj(this.c,this.d,this.b)},s.Wb=function(n){this.a.Tj(this.c,this.d,this.b,n)},s.Xj=function(){this.a.Vj(this.c,this.d,this.b)},s.b=0,p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingle/1",1331),g(769,504,{},fQ),s.Pj=function(n,t,i,r,c){return S_(n,n.eh(),n.Vg())==this.b?this.sk()&&r?a_(n):n.eh():null},s.Qj=function(n,t,i,r,c){var o,f;return n.eh()&&(c=(o=n.Vg(),o>=0?n.Qg(c):n.eh().ih(n,-1-o,null,c))),f=Kt(n.Tg(),this.e),n.Sg(r,f,c)},s.Rj=function(n,t,i,r,c){var o;return o=Kt(n.Tg(),this.e),n.Sg(null,o,c)},s.Sj=function(n,t,i){var r;return r=Kt(n.Tg(),this.e),!!n.eh()&&n.Vg()==r},s.Tj=function(n,t,i,r){var c,o,f,l,a;if(r!=null&&!I_(this.a,r))throw I(new Hm(pA+(_(r,56)?Hee(u(r,56).Tg()):dJ(is(r)))+mA+this.a+"'"));if(c=n.eh(),f=Kt(n.Tg(),this.e),X(r)!==X(c)||n.Vg()!=f&&r!=null){if(i3(n,u(r,56)))throw I(new rn(ly+n.Ib()));a=null,c&&(a=(o=n.Vg(),o>=0?n.Qg(a):n.eh().ih(n,-1-o,null,a))),l=u(r,49),l&&(a=l.gh(n,Kt(l.Tg(),this.b),null,a)),a=n.Sg(l,f,a),a&&a.Fi()}else n.Lg()&&n.Mg()&&yt(n,new Di(n,1,f,r,r))},s.Vj=function(n,t,i){var r,c,o,f;r=n.eh(),r?(f=(c=n.Vg(),c>=0?n.Qg(null):n.eh().ih(n,-1-c,null,null)),o=Kt(n.Tg(),this.e),f=n.Sg(null,o,f),f&&f.Fi()):n.Lg()&&n.Mg()&&yt(n,new K5(n,1,this.e,null,null))},s.sk=function(){return!1},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainer",769),g(1315,769,{},jSe),s.sk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleContainerResolving",1315),g(563,504,{}),s.Pj=function(n,t,i,r,c){var o;return o=t.Ch(i),o==null?this.b:X(o)===X(ra)?null:o},s.Sj=function(n,t,i){var r;return r=t.Ch(i),r!=null&&(X(r)===X(ra)||!kt(r,this.b))},s.Tj=function(n,t,i,r){var c,o;n.Lg()&&n.Mg()?(c=(o=t.Ch(i),o==null?this.b:X(o)===X(ra)?null:o),r==null?this.c!=null?(t.Dh(i,null),r=this.b):this.b!=null?t.Dh(i,ra):t.Dh(i,null):(this.Sk(r),t.Dh(i,r)),yt(n,this.d.Tk(n,1,this.e,c,r))):r==null?this.c!=null?t.Dh(i,null):this.b!=null?t.Dh(i,ra):t.Dh(i,null):(this.Sk(r),t.Dh(i,r))},s.Vj=function(n,t,i){var r,c;n.Lg()&&n.Mg()?(r=(c=t.Ch(i),c==null?this.b:X(c)===X(ra)?null:c),t.Eh(i),yt(n,this.d.Tk(n,1,this.e,r,this.b))):t.Eh(i)},s.Sk=function(n){throw I(new V7e)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData",563),g(hp,1,{},r4e),s.Tk=function(n,t,i,r,c){return new K5(n,t,i,r,c)},s.Uk=function(n,t,i,r,c,o){return new ML(n,t,i,r,c,o)};var Ide,Ode,Dde,$de,Lde,Fde,Nde,XV,_de;p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator",hp),g(1332,hp,{},c4e),s.Tk=function(n,t,i,r,c){return new VQ(n,t,i,ke(ye(r)),ke(ye(c)))},s.Uk=function(n,t,i,r,c,o){return new Jxe(n,t,i,ke(ye(r)),ke(ye(c)),o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/1",1332),g(1333,hp,{},u4e),s.Tk=function(n,t,i,r,c){return new pJ(n,t,i,u(r,217).a,u(c,217).a)},s.Uk=function(n,t,i,r,c,o){return new Gxe(n,t,i,u(r,217).a,u(c,217).a,o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/2",1333),g(1334,hp,{},s4e),s.Tk=function(n,t,i,r,c){return new mJ(n,t,i,u(r,172).a,u(c,172).a)},s.Uk=function(n,t,i,r,c,o){return new zxe(n,t,i,u(r,172).a,u(c,172).a,o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/3",1334),g(1335,hp,{},o4e),s.Tk=function(n,t,i,r,c){return new qQ(n,t,i,ne(he(r)),ne(he(c)))},s.Uk=function(n,t,i,r,c,o){return new Uxe(n,t,i,ne(he(r)),ne(he(c)),o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/4",1335),g(1336,hp,{},f4e),s.Tk=function(n,t,i,r,c){return new kJ(n,t,i,u(r,155).a,u(c,155).a)},s.Uk=function(n,t,i,r,c,o){return new Wxe(n,t,i,u(r,155).a,u(c,155).a,o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/5",1336),g(1337,hp,{},l4e),s.Tk=function(n,t,i,r,c){return new HQ(n,t,i,u(r,19).a,u(c,19).a)},s.Uk=function(n,t,i,r,c,o){return new Xxe(n,t,i,u(r,19).a,u(c,19).a,o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/6",1337),g(1338,hp,{},a4e),s.Tk=function(n,t,i,r,c){return new vJ(n,t,i,u(r,162).a,u(c,162).a)},s.Uk=function(n,t,i,r,c,o){return new Yxe(n,t,i,u(r,162).a,u(c,162).a,o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/7",1338),g(1339,hp,{},h4e),s.Tk=function(n,t,i,r,c){return new yJ(n,t,i,u(r,184).a,u(c,184).a)},s.Uk=function(n,t,i,r,c,o){return new Qxe(n,t,i,u(r,184).a,u(c,184).a,o)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleData/NotificationCreator/8",1339),g(1317,563,{},IAe),s.Sk=function(n){if(!this.a.wj(n))throw I(new Hm(pA+is(n)+mA+this.a+"'"))},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataDynamic",1317),g(1318,563,{},vPe),s.Sk=function(n){},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataStatic",1318),g(770,563,{}),s.Sj=function(n,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(n,t,i,r){var c,o;n.Lg()&&n.Mg()?(c=!0,o=t.Ch(i),o==null?(c=!1,o=this.b):X(o)===X(ra)&&(o=null),r==null?this.c!=null?(t.Dh(i,null),r=this.b):t.Dh(i,ra):(this.Sk(r),t.Dh(i,r)),yt(n,this.d.Uk(n,1,this.e,o,r,!c))):r==null?this.c!=null?t.Dh(i,null):t.Dh(i,ra):(this.Sk(r),t.Dh(i,r))},s.Vj=function(n,t,i){var r,c;n.Lg()&&n.Mg()?(r=!0,c=t.Ch(i),c==null?(r=!1,c=this.b):X(c)===X(ra)&&(c=null),t.Eh(i),yt(n,this.d.Uk(n,2,this.e,c,this.b,r))):t.Eh(i)},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettable",770),g(1319,770,{},OAe),s.Sk=function(n){if(!this.a.wj(n))throw I(new Hm(pA+is(n)+mA+this.a+"'"))},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableDynamic",1319),g(1320,770,{},yPe),s.Sk=function(n){},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleDataUnsettableStatic",1320),g(398,504,{},TC),s.Pj=function(n,t,i,r,c){var o,f,l,a,h;if(h=t.Ch(i),this.Kj()&&X(h)===X(ra))return null;if(this.sk()&&r&&h!=null){if(l=u(h,49),l.kh()&&(a=Yh(n,l),l!=a)){if(!I_(this.a,a))throw I(new Hm(pA+is(a)+mA+this.a+"'"));t.Dh(i,h=a),this.rk()&&(o=u(a,49),f=l.ih(n,this.b?Kt(l.Tg(),this.b):-1-Kt(n.Tg(),this.e),null,null),!o.eh()&&(f=o.gh(n,this.b?Kt(o.Tg(),this.b):-1-Kt(n.Tg(),this.e),null,f)),f&&f.Fi()),n.Lg()&&n.Mg()&&yt(n,new K5(n,9,this.e,l,a))}return h}else return h},s.Qj=function(n,t,i,r,c){var o,f;return f=t.Ch(i),X(f)===X(ra)&&(f=null),t.Dh(i,r),this.bj()?X(f)!==X(r)&&f!=null&&(o=u(f,49),c=o.ih(n,Kt(o.Tg(),this.b),null,c)):this.rk()&&f!=null&&(c=u(f,49).ih(n,-1-Kt(n.Tg(),this.e),null,c)),n.Lg()&&n.Mg()&&(!c&&(c=new Ah(4)),c.Ei(new K5(n,1,this.e,f,r))),c},s.Rj=function(n,t,i,r,c){var o;return o=t.Ch(i),X(o)===X(ra)&&(o=null),t.Eh(i),n.Lg()&&n.Mg()&&(!c&&(c=new Ah(4)),this.Kj()?c.Ei(new K5(n,2,this.e,o,null)):c.Ei(new K5(n,1,this.e,o,null))),c},s.Sj=function(n,t,i){var r;return r=t.Ch(i),r!=null},s.Tj=function(n,t,i,r){var c,o,f,l,a;if(r!=null&&!I_(this.a,r))throw I(new Hm(pA+(_(r,56)?Hee(u(r,56).Tg()):dJ(is(r)))+mA+this.a+"'"));a=t.Ch(i),l=a!=null,this.Kj()&&X(a)===X(ra)&&(a=null),f=null,this.bj()?X(a)!==X(r)&&(a!=null&&(c=u(a,49),f=c.ih(n,Kt(c.Tg(),this.b),null,f)),r!=null&&(c=u(r,49),f=c.gh(n,Kt(c.Tg(),this.b),null,f))):this.rk()&&X(a)!==X(r)&&(a!=null&&(f=u(a,49).ih(n,-1-Kt(n.Tg(),this.e),null,f)),r!=null&&(f=u(r,49).gh(n,-1-Kt(n.Tg(),this.e),null,f))),r==null&&this.Kj()?t.Dh(i,ra):t.Dh(i,r),n.Lg()&&n.Mg()?(o=new ML(n,1,this.e,a,r,this.Kj()&&!l),f?(f.Ei(o),f.Fi()):yt(n,o)):f&&f.Fi()},s.Vj=function(n,t,i){var r,c,o,f,l;l=t.Ch(i),f=l!=null,this.Kj()&&X(l)===X(ra)&&(l=null),o=null,l!=null&&(this.bj()?(r=u(l,49),o=r.ih(n,Kt(r.Tg(),this.b),null,o)):this.rk()&&(o=u(l,49).ih(n,-1-Kt(n.Tg(),this.e),null,o))),t.Eh(i),n.Lg()&&n.Mg()?(c=new ML(n,this.Kj()?2:1,this.e,l,null,f),o?(o.Ei(c),o.Fi()):yt(n,c)):o&&o.Fi()},s.bj=function(){return!1},s.rk=function(){return!1},s.sk=function(){return!1},s.Kj=function(){return!1},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObject",398),g(564,398,{},P$),s.rk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainment",564),g(1323,564,{},mMe),s.sk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentResolving",1323),g(772,564,{},bX),s.Kj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettable",772),g(1325,772,{},vMe),s.sk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentUnsettableResolving",1325),g(640,564,{},q$),s.bj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverse",640),g(1324,640,{},ESe),s.sk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseResolving",1324),g(773,640,{},eY),s.Kj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettable",773),g(1326,773,{},TSe),s.sk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectContainmentWithInverseUnsettableResolving",1326),g(641,398,{},wX),s.sk=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolving",641),g(1327,641,{},yMe),s.Kj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingUnsettable",1327),g(774,641,{},JX),s.bj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverse",774),g(1328,774,{},CSe),s.Kj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectResolvingWithInverseUnsettable",1328),g(1321,398,{},kMe),s.Kj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectUnsettable",1321),g(771,398,{},ZX),s.bj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverse",771),g(1322,771,{},MSe),s.Kj=function(){return!0},p(Ze,"EStructuralFeatureImpl/InternalSettingDelegateSingleEObjectWithInverseUnsettable",1322),g(775,565,gA,XY),s.Pk=function(n){return new XY(this.a,this.c,n)},s.dd=function(){return this.b},s.Qk=function(n,t,i){return wvn(this,n,this.b,i)},s.Rk=function(n,t,i){return gvn(this,n,this.b,i)},p(Ze,"EStructuralFeatureImpl/InverseUpdatingFeatureMapEntry",775),g(1329,1,kK,$7e),s.Wj=function(n){return this.a},s.fj=function(){return _(this.a,95)?u(this.a,95).fj():!this.a.dc()},s.Wb=function(n){this.a.$b(),this.a.Gc(u(n,15))},s.Xj=function(){_(this.a,95)?u(this.a,95).Xj():this.a.$b()},p(Ze,"EStructuralFeatureImpl/SettingMany",1329),g(1330,565,gA,RIe),s.Ok=function(n){return new I$((Pt(),C9),this.b.Ih(this.a,n))},s.dd=function(){return null},s.Qk=function(n,t,i){return i},s.Rk=function(n,t,i){return i},p(Ze,"EStructuralFeatureImpl/SimpleContentFeatureMapEntry",1330),g(642,565,gA,I$),s.Ok=function(n){return new I$(this.c,n)},s.dd=function(){return this.a},s.Qk=function(n,t,i){return i},s.Rk=function(n,t,i){return i},p(Ze,"EStructuralFeatureImpl/SimpleFeatureMapEntry",642),g(391,497,Pl,Lm),s.ri=function(n){return V($o,pe,26,n,0,1)},s.ni=function(){return!1},p(Ze,"ESuperAdapter/1",391),g(444,438,{105:1,92:1,90:1,147:1,191:1,56:1,108:1,836:1,49:1,97:1,150:1,444:1,114:1,115:1},nD),s._g=function(n,t,i){var r;switch(n){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),this.Ab;case 1:return this.zb;case 2:return!this.a&&(this.a=new N5(this,$r,this)),this.a}return Js(this,n-yn((Ke(),pb)),Ge((r=u(en(this,16),26),r||pb),n),t,i)},s.jh=function(n,t,i){var r,c;switch(t){case 0:return!this.Ab&&(this.Ab=new fe(it,this,0,3)),hr(this.Ab,n,i);case 2:return!this.a&&(this.a=new N5(this,$r,this)),hr(this.a,n,i)}return c=u(Ge((r=u(en(this,16),26),r||(Ke(),pb)),t),66),c.Nj().Rj(this,lu(this),t-yn((Ke(),pb)),n,i)},s.lh=function(n){var t;switch(n){case 0:return!!this.Ab&&this.Ab.i!=0;case 1:return this.zb!=null;case 2:return!!this.a&&this.a.i!=0}return Ys(this,n-yn((Ke(),pb)),Ge((t=u(en(this,16),26),t||pb),n))},s.sh=function(n,t){var i;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab),!this.Ab&&(this.Ab=new fe(it,this,0,3)),Yt(this.Ab,u(t,14));return;case 1:iu(this,Vn(t));return;case 2:!this.a&&(this.a=new N5(this,$r,this)),Dn(this.a),!this.a&&(this.a=new N5(this,$r,this)),Yt(this.a,u(t,14));return}io(this,n-yn((Ke(),pb)),Ge((i=u(en(this,16),26),i||pb),n),t)},s.zh=function(){return Ke(),pb},s.Bh=function(n){var t;switch(n){case 0:!this.Ab&&(this.Ab=new fe(it,this,0,3)),Dn(this.Ab);return;case 1:iu(this,null);return;case 2:!this.a&&(this.a=new N5(this,$r,this)),Dn(this.a);return}no(this,n-yn((Ke(),pb)),Ge((t=u(en(this,16),26),t||pb),n))},p(Ze,"ETypeParameterImpl",444),g(445,85,cc,N5),s.cj=function(n,t){return gkn(this,u(n,87),t)},s.dj=function(n,t){return pkn(this,u(n,87),t)},p(Ze,"ETypeParameterImpl/1",445),g(634,43,tp,mD),s.ec=function(){return new QE(this)},p(Ze,"ETypeParameterImpl/2",634),g(556,Gf,qu,QE),s.Fc=function(n){return UMe(this,u(n,87))},s.Gc=function(n){var t,i,r;for(r=!1,i=n.Kc();i.Ob();)t=u(i.Pb(),87),jt(this.a,t,"")==null&&(r=!0);return r},s.$b=function(){Wu(this.a)},s.Hc=function(n){return vs(this.a,n)},s.Kc=function(){var n;return n=new rd(new N1(this.a).a),new JE(n)},s.Mc=function(n){return DOe(this,n)},s.gc=function(){return t5(this.a)},p(Ze,"ETypeParameterImpl/2/1",556),g(557,1,Bi,JE),s.Nb=function(n){Wi(this,n)},s.Pb=function(){return u(E0(this.a).cd(),87)},s.Ob=function(){return this.a.b},s.Qb=function(){lDe(this.a)},p(Ze,"ETypeParameterImpl/2/1/1",557),g(1276,43,tp,Tke),s._b=function(n){return Ni(n)?SL(this,n):!!Xr(this.f,n)},s.xc=function(n){var t,i;return t=Ni(n)?Vc(this,n):mc(Xr(this.f,n)),_(t,837)?(i=u(t,837),t=i._j(),jt(this,u(n,235),t),t):t??(n==null?(LD(),ocn):null)},p(Ze,"EValidatorRegistryImpl",1276),g(1313,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,1941:1,49:1,97:1,150:1,114:1,115:1},d4e),s.Ih=function(n,t){switch(n.yj()){case 21:case 22:case 23:case 24:case 26:case 31:case 32:case 37:case 38:case 39:case 40:case 43:case 44:case 48:case 49:case 20:return t==null?null:rc(t);case 25:return T3n(t);case 27:return Kvn(t);case 28:return qvn(t);case 29:return t==null?null:SCe(v9[0],u(t,199));case 41:return t==null?"":xh(u(t,290));case 42:return rc(t);case 50:return Vn(t);default:throw I(new rn(F3+n.ne()+Y0))}},s.Jh=function(n){var t,i,r,c,o,f,l,a,h,w,k,j,T,C,x,L;switch(n.G==-1&&(n.G=(j=xs(n),j?nh(j.Mh(),n):-1)),n.G){case 0:return i=new wD,i;case 1:return t=new lz,t;case 2:return r=new wz,r;case 4:return c=new ZE,c;case 5:return o=new Eke,o;case 6:return f=new U7e,f;case 7:return l=new bz,l;case 10:return h=new qE,h;case 11:return w=new gD,w;case 12:return k=new XAe,k;case 13:return T=new pD,T;case 14:return C=new mX,C;case 17:return x=new i4e,x;case 18:return a=new zd,a;case 19:return L=new nD,L;default:throw I(new rn(cK+n.zb+Y0))}},s.Kh=function(n,t){switch(n.yj()){case 20:return t==null?null:new NU(t);case 21:return t==null?null:new Fh(t);case 23:case 22:return t==null?null:Ayn(t);case 26:case 24:return t==null?null:p7($s(t,-128,127)<<24>>24);case 25:return RTn(t);case 27:return h8n(t);case 28:return d8n(t);case 29:return Lkn(t);case 32:case 31:return t==null?null:hw(t);case 38:case 37:return t==null?null:new iU(t);case 40:case 39:return t==null?null:le($s(t,rr,vt));case 41:return null;case 42:return t==null,null;case 44:case 43:return t==null?null:sd(gP(t));case 49:case 48:return t==null?null:Wv($s(t,vA,32767)<<16>>16);case 50:return t;default:throw I(new rn(F3+n.ne()+Y0))}},p(Ze,"EcoreFactoryImpl",1313),g(547,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,1939:1,49:1,97:1,150:1,179:1,547:1,114:1,115:1,675:1},hAe),s.gb=!1,s.hb=!1;var Bde,scn=!1;p(Ze,"EcorePackageImpl",547),g(1184,1,{837:1},b4e),s._j=function(){return QCe(),fcn},p(Ze,"EcorePackageImpl/1",1184),g(1193,1,ot,w4e),s.wj=function(n){return _(n,147)},s.xj=function(n){return V(nE,pe,147,n,0,1)},p(Ze,"EcorePackageImpl/10",1193),g(1194,1,ot,g4e),s.wj=function(n){return _(n,191)},s.xj=function(n){return V(RV,pe,191,n,0,1)},p(Ze,"EcorePackageImpl/11",1194),g(1195,1,ot,p4e),s.wj=function(n){return _(n,56)},s.xj=function(n){return V(T1,pe,56,n,0,1)},p(Ze,"EcorePackageImpl/12",1195),g(1196,1,ot,m4e),s.wj=function(n){return _(n,399)},s.xj=function(n){return V(Lo,fue,59,n,0,1)},p(Ze,"EcorePackageImpl/13",1196),g(1197,1,ot,v4e),s.wj=function(n){return _(n,235)},s.xj=function(n){return V(Sf,pe,235,n,0,1)},p(Ze,"EcorePackageImpl/14",1197),g(1198,1,ot,y4e),s.wj=function(n){return _(n,509)},s.xj=function(n){return V(wb,pe,2017,n,0,1)},p(Ze,"EcorePackageImpl/15",1198),g(1199,1,ot,k4e),s.wj=function(n){return _(n,99)},s.xj=function(n){return V(ng,ap,18,n,0,1)},p(Ze,"EcorePackageImpl/16",1199),g(1200,1,ot,j4e),s.wj=function(n){return _(n,170)},s.xj=function(n){return V(Du,ap,170,n,0,1)},p(Ze,"EcorePackageImpl/17",1200),g(1201,1,ot,E4e),s.wj=function(n){return _(n,472)},s.xj=function(n){return V(Zw,pe,472,n,0,1)},p(Ze,"EcorePackageImpl/18",1201),g(1202,1,ot,T4e),s.wj=function(n){return _(n,548)},s.xj=function(n){return V(Cc,oWe,548,n,0,1)},p(Ze,"EcorePackageImpl/19",1202),g(1185,1,ot,C4e),s.wj=function(n){return _(n,322)},s.xj=function(n){return V(eg,ap,34,n,0,1)},p(Ze,"EcorePackageImpl/2",1185),g(1203,1,ot,M4e),s.wj=function(n){return _(n,241)},s.xj=function(n){return V($r,CWe,87,n,0,1)},p(Ze,"EcorePackageImpl/20",1203),g(1204,1,ot,S4e),s.wj=function(n){return _(n,444)},s.xj=function(n){return V(gu,pe,836,n,0,1)},p(Ze,"EcorePackageImpl/21",1204),g(1205,1,ot,P4e),s.wj=function(n){return Lb(n)},s.xj=function(n){return V(Ti,ie,476,n,8,1)},p(Ze,"EcorePackageImpl/22",1205),g(1206,1,ot,A4e),s.wj=function(n){return _(n,190)},s.xj=function(n){return V(zu,ie,190,n,0,2)},p(Ze,"EcorePackageImpl/23",1206),g(1207,1,ot,x4e),s.wj=function(n){return _(n,217)},s.xj=function(n){return V(tm,ie,217,n,0,1)},p(Ze,"EcorePackageImpl/24",1207),g(1208,1,ot,I4e),s.wj=function(n){return _(n,172)},s.xj=function(n){return V(jy,ie,172,n,0,1)},p(Ze,"EcorePackageImpl/25",1208),g(1209,1,ot,O4e),s.wj=function(n){return _(n,199)},s.xj=function(n){return V(OA,ie,199,n,0,1)},p(Ze,"EcorePackageImpl/26",1209),g(1210,1,ot,D4e),s.wj=function(n){return!1},s.xj=function(n){return V(i0e,pe,2110,n,0,1)},p(Ze,"EcorePackageImpl/27",1210),g(1211,1,ot,$4e),s.wj=function(n){return Fb(n)},s.xj=function(n){return V(Vi,ie,333,n,7,1)},p(Ze,"EcorePackageImpl/28",1211),g(1212,1,ot,L4e),s.wj=function(n){return _(n,58)},s.xj=function(n){return V(mde,Ew,58,n,0,1)},p(Ze,"EcorePackageImpl/29",1212),g(1186,1,ot,F4e),s.wj=function(n){return _(n,510)},s.xj=function(n){return V(it,{3:1,4:1,5:1,1934:1},590,n,0,1)},p(Ze,"EcorePackageImpl/3",1186),g(1213,1,ot,N4e),s.wj=function(n){return _(n,573)},s.xj=function(n){return V(kde,pe,1940,n,0,1)},p(Ze,"EcorePackageImpl/30",1213),g(1214,1,ot,_4e),s.wj=function(n){return _(n,153)},s.xj=function(n){return V(Vde,Ew,153,n,0,1)},p(Ze,"EcorePackageImpl/31",1214),g(1215,1,ot,B4e),s.wj=function(n){return _(n,72)},s.xj=function(n){return V(WI,$We,72,n,0,1)},p(Ze,"EcorePackageImpl/32",1215),g(1216,1,ot,R4e),s.wj=function(n){return _(n,155)},s.xj=function(n){return V(H3,ie,155,n,0,1)},p(Ze,"EcorePackageImpl/33",1216),g(1217,1,ot,K4e),s.wj=function(n){return _(n,19)},s.xj=function(n){return V(br,ie,19,n,0,1)},p(Ze,"EcorePackageImpl/34",1217),g(1218,1,ot,q4e),s.wj=function(n){return _(n,290)},s.xj=function(n){return V(jue,pe,290,n,0,1)},p(Ze,"EcorePackageImpl/35",1218),g(1219,1,ot,H4e),s.wj=function(n){return _(n,162)},s.xj=function(n){return V(J0,ie,162,n,0,1)},p(Ze,"EcorePackageImpl/36",1219),g(1220,1,ot,V4e),s.wj=function(n){return _(n,83)},s.xj=function(n){return V(Eue,pe,83,n,0,1)},p(Ze,"EcorePackageImpl/37",1220),g(1221,1,ot,G4e),s.wj=function(n){return _(n,591)},s.xj=function(n){return V(Rde,pe,591,n,0,1)},p(Ze,"EcorePackageImpl/38",1221),g(1222,1,ot,z4e),s.wj=function(n){return!1},s.xj=function(n){return V(r0e,pe,2111,n,0,1)},p(Ze,"EcorePackageImpl/39",1222),g(1187,1,ot,U4e),s.wj=function(n){return _(n,88)},s.xj=function(n){return V($o,pe,26,n,0,1)},p(Ze,"EcorePackageImpl/4",1187),g(1223,1,ot,W4e),s.wj=function(n){return _(n,184)},s.xj=function(n){return V(Z0,ie,184,n,0,1)},p(Ze,"EcorePackageImpl/40",1223),g(1224,1,ot,X4e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(Ze,"EcorePackageImpl/41",1224),g(1225,1,ot,Y4e),s.wj=function(n){return _(n,588)},s.xj=function(n){return V(yde,pe,588,n,0,1)},p(Ze,"EcorePackageImpl/42",1225),g(1226,1,ot,Q4e),s.wj=function(n){return!1},s.xj=function(n){return V(c0e,ie,2112,n,0,1)},p(Ze,"EcorePackageImpl/43",1226),g(1227,1,ot,J4e),s.wj=function(n){return _(n,42)},s.xj=function(n){return V(Ed,kP,42,n,0,1)},p(Ze,"EcorePackageImpl/44",1227),g(1188,1,ot,Z4e),s.wj=function(n){return _(n,138)},s.xj=function(n){return V(Pf,pe,138,n,0,1)},p(Ze,"EcorePackageImpl/5",1188),g(1189,1,ot,e5e),s.wj=function(n){return _(n,148)},s.xj=function(n){return V(zV,pe,148,n,0,1)},p(Ze,"EcorePackageImpl/6",1189),g(1190,1,ot,n5e),s.wj=function(n){return _(n,457)},s.xj=function(n){return V(UI,pe,671,n,0,1)},p(Ze,"EcorePackageImpl/7",1190),g(1191,1,ot,t5e),s.wj=function(n){return _(n,573)},s.xj=function(n){return V(Fa,pe,678,n,0,1)},p(Ze,"EcorePackageImpl/8",1191),g(1192,1,ot,i5e),s.wj=function(n){return _(n,471)},s.xj=function(n){return V(m9,pe,471,n,0,1)},p(Ze,"EcorePackageImpl/9",1192),g(1025,1982,sWe,qke),s.bi=function(n,t){n6n(this,u(t,415))},s.fi=function(n,t){tRe(this,n,u(t,415))},p(Ze,"MinimalEObjectImpl/1ArrayDelegatingAdapterList",1025),g(1026,143,Gk,iAe),s.Ai=function(){return this.a.a},p(Ze,"MinimalEObjectImpl/1ArrayDelegatingAdapterList/1",1026),g(1053,1052,{},vCe),p("org.eclipse.emf.ecore.plugin","EcorePlugin",1053);var Rde=Ht(LWe,"Resource");g(781,1378,FWe),s.Yk=function(n){},s.Zk=function(n){},s.Vk=function(){return!this.a&&(this.a=new lD(this)),this.a},s.Wk=function(n){var t,i,r,c,o;if(r=n.length,r>0)if(Gn(0,n.length),n.charCodeAt(0)==47){for(o=new tu(4),c=1,t=1;t0&&(n=n.substr(0,i)));return EEn(this,n)},s.Xk=function(){return this.c},s.Ib=function(){var n;return xh(this.gm)+"@"+(n=Bt(this)>>>0,n.toString(16))+" uri='"+this.d+"'"},s.b=!1,p(jK,"ResourceImpl",781),g(1379,781,FWe,F7e),p(jK,"BinaryResourceImpl",1379),g(1169,694,gK),s.si=function(n){return _(n,56)?rpn(this,u(n,56)):_(n,591)?new jn(u(n,591).Vk()):X(n)===X(this.f)?u(n,14).Kc():(cv(),rE.a)},s.Ob=function(){return $ne(this)},s.a=!1,p(Nt,"EcoreUtil/ContentTreeIterator",1169),g(1380,1169,gK,$Pe),s.si=function(n){return X(n)===X(this.f)?u(n,15).Kc():new pIe(u(n,56))},p(jK,"ResourceImpl/5",1380),g(648,1994,TWe,lD),s.Hc=function(n){return this.i<=4?c3(this,n):_(n,49)&&u(n,49).Zg()==this.a},s.bi=function(n,t){n==this.i-1&&(this.a.b||(this.a.b=!0))},s.di=function(n,t){n==0?this.a.b||(this.a.b=!0):rF(this,n,t)},s.fi=function(n,t){},s.gi=function(n,t,i){},s.aj=function(){return 2},s.Ai=function(){return this.a},s.bj=function(){return!0},s.cj=function(n,t){var i;return i=u(n,49),t=i.wh(this.a,t),t},s.dj=function(n,t){var i;return i=u(n,49),i.wh(null,t)},s.ej=function(){return!1},s.hi=function(){return!0},s.ri=function(n){return V(T1,pe,56,n,0,1)},s.ni=function(){return!1},p(jK,"ResourceImpl/ContentsEList",648),g(957,1964,T3,L7e),s.Zc=function(n){return this.a._h(n)},s.gc=function(){return this.a.gc()},p(Nt,"AbstractSequentialInternalEList/1",957);var Kde,qde,Ji,Hde;g(624,1,{},FSe);var XI,YI;p(Nt,"BasicExtendedMetaData",624),g(1160,1,{},FTe),s.$k=function(){return null},s._k=function(){return this.a==-2&&tln(this,xkn(this.d,this.b)),this.a},s.al=function(){return null},s.bl=function(){return He(),He(),Sr},s.ne=function(){return this.c==B3&&rln(this,DNe(this.d,this.b)),this.c},s.cl=function(){return 0},s.a=-2,s.c=B3,p(Nt,"BasicExtendedMetaData/EClassExtendedMetaDataImpl",1160),g(1161,1,{},iIe),s.$k=function(){return this.a==(jv(),XI)&&iln(this,zCn(this.f,this.b)),this.a},s._k=function(){return 0},s.al=function(){return this.c==(jv(),XI)&&cln(this,UCn(this.f,this.b)),this.c},s.bl=function(){return!this.d&&uln(this,zSn(this.f,this.b)),this.d},s.ne=function(){return this.e==B3&&sln(this,DNe(this.f,this.b)),this.e},s.cl=function(){return this.g==-2&&oln(this,X7n(this.f,this.b)),this.g},s.e=B3,s.g=-2,p(Nt,"BasicExtendedMetaData/EDataTypeExtendedMetaDataImpl",1161),g(1159,1,{},_Te),s.b=!1,s.c=!1,p(Nt,"BasicExtendedMetaData/EPackageExtendedMetaDataImpl",1159),g(1162,1,{},tIe),s.c=-2,s.e=B3,s.f=B3,p(Nt,"BasicExtendedMetaData/EStructuralFeatureExtendedMetaDataImpl",1162),g(585,622,cc,gC),s.aj=function(){return this.c},s.Fk=function(){return!1},s.li=function(n,t){return t},s.c=0,p(Nt,"EDataTypeEList",585);var Vde=Ht(Nt,"FeatureMap");g(75,585,{3:1,4:1,20:1,28:1,52:1,14:1,15:1,54:1,67:1,63:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},Qt),s.Vc=function(n,t){qCn(this,n,u(t,72))},s.Fc=function(n){return sCn(this,u(n,72))},s.Yh=function(n){Uwn(this,u(n,72))},s.cj=function(n,t){return Sdn(this,u(n,72),t)},s.dj=function(n,t){return KX(this,u(n,72),t)},s.ii=function(n,t){return lPn(this,n,t)},s.li=function(n,t){return Hxn(this,n,u(t,72))},s._c=function(n,t){return OMn(this,n,u(t,72))},s.jj=function(n,t){return Pdn(this,u(n,72),t)},s.kj=function(n,t){return sSe(this,u(n,72),t)},s.lj=function(n,t,i){return O7n(this,u(n,72),u(t,72),i)},s.oi=function(n,t){return WN(this,n,u(t,72))},s.dl=function(n,t){return jte(this,n,t)},s.Wc=function(n,t){var i,r,c,o,f,l,a,h,w;for(h=new j0(t.gc()),c=t.Kc();c.Ob();)if(r=u(c.Pb(),72),o=r.ak(),Ma(this.e,o))(!o.hi()||!aM(this,o,r.dd())&&!c3(h,r))&&Bn(h,r);else{for(w=hu(this.e.Tg(),o),i=u(this.g,119),f=!0,l=0;l=0;)if(t=n[this.c],this.k.rl(t.ak()))return this.j=this.f?t:t.dd(),this.i=-2,!0;return this.i=-1,this.g=-1,!1},p(Nt,"BasicFeatureMap/FeatureEIterator",410),g(662,410,Gl,d$),s.Lk=function(){return!0},p(Nt,"BasicFeatureMap/ResolvingFeatureEIterator",662),g(955,486,bA,ACe),s.Gi=function(){return this},p(Nt,"EContentsEList/1",955),g(956,486,bA,eCe),s.Lk=function(){return!1},p(Nt,"EContentsEList/2",956),g(954,279,wA,xCe),s.Nk=function(n){},s.Ob=function(){return!1},s.Sb=function(){return!1},p(Nt,"EContentsEList/FeatureIteratorImpl/1",954),g(825,585,cc,zW),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var n;Dn(this),gs(this.e)?(n=this.a,this.a=!1,yt(this.e,new Xo(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,p(Nt,"EDataTypeEList/Unsettable",825),g(1849,585,cc,_Ce),s.hi=function(){return!0},p(Nt,"EDataTypeUniqueEList",1849),g(1850,825,cc,BCe),s.hi=function(){return!0},p(Nt,"EDataTypeUniqueEList/Unsettable",1850),g(139,85,cc,Fu),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectContainmentEList/Resolving",139),g(1163,545,cc,NCe),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectContainmentEList/Unsettable/Resolving",1163),g(748,16,cc,$X),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var n;Dn(this),gs(this.e)?(n=this.a,this.a=!1,yt(this.e,new Xo(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,p(Nt,"EObjectContainmentWithInverseEList/Unsettable",748),g(1173,748,cc,WMe),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectContainmentWithInverseEList/Unsettable/Resolving",1173),g(743,496,cc,GW),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var n;Dn(this),gs(this.e)?(n=this.a,this.a=!1,yt(this.e,new Xo(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,p(Nt,"EObjectEList/Unsettable",743),g(328,496,cc,jg),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectResolvingEList",328),g(1641,743,cc,RCe),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectResolvingEList/Unsettable",1641),g(1381,1,{},r5e);var ocn;p(Nt,"EObjectValidator",1381),g(546,496,cc,LC),s.zk=function(){return this.d},s.Ak=function(){return this.b},s.bj=function(){return!0},s.Dk=function(){return!0},s.b=0,p(Nt,"EObjectWithInverseEList",546),g(1176,546,cc,XMe),s.Ck=function(){return!0},p(Nt,"EObjectWithInverseEList/ManyInverse",1176),g(625,546,cc,D$),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var n;Dn(this),gs(this.e)?(n=this.a,this.a=!1,yt(this.e,new Xo(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,p(Nt,"EObjectWithInverseEList/Unsettable",625),g(1175,625,cc,YMe),s.Ck=function(){return!0},p(Nt,"EObjectWithInverseEList/Unsettable/ManyInverse",1175),g(749,546,cc,LX),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectWithInverseResolvingEList",749),g(31,749,cc,Xe),s.Ck=function(){return!0},p(Nt,"EObjectWithInverseResolvingEList/ManyInverse",31),g(750,625,cc,FX),s.Ek=function(){return!0},s.li=function(n,t){return R2(this,n,u(t,56))},p(Nt,"EObjectWithInverseResolvingEList/Unsettable",750),g(1174,750,cc,QMe),s.Ck=function(){return!0},p(Nt,"EObjectWithInverseResolvingEList/Unsettable/ManyInverse",1174),g(1164,622,cc),s.ai=function(){return(this.b&1792)==0},s.ci=function(){this.b|=1},s.Bk=function(){return(this.b&4)!=0},s.bj=function(){return(this.b&40)!=0},s.Ck=function(){return(this.b&16)!=0},s.Dk=function(){return(this.b&8)!=0},s.Ek=function(){return(this.b&xw)!=0},s.rk=function(){return(this.b&32)!=0},s.Fk=function(){return(this.b&ef)!=0},s.wj=function(n){return this.d?OIe(this.d,n):this.ak().Yj().wj(n)},s.fj=function(){return this.b&2?(this.b&1)!=0:this.i!=0},s.hi=function(){return(this.b&128)!=0},s.Xj=function(){var n;Dn(this),this.b&2&&(gs(this.e)?(n=(this.b&1)!=0,this.b&=-2,Km(this,new Xo(this.e,2,Kt(this.e.Tg(),this.ak()),n,!1))):this.b&=-2)},s.ni=function(){return(this.b&1536)==0},s.b=0,p(Nt,"EcoreEList/Generic",1164),g(1165,1164,cc,KAe),s.ak=function(){return this.a},p(Nt,"EcoreEList/Dynamic",1165),g(747,63,Pl,Xz),s.ri=function(n){return v7(this.a.a,n)},p(Nt,"EcoreEMap/1",747),g(746,85,cc,$Y),s.bi=function(n,t){IS(this.b,u(t,133))},s.di=function(n,t){SLe(this.b)},s.ei=function(n,t,i){var r;++(r=this.b,u(t,133),r).e},s.fi=function(n,t){iN(this.b,u(t,133))},s.gi=function(n,t,i){iN(this.b,u(i,133)),X(i)===X(t)&&u(i,133).Th(Fhn(u(t,133).cd())),IS(this.b,u(t,133))},p(Nt,"EcoreEMap/DelegateEObjectContainmentEList",746),g(1171,151,oue,R$e),p(Nt,"EcoreEMap/Unsettable",1171),g(1172,746,cc,JMe),s.ci=function(){this.a=!0},s.fj=function(){return this.a},s.Xj=function(){var n;Dn(this),gs(this.e)?(n=this.a,this.a=!1,yt(this.e,new Xo(this.e,2,this.c,n,!1))):this.a=!1},s.a=!1,p(Nt,"EcoreEMap/Unsettable/UnsettableDelegateEObjectContainmentEList",1172),g(1168,228,tp,VPe),s.a=!1,s.b=!1,p(Nt,"EcoreUtil/Copier",1168),g(745,1,Bi,pIe),s.Nb=function(n){Wi(this,n)},s.Ob=function(){return dNe(this)},s.Pb=function(){var n;return dNe(this),n=this.b,this.b=null,n},s.Qb=function(){this.a.Qb()},p(Nt,"EcoreUtil/ProperContentIterator",745),g(1382,1381,{},nye);var fcn;p(Nt,"EcoreValidator",1382);var lcn;Ht(Nt,"FeatureMapUtil/Validator"),g(1260,1,{1942:1},c5e),s.rl=function(n){return!0},p(Nt,"FeatureMapUtil/1",1260),g(757,1,{1942:1},Qte),s.rl=function(n){var t;return this.c==n?!0:(t=ye(kn(this.a,n)),t==null?SSn(this,n)?(COe(this.a,n,(cn(),q3)),!0):(COe(this.a,n,(cn(),Td)),!1):t==(cn(),q3))},s.e=!1;var YV;p(Nt,"FeatureMapUtil/BasicValidator",757),g(758,43,tp,KW),p(Nt,"FeatureMapUtil/BasicValidator/Cache",758),g(501,52,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,69:1,95:1},M8),s.Vc=function(n,t){qKe(this.c,this.b,n,t)},s.Fc=function(n){return jte(this.c,this.b,n)},s.Wc=function(n,t){return qAn(this.c,this.b,n,t)},s.Gc=function(n){return S5(this,n)},s.Xh=function(n,t){f3n(this.c,this.b,n,t)},s.lk=function(n,t){return gte(this.c,this.b,n,t)},s.pi=function(n){return lP(this.c,this.b,n,!1)},s.Zh=function(){return aCe(this.c,this.b)},s.$h=function(){return Ehn(this.c,this.b)},s._h=function(n){return bvn(this.c,this.b,n)},s.mk=function(n,t){return xMe(this,n,t)},s.$b=function(){Yp(this)},s.Hc=function(n){return aM(this.c,this.b,n)},s.Ic=function(n){return d4n(this.c,this.b,n)},s.Xb=function(n){return lP(this.c,this.b,n,!0)},s.Wj=function(n){return this},s.Xc=function(n){return Cmn(this.c,this.b,n)},s.dc=function(){return HT(this)},s.fj=function(){return!B7(this.c,this.b)},s.Kc=function(){return Qvn(this.c,this.b)},s.Yc=function(){return Jvn(this.c,this.b)},s.Zc=function(n){return l6n(this.c,this.b,n)},s.ii=function(n,t){return uHe(this.c,this.b,n,t)},s.ji=function(n,t){ovn(this.c,this.b,n,t)},s.$c=function(n){return BBe(this.c,this.b,n)},s.Mc=function(n){return WSn(this.c,this.b,n)},s._c=function(n,t){return hHe(this.c,this.b,n,t)},s.Wb=function(n){US(this.c,this.b),S5(this,u(n,15))},s.gc=function(){return E6n(this.c,this.b)},s.Pc=function(){return j2n(this.c,this.b)},s.Qc=function(n){return Mmn(this.c,this.b,n)},s.Ib=function(){var n,t;for(t=new Ra,t.a+="[",n=aCe(this.c,this.b);UF(n);)Lr(t,A5(AS(n))),UF(n)&&(t.a+=vr);return t.a+="]",t.a},s.Xj=function(){US(this.c,this.b)},p(Nt,"FeatureMapUtil/FeatureEList",501),g(627,36,Gk,XL),s.yi=function(n){return b6(this,n)},s.Di=function(n){var t,i,r,c,o,f,l;switch(this.d){case 1:case 2:{if(o=n.Ai(),X(o)===X(this.c)&&b6(this,null)==n.yi(null))return this.g=n.zi(),n.xi()==1&&(this.d=1),!0;break}case 3:{switch(c=n.xi(),c){case 3:{if(o=n.Ai(),X(o)===X(this.c)&&b6(this,null)==n.yi(null))return this.d=5,t=new j0(2),Bn(t,this.g),Bn(t,n.zi()),this.g=t,!0;break}}break}case 5:{switch(c=n.xi(),c){case 3:{if(o=n.Ai(),X(o)===X(this.c)&&b6(this,null)==n.yi(null))return i=u(this.g,14),i.Fc(n.zi()),!0;break}}break}case 4:{switch(c=n.xi(),c){case 3:{if(o=n.Ai(),X(o)===X(this.c)&&b6(this,null)==n.yi(null))return this.d=1,this.g=n.zi(),!0;break}case 4:{if(o=n.Ai(),X(o)===X(this.c)&&b6(this,null)==n.yi(null))return this.d=6,l=new j0(2),Bn(l,this.n),Bn(l,n.Bi()),this.n=l,f=D(O($n,1),nt,25,15,[this.o,n.Ci()]),this.g=f,!0;break}}break}case 6:{switch(c=n.xi(),c){case 4:{if(o=n.Ai(),X(o)===X(this.c)&&b6(this,null)==n.yi(null))return i=u(this.n,14),i.Fc(n.Bi()),f=u(this.g,48),r=V($n,nt,25,f.length+1,15,1),Kc(f,0,r,0,f.length),r[f.length]=n.Ci(),this.g=r,!0;break}}break}}return!1},p(Nt,"FeatureMapUtil/FeatureENotificationImpl",627),g(552,501,{20:1,28:1,52:1,14:1,15:1,58:1,76:1,153:1,215:1,1937:1,69:1,95:1},yC),s.dl=function(n,t){return jte(this.c,n,t)},s.el=function(n,t,i){return gte(this.c,n,t,i)},s.fl=function(n,t,i){return Bte(this.c,n,t,i)},s.gl=function(){return this},s.hl=function(n,t){return gk(this.c,n,t)},s.il=function(n){return u(lP(this.c,this.b,n,!1),72).ak()},s.jl=function(n){return u(lP(this.c,this.b,n,!1),72).dd()},s.kl=function(){return this.a},s.ll=function(n){return!B7(this.c,n)},s.ml=function(n,t){aP(this.c,n,t)},s.nl=function(n){return U$e(this.c,n)},s.ol=function(n){p_e(this.c,n)},p(Nt,"FeatureMapUtil/FeatureFeatureMap",552),g(1259,1,kK,BTe),s.Wj=function(n){return lP(this.b,this.a,-1,n)},s.fj=function(){return!B7(this.b,this.a)},s.Wb=function(n){aP(this.b,this.a,n)},s.Xj=function(){US(this.b,this.a)},p(Nt,"FeatureMapUtil/FeatureValue",1259);var Cm,QV,JV,Mm,acn,uE=Ht(EA,"AnyType");g(666,60,Sa,MD),p(EA,"InvalidDatatypeValueException",666);var QI=Ht(EA,_We),sE=Ht(EA,BWe),Gde=Ht(EA,RWe),hcn,Oc,zde,Bd,dcn,bcn,wcn,gcn,pcn,mcn,vcn,ycn,kcn,jcn,Ecn,Bp,Tcn,Rp,E9,Ccn,mb,oE,fE,Mcn,T9,C9;g(830,506,{105:1,92:1,90:1,56:1,49:1,97:1,843:1},gU),s._g=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Qt(this,0)),this.c):(!this.c&&(this.c=new Qt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Qt(this,0)),u(Gc(this.c,(Pt(),Bd)),153)):(!this.c&&(this.c=new Qt(this,0)),u(u(Gc(this.c,(Pt(),Bd)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new Qt(this,2)),this.b):(!this.b&&(this.b=new Qt(this,2)),this.b.b)}return Js(this,n-yn(this.zh()),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():this.zh(),n),t,i)},s.jh=function(n,t,i){var r;switch(t){case 0:return!this.c&&(this.c=new Qt(this,0)),hk(this.c,n,i);case 1:return(!this.c&&(this.c=new Qt(this,0)),u(u(Gc(this.c,(Pt(),Bd)),153),69)).mk(n,i);case 2:return!this.b&&(this.b=new Qt(this,2)),hk(this.b,n,i)}return r=u(Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():this.zh(),t),66),r.Nj().Rj(this,fJ(this),t-yn(this.zh()),n,i)},s.lh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Qt(this,0)),u(Gc(this.c,(Pt(),Bd)),153)).dc();case 2:return!!this.b&&this.b.i!=0}return Ys(this,n-yn(this.zh()),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():this.zh(),n))},s.sh=function(n,t){switch(n){case 0:!this.c&&(this.c=new Qt(this,0)),G8(this.c,t);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(u(Gc(this.c,(Pt(),Bd)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new Qt(this,2)),G8(this.b,t);return}io(this,n-yn(this.zh()),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():this.zh(),n),t)},s.zh=function(){return Pt(),zde},s.Bh=function(n){switch(n){case 0:!this.c&&(this.c=new Qt(this,0)),Dn(this.c);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(Gc(this.c,(Pt(),Bd)),153)).$b();return;case 2:!this.b&&(this.b=new Qt(this,2)),Dn(this.b);return}no(this,n-yn(this.zh()),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():this.zh(),n))},s.Ib=function(){var n;return this.j&4?Jo(this):(n=new bo(Jo(this)),n.a+=" (mixed: ",E5(n,this.c),n.a+=", anyAttribute: ",E5(n,this.b),n.a+=")",n.a)},p(oi,"AnyTypeImpl",830),g(667,506,{105:1,92:1,90:1,56:1,49:1,97:1,2021:1,667:1},s5e),s._g=function(n,t,i){switch(n){case 0:return this.a;case 1:return this.b}return Js(this,n-yn((Pt(),Bp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Bp,n),t,i)},s.lh=function(n){switch(n){case 0:return this.a!=null;case 1:return this.b!=null}return Ys(this,n-yn((Pt(),Bp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Bp,n))},s.sh=function(n,t){switch(n){case 0:wln(this,Vn(t));return;case 1:gln(this,Vn(t));return}io(this,n-yn((Pt(),Bp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Bp,n),t)},s.zh=function(){return Pt(),Bp},s.Bh=function(n){switch(n){case 0:this.a=null;return;case 1:this.b=null;return}no(this,n-yn((Pt(),Bp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Bp,n))},s.Ib=function(){var n;return this.j&4?Jo(this):(n=new bo(Jo(this)),n.a+=" (data: ",Lr(n,this.a),n.a+=", target: ",Lr(n,this.b),n.a+=")",n.a)},s.a=null,s.b=null,p(oi,"ProcessingInstructionImpl",667),g(668,830,{105:1,92:1,90:1,56:1,49:1,97:1,843:1,2022:1,668:1},Mke),s._g=function(n,t,i){switch(n){case 0:return i?(!this.c&&(this.c=new Qt(this,0)),this.c):(!this.c&&(this.c=new Qt(this,0)),this.c.b);case 1:return i?(!this.c&&(this.c=new Qt(this,0)),u(Gc(this.c,(Pt(),Bd)),153)):(!this.c&&(this.c=new Qt(this,0)),u(u(Gc(this.c,(Pt(),Bd)),153),215)).kl();case 2:return i?(!this.b&&(this.b=new Qt(this,2)),this.b):(!this.b&&(this.b=new Qt(this,2)),this.b.b);case 3:return!this.c&&(this.c=new Qt(this,0)),Vn(gk(this.c,(Pt(),E9),!0));case 4:return NX(this.a,(!this.c&&(this.c=new Qt(this,0)),Vn(gk(this.c,(Pt(),E9),!0))));case 5:return this.a}return Js(this,n-yn((Pt(),Rp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Rp,n),t,i)},s.lh=function(n){switch(n){case 0:return!!this.c&&this.c.i!=0;case 1:return!(!this.c&&(this.c=new Qt(this,0)),u(Gc(this.c,(Pt(),Bd)),153)).dc();case 2:return!!this.b&&this.b.i!=0;case 3:return!this.c&&(this.c=new Qt(this,0)),Vn(gk(this.c,(Pt(),E9),!0))!=null;case 4:return NX(this.a,(!this.c&&(this.c=new Qt(this,0)),Vn(gk(this.c,(Pt(),E9),!0))))!=null;case 5:return!!this.a}return Ys(this,n-yn((Pt(),Rp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Rp,n))},s.sh=function(n,t){switch(n){case 0:!this.c&&(this.c=new Qt(this,0)),G8(this.c,t);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(u(Gc(this.c,(Pt(),Bd)),153),215)).Wb(t);return;case 2:!this.b&&(this.b=new Qt(this,2)),G8(this.b,t);return;case 3:jQ(this,Vn(t));return;case 4:jQ(this,_X(this.a,t));return;case 5:pln(this,u(t,148));return}io(this,n-yn((Pt(),Rp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Rp,n),t)},s.zh=function(){return Pt(),Rp},s.Bh=function(n){switch(n){case 0:!this.c&&(this.c=new Qt(this,0)),Dn(this.c);return;case 1:(!this.c&&(this.c=new Qt(this,0)),u(Gc(this.c,(Pt(),Bd)),153)).$b();return;case 2:!this.b&&(this.b=new Qt(this,2)),Dn(this.b);return;case 3:!this.c&&(this.c=new Qt(this,0)),aP(this.c,(Pt(),E9),null);return;case 4:jQ(this,_X(this.a,null));return;case 5:this.a=null;return}no(this,n-yn((Pt(),Rp)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():Rp,n))},p(oi,"SimpleAnyTypeImpl",668),g(669,506,{105:1,92:1,90:1,56:1,49:1,97:1,2023:1,669:1},Cke),s._g=function(n,t,i){switch(n){case 0:return i?(!this.a&&(this.a=new Qt(this,0)),this.a):(!this.a&&(this.a=new Qt(this,0)),this.a.b);case 1:return i?(!this.b&&(this.b=new ks((Ke(),jr),Cc,this,1)),this.b):(!this.b&&(this.b=new ks((Ke(),jr),Cc,this,1)),u7(this.b));case 2:return i?(!this.c&&(this.c=new ks((Ke(),jr),Cc,this,2)),this.c):(!this.c&&(this.c=new ks((Ke(),jr),Cc,this,2)),u7(this.c));case 3:return!this.a&&(this.a=new Qt(this,0)),Gc(this.a,(Pt(),oE));case 4:return!this.a&&(this.a=new Qt(this,0)),Gc(this.a,(Pt(),fE));case 5:return!this.a&&(this.a=new Qt(this,0)),Gc(this.a,(Pt(),T9));case 6:return!this.a&&(this.a=new Qt(this,0)),Gc(this.a,(Pt(),C9))}return Js(this,n-yn((Pt(),mb)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():mb,n),t,i)},s.jh=function(n,t,i){var r;switch(t){case 0:return!this.a&&(this.a=new Qt(this,0)),hk(this.a,n,i);case 1:return!this.b&&(this.b=new ks((Ke(),jr),Cc,this,1)),aC(this.b,n,i);case 2:return!this.c&&(this.c=new ks((Ke(),jr),Cc,this,2)),aC(this.c,n,i);case 5:return!this.a&&(this.a=new Qt(this,0)),xMe(Gc(this.a,(Pt(),T9)),n,i)}return r=u(Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():(Pt(),mb),t),66),r.Nj().Rj(this,fJ(this),t-yn((Pt(),mb)),n,i)},s.lh=function(n){switch(n){case 0:return!!this.a&&this.a.i!=0;case 1:return!!this.b&&this.b.f!=0;case 2:return!!this.c&&this.c.f!=0;case 3:return!this.a&&(this.a=new Qt(this,0)),!HT(Gc(this.a,(Pt(),oE)));case 4:return!this.a&&(this.a=new Qt(this,0)),!HT(Gc(this.a,(Pt(),fE)));case 5:return!this.a&&(this.a=new Qt(this,0)),!HT(Gc(this.a,(Pt(),T9)));case 6:return!this.a&&(this.a=new Qt(this,0)),!HT(Gc(this.a,(Pt(),C9)))}return Ys(this,n-yn((Pt(),mb)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():mb,n))},s.sh=function(n,t){switch(n){case 0:!this.a&&(this.a=new Qt(this,0)),G8(this.a,t);return;case 1:!this.b&&(this.b=new ks((Ke(),jr),Cc,this,1)),ZM(this.b,t);return;case 2:!this.c&&(this.c=new ks((Ke(),jr),Cc,this,2)),ZM(this.c,t);return;case 3:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),oE))),!this.a&&(this.a=new Qt(this,0)),S5(Gc(this.a,oE),u(t,14));return;case 4:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),fE))),!this.a&&(this.a=new Qt(this,0)),S5(Gc(this.a,fE),u(t,14));return;case 5:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),T9))),!this.a&&(this.a=new Qt(this,0)),S5(Gc(this.a,T9),u(t,14));return;case 6:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),C9))),!this.a&&(this.a=new Qt(this,0)),S5(Gc(this.a,C9),u(t,14));return}io(this,n-yn((Pt(),mb)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():mb,n),t)},s.zh=function(){return Pt(),mb},s.Bh=function(n){switch(n){case 0:!this.a&&(this.a=new Qt(this,0)),Dn(this.a);return;case 1:!this.b&&(this.b=new ks((Ke(),jr),Cc,this,1)),this.b.c.$b();return;case 2:!this.c&&(this.c=new ks((Ke(),jr),Cc,this,2)),this.c.c.$b();return;case 3:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),oE)));return;case 4:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),fE)));return;case 5:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),T9)));return;case 6:!this.a&&(this.a=new Qt(this,0)),Yp(Gc(this.a,(Pt(),C9)));return}no(this,n-yn((Pt(),mb)),Ge(this.j&2?(!this.k&&(this.k=new hf),this.k).ck():mb,n))},s.Ib=function(){var n;return this.j&4?Jo(this):(n=new bo(Jo(this)),n.a+=" (mixed: ",E5(n,this.a),n.a+=")",n.a)},p(oi,"XMLTypeDocumentRootImpl",669),g(1919,704,{105:1,92:1,90:1,471:1,147:1,56:1,108:1,49:1,97:1,150:1,114:1,115:1,2024:1},u5e),s.Ih=function(n,t){switch(n.yj()){case 7:case 8:case 9:case 10:case 16:case 22:case 23:case 24:case 25:case 26:case 32:case 33:case 34:case 36:case 37:case 44:case 45:case 50:case 51:case 53:case 55:case 56:case 57:case 58:case 60:case 61:case 4:return t==null?null:rc(t);case 19:case 28:case 29:case 35:case 38:case 39:case 41:case 46:case 52:case 54:case 5:return Vn(t);case 6:return K1n(u(t,190));case 12:case 47:case 49:case 11:return ZHe(this,n,t);case 13:return t==null?null:PAn(u(t,240));case 15:case 14:return t==null?null:_wn(ne(he(t)));case 17:return tBe((Pt(),t));case 18:return tBe(t);case 21:case 20:return t==null?null:Bwn(u(t,155).a);case 27:return q1n(u(t,190));case 30:return m_e((Pt(),u(t,15)));case 31:return m_e(u(t,15));case 40:return V1n((Pt(),t));case 42:return iBe((Pt(),t));case 43:return iBe(t);case 59:case 48:return H1n((Pt(),t));default:throw I(new rn(F3+n.ne()+Y0))}},s.Jh=function(n){var t,i,r,c,o;switch(n.G==-1&&(n.G=(i=xs(n),i?nh(i.Mh(),n):-1)),n.G){case 0:return t=new gU,t;case 1:return r=new s5e,r;case 2:return c=new Mke,c;case 3:return o=new Cke,o;default:throw I(new rn(cK+n.zb+Y0))}},s.Kh=function(n,t){var i,r,c,o,f,l,a,h,w,k,j,T,C,x,L,q;switch(n.yj()){case 5:case 52:case 4:return t;case 6:return r9n(t);case 8:case 7:return t==null?null:G7n(t);case 9:return t==null?null:p7($s((r=Wc(t,!0),r.length>0&&(Gn(0,r.length),r.charCodeAt(0)==43)?r.substr(1):r),-128,127)<<24>>24);case 10:return t==null?null:p7($s((c=Wc(t,!0),c.length>0&&(Gn(0,c.length),c.charCodeAt(0)==43)?c.substr(1):c),-128,127)<<24>>24);case 11:return Vn(H0(this,(Pt(),wcn),t));case 12:return Vn(H0(this,(Pt(),gcn),t));case 13:return t==null?null:new NU(Wc(t,!0));case 15:case 14:return hCn(t);case 16:return Vn(H0(this,(Pt(),pcn),t));case 17:return TNe((Pt(),t));case 18:return TNe(t);case 28:case 29:case 35:case 38:case 39:case 41:case 54:case 19:return Wc(t,!0);case 21:case 20:return kCn(t);case 22:return Vn(H0(this,(Pt(),mcn),t));case 23:return Vn(H0(this,(Pt(),vcn),t));case 24:return Vn(H0(this,(Pt(),ycn),t));case 25:return Vn(H0(this,(Pt(),kcn),t));case 26:return Vn(H0(this,(Pt(),jcn),t));case 27:return Zyn(t);case 30:return CNe((Pt(),t));case 31:return CNe(t);case 32:return t==null?null:le($s((w=Wc(t,!0),w.length>0&&(Gn(0,w.length),w.charCodeAt(0)==43)?w.substr(1):w),rr,vt));case 33:return t==null?null:new Fh((k=Wc(t,!0),k.length>0&&(Gn(0,k.length),k.charCodeAt(0)==43)?k.substr(1):k));case 34:return t==null?null:le($s((j=Wc(t,!0),j.length>0&&(Gn(0,j.length),j.charCodeAt(0)==43)?j.substr(1):j),rr,vt));case 36:return t==null?null:sd(gP((T=Wc(t,!0),T.length>0&&(Gn(0,T.length),T.charCodeAt(0)==43)?T.substr(1):T)));case 37:return t==null?null:sd(gP((C=Wc(t,!0),C.length>0&&(Gn(0,C.length),C.charCodeAt(0)==43)?C.substr(1):C)));case 40:return wyn((Pt(),t));case 42:return MNe((Pt(),t));case 43:return MNe(t);case 44:return t==null?null:new Fh((x=Wc(t,!0),x.length>0&&(Gn(0,x.length),x.charCodeAt(0)==43)?x.substr(1):x));case 45:return t==null?null:new Fh((L=Wc(t,!0),L.length>0&&(Gn(0,L.length),L.charCodeAt(0)==43)?L.substr(1):L));case 46:return Wc(t,!1);case 47:return Vn(H0(this,(Pt(),Ecn),t));case 59:case 48:return byn((Pt(),t));case 49:return Vn(H0(this,(Pt(),Tcn),t));case 50:return t==null?null:Wv($s((q=Wc(t,!0),q.length>0&&(Gn(0,q.length),q.charCodeAt(0)==43)?q.substr(1):q),vA,32767)<<16>>16);case 51:return t==null?null:Wv($s((o=Wc(t,!0),o.length>0&&(Gn(0,o.length),o.charCodeAt(0)==43)?o.substr(1):o),vA,32767)<<16>>16);case 53:return Vn(H0(this,(Pt(),Ccn),t));case 55:return t==null?null:Wv($s((f=Wc(t,!0),f.length>0&&(Gn(0,f.length),f.charCodeAt(0)==43)?f.substr(1):f),vA,32767)<<16>>16);case 56:return t==null?null:Wv($s((l=Wc(t,!0),l.length>0&&(Gn(0,l.length),l.charCodeAt(0)==43)?l.substr(1):l),vA,32767)<<16>>16);case 57:return t==null?null:sd(gP((a=Wc(t,!0),a.length>0&&(Gn(0,a.length),a.charCodeAt(0)==43)?a.substr(1):a)));case 58:return t==null?null:sd(gP((h=Wc(t,!0),h.length>0&&(Gn(0,h.length),h.charCodeAt(0)==43)?h.substr(1):h)));case 60:return t==null?null:le($s((i=Wc(t,!0),i.length>0&&(Gn(0,i.length),i.charCodeAt(0)==43)?i.substr(1):i),rr,vt));case 61:return t==null?null:le($s(Wc(t,!0),rr,vt));default:throw I(new rn(F3+n.ne()+Y0))}};var Scn,Ude,Pcn,Wde;p(oi,"XMLTypeFactoryImpl",1919),g(586,179,{105:1,92:1,90:1,147:1,191:1,56:1,235:1,108:1,49:1,97:1,150:1,179:1,114:1,115:1,675:1,1945:1,586:1},aAe),s.N=!1,s.O=!1;var Acn=!1;p(oi,"XMLTypePackageImpl",586),g(1852,1,{837:1},o5e),s._j=function(){return xte(),_cn},p(oi,"XMLTypePackageImpl/1",1852),g(1861,1,ot,f5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/10",1861),g(1862,1,ot,l5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/11",1862),g(1863,1,ot,a5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/12",1863),g(1864,1,ot,h5e),s.wj=function(n){return Fb(n)},s.xj=function(n){return V(Vi,ie,333,n,7,1)},p(oi,"XMLTypePackageImpl/13",1864),g(1865,1,ot,d5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/14",1865),g(1866,1,ot,b5e),s.wj=function(n){return _(n,15)},s.xj=function(n){return V(uo,Ew,15,n,0,1)},p(oi,"XMLTypePackageImpl/15",1866),g(1867,1,ot,w5e),s.wj=function(n){return _(n,15)},s.xj=function(n){return V(uo,Ew,15,n,0,1)},p(oi,"XMLTypePackageImpl/16",1867),g(1868,1,ot,g5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/17",1868),g(1869,1,ot,p5e),s.wj=function(n){return _(n,155)},s.xj=function(n){return V(H3,ie,155,n,0,1)},p(oi,"XMLTypePackageImpl/18",1869),g(1870,1,ot,m5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/19",1870),g(1853,1,ot,v5e),s.wj=function(n){return _(n,843)},s.xj=function(n){return V(uE,pe,843,n,0,1)},p(oi,"XMLTypePackageImpl/2",1853),g(1871,1,ot,y5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/20",1871),g(1872,1,ot,k5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/21",1872),g(1873,1,ot,j5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/22",1873),g(1874,1,ot,E5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/23",1874),g(1875,1,ot,T5e),s.wj=function(n){return _(n,190)},s.xj=function(n){return V(zu,ie,190,n,0,2)},p(oi,"XMLTypePackageImpl/24",1875),g(1876,1,ot,C5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/25",1876),g(1877,1,ot,M5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/26",1877),g(1878,1,ot,S5e),s.wj=function(n){return _(n,15)},s.xj=function(n){return V(uo,Ew,15,n,0,1)},p(oi,"XMLTypePackageImpl/27",1878),g(1879,1,ot,P5e),s.wj=function(n){return _(n,15)},s.xj=function(n){return V(uo,Ew,15,n,0,1)},p(oi,"XMLTypePackageImpl/28",1879),g(1880,1,ot,A5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/29",1880),g(1854,1,ot,x5e),s.wj=function(n){return _(n,667)},s.xj=function(n){return V(QI,pe,2021,n,0,1)},p(oi,"XMLTypePackageImpl/3",1854),g(1881,1,ot,I5e),s.wj=function(n){return _(n,19)},s.xj=function(n){return V(br,ie,19,n,0,1)},p(oi,"XMLTypePackageImpl/30",1881),g(1882,1,ot,O5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/31",1882),g(1883,1,ot,D5e),s.wj=function(n){return _(n,162)},s.xj=function(n){return V(J0,ie,162,n,0,1)},p(oi,"XMLTypePackageImpl/32",1883),g(1884,1,ot,$5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/33",1884),g(1885,1,ot,L5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/34",1885),g(1886,1,ot,F5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/35",1886),g(1887,1,ot,N5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/36",1887),g(1888,1,ot,_5e),s.wj=function(n){return _(n,15)},s.xj=function(n){return V(uo,Ew,15,n,0,1)},p(oi,"XMLTypePackageImpl/37",1888),g(1889,1,ot,B5e),s.wj=function(n){return _(n,15)},s.xj=function(n){return V(uo,Ew,15,n,0,1)},p(oi,"XMLTypePackageImpl/38",1889),g(1890,1,ot,R5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/39",1890),g(1855,1,ot,K5e),s.wj=function(n){return _(n,668)},s.xj=function(n){return V(sE,pe,2022,n,0,1)},p(oi,"XMLTypePackageImpl/4",1855),g(1891,1,ot,q5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/40",1891),g(1892,1,ot,H5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/41",1892),g(1893,1,ot,V5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/42",1893),g(1894,1,ot,G5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/43",1894),g(1895,1,ot,z5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/44",1895),g(1896,1,ot,U5e),s.wj=function(n){return _(n,184)},s.xj=function(n){return V(Z0,ie,184,n,0,1)},p(oi,"XMLTypePackageImpl/45",1896),g(1897,1,ot,W5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/46",1897),g(1898,1,ot,X5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/47",1898),g(1899,1,ot,Y5e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/48",1899),g(r1,1,ot,Q5e),s.wj=function(n){return _(n,184)},s.xj=function(n){return V(Z0,ie,184,n,0,1)},p(oi,"XMLTypePackageImpl/49",r1),g(1856,1,ot,J5e),s.wj=function(n){return _(n,669)},s.xj=function(n){return V(Gde,pe,2023,n,0,1)},p(oi,"XMLTypePackageImpl/5",1856),g(1901,1,ot,Z5e),s.wj=function(n){return _(n,162)},s.xj=function(n){return V(J0,ie,162,n,0,1)},p(oi,"XMLTypePackageImpl/50",1901),g(1902,1,ot,e6e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/51",1902),g(1903,1,ot,n6e),s.wj=function(n){return _(n,19)},s.xj=function(n){return V(br,ie,19,n,0,1)},p(oi,"XMLTypePackageImpl/52",1903),g(1857,1,ot,t6e),s.wj=function(n){return Ni(n)},s.xj=function(n){return V(ge,ie,2,n,6,1)},p(oi,"XMLTypePackageImpl/6",1857),g(1858,1,ot,i6e),s.wj=function(n){return _(n,190)},s.xj=function(n){return V(zu,ie,190,n,0,2)},p(oi,"XMLTypePackageImpl/7",1858),g(1859,1,ot,r6e),s.wj=function(n){return Lb(n)},s.xj=function(n){return V(Ti,ie,476,n,8,1)},p(oi,"XMLTypePackageImpl/8",1859),g(1860,1,ot,c6e),s.wj=function(n){return _(n,217)},s.xj=function(n){return V(tm,ie,217,n,0,1)},p(oi,"XMLTypePackageImpl/9",1860);var il,jh,M9,JI,F;g(50,60,Sa,Hn),p(lh,"RegEx/ParseException",50),g(820,1,{},hz),s.sl=function(n){return ni*16)throw I(new Hn(Wn((qn(),QUe))));i=i*16+c}while(!0);if(this.a!=125)throw I(new Hn(Wn((qn(),JUe))));if(i>R3)throw I(new Hn(Wn((qn(),ZUe))));n=i}else{if(c=0,this.c!=0||(c=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(i=c,wt(this),this.c!=0||(c=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));i=i*16+c,n=i}break;case 117:if(r=0,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));t=t*16+r,n=t;break;case 118:if(wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,wt(this),this.c!=0||(r=fd(this.a))<0)throw I(new Hn(Wn((qn(),fh))));if(t=t*16+r,t>R3)throw I(new Hn(Wn((qn(),"parser.descappe.4"))));n=t;break;case 65:case 90:case 122:throw I(new Hn(Wn((qn(),eWe))))}return n},s.ul=function(n){var t,i;switch(n){case 100:i=(this.e&32)==32?t1("Nd",!0):(gt(),ZI);break;case 68:i=(this.e&32)==32?t1("Nd",!1):(gt(),e0e);break;case 119:i=(this.e&32)==32?t1("IsWord",!0):(gt(),S4);break;case 87:i=(this.e&32)==32?t1("IsWord",!1):(gt(),t0e);break;case 115:i=(this.e&32)==32?t1("IsSpace",!0):(gt(),Sm);break;case 83:i=(this.e&32)==32?t1("IsSpace",!1):(gt(),n0e);break;default:throw I(new oc((t=n,eXe+t.toString(16))))}return i},s.vl=function(n){var t,i,r,c,o,f,l,a,h,w,k,j;for(this.b=1,wt(this),t=null,this.c==0&&this.a==94?(wt(this),n?w=(gt(),gt(),new Ps(5)):(t=(gt(),gt(),new Ps(4)),Uc(t,0,R3),w=new Ps(4))):w=(gt(),gt(),new Ps(4)),c=!0;(j=this.c)!=1&&!(j==0&&this.a==93&&!c);){if(c=!1,i=this.a,r=!1,j==10)switch(i){case 100:case 68:case 119:case 87:case 115:case 83:vw(w,this.ul(i)),r=!0;break;case 105:case 73:case 99:case 67:i=this.Ll(w,i),i<0&&(r=!0);break;case 112:case 80:if(k=One(this,i),!k)throw I(new Hn(Wn((qn(),mK))));vw(w,k),r=!0;break;default:i=this.tl()}else if(j==20){if(f=iv(this.i,58,this.d),f<0)throw I(new Hn(Wn((qn(),tue))));if(l=!0,Xi(this.i,this.d)==94&&(++this.d,l=!1),o=Ms(this.i,this.d,f),a=hDe(o,l,(this.e&512)==512),!a)throw I(new Hn(Wn((qn(),zUe))));if(vw(w,a),r=!0,f+1>=this.j||Xi(this.i,f+1)!=93)throw I(new Hn(Wn((qn(),tue))));this.d=f+2}if(wt(this),!r)if(this.c!=0||this.a!=45)Uc(w,i,i);else{if(wt(this),(j=this.c)==1)throw I(new Hn(Wn((qn(),hA))));j==0&&this.a==93?(Uc(w,i,i),Uc(w,45,45)):(h=this.a,j==10&&(h=this.tl()),wt(this),Uc(w,i,h))}(this.e&ef)==ef&&this.c==0&&this.a==44&&wt(this)}if(this.c==1)throw I(new Hn(Wn((qn(),hA))));return t&&(q6(t,w),w=t),zg(w),R6(w),this.b=0,wt(this),w},s.wl=function(){var n,t,i,r;for(i=this.vl(!1);(r=this.c)!=7;)if(n=this.a,r==0&&(n==45||n==38)||r==4){if(wt(this),this.c!=9)throw I(new Hn(Wn((qn(),WUe))));if(t=this.vl(!1),r==4)vw(i,t);else if(n==45)q6(i,t);else if(n==38)UHe(i,t);else throw I(new oc("ASSERT"))}else throw I(new Hn(Wn((qn(),XUe))));return wt(this),i},s.xl=function(){var n,t;return n=this.a-48,t=(gt(),gt(),new OL(12,null,n)),!this.g&&(this.g=new nT),eT(this.g,new Yz(n)),wt(this),t},s.yl=function(){return wt(this),gt(),Ocn},s.zl=function(){return wt(this),gt(),Icn},s.Al=function(){throw I(new Hn(Wn((qn(),co))))},s.Bl=function(){throw I(new Hn(Wn((qn(),co))))},s.Cl=function(){return wt(this),g5n()},s.Dl=function(){return wt(this),gt(),$cn},s.El=function(){return wt(this),gt(),Fcn},s.Fl=function(){var n;if(this.d>=this.j||((n=Xi(this.i,this.d++))&65504)!=64)throw I(new Hn(Wn((qn(),HUe))));return wt(this),gt(),gt(),new Nl(0,n-64)},s.Gl=function(){return wt(this),ZPn()},s.Hl=function(){return wt(this),gt(),Ncn},s.Il=function(){var n;return n=(gt(),gt(),new Nl(0,105)),wt(this),n},s.Jl=function(){return wt(this),gt(),Lcn},s.Kl=function(){return wt(this),gt(),Dcn},s.Ll=function(n,t){return this.tl()},s.Ml=function(){return wt(this),gt(),Jde},s.Nl=function(){var n,t,i,r,c;if(this.d+1>=this.j)throw I(new Hn(Wn((qn(),RUe))));if(r=-1,t=null,n=Xi(this.i,this.d),49<=n&&n<=57){if(r=n-48,!this.g&&(this.g=new nT),eT(this.g,new Yz(r)),++this.d,Xi(this.i,this.d)!=41)throw I(new Hn(Wn((qn(),kd))));++this.d}else switch(n==63&&--this.d,wt(this),t=nie(this),t.e){case 20:case 21:case 22:case 23:break;case 8:if(this.c!=7)throw I(new Hn(Wn((qn(),kd))));break;default:throw I(new Hn(Wn((qn(),KUe))))}if(wt(this),c=D0(this),i=null,c.e==2){if(c.em()!=2)throw I(new Hn(Wn((qn(),qUe))));i=c.am(1),c=c.am(0)}if(this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),gt(),gt(),new VDe(r,t,c,i)},s.Ol=function(){return wt(this),gt(),Zde},s.Pl=function(){var n;if(wt(this),n=FC(24,D0(this)),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Ql=function(){var n;if(wt(this),n=FC(20,D0(this)),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Rl=function(){var n;if(wt(this),n=FC(22,D0(this)),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Sl=function(){var n,t,i,r,c;for(n=0,i=0,t=-1;this.d=this.j)throw I(new Hn(Wn((qn(),eue))));if(t==45){for(++this.d;this.d=this.j)throw I(new Hn(Wn((qn(),eue))))}if(t==58){if(++this.d,wt(this),r=XPe(D0(this),n,i),this.c!=7)throw I(new Hn(Wn((qn(),kd))));wt(this)}else if(t==41)++this.d,wt(this),r=XPe(D0(this),n,i);else throw I(new Hn(Wn((qn(),BUe))));return r},s.Tl=function(){var n;if(wt(this),n=FC(21,D0(this)),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Ul=function(){var n;if(wt(this),n=FC(23,D0(this)),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Vl=function(){var n,t;if(wt(this),n=this.f++,t=cL(D0(this),n),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),t},s.Wl=function(){var n;if(wt(this),n=cL(D0(this),0),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Xl=function(n){return wt(this),this.c==5?(wt(this),MC(n,(gt(),gt(),new Xb(9,n)))):MC(n,(gt(),gt(),new Xb(3,n)))},s.Yl=function(n){var t;return wt(this),t=(gt(),gt(),new M5(2)),this.c==5?(wt(this),hd(t,P9),hd(t,n)):(hd(t,n),hd(t,P9)),t},s.Zl=function(n){return wt(this),this.c==5?(wt(this),gt(),gt(),new Xb(9,n)):(gt(),gt(),new Xb(3,n))},s.a=0,s.b=0,s.c=0,s.d=0,s.e=0,s.f=1,s.g=null,s.j=0,p(lh,"RegEx/RegexParser",820),g(1824,820,{},Ske),s.sl=function(n){return!1},s.tl=function(){return hte(this)},s.ul=function(n){return w3(n)},s.vl=function(n){return BVe(this)},s.wl=function(){throw I(new Hn(Wn((qn(),co))))},s.xl=function(){throw I(new Hn(Wn((qn(),co))))},s.yl=function(){throw I(new Hn(Wn((qn(),co))))},s.zl=function(){throw I(new Hn(Wn((qn(),co))))},s.Al=function(){return wt(this),w3(67)},s.Bl=function(){return wt(this),w3(73)},s.Cl=function(){throw I(new Hn(Wn((qn(),co))))},s.Dl=function(){throw I(new Hn(Wn((qn(),co))))},s.El=function(){throw I(new Hn(Wn((qn(),co))))},s.Fl=function(){return wt(this),w3(99)},s.Gl=function(){throw I(new Hn(Wn((qn(),co))))},s.Hl=function(){throw I(new Hn(Wn((qn(),co))))},s.Il=function(){return wt(this),w3(105)},s.Jl=function(){throw I(new Hn(Wn((qn(),co))))},s.Kl=function(){throw I(new Hn(Wn((qn(),co))))},s.Ll=function(n,t){return vw(n,w3(t)),-1},s.Ml=function(){return wt(this),gt(),gt(),new Nl(0,94)},s.Nl=function(){throw I(new Hn(Wn((qn(),co))))},s.Ol=function(){return wt(this),gt(),gt(),new Nl(0,36)},s.Pl=function(){throw I(new Hn(Wn((qn(),co))))},s.Ql=function(){throw I(new Hn(Wn((qn(),co))))},s.Rl=function(){throw I(new Hn(Wn((qn(),co))))},s.Sl=function(){throw I(new Hn(Wn((qn(),co))))},s.Tl=function(){throw I(new Hn(Wn((qn(),co))))},s.Ul=function(){throw I(new Hn(Wn((qn(),co))))},s.Vl=function(){var n;if(wt(this),n=cL(D0(this),0),this.c!=7)throw I(new Hn(Wn((qn(),kd))));return wt(this),n},s.Wl=function(){throw I(new Hn(Wn((qn(),co))))},s.Xl=function(n){return wt(this),MC(n,(gt(),gt(),new Xb(3,n)))},s.Yl=function(n){var t;return wt(this),t=(gt(),gt(),new M5(2)),hd(t,n),hd(t,P9),t},s.Zl=function(n){return wt(this),gt(),gt(),new Xb(3,n)};var Kp=null,C4=null;p(lh,"RegEx/ParserForXMLSchema",1824),g(117,1,K3,Gd),s.$l=function(n){throw I(new oc("Not supported."))},s._l=function(){return-1},s.am=function(n){return null},s.bm=function(){return null},s.cm=function(n){},s.dm=function(n){},s.em=function(){return 0},s.Ib=function(){return this.fm(0)},s.fm=function(n){return this.e==11?".":""},s.e=0;var Xde,M4,S9,xcn,Yde,rg=null,ZI,ZV=null,Qde,P9,eG=null,Jde,Zde,e0e,n0e,t0e,Icn,Sm,Ocn,Dcn,$cn,Lcn,S4,Fcn,Ncn,UDn=p(lh,"RegEx/Token",117);g(136,117,{3:1,136:1,117:1},Ps),s.fm=function(n){var t,i,r;if(this.e==4)if(this==Qde)i=".";else if(this==ZI)i="\\d";else if(this==S4)i="\\w";else if(this==Sm)i="\\s";else{for(r=new Ra,r.a+="[",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?Lr(r,wk(this.b[t])):(Lr(r,wk(this.b[t])),r.a+="-",Lr(r,wk(this.b[t+1])));r.a+="]",i=r.a}else if(this==e0e)i="\\D";else if(this==t0e)i="\\W";else if(this==n0e)i="\\S";else{for(r=new Ra,r.a+="[^",t=0;t0&&(r.a+=","),this.b[t]===this.b[t+1]?Lr(r,wk(this.b[t])):(Lr(r,wk(this.b[t])),r.a+="-",Lr(r,wk(this.b[t+1])));r.a+="]",i=r.a}return i},s.a=!1,s.c=!1,p(lh,"RegEx/RangeToken",136),g(584,1,{584:1},Yz),s.a=0,p(lh,"RegEx/RegexParser/ReferencePosition",584),g(583,1,{3:1,583:1},_je),s.Fb=function(n){var t;return n==null||!_(n,583)?!1:(t=u(n,583),Re(this.b,t.b)&&this.a==t.a)},s.Hb=function(){return th(this.b+"/"+ute(this.a))},s.Ib=function(){return this.c.fm(this.a)},s.a=0,p(lh,"RegEx/RegularExpression",583),g(223,117,K3,Nl),s._l=function(){return this.a},s.fm=function(n){var t,i,r;switch(this.e){case 0:switch(this.a){case 124:case 42:case 43:case 63:case 40:case 41:case 46:case 91:case 123:case 92:r="\\"+O$(this.a&si);break;case 12:r="\\f";break;case 10:r="\\n";break;case 13:r="\\r";break;case 9:r="\\t";break;case 27:r="\\e";break;default:this.a>=yr?(i=(t=this.a>>>0,"0"+t.toString(16)),r="\\v"+Ms(i,i.length-6,i.length)):r=""+O$(this.a&si)}break;case 8:this==Jde||this==Zde?r=""+O$(this.a&si):r="\\"+O$(this.a&si);break;default:r=null}return r},s.a=0,p(lh,"RegEx/Token/CharToken",223),g(309,117,K3,Xb),s.am=function(n){return this.a},s.cm=function(n){this.b=n},s.dm=function(n){this.c=n},s.em=function(){return 1},s.fm=function(n){var t;if(this.e==3)if(this.c<0&&this.b<0)t=this.a.fm(n)+"*";else if(this.c==this.b)t=this.a.fm(n)+"{"+this.c+"}";else if(this.c>=0&&this.b>=0)t=this.a.fm(n)+"{"+this.c+","+this.b+"}";else if(this.c>=0&&this.b<0)t=this.a.fm(n)+"{"+this.c+",}";else throw I(new oc("Token#toString(): CLOSURE "+this.c+vr+this.b));else if(this.c<0&&this.b<0)t=this.a.fm(n)+"*?";else if(this.c==this.b)t=this.a.fm(n)+"{"+this.c+"}?";else if(this.c>=0&&this.b>=0)t=this.a.fm(n)+"{"+this.c+","+this.b+"}?";else if(this.c>=0&&this.b<0)t=this.a.fm(n)+"{"+this.c+",}?";else throw I(new oc("Token#toString(): NONGREEDYCLOSURE "+this.c+vr+this.b));return t},s.b=0,s.c=0,p(lh,"RegEx/Token/ClosureToken",309),g(821,117,K3,qY),s.am=function(n){return n==0?this.a:this.b},s.em=function(){return 2},s.fm=function(n){var t;return this.b.e==3&&this.b.am(0)==this.a?t=this.a.fm(n)+"+":this.b.e==9&&this.b.am(0)==this.a?t=this.a.fm(n)+"+?":t=this.a.fm(n)+(""+this.b.fm(n)),t},p(lh,"RegEx/Token/ConcatToken",821),g(1822,117,K3,VDe),s.am=function(n){if(n==0)return this.d;if(n==1)return this.b;throw I(new oc("Internal Error: "+n))},s.em=function(){return this.b?2:1},s.fm=function(n){var t;return this.c>0?t="(?("+this.c+")":this.a.e==8?t="(?("+this.a+")":t="(?"+this.a,this.b?t+=this.d+"|"+this.b+")":t+=this.d+")",t},s.c=0,p(lh,"RegEx/Token/ConditionToken",1822),g(1823,117,K3,Vxe),s.am=function(n){return this.b},s.em=function(){return 1},s.fm=function(n){return"(?"+(this.a==0?"":ute(this.a))+(this.c==0?"":ute(this.c))+":"+this.b.fm(n)+")"},s.a=0,s.c=0,p(lh,"RegEx/Token/ModifierToken",1823),g(822,117,K3,WY),s.am=function(n){return this.a},s.em=function(){return 1},s.fm=function(n){var t;switch(t=null,this.e){case 6:this.b==0?t="(?:"+this.a.fm(n)+")":t="("+this.a.fm(n)+")";break;case 20:t="(?="+this.a.fm(n)+")";break;case 21:t="(?!"+this.a.fm(n)+")";break;case 22:t="(?<="+this.a.fm(n)+")";break;case 23:t="(?"+this.a.fm(n)+")"}return t},s.b=0,p(lh,"RegEx/Token/ParenToken",822),g(521,117,{3:1,117:1,521:1},OL),s.bm=function(){return this.b},s.fm=function(n){return this.e==12?"\\"+this.a:sTn(this.b)},s.a=0,p(lh,"RegEx/Token/StringToken",521),g(465,117,K3,M5),s.$l=function(n){hd(this,n)},s.am=function(n){return u(h0(this.a,n),117)},s.em=function(){return this.a?this.a.a.c.length:0},s.fm=function(n){var t,i,r,c,o;if(this.e==1){if(this.a.a.c.length==2)t=u(h0(this.a,0),117),i=u(h0(this.a,1),117),i.e==3&&i.am(0)==t?c=t.fm(n)+"+":i.e==9&&i.am(0)==t?c=t.fm(n)+"+?":c=t.fm(n)+(""+i.fm(n));else{for(o=new Ra,r=0;r=this.c.b:this.a<=this.c.b},s.Sb=function(){return this.b>0},s.Tb=function(){return this.b},s.Vb=function(){return this.b-1},s.Qb=function(){throw I(new Ba(sXe))},s.a=0,s.b=0,p(kue,"ExclusiveRange/RangeIterator",254);var lo=dv(dA,"C"),$n=dv(gy,"I"),as=dv(q2,"Z"),I1=dv(py,"J"),zu=dv(dy,"B"),Ri=dv(by,"D"),cg=dv(wy,"F"),qp=dv(my,"S"),WDn=Ht("org.eclipse.elk.core.labels","ILabelManager"),i0e=Ht(dr,"DiagnosticChain"),r0e=Ht(LWe,"ResourceSet"),c0e=p(dr,"InvocationTargetException",null),Bcn=(uT(),Bmn),Rcn=Rcn=P7n;$3n(Sln),u4n("permProps",[[[MA,SA],[PA,"gecko1_8"]],[[MA,SA],[PA,"ie10"]],[[MA,SA],[PA,"ie8"]],[[MA,SA],[PA,"ie9"]],[[MA,SA],[PA,"safari"]]]),Rcn(null,"elk",null)}).call(this)}).call(this,typeof Vcn<"u"?Vcn:typeof self<"u"?self:typeof window<"u"?window:{})},{}],3:[function(m,v,E){function S(H,z){if(!(H instanceof z))throw new TypeError("Cannot call a class as a function")}function y(H,z){if(!H)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return z&&(typeof z=="object"||typeof z=="function")?z:H}function $(H,z){if(typeof z!="function"&&z!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof z);H.prototype=Object.create(z&&z.prototype,{constructor:{value:H,enumerable:!1,writable:!0,configurable:!0}}),z&&(Object.setPrototypeOf?Object.setPrototypeOf(H,z):H.__proto__=z)}var N=m("./elk-api.js").default,B=function(H){$(z,H);function z(){var Y=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};S(this,z);var Z=Object.assign({},Y),J=!1;try{m.resolve("web-worker"),J=!0}catch{}if(Y.workerUrl)if(J){var qe=m("web-worker");Z.workerFactory=function(xn){return new qe(xn)}}else console.warn(`Web worker requested but 'web-worker' package not installed. +Consider installing the package or pass your own 'workerFactory' to ELK's constructor. +... Falling back to non-web worker version.`);if(!Z.workerFactory){var on=m("./elk-worker.min.js"),bn=on.Worker;Z.workerFactory=function(xn){return new bn(xn)}}return y(this,(z.__proto__||Object.getPrototypeOf(z)).call(this,Z))}return z}(N);Object.defineProperty(v.exports,"__esModule",{value:!0}),v.exports=B,B.default=B},{"./elk-api.js":1,"./elk-worker.min.js":2,"web-worker":4}],4:[function(m,v,E){v.exports=Worker},{}]},{},[3])(3)})})(yfn);var ERn=yfn.exports;const TRn=OG(ERn);class CRn extends Error{constructor(b){super(b||"Promise was canceled"),this.name="CancelError"}get isCanceled(){return!0}}class zG{static fn(b){return(...m)=>new zG((v,E,S)=>{m.push(S),b(...m).then(v,E)})}constructor(b){this._cancelHandlers=[],this._isPending=!0,this._isCanceled=!1,this._rejectOnCancel=!0,this._promise=new Promise((m,v)=>{this._reject=v;const E=$=>{(!this._isCanceled||!y.shouldReject)&&(this._isPending=!1,m($))},S=$=>{this._isPending=!1,v($)},y=$=>{if(!this._isPending)throw new Error("The `onCancel` handler was attached after the promise settled.");this._cancelHandlers.push($)};Object.defineProperties(y,{shouldReject:{get:()=>this._rejectOnCancel,set:$=>{this._rejectOnCancel=$}}}),b(E,S,y)})}then(b,m){return this._promise.then(b,m)}catch(b){return this._promise.catch(b)}finally(b){return this._promise.finally(b)}cancel(b){if(!(!this._isPending||this._isCanceled)){if(this._isCanceled=!0,this._cancelHandlers.length>0)try{for(const m of this._cancelHandlers)m()}catch(m){this._reject(m);return}this._rejectOnCancel&&this._reject(new CRn(b))}}get isCanceled(){return this._isCanceled}}Object.setPrototypeOf(zG.prototype,Promise.prototype);var kfn={};function MRn(d,b){var m=document.createElement("div"),v=document.createTextNode(d);return m.appendChild(v),m.style.fontFamily=b.font,m.style.fontSize=b.fontSize,m.style.fontWeight=b.fontWeight,m.style.position="absolute",m.style.visibility="hidden",m.style.left="-999px",m.style.top="-999px",m.style.width=b.width,m.style.height="auto",document.body.appendChild(m),m}function SRn(d){d.parentNode.removeChild(d)}var T0e={};Object.defineProperty(kfn,"__esModule",{value:!0});var PRn=kfn.default=function(d,b){b===void 0&&(b={});var m=JSON.stringify({text:d,options:b});if(T0e[m])return T0e[m];b.font=b.font||"Times",b.fontSize=b.fontSize||"16px",b.fontWeight=b.fontWeight||"normal",b.width=b.width||"auto";var v=MRn(d,b),E={width:v.offsetWidth,height:v.offsetHeight};return SRn(v),T0e[m]=E,E},asn={ellipse:"…",chars:[" ","-"],max:140,truncate:!0};function ARn(d,b,m,v,E){if(d.length"u")&&(m[v]=asn[v]);return m.max=b||m.max,ARn(d,m.max,m.ellipse,m.chars,m.truncate)};const IRn=OG(xRn),ORn=35,DRn=50,$Rn=50,cO=30,LRn=10;function jfn(d){let b={height:0,width:0};return d&&(b=PRn.default(d,{font:"Arial, sans-serif",fontSize:"14px"})),b}function FRn(d){let b=50,m=50,v=50,E=50;return Array.isArray(d)?d.length===2?(b=d[0],v=d[0],E=d[1],m=d[1]):d.length===4&&(b=d[0],m=d[1],v=d[2],E=d[3]):d!==void 0&&(b=d,m=d,v=d,E=d),{top:b,right:m,bottom:v,left:E}}function NRn(d){const b=d.text?IRn(d.text,ORn):d.text,m=jfn(b),v=FRn(d.nodePadding);let E=d.width;E===void 0&&(b&&d.icon?E=m.width+d.icon.width+cO+LRn:(b?E=m.width+cO:d.icon&&(E=d.icon.width+cO),E=Math.max(E,DRn)));let S=d.height;return S===void 0&&(b&&d.icon?S=m.height+d.icon.height:b?S=m.height+cO:d.icon&&(S=d.icon.height+cO),S=Math.max(S,$Rn)),{text:b,originalText:d.text,width:E,height:S,nodePadding:v,labelHeight:m.height,labelWidth:m.width}}const _Rn={"elk.nodeLabels.placement":"INSIDE V_CENTER H_RIGHT","elk.algorithm":"org.eclipse.elk.layered","elk.direction":"DOWN","layered.crossingMinimization.forceNodeModelOrder":"true","org.eclipse.elk.layered.layering.strategy":"INTERACTIVE","org.eclipse.elk.edgeRouting":"ORTHOGONAL","elk.layered.unnecessaryBendpoints":"true","elk.layered.spacing.edgeNodeBetweenLayers":"50","org.eclipse.elk.layered.nodePlacement.bk.fixedAlignment":"BALANCED","org.eclipse.elk.layered.cycleBreaking.strategy":"DEPTH_FIRST","org.eclipse.elk.insideSelfLoops.activate":"true",separateConnectedComponents:"false","spacing.componentComponent":"70",spacing:"75","spacing.nodeNodeBetweenLayers":"70"};function Efn(d,b,m){const{text:v,width:E,height:S,labelHeight:y,labelWidth:$,nodePadding:N,originalText:B}=NRn(m),H=d.filter(Z=>Z.parent===m.id).map(Z=>Efn(d,b,Z)),z=b.filter(Z=>Z.parent===m.id).map(Z=>Tfn(Z)),Y={"elk.padding":`[left=${N.left}, top=${N.top}, right=${N.right}, bottom=${N.bottom}]`,portConstraints:"FIXED_ORDER",...m.layoutOptions||{}};return{id:m.id,height:S,width:E,children:H,edges:z,ports:m.ports?m.ports.map(Z=>({id:Z.id,properties:{...Z,"port.side":Z.side,"port.alignment":Z.alignment||"CENTER"}})):[],layoutOptions:Y,properties:{...m},labels:v?[{width:$,height:-(y/2),text:v,originalText:B}]:[]}}function Tfn({data:d,...b}){const m=jfn(b.text),v=d?{data:d}:{};return{id:b.id,source:b.from,target:b.to,properties:{...b},...v,sourcePort:b.fromPort,targetPort:b.toPort,labels:b.text?[{width:m.width/2,height:-(m.height/2),text:b.text,layoutOptions:{"elk.edgeLabels.placement":"INSIDE V_CENTER H_CENTER"}}]:[]}}function BRn(d,b){const m=[],v=[];for(const E of d)if(!E.parent){const S=Efn(d,b,E);S!==null&&m.push(S)}for(const E of b)if(!E.parent){const S=Tfn(E);S!==null&&v.push(S)}return{children:m,edges:v}}function Cfn(d){var b;for(const m of d){const v=((b=m.labels)==null?void 0:b.length)>0;if(v&&m.properties.icon){const[E]=m.labels;E.x=m.properties.icon.width+25,m.properties.icon.x=25,m.properties.icon.y=m.height/2}else if(v){const[E]=m.labels;E.x=(m.width-E.width)/2}else m.properties.icon&&(m.properties.icon.x=m.width/2,m.properties.icon.y=m.height/2);m.children&&Cfn(m.children)}return d}const RRn=(d,b,m)=>{const v=new TRn,E={..._Rn,...m};return new zG((S,y)=>{v.layout({id:"root",...BRn(d,b)},{layoutOptions:E}).then($=>{S({...$,children:Cfn($.children)})}).catch(y)})};function Q0e(){return Q0e=Object.assign||function(d){for(var b=1;b=y&&y>E&&(v=S,E=y)}),v},VRn=function(b){var m=b===void 0?{}:b,v=m.useBorderBoxSize,E=m.breakpoints,S=m.updateOnBreakpointChange,y=m.shouldUpdate,$=m.onResize,N=m.polyfill,B=Ee.useState({currentBreakpoint:"",width:0,height:0}),H=B[0],z=B[1],Y=Ee.useRef({}),Z=Ee.useRef(),J=Ee.useRef(),qe=Ee.useRef(!1),on=Ee.useRef(),bn=hsn($),xn=hsn(y),Ue=Ee.useCallback(function(){J.current&&J.current.disconnect()},[]),mn=Ee.useCallback(function(bt){bt&&bt!==on.current&&(Ue(),on.current=bt),J.current&&on.current&&J.current.observe(on.current)},[Ue]);return Ee.useEffect(function(){if((!("ResizeObserver"in window)||!("ResizeObserverEntry"in window))&&!N)return console.error(KRn),function(){return null};var bt=null;return J.current=new(N||ResizeObserver)(function(_t){var Mi=_t[0];bt=requestAnimationFrame(function(){var li=Mi.contentBoxSize,sc=Mi.borderBoxSize,Zi=Mi.contentRect,fr=li;v&&(sc?fr=sc:qe.current||(console.warn(qRn),qe.current=!0)),fr=Array.isArray(fr)?fr[0]:fr;var Mc=fr?fr.inlineSize:Zi.width,lr=fr?fr.blockSize:Zi.height;if(!(Mc===Y.current.width&&lr===Y.current.height)){Y.current={width:Mc,height:lr};var er={currentBreakpoint:"",width:Mc,height:lr,entry:Mi,observe:mn,unobserve:Ue};E?(er.currentBreakpoint=HRn(E,Mc),er.currentBreakpoint!==Z.current&&(bn.current&&bn.current(er),Z.current=er.currentBreakpoint)):bn.current&&bn.current(er);var nr={currentBreakpoint:er.currentBreakpoint,width:Mc,height:lr,entry:Mi};if(!(xn.current&&!xn.current(nr))){if(!xn.current&&E&&S){z(function(wr){return wr.currentBreakpoint!==nr.currentBreakpoint?nr:wr});return}z(nr)}}})}),mn(),function(){Ue(),bt&&cancelAnimationFrame(bt)}},[JSON.stringify(E),v,mn,Ue,S]),Q0e({},H,{observe:mn,unobserve:Ue})},GRn=typeof Element<"u",zRn=typeof Map=="function",URn=typeof Set=="function",WRn=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function bG(d,b){if(d===b)return!0;if(d&&b&&typeof d=="object"&&typeof b=="object"){if(d.constructor!==b.constructor)return!1;var m,v,E;if(Array.isArray(d)){if(m=d.length,m!=b.length)return!1;for(v=m;v--!==0;)if(!bG(d[v],b[v]))return!1;return!0}var S;if(zRn&&d instanceof Map&&b instanceof Map){if(d.size!==b.size)return!1;for(S=d.entries();!(v=S.next()).done;)if(!b.has(v.value[0]))return!1;for(S=d.entries();!(v=S.next()).done;)if(!bG(v.value[1],b.get(v.value[0])))return!1;return!0}if(URn&&d instanceof Set&&b instanceof Set){if(d.size!==b.size)return!1;for(S=d.entries();!(v=S.next()).done;)if(!b.has(v.value[0]))return!1;return!0}if(WRn&&ArrayBuffer.isView(d)&&ArrayBuffer.isView(b)){if(m=d.length,m!=b.length)return!1;for(v=m;v--!==0;)if(d[v]!==b[v])return!1;return!0}if(d.constructor===RegExp)return d.source===b.source&&d.flags===b.flags;if(d.valueOf!==Object.prototype.valueOf&&typeof d.valueOf=="function"&&typeof b.valueOf=="function")return d.valueOf()===b.valueOf();if(d.toString!==Object.prototype.toString&&typeof d.toString=="function"&&typeof b.toString=="function")return d.toString()===b.toString();if(E=Object.keys(d),m=E.length,m!==Object.keys(b).length)return!1;for(v=m;v--!==0;)if(!Object.prototype.hasOwnProperty.call(b,E[v]))return!1;if(GRn&&d instanceof Element)return!1;for(v=m;v--!==0;)if(!((E[v]==="_owner"||E[v]==="__v"||E[v]==="__o")&&d.$$typeof)&&!bG(d[E[v]],b[E[v]]))return!1;return!0}return d!==d&&b!==b}var XRn=function(b,m){try{return bG(b,m)}catch(v){if((v.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw v}};const YRn=OG(XRn);var Rd=(d=>(d.CENTER="center",d.TOP="top",d.LEFT="left",d.RIGHT="right",d.BOTTOM="bottom",d))(Rd||{});const QRn=({maxWidth:d,maxHeight:b,nodes:m=[],edges:v=[],fit:E,pannable:S,defaultPosition:y,direction:$,layoutOptions:N={},zoom:B,setZoom:H,onLayoutChange:z})=>{const Y=Ee.useRef(!1),Z=Ee.useRef(),{observe:J,width:qe,height:on}=VRn(),[bn,xn]=Ee.useState(null),[Ue,mn]=Ee.useState([0,0]),[bt,_t]=Ee.useState([0,0]),Mi=S?b:on,li=S?d:qe;Ee.useEffect(()=>{const lr=RRn(m,v,{"elk.direction":$,...N});return lr.then(er=>{YRn(bn,er)||(xn(er),z(er))}).catch(er=>{er.name!=="CancelError"&&console.error("Layout Error:",er)}),()=>lr.cancel()},[m,v]);const sc=Ee.useCallback(lr=>{if(bn){const er=(li-bn.width*B)/2,nr=(Mi-bn.height*B)/2;switch(lr){case Rd.CENTER:mn([er,nr]);break;case Rd.TOP:mn([er,0]);break;case Rd.LEFT:mn([0,nr]);break;case Rd.RIGHT:mn([li-bn.width*B,nr]);break;case Rd.BOTTOM:mn([er,Mi-bn.height*B]);break}}},[li,Mi,bn,B]),Zi=Ee.useCallback(lr=>{const er=(li-qe)/2,nr=(Mi-on)/2;if(S)switch(lr){case Rd.CENTER:_t([er,nr]);break;case Rd.TOP:_t([er,0]);break;case Rd.LEFT:_t([0,nr]);break;case Rd.RIGHT:_t([li-qe,nr]);break;case Rd.BOTTOM:_t([er,Mi-on]);break}},[li,Mi,qe,on,S]),fr=Ee.useCallback(lr=>{sc(lr),Zi(lr)},[Zi,sc]);Ee.useEffect(()=>{var lr;(lr=Z==null?void 0:Z.current)==null||lr.scrollTo(bt[0],bt[1])},[bt,Z]),Ee.useEffect(()=>{Y.current&&y&&sc(y)},[sc,B,y]);const Mc=Ee.useCallback(()=>{if(bn){const lr=on/bn.height,er=qe/bn.width,nr=Math.min(lr,er,1);H(nr-1),fr(Rd.CENTER)}},[on,bn,qe,H,fr]);return Ee.useLayoutEffect(()=>{Z.current&&!Y.current&&bn&&on&&qe&&(E?Mc():y&&fr(y),Y.current=!0)},[li,S,Mi,bn,on,E,qe,y,fr,Mc,Z]),Ee.useLayoutEffect(()=>{function lr(){E?Mc():y&&fr(y)}return window.addEventListener("resize",lr),()=>window.removeEventListener("resize",lr)},[E,fr,y,Mc]),{xy:Ue,observe:J,containerRef:Z,canvasHeight:Mi,canvasWidth:li,containerWidth:qe,containerHeight:on,layout:bn,scrollXY:bt,positionCanvas:fr,fitCanvas:Mc,setScrollXY:_t}};class JRn{constructor(b=0,m=0){this.x=b,this.y=m}clone(){return new this.constructor(this.x,this.y)}add(b){return new this.constructor(this.x+b.x,this.y+b.y)}subtract(b){return new this.constructor(this.x-b.x,this.y-b.y)}multiply(b){return new this.constructor(this.x*b,this.y*b)}divide(b){return new this.constructor(this.x/b,this.y/b)}equals(b){return this.x===b.x&&this.y===b.y}precisionEquals(b,m){return Math.abs(this.x-b.x)!0;const ZRn=({onNodeLink:d,onNodeLinkCheck:b})=>{const[m,v]=Ee.useState(null),[E,S]=Ee.useState(null),[y,$]=Ee.useState(null),[N,B]=Ee.useState(null),[H,z]=Ee.useState(null),[Y,Z]=Ee.useState(null),J=Ee.useCallback((Ue,mn,bt,_t)=>{$(Ue.dragType),v(bt),S(_t)},[]),qe=Ee.useCallback(({memo:[Ue],xy:[mn,bt]},[_t,Mi])=>{const li=new JRn(mn,bt).transform(Ue);z([{startPoint:{x:_t,y:Mi},endPoint:li}])},[]),on=Ee.useCallback(Ue=>{m&&N&&Y&&d(Ue,m,N,E),v(null),S(null),B(null),z(null)},[Y,m,E,N,d]),bn=Ee.useCallback((Ue,mn)=>{if(m&&mn){B(mn);const bt=b(Ue,m,mn,E),_t=(bt===void 0||bt)&&(m.parent===mn.parent||y==="node");Z(_t)}},[m,E,y,b]),xn=Ee.useCallback((Ue,mn)=>{m&&mn&&(B(null),Z(null))},[m]);return{dragCoords:H,canLinkNode:Y,dragNode:m,dragPort:E,enteredNode:N,onDragStart:J,onDrag:qe,onDragEnd:on,onEnter:bn,onLeave:xn}},dsn=(d,b,m)=>db?d:b:m,eKn=({disabled:d=!1,zoom:b=1,minZoom:m=-.5,maxZoom:v=1,onZoomChange:E})=>{const[S,y]=Ee.useState(b-1),$=Ee.useRef(null);jRn({onPinch:({offset:[z],event:Y})=>{Y.preventDefault();const Z=dsn(z/100,m,v);y(Z),E(Z+1)}},{enabled:!d,domTarget:$,eventOptions:{passive:!1}});const N=Ee.useCallback(z=>{const Y=dsn(z,m,v);y(Y),E(Y+1)},[v,m,E]),B=Ee.useCallback(()=>{N(S+.1)},[S,N]),H=Ee.useCallback(()=>{N(S-.1)},[S,N]);return{svgRef:$,zoom:S+1,setZoom:N,zoomIn:B,zoomOut:H}},Mfn=Ee.createContext({}),J0e=({selections:d,onNodeLink:b,readonly:m,children:v,nodes:E,edges:S,maxHeight:y,fit:$,maxWidth:N,direction:B,layoutOptions:H,pannable:z,defaultPosition:Y,zoomable:Z,zoom:J,minZoom:qe,maxZoom:on,onNodeLinkCheck:bn,onLayoutChange:xn,onZoomChange:Ue})=>{const mn=eKn({zoom:J,minZoom:qe,maxZoom:on,disabled:!Z,onZoomChange:Ue}),bt=QRn({nodes:E,edges:S,maxHeight:y,maxWidth:N,direction:B,pannable:z,defaultPosition:Y,fit:$,layoutOptions:H,zoom:mn.zoom,setZoom:mn.setZoom,onLayoutChange:xn}),_t=ZRn({onNodeLink:b,onNodeLinkCheck:bn});return At.jsx(Mfn.Provider,{value:{selections:d,readonly:m,pannable:z,...bt,...mn,..._t},children:v})},DO=()=>{const d=Ee.useContext(Mfn);if(d===void 0)throw new Error("`useCanvas` hook must be used within a `CanvasContext` component");return d};try{J0e.displayName="CanvasProvider",J0e.__docgenInfo={description:"",displayName:"CanvasProvider",props:{selections:{defaultValue:null,description:"",name:"selections",required:!0,type:{name:"any"}},onNodeLink:{defaultValue:null,description:"",name:"onNodeLink",required:!0,type:{name:"any"}},readonly:{defaultValue:null,description:"",name:"readonly",required:!0,type:{name:"any"}},nodes:{defaultValue:null,description:"",name:"nodes",required:!0,type:{name:"any"}},edges:{defaultValue:null,description:"",name:"edges",required:!0,type:{name:"any"}},maxHeight:{defaultValue:null,description:"",name:"maxHeight",required:!0,type:{name:"any"}},fit:{defaultValue:null,description:"",name:"fit",required:!0,type:{name:"any"}},maxWidth:{defaultValue:null,description:"",name:"maxWidth",required:!0,type:{name:"any"}},direction:{defaultValue:null,description:"",name:"direction",required:!0,type:{name:"any"}},layoutOptions:{defaultValue:null,description:"",name:"layoutOptions",required:!0,type:{name:"any"}},pannable:{defaultValue:null,description:"",name:"pannable",required:!0,type:{name:"any"}},defaultPosition:{defaultValue:null,description:"",name:"defaultPosition",required:!0,type:{name:"any"}},zoomable:{defaultValue:null,description:"",name:"zoomable",required:!0,type:{name:"any"}},zoom:{defaultValue:null,description:"",name:"zoom",required:!0,type:{name:"any"}},minZoom:{defaultValue:null,description:"",name:"minZoom",required:!0,type:{name:"any"}},maxZoom:{defaultValue:null,description:"",name:"maxZoom",required:!0,type:{name:"any"}},onNodeLinkCheck:{defaultValue:null,description:"",name:"onNodeLinkCheck",required:!0,type:{name:"any"}},onLayoutChange:{defaultValue:null,description:"",name:"onLayoutChange",required:!0,type:{name:"any"}},onZoomChange:{defaultValue:null,description:"",name:"onZoomChange",required:!0,type:{name:"any"}}}}}catch{}function nKn(d,b,m){return m===null||!b?null:!b||!d?!1:!(m===!1&&b.id===d.id)}function tKn({zoom:d,layoutXY:b,containerRef:m}){const{top:v,left:E}=m.current.getBoundingClientRect(),S=b[0]-m.current.scrollLeft+E,y=b[1]-m.current.scrollTop+v;return new ca().translate(S,y).scale(d).inverse()}function Z0e(d,b,m){if(!d||!b)return{};const v=b.find(S=>S.id===d);if(v)return v;if(m){const S=b.find(y=>y.id===m);if(S!=null&&S.children)return Z0e(d,S.children,m)}const E=b.filter(S=>{var y;return(y=S.children)==null?void 0:y.length});for(const S of E){const y=Z0e(d,S.children,m);if(y&&Object.keys(y).length)return y}return{}}function iKn(d,b=[]){if(!d)return{};const{parent:m}=d;return m?Z0e(d.id,b,m):(b==null?void 0:b.find(v=>v.id===d.id))||{}}const Sfn=({x:d,y:b,height:m,width:v,onDrag:E,onDragEnd:S,onDragStart:y,node:$,disabled:N})=>{const B=[v/2+d,m+b],H=Ee.useRef(null),{zoom:z,xy:Y,containerRef:Z}=DO();return wRn(qe=>{if(qe.event.type==="pointerdown"&&(H.current=qe.event.currentTarget),!(!qe.intentional||!H.current)){if(qe.first){const bn=[tKn({containerRef:Z,zoom:z,layoutXY:Y})];return y({...qe,memo:bn},B,$),bn}E(qe,B,$),qe.last&&(H.current=null,S(qe,B,$))}},{enabled:!N,triggerAllEvents:!0,threshold:5})},rKn="_port_1r6fw_1",cKn="_clicker_1r6fw_9",uKn="_disabled_1r6fw_12",C0e={port:rKn,clicker:cKn,disabled:uKn},ebe=Ee.forwardRef(({id:d,x:b,y:m,rx:v,ry:E,disabled:S,style:y,children:$,properties:N,offsetX:B,offsetY:H,className:z,active:Y,onDrag:Z=()=>{},onDragStart:J=()=>{},onDragEnd:qe=()=>{},onEnter:on=()=>{},onLeave:bn=()=>{},onClick:xn=()=>{}},Ue)=>{const{readonly:mn}=DO(),[bt,_t]=Ee.useState(!1),[Mi,li]=Ee.useState(!1),sc=b-N.width/2,Zi=m-N.height/2,fr=(wr,ai)=>{J(wr,ai,N),_t(!0)},Mc=(wr,ai)=>{qe(wr,ai,N),_t(!1)},lr=Sfn({x:sc+B,y:Zi+H,height:N.height,width:N.width,disabled:S||mn||(N==null?void 0:N.disabled),node:N,onDrag:Z,onDragStart:fr,onDragEnd:Mc});if(N.hidden)return null;const er=N.disabled||S,nr={port:N,isDragging:bt,isHovered:Mi,isDisabled:er,x:b,y:m,rx:v,ry:E,offsetX:B,offsetY:H};return At.jsxs("g",{id:d,children:[At.jsx("rect",{...lr(),ref:Ue,height:N.height+14,width:N.width+14,x:sc-7,y:Zi-7,className:jb(C0e.clicker,{[C0e.disabled]:er}),onMouseEnter:wr=>{wr.stopPropagation(),er||(li(!0),on(wr,N))},onMouseLeave:wr=>{wr.stopPropagation(),er||(li(!1),bn(wr,N))},onClick:wr=>{wr.stopPropagation(),er||xn(wr,N)}}),At.jsx(K9.rect,{style:y,className:jb(C0e.port,z,N==null?void 0:N.className),height:N.height,width:N.width,rx:v,ry:E,initial:{scale:0,opacity:0,x:sc,y:Zi},animate:{x:sc,y:Zi,scale:(bt||Y||Mi)&&!er?1.5:1,opacity:1}},`${b}-${m}`),$&&At.jsx(Ee.Fragment,{children:typeof $=="function"?$(nr):$})]})});try{ebe.displayName="Port",ebe.__docgenInfo={description:"",displayName:"Port",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},x:{defaultValue:null,description:"",name:"x",required:!1,type:{name:"number"}},y:{defaultValue:null,description:"",name:"y",required:!1,type:{name:"number"}},rx:{defaultValue:null,description:"",name:"rx",required:!1,type:{name:"number"}},ry:{defaultValue:null,description:"",name:"ry",required:!1,type:{name:"number"}},offsetX:{defaultValue:null,description:"",name:"offsetX",required:!1,type:{name:"number"}},offsetY:{defaultValue:null,description:"",name:"offsetY",required:!1,type:{name:"number"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},properties:{defaultValue:null,description:"",name:"properties",required:!1,type:{name:"ElkPortProperties & PortData"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"any"}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},onEnter:{defaultValue:{value:"() => undefined"},description:"",name:"onEnter",required:!1,type:{name:"(event: MouseEvent, port: PortData) => void"}},onLeave:{defaultValue:{value:"() => undefined"},description:"",name:"onLeave",required:!1,type:{name:"(event: MouseEvent, port: PortData) => void"}},onClick:{defaultValue:{value:"() => undefined"},description:"",name:"onClick",required:!1,type:{name:"(event: MouseEvent, port: PortData) => void"}},onDrag:{defaultValue:{value:"() => undefined"},description:"",name:"onDrag",required:!1,type:{name:"(event: DragEvent, initial: Position, data: PortData, extra?: any) => void"}},onDragEnd:{defaultValue:{value:"() => undefined"},description:"",name:"onDragEnd",required:!1,type:{name:"(event: DragEvent, initial: Position, data: PortData, extra?: any) => void"}},onDragStart:{defaultValue:{value:"() => undefined"},description:"",name:"onDragStart",required:!1,type:{name:"(event: DragEvent, initial: Position, data: PortData, extra?: any) => void"}}}}}catch{}try{Port.displayName="Port",Port.__docgenInfo={description:"",displayName:"Port",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},x:{defaultValue:null,description:"",name:"x",required:!1,type:{name:"number"}},y:{defaultValue:null,description:"",name:"y",required:!1,type:{name:"number"}},rx:{defaultValue:null,description:"",name:"rx",required:!1,type:{name:"number"}},ry:{defaultValue:null,description:"",name:"ry",required:!1,type:{name:"number"}},offsetX:{defaultValue:null,description:"",name:"offsetX",required:!1,type:{name:"number"}},offsetY:{defaultValue:null,description:"",name:"offsetY",required:!1,type:{name:"number"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},properties:{defaultValue:null,description:"",name:"properties",required:!1,type:{name:"ElkPortProperties & PortData"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"any"}},active:{defaultValue:null,description:"",name:"active",required:!1,type:{name:"boolean"}},onEnter:{defaultValue:{value:"() => undefined"},description:"",name:"onEnter",required:!1,type:{name:"(event: MouseEvent, port: PortData) => void"}},onLeave:{defaultValue:{value:"() => undefined"},description:"",name:"onLeave",required:!1,type:{name:"(event: MouseEvent, port: PortData) => void"}},onClick:{defaultValue:{value:"() => undefined"},description:"",name:"onClick",required:!1,type:{name:"(event: MouseEvent, port: PortData) => void"}},onDrag:{defaultValue:{value:"() => undefined"},description:"",name:"onDrag",required:!1,type:{name:"(event: DragEvent, initial: Position, data: PortData, extra?: any) => void"}},onDragEnd:{defaultValue:{value:"() => undefined"},description:"",name:"onDragEnd",required:!1,type:{name:"(event: DragEvent, initial: Position, data: PortData, extra?: any) => void"}},onDragStart:{defaultValue:{value:"() => undefined"},description:"",name:"onDragStart",required:!1,type:{name:"(event: DragEvent, initial: Position, data: PortData, extra?: any) => void"}}}}}catch{}const sKn="_text_fhkx6_1",oKn={text:sKn},xG=({text:d,x:b,y:m,style:v,className:E,originalText:S})=>At.jsxs(At.Fragment,{children:[At.jsx("title",{children:S}),At.jsx("g",{transform:`translate(${b}, ${m})`,children:At.jsx("text",{className:jb(oKn.text,E),style:v,children:d})})]});try{xG.displayName="Label",xG.__docgenInfo={description:"",displayName:"Label",props:{x:{defaultValue:null,description:"",name:"x",required:!1,type:{name:"number"}},y:{defaultValue:null,description:"",name:"y",required:!1,type:{name:"number"}},height:{defaultValue:null,description:"",name:"height",required:!1,type:{name:"number"}},width:{defaultValue:null,description:"",name:"width",required:!1,type:{name:"number"}},text:{defaultValue:null,description:"",name:"text",required:!1,type:{name:"string"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"any"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},originalText:{defaultValue:null,description:"",name:"originalText",required:!1,type:{name:"string"}}}}}catch{}const fKn="_deleteX_nxq8k_1",lKn="_container_nxq8k_6",aKn="_drop_nxq8k_10",hKn="_rect_nxq8k_15",uO={deleteX:fKn,container:lKn,drop:aKn,rect:hKn},IG=({size:d=15,className:b,hidden:m,x:v,y:E,onClick:S=()=>{},onEnter:y=()=>{},onLeave:$=()=>{}})=>{if(m)return null;const N=d/2,B=v-N,H=E-N;return At.jsxs(K9.g,{className:jb(b,uO.container),initial:{scale:0,opacity:0,translateX:B,translateY:H},animate:{scale:1,opacity:1,translateX:B,translateY:H},whileHover:{scale:1.2},whileTap:{scale:.8},children:[At.jsx("rect",{height:d*1.5,width:d*1.5,className:uO.drop,onMouseEnter:y,onMouseLeave:$,onClick:z=>{z.preventDefault(),z.stopPropagation(),S(z)}}),At.jsx("rect",{height:d,width:d,className:uO.rect}),At.jsx("line",{x1:"2",y1:d-2,x2:d-2,y2:"2",className:uO.deleteX,strokeWidth:"1"}),At.jsx("line",{x1:"2",y1:"2",x2:d-2,y2:d-2,className:uO.deleteX,strokeWidth:"1"})]})};try{IG.displayName="Remove",IG.__docgenInfo={description:"",displayName:"Remove",props:{x:{defaultValue:null,description:"",name:"x",required:!1,type:{name:"number"}},y:{defaultValue:null,description:"",name:"y",required:!1,type:{name:"number"}},hidden:{defaultValue:null,description:"",name:"hidden",required:!1,type:{name:"boolean"}},size:{defaultValue:{value:"15"},description:"",name:"size",required:!1,type:{name:"number"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},onEnter:{defaultValue:{value:"() => undefined"},description:"",name:"onEnter",required:!1,type:{name:"(event: MouseEvent) => void"}},onLeave:{defaultValue:{value:"() => undefined"},description:"",name:"onLeave",required:!1,type:{name:"(event: MouseEvent) => void"}},onClick:{defaultValue:{value:"() => undefined"},description:"",name:"onClick",required:!1,type:{name:"(event: MouseEvent) => void"}}}}}catch{}function dKn({sourceX:d,sourceY:b,targetX:m,targetY:v}){const E=Math.abs(m-d)/2,S=m=0))throw new Error(`invalid digits: ${d}`);if(b>15)return Pfn;const m=10**b;return function(v){this._+=v[0];for(let E=1,S=v.length;E_9)if(!(Math.abs(z*N-B*H)>_9)||!S)this._append`L${this._x1=b},${this._y1=m}`;else{let Z=v-y,J=E-$,qe=N*N+B*B,on=Z*Z+J*J,bn=Math.sqrt(qe),xn=Math.sqrt(Y),Ue=S*Math.tan((nbe-Math.acos((qe+Y-on)/(2*bn*xn)))/2),mn=Ue/xn,bt=Ue/bn;Math.abs(mn-1)>_9&&this._append`L${b+mn*H},${m+mn*z}`,this._append`A${S},${S},0,0,${+(z*Z>H*J)},${this._x1=b+bt*N},${this._y1=m+bt*B}`}}arc(b,m,v,E,S,y){if(b=+b,m=+m,v=+v,y=!!y,v<0)throw new Error(`negative radius: ${v}`);let $=v*Math.cos(E),N=v*Math.sin(E),B=b+$,H=m+N,z=1^y,Y=y?E-S:S-E;this._x1===null?this._append`M${B},${H}`:(Math.abs(this._x1-B)>_9||Math.abs(this._y1-H)>_9)&&this._append`L${B},${H}`,v&&(Y<0&&(Y=Y%tbe+tbe),Y>mKn?this._append`A${v},${v},0,1,${z},${b-$},${m-N}A${v},${v},0,1,${z},${this._x1=B},${this._y1=H}`:Y>_9&&this._append`A${v},${v},0,${+(Y>=nbe)},${z},${this._x1=b+v*Math.cos(S)},${this._y1=m+v*Math.sin(S)}`)}rect(b,m,v,E){this._append`M${this._x0=this._x1=+b},${this._y0=this._y1=+m}h${v=+v}v${+E}h${-v}Z`}toString(){return this._}}function kKn(d){let b=3;return d.digits=function(m){if(!arguments.length)return b;if(m==null)b=null;else{const v=Math.floor(m);if(!(v>=0))throw new RangeError(`invalid digits: ${m}`);b=v}return d},()=>new yKn(b)}function jKn(d){return typeof d=="object"&&"length"in d?d:Array.from(d)}function Afn(d){this._context=d}Afn.prototype={areaStart:function(){this._line=0},areaEnd:function(){this._line=NaN},lineStart:function(){this._point=0},lineEnd:function(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},point:function(d,b){switch(d=+d,b=+b,this._point){case 0:this._point=1,this._line?this._context.lineTo(d,b):this._context.moveTo(d,b);break;case 1:this._point=2;default:this._context.lineTo(d,b);break}}};function EKn(d){return new Afn(d)}function TKn(d){return d[0]}function CKn(d){return d[1]}function MKn(d,b){var m=bE(!0),v=null,E=EKn,S=null,y=kKn($);d=typeof d=="function"?d:d===void 0?TKn:bE(d),b=typeof b=="function"?b:b===void 0?CKn:bE(b);function $(N){var B,H=(N=jKn(N)).length,z,Y=!1,Z;for(v==null&&(S=E(Z=y())),B=0;B<=H;++B)!(B0)for(var v=d[0],E=b[0],S=d[m]-v,y=b[m]-E,$=-1,N;++$<=m;)N=$/m,this._basis.point(this._beta*d[$]+(1-this._beta)*(v+N*S),this._beta*b[$]+(1-this._beta)*(E+N*y));this._x=this._y=null,this._basis.lineEnd()},point:function(d,b){this._x.push(+d),this._y.push(+b)}};const SKn=function d(b){function m(v){return b===1?new Kbe(v):new xfn(v,b)}return m.beta=function(v){return d(+v)},m}(.85),PKn="_plus_1qsm8_1",AKn="_container_1qsm8_6",xKn="_drop_1qsm8_10",IKn="_rect_1qsm8_15",sO={plus:PKn,container:AKn,drop:xKn,rect:IKn},ibe=({x:d,y:b,className:m,size:v=15,hidden:E=!0,onEnter:S=()=>{},onLeave:y=()=>{},onClick:$=()=>{}})=>{if(E)return null;const N=v/2,B=d-N,H=b-N;return At.jsxs(K9.g,{className:jb(m,sO.container),initial:{scale:0,opacity:0,translateX:B,translateY:H},animate:{scale:1,opacity:1,translateX:B,translateY:H},whileHover:{scale:1.2},whileTap:{scale:.8},children:[At.jsx("rect",{height:v*2,width:v*2,className:sO.drop,onClick:z=>{z.preventDefault(),z.stopPropagation(),$(z)},onMouseEnter:S,onMouseLeave:y}),At.jsx("rect",{height:v,width:v,className:sO.rect}),At.jsx("line",{x1:"2",x2:v-2,y1:N,y2:N,className:sO.plus,strokeWidth:"1"}),At.jsx("line",{x1:N,x2:N,y1:"2",y2:v-2,className:sO.plus,strokeWidth:"1"})]})};try{ibe.displayName="Add",ibe.__docgenInfo={description:"",displayName:"Add",props:{x:{defaultValue:null,description:"",name:"x",required:!1,type:{name:"number"}},y:{defaultValue:null,description:"",name:"y",required:!1,type:{name:"number"}},size:{defaultValue:{value:"15"},description:"",name:"size",required:!1,type:{name:"number"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},hidden:{defaultValue:{value:"true"},description:"",name:"hidden",required:!1,type:{name:"boolean"}},onEnter:{defaultValue:{value:"() => undefined"},description:"",name:"onEnter",required:!1,type:{name:"(event: MouseEvent) => void"}},onLeave:{defaultValue:{value:"() => undefined"},description:"",name:"onLeave",required:!1,type:{name:"(event: MouseEvent) => void"}},onClick:{defaultValue:{value:"() => undefined"},description:"",name:"onClick",required:!1,type:{name:"(event: MouseEvent) => void"}}}}}catch{}const OKn="_edge_v5z62_1",DKn="_disabled_v5z62_2",$Kn="_selectionDisabled_v5z62_6",LKn="_path_v5z62_8",FKn="_active_v5z62_11",NKn="_deleteHovered_v5z62_15",_Kn="_clicker_v5z62_22",F9={edge:OKn,disabled:DKn,selectionDisabled:$Kn,path:LKn,active:FKn,deleteHovered:NKn,clicker:_Kn},PE=({sections:d,interpolation:b,properties:m,labels:v,className:E,containerClassName:S,disabled:y,removable:$=!0,selectable:N=!0,upsertable:B=!0,style:H,children:z,add:Y=At.jsx(ibe,{}),remove:Z=At.jsx(IG,{}),label:J=At.jsx(xG,{}),onClick:qe=()=>{},onKeyDown:on=()=>{},onEnter:bn=()=>{},onLeave:xn=()=>{},onRemove:Ue=()=>{},onAdd:mn=()=>{}})=>{const bt=Ee.useRef(null),[_t,Mi]=Ee.useState(!1),[li,sc]=Ee.useState(null),{selections:Zi,readonly:fr}=DO(),Mc=Zi!=null&&Zi.length?Zi.includes(m==null?void 0:m.id):!1,lr=y||(m==null?void 0:m.disabled),er=N&&!(m!=null&&m.selectionDisabled),nr=Ee.useMemo(()=>{if(!(d!=null&&d.length))return null;if(d[0].bendPoints){const ai=d?[d[0].startPoint,...d[0].bendPoints||[],d[0].endPoint]:[];let U=MKn().x(Mh=>Mh.x).y(Mh=>Mh.y);return b!=="linear"&&(U=b==="curved"?U.curve(SKn.beta(1)):b),U(ai)}else return bKn({sourceX:d[0].startPoint.x,sourceY:d[0].startPoint.y,targetX:d[0].endPoint.x,targetY:d[0].endPoint.y})},[b,d]);Ee.useEffect(()=>{(d==null?void 0:d.length)>0&&sc(pKn(bt.current,d[0].startPoint,d[0].endPoint))},[d]);const wr={edge:m,center:li,pathRef:bt};return At.jsxs("g",{className:jb(F9.edge,S,{[F9.disabled]:lr,[F9.selectionDisabled]:!er}),children:[At.jsx("path",{ref:bt,style:H,className:jb(F9.path,m==null?void 0:m.className,E,{[F9.active]:Mc,[F9.deleteHovered]:_t}),d:nr,markerEnd:"url(#end-arrow)"}),At.jsx("path",{className:F9.clicker,d:nr,tabIndex:-1,onClick:ai=>{ai.preventDefault(),ai.stopPropagation(),!lr&&er&&qe(ai,m)},onKeyDown:ai=>{ai.preventDefault(),ai.stopPropagation(),lr||on(ai,m)},onMouseEnter:ai=>{ai.stopPropagation(),lr||bn(ai,m)},onMouseLeave:ai=>{ai.stopPropagation(),lr||xn(ai,m)}}),z&&At.jsx(Ee.Fragment,{children:typeof z=="function"?z(wr):z}),(v==null?void 0:v.length)>0&&v.map((ai,U)=>At.jsx(Ch,{element:J,edgeChildProps:wr,...ai},U)),!lr&&li&&!fr&&Z&&$&&At.jsx(Ch,{element:Z,...li,hidden:Z.props.hidden!==void 0?Z.props.hidden:!Mc,onClick:ai=>{ai.preventDefault(),ai.stopPropagation(),Ue(ai,m),Mi(!1)},onEnter:()=>Mi(!0),onLeave:()=>Mi(!1)}),!lr&&li&&!fr&&Y&&B&&At.jsx(Ch,{element:Y,...li,onClick:ai=>{ai.preventDefault(),ai.stopPropagation(),mn(ai,m)}})]})};PE.defaultProps={interpolation:"curved"};try{PE.displayName="Edge",PE.__docgenInfo={description:"",displayName:"Edge",props:{id:{defaultValue:null,description:"",name:"id",required:!1,type:{name:"string"}},disabled:{defaultValue:null,description:"",name:"disabled",required:!1,type:{name:"boolean"}},removable:{defaultValue:{value:"true"},description:"",name:"removable",required:!1,type:{name:"boolean"}},selectable:{defaultValue:{value:"true"},description:"",name:"selectable",required:!1,type:{name:"boolean"}},upsertable:{defaultValue:{value:"true"},description:"",name:"upsertable",required:!1,type:{name:"boolean"}},source:{defaultValue:null,description:"",name:"source",required:!1,type:{name:"string"}},sourcePort:{defaultValue:null,description:"",name:"sourcePort",required:!1,type:{name:"string"}},target:{defaultValue:null,description:"",name:"target",required:!1,type:{name:"string"}},targetPort:{defaultValue:null,description:"",name:"targetPort",required:!1,type:{name:"string"}},properties:{defaultValue:null,description:"",name:"properties",required:!1,type:{name:"EdgeData"}},style:{defaultValue:null,description:"",name:"style",required:!1,type:{name:"any"}},sections:{defaultValue:null,description:"",name:"sections",required:!1,type:{name:"EdgeSections[]"}},interpolation:{defaultValue:{value:"curved"},description:"",name:"interpolation",required:!1,type:{name:'Function | "linear" | "curved"'}},labels:{defaultValue:null,description:"",name:"labels",required:!1,type:{name:"LabelProps[]"}},className:{defaultValue:null,description:"",name:"className",required:!1,type:{name:"string"}},containerClassName:{defaultValue:null,description:"",name:"containerClassName",required:!1,type:{name:"string"}},add:{defaultValue:{value:""},description:"",name:"add",required:!1,type:{name:"ReactElement>>"}},label:{defaultValue:{value:"