@sigloch/graph-view-edit 0.2.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -118,7 +118,7 @@ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.
118
118
  * LICENSE file in the root directory of this source tree.
119
119
  */var EZ=hn,Ptt=Ott;function Rtt(u,f){return u===f&&(u!==0||1/u===1/f)||u!==u&&f!==f}var Ntt=typeof Object.is=="function"?Object.is:Rtt,Dtt=Ptt.useSyncExternalStore,Ftt=EZ.useRef,Ltt=EZ.useEffect,Btt=EZ.useMemo,ztt=EZ.useDebugValue;d3n.useSyncExternalStoreWithSelector=function(u,f,h,g,p){var k=Ftt(null);if(k.current===null){var m={hasValue:!1,value:null};k.current=m}else m=k.current;k=Btt(function(){function x(W){if(!I){if(I=!0,R=W,W=g(W),p!==void 0&&m.hasValue){var ee=m.value;if(p(ee,W))return B=ee}return B=W}if(ee=B,Ntt(R,W))return ee;var q=g(W);return p!==void 0&&p(ee,q)?(R=W,ee):(R=W,B=q)}var I=!1,R,B,J=h===void 0?null:h;return[function(){return x(f())},J===null?void 0:function(){return x(J())}]},[f,h,g,p]);var j=Dtt(u,k[0],k[1]);return Ltt(function(){m.hasValue=!0,m.value=j},[j]),ztt(j),j};h3n.exports=d3n;var Jtt=h3n.exports;const Utt=Gye(Jtt),b3n={},{useDebugValue:Gtt}=jKn,{useSyncExternalStoreWithSelector:Htt}=Utt;let Hpn=!1;const qtt=u=>u;function Vtt(u,f=qtt,h){(b3n?"production":void 0)!=="production"&&h&&!Hpn&&(console.warn("[DEPRECATED] Use `createWithEqualityFn` instead of `create` or use `useStoreWithEqualityFn` instead of `useStore`. They can be imported from 'zustand/traditional'. https://github.com/pmndrs/zustand/discussions/1937"),Hpn=!0);const g=Htt(u.subscribe,u.getState,u.getServerState||u.getInitialState,f,h);return Gtt(g),g}const qpn=u=>{(b3n?"production":void 0)!=="production"&&typeof u!="function"&&console.warn("[DEPRECATED] Passing a vanilla store will be unsupported in a future version. Instead use `import { useStore } from 'zustand'`.");const f=typeof u=="function"?Ett(u):u,h=(g,p)=>Vtt(f,g,p);return Object.assign(h,f),h},V4e=u=>u?qpn(u):qpn;function YQ(u){const h=((u==null?void 0:u.elements)??[]).filter(k=>k.type==="SYS");if(h.length===0)return null;const g=new Set(((u==null?void 0:u.traces)??[]).filter(k=>k.type==="compose").map(k=>k.target));return(h.find(k=>!g.has(k.id))??h[0]).id}const fx=Of(["SYS","UC","ACTOR","FCHAIN","FUNC","FLOW","REQ","TEST","MOD","SCHEMA","SESSION","CR","MS"]),W4e=Of(["compose","io","satisfy","verify","allocate","relation","produces"]),Wtt=Of(["functional","non-functional","risk","negative","mitigation","precondition","postcondition"]),Ktt=Of(["QM","A","B","C","D"]),Xtt=Of(["test","inspection","analysis","demonstration"]),Qtt=Of(["passed","failed","skipped","pending"]),Iye=Ut().min(1,"path must not be empty").refine(u=>!u.includes("\\"),{message:"path must not contain backslashes (use POSIX separators)"}).refine(u=>!u.startsWith("/")&&!u.startsWith("~"),{message:"path must be repo-relative, not absolute"}).refine(u=>!/^[A-Za-z]:/.test(u),{message:"path must be repo-relative, not a Windows drive path"}).refine(u=>!u.split("/").includes(".."),{message:"path must not contain a '..' segment"}),Ztt=Or({file:Iye,case:Ut().optional(),tool:Ut(),level:Ut().optional(),result:Qtt.optional(),ranAt:q4e().optional(),evidence:Iye.optional()}),CZ=Qo(Ztt).min(1),K4e=Or({file:Iye,symbol:Ut().optional(),lang:Ut().optional()});Of(["conops","fmea","trade","implplan","assumption-review"]);const Ytt=Or({graphVersion:Pa().int().nonnegative()}),eit=Or({id:Ut(),type:fx,name:Ut(),description:Ut(),asil:Ktt.optional(),method:Xtt.optional(),kinds:Qo(Wtt).optional(),attributes:bk(Ut(),Ev()).optional(),status:Of(["draft","reviewed","open","done"]).default("draft"),created_at:Ut(),updated_at:Ut().optional()}),nit=Of(["modeling","audit"]),tit=Or({source:Ut(),target:Ut(),type:W4e,category:nit.optional(),label:Ut().optional(),weight:Pa().default(1),attributes:bk(Ut(),Ev()).optional(),created_at:Ut(),verified_at:Ut().optional()});Or({elements:Qo(eit),traces:Qo(tit)});fx.options.filter(u=>u!=="SESSION"&&u!=="CR");const X4e=[{source:"SYS",target:"SYS",type:"compose",cardinality:"0..*",description:"System decomposes into subsystems"},{source:"SYS",target:"UC",type:"compose",cardinality:"1..*",description:"System decomposes into use cases"},{source:"SYS",target:"REQ",type:"compose",cardinality:"0..*",description:"System-level requirements"},{source:"SYS",target:"MOD",type:"compose",cardinality:"0..*",description:"System decomposes into modules"},{source:"MOD",target:"MOD",type:"compose",cardinality:"0..*",description:"Module contains sub-module (e.g. ACL belongs to BC)"},{source:"UC",target:"FCHAIN",type:"compose",cardinality:"1..*",description:"UC behavioral scenarios"},{source:"UC",target:"REQ",type:"compose",cardinality:"1..*",description:"UC functional/non-functional requirements"},{source:"FCHAIN",target:"FUNC",type:"compose",cardinality:"1..*",description:"Functions participating in chain"},{source:"FUNC",target:"FUNC",type:"compose",cardinality:"0..*",description:"Function (blackbox architecture block) decomposes into sub-functions one level deeper; leaf FUNCs carry realRef, the parent is realized by its children"},{source:"REQ",target:"REQ",type:"compose",cardinality:"0..*",description:"Requirement decomposes into sub-requirements (incl. mitigation)"},{source:"ACTOR",target:"FLOW",type:"io",description:"Actor triggers/receives via flow"},{source:"FLOW",target:"ACTOR",type:"io",description:"Flow delivers to actor"},{source:"FUNC",target:"FLOW",type:"io",description:"Function outputs to flow"},{source:"FLOW",target:"FUNC",type:"io",description:"Flow feeds into function"},{source:"ACTOR",target:"UC",type:"io",description:"Actor triggers use case"},{source:"FLOW",target:"UC",type:"io",description:"Flow feeds use case"},{source:"MOD",target:"MOD",type:"io",description:"Module communicates with module (ACL)"},{source:"FUNC",target:"REQ",type:"satisfy",description:"Function implements requirement"},{source:"FUNC",target:"UC",type:"satisfy",description:"Function implements use case"},{source:"FCHAIN",target:"REQ",type:"satisfy",description:"Function chain satisfies end-to-end NFR (e.g. latency)"},{source:"MOD",target:"REQ",type:"satisfy",description:"Module satisfies budget NFR (e.g. uptime, memory)"},{source:"SYS",target:"REQ",type:"satisfy",description:"System satisfies system-level NFR (e.g. availability)"},{source:"TEST",target:"REQ",type:"verify",description:"Test verifies requirement"},{source:"FUNC",target:"MOD",type:"allocate",description:"Function deployed in module"},{source:"FLOW",target:"SCHEMA",type:"relation",description:"Flow data format defined by schema"},{source:"MS",target:"FUNC",type:"compose",description:"Milestone includes function"},{source:"MS",target:"REQ",type:"compose",description:"Milestone includes requirement"},{source:"MS",target:"UC",type:"compose",description:"Milestone includes use case"},{source:"MS",target:"MS",type:"compose",description:"Sub-milestone"},{source:"MS",target:"MS",type:"relation",label:"depends-on",description:"Milestone dependency"},{source:"CR",target:"MS",type:"relation",description:"CR assigned to milestone"},{source:"CR",target:"UC",type:"relation",description:"CR affects use case"},{source:"CR",target:"REQ",type:"relation",description:"CR affects requirement"},{source:"CR",target:"FUNC",type:"relation",description:"CR affects function"},{source:"CR",target:"MOD",type:"relation",description:"CR affects module"},{source:"SESSION",target:"*",type:"produces",category:"audit",description:"Session produced/modified element"}];function iit(u,f=X4e){return f.some(h=>(h.source==="*"||h.source===u.source)&&(h.target==="*"||h.target===u.target)&&h.type===u.type&&(!h.label||h.label===u.label))}const rit=Of(["error","warning","info"]),cit=Or({id:Ut(),type:fx,name:Ut()}),oit=Or({element_type:fx.optional(),element_name:Ut().optional(),candidate_targets:Qo(cit).optional(),existing_traces:Qo(Or({target:Ut(),type:W4e})).optional(),parent_module:Ut().optional(),current_description:Ut().optional()});Or({rule_id:Ut(),severity:rit,element_id:Ut(),message:Ut(),fix_hint:Ut().optional(),context:oit.optional()});function uit(u,f){const h=u.traces.find(g=>g.source===f&&g.type==="allocate");return h==null?void 0:h.target}function sit(u,f,h){return u.traces.filter(g=>g.source===f&&!0)}function Vpn(...u){return new Set(u.filter(f=>!!f).join(" ").toLowerCase().split(/[^a-z0-9]+/).filter(f=>f.length>=3))}function Cb(u,f){if(!f)return u.map(p=>({id:p.id,type:p.type,name:p.name}));const h=Vpn(f.id,f.name,f.description),g=p=>{let k=0;for(const m of Vpn(p.id,p.name,p.description))h.has(m)&&k++;return k};return[...u].sort((p,k)=>g(k)-g(p)).map(p=>({id:p.id,type:p.type,name:p.name}))}function lit(u){const f=u.elements.filter(g=>g.type==="REQ"),h=u.elements.filter(g=>g.type==="TEST");return f.filter(g=>!u.traces.some(p=>p.target===g.id&&p.type==="verify")).map(g=>({rule_id:"R-01",severity:"error",element_id:g.id,message:`${g.id} has no verification trace`,fix_hint:"Link a TEST element via verify trace",context:{element_type:g.type,element_name:g.name,candidate_targets:Cb(h,g),current_description:g.description}}))}function fit(u){const f=u.elements.filter(g=>g.type==="FUNC"),h=u.elements.filter(g=>g.type==="REQ");return f.filter(g=>!u.traces.some(p=>p.source===g.id&&p.type==="satisfy")).map(g=>{const p=uit(u,g.id),k=p?u.traces.filter(I=>I.type==="allocate"&&I.target===p&&I.source!==g.id).flatMap(I=>u.traces.filter(R=>R.source===I.source&&R.type==="satisfy")).map(I=>u.elements.find(R=>R.id===I.target)).filter(I=>!!I):[],m=g.name.toLowerCase(),j=h.filter(I=>{var R;return((R=I.kinds)==null?void 0:R.includes("non-functional"))&&I.description.toLowerCase().includes(m)}),x=[...new Map([...k,...j,...h].map(I=>[I.id,I])).values()];return{rule_id:"R-02",severity:"warning",element_id:g.id,message:`${g.id} does not satisfy any requirement`,fix_hint:"Link to a REQ via satisfy trace",context:{element_type:g.type,element_name:g.name,parent_module:p,existing_traces:sit(u,g.id).map(I=>({target:I.target,type:I.type})),candidate_targets:Cb(x,g)}}})}function ait(u){const f=[],h=u.elements.filter(g=>g.type==="MOD");for(const g of h){const p=u.traces.filter(j=>j.target===g.id&&j.type==="allocate").map(j=>u.elements.find(x=>x.id===j.source)).filter(j=>!!j),k=p.some(j=>j.asil==="D"),m=p.some(j=>j.asil==="QM");if(k&&m){const j=p.filter(I=>I.asil==="D"),x=p.filter(I=>I.asil==="QM");f.push({rule_id:"R-03",severity:"error",element_id:g.id,message:`${g.id} mixes ASIL-D and ASIL-QM functions`,fix_hint:"Separate ASIL-D functions into isolated module",context:{element_type:g.type,element_name:g.name,candidate_targets:Cb([...j,...x])}})}}return f}function hit(u,f){const h=[],g=f.moduleSize;if(g===null)return h;const p=u.elements.filter(k=>k.type==="MOD");for(const k of p){const m=u.traces.filter(B=>B.target===k.id&&B.type==="allocate").map(B=>B.source),j=m.map(B=>u.elements.find(J=>J.id===B)).filter(B=>!!B),x=j.length;if(x<=g.coupled)continue;const I=new Set(m),R=u.traces.filter(B=>{if(B.type!=="io")return!1;const J=I.has(B.source),W=I.has(B.target);return J&&!W||!J&&W}).length;x>g.large&&R===0?h.push({rule_id:"R-04",severity:"info",element_id:k.id,message:`${k.id} has ${x} functions but 0 crossings (cohesive, just large)`,fix_hint:`Size alone is not the finding: > ${g.large} functions without crossing flows is cohesive. Split only if crossings appear`,context:{element_type:k.type,element_name:k.name,candidate_targets:Cb(j)}}):x>g.large&&R>0?h.push({rule_id:"R-04",severity:"warning",element_id:k.id,message:`${k.id} has ${x} functions and ${R} crossing flows (split recommended)`,fix_hint:`Split module into smaller units to reduce coupling (> ${g.large} functions AND crossing flows)`,context:{element_type:k.type,element_name:k.name,candidate_targets:Cb(j)}}):x>g.coupled&&R>g.crossings&&h.push({rule_id:"R-04",severity:"warning",element_id:k.id,message:`${k.id} has ${x} functions and ${R} crossing flows (high coupling)`,fix_hint:"Reduce crossing flows or split module",context:{element_type:k.type,element_name:k.name,candidate_targets:Cb(j)}})}return h}function dit(u){const f=u.elements.filter(g=>g.type==="TEST"),h=u.elements.filter(g=>g.type==="REQ");return f.filter(g=>!u.traces.some(p=>p.source===g.id&&p.type==="verify")).map(g=>({rule_id:"R-05",severity:"warning",element_id:g.id,message:`${g.id} does not verify any requirement`,fix_hint:"Link to a REQ via verify trace",context:{element_type:g.type,element_name:g.name,candidate_targets:Cb(h)}}))}function git(u){return u.traces.filter(f=>f.category!=="audit").filter(f=>{const h=u.elements.some(p=>p.id===f.source),g=u.elements.some(p=>p.id===f.target);return!h||!g}).map(f=>({rule_id:"R-08",severity:"error",element_id:f.source,message:`Trace ${f.source}→${f.target} references non-existent element`}))}function wit(u){const f=u.elements.filter(k=>k.type==="FLOW"),h=u.elements.filter(k=>k.type==="FUNC"||k.type==="ACTOR"),g=u.traces.filter(k=>k.type==="io"),p=[];for(const k of f){const m={element_type:k.type,element_name:k.name,candidate_targets:Cb(h)};g.some(j=>j.target===k.id)||p.push({rule_id:"R-10",severity:"warning",element_id:k.id,message:`${k.id} has no producer (incoming io)`,fix_hint:"Link a FUNC or ACTOR as the source via io trace",context:m}),g.some(j=>j.source===k.id)||p.push({rule_id:"R-10",severity:"warning",element_id:k.id,message:`${k.id} has no consumer (outgoing io)`,fix_hint:"Link a FUNC, ACTOR, or UC as the target via io trace",context:m})}return p}const bit=new Set(["compose","allocate","relation"]);function pit(u){const f=[],h=new Set;for(const g of u.traces){if(!bit.has(g.type)||!u.traces.some(k=>k.source===g.target&&k.target===g.source&&k.type===g.type))continue;const p=`${g.type}|${[g.source,g.target].sort().join("|")}`;h.has(p)||(h.add(p),f.push({rule_id:"R-12",severity:"warning",element_id:g.source,message:`Circular ${g.type} between ${g.source} and ${g.target}`}))}return f}function mit(u){return u.elements.filter(g=>g.type==="REQ").filter(g=>!u.traces.some(p=>p.source===g.id&&p.type==="compose"&&u.elements.some(k=>k.id===p.target&&k.type==="REQ"))).filter(g=>!u.traces.some(p=>p.target===g.id&&p.type==="satisfy")).map(g=>({rule_id:"RD-01",severity:"warning",element_id:g.id,message:`${g.id} is a leaf REQ with no satisfy trace (unresolved)`,fix_hint:"Add satisfy trace from FUNC, FCHAIN, MOD, or SYS",context:{element_type:g.type,element_name:g.name,candidate_targets:Cb(u.elements.filter(p=>p.type==="FUNC"||p.type==="FCHAIN"||p.type==="MOD"||p.type==="SYS"),g)}}))}function vit(u){return u.elements.filter(g=>g.type==="REQ").filter(g=>u.traces.some(p=>p.source===g.id&&p.type==="compose"&&u.elements.some(k=>k.id===p.target&&k.type==="REQ"))).filter(g=>u.traces.some(p=>p.target===g.id&&p.type==="satisfy"&&u.elements.some(k=>k.id===p.source&&k.type==="FUNC"))).map(g=>({rule_id:"RD-02",severity:"warning",element_id:g.id,message:`${g.id} has sub-REQs but also a direct FUNC satisfy (should only have origin traces)`,fix_hint:"Remove FUNC→satisfy from parent REQ; only children should be directly satisfied",context:{element_type:g.type,element_name:g.name}}))}function yit(u){return u.elements.filter(g=>g.type==="REQ").filter(g=>u.traces.some(p=>p.source===g.id&&p.type==="compose"&&u.elements.some(k=>k.id===p.target&&k.type==="REQ"))).filter(g=>{var j;const p=u.traces.filter(x=>x.source===g.id&&x.type==="compose"&&u.elements.some(I=>I.id===x.target&&I.type==="REQ")).map(x=>x.target);if(p.length<2)return!1;const k=p.map(x=>u.traces.filter(I=>I.source!==x&&I.target===x&&I.type==="satisfy").map(I=>I.source));return k.every(x=>{var I;return x.length===1&&x[0]===((I=k[0])==null?void 0:I[0])})&&((j=k[0])==null?void 0:j.length)===1}).map(g=>({rule_id:"RD-03",severity:"info",element_id:g.id,message:`${g.id} children all have the same satisfy target — decomposition may be unnecessary`,fix_hint:"Consider merging sub-REQs back into parent if they share the same verifiable level",context:{element_type:g.type,element_name:g.name}}))}const Wpn=11;function kit(u){const f=new Map(u.elements.map(k=>[k.id,k.type])),h=new Map(u.elements.map(k=>[k.id,k])),g=new Map,p=(k,m)=>{const j=`${k}\0${m}`,x=g.get(j);x?x.n++:g.set(j,{parentId:k,kind:m,n:1})};for(const k of u.traces){const m=f.get(k.source),j=f.get(k.target);k.type==="compose"&&m==="FUNC"&&j==="FUNC"?p(k.source,"sub-FUNC"):k.type==="allocate"&&j==="MOD"&&m==="FUNC"?p(k.target,"allocated FUNC"):k.type==="compose"&&(m==="SYS"||m==="MOD")&&j==="MOD"&&p(k.source,"sub-MOD")}return[...g.values()].filter(k=>k.n>Wpn).map(k=>{const m=h.get(k.parentId);return{rule_id:"RD-04",severity:"warning",element_id:k.parentId,message:`${k.parentId} has ${k.n} ${k.kind} children on one level (>${Wpn})`,fix_hint:"Introduce an intermediate level (func-of-func / sub-MOD)",context:{element_type:m==null?void 0:m.type,element_name:m==null?void 0:m.name}}})}function Sit(u){return u.elements.filter(h=>h.type==="UC").filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="compose")).map(h=>({rule_id:"R-14",severity:"warning",element_id:h.id,message:`${h.id} has no compose traces (no scenarios or requirements)`,fix_hint:"Add FCHAIN or REQ via compose trace",context:{element_type:h.type,element_name:h.name}}))}function Eit(u){const f=u.elements.filter(g=>g.type==="FCHAIN"),h=u.elements.filter(g=>g.type==="FUNC");return f.filter(g=>!u.traces.some(p=>p.source===g.id&&p.type==="compose")).map(g=>({rule_id:"R-15",severity:"warning",element_id:g.id,message:`${g.id} has no compose traces (no functions in chain)`,fix_hint:"Add FUNC elements via compose trace",context:{element_type:g.type,element_name:g.name,candidate_targets:Cb(h)}}))}function Cit(u){return u.elements.filter(h=>h.type==="ACTOR").filter(h=>!u.traces.some(g=>(g.source===h.id||g.target===h.id)&&g.type==="io")).map(h=>({rule_id:"R-16",severity:"warning",element_id:h.id,message:`${h.id} has no io traces (disconnected actor)`,fix_hint:"Link to a UC or FLOW via io trace",context:{element_type:h.type,element_name:h.name}}))}function jit(u){return u.elements.filter(h=>h.type==="SYS").filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="compose")).map(h=>({rule_id:"R-17",severity:"warning",element_id:h.id,message:`${h.id} has no compose traces (empty system)`,fix_hint:"Add UC, REQ, or MOD via compose trace",context:{element_type:h.type,element_name:h.name}}))}function Tit(u){return u.elements.filter(h=>h.type==="MS").filter(h=>{const g=u.traces.some(k=>k.type==="relation"&&k.target===h.id&&u.elements.some(m=>m.id===k.source&&m.type==="CR")),p=u.traces.some(k=>k.source===h.id&&k.type==="compose");return!g&&!p}).map(h=>({rule_id:"MS-01",severity:"warning",element_id:h.id,message:`${h.id} has no CRs assigned (empty milestone scope)`,fix_hint:"Add CR→MS [relation] traces to assign change requests to this milestone",context:{element_type:h.type,element_name:h.name}}))}function Mit(u){const f=new Set(u.elements.filter(h=>h.type==="MS").map(h=>h.id));return u.traces.filter(h=>h.type==="relation"&&h.label==="depends-on"&&f.has(h.source)).filter(h=>!f.has(h.target)).map(h=>({rule_id:"MS-02",severity:"error",element_id:h.source,message:`${h.source} depends on non-existent milestone ${h.target}`,fix_hint:"Fix the depends-on relation target to reference an existing MS element"}))}function xit(u){const f=new Map(u.elements.map(h=>[h.id,h.type]));return u.traces.filter(h=>h.category!=="audit").filter(h=>{const g=f.get(h.source),p=f.get(h.target);return!g||!p?!1:!iit({source:g,target:p,type:h.type,label:h.label})}).map(h=>({rule_id:"R-18",severity:"error",element_id:h.source,message:`Invalid trace ${h.source} -${h.type}-> ${h.target}: ${f.get(h.source)} → ${f.get(h.target)} is not a valid ${h.type} pattern`,fix_hint:"Use a trace type whose TRACE_PATTERNS allows this source/target element-type pair"}))}function Ait(u){return u.elements.filter(f=>f.type==="TEST").filter(f=>{var h;return((h=f.attributes)==null?void 0:h.concept)!==!0}).filter(f=>{var h;return!CZ.safeParse((h=f.attributes)==null?void 0:h.testRefs).success}).map(f=>({rule_id:"R-19",severity:"warning",element_id:f.id,message:`${f.id} is a runnable TEST without a valid testRefs binding`,fix_hint:"Add attributes.testRefs [{file, case?, tool, level?}, …] with at least one entry, or set attributes.concept:true if it has no run artifact yet",context:{element_type:f.type,element_name:f.name}}))}function Iit(u){var g,p;const f=new Map;for(const k of u.elements){if(k.type!=="TEST")continue;const m=CZ.safeParse((g=k.attributes)==null?void 0:g.testRefs);if(m.success)for(const j of new Set(m.data.map(x=>x.file))){const x=f.get(j)??[];x.push(k.id),f.set(j,x)}}const h=[];for(const[k,m]of f){if(m.length<2)continue;const j=[...m].sort();for(const x of j)h.push({rule_id:"R-29",severity:"error",element_id:x,message:`${x} claims test file '${k}', which is also claimed by ${j.filter(I=>I!==x).join(", ")}`,fix_hint:"A test file belongs to at most one TEST. Split the file, or drop the entry from all but the one acceptance it really evidences",context:{element_type:"TEST",element_name:(p=u.elements.find(I=>I.id===x))==null?void 0:p.name}})}return h}function _it(u){const f=new Map(u.elements.filter(x=>x.type==="FUNC").map(x=>[x.id,x])),h=x=>u.traces.filter(I=>I.source===x&&I.type==="compose"&&f.has(I.target)).map(I=>I.target),g=x=>{var I;return K4e.safeParse((I=x.attributes)==null?void 0:I.realRef).success},p=x=>{var I,R;return((I=x.attributes)==null?void 0:I.concept)===!0||((R=x.attributes)==null?void 0:R.external)===!0},k=(x,I)=>{const R=f.get(x);if(!R)return!1;if(p(R)||g(R))return!0;const B=h(x);if(B.length===0)return!1;if(I.has(x))return!0;I.add(x);const J=B.every(W=>k(W,I));return I.delete(x),J},m=(x,I,R)=>{if(!R.has(x)){R.add(x);for(const B of h(x)){const J=f.get(B);if(p(J)||g(J))continue;h(B).length===0?I.add(B):m(B,I,R)}R.delete(x)}},j=[];for(const x of f.values()){if(p(x)||k(x.id,new Set))continue;if(h(x.id).length>0){const R=new Set;m(x.id,R,new Set);const B=[...R];j.push({rule_id:"R-20",severity:"warning",element_id:x.id,message:`${x.id} is not fully realized — unbound compose ${B.length===1?"child":"children"}: ${B.join(", ")}`,fix_hint:`Realize the leaves ${B.join(", ")} (graph_realize) — the parent inherits their binding`,context:{element_type:x.type,element_name:x.name}})}else j.push({rule_id:"R-20",severity:"warning",element_id:x.id,message:`${x.id} is a FUNC without a valid realRef binding`,fix_hint:"Add attributes.realRef {file, symbol, lang?}, or set attributes.concept:true (spec-only) / attributes.external:true (realized in another package)",context:{element_type:x.type,element_name:x.name}})}return j}function $it(u){const f=new Map(u.elements.map(R=>[R.id,R.type])),h=R=>f.get(R)==="FUNC",g=u.traces.filter(R=>R.type==="io"),p=[];for(const R of u.elements){if(R.type!=="FLOW")continue;const B=g.filter(W=>W.target===R.id&&h(W.source)).map(W=>W.source),J=g.filter(W=>W.source===R.id&&h(W.target)).map(W=>W.target);for(const W of B)for(const ee of J)W!==ee&&p.push([W,ee])}if(p.length===0)return[];const k=new Map;for(const R of u.traces)R.type==="compose"&&f.get(R.source)==="FCHAIN"&&h(R.target)&&(k.get(R.target)??k.set(R.target,new Set).get(R.target)).add(R.source);const m=new Set(u.traces.filter(R=>R.type==="verify").map(R=>R.target)),j=new Set;for(const R of u.traces)R.type==="satisfy"&&f.get(R.source)==="FCHAIN"&&m.has(R.target)&&j.add(R.source);const x=[],I=new Set;for(const[R,B]of p){const J=[...k.get(R)??[]].filter(Ge=>{var ce;return(ce=k.get(B))==null?void 0:ce.has(Ge)});if(J.length===0||J.some(Ge=>j.has(Ge)))continue;const W=J[0],ee=`${W}|${R}>${B}`;if(I.has(ee))continue;I.add(ee);const q=u.elements.find(Ge=>Ge.id===W);x.push({rule_id:"R-21",severity:"warning",element_id:W,message:`${W} has no integration test covering connection ${R} → ${B}`,fix_hint:"Verify an FCHAIN-satisfied REQ with an integration TEST",context:{element_type:q==null?void 0:q.type,element_name:q==null?void 0:q.name}})}return x}function Oit(u){const f=u.elements.filter(p=>p.type==="FUNC"),h=u.elements.filter(p=>p.type==="MOD"),g=new Set(h.map(p=>p.id));return f.filter(p=>!u.traces.some(k=>k.source===p.id&&k.type==="allocate"&&g.has(k.target))).map(p=>({rule_id:"R-22",severity:"warning",element_id:p.id,message:`${p.id} is not allocated to any module`,fix_hint:"Link to a MOD via allocate trace",context:{element_type:p.type,element_name:p.name,candidate_targets:Cb(h,p)}}))}function Pit(u){const f=u.elements.filter(k=>k.type==="MOD"),h=u.elements.filter(k=>k.type==="FUNC"),g=new Set(f.map(k=>k.id)),p=h.filter(k=>!u.traces.some(m=>m.source===k.id&&m.type==="allocate"&&g.has(m.target)));return f.filter(k=>!u.traces.some(m=>m.target===k.id&&m.type==="allocate"&&u.elements.some(j=>j.id===m.source&&j.type==="FUNC"))).map(k=>({rule_id:"R-23",severity:"warning",element_id:k.id,message:`${k.id} has no allocated FUNC`,fix_hint:"Allocate a FUNC via allocate trace or remove the module",context:{element_type:k.type,element_name:k.name,candidate_targets:Cb(p,k)}}))}function Rit(u){return u.elements.filter(f=>f.type==="SCHEMA").filter(f=>{var h,g;return((h=f.attributes)==null?void 0:h.concept)!==!0&&((g=f.attributes)==null?void 0:g.external)!==!0}).filter(f=>{var h;return!K4e.safeParse((h=f.attributes)==null?void 0:h.realRef).success}).map(f=>({rule_id:"R-26",severity:"warning",element_id:f.id,message:`${f.id} is a SCHEMA without a valid realRef binding`,fix_hint:"Add attributes.realRef {file, symbol, lang?}, or set attributes.concept:true (spec-only) / attributes.external:true (foreign-API contract)",context:{element_type:f.type,element_name:f.name}}))}function Nit(u){return u.elements.filter(f=>{var h;return f.type==="MOD"&&((h=f.attributes)==null?void 0:h.kind)==="physical"}).filter(f=>{var h,g;return((h=f.attributes)==null?void 0:h.concept)!==!0&&((g=f.attributes)==null?void 0:g.external)!==!0}).filter(f=>{var h;return!K4e.safeParse((h=f.attributes)==null?void 0:h.realRef).success}).map(f=>({rule_id:"R-27",severity:"warning",element_id:f.id,message:`${f.id} is a physical MOD without a valid realRef (CAD/geometry) binding`,fix_hint:"Add attributes.realRef {file, symbol?, lang?} pointing at the CAD/geometry artefact, or set attributes.concept:true / attributes.external:true",context:{element_type:f.type,element_name:f.name}}))}function Dit(u){const f=u.elements.filter(m=>m.type==="FUNC");if(f.length<=1)return[];const h=u.elements.filter(m=>m.type==="FLOW"),g=u.elements.filter(m=>m.type==="SCHEMA"),p=[];if(h.length===0&&p.push("FLOW"),g.length===0&&p.push("SCHEMA"),p.length===0)return[];const k=u.elements.find(m=>m.type==="SYS")??f[0];return[{rule_id:"R-28",severity:"warning",element_id:k.id,message:`Graph has ${f.length} FUNCs but no ${p.join(" and no ")} element — architecture level(s) absent`,fix_hint:`Add at least one ${p.join(" and one ")} element to bind the functional and data-level architecture`,context:{element_type:k.type,element_name:k.name}}]}const p3n=[{id:"R-01",name:"REQ must have verification",severity:"error",evaluate:lit,domain:["REQ"]},{id:"R-02",name:"FUNC must satisfy REQ",severity:"warning",evaluate:fit,domain:["FUNC"]},{id:"R-03",name:"ASIL isolation",severity:"error",evaluate:ait,domain:["FUNC"]},{id:"R-04",name:"Module size relative to crossing flows",severity:"warning",evaluate:hit,domain:["MOD"]},{id:"R-05",name:"TEST must verify REQ",severity:"warning",evaluate:dit,domain:["TEST"]},{id:"R-14",name:"UC must have compose",severity:"warning",evaluate:Sit,domain:["UC"]},{id:"R-15",name:"FCHAIN must have compose",severity:"warning",evaluate:Eit,domain:["FCHAIN"]},{id:"R-16",name:"ACTOR must have io",severity:"warning",evaluate:Cit,domain:["ACTOR"]},{id:"R-17",name:"SYS must have compose",severity:"warning",evaluate:jit,domain:["SYS"]},{id:"R-08",name:"Trace consistency",severity:"error",evaluate:git,domain:["all"]},{id:"R-10",name:"FLOW completeness",severity:"warning",evaluate:wit,domain:["FUNC"]},{id:"R-12",name:"No circular dependencies",severity:"warning",evaluate:pit,domain:["FUNC"]},{id:"R-18",name:"Valid trace pattern",severity:"error",evaluate:xit,domain:["all"]},{id:"R-19",name:"Runnable TEST binding",severity:"warning",evaluate:Ait,domain:["TEST"]},{id:"R-29",name:"Test file exclusivity",severity:"error",evaluate:Iit,domain:["TEST"]},{id:"R-20",name:"FUNC realRef binding",severity:"warning",evaluate:_it,domain:["FUNC"]},{id:"R-21",name:"FUNC↔FUNC connection needs integration test",severity:"warning",evaluate:$it,domain:["FCHAIN"]},{id:"R-22",name:"FUNC must be allocated to MOD",severity:"warning",evaluate:Oit,domain:["FUNC"]},{id:"R-23",name:"MOD must have allocated FUNC",severity:"warning",evaluate:Pit,domain:["MOD"]},{id:"R-26",name:"SCHEMA must have realRef",severity:"warning",evaluate:Rit,domain:["SCHEMA"]},{id:"R-27",name:"Physical MOD must have realRef",severity:"warning",evaluate:Nit,domain:["MOD"]},{id:"RD-01",name:"Unresolved requirement",severity:"warning",evaluate:mit,domain:["REQ"]},{id:"RD-02",name:"Decomposition consistency",severity:"warning",evaluate:vit,domain:["REQ"]},{id:"RD-03",name:"No premature decomposition",severity:"info",evaluate:yit,domain:["REQ"]},{id:"RD-04",name:"Decomposition breadth",severity:"warning",evaluate:kit,domain:["FUNC","MOD","SYS"]},{id:"MS-01",name:"Milestone empty scope",severity:"warning",evaluate:Tit,domain:["MS"]},{id:"MS-02",name:"Milestone dangling dependency",severity:"error",evaluate:Mit,domain:["MS"]},{id:"R-28",name:"Ebenen-Präsenz (FLOW+SCHEMA when funcCount>1)",severity:"warning",evaluate:Dit,domain:["graph"]}],Fit=Or({exists:Qg(),declaredSymbols:Qo(Ut()).default([]),testCases:Qo(Ut()).default([]),importedSymbols:Qo(Ut()).default([]),parsedSymbols:Qo(Ut()).default([])}),Lit=Or({from:Ut(),to:Ut()});Or({files:bk(Ut(),Fit),importEdges:Qo(Lit).optional()});function Bit(u){const f=u.elements.filter(h=>h.type==="FLOW");return u.elements.filter(h=>h.type==="SCHEMA").filter(h=>!u.traces.some(g=>g.target===h.id&&g.type==="relation")).map(h=>({rule_id:"SC-02",severity:"warning",element_id:h.id,message:`${h.id} not referenced by any FLOW`,fix_hint:"Link at least one FLOW to this SCHEMA via relation trace",context:{element_type:h.type,element_name:h.name,candidate_targets:f.map(g=>({id:g.id,type:g.type,name:g.name}))}}))}function zit(u){const f=u.elements.filter(h=>h.type==="SCHEMA");return u.elements.filter(h=>h.type==="FLOW").filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="relation"&&u.elements.some(p=>p.id===g.target&&p.type==="SCHEMA"))).map(h=>({rule_id:"SC-04",severity:"warning",element_id:h.id,message:`${h.id} has no SCHEMA binding`,fix_hint:"Link a SCHEMA via relation trace to define this FLOW's data contract",context:{element_type:h.type,element_name:h.name,candidate_targets:f.map(g=>({id:g.id,type:g.type,name:g.name}))}}))}const m3n=[{id:"SC-02",name:"Schema referenced by FLOW",severity:"warning",evaluate:Bit,domain:["SCHEMA"]},{id:"SC-04",name:"FLOW has SCHEMA binding",severity:"warning",evaluate:zit,domain:["SCHEMA"]}];function Jit(u){return u.elements.filter(f=>f.type==="UC").filter(f=>!u.traces.some(h=>h.source===f.id&&h.type==="compose"&&u.elements.some(g=>g.id===h.target&&g.type==="REQ"))).map(f=>({rule_id:"UC-01",severity:"error",element_id:f.id,message:`${f.id} has no requirements (compose→REQ)`,fix_hint:"Add at least one REQ via compose trace",context:{element_type:f.type,element_name:f.name}}))}function Uit(u){return u.elements.filter(f=>f.type==="UC").filter(f=>!u.traces.some(h=>h.type==="io"&&u.elements.some(g=>g.id===h.source&&g.type==="ACTOR")&&(h.target===f.id||u.traces.some(g=>g.source===f.id&&g.type==="compose"&&g.target===h.target)))).map(f=>({rule_id:"UC-02",severity:"error",element_id:f.id,message:`${f.id} has no ACTOR with io trace`,fix_hint:"Link an ACTOR via io trace to this UC or its FCHAIN",context:{element_type:f.type,element_name:f.name}}))}function Git(u){return u.elements.filter(f=>f.type==="UC").filter(f=>!u.traces.some(h=>h.source===f.id&&h.type==="compose"&&u.elements.some(g=>g.id===h.target&&g.type==="FCHAIN"))).map(f=>({rule_id:"UC-03",severity:"warning",element_id:f.id,message:`${f.id} has no FCHAIN scenario`,fix_hint:"Add a FCHAIN via compose trace to define behavioral scenario",context:{element_type:f.type,element_name:f.name}}))}const Kpn=10,Hit=/\b(tbd|todo|fixme|placeholder|xxx)\b/i;function qit(u){return u.elements.filter(f=>f.type==="UC").filter(f=>{var g;const h=((g=f.description)==null?void 0:g.trim())??"";return h.length<Kpn||Hit.test(h)}).map(f=>({rule_id:"UC-04",severity:"warning",element_id:f.id,message:`${f.id} description is missing or contains placeholders (description = goal per CR-150)`,fix_hint:`Provide a meaningful description (min ${Kpn} chars, no TBD/TODO)`,context:{element_type:f.type,element_name:f.name}}))}function Vit(u){return u.elements.filter(f=>f.type==="UC").filter(f=>!u.traces.some(h=>h.source===f.id&&h.type==="compose"&&u.elements.some(g=>{var p;return g.id===h.target&&g.type==="REQ"&&((p=g.kinds)==null?void 0:p.includes("postcondition"))}))).map(f=>({rule_id:"UC-05",severity:"info",element_id:f.id,message:`${f.id} has no postcondition requirement`,fix_hint:'Add a REQ with kinds=["postcondition"] via compose trace',context:{element_type:f.type,element_name:f.name}}))}function Wit(u){return u.elements.filter(f=>f.type==="UC").filter(f=>!u.traces.some(h=>h.source===f.id&&h.type==="compose"&&u.elements.some(g=>{var p;return g.id===h.target&&g.type==="REQ"&&((p=g.kinds)==null?void 0:p.includes("precondition"))}))).map(f=>({rule_id:"UC-06",severity:"info",element_id:f.id,message:`${f.id} has no precondition requirement`,fix_hint:'Add a REQ with kinds=["precondition"] via compose trace',context:{element_type:f.type,element_name:f.name}}))}const v3n=[{id:"UC-01",name:"UC has requirements",severity:"error",evaluate:Jit,domain:["UC"]},{id:"UC-02",name:"UC has actor",severity:"error",evaluate:Uit,domain:["UC"]},{id:"UC-03",name:"UC has scenario",severity:"warning",evaluate:Git,domain:["UC"]},{id:"UC-04",name:"UC has goal",severity:"warning",evaluate:qit,domain:["UC"]},{id:"UC-05",name:"UC has postcondition",severity:"info",evaluate:Vit,domain:["UC"]},{id:"UC-06",name:"UC has precondition",severity:"info",evaluate:Wit,domain:["UC"]}];function Kit(u){return u.elements.filter(f=>f.type==="FCHAIN").filter(f=>{const g=u.traces.filter(m=>m.source===f.id&&m.type==="compose").map(m=>m.target).some(m=>u.traces.some(j=>{if(j.type!=="io")return!1;const x=j.source===m?j.target:j.target===m?j.source:null;return x?u.traces.some(I=>I.type==="io"&&(I.source===x&&u.elements.some(R=>R.id===I.target&&R.type==="ACTOR")||I.target===x&&u.elements.some(R=>R.id===I.source&&R.type==="ACTOR"))):!1})),p=u.traces.find(m=>m.type==="compose"&&m.target===f.id&&u.elements.some(j=>j.id===m.source&&j.type==="UC")),k=p&&u.traces.some(m=>m.type==="io"&&(m.target===p.source&&u.elements.some(j=>j.id===m.source&&j.type==="ACTOR")||m.source===p.source&&u.elements.some(j=>j.id===m.target&&j.type==="ACTOR")));return!g&&!k}).map(f=>({rule_id:"FC-01",severity:"warning",element_id:f.id,message:`${f.id} has no actor boundary (no ACTOR io connection)`,fix_hint:"Ensure at least one FUNC in the chain connects to an ACTOR via FLOW io",context:{element_type:f.type,element_name:f.name}}))}function Xit(u){return u.elements.filter(f=>f.type==="UC").filter(f=>u.traces.some(g=>g.source===f.id&&g.type==="compose"&&u.elements.some(p=>p.id===g.target&&p.type==="UC"))?!1:!u.traces.some(g=>g.source===f.id&&g.type==="compose"&&u.elements.some(p=>p.id===g.target&&p.type==="FCHAIN"))).map(f=>({rule_id:"FC-02",severity:"warning",element_id:f.id,message:`Leaf UC ${f.id} has no FCHAIN scenario`,fix_hint:"Add a FCHAIN via compose trace for behavioral specification",context:{element_type:f.type,element_name:f.name}}))}function Qit(u){var g;const f=[],h=u.elements.filter(p=>p.type==="FCHAIN");for(const p of h){const k=u.traces.filter(m=>m.source===p.id&&m.type==="compose").map(m=>m.target).filter(m=>u.elements.some(j=>j.id===m&&j.type==="FUNC"));for(const m of k)u.traces.filter(x=>x.source===m&&x.type==="compose"&&u.elements.some(I=>I.id===x.target&&I.type==="FUNC")).length>0&&f.push({rule_id:"FC-03",severity:"warning",element_id:m,message:`${m} in ${p.id} has nested FUNC compose (should be flat)`,fix_hint:"Move nested functions to FCHAIN level (flat composition)",context:{element_type:"FUNC",element_name:((g=u.elements.find(x=>x.id===m))==null?void 0:g.name)??m}})}return f}function Zit(u){return u.elements.filter(f=>f.type==="FCHAIN").filter(f=>{const h=new Set(u.traces.filter(x=>x.source===f.id&&x.type==="compose").map(x=>x.target).filter(x=>u.elements.some(I=>I.id===x&&I.type==="FUNC")));if(h.size===0)return!1;const g=u.traces.filter(x=>x.type==="io"),p=x=>u.elements.some(I=>I.id===x&&I.type==="ACTOR"),k=x=>u.elements.some(I=>I.id===x&&I.type==="FLOW"),m=g.some(x=>h.has(x.target)&&k(x.source)&&g.some(I=>I.target===x.source&&p(I.source))),j=g.some(x=>h.has(x.source)&&k(x.target)&&g.some(I=>I.source===x.target&&p(I.target)));return!(m&&j)}).map(f=>({rule_id:"FC-04",severity:"warning",element_id:f.id,message:`${f.id} is not actor-bounded (needs an ACTOR trigger into AND an ACTOR consumer out of the chain)`,fix_hint:"Link an ACTOR→FLOW→FUNC entry and a FUNC→FLOW→ACTOR exit for at least one FUNC in the chain",context:{element_type:f.type,element_name:f.name}}))}const y3n=[{id:"FC-01",name:"FCHAIN has actor boundary",severity:"warning",evaluate:Kit,domain:["FCHAIN"]},{id:"FC-02",name:"Leaf UC has FCHAIN",severity:"warning",evaluate:Xit,domain:["UC"]},{id:"FC-03",name:"FCHAIN is flat",severity:"warning",evaluate:Qit,domain:["FCHAIN"]},{id:"FC-04",name:"FCHAIN actor-bounded (trigger+consumer)",severity:"warning",evaluate:Zit,domain:["FCHAIN"]}];function Yit(u,f){const h=[],g=f.instability;if(g===null)return h;for(const p of k3n(u))p.instability!==null&&p.instability>g&&h.push({rule_id:"MT-01",severity:"warning",element_id:p.moduleId,message:`${p.moduleName} has instability ${Math.round(p.instability*100)}% (>${g*100}%). fan_in=${p.fanIn}, fan_out=${p.fanOut}`});return h}function ert(u,f){const h=[],g=f.lcom4;if(g===null)return h;for(const p of k3n(u)){if(p.lcom4===null)continue;const k=`${p.moduleName} has LCOM4=${p.lcom4} (${p.allocatedFuncs} FUNCs in ${p.lcom4} disconnected groups)`;p.lcom4>=g.info&&p.lcom4<g.warning?h.push({rule_id:"MT-02",severity:"info",element_id:p.moduleId,message:k}):p.lcom4>=g.warning&&h.push({rule_id:"MT-02",severity:"warning",element_id:p.moduleId,message:k})}return h}function nrt(u){const f=new Map(u.elements.map(j=>[j.id,j.type])),h=new Set,g=(j,x)=>{j!==x&&h.add(j<x?`${j}|${x}`:`${x}|${j}`)},p=new Map,k=new Map,m=(j,x,I)=>{const R=j.get(x);R?R.push(I):j.set(x,[I])};for(const j of u.traces){if(j.type!=="io")continue;const x=f.get(j.source)==="FLOW",I=f.get(j.target)==="FLOW";if(!(x&&I)){if(!x&&!I){g(j.source,j.target);continue}I?m(p,j.target,j.source):m(k,j.source,j.target)}}for(const[j,x]of p)for(const I of k.get(j)??[])for(const R of x)g(R,I);return h}function k3n(u){const f=u.elements.filter(p=>p.type==="MOD"),h=[...nrt(u)].map(p=>p.split("|")),g=[];for(const p of f){const k=u.traces.filter(ee=>ee.type==="allocate"&&ee.target===p.id).map(ee=>ee.source),m=new Set(k),j=u.traces.filter(ee=>ee.source===p.id&&(ee.type==="io"||ee.type==="compose")&&ee.target!==p.id).length,x=u.traces.filter(ee=>ee.target===p.id&&(ee.type==="io"||ee.type==="compose"||ee.type==="allocate")).length;let I=0,R=0;for(const ee of u.traces)ee.type!=="allocate"&&(m.has(ee.source)&&!m.has(ee.target)&&ee.target!==p.id&&I++,m.has(ee.target)&&!m.has(ee.source)&&ee.source!==p.id&&R++);const B=j+I,J=x+R,W=J+B===0?null:B/(J+B);g.push({moduleId:p.id,moduleName:p.name,allocatedFuncs:k.length,fanIn:J,fanOut:B,instability:W,lcom4:trt(u,k),cohesion:irt(h,m)})}return g}function trt(u,f){if(f.length<2)return null;const h=new Map;for(const x of f){const I=new Set;for(const R of u.traces)R.source===x&&(R.type==="io"||R.type==="satisfy")&&I.add(R.target);h.set(x,I)}const g=new Map;for(const x of f)g.set(x,x);function p(x){for(;g.get(x)!==x;)x=g.get(x);return x}function k(x,I){const R=p(x),B=p(I);R!==B&&g.set(R,B)}for(let x=0;x<f.length;x++)for(let I=x+1;I<f.length;I++){const R=h.get(f[x]),B=h.get(f[I]);for(const J of R)if(B.has(J)){k(f[x],f[I]);break}}const m=new Set(f),j=new Map;for(const x of u.traces)if(x.type==="io"){if(m.has(x.target)){const I=u.elements.find(R=>R.id===x.source);(I==null?void 0:I.type)==="FLOW"&&(j.has(x.source)||j.set(x.source,new Set),j.get(x.source).add(x.target))}if(m.has(x.source)){const I=u.elements.find(R=>R.id===x.target);(I==null?void 0:I.type)==="FLOW"&&(j.has(x.target)||j.set(x.target,new Set),j.get(x.target).add(x.source))}}for(const x of j.values()){const I=[...x];for(let R=1;R<I.length;R++)k(I[0],I[R])}return new Set(f.map(p)).size}function irt(u,f){if(f.size<2)return null;let h=0,g=0;for(const[p,k]of u){const m=f.has(p),j=f.has(k);m&&j?h++:(m||j)&&g++}return g===0?null:{internal:h,external:g,ratio:h/(h+g)}}const S3n=[{id:"MT-01",name:"Module instability",severity:"warning",evaluate:Yit,domain:["MOD"]},{id:"MT-02",name:"Module cohesion (LCOM4)",severity:"info",evaluate:ert,domain:["MOD"]}],rrt=Of(["High","Medium","Low"]),Xpn=Pa().int().min(1).max(10),y3e=Or({from:Xpn,to:Xpn}).refine(u=>u.from<=u.to,{message:"from must be <= to"}),crt=Or({severityBands:Qo(y3e).length(5),occurrenceBands:Qo(y3e).length(5),detectionBands:Qo(y3e).length(4),cells:Qo(Qo(Qo(rrt).length(4)).length(5)).length(5)});function ort(u){return u?"aiag-vda":"rpn-interim"}function k3e(u,f){return u.findIndex(h=>f>=h.from&&f<=h.to)}function urt(u,f,h,g,p){if(p){const m=k3e(p.severityBands,u),j=k3e(p.occurrenceBands,f),x=k3e(p.detectionBands,h);if(m>=0&&j>=0&&x>=0)return p.cells[m][j][x]}if(u>=9)return"High";if(u===1)return"Low";const k=u*f*h;return k>g?"High":k>=40?"Medium":"Low"}Or({instability:Pa().min(0).max(1).nullable(),lcom4:Or({info:Pa().int().min(2),warning:Pa().int().min(2)}).nullable(),crossingFlows:Or({warning:Pa().int().min(1)}).nullable(),riskRpn:Pa().int().positive().nullable(),apTable:crt.nullable(),moduleSize:Or({large:Pa().int().min(1),coupled:Pa().int().min(1),crossings:Pa().int().min(0)}).nullable()});const srt={instability:.7,lcom4:{info:4,warning:6},crossingFlows:{warning:3},riskRpn:100,moduleSize:{large:12,coupled:8,crossings:2},apTable:null},lrt=[["costBudget","measuredCost","cost"],["weightBudgetKg","measuredWeightKg","weight (kg)"],["powerBudgetW","measuredPowerW","power (W)"]],frt=[["timingBudgetMs","measuredMs","timing (ms)"],["memoryBudgetMb","measuredMemoryMb","memory (MB)"]],art=["MOD"],hrt=["FUNC","FCHAIN"];function drt(u){return u.elements.filter(f=>{var h;return f.type==="REQ"&&((h=f.kinds)==null?void 0:h.includes("risk"))}).filter(f=>{const h=f.attributes??{};return h.severity==null||h.occurrence==null||h.detection==null}).map(f=>{const h=[],g=f.attributes??{};return g.severity==null&&h.push("severity"),g.occurrence==null&&h.push("occurrence"),g.detection==null&&h.push("detection"),{rule_id:"FM-01",severity:"warning",element_id:f.id,message:`${f.id} is a risk REQ missing FMEA attributes: ${h.join(", ")}`,fix_hint:"Add severity, occurrence, and detection ratings (1-10) to attributes"}})}function grt(u){return u.elements.filter(h=>{var g;return h.type==="REQ"&&((g=h.kinds)==null?void 0:g.includes("risk"))}).filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="compose"&&u.elements.some(p=>{var k;return p.id===g.target&&p.type==="REQ"&&((k=p.kinds)==null?void 0:k.includes("mitigation"))}))).map(h=>({rule_id:"FM-02",severity:"warning",element_id:h.id,message:`${h.id} is a risk REQ without a mitigation REQ (compose→REQ[mitigation])`,fix_hint:"Create a mitigation REQ and link via compose trace"}))}function wrt(u,f){const h=f.riskRpn;return h===null?[]:u.elements.filter(p=>{var k;return p.type==="REQ"&&((k=p.kinds)==null?void 0:k.includes("risk"))}).filter(p=>{const k=p.attributes??{},m=Number(k.severity),j=Number(k.occurrence),x=Number(k.detection);return isNaN(m)||isNaN(j)||isNaN(x)||urt(m,j,x,h,f.apTable??void 0)!=="High"?!1:!u.traces.some(R=>R.type==="verify"&&R.target===p.id&&u.elements.some(B=>{var W;if(B.id!==R.source||B.type!=="TEST")return!1;const J=CZ.safeParse((W=B.attributes)==null?void 0:W.testRefs);return J.success?J.data.every(ee=>ee.result==="passed"):!1}))}).map(p=>{const k=p.attributes??{},m=Number(k.severity),j=Number(k.occurrence),x=Number(k.detection),I=ort(f.apTable??void 0);return{rule_id:"FM-03",severity:"error",element_id:p.id,message:`${p.id} has Action Priority High (S${m}/O${j}/D${x}, ${I}) without passed test verification`,fix_hint:"Add a TEST whose every testRefs entry has result=passed, and a verify trace to this risk REQ"}})}function brt(u){const f=[],h=(g,p)=>{for(const k of u.elements){if(!g.includes(k.type))continue;const m=k.attributes??{};for(const[j,x,I]of p){const R=Number(m[j]),B=Number(m[x]);isNaN(R)||isNaN(B)||B>R&&f.push({rule_id:"NFR-01",severity:"warning",element_id:k.id,message:`${k.id} ${I} over budget: ${B} > ${R}`,fix_hint:`Reduce ${x} or increase ${j}`})}}};return h(art,lrt),h(hrt,frt),f}const E3n=[{id:"FM-01",name:"RiskReqFmeaAttributes",severity:"warning",evaluate:drt,domain:["REQ"]},{id:"FM-02",name:"RiskReqMitigation",severity:"warning",evaluate:grt,domain:["REQ"]},{id:"FM-03",name:"HighRiskVerification",severity:"error",evaluate:wrt,domain:["REQ"]},{id:"NFR-01",name:"BudgetOvershoot",severity:"warning",evaluate:brt,domain:["FUNC"]}];function prt(u){var h;const f=[];for(const g of u.elements){if(g.type!=="TEST")continue;const p=CZ.safeParse((h=g.attributes)==null?void 0:h.testRefs);if(!p.success)continue;const k=p.data.filter(m=>m.result===void 0);k.length!==0&&f.push({rule_id:"VR-01",severity:"info",element_id:g.id,message:`${g.id} has ${k.length} of ${p.data.length} testRefs entries without a result — assumed pending: ${k.map(m=>m.file).join(", ")}`,fix_hint:"Record the run outcome on the entry (result, ranAt, evidence) — a binding without a result is not evidence"})}return f}function mrt(u){var p;if(!u.elements.some(k=>{var m;return k.type==="UC"&&((m=k.attributes)==null?void 0:m.operatingMode)!=null}))return[];const h=u.elements.filter(k=>k.type==="ACTOR"),g=[];for(const k of h){const m=u.traces.filter(x=>x.type==="io"&&x.source===k.id).map(x=>x.target),j=new Set;for(const x of m){const I=u.elements.find(B=>B.id===x&&B.type==="UC"),R=(p=I==null?void 0:I.attributes)==null?void 0:p.operatingMode;R!=null&&j.add(String(R))}j.size<2&&g.push({rule_id:"CL-01",severity:"warning",element_id:k.id,message:`${k.id} has UCs in only ${j.size} distinct operatingMode(s) — expected at least 2`})}return g}const C3n=[{id:"VR-01",name:"TestNoResult",severity:"info",evaluate:prt,domain:["TEST"]},{id:"CL-01",name:"ConopsCompleteness",severity:"warning",evaluate:mrt,domain:["ACTOR"]}];function vrt(u){return u.elements.filter(h=>h.type==="CR").filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="relation")).map(h=>({rule_id:"CR-R01",severity:"error",element_id:h.id,message:`${h.id} has no relation traces (tracks nothing)`,fix_hint:"Add relation traces to affected UC, REQ, FUNC, or MOD elements",context:{element_type:h.type,element_name:h.name}}))}function yrt(u){return u.elements.filter(h=>h.type==="CR").filter(h=>{var k,m,j;if(((k=h.attributes)==null?void 0:k.status)!=="done"||((m=h.attributes)==null?void 0:m.architectureOnly)===!0)return!1;const p=(j=h.attributes)==null?void 0:j.commitRef;return!p||Array.isArray(p)&&p.length===0}).map(h=>({rule_id:"CR-R02",severity:"error",element_id:h.id,message:`${h.id} is done but has no commitRef`,fix_hint:"Add commitRef with Git SHA, or set architectureOnly=true",context:{element_type:h.type,element_name:h.name}}))}function krt(u){var k,m;const f=u.elements.filter(j=>{var x,I;return j.type==="CR"&&(((x=j.attributes)==null?void 0:x.status)==="open"||((I=j.attributes)==null?void 0:I.status)==="in-progress")});if(f.length<2)return[];const h=new Map;for(const j of f){const x=u.traces.filter(I=>I.source===j.id&&I.type==="relation").map(I=>I.target);for(const I of x){const R=h.get(I)??[];R.push(j.id),h.set(I,R)}}const g=[],p=new Set;for(const[j,x]of h){if(x.length<2)continue;const I=x.sort().join(",");p.has(I)||(p.add(I),g.push({rule_id:"CR-R03",severity:"warning",element_id:j,message:`${j} is tracked by ${x.length} open CRs: ${x.join(", ")}`,fix_hint:"Coordinate changes to avoid merge conflicts",context:{element_type:(k=u.elements.find(R=>R.id===j))==null?void 0:k.type,element_name:(m=u.elements.find(R=>R.id===j))==null?void 0:m.name}}))}return g}function Srt(u){return u.elements.filter(h=>h.type==="CR").filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="relation"&&u.elements.some(p=>p.id===g.target&&p.type==="FUNC"))).map(h=>({rule_id:"CR-R04",severity:"warning",element_id:h.id,message:`${h.id} has no relation→FUNC trace (no implementation scope)`,fix_hint:"Add CR→FUNC [relation] traces to define which functions this CR changes",context:{element_type:h.type,element_name:h.name}}))}function Ert(u){return u.elements.filter(h=>h.type==="CR").filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="relation"&&u.elements.some(p=>p.id===g.target&&p.type==="MS"))).map(h=>({rule_id:"MS-03",severity:"info",element_id:h.id,message:`${h.id} is not assigned to any milestone`,fix_hint:"Add CR→MS [relation] trace to assign this CR to a milestone",context:{element_type:h.type,element_name:h.name}}))}const j3n=[{id:"CR-R01",name:"CR must track",severity:"error",evaluate:vrt,domain:["CR"]},{id:"CR-R02",name:"Done requires commit",severity:"error",evaluate:yrt,domain:["CR"]},{id:"CR-R03",name:"No concurrent mutation",severity:"warning",evaluate:krt,domain:["CR"]},{id:"CR-R04",name:"CR must have FUNC",severity:"warning",evaluate:Srt,domain:["CR"]},{id:"MS-03",name:"CR without milestone",severity:"info",evaluate:Ert,domain:["CR"]}];function Crt(u){return[]}function jrt(u){return[]}const Trt=[{id:"ND-01",name:"FuncNearDuplicate",severity:"error",evaluate:Crt,domain:["FUNC"]},{id:"ND-02",name:"SchemaNearDuplicate",severity:"error",evaluate:jrt,domain:["SCHEMA"]}];function Mrt(u){const f=[],h=u.elements.filter(p=>p.type==="FUNC"),g=new Set(h.map(p=>p.id));for(const p of h){if(u.traces.some(x=>x.type==="satisfy"&&x.source===p.id&&u.elements.some(I=>I.id===x.target&&I.type==="REQ")))continue;const m=u.traces.filter(x=>x.type==="io"&&x.source===p.id&&g.has(x.target)).map(x=>x.target);if(m.length<2||!Art())continue;const j=u.elements.find(x=>x.id===p.id);f.push({rule_id:"AO-D01",severity:"info",element_id:p.id,message:`${p.id}${j!=null&&j.name?" ("+j.name+")":""} is a relay node: no REQ satisfied, ${m.length} io targets`,fix_hint:"Consider eliminating relay by connecting consumers directly to producer"})}return f}function xrt(u,f){const h=new Set,g=new Set;for(const p of u.traces)p.type==="io"&&(p.source===f&&u.elements.some(k=>k.id===p.target&&k.type==="FLOW")&&g.add(p.target),p.target===f&&u.elements.some(k=>k.id===p.source&&k.type==="FLOW")&&g.add(p.source));for(const p of u.traces)p.type==="relation"&&g.has(p.source)&&u.elements.some(k=>k.id===p.target&&k.type==="SCHEMA")&&h.add(p.target);return h}function Art(u,f){return!0}function Irt(u){const f=[],h=u.elements.filter(m=>m.type==="FUNC"),g=new Set(h.map(m=>m.id)),p=new Set,k=new Map;for(const m of h)k.set(m.id,xrt(u,m.id));for(const m of h){const j=u.traces.filter(x=>x.type==="io"&&x.source===m.id&&g.has(x.target)).map(x=>x.target);if(!(j.length<2))for(let x=0;x<j.length;x++)for(let I=x+1;I<j.length;I++){const R=j[x],B=j[I],J=[m.id,R,B].sort().join(":");if(p.has(J))continue;const W=k.get(R)??new Set,ee=k.get(B)??new Set,q=[...W].filter(Ge=>ee.has(Ge));q.length!==0&&(p.add(J),f.push({rule_id:"AO-D03",severity:"info",element_id:m.id,message:`${m.id} sends io to ${R} and ${B} which share ${q.length} SCHEMA target(s): ${q.join(", ")}`,fix_hint:"Consider introducing a mediator or unifying the data paths"}))}}return f}function _rt(u,f){const h=[],g=f.crossingFlows;if(g===null)return h;const p=u.elements.filter(j=>j.type==="MOD"),k=new Map;for(const j of p){const x=new Set(u.traces.filter(I=>I.type==="allocate"&&I.target===j.id).map(I=>I.source));k.set(j.id,x)}const m=new Map;for(const j of u.traces){if(j.type!=="io")continue;let x,I;for(const[B,J]of k)J.has(j.source)&&(x=B),J.has(j.target)&&(I=B);if(!x||!I||x===I)continue;const R=[x,I].sort().join("::");m.has(R)||m.set(R,{modA:x,modB:I,count:0}),m.get(R).count++}for(const{modA:j,modB:x,count:I}of m.values()){if(I<=0)continue;const R=I>=g.warning;h.push({rule_id:"CR-01",severity:R?"warning":"info",element_id:j,message:`${j} ↔ ${x}: ${I} crossing io flow(s)`,fix_hint:R?"Reduce coupling between modules or introduce a mediator":"Consider if coupling is intentional"})}return h}function $rt(u){const f=u.elements.filter(h=>{var g;return h.type==="MOD"&&((g=h.attributes)==null?void 0:g.kind)==="physical"});return u.traces.filter(h=>h.type==="allocate"&&f.some(g=>g.id===h.target)).filter(h=>u.elements.some(g=>g.id===h.source&&g.type==="FUNC")).map(h=>({rule_id:"RT-01",severity:"error",element_id:h.source,message:`${h.source} allocated directly to physical module ${h.target} — must use logical sub-module`,fix_hint:"Create a logical MOD inside the physical MOD and allocate the FUNC there"}))}function Ort(u){return u.elements.filter(h=>{var g;return h.type==="MOD"&&((g=h.attributes)==null?void 0:g.kind)==="physical"}).filter(h=>!u.traces.some(g=>g.source===h.id&&g.type==="compose"&&u.elements.some(p=>p.id===g.target&&p.type==="MOD"))).map(h=>({rule_id:"PH-01",severity:"info",element_id:h.id,message:`${h.id} (physical) has no logical sub-modules`,fix_hint:"Add at least one logical MOD via compose trace",context:{element_type:h.type,element_name:h.name}}))}function Prt(u){var g,p;const f=[],h=u.elements.filter(k=>{var m;return k.type==="FUNC"&&((m=k.attributes)==null?void 0:m.requires)});for(const k of h){const m=Array.isArray(k.attributes.requires)?k.attributes.requires:[k.attributes.requires],j=u.traces.find(W=>W.source===k.id&&W.type==="allocate");if(!j)continue;const x=u.elements.find(W=>W.id===j.target&&W.type==="MOD");if(!x)continue;const I=u.traces.find(W=>W.type==="compose"&&W.target===x.id&&u.elements.some(ee=>{var q;return ee.id===W.source&&ee.type==="MOD"&&((q=ee.attributes)==null?void 0:q.kind)==="physical"}));if(!I)continue;const R=u.elements.find(W=>W.id===I.source),B=Array.isArray((g=R.attributes)==null?void 0:g.capability)?R.attributes.capability:(p=R.attributes)!=null&&p.capability?[R.attributes.capability]:[],J=m.filter(W=>!B.includes(W));J.length>0&&f.push({rule_id:"CA-01",severity:"error",element_id:k.id,message:`${k.id} requires [${J.join(", ")}] but ${R.id} only provides [${B.join(", ")}]`,fix_hint:`Add missing capabilities to ${R.id} or move ${k.id} to a capable module`,context:{element_type:k.type,element_name:k.name,parent_module:R.id}})}return f}function Rrt(u){const f=[],h=u.elements.filter(g=>g.type==="FCHAIN");for(const g of h){const p=u.traces.filter(j=>j.source===g.id&&j.type==="compose").map(j=>j.target).filter(j=>u.elements.some(x=>x.id===j&&x.type==="FUNC"));if(p.length<2)continue;const k=new Map;for(const j of p){const x=u.traces.find(I=>I.source===j&&I.type==="allocate");x&&k.set(j,x.target)}const m=new Set;for(const j of p)for(const x of p){if(j>=x)continue;const I=k.get(j)??"unallocated",R=k.get(x)??"unallocated",B=`${j}:${x}`;if(m.has(B))continue;if(m.add(B),!u.traces.some(W=>{if(W.type!=="io"||W.source!==j&&W.source!==x)return!1;const ee=W.target;if(!u.elements.find(ce=>ce.id===ee&&ce.type==="FLOW"))return!1;const Ge=W.source===j?x:j;return u.traces.some(ce=>ce.type==="io"&&(ce.source===ee&&ce.target===Ge||ce.target===ee&&ce.source===Ge))})){const W=u.elements.find(q=>q.id===j),ee=u.elements.find(q=>q.id===x);f.push({rule_id:"IO-01",severity:"warning",element_id:j,message:`${j} (${I}) and ${x} (${R}) in FCHAIN ${g.id} have no IO path — missing FLOW?`,fix_hint:"Add a FLOW element with io traces between these functions",context:{element_type:"FUNC",element_name:(W==null?void 0:W.name)??j,candidate_targets:ee?[{id:ee.id,type:ee.type,name:ee.name}]:void 0}})}}}return f}const T3n=[{id:"AO-D01",name:"RelayNodeDetection",severity:"info",evaluate:Mrt,domain:["FUNC"]},{id:"AO-D03",name:"DuplicatePathDetection",severity:"info",evaluate:Irt,domain:["FUNC"]},{id:"CR-01",name:"CrossingFlowCount",severity:"warning",evaluate:_rt,domain:["MOD"]},{id:"RT-01",name:"PhysicalBoundaryIntegrity",severity:"error",evaluate:$rt,domain:["FUNC"]},{id:"PH-01",name:"PhysicalModCompleteness",severity:"info",evaluate:Ort,domain:["MOD"]},{id:"CA-01",name:"CapabilityAllocation",severity:"error",evaluate:Prt,domain:["FUNC"]},{id:"IO-01",name:"FuncPairIOCompleteness",severity:"warning",evaluate:Rrt,domain:["MOD"]}],Nrt=["should","may","might","appropriate","etc","adequate","as needed","various","some","often","usually","normally","generally","typically","mostly","largely","commonly","presumably","possibly","potentially","approximately","roughly","around","about","near","nearly","fast","slow","easy","simple","flexible","scalable","robust","sufficient","reasonable","minimal","optimal","best effort","when possible","as far as practicable"],Qpn=new RegExp(`\\b(${Nrt.map(u=>u.replace(/\s+/g,"\\s+")).join("|")})\\b`,"i"),Drt=/(\d+[\s]*(ms|s|sec|min|%|percent|byte|MB|GB|times|x|sessions?)|\b(must|shall|exactly|at least|at most|no more than|within|before|after|greater|less|equal|minimum|maximum|genau|mindestens|hoechstens|höchstens|nicht mehr als|innerhalb|groesser|größer|kleiner|gleich)\b)/i;function jZ(u){return u.elements.filter(f=>f.type==="REQ")}function Frt(u){return jZ(u).filter(f=>Qpn.test(f.description)).map(f=>{const h=f.description.match(Qpn);return{rule_id:"BQ-01",severity:"warning",element_id:f.id,message:`${f.id} contains weasel word "${h==null?void 0:h[1]}"`,fix_hint:"Replace vague language with precise, testable statements",context:{element_type:f.type,element_name:f.name,current_description:f.description}}})}function Lrt(u){return jZ(u).filter(f=>!Drt.test(f.description)).map(f=>({rule_id:"BQ-02",severity:"warning",element_id:f.id,message:`${f.id} has no measurable criterion`,fix_hint:"Add a concrete metric, threshold, or comparison operator",context:{element_type:f.type,element_name:f.name,current_description:f.description}}))}function Brt(u){return[]}const zrt=/\b(shall|must|must not)\s+\w+/i,Jrt=/\b(soll|muss|darf nicht)\s+\w+/i;function Urt(u){return jZ(u).filter(f=>{const h=f.description.trim();return!zrt.test(h)&&!Jrt.test(h)}).map(f=>({rule_id:"BQ-06",severity:"warning",element_id:f.id,message:`${f.id} does not follow "System shall..." pattern`,fix_hint:'Start description with "The system shall <verb>" or "Das System soll/muss <verb>"',context:{element_type:f.type,element_name:f.name,current_description:f.description}}))}const Zpn=/\b(TBD|TBR|TODO|placeholder|to be determined)\b|needs\s.*review/i,S3e=20;function Grt(u){return jZ(u).filter(f=>{const h=f.description.trim().length<S3e,g=Zpn.test(f.description);return h||g}).map(f=>{const h=[];return f.description.trim().length<S3e&&h.push(`description too short (${f.description.trim().length}/${S3e} chars)`),Zpn.test(f.description)&&h.push("contains placeholder"),{rule_id:"BQ-07",severity:"warning",element_id:f.id,message:`${f.id} is incomplete: ${h.join(", ")}`,fix_hint:"Write a meaningful description (min 20 chars) and resolve all TBD/TBR/TODO placeholders",context:{element_type:f.type,element_name:f.name,current_description:f.description}}})}const Hrt=[{id:"BQ-01",name:"Unambiguous",severity:"warning",evaluate:Frt,domain:["REQ"]},{id:"BQ-02",name:"Verifiable",severity:"warning",evaluate:Lrt,domain:["REQ"]},{id:"BQ-04",name:"Necessary",severity:"warning",evaluate:Brt,domain:["REQ"]},{id:"BQ-06",name:"Conforming",severity:"warning",evaluate:Urt,domain:["REQ"]},{id:"BQ-07",name:"Complete",severity:"warning",evaluate:Grt,domain:["REQ"]}],qrt={conops:"Concept of Operations",trade:"Trade Study","assumption-review":"Assumption Review",fmea:"FMEA",implplan:"Implementation Plan"};function ID(u,f){return h=>{var m,j;const g=h.elements.find(x=>x.type==="SYS");if(!g)return[];const p=(j=(m=g.attributes)==null?void 0:m.analysisFreshness)==null?void 0:j[f];if(Ytt.safeParse(p).success)return[];const k=qrt[f];return[{rule_id:u,severity:"warning",element_id:g.id,message:`${k} (${f}) has no freshness stamp — was it ever written with a graphVersion stamp?`,fix_hint:`Set attributes.analysisFreshness.${f}.graphVersion to the current graphVersion() when writing/refreshing the ${k} artifact`,context:{element_type:g.type,element_name:g.name}}]}}const Vrt=ID("AF-01","conops"),Wrt=ID("AF-02","trade"),Krt=ID("AF-03","assumption-review"),Xrt=ID("AF-04","fmea"),Qrt=ID("AF-05","implplan"),M3n=[{id:"AF-01",name:"ConOps freshness stamp present",severity:"warning",evaluate:Vrt,domain:["graph"]},{id:"AF-02",name:"Trade Study freshness stamp present",severity:"warning",evaluate:Wrt,domain:["graph"]},{id:"AF-03",name:"Assumption Review freshness stamp present",severity:"warning",evaluate:Krt,domain:["graph"]},{id:"AF-04",name:"FMEA freshness stamp present",severity:"warning",evaluate:Xrt,domain:["graph"]},{id:"AF-05",name:"Implementation Plan freshness stamp present",severity:"warning",evaluate:Qrt,domain:["graph"]}];[...p3n,...v3n,...y3n,...m3n,...S3n,...Hrt,...Trt,...j3n,...T3n,...E3n,...C3n,...M3n].map(u=>({id:u.id,name:u.name,severity:u.severity,domain:u.domain}));const Zrt=Of(["req","uc","arch","alloc","ver","schema","cr","ms"]),Yrt=Or({dimension:Zrt,score:Pa().min(0).max(1),violations:Pa().int(),applicable:Pa().int(),ready:Qg()});Or({scores:Qo(Yrt),timestamp:q4e()});Of(["SRR","PDR","CDR","TRR"]);const _ye=60,ect=new RegExp(`^(${fx.options.join("|")})-([a-z0-9]+(?:-[a-z0-9]+)*)$`);Ut().regex(ect,"ElementUid must match <TYPE>-<kebab-slug>").refine(u=>u.split("-").slice(1).join("-").length<=_ye,`slug must be at most ${_ye} characters`);function x3n(u,f){const h=f.toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"").slice(0,_ye).replace(/-+$/,"");return`${u}-${h}`}function nct(u){if(!/^[{[]/.test(u))return u;try{return JSON.parse(u)}catch{return u}}const tct="6.0.0";function ict(u){const f=u.nodes.map(g=>{var p,k,m,j;return{id:g.uid,type:g.type,name:g.name,description:g.description??"",status:((p=g.attributes)==null?void 0:p.status)??"draft",created_at:g.createdAt??"",updated_at:g.updatedAt,asil:(k=g.attributes)==null?void 0:k.asil,method:(m=g.attributes)==null?void 0:m.method,kinds:(j=g.attributes)==null?void 0:j.kinds,attributes:g.attributes}}),h=u.edges.map(g=>{var p,k,m,j,x;return{source:g.sourceId,target:g.targetId,type:g.edgeType,category:(p=g.attributes)==null?void 0:p.category,label:(k=g.attributes)==null?void 0:k.label,weight:((m=g.attributes)==null?void 0:m.weight)??1,created_at:((j=g.attributes)==null?void 0:j.created_at)??"",verified_at:(x=g.attributes)==null?void 0:x.verified_at,attributes:g.attributes}});return{elements:f,traces:h}}const rct=["R-","RD-","MT-"],cct=[...p3n,...v3n,...y3n,...m3n,...j3n,...T3n,...E3n,...C3n,...M3n];function oct(u,f){return{id:u.id,name:u.name,severity:u.severity,gating:rct.some(h=>u.id.startsWith(h)),evaluate:h=>f(ict(h)).map(g=>({ruleId:g.rule_id,ruleName:u.name,severity:g.severity,message:g.message,elementId:g.element_id,fixHint:g.fix_hint,context:g.context}))}}function uct(u){return[...cct,...S3n].map(f=>oct(f,h=>f.evaluate(h,u)))}const sct=Object.fromEntries(fx.options.map(u=>[u,{label:u,requiredAttrs:[]}])),lct=Object.fromEntries(W4e.options.map(u=>{const f=X4e.filter(h=>h.type===u).map(h=>[h.source,h.target]);return[u,{arrows:[u],validPairs:f.length?f:[["*","*"]]}]}));function fct(u){return{name:"se",version:tct,nodeTypes:sct,edgeTypes:lct,patterns:X4e,rules:uct(u)}}const _D=fct(srt);function A3n(u,f){return f.some(h=>(h.source==="*"||h.source===u.source)&&(h.target==="*"||h.target===u.target)&&h.type===u.type)}function I3n(u){if(u.patterns)return u.patterns;const f=[];for(const[h,g]of Object.entries(u.edgeTypes))for(const[p,k]of g.validPairs)f.push({source:p,target:k,type:h});return f}const jM={"+":"add","-":"remove","~":"update","!":"strict_add"},act=/^\s*@(\w+)\s+(.+)$/,hct=/^M\s+(.+)$/,dct=/```format-e\s*\n([\s\S]*?)```/,Ypn=/\[([^\]]+)\]$/;class gct{constructor(f){TN(this,"ontology");TN(this,"edgeArrowToType");TN(this,"validNodeTypes");TN(this,"patterns");this.ontology=f,this.edgeArrowToType=new Map;for(const[h,g]of Object.entries(f.edgeTypes))for(const p of g.arrows)this.edgeArrowToType.set(p.toLowerCase(),h);this.validNodeTypes=new Set(Object.keys(f.nodeTypes)),this.patterns=I3n(f)}extractFromLlm(f){const h=dct.exec(f);return h?h[1].trim():null}parse(f,h={}){const g=[],p=[];let k=null,m=null;const j=new Map,x=I=>{var R;return j.get(I)??((R=h.resolveType)==null?void 0:R.call(h,I))};for(const I of f.split(`
120
120
  `)){const R=I.trim();if(!R||R.startsWith("//")||R.startsWith("#!"))continue;const B=act.exec(R);if(B){const ee=g.length>0?g[g.length-1]:null;ee&&(ee.type==="add_node"||ee.type==="update_node"||ee.type==="strict_add_node")?(ee.attributes||(ee.attributes={}),ee.attributes[B[1]]=nct(B[2].trim())):p.push(`@attribute line without preceding node: "${R}"`);continue}if(/^##\s*nodes?\s*$/i.test(R)){k="nodes",m=null;continue}if(/^##\s*edges?\s*$/i.test(R)){k="edges",m=null;continue}if(/^##\s*merges?\s*$/i.test(R)){k="merges",m=null;continue}const J=/^###\s+(\S+)\s*$/.exec(R);if(J&&k==="nodes"){this.validNodeTypes.has(J[1])?m=J[1]:(m=null,p.push(`Unknown node type section: "### ${J[1]}"`));continue}if(R.startsWith("#"))continue;const W=hct.exec(R);if(W||k==="merges"){W?this.parseMerge(W[1],g,p):p.push(`Invalid merge line: "${R}"`);continue}if(R.split("|",1)[0].includes("->")){this.parseEdgeLine(R,x,g,p);continue}if(k==="nodes"){m?this.parseNodeLine(R,m,j,g,p):p.push(`Node line outside a "### <TYPE>" section: "${R}"`);continue}R.length>0&&p.push(`Unrecognized line: "${R}"`)}return{operations:g,errors:p}}serialize(f){const h=[];if(f.nodes.length>0){h.push("## Nodes");const g=new Map;for(const p of f.nodes){const k=g.get(p.type);k?k.push(p):g.set(p.type,[p])}for(const p of[...g.keys()].sort()){h.push(`### ${p}`);for(const k of g.get(p)??[]){const m=k.description?`|${k.description}`:"",j=this.serializeAttrs(k.attributes);h.push(`+ ${k.uid}${m}${j}`),h.push(...this.structuredAttrLines(k.attributes))}}}return f.edges.length>0&&(h.push(""),h.push("## Edges"),h.push(...this.serializeEdges(f.edges))),h.join(`
121
- `)}parseNodeLine(f,h,g,p,k){const m=jM[f[0]]?f[0]:"+",j=jM[f[0]]?f.slice(1).trim():f.trim(),x=jM[m]??"add";let I=j,R;const B=Ypn.exec(j);B&&(I=j.slice(0,B.index).trim(),R=this.parseInlineAttrs(B[1]));const J=I.indexOf("|"),W=J>=0?I.slice(0,J).trim():I.trim(),ee=J>=0?I.slice(J+1).trim():void 0;if(!W){k.push(`Node line without a uid: "${f}"`);return}const q=W.split("-",1)[0];if(q!==W&&this.validNodeTypes.has(q)&&q!==h){k.push(`Uid prefix contradicts its section: "${W}" under "### ${h}"`);return}g.set(W,h),x==="remove"?p.push({type:"remove_node",semanticId:W}):x==="update"?p.push({type:"update_node",semanticId:W,elementType:h,description:ee,attributes:R}):x==="strict_add"?p.push({type:"strict_add_node",semanticId:W,elementType:h,description:ee,attributes:R}):p.push({type:"add_node",semanticId:W,elementType:h,description:ee,attributes:R})}parseEdgeLine(f,h,g,p){const k=jM[f[0]]?f[0]:"+",m=jM[f[0]]?f.slice(1).trim():f.trim(),j=jM[k]??"add";let x=m,I;const R=Ypn.exec(m);R&&(x=m.slice(0,R.index).trim(),I=this.parseInlineAttrs(R[1]));const B=/^(\S+)\s+-(\w+)->\s+(.+)$/.exec(x);if(!B){p.push(`Invalid edge syntax: "${f}"`);return}const J=B[1],W=B[2].toLowerCase(),ee=B[3],q=this.edgeArrowToType.get(W);if(!q){p.push(`Unknown edge arrow type "${W}" in: "${f}"`);return}const Ge=h(J);if(!Ge){p.push(`Cannot resolve type of source "${J}" — not declared under a "### <TYPE>" section and no resolveType provided`);return}const ce=ee.split(",").map(re=>re.trim()).filter(Boolean);for(const re of ce){const de=h(re);if(!de){p.push(`Cannot resolve type of target "${re}" — not declared under a "### <TYPE>" section and no resolveType provided`);continue}if(!A3n({source:Ge,target:de,type:q},this.patterns)){p.push(`Meta-model violation: ${Ge} -${q}-> ${de} is not valid`);continue}const le={type:j==="remove"?"remove_edge":j==="strict_add"?"strict_add_edge":"add_edge",semanticId:`${J}->${re}`,sourceId:J,targetId:re,edgeType:q};I&&(le.attributes=I),g.push(le)}}parseMerge(f,h,g){const p=f.split("+").map(k=>k.trim()).filter(Boolean);if(p.length<2){g.push(`Merge requires at least 2 nodes: "${f}"`);return}h.push({type:"merge_nodes",semanticId:`merge:${p.join("+")}`,sourceIds:p})}parseInlineAttrs(f){const h={};for(const g of f.split(",")){const p=g.indexOf(":");p>0&&(h[g.slice(0,p).trim()]=g.slice(p+1).trim())}return h}serializeEdges(f){const h=[],g=new Map;for(const k of f){const m=this.serializeEdgeAttrs(k.attributes);if(m){h.push({sourceId:k.sourceId,edgeType:k.edgeType,targets:[k.targetId],attrs:m});continue}const j=`${k.sourceId}\0${k.edgeType}`,x=g.get(j);if(x)x.targets.push(k.targetId);else{const I={sourceId:k.sourceId,edgeType:k.edgeType,targets:[k.targetId],attrs:""};g.set(j,I),h.push(I)}}const p=(k,m)=>k<m?-1:k>m?1:0;for(const k of h)k.targets.sort(p);return h.sort((k,m)=>p(k.sourceId,m.sourceId)||p(k.edgeType,m.edgeType)||p(k.targets[0],m.targets[0])||p(k.attrs,m.attrs)),h.map(k=>`+ ${k.sourceId} -${this.edgeTypeToArrow(k.edgeType)}-> ${k.targets.join(", ")}${k.attrs}`)}serializeAttrs(f){const h=Object.entries(f).filter(([,p])=>p!=null&&p!==""&&typeof p!="object");return h.length===0?"":` [${h.map(([p,k])=>`${p}:${String(k)}`).join(",")}]`}structuredAttrLines(f){return Object.entries(f).filter(([,h])=>h!=null&&typeof h=="object").map(([h,g])=>`@${h} ${JSON.stringify(g)}`)}serializeEdgeAttrs(f){const h=Object.entries(f).filter(([,p])=>p!=null&&p!=="");return h.length===0?"":` [${h.map(([p,k])=>`${p}:${typeof k=="object"?JSON.stringify(k):String(k)}`).join(",")}]`}edgeTypeToArrow(f){const h=this.ontology.edgeTypes[f];return(h==null?void 0:h.arrows[0])??f.toLowerCase()}}const _3n="graph-view-edit:config",wct=["hiddenTypes","hiddenEdgeTypes"];function bct(u){const f={};for(const[h,g]of Object.entries(u))f[h]=g instanceof Set?[...g]:g;return JSON.stringify(f)}function pct(u){const f=JSON.parse(u),h={};for(const[g,p]of Object.entries(f))h[g]=wct.includes(g)?new Set(p):p;return h}function mct(u,f){try{const h=u==null?void 0:u.getItem(_3n);return h?{...f,...pct(h)}:f}catch{return f}}function vct(u,f){try{u==null||u.setItem(_3n,bct(f))}catch{}}const $3n=Object.keys(_D.nodeTypes),O3n=Object.keys(_D.edgeTypes),yct={hiddenTypes:new Set,hiddenEdgeTypes:new Set,searchText:"",depth:2,weightStrategy:"uniform",animationEnabled:!1,showSchemas:!1};function P3n(){return typeof sessionStorage<"u"?sessionStorage:void 0}const er=V4e(u=>({selection:null,scopeSeed:[],activeWalk:"struktur",selectedFchain:null,visibleMods:new Set,workingSet:new Set,collapsedFuncs:null,...mct(P3n(),yct),select:f=>u({selection:f}),addToWorkingSet:f=>u(h=>({workingSet:new Set([...h.workingSet,...f])})),removeFromWorkingSet:f=>u(h=>{const g=new Set(h.workingSet);for(const p of f)g.delete(p);return{workingSet:g}}),clearWorkingSet:()=>u({workingSet:new Set}),setCollapsedFuncs:f=>u(h=>({collapsedFuncs:typeof f=="function"?f(h.collapsedFuncs):f})),toggleVisibleMod:f=>u(h=>{const g=new Set(h.visibleMods);return g.has(f)?g.delete(f):g.add(f),{visibleMods:g}}),setSelectedFchain:f=>u(h=>({selectedFchain:h.selectedFchain===f?null:f})),setScope:f=>u({scopeSeed:f,selection:f.length?f[f.length-1]:null}),setActiveWalk:f=>u({activeWalk:f}),toggleAnimation:()=>u(f=>({animationEnabled:!f.animationEnabled})),toggleType:f=>u(h=>{const g=new Set(h.hiddenTypes);return g.has(f)?g.delete(f):g.add(f),{hiddenTypes:g}}),toggleEdgeType:f=>u(h=>{const g=new Set(h.hiddenEdgeTypes);return g.has(f)?g.delete(f):g.add(f),{hiddenEdgeTypes:g}}),toggleShowSchemas:()=>u(f=>({showSchemas:!f.showSchemas})),setSearchText:f=>u({searchText:f}),setDepth:f=>u({depth:f}),setWeightStrategy:f=>u({weightStrategy:f})}));er.subscribe(u=>{vct(P3n(),{hiddenTypes:u.hiddenTypes,hiddenEdgeTypes:u.hiddenEdgeTypes,searchText:u.searchText,depth:u.depth,weightStrategy:u.weightStrategy,animationEnabled:u.animationEnabled,showSchemas:u.showSchemas})});function R3n(u,f=[],h=2){const g=(u==null?void 0:u.elements)??[],p=(u==null?void 0:u.traces)??[],k=new Set(g.map(B=>B.id)),m=f.filter(B=>k.has(B));if(!m.length)return{...u,elements:g,traces:p};const j=new Map,x=(B,J)=>{j.has(B)||j.set(B,[]),j.get(B).push(J)};for(const B of p)x(B.source,B.target),x(B.target,B.source);const I=new Map(m.map(B=>[B,0]));let R=m;for(let B=1;B<=h&&R.length;B++){const J=[];for(const W of R)for(const ee of j.get(W)??[])I.has(ee)||(I.set(ee,B),J.push(ee));R=J}return{...u,elements:g.filter(B=>I.has(B.id)),traces:p.filter(B=>I.has(B.source)&&I.has(B.target))}}const eZ=Of($3n),$ye=Of(O3n),kct=["struktur","verhalten"],Sct=Or({walks:Qo(Of(kct)).min(1),selectableTypes:Qo(eZ).min(1)}).partial().strict(),Ect=Or({search:Qg(),depth:Qg(),weight:Qg(),animation:Qg(),viewstate:Qg(),explorer:Sct}).partial().strict(),Cct=Or({includeNodeTypes:Qo(eZ).optional(),includeEdgeTypes:Qo($ye).optional(),dropUnconnected:Qg().optional(),algorithm:Ut().optional(),parameters:bk(Ut(),Ev()).optional()}).strict(),jct=Or({showNodes:Qo(eZ).optional(),hideNodes:Qo(eZ).optional(),showEdges:Qo($ye).optional(),hideEdges:Qo($ye).optional()}).strict(),Tct=Or({id:Ut().min(1),reqId:Ut().min(1),name:Ut().min(1),chrome:Ect.optional(),layoutConfig:Cct,renderConfig:jct.optional(),transform:Ut().min(1).optional()}).strict(),Mct=Or({id:Ut().min(1),reqId:Ut().min(1),name:Ut().min(1),editable:Qg(),hidden:Qg(),selector:Or({file:Ut().min(1)}).strict()}).strict();function TZ(u,f={}){const{includeNodeTypes:h,includeEdgeTypes:g,dropUnconnected:p=!1}=f;let k=h?(u.elements??[]).filter(x=>h.includes(x.type)):u.elements??[],m=new Set(k.map(x=>x.id));const j=(u.traces??[]).filter(x=>(!g||g.includes(x.type))&&m.has(x.source)&&m.has(x.target));return p&&(m=new Set(j.flatMap(x=>[x.source,x.target])),k=k.filter(x=>m.has(x.id))),{elements:k,traces:j}}function xct(u={}){const{showNodes:f,hideNodes:h=[],showEdges:g,hideEdges:p=[]}=u;return{keepNode:k=>(!f||f.includes(k))&&!h.includes(k),keepEdge:k=>(!g||g.includes(k))&&!p.includes(k)}}function Act(u,f,{scopeSeed:h=[],depth:g=2}={}){const p=R3n(u,h,g);return TZ(p,(f==null?void 0:f.layoutConfig)??{})}function Ict(u,f,h,g=new Set){if(!(h!=null&&h.size))return[];const p=new Map((u.elements??[]).map(R=>[R.id,R.type])),k=R=>h.has(p.get(R)),m=new Map,j=(R,B,J)=>{m.has(R)||m.set(R,[]),m.get(R).push({to:B,type:J})};for(const R of u.traces??[])g.has(R.type)||!p.has(R.source)||!p.has(R.target)||(j(R.source,R.target,R.type),j(R.target,R.source,R.type));const x=[],I=new Set;for(const R of f){const B=new Set;let J=(m.get(R)??[]).filter(W=>k(W.to)&&!B.has(W.to)).map(W=>(B.add(W.to),{id:W.to,chain:[W.type]}));for(;J.length;){const W=[];for(const ee of J)for(const q of m.get(ee.id)??[])if(k(q.to))B.has(q.to)||(B.add(q.to),W.push({id:q.to,chain:[...ee.chain,q.type]}));else if(q.to!==R&&f.has(q.to)){const Ge=R<q.to?`${R}|${q.to}`:`${q.to}|${R}`;I.has(Ge)||(I.add(Ge),x.push({source:R,target:q.to,type:"derived",label:[...ee.chain,q.type].join("·")}))}J=W}}return x}const Oye={search:!0,depth:!0,weight:!0,animation:!0,viewstate:!0,explorer:{walks:["struktur","verhalten"],selectableTypes:null}},emn={search:!1,weight:!1,animation:!1,viewstate:!1};function Q4e(u){var h;const f=N3n.find(g=>g.id===u);return{...Oye,...(f==null?void 0:f.chrome)??{},explorer:{...Oye.explorer,...((h=f==null?void 0:f.chrome)==null?void 0:h.explorer)??{}}}}const _ct=[{id:"view-all",reqId:"REQ-view-all",name:"Workbench",chrome:{search:!1,depth:!1,weight:!1,animation:!1,viewstate:!1},layoutConfig:{algorithm:"elk"}},{id:"layout-flow",reqId:"REQ-layout-flow",name:"Funktionsnetzwerk",chrome:emn,layoutConfig:{includeNodeTypes:["FUNC","FLOW","ACTOR"],includeEdgeTypes:["io"],algorithm:"elk"}},{id:"actionflow",reqId:"REQ-view-actionflow",name:"Wirkkette",chrome:{...emn,explorer:{walks:["verhalten"],selectableTypes:["FCHAIN","FUNC"]}},layoutConfig:{includeNodeTypes:["FCHAIN","FUNC","FLOW","ACTOR"],includeEdgeTypes:["io","compose"],algorithm:"elk",parameters:{slice:"action-flow"}}},{id:"state",reqId:"REQ-view-state",name:"Zustands-View",layoutConfig:{includeEdgeTypes:["io"],dropUnconnected:!0,algorithm:"layered"},transform:"flows-as-states"},{id:"impactmap",reqId:"REQ-view-impactmap",name:"Impact/Rollup-Map",layoutConfig:{algorithm:"preset"},chrome:{depth:!1,viewstate:!1}},{id:"matrix",reqId:"REQ-view-matrix",name:"Relationship-Matrizen",layoutConfig:{includeEdgeTypes:["verify","satisfy","allocate"]}},{id:"tabular",reqId:"REQ-view-tabular",name:"Tabellen-View",layoutConfig:{}},{id:"testconcept-tree",reqId:"REQ-view-testconcept",name:"Testkonzept",chrome:{search:!1,depth:!1,weight:!1,animation:!1,viewstate:!1},layoutConfig:{}}].map(u=>Tct.parse(u)),E3e={srs:{name:"Specification",editable:!0},architecture:{hidden:!0}},Z4e=Object.keys(vpn).map(u=>{var f,h,g;return Mct.parse({id:u,reqId:"REQ-docview-all",name:((f=E3e[u])==null?void 0:f.name)??u,editable:((h=E3e[u])==null?void 0:h.editable)??!1,hidden:((g=E3e[u])==null?void 0:g.hidden)??!1,selector:{file:vpn[u]}})}),N3n=[..._ct,...Z4e],D3n=new Map(N3n.map(u=>[u.id,u]));function $ct(){return[...D3n.values()].filter(u=>!u.hidden)}function qy(u){const f=D3n.get(u);if(!f)throw new Error(`unknown view: ${u}`);return f}function Pye({name:u,scope:f=null,params:h={}}){return{descriptor:qy(u),scope:f,params:h}}const Oct={SYS:"--color-type-1",UC:"--color-type-2",ACTOR:"--color-type-3",REQ:"--color-type-4",TEST:"--color-type-5",MOD:"--color-type-6",CR:"--color-type-7",FUNC:"--color-type-func",FLOW:"--color-type-flow",FCHAIN:"--fchain-1",SCHEMA:"--color-type-schema"},nmn=["--fchain-1","--fchain-2","--fchain-3","--fchain-4","--fchain-5"];function Pct(u){return Wu(nmn[u%nmn.length],"#8b5cf6")}const C3e=new Map;function Wu(u,f){var p;if(C3e.has(u))return C3e.get(u);const h=typeof document<"u"?getComputedStyle(document.documentElement):null,g=((p=h==null?void 0:h.getPropertyValue(u))==null?void 0:p.trim())||f;return C3e.set(u,g),g}function vD(u){return Wu(Oct[u]??"--color-border","#94a3b8")}function Rct(u){return u.map(f=>f.data.source||f.data.color?f:{...f,data:{...f.data,color:vD(f.data.type)}})}const F3n=I3n(_D);function Y4e(u,f,h){if(!A3n({source:f,target:h,type:u},F3n))throw new Error(`behavior-flow: ${u} ${f}->${h} is not a valid SE trace pair (contracts drift)`);return{type:u,source:f,target:h}}const WM=(u,f,h)=>{var g,p;return u.type===f.type&&((g=h.get(u.source))==null?void 0:g.type)===f.source&&((p=h.get(u.target))==null?void 0:p.type)===f.target},L3n=Y4e("compose","FUNC","FUNC"),B3n=Y4e("compose","MOD","MOD"),z3n=Y4e("allocate","FUNC","MOD"),Nct=new Set(["compose","allocate"]);function j3e(u){return new Set(F3n.filter(f=>f.type==="compose"&&f.source===u).map(f=>f.target))}function J3n(u){var m;const f=new Map((u.elements??[]).map(j=>[j.id,j])),h=(u.traces??[]).filter(j=>j.type==="compose"),g=(u.elements??[]).filter(j=>j.type==="FCHAIN").map(j=>j.id).sort(),p=new Map,k=(j,x,I)=>{var R;if(!I.has(x)){I.add(x),p.has(x)||p.set(x,new Set),p.get(x).add(j);for(const B of h)B.source===x&&((R=f.get(B.target))==null?void 0:R.type)==="FUNC"&&k(j,B.target,I)}};for(const j of g)for(const x of h)x.source===j&&((m=f.get(x.target))==null?void 0:m.type)==="FUNC"&&k(j,x.target,new Set);return{fchains:g,funcOf:p}}function Dct(u){const{fchains:f,funcOf:h}=J3n(u),g=new Map(f.map((p,k)=>[p,k]));return{fchains:f,funcOf:h,colorOfFchain:p=>Pct(g.get(p)??0)}}function U3n(u,f=new Set){const h=new Map((u.elements??[]).map(j=>[j.id,j])),g=new Map,p=new Map,k=new Map;for(const j of u.traces??[])WM(j,L3n,h)&&g.set(j.target,j.source),WM(j,B3n,h)&&p.set(j.target,j.source),WM(j,z3n,h)&&k.set(j.source,j.target);const m=new Map;for(const j of u.elements??[]){if(j.type==="MOD"){const B=p.get(j.id);B&&f.has(j.id)&&f.has(B)&&m.set(j.id,B);continue}if(j.type!=="FUNC")continue;const x=g.get(j.id),I=x&&k.get(x)===k.get(j.id);x&&(I||!f.has(k.get(j.id))&&!f.has(k.get(x)))?m.set(j.id,x):f.has(k.get(j.id))&&m.set(j.id,k.get(j.id))}return{parentOf:m,parents:new Set(m.values()),modOf:k}}function Fct(u,f){var m;const h=new Map((u.elements??[]).map(j=>[j.id,j])),g=new Set([...f].filter(j=>h.has(j))),p=u.traces??[],k=(j,x)=>{g.has(j)||(g.add(j),x.push(j))};for(const j=[...g];j.length;){const x=j.pop(),I=(m=h.get(x))==null?void 0:m.type;if(I==="MOD")for(const R of p)WM(R,z3n,h)&&R.target===x&&k(R.source,j),WM(R,B3n,h)&&R.source===x&&k(R.target,j);if(I==="FUNC")for(const R of p)WM(R,L3n,h)&&R.source===x&&k(R.target,j)}return g}function Lct(u,f){var m;const h=new Map(((u==null?void 0:u.elements)??[]).map(j=>[j.id,j])),g=(m=h.get(f))==null?void 0:m.type;if(g==="MOD"||g==="FUNC")return[f];const p=((u==null?void 0:u.traces)??[]).filter(j=>j.type==="compose"),k=(j,x)=>p.filter(I=>{var R;return I.source===j&&((R=h.get(I.target))==null?void 0:R.type)===x}).map(I=>I.target);return g==="FCHAIN"?k(f,"FUNC"):g==="UC"?k(f,"FCHAIN").flatMap(j=>k(j,"FUNC")):g==="SYS"?k(f,"MOD"):[]}function Bct(u,f){var I,R;const h=TZ(u,f),g=new Map(h.elements.map(B=>[B.id,B])),p=new Set(h.elements.filter(B=>B.type==="FLOW").map(B=>B.id)),k=new Set;for(const B of h.traces)((I=g.get(B.source))==null?void 0:I.type)==="ACTOR"&&p.has(B.target)&&k.add(B.source),((R=g.get(B.target))==null?void 0:R.type)==="ACTOR"&&p.has(B.source)&&k.add(B.target);const m=new Set(h.elements.filter(B=>["FUNC","FLOW"].includes(B.type)||k.has(B.id)).map(B=>B.id)),j=h.elements.filter(B=>m.has(B.id)),x=h.traces.filter(B=>m.has(B.source)&&m.has(B.target));return{elements:j,traces:x}}function zct(u,f,h){var J,W,ee,q;const g=TZ(u,h),p=new Map(g.elements.map(Ge=>[Ge.id,Ge])),k=g.traces.filter(Ge=>Ge.type==="compose"),m=g.traces.filter(Ge=>Ge.type==="io"),j=new Set,x=Ge=>{var ce;for(const re of k)re.source===Ge&&((ce=p.get(re.target))==null?void 0:ce.type)==="FUNC"&&!j.has(re.target)&&(j.add(re.target),x(re.target))};x(f);const I=new Set;for(const Ge of m)j.has(Ge.source)&&((J=p.get(Ge.target))==null?void 0:J.type)==="FLOW"&&I.add(Ge.target),j.has(Ge.target)&&((W=p.get(Ge.source))==null?void 0:W.type)==="FLOW"&&I.add(Ge.source);const R=new Set;for(const Ge of m)((ee=p.get(Ge.source))==null?void 0:ee.type)==="ACTOR"&&I.has(Ge.target)&&R.add(Ge.source),((q=p.get(Ge.target))==null?void 0:q.type)==="ACTOR"&&I.has(Ge.source)&&R.add(Ge.target);const B=new Set([...j,...I,...R]);return{elements:g.elements.filter(Ge=>B.has(Ge.id)),traces:m.filter(Ge=>B.has(Ge.source)&&B.has(Ge.target))}}const e6e={graph:{path:"docs/graph/graph-view-edit.graph.json",host:null},port:4317,ontologyDescriptor:"se",tokenTheme:"default",viewRegistryDefaults:{view:null,scope:null},edit:{enabled:!1}};let zN=null;async function Jct(u=globalThis.fetch){try{const f=await u("/api/config");if(!f.ok)throw new Error(`/api/config responded ${f.status}`);zN=await f.json()}catch(f){console.warn(`gve: /api/config unavailable (${f.message}) — using schema defaults`),zN=e6e}return H3n=nZ(zN),zN}function G3n(){return zN??e6e}function nZ(u=G3n()){const f=u.graph.path.replace(/^\/+/,"");return u.graph.host?`${u.graph.host.replace(/\/+$/,"")}/${f}`:`/${f}`}let H3n=nZ(e6e);function Rye(){return{collapsed:new Set,hidden:new Set,faded:new Set,pinned:new Set,selected:new Set}}function rQ(u,f){return new Set([...u,...f])}function T3e(u,f){const h=new Set(u);for(const g of f)h.delete(g);return h}function Uct(u,f){const h=new Set(u);for(const g of f)h.has(g)?h.delete(g):h.add(g);return h}function Gct(u,f){const{op:h,targets:g}=f;switch(h){case"collapse":return{...u,collapsed:rQ(u.collapsed,g)};case"expand":return{...u,collapsed:T3e(u.collapsed,g)};case"hide":return{...u,hidden:rQ(u.hidden,g)};case"show":return{...u,hidden:T3e(u.hidden,g)};case"fade":return{...u,faded:rQ(u.faded,g)};case"expose":return{...u,faded:T3e(u.faded,g)};case"pin":return{...u,pinned:Uct(u.pinned,g)};case"select":return{...u,selected:rQ(u.selected,g)};default:return h}}const q3n="graph-view-edit:view-state";function Hct(u){return JSON.stringify({collapsed:[...u.collapsed],hidden:[...u.hidden],faded:[...u.faded],pinned:[...u.pinned],selected:[...u.selected]})}function qct(u){const f=JSON.parse(u);return{collapsed:new Set(f.collapsed??[]),hidden:new Set(f.hidden??[]),faded:new Set(f.faded??[]),pinned:new Set(f.pinned??[]),selected:new Set(f.selected??[])}}function Vct(u){try{const f=u==null?void 0:u.getItem(q3n);return f?qct(f):Rye()}catch{return Rye()}}function Wct(u=typeof sessionStorage<"u"?sessionStorage:void 0){return V4e((f,h)=>({state:Vct(u),apply(g){const p=Gct(h().state,g);f({state:p});try{u==null||u.setItem(q3n,Hct(p))}catch{}}}))}const yD=Wct();function Kct(){er.setState({selection:null,scopeSeed:[],workingSet:new Set,visibleMods:new Set,collapsedFuncs:null,selectedFchain:null}),yD.setState({state:Rye()})}const kD=V4e((u,f)=>({graph:null,source:null,epoch:0,async load(h=nZ(),{fetchImpl:g=fetch}={}){const p=f().source,k=await g(h).then(j=>j.json()),m=p!==null&&p!==h;return u(j=>({graph:k,source:h,epoch:m?j.epoch+1:j.epoch})),m&&Kct(),k},async reload({fetchImpl:h=fetch}={}){const g=f().source??nZ(),p=await h(g).then(k=>k.json());return u({graph:p,source:g}),p}}));function pk({enabled:u=!0}={}){const f=kD(g=>g.graph),h=kD(g=>g.load);return hn.useEffect(()=>{u&&h()},[u,h]),f}const V3n=["uniform","traces","hot-spots"],Xct=24,Qct=6,tmn=2.5,Zct=.6,Yct=7;function eot(u,f="uniform"){if(!V3n.includes(f))throw new Error(`unknown weight strategy: ${f}`);const h=u.filter(I=>!I.data.source),g=u.filter(I=>I.data.source).map(I=>I.data),p=new Map,k=new Map;for(const I of h)p.set(I.data.id,0),k.set(I.data.id,0);for(const I of g)p.set(I.source,(p.get(I.source)??0)+1),p.set(I.target,(p.get(I.target)??0)+1),k.set(I.target,(k.get(I.target)??0)+1);const m=I=>f==="traces"?p.get(I)??0:f==="hot-spots"?k.get(I)??0:0,j=new Map;for(const I of h)j.set(I.data.id,Xct+Qct*m(I.data.id));const x=new Map;for(const I of g){const R=f==="uniform"?tmn:Math.min(tmn+Zct*Math.max(m(I.source),m(I.target)),Yct);x.set(I.id,R)}return{nodeSize:j,edgeWidth:x}}function not(u){return u===0?"":`${u} draft${u===1?"":"s"} pending`}function tot(u){const f=u.context??{};return{ruleId:u.ruleId,severity:u.severity,elementId:u.elementId,message:u.message,fixHint:u.fixHint,candidateTargets:f.candidate_targets??[]}}function iot(u){return{tier:u.tier??"unknown",applied:u.success,violations:(u.violations??[]).map(tot)}}function rot({result:u,onFixCandidate:f}){const{tier:h,applied:g,violations:p}=iot(u);return g&&p.length===0?Q.jsxs("div",{"data-testid":"gate-feedback-clean","data-tier":h,children:["Applied (",h,")"]}):Q.jsxs("div",{"data-testid":"gate-feedback","data-tier":h,children:[Q.jsx("div",{"data-testid":"gate-feedback-tier",children:h}),Q.jsx("ul",{children:p.map(k=>Q.jsxs("li",{"data-testid":`violation-${k.ruleId}-${k.elementId}`,children:[Q.jsx("span",{"data-testid":`message-${k.ruleId}-${k.elementId}`,children:k.message}),k.fixHint&&Q.jsx("span",{"data-testid":`fixhint-${k.ruleId}-${k.elementId}`,children:k.fixHint}),k.candidateTargets.length>0&&Q.jsx("ul",{children:k.candidateTargets.map(m=>Q.jsx("li",{children:Q.jsxs("button",{type:"button","data-testid":`fix-${k.ruleId}-${k.elementId}-${m.id}`,onClick:()=>f==null?void 0:f(k,m),children:["Fix with ",m.name]})},m.id))})]},`${k.ruleId}-${k.elementId}`))})]})}const cot=new Set(["ACTOR"]);function oot(u,f,h=null){if(!u)return null;const g=new Map((u.elements??[]).map(j=>[j.id,j])),p=u.traces??[],k=g.get(f);if(!k)return null;const m=(j,x)=>{const I=p.filter(B=>B.type==="compose"&&B.source===j.id).map(B=>g.get(B.target)).filter(B=>B&&!x.has(B.id)&&(!h||h.has(B.type))).sort((B,J)=>B.id.localeCompare(J.id)),R=new Set(x).add(j.id);return{id:j.id,type:j.type,name:j.name||j.id,children:I.map(B=>m(B,R))}};return m(k,new Set)}function uot(u,f){var R,B;if(!u)return null;const h=new Map((u.elements??[]).map(J=>[J.id,J])),g=h.get(f);if(!g)return null;const p=new Set((u.elements??[]).filter(J=>J.type==="MOD").map(J=>J.id)),{parentOf:k}=U3n(u,p),m=new Map,j=(J,W)=>{m.has(J)||m.set(J,new Set),m.get(J).add(W)};for(const[J,W]of k)j(W,J);for(const J of u.traces??[])J.type==="compose"&&((R=h.get(J.source))==null?void 0:R.type)==="SYS"&&((B=h.get(J.target))==null?void 0:B.type)==="MOD"&&j(J.source,J.target);const x=new Set(k.keys());for(const J of u.elements??[])J.type==="FUNC"&&!x.has(J.id)&&j(f,J.id);const I=(J,W)=>{const ee=new Set(W).add(J.id),q=[...m.get(J.id)??[]].filter(Ge=>!W.has(Ge));return{id:J.id,type:J.type,name:J.name||J.id,children:q.sort().map(Ge=>I(h.get(Ge),ee))}};return I(g,new Set)}function W3n({node:u,path:f,collapsed:h,onToggle:g,onSelect:p,selection:k,prefix:m,dimIds:j}){const x=[...f,u.id],I=u.children.length>0,R=h.has(u.id),B=j==null?void 0:j.has(u.id);return Q.jsxs("li",{children:[Q.jsxs("div",{className:`row${k===u.id?" sel":""}${B?" dim":""}`,"data-testid":`${m}-node-${u.id}`,"data-type":u.type,onClick:()=>p(u.id,x),children:[Q.jsx("span",{className:"tw","data-testid":I?`${m}-tw-${u.id}`:void 0,onClick:J=>{J.stopPropagation(),I&&g(u.id)},children:I?R?"▸":"▾":""}),Q.jsx("span",{className:`ic${cot.has(u.type)?" ell":""}`,style:{background:vD(u.type)}}),Q.jsx("span",{className:"lbl",children:u.name}),Q.jsx("span",{className:"kind",children:u.type})]}),I&&!R&&Q.jsx("ul",{children:u.children.map(J=>Q.jsx(W3n,{node:J,path:x,collapsed:h,onToggle:g,onSelect:p,selection:k,prefix:m,dimIds:j},J.id))})]})}function sot({root:u,collapsed:f,onToggle:h,onSelect:g,selection:p,prefix:k="tree",dimIds:m}){return u?Q.jsx("ul",{className:"gve-tree",children:Q.jsx(W3n,{node:u,path:[],collapsed:f,onToggle:h,onSelect:g,selection:p,prefix:k,dimIds:m})}):null}const lot=new Set(["UC",...[...j3e("UC")].filter(u=>u!=="REQ"),...j3e("FCHAIN"),...j3e("FUNC")]),fot={struktur:"Struktur (MOD)",verhalten:"Verhalten (FUNC)"};function K3n(u,f,h=new Set){return u&&(f&&!f.includes(u.type)&&h.add(u.id),u.children.forEach(g=>K3n(g,f,h))),h}function aot({graph:u,onSelect:f,config:h={walks:["struktur","verhalten"],selectableTypes:null}}){const{walks:g,selectableTypes:p}=h,k=er(le=>le.activeWalk),m=er(le=>le.setActiveWalk),j=er(le=>le.selection),[x,I]=hn.useState(()=>new Set),R=er(le=>le.collapsedFuncs),B=er(le=>le.setCollapsedFuncs),J=hn.useMemo(()=>YQ(u),[u]),W=hn.useMemo(()=>uot(u,J),[u,J]),ee=hn.useMemo(()=>oot(u,J,lot),[u,J]),q=g.includes(k)?k:g[0],Ge=q==="verhalten"?ee:W,ce=hn.useMemo(()=>K3n(Ge,p),[Ge,p]),re=(le,He)=>{ce.has(le)||f==null||f(le,He)},de=hn.useMemo(()=>new Set([...x,...R??[]]),[x,R]),se=le=>{const He=de.has(le);I(Ye=>{const Pn=new Set(Ye);return He?Pn.delete(le):Pn.add(le),Pn}),B(Ye=>{if(!Ye)return Ye;const Pn=new Set(Ye);return He?Pn.delete(le):Pn.add(le),Pn})};return Q.jsxs("aside",{className:"gve-explorer","data-testid":"explorer",children:[Q.jsx("div",{className:"exp-tabs",role:"tablist",children:g.map(le=>Q.jsx("button",{className:`exp-tab${q===le?" active":""}`,"data-testid":`exp-tab-${le}`,"aria-selected":q===le,onClick:()=>m(le),children:fot[le]},le))}),Q.jsx("div",{className:"exp-tree",children:Ge?Q.jsx(sot,{root:Ge,collapsed:de,onToggle:se,onSelect:re,selection:j,dimIds:ce,prefix:"exp"}):Q.jsx("p",{className:"kind",style:{padding:"var(--space-2)"},children:"kein Graph"})})]})}const hot={uniform:"Uniform",traces:"Traces","hot-spots":"Hot-Spots"};function dot({graph:u,selection:f}){var x;const h=f?(x=u==null?void 0:u.elements)==null?void 0:x.find(I=>I.id===f):null,g=new Map(((u==null?void 0:u.elements)??[]).map(I=>[I.id,I])),p=h?((u==null?void 0:u.traces)??[]).filter(I=>I.source===h.id||I.target===h.id):[],k=I=>I.source===h.id?I.target:I.source,m=h?p.filter(I=>{var R;return((R=g.get(k(I)))==null?void 0:R.type)==="SCHEMA"}):[],j=p.filter(I=>!m.includes(I));return Q.jsx("aside",{className:"gve-details","data-testid":"details",children:h?Q.jsxs(Q.Fragment,{children:[Q.jsx("h4",{"data-testid":"details-title",children:h.name||h.id}),Q.jsxs("dl",{children:[Q.jsx("dt",{children:"Typ"}),Q.jsx("dd",{"data-testid":"details-type",children:h.type}),Q.jsx("dt",{children:"ID"}),Q.jsx("dd",{children:h.id}),h.description?Q.jsxs(Q.Fragment,{children:[Q.jsx("dt",{children:"Beschreibung"}),Q.jsx("dd",{children:h.description})]}):null,m.length>0?Q.jsxs(Q.Fragment,{children:[Q.jsxs("dt",{children:["Schemas (",m.length,")"]}),Q.jsx("dd",{"data-testid":"details-schemas",children:m.map((I,R)=>{var J;const B=k(I);return Q.jsx("div",{className:"kind","data-testid":`details-schema-${B}`,children:((J=g.get(B))==null?void 0:J.name)||B},R)})})]}):null,Q.jsxs("dt",{children:["Traces (",j.length,")"]}),Q.jsx("dd",{children:j.map((I,R)=>Q.jsx("div",{className:"kind",children:I.source===h.id?`${I.type} → ${I.target}`:`${I.source} ${I.type} →`},R))})]})]}):Q.jsx("p",{className:"kind","data-testid":"details-empty",children:"Kein Element gewählt"})})}function n6e({title:u,subtitle:f,zoomPct:h,onZoomIn:g,onZoomOut:p,onZoomReset:k,onZoomFit:m,breadcrumb:j=[],onCrumbClick:x,onScopeReset:I,nodeCount:R=0,edgeCount:B=0,editMode:J=!1,draftCount:W=0,gateEvent:ee=null,graph:q=null,explorer:Ge=!0,onExplorerSelect:ce,capabilities:re=Oye,children:de}){var zh,jv;const se=er(xt=>xt.hiddenTypes),le=er(xt=>xt.hiddenEdgeTypes),He=er(xt=>xt.searchText),Ye=er(xt=>xt.depth),Pn=er(xt=>xt.toggleType),Zt=er(xt=>xt.showSchemas),Ni=er(xt=>xt.toggleShowSchemas),Jc=er(xt=>xt.toggleEdgeType),hu=er(xt=>xt.setSearchText),V=er(xt=>xt.setDepth),kc=er(xt=>xt.weightStrategy),Wn=er(xt=>xt.setWeightStrategy),Yt=er(xt=>xt.animationEnabled),Vt=er(xt=>xt.toggleAnimation),Bn=er(xt=>xt.selection),Mn=er(xt=>xt.scopeSeed),Gn=er(xt=>xt.setScope),jt=er(xt=>xt.workingSet),fr=er(xt=>xt.clearWorkingSet),Pr=yD(xt=>xt.state),Qr=yD(xt=>xt.apply),os=Pr.hidden.size>0||Pr.faded.size>0||Pr.collapsed.size>0,Zo=()=>{Pr.hidden.size&&Qr({op:"show",targets:[...Pr.hidden]}),Pr.faded.size&&Qr({op:"expose",targets:[...Pr.faded]}),Pr.collapsed.size&&Qr({op:"expand",targets:[...Pr.collapsed]})},ks=Mn.length?`${((jv=(zh=q==null?void 0:q.elements)==null?void 0:zh.find(xt=>xt.id===Mn[Mn.length-1]))==null?void 0:jv.name)??Mn[Mn.length-1]}${Mn.length>1?` +${Mn.length-1}`:""}`:"",Cv=se.size||le.size?`Filter: ohne ${[...se,...le].join(", ")}`:"Filter: alle Typen";return Q.jsxs(Q.Fragment,{children:[Q.jsxs("header",{className:"gve-bar",children:[Q.jsxs("div",{className:"title","data-testid":"view-title",children:[u," ",f?Q.jsx("small",{children:f}):null]}),Q.jsxs("div",{className:"gve-group","data-testid":"zoom-group",children:[Q.jsx("button",{className:"gve-btn","data-testid":"zoom-out",title:"Zoom −",onClick:p,children:"−"}),Q.jsxs("button",{className:"gve-btn","data-testid":"zoom-reset",title:"Zoom zurücksetzen",onClick:k,children:[h,"%"]}),Q.jsx("button",{className:"gve-btn","data-testid":"zoom-in",title:"Zoom +",onClick:g,children:"+"}),Q.jsx("button",{className:"gve-btn","data-testid":"zoom-fit",title:"Einpassen",onClick:m,children:"Fit"})]}),Q.jsx("div",{className:"gve-group","data-testid":"type-filter",children:$3n.map(xt=>{const Jh=xt==="SCHEMA",Uc=Jh?!Zt:se.has(xt);return Q.jsxs("button",{className:`gve-chip${Uc?" off":""}`,"data-testid":`chip-${xt.toLowerCase()}`,"data-type":xt,title:Jh?"Schemas einblenden — der Flow als aufgelöster Contract-Knoten":void 0,onClick:()=>Jh?Ni():Pn(xt),children:[Q.jsx("span",{className:"dot",style:{background:vD(xt)}}),xt]},xt)})}),Q.jsxs("div",{className:"gve-group","data-testid":"edge-filter",children:[Q.jsx("label",{children:"Kanten"}),O3n.map(xt=>Q.jsxs("button",{className:`gve-chip${le.has(xt)?" off":""}`,"data-testid":`echip-${xt}`,"data-type":xt,onClick:()=>Jc(xt),children:[Q.jsx("span",{className:"dash"}),xt]},xt))]}),re.search&&Q.jsx("input",{className:"gve-input",placeholder:"Suche…","data-testid":"search-input",value:He,onChange:xt=>hu(xt.target.value)}),re.depth&&Q.jsxs("div",{className:"gve-group",children:[Q.jsx("label",{children:"Tiefe"}),Q.jsx("select",{className:"gve-select","data-testid":"depth-select",value:Ye,onChange:xt=>V(Number(xt.target.value)),children:[1,2,3,4,5].map(xt=>Q.jsx("option",{value:xt,children:xt},xt))})]}),re.weight&&Q.jsxs("div",{className:"gve-group",children:[Q.jsx("label",{children:"Gewicht"}),Q.jsx("select",{className:"gve-select","data-testid":"weight-select",value:kc,onChange:xt=>Wn(xt.target.value),children:V3n.map(xt=>Q.jsx("option",{value:xt,children:hot[xt]},xt))})]}),re.viewstate&&Q.jsxs("div",{className:"gve-group","data-testid":"viewstate-actions",children:[Q.jsx("label",{children:"Knoten"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-hide",disabled:!Bn,onClick:()=>Qr({op:"hide",targets:[Bn]}),children:"Verbergen"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-fade",disabled:!Bn,onClick:()=>Qr({op:"fade",targets:[Bn]}),children:"Abblenden"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-collapse",disabled:!Bn,onClick:()=>Qr({op:"collapse",targets:[Bn]}),children:"Einklappen"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-pin",disabled:!Bn,onClick:()=>Qr({op:"pin",targets:[Bn]}),children:"Pin"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-reset",disabled:!os,onClick:Zo,children:"Alles zeigen"})]}),re.animation&&Q.jsxs("button",{className:"gve-btn","data-testid":"animation-toggle","aria-pressed":Yt,onClick:Vt,children:["Animation: ",Yt?"an":"aus"]}),J&&Q.jsx("span",{className:"gve-chip","data-testid":"edit-mode-indicator",children:"Edit-Mode"})]}),Q.jsxs("nav",{className:"gve-crumbs","data-testid":"breadcrumb",children:[Mn.length>0&&Q.jsxs("button",{type:"button",className:"gve-chip","data-testid":"scope-reset",title:"Scope aufheben — View zeigt wieder den vollen Graphen",onClick:()=>{Gn([]),I==null||I()},children:["Scope: ",ks," ✕"]}),jt.size>0&&Q.jsxs("button",{type:"button",className:"gve-chip","data-testid":"workingset-clear",title:"Alles einklappen — nimmt jede Expansion zurück",onClick:fr,children:[jt.size," aufgeklappt ✕"]}),j.map((xt,Jh)=>Q.jsxs("span",{children:[Jh>0?" / ":"",Jh===j.length-1?Q.jsx("strong",{children:xt.uid}):Q.jsx("a",{href:"#","data-testid":`crumb-${xt.uid}`,onClick:Uc=>{Uc.preventDefault(),x==null||x(xt.uid,Jh)},children:xt.uid})]},`${Jh}-${xt.uid}`))]}),J&&(ee==null?void 0:ee.type)==="blocked"&&Q.jsx(rot,{result:ee.result}),Q.jsxs("div",{className:"gve-body",children:[Ge&&Q.jsx(aot,{graph:q,onSelect:ce,config:re.explorer}),de,Q.jsx(dot,{graph:q,selection:Bn})]}),Q.jsxs("footer",{className:"gve-status",children:[Q.jsxs("span",{"data-testid":"status-counts",children:[R," Knoten · ",B," Kanten"]}),Q.jsxs("span",{children:["Zoom ",Q.jsxs("span",{"data-testid":"status-zoom",children:[h," %"]})]}),Q.jsx("span",{"data-testid":"status-filter",children:Cv}),J&&Q.jsx("span",{"data-testid":"draft-counter",children:not(W)||"keine Drafts"})]})]})}Or({repoRoot:Ut(),scope:Or({workspaceId:Ut(),systemId:Ut()}),consumerType:Of(["human","agent","system"]).default("agent"),preCommitTimeout:Pa().int().positive().default(5e3)});const got=Or({uid:Ut(),type:Ut(),name:Ut(),description:Ut().optional(),attributes:bk(Ut(),Ev()).default({})}),wot=Or({uid:Ut(),type:Ut().optional(),name:Ut().optional(),description:Ut().optional(),attributes:bk(Ut(),Ev()).optional()}),bot=Or({sourceId:Ut(),targetId:Ut(),edgeType:Ut(),attributes:bk(Ut(),Ev()).default({})});ett("op",[Or({op:q5("add-node"),node:got}),Or({op:q5("update-node"),node:wot}),Or({op:q5("delete-node"),uid:Ut()}),Or({op:q5("add-edge"),edge:bot}),Or({op:q5("delete-edge"),edge:Or({sourceId:Ut(),targetId:Ut(),edgeType:Ut()})}),Or({op:q5("update-edge"),edge:Or({sourceId:Ut(),targetId:Ut(),edgeType:Ut()}),set:Or({edgeType:Ut().optional(),flip:Qg().optional(),attributes:bk(Ut(),Ev()).optional()}).refine(u=>u.edgeType!==void 0||u.flip!==void 0||u.attributes!==void 0,{message:"update-edge.set requires at least one of edgeType|flip|attributes"})}),Or({op:q5("merge-nodes"),sourceUid:Ut(),targetUid:Ut()})]);const pot={"add-node":{destructive:!1,structural:!0},"update-node":{destructive:!1,structural:!1},"delete-node":{destructive:!0,structural:!0},"add-edge":{destructive:!1,structural:!0},"delete-edge":{destructive:!0,structural:!0},"update-edge":{destructive:!1,structural:!0},"merge-nodes":{destructive:!0,structural:!0}};function mot(u){return pot[u].destructive}const cx=Pa().int().nonnegative();Or({baseVersion:cx.optional()});const vot=Or({graphVersion:cx,ts:Ut(),changedUids:Qo(Ut())}),yot=Or({sinceVersion:cx,currentVersion:cx,entries:Qo(vot),changedUids:Qo(Ut())}),X3n=Or({ruleId:Ut(),severity:Of(["error","warning","info"]),message:Ut(),elementId:Ut().optional(),fixHint:Ut().optional(),context:Ev().optional()}),kot=Of(["auto-apply","suggest","block"]);Or({success:Qg(),appliedCommands:Pa().int().nonnegative(),mutations:Pa().int().nonnegative(),violations:Qo(X3n).default([]),confidence:Pa().min(0).max(1).optional(),tier:kot.optional(),trajectoryId:Ut().optional(),graphVersion:cx.optional(),stale:Qg().optional(),staleDelta:yot.optional()});const Sot=Of(["graph","rules","readiness","suggestions"]);Or({type:q5("invalidate"),domains:Qo(Sot),ts:Ut(),version:cx.optional()});function Eot(u){return`This affects ${u.cascade.length} more element(s), orphans ${u.orphans.length}, breaks ${u.brokenRefs.length} reference(s). Proceed?`}async function Cot(u,f,h=g=>typeof confirm=="function"?confirm(g):!0){if(!u.some(g=>mot(g.op)))return{proceed:!0,preview:null};if(f){const g=await f(u);return{proceed:h(Eot(g)),preview:g}}return{proceed:h("This is a destructive change. Proceed?"),preview:null}}function jot(){const u=new Map;let f=0;return{begin(h){const g={id:`draft-${++f}`,commands:h,status:"pending"};return u.set(g.id,g),g},commit(h){const g=u.get(h);g&&(g.status="committed")},rollback(h){const g=u.get(h);g&&(g.status="rolled-back")},get:h=>u.get(h),list:()=>[...u.values()],pendingCount:()=>[...u.values()].filter(h=>h.status==="pending").length}}function Tot(u){u.boxSelectionEnabled(!0),u.selectionType("additive")}function Mot(u){u.selectionType("single")}function xot(u){u.nodes().forEach(f=>{var h;return(h=f.select)==null?void 0:h.call(f)}),u.edges().forEach(f=>{var h;return(h=f.select)==null?void 0:h.call(f)})}function Aot(u){u.$(":selected").forEach(f=>{var h;return(h=f.unselect)==null?void 0:h.call(f)})}function CQ(u){const f=u.$(":selected"),h=f.nodes().map(p=>p.id()),g=f.edges().map(p=>({sourceId:p.source().id(),targetId:p.target().id(),edgeType:p.data("type")}));return{nodeIds:h,edges:g}}function t6e(u){return{op:"delete-node",uid:u}}function $D(u,f,h){return{op:"delete-edge",edge:{sourceId:u,targetId:f,edgeType:h}}}function ax(u){return{op:"add-node",node:{attributes:{},...u}}}function eE(u){return{op:"add-edge",edge:{attributes:{},...u}}}function SD(u){return{op:"update-node",node:u}}function imn(u,f){return{op:"update-edge",edge:u,set:f}}function Iot(u,f,h,g){const p=g==="out"?{sourceId:h,targetId:u.uid,edgeType:f}:{sourceId:u.uid,targetId:h,edgeType:f};return[ax(u),eE(p)]}function Nye(u){return[...u.nodeIds.map(t6e),...u.edges.map(f=>$D(f.sourceId,f.targetId,f.edgeType))]}function Dye(u,f){return[$D(u.sourceId,u.targetId,u.edgeType),eE({sourceId:f.sourceId??u.sourceId,targetId:f.targetId??u.targetId,edgeType:u.edgeType})]}function _ot(u,f,h,g){return Dye({sourceId:f,targetId:u,edgeType:g},{sourceId:h})}function $ot(u,f){return u.map(h=>SD({uid:h,type:f}))}function Oot(u,f){return u.map(h=>SD({uid:h,...f}))}function Pot(u,f,h){return f.flatMap(g=>[ax(g),eE({sourceId:u,targetId:g.uid,edgeType:h})])}function Rot(u,f){return{op:"merge-nodes",sourceUid:u,targetUid:f}}function Q3n(u,f,h){const g=h.tracePatterns.find(k=>k.sourceType===f&&k.targetType===u);if(g)return{edgeType:g.edgeType,direction:"target-to-dragged"};const p=h.tracePatterns.find(k=>k.sourceType===u&&k.targetType===f);return p?{edgeType:p.edgeType,direction:"dragged-to-target"}:null}function Not({draggedId:u,draggedType:f,targetId:h,targetType:g,incidentEdges:p,ontology:k,duplicate:m}){const j=Q3n(f,g,k);if(!j||h===u)return null;const x=j.direction==="target-to-dragged"?{sourceId:h,targetId:u,edgeType:j.edgeType}:{sourceId:u,targetId:h,edgeType:j.edgeType},I=[];if(!m){const R=p.find(B=>B.edgeType===j.edgeType&&(j.direction==="target-to-dragged"?B.targetId===u:B.sourceId===u));if(R){if(R.sourceId===x.sourceId&&R.targetId===x.targetId)return null;I.push($D(R.sourceId,R.targetId,R.edgeType))}}return I.push(eE(x)),I}const Dot=u=>[u.sourceId,u.edgeType,u.targetId].join("|");function Fot(u,f){const h=[],g=[],p=[],k=new Set,m=j=>{const x=Dot(j);k.has(x)||(k.add(x),g.push(eE({sourceId:j.sourceId,targetId:j.targetId,edgeType:j.edgeType,attributes:j.attributes??{}})))};for(const j of u)switch(j.op){case"add-node":p.push(t6e(j.node.uid));break;case"add-edge":p.push($D(j.edge.sourceId,j.edge.targetId,j.edge.edgeType));break;case"delete-edge":{const x=f.edge(j.edge)??j.edge;m(x);break}case"delete-node":{const x=f.node(j.uid);if(!x)return null;h.push(ax({uid:x.uid,type:x.type,name:x.name??x.uid,description:x.description,attributes:x.attributes??{}}));for(const I of f.incidentEdges(j.uid))m(I);break}case"update-node":{const x=f.node(j.node.uid);if(!x)return null;const I={uid:x.uid};"name"in j.node&&(I.name=x.name),"description"in j.node&&(I.description=x.description),"attributes"in j.node&&(I.attributes=x.attributes??{}),"type"in j.node&&(I.type=x.type),p.push(SD(I));break}default:return null}return[...h,...g,...p]}function Lot(){const u=[],f=[];return{record(h,g){u.push({undo:h,redo:g}),f.length=0},canUndo:()=>u.length>0,canRedo:()=>f.length>0,undo(){const h=u.pop();return h?(f.push(h),h.undo):null},redo(){const h=f.pop();return h?(u.push(h),h.redo):null},clear(){u.length=0,f.length=0}}}let Z3n=null;function rmn(u){Z3n=u}function Bot(){return Z3n}function cmn(u,f){const h=new Set(u),g=[];for(const m of u){const j=f.node(m);j&&g.push(j)}const p=new Set,k=[];for(const m of u)for(const j of f.incidentEdges(m)){if(!h.has(j.sourceId)||!h.has(j.targetId))continue;const x=`${j.sourceId}|${j.edgeType}|${j.targetId}`;p.has(x)||(p.add(x),k.push({source:j.sourceId,target:j.targetId,edgeType:j.edgeType}))}return{nodes:g,edges:k}}function zot(u,f){const h=new Map,g=[];for(const p of u.nodes){const k=f(p);h.set(p.uid,k),g.push(ax({uid:k,type:p.type,name:p.name??p.uid,description:p.description,attributes:p.attributes??{}}))}for(const p of u.edges){const k=h.get(p.source),m=h.get(p.target);k&&m&&g.push(eE({sourceId:k,targetId:m,edgeType:p.edgeType}))}return g}function Jot(u,f){const h=f.tracePatterns.filter(p=>p.sourceType===u).map(p=>({edgeType:p.edgeType,nodeType:p.targetType,direction:"out"})),g=f.tracePatterns.filter(p=>p.targetType===u).map(p=>({edgeType:p.edgeType,nodeType:p.sourceType,direction:"in"}));return[...h,...g]}function Fye(u,f,h){return h.tracePatterns.filter(g=>g.sourceType===u&&g.targetType===f).map(g=>g.edgeType)}function Uot(u,f){return f.nodeTypes.filter(h=>h!==u)}function Got(u,f,h){return Fye(u,f,h)}function Hot(u,f,h,g){return g.tracePatterns.some(p=>p.edgeType===u&&p.sourceType===h&&p.targetType===f)}function qot({cy:u,mutate:f,ontology:h,impact:g,confirm:p,snapshot:k}){const m=new Set,j=jot(),x=k?Lot():null;let I=0;const R=se=>{for(const le of m)le(se)},B=()=>{const se=u.$(":selected").map(le=>le.id());R({type:"selection-changed",selection:se})},J=async(se,le={})=>{const{proceed:He}=await Cot(se,g,p);if(!He)return null;const Ye=x&&le.record!==!1&&k?Fot(se,k):null,Pn=j.begin(se),Zt=await f(se);return Zt.success?(j.commit(Pn.id),Ye&&x.record(Ye,se)):j.rollback(Pn.id),R({type:Zt.success?"applied":"blocked",commands:se,result:Zt}),Zt},W=async se=>{const le=se.target;if(le&&(le.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(le.tagName)))return;if((se.key==="a"||se.key==="A")&&(se.metaKey||se.ctrlKey)){se.preventDefault(),xot(u);return}if(se.key==="Escape"){Aot(u);return}if(x&&(se.key==="z"||se.key==="Z")&&(se.metaKey||se.ctrlKey)){se.preventDefault();const Ye=se.shiftKey?x.redo():x.undo();Ye&&await J(Ye,{record:!1});return}if(x&&(se.key==="y"||se.key==="Y")&&(se.metaKey||se.ctrlKey)){se.preventDefault();const Ye=x.redo();Ye&&await J(Ye,{record:!1});return}if(k&&(se.key==="c"||se.key==="C")&&(se.metaKey||se.ctrlKey)){const{nodeIds:Ye}=CQ(u);Ye.length&&(se.preventDefault(),rmn(cmn(Ye,k)));return}if(k&&(se.key==="x"||se.key==="X")&&(se.metaKey||se.ctrlKey)){const Ye=CQ(u);if(!Ye.nodeIds.length&&!Ye.edges.length)return;se.preventDefault(),rmn(cmn(Ye.nodeIds,k)),await J(Nye(Ye));return}if((se.key==="v"||se.key==="V")&&(se.metaKey||se.ctrlKey)){const Ye=Bot();if(!Ye||!Ye.nodes.length)return;se.preventDefault(),await J(zot(Ye,Pn=>x3n(Pn.type,`${Pn.name??Pn.uid} copy ${++I}`)));return}if(se.key!=="Delete"&&se.key!=="Backspace")return;const He=Nye(CQ(u));He.length&&await J(He)};let ee=null;const q=se=>{const le=se.target;ee={...le.position()},u.nodes().forEach(He=>{He!==le&&Q3n(le.data("type"),He.data("type"),h)&&He.addClass("gve-drop-legal")})},Ge=se=>{const le=se.position();let He=null;return u.nodes().forEach(Ye=>{if(Ye===se)return;const Pn=Ye.boundingBox({includeLabels:!1});le.x>=Pn.x1&&le.x<=Pn.x2&&le.y>=Pn.y1&&le.y<=Pn.y2&&(He=Ye)}),He},ce=async se=>{var Ni;u.nodes().removeClass("gve-drop-legal");const le=se.target,He=ee;ee=null;const Ye=Ge(le);if(!Ye)return;const Pn=Not({draggedId:le.id(),draggedType:le.data("type"),targetId:Ye.id(),targetType:Ye.data("type"),incidentEdges:le.connectedEdges().map(Jc=>({sourceId:Jc.source().id(),targetId:Jc.target().id(),edgeType:Jc.data("type")})),ontology:h,duplicate:!!((Ni=se.originalEvent)!=null&&Ni.altKey)});if(!Pn){He&&le.position(He);return}const Zt=await J(Pn);He&&!(Zt!=null&&Zt.success)&&le.position(He)},re=se=>{const le=se.target;let He;le===u?He={kind:"canvas",position:se.position,renderedPosition:se.renderedPosition}:le.isNode()?He={kind:"node",id:le.id(),nodeType:le.data("type"),position:se.position,renderedPosition:se.renderedPosition}:He={kind:"edge",id:le.id(),sourceId:le.source().id(),targetId:le.target().id(),edgeType:le.data("type"),sourceType:le.source().data("type"),targetType:le.target().data("type"),position:se.position,renderedPosition:se.renderedPosition},R({type:"context-requested",target:He,selection:u.$(":selected").map(Ye=>Ye.id())})};let de=!1;return{enable(){de||(de=!0,Tot(u),u.on("select unselect",B),u.on("cxttap",re),u.on("grab","node",q),u.on("free","node",ce),typeof document<"u"&&document.addEventListener("keydown",W))},disable(){de&&(de=!1,Mot(u),u.removeListener("select unselect",B),u.removeListener("cxttap",re),u.removeListener("grab","node",q),u.removeListener("free","node",ce),typeof document<"u"&&document.removeEventListener("keydown",W))},on(se){return m.add(se),()=>m.delete(se)},submit:J,drafts:j}}function Vot(u,f){return u==="name"||u==="description"?{[u]:f}:{attributes:{[u]:f}}}function Wot({target:u,realize:f,onClose:h}){const g=u.nodeType==="TEST",[p,k]=hn.useState({funcUid:g?"":u.id,file:"",symbol:"",testFile:"",testCase:""}),[m,j]=hn.useState(null),x=B=>J=>k(W=>({...W,[B]:J.target.value})),I=p.funcUid.trim()&&p.file.trim()&&p.symbol.trim()&&(!g||p.testFile.trim()),R=async()=>{const B={funcUid:p.funcUid.trim(),file:p.file.trim(),symbol:p.symbol.trim()};g&&(B.testUid=u.id,B.testFile=p.testFile.trim(),p.testCase.trim()&&(B.testCase=p.testCase.trim())),j(await f(B))};return Q.jsxs("div",{className:"gve-ctx-form","data-testid":"ctx-bind-form",children:[Q.jsx("label",{children:g?`${u.id} an Testdatei binden (testRef, R-19)`:`${u.id} an Code binden (codeRef, R-20)`}),g&&Q.jsx("input",{"data-testid":"ctx-bind-funcuid",placeholder:"FUNC-uid (realisiert durch)",value:p.funcUid,onChange:x("funcUid")}),Q.jsx("input",{"data-testid":"ctx-bind-file",placeholder:"Implementierungs-Datei (src/…)",value:p.file,onChange:x("file")}),Q.jsx("input",{"data-testid":"ctx-bind-symbol",placeholder:"Exportiertes Symbol",value:p.symbol,onChange:x("symbol")}),g&&Q.jsx("input",{"data-testid":"ctx-bind-testfile",placeholder:"Testdatei (tests/…)",value:p.testFile,onChange:x("testFile")}),g&&Q.jsx("input",{"data-testid":"ctx-bind-testcase",placeholder:"Testfall (optional)",value:p.testCase,onChange:x("testCase")}),Q.jsx("button",{className:"gve-ctx-item","data-testid":"ctx-bind-submit",disabled:!I,onClick:R,children:"Binden"}),m&&Q.jsx("span",{"data-testid":"ctx-bind-result",children:m.success===!1?`Fehler: ${m.error??"abgelehnt"}`:"gebunden ✓"}),m&&m.success!==!1&&Q.jsx("button",{className:"gve-ctx-item","data-testid":"ctx-bind-done",onClick:h,children:"Schließen"})]})}const jQ=x3n;function cs({testid:u,onClick:f,children:h,disabled:g}){return Q.jsx("button",{className:"gve-ctx-item","data-testid":u,onClick:f,disabled:g,children:h})}function cQ({testid:u,label:f,initial:h={},withDescription:g=!1,onSubmit:p}){const[k,m]=hn.useState(h.name??""),[j,x]=hn.useState(h.description??"");return Q.jsxs("div",{className:"gve-ctx-form","data-testid":u,children:[Q.jsx("label",{children:f}),Q.jsx("input",{"data-testid":`${u}-name`,placeholder:"Name",value:k,onChange:I=>m(I.target.value)}),g&&Q.jsx("textarea",{"data-testid":`${u}-description`,rows:"2",placeholder:"Beschreibung",value:j,onChange:I=>x(I.target.value)}),Q.jsx("button",{className:"gve-ctx-item","data-testid":`${u}-submit`,disabled:!k.trim(),onClick:()=>p({name:k.trim(),description:j}),children:"OK"})]})}function Y3n({target:u,selection:f=[],bulkSelection:h={nodeIds:[],edges:[]},composeParent:g=null,surface:p,ontology:k,nodeData:m={},onClose:j,onStartEdgePick:x,onStartPick:I,onViewState:R}){const[B,J]=hn.useState(null),[W,ee]=hn.useState("status"),[q,Ge]=hn.useState(""),ce=h.nodeIds.length+h.edges.length,re=async le=>{j(),await p.submit(le)},de=u.renderedPosition?{left:u.renderedPosition.x,top:u.renderedPosition.y}:{},se=f;return Q.jsxs("div",{className:"gve-ctx","data-testid":"ctx-menu",style:de,children:[u.kind==="node"&&Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"gve-ctx-head",children:u.id}),R&&Q.jsxs("div",{"data-testid":"ctx-viewstate",children:[Q.jsx(cs,{testid:"ctx-vs-hide",onClick:()=>{j(),R("hide")},children:"Verbergen"}),Q.jsx(cs,{testid:"ctx-vs-fade",onClick:()=>{j(),R("fade")},children:"Abblenden"}),Q.jsx(cs,{testid:"ctx-vs-collapse",onClick:()=>{j(),R("collapse")},children:"Einklappen"}),Q.jsx(cs,{testid:"ctx-vs-pin",onClick:()=>{j(),R("pin")},children:"Pin"})]}),p&&B===null&&Q.jsxs(Q.Fragment,{children:[Q.jsx(cs,{testid:"ctx-open-add-node",onClick:()=>J("add-node"),children:"Add Node ▸"}),Q.jsx(cs,{testid:"ctx-add-edge",onClick:()=>{j(),x==null||x({id:u.id,type:u.nodeType})},children:"Add Relationship (Ziel per Klick)"}),Q.jsx(cs,{testid:"ctx-open-props",onClick:()=>J("props"),children:"Edit Props / Rename"}),Q.jsx(cs,{testid:"ctx-open-retype",onClick:()=>J("retype"),children:"Change Type ▸"}),Q.jsxs(cs,{testid:"ctx-merge",disabled:se.length!==2||!se.includes(u.id),onClick:()=>{const le=se.find(He=>He!==u.id);re([Rot(le,u.id)])},children:["Merge (Auswahl → ",u.id,")"]}),Q.jsx(cs,{testid:"ctx-open-decompose",onClick:()=>J("decompose"),children:"Decompose ▸"}),Q.jsx(cs,{testid:"ctx-reparent",disabled:!g,onClick:()=>{j(),I==null||I({mode:"reparent",childUid:u.id,oldParentUid:g})},children:"Reparent (Parent per Klick)"}),(u.nodeType==="FUNC"||u.nodeType==="TEST")&&p.realize&&Q.jsx(cs,{testid:"ctx-open-bind",onClick:()=>J("bind"),children:"Bind Code/Test ▸"}),Q.jsx(cs,{testid:"ctx-delete",onClick:()=>re([t6e(u.id)]),children:"Delete"}),ce>1&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{className:"gve-ctx-head","data-testid":"ctx-bulk-head",children:["Bulk · ",ce," ausgewählt"]}),Q.jsx(cs,{testid:"ctx-bulk-delete",onClick:()=>re(Nye(h)),children:"Bulk Delete"}),Q.jsx(cs,{testid:"ctx-open-bulk-retype",onClick:()=>J("bulk-retype"),children:"Bulk Change Type ▸"}),Q.jsx(cs,{testid:"ctx-open-bulk-prop",onClick:()=>J("bulk-prop"),children:"Bulk Change Property ▸"})]})]}),B==="bind"&&Q.jsx(Wot,{target:u,realize:p.realize,onClose:j}),B==="bulk-retype"&&k.nodeTypes.map(le=>Q.jsxs(cs,{testid:`ctx-bulk-retype-${le}`,onClick:()=>re($ot(h.nodeIds,le)),children:["alle → ",le]},le)),B==="bulk-prop"&&Q.jsxs("div",{className:"gve-ctx-form","data-testid":"ctx-bulk-prop-form",children:[Q.jsxs("label",{children:["Property für ",h.nodeIds.length," Knoten"]}),Q.jsx("input",{"data-testid":"ctx-bulk-prop-key",placeholder:"Schlüssel (z.B. status)",value:W,onChange:le=>ee(le.target.value)}),Q.jsx("input",{"data-testid":"ctx-bulk-prop-value",placeholder:"Wert",value:q,onChange:le=>Ge(le.target.value)}),Q.jsx("button",{className:"gve-ctx-item","data-testid":"ctx-bulk-prop-submit",disabled:!W.trim()||!q.trim(),onClick:()=>re(Oot(h.nodeIds,Vot(W.trim(),q.trim()))),children:"OK"})]}),B==="add-node"&&Jot(u.nodeType,k).map(le=>Q.jsx(cs,{testid:`ctx-add-node-${le.direction}-${le.edgeType}-${le.nodeType}`,onClick:()=>J(le),children:le.direction==="out"?`+ ${le.nodeType} (—${le.edgeType}→ neu)`:`+ ${le.nodeType} (neu —${le.edgeType}→)`},`${le.direction}-${le.edgeType}-${le.nodeType}`)),B!==null&&typeof B=="object"&&Q.jsx(cQ,{testid:"ctx-add-node-form",label:`Neuer ${B.nodeType} (${B.edgeType})`,onSubmit:({name:le})=>re(Iot({uid:jQ(B.nodeType,le),type:B.nodeType,name:le},B.edgeType,u.id,B.direction))}),B==="props"&&Q.jsx(cQ,{testid:"ctx-props-form",label:`${u.id} ändern`,initial:m,withDescription:!0,onSubmit:({name:le,description:He})=>re([SD({uid:u.id,name:le,description:He})])}),B==="retype"&&Uot(u.nodeType,k).map(le=>Q.jsxs(cs,{testid:`ctx-retype-${le}`,onClick:()=>re([SD({uid:u.id,type:le})]),children:["→ ",le]},le)),B==="decompose"&&Q.jsx(cQ,{testid:"ctx-decompose-form",label:`Kind-Knoten von ${u.id} (Name)`,onSubmit:({name:le})=>{var Ye;const He=(Ye=k.tracePatterns.find(Pn=>Pn.edgeType==="compose"&&Pn.sourceType===u.nodeType))==null?void 0:Ye.targetType;He&&re(Pot(u.id,[{uid:jQ(He,le),type:He,name:le}],"compose"))}})]}),u.kind==="edge"&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{className:"gve-ctx-head",children:[u.sourceId," —",u.edgeType,"→ ",u.targetId]}),Got(u.sourceType,u.targetType,k).filter(le=>le!==u.edgeType).map(le=>Q.jsxs(cs,{testid:`ctx-edge-retype-${le}`,onClick:()=>re([imn({sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType},{edgeType:le})]),children:["Typ → ",le]},le)),Hot(u.edgeType,u.sourceType,u.targetType,k)&&Q.jsx(cs,{testid:"ctx-edge-flip",onClick:()=>re([imn({sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType},{flip:!0})]),children:"Richtung umkehren"}),Q.jsx(cs,{testid:"ctx-edge-relink-target",onClick:()=>{j(),I==null||I({mode:"relink-target",edge:{sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType}})},children:"Relink Ziel (per Klick)"}),Q.jsx(cs,{testid:"ctx-edge-relink-source",onClick:()=>{j(),I==null||I({mode:"relink-source",edge:{sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType}})},children:"Relink Quelle (per Klick)"}),Q.jsx(cs,{testid:"ctx-edge-delete",onClick:()=>re([$D(u.sourceId,u.targetId,u.edgeType)]),children:"Delete"})]}),u.kind==="canvas"&&Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"gve-ctx-head",children:"Neuer Knoten"}),B===null&&k.nodeTypes.map(le=>Q.jsxs(cs,{testid:`ctx-new-${le}`,onClick:()=>J(le),children:["+ ",le]},le)),typeof B=="string"&&Q.jsx(cQ,{testid:"ctx-new-node-form",label:`Neuer ${B}`,onSubmit:({name:le})=>re([ax({uid:jQ(B,le),type:B,name:le})])})]}),u.kind==="edge-pick"&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{className:"gve-ctx-head",children:[u.sourceId," → ",u.targetId]}),Fye(u.sourceType,u.targetType,k).length===0&&Q.jsx("div",{className:"gve-ctx-empty","data-testid":"ctx-edge-pick-none",children:"keine legale Kante"}),Fye(u.sourceType,u.targetType,k).map(le=>Q.jsxs(cs,{testid:`ctx-edge-type-${le}`,onClick:()=>re([eE({sourceId:u.sourceId,targetId:u.targetId,edgeType:le})]),children:["—",le,"→"]},le))]}),Q.jsx(cs,{testid:"ctx-close",onClick:j,children:"Schließen"})]})}const omn=32,Kot=.1,Xot=4,Qot=u=>Math.min(Xot,Math.max(Kot,u));function Zot({scrollLeft:u,scrollTop:f,offX:h,offY:g,padX:p,padY:k,z:m,z2:j}){const x=(u+h-p)/m,I=(f+g-k)/m;return{scrollLeft:p+x*j-h,scrollTop:k+I*j-g}}function eyn(u,f){const h=Math.min(f.x1,f.x2),g=Math.max(f.x1,f.x2),p=Math.min(f.y1,f.y2),k=Math.max(f.y1,f.y2);return u.filter(m=>m.x>=h&&m.x<=g&&m.y>=p&&m.y<=k).map(m=>m.id)}function nyn({onMarquee:u}={}){const f=hn.useRef(null),h=hn.useRef(null),g=hn.useRef(null),p=hn.useRef(!1),k=hn.useRef(!1),m=hn.useRef(null),j=hn.useRef(!1),[x,I]=hn.useState(null),[R,B]=hn.useState(1),[J,W]=hn.useState(!1),[ee,q]=hn.useState(!1),[Ge,ce]=hn.useState(()=>new Map),[re,de]=hn.useState({x:0,y:0});hn.useLayoutEffect(()=>{const Mn=f.current;if(!Mn)return;const Gn=()=>de({x:Math.round(Mn.clientWidth/2),y:Math.round(Mn.clientHeight/2)});if(Gn(),typeof ResizeObserver>"u")return;const jt=new ResizeObserver(Gn);return jt.observe(Mn),()=>jt.disconnect()},[]);const se=()=>{const Mn=f.current;Mn&&(Mn.scrollLeft=(Mn.scrollWidth-Mn.clientWidth)/2,Mn.scrollTop=(Mn.scrollHeight-Mn.clientHeight)/2)},le=Mn=>{const Gn=f.current;if(!Gn||!(Mn!=null&&Mn.width)||!(Mn!=null&&Mn.height))return B(1);const jt=Math.min((Gn.clientWidth-2*omn)/Mn.width,(Gn.clientHeight-2*omn)/Mn.height);B(jt>0?jt:1),requestAnimationFrame(se)},He=Mn=>{k.current||!(Mn!=null&&Mn.width)||(k.current=!0,le(Mn))},Ye=(Mn,Gn,jt)=>{const fr=f.current,Pr=R,Qr=Qot(Mn);if(B(Qr),!fr||!(Pr>0))return;const os=Gn??fr.clientWidth/2,Zo=jt??fr.clientHeight/2,ks=Zot({scrollLeft:fr.scrollLeft,scrollTop:fr.scrollTop,offX:os,offY:Zo,padX:re.x,padY:re.y,z:Pr,z2:Qr});requestAnimationFrame(()=>{fr.scrollLeft=ks.scrollLeft,fr.scrollTop=ks.scrollTop})},Pn=Mn=>Ye(Mn),Zt=hn.useRef({zoom:R,pad:re});Zt.current={zoom:R,pad:re,applyZoom:Ye},hn.useEffect(()=>{const Mn=f.current;if(!Mn)return;const Gn=jt=>{if(!(jt.metaKey||jt.ctrlKey))return;jt.preventDefault();const{zoom:fr,applyZoom:Pr}=Zt.current,Qr=Mn.getBoundingClientRect();Pr(fr*Math.exp(-jt.deltaY*.0015),jt.clientX-Qr.left,jt.clientY-Qr.top)};return Mn.addEventListener("wheel",Gn,{passive:!1}),()=>Mn.removeEventListener("wheel",Gn)},[]),hn.useEffect(()=>{const Mn=jt=>{if(jt.key!==" ")return;const fr=jt.target;fr&&(fr.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(fr.tagName))||(j.current=!0,q(!0),jt.preventDefault())},Gn=jt=>{jt.key===" "&&(j.current=!1,q(!1))};return document.addEventListener("keydown",Mn),document.addEventListener("keyup",Gn),()=>{document.removeEventListener("keydown",Mn),document.removeEventListener("keyup",Gn)}},[]);const Ni=Mn=>{const Gn=f.current;if(!Gn||Mn.button!==0&&Mn.button!==1)return;p.current=!1;const jt=Mn.button===1||j.current;if(u&&!jt&&Mn.button===0){const fr=Gn.getBoundingClientRect();m.current={x0:Mn.clientX-fr.left,y0:Mn.clientY-fr.top,additive:Mn.shiftKey,moved:!1},I({left:m.current.x0,top:m.current.y0,width:0,height:0});return}h.current={x:Mn.clientX,y:Mn.clientY,l:Gn.scrollLeft,t:Gn.scrollTop},W(!0)},Jc=(Mn,Gn)=>{if(Mn.button!==0)return;Mn.stopPropagation(),p.current=!1;const jt=Ge.get(Gn)??{x:0,y:0};g.current={id:Gn,x:Mn.clientX,y:Mn.clientY,ox:jt.x,oy:jt.y,moved:!1}},hu=Mn=>{const Gn=g.current;if(Gn){const Qr=(Mn.clientX-Gn.x)/R,os=(Mn.clientY-Gn.y)/R;if(!Gn.moved&&Math.abs(Qr)+Math.abs(os)<3)return;Gn.moved=!0,ce(Zo=>new Map(Zo).set(Gn.id,{x:Gn.ox+Qr,y:Gn.oy+os}));return}const jt=m.current;if(jt){const os=f.current.getBoundingClientRect(),Zo=Mn.clientX-os.left,ks=Mn.clientY-os.top;Math.abs(Zo-jt.x0)+Math.abs(ks-jt.y0)>=3&&(jt.moved=!0),jt.x1=Zo,jt.y1=ks,I({left:Math.min(jt.x0,Zo),top:Math.min(jt.y0,ks),width:Math.abs(Zo-jt.x0),height:Math.abs(ks-jt.y0)});return}const fr=f.current,Pr=h.current;!fr||!Pr||(Math.abs(Mn.clientX-Pr.x)+Math.abs(Mn.clientY-Pr.y)>=3&&(Pr.moved=!0),fr.scrollLeft=Pr.l-(Mn.clientX-Pr.x),fr.scrollTop=Pr.t-(Mn.clientY-Pr.y))},V=()=>{var Gn,jt;W(!1);const Mn=m.current;if(Mn){if(m.current=null,I(null),Mn.moved&&Mn.x1!=null){p.current=!0;const fr=f.current,Pr=(Zo,ks)=>({x:(fr.scrollLeft+Zo-re.x)/R,y:(fr.scrollTop+ks-re.y)/R}),Qr=Pr(Mn.x0,Mn.y0),os=Pr(Mn.x1,Mn.y1);u==null||u({x1:Qr.x,y1:Qr.y,x2:os.x,y2:os.y},Mn.additive)}return}((Gn=g.current)!=null&&Gn.moved||(jt=h.current)!=null&&jt.moved)&&(p.current=!0),g.current=null,h.current=null};return{mainRef:f,pad:re,zoom:R,cursor:J||ee?"grabbing":u?"crosshair":"grab",zoomTo:Pn,fitZoom:le,fitOnce:He,dragOffsets:Ge,resetDragOffsets:()=>ce(new Map),setDragOffset:(Mn,Gn)=>ce(jt=>new Map(jt).set(Mn,Gn)),onNodeDown:Jc,consumeSuppressedClick:()=>p.current?(p.current=!1,!0):!1,activeNodeDrag:()=>g.current,marquee:x,panHandlers:{onMouseDown:Ni,onMouseMove:hu,onMouseUp:V,onMouseLeave:V}}}function Yot(){let u=[],f=[],h=()=>({x:0,y:0}),g=()=>{};const p=new Set,k=new Map,m=new Map,j=new Set;let x=!1,I=!1;const R=()=>{for(const se of j)se()},B=(se,le,He)=>{for(const Ye of m.get(`${se}|${le??""}`)??[])Ye(He)},J=se=>u.find(le=>le.data.id===se),W=se=>f.find(le=>le.data.id===se),ee=new Map,q=new Map,Ge=se=>{if(ee.has(se))return ee.get(se);const le={length:1,isNode:()=>!0,id:()=>se,data:He=>{var Ye,Pn,Zt;return He===void 0?(Ye=J(se))==null?void 0:Ye.data:(Zt=(Pn=J(se))==null?void 0:Pn.data)==null?void 0:Zt[He]},position:He=>He?g(se,He):{...h(se)},boundingBox:()=>{const He=J(se),Ye=h(se),Pn=(He==null?void 0:He.width)??0,Zt=(He==null?void 0:He.height)??0;return{x1:Ye.x-Pn/2,y1:Ye.y-Zt/2,x2:Ye.x+Pn/2,y2:Ye.y+Zt/2,w:Pn,h:Zt}},connectedEdges:()=>re(f.filter(He=>He.data.source===se||He.data.target===se).map(He=>ce(He.data.id))),addClass:He=>{k.has(se)||k.set(se,new Set),k.get(se).add(He),R()},removeClass:He=>{var Ye;(Ye=k.get(se))==null||Ye.delete(He),R()},select:()=>de.selectNode(se,{additive:!0}),unselect:()=>{p.delete(se),B("select unselect","",{target:le}),R()}};return ee.set(se,le),le},ce=se=>{if(q.has(se))return q.get(se);const le=()=>{var Ye;return(Ye=f.find(Pn=>Pn.data.id===se))==null?void 0:Ye.data},He={length:1,isNode:()=>!1,id:()=>se,data:Ye=>{var Pn;return Ye===void 0?le():(Pn=le())==null?void 0:Pn[Ye]},source:()=>{var Ye;return Ge((Ye=le())==null?void 0:Ye.source)},target:()=>{var Ye;return Ge((Ye=le())==null?void 0:Ye.target)},select:()=>de.selectEdge(se,{additive:!0}),unselect:()=>{p.delete(se),B("select unselect","",{target:He}),R()}};return q.set(se,He),He},re=se=>Object.assign(se,{nodes:()=>re(se.filter(le=>le.isNode())),edges:()=>re(se.filter(le=>!le.isNode())),addClass:le=>se.forEach(He=>{var Ye;return(Ye=He.addClass)==null?void 0:Ye.call(He,le)}),removeClass:le=>se.forEach(He=>{var Ye;return(Ye=He.removeClass)==null?void 0:Ye.call(He,le)})}),de={$:se=>{if(se===":selected")return re([...p].map(le=>J(le)?Ge(le):W(le)?ce(le):null).filter(Boolean));throw new Error(`svg-edit-adapter: unsupported selector ${se}`)},nodes:()=>re(u.map(se=>Ge(se.data.id))),edges:()=>re(f.map(se=>ce(se.data.id))),getElementById:se=>J(se)?Ge(se):{length:0},on:(se,le,He)=>{const Ye=He?le:"",Pn=He??le,Zt=`${se}|${Ye}`;m.has(Zt)||m.set(Zt,new Set),m.get(Zt).add(Pn)},removeListener:(se,le,He)=>{var Zt;const Ye=He?le:"",Pn=He??le;(Zt=m.get(`${se}|${Ye}`))==null||Zt.delete(Pn)},boxSelectionEnabled:se=>{if(se===void 0)return I;I=!!se},selectionType:se=>{if(se===void 0)return x?"additive":"single";x=se==="additive"},setScene:se=>{u=se.nodes,f=se.edges,h=se.getPos,g=se.setPos;let le=!1;for(const He of[...p])!J(He)&&!W(He)&&(p.delete(He),le=!0);le&&B("select unselect","",{}),R()},subscribe:se=>(j.add(se),()=>j.delete(se)),selection:()=>new Set(p),classesOf:se=>[...k.get(se)??[]],selectNode:(se,{additive:le=x}={})=>{le&&p.has(se)?p.delete(se):(le||p.clear(),p.add(se)),B("select unselect","",{target:Ge(se)}),R()},selectEdge:(se,{additive:le=x}={})=>{le&&p.has(se)?p.delete(se):(le||p.clear(),p.add(se)),B("select unselect","",{target:ce(se)}),R()},clearSelection:()=>{p.size&&(p.clear(),B("select unselect","",{}),R())},emitGrab:se=>B("grab","node",{target:Ge(se)}),emitFree:(se,le)=>B("free","node",{target:Ge(se),originalEvent:le}),emitContextTap:({kind:se,id:le,position:He,renderedPosition:Ye})=>{const Pn=se==="canvas"?de:se==="edge"?ce(le):Ge(le);B("cxttap","",{target:Pn,position:He,renderedPosition:Ye})}};return de}function tyn({url:u="/api/mutate",baseVersion:f,consumerId:h,fetchImpl:g=fetch}={}){let p=f;async function k(m){var I;const x=await(await g(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commands:m,baseVersion:p,...h!==void 0?{consumerId:h}:{}})})).json();return typeof x.graphVersion=="number"?p=x.graphVersion:typeof((I=x.staleDelta)==null?void 0:I.currentVersion)=="number"&&(p=x.staleDelta.currentVersion),x}return{mutate:k,getVersion:()=>p}}function iyn(u="graph-view-edit"){return{consumerId:u,consumerType:"human"}}function eut(u){const f=Object.keys(u.nodeTypes),h=Object.keys(u.edgeTypes),g=h.flatMap(p=>(u.edgeTypes[p].validPairs??[]).filter(([k,m])=>k!=="*"&&m!=="*").map(([k,m])=>({edgeType:p,sourceType:k,targetType:m})));return{nodeTypes:f,edgeTypes:h,tracePatterns:g}}function ED(u=typeof window<"u"?window.location:void 0,f=G3n()){var g;if(!u)return!1;const h=new URLSearchParams(u.search).get("edit");return h==="1"?!0:h==="0"?!1:!!((g=f.edit)!=null&&g.enabled)}function nut({url:u="/api/realize",consumerId:f,fetchImpl:h=fetch}={}){return async function(p){return(await h(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...p,...f!==void 0?{consumerId:f}:{}})})).json()}}function tut({cy:u,location:f,fetchImpl:h,snapshot:g}={}){if(!ED(f))return null;const{consumerId:p}=iyn(),k=tyn({url:"/api/mutate",consumerId:p,fetchImpl:h}),m=eut(_D);return{...qot({cy:u,mutate:k.mutate,ontology:m,snapshot:g}),ontology:m,realize:nut({consumerId:p,fetchImpl:h})}}function ryn(u){const f=hn.useMemo(()=>Yot(),[]),h=hn.useRef(null),[,g]=hn.useState(0),[p,k]=hn.useState(null),[m,j]=hn.useState(0),[x,I]=hn.useState(null),R=hn.useRef(u);R.current=u;const B=hn.useMemo(()=>({node:W=>{var Pn,Zt;const ee=(Zt=(Pn=R.current)==null?void 0:Pn.elements)==null?void 0:Zt.find(Ni=>Ni.id===W);if(!ee)return null;const{id:q,type:Ge,name:ce,description:re,status:de,asil:se,method:le,kinds:He,attributes:Ye}=ee;return{uid:q,type:Ge,name:ce,description:re,attributes:{...Ye??{},status:de,asil:se,method:le,kinds:He}}},incidentEdges:W=>{var ee;return(((ee=R.current)==null?void 0:ee.traces)??[]).filter(q=>q.source===W||q.target===W).map(q=>({sourceId:q.source,targetId:q.target,edgeType:q.type}))},edge:({sourceId:W,targetId:ee,edgeType:q})=>{var ce;return(((ce=R.current)==null?void 0:ce.traces)??[]).find(re=>re.source===W&&re.target===ee&&re.type===q)?{sourceId:W,targetId:ee,edgeType:q}:null}}),[]);hn.useEffect(()=>f.subscribe(()=>g(W=>W+1)),[f]),hn.useEffect(()=>{const W=tut({cy:f,location:typeof window<"u"?window.location:void 0,snapshot:B});if(!W)return;h.current=W;const ee=W.on(q=>{if(q.type==="context-requested"){I({target:q.target,selection:q.selection,bulk:CQ(f)});return}q.type!=="applied"&&q.type!=="blocked"||(k(q),j(W.drafts.pendingCount()))});return W.enable(),()=>{ee(),W.disable(),h.current=null}},[f,B]);const J=!!h.current;return{adapter:f,editSurfaceRef:h,editing:J,gateEvent:p,draftCount:m,ctxMenu:x,setCtxMenu:I}}function oQ(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cyn={exports:{}};(function(u,f){(function(h){u.exports=h()})(function(){return function(){function h(g,p,k){function m(I,R){if(!p[I]){if(!g[I]){var B=typeof oQ=="function"&&oQ;if(!R&&B)return B(I,!0);if(j)return j(I,!0);var J=new Error("Cannot find module '"+I+"'");throw J.code="MODULE_NOT_FOUND",J}var W=p[I]={exports:{}};g[I][0].call(W.exports,function(ee){var q=g[I][1][ee];return m(q||ee)},W,W.exports,h,g,p,k)}return p[I].exports}for(var j=typeof oQ=="function"&&oQ,x=0;x<k.length;x++)m(k[x]);return m}return h}()({1:[function(h,g,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;function k(J){"@babel/helpers - typeof";return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},k(J)}function m(J,W){if(!(J instanceof W))throw new TypeError("Cannot call a class as a function")}function j(J,W){for(var ee=0;ee<W.length;ee++){var q=W[ee];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(J,I(q.key),q)}}function x(J,W,ee){return W&&j(J.prototype,W),Object.defineProperty(J,"prototype",{writable:!1}),J}function I(J){var W=R(J,"string");return k(W)=="symbol"?W:W+""}function R(J,W){if(k(J)!="object"||!J)return J;var ee=J[Symbol.toPrimitive];if(ee!==void 0){var q=ee.call(J,W);if(k(q)!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(J)}p.default=function(){function J(){var W=this,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=ee.defaultLayoutOptions,Ge=q===void 0?{}:q,ce=ee.algorithms,re=ce===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:ce,de=ee.workerFactory,se=ee.workerUrl;if(m(this,J),this.defaultLayoutOptions=Ge,this.initialized=!1,typeof se>"u"&&typeof de>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var le=de;typeof se<"u"&&typeof de>"u"&&(le=function(Pn){return new Worker(Pn)});var He=le(se);if(typeof He.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new B(He),this.worker.postMessage({cmd:"register",algorithms:re}).then(function(Ye){return W.initialized=!0}).catch(console.err)}return x(J,[{key:"layout",value:function(ee){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=q.layoutOptions,ce=Ge===void 0?this.defaultLayoutOptions:Ge,re=q.logging,de=re===void 0?!1:re,se=q.measureExecutionTime,le=se===void 0?!1:se;return ee?this.worker.postMessage({cmd:"layout",graph:ee,layoutOptions:ce,options:{logging:de,measureExecutionTime:le}}):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&&this.worker.terminate()}}])}();var B=function(){function J(W){var ee=this;if(m(this,J),W===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=W,this.worker.onmessage=function(q){setTimeout(function(){ee.receive(ee,q)},0)}}return x(J,[{key:"postMessage",value:function(ee){var q=this.id||0;this.id=q+1,ee.id=q;var Ge=this;return new Promise(function(ce,re){Ge.resolvers[q]=function(de,se){de?(Ge.convertGwtStyleError(de),re(de)):ce(se)},Ge.worker.postMessage(ee)})}},{key:"receive",value:function(ee,q){var Ge=q.data,ce=ee.resolvers[Ge.id];ce&&(delete ee.resolvers[Ge.id],Ge.error?ce(Ge.error):ce(null,Ge.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ee){if(ee){var q=ee.__java$exception;q&&(q.cause&&q.cause.backingJsObject&&(ee.cause=q.cause.backingJsObject,this.convertGwtStyleError(ee.cause)),delete ee.__java$exception)}}}])}()},{}],2:[function(h,g,p){(function(k){(function(){var m;typeof window<"u"?m=window:typeof k<"u"?m=k:typeof self<"u"&&(m=self);var j;function x(){}function I(){}function R(){}function B(){}function J(){}function W(){}function ee(){}function q(){}function Ge(){}function ce(){}function re(){}function de(){}function se(){}function le(){}function He(){}function Ye(){}function Pn(){}function Zt(){}function Ni(){}function Jc(){}function hu(){}function V(){}function kc(){}function Wn(){}function Yt(){}function Vt(){}function Bn(){}function Mn(){}function Gn(){}function jt(){}function fr(){}function Pr(){}function Qr(){}function os(){}function Zo(){}function ks(){}function Cv(){}function zh(){}function jv(){}function xt(){}function Jh(){}function Uc(){}function Yo(){}function lh(){}function fh(){}function Pm(){}function cr(){}function Vy(){}function B0(){}function jo(){}function Wy(){}function Tv(){}function mk(){}function nE(){}function Rm(){}function Uh(){}function vk(){}function yk(){}function kk(){}function Ol(){}function eu(){}function z0(){}function tE(){}function Pl(){}function $d(){}function Sk(){}function Mv(){}function xv(){}function Ek(){}function Av(){}function Ky(){}function Iv(){}function iE(){}function Rs(){}function Xy(){}function Ck(){}function Qy(){}function jk(){}function Tk(){}function xb(){}function rn(){}function st(){}function dr(){}function go(){}function Do(){}function rw(){}function Od(){}function Be(){}function Tt(){}function ji(){}function Hi(){}function yi(){}function zi(){}function fi(){}function Br(){}function ki(){}function lc(){}function Fo(){}function Cr(){}function fc(){}function wo(){}function Pf(){}function rE(){}function Mk(){}function cE(){}function hx(){}function u6e(){}function s6e(){}function xZ(){}function AZ(){}function l6e(){}function f6e(){}function a6e(){}function h6e(){}function d6e(){}function g6e(){}function w6e(){}function b6e(){}function p6e(){}function m6e(){}function v6e(){}function y6e(){}function k6e(){}function S6e(){}function E6e(){}function C6e(){}function j6e(){}function T6e(){}function M6e(){}function x6e(){}function A6e(){}function I6e(){}function _6e(){}function $6e(){}function O6e(){}function P6e(){}function R6e(){}function N6e(){}function D6e(){}function F6e(){}function L6e(){}function B6e(){}function z6e(){}function J6e(){}function U6e(){}function G6e(){}function H6e(){}function q6e(){}function V6e(){}function W6e(){}function K6e(){}function X6e(){}function Q6e(){}function Z6e(){}function Y6e(){}function e5e(){}function n5e(){}function t5e(){}function i5e(){}function r5e(){}function c5e(){}function o5e(){}function u5e(){}function s5e(){}function l5e(){}function f5e(){}function a5e(){}function h5e(){}function d5e(){}function g5e(){}function w5e(){}function b5e(){}function p5e(){}function m5e(){}function v5e(){}function y5e(){}function k5e(){}function S5e(){}function E5e(){}function C5e(){}function j5e(){}function T5e(){}function M5e(){}function x5e(){}function A5e(){}function I5e(){}function _5e(){}function $5e(){}function O5e(){}function P5e(){}function R5e(){}function N5e(){}function D5e(){}function F5e(){}function L5e(){}function B5e(){}function z5e(){}function J5e(){}function U5e(){}function G5e(){}function H5e(){}function q5e(){}function V5e(){}function W5e(){}function K5e(){}function X5e(){}function Q5e(){}function Z5e(){}function Y5e(){}function eke(){}function IZ(){}function nke(){}function tke(){}function ike(){}function rke(){}function cke(){}function oke(){}function uke(){}function ske(){}function lke(){}function fke(){}function ake(){}function hke(){}function dke(){}function gke(){}function wke(){}function bke(){}function pke(){}function mke(){}function vke(){}function yke(){}function kke(){}function Ske(){}function Eke(){}function Cke(){}function jke(){}function Tke(){}function Mke(){}function xke(){}function Ake(){}function Ike(){}function _ke(){}function $ke(){}function Oke(){}function Pke(){}function Rke(){}function Nke(){}function Dke(){}function Fke(){}function Lke(){}function Bke(){}function zke(){}function Jke(){}function Uke(){}function Gke(){}function Hke(){}function qke(){}function Vke(){}function Wke(){}function Kke(){}function Xke(){}function Qke(){}function Zke(){}function Yke(){}function e9e(){}function n9e(){}function t9e(){}function i9e(){}function r9e(){}function c9e(){}function o9e(){}function u9e(){}function s9e(){}function l9e(){}function f9e(){}function a9e(){}function h9e(){}function d9e(){}function g9e(){}function w9e(){}function b9e(){}function p9e(){}function m9e(){}function v9e(){}function y9e(){}function k9e(){}function S9e(){}function _Z(){}function E9e(){}function C9e(){}function j9e(){}function T9e(){}function M9e(){}function x9e(){}function A9e(){}function I9e(){}function _9e(){}function dx(){}function gx(){}function $9e(){}function $Z(){}function O9e(){}function P9e(){}function R9e(){}function N9e(){}function D9e(){}function F9e(){}function OZ(){}function PZ(){}function L9e(){}function RZ(){}function NZ(){}function B9e(){}function z9e(){}function oE(){}function J9e(){}function U9e(){}function G9e(){}function H9e(){}function q9e(){}function V9e(){}function W9e(){}function K9e(){}function X9e(){}function Q9e(){}function Z9e(){}function Y9e(){}function e8e(){}function n8e(){}function t8e(){}function i8e(){}function r8e(){}function c8e(){}function o8e(){}function u8e(){}function s8e(){}function l8e(){}function f8e(){}function a8e(){}function DZ(){}function h8e(){}function d8e(){}function g8e(){}function w8e(){}function b8e(){}function p8e(){}function m8e(){}function v8e(){}function y8e(){}function k8e(){}function S8e(){}function E8e(){}function C8e(){}function j8e(){}function T8e(){}function M8e(){}function x8e(){}function A8e(){}function I8e(){}function _8e(){}function $8e(){}function O8e(){}function P8e(){}function R8e(){}function N8e(){}function D8e(){}function F8e(){}function L8e(){}function B8e(){}function z8e(){}function J8e(){}function U8e(){}function G8e(){}function H8e(){}function q8e(){}function V8e(){}function W8e(){}function K8e(){}function X8e(){}function Q8e(){}function Z8e(){}function Y8e(){}function e7e(){}function n7e(){}function t7e(){}function i7e(){}function r7e(){}function c7e(){}function o7e(){}function u7e(){}function s7e(){}function l7e(){}function f7e(){}function a7e(){}function h7e(){}function d7e(){}function g7e(){}function w7e(){}function b7e(){}function p7e(){}function m7e(){}function v7e(){}function y7e(){}function k7e(){}function S7e(){}function E7e(){}function C7e(){}function Cyn(){}function j7e(){}function T7e(){}function M7e(){}function x7e(){}function A7e(){}function I7e(){}function _7e(){}function $7e(){}function O7e(){}function P7e(){}function R7e(){}function N7e(){}function D7e(){}function F7e(){}function L7e(){}function B7e(){}function z7e(){}function J7e(){}function U7e(){}function G7e(){}function H7e(){}function q7e(){}function V7e(){}function W7e(){}function K7e(){}function X7e(){}function Q7e(){}function Z7e(){}function Y7e(){}function eSe(){}function nSe(){}function tSe(){}function iSe(){}function rSe(){}function OD(){}function PD(){}function cSe(){}function RD(){}function oSe(){}function uSe(){}function sSe(){}function lSe(){}function fSe(){}function aSe(){}function hSe(){}function dSe(){}function gSe(){}function wSe(){}function FZ(){}function bSe(){}function jyn(){}function pSe(){}function mSe(){}function vSe(){}function ySe(){}function kSe(){}function SSe(){}function ESe(){}function CSe(){}function cw(){}function jSe(){}function _v(){}function LZ(){}function TSe(){}function MSe(){}function xSe(){}function ASe(){}function ISe(){}function _Se(){}function $Se(){}function OSe(){}function PSe(){}function RSe(){}function NSe(){}function DSe(){}function FSe(){}function LSe(){}function BSe(){}function zSe(){}function JSe(){}function USe(){}function GSe(){}function HSe(){}function Ie(){}function qSe(){}function VSe(){}function WSe(){}function KSe(){}function XSe(){}function QSe(){}function ZSe(){}function YSe(){}function eEe(){}function nEe(){}function tEe(){}function ND(){}function iEe(){}function rEe(){}function DD(){}function cEe(){}function oEe(){}function uEe(){}function FD(){}function wx(){}function bx(){}function sEe(){}function BZ(){}function lEe(){}function fEe(){}function px(){}function aEe(){}function hEe(){}function dEe(){}function mx(){}function gEe(){}function wEe(){}function bEe(){}function pEe(){}function vx(){}function mEe(){}function zZ(){}function vEe(){}function LD(){}function JZ(){}function yEe(){}function kEe(){}function SEe(){}function EEe(){}function Tyn(){}function CEe(){}function jEe(){}function TEe(){}function MEe(){}function xEe(){}function AEe(){}function IEe(){}function _Ee(){}function $Ee(){}function OEe(){}function Zy(){}function BD(){}function PEe(){}function REe(){}function NEe(){}function DEe(){}function FEe(){}function LEe(){}function BEe(){}function zEe(){}function JEe(){}function UEe(){}function GEe(){}function HEe(){}function qEe(){}function VEe(){}function WEe(){}function KEe(){}function XEe(){}function QEe(){}function ZEe(){}function YEe(){}function eCe(){}function nCe(){}function tCe(){}function iCe(){}function rCe(){}function cCe(){}function oCe(){}function uCe(){}function sCe(){}function lCe(){}function fCe(){}function aCe(){}function hCe(){}function dCe(){}function gCe(){}function wCe(){}function bCe(){}function pCe(){}function mCe(){}function vCe(){}function yCe(){}function kCe(){}function SCe(){}function ECe(){}function CCe(){}function jCe(){}function TCe(){}function MCe(){}function xCe(){}function ACe(){}function ICe(){}function _Ce(){}function $Ce(){}function OCe(){}function PCe(){}function RCe(){}function NCe(){}function DCe(){}function FCe(){}function LCe(){}function BCe(){}function zCe(){}function JCe(){}function UCe(){}function GCe(){}function HCe(){}function qCe(){}function VCe(){}function WCe(){}function KCe(){}function XCe(){}function QCe(){}function ZCe(){}function YCe(){}function eje(){}function nje(){}function tje(){}function ije(){}function rje(){}function cje(){}function oje(){}function uje(){}function sje(){}function lje(){}function fje(){}function aje(){}function hje(){}function dje(){}function gje(){}function wje(){}function bje(){}function pje(){}function mje(){}function vje(){}function yje(){}function kje(){}function Sje(){}function Eje(){}function Cje(){}function jje(){}function Tje(){}function UZ(){}function Mje(){}function xje(){}function zD(){Rk()}function Aje(){Hue()}function Ije(){mf()}function _je(){nue()}function $je(){ej()}function Oje(){WE()}function Pje(){kE()}function Rje(){yE()}function Nje(){iOe()}function Dje(){y3()}function Fje(){$Je()}function Lje(){X4()}function Bje(){e0()}function zje(){tce()}function Jje(){SBe()}function Uje(){nce()}function Gje(){CBe()}function Hje(){EBe()}function qje(){jBe()}function Vje(){fUe()}function Wje(){TBe()}function Kje(){nHe()}function Xje(){Se()}function Qje(){Vx()}function Zje(){YGe()}function Yje(){eHe()}function eTe(){Cze()}function nTe(){Xle()}function tTe(){tHe()}function iTe(){xBe()}function rTe(){m3()}function cTe(){gVe()}function oTe(){cd()}function uTe(){Sse()}function sTe(){cj()}function lTe(){CHe()}function fTe(){ule()}function aTe(){iKe()}function hTe(){MBe()}function dTe(){TYe()}function gTe(){oo()}function wTe(){ba()}function bTe(){mle()}function pTe(){n0()}function mTe(){kU()}function vTe(){IJ()}function yTe(){ZI()}function GZ(){pt()}function kTe(){v$()}function STe(){O_()}function ETe(){_oe()}function HZ(){B$()}function qZ(){Az()}function Rf(){sDe()}function CTe(){kle()}function VZ(e){an(e)}function jTe(e){this.a=e}function yx(e){this.a=e}function TTe(e){this.a=e}function MTe(e){this.a=e}function xTe(e){this.a=e}function WZ(e){this.a=e}function KZ(e){this.a=e}function ATe(e){this.a=e}function JD(e){this.a=e}function ITe(e){this.a=e}function _Te(e){this.a=e}function $Te(e){this.a=e}function OTe(e){this.a=e}function PTe(e){this.c=e}function RTe(e){this.a=e}function UD(e){this.a=e}function NTe(e){this.a=e}function DTe(e){this.a=e}function FTe(e){this.a=e}function GD(e){this.a=e}function LTe(e){this.a=e}function BTe(e){this.a=e}function HD(e){this.a=e}function zTe(e){this.a=e}function qD(e){this.a=e}function JTe(e){this.a=e}function UTe(e){this.a=e}function GTe(e){this.a=e}function HTe(e){this.a=e}function qTe(e){this.a=e}function VTe(e){this.a=e}function WTe(e){this.a=e}function KTe(e){this.a=e}function XTe(e){this.a=e}function QTe(e){this.a=e}function ZTe(e){this.a=e}function YTe(e){this.a=e}function eMe(e){this.a=e}function nMe(e){this.a=e}function XZ(e){this.a=e}function QZ(e){this.a=e}function kx(e){this.a=e}function uE(e){this.a=e}function ZZ(e){this.b=e}function J0(){this.a=[]}function tMe(e,n){e.a=n}function Myn(e,n){e.a=n}function xyn(e,n){e.b=n}function Ayn(e,n){e.c=n}function Iyn(e,n){e.c=n}function _yn(e,n){e.d=n}function $yn(e,n){e.d=n}function Gh(e,n){e.k=n}function YZ(e,n){e.j=n}function Oyn(e,n){e.c=n}function eY(e,n){e.c=n}function nY(e,n){e.a=n}function Pyn(e,n){e.a=n}function Ryn(e,n){e.f=n}function Nyn(e,n){e.a=n}function Dyn(e,n){e.b=n}function VD(e,n){e.d=n}function Sx(e,n){e.i=n}function tY(e,n){e.o=n}function Fyn(e,n){e.r=n}function Lyn(e,n){e.a=n}function Byn(e,n){e.b=n}function iMe(e,n){e.e=n}function zyn(e,n){e.f=n}function iY(e,n){e.g=n}function Jyn(e,n){e.e=n}function Uyn(e,n){e.f=n}function Gyn(e,n){e.f=n}function WD(e,n){e.a=n}function KD(e,n){e.b=n}function Hyn(e,n){e.n=n}function qyn(e,n){e.a=n}function Vyn(e,n){e.c=n}function Wyn(e,n){e.c=n}function Kyn(e,n){e.c=n}function Xyn(e,n){e.a=n}function Qyn(e,n){e.a=n}function Zyn(e,n){e.d=n}function Yyn(e,n){e.d=n}function e4n(e,n){e.e=n}function n4n(e,n){e.e=n}function t4n(e,n){e.g=n}function i4n(e,n){e.f=n}function r4n(e,n){e.j=n}function c4n(e,n){e.a=n}function o4n(e,n){e.a=n}function u4n(e,n){e.b=n}function rMe(e){e.b=e.a}function cMe(e){e.c=e.d.d}function rY(e){this.a=e}function Hh(e){this.a=e}function Ex(e){this.a=e}function cY(e){this.a=e}function sE(e){this.a=e}function lE(e){this.a=e}function oMe(e){this.a=e}function oY(e){this.a=e}function uY(e){this.a=e}function Ab(e){this.a=e}function XD(e){this.a=e}function qh(e){this.a=e}function Ib(e){this.a=e}function uMe(e){this.a=e}function QD(e){this.b=e}function Yy(e){this.b=e}function Nm(e){this.b=e}function xk(e){this.d=e}function gt(e){this.a=e}function sMe(e){this.a=e}function sY(e){this.a=e}function lMe(e){this.a=e}function fMe(e){this.a=e}function lY(e){this.a=e}function fY(e){this.a=e}function ZD(e){this.c=e}function O(e){this.c=e}function aMe(e){this.c=e}function aY(e){this.a=e}function hY(e){this.a=e}function dY(e){this.a=e}function gY(e){this.a=e}function e4(e){this.a=e}function hMe(e){this.a=e}function dMe(e){this.a=e}function n4(e){this.a=e}function gMe(e){this.a=e}function wMe(e){this.a=e}function bMe(e){this.a=e}function pMe(e){this.a=e}function mMe(e){this.a=e}function vMe(e){this.a=e}function yMe(e){this.a=e}function kMe(e){this.a=e}function SMe(e){this.a=e}function EMe(e){this.a=e}function CMe(e){this.a=e}function Ak(e){this.a=e}function jMe(e){this.a=e}function TMe(e){this.a=e}function Cx(e){this.a=e}function MMe(e){this.a=e}function xMe(e){this.a=e}function wY(e){this.a=e}function AMe(e){this.a=e}function IMe(e){this.a=e}function _Me(e){this.a=e}function bY(e){this.a=e}function pY(e){this.a=e}function mY(e){this.a=e}function Ik(e){this.a=e}function t4(e){this.a=e}function $Me(e){this.a=e}function $v(e){this.a=e}function vY(e){this.a=e}function OMe(e){this.a=e}function PMe(e){this.a=e}function RMe(e){this.a=e}function NMe(e){this.a=e}function DMe(e){this.a=e}function FMe(e){this.a=e}function LMe(e){this.a=e}function BMe(e){this.a=e}function zMe(e){this.a=e}function JMe(e){this.a=e}function UMe(e){this.a=e}function yY(e){this.a=e}function GMe(e){this.a=e}function HMe(e){this.a=e}function qMe(e){this.a=e}function VMe(e){this.a=e}function WMe(e){this.a=e}function KMe(e){this.a=e}function XMe(e){this.a=e}function QMe(e){this.a=e}function ZMe(e){this.a=e}function YMe(e){this.a=e}function exe(e){this.a=e}function nxe(e){this.a=e}function txe(e){this.a=e}function ixe(e){this.a=e}function rxe(e){this.a=e}function cxe(e){this.a=e}function oxe(e){this.a=e}function uxe(e){this.a=e}function sxe(e){this.a=e}function lxe(e){this.a=e}function fxe(e){this.a=e}function axe(e){this.a=e}function hxe(e){this.a=e}function dxe(e){this.a=e}function gxe(e){this.a=e}function wxe(e){this.a=e}function bxe(e){this.a=e}function pxe(e){this.a=e}function mxe(e){this.a=e}function vxe(e){this.a=e}function yxe(e){this.a=e}function kxe(e){this.a=e}function Sxe(e){this.a=e}function Exe(e){this.a=e}function Cxe(e){this.a=e}function jxe(e){this.a=e}function Txe(e){this.b=e}function Mxe(e){this.a=e}function xxe(e){this.a=e}function Axe(e){this.a=e}function Ixe(e){this.a=e}function _xe(e){this.a=e}function $xe(e){this.a=e}function Oxe(e){this.c=e}function Pxe(e){this.a=e}function Rxe(e){this.a=e}function Nxe(e){this.a=e}function Dxe(e){this.a=e}function Fxe(e){this.a=e}function Lxe(e){this.a=e}function Bxe(e){this.a=e}function zxe(e){this.a=e}function Jxe(e){this.a=e}function Uxe(e){this.a=e}function Gxe(e){this.a=e}function Hxe(e){this.a=e}function qxe(e){this.a=e}function Vxe(e){this.a=e}function Wxe(e){this.a=e}function Kxe(e){this.a=e}function Xxe(e){this.a=e}function Qxe(e){this.a=e}function Zxe(e){this.a=e}function Yxe(e){this.a=e}function eAe(e){this.a=e}function nAe(e){this.a=e}function tAe(e){this.a=e}function iAe(e){this.a=e}function rAe(e){this.a=e}function cAe(e){this.a=e}function oAe(e){this.a=e}function Vh(e){this.a=e}function Dm(e){this.a=e}function uAe(e){this.a=e}function sAe(e){this.a=e}function lAe(e){this.a=e}function fAe(e){this.a=e}function aAe(e){this.a=e}function hAe(e){this.a=e}function dAe(e){this.a=e}function gAe(e){this.a=e}function wAe(e){this.a=e}function bAe(e){this.a=e}function pAe(e){this.a=e}function mAe(e){this.a=e}function vAe(e){this.a=e}function yAe(e){this.a=e}function kAe(e){this.a=e}function SAe(e){this.a=e}function EAe(e){this.a=e}function CAe(e){this.a=e}function jAe(e){this.a=e}function TAe(e){this.a=e}function MAe(e){this.a=e}function xAe(e){this.a=e}function AAe(e){this.a=e}function IAe(e){this.a=e}function _Ae(e){this.a=e}function $Ae(e){this.a=e}function jx(e){this.a=e}function OAe(e){this.f=e}function PAe(e){this.a=e}function RAe(e){this.a=e}function NAe(e){this.a=e}function DAe(e){this.a=e}function FAe(e){this.a=e}function LAe(e){this.a=e}function BAe(e){this.a=e}function zAe(e){this.a=e}function JAe(e){this.a=e}function UAe(e){this.a=e}function GAe(e){this.a=e}function HAe(e){this.a=e}function qAe(e){this.a=e}function VAe(e){this.a=e}function WAe(e){this.a=e}function KAe(e){this.a=e}function XAe(e){this.a=e}function QAe(e){this.a=e}function ZAe(e){this.a=e}function YAe(e){this.a=e}function eIe(e){this.a=e}function nIe(e){this.a=e}function tIe(e){this.a=e}function iIe(e){this.a=e}function rIe(e){this.a=e}function cIe(e){this.a=e}function oIe(e){this.a=e}function YD(e){this.a=e}function kY(e){this.a=e}function Wt(e){this.b=e}function uIe(e){this.a=e}function sIe(e){this.a=e}function lIe(e){this.a=e}function fIe(e){this.a=e}function aIe(e){this.a=e}function hIe(e){this.a=e}function dIe(e){this.a=e}function gIe(e){this.b=e}function wIe(e){this.a=e}function fE(e){this.a=e}function bIe(e){this.a=e}function pIe(e){this.a=e}function Tx(e){this.a=e}function Mx(e){this.a=e}function SY(e){this.c=e}function xx(e){this.e=e}function Ax(e){this.e=e}function eF(e){this.a=e}function mIe(e){this.d=e}function vIe(e){this.a=e}function EY(e){this.a=e}function CY(e){this.a=e}function ow(e){this.e=e}function s4n(){this.a=0}function ke(){wL(this)}function Jn(){ko(this)}function nF(){lLe(this)}function yIe(){}function uw(){this.c=gve}function kIe(e,n){e.b+=n}function l4n(e,n){n.Wb(e)}function f4n(e){return e.a}function a4n(e){return e.a}function h4n(e){return e.a}function d4n(e){return e.a}function g4n(e){return e.a}function P(e){return e.e}function w4n(){return null}function b4n(){return null}function p4n(e){throw P(e)}function Ov(e){this.a=nt(e)}function SIe(){this.a=this}function U0(){BRe.call(this)}function m4n(e){e.b.Mf(e.e)}function EIe(e){e.b=new mF}function _k(e,n){e.b=n-e.b}function $k(e,n){e.a=n-e.a}function CIe(e,n){n.gd(e.a)}function v4n(e,n){or(n,e)}function vn(e,n){e.push(n)}function jIe(e,n){e.sort(n)}function y4n(e,n,t){e.Wd(t,n)}function aE(e,n){e.e=n,n.b=e}function k4n(){iee(),UVn()}function TIe(e){$4(),Gq.je(e)}function jY(){U0.call(this)}function tF(){U0.call(this)}function TY(){BRe.call(this)}function MIe(){U0.call(this)}function rl(){U0.call(this)}function xIe(){U0.call(this)}function hE(){U0.call(this)}function Du(){U0.call(this)}function Pv(){U0.call(this)}function rt(){U0.call(this)}function Gc(){U0.call(this)}function AIe(){U0.call(this)}function Ix(){this.Bb|=256}function IIe(){this.b=new LPe}function MY(){MY=V,new Jn}function _b(e,n){e.length=n}function _x(e,n){ye(e.a,n)}function S4n(e,n){Vue(e.c,n)}function E4n(e,n){Ui(e.b,n)}function i4(e,n){Lt(e.e,n)}function C4n(e,n){c$(e.a,n)}function j4n(e,n){iJ(e.a,n)}function Rv(e){E$(e.c,e.b)}function T4n(e,n){e.kc().Nb(n)}function xY(e){this.a=N_n(e)}function Ji(){this.a=new Jn}function _Ie(){this.a=new Jn}function $x(){this.a=new ke}function iF(){this.a=new ke}function AY(){this.a=new ke}function G0(){this.a=new SJe}function rF(){this.a=new X$e}function IY(){this.a=new hBe}function _Y(){this.a=new $Ne}function Rl(){this.a=new eu}function $Y(){this.a=new rn}function $Ie(){this.a=new HBe}function OIe(){this.a=new ke}function PIe(){this.a=new ke}function OY(){this.a=new ke}function RIe(){this.a=new ke}function NIe(){this.d=new ke}function DIe(){this.a=new Ji}function FIe(){this.a=new Jn}function LIe(){this.b=new Jn}function BIe(){this.b=new ke}function PY(){this.e=new ke}function zIe(){this.a=new Bje}function JIe(){this.d=new ke}function Ok(){yIe.call(this)}function cF(){Ok.call(this)}function Nv(){yIe.call(this)}function RY(){Nv.call(this)}function UIe(){jY.call(this)}function Ox(){$x.call(this)}function GIe(){zA.call(this)}function HIe(){OY.call(this)}function qIe(){ke.call(this)}function VIe(){ULe.call(this)}function WIe(){ULe.call(this)}function KIe(){LY.call(this)}function XIe(){LY.call(this)}function QIe(){LY.call(this)}function ZIe(){BY.call(this)}function Pk(){uEe.call(this)}function NY(){uEe.call(this)}function us(){ei.call(this)}function YIe(){d_e.call(this)}function e_e(){d_e.call(this)}function n_e(){Jn.call(this)}function t_e(){Jn.call(this)}function i_e(){Jn.call(this)}function oF(){KGe.call(this)}function r_e(){Ji.call(this)}function c_e(){Ix.call(this)}function uF(){Sne.call(this)}function DY(){Jn.call(this)}function sF(){Sne.call(this)}function lF(){Jn.call(this)}function o_e(){Jn.call(this)}function FY(){vx.call(this)}function u_e(){FY.call(this)}function s_e(){vx.call(this)}function l_e(){UZ.call(this)}function LY(){this.a=new Ji}function f_e(){this.a=new Jn}function a_e(){this.a=new ke}function h_e(){this.j=new ke}function BY(){this.a=new Jn}function Dv(){this.a=new ei}function d_e(){this.a=new gEe}function zY(){this.a=new Q7e}function g_e(){this.a=new a$e}function Rk(){Rk=V,Nq=new I}function fF(){fF=V,Dq=new b_e}function aF(){aF=V,Fq=new w_e}function w_e(){HD.call(this,"")}function b_e(){HD.call(this,"")}function p_e(e){jGe.call(this,e)}function m_e(e){jGe.call(this,e)}function JY(e){WZ.call(this,e)}function UY(e){C$e.call(this,e)}function M4n(e){C$e.call(this,e)}function x4n(e){UY.call(this,e)}function A4n(e){UY.call(this,e)}function I4n(e){UY.call(this,e)}function v_e(e){VB.call(this,e)}function y_e(e){VB.call(this,e)}function k_e(e){ERe.call(this,e)}function S_e(e){fee.call(this,e)}function Nk(e){Gx.call(this,e)}function GY(e){Gx.call(this,e)}function E_e(e){Gx.call(this,e)}function Hc(e){pFe.call(this,e)}function C_e(e){Hc.call(this,e)}function Fv(){uE.call(this,{})}function hF(e){w4(),this.a=e}function j_e(e){e.b=null,e.c=0}function _4n(e,n){e.e=n,jZe(e,n)}function $4n(e,n){e.a=n,GDn(e)}function dF(e,n,t){e.a[n.g]=t}function O4n(e,n,t){aRn(t,e,n)}function P4n(e,n){a9n(n.i,e.n)}function T_e(e,n){jIn(e).Ad(n)}function R4n(e,n){return e*e/n}function M_e(e,n){return e.g-n.g}function N4n(e,n){e.a.ec().Kc(n)}function D4n(e){return new kx(e)}function F4n(e){return new ep(e)}function x_e(){x_e=V,Nde=new x}function HY(){HY=V,Dde=new le}function Px(){Px=V,l7=new Pn}function Rx(){Rx=V,Bq=new SRe}function A_e(){A_e=V,Mon=new Ni}function Nx(e){mce(),this.a=e}function gF(e){QL(),this.f=e}function A1(e){QL(),this.f=e}function I_e(e){uDe(),this.a=e}function Dx(e){Hc.call(this,e)}function nu(e){Hc.call(this,e)}function __e(e){Hc.call(this,e)}function wF(e){pFe.call(this,e)}function r4(e){Hc.call(this,e)}function yn(e){Hc.call(this,e)}function Tc(e){Hc.call(this,e)}function $_e(e){Hc.call(this,e)}function Lv(e){Hc.call(this,e)}function Pd(e){Hc.call(this,e)}function io(e){an(e),this.a=e}function Dk(e){eie(e,e.length)}function qY(e){return hg(e),e}function $b(e){return!!e&&e.b}function L4n(e){return!!e&&e.k}function B4n(e){return!!e&&e.j}function Fk(e){return e.b==e.c}function xe(e){return an(e),e}function K(e){return an(e),e}function dE(e){return an(e),e}function VY(e){return an(e),e}function z4n(e){return an(e),e}function Na(e){Hc.call(this,e)}function Rd(e){Hc.call(this,e)}function Bv(e){Hc.call(this,e)}function bF(e){Hc.call(this,e)}function ft(e){Hc.call(this,e)}function pF(e){Ine.call(this,e,0)}function mF(){zie.call(this,12,3)}function vF(){this.a=ot(nt(su))}function O_e(){throw P(new rt)}function WY(){throw P(new rt)}function P_e(){throw P(new rt)}function J4n(){throw P(new rt)}function U4n(){throw P(new rt)}function G4n(){throw P(new rt)}function Fx(){Fx=V,$4()}function Nd(){lE.call(this,"")}function Lk(){lE.call(this,"")}function I1(){lE.call(this,"")}function zv(){lE.call(this,"")}function KY(e){nu.call(this,e)}function XY(e){nu.call(this,e)}function Da(e){yn.call(this,e)}function c4(e){Yy.call(this,e)}function R_e(e){c4.call(this,e)}function yF(e){RA.call(this,e)}function H4n(e,n,t){e.c.Cf(n,t)}function q4n(e,n,t){n.Ad(e.a[t])}function V4n(e,n,t){n.Ne(e.a[t])}function W4n(e,n){return e.a-n.a}function K4n(e,n){return e.a-n.a}function X4n(e,n){return e.a-n.a}function Lx(e,n){return uz(e,n)}function D(e,n){return mBe(e,n)}function Q4n(e,n){return n in e.a}function N_e(e){return e.a?e.b:0}function Z4n(e){return e.a?e.b:0}function D_e(e,n){return e.f=n,e}function Y4n(e,n){return e.b=n,e}function F_e(e,n){return e.c=n,e}function e6n(e,n){return e.g=n,e}function QY(e,n){return e.a=n,e}function ZY(e,n){return e.f=n,e}function n6n(e,n){return e.f=n,e}function YY(e,n){return e.e=n,e}function t6n(e,n){return e.k=n,e}function eee(e,n){return e.a=n,e}function i6n(e,n){return e.e=n,e}function r6n(e,n){e.b=new Yr(n)}function L_e(e,n){e._d(n),n.$d(e)}function c6n(e,n){Ds(),n.n.a+=e}function o6n(e,n){e0(),Wc(n,e)}function nee(e){kLe.call(this,e)}function B_e(e){kLe.call(this,e)}function z_e(){sne.call(this,"")}function J_e(){this.b=0,this.a=0}function U_e(){U_e=V,Bon=FRn()}function Ob(e,n){return e.b=n,e}function Bx(e,n){return e.a=n,e}function Pb(e,n){return e.c=n,e}function Rb(e,n){return e.d=n,e}function Nb(e,n){return e.e=n,e}function tee(e,n){return e.f=n,e}function Bk(e,n){return e.a=n,e}function o4(e,n){return e.b=n,e}function u4(e,n){return e.c=n,e}function $e(e,n){return e.c=n,e}function Ve(e,n){return e.b=n,e}function Oe(e,n){return e.d=n,e}function Pe(e,n){return e.e=n,e}function u6n(e,n){return e.f=n,e}function Re(e,n){return e.g=n,e}function Ne(e,n){return e.a=n,e}function De(e,n){return e.i=n,e}function Fe(e,n){return e.j=n,e}function s6n(e,n){return n.pg(e)}function l6n(e,n){return e.b-n.b}function f6n(e,n){return e.g-n.g}function a6n(e,n){return e.s-n.s}function h6n(e,n){return e?0:n-1}function G_e(e,n){return e?0:n-1}function d6n(e,n){return e?n-1:0}function H_e(e,n){return e.k=n,e}function g6n(e,n){return e.j=n,e}function Ar(){this.a=0,this.b=0}function zx(e){PL.call(this,e)}function _1(e){Tw.call(this,e)}function q_e(e){CB.call(this,e)}function V_e(e){CB.call(this,e)}function W_e(){W_e=V,pr=cNn()}function $1(){$1=V,Kgn=KPn()}function iee(){iee=V,Gg=B9()}function s4(){s4=V,dve=XPn()}function K_e(){K_e=V,Own=QPn()}function ree(){ree=V,yo=zDn()}function Nf(e){return e.e&&e.e()}function X_e(e,n){return e.c._b(n)}function Q_e(e,n){return Kqe(e.b,n)}function Z_e(e,n){return B6n(e.a,n)}function Y_e(e,n){e.b=0,fp(e,n)}function w6n(e,n){e.c=n,e.b=!0}function Fm(e,n){return e.a+=n,e}function kF(e,n){return e.a+=n,e}function Dd(e,n){return e.a+=n,e}function sw(e,n){return e.a+=n,e}function H0(e){return Xh(e),e.o}function cee(e){tnn(),tWn(this,e)}function e$e(){throw P(new rt)}function n$e(){throw P(new rt)}function t$e(){throw P(new rt)}function i$e(){throw P(new rt)}function r$e(){throw P(new rt)}function c$e(){throw P(new rt)}function Jx(e){this.a=new Uv(e)}function Fd(e){this.a=new tB(e)}function Lm(e,n){for(;e.Pe(n););}function oee(e,n){for(;e.zd(n););}function b6n(e,n,t){vSn(e.a,n,t)}function uee(e,n,t){e.splice(n,t)}function p6n(e,n){return ZGn(n,e)}function see(e,n){return e.d[n.p]}function gE(e){return e.b!=e.d.c}function o$e(e){return e.l|e.m<<22}function SF(e){return e?e.d:null}function m6n(e){return e?e.g:null}function v6n(e){return e?e.i:null}function u$e(e,n){return vzn(e,n)}function l4(e){return L1(e),e.a}function s$e(e){e.c?zZe(e):JZe(e)}function l$e(){this.b=new v8(ybe)}function f$e(){this.b=new v8(LK)}function a$e(){this.b=new v8(LK)}function h$e(){this.a=new v8(npe)}function d$e(){this.a=new v8(jpe)}function Ux(e){this.a=0,this.b=e}function g$e(){throw P(new rt)}function w$e(){throw P(new rt)}function b$e(){throw P(new rt)}function p$e(){throw P(new rt)}function m$e(){throw P(new rt)}function v$e(){throw P(new rt)}function y$e(){throw P(new rt)}function k$e(){throw P(new rt)}function S$e(){throw P(new rt)}function E$e(){throw P(new rt)}function y6n(){throw P(new Gc)}function k6n(){throw P(new Gc)}function wE(e){this.a=new H$e(e)}function f4(e,n){this.e=e,this.d=n}function lee(e,n){this.b=e,this.c=n}function C$e(e){vne(e.dc()),this.c=e}function bE(e,n){Zm.call(this,e,n)}function a4(e,n){bE.call(this,e,n)}function j$e(e,n){this.a=e,this.b=n}function T$e(e,n){this.a=e,this.b=n}function M$e(e,n){this.a=e,this.b=n}function x$e(e,n){this.a=e,this.b=n}function A$e(e,n){this.a=e,this.b=n}function I$e(e,n){this.a=e,this.b=n}function _$e(e,n){this.a=e,this.b=n}function $$e(e,n){this.b=e,this.a=n}function O$e(e,n){this.b=e,this.a=n}function lw(e,n){this.g=e,this.i=n}function P$e(e,n){this.a=e,this.b=n}function R$e(e,n){this.b=e,this.a=n}function N$e(e,n){this.a=e,this.b=n}function D$e(e,n){this.b=e,this.a=n}function Gx(e){this.b=o(nt(e),50)}function Hx(e){this.b=o(nt(e),92)}function et(e,n){this.f=e,this.g=n}function EF(e,n){this.a=e,this.b=n}function F$e(e,n){this.a=e,this.f=n}function L$e(e){this.a=o(nt(e),16)}function fee(e){this.a=o(nt(e),16)}function B$e(e,n){this.b=e,this.c=n}function z$e(e){this.a=o(nt(e),92)}function S6n(e,n){this.a=e,this.b=n}function J$e(e,n){this.a=e,this.b=n}function U$e(e,n){return zo(e.b,n)}function G$e(e,n){return e>n&&n<_8}function pE(e){return $a[e]!=-1}function mE(e){return!e||YFe(e)}function H$e(e){nAn(this,e,uDn())}function E6n(e,n){aU(fe(e.a),n)}function C6n(e,n){aU(fe(e.a),n)}function zk(e,n){return e.b.Gc(n)}function aee(e,n){return e.b.Hc(n)}function hee(e,n){return e.b.Oc(n)}function q$e(e,n){return e.c.uc(n)}function V$e(e,n){return e.b.Gc(n)}function W$e(e,n){return Bt(e.c,n)}function Jk(e){return e.f.c+e.i.c}function Nl(e,n){return e.a._b(n)}function j6n(e){return FFe(),e?Ton:jon}function CF(e,n){this.a=e,this.b=n}function Jv(e){this.c=e,eGe(this)}function ei(){gRe(this),Ts(this)}function K$e(){Rq==null&&(Rq=[])}function Uv(e){bqe.call(this,e,0)}function X$e(){tB.call(this,null)}function Ld(){Ld=V,_on=new kc}function h4(){h4=V,s5=new Vt}function Db(){Db=V,Xq=new DPe}function d4(){d4=V,f1e=new Pm}function q0(){q0=V,Y3=new cr}function qx(){qx=V,Jon=new FPe}function dee(){iz.call(this,null)}function Ii(e,n){L1(e),e.a.Nb(n)}function T6n(e,n){return e.a.Vc(n)}function M6n(e,n){return e.a.Wc(n)}function jF(e,n){return e.a.Yc(n)}function TF(e,n){return e.a.Zc(n)}function x6n(e,n){return e.Fc(n),e}function A6n(e,n){return e.a.f=n,e}function Q$e(e,n){return e.a.d=n,e}function Z$e(e,n){return e.a.g=n,e}function Y$e(e,n){return e.a.j=n,e}function tf(e,n){return e.a.a=n,e}function rf(e,n){return e.a.d=n,e}function cf(e,n){return e.a.e=n,e}function of(e,n){return e.a.g=n,e}function vE(e,n){return e.a.f=n,e}function I6n(e){return e.b=!1,e}function gee(){gee=V,R1e=new ki}function eOe(){eOe=V,Zon=new Rm}function wee(){wee=V,vsn=new Be}function yE(){yE=V,Nsn=new R6e}function nOe(){nOe=V,ysn=new yi}function bee(){bee=V,ksn=new sFe}function tOe(){tOe=V,Isn=new u6e}function Uk(){Uk=V,$sn=new s6e}function iOe(){iOe=V,Bsn=new m5e}function kE(){kE=V,Rsn=new Ar}function Gk(){Gk=V,Wsn=new t9e}function Vx(){Vx=V,z2=new T9e}function Wx(){Wx=V,dhn=new YSe}function Kx(){Kx=V,BK=new cOe}function rOe(){ZGe(),this.c=new mF}function Xx(){Xx=V,zK=new uNe}function Hk(){Hk=V,qT=new tLe}function _6n(){iP!=0&&(iP=0),rP=-1}function cOe(){et.call(this,ein,0)}function $6n(e,n,t,i){COn(e,i,n,t)}function O6n(e,n,t,i){ABn(i,e,n,t)}function P6n(e,n,t,i){rVn(i,e,n,t)}function R6n(e,n,t){xc(e.d,n.f,t)}function Fb(e,n){wg(e.c.b,n.c,n)}function qk(e,n){wg(e.c.c,n.b,n)}function Vk(e,n){return e.a=n.g,e}function V0(){V0=V,Vgn=new oEe}function oOe(){oOe=V,nwn=new pEe}function uOe(){uOe=V,gwn=new t_e}function O1(){O1=V,Yl=new DY}function sOe(){sOe=V,wwn=new i_e}function pee(){pee=V,hve=new o_e}function Qx(){Qx=V,pN=new Jn}function mee(){mee=V,Eve=new ke}function Wk(){Wk=V,AX=new yRe}function Bd(){Bd=V,vM=new kRe}function MF(){MF=V,Awn=new jCe}function ac(){ac=V,_wn=new TCe}function P1(){P1=V,O0=new xje}function Zx(){this.q=new m.Date}function vee(e){this.a=o(nt(e),229)}function Yx(e){return o(e,45).jd()}function N6n(e){return(e.c+e.a)/2}function D6n(e){return e.e.a+e.f.a}function F6n(e){return e.e.b+e.f.b}function L6n(e){return e.b?e.b:e.a}function lOe(e,n){return IPn(e.a,n)}function B6n(e,n){return e.a.a.cc(n)}function xF(e){return e.b<e.d.gc()}function z6n(e,n){return n.split(e)}function AF(e,n){return Go(e,n)>0}function IF(e,n){return Go(e,n)<0}function fOe(e,n){return KL(e.a,n)}function J6n(e,n){dBe.call(this,e,n)}function yee(e){pB(),iDn.call(this,e)}function kee(e){pB(),yee.call(this,e)}function See(e){qL(),ERe.call(this,e)}function Eee(e,n){cFe(e,e.length,n)}function SE(e,n){PFe(e,e.length,n)}function Kk(e,n){return e.a.get(n)}function aOe(e,n){return zo(e.e,n)}function Cee(e){return an(e),!1}function hOe(){return U_e(),new Bon}function EE(e){return Nn(e.a),e.b}function dOe(e,n){this.b=e,this.a=n}function eA(e,n){this.d=e,this.e=n}function gOe(e,n){this.a=e,this.b=n}function wOe(e,n){this.a=e,this.b=n}function bOe(e,n){this.a=e,this.b=n}function pOe(e,n){this.a=e,this.b=n}function mOe(e,n){this.b=e,this.a=n}function Gv(e,n){this.a=e,this.b=n}function nA(e,n){et.call(this,e,n)}function _F(e,n){et.call(this,e,n)}function $F(e,n){et.call(this,e,n)}function OF(e,n){et.call(this,e,n)}function PF(e,n){et.call(this,e,n)}function tA(e,n){et.call(this,e,n)}function iA(e){Ze.call(this,e,21)}function vOe(e,n){this.b=e,this.a=n}function jee(e,n){this.b=e,this.a=n}function Tee(e,n){this.b=e,this.a=n}function Mee(e,n){et.call(this,e,n)}function RF(e,n){et.call(this,e,n)}function CE(e,n){et.call(this,e,n)}function xee(e,n){this.b=e,this.a=n}function g4(e,n){this.c=e,this.d=n}function rA(e,n){et.call(this,e,n)}function cA(e,n){et.call(this,e,n)}function yOe(e,n){this.e=e,this.d=n}function Hv(e,n){et.call(this,e,n)}function kOe(e,n){this.a=e,this.b=n}function Aee(e,n){et.call(this,e,n)}function qi(e,n){et.call(this,e,n)}function oA(e,n){et.call(this,e,n)}function Xk(e,n,t){e.splice(n,0,t)}function U6n(e,n,t){e.Mb(t)&&n.Ad(t)}function G6n(e,n,t){n.Ne(e.a.We(t))}function H6n(e,n,t){n.Bd(e.a.Xe(t))}function q6n(e,n,t){n.Ad(e.a.Kb(t))}function V6n(e,n){return Lu(e.c,n)}function W6n(e,n){return Lu(e.e,n)}function SOe(e,n){this.a=e,this.b=n}function EOe(e,n){this.a=e,this.b=n}function COe(e,n){this.a=e,this.b=n}function jOe(e,n){this.a=e,this.b=n}function TOe(e,n){this.a=e,this.b=n}function MOe(e,n){this.a=e,this.b=n}function xOe(e,n){this.a=e,this.b=n}function AOe(e,n){this.a=e,this.b=n}function IOe(e,n){this.b=e,this.a=n}function _Oe(e,n){this.b=e,this.a=n}function $Oe(e,n){this.b=e,this.a=n}function OOe(e,n){this.b=n,this.c=e}function uA(e,n){et.call(this,e,n)}function jE(e,n){et.call(this,e,n)}function Iee(e,n){et.call(this,e,n)}function Qk(e,n){et.call(this,e,n)}function sA(e,n){et.call(this,e,n)}function NF(e,n){et.call(this,e,n)}function DF(e,n){et.call(this,e,n)}function Zk(e,n){et.call(this,e,n)}function Yk(e,n){et.call(this,e,n)}function _ee(e,n){et.call(this,e,n)}function Bm(e,n){et.call(this,e,n)}function FF(e,n){et.call(this,e,n)}function e9(e,n){et.call(this,e,n)}function $ee(e,n){et.call(this,e,n)}function Lb(e,n){et.call(this,e,n)}function LF(e,n){et.call(this,e,n)}function BF(e,n){et.call(this,e,n)}function zF(e,n){et.call(this,e,n)}function Oee(e,n){et.call(this,e,n)}function TE(e,n){et.call(this,e,n)}function Pee(e,n){et.call(this,e,n)}function zm(e,n){et.call(this,e,n)}function JF(e,n){et.call(this,e,n)}function lA(e,n){et.call(this,e,n)}function ME(e,n){et.call(this,e,n)}function Bb(e,n){et.call(this,e,n)}function fA(e,n){et.call(this,e,n)}function Ree(e,n){et.call(this,e,n)}function UF(e,n){et.call(this,e,n)}function GF(e,n){et.call(this,e,n)}function HF(e,n){et.call(this,e,n)}function qF(e,n){et.call(this,e,n)}function VF(e,n){et.call(this,e,n)}function WF(e,n){et.call(this,e,n)}function aA(e,n){et.call(this,e,n)}function POe(e,n){this.b=e,this.a=n}function Nee(e,n){et.call(this,e,n)}function ROe(e,n){this.a=e,this.b=n}function NOe(e,n){this.a=e,this.b=n}function DOe(e,n){this.a=e,this.b=n}function Dee(e,n){et.call(this,e,n)}function Fee(e,n){et.call(this,e,n)}function FOe(e,n){this.a=e,this.b=n}function K6n(e,n){return k4(),n!=e}function KF(e){return KFn(e,e.c),e}function X6n(e){m.clearTimeout(e)}function Lee(e,n){et.call(this,e,n)}function Bee(e,n){et.call(this,e,n)}function LOe(e,n){this.a=e,this.b=n}function BOe(e,n){this.a=e,this.b=n}function zOe(e,n){this.b=e,this.d=n}function JOe(e,n){this.a=e,this.b=n}function UOe(e,n){this.b=e,this.a=n}function hA(e,n){et.call(this,e,n)}function fw(e,n){et.call(this,e,n)}function XF(e,n){et.call(this,e,n)}function dA(e,n){et.call(this,e,n)}function zee(e,n){et.call(this,e,n)}function GOe(e,n){this.b=e,this.a=n}function HOe(e,n){this.b=e,this.a=n}function qOe(e,n){this.b=e,this.a=n}function VOe(e,n){this.b=e,this.a=n}function Jee(e,n){et.call(this,e,n)}function xE(e,n){et.call(this,e,n)}function Uee(e,n){et.call(this,e,n)}function QF(e,n){et.call(this,e,n)}function gA(e,n){et.call(this,e,n)}function ZF(e,n){et.call(this,e,n)}function YF(e,n){et.call(this,e,n)}function wA(e,n){et.call(this,e,n)}function eL(e,n){et.call(this,e,n)}function Gee(e,n){et.call(this,e,n)}function nL(e,n){et.call(this,e,n)}function tL(e,n){et.call(this,e,n)}function AE(e,n){et.call(this,e,n)}function iL(e,n){et.call(this,e,n)}function Hee(e,n){et.call(this,e,n)}function IE(e,n){et.call(this,e,n)}function qee(e,n){et.call(this,e,n)}function Vee(e,n){this.a=e,this.b=n}function WOe(e,n){this.a=e,this.b=n}function KOe(e,n){this.a=e,this.b=n}function XOe(){GA(),this.a=new Zne}function QOe(){O$(),this.a=new Ji}function ZOe(){OB(),this.b=new Ji}function YOe(){Lie(),Ute.call(this)}function ePe(){Fie(),JLe.call(this)}function nPe(){Fie(),JLe.call(this)}function _E(e,n){et.call(this,e,n)}function qv(e,n){et.call(this,e,n)}function n9(e,n){et.call(this,e,n)}function t9(e,n){et.call(this,e,n)}function $E(e,n){et.call(this,e,n)}function bA(e,n){et.call(this,e,n)}function rL(e,n){et.call(this,e,n)}function pA(e,n){et.call(this,e,n)}function i9(e,n){et.call(this,e,n)}function cL(e,n){et.call(this,e,n)}function mA(e,n){et.call(this,e,n)}function Jm(e,n){et.call(this,e,n)}function OE(e,n){et.call(this,e,n)}function r9(e,n){et.call(this,e,n)}function c9(e,n){et.call(this,e,n)}function oL(e,n){et.call(this,e,n)}function PE(e,n){et.call(this,e,n)}function vA(e,n){et.call(this,e,n)}function Um(e,n){et.call(this,e,n)}function uL(e,n){et.call(this,e,n)}function sL(e,n){et.call(this,e,n)}function yA(e,n){et.call(this,e,n)}function pe(e,n){this.a=e,this.b=n}function tPe(e,n){this.a=e,this.b=n}function iPe(e,n){this.a=e,this.b=n}function rPe(e,n){this.a=e,this.b=n}function cPe(e,n){this.a=e,this.b=n}function oPe(e,n){this.a=e,this.b=n}function uPe(e,n){this.a=e,this.b=n}function rc(e,n){this.a=e,this.b=n}function sPe(e,n){this.a=e,this.b=n}function lPe(e,n){this.a=e,this.b=n}function fPe(e,n){this.a=e,this.b=n}function aPe(e,n){this.a=e,this.b=n}function hPe(e,n){this.a=e,this.b=n}function dPe(e,n){this.a=e,this.b=n}function gPe(e,n){this.b=e,this.a=n}function wPe(e,n){this.b=e,this.a=n}function bPe(e,n){this.b=e,this.a=n}function pPe(e,n){this.b=e,this.a=n}function mPe(e,n){this.a=e,this.b=n}function vPe(e,n){this.a=e,this.b=n}function yPe(e,n){this.a=e,this.b=n}function kPe(e,n){this.a=e,this.b=n}function SPe(e,n){this.f=e,this.c=n}function Wee(e,n){this.i=e,this.g=n}function kA(e,n){et.call(this,e,n)}function Vv(e,n){et.call(this,e,n)}function SA(e,n){this.a=e,this.b=n}function EPe(e,n){this.a=e,this.b=n}function Kee(e,n){this.d=e,this.e=n}function CPe(e,n){this.a=e,this.b=n}function jPe(e,n){this.a=e,this.b=n}function TPe(e,n){this.d=e,this.b=n}function MPe(e,n){this.e=e,this.a=n}function Xee(e,n){e.i=null,v_(e,n)}function Q6n(e,n){e&&Ct(bM,e,n)}function xPe(e,n){return hJ(e.a,n)}function Qee(e,n){return Lu(e.g,n)}function Z6n(e,n){return Lu(n.b,e)}function Y6n(e,n){return-e.b.$e(n)}function EA(e){return WC(e.c,e.b)}function e5n(e,n){gxn(new $n(e),n)}function n5n(e,n,t){EKe(n,oU(e,t))}function t5n(e,n,t){EKe(n,oU(e,t))}function APe(e,n){ixn(e.a,o(n,12))}function IPe(e,n){this.a=e,this.b=n}function RE(e,n){this.b=e,this.c=n}function R1(e,n){return e.Pd().Xb(n)}function CA(e,n){return MAn(e.Jc(),n)}function qc(e){return e?e.kd():null}function ne(e){return e??null}function zb(e){return typeof e===F3}function Jb(e){return typeof e===Zle}function mr(e){return typeof e===ZU}function o9(e,n){return Go(e,n)==0}function jA(e,n){return Go(e,n)>=0}function u9(e,n){return Go(e,n)!=0}function Zee(e,n){return e.a+=""+n,e}function i5n(e){return""+(an(e),e)}function _Pe(e){return gs(e),e.d.gc()}function Yee(e){return en(e,0),null}function TA(e){return m9(e==null),e}function s9(e,n){return e.a+=""+n,e}function Sc(e,n){return e.a+=""+n,e}function l9(e,n){return e.a+=""+n,e}function Lo(e,n){return e.a+=""+n,e}function mt(e,n){return e.a+=""+n,e}function $Pe(e,n){e.q.setTime(og(n))}function OPe(e,n){Xte.call(this,e,n)}function PPe(e,n){Xte.call(this,e,n)}function MA(e,n){Xte.call(this,e,n)}function Zr(e,n){Ei(e,n,e.c.b,e.c)}function Gm(e,n){Ei(e,n,e.a,e.a.a)}function r5n(e,n){return e.j[n.p]==2}function RPe(e,n){return e.a=n.g+1,e}function Df(e){return e.a=0,e.b=0,e}function NPe(e){ko(this),J9(this,e)}function DPe(){this.b=0,this.a=!1}function FPe(){this.b=0,this.a=!1}function LPe(){this.b=new Uv(dp(12))}function BPe(){BPe=V,_un=it(yJ())}function zPe(){zPe=V,Lsn=it(bZe())}function JPe(){JPe=V,_dn=it(NHe())}function ene(){ene=V,MY(),Fde=new Jn}function c5n(e){return nt(e),new f9(e)}function UPe(e,n){return ne(e)===ne(n)}function xA(e){return e<10?"0"+e:""+e}function GPe(e){return du(e.l,e.m,e.h)}function Fc(e){return typeof e===Zle}function lL(e,n){return Ll(e.a,0,n)}function Wv(e){return qr((an(e),e))}function o5n(e){return qr((an(e),e))}function u5n(e,n){return Kt(e.a,n.a)}function nne(e,n){return Bo(e.a,n.a)}function s5n(e,n){return $Fe(e.a,n.a)}function Fa(e,n){return e.indexOf(n)}function tne(e,n){D4(e,0,e.length,n)}function At(e,n){Qx(),Ct(pN,e,n)}function qe(e,n){ai.call(this,e,n)}function fL(e,n){Wb.call(this,e,n)}function Hm(e,n){Wee.call(this,e,n)}function HPe(e,n){BE.call(this,e,n)}function aL(e,n){H4.call(this,e,n)}function ah(){lY.call(this,new U1)}function qPe(){oI.call(this,0,0,0,0)}function ine(e){return Kc(e.b.b,e,0)}function VPe(e,n){return Bo(e.g,n.g)}function l5n(e){return e==tb||e==Jp}function f5n(e){return e==tb||e==zp}function a5n(e,n){return Bo(e.g,n.g)}function h5n(e,n){return Ds(),n.a+=e}function d5n(e,n){return Ds(),n.a+=e}function g5n(e,n){return Ds(),n.c+=e}function w5n(e,n){return ye(e.c,n),e}function WPe(e,n){return ye(e.a,n),n}function rne(e,n){return Us(e.a,n),e}function KPe(e){this.a=hOe(),this.b=e}function XPe(e){this.a=hOe(),this.b=e}function Yr(e){this.a=e.a,this.b=e.b}function f9(e){this.a=e,zD.call(this)}function QPe(e){this.a=e,zD.call(this)}function Ss(e){return e.sh()&&e.th()}function qm(e){return e!=Aa&&e!=M0}function Wh(e){return e==Oc||e==Dc}function Vm(e){return e==Sl||e==Ma}function ZPe(e){return e==nv||e==ev}function AA(e){return Us(new Di,e)}function YPe(e){return mB(o(e,125))}function b5n(e,n){return Kt(n.f,e.f)}function eRe(e,n){return new H4(n,e)}function p5n(e,n){return new H4(n,e)}function cl(e,n,t){hs(e,n),ds(e,t)}function hL(e,n,t){f_(e,n),a_(e,t)}function aw(e,n,t){xw(e,n),Mw(e,t)}function NE(e,n,t){u2(e,n),s2(e,t)}function DE(e,n,t){l2(e,n),f2(e,t)}function dL(e,n){Z4(e,n),z4(e,e.D)}function gL(e){SPe.call(this,e,!0)}function Kv(){lf.call(this,0,0,0,0)}function nRe(){nA.call(this,"Head",1)}function tRe(){nA.call(this,"Tail",3)}function iRe(e,n,t){zne.call(this,e,n,t)}function hw(e){oI.call(this,e,e,e,e)}function N1(e){Va(),OAn.call(this,e)}function rRe(e){cu(e.Qf(),new TMe(e))}function Wm(e){return e!=null?oi(e):0}function m5n(e,n){return lp(n,ua(e))}function v5n(e,n){return lp(n,ua(e))}function y5n(e,n){return e[e.length]=n}function k5n(e,n){return e[e.length]=n}function S5n(e,n){return b_(dB(e.f),n)}function E5n(e,n){return b_(dB(e.n),n)}function C5n(e,n){return b_(dB(e.p),n)}function cne(e){return $7n(e.b.Jc(),e.a)}function j5n(e){return e==null?0:oi(e)}function wL(e){e.c=te(ur,sn,1,0,5,1)}function cRe(e,n,t){Oi(e.c[n.g],n.g,t)}function T5n(e,n,t){o(e.c,72).Ei(n,t)}function M5n(e,n,t){cl(t,t.i+e,t.j+n)}function Ir(e,n){ai.call(this,e.b,n)}function x5n(e,n){Xn(xo(e.a),NBe(n))}function A5n(e,n){Xn(as(e.a),DBe(n))}function I5n(e,n){Sa||(e.b=n)}function bL(e,n,t){return Oi(e,n,t),t}function ct(){ct=V,new oRe,new ke}function oRe(){new Jn,new Jn,new Jn}function _5n(){throw P(new Pd(aon))}function $5n(){throw P(new Pd(aon))}function O5n(){throw P(new Pd(hon))}function P5n(){throw P(new Pd(hon))}function uRe(){uRe=V,ZW=new i8(gX)}function ra(){ra=V,m.Math.log(2)}function ol(){ol=V,Dh=(oOe(),nwn)}function a9(e){Ft(),ow.call(this,e)}function sRe(e){this.a=e,kte.call(this,e)}function pL(e){this.a=e,Hx.call(this,e)}function mL(e){this.a=e,Hx.call(this,e)}function sr(e,n){WL(e.c,e.c.length,n)}function Vc(e){return e.a<e.c.c.length}function one(e){return e.a<e.c.a.length}function lRe(e,n){return e.a?e.b:n.Ue()}function Bo(e,n){return e<n?-1:e>n?1:0}function une(e,n){return Go(e,n)>0?e:n}function du(e,n,t){return{l:e,m:n,h:t}}function R5n(e,n){e.a!=null&&APe(n,e.a)}function N5n(e){Vr(e,null),jr(e,null)}function D5n(e,n,t){return Ct(e.g,t,n)}function F5n(e,n){nt(n),e2(e).Ic(new re)}function fRe(){hue(),this.a=new v8(P1e)}function IA(e){this.b=e,this.a=new ke}function aRe(e){this.b=new Tk,this.a=e}function sne(e){Yne.call(this),this.a=e}function hRe(e){Aie.call(this),this.b=e}function dRe(){nA.call(this,"Range",2)}function _A(e){e.j=te(Qde,ve,324,0,0,1)}function gRe(e){e.a=new os,e.c=new os}function wRe(e){e.a=new Jn,e.e=new Jn}function lne(e){return new pe(e.c,e.d)}function L5n(e){return new pe(e.c,e.d)}function ec(e){return new pe(e.a,e.b)}function B5n(e,n){return Ct(e.a,n.a,n)}function z5n(e,n,t){return Ct(e.k,t,n)}function Km(e,n,t){return $oe(n,t,e.c)}function fne(e,n){return Z(bn(e.i,n))}function ane(e,n){return Z(bn(e.j,n))}function bRe(e,n){return kqn(e.a,n,null)}function h9(e,n){return _Hn(e.c,e.b,n)}function U(e,n){return e!=null&&CJ(e,n)}function pRe(e,n){Vn(e),e.Fc(o(n,16))}function J5n(e,n,t){e.c._c(n,o(t,136))}function U5n(e,n,t){e.c.Si(n,o(t,136))}function G5n(e,n,t){return vqn(e,n,t),t}function H5n(e,n){return Fs(),n.n.b+=e}function vL(e,n){return sIn(e.Jc(),n)!=-1}function q5n(e,n){return new HRe(e.Jc(),n)}function $A(e){return e.Ob()?e.Pb():null}function mRe(e){return Ga(e,0,e.length)}function vRe(e){RB(e,null),NB(e,null)}function yRe(){BE.call(this,null,null)}function kRe(){FA.call(this,null,null)}function SRe(){et.call(this,"INSTANCE",0)}function Xm(){this.a=te(ur,sn,1,8,5,1)}function hne(e){this.a=e,Jn.call(this)}function ERe(e){this.a=(tn(),new c4(e))}function V5n(e){this.b=(tn(),new ZD(e))}function w4(){w4=V,u1e=new hF(null)}function dne(){dne=V,dne(),Uon=new Cv}function ye(e,n){return vn(e.c,n),!0}function CRe(e,n){e.c&&(Pte(n),eBe(n))}function W5n(e,n){e.q.setHours(n),C8(e,n)}function gne(e,n){return e.a.Ac(n)!=null}function yL(e,n){return e.a.Ac(n)!=null}function ca(e,n){return e.a[n.c.p][n.p]}function K5n(e,n){return e.e[n.c.p][n.p]}function X5n(e,n){return e.c[n.c.p][n.p]}function kL(e,n,t){return e.a[n.g][t.g]}function Q5n(e,n){return e.j[n.p]=iBn(n)}function Xv(e,n){return e.a*n.a+e.b*n.b}function Z5n(e,n){return e.a<OL(n)?-1:1}function Y5n(e,n){return mre(e.b,n.Og())}function ekn(e,n){return mre(e.f,n.Og())}function nkn(e,n){return K(Z(n.a))<=e}function tkn(e,n){return K(Z(n.a))>=e}function ikn(e,n,t){return t?n!=0:n!=e-1}function jRe(e,n,t){e.a=n^1502,e.b=t^AG}function rkn(e,n,t){return e.a=n,e.b=t,e}function Kh(e,n){return e.a*=n,e.b*=n,e}function d9(e,n,t){return Oi(e.g,n,t),t}function ckn(e,n,t,i){Oi(e.a[n.g],t.g,i)}function Xi(e,n,t){ZE.call(this,e,n,t)}function OA(e,n,t){Xi.call(this,e,n,t)}function Fu(e,n,t){Xi.call(this,e,n,t)}function TRe(e,n,t){OA.call(this,e,n,t)}function wne(e,n,t){ZE.call(this,e,n,t)}function Qm(e,n,t){ZE.call(this,e,n,t)}function MRe(e,n,t){KA.call(this,e,n,t)}function bne(e,n,t){KA.call(this,e,n,t)}function xRe(e,n,t){bne.call(this,e,n,t)}function ARe(e,n,t){wne.call(this,e,n,t)}function D1(e){this.c=e,this.a=this.c.a}function $n(e){this.i=e,this.f=this.i.j}function Zm(e,n){this.a=e,Hx.call(this,n)}function IRe(e,n){this.a=e,pF.call(this,n)}function _Re(e,n){this.a=e,pF.call(this,n)}function $Re(e,n){this.a=e,pF.call(this,n)}function pne(e){this.a=e,PTe.call(this,e.d)}function ORe(e){e.b.Qb(),--e.d.f.d,sI(e.d)}function PRe(e){e.a=o(Sn(e.b.a,4),129)}function RRe(e){e.a=o(Sn(e.b.a,4),129)}function okn(e){cC(e,Frn),x$(e,bVn(e))}function mne(e,n){return D_n(e,new I1,n).a}function ukn(e){return gE(e.a)?RBe(e):null}function NRe(e){HD.call(this,o(nt(e),35))}function DRe(e){HD.call(this,o(nt(e),35))}function vne(e){if(!e)throw P(new hE)}function yne(e){if(!e)throw P(new Du)}function jn(e,n){return nt(n),new GRe(e,n)}function FRe(e,n){return new MXe(e.a,e.b,n)}function skn(e){return e.l+e.m*J3+e.h*kg}function lkn(e){return e==null?null:e.name}function kne(e,n,t){return e.indexOf(n,t)}function PA(e,n){return e.lastIndexOf(n)}function g9(e){return e==null?Mu:Bc(e)}function dn(){dn=V,d0=!1,o5=!0}function LRe(){LRe=V,MF(),Iwn=new CTe}function Sne(){this.Bb|=256,this.Bb|=512}function BRe(){_A(this),EI(this),this.he()}function RA(e){Yy.call(this,e),this.a=e}function Ene(e){Nm.call(this,e),this.a=e}function Cne(e){c4.call(this,e),this.a=e}function Dl(e){lE.call(this,(an(e),e))}function Ns(e){lE.call(this,(an(e),e))}function SL(e){lY.call(this,new Tre(e))}function zRe(e){this.a=e,QD.call(this,e)}function jne(e,n){this.a=n,pF.call(this,e)}function JRe(e,n){this.a=n,VB.call(this,e)}function URe(e,n){this.a=e,VB.call(this,n)}function GRe(e,n){this.a=n,Gx.call(this,e)}function HRe(e,n){this.a=n,Gx.call(this,e)}function Tne(e){rF.call(this),Wr(this,e)}function Es(e){return Nn(e.a!=null),e.a}function qRe(e,n){return ye(n.a,e.a),e.a}function VRe(e,n){return ye(n.b,e.a),e.a}function dw(e,n){return ye(n.a,e.a),e.a}function FE(e,n,t){return Oz(e,n,n,t),e}function NA(e,n){return++e.b,ye(e.a,n)}function Mne(e,n){return++e.b,Eu(e.a,n)}function fkn(e,n){return Kt(e.c.d,n.c.d)}function akn(e,n){return Kt(e.c.c,n.c.c)}function hkn(e,n){return Kt(e.n.a,n.n.a)}function ku(e,n){return o(Ht(e.b,n),16)}function dkn(e,n){return e.n.b=(an(n),n)}function gkn(e,n){return e.n.b=(an(n),n)}function Lu(e,n){return!!n&&e.b[n.g]==n}function w9(e){return Vc(e.a)||Vc(e.b)}function wkn(e,n){return Kt(e.e.b,n.e.b)}function bkn(e,n){return Kt(e.e.a,n.e.a)}function pkn(e,n,t){return $ze(e,n,t,e.b)}function xne(e,n,t){return $ze(e,n,t,e.c)}function mkn(e){return Ds(),!!e&&!e.dc()}function WRe(){Gk(),this.b=new sxe(this)}function DA(){DA=V,hP=new ai(Ttn,0)}function Qv(e){this.d=e,$n.call(this,e)}function Zv(e){this.c=e,$n.call(this,e)}function LE(e){this.c=e,Qv.call(this,e)}function Ane(e,n){zoe.call(this,e,n,null)}function Yv(e){return e.a!=null?e.a:null}function gw(e){return e.$H||(e.$H=++LWn)}function zd(e){var n;n=e.a,e.a=e.b,e.b=n}function BE(e,n){Wk(),this.a=e,this.b=n}function FA(e,n){Bd(),this.b=e,this.c=n}function LA(e,n){QL(),this.f=n,this.d=e}function Ine(e,n){bre(n,e),this.c=e,this.b=n}function vkn(e,n){return eB(e.c).Kd().Xb(n)}function EL(e,n){return new KNe(e,e.gc(),n)}function ykn(e){return Rx(),tt((ABe(),yon),e)}function kkn(e){return new op(3,e)}function hh(e){return Js(e,_p),new ru(e)}function KRe(e){return $4(),parseInt(e)||-1}function b4(e,n,t){return kne(e,ju(n),t)}function _ne(e,n,t){o(EC(e,n),22).Ec(t)}function Skn(e,n,t){iJ(e.a,t),c$(e.a,n)}function p4(e,n,t){var i;i=e.dd(n),i.Rb(t)}function XRe(e,n,t,i){Wte.call(this,e,n,t,i)}function QRe(e){Ete.call(this,e,null,null)}function CL(e){Db(),this.b=e,this.a=!0}function ZRe(e){qx(),this.b=e,this.a=!0}function YRe(e){if(!e)throw P(new rl)}function $ne(e){if(!e)throw P(new hE)}function Ekn(e){if(!e)throw P(new tF)}function Nn(e){if(!e)throw P(new Gc)}function Ub(e){if(!e)throw P(new Du)}function eNe(e){e.d=new QRe(e),e.e=new Jn}function m4(e){return Nn(e.b!=0),e.a.a.c}function uf(e){return Nn(e.b!=0),e.c.b.c}function Ckn(e,n){return Oz(e,n,n+1,""),e}function nNe(e){XU(),EIe(this),this.Df(e)}function tNe(e){this.c=e,this.a=1,this.b=1}function zE(e){U(e,161)&&o(e,161).mi()}function iNe(e){return e.b=o(Cie(e.a),45)}function Gb(e,n){return o(fa(e.a,n),35)}function zt(e,n){return!!e.q&&zo(e.q,n)}function jkn(e,n){return e>0?n/(e*e):n*100}function Tkn(e,n){return e>0?n*n/e:n*n*100}function Mkn(e){return e.f!=null?e.f:""+e.g}function jL(e){return e.f!=null?e.f:""+e.g}function xkn(e){return cd(),e.e.a+e.f.a/2}function Akn(e){return cd(),e.e.b+e.f.b/2}function Ikn(e,n,t){return cd(),t.e.b-e*n}function _kn(e,n,t){return cd(),t.e.a-e*n}function $kn(e,n,t){return Wx(),t.Lg(e,n)}function Okn(e,n){return e0(),Xe(e,n.e,n)}function Pkn(e,n,t){return ye(n,MVe(e,t))}function Rkn(e,n,t){ZI(),e.nf(n)&&t.Ad(e)}function Hb(e,n,t){return e.a+=n,e.b+=t,e}function rNe(e,n,t){return e.a-=n,e.b-=t,e}function One(e,n){return e.a=n.a,e.b=n.b,e}function BA(e){return e.a=-e.a,e.b=-e.b,e}function cNe(e){this.c=e,hs(e,0),ds(e,0)}function oNe(e){ei.call(this),z9(this,e)}function uNe(){et.call(this,"GROW_TREE",0)}function Cs(e,n,t){zu.call(this,e,n,t,2)}function sNe(e,n){Bd(),Pne.call(this,e,n)}function Pne(e,n){Bd(),FA.call(this,e,n)}function lNe(e,n){Bd(),FA.call(this,e,n)}function fNe(e,n){Wk(),BE.call(this,e,n)}function TL(e,n){ol(),rI.call(this,e,n)}function aNe(e,n){ol(),TL.call(this,e,n)}function Rne(e,n){ol(),TL.call(this,e,n)}function hNe(e,n){ol(),Rne.call(this,e,n)}function Nne(e,n){ol(),rI.call(this,e,n)}function dNe(e,n){ol(),Nne.call(this,e,n)}function gNe(e,n){ol(),rI.call(this,e,n)}function Nkn(e,n){return e.c.Ec(o(n,136))}function Dkn(e,n){return o(bn(e.e,n),26)}function Fkn(e,n){return o(bn(e.e,n),26)}function Dne(e,n,t){return G$(jC(e,n),t)}function Lkn(e,n,t){return n.xl(e.e,e.c,t)}function Bkn(e,n,t){return n.yl(e.e,e.c,t)}function ML(e,n){return X1(e.e,o(n,52))}function zkn(e,n,t){e8(xo(e.a),n,NBe(t))}function Jkn(e,n,t){e8(as(e.a),n,DBe(t))}function wNe(e,n){return an(e),e+OL(n)}function Ukn(e){return e==null?null:Bc(e)}function Gkn(e){return e==null?null:Bc(e)}function Hkn(e){return e==null?null:dDn(e)}function qkn(e){return e==null?null:uVn(e)}function Xh(e){e.o==null&&$Ln(e)}function Me(e){return m9(e==null||zb(e)),e}function Z(e){return m9(e==null||Jb(e)),e}function ot(e){return m9(e==null||mr(e)),e}function Vkn(e,n){return $J(e,n),new oLe(e,n)}function JE(e,n){this.c=e,f4.call(this,e,n)}function b9(e,n){this.a=e,JE.call(this,e,n)}function Wkn(e,n){this.d=e,cMe(this),this.b=n}function Fne(){KGe.call(this),this.Bb|=cc}function bNe(){this.a=new Ew,this.b=new Ew}function Lne(e){this.q=new m.Date(og(e))}function Ym(){Ym=V,rv=new Wt("root")}function v4(){v4=V,mM=new YIe,new e_e}function qb(){qb=V,g1e=ze((Is(),Ug))}function Kkn(e,n){n.a?YFn(e,n):yL(e.a,n.b)}function pNe(e,n){Sa||ye(e.a,n)}function Xkn(e,n){return kE(),G4(n.d.i,e)}function Qkn(e,n){return y3(),new hYe(n,e)}function Zkn(e,n,t){return e.Le(n,t)<=0?t:n}function Ykn(e,n,t){return e.Le(n,t)<=0?n:t}function e9n(e,n){return o(fa(e.b,n),144)}function n9n(e,n){return o(fa(e.c,n),233)}function xL(e){return o(Te(e.a,e.b),295)}function mNe(e){return new pe(e.c,e.d+e.a)}function vNe(e){return an(e),e?1231:1237}function yNe(e){return Fs(),ZPe(o(e,203))}function Bne(e,n){return o(bn(e.b,n),278)}function kNe(e,n,t){++e.j,e.oj(n,e.Xi(n,t))}function UE(e,n,t){++e.j,e.rj(),tz(e,n,t)}function zne(e,n,t){KI.call(this,e,n,t,null)}function SNe(e,n,t){KI.call(this,e,n,t,null)}function Jne(e,n){iz.call(this,e),this.a=n}function Une(e,n){iz.call(this,e),this.a=n}function ai(e,n){Wt.call(this,e),this.a=n}function Gne(e,n){SY.call(this,e),this.a=n}function AL(e,n){SY.call(this,e),this.a=n}function ENe(e,n){this.c=e,Tw.call(this,n)}function CNe(e,n){this.a=e,gIe.call(this,n)}function GE(e,n){this.a=e,gIe.call(this,n)}function Hne(e,n,t){return t=qs(e,n,3,t),t}function qne(e,n,t){return t=qs(e,n,6,t),t}function Vne(e,n,t){return t=qs(e,n,9,t),t}function La(e,n){return cC(n,pfe),e.f=n,e}function Wne(e,n){return(n&Rt)%e.d.length}function jNe(e,n,t){return _le(e.c,e.b,n,t)}function t9n(e,n,t){return e.apply(n,t)}function TNe(e,n,t){var i;i=e.dd(n),i.Rb(t)}function MNe(e,n,t){return e.a+=Ga(n,0,t),e}function HE(e){return!e.a&&(e.a=new Jc),e.a}function Kne(e,n){var t;return t=e.e,e.e=n,t}function Xne(e,n){var t;return t=n,!!e.De(t)}function W0(e,n){return dn(),e==n?0:e?1:-1}function Vb(e,n){e.a._c(e.b,n),++e.b,e.c=-1}function i9n(e,n){var t;t=e[xG],t.call(e,n)}function r9n(e,n){var t;t=e[xG],t.call(e,n)}function c9n(e,n,t){q0(),tMe(e,n.Te(e.a,t))}function Qne(e,n,t){return u3(e,o(n,23),t)}function sf(e,n){return Lx(new Array(n),e)}function o9n(e){return lt(Z0(e,32))^lt(e)}function IL(e){return String.fromCharCode(e)}function u9n(e){return e==null?null:e.message}function _L(e){this.a=(tn(),new XD(nt(e)))}function xNe(e){this.a=(Js(e,_p),new ru(e))}function ANe(e){this.a=(Js(e,_p),new ru(e))}function INe(){this.a=new ke,this.b=new ke}function _Ne(){this.a=new rn,this.b=new IIe}function Zne(){this.b=new U1,this.a=new U1}function $Ne(){this.b=new Ar,this.c=new ke}function Yne(){this.n=new Ar,this.o=new Ar}function zA(){this.n=new Nv,this.i=new Kv}function ONe(){this.b=new Ji,this.a=new Ji}function PNe(){this.a=new ke,this.d=new ke}function RNe(){this.a=new Qje,this.b=new A9e}function NNe(){this.b=new l$e,this.a=new B8e}function DNe(){this.b=new Jn,this.a=new Jn}function FNe(){zA.call(this),this.a=new Ar}function ete(e,n,t,i){oI.call(this,e,n,t,i)}function s9n(e,n){return e.n.a=(an(n),n+10)}function l9n(e,n){return e.n.a=(an(n),n+10)}function f9n(e,n){return kE(),!G4(n.d.i,e)}function LNe(e){ko(e.e),e.d.b=e.d,e.d.a=e.d}function qE(e){e.b?qE(e.b):e.f.c.yc(e.e,e.d)}function a9n(e,n){Wh(e.f)?CLn(e,n):bNn(e,n)}function BNe(e,n,t){t!=null&&p_(n,RJ(e,t))}function zNe(e,n,t){t!=null&&m_(n,RJ(e,t))}function e3(e,n,t,i){ae.call(this,e,n,t,i)}function nte(e,n,t,i){ae.call(this,e,n,t,i)}function JNe(e,n,t,i){nte.call(this,e,n,t,i)}function UNe(e,n,t,i){gI.call(this,e,n,t,i)}function $L(e,n,t,i){gI.call(this,e,n,t,i)}function GNe(e,n,t,i){$L.call(this,e,n,t,i)}function tte(e,n,t,i){gI.call(this,e,n,t,i)}function ln(e,n,t,i){tte.call(this,e,n,t,i)}function ite(e,n,t,i){$L.call(this,e,n,t,i)}function HNe(e,n,t,i){ite.call(this,e,n,t,i)}function qNe(e,n,t,i){Zte.call(this,e,n,t,i)}function Wb(e,n){nu.call(this,e7+e+Tg+n)}function h9n(e,n){return n==e||d6(M$(n),e)}function rte(e,n){return e.hk().ti().oi(e,n)}function cte(e,n){return e.hk().ti().qi(e,n)}function d9n(e,n){return e.e=o(e.d.Kb(n),162)}function VNe(e,n){return Ct(e.a,n,"")==null}function WNe(e,n){return an(e),ne(e)===ne(n)}function Ke(e,n){return an(e),ne(e)===ne(n)}function ote(e,n,t){return e.lastIndexOf(n,t)}function KNe(e,n,t){this.a=e,Ine.call(this,n,t)}function XNe(e){this.c=e,MA.call(this,Ij,0)}function QNe(e,n,t){this.c=n,this.b=t,this.a=e}function Jt(e,n){return e.a+=n.a,e.b+=n.b,e}function ar(e,n){return e.a-=n.a,e.b-=n.b,e}function g9n(e){return _b(e.j.c,0),e.a=-1,e}function w9n(e,n){var t;return t=n.ni(e.a),t}function ute(e,n,t){return t=qs(e,n,11,t),t}function b9n(e,n,t){return Kt(e[n.a],e[t.a])}function p9n(e,n){return Bo(e.a.d.p,n.a.d.p)}function m9n(e,n){return Bo(n.a.d.p,e.a.d.p)}function v9n(e,n){return Kt(e.c-e.s,n.c-n.s)}function y9n(e,n){return Kt(e.b.e.a,n.b.e.a)}function k9n(e,n){return Kt(e.c.e.a,n.c.e.a)}function S9n(e,n){return oe(n,(Se(),xT),e)}function E9n(e,n){return e.b.zd(new wOe(e,n))}function C9n(e,n){return e.b.zd(new bOe(e,n))}function ZNe(e,n){return e.b.zd(new pOe(e,n))}function YNe(e,n){return U(n,16)&&qZe(e.c,n)}function eDe(e){return e.c?Kc(e.c.a,e,0):-1}function j9n(e){return e<100?null:new _1(e)}function n3(e){return e==Jg||e==Rh||e==Ro}function T9n(e,n,t){return o(e.c,72).Uk(n,t)}function JA(e,n,t){return o(e.c,72).Vk(n,t)}function M9n(e,n,t){return Lkn(e,o(n,344),t)}function ste(e,n,t){return Bkn(e,o(n,344),t)}function x9n(e,n,t){return OKe(e,o(n,344),t)}function nDe(e,n,t){return xNn(e,o(n,344),t)}function p9(e,n){return n==null?null:wp(e.b,n)}function A9n(e,n){Sa||n&&(e.d=n)}function lte(e,n){if(!e)throw P(new yn(n))}function y4(e){if(!e)throw P(new Tc(Yle))}function OL(e){return Jb(e)?(an(e),e):e.se()}function UA(e){return!isNaN(e)&&!isFinite(e)}function PL(e){gRe(this),Ts(this),Wr(this,e)}function Ku(e){wL(this),jte(this.c,0,e.Nc())}function VE(e){k4(),this.d=e,this.a=new Xm}function tDe(e,n,t){this.d=e,this.b=t,this.a=n}function ul(e,n,t){this.a=e,this.b=n,this.c=t}function iDe(e,n,t){this.a=e,this.b=n,this.c=t}function fte(e,n){this.c=e,uB.call(this,e,n)}function rDe(e,n){N7n.call(this,e,e.length,n)}function RL(e,n){if(e!=n)throw P(new rl)}function cDe(e){this.a=e,Ld(),bo(Date.now())}function oDe(e){ss(e.a),Ere(e.c,e.b),e.b=null}function NL(){NL=V,o1e=new Zo,zon=new ks}function DL(e){var n;return n=new Sk,n.e=e,n}function I9n(e,n,t){return q0(),e.a.Wd(n,t),n}function ate(e,n,t){this.b=e,this.c=n,this.a=t}function hte(e){var n;return n=new NIe,n.b=e,n}function _9n(e){return Uf(),tt((tUe(),run),e)}function $9n(e){return F4(),tt((bUe(),Gon),e)}function O9n(e){return dl(),tt((nUe(),Xon),e)}function P9n(e){return Qu(),tt((iUe(),oun),e)}function R9n(e){return Cu(),tt((rUe(),sun),e)}function N9n(e){return K$(),tt((BPe(),_un),e)}function D9n(e){return Iw(),tt((kUe(),Oun),e)}function F9n(e){return W4(),tt((SUe(),Esn),e)}function L9n(e){return c_(),tt((sJe(),Jun),e)}function B9n(e){return D9(),tt((eUe(),gsn),e)}function z9n(e){return kr(),tt((fGe(),msn),e)}function J9n(e){return M3(),tt((yUe(),Asn),e)}function U9n(e){return pn(),tt(($He(),Osn),e)}function G9n(e){return U4(),tt((lJe(),Fsn),e)}function FL(e){oI.call(this,e.d,e.c,e.a,e.b)}function dte(e){oI.call(this,e.d,e.c,e.a,e.b)}function H9n(e){return Mr(),tt((zPe(),Lsn),e)}function uDe(){uDe=V,own=te(ur,sn,1,0,5,1)}function sDe(){sDe=V,Cwn=te(ur,sn,1,0,5,1)}function gte(){gte=V,jwn=te(ur,sn,1,0,5,1)}function WE(){WE=V,mP=new t5e,vP=new i5e}function GA(){GA=V,Gsn=new I5e,Usn=new _5e}function Ds(){Ds=V,Ksn=new Lke,Xsn=new Bke}function q9n(e){return Aw(),tt((FJe(),oln),e)}function V9n(e){return wf(),tt((TUe(),Ysn),e)}function W9n(e){return yp(),tt((rGe(),nln),e)}function K9n(e){return R$(),tt((RHe(),uln),e)}function X9n(e){return _3(),tt((FGe(),sln),e)}function Q9n(e){return QI(),tt((Hze(),lln),e)}function Z9n(e){return t8(),tt((xUe(),fln),e)}function Y9n(e){return d_(),tt((OJe(),aln),e)}function e8n(e){return hj(),tt((zHe(),hln),e)}function n8n(e){return xC(),tt((qze(),dln),e)}function t8n(e){return ag(),tt((PJe(),wln),e)}function i8n(e){return y$(),tt((DGe(),bln),e)}function r8n(e){return SC(),tt((Vze(),pln),e)}function c8n(e){return rj(),tt((RGe(),mln),e)}function o8n(e){return w6(),tt((NGe(),vln),e)}function u8n(e){return gc(),tt((rqe(),yln),e)}function s8n(e){return V4(),tt((RJe(),kln),e)}function l8n(e){return V1(),tt((NJe(),Sln),e)}function f8n(e){return id(),tt((DJe(),Cln),e)}function a8n(e){return FI(),tt((Wze(),jln),e)}function h8n(e){return xs(),tt((oGe(),Mln),e)}function d8n(e){return zI(),tt((Kze(),xln),e)}function g8n(e){return gj(),tt((JHe(),whn),e)}function w8n(e){return X9(),tt((LJe(),bhn),e)}function b8n(e){return vp(),tt((CUe(),phn),e)}function p8n(e){return o8(),tt((cGe(),mhn),e)}function m8n(e){return i0(),tt((iqe(),vhn),e)}function v8n(e){return fd(),tt((jUe(),yhn),e)}function y8n(e){return CC(),tt((Xze(),khn),e)}function k8n(e){return dc(),tt((BJe(),Ehn),e)}function S8n(e){return x_(),tt((zJe(),Chn),e)}function E8n(e){return K9(),tt((JJe(),jhn),e)}function C8n(e){return Y4(),tt((UJe(),Thn),e)}function j8n(e){return h_(),tt((GJe(),Mhn),e)}function T8n(e){return A_(),tt((HJe(),xhn),e)}function M8n(e){return __(),tt((vUe(),Jsn),e)}function x8n(e){return dg(),tt((EUe(),Vhn),e)}function A8n(e,n){return an(e),e+(an(n),n)}function I8n(e){return R9(),tt((Qze(),Zhn),e)}function _8n(e){return Ba(),tt((Yze(),cdn),e)}function $8n(e){return oa(),tt((Zze(),udn),e)}function O8n(e){return Bf(),tt((eJe(),Sdn),e)}function k4(){k4=V,mbe=(Ee(),Cn),TR=An}function P8n(e){return Cw(),tt((nJe(),Adn),e)}function R8n(e){return I3(),tt((_Ue(),Idn),e)}function N8n(e){return S8(),tt((JPe(),_dn),e)}function D8n(e){return W9(),tt((qJe(),$dn),e)}function F8n(e){return V9(),tt((MUe(),n1n),e)}function L8n(e){return DI(),tt((tJe(),t1n),e)}function B8n(e){return y_(),tt((iJe(),u1n),e)}function z8n(e){return w$(),tt((uGe(),l1n),e)}function J8n(e){return YI(),tt((rJe(),f1n),e)}function U8n(e){return zC(),tt((VJe(),a1n),e)}function G8n(e){return u$(),tt((IUe(),_1n),e)}function H8n(e){return M_(),tt((WJe(),$1n),e)}function q8n(e){return W_(),tt((KJe(),O1n),e)}function V8n(e){return p$(),tt((AUe(),R1n),e)}function W8n(e){return U_(),tt((YJe(),F1n),e)}function K8n(e){return!e.e&&(e.e=new ke),e.e}function HA(e,n,t){this.e=n,this.b=e,this.d=t}function lDe(e,n,t){this.a=e,this.b=n,this.c=t}function fDe(e,n,t){this.a=e,this.b=n,this.c=t}function wte(e,n,t){this.a=e,this.b=n,this.c=t}function aDe(e,n,t){this.a=e,this.b=n,this.c=t}function hDe(e,n,t){this.a=e,this.c=n,this.b=t}function qA(e,n,t){this.b=e,this.a=n,this.c=t}function dDe(e,n,t){this.b=e,this.a=n,this.c=t}function LL(e,n){this.c=e,this.a=n,this.b=n-e}function X8n(e){return F_(),tt((QJe(),s0n),e)}function Q8n(e){return Xx(),tt((Sze(),g0n),e)}function Z8n(e){return bC(),tt((oJe(),w0n),e)}function Y8n(e){return oj(),tt((lGe(),b0n),e)}function e7n(e){return Kx(),tt((kze(),h0n),e)}function n7n(e){return m8(),tt((sGe(),f0n),e)}function t7n(e){return qC(),tt((ZJe(),a0n),e)}function i7n(e){return HI(),tt((cJe(),o0n),e)}function r7n(e){return e_(),tt((XJe(),u0n),e)}function c7n(e){return Hk(),tt((Eze(),$0n),e)}function o7n(e){return RC(),tt((uJe(),O0n),e)}function u7n(e){return qa(),tt((hGe(),L0n),e)}function s7n(e){return mg(),tt((OHe(),z0n),e)}function l7n(e){return ld(),tt((OUe(),Egn),e)}function f7n(e){return Qi(),tt((aGe(),ygn),e)}function a7n(e){return n6(),tt(($Ue(),kgn),e)}function h7n(e){return aa(),tt((cUe(),Sgn),e)}function d7n(e){return yh(),tt((_Ge(),J0n),e)}function g7n(e){return pg(),tt(($Ge(),W0n),e)}function w7n(e){return Cp(),tt((GHe(),Agn),e)}function b7n(e){return w2(),tt((dGe(),Ign),e)}function p7n(e){return yr(),tt((PGe(),_gn),e)}function m7n(e){return Zu(),tt((OGe(),$gn),e)}function v7n(e){return Gs(),tt((PUe(),xgn),e)}function y7n(e){return m$(),tt((IGe(),Cgn),e)}function k7n(e){return sd(),tt((uUe(),Tgn),e)}function S7n(e){return JI(),tt((RUe(),Jgn),e)}function E7n(e){return bs(),tt((UHe(),Bgn),e)}function C7n(e){return C3(),tt((oUe(),zgn),e)}function j7n(e){return Ee(),tt((gGe(),Ogn),e)}function T7n(e){return L9(),tt((sUe(),Fgn),e)}function M7n(e){return Is(),tt((NUe(),Lgn),e)}function x7n(e){return G_(),tt((DUe(),Ugn),e)}function A7n(e){return $_(),tt((FUe(),qgn),e)}function I7n(e){return p6(),tt((PHe(),cwn),e)}function gDe(e,n,t){ol(),_ie.call(this,e,n,t)}function BL(e,n,t){ol(),hie.call(this,e,n,t)}function wDe(e,n,t){ol(),BL.call(this,e,n,t)}function bte(e,n,t){ol(),BL.call(this,e,n,t)}function bDe(e,n,t){ol(),bte.call(this,e,n,t)}function pDe(e,n,t){ol(),pte.call(this,e,n,t)}function pte(e,n,t){ol(),hie.call(this,e,n,t)}function mte(e,n,t){ol(),hie.call(this,e,n,t)}function mDe(e,n,t){ol(),mte.call(this,e,n,t)}function vDe(e,n,t){this.a=e,this.c=n,this.b=t}function yDe(e,n,t){this.a=e,this.b=n,this.c=t}function vte(e,n,t){this.a=e,this.b=n,this.c=t}function yte(e,n,t){this.a=e,this.b=n,this.c=t}function zL(e,n,t){this.a=e,this.b=n,this.c=t}function kDe(e,n,t){this.a=e,this.b=n,this.c=t}function Jd(e,n,t){this.e=e,this.a=n,this.c=t}function kte(e){this.d=e,cMe(this),this.b=ESn(e.d)}function Ste(e,n){S6n.call(this,e,z_(new io(n)))}function KE(e,n){return nt(e),nt(n),new T$e(e,n)}function t3(e,n){return nt(e),nt(n),new $De(e,n)}function _7n(e,n){return nt(e),nt(n),new ODe(e,n)}function $7n(e,n){return nt(e),nt(n),new D$e(e,n)}function JL(e){return Nn(e.b!=0),fl(e,e.a.a)}function O7n(e){return Nn(e.b!=0),fl(e,e.c.b)}function P7n(e){return!e.c&&(e.c=new Zy),e.c}function XE(e){var n;return n=new ei,Tz(n,e),n}function SDe(e){var n;return n=new rF,Tz(n,e),n}function R7n(e){var n;return n=new Ji,gz(n,e),n}function S4(e){var n;return n=new ke,gz(n,e),n}function o(e,n){return m9(e==null||CJ(e,n)),e}function N7n(e,n,t){kFe.call(this,n,t),this.a=e}function EDe(e,n){this.c=e,this.b=n,this.a=!1}function CDe(){this.a=";,;",this.b="",this.c=""}function jDe(e,n,t){this.b=e,OPe.call(this,n,t)}function Ete(e,n,t){this.c=e,eA.call(this,n,t)}function Cte(e,n,t){g4.call(this,e,n),this.b=t}function jte(e,n,t){pse(t,0,e,n,t.length,!1)}function dh(e,n,t,i,r){e.b=n,e.c=t,e.d=i,e.a=r}function Tte(e,n,t,i,r){e.d=n,e.c=t,e.a=i,e.b=r}function D7n(e,n){n&&(e.b=n,e.a=(L1(n),n.a))}function QE(e,n){if(!e)throw P(new yn(n))}function i3(e,n){if(!e)throw P(new Tc(n))}function Mte(e,n){if(!e)throw P(new __e(n))}function F7n(e,n){return Vx(),Bo(e.d.p,n.d.p)}function L7n(e,n){return cd(),Kt(e.e.b,n.e.b)}function B7n(e,n){return cd(),Kt(e.e.a,n.e.a)}function z7n(e,n){return Bo(FDe(e.d),FDe(n.d))}function VA(e,n){return n&&vI(e,n.d)?n:null}function J7n(e,n){return n==(Ee(),Cn)?e.c:e.d}function U7n(e){return new pe(e.c+e.b,e.d+e.a)}function TDe(e){return e!=null&&!lJ(e,ES,CS)}function G7n(e,n){return(sVe(e)<<4|sVe(n))&Zi}function MDe(e,n,t,i,r){e.c=n,e.d=t,e.b=i,e.a=r}function xte(e){var n,t;n=e.b,t=e.c,e.b=t,e.c=n}function Ate(e){var n,t;t=e.d,n=e.a,e.d=n,e.a=t}function H7n(e,n){var t;return t=e.c,cce(e,n),t}function Ite(e,n){return n<0?e.g=-1:e.g=n,e}function WA(e,n){return Nxn(e),e.a*=n,e.b*=n,e}function ZE(e,n,t){Kee.call(this,e,n),this.c=t}function KA(e,n,t){Kee.call(this,e,n),this.c=t}function _te(e){gte(),vx.call(this),this._h(e)}function xDe(){R4(),iEn.call(this,(O1(),Yl))}function ADe(e){return Ft(),new gh(0,e)}function IDe(){IDe=V,_X=(tn(),new XD(Tq))}function XA(){XA=V,new Goe((aF(),Fq),(fF(),Dq))}function _De(){this.b=K(Z(je((mf(),lV))))}function UL(e){this.b=e,this.a=X0(this.b.a).Md()}function $De(e,n){this.b=e,this.a=n,zD.call(this)}function ODe(e,n){this.a=e,this.b=n,zD.call(this)}function PDe(e,n,t){this.a=e,Hm.call(this,n,t)}function RDe(e,n,t){this.a=e,Hm.call(this,n,t)}function E4(e,n,t){var i;i=new ep(t),hf(e,n,i)}function $te(e,n,t){var i;return i=e[n],e[n]=t,i}function QA(e){var n;return n=e.slice(),uz(n,e)}function ZA(e){var n;return n=e.n,e.a.b+n.d+n.a}function NDe(e){var n;return n=e.n,e.e.b+n.d+n.a}function Ote(e){var n;return n=e.n,e.e.a+n.b+n.c}function Pte(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function vt(e,n){return Ei(e,n,e.c.b,e.c),!0}function q7n(e){return e.a?e.a:vB(e)}function m9(e){if(!e)throw P(new r4(null))}function ww(e,n){return f8(e,new g4(n.a,n.b))}function V7n(e){return!Ur(e)&&e.c.i.c==e.d.i.c}function W7n(e,n){return e.c<n.c?-1:e.c==n.c?0:1}function DDe(e){return e.b.c.length-e.e.c.length}function FDe(e){return e.e.c.length-e.g.c.length}function GL(e){return e.e.c.length+e.g.c.length}function YE(e){return e==0||isNaN(e)?e:e<0?-1:1}function LDe(e){return m3(),te(IR,AO,40,e,0,1)}function BDe(){BDe=V,qde=te(tr,ve,15,256,0,1)}function Rte(){dh(this,!1,!1,!1,!1)}function zDe(e){Ine.call(this,e.length,0),this.a=e}function JDe(e,n){kFe.call(this,n,1040),this.a=e}function Nte(e,n,t,i){Noe.call(this,e,n,t,i,0,0)}function UDe(e){gte(),_te.call(this,e),this.a=-1}function K7n(e){return Fs(),(Ee(),vu).Gc(e.j)}function X7n(e,n,t){return cd(),t.e.a+t.f.a+e*n}function Q7n(e,n,t){return cd(),t.e.b+t.f.b+e*n}function Z7n(e,n,t){return Ct(e.b,o(t.b,17),n)}function Y7n(e,n,t){return Ct(e.b,o(t.b,17),n)}function eSn(e,n){return ye(e,new pe(n.a,n.b))}function nSn(e,n){oce(e,n==null?null:(an(n),n))}function tSn(e,n){sce(e,n==null?null:(an(n),n))}function iSn(e,n){sce(e,n==null?null:(an(n),n))}function YA(e,n){var t;return++e.j,t=e.Aj(n),t}function pi(e,n){var t;return t=gB(e,n),t.i=2,t}function wt(e,n,t){return e.a=-1,_ne(e,n.g,t),e}function eI(e,n){RE.call(this,e,n),this.a=this}function GDe(){sL.call(this,"COUNT_CHILDREN",0)}function Dte(e){this.c=e,this.b=this.c.d.vc().Jc()}function HDe(e){return e.e.Pd().gc()*e.c.Pd().gc()}function HL(e,n,t){return new QNe(oEn(e).Ze(),t,n)}function Kb(e,n,t,i,r,c){return CKe(e,n,t,i,r,0,c)}function qDe(){qDe=V,Vde=te(eb,ve,190,256,0,1)}function VDe(){VDe=V,Xde=te(nb,ve,191,256,0,1)}function WDe(){WDe=V,Ude=te(Q3,ve,221,256,0,1)}function KDe(){KDe=V,Hde=te(f7,ve,180,128,0,1)}function nI(){nI=V,zq=new LB((tn(),tn(),oc))}function qL(){qL=V,Rde=new See((tn(),tn(),sP))}function tI(e){for(nt(e);e.Ob();)e.Pb(),e.Qb()}function rSn(e){e.a.jd(),o(e.a.kd(),18).gc(),WY()}function Xb(e){this.a=new Uv(e.gc()),Wr(this,e)}function Fte(e){lY.call(this,new U1),Wr(this,e)}function XDe(e){this.c=e,this.a=new Jv(this.c.a)}function Lte(e){if(e.e.c!=e.b)throw P(new rl)}function Bte(e){if(e.c.e!=e.a)throw P(new rl)}function QDe(e){return e.q?e.q:(tn(),tn(),xh)}function ZDe(e){return e.c-o(Te(e.a,e.b),295).b}function cSn(e,n){return an(e),_C(e,(an(n),n))}function oSn(e,n){return an(n),_C(n,(an(e),e))}function uSn(e,n,t){return Bo(n.d[e.g],t.d[e.g])}function sSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function lSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function fSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function aSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function YDe(e,n){return e?0:m.Math.max(0,n-1)}function iI(e,n,t){return m.Math.min(t/e,1/n)}function js(e){return e.c?e.c.f:e.e.b}function Bu(e){return e.c?e.c.g:e.e.a}function Te(e,n){return en(n,e.c.length),e.c[n]}function eFe(e,n){return en(n,e.a.length),e.a[n]}function nFe(e,n){return e.a+=Ga(n,0,n.length),e}function hSn(e,n){return e.a==null&&eYe(e),e.a[n]}function tFe(e){var n;return n=jKe(e),n?tFe(n):e}function dSn(e,n){var t;for(t=0;t<n;++t)e[t]=-1}function Qe(e,n){q0(),iz.call(this,e),this.a=n}function rI(e,n){ol(),xx.call(this,n),this.a=e}function gh(e,n){Ft(),ow.call(this,e),this.a=n}function iFe(e){this.b=new ei,this.a=e,this.c=-1}function rFe(e){this.a=e,this.c=new Jn,gIn(this)}function cI(e){Tw.call(this,e.gc()),_i(this,e)}function oI(e,n,t,i){Tte(this,e,n,t,i)}function v9(e,n,t){this.a=e,Xi.call(this,n,t,2)}function VL(e,n){return e==null?n==null:Ke(e,n)}function gSn(e,n){return e==null?n==null:X_(e,n)}function uI(e,n){return Ft(),new iie(e,n)}function lt(e){return Fc(e)?e|0:o$e(e)}function ii(e,n){var t;return t=ze(e),Rce(t,n),t}function wSn(e,n){return!e&&(e=[]),e[e.length]=n,e}function K0(e,n,t){rp(n,e.c.length),Xk(e.c,n,t)}function WL(e,n,t){Iqe(0,n,e.length),D4(e,0,n,t)}function cFe(e,n,t){var i;for(i=0;i<n;++i)e[i]=t}function KL(e,n){return U(n,23)&&Lu(e,o(n,23))}function oFe(e,n){return U(n,23)&&_xn(e,o(n,23))}function Mc(e,n){return Rqe(e,n,YTn(e,e.b.Ae(n)))}function bSn(e,n){return e.a.get(n)!==void 0}function zte(e){return Array.isArray(e)&&e.Rm===hu}function XL(e){return ws(e,26)*$8+ws(e,27)*O8}function QL(){QL=V,Wgn=new Ir((pt(),ms),0)}function uFe(){uFe=V,mon=new zDe(te(ur,sn,1,0,5,1))}function sFe(){this.b=new Br,this.c=new HLe(this)}function Jte(){this.d=new Pl,this.e=new GLe(this)}function ZL(e,n){this.b=new ei,this.a=e,this.c=n}function Ute(){Lie(),this.g=new ei,this.f=new ei}function lFe(){Fs(),this.k=new Jn,this.d=new Ji}function pSn(e,n){YL(e,ar(new pe(n.a,n.b),e.c))}function YL(e,n){Jt(e.c,n),e.b.c+=n.a,e.b.d+=n.b}function sI(e){e.b?sI(e.b):e.d.dc()&&e.f.c.Ac(e.e)}function mSn(e,n,t){return-Bo(e.f[n.p],e.f[t.p])}function vSn(e,n,t){return Ui(e,new Gv(n.a,t.a))}function ySn(e,n,t){BQe(t,e,1),ye(n,new jOe(t,e))}function kSn(e,n,t){l8(t,e,1),ye(n,new _Oe(t,e))}function fFe(e,n,t,i){ol(),tze.call(this,e,n,t,i)}function aFe(e,n,t,i){ol(),tze.call(this,e,n,t,i)}function hFe(e,n,t){this.a=e,OA.call(this,n,t,22)}function dFe(e,n,t){this.a=e,OA.call(this,n,t,14)}function tu(e,n,t){return e.a=-1,_ne(e,n.g+1,t),e}function Gte(e,n,t){return t=qs(e,o(n,52),7,t),t}function Hte(e,n,t){return t=qs(e,o(n,52),3,t),t}function lI(e,n,t){var i;e&&(i=e.i,i.c=n,i.b=t)}function fI(e,n,t){var i;e&&(i=e.i,i.d=n,i.a=t)}function SSn(e,n){n.Bb&vo&&!e.a.o&&(e.a.o=n)}function gFe(e){return e!=null&&cB(e)&&e.Rm!==hu}function qte(e){return!Array.isArray(e)&&e.Rm===hu}function ESn(e){return U(e,16)?o(e,16).cd():e.Jc()}function Vte(e){return e.Oc(te(ur,sn,1,e.gc(),5,1))}function y9(e,n){return D$n(jC(e,n))?n.wi():null}function eB(e){return e.d?e.d:e.d=e.Rd()}function X0(e){return e.c?e.c:e.c=e.Qd()}function r3(e){var n;return n=e.i,n||(e.i=e.bc())}function wFe(e){var n;return n=e.f,n||(e.f=e.Cc())}function bFe(e){return Ft(),new AB(10,e,0)}function Q0(e){P1(),this.a=0,this.b=e-1,this.c=1}function pFe(e){_A(this),this.g=e,EI(this),this.he()}function Wte(e,n,t,i){this.a=e,KI.call(this,e,n,t,i)}function kn(e){this.a=(uFe(),mon),this.d=o(nt(e),50)}function aI(e){if(e.e.j!=e.d)throw P(new rl)}function k9(e){return Fc(e)?""+e:HZe(e)}function CSn(e,n){return W0((an(e),e),(an(n),n))}function nB(e,n){return Kt((an(e),e),(an(n),n))}function wh(e,n){return q1(oXe(Fc(e)?Bl(e):e,n))}function bw(e,n){return q1(Tse(Fc(e)?Bl(e):e,n))}function Z0(e,n){return q1(SDn(Fc(e)?Bl(e):e,n))}function mFe(e,n){return nt(n),e.a.Hd(n)&&!e.b.Hd(n)}function jSn(e,n){return du(e.l&n.l,e.m&n.m,e.h&n.h)}function TSn(e,n){return du(e.l|n.l,e.m|n.m,e.h|n.h)}function MSn(e,n){return du(e.l^n.l,e.m^n.m,e.h^n.h)}function Qb(e,n){return GC(e,(an(n),new hMe(n)))}function c3(e,n){return GC(e,(an(n),new dMe(n)))}function vFe(e){return Ju(),o(e,12).g.c.length!=0}function yFe(e){return Ju(),o(e,12).e.c.length!=0}function xSn(e,n){return y3(),Kt(n.a.o.a,e.a.o.a)}function Kte(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}function ASn(e,n,t){e.a.Mb(t)&&(e.b=!0,n.Ad(t))}function C4(e,n){if(e<0||e>=n)throw P(new UIe)}function ko(e){e.f=new KPe(e),e.i=new XPe(e),++e.g}function hI(e){this.b=new ru(11),this.a=(kw(),e)}function tB(e){this.b=null,this.a=(kw(),e||r1e)}function Xte(e,n){this.e=e,this.d=n&64?n|Ka:n}function kFe(e,n){this.c=0,this.d=e,this.b=n|64|Ka}function SFe(e){this.a=SWe(e.a),this.b=new Ku(e.b)}function Ud(e,n,t,i){var r;r=e.i,r.i=n,r.a=t,r.b=i}function Qte(e){var n;for(n=e;n.f;)n=n.f;return n}function ISn(e){return e.e?yre(e.e):null}function S9(e){return Zu(),!e.Gc(Sd)&&!e.Gc(x0)}function EFe(e,n,t){return y6(),$z(e,n)&&$z(e,t)}function CFe(e,n,t){return $nn(e,o(n,12),o(t,12))}function iB(e,n){return n.Sh()?X1(e.b,o(n,52)):n}function dI(e){return new pe(e.c+e.b/2,e.d+e.a/2)}function _Sn(e,n,t){n.of(t,K(Z(bn(e.b,t)))*e.a)}function $Sn(e,n){n.Tg("General 'Rotator",1),Vqn(e)}function gr(e,n,t,i,r){cz.call(this,e,n,t,i,r,-1)}function E9(e,n,t,i,r){yC.call(this,e,n,t,i,r,-1)}function ae(e,n,t,i){Xi.call(this,e,n,t),this.b=i}function gI(e,n,t,i){ZE.call(this,e,n,t),this.b=i}function jFe(e){SPe.call(this,e,!1),this.a=!1}function TFe(){sL.call(this,"LOOKAHEAD_LAYOUT",1)}function MFe(){sL.call(this,"LAYOUT_NEXT_LEVEL",3)}function xFe(e){this.b=e,Qv.call(this,e),PRe(this)}function AFe(e){this.b=e,LE.call(this,e),RRe(this)}function IFe(e,n){this.b=e,PTe.call(this,e.b),this.a=n}function Zb(e,n,t){this.a=e,e3.call(this,n,t,5,6)}function Zte(e,n,t,i){this.b=e,Xi.call(this,n,t,i)}function Y0(e,n,t){Va(),this.e=e,this.d=n,this.a=t}function Rr(e,n){for(an(n);e.Ob();)n.Ad(e.Pb())}function wI(e,n){return Ft(),new die(e,n,0)}function rB(e,n){return Ft(),new die(6,e,n)}function OSn(e,n){return Ke(e.substr(0,n.length),n)}function zo(e,n){return mr(n)?TB(e,n):!!Mc(e.f,n)}function PSn(e){return du(~e.l&ps,~e.m&ps,~e.h&dd)}function cB(e){return typeof e===Tj||typeof e===YU}function bh(e){return new kn(new jne(e.a.length,e.a))}function oB(e){return new Qe(null,JSn(e,e.length))}function _Fe(e){if(!e)throw P(new Gc);return e.d}function o3(e){var n;return n=q9(e),Nn(n!=null),n}function RSn(e){var n;return n=S_n(e),Nn(n!=null),n}function j4(e,n){var t;return t=e.a.gc(),bre(n,t),t-n}function Ui(e,n){var t;return t=e.a.yc(n,e),t==null}function eC(e,n){return e.a.yc(n,(dn(),d0))==null}function NSn(e,n){return e>0?m.Math.log(e/n):-100}function Yte(e,n){return n?Wr(e,n):!1}function u3(e,n,t){return gf(e.a,n),$te(e.b,n.g,t)}function DSn(e,n,t){C4(t,e.a.c.length),Bs(e.a,t,n)}function Y(e,n,t,i){Iqe(n,t,e.length),FSn(e,n,t,i)}function FSn(e,n,t,i){var r;for(r=n;r<t;++r)e[r]=i}function eie(e,n){var t;for(t=0;t<n;++t)e[t]=!1}function C9(e){Ub(e.b!=-1),Hd(e.c,e.a=e.b),e.b=-1}function Ff(e,n,t){return FIn(e,n.g,t),gf(e.c,n),e}function LSn(e,n,t){Zqn(e.a,e.b,e.d,e.c,o(n,170),t)}function nC(e,n){pRe(e,U(n,163)?n:o(n,1998).Pl())}function nie(e,n){if(e==null)throw P(new Lv(n))}function tie(e,n,t){this.c=e,this.a=n,tn(),this.b=t}function uB(e,n){this.d=e,$n.call(this,e),this.e=n}function iie(e,n){ow.call(this,1),this.a=e,this.b=n}function $Fe(e,n){return Go(e,n)<0?-1:Go(e,n)>0?1:0}function j9(e){return e.e==0?e:new Y0(-e.e,e.d,e.a)}function BSn(e){return e==Ci?uT:e==hr?"-INF":""+e}function zSn(e){return e==Ci?uT:e==hr?"-INF":""+e}function JSn(e,n){return $xn(n,e.length),new JDe(e,n)}function OFe(e,n,t,i,r){for(;n<t;)i[r++]=zr(e,n++)}function PFe(e,n,t){var i;for(i=0;i<n;++i)Oi(e,i,t)}function USn(e,n,t){var i;return i=sp(e,n),UB(e,n,t),i}function RFe(e,n){return e.c?RFe(e.c,n):ye(e.b,n),e}function sB(e){return!e.j&&r4n(e,qJn(e.g,e.b)),e.j}function GSn(e){return T2(e,(Qi(),Oc)),e.d=!0,e}function bI(e,n){Ei(e.d,n,e.b.b,e.b),++e.a,e.c=null}function HSn(e,n){return Kt(e.c.c+e.c.b,n.c.c+n.c.b)}function lB(e){return m.Math.abs(e.d.e-e.e.e)-e.a}function qSn(e,n){return Kt(e.e.a+e.f.a,n.e.a+n.f.a)}function VSn(e,n){return Kt(e.e.b+e.f.b,n.e.b+n.f.b)}function fB(e,n){this.d=T_n(e),this.c=n,this.a=.5*n}function Yb(e){this.d=(an(e),e),this.a=0,this.c=Ij}function NFe(e){Aie.call(this),this.a=e,ye(e.a,this)}function rie(e){e?$ue(e,(Ld(),_on)):QEn((Ld(),e))}function WSn(e,n){s3(e,new ep(n.f!=null?n.f:""+n.g))}function KSn(e,n){s3(e,new ep(n.f!=null?n.f:""+n.g))}function pw(e,n){Ii(iu(e.Mc(),new s9e),new vxe(n))}function _i(e,n){return e.Qi()&&(n=wBe(e,n)),e.Di(n)}function aB(e,n){return n=e.Wk(null,n),zKe(e,null,n)}function XSn(e,n){++e.j,WJ(e,e.i,n),OFn(e,o(n,344))}function QSn(e,n,t){return o(e.c.fd(n,o(t,136)),45)}function T4(e,n,t,i,r){KJ(e,o(Ht(n.k,t),16),t,i,r)}function pI(e){e.s=NaN,e.c=NaN,xQe(e,e.e),xQe(e,e.j)}function DFe(e){e.a=null,e.e=null,ko(e.b),e.d=0,++e.c}function Fn(e){return(e.i==null&&Wa(e),e.i).length}function F1(){F1=V,wn=$Fn(),nn(),ym&&qPn()}function FFe(){FFe=V,jon=new QZ(!1),Ton=new QZ(!0)}function T9(e){var n;return n=e.g,n||(e.g=new WZ(e))}function mI(e){var n;return n=e.k,n||(e.k=new KZ(e))}function cie(e){var n;return n=e.k,n||(e.k=new KZ(e))}function ZSn(e){var n;return n=e.i,n||(e.i=new ITe(e))}function hB(e){var n;return n=e.j,n||(e.j=new QTe(e))}function LFe(e){var n;return n=e.f,n||(e.f=new pne(e))}function dB(e){var n;return n=e.d,n||(e.d=new qD(e))}function oie(e,n){var t;return t=e.a.gc(),hC(n,t),t-1-n}function S(e,n,t){var i;return i=gB(e,n),UGe(t,i),i}function gB(e,n){var t;return t=new $ce,t.j=e,t.d=n,t}function nt(e){if(e==null)throw P(new Pv);return e}function ep(e){if(e==null)throw P(new Pv);this.a=e}function BFe(e){MY(),this.b=new ke,this.a=e,QHn(this,e)}function uie(e){this.b=e,this.a=o(Fl(this.b.a.e),227)}function zFe(){U1.call(this),this.a=!0,this.b=!0}function sie(e,n){return Tn(n,e.length+1),e.substr(n)}function JFe(e,n){return hC(n,e.c.b.c.gc()),new j$e(e,n)}function UFe(e,n,t){return Ft(),new BBe(e,n,t)}function lie(e){return U(e,606)?e:new oBe(e)}function Oi(e,n,t){return Ekn(t==null||IUn(e,t)),e[n]=t}function M4(e,n){return e.a+=String.fromCharCode(n),e}function eg(e,n){return e.a+=String.fromCharCode(n),e}function YSn(e,n){return y3(),o(Ec(e,n.d),16).Ec(n)}function bn(e,n){return mr(n)?Jo(e,n):qc(Mc(e.f,n))}function GFe(e,n){return o(X0(e.a).Kd().Xb(n),45).jd()}function eEn(e,n){return o(M(n,(Se(),Zp)),15).a<e}function nEn(e,n,t,i){return t==0||(t-i)/t<e.e||n>=e.g}function wB(e,n,t){var i;return i=jz(e,n,t),ile(e,i)}function HFe(e,n){var t;t=console[e],t.call(console,n)}function s3(e,n){var t;t=e.a.length,sp(e,t),UB(e,t,n)}function qFe(e,n){var t;++e.j,t=e.Cj(),e.pj(e.Xi(t,n))}function bB(e,n){for(an(n);e.c<e.d;)e.Qe(n,e.c++)}function tEn(e,n,t){o(n.b,68),cu(n.a,new vte(e,t,n))}function fie(e){for(;e.a.b!=0;)_qn(e,o(nBe(e.a),9))}function aie(e){this.d=e,this.c=e.a.d.a,this.b=e.a.e.g}function VFe(e){this.c=e,this.a=new ei,this.b=new ei}function To(e){this.c=new Ar,this.a=new ke,this.b=e}function WFe(e){this.b=new ke,this.a=new ke,this.c=e}function hie(e,n,t){xx.call(this,n),this.a=e,this.b=t}function die(e,n,t){ow.call(this,e),this.a=n,this.b=t}function gie(e,n,t){this.a=e,SY.call(this,n),this.b=t}function KFe(e,n,t){this.a=e,Qie.call(this,8,n,null,t)}function iEn(e){this.a=(an(bt),bt),this.b=e,new DY}function XFe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function ss(e){Ub(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function M9(e){return m.Math.sqrt(e.a*e.a+e.b*e.b)}function QFe(e){return U(e,103)&&(o(e,19).Bb&vo)!=0}function ZFe(e){return Fl(e),U(e,472)?o(e,472):Bc(e)}function YFe(e){return e?e.dc():!e.Jc().Ob()}function rEn(e){return Sm?TB(Sm,e):!1}function L1(e){e.c?L1(e.c):(Q1(e),e.d=!0)}function x9(e){e.c?e.c.Ye():(e.d=!0,FBn(e))}function eLe(e){kie(e.a),e.b=te(ur,sn,1,e.b.length,5,1)}function vI(e,n){return zJ(e.c,e.f,n,e.b,e.a,e.e,e.d)}function mw(e,n){return C4(n,e.a.c.length),Te(e.a,n)}function Qh(e,n){return ne(e)===ne(n)||e!=null&&Bt(e,n)}function cEn(e,n){return Bo(n.j.c.length,e.j.c.length)}function nLe(e){var n,t;return n=e.c.i.c,t=e.d.i.c,n==t}function wr(e){return!e.a&&e.c?e.c.b:e.a}function oEn(e){return 0>=e?new dee:tAn(e-1)}function Fl(e){if(e==null)throw P(new Pv);return e}function an(e){if(e==null)throw P(new Pv);return e}function uEn(e){return!e.a&&(e.a=new Xi(A0,e,4)),e.a}function vw(e){return!e.d&&(e.d=new Xi(yc,e,1)),e.d}function sEn(e){if(e.p!=3)throw P(new Du);return e.e}function lEn(e){if(e.p!=4)throw P(new Du);return e.e}function fEn(e){if(e.p!=6)throw P(new Du);return e.f}function aEn(e){if(e.p!=3)throw P(new Du);return e.j}function hEn(e){if(e.p!=4)throw P(new Du);return e.j}function dEn(e){if(e.p!=6)throw P(new Du);return e.k}function Di(){h_e.call(this),_b(this.j.c,0),this.a=-1}function tLe(){et.call(this,"DELAUNAY_TRIANGULATION",0)}function gEn(){return Rx(),F(D(von,1),be,537,0,[Bq])}function wEn(e,n,t){return S3(),t.Kg(e,o(n.jd(),147))}function bEn(e,n){Xn((!e.a&&(e.a=new GE(e,e)),e.a),n)}function wie(e,n){e.c<0||e.b.b<e.c?Zr(e.b,n):e.a.vf(n)}function pEn(e,n){var t;t=e.Fh(n),t>=0?e.hi(t):sse(e,n)}function x4(e,n){var t;return t=gB("",e),t.n=n,t.i=1,t}function yw(e){return e.c==-2&&Kyn(e,_Nn(e.g,e.b)),e.c}function bie(e){return!e.b&&(e.b=new Tx(new lF)),e.b}function iLe(e,n){return XA(),new Goe(new DRe(e),new NRe(n))}function mEn(e){return Js(e,iG),o_(nc(nc(5,e),e/10|0))}function pB(){pB=V,Son=new kee(F(D(Ag,1),X$,45,0,[]))}function rLe(){Lue.call(this,xg,(K_e(),Own)),NHn(this)}function cLe(){Lue.call(this,Gl,(s4(),dve)),GGn(this)}function oLe(e,n){V5n.call(this,iAn(nt(e),nt(n))),this.a=n}function pie(e,n,t,i){lw.call(this,e,n),this.d=t,this.a=i}function yI(e,n,t,i){lw.call(this,e,t),this.a=n,this.f=i}function uLe(e,n){this.b=e,uB.call(this,e,n),PRe(this)}function sLe(e,n){this.b=e,fte.call(this,e,n),RRe(this)}function A9(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function lLe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function A4(e){return!e.a&&(e.a=new R_e(e.c.vc())),e.a}function fLe(e){return!e.b&&(e.b=new c4(e.c.ec())),e.b}function aLe(e){return!e.d&&(e.d=new Yy(e.c.Bc())),e.d}function ph(e,n){for(;n-- >0;)e=e<<1|(e<0?1:0);return e}function hLe(e,n){var t;return t=new To(e),vn(n.c,t),t}function vEn(e,n){YL(o(n.b,68),e),cu(n.a,new wY(e))}function dLe(e,n){e.u.Gc((Zu(),Sd))&&MFn(e,n),xMn(e,n)}function Mo(e,n){return ne(e)===ne(n)||e!=null&&Bt(e,n)}function Ct(e,n,t){return mr(n)?xc(e,n,t):Tu(e.f,n,t)}function mie(e){return tn(),e?e.Me():(kw(),kw(),c1e)}function yEn(){return Kx(),F(D(Ype,1),be,477,0,[BK])}function kEn(){return Xx(),F(D(d0n,1),be,546,0,[zK])}function SEn(){return Hk(),F(D(yme,1),be,527,0,[qT])}function Ec(e,n){return KL(e.a,n)?e.b[o(n,23).g]:null}function EEn(e){return String.fromCharCode.apply(null,e)}function zr(e,n){return Tn(n,e.length),e.charCodeAt(n)}function tC(e){return e.j.c.length=0,kie(e.c),g9n(e.a),e}function I4(e){return e.e==i5&&n4n(e,H$n(e.g,e.b)),e.e}function iC(e){return e.f==i5&&i4n(e,PPn(e.g,e.b)),e.f}function CEn(e){return!e.b&&(e.b=new ln(Hn,e,4,7)),e.b}function vie(e){return!e.c&&(e.c=new ln(Hn,e,5,8)),e.c}function yie(e){return!e.c&&(e.c=new ae(vs,e,9,9)),e.c}function mB(e){return!e.n&&(e.n=new ae(no,e,1,7)),e.n}function e2(e){var n;return n=e.b,!n&&(e.b=n=new ATe(e)),n}function kie(e){var n;for(n=e.Jc();n.Ob();)n.Pb(),n.Qb()}function jEn(e,n,t){var i;i=o(e.d.Kb(t),162),i&&i.Nb(n)}function TEn(e,n){return new BLe(o(nt(e),51),o(nt(n),51))}function Nt(e,n){return Q1(e),new Qe(e,new Ore(n,e.a))}function iu(e,n){return Q1(e),new Qe(e,new vre(n,e.a))}function np(e,n){return Q1(e),new Jne(e,new MJe(n,e.a))}function kI(e,n){return Q1(e),new Une(e,new xJe(n,e.a))}function gLe(e,n){woe(e,K(od(n,"x")),K(od(n,"y")))}function wLe(e,n){woe(e,K(od(n,"x")),K(od(n,"y")))}function MEn(e,n){return gee(),Kt((an(e),e),(an(n),n))}function xEn(e,n){return Kt(e.d.c+e.d.b/2,n.d.c+n.d.b/2)}function AEn(e,n){return Kt(e.g.c+e.g.b/2,n.g.c+n.g.b/2)}function IEn(e){return e!=null&&zk(mN,e.toLowerCase())}function _En(e){Ds();var n;n=o(e.g,9),n.n.a=e.d.c+n.d.b}function vB(e){var n;return n=cAn(e),n||null}function _t(e,n,t,i){return MHe(e,n,t,!1),D_(e,i),e}function $En(e,n,t){FGn(e.a,t),iIn(t),fLn(e.b,t),cHn(n,t)}function l3(e,n,t,i){et.call(this,e,n),this.a=t,this.b=i}function SI(e,n,t,i){this.a=e,this.c=n,this.b=t,this.d=i}function Sie(e,n,t,i){this.c=e,this.b=n,this.a=t,this.d=i}function bLe(e,n,t,i){this.c=e,this.b=n,this.d=t,this.a=i}function yB(e,n,t,i){this.a=e,this.e=n,this.d=t,this.c=i}function pLe(e,n,t,i){this.a=e,this.d=n,this.c=t,this.b=i}function lf(e,n,t,i){this.c=e,this.d=n,this.b=t,this.a=i}function kB(e,n,t){this.a=cfe,this.d=e,this.b=n,this.c=t}function Eie(e,n){this.b=e,this.c=n,this.a=new Jv(this.b)}function mLe(e,n){this.d=(an(e),e),this.a=16449,this.c=n}function vLe(e,n,t,i){Sqe.call(this,e,t,i,!1),this.f=n}function SB(e,n,t){var i,r;return i=qle(e),r=n.qi(t,i),r}function Zh(e){var n,t;return t=(n=new uw,n),B4(t,e),t}function EB(e){var n,t;return t=(n=new uw,n),Jue(t,e),t}function yLe(e){return!e.b&&(e.b=new ae(Ki,e,12,3)),e.b}function kLe(e){this.a=new ke,this.e=te(ut,ve,54,e,0,2)}function CB(e){this.f=e,this.c=this.f.e,e.f>0&&pKe(this)}function SLe(e,n,t,i){this.a=e,this.c=n,this.d=t,this.b=i}function ELe(e,n,t,i){this.a=e,this.b=n,this.d=t,this.c=i}function CLe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function jLe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function ng(e,n,t,i){this.e=e,this.a=n,this.c=t,this.d=i}function TLe(e,n,t,i){ol(),TJe.call(this,n,t,i),this.a=e}function MLe(e,n,t,i){ol(),TJe.call(this,n,t,i),this.a=e}function xLe(e,n){this.a=e,Wkn.call(this,e,o(e.d,16).dd(n))}function OEn(e,n){return Kt(Bu(e)*js(e),Bu(n)*js(n))}function PEn(e,n){return Kt(Bu(e)*js(e),Bu(n)*js(n))}function f3(e){var n;return n=e.f,n||(e.f=new f4(e,e.c))}function tn(){tn=V,oc=new Yt,xh=new Bn,sP=new Mn}function kw(){kw=V,r1e=new jt,Kq=new jt,c1e=new fr}function _4(e){if(gs(e.d),e.d.d!=e.c)throw P(new rl)}function Ts(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function Cie(e){return Nn(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function REn(e){return e.length>0?af(e):new ke}function EI(e){return e.n&&(e.e!==qnn&&e.he(),e.j=null),e}function jie(e,n){return e.b=n.b,e.c=n.c,e.d=n.d,e.a=n.a,e}function NEn(e,n,t){return ye(e.a,($J(n,t),new lw(n,t))),e}function DEn(e,n){return o(M(e,(he(),sy)),16).Ec(n),n}function FEn(e,n){return Xe(e,o(M(n,(Se(),Zp)),15),n)}function LEn(e){return Fw(e)&&xe(Me(we(e,(Se(),Pg))))}function BEn(e,n,t){return Gk(),J_n(o(bn(e.e,n),516),t)}function zEn(e,n,t){e.i=0,e.e=0,n!=t&&mqe(e,n,t)}function JEn(e,n,t){e.i=0,e.e=0,n!=t&&vqe(e,n,t)}function ALe(e,n,t,i){this.b=e,this.c=i,MA.call(this,n,t)}function ILe(e,n){this.g=e,this.d=F(D(Ih,1),r1,9,0,[n])}function _Le(e,n){e.d&&!e.d.a&&(kIe(e.d,n),_Le(e.d,n))}function $Le(e,n){e.e&&!e.e.a&&(kIe(e.e,n),$Le(e.e,n))}function OLe(e,n){return g2(e.j,n.s,n.c)+g2(n.e,e.s,e.c)}function UEn(e,n){return-Kt(Bu(e)*js(e),Bu(n)*js(n))}function GEn(e){return o(e.jd(),147).Og()+":"+Bc(e.kd())}function PLe(){nU(this,new HZ),this.wb=(F1(),wn),s4()}function RLe(e){this.b=new X9e,this.a=e,m.Math.random()}function NLe(e){this.b=new ke,ir(this.b,this.b),this.a=e}function Tie(e,n){new ei,this.a=new us,this.b=e,this.c=n}function DLe(){Hc.call(this,"There is no more element.")}function HEn(e){Fx(),m.setTimeout(function(){throw e},0)}function qEn(e){e.Tg("No crossing minimization",1),e.Ug()}function VEn(e,n){return Ms(e),Ms(n),M_e(o(e,23),o(n,23))}function tg(e,n,t){var i,r;i=OL(t),r=new kx(i),hf(e,n,r)}function jB(e,n,t,i,r,c){yC.call(this,e,n,t,i,r,c?-2:-1)}function FLe(e,n,t,i){Kee.call(this,n,t),this.b=e,this.a=i}function Mie(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function CI(e){return!e.a&&(e.a=new ae(ht,e,10,11)),e.a}function qt(e){return!e.q&&(e.q=new ae(Zl,e,11,10)),e.q}function fe(e){return!e.s&&(e.s=new ae(Ou,e,21,17)),e.s}function LLe(e){return m9(e==null||cB(e)&&e.Rm!==hu),e}function jI(e,n){if(e==null)throw P(new Lv(n));return e}function BLe(e,n){x4n.call(this,new tB(e)),this.a=e,this.b=n}function TB(e,n){return n==null?!!Mc(e.f,null):bSn(e.i,n)}function MB(e){return U(e,18)?new Xb(o(e,18)):R7n(e.Jc())}function TI(e){return tn(),U(e,59)?new yF(e):new RA(e)}function WEn(e){return nt(e),OWe(new kn(jn(e.a.Jc(),new q)))}function KEn(e){return new IRe(e,e.e.Pd().gc()*e.c.Pd().gc())}function XEn(e){return new _Re(e,e.e.Pd().gc()*e.c.Pd().gc())}function xie(e){return e&&e.hashCode?e.hashCode():gw(e)}function QEn(e){e&&xI(e,e.ge())}function ZEn(e,n){var t;return t=gne(e.a,n),t&&(n.d=null),t}function zLe(e,n,t){return e.f?e.f.cf(n,t):!1}function rC(e,n,t,i){Oi(e.c[n.g],t.g,i),Oi(e.c[t.g],n.g,i)}function xB(e,n,t,i){Oi(e.c[n.g],n.g,t),Oi(e.b[n.g],n.g,i)}function YEn(e,n,t){return K(Z(t.a))<=e&&K(Z(t.b))>=n}function JLe(){this.d=new ei,this.b=new Jn,this.c=new ke}function ULe(){this.b=new Ji,this.d=new ei,this.e=new Ox}function Aie(){this.c=new Ar,this.d=new Ar,this.e=new Ar}function Sw(){this.a=new us,this.b=(Js(3,_p),new ru(3))}function GLe(e){this.c=e,this.b=new Fd(o(nt(new tE),51))}function HLe(e){this.c=e,this.b=new Fd(o(nt(new fi),51))}function qLe(e){this.b=e,this.a=new Fd(o(nt(new jk),51))}function Gd(e,n){this.e=e,this.a=ur,this.b=sYe(n),this.c=n}function MI(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function VLe(e,n,t,i,r,c){this.a=e,yz.call(this,n,t,i,r,c)}function WLe(e,n,t,i,r,c){this.a=e,yz.call(this,n,t,i,r,c)}function B1(e,n,t,i,r,c,s){return new qB(e.e,n,t,i,r,c,s)}function eCn(e,n,t){return t>=0&&Ke(e.substr(t,n.length),n)}function KLe(e,n){return U(n,147)&&Ke(e.b,o(n,147).Og())}function nCn(e,n){return e.a?n.Dh().Jc():o(n.Dh(),72).Gi()}function XLe(e,n){var t;return t=e.b.Oc(n),Uze(t,e.b.gc()),t}function cC(e,n){if(e==null)throw P(new Lv(n));return e}function Rc(e){return e.u||(ls(e),e.u=new CNe(e,e)),e.u}function Su(e){var n;return n=o(Sn(e,16),29),n||e.fi()}function xI(e,n){var t;return t=H0(e.Pm),n==null?t:t+": "+n}function Ll(e,n,t){return _r(n,t,e.length),e.substr(n,t-n)}function QLe(e,n){zA.call(this),Hre(this),this.a=e,this.c=n}function ZLe(){sL.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function tCn(){return QI(),F(D($0e,1),be,422,0,[_0e,RV])}function iCn(){return xC(),F(D(z0e,1),be,419,0,[UP,B0e])}function rCn(){return SC(),F(D(G0e,1),be,476,0,[U0e,HP])}function cCn(){return FI(),F(D(rge,1),be,420,0,[tW,ige])}function oCn(){return zI(),F(D(mge,1),be,423,0,[hW,aW])}function uCn(){return CC(),F(D(cbe,1),be,421,0,[GW,HW])}function sCn(){return R9(),F(D(Qhn,1),be,518,0,[q7,H7])}function lCn(){return oa(),F(D(odn,1),be,508,0,[Lg,Ca])}function fCn(){return Ba(),F(D(rdn,1),be,509,0,[hb,a1])}function aCn(){return Bf(),F(D(kdn,1),be,515,0,[om,k0])}function hCn(){return Cw(),F(D(xdn,1),be,454,0,[S0,tv])}function dCn(){return DI(),F(D(epe,1),be,425,0,[dK,Ybe])}function gCn(){return y_(),F(D(npe,1),be,487,0,[RR,cv])}function wCn(){return YI(),F(D(ipe,1),be,426,0,[tpe,vK])}function bCn(){return c_(),F(D(m1e,1),be,424,0,[uV,dP])}function pCn(){return U4(),F(D(Dsn,1),be,502,0,[wT,yV])}function mCn(){return HI(),F(D(qpe,1),be,478,0,[NK,Hpe])}function vCn(){return bC(),F(D(eme,1),be,428,0,[JK,qR])}function yCn(){return RC(),F(D(Sme,1),be,427,0,[WR,kme])}function AI(e,n,t,i){return t>=0?e.Rh(n,t,i):e.zh(null,t,i)}function oC(e){return e.b.b==0?e.a.uf():JL(e.b)}function kCn(e){if(e.p!=5)throw P(new Du);return lt(e.f)}function SCn(e){if(e.p!=5)throw P(new Du);return lt(e.k)}function Iie(e){return ne(e.a)===ne((Az(),xX))&&IHn(e),e.a}function YLe(e,n){Lyn(this,new pe(e.a,e.b)),Byn(this,XE(n))}function Ew(){A4n.call(this,new Uv(dp(12))),vne(!0),this.a=2}function AB(e,n,t){Ft(),ow.call(this,e),this.b=n,this.a=t}function _ie(e,n,t){ol(),xx.call(this,n),this.a=e,this.b=t}function ECn(e,n){var t=Uq[e.charCodeAt(0)];return t??e}function II(e,n){return jI(e,"set1"),jI(n,"set2"),new J$e(e,n)}function _I(e,n){return zze(n),Gxn(e,te(ut,Mt,30,n,15,1),n)}function CCn(e,n){e.b=n,e.c>0&&e.b>0&&(e.g=iI(e.c,e.b,e.a))}function jCn(e,n){e.c=n,e.c>0&&e.b>0&&(e.g=iI(e.c,e.b,e.a))}function eBe(e){var n;n=e.c.d.b,e.b=n,e.a=e.c.d,n.a=e.c.d.b=e}function nBe(e){return e.b==0?null:(Nn(e.b!=0),fl(e,e.a.a))}function Jo(e,n){return n==null?qc(Mc(e.f,null)):Kk(e.i,n)}function tBe(e,n,t,i,r){return new iU(e,(F4(),Yq),n,t,i,r)}function IB(e,n,t,i){var r;r=new FNe,n.a[t.g]=r,u3(e.b,i,r)}function iBe(e,n){var t,i;return t=n,i=new zh,Uen(e,t,i),i.d}function TCn(e,n){var t;return t=Fxn(e.f,n),Jt(BA(t),e.f.d)}function uC(e){var n;Zxn(e.a),rRe(e.a),n=new Cx(e.a),Coe(n)}function MCn(e,n){QZe(e,!0),cu(e.e.Pf(),new ate(e,!0,n))}function xCn(e,n){return cd(),o(M(n,(oo(),oh)),15).a==e}function qr(e){return Math.max(Math.min(e,Rt),-2147483648)|0}function rBe(e){zA.call(this),Hre(this),this.a=e,this.c=!0}function $ie(e,n,t){this.a=new ke,this.e=e,this.f=n,this.c=t}function $I(e,n,t){this.c=new ke,this.e=e,this.f=n,this.b=t}function cBe(e,n,t){this.i=new ke,this.b=e,this.g=n,this.a=t}function oBe(e){this.a=o(nt(e),277),this.b=(tn(),new Cne(e))}function $4(){$4=V;var e,n;n=!j$n(),e=new Ye,Gq=n?new He:e}function Oie(){Oie=V,Yon=new Uh,nun=new Jte,eun=new z0}function Ba(){Ba=V,hb=new Dee(G3,0),a1=new Dee(U3,1)}function oa(){oa=V,Lg=new Fee(RG,0),Ca=new Fee("UP",1)}function Cw(){Cw=V,S0=new Bee(U3,0),tv=new Bee(G3,1)}function n2(e,n,t){OI(),e&&Ct(jX,e,n),e&&Ct(bM,e,t)}function Pie(e,n,t){var i;i=e.Fh(n),i>=0?e.$h(i,t):Dse(e,n,t)}function uBe(e,n){var t;for(nt(n),t=e.a;t;t=t.c)n.Wd(t.g,t.i)}function sC(e,n){var t;t=e.q.getHours(),e.q.setDate(n),C8(e,t)}function sBe(e){var n;return n=new Jx(dp(e.length)),Rce(n,e),n}function ACn(e){function n(){}return n.prototype=e||{},new n}function ICn(e,n){return VHe(e,n)?(VGe(e),!0):!1}function Yh(e,n){if(n==null)throw P(new Pv);return I$n(e,n)}function _Cn(e){if(e.ye())return null;var n=e.n;return tP[n]}function tp(e){return e.Db>>16!=3?null:o(e.Cb,26)}function ua(e){return e.Db>>16!=9?null:o(e.Cb,26)}function lBe(e){return e.Db>>16!=6?null:o(e.Cb,85)}function fBe(e,n){var t;return t=e.Fh(n),t>=0?e.Th(t):lU(e,n)}function _B(e,n,t){var i;i=dqe(e,n,t),e.b=new S_(i.c.length)}function aBe(e){this.a=e,this.b=te(Whn,ve,2005,e.e.length,0,2)}function hBe(){this.a=new ah,this.e=new Ji,this.g=0,this.i=0}function dBe(e,n){_A(this),this.f=n,this.g=e,EI(this),this.he()}function gBe(e,n){return e.b+=n.b,e.c+=n.c,e.d+=n.d,e.a+=n.a,e}function Rie(e){var n;return n=e.d,n=e._i(e.f),Xn(e,n),n.Ob()}function wBe(e,n){var t;return t=new Fte(n),HKe(t,e),new Ku(t)}function $Cn(e){if(e.p!=0)throw P(new Du);return u9(e.f,0)}function OCn(e){if(e.p!=0)throw P(new Du);return u9(e.k,0)}function bBe(e){return e.Db>>16!=7?null:o(e.Cb,241)}function Nie(e){return e.Db>>16!=7?null:o(e.Cb,174)}function pBe(e){return e.Db>>16!=3?null:o(e.Cb,158)}function O4(e){return e.Db>>16!=6?null:o(e.Cb,241)}function wi(e){return e.Db>>16!=11?null:o(e.Cb,26)}function ip(e){return e.Db>>16!=17?null:o(e.Cb,29)}function I9(e,n,t,i,r,c){return new rd(e.e,n,e.Jj(),t,i,r,c)}function xc(e,n,t){return n==null?Tu(e.f,null,t):_w(e.i,n,t)}function $B(e,n){return m.Math.abs(e)<m.Math.abs(n)?e:n}function PCn(e,n){return GA(),dn(),o(n.a,15).a<e}function RCn(e,n){return GA(),dn(),o(n.b,15).a<e}function NCn(e){return Kz(),dn(),o(e.a,82).d.e!=0}function DCn(e){return!e.a&&(e.a=new ae(ht,e,10,11)),e.a.i>0}function Die(e){var n;return Q1(e),n=new Ji,Nt(e,new vMe(n))}function mBe(e,n){var t=e.a=e.a||[];return t[n]||(t[n]=e.te(n))}function FCn(e,n){var t;t=e.q.getHours(),e.q.setMonth(n),C8(e,t)}function Vr(e,n){e.c&&Eu(e.c.g,e),e.c=n,e.c&&ye(e.c.g,e)}function lr(e,n){e.c&&Eu(e.c.a,e),e.c=n,e.c&&ye(e.c.a,e)}function jr(e,n){e.d&&Eu(e.d.e,e),e.d=n,e.d&&ye(e.d.e,e)}function Wc(e,n){e.i&&Eu(e.i.j,e),e.i=n,e.i&&ye(e.i.j,e)}function vBe(e,n,t){this.a=n,this.c=e,this.b=(nt(t),new Ku(t))}function yBe(e,n,t){this.a=n,this.c=e,this.b=(nt(t),new Ku(t))}function kBe(e,n){this.a=e,this.c=ec(this.a),this.b=new MI(n)}function rp(e,n){if(e<0||e>n)throw P(new nu(gfe+e+wfe+n))}function SBe(){SBe=V,Phn=tu(new Di,(kr(),mc),(Mr(),iy))}function Fie(){Fie=V,Rhn=tu(new Di,(kr(),mc),(Mr(),iy))}function EBe(){EBe=V,Ahn=tu(new Di,(kr(),mc),(Mr(),iy))}function CBe(){CBe=V,Ihn=tu(new Di,(kr(),mc),(Mr(),iy))}function jBe(){jBe=V,_hn=tu(new Di,(kr(),mc),(Mr(),iy))}function Lie(){Lie=V,$hn=tu(new Di,(kr(),mc),(Mr(),iy))}function TBe(){TBe=V,Yhn=wt(new Di,(kr(),mc),(Mr(),m7))}function Fs(){Fs=V,tdn=wt(new Di,(kr(),mc),(Mr(),m7))}function MBe(){MBe=V,idn=wt(new Di,(kr(),mc),(Mr(),m7))}function OB(){OB=V,sdn=wt(new Di,(kr(),mc),(Mr(),m7))}function xBe(){xBe=V,i1n=tu(new Di,(I3(),W7),(S8(),Sbe))}function ABe(){ABe=V,yon=it((Rx(),F(D(von,1),be,537,0,[Bq])))}function OI(){OI=V,jX=new Jn,bM=new Jn,Q6n(Lon,new hEe)}function LCn(e,n){var t,i;t=n.c,i=t!=null,i&&s3(e,new ep(n.c))}function IBe(e,n){tEn(e,e.b,e.c),o(e.b.b,68),n&&o(n.b,68).b}function PI(e,n){U(e.Cb,184)&&(o(e.Cb,184).tb=null),ou(e,n)}function PB(e,n){U(e.Cb,88)&&Ep(ls(o(e.Cb,88)),4),ou(e,n)}function BCn(e,n){goe(e,n),U(e.Cb,88)&&Ep(ls(o(e.Cb,88)),2)}function zCn(e,n){return Kt(o(e.c,65).c.e.b,o(n.c,65).c.e.b)}function JCn(e,n){return Kt(o(e.c,65).c.e.a,o(n.c,65).c.e.a)}function Uo(e,n){return ac(),dz(n)?new eI(n,e):new RE(n,e)}function RB(e,n){e.a&&Eu(e.a.k,e),e.a=n,e.a&&ye(e.a.k,e)}function NB(e,n){e.b&&Eu(e.b.f,e),e.b=n,e.b&&ye(e.b.f,e)}function z1(e,n,t){cVe(n,t,e.gc()),this.c=e,this.a=n,this.b=t-n}function a3(e){this.c=new ei,this.b=e.b,this.d=e.c,this.a=e.a}function DB(e){this.a=m.Math.cos(e),this.b=m.Math.sin(e)}function ig(e,n,t,i){this.c=e,this.d=i,RB(this,n),NB(this,t)}function Ze(e,n){this.b=(an(e),e),this.a=n&$p?n:n|64|Ka}function UCn(e,n){jRe(e,lt(vr(bw(n,24),eO)),lt(vr(n,eO)))}function lC(e){return Va(),Go(e,0)>=0?Z1(e):j9(Z1(Vd(e)))}function GCn(){return dl(),F(D(Au,1),be,130,0,[a1e,xu,h1e])}function _Be(e,n,t){return new iU(e,(F4(),Zq),null,!1,n,t)}function $Be(e,n,t){return new iU(e,(F4(),eV),n,t,null,!1)}function OBe(e,n,t){var i;cVe(n,t,e.c.length),i=t-n,uee(e.c,n,i)}function PBe(e,n){var t;return t=o(wp(f3(e.a),n),18),t?t.gc():0}function Bie(e){var n;return Q1(e),n=(kw(),kw(),Kq),u_(e,n)}function RBe(e){for(var n;;)if(n=e.Pb(),!e.Ob())return n}function NBe(e){var n,t;return t=(s4(),n=new uw,n),B4(t,e),t}function DBe(e){var n,t;return t=(s4(),n=new uw,n),B4(t,e),t}function t2(e){return Gk(),U(e.g,9)?o(e.g,9):null}function HCn(){return Aw(),F(D(TV,1),be,368,0,[rb,b0,ib])}function qCn(){return d_(),F(D(D0e,1),be,350,0,[N0e,JP,NV])}function VCn(){return ag(),F(D(gln,1),be,449,0,[GV,b5,G2])}function WCn(){return V4(),F(D(eW,1),be,302,0,[ZV,YV,yT])}function KCn(){return V1(),F(D(nW,1),be,329,0,[kT,tge,Vp])}function XCn(){return id(),F(D(Eln,1),be,315,0,[ST,q2,ry])}function QCn(){return X9(),F(D(Kwe,1),be,352,0,[DW,Wwe,yR])}function ZCn(){return dc(),F(D(Shn,1),be,452,0,[J7,ns,au])}function YCn(){return x_(),F(D(sbe,1),be,381,0,[obe,qW,ube])}function ejn(){return K9(),F(D(lbe,1),be,348,0,[WW,VW,RT])}function njn(){return Y4(),F(D(abe,1),be,349,0,[KW,fbe,U7])}function tjn(){return h_(),F(D(gbe,1),be,351,0,[dbe,XW,hbe])}function ijn(){return A_(),F(D(wbe,1),be,382,0,[QW,x5,cm])}function rjn(){return D9(),F(D(O1e,1),be,384,0,[aV,fV,hV])}function cjn(){return Uf(),F(D(Bp,1),be,237,0,[lo,fu,fo])}function ojn(){return Qu(),F(D(cun,1),be,461,0,[ih,g0,yf])}function ujn(){return Cu(),F(D(uun,1),be,462,0,[Kf,w0,kf])}function sjn(){return W9(),F(D($be,1),be,385,0,[_be,eK,FT])}function ljn(){return zC(),F(D(ope,1),be,386,0,[NR,rpe,cpe])}function fjn(){return U_(),F(D(xpe,1),be,387,0,[Mpe,$K,Tpe])}function ajn(){return M_(),F(D(Cpe,1),be,303,0,[CK,Epe,Spe])}function hjn(){return W_(),F(D(jpe,1),be,436,0,[Y7,LR,jK])}function djn(){return F_(),F(D(Zpe,1),be,430,0,[Xpe,Qpe,FK])}function gjn(){return qC(),F(D(LK,1),be,435,0,[UR,GR,HR])}function wjn(){return e_(),F(D(Kpe,1),be,429,0,[DK,Wpe,Vpe])}function bjn(){return aa(),F(D(v2e,1),be,279,0,[N5,gm,D5])}function pjn(){return sd(),F(D(_2e,1),be,347,0,[iN,w1,gS])}function mjn(){return L9(),F(D(D2e,1),be,300,0,[uM,bX,N2e])}function vjn(){return C3(),F(D(B2e,1),be,281,0,[L2e,bm,lN])}function sa(e){return Xc(F(D(br,1),ve,8,0,[e.i.n,e.n,e.a]))}function yjn(e,n,t){var i;i=new Yr(t.d),Jt(i,e),woe(n,i.a,i.b)}function FBe(e,n,t){var i;i=new k8e,i.b=n,i.a=t,++n.b,ye(e.d,i)}function kjn(e,n,t){var i;return i=M8(e,n,!1),i.b<=n&&i.a<=t}function Sjn(e){if(e.p!=2)throw P(new Du);return lt(e.f)&Zi}function Ejn(e){if(e.p!=2)throw P(new Du);return lt(e.k)&Zi}function en(e,n){if(e<0||e>=n)throw P(new nu(gfe+e+wfe+n))}function Tn(e,n){if(e<0||e>=n)throw P(new KY(gfe+e+wfe+n))}function Cjn(e){return e.Db>>16!=6?null:o(hU(e),241)}function LBe(e,n){var t,i;return i=j4(e,n),t=e.a.dd(i),new B$e(e,t)}function jjn(e,n){var t;return t=(an(e),e).g,$ne(!!t),an(n),t(n)}function Tjn(e){return e.a==(R4(),SN)&&Qyn(e,tJn(e.g,e.b)),e.a}function h3(e){return e.d==(R4(),SN)&&Yyn(e,eGn(e.g,e.b)),e.d}function zie(e,n){M4n.call(this,new Uv(dp(e))),Js(n,Bnn),this.a=n}function BBe(e,n,t){ow.call(this,25),this.b=e,this.a=n,this.c=t}function Ls(e){Ft(),ow.call(this,e),this.c=!1,this.a=!1}function zBe(e,n){Y0.call(this,1,2,F(D(ut,1),Mt,30,15,[e,n]))}function vr(e,n){return q1(jSn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function za(e,n){return q1(TSn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function FB(e,n){return q1(MSn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function Jie(e,n){return oFe(e.a,n)?$te(e.b,o(n,23).g,null):null}function rg(e){return nt(e),U(e,18)?new Ku(o(e,18)):S4(e.Jc())}function LB(e){nI(),this.a=(tn(),U(e,59)?new yF(e):new RA(e))}function Mjn(e){var n;return n=o(QA(e.b),10),new ul(e.a,n,e.c)}function xjn(e,n){var t;t=K(Z(e.a.mf((pt(),YR)))),hnn(e,n,t)}function Ajn(e,n){return F9(),e.c==n.c?Kt(n.d,e.d):Kt(e.c,n.c)}function Ijn(e,n){return F9(),e.c==n.c?Kt(e.d,n.d):Kt(e.c,n.c)}function _jn(e,n){return F9(),e.c==n.c?Kt(e.d,n.d):Kt(n.c,e.c)}function $jn(e,n){return F9(),e.c==n.c?Kt(n.d,e.d):Kt(n.c,e.c)}function Ojn(e,n){e.b=e.b|n.b,e.c=e.c|n.c,e.d=e.d|n.d,e.a=e.a|n.a}function $(e){return Nn(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function Uie(e){return e.b==null||e.b.length==0?"n_"+e.a:"n_"+e.b}function fC(e){return o(ha(e,te(Ih,r1,9,e.c.length,0,1)),199)}function Pjn(e){return nc(wh(bo(ws(e,32)),32),bo(ws(e,32)))}function Gie(e,n){return e&&e.equals?e.equals(n):ne(e)===ne(n)}function cg(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function JBe(e,n){var t;for(t=e+"";t.length<n;)t="0"+t;return t}function Rjn(e,n){var t;t=o(bn(e.g,n),60),cu(n.d,new xOe(e,t))}function Njn(e,n){var t,i;return t=UWe(e),i=UWe(n),t<i?-1:t>i?1:0}function UBe(e,n){var t,i;return t=sz(n),i=t,o(bn(e.c,i),15).a}function BB(e,n,t){var i;i=e.d[n.p],e.d[n.p]=e.d[t.p],e.d[t.p]=i}function Djn(e,n,t){var i;e.n&&n&&t&&(i=new rEe,ye(e.e,i))}function zB(e,n){if(Ui(e.a,n),n.d)throw P(new Hc(ftn));n.d=e}function Hie(e,n){this.a=new ke,this.d=new ke,this.f=e,this.c=n}function GBe(){S3(),this.b=new Jn,this.a=new Jn,this.c=new ke}function HBe(){this.c=new fRe,this.a=new EJe,this.b=new LIe,tOe()}function qBe(e,n,t){this.d=e,this.j=n,this.e=t,this.o=-1,this.p=3}function VBe(e,n,t){this.d=e,this.k=n,this.f=t,this.o=-1,this.p=5}function WBe(e,n,t,i,r,c){qre.call(this,e,n,t,i,r),c&&(this.o=-2)}function KBe(e,n,t,i,r,c){Vre.call(this,e,n,t,i,r),c&&(this.o=-2)}function XBe(e,n,t,i,r,c){ure.call(this,e,n,t,i,r),c&&(this.o=-2)}function QBe(e,n,t,i,r,c){Xre.call(this,e,n,t,i,r),c&&(this.o=-2)}function ZBe(e,n,t,i,r,c){sre.call(this,e,n,t,i,r),c&&(this.o=-2)}function YBe(e,n,t,i,r,c){Wre.call(this,e,n,t,i,r),c&&(this.o=-2)}function eze(e,n,t,i,r,c){Kre.call(this,e,n,t,i,r),c&&(this.o=-2)}function nze(e,n,t,i,r,c){lre.call(this,e,n,t,i,r),c&&(this.o=-2)}function tze(e,n,t,i){xx.call(this,t),this.b=e,this.c=n,this.d=i}function ize(e,n){this.f=e,this.a=(R4(),kN),this.c=kN,this.b=n}function rze(e,n){this.g=e,this.d=(R4(),SN),this.a=SN,this.b=n}function qie(e,n){!e.c&&(e.c=new $i(e,0)),U$(e.c,(Qt(),TS),n)}function Fjn(e,n){return PLn(e,n,U(n,103)&&(o(n,19).Bb&cc)!=0)}function Ljn(e,n){return $Fe(bo(e.q.getTime()),bo(n.q.getTime()))}function cze(e){return HL(e.e.Pd().gc()*e.c.Pd().gc(),16,new $Te(e))}function Bjn(e){return!!e.u&&xo(e.u.a).i!=0&&!(e.n&&xJ(e.n))}function zjn(e){return!!e.a&&as(e.a.a).i!=0&&!(e.b&&AJ(e.b))}function Vie(e,n){return n==0?!!e.o&&e.o.f!=0:SJ(e,n)}function oze(e){return Nn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function _9(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function uze(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function Tr(e,n){this.a=e,xk.call(this,e),rp(n,e.gc()),this.b=n}function sze(e){this.a=te(ur,sn,1,_ce(m.Math.max(8,e))<<1,5,1)}function lze(e){xz.call(this,e,(F4(),Qq),null,!1,null,!1)}function fze(e,n){var t;return t=1-n,e.a[t]=k_(e.a[t],t),k_(e,n)}function aze(e,n){var t,i;return i=vr(e,wc),t=wh(n,32),za(t,i)}function Jjn(e,n,t){var i;return i=o(e.Zb().xc(n),18),!!i&&i.Gc(t)}function hze(e,n,t){var i;return i=o(e.Zb().xc(n),18),!!i&&i.Kc(t)}function dze(e,n,t){var i;i=(nt(e),new Ku(e)),SPn(new vBe(i,n,t))}function aC(e,n,t){var i;i=(nt(e),new Ku(e)),EPn(new yBe(i,n,t))}function Ujn(e,n,t){e.a=n,e.c=t,e.b.a.$b(),Ts(e.d),_b(e.e.a.c,0)}function gze(e,n){var t;e.e=new zY,t=jp(n),sr(t,e.c),LZe(e,t,0)}function Gjn(e,n){return new zL(n,rNe(ec(n.e),e,e),(dn(),!0))}function Hjn(e,n){return m3(),o(M(n,(oo(),iv)),15).a>=e.gc()}function qjn(e){return Fs(),!Ur(e)&&!(!Ur(e)&&e.c.i.c==e.d.i.c)}function Ja(e){return o(ha(e,te(l5,U6,17,e.c.length,0,1)),323)}function Vjn(e){kVe((!e.a&&(e.a=new ae(ht,e,10,11)),e.a),new tSe)}function Wie(){var e,n,t;return n=(t=(e=new uw,e),t),ye(Eve,n),n}function ro(e,n,t,i,r,c){return MHe(e,n,t,c),ooe(e,i),uoe(e,r),e}function wze(e,n,t,i){return e.a+=""+Ll(n==null?Mu:Bc(n),t,i),e}function hC(e,n){if(e<0||e>=n)throw P(new nu(oFn(e,n)));return e}function bze(e,n,t){if(e<0||n<e||n>t)throw P(new nu(MDn(e,n,t)))}function me(e,n,t,i){var r;r=new LZ,r.a=n,r.b=t,r.c=i,vt(e.b,r)}function mi(e,n,t,i){var r;r=new LZ,r.a=n,r.b=t,r.c=i,vt(e.a,r)}function Wjn(e,n,t){var i;i=K$n();try{return t9n(e,n,t)}finally{aMn(i)}}function og(e){var n;return Fc(e)?(n=e,n==-0?0:n):sxn(e)}function pze(e,n){return U(n,45)?PJ(e.a,o(n,45)):!1}function mze(e,n){return U(n,45)?PJ(e.a,o(n,45)):!1}function vze(e,n){return U(n,45)?PJ(e.a,o(n,45)):!1}function Kjn(e,n){return e.a<=e.b?(n.Bd(e.a++),!0):!1}function Xjn(e){return e2(e).dc()?!1:(F5n(e,new de),!0)}function Kie(e){var n;return L1(e),n=new Pr,Lm(e.a,new bMe(n)),n}function RI(e){var n;return L1(e),n=new Qr,Lm(e.a,new pMe(n)),n}function Qjn(e){if(!("stack"in e))try{throw e}catch{}return e}function NI(e){return new ru((Js(e,iG),o_(nc(nc(5,e),e/10|0))))}function yze(e){return o(ha(e,te(Psn,Ftn,12,e.c.length,0,1)),2004)}function Zjn(e){return HL(e.e.Pd().gc()*e.c.Pd().gc(),273,new _Te(e))}function kze(){kze=V,h0n=it((Kx(),F(D(Ype,1),be,477,0,[BK])))}function Sze(){Sze=V,g0n=it((Xx(),F(D(d0n,1),be,546,0,[zK])))}function Eze(){Eze=V,$0n=it((Hk(),F(D(yme,1),be,527,0,[qT])))}function Cze(){Cze=V,pbe=iLe(ge(1),ge(4)),bbe=iLe(ge(1),ge(2))}function DI(){DI=V,dK=new zee("DFS",0),Ybe=new zee("BFS",1)}function FI(){FI=V,tW=new Oee(N6,0),ige=new Oee("TOP_LEFT",1)}function Xie(e,n,t){this.d=new _xe(this),this.e=e,this.i=n,this.f=t}function Qie(e,n,t,i){this.d=e,this.n=n,this.g=t,this.o=i,this.p=-1}function Yjn(e,n,t){e.d&&Eu(e.d.e,e),e.d=n,e.d&&K0(e.d.e,t,e)}function eTn(e,n,t){var i;return i=s6(t),D$(e.n,i,n),D$(e.o,n,t),n}function P4(e,n){var t,i;return t=sp(e,n),i=null,t&&(i=t.qe()),i}function $9(e,n){var t,i;return t=Yh(e,n),i=null,t&&(i=t.qe()),i}function jw(e,n){var t,i;return t=Yh(e,n),i=null,t&&(i=t.ne()),i}function ed(e,n){var t,i;return t=Yh(e,n),i=null,t&&(i=Kue(t)),i}function O9(e,n){HVn(n,e),xte(e.d),xte(o(M(e,(Se(),dR)),213))}function JB(e,n){qVn(n,e),Ate(e.d),Ate(o(M(e,(Se(),dR)),213))}function J1(e,n){an(n),e.b=e.b-1&e.a.length-1,Oi(e.a,e.b,n),XWe(e)}function Zie(e,n){an(n),Oi(e.a,e.c,n),e.c=e.c+1&e.a.length-1,XWe(e)}function Kn(e){return Nn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function jze(e){if(e.e.g!=e.b)throw P(new rl);return!!e.c&&e.d>0}function cp(e){return U(e,18)?o(e,18).dc():!e.Jc().Ob()}function nTn(e){return new Ze(Lxn(o(e.a.kd(),18).gc(),e.a.jd()),16)}function Tze(e){var n;n=e.Dh(),this.a=U(n,72)?o(n,72).Gi():n.Jc()}function Yie(e,n){var t;return t=o(fa(e.b,n),66),!t&&(t=new ei),t}function tTn(e,n){var t;t=n.a,Vr(t,n.c.d),jr(t,n.d.d),ap(t.a,e.n)}function Mze(e,n,t,i){return U(t,59)?new XRe(e,n,t,i):new Wte(e,n,t,i)}function iTn(){return wf(),F(D(Zsn,1),be,413,0,[Hp,a5,h5,jV])}function rTn(){return Iw(),F(D($un,1),be,409,0,[aT,fT,cV,oV])}function cTn(){return W4(),F(D(Ssn,1),be,408,0,[tb,Jp,zp,L2])}function oTn(){return F4(),F(D(lP,1),be,309,0,[Qq,Zq,Yq,eV])}function uTn(){return M3(),F(D(D1e,1),be,383,0,[b7,N1e,pV,mV])}function sTn(){return __(),F(D(zsn,1),be,367,0,[CV,NP,DP,bT])}function lTn(){return t8(),F(D(R0e,1),be,301,0,[y7,O0e,mT,P0e])}function fTn(){return vp(),F(D(LW,1),be,203,0,[kR,FW,nv,ev])}function aTn(){return fd(),F(D(rbe,1),be,269,0,[y0,ibe,JW,UW])}function hTn(){return dg(),F(D(qhn,1),be,404,0,[NT,G7,jR,CR])}function dTn(e){var n;return e.j==(Ee(),Ln)&&(n=MQe(e),Lu(n,An))}function gTn(){return I3(),F(D(ybe,1),be,398,0,[AR,V7,W7,K7])}function xze(e,n){return o(Es(Qb(o(Ht(e.k,n),16).Mc(),z2)),113)}function Aze(e,n){return o(Es(c3(o(Ht(e.k,n),16).Mc(),z2)),113)}function wTn(e,n){return Xv(new pe(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)}function bTn(){return p$(),F(D(P1n,1),be,401,0,[AK,TK,xK,MK])}function pTn(){return u$(),F(D(kpe,1),be,354,0,[EK,vpe,ype,mpe])}function mTn(){return V9(),F(D(Zbe,1),be,353,0,[hK,PR,aK,fK])}function vTn(){return n6(),F(D(m2e,1),be,278,0,[nM,tN,b2e,p2e])}function yTn(){return ld(),F(D(gX,1),be,222,0,[dX,tM,F5,Cy])}function kTn(){return Gs(),F(D(Mgn,1),be,292,0,[rM,Oh,j0,iM])}function STn(){return JI(),F(D(hM,1),be,288,0,[z2e,U2e,mX,J2e])}function ETn(){return Is(),F(D(vS,1),be,380,0,[lM,Ug,sM,wm])}function CTn(){return G_(),F(D(V2e,1),be,326,0,[vX,G2e,q2e,H2e])}function jTn(){return $_(),F(D(Hgn,1),be,407,0,[yX,K2e,W2e,X2e])}function sl(e,n,t){return n<0?lU(e,t):o(t,69).uk().zk(e,e.ei(),n)}function TTn(e,n,t){var i;return i=s6(t),D$(e.f,i,n),Ct(e.g,n,t),n}function MTn(e,n,t){var i;return i=s6(t),D$(e.p,i,n),Ct(e.q,n,t),n}function Ize(e){var n,t;return n=($1(),t=new FD,t),e&&x$(n,e),n}function ere(e){var n;return n=e.$i(e.i),e.i>0&&_o(e.g,0,n,0,e.i),n}function d3(e){return Gk(),U(e.g,156)?o(e.g,156):null}function xTn(e){return OI(),zo(jX,e)?o(bn(jX,e),342).Pg():null}function ATn(e){e.a=null,e.e=null,_b(e.b.c,0),_b(e.f.c,0),e.c=null}function _ze(e,n){var t;for(t=e.j.c.length;t<n;t++)ye(e.j,e.Mg())}function $ze(e,n,t,i){var r;return r=i[n.g][t.g],K(Z(M(e.a,r)))}function Oze(e,n){Qx();var t;return t=o(bn(pN,e),58),!t||t.dk(n)}function ITn(e){if(e.p!=1)throw P(new Du);return lt(e.f)<<24>>24}function _Tn(e){if(e.p!=1)throw P(new Du);return lt(e.k)<<24>>24}function $Tn(e){if(e.p!=7)throw P(new Du);return lt(e.k)<<16>>16}function OTn(e){if(e.p!=7)throw P(new Du);return lt(e.f)<<16>>16}function i2(e,n){return n.e==0||e.e==0?a7:(k6(),bU(e,n))}function Pze(e,n){return ne(n)===ne(e)?"(this Map)":n==null?Mu:Bc(n)}function PTn(e,n,t){return nB(Z(qc(Mc(e.f,n))),Z(qc(Mc(e.f,t))))}function RTn(e,n,t){var i;i=o(bn(e.g,t),60),ye(e.a.c,new rc(n,i))}function Rze(e,n){var t;return t=new zv,e.Ed(t),t.a+="..",n.Fd(t),t.a}function Lf(e){var n;for(n=0;e.Ob();)e.Pb(),n=nc(n,1);return o_(n)}function NTn(e,n,t,i,r){var c;c=WLn(r,t,i),ye(n,ZDn(r,c)),qNn(e,r,n)}function Nze(e,n,t){e.i=0,e.e=0,n!=t&&(vqe(e,n,t),mqe(e,n,t))}function Dze(e,n,t,i){this.e=null,this.c=e,this.d=n,this.a=t,this.b=i}function nre(e,n,t,i,r){this.i=e,this.a=n,this.e=t,this.j=i,this.f=r}function Fze(e,n){Aie.call(this),this.a=e,this.b=n,ye(this.a.b,this)}function nd(e,n){Va(),Y0.call(this,e,1,F(D(ut,1),Mt,30,15,[n]))}function DTn(e,n,t){return C6(e,n,t,U(n,103)&&(o(n,19).Bb&cc)!=0)}function LI(e,n,t){return L$(e,n,t,U(n,103)&&(o(n,19).Bb&cc)!=0)}function FTn(e,n,t){return BLn(e,n,t,U(n,103)&&(o(n,19).Bb&cc)!=0)}function tre(e,n){return e==(pn(),xi)&&n==xi?4:e==xi||n==xi?8:32}function LTn(e,n){return o(n==null?qc(Mc(e.f,null)):Kk(e.i,n),290)}function Lze(e,n){var t;for(t=n;t;)Hb(e,t.i,t.j),t=wi(t);return e}function xo(e){return e.n||(ls(e),e.n=new hFe(e,yc,e),Rc(e)),e.n}function mh(e,n){ac();var t;return t=o(e,69).tk(),cDn(t,n),t.vl(n)}function P9(e){return Nn(e.a<e.c.a.length),e.b=e.a,eGe(e),e.c.b[e.b]}function ire(e){e.b!=e.c&&(e.a=te(ur,sn,1,8,5,1),e.b=0,e.c=0)}function rre(e,n){var t;t=e.q.getHours(),e.q.setFullYear(n+u0),C8(e,t)}function Bze(e,n){X4();var t;return t=e.j.g-n.j.g,t!=0?t:0}function BTn(e,n,t){if(t){var i=t.me();e.a[n]=i(t)}else delete e.a[n]}function UB(e,n,t){if(t){var i=t.me();t=i(t)}else t=void 0;e.a[n]=t}function zze(e){if(e<0)throw P(new $_e("Negative array size: "+e))}function Jze(e){U(e,206)&&!xe(Me(e.mf((pt(),ZR))))&&XUn(o(e,26))}function GB(e){return e.c&&e.d?Uie(e.c)+"->"+Uie(e.d):"e_"+gw(e)}function zTn(e,n){var t;return t=n!=null?Jo(e,n):qc(Mc(e.f,n)),TA(t)}function JTn(e,n){var t;return t=n!=null?Jo(e,n):qc(Mc(e.f,n)),TA(t)}function Uze(e,n){var t;for(t=0;t<n;++t)Oi(e,t,new sY(o(e[t],45)))}function UTn(e,n){return Ld(),Xn(fe(e.a),n)}function GTn(e,n){return Ld(),Xn(fe(e.a),n)}function op(e,n){Ft(),ow.call(this,e),this.a=n,this.c=-1,this.b=-1}function up(e,n,t,i){qBe.call(this,1,t,i),this.c=e,this.b=n}function HB(e,n,t,i){VBe.call(this,1,t,i),this.c=e,this.b=n}function qB(e,n,t,i,r,c,s){yz.call(this,n,i,r,c,s),this.c=e,this.a=t}function ug(e,n,t){this.e=e,this.a=ur,this.b=sYe(n),this.c=n,this.d=t}function VB(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function cre(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function Gze(e){this.c=e,this.a=o(Jl(e),159),this.b=this.a.hk().ti()}function U1(){Jn.call(this),eNe(this),this.d.b=this.d,this.d.a=this.d}function Ei(e,n,t,i){var r;r=new os,r.c=n,r.b=t,r.a=i,i.b=t.a=r,++e.b}function Xu(e,n){var t;return n.b.Kb(zUe(e,n.c.Ve(),(t=new kMe(n),t)))}function HTn(e,n){var t;return zze(n),t=e.slice(0,n),t.length=n,uz(t,e)}function BI(e){var n;return e?new Fte(e):(n=new ah,Tz(n,e),n)}function qTn(e,n){var t;for(t=e.d-1;t>=0&&e.a[t]===n[t];t--);return t<0}function VTn(e,n){var t,i;i=!1;do t=uqe(e,n),i=i|t;while(t);return i}function R9(){R9=V,q7=new Nee("UPPER",0),H7=new Nee("LOWER",1)}function zI(){zI=V,hW=new Pee(qf,0),aW=new Pee("ALTERNATING",1)}function JI(){JI=V,z2e=new GDe,U2e=new TFe,mX=new ZLe,J2e=new MFe}function Hze(){Hze=V,lln=it((QI(),F(D($0e,1),be,422,0,[_0e,RV])))}function qze(){qze=V,dln=it((xC(),F(D(z0e,1),be,419,0,[UP,B0e])))}function Vze(){Vze=V,pln=it((SC(),F(D(G0e,1),be,476,0,[U0e,HP])))}function Wze(){Wze=V,jln=it((FI(),F(D(rge,1),be,420,0,[tW,ige])))}function Kze(){Kze=V,xln=it((zI(),F(D(mge,1),be,423,0,[hW,aW])))}function Xze(){Xze=V,khn=it((CC(),F(D(cbe,1),be,421,0,[GW,HW])))}function Qze(){Qze=V,Zhn=it((R9(),F(D(Qhn,1),be,518,0,[q7,H7])))}function Zze(){Zze=V,udn=it((oa(),F(D(odn,1),be,508,0,[Lg,Ca])))}function Yze(){Yze=V,cdn=it((Ba(),F(D(rdn,1),be,509,0,[hb,a1])))}function eJe(){eJe=V,Sdn=it((Bf(),F(D(kdn,1),be,515,0,[om,k0])))}function nJe(){nJe=V,Adn=it((Cw(),F(D(xdn,1),be,454,0,[S0,tv])))}function tJe(){tJe=V,t1n=it((DI(),F(D(epe,1),be,425,0,[dK,Ybe])))}function iJe(){iJe=V,u1n=it((y_(),F(D(npe,1),be,487,0,[RR,cv])))}function rJe(){rJe=V,f1n=it((YI(),F(D(ipe,1),be,426,0,[tpe,vK])))}function cJe(){cJe=V,o0n=it((HI(),F(D(qpe,1),be,478,0,[NK,Hpe])))}function oJe(){oJe=V,w0n=it((bC(),F(D(eme,1),be,428,0,[JK,qR])))}function uJe(){uJe=V,O0n=it((RC(),F(D(Sme,1),be,427,0,[WR,kme])))}function sJe(){sJe=V,Jun=it((c_(),F(D(m1e,1),be,424,0,[uV,dP])))}function lJe(){lJe=V,Fsn=it((U4(),F(D(Dsn,1),be,502,0,[wT,yV])))}function UI(e){Oue(),jRe(this,lt(vr(bw(e,24),eO)),lt(vr(e,eO)))}function WTn(e){return(e.k==(pn(),xi)||e.k==Wi)&&zt(e,(he(),C7))}function KTn(e,n,t){return o(n==null?Tu(e.f,null,t):_w(e.i,n,t),290)}function XTn(){return Qi(),F(D(hS,1),be,86,0,[xa,Dc,Oc,Ma,Sl])}function QTn(){return Ee(),F(D(uc,1),Eo,64,0,[eo,En,An,Ln,Cn])}function ZTn(e){return Fx(),function(){return Wjn(e,this,arguments)}}function fJe(e,n){var t;return t=n.jd(),new lw(t,e.e.pc(t,o(n.kd(),18)))}function aJe(e,n){var t,i;return t=n.jd(),i=e.De(t),!!i&&Mo(i.e,n.kd())}function Jr(e,n){var t,i;for(an(n),i=e.Jc();i.Ob();)t=i.Pb(),n.Ad(t)}function Bs(e,n,t){var i;return i=(en(n,e.c.length),e.c[n]),e.c[n]=t,i}function ore(e,n){var t,i;for(t=n,i=0;t>0;)i+=e.a[t],t-=t&-t;return i}function hJe(e,n){var t;for(t=n;t;)Hb(e,-t.i,-t.j),t=wi(t);return e}function YTn(e,n){var t;return t=e.a.get(n),t??te(ur,sn,1,0,5,1)}function r2(e,n){return(Q1(e),l4(new Qe(e,new Ore(n,e.a)))).zd(Y3)}function eMn(){return kr(),F(D(P1e,1),be,363,0,[Sf,Ah,Oo,Po,mc])}function dJe(e){Ann(),EIe(this),this.a=new ei,Jce(this,e),vt(this.a,e)}function gJe(){wL(this),this.b=new pe(Ci,Ci),this.a=new pe(hr,hr)}function WB(e){GI(),!Sa&&(this.c=e,this.e=!0,this.a=new ke)}function GI(){GI=V,Sa=!0,qon=!1,Von=!1,Kon=!1,Won=!1}function HI(){HI=V,NK=new Gee(_fe,0),Hpe=new Gee("TARGET_WIDTH",1)}function nMn(){return w$(),F(D(s1n,1),be,364,0,[pK,gK,mK,wK,bK])}function tMn(){return yp(),F(D(eln,1),be,371,0,[pT,BP,zP,LP,FP])}function iMn(){return o8(),F(D(Qwe,1),be,328,0,[Xwe,BW,zW,L7,B7])}function rMn(){return xs(),F(D(pge,1),be,165,0,[TT,M7,md,x7,Og])}function cMn(){return m8(),F(D(l0n,1),be,369,0,[ov,py,cS,rS,HT])}function oMn(){return oj(),F(D(rme,1),be,330,0,[nme,UK,ime,GK,tme])}function uMn(){return qa(),F(D(ja,1),be,160,0,[on,Bi,Zf,d1,yd])}function sMn(){return w2(),F(D(bS,1),be,257,0,[T0,cM,$2e,wS,O2e])}function KB(e,n){var t;return t=o(fa(e.d,n),21),t||o(fa(e.e,n),21)}function wJe(e){this.b=e,$n.call(this,e),this.a=o(Sn(this.b.a,4),129)}function bJe(e){this.b=e,Zv.call(this,e),this.a=o(Sn(this.b.a,4),129)}function pJe(e,n){this.c=0,this.b=n,PPe.call(this,e,17493),this.a=this.c}function ff(e,n,t,i,r){CJe.call(this,n,i,r),this.c=e,this.b=t}function ure(e,n,t,i,r){qBe.call(this,n,i,r),this.c=e,this.a=t}function sre(e,n,t,i,r){VBe.call(this,n,i,r),this.c=e,this.a=t}function lre(e,n,t,i,r){CJe.call(this,n,i,r),this.c=e,this.a=t}function fre(e,n,t){e.a.c.length=0,RHn(e,n,t),e.a.c.length==0||uUn(e,n)}function dC(e){e.i=0,SE(e.b,null),SE(e.c,null),e.a=null,e.e=null,++e.g}function lMn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function are(e,n){return U(n,144)?Ke(e.c,o(n,144).c):!1}function mJe(e){var n;return e.c||(n=e.r,U(n,88)&&(e.c=o(n,29))),e.c}function ls(e){return e.t||(e.t=new hIe(e),e8(new I_e(e),0,e.t)),e.t}function Ur(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function g3(e,n){return n==0||e.e==0?e:n>0?LVe(e,n):TZe(e,-n)}function hre(e,n){return n==0||e.e==0?e:n>0?TZe(e,n):LVe(e,-n)}function In(e){if(Dn(e))return e.c=e.a,e.a.Pb();throw P(new Gc)}function vJe(e){var n;return n=e.length,Ke(gn.substr(gn.length-n,n),e)}function yJe(e){var n,t;return n=e.c.i,t=e.d.i,n.k==(pn(),Wi)&&t.k==Wi}function XB(e){var n,t,i;return n=e&ps,t=e>>22&ps,i=e<0?dd:0,du(n,t,i)}function fMn(e,n){var t,i;t=o(r_n(e.c,n),18),t&&(i=t.gc(),t.$b(),e.d-=i)}function aMn(e){e&&dxn((HY(),Dde)),--iP,e&&rP!=-1&&(X6n(rP),rP=-1)}function dre(e){J6n.call(this,e==null?Mu:Bc(e),U(e,80)?o(e,80):null)}function QB(e){var n;return n=new Sw,po(n,e),oe(n,(Se(),$c),null),n}function ZB(e,n,t){var i;return i=e.Fh(n),i>=0?e.Ih(i,t,!0):Lw(e,n,t)}function hMn(e,n,t){return Kt(Xv(l6(e),ec(n.b)),Xv(l6(e),ec(t.b)))}function dMn(e,n,t){return Kt(Xv(l6(e),ec(n.e)),Xv(l6(e),ec(t.e)))}function gMn(e,n){return m.Math.min(G1(n.a,e.d.d.c),G1(n.b,e.d.d.c))}function kJe(e,n,t){var i;i=new hne(e.a),J9(i,e.a.a),Tu(i.f,n,t),e.a.a=i}function gre(e,n,t,i){var r;for(r=0;r<aP;r++)lI(e.a[r][n.g],t,i[n.g])}function wre(e,n,t,i){var r;for(r=0;r<iV;r++)fI(e.a[n.g][r],t,i[n.g])}function Ht(e,n){var t;return t=o(e.c.xc(n),18),!t&&(t=e.ic(n)),e.pc(n,t)}function wMn(e){var n;return n=(nt(e),e?new Ku(e):S4(e.Jc())),uj(n),z_(n)}function af(e){var n,t;return nt(e),n=mEn(e.length),t=new ru(n),Rce(t,e),t}function N9(e){var n,t;++e.j,n=e.g,t=e.i,e.g=null,e.i=0,e.Mi(t,n),e.Li()}function gC(e,n){e.Zi(e.i+1),d9(e,e.i,e.Xi(e.i,n)),e.Ki(e.i++,n),e.Li()}function w3(e,n){return mr(n)?n==null?kse(e.f,null):BHe(e.i,n):kse(e.f,n)}function Hd(e,n){var t;return t=(en(n,e.c.length),e.c[n]),uee(e.c,n,1),t}function YB(e,n,t,i){var r;return r=te(ut,Mt,30,n,15,1),aNn(r,e,n,t,i),r}function td(e,n){return e.a?mt(e.a,e.b):e.a=new Ns(e.d),l9(e.a,n),e}function bre(e,n){if(e<0||e>n)throw P(new nu(rse(e,n,"index")));return e}function pre(e){var n;return n=e.e+e.f,isNaN(n)&&UA(e.d)?e.d:n}function bMn(e,n){var t;t=e.q.getHours()+(n/60|0),e.q.setMinutes(n),C8(e,t)}function mre(e,n){var t,i;return t=(an(e),e),i=(an(n),n),t==i?0:t<i?-1:1}function R4(){R4=V;var e,n;kN=(s4(),n=new Ix,n),SN=(e=new oF,e)}function SJe(){this.g=new AY,this.b=new AY,this.a=new ke,this.k=new ke}function qI(){this.e=new ke,this.c=new ke,this.d=new ke,this.b=new ke}function EJe(){this.a=new OY,this.b=new HIe,this.d=new cE,this.e=new Mk}function la(e){this.c=e,this.a=new O(this.c.a),this.b=new O(this.c.b)}function CJe(e,n,t){this.d=e,this.k=n?1:0,this.f=t?1:0,this.o=-1,this.p=0}function jJe(e,n,t){this.a=e,this.c=n,this.d=t,ye(n.e,this),ye(t.b,this)}function TJe(e,n,t){xx.call(this,t),this.b=e,this.c=n,this.d=(gJ(),IX)}function MJe(e,n){OPe.call(this,n.xd(),n.wd()&-6),an(e),this.a=e,this.b=n}function xJe(e,n){PPe.call(this,n.xd(),n.wd()&-6),an(e),this.a=e,this.b=n}function vre(e,n){MA.call(this,n.xd(),n.wd()&-6),an(e),this.a=e,this.b=n}function VI(e,n,t){this.a=e,this.b=n,this.c=t,ye(e.t,this),ye(n.i,this)}function wC(){this.b=new ei,this.a=new ei,this.b=new ei,this.a=new ei}function pMn(e,n){var t;return t=XHn(e,n),e.b=new S_(t.c.length),gHn(e,t)}function mMn(e,n,t){var i;return++e.e,--e.f,i=o(e.d[n].ed(t),136),i.kd()}function AJe(e){var n;return e.a||(n=e.r,U(n,159)&&(e.a=o(n,159))),e.a}function yre(e){if(e.a){if(e.e)return yre(e.e)}else return e;return null}function vMn(e,n){return e.p<n.p?1:e.p>n.p?-1:0}function IJe(e,n){return zo(e.a,n)?(w3(e.a,n),!0):!1}function yMn(e){var n,t;return n=e.jd(),t=o(e.kd(),18),KE(t.Lc(),new xTe(n))}function ez(e){var n;return n=e.b,n.b==0?null:o(Ao(n,0),65).b}function WI(e,n){return an(n),e.c<e.d?(e.Qe(n,e.c++),!0):!1}function b3(e,n,t){return hC(n,e.e.Pd().gc()),hC(t,e.c.Pd().gc()),e.a[n][t]}function kMn(e){var n;return Q1(e),n=new jDe(e,e.a.e,e.a.d|4),new Jne(e,n)}function _Je(e){var n;for(L1(e),n=0;e.a.zd(new Wy);)n=nc(n,1);return n}function kre(e,n,t){var i,r;for(i=0,r=0;r<n.length;r++)i+=e.sg(n[r],i,t)}function KI(e,n,t,i){this.f=e,this.e=n,this.d=t,this.b=i,this.c=i?i.d:null}function ru(e){wL(this),QE(e>=0,"Initial capacity must not be negative")}function XI(){XI=V,oS=new Wt("org.eclipse.elk.labels.labelManager")}function $Je(){$Je=V,T0e=new ai("separateLayerConnections",(__(),CV))}function Bf(){Bf=V,om=new Lee("REGULAR",0),k0=new Lee("CRITICAL",1)}function bC(){bC=V,JK=new Hee("FIXED",0),qR=new Hee("CENTER_NODE",1)}function QI(){QI=V,_0e=new Iee("QUADRATIC",0),RV=new Iee("SCANLINE",1)}function OJe(){OJe=V,aln=it((d_(),F(D(D0e,1),be,350,0,[N0e,JP,NV])))}function PJe(){PJe=V,wln=it((ag(),F(D(gln,1),be,449,0,[GV,b5,G2])))}function RJe(){RJe=V,kln=it((V4(),F(D(eW,1),be,302,0,[ZV,YV,yT])))}function NJe(){NJe=V,Sln=it((V1(),F(D(nW,1),be,329,0,[kT,tge,Vp])))}function DJe(){DJe=V,Cln=it((id(),F(D(Eln,1),be,315,0,[ST,q2,ry])))}function FJe(){FJe=V,oln=it((Aw(),F(D(TV,1),be,368,0,[rb,b0,ib])))}function LJe(){LJe=V,bhn=it((X9(),F(D(Kwe,1),be,352,0,[DW,Wwe,yR])))}function BJe(){BJe=V,Ehn=it((dc(),F(D(Shn,1),be,452,0,[J7,ns,au])))}function zJe(){zJe=V,Chn=it((x_(),F(D(sbe,1),be,381,0,[obe,qW,ube])))}function JJe(){JJe=V,jhn=it((K9(),F(D(lbe,1),be,348,0,[WW,VW,RT])))}function UJe(){UJe=V,Thn=it((Y4(),F(D(abe,1),be,349,0,[KW,fbe,U7])))}function GJe(){GJe=V,Mhn=it((h_(),F(D(gbe,1),be,351,0,[dbe,XW,hbe])))}function HJe(){HJe=V,xhn=it((A_(),F(D(wbe,1),be,382,0,[QW,x5,cm])))}function qJe(){qJe=V,$dn=it((W9(),F(D($be,1),be,385,0,[_be,eK,FT])))}function VJe(){VJe=V,a1n=it((zC(),F(D(ope,1),be,386,0,[NR,rpe,cpe])))}function WJe(){WJe=V,$1n=it((M_(),F(D(Cpe,1),be,303,0,[CK,Epe,Spe])))}function KJe(){KJe=V,O1n=it((W_(),F(D(jpe,1),be,436,0,[Y7,LR,jK])))}function XJe(){XJe=V,u0n=it((e_(),F(D(Kpe,1),be,429,0,[DK,Wpe,Vpe])))}function QJe(){QJe=V,s0n=it((F_(),F(D(Zpe,1),be,430,0,[Xpe,Qpe,FK])))}function ZJe(){ZJe=V,a0n=it((qC(),F(D(LK,1),be,435,0,[UR,GR,HR])))}function YJe(){YJe=V,F1n=it((U_(),F(D(xpe,1),be,387,0,[Mpe,$K,Tpe])))}function eUe(){eUe=V,gsn=it((D9(),F(D(O1e,1),be,384,0,[aV,fV,hV])))}function nUe(){nUe=V,Xon=it((dl(),F(D(Au,1),be,130,0,[a1e,xu,h1e])))}function tUe(){tUe=V,run=it((Uf(),F(D(Bp,1),be,237,0,[lo,fu,fo])))}function iUe(){iUe=V,oun=it((Qu(),F(D(cun,1),be,461,0,[ih,g0,yf])))}function rUe(){rUe=V,sun=it((Cu(),F(D(uun,1),be,462,0,[Kf,w0,kf])))}function cUe(){cUe=V,Sgn=it((aa(),F(D(v2e,1),be,279,0,[N5,gm,D5])))}function oUe(){oUe=V,zgn=it((C3(),F(D(B2e,1),be,281,0,[L2e,bm,lN])))}function uUe(){uUe=V,Tgn=it((sd(),F(D(_2e,1),be,347,0,[iN,w1,gS])))}function sUe(){sUe=V,Fgn=it((L9(),F(D(D2e,1),be,300,0,[uM,bX,N2e])))}function zf(e,n){return!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),hJ(e.o,n)}function SMn(e){return!e.g&&(e.g=new mx),!e.g.d&&(e.g.d=new lIe(e)),e.g.d}function EMn(e){return!e.g&&(e.g=new mx),!e.g.b&&(e.g.b=new sIe(e)),e.g.b}function pC(e){return!e.g&&(e.g=new mx),!e.g.c&&(e.g.c=new aIe(e)),e.g.c}function CMn(e){return!e.g&&(e.g=new mx),!e.g.a&&(e.g.a=new fIe(e)),e.g.a}function jMn(e,n,t,i){return t&&(i=t.Oh(n,bi(t.Ah(),e.c.sk()),null,i)),i}function TMn(e,n,t,i){return t&&(i=t.Qh(n,bi(t.Ah(),e.c.sk()),null,i)),i}function nz(e,n,t,i){var r;return r=te(ut,Mt,30,n+1,15,1),JUn(r,e,n,t,i),r}function te(e,n,t,i,r,c){var s;return s=zWe(r,i),r!=10&&F(D(e,c),n,t,r,s),s}function MMn(e,n,t){var i,r;for(r=new H4(n,e),i=0;i<t;++i)i$(r);return r}function tz(e,n,t){var i,r;if(t!=null)for(i=0;i<n;++i)r=t[i],e.Oi(i,r)}function xMn(e,n){var t;e.C&&(t=o(Ec(e.b,n),127).n,t.d=e.C.d,t.a=e.C.a)}function Sre(e){var n,t,i,r;r=e.d,n=e.a,t=e.b,i=e.c,e.d=t,e.a=i,e.b=r,e.c=n}function Ere(e,n){var t;return t=new zh,t.c=!0,t.d=n.kd(),Uen(e,n.jd(),t)}function AMn(e,n){var t;t=e.q.getHours()+(n/3600|0),e.q.setSeconds(n),C8(e,t)}function Cre(e,n){var t,i;return t=n,i=TI(S4(new lz(e,t))),tI(new lz(e,t)),i}function IMn(e,n){n.Tg("Label management",1),TA(M(e,(XI(),oS))),n.Ug()}function jre(e,n,t){o(e.b,68),o(e.b,68),o(e.b,68),cu(e.a,new lDe(t,n,e))}function _Mn(e,n,t,i){HYe(e,n,t,C6(e,n,i,U(n,103)&&(o(n,19).Bb&cc)!=0))}function _r(e,n,t){if(e<0||n>t||n<e)throw P(new KY(nO+e+dfe+n+ffe+t))}function lUe(e,n,t){this.d=new Ox,this.c=new Jn,this.a=e,this.e=n,this.c=t}function iz(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new ke)}function rz(e,n){eA.call(this,e,n),this.a=te(NWn,X$,438,2,0,1),this.b=!0}function Tre(e){bqe.call(this,e,0),eNe(this),this.d.b=this.d,this.d.a=this.d}function Mre(e){this.e=e,this.b=this.e.a.entries(),this.a=te(ur,sn,1,0,5,1)}function fUe(){fUe=V,Ohn=tu(wt(new Di,(kr(),Sf),(Mr(),kV)),mc,iy)}function $Mn(){return _3(),F(D(w5,1),be,231,0,[g5,v7,d5,qp,U2,J2])}function OMn(){return y$(),F(D(J0e,1),be,284,0,[qV,HV,WV,VV,KV,GP])}function PMn(){return rj(),F(D(K0e,1),be,282,0,[qP,q0e,W0e,H0e,V0e,XV])}function RMn(){return w6(),F(D(nge,1),be,283,0,[k7,Q0e,ege,Y0e,Z0e,X0e])}function NMn(){return yh(),F(D(Mme,1),be,256,0,[XK,VT,WT,QR,KR,XR])}function DMn(){return pg(),F(D(eX,1),be,299,0,[YK,fS,lS,ZK,uS,sS])}function FMn(){return Zu(),F(D(rN,1),be,280,0,[x0,Sd,oM,mS,pS,jy])}function LMn(){return yr(),F(D(P2e,1),be,102,0,[M0,Aa,L5,Jg,Rh,Ro])}function BMn(){return m$(),F(D(j2e,1),be,327,0,[wX,S2e,C2e,y2e,E2e,k2e])}function xre(e){var n;return!e.a&&e.b!=-1&&(n=e.c.Ah(),e.a=cn(n,e.b)),e.a}function Xn(e,n){return e.Qi()&&e.Gc(n)?!1:(e.Fi(n),!0)}function Jf(e,n){return cC(n,"Horizontal alignment cannot be null"),e.b=n,e}function aUe(e,n,t){Ft();var i;return i=r0(e,n),t&&i&&rEn(e)&&(i=null),i}function Are(e,n,t){var i;i=e.b[t.c.p][t.p],i.b+=n.b,i.c+=n.c,i.a+=n.a,++i.a}function Ire(e,n,t){var i;e.d[n.g]=t,i=e.g.c,i[n.g]=m.Math.max(i[n.g],t+1)}function G1(e,n){var t,i;return t=e.a-n.a,i=e.b-n.b,m.Math.sqrt(t*t+i*i)}function _re(e,n){var t,i;for(i=n.Jc();i.Ob();)t=o(i.Pb(),37),mYe(e,t,0,0)}function qd(e,n,t){var i,r;for(r=e.Jc();r.Ob();)i=o(r.Pb(),37),S6(i,n,t)}function zMn(e){var n,t;for(t=Qn(e.a,0);t.b!=t.d.c;)n=o(Kn(t),65),ase(n)}function JMn(e,n){var t;return t=bn(e.k,n),zse(e,n),CU(e,n),_se(e,n,t),null}function N4(e,n){var t;return t=e.Fh(n),t>=0?e.Ih(t,!0,!0):Lw(e,n,!0)}function mC(e,n){var t,i,r;return r=e.r,i=e.d,t=M8(e,n,!0),t.b!=r||t.a!=i}function hUe(e,n){return aOe(e.e,n)||wg(e.e,n,new aWe(n)),o(fa(e.e,n),113)}function fs(e,n,t,i){return an(e),an(n),an(t),an(i),new tie(e,n,new fh)}function vC(e,n,t){var i,r;return r=(i=m6(e.b,n),i),r?G$(jC(e,r),t):null}function UMn(e,n,t){var i,r,c;i=Yh(e,t),r=null,i&&(r=Kue(i)),c=r,sWe(n,t,c)}function GMn(e,n,t){var i,r,c;i=Yh(e,t),r=null,i&&(r=Kue(i)),c=r,sWe(n,t,c)}function zu(e,n,t,i){this.$j(),this.a=n,this.b=e,this.c=new Zte(this,n,t,i)}function cz(e,n,t,i,r,c){Qie.call(this,n,i,r,c),this.c=e,this.b=t}function yC(e,n,t,i,r,c){Qie.call(this,n,i,r,c),this.c=e,this.a=t}function $re(e,n,t,i,r){wRe(this),this.b=e,this.d=n,this.f=t,this.g=i,this.c=r}function Ore(e,n){MA.call(this,n.xd(),n.wd()&-16449),an(e),this.a=e,this.c=n}function HMn(e,n){e.a.Le(n.d,e.b)>0&&(ye(e.c,new Cte(n.c,n.d,e.d)),e.b=n.d)}function oz(e){e.a=te(ut,Mt,30,e.b+1,15,1),e.c=te(ut,Mt,30,e.b,15,1),e.d=0}function qMn(e,n,t){var i;return i=dqe(e,n,t),e.b=new S_(i.c.length),Kse(e,i)}function VMn(e){if(e.b<=0)throw P(new Gc);return--e.b,e.a-=e.c.c,ge(e.a)}function WMn(e){var n;if(!e.a)throw P(new DLe);return n=e.a,e.a=wi(e.a),n}function dUe(e){var n;if(e.ll())for(n=e.i-1;n>=0;--n)G(e,n);return ere(e)}function p3(e){var n;return nt(e),U(e,204)?(n=o(e,204),n):new UTe(e)}function KMn(e){for(;!e.a;)if(!ZNe(e.c,new mMe(e)))return!1;return!0}function Pre(e,n){if(e.g==null||n>=e.i)throw P(new fL(n,e.i));return e.g[n]}function gUe(e,n,t){if(Q4(e,t),t!=null&&!e.dk(t))throw P(new tF);return t}function uz(e,n){return MC(n)!=10&&F(Ms(n),n.Qm,n.__elementTypeId$,MC(n),e),e}function wUe(e,n){var t,i;return i=n/e.c.Pd().gc()|0,t=n%e.c.Pd().gc(),b3(e,i,t)}function D4(e,n,t,i){var r;i=(kw(),i||r1e),r=e.slice(n,t),cse(r,e,n,t,-n,i)}function ll(e,n,t,i,r){return n<0?Lw(e,t,i):o(t,69).uk().wk(e,e.ei(),n,i,r)}function XMn(e,n){return Kt(K(Z(M(e,(he(),ub)))),K(Z(M(n,ub))))}function bUe(){bUe=V,Gon=it((F4(),F(D(lP,1),be,309,0,[Qq,Zq,Yq,eV])))}function F4(){F4=V,Qq=new nA("All",0),Zq=new nRe,Yq=new dRe,eV=new tRe}function Qu(){Qu=V,ih=new OF(U3,0),g0=new OF(N6,1),yf=new OF(G3,2)}function pUe(){pUe=V,B$(),_ve=Ci,Wwn=hr,$ve=new sE(Ci),Kwn=new sE(hr)}function ZI(){ZI=V,N0n=new ESe,F0n=new CSe,D0n=fIn((pt(),fX),N0n,C0,F0n)}function QMn(e){ZI(),o(e.mf((pt(),am)),182).Ec((Zu(),oM)),e.of(fX,null)}function ZMn(e){return U(e,180)?""+o(e,180).a:e==null?null:Bc(e)}function YMn(e){return U(e,180)?""+o(e,180).a:e==null?null:Bc(e)}function Rre(e){var n,t;if(!e.b)return null;for(t=e.b;n=t.a[0];)t=n;return t}function mUe(e){var n,t;if(!e.b)return null;for(t=e.b;n=t.a[1];)t=n;return t}function kC(e){var n;for(n=e.p+1;n<e.c.a.c.length;++n)--o(Te(e.c.a,n),9).p}function vUe(){vUe=V,Jsn=it((__(),F(D(zsn,1),be,367,0,[CV,NP,DP,bT])))}function yUe(){yUe=V,Asn=it((M3(),F(D(D1e,1),be,383,0,[b7,N1e,pV,mV])))}function kUe(){kUe=V,Oun=it((Iw(),F(D($un,1),be,409,0,[aT,fT,cV,oV])))}function SUe(){SUe=V,Esn=it((W4(),F(D(Ssn,1),be,408,0,[tb,Jp,zp,L2])))}function EUe(){EUe=V,Vhn=it((dg(),F(D(qhn,1),be,404,0,[NT,G7,jR,CR])))}function CUe(){CUe=V,phn=it((vp(),F(D(LW,1),be,203,0,[kR,FW,nv,ev])))}function jUe(){jUe=V,yhn=it((fd(),F(D(rbe,1),be,269,0,[y0,ibe,JW,UW])))}function TUe(){TUe=V,Ysn=it((wf(),F(D(Zsn,1),be,413,0,[Hp,a5,h5,jV])))}function MUe(){MUe=V,n1n=it((V9(),F(D(Zbe,1),be,353,0,[hK,PR,aK,fK])))}function xUe(){xUe=V,fln=it((t8(),F(D(R0e,1),be,301,0,[y7,O0e,mT,P0e])))}function AUe(){AUe=V,R1n=it((p$(),F(D(P1n,1),be,401,0,[AK,TK,xK,MK])))}function IUe(){IUe=V,_1n=it((u$(),F(D(kpe,1),be,354,0,[EK,vpe,ype,mpe])))}function _Ue(){_Ue=V,Idn=it((I3(),F(D(ybe,1),be,398,0,[AR,V7,W7,K7])))}function $Ue(){$Ue=V,kgn=it((n6(),F(D(m2e,1),be,278,0,[nM,tN,b2e,p2e])))}function OUe(){OUe=V,Egn=it((ld(),F(D(gX,1),be,222,0,[dX,tM,F5,Cy])))}function PUe(){PUe=V,xgn=it((Gs(),F(D(Mgn,1),be,292,0,[rM,Oh,j0,iM])))}function RUe(){RUe=V,Jgn=it((JI(),F(D(hM,1),be,288,0,[z2e,U2e,mX,J2e])))}function NUe(){NUe=V,Lgn=it((Is(),F(D(vS,1),be,380,0,[lM,Ug,sM,wm])))}function DUe(){DUe=V,Ugn=it((G_(),F(D(V2e,1),be,326,0,[vX,G2e,q2e,H2e])))}function FUe(){FUe=V,qgn=it(($_(),F(D(Hgn,1),be,407,0,[yX,K2e,W2e,X2e])))}function YI(){YI=V,tpe=new Uee("LEAF_NUMBER",0),vK=new Uee("NODE_SIZE",1)}function SC(){SC=V,U0e=new $ee(qf,0),HP=new $ee("IMPROVE_STRAIGHTNESS",1)}function e_(){e_=V,DK=new nL(Min,0),Wpe=new nL(nhe,1),Vpe=new nL(qf,2)}function LUe(e,n){if(n.a)throw P(new Hc(ftn));Ui(e.a,n),n.a=e,!e.j&&(e.j=n)}function Nre(e){var n;if(!Ez(e))throw P(new Gc);return e.e=1,n=e.d,e.d=null,n}function Vd(e){var n;return Fc(e)&&(n=0-e,!isNaN(n))?n:q1(K4(e))}function BUe(e,n){var t;return t=o(w3(e.e,n),393),t?(Pte(t),t.e):null}function Eu(e,n){var t;return t=Kc(e,n,0),t==-1?!1:(Hd(e,t),!0)}function exn(e){var n;return L1(e),n=te(Er,jc,30,0,15,1),Lm(e.a,new wMe(n)),n}function zUe(e,n,t){var i;return L1(e),i=new B0,i.a=n,e.a.Nb(new mOe(i,t)),i.a}function Kc(e,n,t){for(;t<e.c.length;++t)if(Mo(n,e.c[t]))return t;return-1}function nxn(e,n,t,i,r){return an(e),an(n),an(t),an(i),an(r),new tie(e,n,i)}function Dre(e,n){Gk();var t,i;return t=d3(e),i=d3(n),!!t&&!!i&&!bWe(t.k,i.k)}function txn(e,n){return k4(),ye(e,new rc(n,ge(n.e.c.length+n.g.c.length)))}function ixn(e,n){return k4(),ye(e,new rc(n,ge(n.e.c.length+n.g.c.length)))}function rxn(e,n){return new zL(n,Hb(ec(n.e),n.f.a+e,n.f.b+e),(dn(),!1))}function n_(e,n){return Mo(n,Te(e.f,0))||Mo(n,Te(e.f,1))||Mo(n,Te(e.f,2))}function EC(e,n){if(n<0)throw P(new nu(Jin+n));return _ze(e,n+1),Te(e.j,n)}function D9(){D9=V,aV=new RF("XY",0),fV=new RF("X",1),hV=new RF("Y",2)}function CC(){CC=V,GW=new Ree("INPUT_ORDER",0),HW=new Ree("PORT_DEGREE",1)}function as(e){return e.b||(e.b=new dFe(e,yc,e),!e.a&&(e.a=new GE(e,e))),e.b}function Ac(e,n){var t,i;return t=o(n,682),i=t.Yk(),!i&&t.al(i=new rze(e,n)),i}function jC(e,n){var t,i;return t=o(n,680),i=t.ui(),!i&&t.xi(i=new MPe(e,n)),i}function sz(e){var n,t;return t=o(Te(e.j,0),12),n=o(M(t,(he(),Gt)),12),n}function lz(e,n){var t;this.f=e,this.b=n,t=o(bn(e.b,n),262),this.c=t?t.b:null}function JUe(){Ds(),this.b=new Jn,this.f=new Jn,this.g=new Jn,this.e=new Jn}function t_(e){_A(this),this.g=e?xI(e,e.ge()):null,this.f=e,EI(this),this.he()}function fz(e){var n;n=e.hj(),n!=null&&e.d!=-1&&o(n,94).uh(e),e.i&&e.i.mj()}function i_(e){var n,t;return t=e.length,n=te(jl,Xa,30,t,15,1),OFe(e,0,t,n,0),n}function TC(e){WDe();var n,t;return n=e+128,t=Ude[n],!t&&(t=Ude[n]=new oMe(e)),t}function UUe(e){return RL(e.d.a.e.g,e.b),Nn(e.c!=e.d.a.d),e.a=e.c,e.c=e.c.a,e.a}function GUe(e){Ub(!!e.c),RL(e.f.g,e.d),e.c.Qb(),e.c=null,e.b=Cce(e),e.d=e.f.g}function HUe(e,n){w1e=new xb,Pun=n,d7=e,o(d7.b,68),jre(d7,w1e,null),Sen(d7)}function Cu(){Cu=V,Kf=new PF("TOP",0),w0=new PF(N6,1),kf=new PF(mfe,2)}function id(){id=V,ST=new zF(qf,0),q2=new zF("TOP",1),ry=new zF(mfe,2)}function L4(){L4=V,Lde=du(ps,ps,524287),xon=du(0,0,Oj),Bde=XB(1),XB(2),zde=XB(0)}function Fre(e){var n;return e.Lh()||(n=Fn(e.Ah())-e.gi(),e.Xh().Kk(n)),e.wh()}function Lre(e){var n;return n=v3(Sn(e,32)),n==null&&(gu(e),n=v3(Sn(e,32))),n}function az(e,n){var t;return t=bi(e.d,n),t>=0?t$(e,t,!0,!0):Lw(e,n,!0)}function cxn(e,n){n3(o(o(e.f,26).mf((pt(),aS)),102))&&kVe(yie(o(e.f,26)),n)}function qUe(e,n){hs(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function VUe(e,n){ds(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function WUe(e,n){xw(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function KUe(e,n){Mw(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function XUe(e){(this.q?this.q:(tn(),tn(),xh)).zc(e.q?e.q:(tn(),tn(),xh))}function hz(e,n,t){var i;return i=e.g[n],d9(e,n,e.Xi(n,t)),e.Pi(n,t,i),e.Li(),i}function r_(e,n){var t;return t=e.bd(n),t>=0?(e.ed(t),!0):!1}function dz(e){var n;return e.d!=e.r&&(n=Jl(e),e.e=!!n&&n.jk()==xcn,e.d=n),e.e}function gz(e,n){var t;for(nt(e),nt(n),t=!1;n.Ob();)t=t|e.Ec(n.Pb());return t}function fa(e,n){var t;return t=o(bn(e.e,n),393),t?(CRe(e,t),t.e):null}function QUe(e){var n,t;return n=e/60|0,t=e%60,t==0?""+n:""+n+":"+(""+t)}function Lc(e,n){var t,i;return Q1(e),i=new vre(n,e.a),t=new XNe(i),new Qe(e,t)}function sp(e,n){var t=e.a[n],i=(Lz(),Hq)[typeof t];return i?i(t):roe(typeof t)}function oxn(e,n){var t,i,r;r=n.c.i,t=o(bn(e.f,r),60),i=t.d.c-t.e.c,bce(n.a,i,0)}function vh(e,n,t){var i,r;for(i=10,r=0;r<t-1;r++)n<i&&(e.a+="0"),i*=10;e.a+=n}function Bre(e,n){var t;for(++e.d,++e.c[n],t=n+1;t<e.a.length;)++e.a[t],t+=t&-t}function wz(e){var n;return n=e.b.c.length==0?null:Te(e.b,0),n!=null&&Cz(e,0),n}function uxn(e){switch(e.g){case 0:return Rt;case 1:return xr;default:return 0}}function sxn(e){return aue(e,(L4(),zde))<0?-skn(K4(e)):e.l+e.m*J3+e.h*kg}function MC(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function lxn(e,n){return U(n,103)&&o(n,19).Bb&cc?new aL(n,e):new H4(n,e)}function fxn(e,n){return U(n,103)&&o(n,19).Bb&cc?new aL(n,e):new H4(n,e)}function axn(e,n,t){return Xv(new pe(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)==(an(n),n)}function ZUe(e,n,t,i){if(!e)throw P(new yn(k8(n,F(D(ur,1),sn,1,5,[t,i]))))}function YUe(e){if(!e.e)throw P(new Gc);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function zre(e){if(!e.c)throw P(new Gc);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function hxn(e){var n,t;if(e.a){t=null;do n=e.a,e.a=null,t=yXe(n,t);while(e.a);e.a=t}}function dxn(e){var n,t;if(e.b){t=null;do n=e.b,e.b=null,t=yXe(n,t);while(e.b);e.b=t}}function eGe(e){var n;for(++e.a,n=e.c.a.length;e.a<n;++e.a)if(e.c.b[e.a])return}function gxn(e,n){var t;for(t=0;e.e!=e.i.gc();)LSn(n,Rn(e),ge(t)),t!=Rt&&++t}function nGe(e,n){for(;n[0]<e.length&&Fa(` \r
121
+ `)}parseNodeLine(f,h,g,p,k){const m=jM[f[0]]?f[0]:"+",j=jM[f[0]]?f.slice(1).trim():f.trim(),x=jM[m]??"add";let I=j,R;const B=Ypn.exec(j);B&&(I=j.slice(0,B.index).trim(),R=this.parseInlineAttrs(B[1]));const J=I.indexOf("|"),W=J>=0?I.slice(0,J).trim():I.trim(),ee=J>=0?I.slice(J+1).trim():void 0;if(!W){k.push(`Node line without a uid: "${f}"`);return}const q=W.split("-",1)[0];if(q!==W&&this.validNodeTypes.has(q)&&q!==h){k.push(`Uid prefix contradicts its section: "${W}" under "### ${h}"`);return}g.set(W,h),x==="remove"?p.push({type:"remove_node",semanticId:W}):x==="update"?p.push({type:"update_node",semanticId:W,elementType:h,description:ee,attributes:R}):x==="strict_add"?p.push({type:"strict_add_node",semanticId:W,elementType:h,description:ee,attributes:R}):p.push({type:"add_node",semanticId:W,elementType:h,description:ee,attributes:R})}parseEdgeLine(f,h,g,p){const k=jM[f[0]]?f[0]:"+",m=jM[f[0]]?f.slice(1).trim():f.trim(),j=jM[k]??"add";let x=m,I;const R=Ypn.exec(m);R&&(x=m.slice(0,R.index).trim(),I=this.parseInlineAttrs(R[1]));const B=/^(\S+)\s+-(\w+)->\s+(.+)$/.exec(x);if(!B){p.push(`Invalid edge syntax: "${f}"`);return}const J=B[1],W=B[2].toLowerCase(),ee=B[3],q=this.edgeArrowToType.get(W);if(!q){p.push(`Unknown edge arrow type "${W}" in: "${f}"`);return}const Ge=h(J);if(!Ge){p.push(`Cannot resolve type of source "${J}" — not declared under a "### <TYPE>" section and no resolveType provided`);return}const ce=ee.split(",").map(re=>re.trim()).filter(Boolean);for(const re of ce){const de=h(re);if(!de){p.push(`Cannot resolve type of target "${re}" — not declared under a "### <TYPE>" section and no resolveType provided`);continue}if(!A3n({source:Ge,target:de,type:q},this.patterns)){p.push(`Meta-model violation: ${Ge} -${q}-> ${de} is not valid`);continue}const le={type:j==="remove"?"remove_edge":j==="strict_add"?"strict_add_edge":"add_edge",semanticId:`${J}->${re}`,sourceId:J,targetId:re,edgeType:q};I&&(le.attributes=I),g.push(le)}}parseMerge(f,h,g){const p=f.split("+").map(k=>k.trim()).filter(Boolean);if(p.length<2){g.push(`Merge requires at least 2 nodes: "${f}"`);return}h.push({type:"merge_nodes",semanticId:`merge:${p.join("+")}`,sourceIds:p})}parseInlineAttrs(f){const h={};for(const g of f.split(",")){const p=g.indexOf(":");p>0&&(h[g.slice(0,p).trim()]=g.slice(p+1).trim())}return h}serializeEdges(f){const h=[],g=new Map;for(const k of f){const m=this.serializeEdgeAttrs(k.attributes);if(m){h.push({sourceId:k.sourceId,edgeType:k.edgeType,targets:[k.targetId],attrs:m});continue}const j=`${k.sourceId}\0${k.edgeType}`,x=g.get(j);if(x)x.targets.push(k.targetId);else{const I={sourceId:k.sourceId,edgeType:k.edgeType,targets:[k.targetId],attrs:""};g.set(j,I),h.push(I)}}const p=(k,m)=>k<m?-1:k>m?1:0;for(const k of h)k.targets.sort(p);return h.sort((k,m)=>p(k.sourceId,m.sourceId)||p(k.edgeType,m.edgeType)||p(k.targets[0],m.targets[0])||p(k.attrs,m.attrs)),h.map(k=>`+ ${k.sourceId} -${this.edgeTypeToArrow(k.edgeType)}-> ${k.targets.join(", ")}${k.attrs}`)}serializeAttrs(f){const h=Object.entries(f).filter(([,p])=>p!=null&&p!==""&&typeof p!="object");return h.length===0?"":` [${h.map(([p,k])=>`${p}:${String(k)}`).join(",")}]`}structuredAttrLines(f){return Object.entries(f).filter(([,h])=>h!=null&&typeof h=="object").map(([h,g])=>`@${h} ${JSON.stringify(g)}`)}serializeEdgeAttrs(f){const h=Object.entries(f).filter(([,p])=>p!=null&&p!=="");return h.length===0?"":` [${h.map(([p,k])=>`${p}:${typeof k=="object"?JSON.stringify(k):String(k)}`).join(",")}]`}edgeTypeToArrow(f){const h=this.ontology.edgeTypes[f];return(h==null?void 0:h.arrows[0])??f.toLowerCase()}}const _3n="graph-view-edit:config",wct=["hiddenTypes","hiddenEdgeTypes"];function bct(u){const f={};for(const[h,g]of Object.entries(u))f[h]=g instanceof Set?[...g]:g;return JSON.stringify(f)}function pct(u){const f=JSON.parse(u),h={};for(const[g,p]of Object.entries(f))h[g]=wct.includes(g)?new Set(p):p;return h}function mct(u,f){try{const h=u==null?void 0:u.getItem(_3n);return h?{...f,...pct(h)}:f}catch{return f}}function vct(u,f){try{u==null||u.setItem(_3n,bct(f))}catch{}}const $3n=Object.keys(_D.nodeTypes),O3n=Object.keys(_D.edgeTypes),yct={hiddenTypes:new Set,hiddenEdgeTypes:new Set,searchText:"",depth:2,weightStrategy:"uniform",animationEnabled:!1,showSchemas:!1};function P3n(){return typeof sessionStorage<"u"?sessionStorage:void 0}const er=V4e(u=>({selection:null,scopeSeed:[],activeWalk:"struktur",selectedFchain:null,visibleMods:new Set,workingSet:new Set,collapsedFuncs:null,...mct(P3n(),yct),select:f=>u({selection:f}),addToWorkingSet:f=>u(h=>({workingSet:new Set([...h.workingSet,...f])})),removeFromWorkingSet:f=>u(h=>{const g=new Set(h.workingSet);for(const p of f)g.delete(p);return{workingSet:g}}),clearWorkingSet:()=>u({workingSet:new Set}),setCollapsedFuncs:f=>u(h=>({collapsedFuncs:typeof f=="function"?f(h.collapsedFuncs):f})),toggleVisibleMod:f=>u(h=>{const g=new Set(h.visibleMods);return g.has(f)?g.delete(f):g.add(f),{visibleMods:g}}),setSelectedFchain:f=>u(h=>({selectedFchain:h.selectedFchain===f?null:f})),setScope:f=>u({scopeSeed:f,selection:f.length?f[f.length-1]:null}),setActiveWalk:f=>u({activeWalk:f}),toggleAnimation:()=>u(f=>({animationEnabled:!f.animationEnabled})),toggleType:f=>u(h=>{const g=new Set(h.hiddenTypes);return g.has(f)?g.delete(f):g.add(f),{hiddenTypes:g}}),toggleEdgeType:f=>u(h=>{const g=new Set(h.hiddenEdgeTypes);return g.has(f)?g.delete(f):g.add(f),{hiddenEdgeTypes:g}}),toggleShowSchemas:()=>u(f=>({showSchemas:!f.showSchemas})),setSearchText:f=>u({searchText:f}),setDepth:f=>u({depth:f}),setWeightStrategy:f=>u({weightStrategy:f})}));er.subscribe(u=>{vct(P3n(),{hiddenTypes:u.hiddenTypes,hiddenEdgeTypes:u.hiddenEdgeTypes,searchText:u.searchText,depth:u.depth,weightStrategy:u.weightStrategy,animationEnabled:u.animationEnabled,showSchemas:u.showSchemas})});function R3n(u,f=[],h=2){const g=(u==null?void 0:u.elements)??[],p=(u==null?void 0:u.traces)??[],k=new Set(g.map(B=>B.id)),m=f.filter(B=>k.has(B));if(!m.length)return{...u,elements:g,traces:p};const j=new Map,x=(B,J)=>{j.has(B)||j.set(B,[]),j.get(B).push(J)};for(const B of p)x(B.source,B.target),x(B.target,B.source);const I=new Map(m.map(B=>[B,0]));let R=m;for(let B=1;B<=h&&R.length;B++){const J=[];for(const W of R)for(const ee of j.get(W)??[])I.has(ee)||(I.set(ee,B),J.push(ee));R=J}return{...u,elements:g.filter(B=>I.has(B.id)),traces:p.filter(B=>I.has(B.source)&&I.has(B.target))}}const eZ=Of($3n),$ye=Of(O3n),kct=["struktur","verhalten"],Sct=Or({walks:Qo(Of(kct)).min(1),selectableTypes:Qo(eZ).min(1)}).partial().strict(),Ect=Or({search:Qg(),depth:Qg(),weight:Qg(),animation:Qg(),viewstate:Qg(),explorer:Sct}).partial().strict(),Cct=Or({includeNodeTypes:Qo(eZ).optional(),includeEdgeTypes:Qo($ye).optional(),dropUnconnected:Qg().optional(),algorithm:Ut().optional(),parameters:bk(Ut(),Ev()).optional()}).strict(),jct=Or({showNodes:Qo(eZ).optional(),hideNodes:Qo(eZ).optional(),showEdges:Qo($ye).optional(),hideEdges:Qo($ye).optional()}).strict(),Tct=Or({id:Ut().min(1),reqId:Ut().min(1),name:Ut().min(1),chrome:Ect.optional(),layoutConfig:Cct,renderConfig:jct.optional(),transform:Ut().min(1).optional()}).strict(),Mct=Or({id:Ut().min(1),reqId:Ut().min(1),name:Ut().min(1),editable:Qg(),hidden:Qg(),selector:Or({file:Ut().min(1)}).strict()}).strict();function TZ(u,f={}){const{includeNodeTypes:h,includeEdgeTypes:g,dropUnconnected:p=!1}=f;let k=h?(u.elements??[]).filter(x=>h.includes(x.type)):u.elements??[],m=new Set(k.map(x=>x.id));const j=(u.traces??[]).filter(x=>(!g||g.includes(x.type))&&m.has(x.source)&&m.has(x.target));return p&&(m=new Set(j.flatMap(x=>[x.source,x.target])),k=k.filter(x=>m.has(x.id))),{elements:k,traces:j}}function xct(u={}){const{showNodes:f,hideNodes:h=[],showEdges:g,hideEdges:p=[]}=u;return{keepNode:k=>(!f||f.includes(k))&&!h.includes(k),keepEdge:k=>(!g||g.includes(k))&&!p.includes(k)}}function Act(u,f,{scopeSeed:h=[],depth:g=2}={}){const p=R3n(u,h,g);return TZ(p,(f==null?void 0:f.layoutConfig)??{})}function Ict(u,f,h,g=new Set){if(!(h!=null&&h.size))return[];const p=new Map((u.elements??[]).map(R=>[R.id,R.type])),k=R=>h.has(p.get(R)),m=new Map,j=(R,B,J)=>{m.has(R)||m.set(R,[]),m.get(R).push({to:B,type:J})};for(const R of u.traces??[])g.has(R.type)||!p.has(R.source)||!p.has(R.target)||(j(R.source,R.target,R.type),j(R.target,R.source,R.type));const x=[],I=new Set;for(const R of f){const B=new Set;let J=(m.get(R)??[]).filter(W=>k(W.to)&&!B.has(W.to)).map(W=>(B.add(W.to),{id:W.to,chain:[W.type]}));for(;J.length;){const W=[];for(const ee of J)for(const q of m.get(ee.id)??[])if(k(q.to))B.has(q.to)||(B.add(q.to),W.push({id:q.to,chain:[...ee.chain,q.type]}));else if(q.to!==R&&f.has(q.to)){const Ge=R<q.to?`${R}|${q.to}`:`${q.to}|${R}`;I.has(Ge)||(I.add(Ge),x.push({source:R,target:q.to,type:"derived",label:[...ee.chain,q.type].join("·")}))}J=W}}return x}const Oye={search:!0,depth:!0,weight:!0,animation:!0,viewstate:!0,explorer:{walks:["struktur","verhalten"],selectableTypes:null}},emn={search:!1,weight:!1,animation:!1,viewstate:!1};function Q4e(u){var h;const f=N3n.find(g=>g.id===u);return{...Oye,...(f==null?void 0:f.chrome)??{},explorer:{...Oye.explorer,...((h=f==null?void 0:f.chrome)==null?void 0:h.explorer)??{}}}}const _ct=[{id:"view-all",reqId:"REQ-view-all",name:"Workbench",chrome:{search:!1,depth:!1,weight:!1,animation:!1,viewstate:!1},layoutConfig:{algorithm:"elk"}},{id:"layout-flow",reqId:"REQ-layout-flow",name:"Funktionsnetzwerk",chrome:emn,layoutConfig:{includeNodeTypes:["FUNC","FLOW","ACTOR"],includeEdgeTypes:["io"],algorithm:"elk"}},{id:"actionflow",reqId:"REQ-view-actionflow",name:"Wirkkette",chrome:{...emn,explorer:{walks:["verhalten"],selectableTypes:["FCHAIN","FUNC"]}},layoutConfig:{includeNodeTypes:["FCHAIN","FUNC","FLOW","ACTOR"],includeEdgeTypes:["io","compose"],algorithm:"elk",parameters:{slice:"action-flow"}}},{id:"state",reqId:"REQ-view-state",name:"Zustands-View",layoutConfig:{includeEdgeTypes:["io"],dropUnconnected:!0,algorithm:"layered"},transform:"flows-as-states"},{id:"impactmap",reqId:"REQ-view-impactmap",name:"Impact/Rollup-Map",layoutConfig:{algorithm:"preset"},chrome:{depth:!1,viewstate:!1}},{id:"matrix",reqId:"REQ-view-matrix",name:"Relationship-Matrizen",layoutConfig:{includeEdgeTypes:["verify","satisfy","allocate"]}},{id:"tabular",reqId:"REQ-view-tabular",name:"Tabellen-View",layoutConfig:{}},{id:"testconcept-tree",reqId:"REQ-view-testconcept",name:"Testkonzept",chrome:{search:!1,depth:!1,weight:!1,animation:!1,viewstate:!1},layoutConfig:{}}].map(u=>Tct.parse(u)),E3e={srs:{name:"Specification",editable:!0},architecture:{hidden:!0}},Z4e=Object.keys(vpn).map(u=>{var f,h,g;return Mct.parse({id:u,reqId:"REQ-docview-all",name:((f=E3e[u])==null?void 0:f.name)??u,editable:((h=E3e[u])==null?void 0:h.editable)??!1,hidden:((g=E3e[u])==null?void 0:g.hidden)??!1,selector:{file:vpn[u]}})}),N3n=[..._ct,...Z4e],D3n=new Map(N3n.map(u=>[u.id,u]));function $ct(){return[...D3n.values()].filter(u=>!u.hidden)}function qy(u){const f=D3n.get(u);if(!f)throw new Error(`unknown view: ${u}`);return f}function Pye({name:u,scope:f=null,params:h={}}){return{descriptor:qy(u),scope:f,params:h}}const Oct={SYS:"--color-type-1",UC:"--color-type-2",ACTOR:"--color-type-3",REQ:"--color-type-4",TEST:"--color-type-5",MOD:"--color-type-6",CR:"--color-type-7",FUNC:"--color-type-func",FLOW:"--color-type-flow",FCHAIN:"--fchain-1",SCHEMA:"--color-type-schema"},nmn=["--fchain-1","--fchain-2","--fchain-3","--fchain-4","--fchain-5"];function Pct(u){return Wu(nmn[u%nmn.length],"#8b5cf6")}const C3e=new Map;function Wu(u,f){var p;if(C3e.has(u))return C3e.get(u);const h=typeof document<"u"?getComputedStyle(document.documentElement):null,g=((p=h==null?void 0:h.getPropertyValue(u))==null?void 0:p.trim())||f;return C3e.set(u,g),g}function vD(u){return Wu(Oct[u]??"--color-border","#94a3b8")}function Rct(u){return u.map(f=>f.data.source||f.data.color?f:{...f,data:{...f.data,color:vD(f.data.type)}})}const F3n=I3n(_D);function Y4e(u,f,h){if(!A3n({source:f,target:h,type:u},F3n))throw new Error(`behavior-flow: ${u} ${f}->${h} is not a valid SE trace pair (contracts drift)`);return{type:u,source:f,target:h}}const WM=(u,f,h)=>{var g,p;return u.type===f.type&&((g=h.get(u.source))==null?void 0:g.type)===f.source&&((p=h.get(u.target))==null?void 0:p.type)===f.target},L3n=Y4e("compose","FUNC","FUNC"),B3n=Y4e("compose","MOD","MOD"),z3n=Y4e("allocate","FUNC","MOD"),Nct=new Set(["compose","allocate"]);function j3e(u){return new Set(F3n.filter(f=>f.type==="compose"&&f.source===u).map(f=>f.target))}function J3n(u){var m;const f=new Map((u.elements??[]).map(j=>[j.id,j])),h=(u.traces??[]).filter(j=>j.type==="compose"),g=(u.elements??[]).filter(j=>j.type==="FCHAIN").map(j=>j.id).sort(),p=new Map,k=(j,x,I)=>{var R;if(!I.has(x)){I.add(x),p.has(x)||p.set(x,new Set),p.get(x).add(j);for(const B of h)B.source===x&&((R=f.get(B.target))==null?void 0:R.type)==="FUNC"&&k(j,B.target,I)}};for(const j of g)for(const x of h)x.source===j&&((m=f.get(x.target))==null?void 0:m.type)==="FUNC"&&k(j,x.target,new Set);return{fchains:g,funcOf:p}}function Dct(u){const{fchains:f,funcOf:h}=J3n(u),g=new Map(f.map((p,k)=>[p,k]));return{fchains:f,funcOf:h,colorOfFchain:p=>Pct(g.get(p)??0)}}function U3n(u,f=new Set){const h=new Map((u.elements??[]).map(j=>[j.id,j])),g=new Map,p=new Map,k=new Map;for(const j of u.traces??[])WM(j,L3n,h)&&g.set(j.target,j.source),WM(j,B3n,h)&&p.set(j.target,j.source),WM(j,z3n,h)&&k.set(j.source,j.target);const m=new Map;for(const j of u.elements??[]){if(j.type==="MOD"){const B=p.get(j.id);B&&f.has(j.id)&&f.has(B)&&m.set(j.id,B);continue}if(j.type!=="FUNC")continue;const x=g.get(j.id),I=x&&k.get(x)===k.get(j.id);x&&(I||!f.has(k.get(j.id))&&!f.has(k.get(x)))?m.set(j.id,x):f.has(k.get(j.id))&&m.set(j.id,k.get(j.id))}return{parentOf:m,parents:new Set(m.values()),modOf:k}}function Fct(u,f){var m;const h=new Map((u.elements??[]).map(j=>[j.id,j])),g=new Set([...f].filter(j=>h.has(j))),p=u.traces??[],k=(j,x)=>{g.has(j)||(g.add(j),x.push(j))};for(const j=[...g];j.length;){const x=j.pop(),I=(m=h.get(x))==null?void 0:m.type;if(I==="MOD")for(const R of p)WM(R,z3n,h)&&R.target===x&&k(R.source,j),WM(R,B3n,h)&&R.source===x&&k(R.target,j);if(I==="FUNC")for(const R of p)WM(R,L3n,h)&&R.source===x&&k(R.target,j)}return g}function Lct(u,f){var m;const h=new Map(((u==null?void 0:u.elements)??[]).map(j=>[j.id,j])),g=(m=h.get(f))==null?void 0:m.type;if(g==="MOD"||g==="FUNC")return[f];const p=((u==null?void 0:u.traces)??[]).filter(j=>j.type==="compose"),k=(j,x)=>p.filter(I=>{var R;return I.source===j&&((R=h.get(I.target))==null?void 0:R.type)===x}).map(I=>I.target);return g==="FCHAIN"?k(f,"FUNC"):g==="UC"?k(f,"FCHAIN").flatMap(j=>k(j,"FUNC")):g==="SYS"?k(f,"MOD"):[]}function Bct(u,f){var I,R;const h=TZ(u,f),g=new Map(h.elements.map(B=>[B.id,B])),p=new Set(h.elements.filter(B=>B.type==="FLOW").map(B=>B.id)),k=new Set;for(const B of h.traces)((I=g.get(B.source))==null?void 0:I.type)==="ACTOR"&&p.has(B.target)&&k.add(B.source),((R=g.get(B.target))==null?void 0:R.type)==="ACTOR"&&p.has(B.source)&&k.add(B.target);const m=new Set(h.elements.filter(B=>["FUNC","FLOW"].includes(B.type)||k.has(B.id)).map(B=>B.id)),j=h.elements.filter(B=>m.has(B.id)),x=h.traces.filter(B=>m.has(B.source)&&m.has(B.target));return{elements:j,traces:x}}function zct(u,f,h){var J,W,ee,q;const g=TZ(u,h),p=new Map(g.elements.map(Ge=>[Ge.id,Ge])),k=g.traces.filter(Ge=>Ge.type==="compose"),m=g.traces.filter(Ge=>Ge.type==="io"),j=new Set,x=Ge=>{var ce;for(const re of k)re.source===Ge&&((ce=p.get(re.target))==null?void 0:ce.type)==="FUNC"&&!j.has(re.target)&&(j.add(re.target),x(re.target))};x(f);const I=new Set;for(const Ge of m)j.has(Ge.source)&&((J=p.get(Ge.target))==null?void 0:J.type)==="FLOW"&&I.add(Ge.target),j.has(Ge.target)&&((W=p.get(Ge.source))==null?void 0:W.type)==="FLOW"&&I.add(Ge.source);const R=new Set;for(const Ge of m)((ee=p.get(Ge.source))==null?void 0:ee.type)==="ACTOR"&&I.has(Ge.target)&&R.add(Ge.source),((q=p.get(Ge.target))==null?void 0:q.type)==="ACTOR"&&I.has(Ge.source)&&R.add(Ge.target);const B=new Set([...j,...I,...R]);return{elements:g.elements.filter(Ge=>B.has(Ge.id)),traces:m.filter(Ge=>B.has(Ge.source)&&B.has(Ge.target))}}const e6e={graph:{path:"docs/graph/graph-view-edit.graph.json",host:null},port:43e3,ontologyDescriptor:"se",tokenTheme:"default",viewRegistryDefaults:{view:null,scope:null},edit:{enabled:!1}};let zN=null;async function Jct(u=globalThis.fetch){try{const f=await u("/api/config");if(!f.ok)throw new Error(`/api/config responded ${f.status}`);zN=await f.json()}catch(f){console.warn(`gve: /api/config unavailable (${f.message}) — using schema defaults`),zN=e6e}return H3n=nZ(zN),zN}function G3n(){return zN??e6e}function nZ(u=G3n()){const f=u.graph.path.replace(/^\/+/,"");return u.graph.host?`${u.graph.host.replace(/\/+$/,"")}/${f}`:`/${f}`}let H3n=nZ(e6e);function Rye(){return{collapsed:new Set,hidden:new Set,faded:new Set,pinned:new Set,selected:new Set}}function rQ(u,f){return new Set([...u,...f])}function T3e(u,f){const h=new Set(u);for(const g of f)h.delete(g);return h}function Uct(u,f){const h=new Set(u);for(const g of f)h.has(g)?h.delete(g):h.add(g);return h}function Gct(u,f){const{op:h,targets:g}=f;switch(h){case"collapse":return{...u,collapsed:rQ(u.collapsed,g)};case"expand":return{...u,collapsed:T3e(u.collapsed,g)};case"hide":return{...u,hidden:rQ(u.hidden,g)};case"show":return{...u,hidden:T3e(u.hidden,g)};case"fade":return{...u,faded:rQ(u.faded,g)};case"expose":return{...u,faded:T3e(u.faded,g)};case"pin":return{...u,pinned:Uct(u.pinned,g)};case"select":return{...u,selected:rQ(u.selected,g)};default:return h}}const q3n="graph-view-edit:view-state";function Hct(u){return JSON.stringify({collapsed:[...u.collapsed],hidden:[...u.hidden],faded:[...u.faded],pinned:[...u.pinned],selected:[...u.selected]})}function qct(u){const f=JSON.parse(u);return{collapsed:new Set(f.collapsed??[]),hidden:new Set(f.hidden??[]),faded:new Set(f.faded??[]),pinned:new Set(f.pinned??[]),selected:new Set(f.selected??[])}}function Vct(u){try{const f=u==null?void 0:u.getItem(q3n);return f?qct(f):Rye()}catch{return Rye()}}function Wct(u=typeof sessionStorage<"u"?sessionStorage:void 0){return V4e((f,h)=>({state:Vct(u),apply(g){const p=Gct(h().state,g);f({state:p});try{u==null||u.setItem(q3n,Hct(p))}catch{}}}))}const yD=Wct();function Kct(){er.setState({selection:null,scopeSeed:[],workingSet:new Set,visibleMods:new Set,collapsedFuncs:null,selectedFchain:null}),yD.setState({state:Rye()})}const kD=V4e((u,f)=>({graph:null,source:null,epoch:0,async load(h=nZ(),{fetchImpl:g=fetch}={}){const p=f().source,k=await g(h).then(j=>j.json()),m=p!==null&&p!==h;return u(j=>({graph:k,source:h,epoch:m?j.epoch+1:j.epoch})),m&&Kct(),k},async reload({fetchImpl:h=fetch}={}){const g=f().source??nZ(),p=await h(g).then(k=>k.json());return u({graph:p,source:g}),p}}));function pk({enabled:u=!0}={}){const f=kD(g=>g.graph),h=kD(g=>g.load);return hn.useEffect(()=>{u&&h()},[u,h]),f}const V3n=["uniform","traces","hot-spots"],Xct=24,Qct=6,tmn=2.5,Zct=.6,Yct=7;function eot(u,f="uniform"){if(!V3n.includes(f))throw new Error(`unknown weight strategy: ${f}`);const h=u.filter(I=>!I.data.source),g=u.filter(I=>I.data.source).map(I=>I.data),p=new Map,k=new Map;for(const I of h)p.set(I.data.id,0),k.set(I.data.id,0);for(const I of g)p.set(I.source,(p.get(I.source)??0)+1),p.set(I.target,(p.get(I.target)??0)+1),k.set(I.target,(k.get(I.target)??0)+1);const m=I=>f==="traces"?p.get(I)??0:f==="hot-spots"?k.get(I)??0:0,j=new Map;for(const I of h)j.set(I.data.id,Xct+Qct*m(I.data.id));const x=new Map;for(const I of g){const R=f==="uniform"?tmn:Math.min(tmn+Zct*Math.max(m(I.source),m(I.target)),Yct);x.set(I.id,R)}return{nodeSize:j,edgeWidth:x}}function not(u){return u===0?"":`${u} draft${u===1?"":"s"} pending`}function tot(u){const f=u.context??{};return{ruleId:u.ruleId,severity:u.severity,elementId:u.elementId,message:u.message,fixHint:u.fixHint,candidateTargets:f.candidate_targets??[]}}function iot(u){return{tier:u.tier??"unknown",applied:u.success,violations:(u.violations??[]).map(tot)}}function rot({result:u,onFixCandidate:f}){const{tier:h,applied:g,violations:p}=iot(u);return g&&p.length===0?Q.jsxs("div",{"data-testid":"gate-feedback-clean","data-tier":h,children:["Applied (",h,")"]}):Q.jsxs("div",{"data-testid":"gate-feedback","data-tier":h,children:[Q.jsx("div",{"data-testid":"gate-feedback-tier",children:h}),Q.jsx("ul",{children:p.map(k=>Q.jsxs("li",{"data-testid":`violation-${k.ruleId}-${k.elementId}`,children:[Q.jsx("span",{"data-testid":`message-${k.ruleId}-${k.elementId}`,children:k.message}),k.fixHint&&Q.jsx("span",{"data-testid":`fixhint-${k.ruleId}-${k.elementId}`,children:k.fixHint}),k.candidateTargets.length>0&&Q.jsx("ul",{children:k.candidateTargets.map(m=>Q.jsx("li",{children:Q.jsxs("button",{type:"button","data-testid":`fix-${k.ruleId}-${k.elementId}-${m.id}`,onClick:()=>f==null?void 0:f(k,m),children:["Fix with ",m.name]})},m.id))})]},`${k.ruleId}-${k.elementId}`))})]})}const cot=new Set(["ACTOR"]);function oot(u,f,h=null){if(!u)return null;const g=new Map((u.elements??[]).map(j=>[j.id,j])),p=u.traces??[],k=g.get(f);if(!k)return null;const m=(j,x)=>{const I=p.filter(B=>B.type==="compose"&&B.source===j.id).map(B=>g.get(B.target)).filter(B=>B&&!x.has(B.id)&&(!h||h.has(B.type))).sort((B,J)=>B.id.localeCompare(J.id)),R=new Set(x).add(j.id);return{id:j.id,type:j.type,name:j.name||j.id,children:I.map(B=>m(B,R))}};return m(k,new Set)}function uot(u,f){var R,B;if(!u)return null;const h=new Map((u.elements??[]).map(J=>[J.id,J])),g=h.get(f);if(!g)return null;const p=new Set((u.elements??[]).filter(J=>J.type==="MOD").map(J=>J.id)),{parentOf:k}=U3n(u,p),m=new Map,j=(J,W)=>{m.has(J)||m.set(J,new Set),m.get(J).add(W)};for(const[J,W]of k)j(W,J);for(const J of u.traces??[])J.type==="compose"&&((R=h.get(J.source))==null?void 0:R.type)==="SYS"&&((B=h.get(J.target))==null?void 0:B.type)==="MOD"&&j(J.source,J.target);const x=new Set(k.keys());for(const J of u.elements??[])J.type==="FUNC"&&!x.has(J.id)&&j(f,J.id);const I=(J,W)=>{const ee=new Set(W).add(J.id),q=[...m.get(J.id)??[]].filter(Ge=>!W.has(Ge));return{id:J.id,type:J.type,name:J.name||J.id,children:q.sort().map(Ge=>I(h.get(Ge),ee))}};return I(g,new Set)}function W3n({node:u,path:f,collapsed:h,onToggle:g,onSelect:p,selection:k,prefix:m,dimIds:j}){const x=[...f,u.id],I=u.children.length>0,R=h.has(u.id),B=j==null?void 0:j.has(u.id);return Q.jsxs("li",{children:[Q.jsxs("div",{className:`row${k===u.id?" sel":""}${B?" dim":""}`,"data-testid":`${m}-node-${u.id}`,"data-type":u.type,onClick:()=>p(u.id,x),children:[Q.jsx("span",{className:"tw","data-testid":I?`${m}-tw-${u.id}`:void 0,onClick:J=>{J.stopPropagation(),I&&g(u.id)},children:I?R?"▸":"▾":""}),Q.jsx("span",{className:`ic${cot.has(u.type)?" ell":""}`,style:{background:vD(u.type)}}),Q.jsx("span",{className:"lbl",children:u.name}),Q.jsx("span",{className:"kind",children:u.type})]}),I&&!R&&Q.jsx("ul",{children:u.children.map(J=>Q.jsx(W3n,{node:J,path:x,collapsed:h,onToggle:g,onSelect:p,selection:k,prefix:m,dimIds:j},J.id))})]})}function sot({root:u,collapsed:f,onToggle:h,onSelect:g,selection:p,prefix:k="tree",dimIds:m}){return u?Q.jsx("ul",{className:"gve-tree",children:Q.jsx(W3n,{node:u,path:[],collapsed:f,onToggle:h,onSelect:g,selection:p,prefix:k,dimIds:m})}):null}const lot=new Set(["UC",...[...j3e("UC")].filter(u=>u!=="REQ"),...j3e("FCHAIN"),...j3e("FUNC")]),fot={struktur:"Struktur (MOD)",verhalten:"Verhalten (FUNC)"};function K3n(u,f,h=new Set){return u&&(f&&!f.includes(u.type)&&h.add(u.id),u.children.forEach(g=>K3n(g,f,h))),h}function aot({graph:u,onSelect:f,config:h={walks:["struktur","verhalten"],selectableTypes:null}}){const{walks:g,selectableTypes:p}=h,k=er(le=>le.activeWalk),m=er(le=>le.setActiveWalk),j=er(le=>le.selection),[x,I]=hn.useState(()=>new Set),R=er(le=>le.collapsedFuncs),B=er(le=>le.setCollapsedFuncs),J=hn.useMemo(()=>YQ(u),[u]),W=hn.useMemo(()=>uot(u,J),[u,J]),ee=hn.useMemo(()=>oot(u,J,lot),[u,J]),q=g.includes(k)?k:g[0],Ge=q==="verhalten"?ee:W,ce=hn.useMemo(()=>K3n(Ge,p),[Ge,p]),re=(le,He)=>{ce.has(le)||f==null||f(le,He)},de=hn.useMemo(()=>new Set([...x,...R??[]]),[x,R]),se=le=>{const He=de.has(le);I(Ye=>{const Pn=new Set(Ye);return He?Pn.delete(le):Pn.add(le),Pn}),B(Ye=>{if(!Ye)return Ye;const Pn=new Set(Ye);return He?Pn.delete(le):Pn.add(le),Pn})};return Q.jsxs("aside",{className:"gve-explorer","data-testid":"explorer",children:[Q.jsx("div",{className:"exp-tabs",role:"tablist",children:g.map(le=>Q.jsx("button",{className:`exp-tab${q===le?" active":""}`,"data-testid":`exp-tab-${le}`,"aria-selected":q===le,onClick:()=>m(le),children:fot[le]},le))}),Q.jsx("div",{className:"exp-tree",children:Ge?Q.jsx(sot,{root:Ge,collapsed:de,onToggle:se,onSelect:re,selection:j,dimIds:ce,prefix:"exp"}):Q.jsx("p",{className:"kind",style:{padding:"var(--space-2)"},children:"kein Graph"})})]})}const hot={uniform:"Uniform",traces:"Traces","hot-spots":"Hot-Spots"};function dot({graph:u,selection:f}){var x;const h=f?(x=u==null?void 0:u.elements)==null?void 0:x.find(I=>I.id===f):null,g=new Map(((u==null?void 0:u.elements)??[]).map(I=>[I.id,I])),p=h?((u==null?void 0:u.traces)??[]).filter(I=>I.source===h.id||I.target===h.id):[],k=I=>I.source===h.id?I.target:I.source,m=h?p.filter(I=>{var R;return((R=g.get(k(I)))==null?void 0:R.type)==="SCHEMA"}):[],j=p.filter(I=>!m.includes(I));return Q.jsx("aside",{className:"gve-details","data-testid":"details",children:h?Q.jsxs(Q.Fragment,{children:[Q.jsx("h4",{"data-testid":"details-title",children:h.name||h.id}),Q.jsxs("dl",{children:[Q.jsx("dt",{children:"Typ"}),Q.jsx("dd",{"data-testid":"details-type",children:h.type}),Q.jsx("dt",{children:"ID"}),Q.jsx("dd",{children:h.id}),h.description?Q.jsxs(Q.Fragment,{children:[Q.jsx("dt",{children:"Beschreibung"}),Q.jsx("dd",{children:h.description})]}):null,m.length>0?Q.jsxs(Q.Fragment,{children:[Q.jsxs("dt",{children:["Schemas (",m.length,")"]}),Q.jsx("dd",{"data-testid":"details-schemas",children:m.map((I,R)=>{var J;const B=k(I);return Q.jsx("div",{className:"kind","data-testid":`details-schema-${B}`,children:((J=g.get(B))==null?void 0:J.name)||B},R)})})]}):null,Q.jsxs("dt",{children:["Traces (",j.length,")"]}),Q.jsx("dd",{children:j.map((I,R)=>Q.jsx("div",{className:"kind",children:I.source===h.id?`${I.type} → ${I.target}`:`${I.source} ${I.type} →`},R))})]})]}):Q.jsx("p",{className:"kind","data-testid":"details-empty",children:"Kein Element gewählt"})})}function n6e({title:u,subtitle:f,zoomPct:h,onZoomIn:g,onZoomOut:p,onZoomReset:k,onZoomFit:m,breadcrumb:j=[],onCrumbClick:x,onScopeReset:I,nodeCount:R=0,edgeCount:B=0,editMode:J=!1,draftCount:W=0,gateEvent:ee=null,graph:q=null,explorer:Ge=!0,onExplorerSelect:ce,capabilities:re=Oye,children:de}){var zh,jv;const se=er(xt=>xt.hiddenTypes),le=er(xt=>xt.hiddenEdgeTypes),He=er(xt=>xt.searchText),Ye=er(xt=>xt.depth),Pn=er(xt=>xt.toggleType),Zt=er(xt=>xt.showSchemas),Ni=er(xt=>xt.toggleShowSchemas),Jc=er(xt=>xt.toggleEdgeType),hu=er(xt=>xt.setSearchText),V=er(xt=>xt.setDepth),kc=er(xt=>xt.weightStrategy),Wn=er(xt=>xt.setWeightStrategy),Yt=er(xt=>xt.animationEnabled),Vt=er(xt=>xt.toggleAnimation),Bn=er(xt=>xt.selection),Mn=er(xt=>xt.scopeSeed),Gn=er(xt=>xt.setScope),jt=er(xt=>xt.workingSet),fr=er(xt=>xt.clearWorkingSet),Pr=yD(xt=>xt.state),Qr=yD(xt=>xt.apply),os=Pr.hidden.size>0||Pr.faded.size>0||Pr.collapsed.size>0,Zo=()=>{Pr.hidden.size&&Qr({op:"show",targets:[...Pr.hidden]}),Pr.faded.size&&Qr({op:"expose",targets:[...Pr.faded]}),Pr.collapsed.size&&Qr({op:"expand",targets:[...Pr.collapsed]})},ks=Mn.length?`${((jv=(zh=q==null?void 0:q.elements)==null?void 0:zh.find(xt=>xt.id===Mn[Mn.length-1]))==null?void 0:jv.name)??Mn[Mn.length-1]}${Mn.length>1?` +${Mn.length-1}`:""}`:"",Cv=se.size||le.size?`Filter: ohne ${[...se,...le].join(", ")}`:"Filter: alle Typen";return Q.jsxs(Q.Fragment,{children:[Q.jsxs("header",{className:"gve-bar",children:[Q.jsxs("div",{className:"title","data-testid":"view-title",children:[u," ",f?Q.jsx("small",{children:f}):null]}),Q.jsxs("div",{className:"gve-group","data-testid":"zoom-group",children:[Q.jsx("button",{className:"gve-btn","data-testid":"zoom-out",title:"Zoom −",onClick:p,children:"−"}),Q.jsxs("button",{className:"gve-btn","data-testid":"zoom-reset",title:"Zoom zurücksetzen",onClick:k,children:[h,"%"]}),Q.jsx("button",{className:"gve-btn","data-testid":"zoom-in",title:"Zoom +",onClick:g,children:"+"}),Q.jsx("button",{className:"gve-btn","data-testid":"zoom-fit",title:"Einpassen",onClick:m,children:"Fit"})]}),Q.jsx("div",{className:"gve-group","data-testid":"type-filter",children:$3n.map(xt=>{const Jh=xt==="SCHEMA",Uc=Jh?!Zt:se.has(xt);return Q.jsxs("button",{className:`gve-chip${Uc?" off":""}`,"data-testid":`chip-${xt.toLowerCase()}`,"data-type":xt,title:Jh?"Schemas einblenden — der Flow als aufgelöster Contract-Knoten":void 0,onClick:()=>Jh?Ni():Pn(xt),children:[Q.jsx("span",{className:"dot",style:{background:vD(xt)}}),xt]},xt)})}),Q.jsxs("div",{className:"gve-group","data-testid":"edge-filter",children:[Q.jsx("label",{children:"Kanten"}),O3n.map(xt=>Q.jsxs("button",{className:`gve-chip${le.has(xt)?" off":""}`,"data-testid":`echip-${xt}`,"data-type":xt,onClick:()=>Jc(xt),children:[Q.jsx("span",{className:"dash"}),xt]},xt))]}),re.search&&Q.jsx("input",{className:"gve-input",placeholder:"Suche…","data-testid":"search-input",value:He,onChange:xt=>hu(xt.target.value)}),re.depth&&Q.jsxs("div",{className:"gve-group",children:[Q.jsx("label",{children:"Tiefe"}),Q.jsx("select",{className:"gve-select","data-testid":"depth-select",value:Ye,onChange:xt=>V(Number(xt.target.value)),children:[1,2,3,4,5].map(xt=>Q.jsx("option",{value:xt,children:xt},xt))})]}),re.weight&&Q.jsxs("div",{className:"gve-group",children:[Q.jsx("label",{children:"Gewicht"}),Q.jsx("select",{className:"gve-select","data-testid":"weight-select",value:kc,onChange:xt=>Wn(xt.target.value),children:V3n.map(xt=>Q.jsx("option",{value:xt,children:hot[xt]},xt))})]}),re.viewstate&&Q.jsxs("div",{className:"gve-group","data-testid":"viewstate-actions",children:[Q.jsx("label",{children:"Knoten"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-hide",disabled:!Bn,onClick:()=>Qr({op:"hide",targets:[Bn]}),children:"Verbergen"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-fade",disabled:!Bn,onClick:()=>Qr({op:"fade",targets:[Bn]}),children:"Abblenden"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-collapse",disabled:!Bn,onClick:()=>Qr({op:"collapse",targets:[Bn]}),children:"Einklappen"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-pin",disabled:!Bn,onClick:()=>Qr({op:"pin",targets:[Bn]}),children:"Pin"}),Q.jsx("button",{className:"gve-btn","data-testid":"viewstate-reset",disabled:!os,onClick:Zo,children:"Alles zeigen"})]}),re.animation&&Q.jsxs("button",{className:"gve-btn","data-testid":"animation-toggle","aria-pressed":Yt,onClick:Vt,children:["Animation: ",Yt?"an":"aus"]}),J&&Q.jsx("span",{className:"gve-chip","data-testid":"edit-mode-indicator",children:"Edit-Mode"})]}),Q.jsxs("nav",{className:"gve-crumbs","data-testid":"breadcrumb",children:[Mn.length>0&&Q.jsxs("button",{type:"button",className:"gve-chip","data-testid":"scope-reset",title:"Scope aufheben — View zeigt wieder den vollen Graphen",onClick:()=>{Gn([]),I==null||I()},children:["Scope: ",ks," ✕"]}),jt.size>0&&Q.jsxs("button",{type:"button",className:"gve-chip","data-testid":"workingset-clear",title:"Alles einklappen — nimmt jede Expansion zurück",onClick:fr,children:[jt.size," aufgeklappt ✕"]}),j.map((xt,Jh)=>Q.jsxs("span",{children:[Jh>0?" / ":"",Jh===j.length-1?Q.jsx("strong",{children:xt.uid}):Q.jsx("a",{href:"#","data-testid":`crumb-${xt.uid}`,onClick:Uc=>{Uc.preventDefault(),x==null||x(xt.uid,Jh)},children:xt.uid})]},`${Jh}-${xt.uid}`))]}),J&&(ee==null?void 0:ee.type)==="blocked"&&Q.jsx(rot,{result:ee.result}),Q.jsxs("div",{className:"gve-body",children:[Ge&&Q.jsx(aot,{graph:q,onSelect:ce,config:re.explorer}),de,Q.jsx(dot,{graph:q,selection:Bn})]}),Q.jsxs("footer",{className:"gve-status",children:[Q.jsxs("span",{"data-testid":"status-counts",children:[R," Knoten · ",B," Kanten"]}),Q.jsxs("span",{children:["Zoom ",Q.jsxs("span",{"data-testid":"status-zoom",children:[h," %"]})]}),Q.jsx("span",{"data-testid":"status-filter",children:Cv}),J&&Q.jsx("span",{"data-testid":"draft-counter",children:not(W)||"keine Drafts"})]})]})}Or({repoRoot:Ut(),scope:Or({workspaceId:Ut(),systemId:Ut()}),consumerType:Of(["human","agent","system"]).default("agent"),preCommitTimeout:Pa().int().positive().default(5e3)});const got=Or({uid:Ut(),type:Ut(),name:Ut(),description:Ut().optional(),attributes:bk(Ut(),Ev()).default({})}),wot=Or({uid:Ut(),type:Ut().optional(),name:Ut().optional(),description:Ut().optional(),attributes:bk(Ut(),Ev()).optional()}),bot=Or({sourceId:Ut(),targetId:Ut(),edgeType:Ut(),attributes:bk(Ut(),Ev()).default({})});ett("op",[Or({op:q5("add-node"),node:got}),Or({op:q5("update-node"),node:wot}),Or({op:q5("delete-node"),uid:Ut()}),Or({op:q5("add-edge"),edge:bot}),Or({op:q5("delete-edge"),edge:Or({sourceId:Ut(),targetId:Ut(),edgeType:Ut()})}),Or({op:q5("update-edge"),edge:Or({sourceId:Ut(),targetId:Ut(),edgeType:Ut()}),set:Or({edgeType:Ut().optional(),flip:Qg().optional(),attributes:bk(Ut(),Ev()).optional()}).refine(u=>u.edgeType!==void 0||u.flip!==void 0||u.attributes!==void 0,{message:"update-edge.set requires at least one of edgeType|flip|attributes"})}),Or({op:q5("merge-nodes"),sourceUid:Ut(),targetUid:Ut()})]);const pot={"add-node":{destructive:!1,structural:!0},"update-node":{destructive:!1,structural:!1},"delete-node":{destructive:!0,structural:!0},"add-edge":{destructive:!1,structural:!0},"delete-edge":{destructive:!0,structural:!0},"update-edge":{destructive:!1,structural:!0},"merge-nodes":{destructive:!0,structural:!0}};function mot(u){return pot[u].destructive}const cx=Pa().int().nonnegative();Or({baseVersion:cx.optional()});const vot=Or({graphVersion:cx,ts:Ut(),changedUids:Qo(Ut())}),yot=Or({sinceVersion:cx,currentVersion:cx,entries:Qo(vot),changedUids:Qo(Ut())}),X3n=Or({ruleId:Ut(),severity:Of(["error","warning","info"]),message:Ut(),elementId:Ut().optional(),fixHint:Ut().optional(),context:Ev().optional()}),kot=Of(["auto-apply","suggest","block"]);Or({success:Qg(),appliedCommands:Pa().int().nonnegative(),mutations:Pa().int().nonnegative(),violations:Qo(X3n).default([]),confidence:Pa().min(0).max(1).optional(),tier:kot.optional(),trajectoryId:Ut().optional(),graphVersion:cx.optional(),stale:Qg().optional(),staleDelta:yot.optional()});const Sot=Of(["graph","rules","readiness","suggestions"]);Or({type:q5("invalidate"),domains:Qo(Sot),ts:Ut(),version:cx.optional()});function Eot(u){return`This affects ${u.cascade.length} more element(s), orphans ${u.orphans.length}, breaks ${u.brokenRefs.length} reference(s). Proceed?`}async function Cot(u,f,h=g=>typeof confirm=="function"?confirm(g):!0){if(!u.some(g=>mot(g.op)))return{proceed:!0,preview:null};if(f){const g=await f(u);return{proceed:h(Eot(g)),preview:g}}return{proceed:h("This is a destructive change. Proceed?"),preview:null}}function jot(){const u=new Map;let f=0;return{begin(h){const g={id:`draft-${++f}`,commands:h,status:"pending"};return u.set(g.id,g),g},commit(h){const g=u.get(h);g&&(g.status="committed")},rollback(h){const g=u.get(h);g&&(g.status="rolled-back")},get:h=>u.get(h),list:()=>[...u.values()],pendingCount:()=>[...u.values()].filter(h=>h.status==="pending").length}}function Tot(u){u.boxSelectionEnabled(!0),u.selectionType("additive")}function Mot(u){u.selectionType("single")}function xot(u){u.nodes().forEach(f=>{var h;return(h=f.select)==null?void 0:h.call(f)}),u.edges().forEach(f=>{var h;return(h=f.select)==null?void 0:h.call(f)})}function Aot(u){u.$(":selected").forEach(f=>{var h;return(h=f.unselect)==null?void 0:h.call(f)})}function CQ(u){const f=u.$(":selected"),h=f.nodes().map(p=>p.id()),g=f.edges().map(p=>({sourceId:p.source().id(),targetId:p.target().id(),edgeType:p.data("type")}));return{nodeIds:h,edges:g}}function t6e(u){return{op:"delete-node",uid:u}}function $D(u,f,h){return{op:"delete-edge",edge:{sourceId:u,targetId:f,edgeType:h}}}function ax(u){return{op:"add-node",node:{attributes:{},...u}}}function eE(u){return{op:"add-edge",edge:{attributes:{},...u}}}function SD(u){return{op:"update-node",node:u}}function imn(u,f){return{op:"update-edge",edge:u,set:f}}function Iot(u,f,h,g){const p=g==="out"?{sourceId:h,targetId:u.uid,edgeType:f}:{sourceId:u.uid,targetId:h,edgeType:f};return[ax(u),eE(p)]}function Nye(u){return[...u.nodeIds.map(t6e),...u.edges.map(f=>$D(f.sourceId,f.targetId,f.edgeType))]}function Dye(u,f){return[$D(u.sourceId,u.targetId,u.edgeType),eE({sourceId:f.sourceId??u.sourceId,targetId:f.targetId??u.targetId,edgeType:u.edgeType})]}function _ot(u,f,h,g){return Dye({sourceId:f,targetId:u,edgeType:g},{sourceId:h})}function $ot(u,f){return u.map(h=>SD({uid:h,type:f}))}function Oot(u,f){return u.map(h=>SD({uid:h,...f}))}function Pot(u,f,h){return f.flatMap(g=>[ax(g),eE({sourceId:u,targetId:g.uid,edgeType:h})])}function Rot(u,f){return{op:"merge-nodes",sourceUid:u,targetUid:f}}function Q3n(u,f,h){const g=h.tracePatterns.find(k=>k.sourceType===f&&k.targetType===u);if(g)return{edgeType:g.edgeType,direction:"target-to-dragged"};const p=h.tracePatterns.find(k=>k.sourceType===u&&k.targetType===f);return p?{edgeType:p.edgeType,direction:"dragged-to-target"}:null}function Not({draggedId:u,draggedType:f,targetId:h,targetType:g,incidentEdges:p,ontology:k,duplicate:m}){const j=Q3n(f,g,k);if(!j||h===u)return null;const x=j.direction==="target-to-dragged"?{sourceId:h,targetId:u,edgeType:j.edgeType}:{sourceId:u,targetId:h,edgeType:j.edgeType},I=[];if(!m){const R=p.find(B=>B.edgeType===j.edgeType&&(j.direction==="target-to-dragged"?B.targetId===u:B.sourceId===u));if(R){if(R.sourceId===x.sourceId&&R.targetId===x.targetId)return null;I.push($D(R.sourceId,R.targetId,R.edgeType))}}return I.push(eE(x)),I}const Dot=u=>[u.sourceId,u.edgeType,u.targetId].join("|");function Fot(u,f){const h=[],g=[],p=[],k=new Set,m=j=>{const x=Dot(j);k.has(x)||(k.add(x),g.push(eE({sourceId:j.sourceId,targetId:j.targetId,edgeType:j.edgeType,attributes:j.attributes??{}})))};for(const j of u)switch(j.op){case"add-node":p.push(t6e(j.node.uid));break;case"add-edge":p.push($D(j.edge.sourceId,j.edge.targetId,j.edge.edgeType));break;case"delete-edge":{const x=f.edge(j.edge)??j.edge;m(x);break}case"delete-node":{const x=f.node(j.uid);if(!x)return null;h.push(ax({uid:x.uid,type:x.type,name:x.name??x.uid,description:x.description,attributes:x.attributes??{}}));for(const I of f.incidentEdges(j.uid))m(I);break}case"update-node":{const x=f.node(j.node.uid);if(!x)return null;const I={uid:x.uid};"name"in j.node&&(I.name=x.name),"description"in j.node&&(I.description=x.description),"attributes"in j.node&&(I.attributes=x.attributes??{}),"type"in j.node&&(I.type=x.type),p.push(SD(I));break}default:return null}return[...h,...g,...p]}function Lot(){const u=[],f=[];return{record(h,g){u.push({undo:h,redo:g}),f.length=0},canUndo:()=>u.length>0,canRedo:()=>f.length>0,undo(){const h=u.pop();return h?(f.push(h),h.undo):null},redo(){const h=f.pop();return h?(u.push(h),h.redo):null},clear(){u.length=0,f.length=0}}}let Z3n=null;function rmn(u){Z3n=u}function Bot(){return Z3n}function cmn(u,f){const h=new Set(u),g=[];for(const m of u){const j=f.node(m);j&&g.push(j)}const p=new Set,k=[];for(const m of u)for(const j of f.incidentEdges(m)){if(!h.has(j.sourceId)||!h.has(j.targetId))continue;const x=`${j.sourceId}|${j.edgeType}|${j.targetId}`;p.has(x)||(p.add(x),k.push({source:j.sourceId,target:j.targetId,edgeType:j.edgeType}))}return{nodes:g,edges:k}}function zot(u,f){const h=new Map,g=[];for(const p of u.nodes){const k=f(p);h.set(p.uid,k),g.push(ax({uid:k,type:p.type,name:p.name??p.uid,description:p.description,attributes:p.attributes??{}}))}for(const p of u.edges){const k=h.get(p.source),m=h.get(p.target);k&&m&&g.push(eE({sourceId:k,targetId:m,edgeType:p.edgeType}))}return g}function Jot(u,f){const h=f.tracePatterns.filter(p=>p.sourceType===u).map(p=>({edgeType:p.edgeType,nodeType:p.targetType,direction:"out"})),g=f.tracePatterns.filter(p=>p.targetType===u).map(p=>({edgeType:p.edgeType,nodeType:p.sourceType,direction:"in"}));return[...h,...g]}function Fye(u,f,h){return h.tracePatterns.filter(g=>g.sourceType===u&&g.targetType===f).map(g=>g.edgeType)}function Uot(u,f){return f.nodeTypes.filter(h=>h!==u)}function Got(u,f,h){return Fye(u,f,h)}function Hot(u,f,h,g){return g.tracePatterns.some(p=>p.edgeType===u&&p.sourceType===h&&p.targetType===f)}function qot({cy:u,mutate:f,ontology:h,impact:g,confirm:p,snapshot:k}){const m=new Set,j=jot(),x=k?Lot():null;let I=0;const R=se=>{for(const le of m)le(se)},B=()=>{const se=u.$(":selected").map(le=>le.id());R({type:"selection-changed",selection:se})},J=async(se,le={})=>{const{proceed:He}=await Cot(se,g,p);if(!He)return null;const Ye=x&&le.record!==!1&&k?Fot(se,k):null,Pn=j.begin(se),Zt=await f(se);return Zt.success?(j.commit(Pn.id),Ye&&x.record(Ye,se)):j.rollback(Pn.id),R({type:Zt.success?"applied":"blocked",commands:se,result:Zt}),Zt},W=async se=>{const le=se.target;if(le&&(le.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(le.tagName)))return;if((se.key==="a"||se.key==="A")&&(se.metaKey||se.ctrlKey)){se.preventDefault(),xot(u);return}if(se.key==="Escape"){Aot(u);return}if(x&&(se.key==="z"||se.key==="Z")&&(se.metaKey||se.ctrlKey)){se.preventDefault();const Ye=se.shiftKey?x.redo():x.undo();Ye&&await J(Ye,{record:!1});return}if(x&&(se.key==="y"||se.key==="Y")&&(se.metaKey||se.ctrlKey)){se.preventDefault();const Ye=x.redo();Ye&&await J(Ye,{record:!1});return}if(k&&(se.key==="c"||se.key==="C")&&(se.metaKey||se.ctrlKey)){const{nodeIds:Ye}=CQ(u);Ye.length&&(se.preventDefault(),rmn(cmn(Ye,k)));return}if(k&&(se.key==="x"||se.key==="X")&&(se.metaKey||se.ctrlKey)){const Ye=CQ(u);if(!Ye.nodeIds.length&&!Ye.edges.length)return;se.preventDefault(),rmn(cmn(Ye.nodeIds,k)),await J(Nye(Ye));return}if((se.key==="v"||se.key==="V")&&(se.metaKey||se.ctrlKey)){const Ye=Bot();if(!Ye||!Ye.nodes.length)return;se.preventDefault(),await J(zot(Ye,Pn=>x3n(Pn.type,`${Pn.name??Pn.uid} copy ${++I}`)));return}if(se.key!=="Delete"&&se.key!=="Backspace")return;const He=Nye(CQ(u));He.length&&await J(He)};let ee=null;const q=se=>{const le=se.target;ee={...le.position()},u.nodes().forEach(He=>{He!==le&&Q3n(le.data("type"),He.data("type"),h)&&He.addClass("gve-drop-legal")})},Ge=se=>{const le=se.position();let He=null;return u.nodes().forEach(Ye=>{if(Ye===se)return;const Pn=Ye.boundingBox({includeLabels:!1});le.x>=Pn.x1&&le.x<=Pn.x2&&le.y>=Pn.y1&&le.y<=Pn.y2&&(He=Ye)}),He},ce=async se=>{var Ni;u.nodes().removeClass("gve-drop-legal");const le=se.target,He=ee;ee=null;const Ye=Ge(le);if(!Ye)return;const Pn=Not({draggedId:le.id(),draggedType:le.data("type"),targetId:Ye.id(),targetType:Ye.data("type"),incidentEdges:le.connectedEdges().map(Jc=>({sourceId:Jc.source().id(),targetId:Jc.target().id(),edgeType:Jc.data("type")})),ontology:h,duplicate:!!((Ni=se.originalEvent)!=null&&Ni.altKey)});if(!Pn){He&&le.position(He);return}const Zt=await J(Pn);He&&!(Zt!=null&&Zt.success)&&le.position(He)},re=se=>{const le=se.target;let He;le===u?He={kind:"canvas",position:se.position,renderedPosition:se.renderedPosition}:le.isNode()?He={kind:"node",id:le.id(),nodeType:le.data("type"),position:se.position,renderedPosition:se.renderedPosition}:He={kind:"edge",id:le.id(),sourceId:le.source().id(),targetId:le.target().id(),edgeType:le.data("type"),sourceType:le.source().data("type"),targetType:le.target().data("type"),position:se.position,renderedPosition:se.renderedPosition},R({type:"context-requested",target:He,selection:u.$(":selected").map(Ye=>Ye.id())})};let de=!1;return{enable(){de||(de=!0,Tot(u),u.on("select unselect",B),u.on("cxttap",re),u.on("grab","node",q),u.on("free","node",ce),typeof document<"u"&&document.addEventListener("keydown",W))},disable(){de&&(de=!1,Mot(u),u.removeListener("select unselect",B),u.removeListener("cxttap",re),u.removeListener("grab","node",q),u.removeListener("free","node",ce),typeof document<"u"&&document.removeEventListener("keydown",W))},on(se){return m.add(se),()=>m.delete(se)},submit:J,drafts:j}}function Vot(u,f){return u==="name"||u==="description"?{[u]:f}:{attributes:{[u]:f}}}function Wot({target:u,realize:f,onClose:h}){const g=u.nodeType==="TEST",[p,k]=hn.useState({funcUid:g?"":u.id,file:"",symbol:"",testFile:"",testCase:""}),[m,j]=hn.useState(null),x=B=>J=>k(W=>({...W,[B]:J.target.value})),I=p.funcUid.trim()&&p.file.trim()&&p.symbol.trim()&&(!g||p.testFile.trim()),R=async()=>{const B={funcUid:p.funcUid.trim(),file:p.file.trim(),symbol:p.symbol.trim()};g&&(B.testUid=u.id,B.testFile=p.testFile.trim(),p.testCase.trim()&&(B.testCase=p.testCase.trim())),j(await f(B))};return Q.jsxs("div",{className:"gve-ctx-form","data-testid":"ctx-bind-form",children:[Q.jsx("label",{children:g?`${u.id} an Testdatei binden (testRef, R-19)`:`${u.id} an Code binden (codeRef, R-20)`}),g&&Q.jsx("input",{"data-testid":"ctx-bind-funcuid",placeholder:"FUNC-uid (realisiert durch)",value:p.funcUid,onChange:x("funcUid")}),Q.jsx("input",{"data-testid":"ctx-bind-file",placeholder:"Implementierungs-Datei (src/…)",value:p.file,onChange:x("file")}),Q.jsx("input",{"data-testid":"ctx-bind-symbol",placeholder:"Exportiertes Symbol",value:p.symbol,onChange:x("symbol")}),g&&Q.jsx("input",{"data-testid":"ctx-bind-testfile",placeholder:"Testdatei (tests/…)",value:p.testFile,onChange:x("testFile")}),g&&Q.jsx("input",{"data-testid":"ctx-bind-testcase",placeholder:"Testfall (optional)",value:p.testCase,onChange:x("testCase")}),Q.jsx("button",{className:"gve-ctx-item","data-testid":"ctx-bind-submit",disabled:!I,onClick:R,children:"Binden"}),m&&Q.jsx("span",{"data-testid":"ctx-bind-result",children:m.success===!1?`Fehler: ${m.error??"abgelehnt"}`:"gebunden ✓"}),m&&m.success!==!1&&Q.jsx("button",{className:"gve-ctx-item","data-testid":"ctx-bind-done",onClick:h,children:"Schließen"})]})}const jQ=x3n;function cs({testid:u,onClick:f,children:h,disabled:g}){return Q.jsx("button",{className:"gve-ctx-item","data-testid":u,onClick:f,disabled:g,children:h})}function cQ({testid:u,label:f,initial:h={},withDescription:g=!1,onSubmit:p}){const[k,m]=hn.useState(h.name??""),[j,x]=hn.useState(h.description??"");return Q.jsxs("div",{className:"gve-ctx-form","data-testid":u,children:[Q.jsx("label",{children:f}),Q.jsx("input",{"data-testid":`${u}-name`,placeholder:"Name",value:k,onChange:I=>m(I.target.value)}),g&&Q.jsx("textarea",{"data-testid":`${u}-description`,rows:"2",placeholder:"Beschreibung",value:j,onChange:I=>x(I.target.value)}),Q.jsx("button",{className:"gve-ctx-item","data-testid":`${u}-submit`,disabled:!k.trim(),onClick:()=>p({name:k.trim(),description:j}),children:"OK"})]})}function Y3n({target:u,selection:f=[],bulkSelection:h={nodeIds:[],edges:[]},composeParent:g=null,surface:p,ontology:k,nodeData:m={},onClose:j,onStartEdgePick:x,onStartPick:I,onViewState:R}){const[B,J]=hn.useState(null),[W,ee]=hn.useState("status"),[q,Ge]=hn.useState(""),ce=h.nodeIds.length+h.edges.length,re=async le=>{j(),await p.submit(le)},de=u.renderedPosition?{left:u.renderedPosition.x,top:u.renderedPosition.y}:{},se=f;return Q.jsxs("div",{className:"gve-ctx","data-testid":"ctx-menu",style:de,children:[u.kind==="node"&&Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"gve-ctx-head",children:u.id}),R&&Q.jsxs("div",{"data-testid":"ctx-viewstate",children:[Q.jsx(cs,{testid:"ctx-vs-hide",onClick:()=>{j(),R("hide")},children:"Verbergen"}),Q.jsx(cs,{testid:"ctx-vs-fade",onClick:()=>{j(),R("fade")},children:"Abblenden"}),Q.jsx(cs,{testid:"ctx-vs-collapse",onClick:()=>{j(),R("collapse")},children:"Einklappen"}),Q.jsx(cs,{testid:"ctx-vs-pin",onClick:()=>{j(),R("pin")},children:"Pin"})]}),p&&B===null&&Q.jsxs(Q.Fragment,{children:[Q.jsx(cs,{testid:"ctx-open-add-node",onClick:()=>J("add-node"),children:"Add Node ▸"}),Q.jsx(cs,{testid:"ctx-add-edge",onClick:()=>{j(),x==null||x({id:u.id,type:u.nodeType})},children:"Add Relationship (Ziel per Klick)"}),Q.jsx(cs,{testid:"ctx-open-props",onClick:()=>J("props"),children:"Edit Props / Rename"}),Q.jsx(cs,{testid:"ctx-open-retype",onClick:()=>J("retype"),children:"Change Type ▸"}),Q.jsxs(cs,{testid:"ctx-merge",disabled:se.length!==2||!se.includes(u.id),onClick:()=>{const le=se.find(He=>He!==u.id);re([Rot(le,u.id)])},children:["Merge (Auswahl → ",u.id,")"]}),Q.jsx(cs,{testid:"ctx-open-decompose",onClick:()=>J("decompose"),children:"Decompose ▸"}),Q.jsx(cs,{testid:"ctx-reparent",disabled:!g,onClick:()=>{j(),I==null||I({mode:"reparent",childUid:u.id,oldParentUid:g})},children:"Reparent (Parent per Klick)"}),(u.nodeType==="FUNC"||u.nodeType==="TEST")&&p.realize&&Q.jsx(cs,{testid:"ctx-open-bind",onClick:()=>J("bind"),children:"Bind Code/Test ▸"}),Q.jsx(cs,{testid:"ctx-delete",onClick:()=>re([t6e(u.id)]),children:"Delete"}),ce>1&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{className:"gve-ctx-head","data-testid":"ctx-bulk-head",children:["Bulk · ",ce," ausgewählt"]}),Q.jsx(cs,{testid:"ctx-bulk-delete",onClick:()=>re(Nye(h)),children:"Bulk Delete"}),Q.jsx(cs,{testid:"ctx-open-bulk-retype",onClick:()=>J("bulk-retype"),children:"Bulk Change Type ▸"}),Q.jsx(cs,{testid:"ctx-open-bulk-prop",onClick:()=>J("bulk-prop"),children:"Bulk Change Property ▸"})]})]}),B==="bind"&&Q.jsx(Wot,{target:u,realize:p.realize,onClose:j}),B==="bulk-retype"&&k.nodeTypes.map(le=>Q.jsxs(cs,{testid:`ctx-bulk-retype-${le}`,onClick:()=>re($ot(h.nodeIds,le)),children:["alle → ",le]},le)),B==="bulk-prop"&&Q.jsxs("div",{className:"gve-ctx-form","data-testid":"ctx-bulk-prop-form",children:[Q.jsxs("label",{children:["Property für ",h.nodeIds.length," Knoten"]}),Q.jsx("input",{"data-testid":"ctx-bulk-prop-key",placeholder:"Schlüssel (z.B. status)",value:W,onChange:le=>ee(le.target.value)}),Q.jsx("input",{"data-testid":"ctx-bulk-prop-value",placeholder:"Wert",value:q,onChange:le=>Ge(le.target.value)}),Q.jsx("button",{className:"gve-ctx-item","data-testid":"ctx-bulk-prop-submit",disabled:!W.trim()||!q.trim(),onClick:()=>re(Oot(h.nodeIds,Vot(W.trim(),q.trim()))),children:"OK"})]}),B==="add-node"&&Jot(u.nodeType,k).map(le=>Q.jsx(cs,{testid:`ctx-add-node-${le.direction}-${le.edgeType}-${le.nodeType}`,onClick:()=>J(le),children:le.direction==="out"?`+ ${le.nodeType} (—${le.edgeType}→ neu)`:`+ ${le.nodeType} (neu —${le.edgeType}→)`},`${le.direction}-${le.edgeType}-${le.nodeType}`)),B!==null&&typeof B=="object"&&Q.jsx(cQ,{testid:"ctx-add-node-form",label:`Neuer ${B.nodeType} (${B.edgeType})`,onSubmit:({name:le})=>re(Iot({uid:jQ(B.nodeType,le),type:B.nodeType,name:le},B.edgeType,u.id,B.direction))}),B==="props"&&Q.jsx(cQ,{testid:"ctx-props-form",label:`${u.id} ändern`,initial:m,withDescription:!0,onSubmit:({name:le,description:He})=>re([SD({uid:u.id,name:le,description:He})])}),B==="retype"&&Uot(u.nodeType,k).map(le=>Q.jsxs(cs,{testid:`ctx-retype-${le}`,onClick:()=>re([SD({uid:u.id,type:le})]),children:["→ ",le]},le)),B==="decompose"&&Q.jsx(cQ,{testid:"ctx-decompose-form",label:`Kind-Knoten von ${u.id} (Name)`,onSubmit:({name:le})=>{var Ye;const He=(Ye=k.tracePatterns.find(Pn=>Pn.edgeType==="compose"&&Pn.sourceType===u.nodeType))==null?void 0:Ye.targetType;He&&re(Pot(u.id,[{uid:jQ(He,le),type:He,name:le}],"compose"))}})]}),u.kind==="edge"&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{className:"gve-ctx-head",children:[u.sourceId," —",u.edgeType,"→ ",u.targetId]}),Got(u.sourceType,u.targetType,k).filter(le=>le!==u.edgeType).map(le=>Q.jsxs(cs,{testid:`ctx-edge-retype-${le}`,onClick:()=>re([imn({sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType},{edgeType:le})]),children:["Typ → ",le]},le)),Hot(u.edgeType,u.sourceType,u.targetType,k)&&Q.jsx(cs,{testid:"ctx-edge-flip",onClick:()=>re([imn({sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType},{flip:!0})]),children:"Richtung umkehren"}),Q.jsx(cs,{testid:"ctx-edge-relink-target",onClick:()=>{j(),I==null||I({mode:"relink-target",edge:{sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType}})},children:"Relink Ziel (per Klick)"}),Q.jsx(cs,{testid:"ctx-edge-relink-source",onClick:()=>{j(),I==null||I({mode:"relink-source",edge:{sourceId:u.sourceId,targetId:u.targetId,edgeType:u.edgeType}})},children:"Relink Quelle (per Klick)"}),Q.jsx(cs,{testid:"ctx-edge-delete",onClick:()=>re([$D(u.sourceId,u.targetId,u.edgeType)]),children:"Delete"})]}),u.kind==="canvas"&&Q.jsxs(Q.Fragment,{children:[Q.jsx("div",{className:"gve-ctx-head",children:"Neuer Knoten"}),B===null&&k.nodeTypes.map(le=>Q.jsxs(cs,{testid:`ctx-new-${le}`,onClick:()=>J(le),children:["+ ",le]},le)),typeof B=="string"&&Q.jsx(cQ,{testid:"ctx-new-node-form",label:`Neuer ${B}`,onSubmit:({name:le})=>re([ax({uid:jQ(B,le),type:B,name:le})])})]}),u.kind==="edge-pick"&&Q.jsxs(Q.Fragment,{children:[Q.jsxs("div",{className:"gve-ctx-head",children:[u.sourceId," → ",u.targetId]}),Fye(u.sourceType,u.targetType,k).length===0&&Q.jsx("div",{className:"gve-ctx-empty","data-testid":"ctx-edge-pick-none",children:"keine legale Kante"}),Fye(u.sourceType,u.targetType,k).map(le=>Q.jsxs(cs,{testid:`ctx-edge-type-${le}`,onClick:()=>re([eE({sourceId:u.sourceId,targetId:u.targetId,edgeType:le})]),children:["—",le,"→"]},le))]}),Q.jsx(cs,{testid:"ctx-close",onClick:j,children:"Schließen"})]})}const omn=32,Kot=.1,Xot=4,Qot=u=>Math.min(Xot,Math.max(Kot,u));function Zot({scrollLeft:u,scrollTop:f,offX:h,offY:g,padX:p,padY:k,z:m,z2:j}){const x=(u+h-p)/m,I=(f+g-k)/m;return{scrollLeft:p+x*j-h,scrollTop:k+I*j-g}}function eyn(u,f){const h=Math.min(f.x1,f.x2),g=Math.max(f.x1,f.x2),p=Math.min(f.y1,f.y2),k=Math.max(f.y1,f.y2);return u.filter(m=>m.x>=h&&m.x<=g&&m.y>=p&&m.y<=k).map(m=>m.id)}function nyn({onMarquee:u}={}){const f=hn.useRef(null),h=hn.useRef(null),g=hn.useRef(null),p=hn.useRef(!1),k=hn.useRef(!1),m=hn.useRef(null),j=hn.useRef(!1),[x,I]=hn.useState(null),[R,B]=hn.useState(1),[J,W]=hn.useState(!1),[ee,q]=hn.useState(!1),[Ge,ce]=hn.useState(()=>new Map),[re,de]=hn.useState({x:0,y:0});hn.useLayoutEffect(()=>{const Mn=f.current;if(!Mn)return;const Gn=()=>de({x:Math.round(Mn.clientWidth/2),y:Math.round(Mn.clientHeight/2)});if(Gn(),typeof ResizeObserver>"u")return;const jt=new ResizeObserver(Gn);return jt.observe(Mn),()=>jt.disconnect()},[]);const se=()=>{const Mn=f.current;Mn&&(Mn.scrollLeft=(Mn.scrollWidth-Mn.clientWidth)/2,Mn.scrollTop=(Mn.scrollHeight-Mn.clientHeight)/2)},le=Mn=>{const Gn=f.current;if(!Gn||!(Mn!=null&&Mn.width)||!(Mn!=null&&Mn.height))return B(1);const jt=Math.min((Gn.clientWidth-2*omn)/Mn.width,(Gn.clientHeight-2*omn)/Mn.height);B(jt>0?jt:1),requestAnimationFrame(se)},He=Mn=>{k.current||!(Mn!=null&&Mn.width)||(k.current=!0,le(Mn))},Ye=(Mn,Gn,jt)=>{const fr=f.current,Pr=R,Qr=Qot(Mn);if(B(Qr),!fr||!(Pr>0))return;const os=Gn??fr.clientWidth/2,Zo=jt??fr.clientHeight/2,ks=Zot({scrollLeft:fr.scrollLeft,scrollTop:fr.scrollTop,offX:os,offY:Zo,padX:re.x,padY:re.y,z:Pr,z2:Qr});requestAnimationFrame(()=>{fr.scrollLeft=ks.scrollLeft,fr.scrollTop=ks.scrollTop})},Pn=Mn=>Ye(Mn),Zt=hn.useRef({zoom:R,pad:re});Zt.current={zoom:R,pad:re,applyZoom:Ye},hn.useEffect(()=>{const Mn=f.current;if(!Mn)return;const Gn=jt=>{if(!(jt.metaKey||jt.ctrlKey))return;jt.preventDefault();const{zoom:fr,applyZoom:Pr}=Zt.current,Qr=Mn.getBoundingClientRect();Pr(fr*Math.exp(-jt.deltaY*.0015),jt.clientX-Qr.left,jt.clientY-Qr.top)};return Mn.addEventListener("wheel",Gn,{passive:!1}),()=>Mn.removeEventListener("wheel",Gn)},[]),hn.useEffect(()=>{const Mn=jt=>{if(jt.key!==" ")return;const fr=jt.target;fr&&(fr.isContentEditable||/^(INPUT|TEXTAREA|SELECT)$/.test(fr.tagName))||(j.current=!0,q(!0),jt.preventDefault())},Gn=jt=>{jt.key===" "&&(j.current=!1,q(!1))};return document.addEventListener("keydown",Mn),document.addEventListener("keyup",Gn),()=>{document.removeEventListener("keydown",Mn),document.removeEventListener("keyup",Gn)}},[]);const Ni=Mn=>{const Gn=f.current;if(!Gn||Mn.button!==0&&Mn.button!==1)return;p.current=!1;const jt=Mn.button===1||j.current;if(u&&!jt&&Mn.button===0){const fr=Gn.getBoundingClientRect();m.current={x0:Mn.clientX-fr.left,y0:Mn.clientY-fr.top,additive:Mn.shiftKey,moved:!1},I({left:m.current.x0,top:m.current.y0,width:0,height:0});return}h.current={x:Mn.clientX,y:Mn.clientY,l:Gn.scrollLeft,t:Gn.scrollTop},W(!0)},Jc=(Mn,Gn)=>{if(Mn.button!==0)return;Mn.stopPropagation(),p.current=!1;const jt=Ge.get(Gn)??{x:0,y:0};g.current={id:Gn,x:Mn.clientX,y:Mn.clientY,ox:jt.x,oy:jt.y,moved:!1}},hu=Mn=>{const Gn=g.current;if(Gn){const Qr=(Mn.clientX-Gn.x)/R,os=(Mn.clientY-Gn.y)/R;if(!Gn.moved&&Math.abs(Qr)+Math.abs(os)<3)return;Gn.moved=!0,ce(Zo=>new Map(Zo).set(Gn.id,{x:Gn.ox+Qr,y:Gn.oy+os}));return}const jt=m.current;if(jt){const os=f.current.getBoundingClientRect(),Zo=Mn.clientX-os.left,ks=Mn.clientY-os.top;Math.abs(Zo-jt.x0)+Math.abs(ks-jt.y0)>=3&&(jt.moved=!0),jt.x1=Zo,jt.y1=ks,I({left:Math.min(jt.x0,Zo),top:Math.min(jt.y0,ks),width:Math.abs(Zo-jt.x0),height:Math.abs(ks-jt.y0)});return}const fr=f.current,Pr=h.current;!fr||!Pr||(Math.abs(Mn.clientX-Pr.x)+Math.abs(Mn.clientY-Pr.y)>=3&&(Pr.moved=!0),fr.scrollLeft=Pr.l-(Mn.clientX-Pr.x),fr.scrollTop=Pr.t-(Mn.clientY-Pr.y))},V=()=>{var Gn,jt;W(!1);const Mn=m.current;if(Mn){if(m.current=null,I(null),Mn.moved&&Mn.x1!=null){p.current=!0;const fr=f.current,Pr=(Zo,ks)=>({x:(fr.scrollLeft+Zo-re.x)/R,y:(fr.scrollTop+ks-re.y)/R}),Qr=Pr(Mn.x0,Mn.y0),os=Pr(Mn.x1,Mn.y1);u==null||u({x1:Qr.x,y1:Qr.y,x2:os.x,y2:os.y},Mn.additive)}return}((Gn=g.current)!=null&&Gn.moved||(jt=h.current)!=null&&jt.moved)&&(p.current=!0),g.current=null,h.current=null};return{mainRef:f,pad:re,zoom:R,cursor:J||ee?"grabbing":u?"crosshair":"grab",zoomTo:Pn,fitZoom:le,fitOnce:He,dragOffsets:Ge,resetDragOffsets:()=>ce(new Map),setDragOffset:(Mn,Gn)=>ce(jt=>new Map(jt).set(Mn,Gn)),onNodeDown:Jc,consumeSuppressedClick:()=>p.current?(p.current=!1,!0):!1,activeNodeDrag:()=>g.current,marquee:x,panHandlers:{onMouseDown:Ni,onMouseMove:hu,onMouseUp:V,onMouseLeave:V}}}function Yot(){let u=[],f=[],h=()=>({x:0,y:0}),g=()=>{};const p=new Set,k=new Map,m=new Map,j=new Set;let x=!1,I=!1;const R=()=>{for(const se of j)se()},B=(se,le,He)=>{for(const Ye of m.get(`${se}|${le??""}`)??[])Ye(He)},J=se=>u.find(le=>le.data.id===se),W=se=>f.find(le=>le.data.id===se),ee=new Map,q=new Map,Ge=se=>{if(ee.has(se))return ee.get(se);const le={length:1,isNode:()=>!0,id:()=>se,data:He=>{var Ye,Pn,Zt;return He===void 0?(Ye=J(se))==null?void 0:Ye.data:(Zt=(Pn=J(se))==null?void 0:Pn.data)==null?void 0:Zt[He]},position:He=>He?g(se,He):{...h(se)},boundingBox:()=>{const He=J(se),Ye=h(se),Pn=(He==null?void 0:He.width)??0,Zt=(He==null?void 0:He.height)??0;return{x1:Ye.x-Pn/2,y1:Ye.y-Zt/2,x2:Ye.x+Pn/2,y2:Ye.y+Zt/2,w:Pn,h:Zt}},connectedEdges:()=>re(f.filter(He=>He.data.source===se||He.data.target===se).map(He=>ce(He.data.id))),addClass:He=>{k.has(se)||k.set(se,new Set),k.get(se).add(He),R()},removeClass:He=>{var Ye;(Ye=k.get(se))==null||Ye.delete(He),R()},select:()=>de.selectNode(se,{additive:!0}),unselect:()=>{p.delete(se),B("select unselect","",{target:le}),R()}};return ee.set(se,le),le},ce=se=>{if(q.has(se))return q.get(se);const le=()=>{var Ye;return(Ye=f.find(Pn=>Pn.data.id===se))==null?void 0:Ye.data},He={length:1,isNode:()=>!1,id:()=>se,data:Ye=>{var Pn;return Ye===void 0?le():(Pn=le())==null?void 0:Pn[Ye]},source:()=>{var Ye;return Ge((Ye=le())==null?void 0:Ye.source)},target:()=>{var Ye;return Ge((Ye=le())==null?void 0:Ye.target)},select:()=>de.selectEdge(se,{additive:!0}),unselect:()=>{p.delete(se),B("select unselect","",{target:He}),R()}};return q.set(se,He),He},re=se=>Object.assign(se,{nodes:()=>re(se.filter(le=>le.isNode())),edges:()=>re(se.filter(le=>!le.isNode())),addClass:le=>se.forEach(He=>{var Ye;return(Ye=He.addClass)==null?void 0:Ye.call(He,le)}),removeClass:le=>se.forEach(He=>{var Ye;return(Ye=He.removeClass)==null?void 0:Ye.call(He,le)})}),de={$:se=>{if(se===":selected")return re([...p].map(le=>J(le)?Ge(le):W(le)?ce(le):null).filter(Boolean));throw new Error(`svg-edit-adapter: unsupported selector ${se}`)},nodes:()=>re(u.map(se=>Ge(se.data.id))),edges:()=>re(f.map(se=>ce(se.data.id))),getElementById:se=>J(se)?Ge(se):{length:0},on:(se,le,He)=>{const Ye=He?le:"",Pn=He??le,Zt=`${se}|${Ye}`;m.has(Zt)||m.set(Zt,new Set),m.get(Zt).add(Pn)},removeListener:(se,le,He)=>{var Zt;const Ye=He?le:"",Pn=He??le;(Zt=m.get(`${se}|${Ye}`))==null||Zt.delete(Pn)},boxSelectionEnabled:se=>{if(se===void 0)return I;I=!!se},selectionType:se=>{if(se===void 0)return x?"additive":"single";x=se==="additive"},setScene:se=>{u=se.nodes,f=se.edges,h=se.getPos,g=se.setPos;let le=!1;for(const He of[...p])!J(He)&&!W(He)&&(p.delete(He),le=!0);le&&B("select unselect","",{}),R()},subscribe:se=>(j.add(se),()=>j.delete(se)),selection:()=>new Set(p),classesOf:se=>[...k.get(se)??[]],selectNode:(se,{additive:le=x}={})=>{le&&p.has(se)?p.delete(se):(le||p.clear(),p.add(se)),B("select unselect","",{target:Ge(se)}),R()},selectEdge:(se,{additive:le=x}={})=>{le&&p.has(se)?p.delete(se):(le||p.clear(),p.add(se)),B("select unselect","",{target:ce(se)}),R()},clearSelection:()=>{p.size&&(p.clear(),B("select unselect","",{}),R())},emitGrab:se=>B("grab","node",{target:Ge(se)}),emitFree:(se,le)=>B("free","node",{target:Ge(se),originalEvent:le}),emitContextTap:({kind:se,id:le,position:He,renderedPosition:Ye})=>{const Pn=se==="canvas"?de:se==="edge"?ce(le):Ge(le);B("cxttap","",{target:Pn,position:He,renderedPosition:Ye})}};return de}function tyn({url:u="/api/mutate",baseVersion:f,consumerId:h,fetchImpl:g=fetch}={}){let p=f;async function k(m){var I;const x=await(await g(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({commands:m,baseVersion:p,...h!==void 0?{consumerId:h}:{}})})).json();return typeof x.graphVersion=="number"?p=x.graphVersion:typeof((I=x.staleDelta)==null?void 0:I.currentVersion)=="number"&&(p=x.staleDelta.currentVersion),x}return{mutate:k,getVersion:()=>p}}function iyn(u="graph-view-edit"){return{consumerId:u,consumerType:"human"}}function eut(u){const f=Object.keys(u.nodeTypes),h=Object.keys(u.edgeTypes),g=h.flatMap(p=>(u.edgeTypes[p].validPairs??[]).filter(([k,m])=>k!=="*"&&m!=="*").map(([k,m])=>({edgeType:p,sourceType:k,targetType:m})));return{nodeTypes:f,edgeTypes:h,tracePatterns:g}}function ED(u=typeof window<"u"?window.location:void 0,f=G3n()){var g;if(!u)return!1;const h=new URLSearchParams(u.search).get("edit");return h==="1"?!0:h==="0"?!1:!!((g=f.edit)!=null&&g.enabled)}function nut({url:u="/api/realize",consumerId:f,fetchImpl:h=fetch}={}){return async function(p){return(await h(u,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({...p,...f!==void 0?{consumerId:f}:{}})})).json()}}function tut({cy:u,location:f,fetchImpl:h,snapshot:g}={}){if(!ED(f))return null;const{consumerId:p}=iyn(),k=tyn({url:"/api/mutate",consumerId:p,fetchImpl:h}),m=eut(_D);return{...qot({cy:u,mutate:k.mutate,ontology:m,snapshot:g}),ontology:m,realize:nut({consumerId:p,fetchImpl:h})}}function ryn(u){const f=hn.useMemo(()=>Yot(),[]),h=hn.useRef(null),[,g]=hn.useState(0),[p,k]=hn.useState(null),[m,j]=hn.useState(0),[x,I]=hn.useState(null),R=hn.useRef(u);R.current=u;const B=hn.useMemo(()=>({node:W=>{var Pn,Zt;const ee=(Zt=(Pn=R.current)==null?void 0:Pn.elements)==null?void 0:Zt.find(Ni=>Ni.id===W);if(!ee)return null;const{id:q,type:Ge,name:ce,description:re,status:de,asil:se,method:le,kinds:He,attributes:Ye}=ee;return{uid:q,type:Ge,name:ce,description:re,attributes:{...Ye??{},status:de,asil:se,method:le,kinds:He}}},incidentEdges:W=>{var ee;return(((ee=R.current)==null?void 0:ee.traces)??[]).filter(q=>q.source===W||q.target===W).map(q=>({sourceId:q.source,targetId:q.target,edgeType:q.type}))},edge:({sourceId:W,targetId:ee,edgeType:q})=>{var ce;return(((ce=R.current)==null?void 0:ce.traces)??[]).find(re=>re.source===W&&re.target===ee&&re.type===q)?{sourceId:W,targetId:ee,edgeType:q}:null}}),[]);hn.useEffect(()=>f.subscribe(()=>g(W=>W+1)),[f]),hn.useEffect(()=>{const W=tut({cy:f,location:typeof window<"u"?window.location:void 0,snapshot:B});if(!W)return;h.current=W;const ee=W.on(q=>{if(q.type==="context-requested"){I({target:q.target,selection:q.selection,bulk:CQ(f)});return}q.type!=="applied"&&q.type!=="blocked"||(k(q),j(W.drafts.pendingCount()))});return W.enable(),()=>{ee(),W.disable(),h.current=null}},[f,B]);const J=!!h.current;return{adapter:f,editSurfaceRef:h,editing:J,gateEvent:p,draftCount:m,ctxMenu:x,setCtxMenu:I}}function oQ(u){throw new Error('Could not dynamically require "'+u+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var cyn={exports:{}};(function(u,f){(function(h){u.exports=h()})(function(){return function(){function h(g,p,k){function m(I,R){if(!p[I]){if(!g[I]){var B=typeof oQ=="function"&&oQ;if(!R&&B)return B(I,!0);if(j)return j(I,!0);var J=new Error("Cannot find module '"+I+"'");throw J.code="MODULE_NOT_FOUND",J}var W=p[I]={exports:{}};g[I][0].call(W.exports,function(ee){var q=g[I][1][ee];return m(q||ee)},W,W.exports,h,g,p,k)}return p[I].exports}for(var j=typeof oQ=="function"&&oQ,x=0;x<k.length;x++)m(k[x]);return m}return h}()({1:[function(h,g,p){Object.defineProperty(p,"__esModule",{value:!0}),p.default=void 0;function k(J){"@babel/helpers - typeof";return k=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(W){return typeof W}:function(W){return W&&typeof Symbol=="function"&&W.constructor===Symbol&&W!==Symbol.prototype?"symbol":typeof W},k(J)}function m(J,W){if(!(J instanceof W))throw new TypeError("Cannot call a class as a function")}function j(J,W){for(var ee=0;ee<W.length;ee++){var q=W[ee];q.enumerable=q.enumerable||!1,q.configurable=!0,"value"in q&&(q.writable=!0),Object.defineProperty(J,I(q.key),q)}}function x(J,W,ee){return W&&j(J.prototype,W),Object.defineProperty(J,"prototype",{writable:!1}),J}function I(J){var W=R(J,"string");return k(W)=="symbol"?W:W+""}function R(J,W){if(k(J)!="object"||!J)return J;var ee=J[Symbol.toPrimitive];if(ee!==void 0){var q=ee.call(J,W);if(k(q)!="object")return q;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(J)}p.default=function(){function J(){var W=this,ee=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},q=ee.defaultLayoutOptions,Ge=q===void 0?{}:q,ce=ee.algorithms,re=ce===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:ce,de=ee.workerFactory,se=ee.workerUrl;if(m(this,J),this.defaultLayoutOptions=Ge,this.initialized=!1,typeof se>"u"&&typeof de>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var le=de;typeof se<"u"&&typeof de>"u"&&(le=function(Pn){return new Worker(Pn)});var He=le(se);if(typeof He.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new B(He),this.worker.postMessage({cmd:"register",algorithms:re}).then(function(Ye){return W.initialized=!0}).catch(console.err)}return x(J,[{key:"layout",value:function(ee){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ge=q.layoutOptions,ce=Ge===void 0?this.defaultLayoutOptions:Ge,re=q.logging,de=re===void 0?!1:re,se=q.measureExecutionTime,le=se===void 0?!1:se;return ee?this.worker.postMessage({cmd:"layout",graph:ee,layoutOptions:ce,options:{logging:de,measureExecutionTime:le}}):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&&this.worker.terminate()}}])}();var B=function(){function J(W){var ee=this;if(m(this,J),W===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=W,this.worker.onmessage=function(q){setTimeout(function(){ee.receive(ee,q)},0)}}return x(J,[{key:"postMessage",value:function(ee){var q=this.id||0;this.id=q+1,ee.id=q;var Ge=this;return new Promise(function(ce,re){Ge.resolvers[q]=function(de,se){de?(Ge.convertGwtStyleError(de),re(de)):ce(se)},Ge.worker.postMessage(ee)})}},{key:"receive",value:function(ee,q){var Ge=q.data,ce=ee.resolvers[Ge.id];ce&&(delete ee.resolvers[Ge.id],Ge.error?ce(Ge.error):ce(null,Ge.data))}},{key:"terminate",value:function(){this.worker&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(ee){if(ee){var q=ee.__java$exception;q&&(q.cause&&q.cause.backingJsObject&&(ee.cause=q.cause.backingJsObject,this.convertGwtStyleError(ee.cause)),delete ee.__java$exception)}}}])}()},{}],2:[function(h,g,p){(function(k){(function(){var m;typeof window<"u"?m=window:typeof k<"u"?m=k:typeof self<"u"&&(m=self);var j;function x(){}function I(){}function R(){}function B(){}function J(){}function W(){}function ee(){}function q(){}function Ge(){}function ce(){}function re(){}function de(){}function se(){}function le(){}function He(){}function Ye(){}function Pn(){}function Zt(){}function Ni(){}function Jc(){}function hu(){}function V(){}function kc(){}function Wn(){}function Yt(){}function Vt(){}function Bn(){}function Mn(){}function Gn(){}function jt(){}function fr(){}function Pr(){}function Qr(){}function os(){}function Zo(){}function ks(){}function Cv(){}function zh(){}function jv(){}function xt(){}function Jh(){}function Uc(){}function Yo(){}function lh(){}function fh(){}function Pm(){}function cr(){}function Vy(){}function B0(){}function jo(){}function Wy(){}function Tv(){}function mk(){}function nE(){}function Rm(){}function Uh(){}function vk(){}function yk(){}function kk(){}function Ol(){}function eu(){}function z0(){}function tE(){}function Pl(){}function $d(){}function Sk(){}function Mv(){}function xv(){}function Ek(){}function Av(){}function Ky(){}function Iv(){}function iE(){}function Rs(){}function Xy(){}function Ck(){}function Qy(){}function jk(){}function Tk(){}function xb(){}function rn(){}function st(){}function dr(){}function go(){}function Do(){}function rw(){}function Od(){}function Be(){}function Tt(){}function ji(){}function Hi(){}function yi(){}function zi(){}function fi(){}function Br(){}function ki(){}function lc(){}function Fo(){}function Cr(){}function fc(){}function wo(){}function Pf(){}function rE(){}function Mk(){}function cE(){}function hx(){}function u6e(){}function s6e(){}function xZ(){}function AZ(){}function l6e(){}function f6e(){}function a6e(){}function h6e(){}function d6e(){}function g6e(){}function w6e(){}function b6e(){}function p6e(){}function m6e(){}function v6e(){}function y6e(){}function k6e(){}function S6e(){}function E6e(){}function C6e(){}function j6e(){}function T6e(){}function M6e(){}function x6e(){}function A6e(){}function I6e(){}function _6e(){}function $6e(){}function O6e(){}function P6e(){}function R6e(){}function N6e(){}function D6e(){}function F6e(){}function L6e(){}function B6e(){}function z6e(){}function J6e(){}function U6e(){}function G6e(){}function H6e(){}function q6e(){}function V6e(){}function W6e(){}function K6e(){}function X6e(){}function Q6e(){}function Z6e(){}function Y6e(){}function e5e(){}function n5e(){}function t5e(){}function i5e(){}function r5e(){}function c5e(){}function o5e(){}function u5e(){}function s5e(){}function l5e(){}function f5e(){}function a5e(){}function h5e(){}function d5e(){}function g5e(){}function w5e(){}function b5e(){}function p5e(){}function m5e(){}function v5e(){}function y5e(){}function k5e(){}function S5e(){}function E5e(){}function C5e(){}function j5e(){}function T5e(){}function M5e(){}function x5e(){}function A5e(){}function I5e(){}function _5e(){}function $5e(){}function O5e(){}function P5e(){}function R5e(){}function N5e(){}function D5e(){}function F5e(){}function L5e(){}function B5e(){}function z5e(){}function J5e(){}function U5e(){}function G5e(){}function H5e(){}function q5e(){}function V5e(){}function W5e(){}function K5e(){}function X5e(){}function Q5e(){}function Z5e(){}function Y5e(){}function eke(){}function IZ(){}function nke(){}function tke(){}function ike(){}function rke(){}function cke(){}function oke(){}function uke(){}function ske(){}function lke(){}function fke(){}function ake(){}function hke(){}function dke(){}function gke(){}function wke(){}function bke(){}function pke(){}function mke(){}function vke(){}function yke(){}function kke(){}function Ske(){}function Eke(){}function Cke(){}function jke(){}function Tke(){}function Mke(){}function xke(){}function Ake(){}function Ike(){}function _ke(){}function $ke(){}function Oke(){}function Pke(){}function Rke(){}function Nke(){}function Dke(){}function Fke(){}function Lke(){}function Bke(){}function zke(){}function Jke(){}function Uke(){}function Gke(){}function Hke(){}function qke(){}function Vke(){}function Wke(){}function Kke(){}function Xke(){}function Qke(){}function Zke(){}function Yke(){}function e9e(){}function n9e(){}function t9e(){}function i9e(){}function r9e(){}function c9e(){}function o9e(){}function u9e(){}function s9e(){}function l9e(){}function f9e(){}function a9e(){}function h9e(){}function d9e(){}function g9e(){}function w9e(){}function b9e(){}function p9e(){}function m9e(){}function v9e(){}function y9e(){}function k9e(){}function S9e(){}function _Z(){}function E9e(){}function C9e(){}function j9e(){}function T9e(){}function M9e(){}function x9e(){}function A9e(){}function I9e(){}function _9e(){}function dx(){}function gx(){}function $9e(){}function $Z(){}function O9e(){}function P9e(){}function R9e(){}function N9e(){}function D9e(){}function F9e(){}function OZ(){}function PZ(){}function L9e(){}function RZ(){}function NZ(){}function B9e(){}function z9e(){}function oE(){}function J9e(){}function U9e(){}function G9e(){}function H9e(){}function q9e(){}function V9e(){}function W9e(){}function K9e(){}function X9e(){}function Q9e(){}function Z9e(){}function Y9e(){}function e8e(){}function n8e(){}function t8e(){}function i8e(){}function r8e(){}function c8e(){}function o8e(){}function u8e(){}function s8e(){}function l8e(){}function f8e(){}function a8e(){}function DZ(){}function h8e(){}function d8e(){}function g8e(){}function w8e(){}function b8e(){}function p8e(){}function m8e(){}function v8e(){}function y8e(){}function k8e(){}function S8e(){}function E8e(){}function C8e(){}function j8e(){}function T8e(){}function M8e(){}function x8e(){}function A8e(){}function I8e(){}function _8e(){}function $8e(){}function O8e(){}function P8e(){}function R8e(){}function N8e(){}function D8e(){}function F8e(){}function L8e(){}function B8e(){}function z8e(){}function J8e(){}function U8e(){}function G8e(){}function H8e(){}function q8e(){}function V8e(){}function W8e(){}function K8e(){}function X8e(){}function Q8e(){}function Z8e(){}function Y8e(){}function e7e(){}function n7e(){}function t7e(){}function i7e(){}function r7e(){}function c7e(){}function o7e(){}function u7e(){}function s7e(){}function l7e(){}function f7e(){}function a7e(){}function h7e(){}function d7e(){}function g7e(){}function w7e(){}function b7e(){}function p7e(){}function m7e(){}function v7e(){}function y7e(){}function k7e(){}function S7e(){}function E7e(){}function C7e(){}function Cyn(){}function j7e(){}function T7e(){}function M7e(){}function x7e(){}function A7e(){}function I7e(){}function _7e(){}function $7e(){}function O7e(){}function P7e(){}function R7e(){}function N7e(){}function D7e(){}function F7e(){}function L7e(){}function B7e(){}function z7e(){}function J7e(){}function U7e(){}function G7e(){}function H7e(){}function q7e(){}function V7e(){}function W7e(){}function K7e(){}function X7e(){}function Q7e(){}function Z7e(){}function Y7e(){}function eSe(){}function nSe(){}function tSe(){}function iSe(){}function rSe(){}function OD(){}function PD(){}function cSe(){}function RD(){}function oSe(){}function uSe(){}function sSe(){}function lSe(){}function fSe(){}function aSe(){}function hSe(){}function dSe(){}function gSe(){}function wSe(){}function FZ(){}function bSe(){}function jyn(){}function pSe(){}function mSe(){}function vSe(){}function ySe(){}function kSe(){}function SSe(){}function ESe(){}function CSe(){}function cw(){}function jSe(){}function _v(){}function LZ(){}function TSe(){}function MSe(){}function xSe(){}function ASe(){}function ISe(){}function _Se(){}function $Se(){}function OSe(){}function PSe(){}function RSe(){}function NSe(){}function DSe(){}function FSe(){}function LSe(){}function BSe(){}function zSe(){}function JSe(){}function USe(){}function GSe(){}function HSe(){}function Ie(){}function qSe(){}function VSe(){}function WSe(){}function KSe(){}function XSe(){}function QSe(){}function ZSe(){}function YSe(){}function eEe(){}function nEe(){}function tEe(){}function ND(){}function iEe(){}function rEe(){}function DD(){}function cEe(){}function oEe(){}function uEe(){}function FD(){}function wx(){}function bx(){}function sEe(){}function BZ(){}function lEe(){}function fEe(){}function px(){}function aEe(){}function hEe(){}function dEe(){}function mx(){}function gEe(){}function wEe(){}function bEe(){}function pEe(){}function vx(){}function mEe(){}function zZ(){}function vEe(){}function LD(){}function JZ(){}function yEe(){}function kEe(){}function SEe(){}function EEe(){}function Tyn(){}function CEe(){}function jEe(){}function TEe(){}function MEe(){}function xEe(){}function AEe(){}function IEe(){}function _Ee(){}function $Ee(){}function OEe(){}function Zy(){}function BD(){}function PEe(){}function REe(){}function NEe(){}function DEe(){}function FEe(){}function LEe(){}function BEe(){}function zEe(){}function JEe(){}function UEe(){}function GEe(){}function HEe(){}function qEe(){}function VEe(){}function WEe(){}function KEe(){}function XEe(){}function QEe(){}function ZEe(){}function YEe(){}function eCe(){}function nCe(){}function tCe(){}function iCe(){}function rCe(){}function cCe(){}function oCe(){}function uCe(){}function sCe(){}function lCe(){}function fCe(){}function aCe(){}function hCe(){}function dCe(){}function gCe(){}function wCe(){}function bCe(){}function pCe(){}function mCe(){}function vCe(){}function yCe(){}function kCe(){}function SCe(){}function ECe(){}function CCe(){}function jCe(){}function TCe(){}function MCe(){}function xCe(){}function ACe(){}function ICe(){}function _Ce(){}function $Ce(){}function OCe(){}function PCe(){}function RCe(){}function NCe(){}function DCe(){}function FCe(){}function LCe(){}function BCe(){}function zCe(){}function JCe(){}function UCe(){}function GCe(){}function HCe(){}function qCe(){}function VCe(){}function WCe(){}function KCe(){}function XCe(){}function QCe(){}function ZCe(){}function YCe(){}function eje(){}function nje(){}function tje(){}function ije(){}function rje(){}function cje(){}function oje(){}function uje(){}function sje(){}function lje(){}function fje(){}function aje(){}function hje(){}function dje(){}function gje(){}function wje(){}function bje(){}function pje(){}function mje(){}function vje(){}function yje(){}function kje(){}function Sje(){}function Eje(){}function Cje(){}function jje(){}function Tje(){}function UZ(){}function Mje(){}function xje(){}function zD(){Rk()}function Aje(){Hue()}function Ije(){mf()}function _je(){nue()}function $je(){ej()}function Oje(){WE()}function Pje(){kE()}function Rje(){yE()}function Nje(){iOe()}function Dje(){y3()}function Fje(){$Je()}function Lje(){X4()}function Bje(){e0()}function zje(){tce()}function Jje(){SBe()}function Uje(){nce()}function Gje(){CBe()}function Hje(){EBe()}function qje(){jBe()}function Vje(){fUe()}function Wje(){TBe()}function Kje(){nHe()}function Xje(){Se()}function Qje(){Vx()}function Zje(){YGe()}function Yje(){eHe()}function eTe(){Cze()}function nTe(){Xle()}function tTe(){tHe()}function iTe(){xBe()}function rTe(){m3()}function cTe(){gVe()}function oTe(){cd()}function uTe(){Sse()}function sTe(){cj()}function lTe(){CHe()}function fTe(){ule()}function aTe(){iKe()}function hTe(){MBe()}function dTe(){TYe()}function gTe(){oo()}function wTe(){ba()}function bTe(){mle()}function pTe(){n0()}function mTe(){kU()}function vTe(){IJ()}function yTe(){ZI()}function GZ(){pt()}function kTe(){v$()}function STe(){O_()}function ETe(){_oe()}function HZ(){B$()}function qZ(){Az()}function Rf(){sDe()}function CTe(){kle()}function VZ(e){an(e)}function jTe(e){this.a=e}function yx(e){this.a=e}function TTe(e){this.a=e}function MTe(e){this.a=e}function xTe(e){this.a=e}function WZ(e){this.a=e}function KZ(e){this.a=e}function ATe(e){this.a=e}function JD(e){this.a=e}function ITe(e){this.a=e}function _Te(e){this.a=e}function $Te(e){this.a=e}function OTe(e){this.a=e}function PTe(e){this.c=e}function RTe(e){this.a=e}function UD(e){this.a=e}function NTe(e){this.a=e}function DTe(e){this.a=e}function FTe(e){this.a=e}function GD(e){this.a=e}function LTe(e){this.a=e}function BTe(e){this.a=e}function HD(e){this.a=e}function zTe(e){this.a=e}function qD(e){this.a=e}function JTe(e){this.a=e}function UTe(e){this.a=e}function GTe(e){this.a=e}function HTe(e){this.a=e}function qTe(e){this.a=e}function VTe(e){this.a=e}function WTe(e){this.a=e}function KTe(e){this.a=e}function XTe(e){this.a=e}function QTe(e){this.a=e}function ZTe(e){this.a=e}function YTe(e){this.a=e}function eMe(e){this.a=e}function nMe(e){this.a=e}function XZ(e){this.a=e}function QZ(e){this.a=e}function kx(e){this.a=e}function uE(e){this.a=e}function ZZ(e){this.b=e}function J0(){this.a=[]}function tMe(e,n){e.a=n}function Myn(e,n){e.a=n}function xyn(e,n){e.b=n}function Ayn(e,n){e.c=n}function Iyn(e,n){e.c=n}function _yn(e,n){e.d=n}function $yn(e,n){e.d=n}function Gh(e,n){e.k=n}function YZ(e,n){e.j=n}function Oyn(e,n){e.c=n}function eY(e,n){e.c=n}function nY(e,n){e.a=n}function Pyn(e,n){e.a=n}function Ryn(e,n){e.f=n}function Nyn(e,n){e.a=n}function Dyn(e,n){e.b=n}function VD(e,n){e.d=n}function Sx(e,n){e.i=n}function tY(e,n){e.o=n}function Fyn(e,n){e.r=n}function Lyn(e,n){e.a=n}function Byn(e,n){e.b=n}function iMe(e,n){e.e=n}function zyn(e,n){e.f=n}function iY(e,n){e.g=n}function Jyn(e,n){e.e=n}function Uyn(e,n){e.f=n}function Gyn(e,n){e.f=n}function WD(e,n){e.a=n}function KD(e,n){e.b=n}function Hyn(e,n){e.n=n}function qyn(e,n){e.a=n}function Vyn(e,n){e.c=n}function Wyn(e,n){e.c=n}function Kyn(e,n){e.c=n}function Xyn(e,n){e.a=n}function Qyn(e,n){e.a=n}function Zyn(e,n){e.d=n}function Yyn(e,n){e.d=n}function e4n(e,n){e.e=n}function n4n(e,n){e.e=n}function t4n(e,n){e.g=n}function i4n(e,n){e.f=n}function r4n(e,n){e.j=n}function c4n(e,n){e.a=n}function o4n(e,n){e.a=n}function u4n(e,n){e.b=n}function rMe(e){e.b=e.a}function cMe(e){e.c=e.d.d}function rY(e){this.a=e}function Hh(e){this.a=e}function Ex(e){this.a=e}function cY(e){this.a=e}function sE(e){this.a=e}function lE(e){this.a=e}function oMe(e){this.a=e}function oY(e){this.a=e}function uY(e){this.a=e}function Ab(e){this.a=e}function XD(e){this.a=e}function qh(e){this.a=e}function Ib(e){this.a=e}function uMe(e){this.a=e}function QD(e){this.b=e}function Yy(e){this.b=e}function Nm(e){this.b=e}function xk(e){this.d=e}function gt(e){this.a=e}function sMe(e){this.a=e}function sY(e){this.a=e}function lMe(e){this.a=e}function fMe(e){this.a=e}function lY(e){this.a=e}function fY(e){this.a=e}function ZD(e){this.c=e}function O(e){this.c=e}function aMe(e){this.c=e}function aY(e){this.a=e}function hY(e){this.a=e}function dY(e){this.a=e}function gY(e){this.a=e}function e4(e){this.a=e}function hMe(e){this.a=e}function dMe(e){this.a=e}function n4(e){this.a=e}function gMe(e){this.a=e}function wMe(e){this.a=e}function bMe(e){this.a=e}function pMe(e){this.a=e}function mMe(e){this.a=e}function vMe(e){this.a=e}function yMe(e){this.a=e}function kMe(e){this.a=e}function SMe(e){this.a=e}function EMe(e){this.a=e}function CMe(e){this.a=e}function Ak(e){this.a=e}function jMe(e){this.a=e}function TMe(e){this.a=e}function Cx(e){this.a=e}function MMe(e){this.a=e}function xMe(e){this.a=e}function wY(e){this.a=e}function AMe(e){this.a=e}function IMe(e){this.a=e}function _Me(e){this.a=e}function bY(e){this.a=e}function pY(e){this.a=e}function mY(e){this.a=e}function Ik(e){this.a=e}function t4(e){this.a=e}function $Me(e){this.a=e}function $v(e){this.a=e}function vY(e){this.a=e}function OMe(e){this.a=e}function PMe(e){this.a=e}function RMe(e){this.a=e}function NMe(e){this.a=e}function DMe(e){this.a=e}function FMe(e){this.a=e}function LMe(e){this.a=e}function BMe(e){this.a=e}function zMe(e){this.a=e}function JMe(e){this.a=e}function UMe(e){this.a=e}function yY(e){this.a=e}function GMe(e){this.a=e}function HMe(e){this.a=e}function qMe(e){this.a=e}function VMe(e){this.a=e}function WMe(e){this.a=e}function KMe(e){this.a=e}function XMe(e){this.a=e}function QMe(e){this.a=e}function ZMe(e){this.a=e}function YMe(e){this.a=e}function exe(e){this.a=e}function nxe(e){this.a=e}function txe(e){this.a=e}function ixe(e){this.a=e}function rxe(e){this.a=e}function cxe(e){this.a=e}function oxe(e){this.a=e}function uxe(e){this.a=e}function sxe(e){this.a=e}function lxe(e){this.a=e}function fxe(e){this.a=e}function axe(e){this.a=e}function hxe(e){this.a=e}function dxe(e){this.a=e}function gxe(e){this.a=e}function wxe(e){this.a=e}function bxe(e){this.a=e}function pxe(e){this.a=e}function mxe(e){this.a=e}function vxe(e){this.a=e}function yxe(e){this.a=e}function kxe(e){this.a=e}function Sxe(e){this.a=e}function Exe(e){this.a=e}function Cxe(e){this.a=e}function jxe(e){this.a=e}function Txe(e){this.b=e}function Mxe(e){this.a=e}function xxe(e){this.a=e}function Axe(e){this.a=e}function Ixe(e){this.a=e}function _xe(e){this.a=e}function $xe(e){this.a=e}function Oxe(e){this.c=e}function Pxe(e){this.a=e}function Rxe(e){this.a=e}function Nxe(e){this.a=e}function Dxe(e){this.a=e}function Fxe(e){this.a=e}function Lxe(e){this.a=e}function Bxe(e){this.a=e}function zxe(e){this.a=e}function Jxe(e){this.a=e}function Uxe(e){this.a=e}function Gxe(e){this.a=e}function Hxe(e){this.a=e}function qxe(e){this.a=e}function Vxe(e){this.a=e}function Wxe(e){this.a=e}function Kxe(e){this.a=e}function Xxe(e){this.a=e}function Qxe(e){this.a=e}function Zxe(e){this.a=e}function Yxe(e){this.a=e}function eAe(e){this.a=e}function nAe(e){this.a=e}function tAe(e){this.a=e}function iAe(e){this.a=e}function rAe(e){this.a=e}function cAe(e){this.a=e}function oAe(e){this.a=e}function Vh(e){this.a=e}function Dm(e){this.a=e}function uAe(e){this.a=e}function sAe(e){this.a=e}function lAe(e){this.a=e}function fAe(e){this.a=e}function aAe(e){this.a=e}function hAe(e){this.a=e}function dAe(e){this.a=e}function gAe(e){this.a=e}function wAe(e){this.a=e}function bAe(e){this.a=e}function pAe(e){this.a=e}function mAe(e){this.a=e}function vAe(e){this.a=e}function yAe(e){this.a=e}function kAe(e){this.a=e}function SAe(e){this.a=e}function EAe(e){this.a=e}function CAe(e){this.a=e}function jAe(e){this.a=e}function TAe(e){this.a=e}function MAe(e){this.a=e}function xAe(e){this.a=e}function AAe(e){this.a=e}function IAe(e){this.a=e}function _Ae(e){this.a=e}function $Ae(e){this.a=e}function jx(e){this.a=e}function OAe(e){this.f=e}function PAe(e){this.a=e}function RAe(e){this.a=e}function NAe(e){this.a=e}function DAe(e){this.a=e}function FAe(e){this.a=e}function LAe(e){this.a=e}function BAe(e){this.a=e}function zAe(e){this.a=e}function JAe(e){this.a=e}function UAe(e){this.a=e}function GAe(e){this.a=e}function HAe(e){this.a=e}function qAe(e){this.a=e}function VAe(e){this.a=e}function WAe(e){this.a=e}function KAe(e){this.a=e}function XAe(e){this.a=e}function QAe(e){this.a=e}function ZAe(e){this.a=e}function YAe(e){this.a=e}function eIe(e){this.a=e}function nIe(e){this.a=e}function tIe(e){this.a=e}function iIe(e){this.a=e}function rIe(e){this.a=e}function cIe(e){this.a=e}function oIe(e){this.a=e}function YD(e){this.a=e}function kY(e){this.a=e}function Wt(e){this.b=e}function uIe(e){this.a=e}function sIe(e){this.a=e}function lIe(e){this.a=e}function fIe(e){this.a=e}function aIe(e){this.a=e}function hIe(e){this.a=e}function dIe(e){this.a=e}function gIe(e){this.b=e}function wIe(e){this.a=e}function fE(e){this.a=e}function bIe(e){this.a=e}function pIe(e){this.a=e}function Tx(e){this.a=e}function Mx(e){this.a=e}function SY(e){this.c=e}function xx(e){this.e=e}function Ax(e){this.e=e}function eF(e){this.a=e}function mIe(e){this.d=e}function vIe(e){this.a=e}function EY(e){this.a=e}function CY(e){this.a=e}function ow(e){this.e=e}function s4n(){this.a=0}function ke(){wL(this)}function Jn(){ko(this)}function nF(){lLe(this)}function yIe(){}function uw(){this.c=gve}function kIe(e,n){e.b+=n}function l4n(e,n){n.Wb(e)}function f4n(e){return e.a}function a4n(e){return e.a}function h4n(e){return e.a}function d4n(e){return e.a}function g4n(e){return e.a}function P(e){return e.e}function w4n(){return null}function b4n(){return null}function p4n(e){throw P(e)}function Ov(e){this.a=nt(e)}function SIe(){this.a=this}function U0(){BRe.call(this)}function m4n(e){e.b.Mf(e.e)}function EIe(e){e.b=new mF}function _k(e,n){e.b=n-e.b}function $k(e,n){e.a=n-e.a}function CIe(e,n){n.gd(e.a)}function v4n(e,n){or(n,e)}function vn(e,n){e.push(n)}function jIe(e,n){e.sort(n)}function y4n(e,n,t){e.Wd(t,n)}function aE(e,n){e.e=n,n.b=e}function k4n(){iee(),UVn()}function TIe(e){$4(),Gq.je(e)}function jY(){U0.call(this)}function tF(){U0.call(this)}function TY(){BRe.call(this)}function MIe(){U0.call(this)}function rl(){U0.call(this)}function xIe(){U0.call(this)}function hE(){U0.call(this)}function Du(){U0.call(this)}function Pv(){U0.call(this)}function rt(){U0.call(this)}function Gc(){U0.call(this)}function AIe(){U0.call(this)}function Ix(){this.Bb|=256}function IIe(){this.b=new LPe}function MY(){MY=V,new Jn}function _b(e,n){e.length=n}function _x(e,n){ye(e.a,n)}function S4n(e,n){Vue(e.c,n)}function E4n(e,n){Ui(e.b,n)}function i4(e,n){Lt(e.e,n)}function C4n(e,n){c$(e.a,n)}function j4n(e,n){iJ(e.a,n)}function Rv(e){E$(e.c,e.b)}function T4n(e,n){e.kc().Nb(n)}function xY(e){this.a=N_n(e)}function Ji(){this.a=new Jn}function _Ie(){this.a=new Jn}function $x(){this.a=new ke}function iF(){this.a=new ke}function AY(){this.a=new ke}function G0(){this.a=new SJe}function rF(){this.a=new X$e}function IY(){this.a=new hBe}function _Y(){this.a=new $Ne}function Rl(){this.a=new eu}function $Y(){this.a=new rn}function $Ie(){this.a=new HBe}function OIe(){this.a=new ke}function PIe(){this.a=new ke}function OY(){this.a=new ke}function RIe(){this.a=new ke}function NIe(){this.d=new ke}function DIe(){this.a=new Ji}function FIe(){this.a=new Jn}function LIe(){this.b=new Jn}function BIe(){this.b=new ke}function PY(){this.e=new ke}function zIe(){this.a=new Bje}function JIe(){this.d=new ke}function Ok(){yIe.call(this)}function cF(){Ok.call(this)}function Nv(){yIe.call(this)}function RY(){Nv.call(this)}function UIe(){jY.call(this)}function Ox(){$x.call(this)}function GIe(){zA.call(this)}function HIe(){OY.call(this)}function qIe(){ke.call(this)}function VIe(){ULe.call(this)}function WIe(){ULe.call(this)}function KIe(){LY.call(this)}function XIe(){LY.call(this)}function QIe(){LY.call(this)}function ZIe(){BY.call(this)}function Pk(){uEe.call(this)}function NY(){uEe.call(this)}function us(){ei.call(this)}function YIe(){d_e.call(this)}function e_e(){d_e.call(this)}function n_e(){Jn.call(this)}function t_e(){Jn.call(this)}function i_e(){Jn.call(this)}function oF(){KGe.call(this)}function r_e(){Ji.call(this)}function c_e(){Ix.call(this)}function uF(){Sne.call(this)}function DY(){Jn.call(this)}function sF(){Sne.call(this)}function lF(){Jn.call(this)}function o_e(){Jn.call(this)}function FY(){vx.call(this)}function u_e(){FY.call(this)}function s_e(){vx.call(this)}function l_e(){UZ.call(this)}function LY(){this.a=new Ji}function f_e(){this.a=new Jn}function a_e(){this.a=new ke}function h_e(){this.j=new ke}function BY(){this.a=new Jn}function Dv(){this.a=new ei}function d_e(){this.a=new gEe}function zY(){this.a=new Q7e}function g_e(){this.a=new a$e}function Rk(){Rk=V,Nq=new I}function fF(){fF=V,Dq=new b_e}function aF(){aF=V,Fq=new w_e}function w_e(){HD.call(this,"")}function b_e(){HD.call(this,"")}function p_e(e){jGe.call(this,e)}function m_e(e){jGe.call(this,e)}function JY(e){WZ.call(this,e)}function UY(e){C$e.call(this,e)}function M4n(e){C$e.call(this,e)}function x4n(e){UY.call(this,e)}function A4n(e){UY.call(this,e)}function I4n(e){UY.call(this,e)}function v_e(e){VB.call(this,e)}function y_e(e){VB.call(this,e)}function k_e(e){ERe.call(this,e)}function S_e(e){fee.call(this,e)}function Nk(e){Gx.call(this,e)}function GY(e){Gx.call(this,e)}function E_e(e){Gx.call(this,e)}function Hc(e){pFe.call(this,e)}function C_e(e){Hc.call(this,e)}function Fv(){uE.call(this,{})}function hF(e){w4(),this.a=e}function j_e(e){e.b=null,e.c=0}function _4n(e,n){e.e=n,jZe(e,n)}function $4n(e,n){e.a=n,GDn(e)}function dF(e,n,t){e.a[n.g]=t}function O4n(e,n,t){aRn(t,e,n)}function P4n(e,n){a9n(n.i,e.n)}function T_e(e,n){jIn(e).Ad(n)}function R4n(e,n){return e*e/n}function M_e(e,n){return e.g-n.g}function N4n(e,n){e.a.ec().Kc(n)}function D4n(e){return new kx(e)}function F4n(e){return new ep(e)}function x_e(){x_e=V,Nde=new x}function HY(){HY=V,Dde=new le}function Px(){Px=V,l7=new Pn}function Rx(){Rx=V,Bq=new SRe}function A_e(){A_e=V,Mon=new Ni}function Nx(e){mce(),this.a=e}function gF(e){QL(),this.f=e}function A1(e){QL(),this.f=e}function I_e(e){uDe(),this.a=e}function Dx(e){Hc.call(this,e)}function nu(e){Hc.call(this,e)}function __e(e){Hc.call(this,e)}function wF(e){pFe.call(this,e)}function r4(e){Hc.call(this,e)}function yn(e){Hc.call(this,e)}function Tc(e){Hc.call(this,e)}function $_e(e){Hc.call(this,e)}function Lv(e){Hc.call(this,e)}function Pd(e){Hc.call(this,e)}function io(e){an(e),this.a=e}function Dk(e){eie(e,e.length)}function qY(e){return hg(e),e}function $b(e){return!!e&&e.b}function L4n(e){return!!e&&e.k}function B4n(e){return!!e&&e.j}function Fk(e){return e.b==e.c}function xe(e){return an(e),e}function K(e){return an(e),e}function dE(e){return an(e),e}function VY(e){return an(e),e}function z4n(e){return an(e),e}function Na(e){Hc.call(this,e)}function Rd(e){Hc.call(this,e)}function Bv(e){Hc.call(this,e)}function bF(e){Hc.call(this,e)}function ft(e){Hc.call(this,e)}function pF(e){Ine.call(this,e,0)}function mF(){zie.call(this,12,3)}function vF(){this.a=ot(nt(su))}function O_e(){throw P(new rt)}function WY(){throw P(new rt)}function P_e(){throw P(new rt)}function J4n(){throw P(new rt)}function U4n(){throw P(new rt)}function G4n(){throw P(new rt)}function Fx(){Fx=V,$4()}function Nd(){lE.call(this,"")}function Lk(){lE.call(this,"")}function I1(){lE.call(this,"")}function zv(){lE.call(this,"")}function KY(e){nu.call(this,e)}function XY(e){nu.call(this,e)}function Da(e){yn.call(this,e)}function c4(e){Yy.call(this,e)}function R_e(e){c4.call(this,e)}function yF(e){RA.call(this,e)}function H4n(e,n,t){e.c.Cf(n,t)}function q4n(e,n,t){n.Ad(e.a[t])}function V4n(e,n,t){n.Ne(e.a[t])}function W4n(e,n){return e.a-n.a}function K4n(e,n){return e.a-n.a}function X4n(e,n){return e.a-n.a}function Lx(e,n){return uz(e,n)}function D(e,n){return mBe(e,n)}function Q4n(e,n){return n in e.a}function N_e(e){return e.a?e.b:0}function Z4n(e){return e.a?e.b:0}function D_e(e,n){return e.f=n,e}function Y4n(e,n){return e.b=n,e}function F_e(e,n){return e.c=n,e}function e6n(e,n){return e.g=n,e}function QY(e,n){return e.a=n,e}function ZY(e,n){return e.f=n,e}function n6n(e,n){return e.f=n,e}function YY(e,n){return e.e=n,e}function t6n(e,n){return e.k=n,e}function eee(e,n){return e.a=n,e}function i6n(e,n){return e.e=n,e}function r6n(e,n){e.b=new Yr(n)}function L_e(e,n){e._d(n),n.$d(e)}function c6n(e,n){Ds(),n.n.a+=e}function o6n(e,n){e0(),Wc(n,e)}function nee(e){kLe.call(this,e)}function B_e(e){kLe.call(this,e)}function z_e(){sne.call(this,"")}function J_e(){this.b=0,this.a=0}function U_e(){U_e=V,Bon=FRn()}function Ob(e,n){return e.b=n,e}function Bx(e,n){return e.a=n,e}function Pb(e,n){return e.c=n,e}function Rb(e,n){return e.d=n,e}function Nb(e,n){return e.e=n,e}function tee(e,n){return e.f=n,e}function Bk(e,n){return e.a=n,e}function o4(e,n){return e.b=n,e}function u4(e,n){return e.c=n,e}function $e(e,n){return e.c=n,e}function Ve(e,n){return e.b=n,e}function Oe(e,n){return e.d=n,e}function Pe(e,n){return e.e=n,e}function u6n(e,n){return e.f=n,e}function Re(e,n){return e.g=n,e}function Ne(e,n){return e.a=n,e}function De(e,n){return e.i=n,e}function Fe(e,n){return e.j=n,e}function s6n(e,n){return n.pg(e)}function l6n(e,n){return e.b-n.b}function f6n(e,n){return e.g-n.g}function a6n(e,n){return e.s-n.s}function h6n(e,n){return e?0:n-1}function G_e(e,n){return e?0:n-1}function d6n(e,n){return e?n-1:0}function H_e(e,n){return e.k=n,e}function g6n(e,n){return e.j=n,e}function Ar(){this.a=0,this.b=0}function zx(e){PL.call(this,e)}function _1(e){Tw.call(this,e)}function q_e(e){CB.call(this,e)}function V_e(e){CB.call(this,e)}function W_e(){W_e=V,pr=cNn()}function $1(){$1=V,Kgn=KPn()}function iee(){iee=V,Gg=B9()}function s4(){s4=V,dve=XPn()}function K_e(){K_e=V,Own=QPn()}function ree(){ree=V,yo=zDn()}function Nf(e){return e.e&&e.e()}function X_e(e,n){return e.c._b(n)}function Q_e(e,n){return Kqe(e.b,n)}function Z_e(e,n){return B6n(e.a,n)}function Y_e(e,n){e.b=0,fp(e,n)}function w6n(e,n){e.c=n,e.b=!0}function Fm(e,n){return e.a+=n,e}function kF(e,n){return e.a+=n,e}function Dd(e,n){return e.a+=n,e}function sw(e,n){return e.a+=n,e}function H0(e){return Xh(e),e.o}function cee(e){tnn(),tWn(this,e)}function e$e(){throw P(new rt)}function n$e(){throw P(new rt)}function t$e(){throw P(new rt)}function i$e(){throw P(new rt)}function r$e(){throw P(new rt)}function c$e(){throw P(new rt)}function Jx(e){this.a=new Uv(e)}function Fd(e){this.a=new tB(e)}function Lm(e,n){for(;e.Pe(n););}function oee(e,n){for(;e.zd(n););}function b6n(e,n,t){vSn(e.a,n,t)}function uee(e,n,t){e.splice(n,t)}function p6n(e,n){return ZGn(n,e)}function see(e,n){return e.d[n.p]}function gE(e){return e.b!=e.d.c}function o$e(e){return e.l|e.m<<22}function SF(e){return e?e.d:null}function m6n(e){return e?e.g:null}function v6n(e){return e?e.i:null}function u$e(e,n){return vzn(e,n)}function l4(e){return L1(e),e.a}function s$e(e){e.c?zZe(e):JZe(e)}function l$e(){this.b=new v8(ybe)}function f$e(){this.b=new v8(LK)}function a$e(){this.b=new v8(LK)}function h$e(){this.a=new v8(npe)}function d$e(){this.a=new v8(jpe)}function Ux(e){this.a=0,this.b=e}function g$e(){throw P(new rt)}function w$e(){throw P(new rt)}function b$e(){throw P(new rt)}function p$e(){throw P(new rt)}function m$e(){throw P(new rt)}function v$e(){throw P(new rt)}function y$e(){throw P(new rt)}function k$e(){throw P(new rt)}function S$e(){throw P(new rt)}function E$e(){throw P(new rt)}function y6n(){throw P(new Gc)}function k6n(){throw P(new Gc)}function wE(e){this.a=new H$e(e)}function f4(e,n){this.e=e,this.d=n}function lee(e,n){this.b=e,this.c=n}function C$e(e){vne(e.dc()),this.c=e}function bE(e,n){Zm.call(this,e,n)}function a4(e,n){bE.call(this,e,n)}function j$e(e,n){this.a=e,this.b=n}function T$e(e,n){this.a=e,this.b=n}function M$e(e,n){this.a=e,this.b=n}function x$e(e,n){this.a=e,this.b=n}function A$e(e,n){this.a=e,this.b=n}function I$e(e,n){this.a=e,this.b=n}function _$e(e,n){this.a=e,this.b=n}function $$e(e,n){this.b=e,this.a=n}function O$e(e,n){this.b=e,this.a=n}function lw(e,n){this.g=e,this.i=n}function P$e(e,n){this.a=e,this.b=n}function R$e(e,n){this.b=e,this.a=n}function N$e(e,n){this.a=e,this.b=n}function D$e(e,n){this.b=e,this.a=n}function Gx(e){this.b=o(nt(e),50)}function Hx(e){this.b=o(nt(e),92)}function et(e,n){this.f=e,this.g=n}function EF(e,n){this.a=e,this.b=n}function F$e(e,n){this.a=e,this.f=n}function L$e(e){this.a=o(nt(e),16)}function fee(e){this.a=o(nt(e),16)}function B$e(e,n){this.b=e,this.c=n}function z$e(e){this.a=o(nt(e),92)}function S6n(e,n){this.a=e,this.b=n}function J$e(e,n){this.a=e,this.b=n}function U$e(e,n){return zo(e.b,n)}function G$e(e,n){return e>n&&n<_8}function pE(e){return $a[e]!=-1}function mE(e){return!e||YFe(e)}function H$e(e){nAn(this,e,uDn())}function E6n(e,n){aU(fe(e.a),n)}function C6n(e,n){aU(fe(e.a),n)}function zk(e,n){return e.b.Gc(n)}function aee(e,n){return e.b.Hc(n)}function hee(e,n){return e.b.Oc(n)}function q$e(e,n){return e.c.uc(n)}function V$e(e,n){return e.b.Gc(n)}function W$e(e,n){return Bt(e.c,n)}function Jk(e){return e.f.c+e.i.c}function Nl(e,n){return e.a._b(n)}function j6n(e){return FFe(),e?Ton:jon}function CF(e,n){this.a=e,this.b=n}function Jv(e){this.c=e,eGe(this)}function ei(){gRe(this),Ts(this)}function K$e(){Rq==null&&(Rq=[])}function Uv(e){bqe.call(this,e,0)}function X$e(){tB.call(this,null)}function Ld(){Ld=V,_on=new kc}function h4(){h4=V,s5=new Vt}function Db(){Db=V,Xq=new DPe}function d4(){d4=V,f1e=new Pm}function q0(){q0=V,Y3=new cr}function qx(){qx=V,Jon=new FPe}function dee(){iz.call(this,null)}function Ii(e,n){L1(e),e.a.Nb(n)}function T6n(e,n){return e.a.Vc(n)}function M6n(e,n){return e.a.Wc(n)}function jF(e,n){return e.a.Yc(n)}function TF(e,n){return e.a.Zc(n)}function x6n(e,n){return e.Fc(n),e}function A6n(e,n){return e.a.f=n,e}function Q$e(e,n){return e.a.d=n,e}function Z$e(e,n){return e.a.g=n,e}function Y$e(e,n){return e.a.j=n,e}function tf(e,n){return e.a.a=n,e}function rf(e,n){return e.a.d=n,e}function cf(e,n){return e.a.e=n,e}function of(e,n){return e.a.g=n,e}function vE(e,n){return e.a.f=n,e}function I6n(e){return e.b=!1,e}function gee(){gee=V,R1e=new ki}function eOe(){eOe=V,Zon=new Rm}function wee(){wee=V,vsn=new Be}function yE(){yE=V,Nsn=new R6e}function nOe(){nOe=V,ysn=new yi}function bee(){bee=V,ksn=new sFe}function tOe(){tOe=V,Isn=new u6e}function Uk(){Uk=V,$sn=new s6e}function iOe(){iOe=V,Bsn=new m5e}function kE(){kE=V,Rsn=new Ar}function Gk(){Gk=V,Wsn=new t9e}function Vx(){Vx=V,z2=new T9e}function Wx(){Wx=V,dhn=new YSe}function Kx(){Kx=V,BK=new cOe}function rOe(){ZGe(),this.c=new mF}function Xx(){Xx=V,zK=new uNe}function Hk(){Hk=V,qT=new tLe}function _6n(){iP!=0&&(iP=0),rP=-1}function cOe(){et.call(this,ein,0)}function $6n(e,n,t,i){COn(e,i,n,t)}function O6n(e,n,t,i){ABn(i,e,n,t)}function P6n(e,n,t,i){rVn(i,e,n,t)}function R6n(e,n,t){xc(e.d,n.f,t)}function Fb(e,n){wg(e.c.b,n.c,n)}function qk(e,n){wg(e.c.c,n.b,n)}function Vk(e,n){return e.a=n.g,e}function V0(){V0=V,Vgn=new oEe}function oOe(){oOe=V,nwn=new pEe}function uOe(){uOe=V,gwn=new t_e}function O1(){O1=V,Yl=new DY}function sOe(){sOe=V,wwn=new i_e}function pee(){pee=V,hve=new o_e}function Qx(){Qx=V,pN=new Jn}function mee(){mee=V,Eve=new ke}function Wk(){Wk=V,AX=new yRe}function Bd(){Bd=V,vM=new kRe}function MF(){MF=V,Awn=new jCe}function ac(){ac=V,_wn=new TCe}function P1(){P1=V,O0=new xje}function Zx(){this.q=new m.Date}function vee(e){this.a=o(nt(e),229)}function Yx(e){return o(e,45).jd()}function N6n(e){return(e.c+e.a)/2}function D6n(e){return e.e.a+e.f.a}function F6n(e){return e.e.b+e.f.b}function L6n(e){return e.b?e.b:e.a}function lOe(e,n){return IPn(e.a,n)}function B6n(e,n){return e.a.a.cc(n)}function xF(e){return e.b<e.d.gc()}function z6n(e,n){return n.split(e)}function AF(e,n){return Go(e,n)>0}function IF(e,n){return Go(e,n)<0}function fOe(e,n){return KL(e.a,n)}function J6n(e,n){dBe.call(this,e,n)}function yee(e){pB(),iDn.call(this,e)}function kee(e){pB(),yee.call(this,e)}function See(e){qL(),ERe.call(this,e)}function Eee(e,n){cFe(e,e.length,n)}function SE(e,n){PFe(e,e.length,n)}function Kk(e,n){return e.a.get(n)}function aOe(e,n){return zo(e.e,n)}function Cee(e){return an(e),!1}function hOe(){return U_e(),new Bon}function EE(e){return Nn(e.a),e.b}function dOe(e,n){this.b=e,this.a=n}function eA(e,n){this.d=e,this.e=n}function gOe(e,n){this.a=e,this.b=n}function wOe(e,n){this.a=e,this.b=n}function bOe(e,n){this.a=e,this.b=n}function pOe(e,n){this.a=e,this.b=n}function mOe(e,n){this.b=e,this.a=n}function Gv(e,n){this.a=e,this.b=n}function nA(e,n){et.call(this,e,n)}function _F(e,n){et.call(this,e,n)}function $F(e,n){et.call(this,e,n)}function OF(e,n){et.call(this,e,n)}function PF(e,n){et.call(this,e,n)}function tA(e,n){et.call(this,e,n)}function iA(e){Ze.call(this,e,21)}function vOe(e,n){this.b=e,this.a=n}function jee(e,n){this.b=e,this.a=n}function Tee(e,n){this.b=e,this.a=n}function Mee(e,n){et.call(this,e,n)}function RF(e,n){et.call(this,e,n)}function CE(e,n){et.call(this,e,n)}function xee(e,n){this.b=e,this.a=n}function g4(e,n){this.c=e,this.d=n}function rA(e,n){et.call(this,e,n)}function cA(e,n){et.call(this,e,n)}function yOe(e,n){this.e=e,this.d=n}function Hv(e,n){et.call(this,e,n)}function kOe(e,n){this.a=e,this.b=n}function Aee(e,n){et.call(this,e,n)}function qi(e,n){et.call(this,e,n)}function oA(e,n){et.call(this,e,n)}function Xk(e,n,t){e.splice(n,0,t)}function U6n(e,n,t){e.Mb(t)&&n.Ad(t)}function G6n(e,n,t){n.Ne(e.a.We(t))}function H6n(e,n,t){n.Bd(e.a.Xe(t))}function q6n(e,n,t){n.Ad(e.a.Kb(t))}function V6n(e,n){return Lu(e.c,n)}function W6n(e,n){return Lu(e.e,n)}function SOe(e,n){this.a=e,this.b=n}function EOe(e,n){this.a=e,this.b=n}function COe(e,n){this.a=e,this.b=n}function jOe(e,n){this.a=e,this.b=n}function TOe(e,n){this.a=e,this.b=n}function MOe(e,n){this.a=e,this.b=n}function xOe(e,n){this.a=e,this.b=n}function AOe(e,n){this.a=e,this.b=n}function IOe(e,n){this.b=e,this.a=n}function _Oe(e,n){this.b=e,this.a=n}function $Oe(e,n){this.b=e,this.a=n}function OOe(e,n){this.b=n,this.c=e}function uA(e,n){et.call(this,e,n)}function jE(e,n){et.call(this,e,n)}function Iee(e,n){et.call(this,e,n)}function Qk(e,n){et.call(this,e,n)}function sA(e,n){et.call(this,e,n)}function NF(e,n){et.call(this,e,n)}function DF(e,n){et.call(this,e,n)}function Zk(e,n){et.call(this,e,n)}function Yk(e,n){et.call(this,e,n)}function _ee(e,n){et.call(this,e,n)}function Bm(e,n){et.call(this,e,n)}function FF(e,n){et.call(this,e,n)}function e9(e,n){et.call(this,e,n)}function $ee(e,n){et.call(this,e,n)}function Lb(e,n){et.call(this,e,n)}function LF(e,n){et.call(this,e,n)}function BF(e,n){et.call(this,e,n)}function zF(e,n){et.call(this,e,n)}function Oee(e,n){et.call(this,e,n)}function TE(e,n){et.call(this,e,n)}function Pee(e,n){et.call(this,e,n)}function zm(e,n){et.call(this,e,n)}function JF(e,n){et.call(this,e,n)}function lA(e,n){et.call(this,e,n)}function ME(e,n){et.call(this,e,n)}function Bb(e,n){et.call(this,e,n)}function fA(e,n){et.call(this,e,n)}function Ree(e,n){et.call(this,e,n)}function UF(e,n){et.call(this,e,n)}function GF(e,n){et.call(this,e,n)}function HF(e,n){et.call(this,e,n)}function qF(e,n){et.call(this,e,n)}function VF(e,n){et.call(this,e,n)}function WF(e,n){et.call(this,e,n)}function aA(e,n){et.call(this,e,n)}function POe(e,n){this.b=e,this.a=n}function Nee(e,n){et.call(this,e,n)}function ROe(e,n){this.a=e,this.b=n}function NOe(e,n){this.a=e,this.b=n}function DOe(e,n){this.a=e,this.b=n}function Dee(e,n){et.call(this,e,n)}function Fee(e,n){et.call(this,e,n)}function FOe(e,n){this.a=e,this.b=n}function K6n(e,n){return k4(),n!=e}function KF(e){return KFn(e,e.c),e}function X6n(e){m.clearTimeout(e)}function Lee(e,n){et.call(this,e,n)}function Bee(e,n){et.call(this,e,n)}function LOe(e,n){this.a=e,this.b=n}function BOe(e,n){this.a=e,this.b=n}function zOe(e,n){this.b=e,this.d=n}function JOe(e,n){this.a=e,this.b=n}function UOe(e,n){this.b=e,this.a=n}function hA(e,n){et.call(this,e,n)}function fw(e,n){et.call(this,e,n)}function XF(e,n){et.call(this,e,n)}function dA(e,n){et.call(this,e,n)}function zee(e,n){et.call(this,e,n)}function GOe(e,n){this.b=e,this.a=n}function HOe(e,n){this.b=e,this.a=n}function qOe(e,n){this.b=e,this.a=n}function VOe(e,n){this.b=e,this.a=n}function Jee(e,n){et.call(this,e,n)}function xE(e,n){et.call(this,e,n)}function Uee(e,n){et.call(this,e,n)}function QF(e,n){et.call(this,e,n)}function gA(e,n){et.call(this,e,n)}function ZF(e,n){et.call(this,e,n)}function YF(e,n){et.call(this,e,n)}function wA(e,n){et.call(this,e,n)}function eL(e,n){et.call(this,e,n)}function Gee(e,n){et.call(this,e,n)}function nL(e,n){et.call(this,e,n)}function tL(e,n){et.call(this,e,n)}function AE(e,n){et.call(this,e,n)}function iL(e,n){et.call(this,e,n)}function Hee(e,n){et.call(this,e,n)}function IE(e,n){et.call(this,e,n)}function qee(e,n){et.call(this,e,n)}function Vee(e,n){this.a=e,this.b=n}function WOe(e,n){this.a=e,this.b=n}function KOe(e,n){this.a=e,this.b=n}function XOe(){GA(),this.a=new Zne}function QOe(){O$(),this.a=new Ji}function ZOe(){OB(),this.b=new Ji}function YOe(){Lie(),Ute.call(this)}function ePe(){Fie(),JLe.call(this)}function nPe(){Fie(),JLe.call(this)}function _E(e,n){et.call(this,e,n)}function qv(e,n){et.call(this,e,n)}function n9(e,n){et.call(this,e,n)}function t9(e,n){et.call(this,e,n)}function $E(e,n){et.call(this,e,n)}function bA(e,n){et.call(this,e,n)}function rL(e,n){et.call(this,e,n)}function pA(e,n){et.call(this,e,n)}function i9(e,n){et.call(this,e,n)}function cL(e,n){et.call(this,e,n)}function mA(e,n){et.call(this,e,n)}function Jm(e,n){et.call(this,e,n)}function OE(e,n){et.call(this,e,n)}function r9(e,n){et.call(this,e,n)}function c9(e,n){et.call(this,e,n)}function oL(e,n){et.call(this,e,n)}function PE(e,n){et.call(this,e,n)}function vA(e,n){et.call(this,e,n)}function Um(e,n){et.call(this,e,n)}function uL(e,n){et.call(this,e,n)}function sL(e,n){et.call(this,e,n)}function yA(e,n){et.call(this,e,n)}function pe(e,n){this.a=e,this.b=n}function tPe(e,n){this.a=e,this.b=n}function iPe(e,n){this.a=e,this.b=n}function rPe(e,n){this.a=e,this.b=n}function cPe(e,n){this.a=e,this.b=n}function oPe(e,n){this.a=e,this.b=n}function uPe(e,n){this.a=e,this.b=n}function rc(e,n){this.a=e,this.b=n}function sPe(e,n){this.a=e,this.b=n}function lPe(e,n){this.a=e,this.b=n}function fPe(e,n){this.a=e,this.b=n}function aPe(e,n){this.a=e,this.b=n}function hPe(e,n){this.a=e,this.b=n}function dPe(e,n){this.a=e,this.b=n}function gPe(e,n){this.b=e,this.a=n}function wPe(e,n){this.b=e,this.a=n}function bPe(e,n){this.b=e,this.a=n}function pPe(e,n){this.b=e,this.a=n}function mPe(e,n){this.a=e,this.b=n}function vPe(e,n){this.a=e,this.b=n}function yPe(e,n){this.a=e,this.b=n}function kPe(e,n){this.a=e,this.b=n}function SPe(e,n){this.f=e,this.c=n}function Wee(e,n){this.i=e,this.g=n}function kA(e,n){et.call(this,e,n)}function Vv(e,n){et.call(this,e,n)}function SA(e,n){this.a=e,this.b=n}function EPe(e,n){this.a=e,this.b=n}function Kee(e,n){this.d=e,this.e=n}function CPe(e,n){this.a=e,this.b=n}function jPe(e,n){this.a=e,this.b=n}function TPe(e,n){this.d=e,this.b=n}function MPe(e,n){this.e=e,this.a=n}function Xee(e,n){e.i=null,v_(e,n)}function Q6n(e,n){e&&Ct(bM,e,n)}function xPe(e,n){return hJ(e.a,n)}function Qee(e,n){return Lu(e.g,n)}function Z6n(e,n){return Lu(n.b,e)}function Y6n(e,n){return-e.b.$e(n)}function EA(e){return WC(e.c,e.b)}function e5n(e,n){gxn(new $n(e),n)}function n5n(e,n,t){EKe(n,oU(e,t))}function t5n(e,n,t){EKe(n,oU(e,t))}function APe(e,n){ixn(e.a,o(n,12))}function IPe(e,n){this.a=e,this.b=n}function RE(e,n){this.b=e,this.c=n}function R1(e,n){return e.Pd().Xb(n)}function CA(e,n){return MAn(e.Jc(),n)}function qc(e){return e?e.kd():null}function ne(e){return e??null}function zb(e){return typeof e===F3}function Jb(e){return typeof e===Zle}function mr(e){return typeof e===ZU}function o9(e,n){return Go(e,n)==0}function jA(e,n){return Go(e,n)>=0}function u9(e,n){return Go(e,n)!=0}function Zee(e,n){return e.a+=""+n,e}function i5n(e){return""+(an(e),e)}function _Pe(e){return gs(e),e.d.gc()}function Yee(e){return en(e,0),null}function TA(e){return m9(e==null),e}function s9(e,n){return e.a+=""+n,e}function Sc(e,n){return e.a+=""+n,e}function l9(e,n){return e.a+=""+n,e}function Lo(e,n){return e.a+=""+n,e}function mt(e,n){return e.a+=""+n,e}function $Pe(e,n){e.q.setTime(og(n))}function OPe(e,n){Xte.call(this,e,n)}function PPe(e,n){Xte.call(this,e,n)}function MA(e,n){Xte.call(this,e,n)}function Zr(e,n){Ei(e,n,e.c.b,e.c)}function Gm(e,n){Ei(e,n,e.a,e.a.a)}function r5n(e,n){return e.j[n.p]==2}function RPe(e,n){return e.a=n.g+1,e}function Df(e){return e.a=0,e.b=0,e}function NPe(e){ko(this),J9(this,e)}function DPe(){this.b=0,this.a=!1}function FPe(){this.b=0,this.a=!1}function LPe(){this.b=new Uv(dp(12))}function BPe(){BPe=V,_un=it(yJ())}function zPe(){zPe=V,Lsn=it(bZe())}function JPe(){JPe=V,_dn=it(NHe())}function ene(){ene=V,MY(),Fde=new Jn}function c5n(e){return nt(e),new f9(e)}function UPe(e,n){return ne(e)===ne(n)}function xA(e){return e<10?"0"+e:""+e}function GPe(e){return du(e.l,e.m,e.h)}function Fc(e){return typeof e===Zle}function lL(e,n){return Ll(e.a,0,n)}function Wv(e){return qr((an(e),e))}function o5n(e){return qr((an(e),e))}function u5n(e,n){return Kt(e.a,n.a)}function nne(e,n){return Bo(e.a,n.a)}function s5n(e,n){return $Fe(e.a,n.a)}function Fa(e,n){return e.indexOf(n)}function tne(e,n){D4(e,0,e.length,n)}function At(e,n){Qx(),Ct(pN,e,n)}function qe(e,n){ai.call(this,e,n)}function fL(e,n){Wb.call(this,e,n)}function Hm(e,n){Wee.call(this,e,n)}function HPe(e,n){BE.call(this,e,n)}function aL(e,n){H4.call(this,e,n)}function ah(){lY.call(this,new U1)}function qPe(){oI.call(this,0,0,0,0)}function ine(e){return Kc(e.b.b,e,0)}function VPe(e,n){return Bo(e.g,n.g)}function l5n(e){return e==tb||e==Jp}function f5n(e){return e==tb||e==zp}function a5n(e,n){return Bo(e.g,n.g)}function h5n(e,n){return Ds(),n.a+=e}function d5n(e,n){return Ds(),n.a+=e}function g5n(e,n){return Ds(),n.c+=e}function w5n(e,n){return ye(e.c,n),e}function WPe(e,n){return ye(e.a,n),n}function rne(e,n){return Us(e.a,n),e}function KPe(e){this.a=hOe(),this.b=e}function XPe(e){this.a=hOe(),this.b=e}function Yr(e){this.a=e.a,this.b=e.b}function f9(e){this.a=e,zD.call(this)}function QPe(e){this.a=e,zD.call(this)}function Ss(e){return e.sh()&&e.th()}function qm(e){return e!=Aa&&e!=M0}function Wh(e){return e==Oc||e==Dc}function Vm(e){return e==Sl||e==Ma}function ZPe(e){return e==nv||e==ev}function AA(e){return Us(new Di,e)}function YPe(e){return mB(o(e,125))}function b5n(e,n){return Kt(n.f,e.f)}function eRe(e,n){return new H4(n,e)}function p5n(e,n){return new H4(n,e)}function cl(e,n,t){hs(e,n),ds(e,t)}function hL(e,n,t){f_(e,n),a_(e,t)}function aw(e,n,t){xw(e,n),Mw(e,t)}function NE(e,n,t){u2(e,n),s2(e,t)}function DE(e,n,t){l2(e,n),f2(e,t)}function dL(e,n){Z4(e,n),z4(e,e.D)}function gL(e){SPe.call(this,e,!0)}function Kv(){lf.call(this,0,0,0,0)}function nRe(){nA.call(this,"Head",1)}function tRe(){nA.call(this,"Tail",3)}function iRe(e,n,t){zne.call(this,e,n,t)}function hw(e){oI.call(this,e,e,e,e)}function N1(e){Va(),OAn.call(this,e)}function rRe(e){cu(e.Qf(),new TMe(e))}function Wm(e){return e!=null?oi(e):0}function m5n(e,n){return lp(n,ua(e))}function v5n(e,n){return lp(n,ua(e))}function y5n(e,n){return e[e.length]=n}function k5n(e,n){return e[e.length]=n}function S5n(e,n){return b_(dB(e.f),n)}function E5n(e,n){return b_(dB(e.n),n)}function C5n(e,n){return b_(dB(e.p),n)}function cne(e){return $7n(e.b.Jc(),e.a)}function j5n(e){return e==null?0:oi(e)}function wL(e){e.c=te(ur,sn,1,0,5,1)}function cRe(e,n,t){Oi(e.c[n.g],n.g,t)}function T5n(e,n,t){o(e.c,72).Ei(n,t)}function M5n(e,n,t){cl(t,t.i+e,t.j+n)}function Ir(e,n){ai.call(this,e.b,n)}function x5n(e,n){Xn(xo(e.a),NBe(n))}function A5n(e,n){Xn(as(e.a),DBe(n))}function I5n(e,n){Sa||(e.b=n)}function bL(e,n,t){return Oi(e,n,t),t}function ct(){ct=V,new oRe,new ke}function oRe(){new Jn,new Jn,new Jn}function _5n(){throw P(new Pd(aon))}function $5n(){throw P(new Pd(aon))}function O5n(){throw P(new Pd(hon))}function P5n(){throw P(new Pd(hon))}function uRe(){uRe=V,ZW=new i8(gX)}function ra(){ra=V,m.Math.log(2)}function ol(){ol=V,Dh=(oOe(),nwn)}function a9(e){Ft(),ow.call(this,e)}function sRe(e){this.a=e,kte.call(this,e)}function pL(e){this.a=e,Hx.call(this,e)}function mL(e){this.a=e,Hx.call(this,e)}function sr(e,n){WL(e.c,e.c.length,n)}function Vc(e){return e.a<e.c.c.length}function one(e){return e.a<e.c.a.length}function lRe(e,n){return e.a?e.b:n.Ue()}function Bo(e,n){return e<n?-1:e>n?1:0}function une(e,n){return Go(e,n)>0?e:n}function du(e,n,t){return{l:e,m:n,h:t}}function R5n(e,n){e.a!=null&&APe(n,e.a)}function N5n(e){Vr(e,null),jr(e,null)}function D5n(e,n,t){return Ct(e.g,t,n)}function F5n(e,n){nt(n),e2(e).Ic(new re)}function fRe(){hue(),this.a=new v8(P1e)}function IA(e){this.b=e,this.a=new ke}function aRe(e){this.b=new Tk,this.a=e}function sne(e){Yne.call(this),this.a=e}function hRe(e){Aie.call(this),this.b=e}function dRe(){nA.call(this,"Range",2)}function _A(e){e.j=te(Qde,ve,324,0,0,1)}function gRe(e){e.a=new os,e.c=new os}function wRe(e){e.a=new Jn,e.e=new Jn}function lne(e){return new pe(e.c,e.d)}function L5n(e){return new pe(e.c,e.d)}function ec(e){return new pe(e.a,e.b)}function B5n(e,n){return Ct(e.a,n.a,n)}function z5n(e,n,t){return Ct(e.k,t,n)}function Km(e,n,t){return $oe(n,t,e.c)}function fne(e,n){return Z(bn(e.i,n))}function ane(e,n){return Z(bn(e.j,n))}function bRe(e,n){return kqn(e.a,n,null)}function h9(e,n){return _Hn(e.c,e.b,n)}function U(e,n){return e!=null&&CJ(e,n)}function pRe(e,n){Vn(e),e.Fc(o(n,16))}function J5n(e,n,t){e.c._c(n,o(t,136))}function U5n(e,n,t){e.c.Si(n,o(t,136))}function G5n(e,n,t){return vqn(e,n,t),t}function H5n(e,n){return Fs(),n.n.b+=e}function vL(e,n){return sIn(e.Jc(),n)!=-1}function q5n(e,n){return new HRe(e.Jc(),n)}function $A(e){return e.Ob()?e.Pb():null}function mRe(e){return Ga(e,0,e.length)}function vRe(e){RB(e,null),NB(e,null)}function yRe(){BE.call(this,null,null)}function kRe(){FA.call(this,null,null)}function SRe(){et.call(this,"INSTANCE",0)}function Xm(){this.a=te(ur,sn,1,8,5,1)}function hne(e){this.a=e,Jn.call(this)}function ERe(e){this.a=(tn(),new c4(e))}function V5n(e){this.b=(tn(),new ZD(e))}function w4(){w4=V,u1e=new hF(null)}function dne(){dne=V,dne(),Uon=new Cv}function ye(e,n){return vn(e.c,n),!0}function CRe(e,n){e.c&&(Pte(n),eBe(n))}function W5n(e,n){e.q.setHours(n),C8(e,n)}function gne(e,n){return e.a.Ac(n)!=null}function yL(e,n){return e.a.Ac(n)!=null}function ca(e,n){return e.a[n.c.p][n.p]}function K5n(e,n){return e.e[n.c.p][n.p]}function X5n(e,n){return e.c[n.c.p][n.p]}function kL(e,n,t){return e.a[n.g][t.g]}function Q5n(e,n){return e.j[n.p]=iBn(n)}function Xv(e,n){return e.a*n.a+e.b*n.b}function Z5n(e,n){return e.a<OL(n)?-1:1}function Y5n(e,n){return mre(e.b,n.Og())}function ekn(e,n){return mre(e.f,n.Og())}function nkn(e,n){return K(Z(n.a))<=e}function tkn(e,n){return K(Z(n.a))>=e}function ikn(e,n,t){return t?n!=0:n!=e-1}function jRe(e,n,t){e.a=n^1502,e.b=t^AG}function rkn(e,n,t){return e.a=n,e.b=t,e}function Kh(e,n){return e.a*=n,e.b*=n,e}function d9(e,n,t){return Oi(e.g,n,t),t}function ckn(e,n,t,i){Oi(e.a[n.g],t.g,i)}function Xi(e,n,t){ZE.call(this,e,n,t)}function OA(e,n,t){Xi.call(this,e,n,t)}function Fu(e,n,t){Xi.call(this,e,n,t)}function TRe(e,n,t){OA.call(this,e,n,t)}function wne(e,n,t){ZE.call(this,e,n,t)}function Qm(e,n,t){ZE.call(this,e,n,t)}function MRe(e,n,t){KA.call(this,e,n,t)}function bne(e,n,t){KA.call(this,e,n,t)}function xRe(e,n,t){bne.call(this,e,n,t)}function ARe(e,n,t){wne.call(this,e,n,t)}function D1(e){this.c=e,this.a=this.c.a}function $n(e){this.i=e,this.f=this.i.j}function Zm(e,n){this.a=e,Hx.call(this,n)}function IRe(e,n){this.a=e,pF.call(this,n)}function _Re(e,n){this.a=e,pF.call(this,n)}function $Re(e,n){this.a=e,pF.call(this,n)}function pne(e){this.a=e,PTe.call(this,e.d)}function ORe(e){e.b.Qb(),--e.d.f.d,sI(e.d)}function PRe(e){e.a=o(Sn(e.b.a,4),129)}function RRe(e){e.a=o(Sn(e.b.a,4),129)}function okn(e){cC(e,Frn),x$(e,bVn(e))}function mne(e,n){return D_n(e,new I1,n).a}function ukn(e){return gE(e.a)?RBe(e):null}function NRe(e){HD.call(this,o(nt(e),35))}function DRe(e){HD.call(this,o(nt(e),35))}function vne(e){if(!e)throw P(new hE)}function yne(e){if(!e)throw P(new Du)}function jn(e,n){return nt(n),new GRe(e,n)}function FRe(e,n){return new MXe(e.a,e.b,n)}function skn(e){return e.l+e.m*J3+e.h*kg}function lkn(e){return e==null?null:e.name}function kne(e,n,t){return e.indexOf(n,t)}function PA(e,n){return e.lastIndexOf(n)}function g9(e){return e==null?Mu:Bc(e)}function dn(){dn=V,d0=!1,o5=!0}function LRe(){LRe=V,MF(),Iwn=new CTe}function Sne(){this.Bb|=256,this.Bb|=512}function BRe(){_A(this),EI(this),this.he()}function RA(e){Yy.call(this,e),this.a=e}function Ene(e){Nm.call(this,e),this.a=e}function Cne(e){c4.call(this,e),this.a=e}function Dl(e){lE.call(this,(an(e),e))}function Ns(e){lE.call(this,(an(e),e))}function SL(e){lY.call(this,new Tre(e))}function zRe(e){this.a=e,QD.call(this,e)}function jne(e,n){this.a=n,pF.call(this,e)}function JRe(e,n){this.a=n,VB.call(this,e)}function URe(e,n){this.a=e,VB.call(this,n)}function GRe(e,n){this.a=n,Gx.call(this,e)}function HRe(e,n){this.a=n,Gx.call(this,e)}function Tne(e){rF.call(this),Wr(this,e)}function Es(e){return Nn(e.a!=null),e.a}function qRe(e,n){return ye(n.a,e.a),e.a}function VRe(e,n){return ye(n.b,e.a),e.a}function dw(e,n){return ye(n.a,e.a),e.a}function FE(e,n,t){return Oz(e,n,n,t),e}function NA(e,n){return++e.b,ye(e.a,n)}function Mne(e,n){return++e.b,Eu(e.a,n)}function fkn(e,n){return Kt(e.c.d,n.c.d)}function akn(e,n){return Kt(e.c.c,n.c.c)}function hkn(e,n){return Kt(e.n.a,n.n.a)}function ku(e,n){return o(Ht(e.b,n),16)}function dkn(e,n){return e.n.b=(an(n),n)}function gkn(e,n){return e.n.b=(an(n),n)}function Lu(e,n){return!!n&&e.b[n.g]==n}function w9(e){return Vc(e.a)||Vc(e.b)}function wkn(e,n){return Kt(e.e.b,n.e.b)}function bkn(e,n){return Kt(e.e.a,n.e.a)}function pkn(e,n,t){return $ze(e,n,t,e.b)}function xne(e,n,t){return $ze(e,n,t,e.c)}function mkn(e){return Ds(),!!e&&!e.dc()}function WRe(){Gk(),this.b=new sxe(this)}function DA(){DA=V,hP=new ai(Ttn,0)}function Qv(e){this.d=e,$n.call(this,e)}function Zv(e){this.c=e,$n.call(this,e)}function LE(e){this.c=e,Qv.call(this,e)}function Ane(e,n){zoe.call(this,e,n,null)}function Yv(e){return e.a!=null?e.a:null}function gw(e){return e.$H||(e.$H=++LWn)}function zd(e){var n;n=e.a,e.a=e.b,e.b=n}function BE(e,n){Wk(),this.a=e,this.b=n}function FA(e,n){Bd(),this.b=e,this.c=n}function LA(e,n){QL(),this.f=n,this.d=e}function Ine(e,n){bre(n,e),this.c=e,this.b=n}function vkn(e,n){return eB(e.c).Kd().Xb(n)}function EL(e,n){return new KNe(e,e.gc(),n)}function ykn(e){return Rx(),tt((ABe(),yon),e)}function kkn(e){return new op(3,e)}function hh(e){return Js(e,_p),new ru(e)}function KRe(e){return $4(),parseInt(e)||-1}function b4(e,n,t){return kne(e,ju(n),t)}function _ne(e,n,t){o(EC(e,n),22).Ec(t)}function Skn(e,n,t){iJ(e.a,t),c$(e.a,n)}function p4(e,n,t){var i;i=e.dd(n),i.Rb(t)}function XRe(e,n,t,i){Wte.call(this,e,n,t,i)}function QRe(e){Ete.call(this,e,null,null)}function CL(e){Db(),this.b=e,this.a=!0}function ZRe(e){qx(),this.b=e,this.a=!0}function YRe(e){if(!e)throw P(new rl)}function $ne(e){if(!e)throw P(new hE)}function Ekn(e){if(!e)throw P(new tF)}function Nn(e){if(!e)throw P(new Gc)}function Ub(e){if(!e)throw P(new Du)}function eNe(e){e.d=new QRe(e),e.e=new Jn}function m4(e){return Nn(e.b!=0),e.a.a.c}function uf(e){return Nn(e.b!=0),e.c.b.c}function Ckn(e,n){return Oz(e,n,n+1,""),e}function nNe(e){XU(),EIe(this),this.Df(e)}function tNe(e){this.c=e,this.a=1,this.b=1}function zE(e){U(e,161)&&o(e,161).mi()}function iNe(e){return e.b=o(Cie(e.a),45)}function Gb(e,n){return o(fa(e.a,n),35)}function zt(e,n){return!!e.q&&zo(e.q,n)}function jkn(e,n){return e>0?n/(e*e):n*100}function Tkn(e,n){return e>0?n*n/e:n*n*100}function Mkn(e){return e.f!=null?e.f:""+e.g}function jL(e){return e.f!=null?e.f:""+e.g}function xkn(e){return cd(),e.e.a+e.f.a/2}function Akn(e){return cd(),e.e.b+e.f.b/2}function Ikn(e,n,t){return cd(),t.e.b-e*n}function _kn(e,n,t){return cd(),t.e.a-e*n}function $kn(e,n,t){return Wx(),t.Lg(e,n)}function Okn(e,n){return e0(),Xe(e,n.e,n)}function Pkn(e,n,t){return ye(n,MVe(e,t))}function Rkn(e,n,t){ZI(),e.nf(n)&&t.Ad(e)}function Hb(e,n,t){return e.a+=n,e.b+=t,e}function rNe(e,n,t){return e.a-=n,e.b-=t,e}function One(e,n){return e.a=n.a,e.b=n.b,e}function BA(e){return e.a=-e.a,e.b=-e.b,e}function cNe(e){this.c=e,hs(e,0),ds(e,0)}function oNe(e){ei.call(this),z9(this,e)}function uNe(){et.call(this,"GROW_TREE",0)}function Cs(e,n,t){zu.call(this,e,n,t,2)}function sNe(e,n){Bd(),Pne.call(this,e,n)}function Pne(e,n){Bd(),FA.call(this,e,n)}function lNe(e,n){Bd(),FA.call(this,e,n)}function fNe(e,n){Wk(),BE.call(this,e,n)}function TL(e,n){ol(),rI.call(this,e,n)}function aNe(e,n){ol(),TL.call(this,e,n)}function Rne(e,n){ol(),TL.call(this,e,n)}function hNe(e,n){ol(),Rne.call(this,e,n)}function Nne(e,n){ol(),rI.call(this,e,n)}function dNe(e,n){ol(),Nne.call(this,e,n)}function gNe(e,n){ol(),rI.call(this,e,n)}function Nkn(e,n){return e.c.Ec(o(n,136))}function Dkn(e,n){return o(bn(e.e,n),26)}function Fkn(e,n){return o(bn(e.e,n),26)}function Dne(e,n,t){return G$(jC(e,n),t)}function Lkn(e,n,t){return n.xl(e.e,e.c,t)}function Bkn(e,n,t){return n.yl(e.e,e.c,t)}function ML(e,n){return X1(e.e,o(n,52))}function zkn(e,n,t){e8(xo(e.a),n,NBe(t))}function Jkn(e,n,t){e8(as(e.a),n,DBe(t))}function wNe(e,n){return an(e),e+OL(n)}function Ukn(e){return e==null?null:Bc(e)}function Gkn(e){return e==null?null:Bc(e)}function Hkn(e){return e==null?null:dDn(e)}function qkn(e){return e==null?null:uVn(e)}function Xh(e){e.o==null&&$Ln(e)}function Me(e){return m9(e==null||zb(e)),e}function Z(e){return m9(e==null||Jb(e)),e}function ot(e){return m9(e==null||mr(e)),e}function Vkn(e,n){return $J(e,n),new oLe(e,n)}function JE(e,n){this.c=e,f4.call(this,e,n)}function b9(e,n){this.a=e,JE.call(this,e,n)}function Wkn(e,n){this.d=e,cMe(this),this.b=n}function Fne(){KGe.call(this),this.Bb|=cc}function bNe(){this.a=new Ew,this.b=new Ew}function Lne(e){this.q=new m.Date(og(e))}function Ym(){Ym=V,rv=new Wt("root")}function v4(){v4=V,mM=new YIe,new e_e}function qb(){qb=V,g1e=ze((Is(),Ug))}function Kkn(e,n){n.a?YFn(e,n):yL(e.a,n.b)}function pNe(e,n){Sa||ye(e.a,n)}function Xkn(e,n){return kE(),G4(n.d.i,e)}function Qkn(e,n){return y3(),new hYe(n,e)}function Zkn(e,n,t){return e.Le(n,t)<=0?t:n}function Ykn(e,n,t){return e.Le(n,t)<=0?n:t}function e9n(e,n){return o(fa(e.b,n),144)}function n9n(e,n){return o(fa(e.c,n),233)}function xL(e){return o(Te(e.a,e.b),295)}function mNe(e){return new pe(e.c,e.d+e.a)}function vNe(e){return an(e),e?1231:1237}function yNe(e){return Fs(),ZPe(o(e,203))}function Bne(e,n){return o(bn(e.b,n),278)}function kNe(e,n,t){++e.j,e.oj(n,e.Xi(n,t))}function UE(e,n,t){++e.j,e.rj(),tz(e,n,t)}function zne(e,n,t){KI.call(this,e,n,t,null)}function SNe(e,n,t){KI.call(this,e,n,t,null)}function Jne(e,n){iz.call(this,e),this.a=n}function Une(e,n){iz.call(this,e),this.a=n}function ai(e,n){Wt.call(this,e),this.a=n}function Gne(e,n){SY.call(this,e),this.a=n}function AL(e,n){SY.call(this,e),this.a=n}function ENe(e,n){this.c=e,Tw.call(this,n)}function CNe(e,n){this.a=e,gIe.call(this,n)}function GE(e,n){this.a=e,gIe.call(this,n)}function Hne(e,n,t){return t=qs(e,n,3,t),t}function qne(e,n,t){return t=qs(e,n,6,t),t}function Vne(e,n,t){return t=qs(e,n,9,t),t}function La(e,n){return cC(n,pfe),e.f=n,e}function Wne(e,n){return(n&Rt)%e.d.length}function jNe(e,n,t){return _le(e.c,e.b,n,t)}function t9n(e,n,t){return e.apply(n,t)}function TNe(e,n,t){var i;i=e.dd(n),i.Rb(t)}function MNe(e,n,t){return e.a+=Ga(n,0,t),e}function HE(e){return!e.a&&(e.a=new Jc),e.a}function Kne(e,n){var t;return t=e.e,e.e=n,t}function Xne(e,n){var t;return t=n,!!e.De(t)}function W0(e,n){return dn(),e==n?0:e?1:-1}function Vb(e,n){e.a._c(e.b,n),++e.b,e.c=-1}function i9n(e,n){var t;t=e[xG],t.call(e,n)}function r9n(e,n){var t;t=e[xG],t.call(e,n)}function c9n(e,n,t){q0(),tMe(e,n.Te(e.a,t))}function Qne(e,n,t){return u3(e,o(n,23),t)}function sf(e,n){return Lx(new Array(n),e)}function o9n(e){return lt(Z0(e,32))^lt(e)}function IL(e){return String.fromCharCode(e)}function u9n(e){return e==null?null:e.message}function _L(e){this.a=(tn(),new XD(nt(e)))}function xNe(e){this.a=(Js(e,_p),new ru(e))}function ANe(e){this.a=(Js(e,_p),new ru(e))}function INe(){this.a=new ke,this.b=new ke}function _Ne(){this.a=new rn,this.b=new IIe}function Zne(){this.b=new U1,this.a=new U1}function $Ne(){this.b=new Ar,this.c=new ke}function Yne(){this.n=new Ar,this.o=new Ar}function zA(){this.n=new Nv,this.i=new Kv}function ONe(){this.b=new Ji,this.a=new Ji}function PNe(){this.a=new ke,this.d=new ke}function RNe(){this.a=new Qje,this.b=new A9e}function NNe(){this.b=new l$e,this.a=new B8e}function DNe(){this.b=new Jn,this.a=new Jn}function FNe(){zA.call(this),this.a=new Ar}function ete(e,n,t,i){oI.call(this,e,n,t,i)}function s9n(e,n){return e.n.a=(an(n),n+10)}function l9n(e,n){return e.n.a=(an(n),n+10)}function f9n(e,n){return kE(),!G4(n.d.i,e)}function LNe(e){ko(e.e),e.d.b=e.d,e.d.a=e.d}function qE(e){e.b?qE(e.b):e.f.c.yc(e.e,e.d)}function a9n(e,n){Wh(e.f)?CLn(e,n):bNn(e,n)}function BNe(e,n,t){t!=null&&p_(n,RJ(e,t))}function zNe(e,n,t){t!=null&&m_(n,RJ(e,t))}function e3(e,n,t,i){ae.call(this,e,n,t,i)}function nte(e,n,t,i){ae.call(this,e,n,t,i)}function JNe(e,n,t,i){nte.call(this,e,n,t,i)}function UNe(e,n,t,i){gI.call(this,e,n,t,i)}function $L(e,n,t,i){gI.call(this,e,n,t,i)}function GNe(e,n,t,i){$L.call(this,e,n,t,i)}function tte(e,n,t,i){gI.call(this,e,n,t,i)}function ln(e,n,t,i){tte.call(this,e,n,t,i)}function ite(e,n,t,i){$L.call(this,e,n,t,i)}function HNe(e,n,t,i){ite.call(this,e,n,t,i)}function qNe(e,n,t,i){Zte.call(this,e,n,t,i)}function Wb(e,n){nu.call(this,e7+e+Tg+n)}function h9n(e,n){return n==e||d6(M$(n),e)}function rte(e,n){return e.hk().ti().oi(e,n)}function cte(e,n){return e.hk().ti().qi(e,n)}function d9n(e,n){return e.e=o(e.d.Kb(n),162)}function VNe(e,n){return Ct(e.a,n,"")==null}function WNe(e,n){return an(e),ne(e)===ne(n)}function Ke(e,n){return an(e),ne(e)===ne(n)}function ote(e,n,t){return e.lastIndexOf(n,t)}function KNe(e,n,t){this.a=e,Ine.call(this,n,t)}function XNe(e){this.c=e,MA.call(this,Ij,0)}function QNe(e,n,t){this.c=n,this.b=t,this.a=e}function Jt(e,n){return e.a+=n.a,e.b+=n.b,e}function ar(e,n){return e.a-=n.a,e.b-=n.b,e}function g9n(e){return _b(e.j.c,0),e.a=-1,e}function w9n(e,n){var t;return t=n.ni(e.a),t}function ute(e,n,t){return t=qs(e,n,11,t),t}function b9n(e,n,t){return Kt(e[n.a],e[t.a])}function p9n(e,n){return Bo(e.a.d.p,n.a.d.p)}function m9n(e,n){return Bo(n.a.d.p,e.a.d.p)}function v9n(e,n){return Kt(e.c-e.s,n.c-n.s)}function y9n(e,n){return Kt(e.b.e.a,n.b.e.a)}function k9n(e,n){return Kt(e.c.e.a,n.c.e.a)}function S9n(e,n){return oe(n,(Se(),xT),e)}function E9n(e,n){return e.b.zd(new wOe(e,n))}function C9n(e,n){return e.b.zd(new bOe(e,n))}function ZNe(e,n){return e.b.zd(new pOe(e,n))}function YNe(e,n){return U(n,16)&&qZe(e.c,n)}function eDe(e){return e.c?Kc(e.c.a,e,0):-1}function j9n(e){return e<100?null:new _1(e)}function n3(e){return e==Jg||e==Rh||e==Ro}function T9n(e,n,t){return o(e.c,72).Uk(n,t)}function JA(e,n,t){return o(e.c,72).Vk(n,t)}function M9n(e,n,t){return Lkn(e,o(n,344),t)}function ste(e,n,t){return Bkn(e,o(n,344),t)}function x9n(e,n,t){return OKe(e,o(n,344),t)}function nDe(e,n,t){return xNn(e,o(n,344),t)}function p9(e,n){return n==null?null:wp(e.b,n)}function A9n(e,n){Sa||n&&(e.d=n)}function lte(e,n){if(!e)throw P(new yn(n))}function y4(e){if(!e)throw P(new Tc(Yle))}function OL(e){return Jb(e)?(an(e),e):e.se()}function UA(e){return!isNaN(e)&&!isFinite(e)}function PL(e){gRe(this),Ts(this),Wr(this,e)}function Ku(e){wL(this),jte(this.c,0,e.Nc())}function VE(e){k4(),this.d=e,this.a=new Xm}function tDe(e,n,t){this.d=e,this.b=t,this.a=n}function ul(e,n,t){this.a=e,this.b=n,this.c=t}function iDe(e,n,t){this.a=e,this.b=n,this.c=t}function fte(e,n){this.c=e,uB.call(this,e,n)}function rDe(e,n){N7n.call(this,e,e.length,n)}function RL(e,n){if(e!=n)throw P(new rl)}function cDe(e){this.a=e,Ld(),bo(Date.now())}function oDe(e){ss(e.a),Ere(e.c,e.b),e.b=null}function NL(){NL=V,o1e=new Zo,zon=new ks}function DL(e){var n;return n=new Sk,n.e=e,n}function I9n(e,n,t){return q0(),e.a.Wd(n,t),n}function ate(e,n,t){this.b=e,this.c=n,this.a=t}function hte(e){var n;return n=new NIe,n.b=e,n}function _9n(e){return Uf(),tt((tUe(),run),e)}function $9n(e){return F4(),tt((bUe(),Gon),e)}function O9n(e){return dl(),tt((nUe(),Xon),e)}function P9n(e){return Qu(),tt((iUe(),oun),e)}function R9n(e){return Cu(),tt((rUe(),sun),e)}function N9n(e){return K$(),tt((BPe(),_un),e)}function D9n(e){return Iw(),tt((kUe(),Oun),e)}function F9n(e){return W4(),tt((SUe(),Esn),e)}function L9n(e){return c_(),tt((sJe(),Jun),e)}function B9n(e){return D9(),tt((eUe(),gsn),e)}function z9n(e){return kr(),tt((fGe(),msn),e)}function J9n(e){return M3(),tt((yUe(),Asn),e)}function U9n(e){return pn(),tt(($He(),Osn),e)}function G9n(e){return U4(),tt((lJe(),Fsn),e)}function FL(e){oI.call(this,e.d,e.c,e.a,e.b)}function dte(e){oI.call(this,e.d,e.c,e.a,e.b)}function H9n(e){return Mr(),tt((zPe(),Lsn),e)}function uDe(){uDe=V,own=te(ur,sn,1,0,5,1)}function sDe(){sDe=V,Cwn=te(ur,sn,1,0,5,1)}function gte(){gte=V,jwn=te(ur,sn,1,0,5,1)}function WE(){WE=V,mP=new t5e,vP=new i5e}function GA(){GA=V,Gsn=new I5e,Usn=new _5e}function Ds(){Ds=V,Ksn=new Lke,Xsn=new Bke}function q9n(e){return Aw(),tt((FJe(),oln),e)}function V9n(e){return wf(),tt((TUe(),Ysn),e)}function W9n(e){return yp(),tt((rGe(),nln),e)}function K9n(e){return R$(),tt((RHe(),uln),e)}function X9n(e){return _3(),tt((FGe(),sln),e)}function Q9n(e){return QI(),tt((Hze(),lln),e)}function Z9n(e){return t8(),tt((xUe(),fln),e)}function Y9n(e){return d_(),tt((OJe(),aln),e)}function e8n(e){return hj(),tt((zHe(),hln),e)}function n8n(e){return xC(),tt((qze(),dln),e)}function t8n(e){return ag(),tt((PJe(),wln),e)}function i8n(e){return y$(),tt((DGe(),bln),e)}function r8n(e){return SC(),tt((Vze(),pln),e)}function c8n(e){return rj(),tt((RGe(),mln),e)}function o8n(e){return w6(),tt((NGe(),vln),e)}function u8n(e){return gc(),tt((rqe(),yln),e)}function s8n(e){return V4(),tt((RJe(),kln),e)}function l8n(e){return V1(),tt((NJe(),Sln),e)}function f8n(e){return id(),tt((DJe(),Cln),e)}function a8n(e){return FI(),tt((Wze(),jln),e)}function h8n(e){return xs(),tt((oGe(),Mln),e)}function d8n(e){return zI(),tt((Kze(),xln),e)}function g8n(e){return gj(),tt((JHe(),whn),e)}function w8n(e){return X9(),tt((LJe(),bhn),e)}function b8n(e){return vp(),tt((CUe(),phn),e)}function p8n(e){return o8(),tt((cGe(),mhn),e)}function m8n(e){return i0(),tt((iqe(),vhn),e)}function v8n(e){return fd(),tt((jUe(),yhn),e)}function y8n(e){return CC(),tt((Xze(),khn),e)}function k8n(e){return dc(),tt((BJe(),Ehn),e)}function S8n(e){return x_(),tt((zJe(),Chn),e)}function E8n(e){return K9(),tt((JJe(),jhn),e)}function C8n(e){return Y4(),tt((UJe(),Thn),e)}function j8n(e){return h_(),tt((GJe(),Mhn),e)}function T8n(e){return A_(),tt((HJe(),xhn),e)}function M8n(e){return __(),tt((vUe(),Jsn),e)}function x8n(e){return dg(),tt((EUe(),Vhn),e)}function A8n(e,n){return an(e),e+(an(n),n)}function I8n(e){return R9(),tt((Qze(),Zhn),e)}function _8n(e){return Ba(),tt((Yze(),cdn),e)}function $8n(e){return oa(),tt((Zze(),udn),e)}function O8n(e){return Bf(),tt((eJe(),Sdn),e)}function k4(){k4=V,mbe=(Ee(),Cn),TR=An}function P8n(e){return Cw(),tt((nJe(),Adn),e)}function R8n(e){return I3(),tt((_Ue(),Idn),e)}function N8n(e){return S8(),tt((JPe(),_dn),e)}function D8n(e){return W9(),tt((qJe(),$dn),e)}function F8n(e){return V9(),tt((MUe(),n1n),e)}function L8n(e){return DI(),tt((tJe(),t1n),e)}function B8n(e){return y_(),tt((iJe(),u1n),e)}function z8n(e){return w$(),tt((uGe(),l1n),e)}function J8n(e){return YI(),tt((rJe(),f1n),e)}function U8n(e){return zC(),tt((VJe(),a1n),e)}function G8n(e){return u$(),tt((IUe(),_1n),e)}function H8n(e){return M_(),tt((WJe(),$1n),e)}function q8n(e){return W_(),tt((KJe(),O1n),e)}function V8n(e){return p$(),tt((AUe(),R1n),e)}function W8n(e){return U_(),tt((YJe(),F1n),e)}function K8n(e){return!e.e&&(e.e=new ke),e.e}function HA(e,n,t){this.e=n,this.b=e,this.d=t}function lDe(e,n,t){this.a=e,this.b=n,this.c=t}function fDe(e,n,t){this.a=e,this.b=n,this.c=t}function wte(e,n,t){this.a=e,this.b=n,this.c=t}function aDe(e,n,t){this.a=e,this.b=n,this.c=t}function hDe(e,n,t){this.a=e,this.c=n,this.b=t}function qA(e,n,t){this.b=e,this.a=n,this.c=t}function dDe(e,n,t){this.b=e,this.a=n,this.c=t}function LL(e,n){this.c=e,this.a=n,this.b=n-e}function X8n(e){return F_(),tt((QJe(),s0n),e)}function Q8n(e){return Xx(),tt((Sze(),g0n),e)}function Z8n(e){return bC(),tt((oJe(),w0n),e)}function Y8n(e){return oj(),tt((lGe(),b0n),e)}function e7n(e){return Kx(),tt((kze(),h0n),e)}function n7n(e){return m8(),tt((sGe(),f0n),e)}function t7n(e){return qC(),tt((ZJe(),a0n),e)}function i7n(e){return HI(),tt((cJe(),o0n),e)}function r7n(e){return e_(),tt((XJe(),u0n),e)}function c7n(e){return Hk(),tt((Eze(),$0n),e)}function o7n(e){return RC(),tt((uJe(),O0n),e)}function u7n(e){return qa(),tt((hGe(),L0n),e)}function s7n(e){return mg(),tt((OHe(),z0n),e)}function l7n(e){return ld(),tt((OUe(),Egn),e)}function f7n(e){return Qi(),tt((aGe(),ygn),e)}function a7n(e){return n6(),tt(($Ue(),kgn),e)}function h7n(e){return aa(),tt((cUe(),Sgn),e)}function d7n(e){return yh(),tt((_Ge(),J0n),e)}function g7n(e){return pg(),tt(($Ge(),W0n),e)}function w7n(e){return Cp(),tt((GHe(),Agn),e)}function b7n(e){return w2(),tt((dGe(),Ign),e)}function p7n(e){return yr(),tt((PGe(),_gn),e)}function m7n(e){return Zu(),tt((OGe(),$gn),e)}function v7n(e){return Gs(),tt((PUe(),xgn),e)}function y7n(e){return m$(),tt((IGe(),Cgn),e)}function k7n(e){return sd(),tt((uUe(),Tgn),e)}function S7n(e){return JI(),tt((RUe(),Jgn),e)}function E7n(e){return bs(),tt((UHe(),Bgn),e)}function C7n(e){return C3(),tt((oUe(),zgn),e)}function j7n(e){return Ee(),tt((gGe(),Ogn),e)}function T7n(e){return L9(),tt((sUe(),Fgn),e)}function M7n(e){return Is(),tt((NUe(),Lgn),e)}function x7n(e){return G_(),tt((DUe(),Ugn),e)}function A7n(e){return $_(),tt((FUe(),qgn),e)}function I7n(e){return p6(),tt((PHe(),cwn),e)}function gDe(e,n,t){ol(),_ie.call(this,e,n,t)}function BL(e,n,t){ol(),hie.call(this,e,n,t)}function wDe(e,n,t){ol(),BL.call(this,e,n,t)}function bte(e,n,t){ol(),BL.call(this,e,n,t)}function bDe(e,n,t){ol(),bte.call(this,e,n,t)}function pDe(e,n,t){ol(),pte.call(this,e,n,t)}function pte(e,n,t){ol(),hie.call(this,e,n,t)}function mte(e,n,t){ol(),hie.call(this,e,n,t)}function mDe(e,n,t){ol(),mte.call(this,e,n,t)}function vDe(e,n,t){this.a=e,this.c=n,this.b=t}function yDe(e,n,t){this.a=e,this.b=n,this.c=t}function vte(e,n,t){this.a=e,this.b=n,this.c=t}function yte(e,n,t){this.a=e,this.b=n,this.c=t}function zL(e,n,t){this.a=e,this.b=n,this.c=t}function kDe(e,n,t){this.a=e,this.b=n,this.c=t}function Jd(e,n,t){this.e=e,this.a=n,this.c=t}function kte(e){this.d=e,cMe(this),this.b=ESn(e.d)}function Ste(e,n){S6n.call(this,e,z_(new io(n)))}function KE(e,n){return nt(e),nt(n),new T$e(e,n)}function t3(e,n){return nt(e),nt(n),new $De(e,n)}function _7n(e,n){return nt(e),nt(n),new ODe(e,n)}function $7n(e,n){return nt(e),nt(n),new D$e(e,n)}function JL(e){return Nn(e.b!=0),fl(e,e.a.a)}function O7n(e){return Nn(e.b!=0),fl(e,e.c.b)}function P7n(e){return!e.c&&(e.c=new Zy),e.c}function XE(e){var n;return n=new ei,Tz(n,e),n}function SDe(e){var n;return n=new rF,Tz(n,e),n}function R7n(e){var n;return n=new Ji,gz(n,e),n}function S4(e){var n;return n=new ke,gz(n,e),n}function o(e,n){return m9(e==null||CJ(e,n)),e}function N7n(e,n,t){kFe.call(this,n,t),this.a=e}function EDe(e,n){this.c=e,this.b=n,this.a=!1}function CDe(){this.a=";,;",this.b="",this.c=""}function jDe(e,n,t){this.b=e,OPe.call(this,n,t)}function Ete(e,n,t){this.c=e,eA.call(this,n,t)}function Cte(e,n,t){g4.call(this,e,n),this.b=t}function jte(e,n,t){pse(t,0,e,n,t.length,!1)}function dh(e,n,t,i,r){e.b=n,e.c=t,e.d=i,e.a=r}function Tte(e,n,t,i,r){e.d=n,e.c=t,e.a=i,e.b=r}function D7n(e,n){n&&(e.b=n,e.a=(L1(n),n.a))}function QE(e,n){if(!e)throw P(new yn(n))}function i3(e,n){if(!e)throw P(new Tc(n))}function Mte(e,n){if(!e)throw P(new __e(n))}function F7n(e,n){return Vx(),Bo(e.d.p,n.d.p)}function L7n(e,n){return cd(),Kt(e.e.b,n.e.b)}function B7n(e,n){return cd(),Kt(e.e.a,n.e.a)}function z7n(e,n){return Bo(FDe(e.d),FDe(n.d))}function VA(e,n){return n&&vI(e,n.d)?n:null}function J7n(e,n){return n==(Ee(),Cn)?e.c:e.d}function U7n(e){return new pe(e.c+e.b,e.d+e.a)}function TDe(e){return e!=null&&!lJ(e,ES,CS)}function G7n(e,n){return(sVe(e)<<4|sVe(n))&Zi}function MDe(e,n,t,i,r){e.c=n,e.d=t,e.b=i,e.a=r}function xte(e){var n,t;n=e.b,t=e.c,e.b=t,e.c=n}function Ate(e){var n,t;t=e.d,n=e.a,e.d=n,e.a=t}function H7n(e,n){var t;return t=e.c,cce(e,n),t}function Ite(e,n){return n<0?e.g=-1:e.g=n,e}function WA(e,n){return Nxn(e),e.a*=n,e.b*=n,e}function ZE(e,n,t){Kee.call(this,e,n),this.c=t}function KA(e,n,t){Kee.call(this,e,n),this.c=t}function _te(e){gte(),vx.call(this),this._h(e)}function xDe(){R4(),iEn.call(this,(O1(),Yl))}function ADe(e){return Ft(),new gh(0,e)}function IDe(){IDe=V,_X=(tn(),new XD(Tq))}function XA(){XA=V,new Goe((aF(),Fq),(fF(),Dq))}function _De(){this.b=K(Z(je((mf(),lV))))}function UL(e){this.b=e,this.a=X0(this.b.a).Md()}function $De(e,n){this.b=e,this.a=n,zD.call(this)}function ODe(e,n){this.a=e,this.b=n,zD.call(this)}function PDe(e,n,t){this.a=e,Hm.call(this,n,t)}function RDe(e,n,t){this.a=e,Hm.call(this,n,t)}function E4(e,n,t){var i;i=new ep(t),hf(e,n,i)}function $te(e,n,t){var i;return i=e[n],e[n]=t,i}function QA(e){var n;return n=e.slice(),uz(n,e)}function ZA(e){var n;return n=e.n,e.a.b+n.d+n.a}function NDe(e){var n;return n=e.n,e.e.b+n.d+n.a}function Ote(e){var n;return n=e.n,e.e.a+n.b+n.c}function Pte(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function vt(e,n){return Ei(e,n,e.c.b,e.c),!0}function q7n(e){return e.a?e.a:vB(e)}function m9(e){if(!e)throw P(new r4(null))}function ww(e,n){return f8(e,new g4(n.a,n.b))}function V7n(e){return!Ur(e)&&e.c.i.c==e.d.i.c}function W7n(e,n){return e.c<n.c?-1:e.c==n.c?0:1}function DDe(e){return e.b.c.length-e.e.c.length}function FDe(e){return e.e.c.length-e.g.c.length}function GL(e){return e.e.c.length+e.g.c.length}function YE(e){return e==0||isNaN(e)?e:e<0?-1:1}function LDe(e){return m3(),te(IR,AO,40,e,0,1)}function BDe(){BDe=V,qde=te(tr,ve,15,256,0,1)}function Rte(){dh(this,!1,!1,!1,!1)}function zDe(e){Ine.call(this,e.length,0),this.a=e}function JDe(e,n){kFe.call(this,n,1040),this.a=e}function Nte(e,n,t,i){Noe.call(this,e,n,t,i,0,0)}function UDe(e){gte(),_te.call(this,e),this.a=-1}function K7n(e){return Fs(),(Ee(),vu).Gc(e.j)}function X7n(e,n,t){return cd(),t.e.a+t.f.a+e*n}function Q7n(e,n,t){return cd(),t.e.b+t.f.b+e*n}function Z7n(e,n,t){return Ct(e.b,o(t.b,17),n)}function Y7n(e,n,t){return Ct(e.b,o(t.b,17),n)}function eSn(e,n){return ye(e,new pe(n.a,n.b))}function nSn(e,n){oce(e,n==null?null:(an(n),n))}function tSn(e,n){sce(e,n==null?null:(an(n),n))}function iSn(e,n){sce(e,n==null?null:(an(n),n))}function YA(e,n){var t;return++e.j,t=e.Aj(n),t}function pi(e,n){var t;return t=gB(e,n),t.i=2,t}function wt(e,n,t){return e.a=-1,_ne(e,n.g,t),e}function eI(e,n){RE.call(this,e,n),this.a=this}function GDe(){sL.call(this,"COUNT_CHILDREN",0)}function Dte(e){this.c=e,this.b=this.c.d.vc().Jc()}function HDe(e){return e.e.Pd().gc()*e.c.Pd().gc()}function HL(e,n,t){return new QNe(oEn(e).Ze(),t,n)}function Kb(e,n,t,i,r,c){return CKe(e,n,t,i,r,0,c)}function qDe(){qDe=V,Vde=te(eb,ve,190,256,0,1)}function VDe(){VDe=V,Xde=te(nb,ve,191,256,0,1)}function WDe(){WDe=V,Ude=te(Q3,ve,221,256,0,1)}function KDe(){KDe=V,Hde=te(f7,ve,180,128,0,1)}function nI(){nI=V,zq=new LB((tn(),tn(),oc))}function qL(){qL=V,Rde=new See((tn(),tn(),sP))}function tI(e){for(nt(e);e.Ob();)e.Pb(),e.Qb()}function rSn(e){e.a.jd(),o(e.a.kd(),18).gc(),WY()}function Xb(e){this.a=new Uv(e.gc()),Wr(this,e)}function Fte(e){lY.call(this,new U1),Wr(this,e)}function XDe(e){this.c=e,this.a=new Jv(this.c.a)}function Lte(e){if(e.e.c!=e.b)throw P(new rl)}function Bte(e){if(e.c.e!=e.a)throw P(new rl)}function QDe(e){return e.q?e.q:(tn(),tn(),xh)}function ZDe(e){return e.c-o(Te(e.a,e.b),295).b}function cSn(e,n){return an(e),_C(e,(an(n),n))}function oSn(e,n){return an(n),_C(n,(an(e),e))}function uSn(e,n,t){return Bo(n.d[e.g],t.d[e.g])}function sSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function lSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function fSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function aSn(e,n,t){return Bo(e.d[n.p],e.d[t.p])}function YDe(e,n){return e?0:m.Math.max(0,n-1)}function iI(e,n,t){return m.Math.min(t/e,1/n)}function js(e){return e.c?e.c.f:e.e.b}function Bu(e){return e.c?e.c.g:e.e.a}function Te(e,n){return en(n,e.c.length),e.c[n]}function eFe(e,n){return en(n,e.a.length),e.a[n]}function nFe(e,n){return e.a+=Ga(n,0,n.length),e}function hSn(e,n){return e.a==null&&eYe(e),e.a[n]}function tFe(e){var n;return n=jKe(e),n?tFe(n):e}function dSn(e,n){var t;for(t=0;t<n;++t)e[t]=-1}function Qe(e,n){q0(),iz.call(this,e),this.a=n}function rI(e,n){ol(),xx.call(this,n),this.a=e}function gh(e,n){Ft(),ow.call(this,e),this.a=n}function iFe(e){this.b=new ei,this.a=e,this.c=-1}function rFe(e){this.a=e,this.c=new Jn,gIn(this)}function cI(e){Tw.call(this,e.gc()),_i(this,e)}function oI(e,n,t,i){Tte(this,e,n,t,i)}function v9(e,n,t){this.a=e,Xi.call(this,n,t,2)}function VL(e,n){return e==null?n==null:Ke(e,n)}function gSn(e,n){return e==null?n==null:X_(e,n)}function uI(e,n){return Ft(),new iie(e,n)}function lt(e){return Fc(e)?e|0:o$e(e)}function ii(e,n){var t;return t=ze(e),Rce(t,n),t}function wSn(e,n){return!e&&(e=[]),e[e.length]=n,e}function K0(e,n,t){rp(n,e.c.length),Xk(e.c,n,t)}function WL(e,n,t){Iqe(0,n,e.length),D4(e,0,n,t)}function cFe(e,n,t){var i;for(i=0;i<n;++i)e[i]=t}function KL(e,n){return U(n,23)&&Lu(e,o(n,23))}function oFe(e,n){return U(n,23)&&_xn(e,o(n,23))}function Mc(e,n){return Rqe(e,n,YTn(e,e.b.Ae(n)))}function bSn(e,n){return e.a.get(n)!==void 0}function zte(e){return Array.isArray(e)&&e.Rm===hu}function XL(e){return ws(e,26)*$8+ws(e,27)*O8}function QL(){QL=V,Wgn=new Ir((pt(),ms),0)}function uFe(){uFe=V,mon=new zDe(te(ur,sn,1,0,5,1))}function sFe(){this.b=new Br,this.c=new HLe(this)}function Jte(){this.d=new Pl,this.e=new GLe(this)}function ZL(e,n){this.b=new ei,this.a=e,this.c=n}function Ute(){Lie(),this.g=new ei,this.f=new ei}function lFe(){Fs(),this.k=new Jn,this.d=new Ji}function pSn(e,n){YL(e,ar(new pe(n.a,n.b),e.c))}function YL(e,n){Jt(e.c,n),e.b.c+=n.a,e.b.d+=n.b}function sI(e){e.b?sI(e.b):e.d.dc()&&e.f.c.Ac(e.e)}function mSn(e,n,t){return-Bo(e.f[n.p],e.f[t.p])}function vSn(e,n,t){return Ui(e,new Gv(n.a,t.a))}function ySn(e,n,t){BQe(t,e,1),ye(n,new jOe(t,e))}function kSn(e,n,t){l8(t,e,1),ye(n,new _Oe(t,e))}function fFe(e,n,t,i){ol(),tze.call(this,e,n,t,i)}function aFe(e,n,t,i){ol(),tze.call(this,e,n,t,i)}function hFe(e,n,t){this.a=e,OA.call(this,n,t,22)}function dFe(e,n,t){this.a=e,OA.call(this,n,t,14)}function tu(e,n,t){return e.a=-1,_ne(e,n.g+1,t),e}function Gte(e,n,t){return t=qs(e,o(n,52),7,t),t}function Hte(e,n,t){return t=qs(e,o(n,52),3,t),t}function lI(e,n,t){var i;e&&(i=e.i,i.c=n,i.b=t)}function fI(e,n,t){var i;e&&(i=e.i,i.d=n,i.a=t)}function SSn(e,n){n.Bb&vo&&!e.a.o&&(e.a.o=n)}function gFe(e){return e!=null&&cB(e)&&e.Rm!==hu}function qte(e){return!Array.isArray(e)&&e.Rm===hu}function ESn(e){return U(e,16)?o(e,16).cd():e.Jc()}function Vte(e){return e.Oc(te(ur,sn,1,e.gc(),5,1))}function y9(e,n){return D$n(jC(e,n))?n.wi():null}function eB(e){return e.d?e.d:e.d=e.Rd()}function X0(e){return e.c?e.c:e.c=e.Qd()}function r3(e){var n;return n=e.i,n||(e.i=e.bc())}function wFe(e){var n;return n=e.f,n||(e.f=e.Cc())}function bFe(e){return Ft(),new AB(10,e,0)}function Q0(e){P1(),this.a=0,this.b=e-1,this.c=1}function pFe(e){_A(this),this.g=e,EI(this),this.he()}function Wte(e,n,t,i){this.a=e,KI.call(this,e,n,t,i)}function kn(e){this.a=(uFe(),mon),this.d=o(nt(e),50)}function aI(e){if(e.e.j!=e.d)throw P(new rl)}function k9(e){return Fc(e)?""+e:HZe(e)}function CSn(e,n){return W0((an(e),e),(an(n),n))}function nB(e,n){return Kt((an(e),e),(an(n),n))}function wh(e,n){return q1(oXe(Fc(e)?Bl(e):e,n))}function bw(e,n){return q1(Tse(Fc(e)?Bl(e):e,n))}function Z0(e,n){return q1(SDn(Fc(e)?Bl(e):e,n))}function mFe(e,n){return nt(n),e.a.Hd(n)&&!e.b.Hd(n)}function jSn(e,n){return du(e.l&n.l,e.m&n.m,e.h&n.h)}function TSn(e,n){return du(e.l|n.l,e.m|n.m,e.h|n.h)}function MSn(e,n){return du(e.l^n.l,e.m^n.m,e.h^n.h)}function Qb(e,n){return GC(e,(an(n),new hMe(n)))}function c3(e,n){return GC(e,(an(n),new dMe(n)))}function vFe(e){return Ju(),o(e,12).g.c.length!=0}function yFe(e){return Ju(),o(e,12).e.c.length!=0}function xSn(e,n){return y3(),Kt(n.a.o.a,e.a.o.a)}function Kte(e){e.d||(e.d=e.b.Jc(),e.c=e.b.gc())}function ASn(e,n,t){e.a.Mb(t)&&(e.b=!0,n.Ad(t))}function C4(e,n){if(e<0||e>=n)throw P(new UIe)}function ko(e){e.f=new KPe(e),e.i=new XPe(e),++e.g}function hI(e){this.b=new ru(11),this.a=(kw(),e)}function tB(e){this.b=null,this.a=(kw(),e||r1e)}function Xte(e,n){this.e=e,this.d=n&64?n|Ka:n}function kFe(e,n){this.c=0,this.d=e,this.b=n|64|Ka}function SFe(e){this.a=SWe(e.a),this.b=new Ku(e.b)}function Ud(e,n,t,i){var r;r=e.i,r.i=n,r.a=t,r.b=i}function Qte(e){var n;for(n=e;n.f;)n=n.f;return n}function ISn(e){return e.e?yre(e.e):null}function S9(e){return Zu(),!e.Gc(Sd)&&!e.Gc(x0)}function EFe(e,n,t){return y6(),$z(e,n)&&$z(e,t)}function CFe(e,n,t){return $nn(e,o(n,12),o(t,12))}function iB(e,n){return n.Sh()?X1(e.b,o(n,52)):n}function dI(e){return new pe(e.c+e.b/2,e.d+e.a/2)}function _Sn(e,n,t){n.of(t,K(Z(bn(e.b,t)))*e.a)}function $Sn(e,n){n.Tg("General 'Rotator",1),Vqn(e)}function gr(e,n,t,i,r){cz.call(this,e,n,t,i,r,-1)}function E9(e,n,t,i,r){yC.call(this,e,n,t,i,r,-1)}function ae(e,n,t,i){Xi.call(this,e,n,t),this.b=i}function gI(e,n,t,i){ZE.call(this,e,n,t),this.b=i}function jFe(e){SPe.call(this,e,!1),this.a=!1}function TFe(){sL.call(this,"LOOKAHEAD_LAYOUT",1)}function MFe(){sL.call(this,"LAYOUT_NEXT_LEVEL",3)}function xFe(e){this.b=e,Qv.call(this,e),PRe(this)}function AFe(e){this.b=e,LE.call(this,e),RRe(this)}function IFe(e,n){this.b=e,PTe.call(this,e.b),this.a=n}function Zb(e,n,t){this.a=e,e3.call(this,n,t,5,6)}function Zte(e,n,t,i){this.b=e,Xi.call(this,n,t,i)}function Y0(e,n,t){Va(),this.e=e,this.d=n,this.a=t}function Rr(e,n){for(an(n);e.Ob();)n.Ad(e.Pb())}function wI(e,n){return Ft(),new die(e,n,0)}function rB(e,n){return Ft(),new die(6,e,n)}function OSn(e,n){return Ke(e.substr(0,n.length),n)}function zo(e,n){return mr(n)?TB(e,n):!!Mc(e.f,n)}function PSn(e){return du(~e.l&ps,~e.m&ps,~e.h&dd)}function cB(e){return typeof e===Tj||typeof e===YU}function bh(e){return new kn(new jne(e.a.length,e.a))}function oB(e){return new Qe(null,JSn(e,e.length))}function _Fe(e){if(!e)throw P(new Gc);return e.d}function o3(e){var n;return n=q9(e),Nn(n!=null),n}function RSn(e){var n;return n=S_n(e),Nn(n!=null),n}function j4(e,n){var t;return t=e.a.gc(),bre(n,t),t-n}function Ui(e,n){var t;return t=e.a.yc(n,e),t==null}function eC(e,n){return e.a.yc(n,(dn(),d0))==null}function NSn(e,n){return e>0?m.Math.log(e/n):-100}function Yte(e,n){return n?Wr(e,n):!1}function u3(e,n,t){return gf(e.a,n),$te(e.b,n.g,t)}function DSn(e,n,t){C4(t,e.a.c.length),Bs(e.a,t,n)}function Y(e,n,t,i){Iqe(n,t,e.length),FSn(e,n,t,i)}function FSn(e,n,t,i){var r;for(r=n;r<t;++r)e[r]=i}function eie(e,n){var t;for(t=0;t<n;++t)e[t]=!1}function C9(e){Ub(e.b!=-1),Hd(e.c,e.a=e.b),e.b=-1}function Ff(e,n,t){return FIn(e,n.g,t),gf(e.c,n),e}function LSn(e,n,t){Zqn(e.a,e.b,e.d,e.c,o(n,170),t)}function nC(e,n){pRe(e,U(n,163)?n:o(n,1998).Pl())}function nie(e,n){if(e==null)throw P(new Lv(n))}function tie(e,n,t){this.c=e,this.a=n,tn(),this.b=t}function uB(e,n){this.d=e,$n.call(this,e),this.e=n}function iie(e,n){ow.call(this,1),this.a=e,this.b=n}function $Fe(e,n){return Go(e,n)<0?-1:Go(e,n)>0?1:0}function j9(e){return e.e==0?e:new Y0(-e.e,e.d,e.a)}function BSn(e){return e==Ci?uT:e==hr?"-INF":""+e}function zSn(e){return e==Ci?uT:e==hr?"-INF":""+e}function JSn(e,n){return $xn(n,e.length),new JDe(e,n)}function OFe(e,n,t,i,r){for(;n<t;)i[r++]=zr(e,n++)}function PFe(e,n,t){var i;for(i=0;i<n;++i)Oi(e,i,t)}function USn(e,n,t){var i;return i=sp(e,n),UB(e,n,t),i}function RFe(e,n){return e.c?RFe(e.c,n):ye(e.b,n),e}function sB(e){return!e.j&&r4n(e,qJn(e.g,e.b)),e.j}function GSn(e){return T2(e,(Qi(),Oc)),e.d=!0,e}function bI(e,n){Ei(e.d,n,e.b.b,e.b),++e.a,e.c=null}function HSn(e,n){return Kt(e.c.c+e.c.b,n.c.c+n.c.b)}function lB(e){return m.Math.abs(e.d.e-e.e.e)-e.a}function qSn(e,n){return Kt(e.e.a+e.f.a,n.e.a+n.f.a)}function VSn(e,n){return Kt(e.e.b+e.f.b,n.e.b+n.f.b)}function fB(e,n){this.d=T_n(e),this.c=n,this.a=.5*n}function Yb(e){this.d=(an(e),e),this.a=0,this.c=Ij}function NFe(e){Aie.call(this),this.a=e,ye(e.a,this)}function rie(e){e?$ue(e,(Ld(),_on)):QEn((Ld(),e))}function WSn(e,n){s3(e,new ep(n.f!=null?n.f:""+n.g))}function KSn(e,n){s3(e,new ep(n.f!=null?n.f:""+n.g))}function pw(e,n){Ii(iu(e.Mc(),new s9e),new vxe(n))}function _i(e,n){return e.Qi()&&(n=wBe(e,n)),e.Di(n)}function aB(e,n){return n=e.Wk(null,n),zKe(e,null,n)}function XSn(e,n){++e.j,WJ(e,e.i,n),OFn(e,o(n,344))}function QSn(e,n,t){return o(e.c.fd(n,o(t,136)),45)}function T4(e,n,t,i,r){KJ(e,o(Ht(n.k,t),16),t,i,r)}function pI(e){e.s=NaN,e.c=NaN,xQe(e,e.e),xQe(e,e.j)}function DFe(e){e.a=null,e.e=null,ko(e.b),e.d=0,++e.c}function Fn(e){return(e.i==null&&Wa(e),e.i).length}function F1(){F1=V,wn=$Fn(),nn(),ym&&qPn()}function FFe(){FFe=V,jon=new QZ(!1),Ton=new QZ(!0)}function T9(e){var n;return n=e.g,n||(e.g=new WZ(e))}function mI(e){var n;return n=e.k,n||(e.k=new KZ(e))}function cie(e){var n;return n=e.k,n||(e.k=new KZ(e))}function ZSn(e){var n;return n=e.i,n||(e.i=new ITe(e))}function hB(e){var n;return n=e.j,n||(e.j=new QTe(e))}function LFe(e){var n;return n=e.f,n||(e.f=new pne(e))}function dB(e){var n;return n=e.d,n||(e.d=new qD(e))}function oie(e,n){var t;return t=e.a.gc(),hC(n,t),t-1-n}function S(e,n,t){var i;return i=gB(e,n),UGe(t,i),i}function gB(e,n){var t;return t=new $ce,t.j=e,t.d=n,t}function nt(e){if(e==null)throw P(new Pv);return e}function ep(e){if(e==null)throw P(new Pv);this.a=e}function BFe(e){MY(),this.b=new ke,this.a=e,QHn(this,e)}function uie(e){this.b=e,this.a=o(Fl(this.b.a.e),227)}function zFe(){U1.call(this),this.a=!0,this.b=!0}function sie(e,n){return Tn(n,e.length+1),e.substr(n)}function JFe(e,n){return hC(n,e.c.b.c.gc()),new j$e(e,n)}function UFe(e,n,t){return Ft(),new BBe(e,n,t)}function lie(e){return U(e,606)?e:new oBe(e)}function Oi(e,n,t){return Ekn(t==null||IUn(e,t)),e[n]=t}function M4(e,n){return e.a+=String.fromCharCode(n),e}function eg(e,n){return e.a+=String.fromCharCode(n),e}function YSn(e,n){return y3(),o(Ec(e,n.d),16).Ec(n)}function bn(e,n){return mr(n)?Jo(e,n):qc(Mc(e.f,n))}function GFe(e,n){return o(X0(e.a).Kd().Xb(n),45).jd()}function eEn(e,n){return o(M(n,(Se(),Zp)),15).a<e}function nEn(e,n,t,i){return t==0||(t-i)/t<e.e||n>=e.g}function wB(e,n,t){var i;return i=jz(e,n,t),ile(e,i)}function HFe(e,n){var t;t=console[e],t.call(console,n)}function s3(e,n){var t;t=e.a.length,sp(e,t),UB(e,t,n)}function qFe(e,n){var t;++e.j,t=e.Cj(),e.pj(e.Xi(t,n))}function bB(e,n){for(an(n);e.c<e.d;)e.Qe(n,e.c++)}function tEn(e,n,t){o(n.b,68),cu(n.a,new vte(e,t,n))}function fie(e){for(;e.a.b!=0;)_qn(e,o(nBe(e.a),9))}function aie(e){this.d=e,this.c=e.a.d.a,this.b=e.a.e.g}function VFe(e){this.c=e,this.a=new ei,this.b=new ei}function To(e){this.c=new Ar,this.a=new ke,this.b=e}function WFe(e){this.b=new ke,this.a=new ke,this.c=e}function hie(e,n,t){xx.call(this,n),this.a=e,this.b=t}function die(e,n,t){ow.call(this,e),this.a=n,this.b=t}function gie(e,n,t){this.a=e,SY.call(this,n),this.b=t}function KFe(e,n,t){this.a=e,Qie.call(this,8,n,null,t)}function iEn(e){this.a=(an(bt),bt),this.b=e,new DY}function XFe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function ss(e){Ub(e.c!=-1),e.d.ed(e.c),e.b=e.c,e.c=-1}function M9(e){return m.Math.sqrt(e.a*e.a+e.b*e.b)}function QFe(e){return U(e,103)&&(o(e,19).Bb&vo)!=0}function ZFe(e){return Fl(e),U(e,472)?o(e,472):Bc(e)}function YFe(e){return e?e.dc():!e.Jc().Ob()}function rEn(e){return Sm?TB(Sm,e):!1}function L1(e){e.c?L1(e.c):(Q1(e),e.d=!0)}function x9(e){e.c?e.c.Ye():(e.d=!0,FBn(e))}function eLe(e){kie(e.a),e.b=te(ur,sn,1,e.b.length,5,1)}function vI(e,n){return zJ(e.c,e.f,n,e.b,e.a,e.e,e.d)}function mw(e,n){return C4(n,e.a.c.length),Te(e.a,n)}function Qh(e,n){return ne(e)===ne(n)||e!=null&&Bt(e,n)}function cEn(e,n){return Bo(n.j.c.length,e.j.c.length)}function nLe(e){var n,t;return n=e.c.i.c,t=e.d.i.c,n==t}function wr(e){return!e.a&&e.c?e.c.b:e.a}function oEn(e){return 0>=e?new dee:tAn(e-1)}function Fl(e){if(e==null)throw P(new Pv);return e}function an(e){if(e==null)throw P(new Pv);return e}function uEn(e){return!e.a&&(e.a=new Xi(A0,e,4)),e.a}function vw(e){return!e.d&&(e.d=new Xi(yc,e,1)),e.d}function sEn(e){if(e.p!=3)throw P(new Du);return e.e}function lEn(e){if(e.p!=4)throw P(new Du);return e.e}function fEn(e){if(e.p!=6)throw P(new Du);return e.f}function aEn(e){if(e.p!=3)throw P(new Du);return e.j}function hEn(e){if(e.p!=4)throw P(new Du);return e.j}function dEn(e){if(e.p!=6)throw P(new Du);return e.k}function Di(){h_e.call(this),_b(this.j.c,0),this.a=-1}function tLe(){et.call(this,"DELAUNAY_TRIANGULATION",0)}function gEn(){return Rx(),F(D(von,1),be,537,0,[Bq])}function wEn(e,n,t){return S3(),t.Kg(e,o(n.jd(),147))}function bEn(e,n){Xn((!e.a&&(e.a=new GE(e,e)),e.a),n)}function wie(e,n){e.c<0||e.b.b<e.c?Zr(e.b,n):e.a.vf(n)}function pEn(e,n){var t;t=e.Fh(n),t>=0?e.hi(t):sse(e,n)}function x4(e,n){var t;return t=gB("",e),t.n=n,t.i=1,t}function yw(e){return e.c==-2&&Kyn(e,_Nn(e.g,e.b)),e.c}function bie(e){return!e.b&&(e.b=new Tx(new lF)),e.b}function iLe(e,n){return XA(),new Goe(new DRe(e),new NRe(n))}function mEn(e){return Js(e,iG),o_(nc(nc(5,e),e/10|0))}function pB(){pB=V,Son=new kee(F(D(Ag,1),X$,45,0,[]))}function rLe(){Lue.call(this,xg,(K_e(),Own)),NHn(this)}function cLe(){Lue.call(this,Gl,(s4(),dve)),GGn(this)}function oLe(e,n){V5n.call(this,iAn(nt(e),nt(n))),this.a=n}function pie(e,n,t,i){lw.call(this,e,n),this.d=t,this.a=i}function yI(e,n,t,i){lw.call(this,e,t),this.a=n,this.f=i}function uLe(e,n){this.b=e,uB.call(this,e,n),PRe(this)}function sLe(e,n){this.b=e,fte.call(this,e,n),RRe(this)}function A9(e){this.d=e,this.a=this.d.b,this.b=this.d.c}function lLe(e){e.b=!1,e.c=!1,e.d=!1,e.a=!1}function A4(e){return!e.a&&(e.a=new R_e(e.c.vc())),e.a}function fLe(e){return!e.b&&(e.b=new c4(e.c.ec())),e.b}function aLe(e){return!e.d&&(e.d=new Yy(e.c.Bc())),e.d}function ph(e,n){for(;n-- >0;)e=e<<1|(e<0?1:0);return e}function hLe(e,n){var t;return t=new To(e),vn(n.c,t),t}function vEn(e,n){YL(o(n.b,68),e),cu(n.a,new wY(e))}function dLe(e,n){e.u.Gc((Zu(),Sd))&&MFn(e,n),xMn(e,n)}function Mo(e,n){return ne(e)===ne(n)||e!=null&&Bt(e,n)}function Ct(e,n,t){return mr(n)?xc(e,n,t):Tu(e.f,n,t)}function mie(e){return tn(),e?e.Me():(kw(),kw(),c1e)}function yEn(){return Kx(),F(D(Ype,1),be,477,0,[BK])}function kEn(){return Xx(),F(D(d0n,1),be,546,0,[zK])}function SEn(){return Hk(),F(D(yme,1),be,527,0,[qT])}function Ec(e,n){return KL(e.a,n)?e.b[o(n,23).g]:null}function EEn(e){return String.fromCharCode.apply(null,e)}function zr(e,n){return Tn(n,e.length),e.charCodeAt(n)}function tC(e){return e.j.c.length=0,kie(e.c),g9n(e.a),e}function I4(e){return e.e==i5&&n4n(e,H$n(e.g,e.b)),e.e}function iC(e){return e.f==i5&&i4n(e,PPn(e.g,e.b)),e.f}function CEn(e){return!e.b&&(e.b=new ln(Hn,e,4,7)),e.b}function vie(e){return!e.c&&(e.c=new ln(Hn,e,5,8)),e.c}function yie(e){return!e.c&&(e.c=new ae(vs,e,9,9)),e.c}function mB(e){return!e.n&&(e.n=new ae(no,e,1,7)),e.n}function e2(e){var n;return n=e.b,!n&&(e.b=n=new ATe(e)),n}function kie(e){var n;for(n=e.Jc();n.Ob();)n.Pb(),n.Qb()}function jEn(e,n,t){var i;i=o(e.d.Kb(t),162),i&&i.Nb(n)}function TEn(e,n){return new BLe(o(nt(e),51),o(nt(n),51))}function Nt(e,n){return Q1(e),new Qe(e,new Ore(n,e.a))}function iu(e,n){return Q1(e),new Qe(e,new vre(n,e.a))}function np(e,n){return Q1(e),new Jne(e,new MJe(n,e.a))}function kI(e,n){return Q1(e),new Une(e,new xJe(n,e.a))}function gLe(e,n){woe(e,K(od(n,"x")),K(od(n,"y")))}function wLe(e,n){woe(e,K(od(n,"x")),K(od(n,"y")))}function MEn(e,n){return gee(),Kt((an(e),e),(an(n),n))}function xEn(e,n){return Kt(e.d.c+e.d.b/2,n.d.c+n.d.b/2)}function AEn(e,n){return Kt(e.g.c+e.g.b/2,n.g.c+n.g.b/2)}function IEn(e){return e!=null&&zk(mN,e.toLowerCase())}function _En(e){Ds();var n;n=o(e.g,9),n.n.a=e.d.c+n.d.b}function vB(e){var n;return n=cAn(e),n||null}function _t(e,n,t,i){return MHe(e,n,t,!1),D_(e,i),e}function $En(e,n,t){FGn(e.a,t),iIn(t),fLn(e.b,t),cHn(n,t)}function l3(e,n,t,i){et.call(this,e,n),this.a=t,this.b=i}function SI(e,n,t,i){this.a=e,this.c=n,this.b=t,this.d=i}function Sie(e,n,t,i){this.c=e,this.b=n,this.a=t,this.d=i}function bLe(e,n,t,i){this.c=e,this.b=n,this.d=t,this.a=i}function yB(e,n,t,i){this.a=e,this.e=n,this.d=t,this.c=i}function pLe(e,n,t,i){this.a=e,this.d=n,this.c=t,this.b=i}function lf(e,n,t,i){this.c=e,this.d=n,this.b=t,this.a=i}function kB(e,n,t){this.a=cfe,this.d=e,this.b=n,this.c=t}function Eie(e,n){this.b=e,this.c=n,this.a=new Jv(this.b)}function mLe(e,n){this.d=(an(e),e),this.a=16449,this.c=n}function vLe(e,n,t,i){Sqe.call(this,e,t,i,!1),this.f=n}function SB(e,n,t){var i,r;return i=qle(e),r=n.qi(t,i),r}function Zh(e){var n,t;return t=(n=new uw,n),B4(t,e),t}function EB(e){var n,t;return t=(n=new uw,n),Jue(t,e),t}function yLe(e){return!e.b&&(e.b=new ae(Ki,e,12,3)),e.b}function kLe(e){this.a=new ke,this.e=te(ut,ve,54,e,0,2)}function CB(e){this.f=e,this.c=this.f.e,e.f>0&&pKe(this)}function SLe(e,n,t,i){this.a=e,this.c=n,this.d=t,this.b=i}function ELe(e,n,t,i){this.a=e,this.b=n,this.d=t,this.c=i}function CLe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function jLe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function ng(e,n,t,i){this.e=e,this.a=n,this.c=t,this.d=i}function TLe(e,n,t,i){ol(),TJe.call(this,n,t,i),this.a=e}function MLe(e,n,t,i){ol(),TJe.call(this,n,t,i),this.a=e}function xLe(e,n){this.a=e,Wkn.call(this,e,o(e.d,16).dd(n))}function OEn(e,n){return Kt(Bu(e)*js(e),Bu(n)*js(n))}function PEn(e,n){return Kt(Bu(e)*js(e),Bu(n)*js(n))}function f3(e){var n;return n=e.f,n||(e.f=new f4(e,e.c))}function tn(){tn=V,oc=new Yt,xh=new Bn,sP=new Mn}function kw(){kw=V,r1e=new jt,Kq=new jt,c1e=new fr}function _4(e){if(gs(e.d),e.d.d!=e.c)throw P(new rl)}function Ts(e){e.a.a=e.c,e.c.b=e.a,e.a.b=e.c.a=null,e.b=0}function Cie(e){return Nn(e.b<e.d.gc()),e.d.Xb(e.c=e.b++)}function REn(e){return e.length>0?af(e):new ke}function EI(e){return e.n&&(e.e!==qnn&&e.he(),e.j=null),e}function jie(e,n){return e.b=n.b,e.c=n.c,e.d=n.d,e.a=n.a,e}function NEn(e,n,t){return ye(e.a,($J(n,t),new lw(n,t))),e}function DEn(e,n){return o(M(e,(he(),sy)),16).Ec(n),n}function FEn(e,n){return Xe(e,o(M(n,(Se(),Zp)),15),n)}function LEn(e){return Fw(e)&&xe(Me(we(e,(Se(),Pg))))}function BEn(e,n,t){return Gk(),J_n(o(bn(e.e,n),516),t)}function zEn(e,n,t){e.i=0,e.e=0,n!=t&&mqe(e,n,t)}function JEn(e,n,t){e.i=0,e.e=0,n!=t&&vqe(e,n,t)}function ALe(e,n,t,i){this.b=e,this.c=i,MA.call(this,n,t)}function ILe(e,n){this.g=e,this.d=F(D(Ih,1),r1,9,0,[n])}function _Le(e,n){e.d&&!e.d.a&&(kIe(e.d,n),_Le(e.d,n))}function $Le(e,n){e.e&&!e.e.a&&(kIe(e.e,n),$Le(e.e,n))}function OLe(e,n){return g2(e.j,n.s,n.c)+g2(n.e,e.s,e.c)}function UEn(e,n){return-Kt(Bu(e)*js(e),Bu(n)*js(n))}function GEn(e){return o(e.jd(),147).Og()+":"+Bc(e.kd())}function PLe(){nU(this,new HZ),this.wb=(F1(),wn),s4()}function RLe(e){this.b=new X9e,this.a=e,m.Math.random()}function NLe(e){this.b=new ke,ir(this.b,this.b),this.a=e}function Tie(e,n){new ei,this.a=new us,this.b=e,this.c=n}function DLe(){Hc.call(this,"There is no more element.")}function HEn(e){Fx(),m.setTimeout(function(){throw e},0)}function qEn(e){e.Tg("No crossing minimization",1),e.Ug()}function VEn(e,n){return Ms(e),Ms(n),M_e(o(e,23),o(n,23))}function tg(e,n,t){var i,r;i=OL(t),r=new kx(i),hf(e,n,r)}function jB(e,n,t,i,r,c){yC.call(this,e,n,t,i,r,c?-2:-1)}function FLe(e,n,t,i){Kee.call(this,n,t),this.b=e,this.a=i}function Mie(e){this.b=e,this.c=e,e.e=null,e.c=null,this.a=1}function CI(e){return!e.a&&(e.a=new ae(ht,e,10,11)),e.a}function qt(e){return!e.q&&(e.q=new ae(Zl,e,11,10)),e.q}function fe(e){return!e.s&&(e.s=new ae(Ou,e,21,17)),e.s}function LLe(e){return m9(e==null||cB(e)&&e.Rm!==hu),e}function jI(e,n){if(e==null)throw P(new Lv(n));return e}function BLe(e,n){x4n.call(this,new tB(e)),this.a=e,this.b=n}function TB(e,n){return n==null?!!Mc(e.f,null):bSn(e.i,n)}function MB(e){return U(e,18)?new Xb(o(e,18)):R7n(e.Jc())}function TI(e){return tn(),U(e,59)?new yF(e):new RA(e)}function WEn(e){return nt(e),OWe(new kn(jn(e.a.Jc(),new q)))}function KEn(e){return new IRe(e,e.e.Pd().gc()*e.c.Pd().gc())}function XEn(e){return new _Re(e,e.e.Pd().gc()*e.c.Pd().gc())}function xie(e){return e&&e.hashCode?e.hashCode():gw(e)}function QEn(e){e&&xI(e,e.ge())}function ZEn(e,n){var t;return t=gne(e.a,n),t&&(n.d=null),t}function zLe(e,n,t){return e.f?e.f.cf(n,t):!1}function rC(e,n,t,i){Oi(e.c[n.g],t.g,i),Oi(e.c[t.g],n.g,i)}function xB(e,n,t,i){Oi(e.c[n.g],n.g,t),Oi(e.b[n.g],n.g,i)}function YEn(e,n,t){return K(Z(t.a))<=e&&K(Z(t.b))>=n}function JLe(){this.d=new ei,this.b=new Jn,this.c=new ke}function ULe(){this.b=new Ji,this.d=new ei,this.e=new Ox}function Aie(){this.c=new Ar,this.d=new Ar,this.e=new Ar}function Sw(){this.a=new us,this.b=(Js(3,_p),new ru(3))}function GLe(e){this.c=e,this.b=new Fd(o(nt(new tE),51))}function HLe(e){this.c=e,this.b=new Fd(o(nt(new fi),51))}function qLe(e){this.b=e,this.a=new Fd(o(nt(new jk),51))}function Gd(e,n){this.e=e,this.a=ur,this.b=sYe(n),this.c=n}function MI(e){this.c=e.c,this.d=e.d,this.b=e.b,this.a=e.a}function VLe(e,n,t,i,r,c){this.a=e,yz.call(this,n,t,i,r,c)}function WLe(e,n,t,i,r,c){this.a=e,yz.call(this,n,t,i,r,c)}function B1(e,n,t,i,r,c,s){return new qB(e.e,n,t,i,r,c,s)}function eCn(e,n,t){return t>=0&&Ke(e.substr(t,n.length),n)}function KLe(e,n){return U(n,147)&&Ke(e.b,o(n,147).Og())}function nCn(e,n){return e.a?n.Dh().Jc():o(n.Dh(),72).Gi()}function XLe(e,n){var t;return t=e.b.Oc(n),Uze(t,e.b.gc()),t}function cC(e,n){if(e==null)throw P(new Lv(n));return e}function Rc(e){return e.u||(ls(e),e.u=new CNe(e,e)),e.u}function Su(e){var n;return n=o(Sn(e,16),29),n||e.fi()}function xI(e,n){var t;return t=H0(e.Pm),n==null?t:t+": "+n}function Ll(e,n,t){return _r(n,t,e.length),e.substr(n,t-n)}function QLe(e,n){zA.call(this),Hre(this),this.a=e,this.c=n}function ZLe(){sL.call(this,"FIXED_INTEGER_RATIO_BOXES",2)}function tCn(){return QI(),F(D($0e,1),be,422,0,[_0e,RV])}function iCn(){return xC(),F(D(z0e,1),be,419,0,[UP,B0e])}function rCn(){return SC(),F(D(G0e,1),be,476,0,[U0e,HP])}function cCn(){return FI(),F(D(rge,1),be,420,0,[tW,ige])}function oCn(){return zI(),F(D(mge,1),be,423,0,[hW,aW])}function uCn(){return CC(),F(D(cbe,1),be,421,0,[GW,HW])}function sCn(){return R9(),F(D(Qhn,1),be,518,0,[q7,H7])}function lCn(){return oa(),F(D(odn,1),be,508,0,[Lg,Ca])}function fCn(){return Ba(),F(D(rdn,1),be,509,0,[hb,a1])}function aCn(){return Bf(),F(D(kdn,1),be,515,0,[om,k0])}function hCn(){return Cw(),F(D(xdn,1),be,454,0,[S0,tv])}function dCn(){return DI(),F(D(epe,1),be,425,0,[dK,Ybe])}function gCn(){return y_(),F(D(npe,1),be,487,0,[RR,cv])}function wCn(){return YI(),F(D(ipe,1),be,426,0,[tpe,vK])}function bCn(){return c_(),F(D(m1e,1),be,424,0,[uV,dP])}function pCn(){return U4(),F(D(Dsn,1),be,502,0,[wT,yV])}function mCn(){return HI(),F(D(qpe,1),be,478,0,[NK,Hpe])}function vCn(){return bC(),F(D(eme,1),be,428,0,[JK,qR])}function yCn(){return RC(),F(D(Sme,1),be,427,0,[WR,kme])}function AI(e,n,t,i){return t>=0?e.Rh(n,t,i):e.zh(null,t,i)}function oC(e){return e.b.b==0?e.a.uf():JL(e.b)}function kCn(e){if(e.p!=5)throw P(new Du);return lt(e.f)}function SCn(e){if(e.p!=5)throw P(new Du);return lt(e.k)}function Iie(e){return ne(e.a)===ne((Az(),xX))&&IHn(e),e.a}function YLe(e,n){Lyn(this,new pe(e.a,e.b)),Byn(this,XE(n))}function Ew(){A4n.call(this,new Uv(dp(12))),vne(!0),this.a=2}function AB(e,n,t){Ft(),ow.call(this,e),this.b=n,this.a=t}function _ie(e,n,t){ol(),xx.call(this,n),this.a=e,this.b=t}function ECn(e,n){var t=Uq[e.charCodeAt(0)];return t??e}function II(e,n){return jI(e,"set1"),jI(n,"set2"),new J$e(e,n)}function _I(e,n){return zze(n),Gxn(e,te(ut,Mt,30,n,15,1),n)}function CCn(e,n){e.b=n,e.c>0&&e.b>0&&(e.g=iI(e.c,e.b,e.a))}function jCn(e,n){e.c=n,e.c>0&&e.b>0&&(e.g=iI(e.c,e.b,e.a))}function eBe(e){var n;n=e.c.d.b,e.b=n,e.a=e.c.d,n.a=e.c.d.b=e}function nBe(e){return e.b==0?null:(Nn(e.b!=0),fl(e,e.a.a))}function Jo(e,n){return n==null?qc(Mc(e.f,null)):Kk(e.i,n)}function tBe(e,n,t,i,r){return new iU(e,(F4(),Yq),n,t,i,r)}function IB(e,n,t,i){var r;r=new FNe,n.a[t.g]=r,u3(e.b,i,r)}function iBe(e,n){var t,i;return t=n,i=new zh,Uen(e,t,i),i.d}function TCn(e,n){var t;return t=Fxn(e.f,n),Jt(BA(t),e.f.d)}function uC(e){var n;Zxn(e.a),rRe(e.a),n=new Cx(e.a),Coe(n)}function MCn(e,n){QZe(e,!0),cu(e.e.Pf(),new ate(e,!0,n))}function xCn(e,n){return cd(),o(M(n,(oo(),oh)),15).a==e}function qr(e){return Math.max(Math.min(e,Rt),-2147483648)|0}function rBe(e){zA.call(this),Hre(this),this.a=e,this.c=!0}function $ie(e,n,t){this.a=new ke,this.e=e,this.f=n,this.c=t}function $I(e,n,t){this.c=new ke,this.e=e,this.f=n,this.b=t}function cBe(e,n,t){this.i=new ke,this.b=e,this.g=n,this.a=t}function oBe(e){this.a=o(nt(e),277),this.b=(tn(),new Cne(e))}function $4(){$4=V;var e,n;n=!j$n(),e=new Ye,Gq=n?new He:e}function Oie(){Oie=V,Yon=new Uh,nun=new Jte,eun=new z0}function Ba(){Ba=V,hb=new Dee(G3,0),a1=new Dee(U3,1)}function oa(){oa=V,Lg=new Fee(RG,0),Ca=new Fee("UP",1)}function Cw(){Cw=V,S0=new Bee(U3,0),tv=new Bee(G3,1)}function n2(e,n,t){OI(),e&&Ct(jX,e,n),e&&Ct(bM,e,t)}function Pie(e,n,t){var i;i=e.Fh(n),i>=0?e.$h(i,t):Dse(e,n,t)}function uBe(e,n){var t;for(nt(n),t=e.a;t;t=t.c)n.Wd(t.g,t.i)}function sC(e,n){var t;t=e.q.getHours(),e.q.setDate(n),C8(e,t)}function sBe(e){var n;return n=new Jx(dp(e.length)),Rce(n,e),n}function ACn(e){function n(){}return n.prototype=e||{},new n}function ICn(e,n){return VHe(e,n)?(VGe(e),!0):!1}function Yh(e,n){if(n==null)throw P(new Pv);return I$n(e,n)}function _Cn(e){if(e.ye())return null;var n=e.n;return tP[n]}function tp(e){return e.Db>>16!=3?null:o(e.Cb,26)}function ua(e){return e.Db>>16!=9?null:o(e.Cb,26)}function lBe(e){return e.Db>>16!=6?null:o(e.Cb,85)}function fBe(e,n){var t;return t=e.Fh(n),t>=0?e.Th(t):lU(e,n)}function _B(e,n,t){var i;i=dqe(e,n,t),e.b=new S_(i.c.length)}function aBe(e){this.a=e,this.b=te(Whn,ve,2005,e.e.length,0,2)}function hBe(){this.a=new ah,this.e=new Ji,this.g=0,this.i=0}function dBe(e,n){_A(this),this.f=n,this.g=e,EI(this),this.he()}function gBe(e,n){return e.b+=n.b,e.c+=n.c,e.d+=n.d,e.a+=n.a,e}function Rie(e){var n;return n=e.d,n=e._i(e.f),Xn(e,n),n.Ob()}function wBe(e,n){var t;return t=new Fte(n),HKe(t,e),new Ku(t)}function $Cn(e){if(e.p!=0)throw P(new Du);return u9(e.f,0)}function OCn(e){if(e.p!=0)throw P(new Du);return u9(e.k,0)}function bBe(e){return e.Db>>16!=7?null:o(e.Cb,241)}function Nie(e){return e.Db>>16!=7?null:o(e.Cb,174)}function pBe(e){return e.Db>>16!=3?null:o(e.Cb,158)}function O4(e){return e.Db>>16!=6?null:o(e.Cb,241)}function wi(e){return e.Db>>16!=11?null:o(e.Cb,26)}function ip(e){return e.Db>>16!=17?null:o(e.Cb,29)}function I9(e,n,t,i,r,c){return new rd(e.e,n,e.Jj(),t,i,r,c)}function xc(e,n,t){return n==null?Tu(e.f,null,t):_w(e.i,n,t)}function $B(e,n){return m.Math.abs(e)<m.Math.abs(n)?e:n}function PCn(e,n){return GA(),dn(),o(n.a,15).a<e}function RCn(e,n){return GA(),dn(),o(n.b,15).a<e}function NCn(e){return Kz(),dn(),o(e.a,82).d.e!=0}function DCn(e){return!e.a&&(e.a=new ae(ht,e,10,11)),e.a.i>0}function Die(e){var n;return Q1(e),n=new Ji,Nt(e,new vMe(n))}function mBe(e,n){var t=e.a=e.a||[];return t[n]||(t[n]=e.te(n))}function FCn(e,n){var t;t=e.q.getHours(),e.q.setMonth(n),C8(e,t)}function Vr(e,n){e.c&&Eu(e.c.g,e),e.c=n,e.c&&ye(e.c.g,e)}function lr(e,n){e.c&&Eu(e.c.a,e),e.c=n,e.c&&ye(e.c.a,e)}function jr(e,n){e.d&&Eu(e.d.e,e),e.d=n,e.d&&ye(e.d.e,e)}function Wc(e,n){e.i&&Eu(e.i.j,e),e.i=n,e.i&&ye(e.i.j,e)}function vBe(e,n,t){this.a=n,this.c=e,this.b=(nt(t),new Ku(t))}function yBe(e,n,t){this.a=n,this.c=e,this.b=(nt(t),new Ku(t))}function kBe(e,n){this.a=e,this.c=ec(this.a),this.b=new MI(n)}function rp(e,n){if(e<0||e>n)throw P(new nu(gfe+e+wfe+n))}function SBe(){SBe=V,Phn=tu(new Di,(kr(),mc),(Mr(),iy))}function Fie(){Fie=V,Rhn=tu(new Di,(kr(),mc),(Mr(),iy))}function EBe(){EBe=V,Ahn=tu(new Di,(kr(),mc),(Mr(),iy))}function CBe(){CBe=V,Ihn=tu(new Di,(kr(),mc),(Mr(),iy))}function jBe(){jBe=V,_hn=tu(new Di,(kr(),mc),(Mr(),iy))}function Lie(){Lie=V,$hn=tu(new Di,(kr(),mc),(Mr(),iy))}function TBe(){TBe=V,Yhn=wt(new Di,(kr(),mc),(Mr(),m7))}function Fs(){Fs=V,tdn=wt(new Di,(kr(),mc),(Mr(),m7))}function MBe(){MBe=V,idn=wt(new Di,(kr(),mc),(Mr(),m7))}function OB(){OB=V,sdn=wt(new Di,(kr(),mc),(Mr(),m7))}function xBe(){xBe=V,i1n=tu(new Di,(I3(),W7),(S8(),Sbe))}function ABe(){ABe=V,yon=it((Rx(),F(D(von,1),be,537,0,[Bq])))}function OI(){OI=V,jX=new Jn,bM=new Jn,Q6n(Lon,new hEe)}function LCn(e,n){var t,i;t=n.c,i=t!=null,i&&s3(e,new ep(n.c))}function IBe(e,n){tEn(e,e.b,e.c),o(e.b.b,68),n&&o(n.b,68).b}function PI(e,n){U(e.Cb,184)&&(o(e.Cb,184).tb=null),ou(e,n)}function PB(e,n){U(e.Cb,88)&&Ep(ls(o(e.Cb,88)),4),ou(e,n)}function BCn(e,n){goe(e,n),U(e.Cb,88)&&Ep(ls(o(e.Cb,88)),2)}function zCn(e,n){return Kt(o(e.c,65).c.e.b,o(n.c,65).c.e.b)}function JCn(e,n){return Kt(o(e.c,65).c.e.a,o(n.c,65).c.e.a)}function Uo(e,n){return ac(),dz(n)?new eI(n,e):new RE(n,e)}function RB(e,n){e.a&&Eu(e.a.k,e),e.a=n,e.a&&ye(e.a.k,e)}function NB(e,n){e.b&&Eu(e.b.f,e),e.b=n,e.b&&ye(e.b.f,e)}function z1(e,n,t){cVe(n,t,e.gc()),this.c=e,this.a=n,this.b=t-n}function a3(e){this.c=new ei,this.b=e.b,this.d=e.c,this.a=e.a}function DB(e){this.a=m.Math.cos(e),this.b=m.Math.sin(e)}function ig(e,n,t,i){this.c=e,this.d=i,RB(this,n),NB(this,t)}function Ze(e,n){this.b=(an(e),e),this.a=n&$p?n:n|64|Ka}function UCn(e,n){jRe(e,lt(vr(bw(n,24),eO)),lt(vr(n,eO)))}function lC(e){return Va(),Go(e,0)>=0?Z1(e):j9(Z1(Vd(e)))}function GCn(){return dl(),F(D(Au,1),be,130,0,[a1e,xu,h1e])}function _Be(e,n,t){return new iU(e,(F4(),Zq),null,!1,n,t)}function $Be(e,n,t){return new iU(e,(F4(),eV),n,t,null,!1)}function OBe(e,n,t){var i;cVe(n,t,e.c.length),i=t-n,uee(e.c,n,i)}function PBe(e,n){var t;return t=o(wp(f3(e.a),n),18),t?t.gc():0}function Bie(e){var n;return Q1(e),n=(kw(),kw(),Kq),u_(e,n)}function RBe(e){for(var n;;)if(n=e.Pb(),!e.Ob())return n}function NBe(e){var n,t;return t=(s4(),n=new uw,n),B4(t,e),t}function DBe(e){var n,t;return t=(s4(),n=new uw,n),B4(t,e),t}function t2(e){return Gk(),U(e.g,9)?o(e.g,9):null}function HCn(){return Aw(),F(D(TV,1),be,368,0,[rb,b0,ib])}function qCn(){return d_(),F(D(D0e,1),be,350,0,[N0e,JP,NV])}function VCn(){return ag(),F(D(gln,1),be,449,0,[GV,b5,G2])}function WCn(){return V4(),F(D(eW,1),be,302,0,[ZV,YV,yT])}function KCn(){return V1(),F(D(nW,1),be,329,0,[kT,tge,Vp])}function XCn(){return id(),F(D(Eln,1),be,315,0,[ST,q2,ry])}function QCn(){return X9(),F(D(Kwe,1),be,352,0,[DW,Wwe,yR])}function ZCn(){return dc(),F(D(Shn,1),be,452,0,[J7,ns,au])}function YCn(){return x_(),F(D(sbe,1),be,381,0,[obe,qW,ube])}function ejn(){return K9(),F(D(lbe,1),be,348,0,[WW,VW,RT])}function njn(){return Y4(),F(D(abe,1),be,349,0,[KW,fbe,U7])}function tjn(){return h_(),F(D(gbe,1),be,351,0,[dbe,XW,hbe])}function ijn(){return A_(),F(D(wbe,1),be,382,0,[QW,x5,cm])}function rjn(){return D9(),F(D(O1e,1),be,384,0,[aV,fV,hV])}function cjn(){return Uf(),F(D(Bp,1),be,237,0,[lo,fu,fo])}function ojn(){return Qu(),F(D(cun,1),be,461,0,[ih,g0,yf])}function ujn(){return Cu(),F(D(uun,1),be,462,0,[Kf,w0,kf])}function sjn(){return W9(),F(D($be,1),be,385,0,[_be,eK,FT])}function ljn(){return zC(),F(D(ope,1),be,386,0,[NR,rpe,cpe])}function fjn(){return U_(),F(D(xpe,1),be,387,0,[Mpe,$K,Tpe])}function ajn(){return M_(),F(D(Cpe,1),be,303,0,[CK,Epe,Spe])}function hjn(){return W_(),F(D(jpe,1),be,436,0,[Y7,LR,jK])}function djn(){return F_(),F(D(Zpe,1),be,430,0,[Xpe,Qpe,FK])}function gjn(){return qC(),F(D(LK,1),be,435,0,[UR,GR,HR])}function wjn(){return e_(),F(D(Kpe,1),be,429,0,[DK,Wpe,Vpe])}function bjn(){return aa(),F(D(v2e,1),be,279,0,[N5,gm,D5])}function pjn(){return sd(),F(D(_2e,1),be,347,0,[iN,w1,gS])}function mjn(){return L9(),F(D(D2e,1),be,300,0,[uM,bX,N2e])}function vjn(){return C3(),F(D(B2e,1),be,281,0,[L2e,bm,lN])}function sa(e){return Xc(F(D(br,1),ve,8,0,[e.i.n,e.n,e.a]))}function yjn(e,n,t){var i;i=new Yr(t.d),Jt(i,e),woe(n,i.a,i.b)}function FBe(e,n,t){var i;i=new k8e,i.b=n,i.a=t,++n.b,ye(e.d,i)}function kjn(e,n,t){var i;return i=M8(e,n,!1),i.b<=n&&i.a<=t}function Sjn(e){if(e.p!=2)throw P(new Du);return lt(e.f)&Zi}function Ejn(e){if(e.p!=2)throw P(new Du);return lt(e.k)&Zi}function en(e,n){if(e<0||e>=n)throw P(new nu(gfe+e+wfe+n))}function Tn(e,n){if(e<0||e>=n)throw P(new KY(gfe+e+wfe+n))}function Cjn(e){return e.Db>>16!=6?null:o(hU(e),241)}function LBe(e,n){var t,i;return i=j4(e,n),t=e.a.dd(i),new B$e(e,t)}function jjn(e,n){var t;return t=(an(e),e).g,$ne(!!t),an(n),t(n)}function Tjn(e){return e.a==(R4(),SN)&&Qyn(e,tJn(e.g,e.b)),e.a}function h3(e){return e.d==(R4(),SN)&&Yyn(e,eGn(e.g,e.b)),e.d}function zie(e,n){M4n.call(this,new Uv(dp(e))),Js(n,Bnn),this.a=n}function BBe(e,n,t){ow.call(this,25),this.b=e,this.a=n,this.c=t}function Ls(e){Ft(),ow.call(this,e),this.c=!1,this.a=!1}function zBe(e,n){Y0.call(this,1,2,F(D(ut,1),Mt,30,15,[e,n]))}function vr(e,n){return q1(jSn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function za(e,n){return q1(TSn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function FB(e,n){return q1(MSn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function Jie(e,n){return oFe(e.a,n)?$te(e.b,o(n,23).g,null):null}function rg(e){return nt(e),U(e,18)?new Ku(o(e,18)):S4(e.Jc())}function LB(e){nI(),this.a=(tn(),U(e,59)?new yF(e):new RA(e))}function Mjn(e){var n;return n=o(QA(e.b),10),new ul(e.a,n,e.c)}function xjn(e,n){var t;t=K(Z(e.a.mf((pt(),YR)))),hnn(e,n,t)}function Ajn(e,n){return F9(),e.c==n.c?Kt(n.d,e.d):Kt(e.c,n.c)}function Ijn(e,n){return F9(),e.c==n.c?Kt(e.d,n.d):Kt(e.c,n.c)}function _jn(e,n){return F9(),e.c==n.c?Kt(e.d,n.d):Kt(n.c,e.c)}function $jn(e,n){return F9(),e.c==n.c?Kt(n.d,e.d):Kt(n.c,e.c)}function Ojn(e,n){e.b=e.b|n.b,e.c=e.c|n.c,e.d=e.d|n.d,e.a=e.a|n.a}function $(e){return Nn(e.a<e.c.c.length),e.b=e.a++,e.c.c[e.b]}function Uie(e){return e.b==null||e.b.length==0?"n_"+e.a:"n_"+e.b}function fC(e){return o(ha(e,te(Ih,r1,9,e.c.length,0,1)),199)}function Pjn(e){return nc(wh(bo(ws(e,32)),32),bo(ws(e,32)))}function Gie(e,n){return e&&e.equals?e.equals(n):ne(e)===ne(n)}function cg(e){return e.c==null||e.c.length==0?"n_"+e.g:"n_"+e.c}function JBe(e,n){var t;for(t=e+"";t.length<n;)t="0"+t;return t}function Rjn(e,n){var t;t=o(bn(e.g,n),60),cu(n.d,new xOe(e,t))}function Njn(e,n){var t,i;return t=UWe(e),i=UWe(n),t<i?-1:t>i?1:0}function UBe(e,n){var t,i;return t=sz(n),i=t,o(bn(e.c,i),15).a}function BB(e,n,t){var i;i=e.d[n.p],e.d[n.p]=e.d[t.p],e.d[t.p]=i}function Djn(e,n,t){var i;e.n&&n&&t&&(i=new rEe,ye(e.e,i))}function zB(e,n){if(Ui(e.a,n),n.d)throw P(new Hc(ftn));n.d=e}function Hie(e,n){this.a=new ke,this.d=new ke,this.f=e,this.c=n}function GBe(){S3(),this.b=new Jn,this.a=new Jn,this.c=new ke}function HBe(){this.c=new fRe,this.a=new EJe,this.b=new LIe,tOe()}function qBe(e,n,t){this.d=e,this.j=n,this.e=t,this.o=-1,this.p=3}function VBe(e,n,t){this.d=e,this.k=n,this.f=t,this.o=-1,this.p=5}function WBe(e,n,t,i,r,c){qre.call(this,e,n,t,i,r),c&&(this.o=-2)}function KBe(e,n,t,i,r,c){Vre.call(this,e,n,t,i,r),c&&(this.o=-2)}function XBe(e,n,t,i,r,c){ure.call(this,e,n,t,i,r),c&&(this.o=-2)}function QBe(e,n,t,i,r,c){Xre.call(this,e,n,t,i,r),c&&(this.o=-2)}function ZBe(e,n,t,i,r,c){sre.call(this,e,n,t,i,r),c&&(this.o=-2)}function YBe(e,n,t,i,r,c){Wre.call(this,e,n,t,i,r),c&&(this.o=-2)}function eze(e,n,t,i,r,c){Kre.call(this,e,n,t,i,r),c&&(this.o=-2)}function nze(e,n,t,i,r,c){lre.call(this,e,n,t,i,r),c&&(this.o=-2)}function tze(e,n,t,i){xx.call(this,t),this.b=e,this.c=n,this.d=i}function ize(e,n){this.f=e,this.a=(R4(),kN),this.c=kN,this.b=n}function rze(e,n){this.g=e,this.d=(R4(),SN),this.a=SN,this.b=n}function qie(e,n){!e.c&&(e.c=new $i(e,0)),U$(e.c,(Qt(),TS),n)}function Fjn(e,n){return PLn(e,n,U(n,103)&&(o(n,19).Bb&cc)!=0)}function Ljn(e,n){return $Fe(bo(e.q.getTime()),bo(n.q.getTime()))}function cze(e){return HL(e.e.Pd().gc()*e.c.Pd().gc(),16,new $Te(e))}function Bjn(e){return!!e.u&&xo(e.u.a).i!=0&&!(e.n&&xJ(e.n))}function zjn(e){return!!e.a&&as(e.a.a).i!=0&&!(e.b&&AJ(e.b))}function Vie(e,n){return n==0?!!e.o&&e.o.f!=0:SJ(e,n)}function oze(e){return Nn(e.b.b!=e.d.a),e.c=e.b=e.b.b,--e.a,e.c.c}function _9(e){for(;e.d>0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function uze(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function Tr(e,n){this.a=e,xk.call(this,e),rp(n,e.gc()),this.b=n}function sze(e){this.a=te(ur,sn,1,_ce(m.Math.max(8,e))<<1,5,1)}function lze(e){xz.call(this,e,(F4(),Qq),null,!1,null,!1)}function fze(e,n){var t;return t=1-n,e.a[t]=k_(e.a[t],t),k_(e,n)}function aze(e,n){var t,i;return i=vr(e,wc),t=wh(n,32),za(t,i)}function Jjn(e,n,t){var i;return i=o(e.Zb().xc(n),18),!!i&&i.Gc(t)}function hze(e,n,t){var i;return i=o(e.Zb().xc(n),18),!!i&&i.Kc(t)}function dze(e,n,t){var i;i=(nt(e),new Ku(e)),SPn(new vBe(i,n,t))}function aC(e,n,t){var i;i=(nt(e),new Ku(e)),EPn(new yBe(i,n,t))}function Ujn(e,n,t){e.a=n,e.c=t,e.b.a.$b(),Ts(e.d),_b(e.e.a.c,0)}function gze(e,n){var t;e.e=new zY,t=jp(n),sr(t,e.c),LZe(e,t,0)}function Gjn(e,n){return new zL(n,rNe(ec(n.e),e,e),(dn(),!0))}function Hjn(e,n){return m3(),o(M(n,(oo(),iv)),15).a>=e.gc()}function qjn(e){return Fs(),!Ur(e)&&!(!Ur(e)&&e.c.i.c==e.d.i.c)}function Ja(e){return o(ha(e,te(l5,U6,17,e.c.length,0,1)),323)}function Vjn(e){kVe((!e.a&&(e.a=new ae(ht,e,10,11)),e.a),new tSe)}function Wie(){var e,n,t;return n=(t=(e=new uw,e),t),ye(Eve,n),n}function ro(e,n,t,i,r,c){return MHe(e,n,t,c),ooe(e,i),uoe(e,r),e}function wze(e,n,t,i){return e.a+=""+Ll(n==null?Mu:Bc(n),t,i),e}function hC(e,n){if(e<0||e>=n)throw P(new nu(oFn(e,n)));return e}function bze(e,n,t){if(e<0||n<e||n>t)throw P(new nu(MDn(e,n,t)))}function me(e,n,t,i){var r;r=new LZ,r.a=n,r.b=t,r.c=i,vt(e.b,r)}function mi(e,n,t,i){var r;r=new LZ,r.a=n,r.b=t,r.c=i,vt(e.a,r)}function Wjn(e,n,t){var i;i=K$n();try{return t9n(e,n,t)}finally{aMn(i)}}function og(e){var n;return Fc(e)?(n=e,n==-0?0:n):sxn(e)}function pze(e,n){return U(n,45)?PJ(e.a,o(n,45)):!1}function mze(e,n){return U(n,45)?PJ(e.a,o(n,45)):!1}function vze(e,n){return U(n,45)?PJ(e.a,o(n,45)):!1}function Kjn(e,n){return e.a<=e.b?(n.Bd(e.a++),!0):!1}function Xjn(e){return e2(e).dc()?!1:(F5n(e,new de),!0)}function Kie(e){var n;return L1(e),n=new Pr,Lm(e.a,new bMe(n)),n}function RI(e){var n;return L1(e),n=new Qr,Lm(e.a,new pMe(n)),n}function Qjn(e){if(!("stack"in e))try{throw e}catch{}return e}function NI(e){return new ru((Js(e,iG),o_(nc(nc(5,e),e/10|0))))}function yze(e){return o(ha(e,te(Psn,Ftn,12,e.c.length,0,1)),2004)}function Zjn(e){return HL(e.e.Pd().gc()*e.c.Pd().gc(),273,new _Te(e))}function kze(){kze=V,h0n=it((Kx(),F(D(Ype,1),be,477,0,[BK])))}function Sze(){Sze=V,g0n=it((Xx(),F(D(d0n,1),be,546,0,[zK])))}function Eze(){Eze=V,$0n=it((Hk(),F(D(yme,1),be,527,0,[qT])))}function Cze(){Cze=V,pbe=iLe(ge(1),ge(4)),bbe=iLe(ge(1),ge(2))}function DI(){DI=V,dK=new zee("DFS",0),Ybe=new zee("BFS",1)}function FI(){FI=V,tW=new Oee(N6,0),ige=new Oee("TOP_LEFT",1)}function Xie(e,n,t){this.d=new _xe(this),this.e=e,this.i=n,this.f=t}function Qie(e,n,t,i){this.d=e,this.n=n,this.g=t,this.o=i,this.p=-1}function Yjn(e,n,t){e.d&&Eu(e.d.e,e),e.d=n,e.d&&K0(e.d.e,t,e)}function eTn(e,n,t){var i;return i=s6(t),D$(e.n,i,n),D$(e.o,n,t),n}function P4(e,n){var t,i;return t=sp(e,n),i=null,t&&(i=t.qe()),i}function $9(e,n){var t,i;return t=Yh(e,n),i=null,t&&(i=t.qe()),i}function jw(e,n){var t,i;return t=Yh(e,n),i=null,t&&(i=t.ne()),i}function ed(e,n){var t,i;return t=Yh(e,n),i=null,t&&(i=Kue(t)),i}function O9(e,n){HVn(n,e),xte(e.d),xte(o(M(e,(Se(),dR)),213))}function JB(e,n){qVn(n,e),Ate(e.d),Ate(o(M(e,(Se(),dR)),213))}function J1(e,n){an(n),e.b=e.b-1&e.a.length-1,Oi(e.a,e.b,n),XWe(e)}function Zie(e,n){an(n),Oi(e.a,e.c,n),e.c=e.c+1&e.a.length-1,XWe(e)}function Kn(e){return Nn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function jze(e){if(e.e.g!=e.b)throw P(new rl);return!!e.c&&e.d>0}function cp(e){return U(e,18)?o(e,18).dc():!e.Jc().Ob()}function nTn(e){return new Ze(Lxn(o(e.a.kd(),18).gc(),e.a.jd()),16)}function Tze(e){var n;n=e.Dh(),this.a=U(n,72)?o(n,72).Gi():n.Jc()}function Yie(e,n){var t;return t=o(fa(e.b,n),66),!t&&(t=new ei),t}function tTn(e,n){var t;t=n.a,Vr(t,n.c.d),jr(t,n.d.d),ap(t.a,e.n)}function Mze(e,n,t,i){return U(t,59)?new XRe(e,n,t,i):new Wte(e,n,t,i)}function iTn(){return wf(),F(D(Zsn,1),be,413,0,[Hp,a5,h5,jV])}function rTn(){return Iw(),F(D($un,1),be,409,0,[aT,fT,cV,oV])}function cTn(){return W4(),F(D(Ssn,1),be,408,0,[tb,Jp,zp,L2])}function oTn(){return F4(),F(D(lP,1),be,309,0,[Qq,Zq,Yq,eV])}function uTn(){return M3(),F(D(D1e,1),be,383,0,[b7,N1e,pV,mV])}function sTn(){return __(),F(D(zsn,1),be,367,0,[CV,NP,DP,bT])}function lTn(){return t8(),F(D(R0e,1),be,301,0,[y7,O0e,mT,P0e])}function fTn(){return vp(),F(D(LW,1),be,203,0,[kR,FW,nv,ev])}function aTn(){return fd(),F(D(rbe,1),be,269,0,[y0,ibe,JW,UW])}function hTn(){return dg(),F(D(qhn,1),be,404,0,[NT,G7,jR,CR])}function dTn(e){var n;return e.j==(Ee(),Ln)&&(n=MQe(e),Lu(n,An))}function gTn(){return I3(),F(D(ybe,1),be,398,0,[AR,V7,W7,K7])}function xze(e,n){return o(Es(Qb(o(Ht(e.k,n),16).Mc(),z2)),113)}function Aze(e,n){return o(Es(c3(o(Ht(e.k,n),16).Mc(),z2)),113)}function wTn(e,n){return Xv(new pe(n.e.a+n.f.a/2,n.e.b+n.f.b/2),e)}function bTn(){return p$(),F(D(P1n,1),be,401,0,[AK,TK,xK,MK])}function pTn(){return u$(),F(D(kpe,1),be,354,0,[EK,vpe,ype,mpe])}function mTn(){return V9(),F(D(Zbe,1),be,353,0,[hK,PR,aK,fK])}function vTn(){return n6(),F(D(m2e,1),be,278,0,[nM,tN,b2e,p2e])}function yTn(){return ld(),F(D(gX,1),be,222,0,[dX,tM,F5,Cy])}function kTn(){return Gs(),F(D(Mgn,1),be,292,0,[rM,Oh,j0,iM])}function STn(){return JI(),F(D(hM,1),be,288,0,[z2e,U2e,mX,J2e])}function ETn(){return Is(),F(D(vS,1),be,380,0,[lM,Ug,sM,wm])}function CTn(){return G_(),F(D(V2e,1),be,326,0,[vX,G2e,q2e,H2e])}function jTn(){return $_(),F(D(Hgn,1),be,407,0,[yX,K2e,W2e,X2e])}function sl(e,n,t){return n<0?lU(e,t):o(t,69).uk().zk(e,e.ei(),n)}function TTn(e,n,t){var i;return i=s6(t),D$(e.f,i,n),Ct(e.g,n,t),n}function MTn(e,n,t){var i;return i=s6(t),D$(e.p,i,n),Ct(e.q,n,t),n}function Ize(e){var n,t;return n=($1(),t=new FD,t),e&&x$(n,e),n}function ere(e){var n;return n=e.$i(e.i),e.i>0&&_o(e.g,0,n,0,e.i),n}function d3(e){return Gk(),U(e.g,156)?o(e.g,156):null}function xTn(e){return OI(),zo(jX,e)?o(bn(jX,e),342).Pg():null}function ATn(e){e.a=null,e.e=null,_b(e.b.c,0),_b(e.f.c,0),e.c=null}function _ze(e,n){var t;for(t=e.j.c.length;t<n;t++)ye(e.j,e.Mg())}function $ze(e,n,t,i){var r;return r=i[n.g][t.g],K(Z(M(e.a,r)))}function Oze(e,n){Qx();var t;return t=o(bn(pN,e),58),!t||t.dk(n)}function ITn(e){if(e.p!=1)throw P(new Du);return lt(e.f)<<24>>24}function _Tn(e){if(e.p!=1)throw P(new Du);return lt(e.k)<<24>>24}function $Tn(e){if(e.p!=7)throw P(new Du);return lt(e.k)<<16>>16}function OTn(e){if(e.p!=7)throw P(new Du);return lt(e.f)<<16>>16}function i2(e,n){return n.e==0||e.e==0?a7:(k6(),bU(e,n))}function Pze(e,n){return ne(n)===ne(e)?"(this Map)":n==null?Mu:Bc(n)}function PTn(e,n,t){return nB(Z(qc(Mc(e.f,n))),Z(qc(Mc(e.f,t))))}function RTn(e,n,t){var i;i=o(bn(e.g,t),60),ye(e.a.c,new rc(n,i))}function Rze(e,n){var t;return t=new zv,e.Ed(t),t.a+="..",n.Fd(t),t.a}function Lf(e){var n;for(n=0;e.Ob();)e.Pb(),n=nc(n,1);return o_(n)}function NTn(e,n,t,i,r){var c;c=WLn(r,t,i),ye(n,ZDn(r,c)),qNn(e,r,n)}function Nze(e,n,t){e.i=0,e.e=0,n!=t&&(vqe(e,n,t),mqe(e,n,t))}function Dze(e,n,t,i){this.e=null,this.c=e,this.d=n,this.a=t,this.b=i}function nre(e,n,t,i,r){this.i=e,this.a=n,this.e=t,this.j=i,this.f=r}function Fze(e,n){Aie.call(this),this.a=e,this.b=n,ye(this.a.b,this)}function nd(e,n){Va(),Y0.call(this,e,1,F(D(ut,1),Mt,30,15,[n]))}function DTn(e,n,t){return C6(e,n,t,U(n,103)&&(o(n,19).Bb&cc)!=0)}function LI(e,n,t){return L$(e,n,t,U(n,103)&&(o(n,19).Bb&cc)!=0)}function FTn(e,n,t){return BLn(e,n,t,U(n,103)&&(o(n,19).Bb&cc)!=0)}function tre(e,n){return e==(pn(),xi)&&n==xi?4:e==xi||n==xi?8:32}function LTn(e,n){return o(n==null?qc(Mc(e.f,null)):Kk(e.i,n),290)}function Lze(e,n){var t;for(t=n;t;)Hb(e,t.i,t.j),t=wi(t);return e}function xo(e){return e.n||(ls(e),e.n=new hFe(e,yc,e),Rc(e)),e.n}function mh(e,n){ac();var t;return t=o(e,69).tk(),cDn(t,n),t.vl(n)}function P9(e){return Nn(e.a<e.c.a.length),e.b=e.a,eGe(e),e.c.b[e.b]}function ire(e){e.b!=e.c&&(e.a=te(ur,sn,1,8,5,1),e.b=0,e.c=0)}function rre(e,n){var t;t=e.q.getHours(),e.q.setFullYear(n+u0),C8(e,t)}function Bze(e,n){X4();var t;return t=e.j.g-n.j.g,t!=0?t:0}function BTn(e,n,t){if(t){var i=t.me();e.a[n]=i(t)}else delete e.a[n]}function UB(e,n,t){if(t){var i=t.me();t=i(t)}else t=void 0;e.a[n]=t}function zze(e){if(e<0)throw P(new $_e("Negative array size: "+e))}function Jze(e){U(e,206)&&!xe(Me(e.mf((pt(),ZR))))&&XUn(o(e,26))}function GB(e){return e.c&&e.d?Uie(e.c)+"->"+Uie(e.d):"e_"+gw(e)}function zTn(e,n){var t;return t=n!=null?Jo(e,n):qc(Mc(e.f,n)),TA(t)}function JTn(e,n){var t;return t=n!=null?Jo(e,n):qc(Mc(e.f,n)),TA(t)}function Uze(e,n){var t;for(t=0;t<n;++t)Oi(e,t,new sY(o(e[t],45)))}function UTn(e,n){return Ld(),Xn(fe(e.a),n)}function GTn(e,n){return Ld(),Xn(fe(e.a),n)}function op(e,n){Ft(),ow.call(this,e),this.a=n,this.c=-1,this.b=-1}function up(e,n,t,i){qBe.call(this,1,t,i),this.c=e,this.b=n}function HB(e,n,t,i){VBe.call(this,1,t,i),this.c=e,this.b=n}function qB(e,n,t,i,r,c,s){yz.call(this,n,i,r,c,s),this.c=e,this.a=t}function ug(e,n,t){this.e=e,this.a=ur,this.b=sYe(n),this.c=n,this.d=t}function VB(e){this.e=e,this.c=this.e.a,this.b=this.e.g,this.d=this.e.i}function cre(e){this.d=e,this.b=this.d.a.entries(),this.a=this.b.next()}function Gze(e){this.c=e,this.a=o(Jl(e),159),this.b=this.a.hk().ti()}function U1(){Jn.call(this),eNe(this),this.d.b=this.d,this.d.a=this.d}function Ei(e,n,t,i){var r;r=new os,r.c=n,r.b=t,r.a=i,i.b=t.a=r,++e.b}function Xu(e,n){var t;return n.b.Kb(zUe(e,n.c.Ve(),(t=new kMe(n),t)))}function HTn(e,n){var t;return zze(n),t=e.slice(0,n),t.length=n,uz(t,e)}function BI(e){var n;return e?new Fte(e):(n=new ah,Tz(n,e),n)}function qTn(e,n){var t;for(t=e.d-1;t>=0&&e.a[t]===n[t];t--);return t<0}function VTn(e,n){var t,i;i=!1;do t=uqe(e,n),i=i|t;while(t);return i}function R9(){R9=V,q7=new Nee("UPPER",0),H7=new Nee("LOWER",1)}function zI(){zI=V,hW=new Pee(qf,0),aW=new Pee("ALTERNATING",1)}function JI(){JI=V,z2e=new GDe,U2e=new TFe,mX=new ZLe,J2e=new MFe}function Hze(){Hze=V,lln=it((QI(),F(D($0e,1),be,422,0,[_0e,RV])))}function qze(){qze=V,dln=it((xC(),F(D(z0e,1),be,419,0,[UP,B0e])))}function Vze(){Vze=V,pln=it((SC(),F(D(G0e,1),be,476,0,[U0e,HP])))}function Wze(){Wze=V,jln=it((FI(),F(D(rge,1),be,420,0,[tW,ige])))}function Kze(){Kze=V,xln=it((zI(),F(D(mge,1),be,423,0,[hW,aW])))}function Xze(){Xze=V,khn=it((CC(),F(D(cbe,1),be,421,0,[GW,HW])))}function Qze(){Qze=V,Zhn=it((R9(),F(D(Qhn,1),be,518,0,[q7,H7])))}function Zze(){Zze=V,udn=it((oa(),F(D(odn,1),be,508,0,[Lg,Ca])))}function Yze(){Yze=V,cdn=it((Ba(),F(D(rdn,1),be,509,0,[hb,a1])))}function eJe(){eJe=V,Sdn=it((Bf(),F(D(kdn,1),be,515,0,[om,k0])))}function nJe(){nJe=V,Adn=it((Cw(),F(D(xdn,1),be,454,0,[S0,tv])))}function tJe(){tJe=V,t1n=it((DI(),F(D(epe,1),be,425,0,[dK,Ybe])))}function iJe(){iJe=V,u1n=it((y_(),F(D(npe,1),be,487,0,[RR,cv])))}function rJe(){rJe=V,f1n=it((YI(),F(D(ipe,1),be,426,0,[tpe,vK])))}function cJe(){cJe=V,o0n=it((HI(),F(D(qpe,1),be,478,0,[NK,Hpe])))}function oJe(){oJe=V,w0n=it((bC(),F(D(eme,1),be,428,0,[JK,qR])))}function uJe(){uJe=V,O0n=it((RC(),F(D(Sme,1),be,427,0,[WR,kme])))}function sJe(){sJe=V,Jun=it((c_(),F(D(m1e,1),be,424,0,[uV,dP])))}function lJe(){lJe=V,Fsn=it((U4(),F(D(Dsn,1),be,502,0,[wT,yV])))}function UI(e){Oue(),jRe(this,lt(vr(bw(e,24),eO)),lt(vr(e,eO)))}function WTn(e){return(e.k==(pn(),xi)||e.k==Wi)&&zt(e,(he(),C7))}function KTn(e,n,t){return o(n==null?Tu(e.f,null,t):_w(e.i,n,t),290)}function XTn(){return Qi(),F(D(hS,1),be,86,0,[xa,Dc,Oc,Ma,Sl])}function QTn(){return Ee(),F(D(uc,1),Eo,64,0,[eo,En,An,Ln,Cn])}function ZTn(e){return Fx(),function(){return Wjn(e,this,arguments)}}function fJe(e,n){var t;return t=n.jd(),new lw(t,e.e.pc(t,o(n.kd(),18)))}function aJe(e,n){var t,i;return t=n.jd(),i=e.De(t),!!i&&Mo(i.e,n.kd())}function Jr(e,n){var t,i;for(an(n),i=e.Jc();i.Ob();)t=i.Pb(),n.Ad(t)}function Bs(e,n,t){var i;return i=(en(n,e.c.length),e.c[n]),e.c[n]=t,i}function ore(e,n){var t,i;for(t=n,i=0;t>0;)i+=e.a[t],t-=t&-t;return i}function hJe(e,n){var t;for(t=n;t;)Hb(e,-t.i,-t.j),t=wi(t);return e}function YTn(e,n){var t;return t=e.a.get(n),t??te(ur,sn,1,0,5,1)}function r2(e,n){return(Q1(e),l4(new Qe(e,new Ore(n,e.a)))).zd(Y3)}function eMn(){return kr(),F(D(P1e,1),be,363,0,[Sf,Ah,Oo,Po,mc])}function dJe(e){Ann(),EIe(this),this.a=new ei,Jce(this,e),vt(this.a,e)}function gJe(){wL(this),this.b=new pe(Ci,Ci),this.a=new pe(hr,hr)}function WB(e){GI(),!Sa&&(this.c=e,this.e=!0,this.a=new ke)}function GI(){GI=V,Sa=!0,qon=!1,Von=!1,Kon=!1,Won=!1}function HI(){HI=V,NK=new Gee(_fe,0),Hpe=new Gee("TARGET_WIDTH",1)}function nMn(){return w$(),F(D(s1n,1),be,364,0,[pK,gK,mK,wK,bK])}function tMn(){return yp(),F(D(eln,1),be,371,0,[pT,BP,zP,LP,FP])}function iMn(){return o8(),F(D(Qwe,1),be,328,0,[Xwe,BW,zW,L7,B7])}function rMn(){return xs(),F(D(pge,1),be,165,0,[TT,M7,md,x7,Og])}function cMn(){return m8(),F(D(l0n,1),be,369,0,[ov,py,cS,rS,HT])}function oMn(){return oj(),F(D(rme,1),be,330,0,[nme,UK,ime,GK,tme])}function uMn(){return qa(),F(D(ja,1),be,160,0,[on,Bi,Zf,d1,yd])}function sMn(){return w2(),F(D(bS,1),be,257,0,[T0,cM,$2e,wS,O2e])}function KB(e,n){var t;return t=o(fa(e.d,n),21),t||o(fa(e.e,n),21)}function wJe(e){this.b=e,$n.call(this,e),this.a=o(Sn(this.b.a,4),129)}function bJe(e){this.b=e,Zv.call(this,e),this.a=o(Sn(this.b.a,4),129)}function pJe(e,n){this.c=0,this.b=n,PPe.call(this,e,17493),this.a=this.c}function ff(e,n,t,i,r){CJe.call(this,n,i,r),this.c=e,this.b=t}function ure(e,n,t,i,r){qBe.call(this,n,i,r),this.c=e,this.a=t}function sre(e,n,t,i,r){VBe.call(this,n,i,r),this.c=e,this.a=t}function lre(e,n,t,i,r){CJe.call(this,n,i,r),this.c=e,this.a=t}function fre(e,n,t){e.a.c.length=0,RHn(e,n,t),e.a.c.length==0||uUn(e,n)}function dC(e){e.i=0,SE(e.b,null),SE(e.c,null),e.a=null,e.e=null,++e.g}function lMn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function are(e,n){return U(n,144)?Ke(e.c,o(n,144).c):!1}function mJe(e){var n;return e.c||(n=e.r,U(n,88)&&(e.c=o(n,29))),e.c}function ls(e){return e.t||(e.t=new hIe(e),e8(new I_e(e),0,e.t)),e.t}function Ur(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function g3(e,n){return n==0||e.e==0?e:n>0?LVe(e,n):TZe(e,-n)}function hre(e,n){return n==0||e.e==0?e:n>0?TZe(e,n):LVe(e,-n)}function In(e){if(Dn(e))return e.c=e.a,e.a.Pb();throw P(new Gc)}function vJe(e){var n;return n=e.length,Ke(gn.substr(gn.length-n,n),e)}function yJe(e){var n,t;return n=e.c.i,t=e.d.i,n.k==(pn(),Wi)&&t.k==Wi}function XB(e){var n,t,i;return n=e&ps,t=e>>22&ps,i=e<0?dd:0,du(n,t,i)}function fMn(e,n){var t,i;t=o(r_n(e.c,n),18),t&&(i=t.gc(),t.$b(),e.d-=i)}function aMn(e){e&&dxn((HY(),Dde)),--iP,e&&rP!=-1&&(X6n(rP),rP=-1)}function dre(e){J6n.call(this,e==null?Mu:Bc(e),U(e,80)?o(e,80):null)}function QB(e){var n;return n=new Sw,po(n,e),oe(n,(Se(),$c),null),n}function ZB(e,n,t){var i;return i=e.Fh(n),i>=0?e.Ih(i,t,!0):Lw(e,n,t)}function hMn(e,n,t){return Kt(Xv(l6(e),ec(n.b)),Xv(l6(e),ec(t.b)))}function dMn(e,n,t){return Kt(Xv(l6(e),ec(n.e)),Xv(l6(e),ec(t.e)))}function gMn(e,n){return m.Math.min(G1(n.a,e.d.d.c),G1(n.b,e.d.d.c))}function kJe(e,n,t){var i;i=new hne(e.a),J9(i,e.a.a),Tu(i.f,n,t),e.a.a=i}function gre(e,n,t,i){var r;for(r=0;r<aP;r++)lI(e.a[r][n.g],t,i[n.g])}function wre(e,n,t,i){var r;for(r=0;r<iV;r++)fI(e.a[n.g][r],t,i[n.g])}function Ht(e,n){var t;return t=o(e.c.xc(n),18),!t&&(t=e.ic(n)),e.pc(n,t)}function wMn(e){var n;return n=(nt(e),e?new Ku(e):S4(e.Jc())),uj(n),z_(n)}function af(e){var n,t;return nt(e),n=mEn(e.length),t=new ru(n),Rce(t,e),t}function N9(e){var n,t;++e.j,n=e.g,t=e.i,e.g=null,e.i=0,e.Mi(t,n),e.Li()}function gC(e,n){e.Zi(e.i+1),d9(e,e.i,e.Xi(e.i,n)),e.Ki(e.i++,n),e.Li()}function w3(e,n){return mr(n)?n==null?kse(e.f,null):BHe(e.i,n):kse(e.f,n)}function Hd(e,n){var t;return t=(en(n,e.c.length),e.c[n]),uee(e.c,n,1),t}function YB(e,n,t,i){var r;return r=te(ut,Mt,30,n,15,1),aNn(r,e,n,t,i),r}function td(e,n){return e.a?mt(e.a,e.b):e.a=new Ns(e.d),l9(e.a,n),e}function bre(e,n){if(e<0||e>n)throw P(new nu(rse(e,n,"index")));return e}function pre(e){var n;return n=e.e+e.f,isNaN(n)&&UA(e.d)?e.d:n}function bMn(e,n){var t;t=e.q.getHours()+(n/60|0),e.q.setMinutes(n),C8(e,t)}function mre(e,n){var t,i;return t=(an(e),e),i=(an(n),n),t==i?0:t<i?-1:1}function R4(){R4=V;var e,n;kN=(s4(),n=new Ix,n),SN=(e=new oF,e)}function SJe(){this.g=new AY,this.b=new AY,this.a=new ke,this.k=new ke}function qI(){this.e=new ke,this.c=new ke,this.d=new ke,this.b=new ke}function EJe(){this.a=new OY,this.b=new HIe,this.d=new cE,this.e=new Mk}function la(e){this.c=e,this.a=new O(this.c.a),this.b=new O(this.c.b)}function CJe(e,n,t){this.d=e,this.k=n?1:0,this.f=t?1:0,this.o=-1,this.p=0}function jJe(e,n,t){this.a=e,this.c=n,this.d=t,ye(n.e,this),ye(t.b,this)}function TJe(e,n,t){xx.call(this,t),this.b=e,this.c=n,this.d=(gJ(),IX)}function MJe(e,n){OPe.call(this,n.xd(),n.wd()&-6),an(e),this.a=e,this.b=n}function xJe(e,n){PPe.call(this,n.xd(),n.wd()&-6),an(e),this.a=e,this.b=n}function vre(e,n){MA.call(this,n.xd(),n.wd()&-6),an(e),this.a=e,this.b=n}function VI(e,n,t){this.a=e,this.b=n,this.c=t,ye(e.t,this),ye(n.i,this)}function wC(){this.b=new ei,this.a=new ei,this.b=new ei,this.a=new ei}function pMn(e,n){var t;return t=XHn(e,n),e.b=new S_(t.c.length),gHn(e,t)}function mMn(e,n,t){var i;return++e.e,--e.f,i=o(e.d[n].ed(t),136),i.kd()}function AJe(e){var n;return e.a||(n=e.r,U(n,159)&&(e.a=o(n,159))),e.a}function yre(e){if(e.a){if(e.e)return yre(e.e)}else return e;return null}function vMn(e,n){return e.p<n.p?1:e.p>n.p?-1:0}function IJe(e,n){return zo(e.a,n)?(w3(e.a,n),!0):!1}function yMn(e){var n,t;return n=e.jd(),t=o(e.kd(),18),KE(t.Lc(),new xTe(n))}function ez(e){var n;return n=e.b,n.b==0?null:o(Ao(n,0),65).b}function WI(e,n){return an(n),e.c<e.d?(e.Qe(n,e.c++),!0):!1}function b3(e,n,t){return hC(n,e.e.Pd().gc()),hC(t,e.c.Pd().gc()),e.a[n][t]}function kMn(e){var n;return Q1(e),n=new jDe(e,e.a.e,e.a.d|4),new Jne(e,n)}function _Je(e){var n;for(L1(e),n=0;e.a.zd(new Wy);)n=nc(n,1);return n}function kre(e,n,t){var i,r;for(i=0,r=0;r<n.length;r++)i+=e.sg(n[r],i,t)}function KI(e,n,t,i){this.f=e,this.e=n,this.d=t,this.b=i,this.c=i?i.d:null}function ru(e){wL(this),QE(e>=0,"Initial capacity must not be negative")}function XI(){XI=V,oS=new Wt("org.eclipse.elk.labels.labelManager")}function $Je(){$Je=V,T0e=new ai("separateLayerConnections",(__(),CV))}function Bf(){Bf=V,om=new Lee("REGULAR",0),k0=new Lee("CRITICAL",1)}function bC(){bC=V,JK=new Hee("FIXED",0),qR=new Hee("CENTER_NODE",1)}function QI(){QI=V,_0e=new Iee("QUADRATIC",0),RV=new Iee("SCANLINE",1)}function OJe(){OJe=V,aln=it((d_(),F(D(D0e,1),be,350,0,[N0e,JP,NV])))}function PJe(){PJe=V,wln=it((ag(),F(D(gln,1),be,449,0,[GV,b5,G2])))}function RJe(){RJe=V,kln=it((V4(),F(D(eW,1),be,302,0,[ZV,YV,yT])))}function NJe(){NJe=V,Sln=it((V1(),F(D(nW,1),be,329,0,[kT,tge,Vp])))}function DJe(){DJe=V,Cln=it((id(),F(D(Eln,1),be,315,0,[ST,q2,ry])))}function FJe(){FJe=V,oln=it((Aw(),F(D(TV,1),be,368,0,[rb,b0,ib])))}function LJe(){LJe=V,bhn=it((X9(),F(D(Kwe,1),be,352,0,[DW,Wwe,yR])))}function BJe(){BJe=V,Ehn=it((dc(),F(D(Shn,1),be,452,0,[J7,ns,au])))}function zJe(){zJe=V,Chn=it((x_(),F(D(sbe,1),be,381,0,[obe,qW,ube])))}function JJe(){JJe=V,jhn=it((K9(),F(D(lbe,1),be,348,0,[WW,VW,RT])))}function UJe(){UJe=V,Thn=it((Y4(),F(D(abe,1),be,349,0,[KW,fbe,U7])))}function GJe(){GJe=V,Mhn=it((h_(),F(D(gbe,1),be,351,0,[dbe,XW,hbe])))}function HJe(){HJe=V,xhn=it((A_(),F(D(wbe,1),be,382,0,[QW,x5,cm])))}function qJe(){qJe=V,$dn=it((W9(),F(D($be,1),be,385,0,[_be,eK,FT])))}function VJe(){VJe=V,a1n=it((zC(),F(D(ope,1),be,386,0,[NR,rpe,cpe])))}function WJe(){WJe=V,$1n=it((M_(),F(D(Cpe,1),be,303,0,[CK,Epe,Spe])))}function KJe(){KJe=V,O1n=it((W_(),F(D(jpe,1),be,436,0,[Y7,LR,jK])))}function XJe(){XJe=V,u0n=it((e_(),F(D(Kpe,1),be,429,0,[DK,Wpe,Vpe])))}function QJe(){QJe=V,s0n=it((F_(),F(D(Zpe,1),be,430,0,[Xpe,Qpe,FK])))}function ZJe(){ZJe=V,a0n=it((qC(),F(D(LK,1),be,435,0,[UR,GR,HR])))}function YJe(){YJe=V,F1n=it((U_(),F(D(xpe,1),be,387,0,[Mpe,$K,Tpe])))}function eUe(){eUe=V,gsn=it((D9(),F(D(O1e,1),be,384,0,[aV,fV,hV])))}function nUe(){nUe=V,Xon=it((dl(),F(D(Au,1),be,130,0,[a1e,xu,h1e])))}function tUe(){tUe=V,run=it((Uf(),F(D(Bp,1),be,237,0,[lo,fu,fo])))}function iUe(){iUe=V,oun=it((Qu(),F(D(cun,1),be,461,0,[ih,g0,yf])))}function rUe(){rUe=V,sun=it((Cu(),F(D(uun,1),be,462,0,[Kf,w0,kf])))}function cUe(){cUe=V,Sgn=it((aa(),F(D(v2e,1),be,279,0,[N5,gm,D5])))}function oUe(){oUe=V,zgn=it((C3(),F(D(B2e,1),be,281,0,[L2e,bm,lN])))}function uUe(){uUe=V,Tgn=it((sd(),F(D(_2e,1),be,347,0,[iN,w1,gS])))}function sUe(){sUe=V,Fgn=it((L9(),F(D(D2e,1),be,300,0,[uM,bX,N2e])))}function zf(e,n){return!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),hJ(e.o,n)}function SMn(e){return!e.g&&(e.g=new mx),!e.g.d&&(e.g.d=new lIe(e)),e.g.d}function EMn(e){return!e.g&&(e.g=new mx),!e.g.b&&(e.g.b=new sIe(e)),e.g.b}function pC(e){return!e.g&&(e.g=new mx),!e.g.c&&(e.g.c=new aIe(e)),e.g.c}function CMn(e){return!e.g&&(e.g=new mx),!e.g.a&&(e.g.a=new fIe(e)),e.g.a}function jMn(e,n,t,i){return t&&(i=t.Oh(n,bi(t.Ah(),e.c.sk()),null,i)),i}function TMn(e,n,t,i){return t&&(i=t.Qh(n,bi(t.Ah(),e.c.sk()),null,i)),i}function nz(e,n,t,i){var r;return r=te(ut,Mt,30,n+1,15,1),JUn(r,e,n,t,i),r}function te(e,n,t,i,r,c){var s;return s=zWe(r,i),r!=10&&F(D(e,c),n,t,r,s),s}function MMn(e,n,t){var i,r;for(r=new H4(n,e),i=0;i<t;++i)i$(r);return r}function tz(e,n,t){var i,r;if(t!=null)for(i=0;i<n;++i)r=t[i],e.Oi(i,r)}function xMn(e,n){var t;e.C&&(t=o(Ec(e.b,n),127).n,t.d=e.C.d,t.a=e.C.a)}function Sre(e){var n,t,i,r;r=e.d,n=e.a,t=e.b,i=e.c,e.d=t,e.a=i,e.b=r,e.c=n}function Ere(e,n){var t;return t=new zh,t.c=!0,t.d=n.kd(),Uen(e,n.jd(),t)}function AMn(e,n){var t;t=e.q.getHours()+(n/3600|0),e.q.setSeconds(n),C8(e,t)}function Cre(e,n){var t,i;return t=n,i=TI(S4(new lz(e,t))),tI(new lz(e,t)),i}function IMn(e,n){n.Tg("Label management",1),TA(M(e,(XI(),oS))),n.Ug()}function jre(e,n,t){o(e.b,68),o(e.b,68),o(e.b,68),cu(e.a,new lDe(t,n,e))}function _Mn(e,n,t,i){HYe(e,n,t,C6(e,n,i,U(n,103)&&(o(n,19).Bb&cc)!=0))}function _r(e,n,t){if(e<0||n>t||n<e)throw P(new KY(nO+e+dfe+n+ffe+t))}function lUe(e,n,t){this.d=new Ox,this.c=new Jn,this.a=e,this.e=n,this.c=t}function iz(e){e?(this.c=e,this.b=null):(this.c=null,this.b=new ke)}function rz(e,n){eA.call(this,e,n),this.a=te(NWn,X$,438,2,0,1),this.b=!0}function Tre(e){bqe.call(this,e,0),eNe(this),this.d.b=this.d,this.d.a=this.d}function Mre(e){this.e=e,this.b=this.e.a.entries(),this.a=te(ur,sn,1,0,5,1)}function fUe(){fUe=V,Ohn=tu(wt(new Di,(kr(),Sf),(Mr(),kV)),mc,iy)}function $Mn(){return _3(),F(D(w5,1),be,231,0,[g5,v7,d5,qp,U2,J2])}function OMn(){return y$(),F(D(J0e,1),be,284,0,[qV,HV,WV,VV,KV,GP])}function PMn(){return rj(),F(D(K0e,1),be,282,0,[qP,q0e,W0e,H0e,V0e,XV])}function RMn(){return w6(),F(D(nge,1),be,283,0,[k7,Q0e,ege,Y0e,Z0e,X0e])}function NMn(){return yh(),F(D(Mme,1),be,256,0,[XK,VT,WT,QR,KR,XR])}function DMn(){return pg(),F(D(eX,1),be,299,0,[YK,fS,lS,ZK,uS,sS])}function FMn(){return Zu(),F(D(rN,1),be,280,0,[x0,Sd,oM,mS,pS,jy])}function LMn(){return yr(),F(D(P2e,1),be,102,0,[M0,Aa,L5,Jg,Rh,Ro])}function BMn(){return m$(),F(D(j2e,1),be,327,0,[wX,S2e,C2e,y2e,E2e,k2e])}function xre(e){var n;return!e.a&&e.b!=-1&&(n=e.c.Ah(),e.a=cn(n,e.b)),e.a}function Xn(e,n){return e.Qi()&&e.Gc(n)?!1:(e.Fi(n),!0)}function Jf(e,n){return cC(n,"Horizontal alignment cannot be null"),e.b=n,e}function aUe(e,n,t){Ft();var i;return i=r0(e,n),t&&i&&rEn(e)&&(i=null),i}function Are(e,n,t){var i;i=e.b[t.c.p][t.p],i.b+=n.b,i.c+=n.c,i.a+=n.a,++i.a}function Ire(e,n,t){var i;e.d[n.g]=t,i=e.g.c,i[n.g]=m.Math.max(i[n.g],t+1)}function G1(e,n){var t,i;return t=e.a-n.a,i=e.b-n.b,m.Math.sqrt(t*t+i*i)}function _re(e,n){var t,i;for(i=n.Jc();i.Ob();)t=o(i.Pb(),37),mYe(e,t,0,0)}function qd(e,n,t){var i,r;for(r=e.Jc();r.Ob();)i=o(r.Pb(),37),S6(i,n,t)}function zMn(e){var n,t;for(t=Qn(e.a,0);t.b!=t.d.c;)n=o(Kn(t),65),ase(n)}function JMn(e,n){var t;return t=bn(e.k,n),zse(e,n),CU(e,n),_se(e,n,t),null}function N4(e,n){var t;return t=e.Fh(n),t>=0?e.Ih(t,!0,!0):Lw(e,n,!0)}function mC(e,n){var t,i,r;return r=e.r,i=e.d,t=M8(e,n,!0),t.b!=r||t.a!=i}function hUe(e,n){return aOe(e.e,n)||wg(e.e,n,new aWe(n)),o(fa(e.e,n),113)}function fs(e,n,t,i){return an(e),an(n),an(t),an(i),new tie(e,n,new fh)}function vC(e,n,t){var i,r;return r=(i=m6(e.b,n),i),r?G$(jC(e,r),t):null}function UMn(e,n,t){var i,r,c;i=Yh(e,t),r=null,i&&(r=Kue(i)),c=r,sWe(n,t,c)}function GMn(e,n,t){var i,r,c;i=Yh(e,t),r=null,i&&(r=Kue(i)),c=r,sWe(n,t,c)}function zu(e,n,t,i){this.$j(),this.a=n,this.b=e,this.c=new Zte(this,n,t,i)}function cz(e,n,t,i,r,c){Qie.call(this,n,i,r,c),this.c=e,this.b=t}function yC(e,n,t,i,r,c){Qie.call(this,n,i,r,c),this.c=e,this.a=t}function $re(e,n,t,i,r){wRe(this),this.b=e,this.d=n,this.f=t,this.g=i,this.c=r}function Ore(e,n){MA.call(this,n.xd(),n.wd()&-16449),an(e),this.a=e,this.c=n}function HMn(e,n){e.a.Le(n.d,e.b)>0&&(ye(e.c,new Cte(n.c,n.d,e.d)),e.b=n.d)}function oz(e){e.a=te(ut,Mt,30,e.b+1,15,1),e.c=te(ut,Mt,30,e.b,15,1),e.d=0}function qMn(e,n,t){var i;return i=dqe(e,n,t),e.b=new S_(i.c.length),Kse(e,i)}function VMn(e){if(e.b<=0)throw P(new Gc);return--e.b,e.a-=e.c.c,ge(e.a)}function WMn(e){var n;if(!e.a)throw P(new DLe);return n=e.a,e.a=wi(e.a),n}function dUe(e){var n;if(e.ll())for(n=e.i-1;n>=0;--n)G(e,n);return ere(e)}function p3(e){var n;return nt(e),U(e,204)?(n=o(e,204),n):new UTe(e)}function KMn(e){for(;!e.a;)if(!ZNe(e.c,new mMe(e)))return!1;return!0}function Pre(e,n){if(e.g==null||n>=e.i)throw P(new fL(n,e.i));return e.g[n]}function gUe(e,n,t){if(Q4(e,t),t!=null&&!e.dk(t))throw P(new tF);return t}function uz(e,n){return MC(n)!=10&&F(Ms(n),n.Qm,n.__elementTypeId$,MC(n),e),e}function wUe(e,n){var t,i;return i=n/e.c.Pd().gc()|0,t=n%e.c.Pd().gc(),b3(e,i,t)}function D4(e,n,t,i){var r;i=(kw(),i||r1e),r=e.slice(n,t),cse(r,e,n,t,-n,i)}function ll(e,n,t,i,r){return n<0?Lw(e,t,i):o(t,69).uk().wk(e,e.ei(),n,i,r)}function XMn(e,n){return Kt(K(Z(M(e,(he(),ub)))),K(Z(M(n,ub))))}function bUe(){bUe=V,Gon=it((F4(),F(D(lP,1),be,309,0,[Qq,Zq,Yq,eV])))}function F4(){F4=V,Qq=new nA("All",0),Zq=new nRe,Yq=new dRe,eV=new tRe}function Qu(){Qu=V,ih=new OF(U3,0),g0=new OF(N6,1),yf=new OF(G3,2)}function pUe(){pUe=V,B$(),_ve=Ci,Wwn=hr,$ve=new sE(Ci),Kwn=new sE(hr)}function ZI(){ZI=V,N0n=new ESe,F0n=new CSe,D0n=fIn((pt(),fX),N0n,C0,F0n)}function QMn(e){ZI(),o(e.mf((pt(),am)),182).Ec((Zu(),oM)),e.of(fX,null)}function ZMn(e){return U(e,180)?""+o(e,180).a:e==null?null:Bc(e)}function YMn(e){return U(e,180)?""+o(e,180).a:e==null?null:Bc(e)}function Rre(e){var n,t;if(!e.b)return null;for(t=e.b;n=t.a[0];)t=n;return t}function mUe(e){var n,t;if(!e.b)return null;for(t=e.b;n=t.a[1];)t=n;return t}function kC(e){var n;for(n=e.p+1;n<e.c.a.c.length;++n)--o(Te(e.c.a,n),9).p}function vUe(){vUe=V,Jsn=it((__(),F(D(zsn,1),be,367,0,[CV,NP,DP,bT])))}function yUe(){yUe=V,Asn=it((M3(),F(D(D1e,1),be,383,0,[b7,N1e,pV,mV])))}function kUe(){kUe=V,Oun=it((Iw(),F(D($un,1),be,409,0,[aT,fT,cV,oV])))}function SUe(){SUe=V,Esn=it((W4(),F(D(Ssn,1),be,408,0,[tb,Jp,zp,L2])))}function EUe(){EUe=V,Vhn=it((dg(),F(D(qhn,1),be,404,0,[NT,G7,jR,CR])))}function CUe(){CUe=V,phn=it((vp(),F(D(LW,1),be,203,0,[kR,FW,nv,ev])))}function jUe(){jUe=V,yhn=it((fd(),F(D(rbe,1),be,269,0,[y0,ibe,JW,UW])))}function TUe(){TUe=V,Ysn=it((wf(),F(D(Zsn,1),be,413,0,[Hp,a5,h5,jV])))}function MUe(){MUe=V,n1n=it((V9(),F(D(Zbe,1),be,353,0,[hK,PR,aK,fK])))}function xUe(){xUe=V,fln=it((t8(),F(D(R0e,1),be,301,0,[y7,O0e,mT,P0e])))}function AUe(){AUe=V,R1n=it((p$(),F(D(P1n,1),be,401,0,[AK,TK,xK,MK])))}function IUe(){IUe=V,_1n=it((u$(),F(D(kpe,1),be,354,0,[EK,vpe,ype,mpe])))}function _Ue(){_Ue=V,Idn=it((I3(),F(D(ybe,1),be,398,0,[AR,V7,W7,K7])))}function $Ue(){$Ue=V,kgn=it((n6(),F(D(m2e,1),be,278,0,[nM,tN,b2e,p2e])))}function OUe(){OUe=V,Egn=it((ld(),F(D(gX,1),be,222,0,[dX,tM,F5,Cy])))}function PUe(){PUe=V,xgn=it((Gs(),F(D(Mgn,1),be,292,0,[rM,Oh,j0,iM])))}function RUe(){RUe=V,Jgn=it((JI(),F(D(hM,1),be,288,0,[z2e,U2e,mX,J2e])))}function NUe(){NUe=V,Lgn=it((Is(),F(D(vS,1),be,380,0,[lM,Ug,sM,wm])))}function DUe(){DUe=V,Ugn=it((G_(),F(D(V2e,1),be,326,0,[vX,G2e,q2e,H2e])))}function FUe(){FUe=V,qgn=it(($_(),F(D(Hgn,1),be,407,0,[yX,K2e,W2e,X2e])))}function YI(){YI=V,tpe=new Uee("LEAF_NUMBER",0),vK=new Uee("NODE_SIZE",1)}function SC(){SC=V,U0e=new $ee(qf,0),HP=new $ee("IMPROVE_STRAIGHTNESS",1)}function e_(){e_=V,DK=new nL(Min,0),Wpe=new nL(nhe,1),Vpe=new nL(qf,2)}function LUe(e,n){if(n.a)throw P(new Hc(ftn));Ui(e.a,n),n.a=e,!e.j&&(e.j=n)}function Nre(e){var n;if(!Ez(e))throw P(new Gc);return e.e=1,n=e.d,e.d=null,n}function Vd(e){var n;return Fc(e)&&(n=0-e,!isNaN(n))?n:q1(K4(e))}function BUe(e,n){var t;return t=o(w3(e.e,n),393),t?(Pte(t),t.e):null}function Eu(e,n){var t;return t=Kc(e,n,0),t==-1?!1:(Hd(e,t),!0)}function exn(e){var n;return L1(e),n=te(Er,jc,30,0,15,1),Lm(e.a,new wMe(n)),n}function zUe(e,n,t){var i;return L1(e),i=new B0,i.a=n,e.a.Nb(new mOe(i,t)),i.a}function Kc(e,n,t){for(;t<e.c.length;++t)if(Mo(n,e.c[t]))return t;return-1}function nxn(e,n,t,i,r){return an(e),an(n),an(t),an(i),an(r),new tie(e,n,i)}function Dre(e,n){Gk();var t,i;return t=d3(e),i=d3(n),!!t&&!!i&&!bWe(t.k,i.k)}function txn(e,n){return k4(),ye(e,new rc(n,ge(n.e.c.length+n.g.c.length)))}function ixn(e,n){return k4(),ye(e,new rc(n,ge(n.e.c.length+n.g.c.length)))}function rxn(e,n){return new zL(n,Hb(ec(n.e),n.f.a+e,n.f.b+e),(dn(),!1))}function n_(e,n){return Mo(n,Te(e.f,0))||Mo(n,Te(e.f,1))||Mo(n,Te(e.f,2))}function EC(e,n){if(n<0)throw P(new nu(Jin+n));return _ze(e,n+1),Te(e.j,n)}function D9(){D9=V,aV=new RF("XY",0),fV=new RF("X",1),hV=new RF("Y",2)}function CC(){CC=V,GW=new Ree("INPUT_ORDER",0),HW=new Ree("PORT_DEGREE",1)}function as(e){return e.b||(e.b=new dFe(e,yc,e),!e.a&&(e.a=new GE(e,e))),e.b}function Ac(e,n){var t,i;return t=o(n,682),i=t.Yk(),!i&&t.al(i=new rze(e,n)),i}function jC(e,n){var t,i;return t=o(n,680),i=t.ui(),!i&&t.xi(i=new MPe(e,n)),i}function sz(e){var n,t;return t=o(Te(e.j,0),12),n=o(M(t,(he(),Gt)),12),n}function lz(e,n){var t;this.f=e,this.b=n,t=o(bn(e.b,n),262),this.c=t?t.b:null}function JUe(){Ds(),this.b=new Jn,this.f=new Jn,this.g=new Jn,this.e=new Jn}function t_(e){_A(this),this.g=e?xI(e,e.ge()):null,this.f=e,EI(this),this.he()}function fz(e){var n;n=e.hj(),n!=null&&e.d!=-1&&o(n,94).uh(e),e.i&&e.i.mj()}function i_(e){var n,t;return t=e.length,n=te(jl,Xa,30,t,15,1),OFe(e,0,t,n,0),n}function TC(e){WDe();var n,t;return n=e+128,t=Ude[n],!t&&(t=Ude[n]=new oMe(e)),t}function UUe(e){return RL(e.d.a.e.g,e.b),Nn(e.c!=e.d.a.d),e.a=e.c,e.c=e.c.a,e.a}function GUe(e){Ub(!!e.c),RL(e.f.g,e.d),e.c.Qb(),e.c=null,e.b=Cce(e),e.d=e.f.g}function HUe(e,n){w1e=new xb,Pun=n,d7=e,o(d7.b,68),jre(d7,w1e,null),Sen(d7)}function Cu(){Cu=V,Kf=new PF("TOP",0),w0=new PF(N6,1),kf=new PF(mfe,2)}function id(){id=V,ST=new zF(qf,0),q2=new zF("TOP",1),ry=new zF(mfe,2)}function L4(){L4=V,Lde=du(ps,ps,524287),xon=du(0,0,Oj),Bde=XB(1),XB(2),zde=XB(0)}function Fre(e){var n;return e.Lh()||(n=Fn(e.Ah())-e.gi(),e.Xh().Kk(n)),e.wh()}function Lre(e){var n;return n=v3(Sn(e,32)),n==null&&(gu(e),n=v3(Sn(e,32))),n}function az(e,n){var t;return t=bi(e.d,n),t>=0?t$(e,t,!0,!0):Lw(e,n,!0)}function cxn(e,n){n3(o(o(e.f,26).mf((pt(),aS)),102))&&kVe(yie(o(e.f,26)),n)}function qUe(e,n){hs(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function VUe(e,n){ds(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function WUe(e,n){xw(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function KUe(e,n){Mw(e,n==null||UA((an(n),n))||isNaN((an(n),n))?0:(an(n),n))}function XUe(e){(this.q?this.q:(tn(),tn(),xh)).zc(e.q?e.q:(tn(),tn(),xh))}function hz(e,n,t){var i;return i=e.g[n],d9(e,n,e.Xi(n,t)),e.Pi(n,t,i),e.Li(),i}function r_(e,n){var t;return t=e.bd(n),t>=0?(e.ed(t),!0):!1}function dz(e){var n;return e.d!=e.r&&(n=Jl(e),e.e=!!n&&n.jk()==xcn,e.d=n),e.e}function gz(e,n){var t;for(nt(e),nt(n),t=!1;n.Ob();)t=t|e.Ec(n.Pb());return t}function fa(e,n){var t;return t=o(bn(e.e,n),393),t?(CRe(e,t),t.e):null}function QUe(e){var n,t;return n=e/60|0,t=e%60,t==0?""+n:""+n+":"+(""+t)}function Lc(e,n){var t,i;return Q1(e),i=new vre(n,e.a),t=new XNe(i),new Qe(e,t)}function sp(e,n){var t=e.a[n],i=(Lz(),Hq)[typeof t];return i?i(t):roe(typeof t)}function oxn(e,n){var t,i,r;r=n.c.i,t=o(bn(e.f,r),60),i=t.d.c-t.e.c,bce(n.a,i,0)}function vh(e,n,t){var i,r;for(i=10,r=0;r<t-1;r++)n<i&&(e.a+="0"),i*=10;e.a+=n}function Bre(e,n){var t;for(++e.d,++e.c[n],t=n+1;t<e.a.length;)++e.a[t],t+=t&-t}function wz(e){var n;return n=e.b.c.length==0?null:Te(e.b,0),n!=null&&Cz(e,0),n}function uxn(e){switch(e.g){case 0:return Rt;case 1:return xr;default:return 0}}function sxn(e){return aue(e,(L4(),zde))<0?-skn(K4(e)):e.l+e.m*J3+e.h*kg}function MC(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function lxn(e,n){return U(n,103)&&o(n,19).Bb&cc?new aL(n,e):new H4(n,e)}function fxn(e,n){return U(n,103)&&o(n,19).Bb&cc?new aL(n,e):new H4(n,e)}function axn(e,n,t){return Xv(new pe(t.e.a+t.f.a/2,t.e.b+t.f.b/2),e)==(an(n),n)}function ZUe(e,n,t,i){if(!e)throw P(new yn(k8(n,F(D(ur,1),sn,1,5,[t,i]))))}function YUe(e){if(!e.e)throw P(new Gc);return e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function zre(e){if(!e.c)throw P(new Gc);return e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function hxn(e){var n,t;if(e.a){t=null;do n=e.a,e.a=null,t=yXe(n,t);while(e.a);e.a=t}}function dxn(e){var n,t;if(e.b){t=null;do n=e.b,e.b=null,t=yXe(n,t);while(e.b);e.b=t}}function eGe(e){var n;for(++e.a,n=e.c.a.length;e.a<n;++e.a)if(e.c.b[e.a])return}function gxn(e,n){var t;for(t=0;e.e!=e.i.gc();)LSn(n,Rn(e),ge(t)),t!=Rt&&++t}function nGe(e,n){for(;n[0]<e.length&&Fa(` \r
122
122
  `,ju(zr(e,n[0])))>=0;)++n[0]}function tGe(e,n,t,i){Ft(),ow.call(this,26),this.c=e,this.a=n,this.d=t,this.b=i}function rd(e,n,t,i,r,c,s){yz.call(this,n,i,r,c,s),this.c=e,this.b=t}function iGe(e){this.g=e,this.f=new ke,this.a=m.Math.min(this.g.c.c,this.g.d.c)}function F9(){F9=V,Tsn=new lc,Msn=new Fo,Csn=new Cr,jsn=new fc,xsn=new wo}function c_(){c_=V,uV=new Mee("EADES",0),dP=new Mee("FRUCHTERMAN_REINGOLD",1)}function xC(){xC=V,UP=new _ee("READING_DIRECTION",0),B0e=new _ee("ROTATION",1)}function rGe(){rGe=V,nln=it((yp(),F(D(eln,1),be,371,0,[pT,BP,zP,LP,FP])))}function cGe(){cGe=V,mhn=it((o8(),F(D(Qwe,1),be,328,0,[Xwe,BW,zW,L7,B7])))}function oGe(){oGe=V,Mln=it((xs(),F(D(pge,1),be,165,0,[TT,M7,md,x7,Og])))}function uGe(){uGe=V,l1n=it((w$(),F(D(s1n,1),be,364,0,[pK,gK,mK,wK,bK])))}function sGe(){sGe=V,f0n=it((m8(),F(D(l0n,1),be,369,0,[ov,py,cS,rS,HT])))}function lGe(){lGe=V,b0n=it((oj(),F(D(rme,1),be,330,0,[nme,UK,ime,GK,tme])))}function fGe(){fGe=V,msn=it((kr(),F(D(P1e,1),be,363,0,[Sf,Ah,Oo,Po,mc])))}function aGe(){aGe=V,ygn=it((Qi(),F(D(hS,1),be,86,0,[xa,Dc,Oc,Ma,Sl])))}function hGe(){hGe=V,L0n=it((qa(),F(D(ja,1),be,160,0,[on,Bi,Zf,d1,yd])))}function dGe(){dGe=V,Ign=it((w2(),F(D(bS,1),be,257,0,[T0,cM,$2e,wS,O2e])))}function gGe(){gGe=V,Ogn=it((Ee(),F(D(uc,1),Eo,64,0,[eo,En,An,Ln,Cn])))}function wGe(e){var n;return n=o(M(e,(he(),cb)),317),n?n.a==e:!1}function bGe(e){var n;return n=o(M(e,(he(),cb)),317),n?n.i==e:!1}function pGe(e,n){return an(n),Kte(e),e.d.Ob()?(n.Ad(e.d.Pb()),!0):!1}function o_(e){return Go(e,Rt)>0?Rt:Go(e,xr)<0?xr:lt(e)}function wxn(e,n){var t;return t=$w(e.e.c,n.e.c),t==0?Kt(e.e.d,n.e.d):t}function bz(e,n){var t;return t=o(bn(e.a,n),150),t||(t=new dr,Ct(e.a,n,t)),t}function hf(e,n,t){var i;if(n==null)throw P(new Pv);return i=Yh(e,n),BTn(e,n,t),i}function bxn(e,n){var t,i;for(i=n.c,t=i+1;t<=n.f;t++)e.a[t]>e.a[i]&&(i=t);return i}function pxn(e,n,t){var i;return i=e.a.e[o(n.a,9).p]-e.a.e[o(t.a,9).p],qr(YE(i))}function mxn(e,n,t){var i,r;for(r=new O(t);r.a<r.c.c.length;)i=$(r),xue(e,n,i)}function mGe(e,n,t){zA.call(this),Hre(this),this.a=e,this.c=t,this.b=n.d,this.f=n.e}function vGe(e){this.b=new ke,this.a=new ke,this.c=new ke,this.d=new ke,this.e=e}function yGe(e,n){return n==(NL(),NL(),zon)?e.toLocaleLowerCase():e.toLowerCase()}function vxn(e,n){return m3(),-Bo(o(M(e,(oo(),iv)),15).a,o(M(n,iv),15).a)}function yxn(){return pn(),F(D(vV,1),be,249,0,[xi,Gi,Wi,Wo,Co,Ea,gT,p7])}function kxn(){return mg(),F(D(B0n,1),be,285,0,[Cme,rr,Xr,vy,Nr,gi,my,Ta])}function Sxn(){return p6(),F(D(bN,1),be,244,0,[CX,gN,wN,dN,EX,hN,aN,SX])}function Exn(){return R$(),F(D(I0e,1),be,275,0,[xV,_V,MV,PV,IV,AV,OV,$V])}function kGe(e,n){return!!G9(e,n,lt(Kr(Ch,ph(lt(Kr(n==null?0:oi(n),jh)),15))))}function Jre(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(Xh(e),e.o)}function Ic(e){var n,t;t=(n=new uF,n),Xn((!e.q&&(e.q=new ae(Zl,e,11,10)),e.q),t)}function Cxn(e,n){var t;return t=n>0?n-1:n,H_e(g6n(BGe(Ite(new Dv,t),e.n),e.j),e.k)}function jxn(e,n,t,i){var r;e.j=-1,mse(e,Xue(e,n,t),(ac(),r=o(n,69).tk(),r.vl(i)))}function SGe(e,n,t,i,r,c){var s;s=QB(i),Vr(s,r),jr(s,c),Xe(e.a,i,new qA(s,n,t.f))}function u_(e,n){var t;return Q1(e),t=new ALe(e,e.a.xd(),e.a.wd()|4,n),new Qe(e,t)}function Txn(e,n){var t,i;return t=o(wp(e.d,n),18),t?(i=n,e.e.pc(i,t)):null}function cn(e,n){var t;return t=(e.i==null&&Wa(e),e.i),n>=0&&n<t.length?t[n]:null}function pz(e){var n;Ub(!!e.c),n=e.c.a,fl(e.d,e.c),e.b==e.c?e.b=n:--e.a,e.c=null}function EGe(e){return e.a>=-.01&&e.a<=ma&&(e.a=0),e.b>=-.01&&e.b<=ma&&(e.b=0),e}function c2(e){y6();var n,t;for(t=rhe,n=0;n<e.length;n++)e[n]>t&&(t=e[n]);return t}function Mxn(e){var n;return n=K(Z(M(e,(Se(),l1)))),n<0&&(n=0,oe(e,l1,n)),n}function xxn(e,n){n3(o(M(o(e.e,9),(Se(),Ai)),102))&&(tn(),sr(o(e.e,9).j,n))}function s_(e,n){var t,i;for(i=e.Jc();i.Ob();)t=o(i.Pb(),70),oe(t,(he(),ly),n)}function Axn(e,n){var t,i,r;for(i=n.a.jd(),t=o(n.a.kd(),18).gc(),r=0;r<t;r++)e.Ad(i)}function Ixn(e,n,t){var i;i=m.Math.max(0,e.b/2-.5),l8(t,i,1),ye(n,new EOe(t,i))}function CGe(e,n){var t;if(t=wj(e.Ah(),n),!t)throw P(new yn(a0+n+rq));return t}function lp(e,n){var t;for(t=e;wi(t);)if(t=wi(t),t==n)return!0;return!1}function _xn(e,n){return n&&e.b[n.g]==n?(Oi(e.b,n.g,null),--e.c,!0):!1}function fl(e,n){var t;return t=n.c,n.a.b=n.b,n.b.a=n.a,n.a=n.b=null,n.c=null,--e.b,t}function jGe(e){this.d=e,this.c=e.c.vc().Jc(),this.b=null,this.a=null,this.e=(Rx(),Bq)}function Tw(e){if(e<0)throw P(new yn("Illegal Capacity: "+e));this.g=this.$i(e)}function $xn(e,n){if(0>e||e>n)throw P(new XY("fromIndex: 0, toIndex: "+e+ffe+n))}function TGe(e,n){Xt(e,(kh(),_K),n.f),Xt(e,D1n,n.e),Xt(e,IK,n.d),Xt(e,N1n,n.c)}function cu(e,n){var t,i,r,c;for(an(n),i=e.c,r=0,c=i.length;r<c;++r)t=i[r],n.Ad(t)}function mz(e,n){var t,i,r,c;for(i=e.d,r=0,c=i.length;r<c;++r)t=i[r],ca(e.g,t).a=n}function Oxn(e,n,t){var i,r,c;for(r=n[t],i=0;i<r.length;i++)c=r[i],e.e[c.c.p][c.p]=i}function Pxn(e){var n;for(n=0;n<e.c.length;n++)(en(n,e.c.length),o(e.c[n],12)).p=n}function Rxn(e){var n,t;for(n=e.a.d.j,t=e.c.d.j;n!=t;)gf(e.b,n),n=L_(n);gf(e.b,n)}function Nxn(e){var n;return n=m.Math.sqrt(e.a*e.a+e.b*e.b),n>0&&(e.a/=n,e.b/=n),e}function MGe(e,n,t){var i,r;i=n;do r=K(e.p[i.p])+t,e.p[i.p]=r,i=e.a[i.p];while(i!=n)}function zs(e){var n;return e.w?e.w:(n=Cjn(e),n&&!n.Sh()&&(e.w=n),n)}function Ure(e,n){return ra(),df(o0),m.Math.abs(e-n)<=o0||e==n||isNaN(e)&&isNaN(n)}function Dxn(e){var n;return e==null?null:(n=o(e,195),jNn(n,n.length))}function G(e,n){if(e.g==null||n>=e.i)throw P(new fL(n,e.i));return e.Ui(n,e.g[n])}function Uf(){Uf=V,lo=new $F("BEGIN",0),fu=new $F(N6,1),fo=new $F("END",2)}function aa(){aa=V,N5=new rL(N6,0),gm=new rL("HEAD",1),D5=new rL("TAIL",2)}function m3(){m3=V,r1n=Ha(Ha(Ha(Vk(new Di,(I3(),V7)),(S8(),YW)),Cbe),xbe)}function cd(){cd=V,o1n=Ha(Ha(Ha(Vk(new Di,(I3(),K7)),(S8(),Tbe)),kbe),jbe)}function o2(e,n){return v6n(U9(e,n,lt(Kr(Ch,ph(lt(Kr(n==null?0:oi(n),jh)),15)))))}function Gre(e,n){return ra(),df(o0),m.Math.abs(e-n)<=o0||e==n||isNaN(e)&&isNaN(n)}function B4(e,n){var t,i;i=e.a,t=m_n(e,n,null),i!=n&&!e.e&&(t=M6(e,n,t)),t&&t.mj()}function Fxn(e,n){var t;return t=ar(ec(o(bn(e.g,n),8)),lne(o(bn(e.f,n),460).b)),t}function xGe(e,n,t){var i=function(){return e.apply(i,arguments)};return n.apply(i,t),i}function v3(e){var n;return m9(e==null||Array.isArray(e)&&(n=MC(e),!(n>=14&&n<=16))),e}function Hre(e){e.b=(Qu(),g0),e.f=(Cu(),w0),e.d=(Js(2,_p),new ru(2)),e.e=new Ar}function l_(e){this.b=(nt(e),new Ku(e)),this.a=new ke,this.d=new ke,this.e=new Ar}function AGe(e){return Q1(e),i3(!0,"n may not be negative"),new Qe(e,new WGe(e.a))}function Lxn(e,n){tn();var t,i;for(i=new ke,t=0;t<e;++t)vn(i.c,n);return new yF(i)}function Bxn(e,n){return e0(),Bo(e.b.c.length-e.e.c.length,n.b.c.length-n.e.c.length)}function zxn(){return Cp(),F(D(vc,1),be,96,0,[jf,kd,Tf,xf,Ph,Kl,Qs,Mf,Wl])}function IGe(){IGe=V,Cgn=it((m$(),F(D(j2e,1),be,327,0,[wX,S2e,C2e,y2e,E2e,k2e])))}function _Ge(){_Ge=V,J0n=it((yh(),F(D(Mme,1),be,256,0,[XK,VT,WT,QR,KR,XR])))}function $Ge(){$Ge=V,W0n=it((pg(),F(D(eX,1),be,299,0,[YK,fS,lS,ZK,uS,sS])))}function OGe(){OGe=V,$gn=it((Zu(),F(D(rN,1),be,280,0,[x0,Sd,oM,mS,pS,jy])))}function PGe(){PGe=V,_gn=it((yr(),F(D(P2e,1),be,102,0,[M0,Aa,L5,Jg,Rh,Ro])))}function RGe(){RGe=V,mln=it((rj(),F(D(K0e,1),be,282,0,[qP,q0e,W0e,H0e,V0e,XV])))}function NGe(){NGe=V,vln=it((w6(),F(D(nge,1),be,283,0,[k7,Q0e,ege,Y0e,Z0e,X0e])))}function DGe(){DGe=V,bln=it((y$(),F(D(J0e,1),be,284,0,[qV,HV,WV,VV,KV,GP])))}function FGe(){FGe=V,sln=it((_3(),F(D(w5,1),be,231,0,[g5,v7,d5,qp,U2,J2])))}function LGe(){LGe=V,aP=(Uf(),F(D(Bp,1),be,237,0,[lo,fu,fo])).length,iV=aP}function L9(){L9=V,uM=new oL(Zhe,0),bX=new oL("PARENT",1),N2e=new oL("ROOT",2)}function BGe(e,n){return e.n=n,e.n?(e.f=new ke,e.e=new ke):(e.f=null,e.e=null),e}function Mw(e,n){var t;t=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,3,t,e.f))}function f_(e,n){var t;t=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,0,t,e.a))}function a_(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,1,t,e.b))}function u2(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,3,t,e.b))}function s2(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,4,t,e.c))}function xw(e,n){var t;t=e.g,e.g=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,4,t,e.g))}function hs(e,n){var t;t=e.i,e.i=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,5,t,e.i))}function ds(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,6,t,e.j))}function l2(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,1,t,e.j))}function f2(e,n){var t;t=e.k,e.k=n,e.Db&4&&!(e.Db&1)&&Lt(e,new up(e,2,t,e.k))}function vz(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&Lt(e,new HB(e,2,t,e.d))}function Wd(e,n){var t;t=e.s,e.s=n,e.Db&4&&!(e.Db&1)&&Lt(e,new HB(e,4,t,e.s))}function fp(e,n){var t;t=e.t,e.t=n,e.Db&4&&!(e.Db&1)&&Lt(e,new HB(e,5,t,e.t))}function z4(e,n){var t;t=e.F,e.F=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,5,t,n))}function AC(e,n){var t;return t=o(bn((Qx(),pN),e),58),t?t.ek(n):te(ur,sn,1,n,5,1)}function od(e,n){var t,i;return t=n in e.a,t&&(i=Yh(e,n).pe(),i)?i.a:null}function Jxn(e,n){var t,i,r;return t=(i=($1(),r=new BZ,r),n&&Use(i,n),i),uce(t,e),t}function zGe(e,n,t){var i;return i=s6(t),Ct(e.c,i,n),Ct(e.d,n,t),Ct(e.e,n,tp(n)),n}function qn(e,n,t,i,r,c){var s;return s=gB(e,n),UGe(t,s),s.i=r?8:0,s.f=i,s.e=r,s.g=c,s}function qre(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 Vre(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 Wre(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 Kre(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 Xre(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 JGe(e,n){var t,i,r,c;for(i=n,r=0,c=i.length;r<c;++r)t=i[r],LUe(e.a,t);return e}function al(e){var n,t,i,r;for(t=e,i=0,r=t.length;i<r;++i)n=t[i],nt(n);return new QPe(e)}function Qre(e){var n;return n=ar(ec(e.d.d),e.c.d),h6(n,e.c.e.a,e.c.e.b),Jt(n,e.c.d)}function Zre(e){var n;return n=ar(ec(e.c.d),e.d.d),h6(n,e.d.e.a,e.d.e.b),Jt(n,e.d.d)}function Uxn(e){var n=/function(?:\s+([\w$]+))?\s*\(/,t=n.exec(e);return t&&t[1]||rG}function UGe(e,n){if(e){n.n=e;var t=_Cn(n);if(!t){tP[e]=[n];return}t.Pm=n}}function Gxn(e,n,t){var i,r;return r=e.length,i=m.Math.min(t,r),pse(e,0,n,0,i,!0),n}function GGe(e,n,t){if(Q4(e,t),!e.il()&&t!=null&&!e.dk(t))throw P(new tF);return t}function tt(e,n){var t;return an(n),t=e[":"+n],QE(!!t,"Enum constant undefined: "+n),t}function Hxn(e,n){var t,i;return t=e.c,i=n.e[e.p],i>0?o(Te(t.a,i-1),9):null}function df(e){if(!(e>=0))throw P(new yn("tolerance ("+e+") must be >= 0"));return e}function B9(){return WK||(WK=new uYe,E3(WK,F(D(ey,1),sn,148,0,[new GZ]))),WK}function h_(){h_=V,dbe=new VF("NO",0),XW=new VF(_fe,1),hbe=new VF("LOOK_BACK",2)}function dc(){dc=V,J7=new UF(N8,0),ns=new UF("INPUT",1),au=new UF("OUTPUT",2)}function d_(){d_=V,N0e=new NF("ARD",0),JP=new NF("MSD",1),NV=new NF("MANUAL",2)}function qxn(){return hj(),F(D(L0e,1),be,267,0,[LV,F0e,zV,JV,BV,UV,vT,FV,DV])}function Vxn(){return gj(),F(D(Vwe,1),be,268,0,[NW,Gwe,Hwe,PW,Uwe,qwe,vR,OW,RW])}function Wxn(){return bs(),F(D(F2e,1),be,266,0,[B5,aM,cN,yS,oN,sN,uN,pX,fM])}function Kxn(){K$e();for(var e=Rq,n=0;n<arguments.length;n++)e.push(arguments[n])}function z9(e,n){var t,i,r,c;for(i=n,r=0,c=i.length;r<c;++r)t=i[r],Ei(e,t,e.c.b,e.c)}function HGe(e,n){var t;return U(n,45)?e.c.Kc(n):(t=hJ(e,n),K_(e,n),t)}function Cc(e,n,t){return gg(e,n),ou(e,t),Wd(e,0),fp(e,1),Yd(e,!0),Zd(e,!0),e}function IC(e,n){var t;if(t=e.gc(),n<0||n>t)throw P(new Wb(n,t));return new fte(e,n)}function g_(e){var n,t;for(t=e.c.Bc().Jc();t.Ob();)n=o(t.Pb(),18),n.$b();e.c.$b(),e.d=0}function Xxn(e){var n,t,i,r;for(t=e.a,i=0,r=t.length;i<r;++i)n=t[i],PFe(n,n.length,null)}function qGe(e,n){var t,i;for(t=0,i=e.gc();t<i;++t)if(Mo(n,e.Xb(t)))return t;return-1}function Yre(e){var n,t;if(e==0)return 32;for(t=0,n=1;!(n&e);n<<=1)++t;return t}function Js(e,n){if(e<0)throw P(new yn(n+" cannot be negative but was: "+e));return e}function Qxn(e,n){n.Tg("Hierarchical port constraint processing",1),gOn(e),sWn(e),n.Ug()}function w_(e,n){e.b=m.Math.max(e.b,n.d),e.e+=n.r+(e.a.c.length==0?0:e.c),ye(e.a,n)}function VGe(e){Ub(e.c>=0),O$n(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function WGe(e){MA.call(this,e.yd(64)?une(0,zl(e.xd(),1)):Ij,e.wd()),this.b=1,this.a=e}function KGe(){Sne.call(this),this.n=-1,this.g=null,this.i=null,this.j=null,this.Bb|=vf}function XGe(e,n,t,i){this.$j(),this.a=n,this.b=e,this.c=null,this.c=new qNe(this,n,t,i)}function yz(e,n,t,i,r){this.d=e,this.n=n,this.g=t,this.o=i,this.p=-1,r||(this.o=-2-i-1)}function QGe(e){wee(),this.g=new Jn,this.f=new Jn,this.b=new Jn,this.c=new Ew,this.i=e}function ece(){this.f=new Ar,this.d=new RY,this.c=new Ar,this.a=new ke,this.b=new ke}function Zxn(e){var n,t;for(t=new O(VWe(e));t.a<t.c.c.length;)n=o($(t),685),n.Zf()}function Yxn(e,n){var t,i,r;r=n.c.i,t=o(bn(e.f,r),60),i=t.d.c-t.e.c,cu(n.b,new pxe(i))}function b_(e,n){return m6n(G9(e.a,n,lt(Kr(Ch,ph(lt(Kr(n==null?0:oi(n),jh)),15)))))}function eAn(e,n){return m3(),o(M(n,(oo(),iv)),15).a<e.gc()&&o(M(n,iv),15).a>=0}function nce(){nce=V,Nhn=wt(wt(wt(new Di,(kr(),Sf),(Mr(),B2)),Ah,Gp),Oo,Up)}function ZGe(){ZGe=V,Dhn=wt(wt(wt(new Di,(kr(),Sf),(Mr(),B2)),Ah,Gp),Oo,Up)}function tce(){tce=V,Fhn=wt(wt(wt(new Di,(kr(),Sf),(Mr(),B2)),Ah,Gp),Oo,Up)}function YGe(){YGe=V,Lhn=wt(wt(wt(new Di,(kr(),Sf),(Mr(),B2)),Ah,Gp),Oo,Up)}function eHe(){eHe=V,Bhn=wt(wt(wt(new Di,(kr(),Sf),(Mr(),B2)),Ah,Gp),Oo,Up)}function nHe(){nHe=V,zhn=wt(wt(wt(new Di,(kr(),Sf),(Mr(),B2)),Ah,Gp),Oo,Up)}function tHe(){tHe=V,Ghn=tu(wt(wt(new Di,(kr(),Oo),(Mr(),xP)),Po,EP),mc,MP)}function iHe(){iHe=V,Aon=F(D(ut,1),Mt,30,15,[0,8,4,12,2,10,6,14,1,9,5,13,3,11,7,15])}function ice(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,0,t,e.b))}function rce(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,1,t,e.c))}function kz(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,4,t,e.c))}function cce(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,1,t,e.c))}function oce(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,1,t,e.d))}function J4(e,n){var t;t=e.k,e.k=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,2,t,e.k))}function Sz(e,n){var t;t=e.D,e.D=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,2,t,e.D))}function p_(e,n){var t;t=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,8,t,e.f))}function m_(e,n){var t;t=e.i,e.i=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,7,t,e.i))}function uce(e,n){var t;t=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,8,t,e.a))}function sce(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,0,t,e.b))}function nAn(e,n,t){var i;e.b=n,e.a=t,i=(e.a&512)==512?new l_e:new UZ,e.c=$zn(i,e.b,e.a)}function rHe(e,n){return ad(e.e,n)?(ac(),dz(n)?new eI(n,e):new RE(n,e)):new IPe(n,e)}function tAn(e){var n,t;return 0>e?new dee:(n=e+1,t=new pJe(n,e),new Une(null,t))}function iAn(e,n){tn();var t;return t=new Uv(1),mr(e)?xc(t,e,n):Tu(t.f,e,n),new ZD(t)}function rAn(e,n){var t;t=new xb,o(n.b,68),o(n.b,68),o(n.b,68),cu(n.a,new yte(e,t,n))}function cHe(e,n){var t;return U(n,8)?(t=o(n,8),e.a==t.a&&e.b==t.b):!1}function cAn(e){var n;return n=M(e,(he(),Gt)),U(n,174)?TVe(o(n,174)):null}function oHe(e){var n;return e=m.Math.max(e,2),n=_ce(e),e>n?(n<<=1,n>0?n:_8):n}function Ez(e){switch(yne(e.e!=3),e.e){case 2:return!1;case 0:return!0}return lMn(e)}function lce(e){var n;return e.b==null?(Bd(),Bd(),vM):(n=e.sl()?e.rl():e.ql(),n)}function uHe(e,n){var t,i;for(i=n.vc().Jc();i.Ob();)t=o(i.Pb(),45),tj(e,t.jd(),t.kd())}function fce(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,11,t,e.d))}function v_(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,13,t,e.j))}function ace(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,21,t,e.b))}function hce(e,n){e.r>0&&e.c<e.r&&(e.c+=n,e.i&&e.i.d>0&&e.g!=0&&hce(e.i,n/e.r*e.i.d))}function sHe(e,n,t){var i,r,c;for(c=e.a.length-1,r=e.b,i=0;i<t;r=r+1&c,++i)Oi(n,i,e.a[r])}function gf(e,n){var t;return an(n),t=n.g,e.b[t]?!1:(Oi(e.b,t,n),++e.c,!0)}function lHe(e,n){var t;return t=n==null?-1:Kc(e.b,n,0),t<0?!1:(Cz(e,t),!0)}function Cz(e,n){var t;t=Hd(e.b,e.b.c.length-1),n<e.b.c.length&&(Bs(e.b,n,t),BXe(e,n))}function oAn(e,n){(GI(),Sa?null:n.c).length==0&&pNe(n,new xt),xc(e.a,Sa?null:n.c,n)}function uAn(e,n){var t,i;return t=o(M(e,(Se(),nm)),8),i=o(M(n,nm),8),Kt(t.b,i.b)}function fHe(e){Jte.call(this),this.b=K(Z(M(e,(Se(),Ef)))),this.a=o(M(e,vd),222)}function aHe(e){this.e=e,this.d=new Jx(dp(r3(this.e).gc())),this.c=this.e.a,this.b=this.e.c}function hHe(e,n,t){Xie.call(this,e,n,t),this.a=new Jn,this.b=new Jn,this.d=new Fxe(this)}function sAn(e,n){Ii(Nt(new Qe(null,new Ze(new Hh(e.b),1)),new tPe(e,n)),new rPe(e,n))}function H1(){H1=V,ty=new Wt(Cfe),bP=new Wt(_tn),w7=new Wt($tn),hT=new Wt(Otn)}function U4(){U4=V,wT=new Aee("TO_INTERNAL_LTR",0),yV=new Aee("TO_INPUT_DIRECTION",1)}function y_(){y_=V,RR=new Jee("P1_NODE_PLACEMENT",0),cv=new Jee("P2_EDGE_ROUTING",1)}function Aw(){Aw=V,rb=new DF("START",0),b0=new DF("MIDDLE",1),ib=new DF("END",2)}function dce(e){var n,t;for(t=new $n(e);t.e!=t.i.gc();)n=o(Rn(t),26),hs(n,0),ds(n,0)}function lAn(e,n){var t,i;i=new ke,t=n;do vn(i.c,t),t=o(bn(e.k,t),17);while(t);return i}function jz(e,n,t){var i;return i=new ke,qse(e,n,i,t,!0,!0),e.b=new S_(i.c.length),i}function dHe(e,n){var t;return t=o(bn(e.c,n),456),t||(t=new JIe,t.c=n,Ct(e.c,t.c,t)),t}function a2(e){var n;return RL(e.f.g,e.d),Nn(e.b),e.c=e.a,n=o(e.a.Pb(),45),e.b=Cce(e),n}function k_(e,n){var t,i;return t=1-n,i=e.a[t],e.a[t]=i.a[n],i.a[n]=e,e.b=!0,i.b=!1,i}function sg(e,n){var t,i;for(t=e.Nc(),D4(t,0,t.length,n),i=0;i<t.length;i++)e.fd(i,t[i])}function gHe(e){var n,t;for(t=e.c.a.ec().Jc();t.Ob();)n=o(t.Pb(),218),Pyn(n,new SFe(n.f))}function gce(e){var n,t;for(t=e.c.a.ec().Jc();t.Ob();)n=o(t.Pb(),218),Ryn(n,new YKe(n.e))}function wHe(){this.c=new Ux(0),this.b=new Ux(ihe),this.d=new Ux(vin),this.a=new Ux(yin)}function S_(e){this.b=e,this.a=te(ut,Mt,30,e+1,15,1),this.c=te(ut,Mt,30,e,15,1),this.d=0}function ou(e,n){var t;t=e.zb,e.zb=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,1,t,e.zb))}function Ti(e,n){var t,i;t=(i=new oF,i),t.n=n,Xn((!e.s&&(e.s=new ae(Ou,e,21,17)),e.s),t)}function si(e,n){var t,i;i=(t=new Fne,t),i.n=n,Xn((!e.s&&(e.s=new ae(Ou,e,21,17)),e.s),i)}function E_(e,n){var t;t=e.xb,e.xb=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,3,t,e.xb))}function C_(e,n){var t;t=e.yb,e.yb=n,e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,1,2,t,e.yb))}function Tz(e,n){var t;return U(n,18)?(t=o(n,18),e.Fc(t)):gz(e,o(nt(n),20).Jc())}function Wr(e,n){var t,i,r;for(an(n),t=!1,r=n.Jc();r.Ob();)i=r.Pb(),t=t|e.Ec(i);return t}function bHe(e){var n,t,i;for(n=0,i=e.Jc();i.Ob();)t=i.Pb(),n+=t!=null?oi(t):0,n=~~n;return n}function Mz(e,n){var t=e.a,i=0;for(var r in t)t.hasOwnProperty(r)&&(n[i++]=r);return n}function pHe(e){var n;return e==0?"UTC":(e<0?(e=-e,n="UTC+"):n="UTC-",n+QUe(e))}function wce(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=lC(bo(e.f))),e.c).e}function mHe(e,n){n?e.B==null&&(e.B=e.D,e.D=null):e.B!=null&&(e.D=e.B,e.B=null)}function fAn(e,n){n.Tg(Wtn,1),Ii(Lc(new Qe(null,new Ze(e.b,16)),new S6e),new E6e),n.Ug()}function xz(e,n,t,i,r,c){var s;this.c=e,s=new ke,Qoe(e,s,n,e.b,t,i,r,c),this.a=new Tr(s,0)}function Pi(e,n,t,i,r,c,s,a,d,w,b,v,E){return PXe(e,n,t,i,r,c,s,a,d,w,b,v,E),cJ(e,!1),e}function aAn(e,n){typeof window===Tj&&typeof window.$gwt===Tj&&(window.$gwt[e]=n)}function hAn(e,n,t){var i,r,c;for(i=0,r=0;r<t;r++)c=n[r],e[r]=c<<1|i,i=c>>>31;i!=0&&(e[t]=i)}function dAn(e,n,t){t.Tg("DFS Treeifying phase",1),E$n(e,n),ezn(e,n),e.a=null,e.b=null,t.Ug()}function gAn(e,n){var t;n.Tg("General Compactor",1),t=c$n(o(we(e,(n0(),kK)),386)),t.Bg(e)}function wAn(e,n){var t,i;return t=o(we(e,(n0(),DR)),15),i=o(we(n,DR),15),Bo(t.a,i.a)}function bce(e,n,t){var i,r;for(r=Qn(e,0);r.b!=r.d.c;)i=o(Kn(r),8),i.a+=n,i.b+=t;return e}function bAn(e,n,t,i){var r;r=new Fv,tg(r,"x",d$(e,n,i.a)),tg(r,"y",g$(e,n,i.b)),s3(t,r)}function pAn(e,n,t,i){var r;r=new Fv,tg(r,"x",d$(e,n,i.a)),tg(r,"y",g$(e,n,i.b)),s3(t,r)}function mAn(){return i0(),F(D(tbe,1),be,243,0,[SR,OT,PT,Ywe,ebe,Zwe,nbe,ER,M5,z7])}function vAn(){return gc(),F(D(QV,1),be,261,0,[VP,kl,S7,WP,v5,H2,E7,p5,m5,KP])}function Az(){Az=V,jS=new r_e,xX=F(D(Ou,1),N2,179,0,[]),Twn=F(D(Zl,1),yde,62,0,[])}function y3(){y3=V,EV=new ai("edgelabelcenterednessanalysis.includelabel",(dn(),d0))}function vHe(e,n){return K(Z(Es(GC(iu(new Qe(null,new Ze(e.c.b,16)),new jxe(e)),n))))}function pce(e,n){return K(Z(Es(GC(iu(new Qe(null,new Ze(e.c.b,16)),new Cxe(e)),n))))}function oi(e){return mr(e)?Kd(e):Jb(e)?Wv(e):zb(e)?vNe(e):qte(e)?e.Hb():zte(e)?gw(e):xie(e)}function yHe(e,n){return ra(),df(ma),m.Math.abs(0-n)<=ma||n==0||isNaN(0)&&isNaN(n)?0:e/n}function yAn(e,n){return W4(),e==tb&&n==zp||e==tb&&n==L2||e==Jp&&n==L2||e==Jp&&n==zp}function kAn(e,n){return W4(),e==tb&&n==Jp||e==Jp&&n==tb||e==L2&&n==zp||e==zp&&n==L2}function Ju(){Ju=V,U1e=new l6e,z1e=new f6e,J1e=new a6e,B1e=new h6e,G1e=new d6e,H1e=new g6e}function SAn(e){var n;return n=RI(e),o9(n.a,0)?(qx(),qx(),Jon):(qx(),new ZRe(n.b))}function Iz(e){var n;return n=Kie(e),o9(n.a,0)?(Db(),Db(),Xq):(Db(),new CL(n.b))}function _z(e){var n;return n=Kie(e),o9(n.a,0)?(Db(),Db(),Xq):(Db(),new CL(n.c))}function EAn(e){return e.b.c.i.k==(pn(),Wi)?o(M(e.b.c.i,(he(),Gt)),12):e.b.c}function kHe(e){return e.b.d.i.k==(pn(),Wi)?o(M(e.b.d.i,(he(),Gt)),12):e.b.d}function SHe(e){switch(e.g){case 2:return Ee(),Cn;case 4:return Ee(),An;default:return e}}function EHe(e){switch(e.g){case 1:return Ee(),Ln;case 3:return Ee(),En;default:return e}}function CAn(e,n){var t;return t=Rue(e),hse(new pe(t.c,t.d),new pe(t.b,t.a),e.Kf(),n,e.$f())}function jAn(e,n){n.Tg(Wtn,1),Coe(I6n(new Cx((Uk(),new yB(e,!1,!1,new xZ))))),n.Ug()}function mce(){mce=V,Hhn=Ha(RPe(wt(wt(new Di,(kr(),Oo),(Mr(),xP)),Po,EP),mc),MP)}function CHe(){CHe=V,Khn=Ha(RPe(wt(wt(new Di,(kr(),Oo),(Mr(),xP)),Po,EP),mc),MP)}function jHe(e,n,t){this.g=e,this.d=n,this.e=t,this.a=new ke,wFn(this),tn(),sr(this.a,null)}function hl(e,n,t,i,r,c,s){et.call(this,e,n),this.d=t,this.e=i,this.c=r,this.b=c,this.a=af(s)}function vce(e){this.i=e.gc(),this.i>0&&(this.g=this.$i(this.i+(this.i/8|0)+1),e.Oc(this.g))}function J9(e,n){var t,i;for(an(n),i=n.vc().Jc();i.Ob();)t=o(i.Pb(),45),e.yc(t.jd(),t.kd())}function TAn(e,n,t){var i;for(i=t.Jc();i.Ob();)if(!LI(e,n,i.Pb()))return!1;return!0}function U9(e,n,t){var i;for(i=e.b[t&e.f];i;i=i.b)if(t==i.a&&Qh(n,i.g))return i;return null}function G9(e,n,t){var i;for(i=e.c[t&e.f];i;i=i.d)if(t==i.f&&Qh(n,i.i))return i;return null}function MAn(e,n){var t;for(nt(n);e.Ob();)if(t=e.Pb(),!Ece(o(t,9)))return!1;return!0}function xAn(e,n,t,i,r){var c;return t&&(c=bi(n.Ah(),e.c),r=t.Oh(n,-1-(c==-1?i:c),null,r)),r}function AAn(e,n,t,i,r){var c;return t&&(c=bi(n.Ah(),e.c),r=t.Qh(n,-1-(c==-1?i:c),null,r)),r}function THe(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 IAn(e){var n,t,i;return e.j==(Ee(),En)&&(n=MQe(e),t=Lu(n,An),i=Lu(n,Cn),i||i&&t)}function _An(e){var n,t,i;for(i=0,t=new O(e.b);t.a<t.c.c.length;)n=o($(t),25),n.p=i,++i}function ap(e,n){var t,i;for(i=Qn(e,0);i.b!=i.d.c;)t=o(Kn(i),8),t.a+=n.a,t.b+=n.b;return e}function $z(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.a<t&&n.b>c&&n.b<i}function yce(e,n){n.q=e,e.d=m.Math.max(e.d,n.r),e.b+=n.d+(e.a.c.length==0?0:e.c),ye(e.a,n)}function $An(e,n){return n<e.b.gc()?o(e.b.Xb(n),9):n==e.b.gc()?e.a:o(Te(e.e,n-e.b.gc()-1),9)}function _C(e,n){return dn(),mr(e)?mre(e,ot(n)):Jb(e)?nB(e,Z(n)):zb(e)?CSn(e,Me(n)):e.Dd(n)}function j_(e,n){var t;U(n,92)?(o(e.c,77).Ek(),t=o(n,92),uHe(e,t)):o(e.c,77).Wb(n)}function $C(e,n){var t,i;for(an(n),i=e.vc().Jc();i.Ob();)t=o(i.Pb(),45),n.Wd(t.jd(),t.kd())}function $i(e,n){KA.call(this,Mwn,e,n),this.b=this,this.a=wu(e.Ah(),cn(this.e.Ah(),this.c))}function hp(e){this.f=e,this.e=new cre(this.f.i),this.a=this.e,this.b=Cce(this),this.d=this.f.g}function OAn(e){if(an(e),e.length==0)throw P(new Da("Zero length BigInteger"));KJn(this,e)}function Oz(e,n,t,i){var r;r=e.a.length,t>r?t=r:Tn(n,t+1),e.a=Ll(e.a,0,n)+(""+i)+sie(e.a,t)}function MHe(e,n,t,i){U(e.Cb,184)&&(o(e.Cb,184).tb=null),ou(e,t),n&&_Fn(e,n),i&&e.el(!0)}function PAn(e,n){var t,i;for(i=new O(n.b);i.a<i.c.c.length;)t=o($(i),25),e.a[t.p]=JNn(t)}function Us(e,n){var t;for(t=0;t<n.j.c.length;t++)o(EC(e,t),22).Fc(o(EC(n,t),18));return e}function xHe(e,n){var t;return t=ole(B9(),e),t?(Xt(n,(pt(),hm),t),!0):!1}function lg(e,n,t){var i,r;return r=o(p9(e.d,n),15),i=o(p9(e.b,t),15),!r||!i?null:b3(e,r.a,i.a)}function RAn(e,n){var t;n.Tg("Edge and layer constraint edge reversal",1),t=fJn(e),Uqn(t),n.Ug()}function AHe(e,n){e.a=nc(e.a,1),e.c=m.Math.min(e.c,n),e.b=m.Math.max(e.b,n),e.d=nc(e.d,n)}function NAn(){var e;return nV||(nV=new _Ie,e=new WB(""),I5n(e,(d4(),f1e)),oAn(nV,e)),nV}function IHe(e){return qb(),e.A.Gc((Is(),wm))&&!e.B.Gc((bs(),aM))?_Ve(e):null}function _He(){this.a=o(je((mf(),gP)),15).a,this.c=K(Z(je(wP))),this.b=K(Z(je(sV)))}function $He(){$He=V,Osn=it((pn(),F(D(vV,1),be,249,0,[xi,Gi,Wi,Wo,Co,Ea,gT,p7])))}function OHe(){OHe=V,z0n=it((mg(),F(D(B0n,1),be,285,0,[Cme,rr,Xr,vy,Nr,gi,my,Ta])))}function PHe(){PHe=V,cwn=it((p6(),F(D(bN,1),be,244,0,[CX,gN,wN,dN,EX,hN,aN,SX])))}function RHe(){RHe=V,uln=it((R$(),F(D(I0e,1),be,275,0,[xV,_V,MV,PV,IV,AV,OV,$V])))}function NHe(){return S8(),F(D(QWn,1),be,264,0,[YW,Cbe,xbe,Abe,Mbe,Ebe,Ibe,kbe,Tbe,jbe,Sbe])}function DAn(e,n,t){return Kt(Xv(l6(e),new pe(n.e.a,n.e.b)),Xv(l6(e),new pe(t.e.a,t.e.b)))}function FAn(e,n,t){return e==(dg(),jR)?new J9e:ws(n,1)!=0?new nee(t.length):new B_e(t.length)}function Lt(e,n){var t,i,r;if(t=e.qh(),t!=null&&e.th())for(i=0,r=t.length;i<r;++i)t[i].bj(n)}function G4(e,n){var t,i;for(t=e,i=wr(t).e;i;){if(t=i,t==n)return!0;i=wr(t).e}return!1}function q1(e){var n;return n=e.h,n==0?e.l+e.m*J3:n==dd?e.l+e.m*J3-kg:e}function LAn(e,n,t){var i,r;return i=e.a.f[n.p],r=e.a.f[t.p],i<r?-1:i==r?0:1}function dp(e){return e<3?(Js(e,Gnn),e+1):e<_8?qr(m.Math.ceil(e/.75)):Rt}function bo(e){return Pj<e&&e<kg?e<0?m.Math.ceil(e):m.Math.floor(e):q1(DBn(e))}function DHe(e){switch(e.a.g){case 1:return new QOe;case 3:return new KWe;default:return new dTe}}function FHe(e,n){e.c&&(bYe(e,n,!0),Ii(new Qe(null,new Ze(n,16)),new $xe(e))),bYe(e,n,!1)}function BAn(e){uRe();var n;return fOe(ZW,e)||(n=new E8e,n.a=e,Qne(ZW,e,n)),o(Ec(ZW,e),635)}function zAn(e){var n;if(e.a==e.b.a)throw P(new Gc);return n=e.a,e.c=n,e.a=o(Fl(e.a.e),227),n}function LHe(e){var n;e.d==null?(++e.e,e.f=0,Wqe(null)):(++e.e,n=e.d,e.d=null,e.f=0,Wqe(n))}function Sn(e,n){var t;return e.Db&n?(t=DJ(e,n),t==-1?e.Eb:v3(e.Eb)[t]):null}function T_(e){var n;if(e.g>1||e.Ob())return++e.a,e.g=0,n=e.i,e.Ob(),n;throw P(new Gc)}function JAn(e,n){var t,i;for(i=new O(n);i.a<i.c.c.length;)t=o($(i),70),ye(e.d,t),UNn(e,t)}function UAn(e,n){var t,i;for(i=new $n(e);i.e!=i.i.gc();)t=o(Rn(i),26),cl(t,t.i+n.b,t.j+n.d)}function co(e,n){var t,i;return t=(i=new qZ,i),t.G=n,!e.rb&&(e.rb=new Zb(e,ea,e)),Xn(e.rb,t),t}function $t(e,n){var t,i;return t=(i=new Ix,i),t.G=n,!e.rb&&(e.rb=new Zb(e,ea,e)),Xn(e.rb,t),t}function OC(e){var n,t,i;for(i=0,t=new Jv(e.a);t.a<t.c.a.length;)n=P9(t),e.b.Gc(n)&&++i;return i}function GAn(e){var n,t,i;for(n=1,i=e.Jc();i.Ob();)t=i.Pb(),n=31*n+(t==null?0:oi(t)),n=~~n;return n}function PC(e){var n;return e<128?(KDe(),n=Hde[e],!n&&(n=Hde[e]=new cY(e)),n):new cY(e)}function Bl(e){var n,t,i,r;return r=e,i=0,r<0&&(r+=kg,i=dd),t=qr(r/J3),n=qr(r-t*J3),du(n,t,i)}function BHe(e,n){var t;return t=e.a.get(n),t===void 0?++e.d:(r9n(e.a,n),--e.c,++e.b.g),t}function po(e,n){var t;return n&&(t=n.lf(),t.dc()||(e.q?J9(e.q,t):e.q=new NPe(t))),e}function HAn(e,n){var t,i,r;return t=n.p-e.p,t==0?(i=e.f.a*e.f.b,r=n.f.a*n.f.b,Kt(i,r)):t}function kce(e,n){switch(n){case 1:return!!e.n&&e.n.i!=0;case 2:return e.k!=null}return Vie(e,n)}function qAn(e){return e.b.c.length!=0&&o(Te(e.b,0),70).a?o(Te(e.b,0),70).a:vB(e)}function VAn(e,n){var t;try{n.be()}catch(i){if(i=Fi(i),U(i,80))t=i,vn(e.c,t);else throw P(i)}}function fg(e,n,t){this.b=(an(e),e),this.d=(an(n),n),this.e=(an(t),t),this.c=this.d+(""+this.e)}function H4(e,n){this.b=e,this.e=n,this.d=n.j,this.f=(ac(),o(e,69).vk()),this.k=wu(n.e.Ah(),e)}function Sce(e,n,t,i,r){Sqe.call(this,e,t,i,r),this.f=te(Ih,r1,9,n.a.c.length,0,1),ha(n.a,this.f)}function H9(e,n,t,i,r){Oi(e.c[n.g],t.g,i),Oi(e.c[t.g],n.g,i),Oi(e.b[n.g],t.g,r),Oi(e.b[t.g],n.g,r)}function WAn(e,n){var t,i;return t=e.j,i=n.j,t!=i?t.g-i.g:e.p==n.p?0:t==(Ee(),En)?e.p-n.p:n.p-e.p}function Ece(e){var n;return n=o(M(e,(he(),ao)),64),e.k==(pn(),Wi)&&(n==(Ee(),Cn)||n==An)}function zHe(){zHe=V,hln=it((hj(),F(D(L0e,1),be,267,0,[LV,F0e,zV,JV,BV,UV,vT,FV,DV])))}function JHe(){JHe=V,whn=it((gj(),F(D(Vwe,1),be,268,0,[NW,Gwe,Hwe,PW,Uwe,qwe,vR,OW,RW])))}function UHe(){UHe=V,Bgn=it((bs(),F(D(F2e,1),be,266,0,[B5,aM,cN,yS,oN,sN,uN,pX,fM])))}function GHe(){GHe=V,Agn=it((Cp(),F(D(vc,1),be,96,0,[jf,kd,Tf,xf,Ph,Kl,Qs,Mf,Wl])))}function q4(){q4=V,g7=new ai("debugSVG",(dn(),!1)),b1e=new ai("overlapsExisted",!0)}function Iw(){Iw=V,aT=new tA("UP",0),fT=new tA(RG,1),cV=new tA(U3,2),oV=new tA(G3,3)}function M_(){M_=V,CK=new ZF(qf,0),Epe=new ZF("POLAR_COORDINATE",1),Spe=new ZF("ID",2)}function V4(){V4=V,ZV=new LF("ONE_SIDED",0),YV=new LF("TWO_SIDED",1),yT=new LF("OFF",2)}function x_(){x_=V,obe=new GF("EQUALLY",0),qW=new GF("NORTH",1),ube=new GF("NORTH_SOUTH",2)}function A_(){A_=V,QW=new WF("OFF",0),x5=new WF("SINGLE_EDGE",1),cm=new WF("MULTI_EDGE",2)}function wf(){wf=V,Hp=new uA(N6,0),a5=new uA(U3,1),h5=new uA(G3,2),jV=new uA("TOP",3)}function RC(){RC=V,WR=new qee("MINIMUM_SPANNING_TREE",0),kme=new qee("MAXIMUM_SPANNING_TREE",1)}function HHe(e){e.r=new Ji,e.w=new Ji,e.t=new ke,e.i=new ke,e.d=new Ji,e.a=new Kv,e.c=new Jn}function NC(e){this.n=new ke,this.e=new ei,this.j=new ei,this.k=new ke,this.f=new ke,this.p=e}function qHe(e){switch(e.g){case 0:return new fSe;case 1:return new hSe;case 2:default:return null}}function KAn(){return GI(),Sa?new WB(null):CQe(NAn(),"com.google.common.base.Strings")}function XAn(e){var n;if(e){if(n=e,n.dc())throw P(new Gc);return n.Xb(n.gc()-1)}return RBe(e.Jc())}function Pz(e){var n;return(!e.a||!(e.Bb&1)&&e.a.Sh())&&(n=Jl(e),U(n,159)&&(e.a=o(n,159))),e.a}function QAn(e,n,t){var i,r,c,s;return c=null,s=n,r=jw(s,hq),i=new sPe(e,t),c=(vKe(i.a,i.b,r),r),c}function DC(e,n){var t,i;return i=(t=new BD,t),ou(i,n),Xn((!e.A&&(e.A=new Fu(yu,e,7)),e.A),i),i}function Rz(e,n,t,i){return t==1?(!e.n&&(e.n=new ae(no,e,1,7)),tc(e.n,n,i)):Uue(e,n,t,i)}function ZAn(e,n,t,i){o(t.b,68),o(t.b,68),o(i.b,68),o(i.b,68),o(i.b,68),cu(i.a,new vte(e,n,i))}function YAn(e,n){e.d==(Qi(),Oc)||e.d==Sl?o(n.a,60).c.Ec(o(n.b,60)):o(n.b,60).c.Ec(o(n.a,60))}function I_(e,n,t){var i,r,c,s;s=wr(e),i=s.d,r=s.c,c=e.n,n&&(c.a=c.a-i.b-r.a),t&&(c.b=c.b-i.d-r.b)}function eIn(e,n,t){var i,r;r=o(M(e,(Se(),$c)),78),r&&(i=new us,Xz(i,0,r),ap(i,t),Wr(n,i))}function ir(e,n){var t,i;return t=n.Nc(),i=t.length,i==0?!1:(jte(e.c,e.c.length,t),!0)}function FC(e,n){var t,i;for(an(n),i=n.Jc();i.Ob();)if(t=i.Pb(),!e.Gc(t))return!1;return!0}function VHe(e,n){if(n==null)return!1;for(;e.a!=e.b;)if(Bt(n,N_(e)))return!0;return!1}function Cce(e){return e.a.Ob()?!0:e.a!=e.e?!1:(e.a=new Mre(e.f.f),e.a.Ob())}function Fi(e){var n;return U(e,80)?e:(n=e&&e.__java$exception,n||(n=new Lqe(e),TIe(n)),n)}function Nz(e){if(U(e,193))return o(e,125);if(e)return null;throw P(new Lv(Drn))}function nIn(e){switch(o(M(e,(Se(),Yc)),165).g){case 2:case 4:return!0;default:return!1}}function tIn(e,n){var t,i;return t=e.c,i=n.e[e.p],i<t.a.c.length-1?o(Te(t.a,i+1),9):null}function iIn(e){var n,t;for(kGn(e),t=new O(e.d);t.a<t.c.c.length;)n=o($(t),107),n.i&&mDn(n)}function WHe(e,n){var t,i;for(i=new O(e.b);i.a<i.c.c.length;)t=o($(i),70),oe(t,(he(),ly),n)}function rIn(e,n,t){var i,r;for(r=new O(e.b);r.a<r.c.c.length;)i=o($(r),26),cl(i,i.i+n,i.j+t)}function Dz(e){var n,t,i;for(n=new ei,i=Qn(e.d,0);i.b!=i.d.c;)t=o(Kn(i),65),vt(n,t.c);return n}function jce(e){var n,t,i,r;for(n=1,t=0,r=e.gc();t<r;++t)i=e.Ti(t),n=31*n+(i==null?0:oi(i));return n}function KHe(e){var n,t;return t=(n=new BD,n),ou(t,"T"),Xn((!e.d&&(e.d=new Fu(yu,e,11)),e.d),t),t}function XHe(e,n){var t;return t=hh(n.a.gc()),Ii(u_(new Qe(null,new Ze(n,1)),e.i),new KOe(e,t)),t}function QHe(e,n,t,i){var r;return hC(n,e.e.Pd().gc()),hC(t,e.c.Pd().gc()),r=e.a[n][t],Oi(e.a[n],t,i),r}function F(e,n,t,i,r){return r.Pm=e,r.Qm=n,r.Rm=hu,r.__elementTypeId$=t,r.__elementTypeCategory$=i,r}function cIn(e,n,t,i,r){return y6(),m.Math.min(Ben(e,n,t,i,r),Ben(t,i,e,n,BA(new pe(r.a,r.b))))}function ZHe(e,n){return!e||!n||e==n?!1:qVe(e.d.c,n.d.c+n.d.b)&&qVe(n.d.c,e.d.c+e.d.b)}function YHe(e,n){if(!e)throw P(new yn(k8("value already present: %s",F(D(ur,1),sn,1,5,[n]))))}function oIn(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),du(t&ps,i&ps,r&dd)}function eqe(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),du(t&ps,i&ps,r&dd)}function Fz(e){var n,t,i,r;for(r=new ke,i=e.Jc();i.Ob();)t=o(i.Pb(),26),n=jp(t),ir(r,n);return r}function uIn(e){var n;t1(e,!0),n=i1,zt(e,(Se(),C5))&&(n+=o(M(e,C5),15).a),oe(e,C5,ge(n))}function nqe(e,n,t){var i;ko(e.a),cu(t.i,new CAe(e)),i=new IA(o(bn(e.a,n.b),68)),ZVe(e,i,n),t.f=i}function Tce(e){var n,t;return t=($1(),n=new wx,n),e&&Xn((!e.a&&(e.a=new ae(hi,e,6,6)),e.a),t),t}function k3(e,n){var t,i;if(i=0,e<64&&e<=n)for(n=n<64?n:63,t=e;t<=n;t++)i=za(i,wh(1,t));return i}function sIn(e,n){var t,i;for(jI(n,"predicate"),i=0;e.Ob();i++)if(t=e.Pb(),n.Lb(t))return i;return-1}function Mce(e,n){switch(n){case 0:!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),e.o.c.$b();return}rU(e,n)}function tqe(e){switch(e.g){case 1:return j0;case 2:return Oh;case 3:return iM;default:return rM}}function xce(e){tn();var n,t,i;for(i=0,t=e.Jc();t.Ob();)n=t.Pb(),i=i+(n!=null?oi(n):0),i=i|0;return i}function lIn(e){var n;return n=new Zt,n.a=e,n.b=wIn(e),n.c=te(Ae,ve,2,2,6,1),n.c[0]=pHe(e),n.c[1]=pHe(e),n}function __(){__=V,CV=new oA(qf,0),NP=new oA(Qtn,1),DP=new oA(Ztn,2),bT=new oA("BOTH",3)}function W4(){W4=V,tb=new rA("Q1",0),Jp=new rA("Q4",1),zp=new rA("Q2",2),L2=new rA("Q3",3)}function V1(){V1=V,kT=new BF("ONLY_WITHIN_GROUP",0),tge=new BF(zG,1),Vp=new BF("ENFORCED",2)}function ag(){ag=V,GV=new FF(qf,0),b5=new FF("INCOMING_ONLY",1),G2=new FF("OUTGOING_ONLY",2)}function S3(){S3=V,R0n=new pSe,P0n=new mSe}function Lz(){Lz=V,Hq={boolean:j6n,number:D4n,string:F4n,object:DXe,function:DXe,undefined:b4n}}function iqe(){iqe=V,vhn=it((i0(),F(D(tbe,1),be,243,0,[SR,OT,PT,Ywe,ebe,Zwe,nbe,ER,M5,z7])))}function rqe(){rqe=V,yln=it((gc(),F(D(QV,1),be,261,0,[VP,kl,S7,WP,v5,H2,E7,p5,m5,KP])))}function fIn(e,n,t,i){return new kee(F(D(Ag,1),X$,45,0,[($J(e,n),new lw(e,n)),($J(t,i),new lw(t,i))]))}function aIn(e,n){var t,i;return t=o(o(bn(e.g,n.a),49).a,68),i=o(o(bn(e.g,n.b),49).a,68),VYe(t,i)}function Ace(e,n,t){var i;if(i=e.gc(),n>i)throw P(new Wb(n,i));return e.Qi()&&(t=wBe(e,t)),e.Ci(n,t)}function cqe(e){var n,t,i;return t=e.n,i=e.o,n=e.d,new lf(t.a-n.b,t.b-n.d,i.a+(n.b+n.c),i.b+(n.d+n.a))}function hIn(e,n){return!e||!n||e==n?!1:$w(e.b.c,n.b.c+n.b.b)<0&&$w(n.b.c,e.b.c+e.b.b)<0}function Bz(e,n,t){return e>=128?!1:e<64?u9(vr(wh(1,e),t),0):u9(vr(wh(1,e-64),n),0)}function LC(e,n,t){switch(t.g){case 2:e.b=n;break;case 1:e.c=n;break;case 4:e.d=n;break;case 3:e.a=n}}function BC(e,n,t){return t==null?(!e.q&&(e.q=new Jn),w3(e.q,n)):(!e.q&&(e.q=new Jn),Ct(e.q,n,t)),e}function oe(e,n,t){return t==null?(!e.q&&(e.q=new Jn),w3(e.q,n)):(!e.q&&(e.q=new Jn),Ct(e.q,n,t)),e}function oqe(e){var n,t;return t=new qI,po(t,e),oe(t,(H1(),ty),e),n=new Jn,oGn(e,t,n),Dqn(e,t,n),t}function dIn(e){y6();var n,t,i;for(t=te(br,ve,8,2,0,1),i=0,n=0;n<2;n++)i+=.5,t[n]=qOn(i,e);return t}function uqe(e,n){var t,i,r,c;for(t=!1,i=e.a[n].length,c=0;c<i-1;c++)r=c+1,t=t|x$n(e,n,c,r);return t}function gIn(e){var n,t,i,r;for(t=e.a,i=0,r=t.length;i<r;++i)n=t[i],hqe(e,n,(Ee(),Ln)),hqe(e,n,En)}function K4(e){var n,t,i;return n=~e.l+1&ps,t=~e.m+(n==0?1:0)&ps,i=~e.h+(n==0&&t==0?1:0)&dd,du(n,t,i)}function sqe(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 Ice(e){var n;return(!e.c||!(e.Bb&1)&&e.c.Db&64)&&(n=Jl(e),U(n,88)&&(e.c=o(n,29))),e.c}function _ce(e){var n;if(e<0)return xr;if(e==0)return 0;for(n=_8;!(n&e);n>>=1);return n}function wIn(e){var n;return e==0?"Etc/GMT":(e<0?(e=-e,n="Etc/GMT-"):n="Etc/GMT+",n+QUe(e))}function lqe(e){var n,t;return t=fj(e.h),t==32?(n=fj(e.m),n==32?fj(e.l)+32:n+20-10):t-12}function zz(e){var n,t,i;n=~e.l+1&ps,t=~e.m+(n==0?1:0)&ps,i=~e.h+(n==0&&t==0?1:0)&dd,e.l=n,e.m=t,e.h=i}function q9(e){var n;return n=e.a[e.b],n==null?null:(Oi(e.a,e.b,null),e.b=e.b+1&e.a.length-1,n)}function $ce(){this.o=null,this.k=null,this.j=null,this.d=null,this.b=null,this.n=null,this.a=null}function Oce(e,n){this.c=e,this.d=n,this.b=this.d/this.c.c.Pd().gc()|0,this.a=this.d%this.c.c.Pd().gc()}function fqe(e,n){this.b=e,Hm.call(this,(o(G(fe((F1(),wn).o),10),19),n.i),n.g),this.a=(Az(),xX)}function Pce(e,n,t){this.q=new m.Date,this.q.setFullYear(e+u0,n,t),this.q.setHours(0,0,0,0),C8(this,0)}function aqe(e,n,t){var i,r;return i=new rz(n,t),r=new zh,e.b=IZe(e,e.b,i,r),r.b||++e.c,e.b.b=!1,r.d}function Rce(e,n){tn();var t,i,r,c,s;for(s=!1,i=n,r=0,c=i.length;r<c;++r)t=i[r],s=s|e.Ec(t);return s}function bIn(e,n,t,i,r){var c,s;if(s=e.length,c=t.length,n<0||i<0||r<0||n+r>s||i+r>c)throw P(new jY)}function hqe(e,n,t){var i,r,c,s;for(s=Z9(n,t),c=0,r=s.Jc();r.Ob();)i=o(r.Pb(),12),Ct(e.c,i,ge(c++))}function W1(e){var n,t;for(t=new O(e.a.b);t.a<t.c.c.length;)n=o($(t),82),n.g.c=-n.g.c-n.g.b;I$(e)}function K1(e){var n,t;for(t=new O(e.a.b);t.a<t.c.c.length;)n=o($(t),60),n.d.c=-n.d.c-n.d.b;Jse(e)}function pIn(e){var n,t,i;return n=o(e.e&&e.e(),10),i=(t=n.slice(),o(uz(t,n),10)),new ul(n,i,n.length)}function Xc(e){var n,t,i,r,c;for(n=new Ar,i=e,r=0,c=i.length;r<c;++r)t=i[r],n.a+=t.a,n.b+=t.b;return n}function dqe(e,n,t){var i;return i=new ke,qse(e,n,i,(Ee(),An),!0,!1),qse(e,t,i,Cn,!1,!1),i}function Jz(e,n,t){var i,r,c,s;return c=null,s=n,r=jw(s,"labels"),i=new mPe(e,t),c=(LQe(i.a,i.b,r),r),c}function gqe(e,n){return Xv(l6(o(M(n,(oo(),db)),86)),new pe(e.c.e.a-e.b.e.a,e.c.e.b-e.b.e.b))<=0}function mIn(e,n,t){return!l4(Nt(new Qe(null,new Ze(e.c,16)),new n4(new iPe(n,t)))).zd((q0(),Y3))}function X4(){X4=V,x0e=new G5e,A0e=new H5e,Vsn=new q5e,qsn=new V5e,Hsn=new W5e,M0e=(an(Hsn),new Gn)}function vIn(e,n){switch(n.g){case 0:U(e.b,631)||(e.b=new _He);break;case 1:U(e.b,632)||(e.b=new _De)}}function Nce(e,n){switch(n){case 7:return!!e.e&&e.e.i!=0;case 8:return!!e.d&&e.d.i!=0}return joe(e,n)}function wqe(e,n){for(;e.g==null&&!e.c?Rie(e):e.g==null||e.i!=0&&o(e.g[e.i-1],50).Ob();)n.Bi(j$(e))}function bqe(e,n){QE(e>=0,"Negative initial capacity"),QE(n>=0,"Non-positive load factor"),ko(this)}function pqe(e,n){var t;for(t=0;t<e.a.a.length;t++)if(!o(eFe(e.a,t),178).Lb(n))return!1;return!0}function yIn(e,n,t,i){var r;return r=$se(e,n,t,i),!r&&(r=y_n(e,t,i),r&&!j2(e,n,r))?null:r}function kIn(e,n,t,i){var r;return r=Ose(e,n,t,i),!r&&(r=tJ(e,t,i),r&&!j2(e,n,r))?null:r}function SIn(e,n,t,i,r){var c;return c=Tse(e,n),t&&zz(c),r&&(e=ZOn(e,n),i?h0=K4(e):h0=du(e.l,e.m,e.h)),c}function mqe(e,n,t){e.g=cU(e,n,(Ee(),An),e.b),e.d=cU(e,t,An,e.b),!(e.g.c==0||e.d.c==0)&&eXe(e)}function vqe(e,n,t){e.g=cU(e,n,(Ee(),Cn),e.j),e.d=cU(e,t,Cn,e.j),!(e.g.c==0||e.d.c==0)&&eXe(e)}function EIn(e,n,t){if(nt(n),t.Ob())for(Zee(n,ZFe(t.Pb()));t.Ob();)Zee(n,e.a),Zee(n,ZFe(t.Pb()));return n}function Dce(e){tn();var n,t,i;for(i=1,t=e.Jc();t.Ob();)n=t.Pb(),i=31*i+(n!=null?oi(n):0),i=i|0;return i}function Fce(e){var n,t,i;for(n=new us,i=Qn(e,0);i.b!=i.d.c;)t=o(Kn(i),8),p4(n,0,new Yr(t));return n}function hg(e){var n,t;for(t=new O(e.a.b);t.a<t.c.c.length;)n=o($(t),82),n.f.$b();$4n(e.b,e),mZe(e)}function ud(e){var n;return L1(e),n=new B0,e.a.zd(n)?(w4(),new hF(an(n.a))):(w4(),w4(),u1e)}function Lce(e){var n;return e.b<=0?!1:(n=Fa("MLydhHmsSDkK",ju(zr(e.c,0))),n>1||n>=0&&e.b<3)}function CIn(){Ft();var e;return PX||(e=kkn(r0("M",!0)),e=uI(r0("M",!1),e),PX=e,PX)}function yqe(e){switch(e.g){case 0:return new bSe;default:throw P(new yn(OO+(e.f!=null?e.f:""+e.g)))}}function kqe(e){switch(e.g){case 0:return new wSe;default:throw P(new yn(OO+(e.f!=null?e.f:""+e.g)))}}function Bce(e,n,t){switch(n){case 0:!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),j_(e.o,t);return}uU(e,n,t)}function Uz(e,n,t){this.g=e,this.e=new Ar,this.f=new Ar,this.d=new ei,this.b=new ei,this.a=n,this.c=t}function Gz(e,n,t,i){this.b=new ke,this.n=new ke,this.i=i,this.j=t,this.s=e,this.t=n,this.r=0,this.d=0}function Sqe(e,n,t,i){this.b=new Jn,this.g=new Jn,this.d=(X9(),yR),this.c=e,this.e=n,this.d=t,this.a=i}function Q4(e,n){if(!e.Ji()&&n==null)throw P(new yn("The 'no null' constraint is violated"));return n}function zce(e){switch(e.g){case 1:return vin;default:case 2:return 0;case 3:return yin;case 4:return ihe}}function jIn(e){return ye(e.c,(S3(),R0n)),Ure(e.a,K(Z(je((aJ(),mR)))))?new eEe:new IAe(e)}function TIn(e){for(;!e.d||!e.d.Ob();)if(e.b&&!Fk(e.b))e.d=o(o3(e.b),50);else return null;return e.d}function Kd(e){var n,t;for(n=0,t=0;t<e.length;t++)n=(n<<5)-n+(Tn(t,e.length),e.charCodeAt(t))|0;return n}function MIn(e){var n,t;n=o(M(e,(he(),es)),9),n&&(t=n.c,Eu(t.a,n),t.a.c.length==0&&Eu(wr(n).b,t))}function xIn(e,n){var t,i;return t=o(we(e,(ba(),UT)),15).a,i=o(we(n,UT),15).a,t==i||t<i?-1:t>i?1:0}function Eqe(e,n){var t,i,r;for(r=e.b;r;){if(t=e.a.Le(n,r.d),t==0)return r;i=t<0?0:1,r=r.a[i]}return null}function Hz(e,n){var t;return n===e?!0:U(n,229)?(t=o(n,229),Bt(e.Zb(),t.Zb())):!1}function Jce(e,n){return gZe(e,n)?(Xe(e.b,o(M(n,(he(),pd)),22),n),vt(e.a,n),!0):!1}function AIn(e,n){return zt(e,(he(),ci))&&zt(n,ci)?o(M(n,ci),15).a-o(M(e,ci),15).a:0}function IIn(e,n){return zt(e,(he(),ci))&&zt(n,ci)?o(M(e,ci),15).a-o(M(n,ci),15).a:0}function Cqe(e){return Sa?te(Hon,otn,567,0,0,1):o(ha(e.a,te(Hon,otn,567,e.a.c.length,0,1)),840)}function Ms(e){return mr(e)?Ae:Jb(e)?Vi:zb(e)?Mi:qte(e)||zte(e)?e.Pm:e.Pm||Array.isArray(e)&&D(Eon,1)||Eon}function h2(e,n,t){var i,r;return r=(i=new uF,i),Cc(r,n,t),Xn((!e.q&&(e.q=new ae(Zl,e,11,10)),e.q),r),r}function qz(e){var n,t,i,r;for(r=z6n(twn,e),t=r.length,i=te(Ae,ve,2,t,6,1),n=0;n<t;++n)i[n]=r[n];return i}function E3(e,n){var t,i,r,c,s;for(i=n,r=0,c=i.length;r<c;++r)t=i[r],s=new VFe(e),t.tf(s),mGn(s);ko(e.f)}function Uce(e,n){var t;n*2+1>=e.b.c.length||(Uce(e,2*n+1),t=2*n+2,t<e.b.c.length&&Uce(e,t),BXe(e,n))}function _In(e,n){var t,i;for(i=Qn(e,0);i.b!=i.d.c;)t=o(Kn(i),218),t.e.length>0&&(n.Ad(t),t.i&&rOn(t))}function Gce(e,n,t){var i;for(i=t-1;i>=0&&e[i]===n[i];i--);return i<0?0:IF(vr(e[i],wc),vr(n[i],wc))?-1:1}function $In(e,n){var t;return!e||e==n||!zt(n,(he(),ob))?!1:(t=o(M(n,(he(),ob)),9),t!=e)}function Vz(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.Yl()}}function jqe(e,n,t){return e.d[n.p][t.p]||(TOn(e,n,t),e.d[n.p][t.p]=!0,e.d[t.p][n.p]=!0),e.a[n.p][t.p]}function Tqe(e,n,t){var i,r;this.g=e,this.c=n,this.a=this,this.d=this,r=oHe(t),i=te(kon,_j,227,r,0,1),this.b=i}function OIn(e,n){var t,i;for(i=e.Zb().Bc().Jc();i.Ob();)if(t=o(i.Pb(),18),t.Gc(n))return!0;return!1}function Mqe(e,n,t){var i,r,c,s;for(an(t),s=!1,c=e.dd(n),r=t.Jc();r.Ob();)i=r.Pb(),c.Rb(i),s=!0;return s}function Wz(e,n){var t,i;return i=o(Sn(e.a,4),129),t=te(TX,kq,415,n,0,1),i!=null&&_o(i,0,t,0,i.length),t}function xqe(e,n){var t;return t=new yU((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 PIn(e,n){var t;return e===n?!0:U(n,92)?(t=o(n,92),que(X0(e),t.vc())):!1}function Aqe(e,n,t){var i,r;for(r=t.Jc();r.Ob();)if(i=o(r.Pb(),45),e.ze(n,i.kd()))return!0;return!1}function $_(){$_=V,yX=new kA("ELK",0),K2e=new kA("JSON",1),W2e=new kA("DOT",2),X2e=new kA("SVG",3)}function V9(){V9=V,hK=new dA(zG,0),PR=new dA(Ein,1),aK=new dA("FAN",2),fK=new dA("CONSTRAINT",3)}function W9(){W9=V,_be=new XF(qf,0),eK=new XF("MIDDLE_TO_MIDDLE",1),FT=new XF("AVOID_OVERLAP",2)}function zC(){zC=V,NR=new QF(qf,0),rpe=new QF("RADIAL_COMPACTION",1),cpe=new QF("WEDGE_COMPACTION",2)}function K9(){K9=V,WW=new HF("STACKED",0),VW=new HF("REVERSE_STACKED",1),RT=new HF("SEQUENCED",2)}function dl(){dl=V,a1e=new _F("CONCURRENT",0),xu=new _F("IDENTITY_FINISH",1),h1e=new _F("UNORDERED",2)}function sd(){sd=V,iN=new cL(Zhe,0),w1=new cL("INCLUDE_CHILDREN",1),gS=new cL("SEPARATE_CHILDREN",2)}function O_(){O_=V,I2e=new hw(15),jgn=new Ir((pt(),$h),I2e),dS=ky,T2e=X0n,M2e=zg,A2e=fv,x2e=fm}function Kz(){Kz=V,gV=sBe(F(D(hS,1),be,86,0,[(Qi(),Oc),Dc])),wV=sBe(F(D(hS,1),be,86,0,[Sl,Ma]))}function RIn(e){var n,t,i;for(n=0,i=te(br,ve,8,e.b,0,1),t=Qn(e,0);t.b!=t.d.c;)i[n++]=o(Kn(t),8);return i}function Xz(e,n,t){var i,r,c;for(i=new ei,c=Qn(t,0);c.b!=c.d.c;)r=o(Kn(c),8),vt(i,new Yr(r));Mqe(e,n,i)}function NIn(e,n){var t;t=je((aJ(),mR))!=null&&n.Rg()!=null?K(Z(n.Rg()))/K(Z(je(mR))):1,Ct(e.b,n,t)}function DIn(e,n){var t,i;return t=o(e.d.Ac(n),18),t?(i=e.e.hc(),i.Fc(t),e.e.d-=t.gc(),t.$b(),i):null}function Hce(e,n){var t,i;if(i=e.c[n],i!=0)for(e.c[n]=0,e.d-=i,t=n+1;t<e.a.length;)e.a[t]-=i,t+=t&-t}function qce(e){var n;if(n=e.a.c.length,n>0)return C4(n-1,e.a.c.length),Hd(e.a,n-1);throw P(new xIe)}function FIn(e,n,t){if(n<0)throw P(new nu(Jin+n));n<e.j.c.length?Bs(e.j,n,t):(_ze(e,n),ye(e.j,t))}function Iqe(e,n,t){if(e>n)throw P(new yn(nO+e+utn+n));if(e<0||n>t)throw P(new XY(nO+e+dfe+n+ffe+t))}function _qe(e){if(!e.a||!(e.a.i&8))throw P(new Tc("Enumeration class expected for layout option "+e.f))}function $qe(e){dBe.call(this,"The given string does not match the expected format for individual spacings.",e)}function Oqe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.Zl()}}function Xd(e){switch(e.c){case 0:return qL(),Rde;case 1:return new Ov(HXe(new Jv(e)));default:return new k_e(e)}}function Pqe(e){switch(e.gc()){case 0:return qL(),Rde;case 1:return new Ov(e.Jc().Pb());default:return new See(e)}}function Vce(e){var n;return n=(!e.a&&(e.a=new ae(Ed,e,9,5)),e.a),n.i!=0?L6n(o(G(n,0),684)):null}function LIn(e,n){var t;return t=nc(e,n),IF(FB(e,n),0)|jA(FB(e,t),0)?t:nc(Ij,FB(Z0(t,63),1))}function Wce(e,n,t){var i,r;return rp(n,e.c.length),i=t.Nc(),r=i.length,r==0?!1:(jte(e.c,n,i),!0)}function BIn(e,n){var t,i;for(t=e.a.length-1;n!=e.b;)i=n-1&t,Oi(e.a,n,e.a[i]),n=i;Oi(e.a,e.b,null),e.b=e.b+1&t}function zIn(e,n){var t,i;for(t=e.a.length-1,e.c=e.c-1&t;n!=e.c;)i=n+1&t,Oi(e.a,n,e.a[i]),n=i;Oi(e.a,e.c,null)}function Z4(e,n){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),Sz(e,n==null?null:(an(n),n)),e.C&&e.fl(null)}function d2(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(_b(e.a.c,0),ir(e.a,e.b),ir(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}function gp(e){var n;++e.j,e.i==0?e.g=null:e.i<e.g.length&&(n=e.g,e.g=e.$i(e.i),_o(n,0,e.g,0,e.i))}function JIn(e){var n,t;if(e==null)return null;for(n=0,t=e.length;n<t;n++)if(!TDe(e[n]))return e[n];return null}function P_(e){var n,t,i,r,c;for(c=1,t=e,i=0,r=t.length;i<r;++i)n=t[i],c=31*c+(n!=null?oi(n):0),c=c|0;return c}function it(e){var n,t,i,r,c;for(n={},i=e,r=0,c=i.length;r<c;++r)t=i[r],n[":"+(t.f!=null?t.f:""+t.g)]=t;return n}function Rqe(e,n,t){var i,r,c,s;for(r=t,c=0,s=r.length;c<s;++c)if(i=r[c],e.b.ze(n,i.jd()))return i;return null}function Qz(e,n){return!e||n&&!e.j||U(e,127)&&o(e,127).a.b==0?0:e.ff()}function R_(e,n){return!e||n&&!e.k||U(e,127)&&o(e,127).a.a==0?0:e.gf()}function Nqe(e,n){var t,i,r;t=e,r=0;do{if(t==n)return r;if(i=t.e,!i)throw P(new hE);t=wr(i),++r}while(!0)}function Dqe(e){var n,t,i;for(i=0,t=new kn(jn(e.a.Jc(),new q));Dn(t);)n=o(In(t),17),n.c.i==n.d.i||++i;return i}function Fqe(e,n){var t,i,r;for(r=n-e.f,i=new O(e.d);i.a<i.c.c.length;)t=o($(i),319),FVe(t,t.e,t.f+r);e.f=n}function UIn(e){var n;for(nt(e),lte(!0,"numberToAdvance must be nonnegative"),n=0;n<0&&Dn(e);n++)In(e);return n}function Lqe(e){x_e(),_A(this),EI(this),this.e=e,jZe(this,e),this.g=e==null?Mu:Bc(e),this.a="",this.b=e,this.a=""}function Kce(){this.a=new dSe,this.f=new pAe(this),this.b=new mAe(this),this.i=new vAe(this),this.e=new yAe(this)}function Bqe(){I4n.call(this,new Tre(dp(16))),Js(2,Bnn),this.b=2,this.a=new pie(null,null,0,null),aE(this.a,this.a)}function dg(){dg=V,NT=new aA("BARYCENTER",0),G7=new aA(Ktn,1),jR=new aA(Xtn,2),CR=new aA("MEDIAN",3)}function X9(){X9=V,DW=new JF("DUMMY_NODE_OVER",0),Wwe=new JF("DUMMY_NODE_UNDER",1),yR=new JF("EQUAL",2)}function Y4(){Y4=V,KW=new qF("CONSERVATIVE",0),fbe=new qF("CONSERVATIVE_SOFT",1),U7=new qF("SLOPPY",2)}function GIn(e){var n,t;for(t=new O(e.r);t.a<t.c.c.length;)if(n=o($(t),9),e.n[n.p]<=0)return n;return null}function zqe(e,n){var t;for(t=0;t<n.length;t++)if(e==(Tn(t,n.length),n.charCodeAt(t)))return!0;return!1}function HIn(e,n){return n<e.length&&(Tn(n,e.length),e.charCodeAt(n)!=63)&&(Tn(n,e.length),e.charCodeAt(n)!=35)}function Jqe(e,n,t,i){var r,c;e.a=n,c=i?0:1,e.f=(r=new wXe(e.c,e.a,t,c),new XZe(t,e.a,r,e.e,e.b,e.c==(dg(),G7)))}function gg(e,n){var t,i,r;i=e.Wk(n,null),r=null,n&&(r=(s4(),t=new uw,t),B4(r,e.r)),i=ga(e,r,i),i&&i.mj()}function qIn(e,n){var t,i;for(i=ws(e.d,1)!=0,t=!0;t;)t=!1,t=n.c.kg(n.e,i),t=t|bj(e,n,i,!1),i=!i;gce(e)}function Xce(e,n){var t,i,r;return i=!1,t=n.q.d,n.d<e.b&&(r=Bse(n.q,e.b),n.q.d>r&&(TKe(n.q,r),i=t!=n.q.d)),i}function Uqe(e,n){var t,i,r,c,s,a,d,w;return d=n.i,w=n.j,i=e.f,r=i.i,c=i.j,s=d-r,a=w-c,t=m.Math.sqrt(s*s+a*a),t}function Qce(e,n){var t,i;return i=Q_(e),i||(t=(zU(),GQe(n)),i=new mIe(t),Xn(i.Cl(),e)),i}function JC(e,n){var t,i;return t=o(e.c.Ac(n),18),t?(i=e.hc(),i.Fc(t),e.d-=t.gc(),t.$b(),e.mc(i)):e.jc()}function VIn(e){var n;if(!(e.c.c<0?e.a>=e.c.b:e.a<=e.c.b))throw P(new Gc);return n=e.a,e.a+=e.c.c,++e.b,ge(n)}function WIn(e){var n,t;if(e==null)return!1;for(n=0,t=e.length;n<t;n++)if(!TDe(e[n]))return!1;return!0}function Gqe(e,n){var t;for(t=0;t<n.length;t++)if(e==(Tn(t,n.length),n.charCodeAt(t)))return!0;return!1}function Hqe(e){var n;if(e.c!=0)return e.c;for(n=0;n<e.a.length;n++)e.c=e.c*33+(e.a[n]&-1);return e.c=e.c*e.e,e.c}function N_(e){var n;return Nn(e.a!=e.b),n=e.d.a[e.a],YRe(e.b==e.d.c&&n!=null),e.c=e.a,e.a=e.a+1&e.d.a.length-1,n}function KIn(e){var n;return n=new iGe(e),aC(e.a,xsn,new io(F(D(dT,1),sn,377,0,[n]))),n.d&&ye(n.f,n.d),n.f}function Go(e,n){var t;return Fc(e)&&Fc(n)&&(t=e-n,!isNaN(t))?t:aue(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n)}function XIn(e,n,t){var i;i=new gQe(e,n),Xe(e.r,n.$f(),i),t&&!S9(e.u)&&(i.c=new rBe(e.d),cu(n.Pf(),new MMe(i)))}function Zz(e){var n;return n=new sne(e.a),po(n,e),oe(n,(he(),Gt),e),n.o.a=e.g,n.o.b=e.f,n.n.a=e.i,n.n.b=e.j,n}function Yz(e){return(Ee(),_u).Gc(e.j)?K(Z(M(e,(he(),y5)))):Xc(F(D(br,1),ve,8,0,[e.i.n,e.n,e.a])).b}function QIn(e){var n;return n=AA(Ghn),o(M(e,(he(),Ko)),22).Gc((gc(),v5))&&wt(n,(kr(),Oo),(Mr(),_P)),n}function ZIn(e){var n,t,i,r;for(r=new Ji,i=new O(e);i.a<i.c.c.length;)t=o($(i),26),n=Jzn(t),Wr(r,n);return r}function YIn(e,n,t){var i,r;for(r=n.a.a.ec().Jc();r.Ob();)if(i=o(r.Pb(),60),zLe(e,i,t))return!0;return!1}function e_n(e,n,t,i){var r,c;for(c=e.Jc();c.Ob();)r=o(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 n_n(e,n,t,i,r,c,s,a){var d;for(d=t;c<s;)d>=i||n<t&&a.Le(e[n],e[d])<=0?Oi(r,c++,e[n++]):Oi(r,c++,e[d++])}function Zce(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 t_n(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 X1(e,n){var t,i,r,c;return c=(r=e?Q_(e):null,NXe((i=n,r&&r.El(),i))),c==n&&(t=Q_(e),t&&t.El()),c}function Yce(e,n,t){var i,r;return r=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&(i=new gr(e,1,1,r,n),t?t.lj(i):t=i),t}function qqe(e,n,t){var i,r;return r=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&(i=new gr(e,1,3,r,n),t?t.lj(i):t=i),t}function Vqe(e,n,t){var i,r;return r=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&(i=new gr(e,1,0,r,n),t?t.lj(i):t=i),t}function Wqe(e){var n,t;if(e!=null)for(t=0;t<e.length;++t)n=e[t],n&&(o(n.g,374),n.i)}function eoe(e,n){nt(e);try{return e.Gc(n)}catch(t){if(t=Fi(t),U(t,211)||U(t,172))return!1;throw P(t)}}function i_n(e,n){nt(e);try{return e.Kc(n)}catch(t){if(t=Fi(t),U(t,211)||U(t,172))return!1;throw P(t)}}function Kqe(e,n){nt(e);try{return e._b(n)}catch(t){if(t=Fi(t),U(t,211)||U(t,172))return!1;throw P(t)}}function wp(e,n){nt(e);try{return e.xc(n)}catch(t){if(t=Fi(t),U(t,211)||U(t,172))return null;throw P(t)}}function r_n(e,n){nt(e);try{return e.Ac(n)}catch(t){if(t=Fi(t),U(t,211)||U(t,172))return null;throw P(t)}}function Xqe(e,n,t){var i,r;for(r=e.Jc();r.Ob();){if(i=o(r.Pb(),9),i==n)return-1;if(i==t)return 1}return 0}function c_n(e,n,t){var i,r,c,s;for(i=t/e.gc(),r=0,s=e.Jc();s.Ob();)c=o(s.Pb(),186),Fqe(c,c.f+i*r),sRn(c,n,i),++r}function o_n(e){var n,t,i;for(i=new O(e.b);i.a<i.c.c.length;)t=o($(i),218),n=t.c.ig()?t.f:t.a,n&&eHn(n,t.j)}function u_n(e){var n,t,i;for(i=0,t=new O(e.a);t.a<t.c.c.length;)n=o($(t),173),i=m.Math.max(i,n.g);return i}function Qqe(e,n){var t;return t=new da(e),Gh(t,(pn(),Gi)),oe(t,(he(),Gt),n),oe(t,(Se(),Ai),(yr(),Ro)),t}function noe(e,n){switch(n){case 1:!e.n&&(e.n=new ae(no,e,1,7)),Vn(e.n);return;case 2:J4(e,null);return}Mce(e,n)}function Zqe(e){switch(e.g){case 0:return new uSe;case 1:return new lSe;case 2:return new sSe;default:return null}}function e6(e){var n,t;return e>-129&&e<128?(VDe(),n=e+128,t=Xde[n],!t&&(t=Xde[n]=new rY(e)),t):new rY(e)}function ge(e){var n,t;return e>-129&&e<128?(BDe(),n=e+128,t=qde[n],!t&&(t=qde[n]=new oY(e)),t):new oY(e)}function s_n(e,n,t,i,r){n==0||i==0||(n==1?r[i]=Hoe(r,t,i,e[0]):i==1?r[n]=Hoe(r,e,n,t[0]):QFn(e,t,r,n,i))}function Yqe(e,n){var t;e.c.length!=0&&(t=o(ha(e,te(Ih,r1,9,e.c.length,0,1)),199),tne(t,new Z6e),cQe(t,n))}function eVe(e,n){var t;e.c.length!=0&&(t=o(ha(e,te(Ih,r1,9,e.c.length,0,1)),199),tne(t,new Y6e),cQe(t,n))}function nVe(e,n){var t;e.a.c.length>0&&(t=o(Te(e.a,e.a.c.length-1),565),Jce(t,n))||ye(e.a,new dJe(n))}function l_n(e){Ds();var n,t;n=e.d.c-e.e.c,t=o(e.g,156),cu(t.b,new fxe(n)),cu(t.c,new axe(n)),Jr(t.i,new hxe(n))}function tVe(e){var n;return n=new I1,n.a+="VerticalSegment ",Lo(n,e.e),n.a+=" ",mt(n,mne(new vF,new O(e.k))),n.a}function f_n(e,n){var t;e.c=n,e.a=s$n(n),e.a<54&&(e.f=(t=n.d>1?aze(n.a[0],n.a[1]):aze(n.a[0],0),og(n.e>0?t:Vd(t))))}function eJ(e,n){var t,i,r;for(t=0,r=Qc(e,n).Jc();r.Ob();)i=o(r.Pb(),12),t+=M(i,(he(),es))!=null?1:0;return t}function g2(e,n,t){var i,r,c;for(i=0,c=Qn(e,0);c.b!=c.d.c&&(r=K(Z(Kn(c))),!(r>t));)r>=n&&++i;return i}function a_n(e){var n;return n=o(fa(e.c.c,""),233),n||(n=new a3(u4(o4(new _v,""),"Other")),wg(e.c.c,"",n)),n}function Q9(e){var n;return e.Db&64?bf(e):(n=new Dl(bf(e)),n.a+=" (name: ",Sc(n,e.zb),n.a+=")",n.a)}function toe(e,n,t){var i,r;return r=e.sb,e.sb=n,e.Db&4&&!(e.Db&1)&&(i=new gr(e,1,4,r,n),t?t.lj(i):t=i),t}function UC(e,n,t){var i;e.Zi(e.i+1),i=e.Xi(n,t),n!=e.i&&_o(e.g,n,e.g,n+1,e.i-n),Oi(e.g,n,i),++e.i,e.Ki(n,t),e.Li()}function ioe(e,n,t){var i,r;return r=e.r,e.r=n,e.Db&4&&!(e.Db&1)&&(i=new gr(e,1,8,r,e.r),t?t.lj(i):t=i),t}function h_n(e,n,t){var i,r;return i=new rd(e.e,3,13,null,(r=n.c,r||(nn(),_a)),e1(e,n),!1),t?t.lj(i):t=i,t}function d_n(e,n,t){var i,r;return i=new rd(e.e,4,13,(r=n.c,r||(nn(),_a)),null,e1(e,n),!1),t?t.lj(i):t=i,t}function g_n(e,n){var t,i,r,c;if(n.cj(e.a),c=o(Sn(e.a,8),1997),c!=null)for(t=c,i=0,r=t.length;i<r;++i)null.Sm()}function Qd(e,n){var t,i;return t=o(n,681),i=t.cl(),!i&&t.dl(i=U(n,88)?new TPe(e,o(n,29)):new ize(e,o(n,159))),i}function iVe(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 w_n(e){return e?e.i&1?e==Pu?Mi:e==ut?tr:e==Em?u5:e==Er?Vi:e==mb?eb:e==bv?nb:e==Vu?Q3:f7:e:null}function Bt(e,n){return mr(e)?Ke(e,n):Jb(e)?WNe(e,n):zb(e)?(an(e),ne(e)===ne(n)):qte(e)?e.Fb(n):zte(e)?UPe(e,n):Gie(e,n)}function rVe(e){var n;return Go(e,0)<0&&(e=q1(PSn(Fc(e)?Bl(e):e))),n=lt(Z0(e,32)),64-(n!=0?fj(n):fj(lt(e))+32)}function GC(e,n){var t;return t=new B0,e.a.zd(t)?(w4(),new hF(an(zUe(e,t.a,n)))):(L1(e),w4(),w4(),u1e)}function Z9(e,n){switch(n.g){case 2:case 1:return Qc(e,n);case 3:case 4:return As(Qc(e,n))}return tn(),tn(),oc}function b_n(e,n){var t;return n.a&&(t=n.a.a.length,e.a?mt(e.a,e.b):e.a=new Ns(e.d),wze(e.a,n.a,n.d.length,t)),e}function p_n(e){K$();var n,t,i,r;for(t=yJ(),i=0,r=t.length;i<r;++i)if(n=t[i],Kc(n.a,e,0)!=-1)return n;return rV}function roe(e){throw Lz(),P(new C_e("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function cVe(e,n,t){if(e<0||n>t)throw P(new nu(nO+e+dfe+n+", size: "+t));if(e>n)throw P(new yn(nO+e+utn+n))}function gl(e,n,t){if(n<0)sse(e,t);else{if(!t.pk())throw P(new yn(a0+t.ve()+Q8));o(t,69).uk().Ck(e,e.ei(),n)}}function nJ(e,n,t){return m.Math.abs(n-e)<MO||m.Math.abs(t-e)<MO?!0:n-e>MO?e-t>MO:t-e>MO}function coe(e,n,t,i){switch(n){case 1:return!e.n&&(e.n=new ae(no,e,1,7)),e.n;case 2:return e.k}return eue(e,n,t,i)}function oVe(e){var n;return e.Db&64?bf(e):(n=new Dl(bf(e)),n.a+=" (source: ",Sc(n,e.d),n.a+=")",n.a)}function Zd(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,2,t,n))}function ooe(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,8,t,n))}function uoe(e,n){var t;t=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,9,t,n))}function Yd(e,n){var t;t=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,3,t,n))}function D_(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,8,t,n))}function m_n(e,n,t){var i,r;return r=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&(i=new gr(e,1,5,r,e.a),t?jue(t,i):t=i),t}function Y9(e,n){var t;return e.b==-1&&e.a&&(t=e.a.nk(),e.b=t?e.c.Eh(e.a.Jj(),t):bi(e.c.Ah(),e.a)),e.c.vh(e.b,n)}function uVe(e,n){var t,i;for(i=new $n(e);i.e!=i.i.gc();)if(t=o(Rn(i),29),ne(n)===ne(t))return!0;return!1}function sVe(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function soe(e){var n,t;return n=e.k,n==(pn(),Wi)?(t=o(M(e,(he(),ao)),64),t==(Ee(),En)||t==Ln):!1}function lVe(e){var n;return n=Kie(e),o9(n.a,0)?(Db(),Db(),Xq):(Db(),new CL(AF(n.a,0)?pre(n)/og(n.a):0))}function v_n(e,n){var t;if(t=wj(e,n),U(t,335))return o(t,38);throw P(new yn(a0+n+"' is not a valid attribute"))}function e8(e,n,t){var i;if(i=e.gc(),n>i)throw P(new Wb(n,i));if(e.Qi()&&e.Gc(t))throw P(new yn(nT));e.Ei(n,t)}function fVe(e,n){var t,i;for(i=new $n(e);i.e!=i.i.gc();)if(t=o(Rn(i),143),ne(n)===ne(t))return!0;return!1}function y_n(e,n,t){var i,r,c;return c=(r=m6(e.b,n),r),c&&(i=o(G$(jC(e,c),""),29),i)?$se(e,i,n,t):null}function tJ(e,n,t){var i,r,c;return c=(r=m6(e.b,n),r),c&&(i=o(G$(jC(e,c),""),29),i)?Ose(e,i,n,t):null}function k_n(e){var n,t,i;for(i=0,t=e.length,n=0;n<t;n++)e[n]==32||e[n]==13||e[n]==10||e[n]==9||(e[i++]=e[n]);return i}function HC(e,n){this.e=n,this.a=rVe(e),this.a<54?this.f=og(e):this.c=(Va(),Go(e,0)>=0?Z1(e):j9(Z1(Vd(e))))}function aVe(e,n,t,i,r,c){this.e=new ke,this.f=(dc(),J7),ye(this.e,e),this.d=n,this.a=t,this.b=i,this.f=r,this.c=c}function Kt(e,n){return e<n?-1:e>n?1:e==n?e==0?Kt(1/e,1/n):0:isNaN(e)?isNaN(n)?0:1:-1}function S_n(e){var n;return n=e.a[e.c-1&e.a.length-1],n==null?null:(e.c=e.c-1&e.a.length-1,Oi(e.a,e.c,null),n)}function hVe(e){var n,t;for(t=e.p.a.ec().Jc();t.Ob();)if(n=o(t.Pb(),217),n.f&&e.b[n.c]<-1e-10)return n;return null}function E_n(e){var n,t,i;for(n=new ke,i=new O(e.b);i.a<i.c.c.length;)t=o($(i),591),ir(n,o(t.Af(),18));return n}function C_n(e){var n;if(!e.a)throw P(new Tc("Cannot offset an unassigned cut."));n=e.c-e.b,e.b+=n,_Le(e,n),$Le(e,n)}function F_(){F_=V,Xpe=new tL("EQUAL_BETWEEN_STRUCTURES",0),Qpe=new tL("TO_ASPECT_RATIO",1),FK=new tL(qf,2)}function qC(){qC=V,UR=new iL("P1_STRUCTURE",0),GR=new iL("P2_PROCESSING_ORDER",1),HR=new iL("P3_EXECUTION",2)}function C3(){C3=V,L2e=new uL("PARALLEL_NODE",0),bm=new uL("HIERARCHICAL_NODE",1),lN=new uL("ROOT_NODE",2)}function n6(){n6=V,nM=new bA(Zhe,0),tN=new bA("CONTAINER",1),b2e=new bA("PARENT",2),p2e=new bA("ROOT",3)}function ld(){ld=V,dX=new pA(N8,0),tM=new pA("POLYLINE",1),F5=new pA("ORTHOGONAL",2),Cy=new pA("SPLINES",3)}function Qi(){Qi=V,xa=new $E(N8,0),Dc=new $E(G3,1),Oc=new $E(U3,2),Ma=new $E(RG,3),Sl=new $E("UP",4)}function j_n(e,n){n.Tg("Sort end labels",1),Ii(Nt(Lc(new Qe(null,new Ze(e.b,16)),new N6e),new D6e),new F6e),n.Ug()}function loe(e,n){switch(e.b.g){case 0:case 1:return n;case 2:case 3:return new lf(n.d,0,n.a,n.b);default:return null}}function foe(e){switch(e.g){case 1:return Cn;case 2:return En;case 3:return An;case 4:return Ln;default:return eo}}function VC(e){switch(e.g){case 1:return Ln;case 2:return Cn;case 3:return En;case 4:return An;default:return eo}}function L_(e){switch(e.g){case 1:return An;case 2:return Ln;case 3:return Cn;case 4:return En;default:return eo}}function dVe(e){switch(e.g){case 2:return Dc;case 1:return Oc;case 4:return Ma;case 3:return Sl;default:return xa}}function T_n(e){switch(e){case 0:return new QIe;case 1:return new KIe;case 2:return new XIe;default:throw P(new hE)}}function M_n(e){switch(o(M(e,(he(),_g)),315).g){case 1:oe(e,_g,(id(),ry));break;case 2:oe(e,_g,(id(),q2))}}function gVe(){gVe=V,c1n=Ha(Ha(Vk(Ha(Ha(Vk(wt(new Di,(I3(),V7),(S8(),YW)),W7),Mbe),Abe),K7),Ebe),Ibe)}function n8(e,n,t){var i,r;return e.Nj()?(r=e.Oj(),i=fU(e,n,t),e.Hj(e.Gj(7,ge(t),i,n,r)),i):fU(e,n,t)}function iJ(e,n){var t,i,r;e.d==null?(++e.e,--e.f):(r=n.jd(),t=n.yi(),i=(t&Rt)%e.d.length,mMn(e,i,QQe(e,i,t,r)))}function t6(e,n){var t;t=(e.Bb&vf)!=0,n?e.Bb|=vf:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,10,t,n))}function i6(e,n){var t;t=(e.Bb&Hu)!=0,n?e.Bb|=Hu:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,15,t,n))}function r6(e,n){var t;t=(e.Bb&$p)!=0,n?e.Bb|=$p:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,12,t,n))}function c6(e,n){var t;t=(e.Bb&c0)!=0,n?e.Bb|=c0:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,11,t,n))}function x_n(e,n){var t;return t=Kt(e.b.c,n.b.c),t!=0||(t=Kt(e.a.a,n.a.a),t!=0)?t:Kt(e.a.b,n.a.b)}function B_(e){var n,t;return t=o(M(e,(Se(),Xs)),86),t==(Qi(),xa)?(n=K(Z(M(e,tR))),n>=1?Dc:Ma):t}function A_n(e){var n,t;for(t=HQe(zs(e)).Jc();t.Ob();)if(n=ot(t.Pb()),E8(e,n))return zTn((uOe(),gwn),n);return null}function I_n(e,n,t){var i,r;for(r=e.a.ec().Jc();r.Ob();)if(i=o(r.Pb(),9),FC(t,o(Te(n,i.p),18)))return i;return null}function __n(e,n,t){var i,r;for(r=U(n,103)&&o(n,19).Bb&cc?new aL(n,e):new H4(n,e),i=0;i<t;++i)i$(r);return r}function $_n(e,n){var t,i,r,c,s;for(s=wu(e.e.Ah(),n),c=0,t=o(e.g,122),r=0;r<e.i;++r)i=t[r],s.$l(i.Jk())&&++c;return c}function wVe(e,n,t){var i,r;if(e.c)Fue(e.c,n,t);else for(r=new O(e.b);r.a<r.c.c.length;)i=o($(r),167),wVe(i,n,t)}function rJ(e,n){var t,i;for(i=new O(n);i.a<i.c.c.length;)t=o($(i),49),Eu(e.b.b,t.b),ZEn(o(t.a,194),o(t.b,82))}function aoe(e,n){var t,i,r;for(an(n),t=!1,i=new O(e);i.a<i.c.c.length;)r=$(i),n.Gc(r)&&(C9(i),t=!0);return t}function O_n(e){var n,t;for(t=eg(new I1,91),n=!0;e.Ob();)n||(t.a+=su),n=!1,Lo(t,e.Pb());return(t.a+="]",t).a}function hoe(e){var n;return n=te(jl,Xa,30,2,15,1),e-=cc,n[0]=(e>>10)+Rj&Zi,n[1]=(e&1023)+56320&Zi,Ga(n,0,n.length)}function doe(e,n){var t;t=(e.Bb&cc)!=0,n?e.Bb|=cc:e.Bb&=-65537,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,20,t,n))}function o6(e,n){var t;t=(e.Bb&Ka)!=0,n?e.Bb|=Ka:e.Bb&=-16385,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,16,t,n))}function cJ(e,n){var t;t=(e.Bb&vo)!=0,n?e.Bb|=vo:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,18,t,n))}function goe(e,n){var t;t=(e.Bb&vo)!=0,n?e.Bb|=vo:e.Bb&=-32769,e.Db&4&&!(e.Db&1)&&Lt(e,new ff(e,1,18,t,n))}function Qc(e,n){var t;return e.i||use(e),t=o(Ec(e.g,n),49),t?new z1(e.j,o(t.a,15).a,o(t.b,15).a):(tn(),tn(),oc)}function P_n(e,n,t){var i,r;return i=o(n.mf(e.a),35),r=o(t.mf(e.a),35),i!=null&&r!=null?_C(i,r):i!=null?-1:r!=null?1:0}function woe(e,n,t){var i,r;return i=($1(),r=new bx,r),f_(i,n),a_(i,t),e&&Xn((!e.a&&(e.a=new Xi(el,e,5)),e.a),i),i}function boe(e,n,t){var i;return i=0,n&&(Vm(e.a)?i+=n.f.a/2:i+=n.f.b/2),t&&(Vm(e.a)?i+=t.f.a/2:i+=t.f.b/2),i}function _w(e,n,t){var i;return i=e.a.get(n),e.a.set(n,t===void 0?null:t),i===void 0?(++e.c,++e.b.g):++e.d,i}function oJ(e){var n;return e.Db&64?bf(e):(n=new Dl(bf(e)),n.a+=" (identifier: ",Sc(n,e.k),n.a+=")",n.a)}function z_(e){var n;switch(e.gc()){case 0:return nI(),zq;case 1:return new _L(nt(e.Xb(0)));default:return n=e,new LB(n)}}function R_n(e){switch(o(M(e,(Se(),vd)),222).g){case 1:return new j9e;case 3:return new I9e;default:return new C9e}}function N_n(e){var n;return n=kp(e),n>34028234663852886e22?Ci:n<-34028234663852886e22?hr:n}function nc(e,n){var t;return Fc(e)&&Fc(n)&&(t=e+n,Pj<t&&t<kg)?t:q1(oIn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function Kr(e,n){var t;return Fc(e)&&Fc(n)&&(t=e*n,Pj<t&&t<kg)?t:q1(hHn(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function zl(e,n){var t;return Fc(e)&&Fc(n)&&(t=e-n,Pj<t&&t<kg)?t:q1(eqe(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n))}function D_n(e,n,t){var i;try{EIn(e,n,t)}catch(r){throw r=Fi(r),U(r,595)?(i=r,P(new dre(i))):P(r)}return n}function Ri(e){var n,t,i;for(n=new ke,i=new O(e.j);i.a<i.c.c.length;)t=o($(i),12),ye(n,t.e);return nt(n),new f9(n)}function Ua(e){var n,t,i;for(n=new ke,i=new O(e.j);i.a<i.c.c.length;)t=o($(i),12),ye(n,t.b);return nt(n),new f9(n)}function ui(e){var n,t,i;for(n=new ke,i=new O(e.j);i.a<i.c.c.length;)t=o($(i),12),ye(n,t.g);return nt(n),new f9(n)}function F_n(e,n,t){var i;i=t,!i&&(i=Ite(new Dv,0)),i.Tg(Rtn,2),CWe(e.b,n,i.dh(1)),THn(e,n,i.dh(1)),CVn(n,i.dh(1)),i.Ug()}function L_n(e,n,t){var i;t.Tg("Straight Line Edge Routing",1),t.bh(n,dhe),i=o(we(n,(Ym(),rv)),26),fen(e,i),t.bh(n,IO)}function poe(e,n){e.n.c.length==0&&ye(e.n,new $I(e.s,e.t,e.i)),ye(e.b,n),Xoe(o(Te(e.n,e.n.c.length-1),208),n),QYe(e,n)}function B_n(e){var n,t;for(t=sLn(zs(ip(e))).Jc();t.Ob();)if(n=ot(t.Pb()),E8(e,n))return JTn((sOe(),wwn),n);return null}function bVe(e){var n,t,i,r;for(n=new ANe(e.Pd().gc()),r=0,i=p3(e.Pd().Jc());i.Ob();)t=i.Pb(),NEn(n,t,ge(r++));return gDn(n.a)}function z_n(e){var n,t,i;for(t=0,i=e.length;t<i;t++)if(e[t]==null)throw P(new Lv("at index "+t));return n=e,new io(n)}function Q1(e){if(e.c)Q1(e.c);else if(e.d)throw P(new Tc("Stream already terminated, can't be modified or used"))}function pVe(e,n,t){switch(n.g){case 1:e.b-=t.b/2;break;case 3:e.b+=t.b/2;break;case 4:e.a-=t.a/2;break;case 2:e.a+=t.a/2}}function J_n(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 mVe(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 vVe(e,n,t,i,r){wRe(this),this.b=e,this.d=te(Ih,r1,9,n.a.c.length,0,1),this.f=t,ha(n.a,this.d),this.g=i,this.c=r}function uJ(){Oue();var e,n,t;t=RWn+++Date.now(),e=qr(m.Math.floor(t*Dj))&eO,n=qr(t-e*lfe),this.a=e^1502,this.b=n^AG}function U_n(e){return Kz(),dn(),!!(mVe(o(e.a,82).j,o(e.b,86))||o(e.a,82).d.e!=0&&mVe(o(e.a,82).j,o(e.b,86)))}function sJ(e,n){var t,i,r;for(r=0,i=o(n.Kb(e),20).Jc();i.Ob();)t=o(i.Pb(),17),xe(Me(M(t,(he(),s1))))||++r;return r}function ze(e){var n,t,i,r;return t=(n=o(Nf((i=e.Pm,r=i.f,r==Yn?i:r)),10),new ul(n,o(sf(n,n.length),10),0)),gf(t,e),t}function G_n(e,n){var t,i,r;i=t2(n),r=K(Z(pp(i,(Se(),Ef)))),t=m.Math.max(0,r/2-.5),l8(n,t,1),ye(e,new IOe(n,t))}function yVe(e,n){var t,i;for(t=Qn(e,0);t.b!=t.d.c;){if(i=dE(Z(Kn(t))),i==n)return;if(i>n){oze(t);break}}bI(t,n)}function Le(e,n){var t,i,r,c,s;if(t=n.f,wg(e.c.d,t,n),n.g!=null)for(r=n.g,c=0,s=r.length;c<s;++c)i=r[c],wg(e.c.e,i,n)}function H_n(e,n,t,i){var r,c,s;for(r=n+1;r<t;++r)for(c=r;c>n&&i.Le(e[c-1],e[c])>0;--c)s=e[c],Oi(e,c,e[c-1]),Oi(e,c-1,s)}function wl(e,n,t,i){if(n<0)Dse(e,t,i);else{if(!t.pk())throw P(new yn(a0+t.ve()+Q8));o(t,69).uk().Ak(e,e.ei(),n,i)}}function q_n(e,n){var t;if(t=wj(e.Ah(),n),U(t,103))return o(t,19);throw P(new yn(a0+n+"' is not a valid reference"))}function J_(e,n){if(n==e.d)return e.e;if(n==e.e)return e.d;throw P(new yn("Node "+n+" not part of edge "+e))}function moe(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 coe(e,n,t,i)}function V_n(e){return e.k!=(pn(),xi)?!1:r2(new Qe(null,new Yb(new kn(jn(ui(e).a.Jc(),new q)))),new i9e)}function xs(){xs=V,TT=new TE(qf,0),M7=new TE("FIRST",1),md=new TE(Qtn,2),x7=new TE("LAST",3),Og=new TE(Ztn,4)}function t8(){t8=V,y7=new sA("LAYER_SWEEP",0),O0e=new sA("MEDIAN_LAYER_SWEEP",1),mT=new sA(qG,2),P0e=new sA(qf,3)}function U_(){U_=V,Mpe=new eL("ASPECT_RATIO_DRIVEN",0),$K=new eL("MAX_SCALE_DRIVEN",1),Tpe=new eL("AREA_DRIVEN",2)}function G_(){G_=V,vX=new yA(nhe,0),G2e=new yA("GROUP_DEC",1),q2e=new yA("GROUP_MIXED",2),H2e=new yA("GROUP_INC",3)}function W_n(e,n){return Ke(n.b&&n.c?cg(n.b)+"->"+cg(n.c):"e_"+oi(n),e.b&&e.c?cg(e.b)+"->"+cg(e.c):"e_"+oi(e))}function K_n(e,n){return Ke(n.b&&n.c?cg(n.b)+"->"+cg(n.c):"e_"+oi(n),e.b&&e.c?cg(e.b)+"->"+cg(e.c):"e_"+oi(e))}function $w(e,n){return ra(),df(o0),m.Math.abs(e-n)<=o0||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:W0(isNaN(e),isNaN(n))}function voe(e){aJ(),this.c=af(F(D(eKn,1),sn,829,0,[dhn])),this.b=new Jn,this.a=e,Ct(this.b,mR,1),cu(ghn,new AAe(this))}function i8(e){var n;this.a=(n=o(e.e&&e.e(),10),new ul(n,o(sf(n,n.length),10),0)),this.b=te(ur,sn,1,this.a.a.length,5,1)}function Bc(e){var n;return Array.isArray(e)&&e.Rm===hu?H0(Ms(e))+"@"+(n=oi(e)>>>0,n.toString(16)):e.toString()}function X_n(e){var n;return e==null?!0:(n=e.length,n>0&&(Tn(n-1,e.length),e.charCodeAt(n-1)==58)&&!lJ(e,ES,CS))}function lJ(e,n,t){var i,r;for(i=0,r=e.length;i<r;i++)if(Bz((Tn(i,e.length),e.charCodeAt(i)),n,t))return!0;return!1}function Q_n(e,n){var t,i,r;for(i=SJn(e,n),r=i[i.length-1]/2,t=0;t<i.length;t++)if(i[t]>=r)return n.c+t;return n.c+n.b.gc()}function kVe(e,n){v4();var t,i,r,c;for(i=dUe(e),r=n,D4(i,0,i.length,r),t=0;t<i.length;t++)c=OPn(e,i[t],t),t!=c&&n8(e,t,c)}function yoe(e,n){var t,i,r,c,s,a;for(i=0,t=0,c=n,s=0,a=c.length;s<a;++s)r=c[s],r>0&&(i+=r,++t);return t>1&&(i+=e.d*(t-1)),i}function koe(e){var n,t,i;for(i=new Nd,i.a+="[",n=0,t=e.gc();n<t;)Sc(i,g9(e.Ti(n))),++n<t&&(i.a+=su);return i.a+="]",i.a}function Soe(e,n,t,i,r){var c,s,a;for(s=r;n.b!=n.c;)c=o(o3(n),9),a=o(Qc(c,i).Xb(0),12),e.d[a.p]=s++,vn(t.c,a);return s}function Z_n(e){var n,t,i,r,c;return c=Pue(e),t=mE(e.c),i=!t,i&&(r=new J0,hf(c,"knownLayouters",r),n=new cIe(r),Jr(e.c,n)),c}function Eoe(e,n){var t;return ne(e)===ne(n)?!0:U(n,91)?(t=o(n,91),e.e==t.e&&e.d==t.d&&qTn(e,t.a)):!1}function Y_n(e){return e.e==null?e:(!e.c&&(e.c=new yU((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function e$n(e,n){return e.h==Oj&&e.m==0&&e.l==0?(n&&(h0=du(0,0,0)),GPe((L4(),Bde))):(n&&(h0=du(e.l,e.m,e.h)),du(0,0,0))}function gs(e){var n;if(e.b){if(gs(e.b),e.b.d!=e.c)throw P(new rl)}else e.d.dc()&&(n=o(e.f.c.xc(e.e),18),n&&(e.d=n))}function Coe(e){var n,t,i;for(i=K(Z(e.a.mf((pt(),YR)))),t=new O(e.a.Qf());t.a<t.c.c.length;)n=o($(t),685),hnn(e,n,i)}function n$n(e){qb();var n,t,i,r;for(n=e.o.b,i=o(o(Ht(e.r,(Ee(),Ln)),22),83).Jc();i.Ob();)t=o(i.Pb(),115),r=t.e,r.b+=n}function t$n(e,n,t){var i,r;for(r=e.a.b,i=r.c.length;i<t;i++)K0(r,0,new To(e.a));lr(n,o(Te(r,r.c.length-t),25)),e.b[n.p]=t}function fJ(e,n){var t,i;for(i=new O(n);i.a<i.c.c.length;)t=o($(i),49),ye(e.b.b,o(t.b,82)),zB(o(t.a,194),o(t.b,82))}function i$n(e){var n=e.e;function t(i){return!i||i.length==0?"":" "+i.join(`
123
123
  `)}return n&&(n.stack||t(e[cG]))}function As(e){var n,t;return U(e,311)?(t=wMn(o(e,311)),n=t,n):U(e,432)?o(e,432).a:U(e,59)?new S_e(e):new fee(e)}function j3(e){switch(Ee(),e.g){case 4:return En;case 1:return An;case 3:return Ln;case 2:return Cn;default:return eo}}function joe(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 kce(e,n)}function SVe(e){switch(e.g){case 0:return new V7e;case 1:return new X7e;default:throw P(new yn(UG+(e.f!=null?e.f:""+e.g)))}}function r$n(e){switch(e.g){case 0:return new W7e;case 1:return new K7e;default:throw P(new yn(LH+(e.f!=null?e.f:""+e.g)))}}function c$n(e){switch(e.g){case 1:return new B7e;case 2:return new bNe;default:throw P(new yn(LH+(e.f!=null?e.f:""+e.g)))}}function EVe(e){switch(e.g){case 0:return new BY;case 1:return new ZIe;default:throw P(new yn(OO+(e.f!=null?e.f:""+e.g)))}}function o$n(e,n,t,i,r){Fs(),pf(cf(rf(tf(of(new Rl,0),r.d.e-e),n),r.d)),pf(cf(rf(tf(of(new Rl,0),t-r.a.e),r.a),i))}function CVe(e,n){var t,i,r,c;n&&(r=od(n,"x"),t=new QAe(e),l2(t.a,(an(r),r)),c=od(n,"y"),i=new ZAe(e),f2(i.a,(an(c),c)))}function jVe(e,n){var t,i,r,c;n&&(r=od(n,"x"),t=new eIe(e),u2(t.a,(an(r),r)),c=od(n,"y"),i=new nIe(e),s2(i.a,(an(c),c)))}function u$n(e,n){var t,i,r,c;for(r=new ru(n.gc()),i=n.Jc();i.Ob();)t=i.Pb(),c=xU(e,o(t,57)),c&&vn(r.c,c);return r}function bp(e,n,t){var i,r;for(r=e.Jc();r.Ob();)if(i=r.Pb(),ne(n)===ne(i)||n!=null&&Bt(n,i))return t&&r.Qb(),!0;return!1}function TVe(e){var n,t,i;return t=e.ih(),t?(n=e.Bh(),U(n,174)&&(i=TVe(o(n,174)),i!=null)?i+"."+t:t):null}function s$n(e){var n,t,i;return e.e==0?0:(n=e.d<<5,t=e.a[e.d-1],e.e<0&&(i=THe(e),i==e.d-1&&(--t,t=t|0)),n-=fj(t),n)}function l$n(e){var n,t;if(e.b)return e.b;for(t=Sa?null:e.d;t;){if(n=Sa?null:t.b,n)return n;t=Sa?null:t.d}return d4(),f1e}function MVe(e,n){var t;return e.d?zo(e.b,n)?o(bn(e.b,n),43):(t=n.bg(),Ct(e.b,n,t),t):n.bg()}function Toe(e,n,t){var i,r;if(++e.j,t.dc())return!1;for(r=t.Jc();r.Ob();)i=r.Pb(),e.oj(n,e.Xi(n,i)),++n;return!0}function xVe(e,n){var t,i;if(n){for(t=0;t<e.i;++t)if(i=o(e.g[t],373),i.kj(n))return!1;return Xn(e,n)}else return!1}function Moe(e){var n,t,i,r;for(n=new J0,r=new Nm(e.b.Jc());r.b.Ob();)i=o(r.b.Pb(),690),t=yDn(i),USn(n,n.a.length,t);return n.a}function xoe(e){var n;return!e.c&&(e.c=new iE),sr(e.d,new Xy),qzn(e),n=Dzn(e),Ii(new Qe(null,new Ze(e.d,16)),new xMe(e)),n}function f$n(e,n){n.Tg("End label post-processing",1),Ii(Nt(Lc(new Qe(null,new Ze(e.b,16)),new x6e),new A6e),new I6e),n.Ug()}function a$n(e){var n,t,i,r;for(n=(e.j==null&&(e.j=($4(),r=Gq.ke(e),pRn(r))),e.j),t=0,i=n.length;t<i;++t);}function bi(e,n){var t,i,r;if(t=(e.i==null&&Wa(e),e.i),i=n.Jj(),i!=-1){for(r=t.length;i<r;++i)if(t[i]==n)return i}return-1}function h$n(e){var n,t,i,r,c;for(t=o(e.g,679),i=e.i-1;i>=0;--i)for(n=t[i],r=0;r<i;++r)if(c=t[r],GYe(e,n,c)){A3(e,i);break}}function d$n(e){ZI(),o(e.mf((pt(),C0)),182).Gc((bs(),uN))&&(o(e.mf(am),182).Ec((Zu(),jy)),o(e.mf(C0),182).Kc(uN))}function AVe(e){var n,t;n=e.d==(_3(),d5),t=Cue(e),n&&!t||!n&&t?oe(e.a,(Se(),rh),(yh(),WT)):oe(e.a,(Se(),rh),(yh(),VT))}function aJ(){aJ=V,Wx(),mR=(Se(),Fg),ghn=af(F(D(KK,1),ehe,147,0,[_T,Ef,Y2,Dg,im,xW,j5,T5,AW,D7,tm,v0,rm]))}function g$n(e,n){var t;return t=o(Xu(e,fs(new Yo,new Uc,new jo,F(D(Au,1),be,130,0,[(dl(),xu)]))),16),t.Oc(LDe(t.gc()))}function w$n(e){var n,t,i;return e<uP.length?uP[e]:(t=e>>5,n=e&31,i=te(ut,Mt,30,t+1,15,1),i[t]=1<<n,new Y0(1,t+1,i))}function IVe(e,n){var t,i;if(i=new e4(e.a.$c(n,!0)),i.a.gc()<=1)throw P(new Pv);return t=i.a.ec().Jc(),t.Pb(),o(t.Pb(),40)}function b$n(e,n,t){var i,r;return i=K(e.p[n.i.p])+K(e.d[n.i.p])+n.n.b+n.a.b,r=K(e.p[t.i.p])+K(e.d[t.i.p])+t.n.b+t.a.b,r-i}function Aoe(e,n){var t;return e.i>0&&(n.length<e.i&&(t=AC(Ms(n).c,e.i),n=t),_o(e.g,0,n,0,e.i)),n.length>e.i&&Oi(n,e.i,null),n}function H_(e){var n;return e.Db&64?Q9(e):(n=new Dl(Q9(e)),n.a+=" (instanceClassName: ",Sc(n,e.D),n.a+=")",n.a)}function q_(e){var n,t,i,r;for(r=0,t=0,i=e.length;t<i;t++)n=(Tn(t,e.length),e.charCodeAt(t)),n<64&&(r=za(r,wh(1,n)));return r}function p$n(e,n,t){var i,r;for(i=vr(t,wc),r=0;Go(i,0)!=0&&r<n;r++)i=nc(i,vr(e[r],wc)),e[r]=lt(i),i=bw(i,32);return lt(i)}function V_(e,n){ene();var t,i;return t=HE((Px(),Px(),l7)),i=null,n==t&&(i=o(Jo(Fde,e),615)),i||(i=new BFe(e),n==t&&xc(Fde,e,i)),i}function _Ve(e){qb();var n;return n=new Yr(o(e.e.mf((pt(),fv)),8)),e.B.Gc((bs(),B5))&&(n.a<=0&&(n.a=20),n.b<=0&&(n.b=20)),n}function WC(e,n){var t,i,r,c;for(c=wu(e.e.Ah(),n),t=o(e.g,122),r=0;r<e.i;++r)if(i=t[r],c.$l(i.Jk()))return!1;return!0}function hJ(e,n){var t,i,r;return e.f>0?(e.Zj(),i=n==null?0:oi(n),r=(i&Rt)%e.d.length,t=QQe(e,r,i,n),t!=-1):!1}function uu(e,n,t){var i,r,c;return e.Nj()?(i=e.i,c=e.Oj(),UC(e,i,n),r=e.Gj(3,null,n,i,c),t?t.lj(r):t=r):UC(e,e.i,n),t}function Gf(e,n){var t,i,r;return e.f>0&&(e.Zj(),i=n==null?0:oi(n),r=(i&Rt)%e.d.length,t=wse(e,r,i,n),t)?t.kd():null}function m$n(e,n,t){var i,r;return i=new rd(e.e,3,10,null,(r=n.c,U(r,88)?o(r,29):(nn(),ef)),e1(e,n),!1),t?t.lj(i):t=i,t}function v$n(e,n,t){var i,r;return i=new rd(e.e,4,10,(r=n.c,U(r,88)?o(r,29):(nn(),ef)),null,e1(e,n),!1),t?t.lj(i):t=i,t}function $Ve(e,n){var t,i,r;return U(n,45)?(t=o(n,45),i=t.jd(),r=wp(e.Pc(),i),Qh(r,t.kd())&&(r!=null||e.Pc()._b(i))):!1}function Ioe(e,n){switch(n){case 3:Mw(e,0);return;case 4:xw(e,0);return;case 5:hs(e,0);return;case 6:ds(e,0);return}noe(e,n)}function Ow(e,n){switch(n.g){case 1:return t3(e.j,(Ju(),z1e));case 2:return t3(e.j,(Ju(),U1e));default:return tn(),tn(),oc}}function Z1(e){Va();var n,t;return t=lt(e),n=lt(Z0(e,32)),n!=0?new zBe(t,n):t>10||t<0?new nd(1,t):Pon[t]}function OVe(e){vp();var n;return(e.q?e.q:(tn(),tn(),xh))._b((Se(),fb))?n=o(M(e,fb),203):n=o(M(wr(e),N7),203),n}function y$n(e,n,t,i){var r,c;if(c=t-n,c<3)for(;c<3;)e*=10,++c;else{for(r=1;c>3;)r*=10,--c;e=(e+(r>>1))/r|0}return i.i=e,!0}function PVe(e,n,t){LGe(),GIe.call(this),this.a=Kb(iun,[ve,bfe],[592,216],0,[aP,iV],2),this.c=new Kv,this.g=e,this.f=n,this.d=t}function RVe(e){this.e=te(ut,Mt,30,e.length,15,1),this.c=te(Pu,Hf,30,e.length,16,1),this.b=te(Pu,Hf,30,e.length,16,1),this.f=0}function k$n(e){var n,t;for(e.j=te(Er,jc,30,e.p.c.length,15,1),t=new O(e.p);t.a<t.c.c.length;)n=o($(t),9),e.j[n.p]=n.o.b/e.i}function S$n(e){var n,t,i,r;for(i=HDn(e),sr(i,Nsn),r=e.d,r.c.length=0,t=new O(i);t.a<t.c.c.length;)n=o($(t),455),ir(r,n.b)}function r8(e,n){var t;zqn(n),t=o(M(e,(Se(),sR)),284),t&&oe(e,sR,kPn(t)),zd(e.c),zd(e.f),Sre(e.d),Sre(o(M(e,dR),213))}function dJ(e,n){var t;return Fc(e)&&Fc(n)&&(t=e%n,Pj<t&&t<kg)?t:q1((Rle(Fc(e)?Bl(e):e,Fc(n)?Bl(n):n,!0),h0))}function NVe(e,n){e.Vj();try{e.d._c(e.e++,n),e.f=e.d.j,e.g=-1}catch(t){throw t=Fi(t),U(t,99)?P(new rl):P(t)}}function gJ(){gJ=V,IX=new jEe,wve=new TEe,bve=new MEe,pve=new xEe,mve=new AEe,vve=new IEe,yve=new _Ee,kve=new $Ee,Sve=new OEe}function _oe(){_oe=V,R2e=new hw(15),Rgn=new Ir((pt(),$h),R2e),Dgn=new Ir(g1,15),Ngn=new Ir(aX,ge(0)),Pgn=new Ir($5,F6)}function DVe(e,n){var t,i;e.a=nc(e.a,1),e.c=m.Math.min(e.c,n),e.b=m.Math.max(e.b,n),e.d+=n,t=n-e.f,i=e.e+t,e.f=i-e.e-t,e.e=i}function E$n(e,n){var t,i,r,c;for(c=n.b.b,e.a=new ei,e.b=te(ut,Mt,30,c,15,1),t=0,r=Qn(n.b,0);r.b!=r.d.c;)i=o(Kn(r),40),i.g=t++}function pp(e,n){var t,i;return i=null,zt(e,(Se(),bR))&&(t=o(M(e,bR),105),t.nf(n)&&(i=t.mf(n))),i==null&&(i=M(wr(e),n)),i}function KC(e,n){var t,i;for(i=n.length,t=0;t<i;t+=2)Ho(e,(Tn(t,n.length),n.charCodeAt(t)),(Tn(t+1,n.length),n.charCodeAt(t+1)))}function FVe(e,n,t){var i,r,c,s;for(c=n-e.e,s=t-e.f,r=new O(e.a);r.a<r.c.c.length;)i=o($(r),173),QC(i,i.s+c,i.t+s);e.e=n,e.f=t}function $oe(e,n,t){var i,r,c,s,a;return s=e.k,a=n.k,i=t[s.g][a.g],r=Z(pp(e,i)),c=Z(pp(n,i)),m.Math.max((an(r),r),(an(c),c))}function Ooe(e,n,t){var i,r;i=o(Jo(U5,n),121),r=o(Jo(IS,n),121),t?(xc(U5,e,i),xc(IS,e,r)):(xc(IS,e,i),xc(U5,e,r))}function LVe(e,n){var t,i,r,c;return t=n>>5,n&=31,r=e.d+t+(n==0?0:1),i=te(ut,Mt,30,r,15,1),vNn(i,e.a,t,n),c=new Y0(e.e,r,i),_9(c),c}function u6(e,n,t){var i,r,c;for(r=null,c=e.b;c;){if(i=e.a.Le(n,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function XC(e,n,t){var i,r,c;for(r=null,c=e.b;c;){if(i=e.a.Le(n,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function wJ(e,n){for(var t=0;!n[t]||n[t]=="";)t++;for(var i=n[t++];t<n.length;t++)!n[t]||n[t]==""||(i+=e+n[t]);return i}function C$n(e,n){n.Tg("Min Size Postprocessing",1),Xt(e,(kh(),um),m.Math.max(K(Z(we(e,um))),K(Z(we(e,nS))))),n.Ug()}function BVe(e){if(e.b==null){for(;e.a.Ob();)if(e.b=e.a.Pb(),!o(e.b,52).Gh())return!0;return e.b=null,!1}else return!0}function j$n(){return Error.stackTraceLimit>0?(m.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function T$n(e){var n;n=e.a;do n=o(In(new kn(jn(ui(n).a.Jc(),new q))),17).d.i,n.k==(pn(),Gi)&&ye(e.e,n);while(n.k==(pn(),Gi))}function M$n(e,n){var t,i,r;for(i=new kn(jn(ui(e).a.Jc(),new q));Dn(i);)if(t=o(In(i),17),r=t.d.i,r.c==n)return!1;return!0}function zVe(e,n,t){var i,r,c,s;for(r=o(bn(e.b,t),171),i=0,s=new O(n.j);s.a<s.c.c.length;)c=o($(s),113),r[c.d.p]&&++i;return i}function x$n(e,n,t,i){var r,c,s;return r=!1,lqn(e.f,t,i)&&(Q$n(e.f,e.a[n][t],e.a[n][i]),c=e.a[n],s=c[i],c[i]=c[t],c[t]=s,r=!0),r}function JVe(e){var n,t,i,r,c;if(e==null)return null;for(c=new ke,t=qz(e),i=0,r=t.length;i<r;++i)n=t[i],ye(c,qo(n,!0));return c}function UVe(e){var n,t,i,r,c;if(e==null)return null;for(c=new ke,t=qz(e),i=0,r=t.length;i<r;++i)n=t[i],ye(c,qo(n,!0));return c}function GVe(e){var n,t,i,r,c;if(e==null)return null;for(c=new ke,t=qz(e),i=0,r=t.length;i<r;++i)n=t[i],ye(c,qo(n,!0));return c}function HVe(e){var n,t;return n=o(Sn(e.a,4),129),n!=null?(t=te(TX,kq,415,n.length,0,1),_o(n,0,t,0,n.length),t):own}function bJ(e){var n;e.c!=0&&(n=o(Te(e.a,e.b),295),n.b==1?(++e.b,e.b<e.a.c.length&&rMe(o(Te(e.a,e.b),295))):--n.b,--e.c)}function W_(){W_=V,Y7=new YF("P1_WIDTH_APPROXIMATION",0),LR=new YF("P2_PACKING",1),jK=new YF("P3_WHITESPACE_ELIMINATION",2)}function fd(){fd=V,y0=new fA(qf,0),ibe=new fA("NODES_AND_EDGES",1),JW=new fA("PREFER_EDGES",2),UW=new fA("PREFER_NODES",3)}function Is(){Is=V,lM=new vA("PORTS",0),Ug=new vA("PORT_LABELS",1),sM=new vA("NODE_LABELS",2),wm=new vA("MINIMUM_SIZE",3)}function A$n(e,n){return ra(),ra(),df(o0),(m.Math.abs(e-n)<=o0||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:W0(isNaN(e),isNaN(n)))>0}function Poe(e,n){return ra(),ra(),df(o0),(m.Math.abs(e-n)<=o0||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:W0(isNaN(e),isNaN(n)))<0}function qVe(e,n){return ra(),ra(),df(o0),(m.Math.abs(e-n)<=o0||e==n||isNaN(e)&&isNaN(n)?0:e<n?-1:e>n?1:W0(isNaN(e),isNaN(n)))<=0}function Roe(e){switch(e.g){case 12:case 13:case 14:case 15:case 16:case 17:case 18:case 19:case 20:return!0;default:return!1}}function Noe(e,n,t,i,r,c){this.a=e,this.c=n,this.b=t,this.f=i,this.d=r,this.e=c,this.c>0&&this.b>0&&(this.g=iI(this.c,this.b,this.a))}function I$n(e,n){var t=e.a,i;n=String(n),t.hasOwnProperty(n)&&(i=t[n]);var r=(Lz(),Hq)[typeof i],c=r?r(i):roe(typeof i);return c}function s6(e){var n,t,i;if(i=null,n=nh in e.a,t=!n,t)throw P(new Na("Every element must have an id."));return i=O3(Yh(e,nh)),i}function Pw(e){var n,t;for(t=vXe(e),n=null;e.c==2;)Dt(e),n||(n=(Ft(),Ft(),new a9(2)),vg(n,t),t=n),t.Hm(vXe(e));return t}function K_(e,n){var t,i,r;return e.Zj(),i=n==null?0:oi(n),r=(i&Rt)%e.d.length,t=wse(e,r,i,n),t?(HGe(e,t),t.kd()):null}function Ga(e,n,t){var i,r,c,s;for(c=n+t,_r(n,c,e.length),s="",r=n;r<c;)i=m.Math.min(r+1e4,c),s+=EEn(e.slice(r,i)),r=i;return s}function VVe(e,n){var t,i,r;if(e.c)Mw(e.c,n);else for(t=n-js(e),r=new O(e.a);r.a<r.c.c.length;)i=o($(r),167),VVe(i,js(i)+t)}function WVe(e,n){var t,i,r;if(e.c)xw(e.c,n);else for(t=n-Bu(e),r=new O(e.d);r.a<r.c.c.length;)i=o($(r),167),WVe(i,Bu(i)+t)}function KVe(e,n){return e.e>n.e?1:e.e<n.e?-1:e.d>n.d?e.e:e.d<n.d?-n.e:e.e*Gce(e.a,n.a,e.d)}function XVe(e){return e>=48&&e<48+m.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function _$n(e,n){if(n.c==e)return n.d;if(n.d==e)return n.c;throw P(new yn("Input edge is not connected to the input port."))}function Ha(e,n){if(e.a<0)throw P(new Tc("Did not call before(...) or after(...) before calling add(...)."));return _ne(e,e.a,n),e}function Doe(e){return OI(),U(e,166)?o(bn(bM,Lon),296).Qg(e):zo(bM,Ms(e))?o(bn(bM,Ms(e)),296).Qg(e):null}function gu(e){var n,t;return e.Db&32||(t=(n=o(Sn(e,16),29),Fn(n||e.fi())-Fn(e.fi())),t!=0&&T3(e,32,te(ur,sn,1,t,5,1))),e}function T3(e,n,t){var i;e.Db&n?t==null?XFn(e,n):(i=DJ(e,n),i==-1?e.Eb=t:Oi(v3(e.Eb),i,t)):t!=null&&bzn(e,n,t)}function $$n(e,n,t,i){var r,c;n.c.length!=0&&(r=fBn(t,i),c=mFn(n),Ii(u_(new Qe(null,new Ze(c,1)),new _8e),new pLe(e,t,r,i)))}function O$n(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,YRe(t<r),t>=c?(zIn(e,n),-1):(BIn(e,n),1)}function P$n(e,n){var t,i;for(t=(Tn(n,e.length),e.charCodeAt(n)),i=n+1;i<e.length&&(Tn(i,e.length),e.charCodeAt(i)==t);)++i;return i-n}function Foe(e){var n,t;switch(t=e.Nc(),t.length){case 0:return nI(),zq;case 1:return n=t[0],new _L(nt(n));default:return new LB(z_n(t))}}function Loe(e){switch(typeof e){case ZU:return Kd(e);case Zle:return Wv(e);case F3:return vNe(e);default:return e==null?0:gw(e)}}function R$n(e){if(X_(X6,e))return dn(),o5;if(X_(YH,e))return dn(),d0;throw P(new yn("Expecting true or false"))}function N$n(e,n){return e.e<n.e?-1:e.e>n.e?1:e.f<n.f?-1:e.f>n.f?1:oi(e)-oi(n)}function QVe(e,n){var t;return ne(n)===ne(e)?!0:!U(n,22)||(t=o(n,22),t.gc()!=e.gc())?!1:e.Hc(t)}function X_(e,n){return an(e),n==null?!1:Ke(e,n)?!0:e.length==n.length&&Ke(e.toLowerCase(),n.toLowerCase())}function mp(e){var n,t;return Go(e,-129)>0&&Go(e,128)<0?(qDe(),n=lt(e)+128,t=Vde[n],!t&&(t=Vde[n]=new uY(e)),t):new uY(e)}function M3(){M3=V,b7=new cA(qf,0),N1e=new cA("INSIDE_PORT_SIDE_GROUPS",1),pV=new cA("GROUP_MODEL_ORDER",2),mV=new cA(zG,3)}function Q_(e){var n,t,i;if(i=e.Gh(),!i)for(n=0,t=e.Mh();t;t=t.Mh()){if(++n>jG)return t.Nh();if(i=t.Gh(),i||t==e)break}return i}function D$n(e){var n;return e.b||w6n(e,(n=w9n(e.e,e.a),!n||!Ke(YH,Gf((!n.b&&(n.b=new Cs((nn(),sc),ho,n)),n.b),"qualified")))),e.c}function F$n(e){var n,t;for(t=new O(e.a.b);t.a<t.c.c.length;)if(n=o($(t),70),xe(Me(M(n,(Se(),Z2)))))return!0;return!1}function L$n(e,n){OB();var t,i;for(i=new kn(jn(Ua(e).a.Jc(),new q));Dn(i);)if(t=o(In(i),17),t.d.i==n||t.c.i==n)return t;return null}function B$n(e,n){(!n&&console.groupCollapsed!=null?console.groupCollapsed:console.group??console.log).call(console,e)}function z$n(e,n,t,i){i==e,o(t.b,68),o(t.b,68),o(i.b,68),o(i.b,68).c.b,jre(i,n,e)}function Boe(e,n,t){n.b=m.Math.max(n.b,-t.a),n.c=m.Math.max(n.c,t.a-e.a),n.d=m.Math.max(n.d,-t.b),n.a=m.Math.max(n.a,t.b-e.b)}function J$n(e,n,t){var i,r,c;return i=o(G(as(e.a),n),87),c=(r=i.c,r||(nn(),_a)),(c.Sh()?X1(e.b,o(c,52)):c)==t?F$(i):B4(i,t),c}function ZVe(e,n,t){var i,r,c;for(c=new O(t.a);c.a<c.c.c.length;)r=o($(c),225),i=new IA(o(bn(e.a,r.b),68)),ye(n.a,i),ZVe(e,i,r)}function YVe(e,n,t){var i,r,c;i=n.c.p,c=n.p,e.b[i][c]=new ILe(e,n),t&&(e.a[i][c]=new Oxe(n),r=o(M(n,(he(),ob)),9),r&&Xe(e.d,r,n))}function zoe(e,n,t){this.c=e,this.f=new ke,this.e=new Ar,this.j=new Rte,this.n=new Rte,this.b=n,this.g=new lf(n.c,n.d,n.b,n.a),this.a=t}function pJ(e){var n,t,i,r;for(this.a=new ah,this.d=new Ji,this.e=0,t=e,i=0,r=t.length;i<r;++i)n=t[i],!this.f&&(this.f=n),zB(this,n)}function eWe(e){Va(),e.length==0?(this.e=0,this.d=1,this.a=F(D(ut,1),Mt,30,15,[0])):(this.e=1,this.d=e.length,this.a=e,_9(this))}function c8(e,n,t){GIe.call(this),this.a=te(iun,bfe,216,(Uf(),F(D(Bp,1),be,237,0,[lo,fu,fo])).length,0,1),this.b=e,this.d=n,this.c=t}function U$n(e){var n,t,i,r,c,s;for(s=o(M(e,(he(),Gt)),12),oe(s,y5,e.i.n.b),n=Ja(e.e),i=n,r=0,c=i.length;r<c;++r)t=i[r],jr(t,s)}function G$n(e){var n,t,i,r,c,s;for(t=o(M(e,(he(),Gt)),12),oe(t,y5,e.i.n.b),n=Ja(e.g),r=n,c=0,s=r.length;c<s;++c)i=r[c],Vr(i,t)}function nWe(e,n){var t,i;return t=n.ni(e.a),t&&(i=ot(Gf((!t.b&&(t.b=new Cs((nn(),sc),ho,t)),t.b),Pt)),i!=null)?i:n.ve()}function H$n(e,n){var t,i;return t=n.ni(e.a),t&&(i=ot(Gf((!t.b&&(t.b=new Cs((nn(),sc),ho,t)),t.b),Pt)),i!=null)?i:n.ve()}function q$n(e,n){var t,i;return t=Bo(e.a.c.p,n.a.c.p),t!=0?t:(i=Bo(e.a.d.i.p,n.a.d.i.p),i!=0?i:Bo(n.a.d.p,e.a.d.p))}function V$n(e,n,t){var i,r,c,s;return c=n.j,s=t.j,c!=s?c.g-s.g:(i=e.f[n.p],r=e.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:Kt(i,r))}function W$n(e,n){var t,i,r,c;for(i=0,r=n.gc();i<r;++i)t=n.Rl(i),U(t,103)&&o(t,19).Bb&vo&&(c=n.Sl(i),c!=null&&xU(e,o(c,57)))}function K$n(){var e;return iP!=0&&(e=Date.now(),e-Con>2e3&&(Con=e,rP=m.setTimeout(_6n,10))),iP++==0?(hxn((HY(),Dde)),!0):!1}function X$n(e,n,t){var i;(qon?(l$n(e),!0):Von||Kon?(d4(),!0):Won&&(d4(),!1))&&(i=new cDe(n),i.b=t,QNn(e,i))}function mJ(e,n){var t;t=!e.A.Gc((Is(),Ug))||e.q==(yr(),Ro),e.u.Gc((Zu(),Sd))?t?mVn(e,n):enn(e,n):e.u.Gc(x0)&&(t?Bqn(e,n):wnn(e,n))}function Q$n(e,n,t){var i,r;YJ(e.e,n,t,(Ee(),Cn)),YJ(e.i,n,t,An),e.a&&(r=o(M(n,(he(),Gt)),12),i=o(M(t,Gt),12),BB(e.g,r,i))}function tWe(e){var n;ne(we(e,(pt(),uv)))===ne((sd(),iN))&&(wi(e)?(n=o(we(wi(e),uv),347),Xt(e,uv,n)):Xt(e,uv,gS))}function iWe(e,n,t){return new lf(m.Math.min(e.a,n.a)-t/2,m.Math.min(e.b,n.b)-t/2,m.Math.abs(e.a-n.a)+t,m.Math.abs(e.b-n.b)+t)}function rWe(e){var n;this.d=new ke,this.j=new Ar,this.g=new Ar,n=e.g.b,this.f=o(M(wr(n),(Se(),Xs)),86),this.e=K(Z(e$(n,im)))}function cWe(e){this.d=new ke,this.e=new U1,this.c=te(ut,Mt,30,(Ee(),F(D(uc,1),Eo,64,0,[eo,En,An,Ln,Cn])).length,15,1),this.b=e}function Joe(e,n,t){var i;switch(i=t[e.g][n],e.g){case 1:case 3:return new pe(0,i);case 2:case 4:return new pe(i,0);default:return null}}function Z$n(e,n){var t;if(t=o2(e.o,n),t==null)throw P(new Na("Node did not exist in input."));return zse(e,n),CU(e,n),_se(e,n,t),null}function oWe(e,n){var t,i;for(i=e.a.length,n.length<i&&(n=Lx(new Array(i),n)),t=0;t<i;++t)Oi(n,t,e.a[t]);return n.length>i&&Oi(n,i,null),n}function ha(e,n){var t,i;for(i=e.c.length,n.length<i&&(n=Lx(new Array(i),n)),t=0;t<i;++t)Oi(n,t,e.c[t]);return n.length>i&&Oi(n,i,null),n}function vJ(e,n,t,i){var r;if(r=e.length,n>=r)return r;for(n=n>0?n:0;n<r&&!Bz((Tn(n,e.length),e.charCodeAt(n)),t,i);n++);return n}function uWe(e,n,t){var i,r;r=o(oC(n.f),214);try{r.kf(e,t),wie(n.f,r)}catch(c){throw c=Fi(c),U(c,101)?(i=c,P(i)):P(c)}}function sWe(e,n,t){var i,r,c,s,a,d;return i=null,a=Fle(B9(),n),c=null,a&&(r=null,d=Nle(a,t),s=null,d!=null&&(s=e.of(a,d)),r=s,c=r),i=c,i}function Y$n(e,n,t,i){var r,c,s;return r=new rd(e.e,1,13,(s=n.c,s||(nn(),_a)),(c=t.c,c||(nn(),_a)),e1(e,n),!1),i?i.lj(r):i=r,i}function eOn(e){var n;if(e==null)return null;if(n=FLn(qo(e,!0)),n==null)throw P(new bF("Invalid hexBinary value: '"+e+"'"));return n}function Z_(e,n,t){var i;n.a.length>0&&(ye(e.b,new EDe(n.a,t)),i=n.a.length,0<i?n.a=Ll(n.a,0,0):0>i&&(n.a+=mRe(te(jl,Xa,30,-i,15,1))))}function lWe(e,n,t){var i,r,c;if(!t[n.d])for(t[n.d]=!0,r=new O(d2(n));r.a<r.c.c.length;)i=o($(r),217),c=J_(i,n),lWe(e,c,t)}function fWe(e,n){var t,i,r,c;for(t=0,r=new O(n.a);r.a<r.c.c.length;)i=o($(r),9),c=i.o.a+i.d.c+i.d.b+e.j,t=m.Math.max(t,c);return t}function wg(e,n,t){var i,r,c;return r=o(bn(e.e,n),393),r?(c=Kne(r,t),CRe(e,r),c):(i=new Ete(e,n,t),Ct(e.e,n,i),eBe(i),null)}function nOn(e,n){var t;if(t=bn(e.q,n),t==null)throw P(new Na("Port did not exist in input."));return zse(e,n),CU(e,n),_se(e,n,t),null}function yJ(){return K$(),F(D(Iun,1),be,168,0,[xun,Mun,Aun,vun,mun,yun,Eun,Sun,kun,Tun,jun,Cun,bun,wun,pun,dun,hun,gun,fun,lun,aun,rV])}function l6(e){switch(e.g){case 4:return new pe(0,-1);case 1:return new pe(1,0);case 2:return new pe(-1,0);default:return new pe(0,1)}}function kJ(e){switch(e.g){case 1:return Qi(),Sl;case 4:return Qi(),Oc;case 2:return Qi(),Dc;case 3:return Qi(),Ma}return Qi(),xa}function tOn(e){var n;switch(n=e.fj(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 qa(){qa=V,on=new _E("PARENTS",0),Bi=new _E("NODES",1),Zf=new _E("EDGES",2),d1=new _E("PORTS",3),yd=new _E("LABELS",4)}function w2(){w2=V,T0=new OE("DISTRIBUTED",0),cM=new OE("JUSTIFIED",1),$2e=new OE("BEGIN",2),wS=new OE(N6,3),O2e=new OE("END",4)}function iOn(e,n,t){var i;switch(i=t.q.getFullYear()-u0+u0,i<0&&(i=-i),n){case 1:e.a+=i;break;case 2:vh(e,i%100,2);break;default:vh(e,i,n)}}function Qn(e,n){var t,i;if(rp(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<n;++t)i=i.a;return new tDe(e,n,i)}function aWe(e){this.b=new ke,this.e=new ke,this.d=e,this.a=!l4(Nt(new Qe(null,new Yb(new la(e.b))),new n4(new r9e))).zd((q0(),Y3))}function rOn(e){var n;e.g&&(e.c.ig()?e.f:e.a)&&(n=e.c.ig()?e.f:e.a,Vse(n.a,e.o,!0),Vse(n.a,e.o,!1),oe(e.o,(Se(),Ai),(yr(),Jg)))}function hWe(e,n){var t,i,r;r=n.d.i,i=r.k,!(i==(pn(),xi)||i==Ea)&&(t=new kn(jn(ui(r).a.Jc(),new q)),Dn(t)&&Ct(e.k,n,o(In(t),17)))}function cOn(e,n){return cd(),Kt((e.a.b==0?new pe(e.c.e.a,e.c.e.b):o(m4(e.a),8)).b,(n.a.b==0?new pe(n.c.e.a,n.c.e.b):o(m4(n.a),8)).b)}function oOn(e,n){return cd(),Kt((e.a.b==0?new pe(e.c.e.a,e.c.e.b):o(m4(e.a),8)).a,(n.a.b==0?new pe(n.c.e.a,n.c.e.b):o(m4(n.a),8)).a)}function uOn(e,n){return cd(),Kt((e.a.b==0?new pe(e.b.e.a,e.b.e.b):o(uf(e.a),8)).a,(n.a.b==0?new pe(n.b.e.a,n.b.e.b):o(uf(n.a),8)).a)}function sOn(e,n){return cd(),Kt((e.a.b==0?new pe(e.b.e.a,e.b.e.b):o(uf(e.a),8)).b,(n.a.b==0?new pe(n.b.e.a,n.b.e.b):o(uf(n.a),8)).b)}function SJ(e,n){var t,i,r;return i=cn(e.Ah(),n),t=n-e.gi(),t<0?(r=e.Fh(i),r>=0?e.Th(r):lU(e,i)):t<0?lU(e,i):o(i,69).uk().zk(e,e.ei(),t)}function dWe(e){var n,t,i;for(i=(!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),e.o),t=i.c.Jc();t.e!=t.i.gc();)n=o(t.Wj(),45),n.kd();return pC(i)}function je(e){var n;if(U(e.a,4)){if(n=Doe(e.a),n==null)throw P(new Tc(Gin+e.b+"'. "+Uin+(Xh(pM),pM.k)+Hhe));return n}else return e.a}function lOn(e){var n;if(e==null)return null;if(n=TVn(qo(e,!0)),n==null)throw P(new bF("Invalid base64Binary value: '"+e+"'"));return n}function Rn(e){var n;try{return n=e.i.Xb(e.e),e.Vj(),e.g=e.e++,n}catch(t){throw t=Fi(t),U(t,99)?(e.Vj(),P(new Gc)):P(t)}}function EJ(e){var n;try{return n=e.c.Ti(e.e),e.Vj(),e.g=e.e++,n}catch(t){throw t=Fi(t),U(t,99)?(e.Vj(),P(new Gc)):P(t)}}function Y_(e){var n,t,i,r;for(r=0,t=0,i=e.length;t<i;t++)n=(Tn(t,e.length),e.charCodeAt(t)),n>=64&&n<128&&(r=za(r,wh(1,n-64)));return r}function e$(e,n){var t,i;return i=null,zt(e,(pt(),Sy))&&(t=o(M(e,Sy),105),t.nf(n)&&(i=t.mf(n))),i==null&&wr(e)&&(i=M(wr(e),n)),i}function fOn(e,n){var t;return t=o(M(e,(Se(),$c)),78),vL(n,Isn)?t?Ts(t):(t=new us,oe(e,$c,t)):t&&oe(e,$c,null),t}function aOn(e,n){var t,i,r;for(r=new ru(n.gc()),i=n.Jc();i.Ob();)t=o(i.Pb(),294),t.c==t.f?b6(e,t,t.c):jDn(e,t)||vn(r.c,t);return r}function gWe(e,n){var t,i,r;for(t=e.o,r=o(o(Ht(e.r,n),22),83).Jc();r.Ob();)i=o(r.Pb(),115),i.e.a=dPn(i,t.a),i.e.b=t.b*K(Z(i.b.mf(hP)))}function hOn(e,n){var t,i,r,c;return r=e.k,t=K(Z(M(e,(he(),ub)))),c=n.k,i=K(Z(M(n,ub))),c!=(pn(),Wi)?-1:r!=Wi?1:t==i?0:t<i?-1:1}function dOn(e,n){var t,i;return t=o(o(bn(e.g,n.a),49).a,68),i=o(o(bn(e.g,n.b),49).a,68),G1(n.a,n.b)-G1(n.a,lne(t.b))-G1(n.b,lne(i.b))}function f6(e,n){var t,i;if(++e.j,n!=null&&(t=(i=e.a.Cb,U(i,100)?o(i,100).qh():null),LFn(n,t))){T3(e.a,4,t);return}T3(e.a,4,o(n,129))}function n$(e){switch(gee(),this.c=new ke,this.d=e,e.g){case 0:case 2:this.a=mie(R1e),this.b=Ci;break;case 3:case 1:this.a=R1e,this.b=hr}}function gOn(e){var n;n3(o(M(e,(Se(),Ai)),102))&&(n=e.b,sQe((en(0,n.c.length),o(n.c[0],25))),sQe(o(Te(n,n.c.length-1),25)))}function wOn(e,n){n.Tg("Self-Loop post-processing",1),Ii(Nt(Nt(Lc(new Qe(null,new Ze(e.b,16)),new tke),new ike),new rke),new cke),n.Ug()}function wWe(e,n,t){var i,r;if(e.c)hs(e.c,e.c.i+n),ds(e.c,e.c.j+t);else for(r=new O(e.b);r.a<r.c.c.length;)i=o($(r),167),wWe(i,n,t)}function bOn(e){var n,t,i;for(i=e.c.a,e.p=(nt(i),new Ku(i)),t=new O(i);t.a<t.c.c.length;)n=o($(t),9),n.p=WDn(n).a;tn(),sr(e.p,new Q9e)}function pOn(e,n){var t,i;if(e.j.length!=n.j.length)return!1;for(t=0,i=e.j.length;t<i;t++)if(!Ke(e.j[t],n.j[t]))return!1;return!0}function bWe(e,n){tn();var t,i,r,c;for(t=e,c=n,U(e,22)&&!U(n,22)&&(t=n,c=e),r=t.Jc();r.Ob();)if(i=r.Pb(),c.Gc(i))return!1;return!0}function mOn(e,n,t,i){if(n.a<i.a)return!0;if(n.a==i.a){if(n.b<i.b)return!0;if(n.b==i.b&&e.b>t.b)return!0}return!1}function pWe(e){var n;return n=new I1,n.a+="n",e.k!=(pn(),xi)&&mt(mt((n.a+="(",n),jL(e.k).toLowerCase()),")"),mt((n.a+="_",n),YC(e)),n.a}function o8(){o8=V,Xwe=new ME(nhe,0),BW=new ME(qG,1),zW=new ME("LINEAR_SEGMENTS",2),L7=new ME("BRANDES_KOEPF",3),B7=new ME(gin,4)}function x3(e,n,t,i){var r;return t>=0?e.Ph(n,t,i):(e.Mh()&&(i=(r=e.Ch(),r>=0?e.xh(i):e.Mh().Qh(e,-1-r,null,i))),e.zh(n,t,i))}function Uoe(e,n){switch(n){case 7:!e.e&&(e.e=new ln(Ki,e,7,4)),Vn(e.e);return;case 8:!e.d&&(e.d=new ln(Ki,e,8,5)),Vn(e.d);return}Ioe(e,n)}function Xt(e,n,t){return t==null?(!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),K_(e.o,n)):(!e.o&&(e.o=new zu((So(),Nh),b1,e,0)),tj(e.o,n,t)),e}function Ao(e,n){var t;t=e.dd(n);try{return t.Pb()}catch(i){throw i=Fi(i),U(i,112)?P(new nu("Can't get element "+n)):P(i)}}function mWe(e,n){var t;switch(t=o(Ec(e.b,n),127).n,n.g){case 1:e.t>=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 vOn(e){var n;n=e.a;do n=o(In(new kn(jn(Ri(n).a.Jc(),new q))),17).c.i,n.k==(pn(),Gi)&&e.b.Ec(n);while(n.k==(pn(),Gi));e.b=As(e.b)}function vWe(e,n){var t,i,r;for(r=e,i=new kn(jn(Ri(n).a.Jc(),new q));Dn(i);)t=o(In(i),17),t.c.i.c&&(r=m.Math.max(r,t.c.i.c.p));return r}function yOn(e,n){var t,i,r;for(r=0,i=o(o(Ht(e.r,n),22),83).Jc();i.Ob();)t=o(i.Pb(),115),r+=t.d.d+t.b.Kf().b+t.d.a,i.Ob()&&(r+=e.w);return r}function kOn(e,n){var t,i,r;for(r=0,i=o(o(Ht(e.r,n),22),83).Jc();i.Ob();)t=o(i.Pb(),115),r+=t.d.b+t.b.Kf().a+t.d.c,i.Ob()&&(r+=e.w);return r}function yWe(e){var n,t,i,r;if(i=0,r=jp(e),r.c.length==0)return 1;for(t=new O(r);t.a<t.c.c.length;)n=o($(t),26),i+=yWe(n);return i}function kWe(e){var n,t;for(this.b=new ke,this.c=e,this.a=!1,t=new O(e.a);t.a<t.c.c.length;)n=o($(t),9),this.a=this.a|n.k==(pn(),xi)}function SOn(e,n,t){var i,r,c,s;return i=e.bd(n),i!=-1&&(e.Nj()?(c=e.Oj(),s=YA(e,i),r=e.Gj(4,s,null,i,c),t?t.lj(r):t=r):YA(e,i)),t}function tc(e,n,t){var i,r,c,s;return i=e.bd(n),i!=-1&&(e.Nj()?(c=e.Oj(),s=A3(e,i),r=e.Gj(4,s,null,i,c),t?t.lj(r):t=r):A3(e,i)),t}function EOn(e,n,t,i){var r,c,s;t.Uh(n)&&(ac(),dz(n)?(r=o(t.Jh(n),163),W$n(e,r)):(c=(s=n,s?o(i,52).di(s):null),c&&l4n(t.Jh(n),c)))}function t$(e,n,t,i){var r,c,s;return c=cn(e.Ah(),n),r=n-e.gi(),r<0?(s=e.Fh(c),s>=0?e.Ih(s,t,!0):Lw(e,c,t)):o(c,69).uk().wk(e,e.ei(),r,t,i)}function COn(e,n,t,i){var r,c;c=n.nf((pt(),lv))?o(n.mf(lv),22):e.j,r=p_n(c),r!=(K$(),rV)&&(t&&!Roe(r)||Vue(LLn(e,r,i),n))}function CJ(e,n){return mr(e)?!!pon[n]:e.Qm?!!e.Qm[n]:Jb(e)?!!bon[n]:zb(e)?!!won[n]:!1}function jOn(e){switch(e.g){case 1:return Iw(),aT;case 3:return Iw(),fT;case 2:return Iw(),oV;case 4:return Iw(),cV;default:return null}}function TOn(e,n,t){if(e.e)switch(e.b){case 1:zEn(e.c,n,t);break;case 0:JEn(e.c,n,t)}else Nze(e.c,n,t);e.a[n.p][t.p]=e.c.i,e.a[t.p][n.p]=e.c.e}function SWe(e){var n,t;if(e==null)return null;for(t=te(Ih,ve,199,e.length,0,2),n=0;n<t.length;n++)t[n]=o(HTn(e[n],e[n].length),199);return t}function EWe(e){var n;n=o(M(e,(oo(),qbe)),104),oe(e,(ri(),A5),new pe(0,0)),SYe(new wC,e,n.b-K(Z(M(e,rK))),n.d-K(Z(M(e,cK))))}function i$(e){var n;if(Vz(e))return aI(e),e.sl()&&(n=w8(e.e,e.b,e.c,e.a,e.j),e.j=n),e.g=e.a,++e.a,++e.c,e.i=0,e.j;throw P(new Gc)}function CWe(e,n,t){t.Tg("Compound graph preprocessor",1),e.a=new Ew,Xen(e,n,null),YGn(e,n),CBn(e),oe(n,(he(),sge),e.a),e.a=null,ko(e.b),t.Ug()}function jWe(e,n,t){var i,r,c;for(r=new kn(jn((n?Ri(e):ui(e)).a.Jc(),new q));Dn(r);)i=o(In(r),17),c=n?i.c.i:i.d.i,c.k==(pn(),Co)&&lr(c,t)}function TWe(e,n,t){var i,r,c;return i=n.i.j.c.length,zt(n,(he(),ci))&&zt(t,ci)?(r=Bw(n,t,e.b,i),c=Bw(t,n,e.b,i),r<c?-1:r>c?1:0):0}function vp(){vp=V,kR=new lA(qf,0),FW=new lA("PORT_POSITION",1),nv=new lA("NODE_SIZE_WHERE_SPACE_PERMITS",2),ev=new lA("NODE_SIZE",3)}function MOn(e,n){var t,i,r;for(n.Tg("Untreeify",1),t=o(M(e,(ri(),Dbe)),16),r=t.Jc();r.Ob();)i=o(r.Pb(),65),vt(i.b.d,i),vt(i.c.b,i);n.Ug()}function yh(){yh=V,XK=new n9("AUTOMATIC",0),VT=new n9(U3,1),WT=new n9(G3,2),QR=new n9("TOP",3),KR=new n9(mfe,4),XR=new n9(N6,5)}function b2(e,n,t){var i,r;if(r=e.gc(),n>=r)throw P(new Wb(n,r));if(e.Qi()&&(i=e.bd(t),i>=0&&i!=n))throw P(new yn(nT));return e.Vi(n,t)}function e1(e,n){var t,i,r;if(r=rKe(e,n),r>=0)return r;if(e.ml()){for(i=0;i<e.i;++i)if(t=e.nl(o(e.g[i],57)),ne(t)===ne(n))return i}return-1}function Goe(e,n){if(this.a=o(nt(e),254),this.b=o(nt(n),254),e.Cd(n)>0||e==(fF(),Dq)||n==(aF(),Fq))throw P(new yn("Invalid range: "+Rze(e,n)))}function Hoe(e,n,t,i){k6();var r,c;for(r=0,c=0;c<t;c++)r=nc(Kr(vr(n[c],wc),vr(i,wc)),vr(lt(r),wc)),e[c]=lt(r),r=Z0(r,32);return lt(r)}function qoe(e,n,t){var i,r;for(r=0,i=0;i<iV;i++)r=m.Math.max(r,Qz(e.a[n.g][i],t));return n==(Uf(),fu)&&e.b&&(r=m.Math.max(r,e.b.b)),r}function r$(e,n){var t,i;if($ne(n>0),(n&-n)==n)return qr(n*ws(e,31)*4656612873077393e-25);do t=ws(e,31),i=t%n;while(t-i+(n-1)<0);return qr(i)}function xOn(e,n){var t,i,r;for(t=dw(new G0,e),r=new O(n);r.a<r.c.c.length;)i=o($(r),124),pf(cf(rf(of(tf(new Rl,0),0),t),i));return t}function QC(e,n,t){var i,r;for(rIn(e,n-e.s,t-e.t),r=new O(e.n);r.a<r.c.c.length;)i=o($(r),208),Jyn(i,i.e+n-e.s),Uyn(i,i.f+t-e.t);e.s=n,e.t=t}function AOn(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 ZC(e,n,t,i){var r,c;for(r=n;r<e.c.length;r++)if(c=(en(r,e.c.length),o(e.c[r],12)),t.Mb(c))vn(i.c,c);else return r;return e.c.length}function IOn(e){var n,t,i;for(i=o(Ht(e.a,(yp(),BP)),16).Jc();i.Ob();)t=o(i.Pb(),107),n=tue(t),T4(e,t,n[0],(Aw(),ib),0),T4(e,t,n[1],rb,1)}function _On(e){var n,t,i;for(i=o(Ht(e.a,(yp(),zP)),16).Jc();i.Ob();)t=o(i.Pb(),107),n=tue(t),T4(e,t,n[0],(Aw(),ib),0),T4(e,t,n[1],rb,1)}function jJ(e){switch(e.g){case 0:return null;case 1:return new wHe;case 2:return new zY;default:throw P(new yn(LH+(e.f!=null?e.f:""+e.g)))}}function MWe(e){var n;return n=K(Z(we(e,(pt(),dm))))*m.Math.sqrt((!e.a&&(e.a=new ae(ht,e,10,11)),e.a).i),new pe(n,n/K(Z(we(e,P5))))}function TJ(e){var n;return e.f&&e.f.Sh()&&(n=o(e.f,52),e.f=o(X1(e,n),84),e.f!=n&&e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,9,8,n,e.f))),e.f}function MJ(e){var n;return e.i&&e.i.Sh()&&(n=o(e.i,52),e.i=o(X1(e,n),84),e.i!=n&&e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,9,7,n,e.i))),e.i}function hc(e){var n;return e.b&&e.b.Db&64&&(n=e.b,e.b=o(X1(e,n),19),e.b!=n&&e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,9,21,n,e.b))),e.b}function c$(e,n){var t,i,r;e.d==null?(++e.e,++e.f):(i=n.yi(),PBn(e,e.f+1),r=(i&Rt)%e.d.length,t=e.d[r],!t&&(t=e.d[r]=e.bk()),t.Ec(n),++e.f)}function Voe(e,n,t){var i;return n.rk()?!1:n.Gk()!=-2?(i=n.gk(),i==null?t==null:Bt(i,t)):n.ok()==e.e.Ah()&&t==null}function o$(){var e;Js(16,Gnn),e=oHe(16),this.b=te(Lq,_j,308,e,0,1),this.c=te(Lq,_j,308,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function da(e){Yne.call(this),this.k=(pn(),xi),this.j=(Js(6,_p),new ru(6)),this.b=(Js(2,_p),new ru(2)),this.d=new cF,this.f=new RY,this.a=e}function $On(e){var n,t,i,r,c;for(t=0,r=new O(e.a);r.a<r.c.c.length;)i=o($(r),124),i.d=t++;return n=PNn(e),c=null,n.c.length>1&&(c=xOn(e,n)),c}function OOn(e){var n,t,i;for(n=0,i=new O(e.c.a);i.a<i.c.c.length;)t=o($(i),9),n+=Lf(new kn(jn(ui(t).a.Jc(),new q)));return n/e.c.a.c.length}function xJ(e){var n,t;for(t=new $n(e);t.e!=t.i.gc();)if(n=o(Rn(t),87),n.e||(!n.d&&(n.d=new Xi(yc,n,1)),n.d).i!=0)return!0;return!1}function AJ(e){var n,t;for(t=new $n(e);t.e!=t.i.gc();)if(n=o(Rn(t),87),n.e||(!n.d&&(n.d=new Xi(yc,n,1)),n.d).i!=0)return!0;return!1}function xWe(e,n,t,i){var r,c,s;for(r=o(Ht(i?e.a:e.b,n),22),s=r.Jc();s.Ob();)if(c=o(s.Pb(),26),P$(e,t,c))return!0;return!1}function POn(e,n){for(var t,i;e.Ob();)if(!n.Ob()||(t=e.Pb(),i=n.Pb(),!(ne(t)===ne(i)||t!=null&&Bt(t,i))))return!1;return!n.Ob()}function ROn(e){var n,t;e.c.length<=1||(n=DZe(e,(Ee(),Ln)),SXe(e,o(n.a,15).a,o(n.b,15).a),t=DZe(e,Cn),SXe(e,o(t.a,15).a,o(t.b,15).a))}function NOn(e,n,t){var i,r;for(r=e.a.b,i=r.c.length;i<t;i++)K0(r,r.c.length,new To(e.a));lr(n,(en(t-1,r.c.length),o(r.c[t-1],25))),e.b[n.p]=t}function AWe(e,n){var t,i,r;for(e.b[n.g]=1,i=Qn(n.d,0);i.b!=i.d.c;)t=o(Kn(i),65),r=t.c,e.b[r.g]==1?vt(e.a,t):e.b[r.g]==2?e.b[r.g]=1:AWe(e,r)}function IJ(){IJ=V,vme=(kU(),wme),mme=new hw(8),new Ir((pt(),$h),mme),new Ir(g1,8),_0n=dme,bme=E0n,pme=C0n,I0n=new Ir(XT,(dn(),!1))}function DOn(e,n,t){var i;t.Tg("Shrinking tree compaction",1),xe(Me(M(n,(q4(),g7))))?(rAn(e,n.f),HUe(n.f,(i=n.c,i))):HUe(n.f,n.c),t.Ug()}function Woe(e,n,t,i){switch(n){case 7:return!e.e&&(e.e=new ln(Ki,e,7,4)),e.e;case 8:return!e.d&&(e.d=new ln(Ki,e,8,5)),e.d}return moe(e,n,t,i)}function _J(e){var n;return e.a&&e.a.Sh()&&(n=o(e.a,52),e.a=o(X1(e,n),143),e.a!=n&&e.Db&4&&!(e.Db&1)&&Lt(e,new gr(e,9,5,n,e.a))),e.a}function bg(e){return e<48||e>102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function $J(e,n){if(e==null)throw P(new Lv("null key in entry: null="+n));if(n==null)throw P(new Lv("null value in entry: "+e+"=null"))}function IWe(e,n){var t;return t=F(D(Er,1),jc,30,15,[Qz(e.a[0],n),Qz(e.a[1],n),Qz(e.a[2],n)]),e.d&&(t[0]=m.Math.max(t[0],t[2]),t[2]=t[0]),t}function _We(e,n){var t;return t=F(D(Er,1),jc,30,15,[R_(e.a[0],n),R_(e.a[1],n),R_(e.a[2],n)]),e.d&&(t[0]=m.Math.max(t[0],t[2]),t[2]=t[0]),t}function Koe(e,n,t){n3(o(M(n,(Se(),Ai)),102))||(fre(e,n,n1(n,t)),fre(e,n,n1(n,(Ee(),Ln))),fre(e,n,n1(n,En)),tn(),sr(n.j,new Ixe(e)))}function $We(e){var n,t;for(e.c||PHn(e),t=new us,n=new O(e.a),$(n);n.a<n.c.c.length;)vt(t,o($(n),410).a);return Nn(t.b!=0),fl(t,t.c.b),t}function FOn(e,n,t){var i,r,c,s,a;for(a=e.r+n,e.r+=n,e.d+=t,i=t/e.n.c.length,r=0,s=new O(e.n);s.a<s.c.c.length;)c=o($(s),208),ILn(c,a,i,r),++r}function LOn(e){var n,t,i;for(e.b.a.$b(),e.a=te(fP,sn,60,e.c.c.a.b.c.length,0,1),n=0,i=new O(e.c.c.a.b);i.a<i.c.c.length;)t=o($(i),60),t.f=n++}function BOn(e){var n,t,i;for(e.b.a.$b(),e.a=te(dV,sn,82,e.c.a.a.b.c.length,0,1),n=0,i=new O(e.c.a.a.b);i.a<i.c.c.length;)t=o($(i),82),t.i=n++}function zOn(e){var n,t,i,r,c;for(i=new O(e.b);i.a<i.c.c.length;)for(t=o($(i),25),n=0,c=new O(t.a);c.a<c.c.c.length;)r=o($(c),9),r.p=n++}function JOn(e,n,t){var i,r,c,s;for(s=0,i=t/e.a.c.length,c=new O(e.a);c.a<c.c.c.length;)r=o($(c),173),QC(r,r.s,r.t+s*i),FOn(r,e.d-r.r+n,i),++s}function OWe(e){var n;if(n=UIn(e),!Dn(e))throw P(new nu("position (0) must be less than the number of elements that remained ("+n+")"));return In(e)}function UOn(e,n){var t;return e.a||(t=te(Er,jc,30,0,15,1),Lm(e.b.a,new gMe(t)),jIe(t,xGe(Wn.prototype.Ke,Wn,[])),e.a=new rDe(t,e.d)),WI(e.a,n)}function PWe(e){switch(e.g){case 1:return Ee(),Cn;case 4:return Ee(),En;case 3:return Ee(),An;case 2:return Ee(),Ln;default:return Ee(),eo}}function GOn(e,n,t){n.k==(pn(),xi)&&t.k==Gi&&(e.d=eJ(n,(Ee(),Ln)),e.b=eJ(n,En)),t.k==xi&&n.k==Gi&&(e.d=eJ(t,(Ee(),En)),e.b=eJ(t,Ln))}function OJ(e,n){var t,i,r;for(r=Qc(e,n),i=r.Jc();i.Ob();)if(t=o(i.Pb(),12),M(t,(he(),es))!=null||w9(new la(t.b)))return!0;return!1}function HOn(e,n,t){t.Tg("Linear segments node placement",1),e.b=o(M(n,(he(),K2)),316),lWn(e,n),RGn(e,n),tHn(e,n),LVn(e),e.a=null,e.b=null,t.Ug()}function Xoe(e,n){return hs(n,e.e+e.d+(e.c.c.length==0?0:e.b)),ds(n,e.f),e.a=m.Math.max(e.a,n.f),e.d+=n.g+(e.c.c.length==0?0:e.b),ye(e.c,n),!0}function qOn(e,n){var t,i,r,c,s,a;for(r=n.length-1,s=0,a=0,i=0;i<=r;i++)c=n[i],t=tDn(r,i)*Zce(1-e,r-i)*Zce(e,i),s+=c.a*t,a+=c.b*t;return new pe(s,a)}function RWe(e,n){var t,i,r,c,s;for(t=n.gc(),e.Zi(e.i+t),c=n.Jc(),s=e.i,e.i+=t,i=s;i<e.i;++i)r=c.Pb(),d9(e,i,e.Xi(i,r)),e.Ki(i,r),e.Li();return t!=0}function VOn(e,n,t){var i,r,c;return e.Nj()?(i=e.Cj(),c=e.Oj(),++e.j,e.oj(i,e.Xi(i,n)),r=e.Gj(3,null,n,i,c),t?t.lj(r):t=r):kNe(e,e.Cj(),n),t}function WOn(e,n,t){var i,r,c;return i=o(G(xo(e.a),n),87),c=(r=i.c,U(r,88)?o(r,29):(nn(),ef)),(c.Db&64?X1(e.b,c):c)==t?F$(i):B4(i,t),c}function KOn(e){var n;return e==null?null:new N1((n=qo(e,!0),n.length>0&&(Tn(0,n.length),n.charCodeAt(0)==43)?(Tn(1,n.length+1),n.substr(1)):n))}function XOn(e){var n;return e==null?null:new N1((n=qo(e,!0),n.length>0&&(Tn(0,n.length),n.charCodeAt(0)==43)?(Tn(1,n.length+1),n.substr(1)):n))}function Qoe(e,n,t,i,r,c,s,a){var d,w;i&&(d=i.a[0],d&&Qoe(e,n,t,d,r,c,s,a),zJ(e,t,i.d,r,c,s,a)&&n.Ec(i),w=i.a[1],w&&Qoe(e,n,t,w,r,c,s,a))}function u8(e,n){var t,i,r,c;for(c=e.gc(),n.length<c&&(n=Lx(new Array(c),n)),r=n,i=e.Jc(),t=0;t<c;++t)Oi(r,t,i.Pb());return n.length>c&&Oi(n,c,null),n}function QOn(e,n){var t,i;if(i=e.gc(),n==null){for(t=0;t<i;t++)if(e.Xb(t)==null)return t}else for(t=0;t<i;t++)if(Bt(n,e.Xb(t)))return t;return-1}function PJ(e,n){var t,i,r;return t=n.jd(),r=n.kd(),i=e.xc(t),!(!(ne(r)===ne(i)||r!=null&&Bt(r,i))||i==null&&!e._b(t))}function ZOn(e,n){var t,i,r;return n<=22?(t=e.l&(1<<n)-1,i=r=0):n<=44?(t=e.l,i=e.m&(1<<n-22)-1,r=0):(t=e.l,i=e.m,r=e.h&(1<<n-44)-1),du(t,i,r)}function YOn(e,n){switch(n.g){case 1:return e.f.n.d+e.t;case 3:return e.f.n.a+e.t;case 2:return e.f.n.c+e.s;case 4:return e.f.n.b+e.s;default:return 0}}function ePn(e,n){var t,i;switch(i=n.c,t=n.a,e.b.g){case 0:t.d=e.e-i.a-i.d;break;case 1:t.d+=e.e;break;case 2:t.c=e.e-i.a-i.d;break;case 3:t.c=e.e+i.d}}function u$(){u$=V,EK=new gA(qf,0),vpe=new gA(nin,1),ype=new gA("EDGE_LENGTH_BY_POSITION",2),mpe=new gA("CROSSING_MINIMIZATION_BY_POSITION",3)}function RJ(e,n){var t,i;if(t=o(o2(e.n,n),26),t)return t;if(i=o(o2(e.p,n),125),i)return i;throw P(new Na("Referenced shape does not exist: "+n))}function NWe(e,n){if(e.g==-1)throw P(new Du);e.Vj();try{e.d.fd(e.g,n),e.f=e.d.j}catch(t){throw t=Fi(t),U(t,99)?P(new rl):P(t)}}function Zoe(e,n){var t,i;if(U(n,254)){i=o(n,254);try{return t=e.Cd(i),t==0}catch(r){if(r=Fi(r),U(r,211))return!1;throw P(r)}}return!1}function nPn(e,n){if(e.c==n)return e.d;if(e.d==n)return e.c;throw P(new yn("Node 'one' must be either source or target of edge 'edge'."))}function tPn(e,n){if(e.c.i==n)return e.d.i;if(e.d.i==n)return e.c.i;throw P(new yn("Node "+n+" is neither source nor target of edge "+e))}function iPn(e,n,t){t.Tg("Self-Loop ordering",1),Ii(iu(Nt(Nt(Lc(new Qe(null,new Ze(n.b,16)),new Q5e),new Z5e),new Y5e),new eke),new nxe(e)),t.Ug()}function NJ(e,n,t,i,r,c){var s,a,d,w,b;for(s=iRn(n,t,c),a=t==(Ee(),En)||t==Cn?-1:1,w=e[t.g],b=0;b<w.length;b++)d=w[b],d>0&&(d+=r),w[b]=s,s+=a*(d+i)}function rPn(e){var n;for(n=0;n<e.a.c.length;n++)if(zt(o(Te(e.a,n),9),(Se(),EW))&&xe(Me(M(o(Te(e.a,n),9),EW))))return!0;return!1}function DWe(e){var n,t,i;for(i=e.f,e.n=te(Er,jc,30,i,15,1),e.d=te(Er,jc,30,i,15,1),n=0;n<i;n++)t=o(Te(e.c.b,n),25),e.n[n]=fWe(e,t),e.d[n]=fZe(e,t)}function FWe(e,n,t,i){var r;this.c=e,this.d=n,r=new ei,Ei(r,t,r.c.b,r.c),this.a=r,this.b=o(M(i,(oo(),db)),86),this.e=K(Z(M(i,Kbe))),_nn(this)}function DJ(e,n){var t,i,r;for(r=0,i=2;i<n;i<<=1)e.Db&i&&++r;if(r==0){for(t=n<<=1;t<=128;t<<=1)if(e.Db&t)return 0;return-1}else return r}function LWe(e,n){var t,i,r,c,s;for(s=wu(e.e.Ah(),n),c=null,t=o(e.g,122),r=0;r<e.i;++r)i=t[r],s.$l(i.Jk())&&(!c&&(c=new px),Xn(c,i));c&&bnn(e,c)}function BWe(e){var n,t,i;if(!e)return null;if(e.dc())return"";for(i=new Nd,t=e.Jc();t.Ob();)n=t.Pb(),Sc(i,ot(n)),i.a+=" ";return lL(i,i.a.length-1)}function zWe(e,n){var t=new Array(n),i;switch(e){case 14:case 15:i=0;break;case 16:i=!1;break;default:return t}for(var r=0;r<n;++r)t[r]=i;return t}function Rw(e){var n,t,i;for(t=new O(e.a.b);t.a<t.c.c.length;)n=o($(t),60),n.c.$b();Wh(e.d)?i=e.a.c:i=e.a.d,cu(i,new jMe(e)),e.c.bf(e),AZe(e)}function JWe(e){var n,t,i,r;for(t=new O(e.e.c);t.a<t.c.c.length;){for(n=o($(t),291),r=new O(n.b);r.a<r.c.c.length;)i=o($(r),445),Ale(i);bQe(n)}}function UWe(e){var n,t,i;for(i=Rt,t=new O(e.a);t.a<t.c.c.length;)n=o($(t),9),zt(n,(he(),ci))&&(i=m.Math.min(i,o(M(n,ci),15).a));return i}function s$(e){var n,t,i,r,c;for(i=0,c=0,r=0,t=new O(e.a);t.a<t.c.c.length;)n=o($(t),173),c=m.Math.max(c,n.r),i+=n.d+(r>0?e.c:0),++r;e.b=i,e.d=c}function GWe(e,n){var t;return t=F(D(Er,1),jc,30,15,[qoe(e,(Uf(),lo),n),qoe(e,fu,n),qoe(e,fo,n)]),e.f&&(t[0]=m.Math.max(t[0],t[2]),t[2]=t[0]),t}function HWe(e){var n;zt(e,(Se(),lb))&&(n=o(M(e,lb),22),n.Gc((Cp(),jf))?(n.Kc(jf),n.Ec(Tf)):n.Gc(Tf)&&(n.Kc(Tf),n.Ec(jf)))}function qWe(e){var n;zt(e,(Se(),lb))&&(n=o(M(e,lb),22),n.Gc((Cp(),xf))?(n.Kc(xf),n.Ec(Kl)):n.Gc(Kl)&&(n.Kc(Kl),n.Ec(xf)))}function FJ(e,n,t,i){var r,c,s,a;return e.a==null&&nDn(e,n),s=n.b.j.c.length,c=t.d.p,a=i.d.p,r=a-1,r<0&&(r=s-1),c<=r?e.a[r]-e.a[c]:e.a[s-1]-e.a[c]+e.a[r]}function cPn(e){var n;for(n=0;n<e.a.c.length;n++)if(zt(o(Te(e.a,n),9),(Se(),CW))&&!xe(Me(M(o(Te(e.a,n),9),CW))))return!1;return!0}function oPn(e,n,t){var i,r,c,s,a;for(c=e.c,a=t?n:e,i=t?e:n,r=a.p+1;r<i.p;++r)if(s=o(Te(c.a,r),9),!(s.k==(pn(),Ea)||GPn(s)))return!1;return!0}function uPn(e){var n,t;if(!e.b)for(e.b=NI(o(e.f,26).jh().i),t=new $n(o(e.f,26).jh());t.e!=t.i.gc();)n=o(Rn(t),157),ye(e.b,new gF(n));return e.b}function sPn(e){var n,t;if(!e.e)for(e.e=NI(yie(o(e.f,26)).i),t=new $n(yie(o(e.f,26)));t.e!=t.i.gc();)n=o(Rn(t),125),ye(e.e,new OAe(n));return e.e}function VWe(e){var n,t;if(!e.a)for(e.a=NI(CI(o(e.f,26)).i),t=new $n(CI(o(e.f,26)));t.e!=t.i.gc();)n=o(Rn(t),26),ye(e.a,new LA(e,n));return e.a}function Nw(e){var n;if(!e.C&&(e.D!=null||e.B!=null))if(n=$qn(e),n)e.fl(n);else try{e.fl(null)}catch(t){if(t=Fi(t),!U(t,63))throw P(t)}return e.C}function lPn(e){switch(e.q.g){case 5:yKe(e,(Ee(),En)),yKe(e,Ln);break;case 4:xen(e,(Ee(),En)),xen(e,Ln);break;default:xXe(e,(Ee(),En)),xXe(e,Ln)}}function fPn(e){switch(e.q.g){case 5:kKe(e,(Ee(),An)),kKe(e,Cn);break;case 4:Aen(e,(Ee(),An)),Aen(e,Cn);break;default:AXe(e,(Ee(),An)),AXe(e,Cn)}}function p2(e,n){var t,i,r;for(r=new Ar,i=e.Jc();i.Ob();)t=o(i.Pb(),37),S6(t,r.a,0),r.a+=t.f.a+n,r.b=m.Math.max(r.b,t.f.b);return r.b>0&&(r.b+=n),r}function l$(e,n){var t,i,r;for(r=new Ar,i=e.Jc();i.Ob();)t=o(i.Pb(),37),S6(t,0,r.b),r.b+=t.f.b+n,r.a=m.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=n),r}function WWe(e,n){var t,i;if(n.length==0)return 0;for(t=wB(e.a,n[0],(Ee(),Cn)),t+=wB(e.a,n[n.length-1],An),i=0;i<n.length;i++)t+=GNn(e,i,n);return t}function KWe(){y8(),this.c=new ke,this.i=new ke,this.e=new ah,this.f=new ah,this.g=new ah,this.j=new ke,this.a=new ke,this.b=new Jn,this.k=new Jn}function LJ(e,n){var t,i;return e.Db>>16==6?e.Cb.Qh(e,5,Yf,n):(i=hc(o(cn((t=o(Sn(e,16),29),t||e.fi()),e.Db>>16),19)),e.Cb.Qh(e,i.n,i.f,n))}function aPn(e){$4();var n=e.e;if(n&&n.stack){var t=n.stack,i=n+`
124
124
  `;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`