You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1181 lines
2.3 MiB
1181 lines
2.3 MiB
!(function(){var lw=Object.defineProperty,uw=Object.defineProperties;var hw=Object.getOwnPropertyDescriptors;var tv=Object.getOwnPropertySymbols;var wx=Object.prototype.hasOwnProperty,Px=Object.prototype.propertyIsEnumerable;var Qy=Math.pow,xx=(Jn,gi,De)=>gi in Jn?lw(Jn,gi,{enumerable:!0,configurable:!0,writable:!0,value:De}):Jn[gi]=De,Fo=(Jn,gi)=>{for(var De in gi||(gi={}))wx.call(gi,De)&&xx(Jn,De,gi[De]);if(tv)for(var De of tv(gi))Px.call(gi,De)&&xx(Jn,De,gi[De]);return Jn},Za=(Jn,gi)=>uw(Jn,hw(gi));var nv=(Jn,gi)=>{var De={};for(var ye in Jn)wx.call(Jn,ye)&&gi.indexOf(ye)<0&&(De[ye]=Jn[ye]);if(Jn!=null&&tv)for(var ye of tv(Jn))gi.indexOf(ye)<0&&Px.call(Jn,ye)&&(De[ye]=Jn[ye]);return De};var Cx=(Jn,gi,De)=>new Promise((ye,nt)=>{var it=ze=>{try{Mt(De.next(ze))}catch(dt){nt(dt)}},Dt=ze=>{try{Mt(De.throw(ze))}catch(dt){nt(dt)}},Mt=ze=>ze.done?ye(ze.value):Promise.resolve(ze.value).then(it,Dt);Mt((De=De.apply(Jn,gi)).next())});(self.webpackChunk=self.webpackChunk||[]).push([[4030],{87954:function(Jn,gi,De){"use strict";De.d(gi,{LB:function(){return Si},g4:function(){return nn},VK:function(){return gn},Cj:function(){return br},O1:function(){return Pr},Zj:function(){return Gi}});var ye=De(59301),nt=De(4676),it=De(35241);const Dt={display:"none"};function Mt(He){let{id:qe,value:St}=He;return ye.createElement("div",{id:qe,style:Dt},St)}function ze(He){let{id:qe,announcement:St,ariaLiveType:It="assertive"}=He;const en={position:"fixed",top:0,left:0,width:1,height:1,margin:-1,border:0,padding:0,overflow:"hidden",clip:"rect(0 0 0 0)",clipPath:"inset(100%)",whiteSpace:"nowrap"};return ye.createElement("div",{id:qe,style:en,role:"status","aria-live":It,"aria-atomic":!0},St)}function dt(){const[He,qe]=(0,ye.useState)("");return{announce:(0,ye.useCallback)(It=>{It!=null&&qe(It)},[]),announcement:He}}const Kt=(0,ye.createContext)(null);function Et(He){const qe=(0,ye.useContext)(Kt);(0,ye.useEffect)(()=>{if(!qe)throw new Error("useDndMonitor must be used within a children of <DndContext>");return qe(He)},[He,qe])}function Me(){const[He]=(0,ye.useState)(()=>new Set),qe=(0,ye.useCallback)(It=>(He.add(It),()=>He.delete(It)),[He]);return[(0,ye.useCallback)(It=>{let{type:en,event:tt}=It;He.forEach(Ft=>{var Gt;return(Gt=Ft[en])==null?void 0:Gt.call(Ft,tt)})},[He]),qe]}const zt={draggable:`
|
|
To pick up a draggable item, press the space bar.
|
|
While dragging, use the arrow keys to move the item.
|
|
Press space again to drop the item in its new position, or press escape to cancel.
|
|
`},Ke={onDragStart(He){let{active:qe}=He;return"Picked up draggable item "+qe.id+"."},onDragOver(He){let{active:qe,over:St}=He;return St?"Draggable item "+qe.id+" was moved over droppable area "+St.id+".":"Draggable item "+qe.id+" is no longer over a droppable area."},onDragEnd(He){let{active:qe,over:St}=He;return St?"Draggable item "+qe.id+" was dropped over droppable area "+St.id:"Draggable item "+qe.id+" was dropped."},onDragCancel(He){let{active:qe}=He;return"Dragging was cancelled. Draggable item "+qe.id+" was dropped."}};function Ht(He){let{announcements:qe=Ke,container:St,hiddenTextDescribedById:It,screenReaderInstructions:en=zt}=He;const{announce:tt,announcement:Ft}=dt(),Gt=(0,it.Ld)("DndLiveRegion"),[Rt,on]=(0,ye.useState)(!1);if((0,ye.useEffect)(()=>{on(!0)},[]),Et((0,ye.useMemo)(()=>({onDragStart(Ee){let{active:Ue}=Ee;tt(qe.onDragStart({active:Ue}))},onDragMove(Ee){let{active:Ue,over:Re}=Ee;qe.onDragMove&&tt(qe.onDragMove({active:Ue,over:Re}))},onDragOver(Ee){let{active:Ue,over:Re}=Ee;tt(qe.onDragOver({active:Ue,over:Re}))},onDragEnd(Ee){let{active:Ue,over:Re}=Ee;tt(qe.onDragEnd({active:Ue,over:Re}))},onDragCancel(Ee){let{active:Ue,over:Re}=Ee;tt(qe.onDragCancel({active:Ue,over:Re}))}}),[tt,qe])),!Rt)return null;const li=ye.createElement(ye.Fragment,null,ye.createElement(Mt,{id:It,value:en.draggable}),ye.createElement(ze,{id:Gt,announcement:Ft}));return St?(0,nt.createPortal)(li,St):li}var Ne;(function(He){He.DragStart="dragStart",He.DragMove="dragMove",He.DragEnd="dragEnd",He.DragCancel="dragCancel",He.DragOver="dragOver",He.RegisterDroppable="registerDroppable",He.SetDroppableDisabled="setDroppableDisabled",He.UnregisterDroppable="unregisterDroppable"})(Ne||(Ne={}));function ne(){}function te(He,qe){return useMemo(()=>({sensor:He,options:qe!=null?qe:{}}),[He,qe])}function de(){for(var He=arguments.length,qe=new Array(He),St=0;St<He;St++)qe[St]=arguments[St];return useMemo(()=>[...qe].filter(It=>It!=null),[...qe])}const le=Object.freeze({x:0,y:0});function ge(He,qe){return Math.sqrt(Math.pow(He.x-qe.x,2)+Math.pow(He.y-qe.y,2))}function me(He,qe){const St=getEventCoordinates(He);if(!St)return"0 0";const It={x:(St.x-qe.left)/qe.width*100,y:(St.y-qe.top)/qe.height*100};return It.x+"% "+It.y+"%"}function Se(He,qe){let{data:{value:St}}=He,{data:{value:It}}=qe;return St-It}function be(He,qe){let{data:{value:St}}=He,{data:{value:It}}=qe;return It-St}function Ie(He){let{left:qe,top:St,height:It,width:en}=He;return[{x:qe,y:St},{x:qe+en,y:St},{x:qe,y:St+It},{x:qe+en,y:St+It}]}function Ze(He,qe){if(!He||He.length===0)return null;const[St]=He;return qe?St[qe]:St}function st(He,qe,St){return qe===void 0&&(qe=He.left),St===void 0&&(St=He.top),{x:qe+He.width*.5,y:St+He.height*.5}}const Ye=He=>{let{collisionRect:qe,droppableRects:St,droppableContainers:It}=He;const en=st(qe,qe.left,qe.top),tt=[];for(const Ft of It){const{id:Gt}=Ft,Rt=St.get(Gt);if(Rt){const on=ge(st(Rt),en);tt.push({id:Gt,data:{droppableContainer:Ft,value:on}})}}return tt.sort(Se)},Xe=He=>{let{collisionRect:qe,droppableRects:St,droppableContainers:It}=He;const en=Ie(qe),tt=[];for(const Ft of It){const{id:Gt}=Ft,Rt=St.get(Gt);if(Rt){const on=Ie(Rt),li=en.reduce((Ue,Re,ot)=>Ue+ge(on[ot],Re),0),Ee=Number((li/4).toFixed(4));tt.push({id:Gt,data:{droppableContainer:Ft,value:Ee}})}}return tt.sort(Se)};function At(He,qe){const St=Math.max(qe.top,He.top),It=Math.max(qe.left,He.left),en=Math.min(qe.left+qe.width,He.left+He.width),tt=Math.min(qe.top+qe.height,He.top+He.height),Ft=en-It,Gt=tt-St;if(It<en&&St<tt){const Rt=qe.width*qe.height,on=He.width*He.height,li=Ft*Gt,Ee=li/(Rt+on-li);return Number(Ee.toFixed(4))}return 0}const ft=He=>{let{collisionRect:qe,droppableRects:St,droppableContainers:It}=He;const en=[];for(const tt of It){const{id:Ft}=tt,Gt=St.get(Ft);if(Gt){const Rt=At(Gt,qe);Rt>0&&en.push({id:Ft,data:{droppableContainer:tt,value:Rt}})}}return en.sort(be)};function Nt(He,qe){const{top:St,left:It,bottom:en,right:tt}=qe;return St<=He.y&&He.y<=en&&It<=He.x&&He.x<=tt}const Lt=He=>{let{droppableContainers:qe,droppableRects:St,pointerCoordinates:It}=He;if(!It)return[];const en=[];for(const tt of qe){const{id:Ft}=tt,Gt=St.get(Ft);if(Gt&&Nt(It,Gt)){const on=Ie(Gt).reduce((Ee,Ue)=>Ee+ge(It,Ue),0),li=Number((on/4).toFixed(4));en.push({id:Ft,data:{droppableContainer:tt,value:li}})}}return en.sort(Se)};function ln(He,qe,St){return Za(Fo({},He),{scaleX:qe&&St?qe.width/St.width:1,scaleY:qe&&St?qe.height/St.height:1})}function kn(He,qe){return He&&qe?{x:He.left-qe.left,y:He.top-qe.top}:le}function un(He){return function(St){for(var It=arguments.length,en=new Array(It>1?It-1:0),tt=1;tt<It;tt++)en[tt-1]=arguments[tt];return en.reduce((Ft,Gt)=>Za(Fo({},Ft),{top:Ft.top+He*Gt.y,bottom:Ft.bottom+He*Gt.y,left:Ft.left+He*Gt.x,right:Ft.right+He*Gt.x}),Fo({},St))}}const _t=un(1);function hn(He){if(He.startsWith("matrix3d(")){const qe=He.slice(9,-1).split(/, /);return{x:+qe[12],y:+qe[13],scaleX:+qe[0],scaleY:+qe[5]}}else if(He.startsWith("matrix(")){const qe=He.slice(7,-1).split(/, /);return{x:+qe[4],y:+qe[5],scaleX:+qe[0],scaleY:+qe[3]}}return null}function vt(He,qe,St){const It=hn(qe);if(!It)return He;const{scaleX:en,scaleY:tt,x:Ft,y:Gt}=It,Rt=He.left-Ft-(1-en)*parseFloat(St),on=He.top-Gt-(1-tt)*parseFloat(St.slice(St.indexOf(" ")+1)),li=en?He.width/en:He.width,Ee=tt?He.height/tt:He.height;return{width:li,height:Ee,top:on,right:Rt+li,bottom:on+Ee,left:Rt}}const $e={ignoreTransform:!1};function gn(He,qe){qe===void 0&&(qe=$e);let St=He.getBoundingClientRect();if(qe.ignoreTransform){const{transform:on,transformOrigin:li}=(0,it.Jj)(He).getComputedStyle(He);on&&(St=vt(St,on,li))}const{top:It,left:en,width:tt,height:Ft,bottom:Gt,right:Rt}=St;return{top:It,left:en,width:tt,height:Ft,bottom:Gt,right:Rt}}function ci(He){return gn(He,{ignoreTransform:!0})}function Fn(He){const qe=He.innerWidth,St=He.innerHeight;return{top:0,left:0,right:qe,bottom:St,width:qe,height:St}}function rn(He,qe){return qe===void 0&&(qe=(0,it.Jj)(He).getComputedStyle(He)),qe.position==="fixed"}function Xn(He,qe){qe===void 0&&(qe=(0,it.Jj)(He).getComputedStyle(He));const St=/(auto|scroll|overlay)/;return["overflow","overflowX","overflowY"].some(en=>{const tt=qe[en];return typeof tt=="string"?St.test(tt):!1})}function Nn(He,qe){const St=[];function It(en){if(qe!=null&&St.length>=qe||!en)return St;if((0,it.qk)(en)&&en.scrollingElement!=null&&!St.includes(en.scrollingElement))return St.push(en.scrollingElement),St;if(!(0,it.Re)(en)||(0,it.vZ)(en)||St.includes(en))return St;const tt=(0,it.Jj)(He).getComputedStyle(en);return en!==He&&Xn(en,tt)&&St.push(en),rn(en,tt)?St:It(en.parentNode)}return He?It(He):St}function mi(He){const[qe]=Nn(He,1);return qe!=null?qe:null}function Zt(He){return!it.Nq||!He?null:(0,it.FJ)(He)?He:(0,it.UG)(He)?(0,it.qk)(He)||He===(0,it.r3)(He).scrollingElement?window:(0,it.Re)(He)?He:null:null}function Rn(He){return(0,it.FJ)(He)?He.scrollX:He.scrollLeft}function wt(He){return(0,it.FJ)(He)?He.scrollY:He.scrollTop}function Ai(He){return{x:Rn(He),y:wt(He)}}var Kn;(function(He){He[He.Forward=1]="Forward",He[He.Backward=-1]="Backward"})(Kn||(Kn={}));function je(He){return!it.Nq||!He?!1:He===document.scrollingElement}function Le(He){const qe={x:0,y:0},St=je(He)?{height:window.innerHeight,width:window.innerWidth}:{height:He.clientHeight,width:He.clientWidth},It={x:He.scrollWidth-St.width,y:He.scrollHeight-St.height},en=He.scrollTop<=qe.y,tt=He.scrollLeft<=qe.x,Ft=He.scrollTop>=It.y,Gt=He.scrollLeft>=It.x;return{isTop:en,isLeft:tt,isBottom:Ft,isRight:Gt,maxScroll:It,minScroll:qe}}const we={x:.2,y:.2};function Be(He,qe,St,It,en){let{top:tt,left:Ft,right:Gt,bottom:Rt}=St;It===void 0&&(It=10),en===void 0&&(en=we);const{isTop:on,isBottom:li,isLeft:Ee,isRight:Ue}=Le(He),Re={x:0,y:0},ot={x:0,y:0},lt={height:qe.height*en.y,width:qe.width*en.x};return!on&&tt<=qe.top+lt.height?(Re.y=Kn.Backward,ot.y=It*Math.abs((qe.top+lt.height-tt)/lt.height)):!li&&Rt>=qe.bottom-lt.height&&(Re.y=Kn.Forward,ot.y=It*Math.abs((qe.bottom-lt.height-Rt)/lt.height)),!Ue&&Gt>=qe.right-lt.width?(Re.x=Kn.Forward,ot.x=It*Math.abs((qe.right-lt.width-Gt)/lt.width)):!Ee&&Ft<=qe.left+lt.width&&(Re.x=Kn.Backward,ot.x=It*Math.abs((qe.left+lt.width-Ft)/lt.width)),{direction:Re,speed:ot}}function Ge(He){if(He===document.scrollingElement){const{innerWidth:tt,innerHeight:Ft}=window;return{top:0,left:0,right:tt,bottom:Ft,width:tt,height:Ft}}const{top:qe,left:St,right:It,bottom:en}=He.getBoundingClientRect();return{top:qe,left:St,right:It,bottom:en,width:He.clientWidth,height:He.clientHeight}}function ke(He){return He.reduce((qe,St)=>(0,it.IH)(qe,Ai(St)),le)}function et(He){return He.reduce((qe,St)=>qe+Rn(St),0)}function an(He){return He.reduce((qe,St)=>qe+wt(St),0)}function Bt(He,qe){if(qe===void 0&&(qe=gn),!He)return;const{top:St,left:It,bottom:en,right:tt}=qe(He);mi(He)&&(en<=0||tt<=0||St>=window.innerHeight||It>=window.innerWidth)&&He.scrollIntoView({block:"center",inline:"center"})}const Ut=[["x",["left","right"],et],["y",["top","bottom"],an]];class gt{constructor(qe,St){this.rect=void 0,this.width=void 0,this.height=void 0,this.top=void 0,this.bottom=void 0,this.right=void 0,this.left=void 0;const It=Nn(St),en=ke(It);this.rect=Fo({},qe),this.width=qe.width,this.height=qe.height;for(const[tt,Ft,Gt]of Ut)for(const Rt of Ft)Object.defineProperty(this,Rt,{get:()=>{const on=Gt(It),li=en[tt]-on;return this.rect[Rt]+li},enumerable:!0});Object.defineProperty(this,"rect",{enumerable:!1})}}class Pt{constructor(qe){this.target=void 0,this.listeners=[],this.removeAll=()=>{this.listeners.forEach(St=>{var It;return(It=this.target)==null?void 0:It.removeEventListener(...St)})},this.target=qe}add(qe,St,It){var en;(en=this.target)==null||en.addEventListener(qe,St,It),this.listeners.push([qe,St,It])}}function Tt(He){const{EventTarget:qe}=(0,it.Jj)(He);return He instanceof qe?He:(0,it.r3)(He)}function Yt(He,qe){const St=Math.abs(He.x),It=Math.abs(He.y);return typeof qe=="number"?Math.sqrt(Qy(St,2)+Qy(It,2))>qe:"x"in qe&&"y"in qe?St>qe.x&&It>qe.y:"x"in qe?St>qe.x:"y"in qe?It>qe.y:!1}var dn;(function(He){He.Click="click",He.DragStart="dragstart",He.Keydown="keydown",He.ContextMenu="contextmenu",He.Resize="resize",He.SelectionChange="selectionchange",He.VisibilityChange="visibilitychange"})(dn||(dn={}));function On(He){He.preventDefault()}function wn(He){He.stopPropagation()}var nn;(function(He){He.Space="Space",He.Down="ArrowDown",He.Right="ArrowRight",He.Left="ArrowLeft",He.Up="ArrowUp",He.Esc="Escape",He.Enter="Enter",He.Tab="Tab"})(nn||(nn={}));const jt={start:[nn.Space,nn.Enter],cancel:[nn.Esc],end:[nn.Space,nn.Enter,nn.Tab]},Xt=(He,qe)=>{let{currentCoordinates:St}=qe;switch(He.code){case nn.Right:return Za(Fo({},St),{x:St.x+25});case nn.Left:return Za(Fo({},St),{x:St.x-25});case nn.Down:return Za(Fo({},St),{y:St.y+25});case nn.Up:return Za(Fo({},St),{y:St.y-25})}};class pn{constructor(qe){this.props=void 0,this.autoScrollEnabled=!1,this.referenceCoordinates=void 0,this.listeners=void 0,this.windowListeners=void 0,this.props=qe;const{event:{target:St}}=qe;this.props=qe,this.listeners=new Pt((0,it.r3)(St)),this.windowListeners=new Pt((0,it.Jj)(St)),this.handleKeyDown=this.handleKeyDown.bind(this),this.handleCancel=this.handleCancel.bind(this),this.attach()}attach(){this.handleStart(),this.windowListeners.add(dn.Resize,this.handleCancel),this.windowListeners.add(dn.VisibilityChange,this.handleCancel),setTimeout(()=>this.listeners.add(dn.Keydown,this.handleKeyDown))}handleStart(){const{activeNode:qe,onStart:St}=this.props,It=qe.node.current;It&&Bt(It),St(le)}handleKeyDown(qe){if((0,it.vd)(qe)){const{active:St,context:It,options:en}=this.props,{keyboardCodes:tt=jt,coordinateGetter:Ft=Xt,scrollBehavior:Gt="smooth"}=en,{code:Rt}=qe;if(tt.end.includes(Rt)){this.handleEnd(qe);return}if(tt.cancel.includes(Rt)){this.handleCancel(qe);return}const{collisionRect:on}=It.current,li=on?{x:on.left,y:on.top}:le;this.referenceCoordinates||(this.referenceCoordinates=li);const Ee=Ft(qe,{active:St,context:It.current,currentCoordinates:li});if(Ee){const Ue=(0,it.$X)(Ee,li),Re={x:0,y:0},{scrollableAncestors:ot}=It.current;for(const lt of ot){const Wt=qe.code,{isTop:Vt,isRight:tn,isLeft:Ln,isBottom:Wn,maxScroll:mn,minScroll:ei}=Le(lt),fi=Ge(lt),ut={x:Math.min(Wt===nn.Right?fi.right-fi.width/2:fi.right,Math.max(Wt===nn.Right?fi.left:fi.left+fi.width/2,Ee.x)),y:Math.min(Wt===nn.Down?fi.bottom-fi.height/2:fi.bottom,Math.max(Wt===nn.Down?fi.top:fi.top+fi.height/2,Ee.y))},Qn=Wt===nn.Right&&!tn||Wt===nn.Left&&!Ln,ri=Wt===nn.Down&&!Wn||Wt===nn.Up&&!Vt;if(Qn&&ut.x!==Ee.x){const jn=lt.scrollLeft+Ue.x,oi=Wt===nn.Right&&jn<=mn.x||Wt===nn.Left&&jn>=ei.x;if(oi&&!Ue.y){lt.scrollTo({left:jn,behavior:Gt});return}oi?Re.x=lt.scrollLeft-jn:Re.x=Wt===nn.Right?lt.scrollLeft-mn.x:lt.scrollLeft-ei.x,Re.x&<.scrollBy({left:-Re.x,behavior:Gt});break}else if(ri&&ut.y!==Ee.y){const jn=lt.scrollTop+Ue.y,oi=Wt===nn.Down&&jn<=mn.y||Wt===nn.Up&&jn>=ei.y;if(oi&&!Ue.x){lt.scrollTo({top:jn,behavior:Gt});return}oi?Re.y=lt.scrollTop-jn:Re.y=Wt===nn.Down?lt.scrollTop-mn.y:lt.scrollTop-ei.y,Re.y&<.scrollBy({top:-Re.y,behavior:Gt});break}}this.handleMove(qe,(0,it.IH)((0,it.$X)(Ee,this.referenceCoordinates),Re))}}}handleMove(qe,St){const{onMove:It}=this.props;qe.preventDefault(),It(St)}handleEnd(qe){const{onEnd:St}=this.props;qe.preventDefault(),this.detach(),St()}handleCancel(qe){const{onCancel:St}=this.props;qe.preventDefault(),this.detach(),St()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll()}}pn.activators=[{eventName:"onKeyDown",handler:(He,qe,St)=>{let{keyboardCodes:It=jt,onActivation:en}=qe,{active:tt}=St;const{code:Ft}=He.nativeEvent;if(It.start.includes(Ft)){const Gt=tt.activatorNode.current;return Gt&&He.target!==Gt?!1:(He.preventDefault(),en==null||en({event:He.nativeEvent}),!0)}return!1}}];function bn(He){return!!(He&&"distance"in He)}function Un(He){return!!(He&&"delay"in He)}class ti{constructor(qe,St,It){var en;It===void 0&&(It=Tt(qe.event.target)),this.props=void 0,this.events=void 0,this.autoScrollEnabled=!0,this.document=void 0,this.activated=!1,this.initialCoordinates=void 0,this.timeoutId=null,this.listeners=void 0,this.documentListeners=void 0,this.windowListeners=void 0,this.props=qe,this.events=St;const{event:tt}=qe,{target:Ft}=tt;this.props=qe,this.events=St,this.document=(0,it.r3)(Ft),this.documentListeners=new Pt(this.document),this.listeners=new Pt(It),this.windowListeners=new Pt((0,it.Jj)(Ft)),this.initialCoordinates=(en=(0,it.DC)(tt))!=null?en:le,this.handleStart=this.handleStart.bind(this),this.handleMove=this.handleMove.bind(this),this.handleEnd=this.handleEnd.bind(this),this.handleCancel=this.handleCancel.bind(this),this.handleKeydown=this.handleKeydown.bind(this),this.removeTextSelection=this.removeTextSelection.bind(this),this.attach()}attach(){const{events:qe,props:{options:{activationConstraint:St,bypassActivationConstraint:It}}}=this;if(this.listeners.add(qe.move.name,this.handleMove,{passive:!1}),this.listeners.add(qe.end.name,this.handleEnd),qe.cancel&&this.listeners.add(qe.cancel.name,this.handleCancel),this.windowListeners.add(dn.Resize,this.handleCancel),this.windowListeners.add(dn.DragStart,On),this.windowListeners.add(dn.VisibilityChange,this.handleCancel),this.windowListeners.add(dn.ContextMenu,On),this.documentListeners.add(dn.Keydown,this.handleKeydown),St){if(It!=null&&It({event:this.props.event,activeNode:this.props.activeNode,options:this.props.options}))return this.handleStart();if(Un(St)){this.timeoutId=setTimeout(this.handleStart,St.delay),this.handlePending(St);return}if(bn(St)){this.handlePending(St);return}}this.handleStart()}detach(){this.listeners.removeAll(),this.windowListeners.removeAll(),setTimeout(this.documentListeners.removeAll,50),this.timeoutId!==null&&(clearTimeout(this.timeoutId),this.timeoutId=null)}handlePending(qe,St){const{active:It,onPending:en}=this.props;en(It,qe,this.initialCoordinates,St)}handleStart(){const{initialCoordinates:qe}=this,{onStart:St}=this.props;qe&&(this.activated=!0,this.documentListeners.add(dn.Click,wn,{capture:!0}),this.removeTextSelection(),this.documentListeners.add(dn.SelectionChange,this.removeTextSelection),St(qe))}handleMove(qe){var St;const{activated:It,initialCoordinates:en,props:tt}=this,{onMove:Ft,options:{activationConstraint:Gt}}=tt;if(!en)return;const Rt=(St=(0,it.DC)(qe))!=null?St:le,on=(0,it.$X)(en,Rt);if(!It&&Gt){if(bn(Gt)){if(Gt.tolerance!=null&&Yt(on,Gt.tolerance))return this.handleCancel();if(Yt(on,Gt.distance))return this.handleStart()}if(Un(Gt)&&Yt(on,Gt.tolerance))return this.handleCancel();this.handlePending(Gt,on);return}qe.cancelable&&qe.preventDefault(),Ft(Rt)}handleEnd(){const{onAbort:qe,onEnd:St}=this.props;this.detach(),this.activated||qe(this.props.active),St()}handleCancel(){const{onAbort:qe,onCancel:St}=this.props;this.detach(),this.activated||qe(this.props.active),St()}handleKeydown(qe){qe.code===nn.Esc&&this.handleCancel()}removeTextSelection(){var qe;(qe=this.document.getSelection())==null||qe.removeAllRanges()}}const pi={cancel:{name:"pointercancel"},move:{name:"pointermove"},end:{name:"pointerup"}};class vn extends ti{constructor(qe){const{event:St}=qe,It=(0,it.r3)(St.target);super(qe,pi,It)}}vn.activators=[{eventName:"onPointerDown",handler:(He,qe)=>{let{nativeEvent:St}=He,{onActivation:It}=qe;return!St.isPrimary||St.button!==0?!1:(It==null||It({event:St}),!0)}}];const wi={move:{name:"mousemove"},end:{name:"mouseup"}};var Yi;(function(He){He[He.RightClick=2]="RightClick"})(Yi||(Yi={}));class gr extends ti{constructor(qe){super(qe,wi,(0,it.r3)(qe.event.target))}}gr.activators=[{eventName:"onMouseDown",handler:(He,qe)=>{let{nativeEvent:St}=He,{onActivation:It}=qe;return St.button===Yi.RightClick?!1:(It==null||It({event:St}),!0)}}];const rr={cancel:{name:"touchcancel"},move:{name:"touchmove"},end:{name:"touchend"}};class tr extends ti{constructor(qe){super(qe,rr)}static setup(){return window.addEventListener(rr.move.name,qe,{capture:!1,passive:!1}),function(){window.removeEventListener(rr.move.name,qe)};function qe(){}}}tr.activators=[{eventName:"onTouchStart",handler:(He,qe)=>{let{nativeEvent:St}=He,{onActivation:It}=qe;const{touches:en}=St;return en.length>1?!1:(It==null||It({event:St}),!0)}}];var vr;(function(He){He[He.Pointer=0]="Pointer",He[He.DraggableRect=1]="DraggableRect"})(vr||(vr={}));var hr;(function(He){He[He.TreeOrder=0]="TreeOrder",He[He.ReversedTreeOrder=1]="ReversedTreeOrder"})(hr||(hr={}));function ar(He){let{acceleration:qe,activator:St=vr.Pointer,canScroll:It,draggingRect:en,enabled:tt,interval:Ft=5,order:Gt=hr.TreeOrder,pointerCoordinates:Rt,scrollableAncestors:on,scrollableAncestorRects:li,delta:Ee,threshold:Ue}=He;const Re=yr({delta:Ee,disabled:!tt}),[ot,lt]=(0,it.Yz)(),Wt=(0,ye.useRef)({x:0,y:0}),Vt=(0,ye.useRef)({x:0,y:0}),tn=(0,ye.useMemo)(()=>{switch(St){case vr.Pointer:return Rt?{top:Rt.y,bottom:Rt.y,left:Rt.x,right:Rt.x}:null;case vr.DraggableRect:return en}},[St,en,Rt]),Ln=(0,ye.useRef)(null),Wn=(0,ye.useCallback)(()=>{const ei=Ln.current;if(!ei)return;const fi=Wt.current.x*Vt.current.x,ut=Wt.current.y*Vt.current.y;ei.scrollBy(fi,ut)},[]),mn=(0,ye.useMemo)(()=>Gt===hr.TreeOrder?[...on].reverse():on,[Gt,on]);(0,ye.useEffect)(()=>{if(!tt||!on.length||!tn){lt();return}for(const ei of mn){if((It==null?void 0:It(ei))===!1)continue;const fi=on.indexOf(ei),ut=li[fi];if(!ut)continue;const{direction:Qn,speed:ri}=Be(ei,ut,tn,qe,Ue);for(const jn of["x","y"])Re[jn][Qn[jn]]||(ri[jn]=0,Qn[jn]=0);if(ri.x>0||ri.y>0){lt(),Ln.current=ei,ot(Wn,Ft),Wt.current=ri,Vt.current=Qn;return}}Wt.current={x:0,y:0},Vt.current={x:0,y:0},lt()},[qe,Wn,It,lt,tt,Ft,JSON.stringify(tn),JSON.stringify(Re),ot,on,mn,li,JSON.stringify(Ue)])}const Xi={x:{[Kn.Backward]:!1,[Kn.Forward]:!1},y:{[Kn.Backward]:!1,[Kn.Forward]:!1}};function yr(He){let{delta:qe,disabled:St}=He;const It=(0,it.D9)(qe);return(0,it.Gj)(en=>{if(St||!It||!en)return Xi;const tt={x:Math.sign(qe.x-It.x),y:Math.sign(qe.y-It.y)};return{x:{[Kn.Backward]:en.x[Kn.Backward]||tt.x===-1,[Kn.Forward]:en.x[Kn.Forward]||tt.x===1},y:{[Kn.Backward]:en.y[Kn.Backward]||tt.y===-1,[Kn.Forward]:en.y[Kn.Forward]||tt.y===1}}},[St,qe,It])}function Ce(He,qe){const St=qe!=null?He.get(qe):void 0,It=St?St.node.current:null;return(0,it.Gj)(en=>{var tt;return qe==null?null:(tt=It!=null?It:en)!=null?tt:null},[It,qe])}function Sn(He,qe){return(0,ye.useMemo)(()=>He.reduce((St,It)=>{const{sensor:en}=It,tt=en.activators.map(Ft=>({eventName:Ft.eventName,handler:qe(Ft.handler,It)}));return[...St,...tt]},[]),[He,qe])}var Gn;(function(He){He[He.Always=0]="Always",He[He.BeforeDragging=1]="BeforeDragging",He[He.WhileDragging=2]="WhileDragging"})(Gn||(Gn={}));var dr;(function(He){He.Optimized="optimized"})(dr||(dr={}));const or=new Map;function Ii(He,qe){let{dragging:St,dependencies:It,config:en}=qe;const[tt,Ft]=(0,ye.useState)(null),{frequency:Gt,measure:Rt,strategy:on}=en,li=(0,ye.useRef)(He),Ee=Wt(),Ue=(0,it.Ey)(Ee),Re=(0,ye.useCallback)(function(Vt){Vt===void 0&&(Vt=[]),!Ue.current&&Ft(tn=>tn===null?Vt:tn.concat(Vt.filter(Ln=>!tn.includes(Ln))))},[Ue]),ot=(0,ye.useRef)(null),lt=(0,it.Gj)(Vt=>{if(Ee&&!St)return or;if(!Vt||Vt===or||li.current!==He||tt!=null){const tn=new Map;for(let Ln of He){if(!Ln)continue;if(tt&&tt.length>0&&!tt.includes(Ln.id)&&Ln.rect.current){tn.set(Ln.id,Ln.rect.current);continue}const Wn=Ln.node.current,mn=Wn?new gt(Rt(Wn),Wn):null;Ln.rect.current=mn,mn&&tn.set(Ln.id,mn)}return tn}return Vt},[He,tt,St,Ee,Rt]);return(0,ye.useEffect)(()=>{li.current=He},[He]),(0,ye.useEffect)(()=>{Ee||Re()},[St,Ee]),(0,ye.useEffect)(()=>{tt&&tt.length>0&&Ft(null)},[JSON.stringify(tt)]),(0,ye.useEffect)(()=>{Ee||typeof Gt!="number"||ot.current!==null||(ot.current=setTimeout(()=>{Re(),ot.current=null},Gt))},[Gt,Ee,Re,...It]),{droppableRects:lt,measureDroppableContainers:Re,measuringScheduled:tt!=null};function Wt(){switch(on){case Gn.Always:return!1;case Gn.BeforeDragging:return St;default:return!St}}}function Tn(He,qe){return(0,it.Gj)(St=>He?St||(typeof qe=="function"?qe(He):He):null,[qe,He])}function Cn(He,qe){return Tn(He,qe)}function Mn(He){let{callback:qe,disabled:St}=He;const It=(0,it.zX)(qe),en=(0,ye.useMemo)(()=>{if(St||typeof window=="undefined"||typeof window.MutationObserver=="undefined")return;const{MutationObserver:tt}=window;return new tt(It)},[It,St]);return(0,ye.useEffect)(()=>()=>en==null?void 0:en.disconnect(),[en]),en}function yt(He){let{callback:qe,disabled:St}=He;const It=(0,it.zX)(qe),en=(0,ye.useMemo)(()=>{if(St||typeof window=="undefined"||typeof window.ResizeObserver=="undefined")return;const{ResizeObserver:tt}=window;return new tt(It)},[St]);return(0,ye.useEffect)(()=>()=>en==null?void 0:en.disconnect(),[en]),en}function xt(He){return new gt(gn(He),He)}function Ct(He,qe,St){qe===void 0&&(qe=xt);const[It,en]=(0,ye.useState)(null);function tt(){en(Rt=>{if(!He)return null;if(He.isConnected===!1){var on;return(on=Rt!=null?Rt:St)!=null?on:null}const li=qe(He);return JSON.stringify(Rt)===JSON.stringify(li)?Rt:li})}const Ft=Mn({callback(Rt){if(He)for(const on of Rt){const{type:li,target:Ee}=on;if(li==="childList"&&Ee instanceof HTMLElement&&Ee.contains(He)){tt();break}}}}),Gt=yt({callback:tt});return(0,it.LI)(()=>{tt(),He?(Gt==null||Gt.observe(He),Ft==null||Ft.observe(document.body,{childList:!0,subtree:!0})):(Gt==null||Gt.disconnect(),Ft==null||Ft.disconnect())},[He]),It}function Yn(He){const qe=Tn(He);return kn(He,qe)}const $n=[];function di(He){const qe=(0,ye.useRef)(He),St=(0,it.Gj)(It=>He?It&&It!==$n&&He&&qe.current&&He.parentNode===qe.current.parentNode?It:Nn(He):$n,[He]);return(0,ye.useEffect)(()=>{qe.current=He},[He]),St}function xn(He){const[qe,St]=(0,ye.useState)(null),It=(0,ye.useRef)(He),en=(0,ye.useCallback)(tt=>{const Ft=Zt(tt.target);Ft&&St(Gt=>Gt?(Gt.set(Ft,Ai(Ft)),new Map(Gt)):null)},[]);return(0,ye.useEffect)(()=>{const tt=It.current;if(He!==tt){Ft(tt);const Gt=He.map(Rt=>{const on=Zt(Rt);return on?(on.addEventListener("scroll",en,{passive:!0}),[on,Ai(on)]):null}).filter(Rt=>Rt!=null);St(Gt.length?new Map(Gt):null),It.current=He}return()=>{Ft(He),Ft(tt)};function Ft(Gt){Gt.forEach(Rt=>{const on=Zt(Rt);on==null||on.removeEventListener("scroll",en)})}},[en,He]),(0,ye.useMemo)(()=>He.length?qe?Array.from(qe.values()).reduce((tt,Ft)=>(0,it.IH)(tt,Ft),le):ke(He):le,[He,qe])}function ai(He,qe){qe===void 0&&(qe=[]);const St=(0,ye.useRef)(null);return(0,ye.useEffect)(()=>{St.current=null},qe),(0,ye.useEffect)(()=>{const It=He!==le;It&&!St.current&&(St.current=He),!It&&St.current&&(St.current=null)},[He]),St.current?(0,it.$X)(He,St.current):le}function Pn(He){(0,ye.useEffect)(()=>{if(!it.Nq)return;const qe=He.map(St=>{let{sensor:It}=St;return It.setup==null?void 0:It.setup()});return()=>{for(const St of qe)St==null||St()}},He.map(qe=>{let{sensor:St}=qe;return St}))}function zi(He,qe){return(0,ye.useMemo)(()=>He.reduce((St,It)=>{let{eventName:en,handler:tt}=It;return St[en]=Ft=>{tt(Ft,qe)},St},{}),[He,qe])}function fr(He){return(0,ye.useMemo)(()=>He?Fn(He):null,[He])}const Ve=[];function mt(He,qe){qe===void 0&&(qe=gn);const[St]=He,It=fr(St?(0,it.Jj)(St):null),[en,tt]=(0,ye.useState)(Ve);function Ft(){tt(()=>He.length?He.map(Rt=>je(Rt)?It:new gt(qe(Rt),Rt)):Ve)}const Gt=yt({callback:Ft});return(0,it.LI)(()=>{Gt==null||Gt.disconnect(),Ft(),He.forEach(Rt=>Gt==null?void 0:Gt.observe(Rt))},[He]),en}function Dn(He){if(!He)return null;if(He.children.length>1)return He;const qe=He.children[0];return(0,it.Re)(qe)?qe:He}function An(He){let{measure:qe}=He;const[St,It]=(0,ye.useState)(null),en=(0,ye.useCallback)(on=>{for(const{target:li}of on)if((0,it.Re)(li)){It(Ee=>{const Ue=qe(li);return Ee?Za(Fo({},Ee),{width:Ue.width,height:Ue.height}):Ue});break}},[qe]),tt=yt({callback:en}),Ft=(0,ye.useCallback)(on=>{const li=Dn(on);tt==null||tt.disconnect(),li&&(tt==null||tt.observe(li)),It(li?qe(li):null)},[qe,tt]),[Gt,Rt]=(0,it.wm)(Ft);return(0,ye.useMemo)(()=>({nodeRef:Gt,rect:St,setRef:Rt}),[St,Gt,Rt])}const Ot=[{sensor:vn,options:{}},{sensor:pn,options:{}}],Bn={current:{}},Hn={draggable:{measure:ci},droppable:{measure:ci,strategy:Gn.WhileDragging,frequency:dr.Optimized},dragOverlay:{measure:gn}};class _n extends Map{get(qe){var St;return qe!=null&&(St=super.get(qe))!=null?St:void 0}toArray(){return Array.from(this.values())}getEnabled(){return this.toArray().filter(qe=>{let{disabled:St}=qe;return!St})}getNodeFor(qe){var St,It;return(St=(It=this.get(qe))==null?void 0:It.node.current)!=null?St:void 0}}const Ei={activatorEvent:null,active:null,activeNode:null,activeNodeRect:null,collisions:null,containerNodeRect:null,draggableNodes:new Map,droppableRects:new Map,droppableContainers:new _n,over:null,dragOverlay:{nodeRef:{current:null},rect:null,setRef:ne},scrollableAncestors:[],scrollableAncestorRects:[],measuringConfiguration:Hn,measureDroppableContainers:ne,windowRect:null,measuringScheduled:!1},si={activatorEvent:null,activators:[],active:null,activeNodeRect:null,ariaDescribedById:{draggable:""},dispatch:ne,draggableNodes:new Map,over:null,measureDroppableContainers:ne},Pi=(0,ye.createContext)(si),yi=(0,ye.createContext)(Ei);function _i(){return{draggable:{active:null,initialCoordinates:{x:0,y:0},nodes:new Map,translate:{x:0,y:0}},droppable:{containers:new _n}}}function Ri(He,qe){switch(qe.type){case Ne.DragStart:return Za(Fo({},He),{draggable:Za(Fo({},He.draggable),{initialCoordinates:qe.initialCoordinates,active:qe.active})});case Ne.DragMove:return He.draggable.active==null?He:Za(Fo({},He),{draggable:Za(Fo({},He.draggable),{translate:{x:qe.coordinates.x-He.draggable.initialCoordinates.x,y:qe.coordinates.y-He.draggable.initialCoordinates.y}})});case Ne.DragEnd:case Ne.DragCancel:return Za(Fo({},He),{draggable:Za(Fo({},He.draggable),{active:null,initialCoordinates:{x:0,y:0},translate:{x:0,y:0}})});case Ne.RegisterDroppable:{const{element:St}=qe,{id:It}=St,en=new _n(He.droppable.containers);return en.set(It,St),Za(Fo({},He),{droppable:Za(Fo({},He.droppable),{containers:en})})}case Ne.SetDroppableDisabled:{const{id:St,key:It,disabled:en}=qe,tt=He.droppable.containers.get(St);if(!tt||It!==tt.key)return He;const Ft=new _n(He.droppable.containers);return Ft.set(St,Za(Fo({},tt),{disabled:en})),Za(Fo({},He),{droppable:Za(Fo({},He.droppable),{containers:Ft})})}case Ne.UnregisterDroppable:{const{id:St,key:It}=qe,en=He.droppable.containers.get(St);if(!en||It!==en.key)return He;const tt=new _n(He.droppable.containers);return tt.delete(St),Za(Fo({},He),{droppable:Za(Fo({},He.droppable),{containers:tt})})}default:return He}}function Di(He){let{disabled:qe}=He;const{active:St,activatorEvent:It,draggableNodes:en}=(0,ye.useContext)(Pi),tt=(0,it.D9)(It),Ft=(0,it.D9)(St==null?void 0:St.id);return(0,ye.useEffect)(()=>{if(!qe&&!It&&tt&&Ft!=null){if(!(0,it.vd)(tt)||document.activeElement===tt.target)return;const Gt=en.get(Ft);if(!Gt)return;const{activatorNode:Rt,node:on}=Gt;if(!Rt.current&&!on.current)return;requestAnimationFrame(()=>{for(const li of[Rt.current,on.current]){if(!li)continue;const Ee=(0,it.so)(li);if(Ee){Ee.focus();break}}})}},[It,qe,en,Ft,tt]),null}function sn(He,qe){let en=qe,{transform:St}=en,It=nv(en,["transform"]);return He!=null&&He.length?He.reduce((tt,Ft)=>Ft(Fo({transform:tt},It)),St):St}function pr(He){return(0,ye.useMemo)(()=>({draggable:Fo(Fo({},Hn.draggable),He==null?void 0:He.draggable),droppable:Fo(Fo({},Hn.droppable),He==null?void 0:He.droppable),dragOverlay:Fo(Fo({},Hn.dragOverlay),He==null?void 0:He.dragOverlay)}),[He==null?void 0:He.draggable,He==null?void 0:He.droppable,He==null?void 0:He.dragOverlay])}function Mr(He){let{activeNode:qe,measure:St,initialRect:It,config:en=!0}=He;const tt=(0,ye.useRef)(!1),{x:Ft,y:Gt}=typeof en=="boolean"?{x:en,y:en}:en;(0,it.LI)(()=>{if(!Ft&&!Gt||!qe){tt.current=!1;return}if(tt.current||!It)return;const on=qe==null?void 0:qe.node.current;if(!on||on.isConnected===!1)return;const li=St(on),Ee=kn(li,It);if(Ft||(Ee.x=0),Gt||(Ee.y=0),tt.current=!0,Math.abs(Ee.x)>0||Math.abs(Ee.y)>0){const Ue=mi(on);Ue&&Ue.scrollBy({top:Ee.y,left:Ee.x})}},[qe,Ft,Gt,It,St])}const Kr=(0,ye.createContext)(Za(Fo({},le),{scaleX:1,scaleY:1}));var En;(function(He){He[He.Uninitialized=0]="Uninitialized",He[He.Initializing=1]="Initializing",He[He.Initialized=2]="Initialized"})(En||(En={}));const Si=(0,ye.memo)(function(qe){var St,It,en,tt;let Qo=qe,{id:Ft,accessibility:Gt,autoScroll:Rt=!0,children:on,sensors:li=Ot,collisionDetection:Ee=ft,measuring:Ue,modifiers:Re}=Qo,ot=nv(Qo,["id","accessibility","autoScroll","children","sensors","collisionDetection","measuring","modifiers"]);const lt=(0,ye.useReducer)(Ri,void 0,_i),[Wt,Vt]=lt,[tn,Ln]=Me(),[Wn,mn]=(0,ye.useState)(En.Uninitialized),ei=Wn===En.Initialized,{draggable:{active:fi,nodes:ut,translate:Qn},droppable:{containers:ri}}=Wt,jn=fi!=null?ut.get(fi):null,oi=(0,ye.useRef)({initial:null,translated:null}),xi=(0,ye.useMemo)(()=>{var ro;return fi!=null?{id:fi,data:(ro=jn==null?void 0:jn.data)!=null?ro:Bn,rect:oi}:null},[fi,jn]),Ni=(0,ye.useRef)(null),[ki,Bi]=(0,ye.useState)(null),[Oi,cr]=(0,ye.useState)(null),kr=(0,it.Ey)(ot,Object.values(ot)),Hr=(0,it.Ld)("DndDescribedBy",Ft),Zr=(0,ye.useMemo)(()=>ri.getEnabled(),[ri]),Fi=pr(Ue),{droppableRects:Fr,measureDroppableContainers:Er,measuringScheduled:Rr}=Ii(Zr,{dragging:ei,dependencies:[Qn.x,Qn.y],config:Fi.droppable}),xr=Ce(ut,fi),jr=(0,ye.useMemo)(()=>Oi?(0,it.DC)(Oi):null,[Oi]),ii=vo(),Zi=Cn(xr,Fi.draggable.measure);Mr({activeNode:fi!=null?ut.get(fi):null,config:ii.layoutShiftCompensation,initialRect:Zi,measure:Fi.draggable.measure});const Ji=Ct(xr,Fi.draggable.measure,Zi),lr=Ct(xr?xr.parentElement:null),Qi=(0,ye.useRef)({activatorEvent:null,active:null,activeNode:xr,collisionRect:null,collisions:null,droppableRects:Fr,draggableNodes:ut,draggingNode:null,draggingNodeRect:null,droppableContainers:ri,over:null,scrollableAncestors:[],scrollAdjustedTranslate:null}),nr=ri.getNodeFor((St=Qi.current.over)==null?void 0:St.id),Mi=An({measure:Fi.dragOverlay.measure}),zr=(It=Mi.nodeRef.current)!=null?It:xr,Yr=ei?(en=Mi.rect)!=null?en:Ji:null,Qr=!!(Mi.nodeRef.current&&Mi.rect),Ar=Yn(Qr?null:Ji),eo=fr(zr?(0,it.Jj)(zr):null),Xr=di(ei?nr!=null?nr:xr:null),_r=mt(Xr),fo=sn(Re,{transform:{x:Qn.x-Ar.x,y:Qn.y-Ar.y,scaleX:1,scaleY:1},activatorEvent:Oi,active:xi,activeNodeRect:Ji,containerNodeRect:lr,draggingNodeRect:Yr,over:Qi.current.over,overlayNodeRect:Mi.rect,scrollableAncestors:Xr,scrollableAncestorRects:_r,windowRect:eo}),mo=jr?(0,it.IH)(jr,Qn):null,Bo=xn(Xr),so=ai(Bo),ia=ai(Bo,[Ji]),po=(0,it.IH)(fo,so),Jo=Yr?_t(Yr,fo):null,Po=xi&&Jo?Ee({active:xi,collisionRect:Jo,droppableRects:Fr,droppableContainers:Zr,pointerCoordinates:mo}):null,Vo=Ze(Po,"id"),[Go,Yo]=(0,ye.useState)(null),Ro=Qr?fo:(0,it.IH)(fo,ia),Lo=ln(Ro,(tt=Go==null?void 0:Go.rect)!=null?tt:null,Ji),oa=(0,ye.useRef)(null),wa=(0,ye.useCallback)((ro,ta)=>{let{sensor:wr,options:ur}=ta;if(Ni.current==null)return;const Dr=ut.get(Ni.current);if(!Dr)return;const Sr=ro.nativeEvent,vi=new wr({active:Ni.current,activeNode:Dr,event:Sr,options:ur,context:Qi,onAbort(pt){if(!ut.get(pt))return;const{onDragAbort:ha}=kr.current,ga={id:pt};ha==null||ha(ga),tn({type:"onDragAbort",event:ga})},onPending(pt,zn,ha,ga){if(!ut.get(pt))return;const{onDragPending:sa}=kr.current,ya={id:pt,constraint:zn,initialCoordinates:ha,offset:ga};sa==null||sa(ya),tn({type:"onDragPending",event:ya})},onStart(pt){const zn=Ni.current;if(zn==null)return;const ha=ut.get(zn);if(!ha)return;const{onDragStart:ga}=kr.current,aa={activatorEvent:Sr,active:{id:zn,data:ha.data,rect:oi}};(0,nt.unstable_batchedUpdates)(()=>{ga==null||ga(aa),mn(En.Initializing),Vt({type:Ne.DragStart,initialCoordinates:pt,active:zn}),tn({type:"onDragStart",event:aa}),Bi(oa.current),cr(Sr)})},onMove(pt){Vt({type:Ne.DragMove,coordinates:pt})},onEnd:Do(Ne.DragEnd),onCancel:Do(Ne.DragCancel)});oa.current=vi;function Do(pt){return function(){return Cx(this,null,function*(){const{active:ha,collisions:ga,over:aa,scrollAdjustedTranslate:sa}=Qi.current;let ya=null;if(ha&&sa){const{cancelDrop:Pa}=kr.current;ya={activatorEvent:Sr,active:ha,collisions:ga,delta:sa,over:aa},pt===Ne.DragEnd&&typeof Pa=="function"&&(yield Promise.resolve(Pa(ya)))&&(pt=Ne.DragCancel)}Ni.current=null,(0,nt.unstable_batchedUpdates)(()=>{Vt({type:pt}),mn(En.Uninitialized),Yo(null),Bi(null),cr(null),oa.current=null;const Pa=pt===Ne.DragEnd?"onDragEnd":"onDragCancel";if(ya){const hs=kr.current[Pa];hs==null||hs(ya),tn({type:Pa,event:ya})}})})}}},[ut]),zo=(0,ye.useCallback)((ro,ta)=>(wr,ur)=>{const Dr=wr.nativeEvent,Sr=ut.get(ur);if(Ni.current!==null||!Sr||Dr.dndKit||Dr.defaultPrevented)return;const vi={active:Sr};ro(wr,ta.options,vi)===!0&&(Dr.dndKit={capturedBy:ta.sensor},Ni.current=ur,wa(wr,ta))},[ut,wa]),Oa=Sn(li,zo);Pn(li),(0,it.LI)(()=>{Ji&&Wn===En.Initializing&&mn(En.Initialized)},[Ji,Wn]),(0,ye.useEffect)(()=>{const{onDragMove:ro}=kr.current,{active:ta,activatorEvent:wr,collisions:ur,over:Dr}=Qi.current;if(!ta||!wr)return;const Sr={active:ta,activatorEvent:wr,collisions:ur,delta:{x:po.x,y:po.y},over:Dr};(0,nt.unstable_batchedUpdates)(()=>{ro==null||ro(Sr),tn({type:"onDragMove",event:Sr})})},[po.x,po.y]),(0,ye.useEffect)(()=>{const{active:ro,activatorEvent:ta,collisions:wr,droppableContainers:ur,scrollAdjustedTranslate:Dr}=Qi.current;if(!ro||Ni.current==null||!ta||!Dr)return;const{onDragOver:Sr}=kr.current,vi=ur.get(Vo),Do=vi&&vi.rect.current?{id:vi.id,rect:vi.rect.current,data:vi.data,disabled:vi.disabled}:null,pt={active:ro,activatorEvent:ta,collisions:wr,delta:{x:Dr.x,y:Dr.y},over:Do};(0,nt.unstable_batchedUpdates)(()=>{Yo(Do),Sr==null||Sr(pt),tn({type:"onDragOver",event:pt})})},[Vo]),(0,it.LI)(()=>{Qi.current={activatorEvent:Oi,active:xi,activeNode:xr,collisionRect:Jo,collisions:Po,droppableRects:Fr,draggableNodes:ut,draggingNode:zr,draggingNodeRect:Yr,droppableContainers:ri,over:Go,scrollableAncestors:Xr,scrollAdjustedTranslate:po},oi.current={initial:Yr,translated:Jo}},[xi,xr,Po,Jo,ut,zr,Yr,Fr,ri,Go,Xr,po]),ar(Za(Fo({},ii),{delta:Qn,draggingRect:Jo,pointerCoordinates:mo,scrollableAncestors:Xr,scrollableAncestorRects:_r}));const bo=(0,ye.useMemo)(()=>({active:xi,activeNode:xr,activeNodeRect:Ji,activatorEvent:Oi,collisions:Po,containerNodeRect:lr,dragOverlay:Mi,draggableNodes:ut,droppableContainers:ri,droppableRects:Fr,over:Go,measureDroppableContainers:Er,scrollableAncestors:Xr,scrollableAncestorRects:_r,measuringConfiguration:Fi,measuringScheduled:Rr,windowRect:eo}),[xi,xr,Ji,Oi,Po,lr,Mi,ut,ri,Fr,Go,Er,Xr,_r,Fi,Rr,eo]),yo=(0,ye.useMemo)(()=>({activatorEvent:Oi,activators:Oa,active:xi,activeNodeRect:Ji,ariaDescribedById:{draggable:Hr},dispatch:Vt,draggableNodes:ut,over:Go,measureDroppableContainers:Er}),[Oi,Oa,xi,Ji,Vt,Hr,ut,Go,Er]);return ye.createElement(Kt.Provider,{value:Ln},ye.createElement(Pi.Provider,{value:yo},ye.createElement(yi.Provider,{value:bo},ye.createElement(Kr.Provider,{value:Lo},on)),ye.createElement(Di,{disabled:(Gt==null?void 0:Gt.restoreFocus)===!1})),ye.createElement(Ht,Za(Fo({},Gt),{hiddenTextDescribedById:Hr})));function vo(){const ro=(ki==null?void 0:ki.autoScrollEnabled)===!1,ta=typeof Rt=="object"?Rt.enabled===!1:Rt===!1,wr=ei&&!ro&&!ta;return typeof Rt=="object"?Za(Fo({},Rt),{enabled:wr}):{enabled:wr}}}),Vi=(0,ye.createContext)(null),Wi="button",$i="Draggable";function Pr(He){let{id:qe,data:St,disabled:It=!1,attributes:en}=He;const tt=(0,it.Ld)($i),{activators:Ft,activatorEvent:Gt,active:Rt,activeNodeRect:on,ariaDescribedById:li,draggableNodes:Ee,over:Ue}=(0,ye.useContext)(Pi),{role:Re=Wi,roleDescription:ot="draggable",tabIndex:lt=0}=en!=null?en:{},Wt=(Rt==null?void 0:Rt.id)===qe,Vt=(0,ye.useContext)(Wt?Kr:Vi),[tn,Ln]=(0,it.wm)(),[Wn,mn]=(0,it.wm)(),ei=zi(Ft,qe),fi=(0,it.Ey)(St);(0,it.LI)(()=>(Ee.set(qe,{id:qe,key:tt,node:tn,activatorNode:Wn,data:fi}),()=>{const Qn=Ee.get(qe);Qn&&Qn.key===tt&&Ee.delete(qe)}),[Ee,qe]);const ut=(0,ye.useMemo)(()=>({role:Re,tabIndex:lt,"aria-disabled":It,"aria-pressed":Wt&&Re===Wi?!0:void 0,"aria-roledescription":ot,"aria-describedby":li.draggable}),[It,Re,lt,Wt,ot,li.draggable]);return{active:Rt,activatorEvent:Gt,activeNodeRect:on,attributes:ut,isDragging:Wt,listeners:It?void 0:ei,node:tn,over:Ue,setNodeRef:Ln,setActivatorNodeRef:mn,transform:Vt}}function br(){return(0,ye.useContext)(yi)}const Hi="Droppable",er={timeout:25};function Gi(He){let{data:qe,disabled:St=!1,id:It,resizeObserverConfig:en}=He;const tt=(0,it.Ld)(Hi),{active:Ft,dispatch:Gt,over:Rt,measureDroppableContainers:on}=(0,ye.useContext)(Pi),li=(0,ye.useRef)({disabled:St}),Ee=(0,ye.useRef)(!1),Ue=(0,ye.useRef)(null),Re=(0,ye.useRef)(null),{disabled:ot,updateMeasurementsFor:lt,timeout:Wt}=Fo(Fo({},er),en),Vt=(0,it.Ey)(lt!=null?lt:It),tn=(0,ye.useCallback)(()=>{if(!Ee.current){Ee.current=!0;return}Re.current!=null&&clearTimeout(Re.current),Re.current=setTimeout(()=>{on(Array.isArray(Vt.current)?Vt.current:[Vt.current]),Re.current=null},Wt)},[Wt]),Ln=yt({callback:tn,disabled:ot||!Ft}),Wn=(0,ye.useCallback)((ut,Qn)=>{Ln&&(Qn&&(Ln.unobserve(Qn),Ee.current=!1),ut&&Ln.observe(ut))},[Ln]),[mn,ei]=(0,it.wm)(Wn),fi=(0,it.Ey)(qe);return(0,ye.useEffect)(()=>{!Ln||!mn.current||(Ln.disconnect(),Ee.current=!1,Ln.observe(mn.current))},[mn,Ln]),(0,ye.useEffect)(()=>(Gt({type:Ne.RegisterDroppable,element:{id:It,key:tt,disabled:St,node:mn,rect:Ue,data:fi}}),()=>Gt({type:Ne.UnregisterDroppable,key:tt,id:It})),[It]),(0,ye.useEffect)(()=>{St!==li.current.disabled&&(Gt({type:Ne.SetDroppableDisabled,id:It,key:tt,disabled:St}),li.current.disabled=St)},[It,tt,St,Gt]),{active:Ft,rect:Ue,isOver:(Rt==null?void 0:Rt.id)===It,node:mn,over:Rt,setNodeRef:ei}}function cn(He){let{animation:qe,children:St}=He;const[It,en]=useState(null),[tt,Ft]=useState(null),Gt=usePrevious(St);return!St&&!It&&Gt&&en(Gt),useIsomorphicLayoutEffect(()=>{if(!tt)return;const Rt=It==null?void 0:It.key,on=It==null?void 0:It.props.id;if(Rt==null||on==null){en(null);return}Promise.resolve(qe(on,tt)).then(()=>{en(null)})},[qe,It,tt]),React.createElement(React.Fragment,null,St,It?cloneElement(It,{ref:Ft}):null)}const sr={x:0,y:0,scaleX:1,scaleY:1};function yn(He){let{children:qe}=He;return React.createElement(Pi.Provider,{value:si},React.createElement(Kr.Provider,{value:sr},qe))}const bi={position:"fixed",touchAction:"none"},Cr=He=>isKeyboardEvent(He)?"transform 250ms ease":void 0,Nr=null,Br={duration:250,easing:"ease",keyframes:He=>{let{transform:{initial:qe,final:St}}=He;return[{transform:it.ux.Transform.toString(qe)},{transform:it.ux.Transform.toString(St)}]},sideEffects:(He=>qe=>{let{active:St,dragOverlay:It}=qe;const en={},{styles:tt,className:Ft}=He;if(tt!=null&&tt.active)for(const[Gt,Rt]of Object.entries(tt.active))Rt!==void 0&&(en[Gt]=St.node.style.getPropertyValue(Gt),St.node.style.setProperty(Gt,Rt));if(tt!=null&&tt.dragOverlay)for(const[Gt,Rt]of Object.entries(tt.dragOverlay))Rt!==void 0&&It.node.style.setProperty(Gt,Rt);return Ft!=null&&Ft.active&&St.node.classList.add(Ft.active),Ft!=null&&Ft.dragOverlay&&It.node.classList.add(Ft.dragOverlay),function(){for(const[Rt,on]of Object.entries(en))St.node.style.setProperty(Rt,on);Ft!=null&&Ft.active&&St.node.classList.remove(Ft.active)}})({styles:{active:{opacity:"0"}}})};function ao(He){let{config:qe,draggableNodes:St,droppableContainers:It,measuringConfiguration:en}=He;return useEvent((tt,Ft)=>{if(qe===null)return;const Gt=St.get(tt);if(!Gt)return;const Rt=Gt.node.current;if(!Rt)return;const on=Dn(Ft);if(!on)return;const{transform:li}=getWindow(Ft).getComputedStyle(Ft),Ee=hn(li);if(!Ee)return;const Ue=typeof qe=="function"?qe:Qt(qe);return Bt(Rt,en.draggable.measure),Ue({active:{id:tt,data:Gt.data,node:Rt,rect:en.draggable.measure(Rt)},draggableNodes:St,dragOverlay:{node:Ft,rect:en.dragOverlay.measure(on)},droppableContainers:It,measuringConfiguration:en,transform:Ee})})}function Qt(He){const{duration:qe,easing:St,sideEffects:It,keyframes:en}=Fo(Fo({},Br),He);return tt=>{let tn=tt,{active:Ft,dragOverlay:Gt,transform:Rt}=tn,on=nv(tn,["active","dragOverlay","transform"]);if(!qe)return;const li={x:Gt.rect.left-Ft.rect.left,y:Gt.rect.top-Ft.rect.top},Ee={scaleX:Rt.scaleX!==1?Ft.rect.width*Rt.scaleX/Gt.rect.width:1,scaleY:Rt.scaleY!==1?Ft.rect.height*Rt.scaleY/Gt.rect.height:1},Ue=Fo({x:Rt.x-li.x,y:Rt.y-li.y},Ee),Re=en(Za(Fo({},on),{active:Ft,dragOverlay:Gt,transform:{initial:Rt,final:Ue}})),[ot]=Re,lt=Re[Re.length-1];if(JSON.stringify(ot)===JSON.stringify(lt))return;const Wt=It==null?void 0:It(Fo({active:Ft,dragOverlay:Gt},on)),Vt=Gt.node.animate(Re,{duration:qe,easing:St,fill:"forwards"});return new Promise(Ln=>{Vt.onfinish=()=>{Wt==null||Wt(),Ln()}})}}let Vn=0;function $t(He){return useMemo(()=>{if(He!=null)return Vn++,Vn},[He])}const Te=null},18257:function(Jn,gi,De){"use strict";De.d(gi,{DL:function(){return dt}});var ye=De(35241);function nt(Me){return zt=>{let{transform:Ke}=zt;return Za(Fo({},Ke),{x:Math.ceil(Ke.x/Me)*Me,y:Math.ceil(Ke.y/Me)*Me})}}const it=Me=>{let{transform:zt}=Me;return Za(Fo({},zt),{y:0})};function Dt(Me,zt,Ke){const Ht=Fo({},Me);return zt.top+Me.y<=Ke.top?Ht.y=Ke.top-zt.top:zt.bottom+Me.y>=Ke.top+Ke.height&&(Ht.y=Ke.top+Ke.height-zt.bottom),zt.left+Me.x<=Ke.left?Ht.x=Ke.left-zt.left:zt.right+Me.x>=Ke.left+Ke.width&&(Ht.x=Ke.left+Ke.width-zt.right),Ht}const Mt=Me=>{let{containerNodeRect:zt,draggingNodeRect:Ke,transform:Ht}=Me;return!Ke||!zt?Ht:Dt(Ht,Ke,zt)},ze=Me=>{let{draggingNodeRect:zt,transform:Ke,scrollableAncestorRects:Ht}=Me;const Ne=Ht[0];return!zt||!Ne?Ke:Dt(Ke,zt,Ne)},dt=Me=>{let{transform:zt}=Me;return Za(Fo({},zt),{x:0})},Kt=Me=>{let{transform:zt,draggingNodeRect:Ke,windowRect:Ht}=Me;return!Ke||!Ht?zt:Dt(zt,Ke,Ht)},Et=Me=>{let{activatorEvent:zt,draggingNodeRect:Ke,transform:Ht}=Me;if(Ke&&zt){const Ne=getEventCoordinates(zt);if(!Ne)return Ht;const ne=Ne.x-Ke.left,te=Ne.y-Ke.top;return Za(Fo({},Ht),{x:Ht.x+ne-Ke.width/2,y:Ht.y+te-Ke.height/2})}return Ht}},19719:function(Jn,gi,De){"use strict";De.d(gi,{Fo:function(){return me},Rp:function(){return Dt},nB:function(){return At},qw:function(){return te}});var ye=De(59301),nt=De(87954),it=De(35241);function Dt(_t,hn,vt){const $e=_t.slice();return $e.splice(vt<0?$e.length+vt:vt,0,$e.splice(hn,1)[0]),$e}function Mt(_t,hn,vt){const $e=_t.slice();return $e[hn]=_t[vt],$e[vt]=_t[hn],$e}function ze(_t,hn){return _t.reduce((vt,$e,gn)=>{const ci=hn.get($e);return ci&&(vt[gn]=ci),vt},Array(_t.length))}function dt(_t){return _t!==null&&_t>=0}function Kt(_t,hn){if(_t===hn)return!0;if(_t.length!==hn.length)return!1;for(let vt=0;vt<_t.length;vt++)if(_t[vt]!==hn[vt])return!1;return!0}function Et(_t){return typeof _t=="boolean"?{draggable:_t,droppable:_t}:_t}const Me={scaleX:1,scaleY:1},zt=_t=>{var hn;let{rects:vt,activeNodeRect:$e,activeIndex:gn,overIndex:ci,index:Fn}=_t;const rn=(hn=vt[gn])!=null?hn:$e;if(!rn)return null;const Xn=Ke(vt,Fn,gn);if(Fn===gn){const Nn=vt[ci];return Nn?Fo({x:gn<ci?Nn.left+Nn.width-(rn.left+rn.width):Nn.left-rn.left,y:0},Me):null}return Fn>gn&&Fn<=ci?Fo({x:-rn.width-Xn,y:0},Me):Fn<gn&&Fn>=ci?Fo({x:rn.width+Xn,y:0},Me):Fo({x:0,y:0},Me)};function Ke(_t,hn,vt){const $e=_t[hn],gn=_t[hn-1],ci=_t[hn+1];return!$e||!gn&&!ci?0:vt<hn?gn?$e.left-(gn.left+gn.width):ci.left-($e.left+$e.width):ci?ci.left-($e.left+$e.width):$e.left-(gn.left+gn.width)}const Ht=_t=>{let{rects:hn,activeIndex:vt,overIndex:$e,index:gn}=_t;const ci=Dt(hn,$e,vt),Fn=hn[gn],rn=ci[gn];return!rn||!Fn?null:{x:rn.left-Fn.left,y:rn.top-Fn.top,scaleX:rn.width/Fn.width,scaleY:rn.height/Fn.height}},Ne=_t=>{let{activeIndex:hn,index:vt,rects:$e,overIndex:gn}=_t,ci,Fn;return vt===hn&&(ci=$e[vt],Fn=$e[gn]),vt===gn&&(ci=$e[vt],Fn=$e[hn]),!Fn||!ci?null:{x:Fn.left-ci.left,y:Fn.top-ci.top,scaleX:Fn.width/ci.width,scaleY:Fn.height/ci.height}},ne={scaleX:1,scaleY:1},te=_t=>{var hn;let{activeIndex:vt,activeNodeRect:$e,index:gn,rects:ci,overIndex:Fn}=_t;const rn=(hn=ci[vt])!=null?hn:$e;if(!rn)return null;if(gn===vt){const Nn=ci[Fn];return Nn?Fo({x:0,y:vt<Fn?Nn.top+Nn.height-(rn.top+rn.height):Nn.top-rn.top},ne):null}const Xn=de(ci,gn,vt);return gn>vt&&gn<=Fn?Fo({x:0,y:-rn.height-Xn},ne):gn<vt&&gn>=Fn?Fo({x:0,y:rn.height+Xn},ne):Fo({x:0,y:0},ne)};function de(_t,hn,vt){const $e=_t[hn],gn=_t[hn-1],ci=_t[hn+1];return $e?vt<hn?gn?$e.top-(gn.top+gn.height):ci?ci.top-($e.top+$e.height):0:ci?ci.top-($e.top+$e.height):gn?$e.top-(gn.top+gn.height):0:0}const le="Sortable",ge=ye.createContext({activeIndex:-1,containerId:le,disableTransforms:!1,items:[],overIndex:-1,useDragOverlay:!1,sortedRects:[],strategy:Ht,disabled:{draggable:!1,droppable:!1}});function me(_t){let{children:hn,id:vt,items:$e,strategy:gn=Ht,disabled:ci=!1}=_t;const{active:Fn,dragOverlay:rn,droppableRects:Xn,over:Nn,measureDroppableContainers:mi}=(0,nt.Cj)(),Zt=(0,it.Ld)(le,vt),Rn=rn.rect!==null,wt=(0,ye.useMemo)(()=>$e.map(et=>typeof et=="object"&&"id"in et?et.id:et),[$e]),Ai=Fn!=null,Kn=Fn?wt.indexOf(Fn.id):-1,je=Nn?wt.indexOf(Nn.id):-1,Le=(0,ye.useRef)(wt),we=!Kt(wt,Le.current),Be=je!==-1&&Kn===-1||we,Ge=Et(ci);(0,it.LI)(()=>{we&&Ai&&mi(wt)},[we,wt,Ai,mi]),(0,ye.useEffect)(()=>{Le.current=wt},[wt]);const ke=(0,ye.useMemo)(()=>({activeIndex:Kn,containerId:Zt,disabled:Ge,disableTransforms:Be,items:wt,overIndex:je,useDragOverlay:Rn,sortedRects:ze(wt,Xn),strategy:gn}),[Kn,Zt,Ge.draggable,Ge.droppable,Be,wt,je,Xn,Rn,gn]);return ye.createElement(ge.Provider,{value:ke},hn)}const Se=_t=>{let{id:hn,items:vt,activeIndex:$e,overIndex:gn}=_t;return Dt(vt,$e,gn).indexOf(hn)},be=_t=>{let{containerId:hn,isSorting:vt,wasDragging:$e,index:gn,items:ci,newIndex:Fn,previousItems:rn,previousContainerId:Xn,transition:Nn}=_t;return!Nn||!$e||rn!==ci&&gn===Fn?!1:vt?!0:Fn!==gn&&hn===Xn},Ie={duration:200,easing:"ease"},Ze="transform",st=it.ux.Transition.toString({property:Ze,duration:0,easing:"linear"}),Ye={roleDescription:"sortable"};function Xe(_t){let{disabled:hn,index:vt,node:$e,rect:gn}=_t;const[ci,Fn]=(0,ye.useState)(null),rn=(0,ye.useRef)(vt);return(0,it.LI)(()=>{if(!hn&&vt!==rn.current&&$e.current){const Xn=gn.current;if(Xn){const Nn=(0,nt.VK)($e.current,{ignoreTransform:!0}),mi={x:Xn.left-Nn.left,y:Xn.top-Nn.top,scaleX:Xn.width/Nn.width,scaleY:Xn.height/Nn.height};(mi.x||mi.y)&&Fn(mi)}}vt!==rn.current&&(rn.current=vt)},[hn,vt,$e,gn]),(0,ye.useEffect)(()=>{ci&&Fn(null)},[ci]),ci}function At(_t){let{animateLayoutChanges:hn=be,attributes:vt,disabled:$e,data:gn,getNewIndex:ci=Se,id:Fn,strategy:rn,resizeObserverConfig:Xn,transition:Nn=Ie}=_t;const{items:mi,containerId:Zt,activeIndex:Rn,disabled:wt,disableTransforms:Ai,sortedRects:Kn,overIndex:je,useDragOverlay:Le,strategy:we}=(0,ye.useContext)(ge),Be=ft($e,wt),Ge=mi.indexOf(Fn),ke=(0,ye.useMemo)(()=>Fo({sortable:{containerId:Zt,index:Ge,items:mi}},gn),[Zt,gn,Ge,mi]),et=(0,ye.useMemo)(()=>mi.slice(mi.indexOf(Fn)),[mi,Fn]),{rect:an,node:Bt,isOver:Ut,setNodeRef:gt}=(0,nt.Zj)({id:Fn,data:ke,disabled:Be.droppable,resizeObserverConfig:Fo({updateMeasurementsFor:et},Xn)}),{active:Pt,activatorEvent:Tt,activeNodeRect:Yt,attributes:dn,setNodeRef:On,listeners:wn,isDragging:nn,over:jt,setActivatorNodeRef:Xt,transform:pn}=(0,nt.O1)({id:Fn,data:ke,attributes:Fo(Fo({},Ye),vt),disabled:Be.draggable}),bn=(0,it.HB)(gt,On),Un=!!Pt,ti=Un&&!Ai&&dt(Rn)&&dt(je),pi=!Le&&nn,vn=pi&&ti?pn:null,wi=rn!=null?rn:we,Yi=ti?vn!=null?vn:wi({rects:Kn,activeNodeRect:Yt,activeIndex:Rn,overIndex:je,index:Ge}):null,gr=dt(Rn)&&dt(je)?ci({id:Fn,items:mi,activeIndex:Rn,overIndex:je}):Ge,rr=Pt==null?void 0:Pt.id,tr=(0,ye.useRef)({activeId:rr,items:mi,newIndex:gr,containerId:Zt}),vr=mi!==tr.current.items,hr=hn({active:Pt,containerId:Zt,isDragging:nn,isSorting:Un,id:Fn,index:Ge,items:mi,newIndex:tr.current.newIndex,previousItems:tr.current.items,previousContainerId:tr.current.containerId,transition:Nn,wasDragging:tr.current.activeId!=null}),ar=Xe({disabled:!hr,index:Ge,node:Bt,rect:an});return(0,ye.useEffect)(()=>{Un&&tr.current.newIndex!==gr&&(tr.current.newIndex=gr),Zt!==tr.current.containerId&&(tr.current.containerId=Zt),mi!==tr.current.items&&(tr.current.items=mi)},[Un,gr,Zt,mi]),(0,ye.useEffect)(()=>{if(rr===tr.current.activeId)return;if(rr&&!tr.current.activeId){tr.current.activeId=rr;return}const yr=setTimeout(()=>{tr.current.activeId=rr},50);return()=>clearTimeout(yr)},[rr]),{active:Pt,activeIndex:Rn,attributes:dn,data:ke,rect:an,index:Ge,newIndex:gr,items:mi,isOver:Ut,isSorting:Un,isDragging:nn,listeners:wn,node:Bt,overIndex:je,over:jt,setNodeRef:bn,setActivatorNodeRef:Xt,setDroppableNodeRef:gt,setDraggableNodeRef:On,transform:ar!=null?ar:Yi,transition:Xi()};function Xi(){if(ar||vr&&tr.current.newIndex===Ge)return st;if(!(pi&&!(0,it.vd)(Tt)||!Nn)&&(Un||hr))return it.ux.Transition.toString(Za(Fo({},Nn),{property:Ze}))}}function ft(_t,hn){var vt,$e;return typeof _t=="boolean"?{draggable:_t,droppable:!1}:{draggable:(vt=_t==null?void 0:_t.draggable)!=null?vt:hn.draggable,droppable:($e=_t==null?void 0:_t.droppable)!=null?$e:hn.droppable}}function Nt(_t){if(!_t)return!1;const hn=_t.data.current;return!!(hn&&"sortable"in hn&&typeof hn.sortable=="object"&&"containerId"in hn.sortable&&"items"in hn.sortable&&"index"in hn.sortable)}const Lt=[nt.g4.Down,nt.g4.Right,nt.g4.Up,nt.g4.Left],ln=(_t,hn)=>{let{context:{active:vt,collisionRect:$e,droppableRects:gn,droppableContainers:ci,over:Fn,scrollableAncestors:rn}}=hn;if(Lt.includes(_t.code)){if(_t.preventDefault(),!vt||!$e)return;const Xn=[];ci.getEnabled().forEach(Zt=>{if(!Zt||Zt!=null&&Zt.disabled)return;const Rn=gn.get(Zt.id);if(Rn)switch(_t.code){case KeyboardCode.Down:$e.top<Rn.top&&Xn.push(Zt);break;case KeyboardCode.Up:$e.top>Rn.top&&Xn.push(Zt);break;case KeyboardCode.Left:$e.left>Rn.left&&Xn.push(Zt);break;case KeyboardCode.Right:$e.left<Rn.left&&Xn.push(Zt);break}});const Nn=closestCorners({active:vt,collisionRect:$e,droppableRects:gn,droppableContainers:Xn,pointerCoordinates:null});let mi=getFirstCollision(Nn,"id");if(mi===(Fn==null?void 0:Fn.id)&&Nn.length>1&&(mi=Nn[1].id),mi!=null){const Zt=ci.get(vt.id),Rn=ci.get(mi),wt=Rn?gn.get(Rn.id):null,Ai=Rn==null?void 0:Rn.node.current;if(Ai&&wt&&Zt&&Rn){const je=getScrollableAncestors(Ai).some((et,an)=>rn[an]!==et),Le=kn(Zt,Rn),we=un(Zt,Rn),Be=je||!Le?{x:0,y:0}:{x:we?$e.width-wt.width:0,y:we?$e.height-wt.height:0},Ge={x:wt.left,y:wt.top};return Be.x&&Be.y?Ge:subtract(Ge,Be)}}}};function kn(_t,hn){return!Nt(_t)||!Nt(hn)?!1:_t.data.current.sortable.containerId===hn.data.current.sortable.containerId}function un(_t,hn){return!Nt(_t)||!Nt(hn)||!kn(_t,hn)?!1:_t.data.current.sortable.index<hn.data.current.sortable.index}},35241:function(Jn,gi,De){"use strict";De.d(gi,{$X:function(){return be},D9:function(){return de},DC:function(){return Ye},Ey:function(){return Ne},FJ:function(){return Dt},Gj:function(){return ne},HB:function(){return nt},IH:function(){return Se},Jj:function(){return ze},LI:function(){return zt},Ld:function(){return ge},Nq:function(){return it},Re:function(){return Kt},UG:function(){return Mt},Yz:function(){return Ht},qk:function(){return dt},r3:function(){return Me},so:function(){return ft},ux:function(){return Xe},vZ:function(){return Et},vd:function(){return Ze},wm:function(){return te},zX:function(){return Ke}});var ye=De(59301);function nt(){for(var Nt=arguments.length,Lt=new Array(Nt),ln=0;ln<Nt;ln++)Lt[ln]=arguments[ln];return(0,ye.useMemo)(()=>kn=>{Lt.forEach(un=>un(kn))},Lt)}const it=typeof window!="undefined"&&typeof window.document!="undefined"&&typeof window.document.createElement!="undefined";function Dt(Nt){const Lt=Object.prototype.toString.call(Nt);return Lt==="[object Window]"||Lt==="[object global]"}function Mt(Nt){return"nodeType"in Nt}function ze(Nt){var Lt,ln;return Nt?Dt(Nt)?Nt:Mt(Nt)&&(Lt=(ln=Nt.ownerDocument)==null?void 0:ln.defaultView)!=null?Lt:window:window}function dt(Nt){const{Document:Lt}=ze(Nt);return Nt instanceof Lt}function Kt(Nt){return Dt(Nt)?!1:Nt instanceof ze(Nt).HTMLElement}function Et(Nt){return Nt instanceof ze(Nt).SVGElement}function Me(Nt){return Nt?Dt(Nt)?Nt.document:Mt(Nt)?dt(Nt)?Nt:Kt(Nt)||Et(Nt)?Nt.ownerDocument:document:document:document}const zt=it?ye.useLayoutEffect:ye.useEffect;function Ke(Nt){const Lt=(0,ye.useRef)(Nt);return zt(()=>{Lt.current=Nt}),(0,ye.useCallback)(function(){for(var ln=arguments.length,kn=new Array(ln),un=0;un<ln;un++)kn[un]=arguments[un];return Lt.current==null?void 0:Lt.current(...kn)},[])}function Ht(){const Nt=(0,ye.useRef)(null),Lt=(0,ye.useCallback)((kn,un)=>{Nt.current=setInterval(kn,un)},[]),ln=(0,ye.useCallback)(()=>{Nt.current!==null&&(clearInterval(Nt.current),Nt.current=null)},[]);return[Lt,ln]}function Ne(Nt,Lt){Lt===void 0&&(Lt=[Nt]);const ln=(0,ye.useRef)(Nt);return zt(()=>{ln.current!==Nt&&(ln.current=Nt)},Lt),ln}function ne(Nt,Lt){const ln=(0,ye.useRef)();return(0,ye.useMemo)(()=>{const kn=Nt(ln.current);return ln.current=kn,kn},[...Lt])}function te(Nt){const Lt=Ke(Nt),ln=(0,ye.useRef)(null),kn=(0,ye.useCallback)(un=>{un!==ln.current&&(Lt==null||Lt(un,ln.current)),ln.current=un},[]);return[ln,kn]}function de(Nt){const Lt=(0,ye.useRef)();return(0,ye.useEffect)(()=>{Lt.current=Nt},[Nt]),Lt.current}let le={};function ge(Nt,Lt){return(0,ye.useMemo)(()=>{if(Lt)return Lt;const ln=le[Nt]==null?0:le[Nt]+1;return le[Nt]=ln,Nt+"-"+ln},[Nt,Lt])}function me(Nt){return function(Lt){for(var ln=arguments.length,kn=new Array(ln>1?ln-1:0),un=1;un<ln;un++)kn[un-1]=arguments[un];return kn.reduce((_t,hn)=>{const vt=Object.entries(hn);for(const[$e,gn]of vt){const ci=_t[$e];ci!=null&&(_t[$e]=ci+Nt*gn)}return _t},Fo({},Lt))}}const Se=me(1),be=me(-1);function Ie(Nt){return"clientX"in Nt&&"clientY"in Nt}function Ze(Nt){if(!Nt)return!1;const{KeyboardEvent:Lt}=ze(Nt.target);return Lt&&Nt instanceof Lt}function st(Nt){if(!Nt)return!1;const{TouchEvent:Lt}=ze(Nt.target);return Lt&&Nt instanceof Lt}function Ye(Nt){if(st(Nt)){if(Nt.touches&&Nt.touches.length){const{clientX:Lt,clientY:ln}=Nt.touches[0];return{x:Lt,y:ln}}else if(Nt.changedTouches&&Nt.changedTouches.length){const{clientX:Lt,clientY:ln}=Nt.changedTouches[0];return{x:Lt,y:ln}}}return Ie(Nt)?{x:Nt.clientX,y:Nt.clientY}:null}const Xe=Object.freeze({Translate:{toString(Nt){if(!Nt)return;const{x:Lt,y:ln}=Nt;return"translate3d("+(Lt?Math.round(Lt):0)+"px, "+(ln?Math.round(ln):0)+"px, 0)"}},Scale:{toString(Nt){if(!Nt)return;const{scaleX:Lt,scaleY:ln}=Nt;return"scaleX("+Lt+") scaleY("+ln+")"}},Transform:{toString(Nt){if(Nt)return[Xe.Translate.toString(Nt),Xe.Scale.toString(Nt)].join(" ")}},Transition:{toString(Nt){let{property:Lt,duration:ln,easing:kn}=Nt;return Lt+" "+ln+"ms "+kn}}}),At="a,frame,iframe,input:not([type=hidden]):not(:disabled),select:not(:disabled),textarea:not(:disabled),button:not(:disabled),*[tabindex]";function ft(Nt){return Nt.matches(At)?Nt:Nt.querySelector(At)}},8336:function(){"use strict"},12469:function(){"use strict"},99587:function(Jn,gi){"use strict";gi.Z={lists:"lists___xhHyq",item:"item___pWJAA",children:"children___sDG61",diamond:"diamond___FwgzD",button:"button___WPN6r",mathWrap:"mathWrap___FmnMJ",mathFillWrap:"mathFillWrap___PmY3H"}},22982:function(Jn,gi){"use strict";gi.Z={flex_box_center:"flex_box_center___IBr6x",flex_space_between:"flex_space_between___n2Iz0",flex_box_vertical_center:"flex_box_vertical_center___1umwO",flex_box_center_end:"flex_box_center_end___SRZYb",flex_box_column:"flex_box_column___b90Da",form:"form___V3fAH",title_icon:"title_icon____uDZy",title:"title___RxKwK",content:"content___vFT5m",pubColSty:"pubColSty___dfLkL",selectSty:"selectSty____Wuek",borderSty:"borderSty___EuFYV",delSty:"delSty___AdEeI",delBorder:"delBorder___vcTJc",copHover:"copHover___JVVXI",multiple_select:"multiple_select___ZMPhl",work_checkbox_group:"work_checkbox_group___sGLxY"}},57149:function(Jn,gi,De){"use strict";var ye=De(59301),nt=Object.defineProperty,it=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,ze=(Et,Me,zt)=>Me in Et?nt(Et,Me,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[Me]=zt,dt=(Et,Me)=>{for(var zt in Me||(Me={}))Dt.call(Me,zt)&&ze(Et,zt,Me[zt]);if(it)for(var zt of it(Me))Mt.call(Me,zt)&&ze(Et,zt,Me[zt]);return Et};const Kt=Et=>React.createElement("svg",dt({className:"jiangxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Et),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143z",fill:"#98BDF7"}),React.createElement("path",{d:"m248.686 803.182-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#145DFF"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#98BDF7"}));gi.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Im0yNDguNjg2IDgwMy4xODItNjUuODI5IDc1LjkyMlY2NTguMjg2aC03My4xNDN2MjIwLjgxOGwtNjUuODI4LTc1Ljk5NUwwIDg1MS4zODMgMTQ2LjI4NiAxMDI0IDI5Mi41NyA4NTEuNTN6IiBmaWxsPSIjMTQ1REZGIi8+PHBhdGggZD0iTTE0Ni4yODYgMCAwIDE1OC43Mmw0My44ODYgNTUuMjIzIDY1LjgyOC03NS45MjJ2MjI3LjY5M2g3My4xNDNWMTM4LjAyMWw2NS44MjkgNzUuOTIyIDQzLjg4NS01NS4yMjN6IiBmaWxsPSIjOThCREY3Ii8+PC9zdmc+"},61250:function(Jn,gi,De){"use strict";var ye=De(59301),nt=Object.defineProperty,it=Object.getOwnPropertySymbols,Dt=Object.prototype.hasOwnProperty,Mt=Object.prototype.propertyIsEnumerable,ze=(Et,Me,zt)=>Me in Et?nt(Et,Me,{enumerable:!0,configurable:!0,writable:!0,value:zt}):Et[Me]=zt,dt=(Et,Me)=>{for(var zt in Me||(Me={}))Dt.call(Me,zt)&&ze(Et,zt,Me[zt]);if(it)for(var zt of it(Me))Mt.call(Me,zt)&&ze(Et,zt,Me[zt]);return Et};const Kt=Et=>React.createElement("svg",dt({className:"shengxu_svg__icon",viewBox:"0 0 1024 1024",xmlns:"http://www.w3.org/2000/svg",width:32,height:32},Et),React.createElement("path",{d:"M365.714 73.143H1024v73.143H365.714zm0 292.571H1024v73.143H365.714zm0 292.572H1024v73.143H365.714zm0 292.571H1024V1024H365.714v-73.143zM248.686 803.182l-65.829 75.922V658.286h-73.143v220.818l-65.828-75.995L0 851.383 146.286 1024 292.57 851.53z",fill:"#98BDF7"}),React.createElement("path",{d:"M146.286 0 0 158.72l43.886 55.223 65.828-75.922v227.693h73.143V138.021l65.829 75.922 43.885-55.223z",fill:"#145DFF"}));gi.Z="data:image/svg+xml;base64,PHN2ZyBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIiB3aWR0aD0iMzIiIGhlaWdodD0iMzIiPjxwYXRoIGQ9Ik0zNjUuNzE0IDczLjE0M0gxMDI0djczLjE0M0gzNjUuNzE0em0wIDI5Mi41NzFIMTAyNHY3My4xNDNIMzY1LjcxNHptMCAyOTIuNTcySDEwMjR2NzMuMTQzSDM2NS43MTR6bTAgMjkyLjU3MUgxMDI0VjEwMjRIMzY1LjcxNHYtNzMuMTQzek0yNDguNjg2IDgwMy4xODJsLTY1LjgyOSA3NS45MjJWNjU4LjI4NmgtNzMuMTQzdjIyMC44MThsLTY1LjgyOC03NS45OTVMMCA4NTEuMzgzIDE0Ni4yODYgMTAyNCAyOTIuNTcgODUxLjUzeiIgZmlsbD0iIzk4QkRGNyIvPjxwYXRoIGQ9Ik0xNDYuMjg2IDAgMCAxNTguNzJsNDMuODg2IDU1LjIyMyA2NS44MjgtNzUuOTIydjIyNy42OTNoNzMuMTQzVjEzOC4wMjFsNjUuODI5IDc1LjkyMiA0My44ODUtNTUuMjIzeiIgZmlsbD0iIzE0NURGRiIvPjwvc3ZnPg=="},63720:function(){"use strict";function Jn(Ne,ne,te,de){te===void 0&&(te=0),de===void 0&&(de=1/0),this._name=Ne,this._defaultValue=ne,this._minimum=te,this._maximum=de}Object.defineProperty(Jn.prototype,"name",{get:function(){return this._name},set:function(Ne){if(typeof Ne!="string"||Ne==="")throw new Error("Shape name must be a valid string.");this._name=Ne}}),Object.defineProperty(Jn.prototype,"defaultValue",{get:function(){return this._defaultValue},set:function(Ne){if(typeof Ne!="number"||isNaN(Ne))throw new Error("The default value must be a real number, not: "+Ne);this._defaultValue=Ne}}),Object.defineProperty(Jn.prototype,"minimum",{get:function(){return this._minimum},set:function(Ne){if(typeof Ne!="number"||isNaN(Ne))throw new Error("Minimum must be a real number, not: "+Ne);this._minimum=Ne}}),Object.defineProperty(Jn.prototype,"maximum",{get:function(){return this._maximum},set:function(Ne){if(typeof Ne!="number"||isNaN(Ne))throw new Error("Maximum must be a real number, not: "+Ne);this._maximum=Ne}}),go.Shape._FigureParameters={},go.Shape.getFigureParameter=function(Ne,ne){var te=go.Shape._FigureParameters[Ne];return te?te[ne]:null},go.Shape.setFigureParameter=function(Ne,ne,te){if(!(te instanceof Jn))throw new Error("Third argument to Shape.setFigureParameter is not FigureParameter: "+te);if(te.defaultValue<te.minimum||te.defaultValue>te.maximum)throw new Error("defaultValue must be between minimum and maximum, not: "+te.defaultValue);var de=go.Shape._FigureParameters[Ne];de||(de=[],go.Shape._FigureParameters[Ne]=de),de[ne]=te};var gi=[];function De(Ne,ne){var te=gi.pop();return te===void 0?new go.Point(Ne,ne):(te.x=Ne,te.y=ne,te)}function ye(){var Ne=gi.pop();return Ne===void 0?new go.Point:Ne}function nt(Ne){gi.push(Ne)}function it(Ne,ne,te,de,le,ge,me,Se,be){be||(be=new go.Point);var Ie=Ne-te,Ze=le-me,st=NaN,Ye=NaN;if(Ie===0)if(Ze===0)Ne===te&&(st=Ne,Ye=ne);else{var Xe=(ge-Se)/Ze,At=ge-Xe*le;st=Ne,Ye=Xe*st+At}else if(Ze===0){var ft=(ne-de)/Ie,Nt=ne-ft*Ne;st=le,Ye=ft*st+Nt}else{var ft=(ne-de)/Ie,Xe=(ge-Se)/Ze,Nt=ne-ft*Ne,At=ge-Xe*le;st=(At-Nt)/(ft-Xe),Ye=ft*st+Nt}return be.x=st,be.y=Ye,be}function Dt(Ne,ne,te,de,le,ge,me,Se,be,Ie,Ze,st,Ye,Xe){var At=1-be,ft=be,Nt=Ne*At+te*ft,Lt=ne*At+de*ft,ln=te*At+le*ft,kn=de*At+ge*ft,un=le*At+me*ft,_t=ge*At+Se*ft,hn=Nt*At+ln*ft,vt=Lt*At+kn*ft,$e=ln*At+un*ft,gn=kn*At+_t*ft,ci=hn*At+$e*ft,Fn=vt*At+gn*ft;Ie.x=Nt,Ie.y=Lt,Ze.x=hn,Ze.y=vt,st.x=ci,st.y=Fn,Ye.x=$e,Ye.y=gn,Xe.x=un,Xe.y=_t}var Mt=new go.Spot(.156,.156),ze=new go.Spot(.844,.844),dt=4*((Math.sqrt(2)-1)/3);go.Shape.setFigureParameter("RoundedRectangle",0,new Jn("CornerRounding",5)),go.Shape.defineFigureGenerator("RoundedRectangle",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=5),de=Math.min(de,ne/3),de=Math.min(de,te/3);var le=de*dt,ge=new go.Geometry().add(new go.PathFigure(de,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne-de,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,de,ne-le,0,ne,le)).add(new go.PathSegment(go.PathSegment.Line,ne,te-de)).add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne,te-le,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,de,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te-de,le,te,0,te-le)).add(new go.PathSegment(go.PathSegment.Line,0,de)).add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()));return le>1&&(ge.spot1=new go.Spot(0,0,le,le),ge.spot2=new go.Spot(1,1,-le,-le)),ge}),go.Shape.defineFigureGenerator("Border","RoundedRectangle"),go.Shape.defineFigureGenerator("TriangleRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.25,.5,.75)}),go.Shape.defineFigureGenerator("TriangleDown",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close())).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("TriangleLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close())).setSpots(.5,.25,1,.75)}),go.Shape.defineFigureGenerator("TriangleUp",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,te).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close())).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("Triangle","TriangleUp"),go.Shape.defineFigureGenerator("Diamond",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close())).setSpots(.25,.25,.75,.75)}),go.Shape.defineFigureGenerator("LineH",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=te/2,de.endX=ne,de.endY=te/2,de}),go.Shape.defineFigureGenerator("LineV",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=ne/2,de.startY=0,de.endX=ne/2,de.endY=te,de}),go.Shape.defineFigureGenerator("BarH","Rectangle"),go.Shape.defineFigureGenerator("BarV","Rectangle"),go.Shape.defineFigureGenerator("MinusLine","LineH"),go.Shape.defineFigureGenerator("PlusLine",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te/2,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("XLine",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LineRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.25*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)))}),go.Shape.defineFigureGenerator("LineDown",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,.25*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)))}),go.Shape.defineFigureGenerator("LineLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.75*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)))}),go.Shape.defineFigureGenerator("LineUp",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,.75*te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)))}),go.Shape.defineFigureGenerator("AsteriskLine",function(Ne,ne,te){var de=.2/Math.SQRT2;return new go.Geometry().add(new go.PathFigure(de*ne,(1-de)*te,!1).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,de*te)).add(new go.PathSegment(go.PathSegment.Move,de*ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,(1-de)*te)).add(new go.PathSegment(go.PathSegment.Move,0,te/2)).add(new go.PathSegment(go.PathSegment.Line,ne,te/2)).add(new go.PathSegment(go.PathSegment.Move,ne/2,0)).add(new go.PathSegment(go.PathSegment.Line,ne/2,te)))}),go.Shape.defineFigureGenerator("CircleLine",function(Ne,ne,te){var de=ne/2,le=new go.Geometry().add(new go.PathFigure(ne,ne/2,!1).add(new go.PathSegment(go.PathSegment.Arc,0,360,de,de,de,de).close()));return le.spot1=Mt,le.spot2=ze,le.defaultStretch=go.GraphObject.Uniform,le}),go.Shape.defineFigureGenerator("Line1",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=0,de.startY=0,de.endX=ne,de.endY=te,de}),go.Shape.defineFigureGenerator("Line2",function(Ne,ne,te){var de=new go.Geometry(go.Geometry.Line);return de.startX=ne,de.startY=0,de.endX=0,de.endY=te,de}),go.Shape.defineFigureGenerator("Curve1",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,dt*ne,0,ne,(1-dt)*te)))}),go.Shape.defineFigureGenerator("Curve2",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,ne,te,0,dt*te,(1-dt)*ne,te)))}),go.Shape.defineFigureGenerator("Curve3",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,dt*te,dt*ne,te)))}),go.Shape.defineFigureGenerator("Curve4",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Bezier,0,te,(1-dt)*ne,0,0,(1-dt)*te)))}),go.Shape.defineFigureGenerator("TriangleDownLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,.5,.5,1)}),go.Shape.defineFigureGenerator("TriangleDownRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(.5,.5,1,1)}),go.Shape.defineFigureGenerator("TriangleUpLeft",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())).setSpots(0,0,.5,.5)}),go.Shape.defineFigureGenerator("TriangleUpRight",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te).close())).setSpots(.5,0,1,.5)}),go.Shape.defineFigureGenerator("RightTriangle","TriangleDownLeft"),go.Shape.setFigureParameter("Parallelogram1",0,new Jn("Indent",.1,-.99,.99)),go.Shape.defineFigureGenerator("Parallelogram1",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)?de=.1:de<-1?de=-1:de>1&&(de=1);var le=Math.abs(de)*ne;if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),le<ne/2&&ge.setSpots(le/ne,0,(ne-le)/ne,1),ge}}),go.Shape.defineFigureGenerator("Parallelogram","Parallelogram1"),go.Shape.setFigureParameter("Parallelogram2",0,new Jn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("Parallelogram2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)?de=10:de<-ne?de=-ne:de>ne&&(de=ne);var le=Math.abs(de);if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),le<ne/2&&ge.setSpots(le/ne,0,(ne-le)/ne,1),ge}}),go.Shape.setFigureParameter("Trapezoid1",0,new Jn("Indent",.2,-.99,.99)),go.Shape.defineFigureGenerator("Trapezoid1",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)?de=.2:de<.5?de=-.5:de>.5&&(de=.5);var le=Math.abs(de)*ne;if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),le<ne/2&&ge.setSpots(le/ne,0,(ne-le)/ne,1),ge}}),go.Shape.defineFigureGenerator("Trapezoid","Trapezoid1"),go.Shape.setFigureParameter("Trapezoid2",0,new Jn("Indent",20,-1/0,1/0)),go.Shape.defineFigureGenerator("Trapezoid2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)?de=20:de<-ne?de=-ne/2:de>ne&&(de=ne/2);var le=Math.abs(de);if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())):ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())),le<ne/2&&ge.setSpots(le/ne,0,(ne-le)/ne,1),ge}}),go.Shape.setFigureParameter("ManualOperation",0,new Jn("Indent",10,-1/0,1/0)),go.Shape.defineFigureGenerator("ManualOperation",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)?de=10:de<-ne?de=-ne/2:de>ne&&(de=ne/2);var le=Math.abs(de);if(de===0){var ge=new go.Geometry(go.Geometry.Rectangle);return ge.startX=0,ge.startY=0,ge.endX=ne,ge.endY=te,ge}else{var ge=new go.Geometry;return de>0?ge.add(new go.PathFigure(0,0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne-le,te)).add(new go.PathSegment(go.PathSegment.Line,le,te).close())):ge.add(new go.PathFigure(le,0).add(new go.PathSegment(go.PathSegment.Line,ne-le,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close())),le<ne/2&&ge.setSpots(le/ne,0,(ne-le)/ne,1),ge}});var Kt=[];function Et(){var Ne=Kt.pop();return Ne===void 0?[]:Ne}function Me(Ne){Ne.length=0,Kt.push(Ne)}function zt(Ne){for(var ne=Et(),te=.5,de=.5,le=Math.PI*1.5,ge=0,me=0;me<Ne;me++)ge=2*Math.PI/Ne*me+le,ne[me]=new go.Point(de+te*Math.cos(ge),de+te*Math.sin(ge));return ne.push(ne[0]),ne}function Ke(Ne){var ne=Ht(Ne),te=Et();te[0]=ne[0];for(var de=1,le=1;de<ne.length;de+=2,le+=3)te[le]=ne[de],te[le+1]=ne[de],te[le+2]=ne[de+1];return Me(ne),te}function Ht(Ne){for(var ne=zt(Ne),te=Et(),de=Math.floor(ne.length/2),le=ne.length-1,ge=Ne%2===0?2:1,me=0;me<le;me++){var Se=ne[me],be=ne[me+1],Ie=ne[(de+me-1)%le],Ze=ne[(de+me+ge)%le];te[me*2]=Se,te[me*2+1]=it(Se.x,Se.y,Ie.x,Ie.y,be.x,be.y,Ze.x,Ze.y,new go.Point)}return te[te.length]=te[0],Me(ne),te}go.Shape.defineFigureGenerator("Pentagon",function(Ne,ne,te){var de=zt(5),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<5;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.2,.22),le.spot2=new go.Spot(.8,.9),le}),go.Shape.defineFigureGenerator("Hexagon",function(Ne,ne,te){var de=zt(6),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<6;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.07,.25),le.spot2=new go.Spot(.93,.75),le}),go.Shape.defineFigureGenerator("Heptagon",function(Ne,ne,te){var de=zt(7),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<7;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.2,.15),le.spot2=new go.Spot(.8,.85),le}),go.Shape.defineFigureGenerator("Octagon",function(Ne,ne,te){var de=zt(8),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<8;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.15,.15),le.spot2=new go.Spot(.85,.85),le}),go.Shape.defineFigureGenerator("Nonagon",function(Ne,ne,te){var de=zt(9),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<9;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.17,.13),le.spot2=new go.Spot(.82,.82),le}),go.Shape.defineFigureGenerator("Decagon",function(Ne,ne,te){var de=zt(10),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("Dodecagon",function(Ne,ne,te){var de=zt(12),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.16,.16),le.spot2=new go.Spot(.84,.84),le}),go.Shape.defineFigureGenerator("FivePointedStar",function(Ne,ne,te){var de=Ht(5),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<10;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.266,.333),le.spot2=new go.Spot(.733,.733),le}),go.Shape.defineFigureGenerator("SixPointedStar",function(Ne,ne,te){var de=Ht(6),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<12;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.17,.25),le.spot2=new go.Spot(.83,.75),le}),go.Shape.defineFigureGenerator("SevenPointedStar",function(Ne,ne,te){var de=Ht(7),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<14;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("EightPointedStar",function(Ne,ne,te){var de=Ht(8),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<16;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.25,.25),le.spot2=new go.Spot(.75,.75),le}),go.Shape.defineFigureGenerator("NinePointedStar",function(Ne,ne,te){var de=Ht(9),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<18;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.666),le}),go.Shape.defineFigureGenerator("TenPointedStar",function(Ne,ne,te){var de=Ht(10),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<20;me++)ge.add(new go.PathSegment(go.PathSegment.Line,de[me].x*ne,de[me].y*te));return ge.add(new go.PathSegment(go.PathSegment.Line,de[0].x*ne,de[0].y*te).close()),Me(de),le.spot1=new go.Spot(.281,.261),le.spot2=new go.Spot(.723,.748),le}),go.Shape.defineFigureGenerator("FivePointedBurst",function(Ne,ne,te){var de=Ke(5),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<de.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*ne,de[me+2].y*te,de[me].x*ne,de[me].y*te,de[me+1].x*ne,de[me+1].y*te));return ge.segments.last().close(),Me(de),le.spot1=new go.Spot(.222,.277),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("SixPointedBurst",function(Ne,ne,te){var de=Ke(6),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<de.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*ne,de[me+2].y*te,de[me].x*ne,de[me].y*te,de[me+1].x*ne,de[me+1].y*te));return ge.segments.last().close(),Me(de),le.spot1=new go.Spot(.17,.222),le.spot2=new go.Spot(.833,.777),le}),go.Shape.defineFigureGenerator("SevenPointedBurst",function(Ne,ne,te){var de=Ke(7),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<de.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*ne,de[me+2].y*te,de[me].x*ne,de[me].y*te,de[me+1].x*ne,de[me+1].y*te));return ge.segments.last().close(),Me(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("EightPointedBurst",function(Ne,ne,te){var de=Ke(8),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<de.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*ne,de[me+2].y*te,de[me].x*ne,de[me].y*te,de[me+1].x*ne,de[me+1].y*te));return ge.segments.last().close(),Me(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("NinePointedBurst",function(Ne,ne,te){var de=Ke(9),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<de.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*ne,de[me+2].y*te,de[me].x*ne,de[me].y*te,de[me+1].x*ne,de[me+1].y*te));return ge.segments.last().close(),Me(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.defineFigureGenerator("TenPointedBurst",function(Ne,ne,te){var de=Ke(10),le=new go.Geometry,ge=new go.PathFigure(de[0].x*ne,de[0].y*te,!0);le.add(ge);for(var me=1;me<de.length;me+=3)ge.add(new go.PathSegment(go.PathSegment.Bezier,de[me+2].x*ne,de[me+2].y*te,de[me].x*ne,de[me].y*te,de[me+1].x*ne,de[me+1].y*te));return ge.segments.last().close(),Me(de),le.spot1=new go.Spot(.222,.222),le.spot2=new go.Spot(.777,.777),le}),go.Shape.setFigureParameter("FramedRectangle",0,new Jn("ThicknessX",8)),go.Shape.setFigureParameter("FramedRectangle",1,new Jn("ThicknessY",8)),go.Shape.defineFigureGenerator("FramedRectangle",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN,le=Ne?Ne.parameter2:NaN;isNaN(de)&&(de=8),isNaN(le)&&(le=8);var ge=new go.Geometry,me=new go.PathFigure(0,0,!0);return ge.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de<ne/2&&le<te/2&&(me.add(new go.PathSegment(go.PathSegment.Move,de,le)),me.add(new go.PathSegment(go.PathSegment.Line,de,te-le)),me.add(new go.PathSegment(go.PathSegment.Line,ne-de,te-le)),me.add(new go.PathSegment(go.PathSegment.Line,ne-de,le).close())),ge.setSpots(0,0,1,1,de,le,-de,-le),ge}),go.Shape.setFigureParameter("Ring",0,new Jn("Thickness",8)),go.Shape.defineFigureGenerator("Ring",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=8);var le=ne/2,ge=new go.Geometry,me=new go.PathFigure(ne,ne/2,!0);ge.add(me),me.add(new go.PathSegment(go.PathSegment.Arc,0,360,le,le,le,le).close());var Se=Math.max(le-de,0);return Se>0&&(me.add(new go.PathSegment(go.PathSegment.Move,ne/2+Se,ne/2)),me.add(new go.PathSegment(go.PathSegment.Arc,0,-360,le,le,Se,Se).close())),ge.spot1=Mt,ge.spot2=ze,ge.defaultStretch=go.GraphObject.Uniform,ge}),go.Shape.defineFigureGenerator("Cloud",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.08034461*ne,.1944299*te,!0).add(new go.PathSegment(go.PathSegment.Bezier,.2008615*ne,.05349299*te,-.09239631*ne,.07836421*te,.1406031*ne,-.0542823*te)).add(new go.PathSegment(go.PathSegment.Bezier,.4338609*ne,.074219*te,.2450511*ne,-.00697547*te,.3776197*ne,-.01112067*te)).add(new go.PathSegment(go.PathSegment.Bezier,.6558228*ne,.07004196*te,.4539471*ne,0,.6066018*ne,-.02526587*te)).add(new go.PathSegment(go.PathSegment.Bezier,.8921095*ne,.08370865*te,.6914277*ne,-.01904177*te,.8921095*ne,-.01220843*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9147671*ne,.3194596*te,1.036446*ne,.04105738*te,1.020377*ne,.3022052*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9082935*ne,.562044*te,1.04448*ne,.360238*te,.992256*ne,.5219009*te)).add(new go.PathSegment(go.PathSegment.Bezier,.9212406*ne,.8217117*te,1.032337*ne,.5771781*te,1.018411*ne,.8120651*te)).add(new go.PathSegment(go.PathSegment.Bezier,.7592566*ne,.9156953*te,1.028411*ne,.9571472*te,.8556702*ne,1.052487*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5101666*ne,.9310455*te,.7431877*ne,1.009325*te,.5624123*ne,1.021761*te)).add(new go.PathSegment(go.PathSegment.Bezier,.2609328*ne,.9344623*te,.4820677*ne,1.031761*te,.3030112*ne,1.002796*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.870098*te,.2329994*ne,1.01518*te,.03213784*ne,1.01518*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06829292*ne,.6545475*te,-.02812061*ne,.9032597*te,-.01205169*ne,.6835638*te)).add(new go.PathSegment(go.PathSegment.Bezier,.06427569*ne,.4265613*te,-.01812061*ne,.6089503*te,-.00606892*ne,.4555777*te)).add(new go.PathSegment(go.PathSegment.Bezier,.08034461*ne,.1944299*te,-.01606892*ne,.3892545*te,-.01205169*ne,.1944299*te))).setSpots(.1,.1,.9,.9)}),go.Shape.defineFigureGenerator("StopSign",function(Ne,ne,te){var de=1/(Math.SQRT2+2);return new go.Geometry().add(new go.PathFigure(de*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,ne,(1-de)*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)).add(new go.PathSegment(go.PathSegment.Line,de*ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*te)).add(new go.PathSegment(go.PathSegment.Line,0,de*te).close())).setSpots(de/2,de/2,1-de/2,1-de/2)}),go.Shape.setFigureParameter("Pie",0,new Jn("Start",0,-360,360)),go.Shape.setFigureParameter("Pie",1,new Jn("Sweep",315,-360,360)),go.Shape.defineFigureGenerator("Pie",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN,le=Ne?Ne.parameter2:NaN;isNaN(de)&&(de=0),isNaN(le)&&(le=315);var ge=de%360;ge<0&&(ge+=360);var me=le%360,Se=Math.min(ne,te)/2;return new go.Geometry().add(new go.PathFigure(Se,Se).add(new go.PathSegment(go.PathSegment.Arc,ge,me,Se,Se,Se,Se).close()))}),go.Shape.defineFigureGenerator("PiePiece",function(Ne,ne,te){var de=dt/Math.SQRT2*.5,le=Math.SQRT2/2,ge=1-Math.SQRT2/2;return new go.Geometry().add(new go.PathFigure(ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,le*ne,ge*te,ne,(1-de)*te,(le+de)*ne,(ge+de)*te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()))}),go.Shape.setFigureParameter("ThickCross",0,new Jn("Thickness",30)),go.Shape.defineFigureGenerator("ThickCross",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=30);var le=Math.min(de,ne)/2,ge=ne/2,me=te/2;return new go.Geometry().add(new go.PathFigure(ge-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+le,0)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me-le)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me-le).close()))}),go.Shape.setFigureParameter("ThinCross",0,new Jn("Thickness",10)),go.Shape.defineFigureGenerator("ThinCross",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=Math.min(de,ne)/2,ge=ne/2,me=te/2;return new go.Geometry().add(new go.PathFigure(ge-le,0,!0).add(new go.PathSegment(go.PathSegment.Line,ge+le,0)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me-le)).add(new go.PathSegment(go.PathSegment.Line,ne,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,me+le)).add(new go.PathSegment(go.PathSegment.Line,ge+le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,te)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me+le)).add(new go.PathSegment(go.PathSegment.Line,0,me-le)).add(new go.PathSegment(go.PathSegment.Line,ge-le,me-le).close()))}),go.Shape.setFigureParameter("ThickX",0,new Jn("Thickness",30)),go.Shape.defineFigureGenerator("ThickX",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;if((isNaN(de)||de<0)&&(de=30),ne===0||te===0){var le=new go.Geometry(go.Geometry.Rectangle);return le.startX=0,le.startY=0,le.endX=ne,le.endY=te,le}else{var ge=ne/2,me=te/2,Se=Math.atan2(te,ne),be=de-Math.min(Math.cos(Se)*de/2,ge),Ie=de-Math.min(Math.sin(Se)*de/2,me),le=new go.Geometry,Ze=new go.PathFigure(be,0,!0);return le.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,ge,.2*te)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne-be,0)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne,Ie)),Ze.add(new go.PathSegment(go.PathSegment.Line,.8*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne,te-Ie)),Ze.add(new go.PathSegment(go.PathSegment.Line,ne-be,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,ge,.8*te)),Ze.add(new go.PathSegment(go.PathSegment.Line,be,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,te-Ie)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,Ie).close()),le}}),go.Shape.setFigureParameter("ThinX",0,new Jn("Thickness",10)),go.Shape.defineFigureGenerator("ThinX",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=10);var le=new go.Geometry,ge=new go.PathFigure(.1*ne,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.1*te).close()),le}),go.Shape.setFigureParameter("SquareIBeam",0,new Jn("BeamWidth",.2,.1,.9)),go.Shape.defineFigureGenerator("SquareIBeam",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,ge=new go.PathFigure(0,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*ne,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5+de/2)*ne,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*ne,(1-de)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(.5-de/2)*ne,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,de*te).close()),le}),go.Shape.setFigureParameter("RoundedIBeam",0,new Jn("Curviness",.5,.05,.65)),go.Shape.defineFigureGenerator("RoundedIBeam",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.5);var le=new go.Geometry,ge=new go.PathFigure(0,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,Math.abs(1-de)*ne,.25*te,Math.abs(1-de)*ne,.75*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*ne,.75*te,de*ne,.25*te).close()),le}),go.Shape.defineFigureGenerator("HalfEllipse",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,dt*ne,0,ne,(.5-dt/2)*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,(.5+dt/2)*te,dt*ne,te).close())).setSpots(0,.156,.844,.844)}),go.Shape.defineFigureGenerator("Crescent",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,te,ne,0,ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.5*ne,.75*te,.5*ne,.25*te).close())).setSpots(.311,.266,.744,.744)}),go.Shape.defineFigureGenerator("Heart",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,.1*ne,.8*te,0,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,0,0,.45*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.55*ne,0,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.5*te,.9*ne,.8*te).close())).setSpots(.14,.29,.86,.78)}),go.Shape.defineFigureGenerator("Spade",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,0,!0).add(new go.PathSegment(go.PathSegment.Line,.51*ne,.01*te)).add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.6*ne,.2*te,ne,.25*te)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.7*te,ne,.8*te,.6*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,.5*ne,.75*te,.55*ne,.95*te)).add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)).add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.7*te,.45*ne,.95*te,.5*ne,.75*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.4*ne,.8*te,0,.8*te)).add(new go.PathSegment(go.PathSegment.Bezier,.49*ne,.01*te,0,.25*te,.4*ne,.2*te).close())).setSpots(.14,.26,.86,.78)}),go.Shape.defineFigureGenerator("Club",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.4*ne,.6*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.15*ne,te,.5*ne,.75*te,.45*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.6*te,.55*ne,.95*te,.5*ne,.75*te));var ge=.2,me=.3,Se=0,be=ge*dt;return le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5+ge+Se)*te,(.5-ge+me)*ne,(.5+be+Se)*te,(.5-be+me)*ne,(.5+ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*ne,(.5+Se)*te,(.5+be+me)*ne,(.5+ge+Se)*te,(.5+ge+me)*ne,(.5+be+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+Se)*te,(1-.5+ge+me)*ne,(.5-be+Se)*te,(.5+be+me)*ne,(.5-ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.65*ne,.36771243*te,(.5-be+me)*ne,(.5-ge+Se)*te,(.5-ge+me+.05)*ne,(.5-be+Se-.02)*te)),ge=.2,me=0,Se=-.3,be=ge*dt,le.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+ge+me)*ne,(.5+Se)*te,(.5+be+me)*ne,(.5+ge+Se)*te,(.5+ge+me)*ne,(.5+be+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+Se)*te,(1-.5+ge+me)*ne,(.5-be+Se)*te,(.5+be+me)*ne,(.5-ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*ne,(.5+Se)*te,(.5-be+me)*ne,(.5-ge+Se)*te,(.5-ge+me)*ne,(.5-be+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-be+me)*ne,(.5+ge+Se)*te,(.5-ge+me)*ne,(.5+be+Se)*te,(.5-be+me)*ne,(.5+ge+Se)*te)),ge=.2,me=-.3,Se=0,be=ge*dt,le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5-ge+Se)*te,(1-.5+ge+me-.05)*ne,(.5-be+Se-.02)*te,(.5+be+me)*ne,(.5-ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5-ge+me)*ne,(.5+Se)*te,(.5-be+me)*ne,(.5-ge+Se)*te,(.5-ge+me)*ne,(.5-be+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,(.5+me)*ne,(.5+ge+Se)*te,(.5-ge+me)*ne,(.5+be+Se)*te,(.5-be+me)*ne,(.5+ge+Se)*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.6*te,(.5+be+me)*ne,(.5+ge+Se)*te,(.5+ge+me)*ne,(.5+be+Se)*te).close()),de.setSpots(.06,.33,.93,.68),de}),go.Shape.defineFigureGenerator("YinYang",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.5,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*.5,ne*.5,ne*.5,ne*.5)),le.add(new go.PathSegment(go.PathSegment.Arc,90,-180,ne*.5,ne*.75,ne*.25,ne*.25)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,ne*.5,ne*.25,ne*.25,ne*.25));var ge=.1,me=.5,Se=.25;return le.add(new go.PathSegment(go.PathSegment.Move,(me+ge)*ne,Se*te)),le.add(new go.PathSegment(go.PathSegment.Arc,0,-360,ne*me,te*Se,ge*ne,ge*ne).close()),le=new go.PathFigure(ne*.5,0,!1),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*.5,ne*.5,ne*.5,ne*.5)),Se=.75,le=new go.PathFigure((me+ge)*ne,Se*te,!0),de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,0,360,ne*me,te*Se,ge*ne,ge*ne).close()),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Peace",function(Ne,ne,te){var de=.8535533905932737,le=.5*ne,ge=.5*te;return new go.Geometry().add(new go.PathFigure(le,0,!1).add(new go.PathSegment(go.PathSegment.Arc,270,360,le,ge,le,ge)).add(new go.PathSegment(go.PathSegment.Line,le,te)).add(new go.PathSegment(go.PathSegment.Move,le,ge)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,de*te)).add(new go.PathSegment(go.PathSegment.Move,le,ge)).add(new go.PathSegment(go.PathSegment.Line,de*ne,de*te)))}),go.Shape.defineFigureGenerator("NotAllowed",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=.5,me=.5,Se=.5,be=new go.PathFigure(me*ne,(Se-ge)*te);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),ge=.4,le=dt*.4;var Ie=ye(),Ze=ye(),st=ye(),Ye=ye();Dt(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.42,Ie,Ze,st,Ye,Ye);var Xe=ye(),At=ye(),ft=ye();Dt(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.58,Ye,Ye,ft,Xe,At);var Nt=ye(),Lt=ye(),ln=ye();Dt(me,Se+ge,me-le,Se+ge,me-ge,Se+le,me-ge,Se,.42,Nt,Lt,ln,Ye,Ye);var kn=ye(),un=ye(),_t=ye();return Dt(me,Se+ge,me-le,Se+ge,me-ge,Se+le,me-ge,Se,.58,Ye,Ye,_t,kn,un),be.add(new go.PathSegment(go.PathSegment.Move,_t.x*ne,_t.y*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,kn.x*ne,kn.y*te,un.x*ne,un.y*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,st.x*ne,st.y*te,Ie.x*ne,Ie.y*te,Ze.x*ne,Ze.y*te)),be.add(new go.PathSegment(go.PathSegment.Line,_t.x*ne,_t.y*te).close()),be.add(new go.PathSegment(go.PathSegment.Move,ln.x*ne,ln.y*te)),be.add(new go.PathSegment(go.PathSegment.Line,ft.x*ne,ft.y*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,Xe.x*ne,Xe.y*te,At.x*ne,At.y*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,ln.x*ne,ln.y*te,Nt.x*ne,Nt.y*te,Lt.x*ne,Lt.y*te).close()),nt(Ie),nt(Ze),nt(st),nt(Ye),nt(Xe),nt(At),nt(ft),nt(Nt),nt(Lt),nt(ln),nt(kn),nt(un),nt(_t),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("Fragile",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.29*ne,.33*te)).add(new go.PathSegment(go.PathSegment.Line,.35*ne,.25*te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.15*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.5*te,ne,.25*te,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.5*te,0,.25*te).close()))}),go.Shape.setFigureParameter("HourGlass",0,new Jn("Thickness",30)),go.Shape.defineFigureGenerator("HourGlass",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=30),de>ne&&(de=ne);var le=(ne-de)/2,ge=le+de;return new go.Geometry().add(new go.PathFigure(ge,.5*te).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)).add(new go.PathSegment(go.PathSegment.Line,le,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,0)).add(new go.PathSegment(go.PathSegment.Line,ne,0).close()))}),go.Shape.defineFigureGenerator("Lightning",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,.55*te).add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.3*ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.45*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.55*te).close()))}),go.Shape.defineFigureGenerator("GenderMale",function(Ne,ne,te){var de=new go.Geometry,le=dt*.4,ge=.4,me=.5,Se=.5,be=ye(),Ie=ye(),Ze=ye(),st=ye(),Ye=new go.PathFigure((me-ge)*ne,Se*te,!1);de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),Dt(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.44,Ze,st,Ie,be,be),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te));var Xe=De(Ie.x,Ie.y);Dt(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.56,be,be,Ie,Ze,st);var At=De(Ie.x,Ie.y);Ye.add(new go.PathSegment(go.PathSegment.Line,(Xe.x*.1+.95*.9)*ne,Xe.y*.1*te)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*ne,Xe.y*.1*te)),Ye.add(new go.PathSegment(go.PathSegment.Line,.85*ne,0)),Ye.add(new go.PathSegment(go.PathSegment.Line,ne,0)),Ye.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),Ye.add(new go.PathSegment(go.PathSegment.Line,(At.x*.1+.9)*ne,.15*te)),Ye.add(new go.PathSegment(go.PathSegment.Line,(At.x*.1+.9)*ne,(At.y*.1+.05*.9)*te)),Ye.add(new go.PathSegment(go.PathSegment.Line,At.x*ne,At.y*te)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),ge=.35,le=dt*.35;var ft=new go.PathFigure(me*ne,(Se-ge)*te,!1);de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),ft.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te));var Nt=new go.PathFigure((me-ge)*ne,Se*te,!1);return de.add(Nt),nt(be),nt(Ie),nt(Ze),nt(st),nt(Xe),nt(At),de.spot1=new go.Spot(.202,.257),de.spot2=new go.Spot(.792,.739),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("GenderFemale",function(Ne,ne,te){var de=new go.Geometry,le=.375,ge=0,me=-.125,Se=le*dt,be=new go.PathFigure((.525+ge)*ne,(.5+le+me)*te,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ge)*ne,(.5+me)*te,(.5+Se+ge)*ne,(.5+le+me)*te,(.5+le+ge)*ne,(.5+Se+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-le+me)*te,(1-.5+le+ge)*ne,(.5-Se+me)*te,(.5+Se+ge)*ne,(.5-le+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ge)*ne,(.5+me)*te,(.5-Se+ge)*ne,(.5-le+me)*te,(.5-le+ge)*ne,(.5-Se+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.475+ge)*ne,(.5+le+me)*te,(.5-le+ge)*ne,(.5+Se+me)*te,(.5-Se+ge)*ne,(.5+le+me)*te)),be.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.85*te)),be.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.85*te)),be.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.9*te)),be.add(new go.PathSegment(go.PathSegment.Line,.475*ne,.9*te)),be.add(new go.PathSegment(go.PathSegment.Line,.475*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.525*ne,te)),be.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.9*te)),be.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.9*te)),be.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.85*te)),be.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te).close()),le=.325,ge=0,me=-.125,Se=le*dt;var be=new go.PathFigure((1-.5+le+ge)*ne,(.5+me)*te,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5+le+me)*te,(.5+le+ge)*ne,(.5+Se+me)*te,(.5+Se+ge)*ne,(.5+le+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ge)*ne,(.5+me)*te,(.5-Se+ge)*ne,(.5+le+me)*te,(.5-le+ge)*ne,(.5+Se+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(.5+ge)*ne,(.5-le+me)*te,(.5-le+ge)*ne,(.5-Se+me)*te,(.5-Se+ge)*ne,(.5-le+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(1-.5+le+ge)*ne,(.5+me)*te,(.5+Se+ge)*ne,(.5-le+me)*te,(1-.5+le+ge)*ne,(.5-Se+me)*te));var be=new go.PathFigure((.525+ge)*ne,(.5+le+me)*te,!1);return de.add(be),de.spot1=new go.Spot(.232,.136),de.spot2=new go.Spot(.682,.611),de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicImplies",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te))).setSpots(0,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicIff",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;return isNaN(de)&&(de=.2),new go.Geometry().add(new go.PathFigure((1-de)*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,(1-de)*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,de*ne,0)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,de*ne,te))).setSpots(.2,0,.8,.5)}),go.Shape.defineFigureGenerator("LogicNot",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)))}),go.Shape.defineFigureGenerator("LogicAnd",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.25,.5,.75,1)}),go.Shape.defineFigureGenerator("LogicOr",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0))).setSpots(.219,0,.78,.409)}),go.Shape.defineFigureGenerator("LogicXor",function(Ne,ne,te){var de=new go.Geometry().add(new go.PathFigure(.5*ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Arc,0,360,.5*ne,.5*te,.5*ne,.5*te)));return de.defaultStretch=go.GraphObject.Uniform,de}),go.Shape.defineFigureGenerator("LogicTruth",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)))}),go.Shape.defineFigureGenerator("LogicFalsity",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)))}),go.Shape.defineFigureGenerator("LogicThereExists",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,0,.5*te)).add(new go.PathSegment(go.PathSegment.Move,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te)))}),go.Shape.defineFigureGenerator("LogicForAll",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te))).setSpots(.25,0,.75,.5)}),go.Shape.defineFigureGenerator("LogicIsDefinedAs",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Move,0,.5*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)).add(new go.PathSegment(go.PathSegment.Move,0,te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(.01,.01,.99,.49)}),go.Shape.defineFigureGenerator("LogicIntersect",function(Ne,ne,te){var de=.5;return new go.Geometry().add(new go.PathFigure(0,te,!1).add(new go.PathSegment(go.PathSegment.Line,0,de*te)).add(new go.PathSegment(go.PathSegment.Arc,180,180,de*ne,de*te,de*ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,ne,te))).setSpots(0,.5,1,1)}),go.Shape.defineFigureGenerator("LogicUnion",function(Ne,ne,te){var de=.5;return new go.Geometry().add(new go.PathFigure(ne,0,!1).add(new go.PathSegment(go.PathSegment.Line,ne,de*te)).add(new go.PathSegment(go.PathSegment.Arc,0,180,de*ne,de*te,de*ne,de*te)).add(new go.PathSegment(go.PathSegment.Line,0,0))).setSpots(0,0,1,.5)}),go.Shape.setFigureParameter("Arrow",0,new Jn("ArrowheadWidth",.3,.01,.99)),go.Shape.setFigureParameter("Arrow",1,new Jn("TailHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("Arrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.3);var ge=(1-de)*ne,me=(.5-le/2)*te,Se=(.5+le/2)*te,be=new go.Geometry,Ie=new go.PathFigure(0,me,!0);be.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Se).close()),be.spot1=new go.Spot(0,me/te);var Ze=it(0,Se/te,1,Se/te,ge/ne,1,1,.5,ye());return be.spot2=new go.Spot(Ze.x,Ze.y),nt(Ze),be}),go.Shape.setFigureParameter("Arrow2",0,new Jn("ArrowheadWidth",30)),go.Shape.setFigureParameter("Arrow2",0,new Jn("TailHeight",30)),go.Shape.defineFigureGenerator("Arrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=30),de>ne&&(de=ne);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=30),le=Math.min(le,te/2);var ge=ne-de,me=(te-le)/2,Se=me+le,be=new go.Geometry,Ie=new go.PathFigure(0,me,!0);be.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,me)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,0)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,te)),Ie.add(new go.PathSegment(go.PathSegment.Line,ge,Se)),Ie.add(new go.PathSegment(go.PathSegment.Line,0,Se).close()),be.spot1=new go.Spot(0,me/te);var Ze=it(0,Se/te,1,Se/te,ge/ne,1,1,.5,ye());return be.spot2=new go.Spot(Ze.x,Ze.y),nt(Ze),be}),go.Shape.defineFigureGenerator("Chevron",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("DoubleArrow",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.214*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,1*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.786*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,1*te).close()),de}),go.Shape.setFigureParameter("DoubleEndArrow",0,new Jn("ConnecterHeight",.3,.01,.99)),go.Shape.defineFigureGenerator("DoubleEndArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*te,ge=(.5+de/2)*te,me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.3*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close());var be=it(0,.5,.3,0,0,le/te,.1,le/te,ye());return me.spot1=new go.Spot(be.x,be.y),be=it(.7,1,1,.5,0,ge/te,1,ge/te,be),me.spot2=new go.Spot(be.x,be.y),nt(be),me}),go.Shape.setFigureParameter("DoubleEndArrow2",0,new Jn("ConnecterHeight",40)),go.Shape.setFigureParameter("DoubleEndArrow2",1,new Jn("ArrowHeight",100)),go.Shape.defineFigureGenerator("DoubleEndArrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=40);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=100);var ge=(te-de)/2,me=ge+de,Se=(te-le)/2,be=Se+le;(de>te||le>te)&&(le>de?(de=de*te/le,ge=(te-de)/2,me=ge+de,Se=0,be=te):(ge=0,me=te,Se=0,be=te));var Ie=new go.Geometry,Ze=new go.PathFigure(ne,.5*te,!0);Ie.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,be)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,be)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.3*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Se).close());var st=it(0,.5,.3,Se/te,0,ge/te,1,ge/te,ye());return Ie.spot1=new go.Spot(st.x,st.y),st=it(.7,be/te,1,.5,0,me/te,1,me/te,st),Ie.spot2=new go.Spot(st.x,st.y),nt(st),Ie}),go.Shape.setFigureParameter("IBeamArrow",0,new Jn("ConnectorHeight",.7,.51,.97)),go.Shape.defineFigureGenerator("IBeamArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=(.5-de/2)*te,ge=(.5+de/2)*te,me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(0,le/te);var be=it(.7,1,1,.5,0,ge/te,1,ge/te,ye());return me.spot2=new go.Spot(be.x,be.y),nt(be),me}),go.Shape.setFigureParameter("IBeamArrow2",0,new Jn("ConnectorHeight",40)),go.Shape.setFigureParameter("IBeamArrow2",1,new Jn("BeamArrowHeight",100)),go.Shape.defineFigureGenerator("IBeamArrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=40);var le=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=100);var ge=(te-de)/2,me=ge+de,Se=(te-le)/2,be=Se+le;(de>te||le>te)&&(le>de?(de=de*te/le,ge=(te-de)/2,me=ge+de,Se=0,be=te):(ge=0,me=te,Se=0,be=te));var Ie=new go.Geometry,Ze=new go.PathFigure(ne,.5*te,!0);Ie.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,be)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,me)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,be)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,be)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,Se)),Ze.add(new go.PathSegment(go.PathSegment.Line,.2*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Ze.add(new go.PathSegment(go.PathSegment.Line,.7*ne,Se).close()),Ie.spot1=new go.Spot(0,ge/te);var st=it(.7,be/te,1,.5,0,me/te,1,me/te,ye());return Ie.spot2=new go.Spot(st.x,st.y),nt(st),Ie}),go.Shape.setFigureParameter("Pointer",0,new Jn("BackPoint",.1,0,.2)),go.Shape.defineFigureGenerator("Pointer",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.1);var le=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0).close()),le.spot1=new go.Spot(de,.35);var me=it(.2,.65,1,.65,0,1,1,.5,ye());return le.spot2=new go.Spot(me.x,me.y),nt(me),le}),go.Shape.setFigureParameter("RoundedPointer",0,new Jn("RoundedEdge",.3,0,.5)),go.Shape.defineFigureGenerator("RoundedPointer",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.3);var le=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,0,0,de*ne,.75*te,de*ne,.25*te).close()),le.spot1=new go.Spot(de,.35);var me=it(0,.65,1,.65,0,1,1,.5,ye());return le.spot2=new go.Spot(me.x,me.y),nt(me),le}),go.Shape.setFigureParameter("SplitEndArrow",0,new Jn("TailHeight",.4,.01,.99)),go.Shape.defineFigureGenerator("SplitEndArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.4);var le=(.5-de/2)*te,ge=(.5+de/2)*te,me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(.2,.3);var be=it(.7,1,1,.5,0,ge/te,1,ge/te,ye());return me.spot2=new go.Spot(be.x,be.y),nt(be),me}),go.Shape.setFigureParameter("SplitEndArrow2",0,new Jn("TailThickness",50)),go.Shape.defineFigureGenerator("SplitEndArrow2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=50);var le=(te-de)/2,ge=le+de;de>te&&(le=0,ge=te);var me=new go.Geometry,Se=new go.PathFigure(ne,.5*te,!0);me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,0,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,0,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0).close()),me.spot1=new go.Spot(.2,le/te);var be=it(.7,1,1,.5,0,ge/te,1,ge/te,ye());return me.spot2=new go.Spot(be.x,be.y),nt(be),me}),go.Shape.setFigureParameter("SquareArrow",0,new Jn("ArrowPoint",.7,.2,.9)),go.Shape.defineFigureGenerator("SquareArrow",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.7);var le=new go.Geometry,ge=new go.PathFigure(ne,.5*te,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,0).close()),le.spot1=go.Spot.TopLeft,le.spot2=new go.Spot(de,1),le}),go.Shape.defineFigureGenerator("Cone1",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=dt*.1,me=new go.PathFigure(0,.9*te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-le)*ne,te,0,(.9+ge)*te).close()),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.97),de}),go.Shape.defineFigureGenerator("Cone2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.9*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,te,.85/.9*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.9*te).close());var ge=new go.PathFigure(0,.9*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.9*te,(1-.85/.9)*ne,.8*te,.85/.9*ne,.8*te)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.82),de}),go.Shape.defineFigureGenerator("Cube1",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.15*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.5,.85),de}),go.Shape.defineFigureGenerator("Cube2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.3*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0).close());var ge=new go.PathFigure(0,.3*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,.7*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,te)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(.7,1),de}),go.Shape.defineFigureGenerator("Cylinder1",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,ge=dt*.5,me=new go.PathFigure(0,de,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,dt*de,(.5-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,1*ne,de,(.5+ge)*ne,0,1*ne,dt*de)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,1*te,1*ne,te-dt*de,(.5+ge)*ne,1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-de,(.5-ge)*ne,1*te,0,te-dt*de)),me.add(new go.PathSegment(go.PathSegment.Line,0,de));var Se=new go.PathFigure(ne,de,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,2*de,1*ne,2*de-dt*de,(.5+ge)*ne,2*de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,de,(.5-ge)*ne,2*de,0,2*de-dt*de)),le.spot1=new go.Spot(0,0,0,2*de),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder2",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,te/3);var le=new go.Geometry,ge=dt*.5,me=new go.PathFigure(0,te-de,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,dt*de,(.5-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,de,(.5+ge)*ne,0,ne,dt*de)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-de)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,te-dt*de,(.5+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-de,(.5-ge)*ne,te,0,te-dt*de));var Se=new go.PathFigure(0,te-de,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te-2*de,0,te-de-dt*de,(.5-ge)*ne,te-2*de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,te-de,(.5+ge)*ne,te-2*de,ne,te-de-dt*de)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,0,-2*de),le}),go.Shape.defineFigureGenerator("Cylinder3",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,ge=dt*.5,me=new go.PathFigure(de,0,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne-de,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-dt*de,0,ne,(.5-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne,(.5+ge)*te,ne-dt*de,te)),me.add(new go.PathSegment(go.PathSegment.Line,de,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,dt*de,te,0,(.5+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-ge)*te,dt*de,0));var Se=new go.PathFigure(de,0,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,2*de,.5*te,de+dt*de,0,2*de,(.5-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de,te,2*de,(.5+ge)*te,de+dt*de,te)),le.spot1=new go.Spot(0,0,2*de,0),le.spot2=new go.Spot(1,1),le}),go.Shape.defineFigureGenerator("Cylinder4",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=5),de=Math.min(de,ne/3);var le=new go.Geometry,ge=dt*.5,me=new go.PathFigure(ne-de,0,!0);le.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,ne-dt*de,0,ne,(.5-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne,(.5+ge)*te,ne-dt*de,te)),me.add(new go.PathSegment(go.PathSegment.Line,de,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,dt*de,te,0,(.5+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,(.5-ge)*te,dt*de,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne-de,0));var Se=new go.PathFigure(ne-de,0,!1);return le.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-2*de,.5*te,ne-de-dt*de,0,ne-2*de,(.5-ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,te,ne-2*de,(.5+ge)*te,ne-de-dt*de,te)),le.spot1=new go.Spot(0,0),le.spot2=new go.Spot(1,1,-2*de,0),le}),go.Shape.defineFigureGenerator("Prism1",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.25*ne,.25*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.25*ne,.25*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),de.spot1=new go.Spot(.408,.172),de.spot2=new go.Spot(.833,.662),de}),go.Shape.defineFigureGenerator("Prism2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.25*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.5*te)),de.spot1=new go.Spot(.25,.5),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("Pyramid1",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Pyramid2",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.85*te).close());var ge=new go.PathFigure(.5*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.85*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),de.spot1=new go.Spot(.25,.367),de.spot2=new go.Spot(.75,.875),de}),go.Shape.defineFigureGenerator("Actor",function(Ne,ne,te){var de=new go.Geometry,le=.2,ge=.1,me=dt*le,Se=dt*ge,be=.5,Ie=.1,Ze=new go.PathFigure(be*ne,(Ie+ge)*te,!0);de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(be-le)*ne,Ie*te,(be-me)*ne,(Ie+ge)*te,(be-le)*ne,(Ie+Se)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-ge)*te,(be-le)*ne,(Ie-Se)*te,(be-me)*ne,(Ie-ge)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(be+le)*ne,Ie*te,(be+me)*ne,(Ie-ge)*te,(be+le)*ne,(Ie-Se)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie+ge)*te,(be+le)*ne,(Ie+Se)*te,(be+me)*ne,(Ie+ge)*te));var st=.05,Ye=dt*st;be=.05,Ie=.25;var Xe=new go.PathFigure(.5*ne,.2*te,!0);return de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.2*te)),be=.95,Ie=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,(be+st)*ne,Ie*te,(be+Ye)*ne,(Ie-st)*te,(be+st)*ne,(Ie-Ye)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.35*te)),st=.025,Ye=dt*st,be=.825,Ie=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-st)*te,(be+st)*ne,(Ie-Ye)*te,(be+Ye)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(be-st)*ne,Ie*te,(be-Ye)*ne,(Ie-st)*te,(be-st)*ne,(Ie-Ye)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te)),st=.05,Ye=dt*st,be=.5,Ie=.7,Xe.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-st)*te,(be+st)*ne,(Ie-Ye)*te,(be+Ye)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(be-st)*ne,Ie*te,(be-Ye)*ne,(Ie-st)*te,(be-st)*ne,(Ie-Ye)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.35*te)),st=.025,Ye=dt*st,be=.175,Ie=.35,Xe.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-st)*te,(be+st)*ne,(Ie-Ye)*te,(be+Ye)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(be-st)*ne,Ie*te,(be-Ye)*ne,(Ie-st)*te,(be-st)*ne,(Ie-Ye)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),st=.05,Ye=dt*st,be=.05,Ie=.25,Xe.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-st)*te,(be-st)*ne,(Ie-Ye)*te,(be-Ye)*ne,(Ie-st)*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),de.spot1=new go.Spot(.2,.2),de.spot2=new go.Spot(.8,.65),de}),go.Shape.setFigureParameter("Card",0,new Jn("CornerCutoutSize",.2,.1,.9)),go.Shape.defineFigureGenerator("Card",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;isNaN(de)&&(de=.2);var le=new go.Geometry,ge=new go.PathFigure(ne,0,!0);return le.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,de*te)),ge.add(new go.PathSegment(go.PathSegment.Line,de*ne,0).close()),le.spot1=new go.Spot(0,de),le.spot2=go.Spot.BottomRight,le}),go.Shape.defineFigureGenerator("Collate",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te));var ge=new go.PathFigure(.5*ne,.5*te,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,.25),de}),go.Shape.defineFigureGenerator("CreateRequest",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(0,le*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,le*te)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,(1-le)*te)),de}),go.Shape.defineFigureGenerator("Database",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=dt*.1,me=new go.PathFigure(ne,.1*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-le)*ne,te,0,(.9+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+le)*ne,0,ne,(.1-ge)*te));var Se=new go.PathFigure(ne,.1*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+le)*ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-le)*ne,.2*te,0,(.1+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+le)*ne,.3*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-le)*ne,.3*te,0,(.2+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,.3*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.4*te,ne,(.3+ge)*te,(.5+le)*ne,.4*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.3*te,(.5-le)*ne,.4*te,0,(.3+ge)*te)),de.spot1=new go.Spot(0,.4),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("DataStorage",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.9*te,.25*ne,.1*te).close()),de.spot1=new go.Spot(.226,0),de.spot2=new go.Spot(.81,1),de}),go.Shape.defineFigureGenerator("DiskStorage",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=dt*.1,me=new go.PathFigure(ne,.1*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.9+ge)*te,(.5+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,(.5-le)*ne,te,0,(.9+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,(.1-ge)*te,(.5-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,(.5+le)*ne,0,ne,(.1-ge)*te));var Se=new go.PathFigure(ne,.1*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,ne,(.1+ge)*te,(.5+le)*ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.1*te,(.5-le)*ne,.2*te,0,(.1+ge)*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,.2*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.3*te,ne,(.2+ge)*te,(.5+le)*ne,.3*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,.2*te,(.5-le)*ne,.3*te,0,(.2+ge)*te)),de.spot1=new go.Spot(0,.3),de.spot2=new go.Spot(1,.9),de}),go.Shape.defineFigureGenerator("Display",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.25*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,te,ne,0,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close()),de.spot1=new go.Spot(.25,0),de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("DividedEvent",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)?le=.2:le<.15&&(le=.15);var ge=dt*.2,me=new go.PathFigure(0,.2*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,0,(.2-ge)*te,(.2-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.2*te,(.8+ge)*ne,0,ne,(.2-ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,te,ne,(.8+ge)*te,(.8+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,.8*te,(.2-ge)*ne,te,0,(.8+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.2*te));var Se=new go.PathFigure(0,le*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,le*te)),de}),go.Shape.defineFigureGenerator("DividedProcess",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;(isNaN(le)||le<.1)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(0,le*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,le*te)),de}),go.Shape.defineFigureGenerator("Document",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(0,.7*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("ExternalOrganization",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;(isNaN(le)||le<.2)&&(le=.2);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(le*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,0,le*te)),me.add(new go.PathSegment(go.PathSegment.Move,ne,le*te)),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Move,0,(1-le)*te)),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,(1-le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,(1-le)*te)),de}),go.Shape.defineFigureGenerator("ExternalProcess",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(.1*ne,.4*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.9*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.6*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.9*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.9*te)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("File",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(.75*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Interrupt",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te));var ge=new go.PathFigure(ne,.5*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te));var me=new go.PathFigure(ne,.5*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("InternalStorage",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN,ge=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(ge)&&(ge=.1);var me=new go.PathFigure(0,0,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var Se=new go.PathFigure(le*ne,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Move,0,ge*te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te)),de}),go.Shape.defineFigureGenerator("Junction",function(Ne,ne,te){var de=new go.Geometry,le=1/Math.SQRT2,ge=(1-1/Math.SQRT2)/2,me=dt*.5,Se=.5,be=new go.PathFigure(ne,Se*te,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,te,ne,(Se+me)*te,(Se+me)*ne,te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,Se*te,(Se-me)*ne,te,0,(Se+me)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,0,0,(Se-me)*te,(Se-me)*ne,0)),be.add(new go.PathSegment(go.PathSegment.Bezier,ne,Se*te,(Se+me)*ne,0,ne,(Se-me)*te));var Ie=new go.PathFigure((ge+le)*ne,(ge+le)*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ge*ne,ge*te)),Ie.add(new go.PathSegment(go.PathSegment.Move,ge*ne,(ge+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,(ge+le)*ne,ge*te)),de}),go.Shape.defineFigureGenerator("LinedDocument",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(0,.7*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close());var ge=new go.PathFigure(.1*ne,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.75*te)),de.spot1=new go.Spot(.1,0),de.spot2=new go.Spot(1,.6),de}),go.Shape.defineFigureGenerator("LoopLimit",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MagneticTape",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=.5,me=new go.PathFigure(.5*ne,te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-le)*ne,te,0,(ge+le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-le)*te,(ge-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+le)*ne,0,ne,(ge-le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,(ge+.1)*ne,.9*te,ne,(ge+le)*te,(ge+le)*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),de.spot1=new go.Spot(.15,.15),de.spot2=new go.Spot(.85,.8),de}),go.Shape.defineFigureGenerator("ManualInput",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te).close()),de.spot1=new go.Spot(0,.25),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("MessageFromUser",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.7);var ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,le*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("MicroformProcessing",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.25);var ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,le*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,(1-le)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("MicroformRecording",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("MultiDocument",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.44*te,.96*ne,.47*te,.93*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.54*te,.86*ne,.57*te,.83*ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.4*ne,.4*te,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0).close());var ge=new go.PathFigure(.1*ne,.2*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.44*te)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.8,.77),de}),go.Shape.defineFigureGenerator("MultiProcess",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,.1*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close());var ge=new go.PathFigure(.2*ne,.1*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.1*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.9*te)),de.spot1=new go.Spot(0,.2),de.spot2=new go.Spot(.8,1),de}),go.Shape.defineFigureGenerator("OfflineStorage",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=1-le,me=new go.PathFigure(0,0,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close());var Se=new go.PathFigure(.5*le*ne,le*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,(1-.5*le)*ne,le*te)),de}),go.Shape.defineFigureGenerator("OffPageConnector",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.75,1),de}),go.Shape.defineFigureGenerator("Or",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=.5,me=new go.PathFigure(ne,ge*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+le)*te,(ge+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-le)*ne,te,0,(ge+le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-le)*te,(ge-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+le)*ne,0,ne,(ge-le)*te));var Se=new go.PathFigure(ne,.5*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),de}),go.Shape.defineFigureGenerator("PaperTape",function(Ne,ne,te){var de=new go.Geometry;te=te/.8;var le=new go.PathFigure(0,.7*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.3*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.3*te,.5*ne,.6*te,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.7*te,.5*ne,.4*te,.5*ne,te).close()),de.spot1=new go.Spot(0,.49),de.spot2=new go.Spot(1,.75),de}),go.Shape.defineFigureGenerator("PrimitiveFromCall",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN,ge=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("PrimitiveToCall",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN,ge=Ne?Ne.parameter2:NaN;isNaN(le)&&(le=.1),isNaN(ge)&&(ge=.3);var me=new go.PathFigure(0,0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,(1-ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("Procedure",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure((1-le)*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,le*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),de}),go.Shape.defineFigureGenerator("Process",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var me=new go.PathFigure(le*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),de.spot2=go.Spot.BottomRight,de}),go.Shape.defineFigureGenerator("Sort",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te).close());var ge=new go.PathFigure(0,.5*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),de.spot1=new go.Spot(.25,.25),de.spot2=new go.Spot(.75,.5),de}),go.Shape.defineFigureGenerator("Start",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.25);var ge=new go.PathFigure(le*ne,0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te));var me=new go.PathFigure(le*ne,0,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,le*ne,te)),me.add(new go.PathSegment(go.PathSegment.Move,(1-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,(1-le)*ne,te)),de.spot1=new go.Spot(le,0),de.spot2=new go.Spot(1-le,1),de}),go.Shape.defineFigureGenerator("Terminator",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.25*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,.75*ne,.5*te,.25*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Arc,90,180,.25*ne,.5*te,.25*ne,.5*te)),de.spot1=new go.Spot(.23,0),de.spot2=new go.Spot(.77,1),de}),go.Shape.defineFigureGenerator("TransmittalTape",function(Ne,ne,te){var de=new go.Geometry,le=Ne?Ne.parameter1:NaN;isNaN(le)&&(le=.1);var ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,(1-le)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,(1-le)*te).close()),de.spot1=go.Spot.TopLeft,de}),go.Shape.defineFigureGenerator("AndGate",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=new go.PathFigure(0,0,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(.5+le)*ne,0,ne,(.5-le)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,(.5+le)*te,(.5+le)*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=go.Spot.TopLeft,de.spot2=new go.Spot(.55,1),de}),go.Shape.defineFigureGenerator("Buffer",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Clock",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=.5,me=new go.PathFigure(ne,ge*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,te,ne,(ge+le)*te,(ge+le)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,ge*te,(ge-le)*ne,te,0,(ge+le)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ge*ne,0,0,(ge-le)*te,(ge-le)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,ge*te,(ge+le)*ne,0,ne,(ge-le)*te));var Se=new go.PathFigure(ne,ge*te,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,ge*te));var be=new go.PathFigure(.8*ne,.75*te,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.25*te)),be.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.25*te)),be.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.75*te)),be.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.75*te)),be.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.25*te)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.25*te)),be.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.75*te)),de}),go.Shape.defineFigureGenerator("Ground",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Move,.3*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Move,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),de}),go.Shape.defineFigureGenerator("Inverter",function(Ne,ne,te){var de=new go.Geometry,le=dt*.1,ge=.1,me=.9,Se=.5,be=new go.PathFigure(.8*ne,.5*te,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,0,te)),be.add(new go.PathSegment(go.PathSegment.Line,0,0)),be.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te));var Ie=new go.PathFigure((me+ge)*ne,Se*te,!0);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.4,.75),de}),go.Shape.defineFigureGenerator("NandGate",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=dt*.4,me=dt*.1,Se=.1,be=.9,Ie=.5,Ze=new go.PathFigure(.8*ne,.5*te,!0);de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,.8*ne,(.5+ge)*te,(.4+le)*ne,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,te)),Ze.add(new go.PathSegment(go.PathSegment.Line,0,0)),Ze.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(.4+le)*ne,0,.8*ne,(.5-ge)*te));var st=new go.PathFigure((be+Se)*ne,Ie*te,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie+Se)*te,(be+Se)*ne,(Ie+me)*te,(be+me)*ne,(Ie+Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(be-Se)*ne,Ie*te,(be-me)*ne,(Ie+Se)*te,(be-Se)*ne,(Ie+me)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-Se)*te,(be-Se)*ne,(Ie-me)*te,(be-me)*ne,(Ie-Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(be+Se)*ne,Ie*te,(be+me)*ne,(Ie-Se)*te,(be+Se)*ne,(Ie-me)*te)),de.spot1=new go.Spot(0,.05),de.spot2=new go.Spot(.55,.95),de}),go.Shape.defineFigureGenerator("NorGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*le,me=0,Se=.5,be=new go.PathFigure(.8*ne,.5*te,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.7*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(me+ge)*ne,(Se-le)*te,.7*ne,(Se-ge)*te)),le=.1,ge=dt*.1,me=.9,Se=.5;var Ie=new go.PathFigure((me-le)*ne,Se*te,!0);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.6,.75),de}),go.Shape.defineFigureGenerator("OrGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*le,me=0,Se=.5,be=new go.PathFigure(0,0,!0);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(me+ge+ge)*ne,(Se-le)*te,.8*ne,(Se-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.8*ne,(Se+ge)*te,(me+ge+ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,0,0,.25*ne,.75*te,.25*ne,.25*te).close()),de.spot1=new go.Spot(.2,.25),de.spot2=new go.Spot(.75,.75),de}),go.Shape.defineFigureGenerator("XnorGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*le,me=.2,Se=.5,be=new go.PathFigure(.1*ne,0,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Ie=new go.PathFigure(.8*ne,.5*te,!0);de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.7*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.5*te,(me+ge)*ne,(Se-le)*te,.7*ne,(Se-ge)*te)),le=.1,ge=dt*.1,me=.9,Se=.5;var Ze=new go.PathFigure((me-le)*ne,Se*te,!0);return de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.65,.75),de}),go.Shape.defineFigureGenerator("XorGate",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*le,me=.2,Se=.5,be=new go.PathFigure(.1*ne,0,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,te,.35*ne,.25*te,.35*ne,.75*te));var Ie=new go.PathFigure(.2*ne,0,!0);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,(me+ge)*ne,(Se-le)*te,.9*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,te,.9*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.2*ne,0,.45*ne,.75*te,.45*ne,.25*te).close()),de.spot1=new go.Spot(.4,.25),de.spot2=new go.Spot(.8,.75),de}),go.Shape.defineFigureGenerator("Capacitor",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("Resistor",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),de}),go.Shape.defineFigureGenerator("Inductor",function(Ne,ne,te){var de=new go.Geometry,le=dt*.1,ge=.1,me=.1,Se=.5,be=new go.PathFigure((me-le*.5)*ne,te,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.3,be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.5,be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.7,be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,0,(me-le)*ne,te,(me-ge)*ne,0)),me=.9,be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le*.5)*ne,te,(me+ge)*ne,0,(me+le)*ne,te)),de}),go.Shape.defineFigureGenerator("ACvoltageSource",function(Ne,ne,te){var de=new go.Geometry,le=dt*.5,ge=.5,me=.5,Se=.5,be=new go.PathFigure((me-ge)*ne,Se*te,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se-ge)*te,(me+ge)*ne,(Se-le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Move,(me-ge+.1)*ne,Se*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge-.1)*ne,Se*te,me*ne,(Se-ge)*te,me*ne,(Se+ge)*te)),de}),go.Shape.defineFigureGenerator("DCvoltageSource",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.75*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("Diode",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de.spot1=new go.Spot(0,.25),de.spot2=new go.Spot(.5,.75),de}),go.Shape.defineFigureGenerator("Wifi",function(Ne,ne,te){var de=new go.Geometry,le=ne,ge=te;ne=ne*.38,te=te*.6;var me=dt*.8,Se=.8,be=0,Ie=.5,Ze=(le-ne)/2,st=(ge-te)/2,Ye=new go.PathFigure(be*ne+Ze,(Ie+Se)*te+st,!0);de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(be-Se)*ne+Ze,Ie*te+st,(be-me)*ne+Ze,(Ie+Se)*te+st,(be-Se)*ne+Ze,(Ie+me)*te+st)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie-Se)*te+st,(be-Se)*ne+Ze,(Ie-me)*te+st,(be-me)*ne+Ze,(Ie-Se)*te+st)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(be-Se+me*.5)*ne+Ze,Ie*te+st,be*ne+Ze,(Ie-Se)*te+st,(be-Se+me*.5)*ne+Ze,(Ie-me)*te+st)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie+Se)*te+st,(be-Se+me*.5)*ne+Ze,(Ie+me)*te+st,be*ne+Ze,(Ie+Se)*te+st).close()),me=dt*.4,Se=.4,be=.2,Ie=.5;var Xe=new go.PathFigure(be*ne+Ze,(Ie+Se)*te+st,!0);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(be-Se)*ne+Ze,Ie*te+st,(be-me)*ne+Ze,(Ie+Se)*te+st,(be-Se)*ne+Ze,(Ie+me)*te+st)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie-Se)*te+st,(be-Se)*ne+Ze,(Ie-me)*te+st,(be-me)*ne+Ze,(Ie-Se)*te+st)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(be-Se+me*.5)*ne+Ze,Ie*te+st,be*ne+Ze,(Ie-Se)*te+st,(be-Se+me*.5)*ne+Ze,(Ie-me)*te+st)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie+Se)*te+st,(be-Se+me*.5)*ne+Ze,(Ie+me)*te+st,be*ne+Ze,(Ie+Se)*te+st).close()),me=dt*.2,Se=.2,be=.5,Ie=.5;var At=new go.PathFigure((be-Se)*ne+Ze,Ie*te+st,!0);de.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie-Se)*te+st,(be-Se)*ne+Ze,(Ie-me)*te+st,(be-me)*ne+Ze,(Ie-Se)*te+st)),At.add(new go.PathSegment(go.PathSegment.Bezier,(be+Se)*ne+Ze,Ie*te+st,(be+me)*ne+Ze,(Ie-Se)*te+st,(be+Se)*ne+Ze,(Ie-me)*te+st)),At.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie+Se)*te+st,(be+Se)*ne+Ze,(Ie+me)*te+st,(be+me)*ne+Ze,(Ie+Se)*te+st)),At.add(new go.PathSegment(go.PathSegment.Bezier,(be-Se)*ne+Ze,Ie*te+st,(be-me)*ne+Ze,(Ie+Se)*te+st,(be-Se)*ne+Ze,(Ie+me)*te+st)),me=dt*.4,Se=.4,be=.8,Ie=.5;var ft=new go.PathFigure(be*ne+Ze,(Ie-Se)*te+st,!0);de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be+Se)*ne+Ze,Ie*te+st,(be+me)*ne+Ze,(Ie-Se)*te+st,(be+Se)*ne+Ze,(Ie-me)*te+st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie+Se)*te+st,(be+Se)*ne+Ze,(Ie+me)*te+st,(be+me)*ne+Ze,(Ie+Se)*te+st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,(be+Se-me*.5)*ne+Ze,Ie*te+st,be*ne+Ze,(Ie+Se)*te+st,(be+Se-me*.5)*ne+Ze,(Ie+me)*te+st)),ft.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie-Se)*te+st,(be+Se-me*.5)*ne+Ze,(Ie-me)*te+st,be*ne+Ze,(Ie-Se)*te+st).close()),me=dt*.8,Se=.8,be=1,Ie=.5;var Nt=new go.PathFigure(be*ne+Ze,(Ie-Se)*te+st,!0);return de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(be+Se)*ne+Ze,Ie*te+st,(be+me)*ne+Ze,(Ie-Se)*te+st,(be+Se)*ne+Ze,(Ie-me)*te+st)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie+Se)*te+st,(be+Se)*ne+Ze,(Ie+me)*te+st,(be+me)*ne+Ze,(Ie+Se)*te+st)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,(be+Se-me*.5)*ne+Ze,Ie*te+st,be*ne+Ze,(Ie+Se)*te+st,(be+Se-me*.5)*ne+Ze,(Ie+me)*te+st)),Nt.add(new go.PathSegment(go.PathSegment.Bezier,be*ne+Ze,(Ie-Se)*te+st,(be+Se-me*.5)*ne+Ze,(Ie-me)*te+st,be*ne+Ze,(Ie-Se)*te+st).close()),de}),go.Shape.defineFigureGenerator("Email",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,0,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,0)),ge.add(new go.PathSegment(go.PathSegment.Move,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Move,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.54*te)),de}),go.Shape.defineFigureGenerator("Ethernet",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.35*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,0).close());var ge=new go.PathFigure(.1*ne,te,!0,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var me=new go.PathFigure(.6*ne,te,!0,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.6*ne,te).close());var Se=new go.PathFigure(0,.5*te,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.4*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.75*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.6*te)),Se.add(new go.PathSegment(go.PathSegment.Move,.25*ne,.5*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.6*te)),de}),go.Shape.defineFigureGenerator("Power",function(Ne,ne,te){var de=new go.Geometry,le=dt*.4,ge=.4,me=.5,Se=.5,be=ye(),Ie=ye(),Ze=ye(),st=ye();Dt(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.5,be,be,Ie,Ze,st);var Ye=De(Ie.x,Ie.y),Xe=new go.PathFigure(Ie.x*ne,Ie.y*te,!0);de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,(me-le)*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te)),Dt(me-ge,Se,me-ge,Se-le,me-le,Se-ge,me,Se-ge,.5,Ze,st,Ie,be,be),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,Ze.x*ne,Ze.y*te,st.x*ne,st.y*te)),le=dt*.3,ge=.3,Dt(me-ge,Se,me-ge,Se-le,me-le,Se-ge,me,Se-ge,.5,Ze,st,Ie,be,be),Xe.add(new go.PathSegment(go.PathSegment.Line,Ie.x*ne,Ie.y*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me-ge)*ne,Se*te,st.x*ne,st.y*te,Ze.x*ne,Ze.y*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+ge)*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(me+ge)*ne,Se*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Dt(me,Se-ge,me+le,Se-ge,me+ge,Se-le,me+ge,Se,.5,be,be,Ie,Ze,st),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ie.x*ne,Ie.y*te,st.x*ne,st.y*te,Ze.x*ne,Ze.y*te).close());var Xe=new go.PathFigure(.45*ne,0,!0);return de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.5*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.5*te)),Xe.add(new go.PathSegment(go.PathSegment.Line,.55*ne,0).close()),nt(be),nt(Ie),nt(Ze),nt(st),nt(Ye),de.spot1=new go.Spot(.25,.45),de.spot2=new go.Spot(.75,.8),de}),go.Shape.defineFigureGenerator("Fallout",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te/2,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,180,360,ne/2,te/2,ne/2,te/2));function ge(me,Se,be){me.add(new go.PathSegment(go.PathSegment.Move,(.3+Se)*ne,(.8+be)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.5+Se)*ne,(.5+be)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.1+Se)*ne,(.5+be)*te)),me.add(new go.PathSegment(go.PathSegment.Line,(.3+Se)*ne,(.8+be)*te).close())}return ge(le,0,0),ge(le,.4,0),ge(le,.2,-.3),de}),go.Shape.defineFigureGenerator("IrritationHazard",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.2*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.3*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close()),de.spot1=new go.Spot(.3,.3),de.spot2=new go.Spot(.7,.7),de}),go.Shape.defineFigureGenerator("ElectricalHazard",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.37*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.11*te)),le.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.04*te)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.49*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.37*te)),le.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.86*te)),le.add(new go.PathSegment(go.PathSegment.Line,.77*ne,.91*te)),le.add(new go.PathSegment(go.PathSegment.Line,.34*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.34*ne,.78*te)),le.add(new go.PathSegment(go.PathSegment.Line,.44*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.56*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.68*te).close()),de}),go.Shape.defineFigureGenerator("FireHazard",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.29*ne,0,-.25*ne,.63*te,.45*ne,.44*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.51*ne,.42*te,.48*ne,.17*te,.54*ne,.35*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.59*ne,.18*te,.59*ne,.29*te,.58*ne,.28*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.75*ne,.6*te,.8*ne,.34*te,.88*ne,.43*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.88*ne,.31*te,.87*ne,.48*te,.88*ne,.43*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,1.17*ne,.76*te,.82*ne,.8*te).close()),de.spot1=new go.Spot(.07,.445),de.spot2=new go.Spot(.884,.958),de}),go.Shape.defineFigureGenerator("BpmnActivityLoop",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=0,me=0,Se=le*dt,be=.4*Math.SQRT2/2+.5,Ie=.5-.5*Math.SQRT2/2,Ze=1,st=.5,Ye=.5,Xe=0,At=new go.PathFigure(be*ne,(1-Ie)*te,!1);return de.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,st*te,Ze*ne,.7*te,Ze*ne,st*te)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+ge)*ne,(Xe+ge)*te,(.5+le+ge)*ne,(.5-Se+ge)*te,(.5+Se+ge)*ne,(.5-le+ge)*te)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.5-le+ge)*ne,(.5+me)*te,(.5-Se+ge)*ne,(.5-le+me)*te,(.5-le+ge)*ne,(.5-Se+me)*te)),At.add(new go.PathSegment(go.PathSegment.Bezier,(.35+ge)*ne,.9*te,(.5-le+ge)*ne,(.5+Se+me)*te,(.5-Se+ge)*ne,.9*te)),At.add(new go.PathSegment(go.PathSegment.Move,(.25+ge)*ne,.8*te)),At.add(new go.PathSegment(go.PathSegment.Line,(.35+ge)*ne,.9*te)),At.add(new go.PathSegment(go.PathSegment.Line,(.2+ge)*ne,.95*te)),de}),go.Shape.defineFigureGenerator("BpmnActivityParallel",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("BpmnActivitySequential",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Move,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),de}),go.Shape.defineFigureGenerator("BpmnActivityAdHoc",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var ge=new go.PathFigure(ne,te,!1);de.add(ge);var me=new go.PathFigure(0,.5*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.2*ne,.35*te,.3*ne,.35*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.7*ne,.65*te,.8*ne,.65*te)),de}),go.Shape.defineFigureGenerator("BpmnActivityCompensation",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te).close()),de}),go.Shape.defineFigureGenerator("BpmnTaskMessage",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.2*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te).close());var le=new go.PathFigure(0,.2*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),de}),go.Shape.defineFigureGenerator("BpmnTaskScript",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.7*ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,0,.6*ne,.5*te,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,te,.4*ne,.5*te,ne,.5*te).close());var ge=new go.PathFigure(.45*ne,.73*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.73*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.38*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.63*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.31*ne,.27*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.56*ne,.27*te)),de}),go.Shape.defineFigureGenerator("BpmnTaskUser",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var ge=new go.PathFigure(.335*ne,(1-.555)*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,ne,.68*te,(1-.12)*ne,.46*te,(1-.02)*ne,.54*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.68*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.335*ne,(1-.555)*te,.02*ne,.54*te,.12*ne,.46*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.365*ne,(1-.595)*te));var me=.5-.285,Se=.5,be=me,Ie=Math.PI/4,Ze=4*(1-Math.cos(Ie))/(3*Math.sin(Ie)),st=Ze*.5,Ye=me,Xe=me,At=Ze*Ye,ft=Ze*Xe;ge.add(new go.PathSegment(go.PathSegment.Bezier,(Se-Ye)*ne,be*te,(Se-(At+Ye)/2)*ne,(be+(Xe+ft)/2)*te,(Se-Ye)*ne,(be+ft)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,Se*ne,(be-Xe)*te,(Se-Ye)*ne,(be-ft)*te,(Se-At)*ne,(be-Xe)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(Se+Ye)*ne,be*te,(Se+At)*ne,(be-Xe)*te,(Se+Ye)*ne,(be-ft)*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,(1-.365)*ne,(1-.595)*te,(Se+Ye)*ne,(be+ft)*te,(Se+(At+Ye)/2)*ne,(be+(Xe+ft)/2)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.365)*ne,(1-.595)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.555)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,(1-.335)*ne,(1-.405)*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.335*ne,(1-.405)*te));var Nt=new go.PathFigure(.2*ne,te,!1);de.add(Nt),Nt.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.8*te));var Lt=new go.PathFigure(.8*ne,te,!1);return de.add(Lt),Lt.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),de}),go.Shape.defineFigureGenerator("BpmnEventConditional",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,te).close());var ge=new go.PathFigure(.2*ne,.2*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.8*te)),de}),go.Shape.defineFigureGenerator("BpmnEventError",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("BpmnEventEscalation",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le);var ge=new go.PathFigure(ne,te,!1);de.add(ge);var me=new go.PathFigure(.1*ne,te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("Caution",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.05*ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.8*te,0,te,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.55*ne,.1*te,.5*ne,0,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.95*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,te,ne,te,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ne,te));var ge=.05;return le.add(new go.PathSegment(go.PathSegment.Move,(.5-ge)*ne,.875*te)),le.add(new go.PathSegment(go.PathSegment.Arc,180,-360,.5*ne,.875*te,ge*ne,ge*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.325*te,.575*ne,.725*te,.625*ne,.375*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.75*te,.375*ne,.375*te,.425*ne,.725*te)),de}),go.Shape.defineFigureGenerator("Recycle",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.45*ne,.95*te,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.185*ne,.85*te,.17*ne,.95*te,.15*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.235*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,.3*ne,.625*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.05*ne,.575*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.1875*ne,.95*te,0,.675*te,0,.7*te)),le.add(new go.PathSegment(go.PathSegment.Move,.45*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.775*te)),le.add(new go.PathSegment(go.PathSegment.Line,.22*ne,.775*te));var ge=new go.PathFigure(.475*ne,.2*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.225*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.275*ne,.175*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.325*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,.05*te,.35*ne,0,.375*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.375*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.475*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.315*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.32*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.05*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,0,.65*ne,.05*te,.625*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.38*ne,.0105*te));var me=new go.PathFigure(.675*ne,.575*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.875*ne,.525*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,.85*ne,.95*te,ne,.8*te,ne,.85*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.95*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.85*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.725*te)),me.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Line,ne,.775*te)),me.add(new go.PathSegment(go.PathSegment.Move,.675*ne,.575*te)),me.add(new go.PathSegment(go.PathSegment.Line,.775*ne,.775*te)),de}),go.Shape.defineFigureGenerator("BpmnEventTimer",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*.5,me=new go.PathFigure(ne,le*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Bezier,le*ne,te,ne,(le+ge)*te,(le+ge)*ne,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,le*te,(le-ge)*ne,te,0,(le+ge)*te)),me.add(new go.PathSegment(go.PathSegment.Bezier,le*ne,0,0,(le-ge)*te,(le-ge)*ne,0)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne,le*te,(le+ge)*ne,0,ne,(le-ge)*te));var Se=new go.PathFigure(le*ne,0,!1);return de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,le*ne,.15*te)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ne,te)),Se.add(new go.PathSegment(go.PathSegment.Line,le*ne,.85*te)),Se.add(new go.PathSegment(go.PathSegment.Move,0,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.15*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Move,ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.85*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.58*ne,.1*te)),Se.add(new go.PathSegment(go.PathSegment.Move,le*ne,le*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.78*ne,.54*te)),de}),go.Shape.defineFigureGenerator("Package",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.15*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close());var ge=new go.PathFigure(0,.15*te,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.15*te).close()),de.spot1=new go.Spot(0,.1),de.spot2=new go.Spot(1,1),de}),go.Shape.defineFigureGenerator("Class",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var me=new go.PathFigure(0,.5*te,!1);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te).close()),de}),go.Shape.defineFigureGenerator("Component",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te).close());var ge=new go.PathFigure(0,.2*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.2*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.2*te).close());var me=new go.PathFigure(0,.6*te,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.6*te)),me.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,0,.6*te).close()),de}),go.Shape.defineFigureGenerator("Boat Shipment",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.15*ne,.6*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.6*te));var ge=new go.PathFigure(.15*ne,.6*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.6*te)),de}),go.Shape.defineFigureGenerator("Customer/Supplier",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,.66*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,.33*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),de}),go.Shape.defineFigureGenerator("Workcell",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.65*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.35*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),de}),go.Shape.defineFigureGenerator("Supermarket",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.33*te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,.33*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.66*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.66*te)),le.add(new go.PathSegment(go.PathSegment.Move,ne,.66*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),de}),go.Shape.defineFigureGenerator("TruckShipment",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(ne,.8*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te).close());var me=.1,Se=dt*.1,be=.2,Ie=.9,Ze=new go.PathFigure((be-me)*ne,Ie*te,!0);de.add(Ze),Ze.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-me)*te,(be-me)*ne,(Ie-Se)*te,(be-Se)*ne,(Ie-me)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(be+me)*ne,Ie*te,(be+Se)*ne,(Ie-me)*te,(be+me)*ne,(Ie-Se)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie+me)*te,(be+me)*ne,(Ie+Se)*te,(be+Se)*ne,(Ie+me)*te)),Ze.add(new go.PathSegment(go.PathSegment.Bezier,(be-me)*ne,Ie*te,(be-Se)*ne,(Ie+me)*te,(be-me)*ne,(Ie+Se)*te).close()),me=.1,Se=dt*.1,be=.8,Ie=.9;var st=new go.PathFigure((be-me)*ne,Ie*te,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie-me)*te,(be-me)*ne,(Ie-Se)*te,(be-Se)*ne,(Ie-me)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(be+me)*ne,Ie*te,(be+Se)*ne,(Ie-me)*te,(be+me)*ne,(Ie-Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,be*ne,(Ie+me)*te,(be+me)*ne,(Ie+Se)*te,(be+Se)*ne,(Ie+me)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(be-me)*ne,Ie*te,(be-Se)*ne,(Ie+me)*te,(be-me)*ne,(Ie+Se)*te).close()),de}),go.Shape.defineFigureGenerator("KanbanPost",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.2*ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,0)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,te)),de}),go.Shape.defineFigureGenerator("Forklift",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0));var ge=new go.PathFigure(0,.5*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var me=new go.PathFigure(.5*ne,.8*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.1*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.1*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.8*te)),me.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.8*te));var Se=new go.PathFigure(.5*ne,.7*te,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne,.7*te));var be=.1,Ie=dt*.1,Ze=.1,st=.9,Ye=new go.PathFigure((Ze-be)*ne,st*te,!0);de.add(Ye),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st-be)*te,(Ze-be)*ne,(st-Ie)*te,(Ze-Ie)*ne,(st-be)*te)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ze+be)*ne,st*te,(Ze+Ie)*ne,(st-be)*te,(Ze+be)*ne,(st-Ie)*te)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st+be)*te,(Ze+be)*ne,(st+Ie)*te,(Ze+Ie)*ne,(st+be)*te)),Ye.add(new go.PathSegment(go.PathSegment.Bezier,(Ze-be)*ne,st*te,(Ze-Ie)*ne,(st+be)*te,(Ze-be)*ne,(st+Ie)*te)),be=.1,Ie=dt*.1,Ze=.4,st=.9;var Xe=new go.PathFigure((Ze-be)*ne,st*te,!0);return de.add(Xe),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st-be)*te,(Ze-be)*ne,(st-Ie)*te,(Ze-Ie)*ne,(st-be)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ze+be)*ne,st*te,(Ze+Ie)*ne,(st-be)*te,(Ze+be)*ne,(st-Ie)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,Ze*ne,(st+be)*te,(Ze+be)*ne,(st+Ie)*te,(Ze+Ie)*ne,(st+be)*te)),Xe.add(new go.PathSegment(go.PathSegment.Bezier,(Ze-be)*ne,st*te,(Ze-Ie)*ne,(st+be)*te,(Ze-be)*ne,(st+Ie)*te)),de}),go.Shape.defineFigureGenerator("RailShipment",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.1*ne,.4*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.45*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.4*te).close());var ge=new go.PathFigure(.45*ne,.7*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.7*te));var me=new go.PathFigure(.55*ne,.4*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),me.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.9*te)),me.add(new go.PathSegment(go.PathSegment.Line,.55*ne,.4*te).close());var Ze=.05,st=dt*.05,Ye=.175,Xe=.95,Se=new go.PathFigure((Ye-Ze)*ne,Xe*te,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe-Ze)*te,(Ye-Ze)*ne,(Xe-st)*te,(Ye-st)*ne,(Xe-Ze)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ze)*ne,Xe*te,(Ye+st)*ne,(Xe-Ze)*te,(Ye+Ze)*ne,(Xe-st)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe+Ze)*te,(Ye+Ze)*ne,(Xe+st)*te,(Ye+st)*ne,(Xe+Ze)*te)),Se.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ze)*ne,Xe*te,(Ye-st)*ne,(Xe+Ze)*te,(Ye-Ze)*ne,(Xe+st)*te));var Ze=.05,st=dt*.05,Ye=.375,Xe=.95,be=new go.PathFigure((Ye-Ze)*ne,Xe*te,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe-Ze)*te,(Ye-Ze)*ne,(Xe-st)*te,(Ye-st)*ne,(Xe-Ze)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ze)*ne,Xe*te,(Ye+st)*ne,(Xe-Ze)*te,(Ye+Ze)*ne,(Xe-st)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe+Ze)*te,(Ye+Ze)*ne,(Xe+st)*te,(Ye+st)*ne,(Xe+Ze)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ze)*ne,Xe*te,(Ye-st)*ne,(Xe+Ze)*te,(Ye-Ze)*ne,(Xe+st)*te));var Ze=.05,st=dt*.05,Ye=.625,Xe=.95,Ie=new go.PathFigure((Ye-Ze)*ne,Xe*te,!0);de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe-Ze)*te,(Ye-Ze)*ne,(Xe-st)*te,(Ye-st)*ne,(Xe-Ze)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ze)*ne,Xe*te,(Ye+st)*ne,(Xe-Ze)*te,(Ye+Ze)*ne,(Xe-st)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe+Ze)*te,(Ye+Ze)*ne,(Xe+st)*te,(Ye+st)*ne,(Xe+Ze)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ze)*ne,Xe*te,(Ye-st)*ne,(Xe+Ze)*te,(Ye-Ze)*ne,(Xe+st)*te));var Ze=.05,st=dt*.05,Ye=.825,Xe=.95,At=new go.PathFigure((Ye-Ze)*ne,Xe*te,!0);de.add(At),At.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe-Ze)*te,(Ye-Ze)*ne,(Xe-st)*te,(Ye-st)*ne,(Xe-Ze)*te)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Ye+Ze)*ne,Xe*te,(Ye+st)*ne,(Xe-Ze)*te,(Ye+Ze)*ne,(Xe-st)*te)),At.add(new go.PathSegment(go.PathSegment.Bezier,Ye*ne,(Xe+Ze)*te,(Ye+Ze)*ne,(Xe+st)*te,(Ye+st)*ne,(Xe+Ze)*te)),At.add(new go.PathSegment(go.PathSegment.Bezier,(Ye-Ze)*ne,Xe*te,(Ye-st)*ne,(Xe+Ze)*te,(Ye-Ze)*ne,(Xe+st)*te).close());var ft=new go.PathFigure(0,te,!1);return de.add(ft),ft.add(new go.PathSegment(go.PathSegment.Line,ne,te).close()),de}),go.Shape.defineFigureGenerator("Warehouse",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,0).close());var ge=new go.PathFigure(0,.2*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te).close());var me=new go.PathFigure(.15*ne,te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.5*te)),me.add(new go.PathSegment(go.PathSegment.Line,.4*ne,te)),me.add(new go.PathSegment(go.PathSegment.Line,.15*ne,te).close());var Se=.05,be=dt*.05,Ie=.35,Ze=.775,st=new go.PathFigure((Ie-Se)*ne,Ze*te,!0);return de.add(st),st.add(new go.PathSegment(go.PathSegment.Bezier,Ie*ne,(Ze-Se)*te,(Ie-Se)*ne,(Ze-be)*te,(Ie-be)*ne,(Ze-Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ie+Se)*ne,Ze*te,(Ie+be)*ne,(Ze-Se)*te,(Ie+Se)*ne,(Ze-be)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,Ie*ne,(Ze+Se)*te,(Ie+Se)*ne,(Ze+be)*te,(Ie+be)*ne,(Ze+Se)*te)),st.add(new go.PathSegment(go.PathSegment.Bezier,(Ie-Se)*ne,Ze*te,(Ie-be)*ne,(Ze+Se)*te,(Ie-Se)*ne,(Ze+be)*te).close()),de}),go.Shape.defineFigureGenerator("ControlCenter",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,.1*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te).close()),de}),go.Shape.defineFigureGenerator("Bluetooth",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.75*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.25*te)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),de}),go.Shape.defineFigureGenerator("Bookmark",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,0,0)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.4*te)),de}),go.Shape.defineFigureGenerator("Globe",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.5*te,.75*ne,0,ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,ne,.75*te,.75*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.25*ne,te,0,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,0,.25*te,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,te,.15*ne,.25*te,.15*ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.85*ne,.75*te,.85*ne,.25*te)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.15*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.15*te,.35*ne,.3*te,.65*ne,.3*te)),le.add(new go.PathSegment(go.PathSegment.Move,.1675*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8325*ne,.85*te,.35*ne,.7*te,.65*ne,.7*te)),de}),go.Shape.defineFigureGenerator("Wave",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.25*te,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.25*te,.1*ne,0,.2*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.25*te,.425*ne,.5*te,.575*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.25*te,.8*ne,0,.9*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.75*te)),le.add(new go.PathSegment(go.PathSegment.Move,0,.25*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.75*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.75*te,.1*ne,.5*te,.2*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.7*ne,.75*te,.425*ne,te,.575*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.75*te,.8*ne,.5*te,.9*ne,.5*te)),de}),go.Shape.defineFigureGenerator("Operator",function(Ne,ne,te){var de=new go.Geometry,le=.3,ge=dt*.3,me=.5,Se=.7,be=new go.PathFigure((me-le)*ne,Se*te,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te));var Ie=new go.PathFigure(0,.7*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,ne,.7*te,0,0,ne,0)),de}),go.Shape.defineFigureGenerator("TripleFanBlades",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.5*ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.65*ne,.3*te,.65*ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.35*ne,.5*te,.35*ne,.3*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,te,.3*ne,.6*te,.1*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.2*ne,te,.35*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.65*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,te,.7*ne,.6*te,.9*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.65*te,.8*ne,te,.65*ne,.95*te)),de}),go.Shape.defineFigureGenerator("CentrifugalPump",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne,0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,0,.075*te,0,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.4*ne,te,0,te,.4*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.4*te,.8*ne,te,.85*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,0)),de}),go.Shape.defineFigureGenerator("Battery",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,.4*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.1*te));var ge=new go.PathFigure(0,.6*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,0,.4*te)),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.4*te)),de}),go.Shape.defineFigureGenerator("Delete",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*.5,me=.5,Se=.5,be=new go.PathFigure((me-le)*ne,Se*te,!0);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te));var Ie=new go.PathFigure(.15*ne,.5*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.5*te)),de}),go.Shape.defineFigureGenerator("Flag",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.1*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Move,0,.1*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.1*te,.15*ne,0,.35*ne,0)),le.add(new go.PathSegment(go.PathSegment.Bezier,ne,.1*te,.65*ne,.2*te,.85*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.5*te,.85*ne,.6*te,.65*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.5*te,.35*ne,.4*te,.15*ne,.4*te).close()),de}),go.Shape.defineFigureGenerator("Help",function(Ne,ne,te){var de=new go.Geometry,le=.5,ge=dt*.5,me=.5,Se=.5,be=new go.PathFigure((me-le)*ne,Se*te,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),be.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te).close()),le=.05,ge=dt*.05,me=.5,Se=.8;var Ie=new go.PathFigure((me-le)*ne,Se*te,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se-le)*te,(me-le)*ne,(Se-ge)*te,(me-ge)*ne,(Se-le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me+le)*ne,Se*te,(me+ge)*ne,(Se-le)*te,(me+le)*ne,(Se-ge)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,me*ne,(Se+le)*te,(me+le)*ne,(Se+ge)*te,(me+ge)*ne,(Se+le)*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,(me-le)*ne,Se*te,(me-ge)*ne,(Se+le)*te,(me-le)*ne,(Se+ge)*te).close()),Ie.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.7*te)),Ie.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.5*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,.2*te,.75*ne,.475*te,.75*ne,.225*te)),Ie.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.35*te,.4*ne,.2*te,.3*ne,.25*te)),de}),go.Shape.defineFigureGenerator("Location",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.5*ne,te,!0).add(new go.PathSegment(go.PathSegment.Line,.75*ne,.5*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5*ne,0,.975*ne,.025*te,.5*ne,0)).add(new go.PathSegment(go.PathSegment.Bezier,.25*ne,.5*te,.5*ne,0,.025*ne,.025*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)).add(new go.PathSegment(go.PathSegment.Arc,270,360,.5*ne,.3*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Lock",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.3*te)),de}),go.Shape.defineFigureGenerator("Unlocked",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.5*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.5*te));var ge=new go.PathFigure(.2*ne,.5*te,!1);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Move,.2*ne,.5*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.3*te)),ge.add(new go.PathSegment(go.PathSegment.Bezier,.8*ne,.3*te,.25*ne,0,.75*ne,0)),ge.add(new go.PathSegment(go.PathSegment.Line,.8*ne,.35*te)),de}),go.Shape.defineFigureGenerator("Gear",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(.9375*ne,.56246875*te,!0).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.80621875*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.763*ne,.3316875*te,.79840625*ne,.39915625*te,.7834375*ne,.3635*te)).add(new go.PathSegment(go.PathSegment.Line,.8566875*ne,.23796875*te)).add(new go.PathSegment(go.PathSegment.Line,.76825*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.67596875*ne,.24184375*te)).add(new go.PathSegment(go.PathSegment.Bezier,.5625*ne,.19378125*te,.64228125*ne,.2188125*te,.603875*ne,.2021875*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.0625*te)).add(new go.PathSegment(go.PathSegment.Line,.4375*ne,.19378125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.32775*ne,.239375*te,.39759375*ne,.20190625*te,.36053125*ne,.2176875*te)).add(new go.PathSegment(go.PathSegment.Line,.2379375*ne,.14959375*te)).add(new go.PathSegment(go.PathSegment.Line,.14953125*ne,.2379375*te)).add(new go.PathSegment(go.PathSegment.Line,.23934375*ne,.3278125*te)).add(new go.PathSegment(go.PathSegment.Bezier,.19378125*ne,.4375*te,.21765625*ne,.36059375*te,.201875*ne,.397625*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.4375*te)).add(new go.PathSegment(go.PathSegment.Line,.0625*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Line,.1938125*ne,.5625*te)).add(new go.PathSegment(go.PathSegment.Bezier,.241875*ne,.67596875*te,.20221875*ne,.603875*te,.21884375*ne,.64228125*te)).add(new go.PathSegment(go.PathSegment.Line,.1495625*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.238*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.3316875*ne,.76296875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.43753125*ne,.80621875*te,.36353125*ne,.78340625*te,.3991875*ne,.79840625*te)).add(new go.PathSegment(go.PathSegment.Line,.43753125*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.9375*te)).add(new go.PathSegment(go.PathSegment.Line,.5625*ne,.80621875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.67225*ne,.760625*te,.602375*ne,.79809375*te,.63946875*ne,.78234375*te)).add(new go.PathSegment(go.PathSegment.Line,.76828125*ne,.8566875*te)).add(new go.PathSegment(go.PathSegment.Line,.85671875*ne,.76825*te)).add(new go.PathSegment(go.PathSegment.Line,.76065625*ne,.67221875*te)).add(new go.PathSegment(go.PathSegment.Bezier,.80621875*ne,.56246875*te,.78234375*ne,.63940625*te,.798125*ne,.602375*te)).add(new go.PathSegment(go.PathSegment.Line,.9375*ne,.56246875*te).close()).add(new go.PathSegment(go.PathSegment.Move,.5*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Arc,90,360,.5*ne,.5*te,.1*ne,.1*te).close()))}),go.Shape.defineFigureGenerator("Hand",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.5*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Bezier,.1*ne,.3*te,0,.375*te,.05*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.45*ne,.075*te,.3*ne,.225*te,.4*ne,.175*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.525*ne,.075*te,.46*ne,.05*te,.525*ne,.05*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.3*ne,.4*te,.525*ne,.275*te,.475*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.55*te,ne,.4*te,ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,.425*ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.55*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.6*ne,.7*te,.675*ne,.55*te,.675*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.575*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.575*ne,.85*te,.65*ne,.7*te,.65*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Line,.525*ne,.85*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.535*ne,te,.61*ne,.85*te,.61*ne,te)),le.add(new go.PathSegment(go.PathSegment.Bezier,0,.9*te,.435*ne,te,0,te).close()),de}),go.Shape.defineFigureGenerator("Map",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,.2*te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,te).close()),le.add(new go.PathSegment(go.PathSegment.Move,.25*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.25*ne,.8*te)),le.add(new go.PathSegment(go.PathSegment.Move,.5*ne,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te)),le.add(new go.PathSegment(go.PathSegment.Move,.75*ne,0)),le.add(new go.PathSegment(go.PathSegment.Line,.75*ne,.8*te)),de}),go.Shape.defineFigureGenerator("Eject",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne,te)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.7)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.7).close());var ge=new go.PathFigure(0,te*.6,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne,.6*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.5*ne,0).close()),de}),go.Shape.defineFigureGenerator("Pencil",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.2*te).close()))}),go.Shape.defineFigureGenerator("Building",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*1,te*1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.85)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.046*ne,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.3)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,(1-.046)*ne,te*.85)),le.add(new go.PathSegment(go.PathSegment.Line,ne,te*.85).close());var ge=new go.PathFigure(.126*ne,.85*te,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,.126*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.45*te)),ge.add(new go.PathSegment(go.PathSegment.Line,.322*ne,.85*te).close());var me=new go.PathFigure(.402*ne,.85*te,!1);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,.402*ne,.45*te)),me.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.45*te)),me.add(new go.PathSegment(go.PathSegment.Line,.598*ne,.85*te).close());var Se=new go.PathFigure(.678*ne,.85*te,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,.678*ne,.45*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.45*te)),Se.add(new go.PathSegment(go.PathSegment.Line,.874*ne,.85*te).close());var be=new go.PathFigure(.5*ne,.1*te,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,(.046+.15)*ne,.3*te)),be.add(new go.PathSegment(go.PathSegment.Line,(1-(.046+.15))*ne,.3*te).close()),de}),go.Shape.defineFigureGenerator("Staircase",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te*1,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.8)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.8)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.6)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.6)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.4)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.4)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.2)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.2)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.15)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.15)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*.95).close()),de}),go.Shape.defineFigureGenerator("5Bars",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,te*1,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.184,te*(1-.184)).close());var ge=new go.PathFigure(ne*.204,te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.204,te*(1-.184))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*(1-.184*2))),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.388,te*1).close());var me=new go.PathFigure(ne*.408,te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.408,te*(1-.184*2))),me.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*(1-.184*3))),me.add(new go.PathSegment(go.PathSegment.Line,ne*.592,te*1).close());var Se=new go.PathFigure(ne*.612,te,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.612,te*(1-.184*3))),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*(1-.184*4))),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.796,te*1).close());var be=new go.PathFigure(ne*.816,te,!0);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.816,te*(1-.184*4))),be.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-.184*5))),be.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1).close()),de}),go.Shape.defineFigureGenerator("PC",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,0).close());var ge=new go.PathFigure(ne*.055,.07*te,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.07)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.1).close());var me=new go.PathFigure(ne*.055,.13*te,!0);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.13)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.16)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.16).close());var Se=new go.PathFigure(ne*.055,.18*te,!0);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.18)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.245,te*.21)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.055,te*.21).close());var be=new go.PathFigure(ne*1,0,!0);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.4,0)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.65)),be.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.65).close()),de}),go.Shape.defineFigureGenerator("Plane",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(.55*ne,te,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.7*te)),le.add(new go.PathSegment(go.PathSegment.Line,.1*ne,.475*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.35*ne,.525*te,0,.4*te,.225*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.4*ne,.475*te)),le.add(new go.PathSegment(go.PathSegment.Line,.15*ne,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,.2*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.325*te)),le.add(new go.PathSegment(go.PathSegment.Line,.85*ne,.1*te)),le.add(new go.PathSegment(go.PathSegment.Bezier,.9*ne,.2*te,.975*ne,0,ne,.08*te)),le.add(new go.PathSegment(go.PathSegment.Line,.7*ne,.45*te)),le.add(new go.PathSegment(go.PathSegment.Line,.6*ne,.95*te)),le.add(new go.PathSegment(go.PathSegment.Line,.55*ne,te).close()),de}),go.Shape.defineFigureGenerator("Key",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*1,te*.5,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.4*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.2*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.35*te)),le.add(new go.PathSegment(go.PathSegment.Line,0,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.15,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,.8*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.65*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.7,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,.55*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,.6*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.85,.575*te)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.9,.6*te).close()),le.add(new go.PathSegment(go.PathSegment.Move,.17*ne,.425*te)),le.add(new go.PathSegment(go.PathSegment.Arc,270,360,.17*ne,.5*te,.075*ne,.075*te).close()),de}),go.Shape.defineFigureGenerator("FilmTape",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(0,0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Arc,270,180,ne*0,ne*.3,ne*.055)),le.add(new go.PathSegment(go.PathSegment.Line,0,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.08,te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*1),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*2),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*3),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*4),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*5),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*6),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*7),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*8),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*9),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*10),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*11),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*12),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*13),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*14),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*.95)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(.08+.056*15),te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var ge=new go.PathFigure(0,0,!1);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*0)),ge.add(new go.PathSegment(go.PathSegment.Arc,270,-180,ne*1,ne*.3,ne*.055)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1));var me=new go.PathFigure(ne*.11,te*.1,!1);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.1)),me.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*0),te*.8)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.11,te*.8).close());var Se=new go.PathFigure(ne*(.11+.24133333*1+.028*1),te*.1,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.1)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*1),te*.8)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*1+.028*1),te*.8).close());var be=new go.PathFigure(ne*(.11+.24133333*2+.028*2),te*.1,!1);return de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.1)),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*3+.028*2),te*.8)),be.add(new go.PathSegment(go.PathSegment.Line,ne*(.11+.24133333*2+.028*2),te*.8).close()),de}),go.Shape.defineFigureGenerator("FloppyDisk",function(Ne,ne,te){var de=new go.Geometry,le=8,ge=le*dt,me=new go.PathFigure(le,0,!1);de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.86,0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.14)),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-le)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-le,te,ne,te-ge,ne-ge,te)),me.add(new go.PathSegment(go.PathSegment.Line,le,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-le,ge,te,0,te-ge)),me.add(new go.PathSegment(go.PathSegment.Line,0,le)),me.add(new go.PathSegment(go.PathSegment.Bezier,le,0,0,ge,ge,0).close());var Se=new go.PathFigure(ne*.83,0,!1);de.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.3)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.3)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*0).close());var be=new go.PathFigure(ne*.83,te*1,!1);de.add(be),be.add(new go.PathSegment(go.PathSegment.Line,ne*.83,te*.5)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*.5)),be.add(new go.PathSegment(go.PathSegment.Line,ne*.17,te*1).close());var Ie=new go.PathFigure(ne*.78,te*.05,!1);return de.add(Ie),Ie.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.05)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.25)),Ie.add(new go.PathSegment(go.PathSegment.Line,ne*.78,te*.25).close()),de}),go.Shape.defineFigureGenerator("SpeechBubble",function(Ne,ne,te){var de=Ne?Ne.parameter1:NaN;(isNaN(de)||de<0)&&(de=15),de=Math.min(de,ne/3),de=Math.min(de,te/3);var le=de*dt,ge=te*.8,me=new go.Geometry,Se=new go.PathFigure(de,0,!0);return me.add(Se),Se.add(new go.PathSegment(go.PathSegment.Line,ne-de,0)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne,de,ne-le,0,ne,le)),Se.add(new go.PathSegment(go.PathSegment.Line,ne,ge-de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,ne-de,ge,ne,ge-le,ne-le,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te)),Se.add(new go.PathSegment(go.PathSegment.Line,ne*.55,ge)),Se.add(new go.PathSegment(go.PathSegment.Line,de,ge)),Se.add(new go.PathSegment(go.PathSegment.Bezier,0,ge-de,le,ge,0,ge-le)),Se.add(new go.PathSegment(go.PathSegment.Line,0,de)),Se.add(new go.PathSegment(go.PathSegment.Bezier,de,0,0,le,le,0).close()),le>1?(me.spot1=new go.Spot(0,0,le,le),me.spot2=new go.Spot(1,.8,-le,-le)):(me.spot1=go.Spot.TopLeft,me.spot2=new go.Spot(1,.8)),me}),go.Shape.defineFigureGenerator("Repeat",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*.45,!0);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.2,te*.45).close());var ge=new go.PathFigure(ne*1,te*.55,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.55)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.1)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*.55).close()),de}),go.Shape.defineFigureGenerator("Windows",function(Ne,ne,te){return new go.Geometry().add(new go.PathFigure(0,0,!0).add(new go.PathSegment(go.PathSegment.Line,ne,0)).add(new go.PathSegment(go.PathSegment.Line,ne,te)).add(new go.PathSegment(go.PathSegment.Line,0,te).close()).add(new go.PathSegment(go.PathSegment.Move,.4*ne,.4*te)).add(new go.PathSegment(go.PathSegment.Line,.4*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.8*te)).add(new go.PathSegment(go.PathSegment.Line,.9*ne,.4*te).close()).add(new go.PathSegment(go.PathSegment.Move,.2*ne,.1*te)).add(new go.PathSegment(go.PathSegment.Line,.2*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.7*ne,.1*te).close()).add(new go.PathSegment(go.PathSegment.Move,.1*ne,.6*te)).add(new go.PathSegment(go.PathSegment.Line,.1*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.9*te)).add(new go.PathSegment(go.PathSegment.Line,.5*ne,.6*te).close()))}),go.Shape.defineFigureGenerator("Terminal",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*.1,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.9)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.9).close());var ge=new go.PathFigure(ne*.1,te*.2,!0);de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.25)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.22,te*.285)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.1,te*.37)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.32)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.275,te*.25).close());var me=new go.PathFigure(ne*.28,te*.37,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.37)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.41)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.28,te*.41).close()),de}),go.Shape.defineFigureGenerator("Beaker",function(Ne,ne,te){var de=new go.Geometry,le=15,ge=le*dt,me=new go.PathFigure(ne*.62,te*.475,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne,te-le)),me.add(new go.PathSegment(go.PathSegment.Bezier,ne-le,te,ne,te-ge,ne-ge,te)),me.add(new go.PathSegment(go.PathSegment.Line,le,te)),me.add(new go.PathSegment(go.PathSegment.Bezier,0,te-le,ge,te,0,te-ge)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.475)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.38,te*.03)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*0)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.62,te*.03).close()),ge>1?(de.spot1=new go.Spot(0,0,ge,ge),de.spot2=new go.Spot(1,1,-ge,-ge)):(de.spot1=go.Spot.TopLeft,de.spot2=go.Spot.BottomRight),de}),go.Shape.defineFigureGenerator("Download",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*1,!0);de.add(le);var ge=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var me=new go.PathFigure(ne*.4,te*0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.66)),me.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.26),te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.44)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*0).close()),de}),go.Shape.defineFigureGenerator("Bin",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*1,!0);de.add(le);var ge=.1/.3;return le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close()),de}),go.Shape.defineFigureGenerator("Upload",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*0,te*1,!0);de.add(le);var ge=.1/.3;le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.8,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.66,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.755,te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.93,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.64,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.61,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.39,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.36,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*.07,te*(1-ge))),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.755),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*.055)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.66),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*(1-.8),te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*(1-ge)).close());var me=new go.PathFigure(ne*.5,te*0,!0);return de.add(me),me.add(new go.PathSegment(go.PathSegment.Line,ne*.26,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.4,te*.63)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.63)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.6,te*.25)),me.add(new go.PathSegment(go.PathSegment.Line,ne*.74,te*.25).close()),de}),go.Shape.defineFigureGenerator("EmptyDrink",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.15,te*0,!1);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close()),de}),go.Shape.defineFigureGenerator("Drink",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.15,te*0,!1);de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.85,te*0)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.7,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.3,te*1).close());var ge=new go.PathFigure(ne*.235,te*.28,!0);return de.add(ge),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.765,te*.28)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.655,te*.97)),ge.add(new go.PathSegment(go.PathSegment.Line,ne*.345,te*.97).close()),de}),go.Shape.defineFigureGenerator("4Arrows",function(Ne,ne,te){var de=new go.Geometry,le=new go.PathFigure(ne*.5,te*0,!0);return de.add(le),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*1,te*.5)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.65)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.75,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.55,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.65,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.5,te*1)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.75)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.55)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.65)),le.add(new go.PathSegment(go.PathSegment.Line,ne*0,te*.5)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.35)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.25,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.45)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.45,te*.25)),le.add(new go.PathSegment(go.PathSegment.Line,ne*.35,te*.25).close()),de}),go.Shape.defineFigureGenerator("Connector","Ellipse"),go.Shape.defineFigureGenerator("Alternative","TriangleUp"),go.Shape.defineFigureGenerator("Merge","TriangleUp"),go.Shape.defineFigureGenerator("Decision","Diamond"),go.Shape.defineFigureGenerator("DataTransmissions","Hexagon"),go.Shape.defineFigureGenerator("Gate","Crescent"),go.Shape.defineFigureGenerator("Delay","HalfEllipse"),go.Shape.defineFigureGenerator("Input","Parallelogram1"),go.Shape.defineFigureGenerator("ManualLoop","ManualOperation"),go.Shape.defineFigureGenerator("ISOProcess","Chevron"),go.Shape.defineFigureGenerator("MessageToUser","SquareArrow"),go.Shape.defineFigureGenerator("MagneticData","Cylinder1"),go.Shape.defineFigureGenerator("DirectData","Cylinder4"),go.Shape.defineFigureGenerator("StoredData","DataStorage"),go.Shape.defineFigureGenerator("SequentialData","MagneticTape"),go.Shape.defineFigureGenerator("Subroutine","Procedure")},43001:function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__;(function(){if(typeof window.GGBApplet=="function"){console.warn("deployggb.js was loaded twice");return}var isRenderGGBElementEnabled=!1,scriptLoadStarted=!1,html5AppletsToProcess=null,ggbHTML5LoadedCodebaseIsWebSimple=!1,ggbHTML5LoadedCodebaseVersion=null,ggbHTML5LoadedScript=null,GGBApplet=function(){"use strict";for(var Jn={},gi="5.0",De={},ye=null,nt=!1,it=!1,Dt=null,Mt=!1,ze=null,dt=null,Kt=0;Kt<arguments.length;Kt++){var Et=arguments[Kt];if(Et!==null)switch(typeof Et){case"number":gi=Et.toFixed(1);break;case"string":Et.match(new RegExp("^[0-9]\\.[0-9]+$"))?gi=Et:Dt=Et;break;case"object":typeof Et.is3D!="undefined"?ye=Et:De=Et;break;case"boolean":nt=Et,it=!0;break}}ye===null&&(ye={is3D:!1,AV:!1,SV:!1,CV:!1,EV2:!1,CP:!1,PC:!1,DA:!1,FI:!1,PV:!1,macro:!1},De.material_id!==void 0&&!it&&(nt=!0)),Dt!==null&&De.id===void 0&&(De.id=Dt);var Me="",zt="",Ke=!1,Ht=null,Ne=null,ne=null,te=!1,de=null,le=null,ge=null,me=null,Se=null;De.height!==void 0&&(De.height=Math.round(De.height)),De.width!==void 0&&(De.width=Math.round(De.width));var be=function(rn){return parseFloat(rn)>4?parseFloat(rn):5};Jn.setHTML5Codebase=function(rn,Xn){dt=rn,gn(rn,Xn)},Jn.setJavaCodebase=Jn.setJavaCodebaseVersion=Jn.isCompiledInstalled=Jn.setPreCompiledScriptPath=Jn.setPreCompiledResourcePath=function(){},Jn.setHTML5CodebaseVersion=function(rn,Xn){var Nn=parseFloat(rn);if(Nn!==NaN&&Nn<5){console.log("The GeoGebra HTML5 codebase version "+Nn+" is deprecated. Using version latest instead.");return}ze=rn,$e(rn,Xn)},Jn.getHTML5CodebaseVersion=function(){return Ne},Jn.getParameters=function(){return De},Jn.setFontsCSSURL=function(rn){me=rn},Jn.setGiacJSURL=function(rn){},Jn.setJNLPFile=function(rn){Me=rn},Jn.setJNLPBaseDir=function(rn){},Jn.inject=function(){function rn(){return window.frameElement&&window.frameElement.getAttribute("data-singleton")}for(var Xn="auto",Nn=De.id,mi,Zt=!1,Rn=0;Rn<arguments.length;Rn++){var wt=arguments[Rn];typeof wt=="string"?(wt=wt.toLowerCase(),wt.match(/^(prefer)?(java|html5|compiled|auto|screenshot)$/)?Xn=wt:Nn=arguments[Rn]):typeof wt=="boolean"?Zt=wt:wt instanceof HTMLElement&&(mi=wt)}Ai();function Ai(){if(!Mt){setTimeout(Ai,200);return}Xn=hn(Xn);var Kn=mi||document.getElementById(Nn);if(!Kn){console.log("possibly bug on ajax loading? ");return}if(Jn.removeExistingApplet(Kn,!1),De.width===void 0&&Kn.clientWidth&&(De.width=Kn.clientWidth),De.height===void 0&&Kn.clientHeight&&(De.height=Kn.clientHeight),!(De.width&&De.height)&&Xn==="html5"&&(delete De.width,delete De.height),Ht=Xn,Xn==="screenshot")Lt(Kn,De);else{var je=!1;De.hasOwnProperty("playButton")&&De.playButton||De.hasOwnProperty("clickToLoad")&&De.clickToLoad?je=!0:De.hasOwnProperty("playButtonAutoDecide")&&De.playButtonAutoDecide&&(je=(!Ie()||rn())&&Ze()),je?(Ht="screenshot",kn(Kn,De,Zt,Xn)):Nt(Kn,De,Zt)}}};function Ie(){try{return window.self!==window.top}catch(rn){return!0}}function Ze(){return De.hasOwnProperty("screenshotGenerator")&&De.screenshotGenerator?!1:Math.max(screen.width,screen.height)<800}Jn.getViews=function(){return ye},Jn.isJavaInstalled=function(){return!1};var st=function(rn){var Xn=function(Rn){var wt=JSON.parse(Rn),Ai=function(Le){return Le.type=="G"||Le.type=="E"},Kn=wt.elements?wt.elements.filter(Ai)[0]:wt;if(!Kn||!Kn.url){Nn();return}De.fileName=Kn.url,Ye(Kn.settings||{}),ye.is3D=!0;var je="https://www.geogebra.org/images/";Jn.setPreviewImage(de||Kn.previewUrl,je+"GeoGebra_loading.png",je+"applet_play.png"),rn()},Nn=function(){De.onError&&De.onError(),ci("Error: Fetching material (id "+De.material_id+") failed.",De)},mi=location.host.match(/(www|stage|beta|groot|alpha).geogebra.(org|net)/)?location.host:"www.geogebra.org",Zt="/materials/"+De.material_id+"?scope=basic";Xe("https://"+mi+"/api/proxy.php?path="+encodeURIComponent(Zt),Xn,Nn)};function Ye(rn){var Xn=["width","height","showToolBar","showMenuBar","showAlgebraInput","allowStyleBar","showResetIcon","enableLabelDrags","enableShiftDragZoom","enableRightClick","appName"];["enableLabelDrags","enableShiftDragZoom","enableRightClick"].forEach(function(Nn){rn[Nn]=!!rn[Nn]}),Xn.forEach(function(Nn){De[Nn]===void 0&&rn[Nn]!==void 0&&(De[Nn]=rn[Nn])}),De.showToolBarHelp===void 0&&(De.showToolBarHelp=De.showToolBar)}function Xe(rn,Xn,Nn){var mi=new XMLHttpRequest;mi.open("GET",rn),mi.onload=function(){Xn(mi.responseText)},mi.onerror=Nn,mi.send()}Jn.isHTML5Installed=function(){return!0},Jn.getLoadedAppletType=function(){return Ht},Jn.setPreviewImage=function(rn,Xn,Nn){de=rn,le=Xn,ge=Nn},Jn.removeExistingApplet=function(rn,Xn){var Nn;typeof rn=="string"&&(rn=document.getElementById(rn)),Ht=null;var mi=null;for(Nn=0;Nn<rn.childNodes.length;Nn++){var Zt=rn.childNodes[Nn],Rn=Zt.className;Rn==="applet_screenshot"?Xn?(Zt.style.display="block",Ht="screenshot"):Zt.style.display="none":Rn!=="applet_scaler prerender"&&(rn.removeChild(Zt),mi=Rn&&Rn.indexOf("appletParameters")!=-1?Zt.id:null,Nn--)}var wt=De.id!==void 0?De.id:mi,Ai=window[wt];Ai&&typeof Ai.getBase64=="function"&&(Ai.remove(),window[wt]=null)},Jn.refreshHitPoints=function(){if(be(ggbHTML5LoadedCodebaseVersion)>=5)return!0;var rn=Jn.getAppletObject();return rn&&typeof rn.recalculateEnvironments=="function"?(rn.recalculateEnvironments(),!0):!1},Jn.startAnimation=function(){var rn=Jn.getAppletObject();return rn&&typeof rn.startAnimation=="function"?(rn.startAnimation(),!0):!1},Jn.stopAnimation=function(){var rn=Jn.getAppletObject();return rn&&typeof rn.stopAnimation=="function"?(rn.stopAnimation(),!0):!1},Jn.getAppletObject=function(){var rn=De.id!==void 0?De.id:"ggbApplet";return window[rn]},Jn.resize=function(){};var At=function(rn,Xn,Nn){var mi=document.createElement("param");mi.setAttribute("name",Xn),mi.setAttribute("value",Nn),rn.appendChild(mi)},ft=function(rn){return rn&&rn!=="false"},Nt=function(rn,Xn,Nn){be(Ne)<=4.2&&(Nn=!0);var mi=!isRenderGGBElementEnabled&&!scriptLoadStarted;(!isRenderGGBElementEnabled&&!scriptLoadStarted||ggbHTML5LoadedCodebaseVersion!==Ne||ggbHTML5LoadedCodebaseIsWebSimple&&!te)&&(mi=!0,isRenderGGBElementEnabled=!1,scriptLoadStarted=!1);var Zt=document.createElement("div");Zt.classList.add("appletParameters","notranslate");var Rn=Xn.width,wt=Xn.height;if(Xn.disableAutoScale=Xn.disableAutoScale===void 0?GGBAppletUtils.isFlexibleWorksheetEditor():Xn.disableAutoScale,Xn.width!==void 0)if(be(Ne)<=4.4)ft(Xn.showToolBar)&&(Xn.height-=7),ft(Xn.showAlgebraInput)&&(Xn.height-=37),Xn.width<605&&ft(Xn.showToolBar)&&(Xn.width=605,Rn=605);else{var Ai=100;(ft(Xn.showToolBar)||ft(Xn.showMenuBar))&&(Xn.hasOwnProperty("customToolBar")&&(Xn.customToolbar=Xn.customToolBar),Ai=ft(Xn.showMenuBar)?245:155),Rn<Ai&&(Xn.width=Ai,Rn=Ai)}Zt.style.border="none",Zt.style.display="inline-block";for(var Kn in Xn)Xn.hasOwnProperty(Kn)&&Kn!=="appletOnLoad"&&Zt.setAttribute("data-param-"+Kn,Xn[Kn]);me&&Zt.setAttribute("data-param-fontscssurl",me),Jn.resize=function(){GGBAppletUtils.responsiveResize(rn,Xn)},window.addEventListener("resize",function(Tt){Jn.resize()});var je=typeof Xn.appletOnLoad=="function"?Xn.appletOnLoad:function(){};if(!Nn&&Xn.width!==void 0){Xn.hasOwnProperty("showSplash")||Zt.setAttribute("data-param-showSplash","false");var Le=rn.querySelector(".applet_scaler.prerender"),we=Le!==null;if(we)var Be=Le.querySelector(".ggb_preview");else{var Be=_t(Rn,wt,Xn.borderColor,!1);Le=document.createElement("div"),Le.className="applet_scaler",Le.style.position="relative",Le.style.display="block",Le.style.width=Rn+"px",Le.style.height=wt+"px"}window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Le,"66%"),be(Ne)>=5?(Xn.appletOnLoad=function(Tt){var Yt=rn.querySelector(".ggb_preview");Yt&&Yt.parentNode.removeChild(Yt),window.GGBT_spinner&&window.GGBT_spinner.removeSpinner(Le),window.GGBT_wsf_view&&$(window).trigger("resize"),je(Tt)},we||Le.appendChild(Be)):Zt.appendChild(Be),Le.appendChild(Zt),we||rn.appendChild(Le),setTimeout(function(){Jn.resize()},1)}else{var Ge=document.createElement("div");Ge.className="applet_scaler",Ge.style.position="relative",Ge.style.display="block",Ge.appendChild(Zt),rn.appendChild(Ge),Xn.appletOnLoad=function(Tt){Jn.resize(),je(Tt)}}function ke(Tt,Yt){Yt&&typeof Yt.appletOnLoad=="function"&&typeof renderGGBElement=="function"?renderGGBElement(Tt,Yt.appletOnLoad):renderGGBElement(Tt),ci("GeoGebra HTML5 applet injected and rendered with previously loaded codebase.",Yt)}function et(Tt,Yt){typeof renderGGBElement=="undefined"?(html5AppletsToProcess===null&&(html5AppletsToProcess=[]),html5AppletsToProcess.push({article:Tt,params:Yt}),window.renderGGBElementReady=function(){isRenderGGBElementEnabled=!0,html5AppletsToProcess!==null&&html5AppletsToProcess.length&&(html5AppletsToProcess.forEach(function(dn){ke(dn.article,dn.params)}),html5AppletsToProcess=null)},be(Ne)<5&&(Tt.className+=" geogebraweb")):ke(Tt,Yt)}if(mi){scriptLoadStarted=!0;for(var an=0;an<Zt.childNodes.length;an++){var Bt=Zt.childNodes[an].tagName;Bt==="TABLE"&&(Zt.removeChild(Zt.childNodes[an]),an--)}if(ggbHTML5LoadedScript!==null){var Ut=document.querySelector('script[src="'+ggbHTML5LoadedScript+'"]');Ut!=null&&Ut.parentNode.removeChild(Ut)}var gt=document.createElement("script"),Pt=function(){et(Zt,Xn)};gt.src=zt+ne,ggbHTML5LoadedCodebaseIsWebSimple=te,ggbHTML5LoadedCodebaseVersion=Ne,ggbHTML5LoadedScript=gt.src,ci("GeoGebra HTML5 codebase loaded: '"+zt+"'.",Xn),!dt&&(!ze||ze=="5.0")?(te?webSimple.succeeded=webSimple.succeeded||webSimple():web3d.succeeded=web3d.succeeded||web3d(),Pt()):zt.requirejs?__webpack_require__.e(7963).then(function(){var Tt=[__webpack_require__(87963)];Pt.apply(null,Tt)}.bind(this)).catch(__webpack_require__.oe):(gt.onload=Pt,rn.appendChild(gt))}else et(Zt,Xn);Xn.height=wt,Xn.width=Rn},Lt=function(rn,Xn,Nn){var mi=_t(Xn.width,Xn.height,Xn.borderColor,Nn),Zt=document.createElement("div");Zt.style.position="relative",Zt.style.display="block",Zt.style.width=Xn.width+"px",Zt.style.height=Xn.height+"px",Zt.className="applet_screenshot applet_scaler"+(Nn?" applet_screenshot_play":""),Zt.appendChild(mi);var Rn=GGBAppletUtils.getScale(Xn,rn,Nn);Nn?(rn.appendChild(un()),window.GGBT_wsf_view||(rn.style.position="relative")):window.GGBT_spinner&&window.GGBT_spinner.attachSpinner(Zt,"66%"),rn.appendChild(Zt),Rn!==1&&!isNaN(Rn)&&(GGBAppletUtils.scaleElement(Zt,Rn),Zt.style.width=Xn.width+"px",Zt.style.height=Xn.height+"px",Zt.parentNode.style.width=Xn.width*Rn+"px",Zt.parentNode.style.height=Xn.height*Rn+"px"),Jn.resize=function(){ln(rn,mi,Zt,Nn)},window.addEventListener("resize",function(wt){Jn.resize()}),Jn.resize()};function ln(rn,Xn,Nn,mi){if(rn.contains(Xn)){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(rn.id!=="fullscreencontent")return;window.GGBT_wsf_view.setCloseBtnPosition(rn)}var Zt=GGBAppletUtils.getScale(De,rn,mi);Nn.parentNode!==null&&(!isNaN(Zt)&&Zt!==1?(GGBAppletUtils.scaleElement(Nn,Zt),Nn.parentNode.style.width=De.width*Zt+"px",Nn.parentNode.style.height=De.height*Zt+"px"):(GGBAppletUtils.scaleElement(Nn,1),Nn.parentNode.style.width=De.width+"px",Nn.parentNode.style.height=De.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&GGBAppletUtils.positionCenter(rn),typeof window.GGBT_ws_header_footer=="object"&&window.GGBT_ws_header_footer.setWsScrollerHeight()}}Jn.onExitFullscreen=function(rn,Xn){Xn.appendChild(rn)};var kn=function(rn,Xn,Nn,mi){Lt(rn,Xn,!0);for(var Zt=function(){var Ai=[];for(wt=0;wt<rn.childNodes.length;wt++)Ai.push(rn.childNodes[wt]);if(window.GGBT_wsf_view){var Kn=window.GGBT_wsf_view.renderFullScreen(rn,Xn.id),je=document.getElementById("fullscreencontainer"),Le=jQuery(rn).find(".fullscreencontent");Le.length>0?(Kn.remove(),Le.attr("id","fullscreencontent").show(),jQuery(je).append(Le),window.dispatchEvent(new Event("resize"))):Nt(Kn,Xn,!1),window.GGBT_wsf_view.launchFullScreen(je)}else Ht=mi,Nt(rn,Xn,!1);if(!window.GGBT_wsf_view)for(wt=0;wt<Ai.length;wt++)rn.removeChild(Ai[wt])},Rn=rn.getElementsByClassName("ggb_preview_play"),wt=0;wt<Rn.length;wt++)Rn[wt].addEventListener("click",Zt,!1),Rn[wt].addEventListener("ontouchstart",Zt,!1);typeof window.ggbAppletPlayerOnload=="function"&&window.ggbAppletPlayerOnload(rn),Ze()&&window.GGBT_wsf_view&&$(".wsf-element-fullscreen-button").remove()},un=function(){var rn=document.createElement("div");if(rn.className="ggb_preview_play icon-applet-play",!window.GGBT_wsf_view){var Xn='.icon-applet-play { width: 100%; height: 100%;box-sizing: border-box;position: absolute;z-index: 1001;cursor: pointer;border-width: 0px; background-color: transparent;background-repeat: no-repeat;left: 0;top: 0;background-position: center center; background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet.png");}.icon-applet-play:hover {background-image: url("https://www.geogebra.org/images/worksheet/icon-start-applet-hover.png");}',Nn=document.createElement("style");Nn.styleSheet?Nn.styleSheet.cssText=Xn:Nn.appendChild(document.createTextNode(Xn)),document.getElementsByTagName("head")[0].appendChild(Nn)}return rn},_t=function(rn,Xn,Nn,mi){var Zt=document.createElement("div");Zt.className="ggb_preview",Zt.style.position="absolute",Zt.style.zIndex="90",Zt.style.width=rn-2+"px",Zt.style.height=Xn-2+"px",Zt.style.top="0px",Zt.style.left="0px",Zt.style.overflow="hidden",Zt.style.backgroundColor="white";var Rn="lightgrey";Nn!==void 0&&(Nn==="none"?Rn="transparent":Rn=Nn),Zt.style.border="1px solid "+Rn;var wt=document.createElement("img");if(wt.style.position="relative",wt.style.zIndex="1000",wt.style.top="-1px",wt.style.left="-1px",de!==null&&wt.setAttribute("src",de),wt.style.opacity=.7,le!==null){var Ai,Kn,je;if(!mi){Ai=document.createElement("img"),Ai.style.position="absolute",Ai.style.zIndex="1001",Ai.style.opacity=1,wt.style.opacity=.3,Kn=360,Kn>rn/4*3&&(Kn=rn/4*3),je=Kn/5.8,Ai.setAttribute("src",le),Ai.setAttribute("width",Kn),Ai.setAttribute("height",je);var Le=(rn-Kn)/2,we=(Xn-je)/2;Ai.style.left=Le+"px",Ai.style.top=we+"px",Zt.appendChild(Ai)}}return Zt.appendChild(wt),Zt},hn=function(rn){return rn=rn.toLowerCase(),rn==="html5"||rn==="screenshot"?rn:"html5"},vt=["web","webSimple","web3d","tablet","tablet3d","phone"],$e=function(rn,Xn){if(Ne=rn,Xn){gn(Ne,!0);return}var Nn=!nt;if(Nn){var mi=be(Ne);!isNaN(mi)&&mi<4.4&&(Nn=!1)}var Zt,Rn;window.location.protocol.substr(0,4)==="http"?Zt=window.location.protocol:Zt="http:";var wt=Ne.indexOf("//");wt>0?Rn=Ne:wt===0?Rn=Zt+Ne:Rn="https://www.geogebra.org/apps/5.2.814.0/";for(var Ai in vt)if(Ne.slice(vt[Ai].length*-1)===vt[Ai]||Ne.slice((vt[Ai].length+1)*-1)===vt[Ai]+"/"){gn(Rn,!1);return}!GGBAppletUtils.isFlexibleWorksheetEditor()&&Nn&&!ye.is3D&&!ye.AV&&!ye.SV&&!ye.CV&&!ye.EV2&&!ye.CP&&!ye.PC&&!ye.DA&&!ye.FI&&!ye.PV&&!ft(De.showToolBar)&&!ft(De.showMenuBar)&&!ft(De.showAlgebraInput)&&!ft(De.enableRightClick)&&(!De.appName||De.appName=="classic")?Rn+="webSimple/":Rn+="web3d/",gn(Rn,!1)},gn=function(rn,Xn){if(rn.requirejs){zt=rn;return}rn.slice(-1)!=="/"&&(rn+="/"),zt=rn,Xn===null&&(Xn=rn.indexOf("http")===-1),Ke=Xn,ne="web.nocache.js",te=!1;var Nn=zt.split("/");Nn.length>1&&(!Xn&&Nn[Nn.length-2]==="webSimple"?(ne="webSimple.nocache.js",te=!0):vt.indexOf(Nn[Nn.length-2])>=0&&(ne=Nn[Nn.length-2]+".nocache.js")),Nn=rn.split("/"),Ne=Nn[Nn.length-3],Ne.substr(0,4)==="test"?Ne=Ne.substr(4,1)+"."+Ne.substr(5,1):(Ne.substr(0,3)==="war"||Ne.substr(0,4)==="beta")&&(Ne="5.0");var mi=parseFloat(Ne);mi!==NaN&&mi<5&&rn.indexOf("geogebra.org")>=0&&(console.log("The GeoGebra HTML5 codebase version "+mi+" is deprecated. Using version latest instead."),$e("5.0",Xn))},ci=function(rn,Xn){window.console&&window.console.log&&(!Xn||typeof Xn.showLogging=="undefined"||Xn.showLogging&&Xn.showLogging!=="false")&&console.log(rn)};De.material_id!==void 0?st(Fn):Fn();function Fn(){var rn=gi;ze!==null?rn=ze:parseFloat(rn)<5&&(rn="5.0"),$e(rn,!1),dt!==null&&gn(dt,Ke),Mt=!0}return Jn},GGBAppletUtils=function(){"use strict";function Jn(){return window.GGBT_wsf_edit!==void 0}function gi(Mt,ze){ze!=1?(Mt.style.transformOrigin="0% 0% 0px",Mt.style.webkitTransformOrigin="0% 0% 0px",Mt.style.transform="scale("+ze+","+ze+")",Mt.style.webkitTransform="scale("+ze+","+ze+")",Mt.style.maxWidth="initial",Mt.querySelector(".ggb_preview")!==null&&(Mt.querySelector(".ggb_preview").style.maxWidth="initial"),Mt.querySelectorAll(".ggb_preview img")[0]!==void 0&&(Mt.querySelectorAll(".ggb_preview img")[0].style.maxWidth="initial"),Mt.querySelectorAll(".ggb_preview img")[1]!==void 0&&(Mt.querySelectorAll(".ggb_preview img")[1].style.maxWidth="initial")):(Mt.style.transform="none",Mt.style.webkitTransform="none")}function De(Mt,ze,dt,Kt,Et,Me){var zt=null;if(Me!=null&&Me!="")for(var Ke=Mt.parentNode;Ke!=null;)if((" "+Ke.className+" ").indexOf(" "+Me+" ")>-1){zt=Ke;break}else Ke=Ke.parentNode;var Ht=0,Ne=0,ne=0,te=0,de=0,le=0,ge=0;if(zt)Ht=zt.offsetWidth,Ne=Math.max(Kt?zt.offsetWidth:0,zt.offsetHeight);else{if(window.innerWidth&&document.documentElement.clientWidth?(Ht=Math.min(window.innerWidth,document.documentElement.clientWidth),Ne=Math.min(window.innerHeight,document.documentElement.clientHeight),ne=Ht):(Ht=window.innerWidth,Ne=window.innerHeight,ne=window.innerWidth),Mt){var me=Mt.getBoundingClientRect();me.left>0&&me.left<=Ht&&(Et===void 0||!Et)&&(document.dir==="rtl"?(de=Ht-me.width-me.left,le=ne<=480?10:30):(le=me.left,de=ne<=480?10:30),te=le+de)}if(Mt&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){var Se=Mt.getBoundingClientRect();window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(te=40,ge=0):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(te=0,ge=40)}}return Mt&&((dt===void 0||!dt)&&ze>0&&ze+te<Ht?Ht=ze:Ht-=te,typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(dt===void 0||!dt)&&(Ne-=ge)),{width:Ht,height:Ne}}function ye(Mt,ze,dt,Kt,Et){if(Mt.isScreenshoGenerator)return 1;var Me=Kt!==void 0&&Kt,zt=Mt.noScaleMargin!=null&&Mt.noScaleMargin,Ke=function(Se){return Se&&Se!=="false"},Ht=Ke(Mt.autoHeight),Ne=De(ze,Mt.width,dt,Ht,Me&&window.GGBT_wsf_view||zt,Et),ne=parseInt(Ne.width),te=Mt.width,de=Mt.height;if(te===void 0){var le=ze.querySelector(".appletParameters");le&&(te=le.offsetWidth,de=le.offsetHeight)}var ge=ne/te,me=Me?1:Ne.height/de;return dt!==void 0&&!dt&&(ge=Math.min(1,ge),me=Math.min(1,me)),Math.min(ge,me)}function nt(Mt,ze,dt){var Kt=1,Et,Me=!1;if(Mt.hasOwnProperty("allowUpscale")&&(Me=Mt.allowUpscale),Mt.hasOwnProperty("scale")&&(Kt=parseFloat(Mt.scale),(isNaN(Kt)||Kt===null||Kt===0)&&(Kt=1),Kt>1&&(Me=!0)),ze&&typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&(Me=!0),!(Mt.hasOwnProperty("disableAutoScale")&&Mt.disableAutoScale))Et=ye(Mt,ze,Me,dt,Mt.scaleContainerClass);else return Kt;return Me&&(!Mt.hasOwnProperty("scale")||Kt===1)?Et:Math.min(Kt,Et)}function it(Mt){var ze=Math.min(window.innerWidth,document.documentElement.clientWidth),dt=Math.min(window.innerHeight,document.documentElement.clientHeight),Kt=Mt.getBoundingClientRect(),Et=(ze-Kt.width)/2,Me=(dt-Kt.height)/2;Me<0&&(Me=0),Mt.style.position="relative",window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionRight"?(Et<40?Mt.style.left="40px":Mt.style.left=Et+"px",Mt.style.top=Me+"px"):window.GGBT_wsf_view.getCloseBtnPosition()==="closePositionTop"&&(Me<40?Mt.style.top="40px":Mt.style.top=Me+"px",Mt.style.left=Et+"px")}function Dt(Mt,ze){var dt=Mt.querySelector(".appletParameters");if(dt){if(typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()){if(ze.id!==dt.getAttribute("data-param-id"))return;window.GGBT_wsf_view.setCloseBtnPosition(Mt)}if(dt.parentElement&&/fullscreen/.test(dt.parentElement.className))return;var Kt=nt(ze,Mt);Jn()&&dt.setAttribute("data-param-scale",Kt);for(var Et=null,Me=0;Me<Mt.childNodes.length;Me++)if(Mt.childNodes[Me].className!==void 0&&Mt.childNodes[Me].className.match(/^applet_scaler/)){Et=Mt.childNodes[Me];break}if(Et!==null&&Et.querySelector(".noscale")!==null)return;var zt=ze.id!==void 0?ze.id:"ggbApplet",Ke=window[zt];(Ke==null||!Ke.recalculateEnvironments)&&Et!==null&&!Et.className.match(/fullscreen/)&&(Et.parentNode.style.transform="",!isNaN(Kt)&&Kt!==1?(Et.parentNode.style.width=ze.width*Kt+"px",Et.parentNode.style.height=ze.height*Kt+"px",gi(Et,Kt)):(gi(Et,1),Et.parentNode.style.width=ze.width+"px",Et.parentNode.style.height=ze.height+"px")),typeof window.GGBT_wsf_view=="object"&&window.GGBT_wsf_view.isFullscreen()&&it(Mt),window.GGBT_wsf_view&&!window.GGBT_wsf_view.isFullscreen()&&window.GGBT_wsf_general.adjustContentToResize($(dt).parents(".content-added-content"))}}return{responsiveResize:Dt,isFlexibleWorksheetEditor:Jn,positionCenter:it,getScale:nt,scaleElement:gi}}();__WEBPACK_AMD_DEFINE_ARRAY__=[],__WEBPACK_AMD_DEFINE_RESULT__=function(){return GGBApplet}.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__),__WEBPACK_AMD_DEFINE_RESULT__!==void 0&&(module.exports=__WEBPACK_AMD_DEFINE_RESULT__),GGBAppletUtils.makeModule=function(name,permutation){function webModule(){var H="bootstrap",I="begin",J="gwt.codesvr."+name+"=",K="gwt.codesvr=",L=name,M="startup",N="DUMMY",O=0,P=1,Q="iframe",R="position:absolute; width:0; height:0; border:none; left: -1000px;",S=" top: -1000px;",T="Chrome",U="CSS1Compat",V="<!doctype html>",W="",X="<html><head></head><body></body></html>",Y="undefined",Z="readystatechange",$=10,_="script",ab="javascript",bb="Failed to load ",cb="moduleStartup",db="scriptTagAdded",eb="moduleRequested",fb="meta",gb="name",hb=name+"::",ib="::",jb="gwt:property",kb="content",lb="=",mb="gwt:onPropertyErrorFn",nb='Bad handler "',ob='" for "gwt:onPropertyErrorFn"',pb="gwt:onLoadErrorFn",qb='" for "gwt:onLoadErrorFn"',rb="#",sb="?",tb="/",ub="img",vb="clear.cache.gif",wb="baseUrl",xb=name+".nocache.js",yb="base",zb="//",Ab="selectingPermutation",Bb=name+".devmode.js",Cb=permutation,Db=":",Eb=".cache.js",Fb="loadExternalRefs",Gb="end",n=window,o=document;function p(){var Jn=n.location.search;return Jn.indexOf(J)!=-1||Jn.indexOf(K)!=-1}function q(Jn,gi){}webModule.__sendStats=q,webModule.__moduleName=L,webModule.__errFn=null,webModule.__moduleBase=N,webModule.__softPermutationId=O,webModule.__computePropValue=null,webModule.__getPropMap=null,webModule.__installRunAsyncCode=function(){},webModule.__gwtStartLoadingFragment=function(){return null},webModule.__gwt_isKnownPropertyValue=function(){return!1},webModule.__gwt_getMetaProperty=function(){return null};var r=null,s=n.__gwt_activeModules=n.__gwt_activeModules||{};s[L]={moduleName:L},webModule.__moduleStartupDone=function(Jn){var gi=s[L].bindings;s[L].bindings=function(){for(var De=gi?gi():{},ye=Jn[webModule.__softPermutationId],nt=O;nt<ye.length;nt++){var it=ye[nt];De[it[O]]=it[P]}return De}};var t;function u(){return v(),t}function v(){if(!t){var Jn=o.createElement(Q);if(Jn.id=L,Jn.style.cssText=R+S,Jn.tabIndex=-1,o.body.appendChild(Jn),t=Jn.contentWindow.document,navigator.userAgent.indexOf(T)==-1){t.open();var gi=document.compatMode==U?V:W;t.write(gi+X),t.close()}}}function w(Jn){function gi(ye){function nt(){return typeof o.readyState==Y?typeof o.body!=Y&&o.body!=null:/loaded|complete/.test(o.readyState)}var it=nt();if(it){ye();return}function Dt(){if(!it){if(!nt())return;it=!0,ye(),o.removeEventListener&&o.removeEventListener(Z,Dt,!1),Mt&&clearInterval(Mt)}}o.addEventListener&&o.addEventListener(Z,Dt,!1);var Mt=setInterval(function(){Dt()},$)}function De(ye){var nt=u(),it=nt.body,Dt=nt.createElement(_);Dt.language=ab,Dt.crossOrigin=W,Dt.src=ye,webModule.__errFn&&(Dt.onerror=function(){webModule.__errFn(L,new Error(bb+ye))}),it.appendChild(Dt)}gi(function(){De(Jn)})}webModule.__startLoadingFragment=function(Jn){return C(Jn)},webModule.__installRunAsyncCode=function(Jn){var gi=u(),De=gi.body,ye=gi.createElement(_);ye.language=ab,ye.text=Jn,De.appendChild(ye),De.removeChild(ye)};function A(){for(var c={},d,e,f=o.getElementsByTagName(fb),g=O,h=f.length;g<h;++g){var i=f[g],j=i.getAttribute(gb),k;if(j){if(j=j.replace(hb,W),j.indexOf(ib)>=O)continue;if(j==jb){if(k=i.getAttribute(kb),k){var l,m=k.indexOf(lb);m>=O?(j=k.substring(O,m),l=k.substring(m+P)):(j=k,l=W),c[j]=l}}else if(j==mb){if(k=i.getAttribute(kb),k)try{d=eval(k)}catch(Jn){alert(nb+k+ob)}}else if(j==pb&&(k=i.getAttribute(kb),k))try{e=eval(k)}catch(Jn){alert(nb+k+qb)}}}__gwt_getMetaProperty=function(Jn){var gi=c[Jn];return gi==null?null:gi},r=d,webModule.__errFn=e}function B(){function Jn(Mt){var ze=Mt.lastIndexOf(rb);ze==-1&&(ze=Mt.length);var dt=Mt.indexOf(sb);dt==-1&&(dt=Mt.length);var Kt=Mt.lastIndexOf(tb,Math.min(dt,ze));return Kt>=O?Mt.substring(O,Kt+P):W}function gi(Mt){if(!Mt.match(/^\w+:\/\//)){var ze=o.createElement(ub);ze.src=Mt+vb,Mt=Jn(ze.src)}return Mt}function De(){var Mt=__gwt_getMetaProperty(wb);return Mt!=null?Mt:W}function ye(){for(var Mt=o.getElementsByTagName(_),ze=O;ze<Mt.length;++ze)if(Mt[ze].src.indexOf(xb)!=-1)return Jn(Mt[ze].src);return W}function nt(){var Mt=o.getElementsByTagName(yb);return Mt.length>O?Mt[Mt.length-P].href:W}function it(){var Mt=o.location;return Mt.href==Mt.protocol+zb+Mt.host+Mt.pathname+Mt.search+Mt.hash}var Dt=De();return Dt==W&&(Dt=ye()),Dt==W&&(Dt=nt()),Dt==W&&it()&&(Dt=Jn(o.location.href)),Dt=gi(Dt),Dt}function C(Jn){return Jn.match(/^\//)||Jn.match(/^[a-zA-Z]+:\/\//)?Jn:webModule.__moduleBase+Jn}function D(){var Jn=[],gi=O,De=[],ye=[];function nt(Mt){var ze=ye[Mt](),dt=De[Mt];if(ze in dt)return ze;var Kt=[];for(var Et in dt)Kt[dt[Et]]=Et;throw r&&r(Mt,Kt,ze),null}if(__gwt_isKnownPropertyValue=function(Mt,ze){return ze in De[Mt]},webModule.__getPropMap=function(){var Mt={};for(var ze in De)De.hasOwnProperty(ze)&&(Mt[ze]=nt(ze));return Mt},webModule.__computePropValue=nt,n.__gwt_activeModules[L].bindings=webModule.__getPropMap,p())return C(Bb);var it;try{it=Cb;var Dt=it.indexOf(Db);Dt!=-1&&(gi=parseInt(it.substring(Dt+P),$),it=it.substring(O,Dt))}catch(Mt){}return webModule.__softPermutationId=gi,C(it+Eb)}function F(){n.__gwt_stylesLoaded||(n.__gwt_stylesLoaded={})}A(),webModule.__moduleBase="/js/mathematicalGraphics/"+name+"/",s[L].moduleBase=webModule.__moduleBase;var G=D();return F(),w(G),!0}return webModule},typeof window.web3d!="function"&&(window.web3d=GGBAppletUtils.makeModule("web3d","A18F540516513B1292CA7CEF2F6AFC7E")),typeof window.webSimple!="function"&&(window.webSimple=GGBAppletUtils.makeModule("webSimple","96B09BF1B436BF53F0DF54116700F16A")),window.GGBApplet=GGBApplet})()},46699:function(Jn,gi,De){"use strict";De.d(gi,{Ax:function(){return Dt},Ds:function(){return Mt},KI:function(){return dt},SI:function(){return it},f1:function(){return nt}});var ye=De(346);function nt(Kt){let Et=!0;if(Kt.length>0){for(let Me=0;Me<Kt.length;Me++)if(Kt[Me].compile_success==0||!Kt[Me].compile_success){Et=!1;break}}else Et=!1;return Et}function it(Kt,Et=""){let Me=[];for(let zt=0;zt<Kt.length;zt++){let Ke=Kt[zt],Ht=Et?`${Et}/${Ke.name}`:`${Ke.name}`;Me.push({title:Ke.name,type:Ke.type,isLeaf:Ke.type!=="tree",key:Ht})}return Me}function Dt(Kt,Et,Me){for(let zt=0;zt<Kt.length;zt++){let Ke=Kt[zt];if(Ke.key===Et){Ke.children=Me;break}Ke.children&&Dt(Ke.children,Et,Me)}return Kt}function Mt(Kt,Et,Me){let zt;return function(){let Ke=this,Ht=arguments,Ne=function(){zt=null,Me||Kt.apply(Ke,Ht)},ne=Me&&!zt;clearTimeout(zt),zt=setTimeout(Ne,Et),ne&&Kt.apply(Ke,Ht)}}const ze=!0,dt=ye.Z.API_SERVER},9507:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return zt}});var ye=De(59301),nt={imageDimensions:"imageDimensions___a7crR",img:"img___Kroat",fullWidth:"fullWidth___c492T"},it=De(92310),Dt=De.n(it),Mt=De(29787),ze=De(2859),dt=De(38986),Kt=De(51257),Et=(Ke,Ht,Ne)=>new Promise((ne,te)=>{var de=me=>{try{ge(Ne.next(me))}catch(Se){te(Se)}},le=me=>{try{ge(Ne.throw(me))}catch(Se){te(Se)}},ge=me=>me.done?ne(me.value):Promise.resolve(me.value).then(de,le);ge((Ne=Ne.apply(Ke,Ht)).next())}),zt=({data:Ke,className:Ht,fullWidth:Ne,style:ne={},onClose:te,onOk:de,showFullTools:le,noAssociationId:ge})=>{const me=(0,ye.useRef)(null),Se=(0,ye.useRef)(null),be=(0,ye.useRef)(null),Ie=(0,ye.useRef)(null),[Ze,st]=(0,ye.useState)(!1),[Ye,Xe]=(0,ye.useState)("\u6B63\u5728\u52A0\u8F7D\u4E2D");(0,ye.useEffect)(()=>(be.current||(be.current=document.createElement("style"),document.head.appendChild(be.current)),Ke!=null&&Ke.visible?(document.body.setAttribute("data-custom","y-hidden"),be.current.innerHTML=" html { overflow-y: hidden; }",Ke!=null&&Ke.src&&At()):(document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)),()=>{document.body.removeAttribute("data-custom"),be.current&&(document.head.removeChild(be.current),be.current=null)}),[Ke==null?void 0:Ke.visible]);const At=()=>Et(void 0,null,function*(){st(!0),Xe("\u6B63\u5728\u52A0\u8F7D\u4E2D");const ln=yield(0,Kt.ZJ)(Ke==null?void 0:Ke.src);me.current.src="",me.current.src=ln,me.current.onload=function(){Lt()},st(!1),Xe("")}),ft=ln=>Et(void 0,null,function*(){st(!0),Xe("\u6B63\u5728\u4FDD\u5B58\u4E2D");const kn=yield(0,dt.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Ke.title,file:ln.dataUrl}});kn!=null&&kn.id&&!ge?(yield(0,dt.ZP)(`/api/attachments/${Ke.id}/add_subitem.json`,{method:"post",body:{subitem_id:kn==null?void 0:kn.id,settings:JSON.stringify(ln.state)}})).status===0&&de():kn!=null&&kn.id&&de(kn),st(!1),Xe("")}),Nt=()=>{const ln=document.querySelector('a[href="https://markerjs.com/"]');ln&&ln.parentNode&&(ln.parentNode.style.display="none"),[{name:'[data-action="select"]',title:"\u9009\u62E9"},{name:'[data-action="delete"]',title:"\u5220\u9664\u5143\u7D20"},{name:'[data-action="undo"]',title:"\u64A4\u9500"},{name:'[data-type-name="FrameMarker"]',title:"\u77E9\u5F62"},{name:'[data-type-name="FreehandMarker"]',title:"\u753B\u7EBF"},{name:'[data-type-name="ArrowMarker"]',title:"\u7BAD\u5934"},{name:'[data-type-name="TextMarker"]',title:"\u6587\u672C"},{name:'[data-type-name="EllipseMarker"]',title:"\u692D\u5706"},{name:'[data-type-name="HighlightMarker"]',title:"\u65B9\u5757"},{name:'[data-type-name="CalloutMarker"]',title:"\u6CE8\u91CA"},{name:'[data-action="render"]',title:"\u4FDD\u5B58"},{name:'[data-action="close"]',title:"\u9000\u51FA"}].forEach(un=>{const _t=document.querySelector(un.name);_t&&_t.setAttribute("title",un.title)})},Lt=()=>{Se.current=new ze.hP(me.current),Se.current.targetRoot=Ie.current,Se.current.addEventListener("render",ft),Se.current.addEventListener("beforeclose",te),le&&(Se.current.availableMarkerTypes=Se.current.ALL_MARKER_TYPES,Se.current.uiStyleSettings.redoButtonVisible=!0,Se.current.uiStyleSettings.notesButtonVisible=!0,Se.current.uiStyleSettings.zoomButtonVisible=!0,Se.current.uiStyleSettings.zoomOutButtonVisible=!0,Se.current.uiStyleSettings.clearButtonVisible=!0),window.markerArea=Se.current.uiStyleSettings,Se.current.show(),Ke!=null&&Ke.snapshotData&&Se.current.restoreState(Ke.snapshotData),setTimeout(()=>{window.scrollTo(0,0),Nt()},300)};return ye.createElement(ye.Fragment,null,(Ke==null?void 0:Ke.visible)&&ye.createElement(Mt.Z,{spinning:Ze,tip:Ye,style:{position:"absolute",width:"100vw"}},ye.createElement("div",{ref:Ie,className:Dt()(nt.imageDimensions,Ht,Ne?nt.fullWidth:""),style:ne},ye.createElement("img",{className:nt.img,ref:me}))))}},76562:function(Jn,gi,De){"use strict";var ye=De(59301),nt=De(77019),it=De(5269),Dt=De(20554),Mt=De(99571),ze=De(76902),dt=De(99587),Kt=De(48136),Et=De(59301);const Me=(0,ye.forwardRef)(({callback:zt,showSaveButton:Ke,value:Ht=""},Ne)=>{const ne=(0,ye.useRef)(),te=[{name:"\u5206\u6570\u5F97\u5206",value:"\\frac{x}{y}",children:[{name:"\u5206\u6570 Fractions",data:[{value:"\\frac{a}{b}"},{value:"x\\tfrac{x}{a} "},{value:"\\mathrm{d}t"},{value:"\\partial t"},{value:"\\frac{\\partial y}{\\partial x}"},{value:"\\nabla\\psi"},{value:"\\frac{\\partial^2}{\\partial x_1\\partial x_2}y"},{value:"\\cfrac{1}{a + \\cfrac{7}{b + \\cfrac{2}{9}}} = c"}]},{name:"\u5BFC\u6570 Derivative",data:[{value:"\\dot{a} "},{value:"\\ddot{a}"},{value:"{f}^{\\prime}"},{value:"{f}^{\\prime\\prime}"},{value:"{f}^{(n)}"}]},{name:"\u6A21\u7B97\u672F Modular arithmetic",data:[{value:"a \\bmod b"},{value:"a \\equiv b \\pmod{m} "},{value:"\\gcd(m, n) "},{value:"\\operatorname{lcm}(m, n) "}]}]},{name:"\u6839\u5F0F\u89D2\u6807",value:"\\sqrt{x}",children:[{name:"\u6839\u5F0F Radicals",data:[{value:"\\sqrt{x}"},{value:"\\sqrt[y]{x}"}]},{name:"\u4E0A\u4E0B\u6807 Sub&Super",data:[{value:"x^{a}"},{value:"x_{a}"},{value:"x_{a}^{b} "},{value:"_{a}^{b} x"},{value:"x_{a}^{b} "}]},{name:"\u91CD\u97F3\u7B26\u53CA\u5176\u4ED6 Accents and Others",data:[{value:"\\hat{a} "},{value:"\\sqrt[y]{x}"},{value:"\\check{} "},{value:"\\grave{a} "},{value:"\\acute{a}"},{value:"\\tilde{a}"},{value:"\\breve{a}"},{value:"\\bar{a}"},{value:"\\vec{a}"},{value:"\\not{a}"},{value:"\\widetilde{abc}"},{value:"\\widehat{abc}"},{value:"\\overleftarrow{abc} "},{value:"\\overrightarrow{abc}"},{value:"\\overline{abc}"},{value:"\\underline{abc}"},{value:"\\overbrace{abc}"},{value:"\\underbrace{abc}"},{value:"\\overset{a}{abc}"},{value:"\\underset{a}{abc} \\stackrel\\frown{ab}"},{value:"\\overline{ab} "},{value:"\\overleftrightarrow{ab}"},{value:"\\overset{a}{\\leftarrow}"},{value:"\\overset{a}{\\rightarrow}"},{value:"\\xleftarrow[abc]{a}"},{value:"\\xrightarrow[abc]{a} "}]}]},{name:"\u6781\u9650\u5BF9\u6570",value:"\\lim_{x \\to 0}",children:[{name:"\u6781\u9650 Limits",data:[{value:"\\lim a"},{value:"\\lim_{x \\to 0}"},{value:"\\lim_{x \\to \\infty}"},{value:"\\max_b{a}"},{value:"\\min_a{b}"}]},{name:"\u5BF9\u6570\u6307\u6570 Logarithms and exponentials",data:[{value:"\\log_{a}{b}"},{value:"\\lg_{a}{b}"},{value:"\\ln_{a}{b}"},{value:"\\exp a"}]},{name:"\u754C\u9650 Bounds",data:[{value:"\\min x"},{value:"\\sup t"},{value:"\\inf s"},{value:"\\lim u"},{value:"\\limsup w"},{value:"\\dim p"},{value:"\\ker\\phi "}]}]},{name:"\u4E09\u89D2\u51FD\u6570",value:"\\sin a",children:[{name:"\u4E09\u89D2\u51FD\u6570 Trigonometric functions",data:[{value:"\\sin a"},{value:"\\cos a"},{value:"\\tan a"},{value:"\\cot a "},{value:"\\sec a "},{value:"\\csc a "}]},{name:"\u53CD\u4E09\u89D2\u51FD\u6570 Inverse trigonometric functions",data:[{value:"\\sin^{-1}"},{value:"\\cos^{-1}"},{value:"\\tan^{-1}"},{value:"\\cot^{-1}"},{value:"\\sec^{-1}"},{value:"\\csc^{-1}"},{value:"\\arcsin a"},{value:"\\arccos a"},{value:"\\arctan a"},{value:"\\operatorname{arccot} a"},{value:"\\operatorname{arcsec} a"},{value:"\\operatorname{arccsc} a"}]},{name:"\u53CC\u66F2\u51FD\u6570 Hyperblic functions",data:[{value:"\\sinh a"},{value:"\\cosh a"},{value:"\\tanh a"},{value:"\\coth a"},{value:"\\operatorname{sech} a"},{value:"\\operatorname{csch} a"}]},{name:"\u53CD\u53CC\u66F2\u51FD\u6570 Inverse hyperbolic functions",data:[{value:"\\sinh^{-1}"},{value:"a\\cosh^{-1} a"},{value:"\\tanh^{-1} a"},{value:"\\coth^{-1} a"},{value:"\\operatorname{sech}^{-1} a"},{value:"\\operatorname{csch}^{-1} a"}]}]},{name:"\u79EF\u5206\u8FD0\u7B97",value:"\\int_{a}^{b}",children:[{name:"\u79EF\u5206 Integral",data:[{value:"\\int"},{value:"\\int_{a}^{b}"},{value:"\\int\\limits_{a}^{b}"}]},{name:"\u53CC\u91CD\u79EF\u5206 Double integral",data:[{value:"\\iint"},{value:"\\iint_{a}^{b} "},{value:"\\iint\\limits_{a}^{b} "}]},{name:"\u4E09\u91CD\u79EF\u5206 Triple integral",data:[{value:"\\iiint"},{value:"\\iiint_{a}^{b}"},{value:"\\iiint\\limits_{a}^{b} "}]},{name:"\u66F2\u7EBF\u79EF\u5206 Closed line or path integral",data:[{value:"\\oint"},{value:"\\oint_{a}^{b} "}]}]},{name:"\u5927\u578B\u8FD0\u7B97",value:"\\sum_{a}^{b}",children:[{name:"\u6C42\u548C Summation",data:[{value:"\\sum"},{value:"\\sum_{a}^{b}"},{value:"{\\textstyle \\sum_{a}^{b}} "}]},{name:"\u4E58\u79EF\u4F59\u79EF Product and coproduct",data:[{value:"\\prod"},{value:"\\prod_{a}^{b}"},{value:"{\\textstyle \\prod_{a}^{b}}"},{value:"\\coprod"},{value:"\\coprod_{a}^{b}"},{value:"{\\textstyle \\coprod_{a}^{b}} "}]},{name:"\u5E76\u96C6\u4EA4\u96C6 Union and intersection",data:[{value:"\\bigcup"},{value:"\\bigcup_{a}^{b}"},{value:"{\\textstyle \\bigcup_{a}^{b}}"},{value:"\\bigcap"},{value:"\\bigcap_{a}^{b}"}]},{name:"\u6790\u53D6\u5408\u53D6 Disjunction and conjunction",data:[{value:"\\bigvee"},{value:"\\bigvee_{a}^{b}"},{value:"\\bigwedge"},{value:"\\bigwedge_{a}^{b}"}]}]},{name:"\u62EC\u53F7\u53D6\u6574",value:"\\left [ \\left ( \\right ) \\right ] ",children:[{name:"\u62EC\u53F7 Brackets",data:[{value:"\\left ( \\right )"},{value:"\\left [ \\right ]"},{value:"\\left \\langle \\right \\rangle "},{value:"\\left | \\right | "},{value:"\\left \\lfloor \\right \\rfloor "},{value:"\\left \\lceil \\right \\rceil "}]}]}],de=[{name:"\u4EE3\u6570",value:"\\sqrt{a^2+b^2}",children:[{data:[{value:"\\left(x-1\\right)\\left(x+3\\right) "},{value:"\\sqrt{a^2+b^2}"},{value:"\\left ( \\frac{a}{b}\\right )^{n}= \\frac{a^{n}}{b^{n}}"},{value:"\\frac{a}{b}\\pm \\frac{c}{d}= \\frac{ad \\pm bc}{bd} "},{value:"\\frac{x^{2}}{a^{2}}-\\frac{y^{2}}{b^{2}}=1 "},{value:"\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0\\frac{1}{\\sqrt{a}}=\\frac{\\sqrt{a}}{a},a\\ge 0 "},{value:"\\sqrt[n]{a^{n}}=\\left ( \\sqrt[n]{a}\\right )^{n} "},{value:"x ={-b \\pm \\sqrt{b^2-4ac}\\over 2a} "},{value:"y-y_{1}=k \\left( x-x_{1}\\right) "},{value:`\\left\\{\\begin{matrix} \r
|
|
x=a + r\\text{cos}\\theta \\ \r
|
|
y=b + r\\text{sin}\\theta \r
|
|
\\end{matrix}\\right. `},{value:`\\begin{array}{l} \r
|
|
\\text{\u5BF9\u4E8E\u65B9\u7A0B\u5F62\u5982\uFF1A}x^{3}-1=0 \\ \r
|
|
\\text{\u8BBE}\\text{:}\\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{1}=1,x_{2}= \\omega =\\frac{-1+\\sqrt{3}i}{2} \\ \r
|
|
x_{3}= \\omega ^{2}=\\frac{-1-\\sqrt{3}i}{2} \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\left\\{\\begin{matrix} \r
|
|
\\Delta \\gt 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u4E0D\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta = 0\\text{\u65B9\u7A0B\u6709\u4E24\u4E2A\u76F8\u7B49\u7684\u5B9E\u6839} \\ \r
|
|
\\Delta \\lt 0\\text{\u65B9\u7A0B\u65E0\u5B9E\u6839} \r
|
|
\\end{matrix}\\right. \r
|
|
\\end{array} `},{value:`\\begin{array}{l} \r
|
|
a\\mathop{{x}}\\nolimits^{{2}}+bx+c=0 \\ \r
|
|
\\Delta =\\mathop{{b}}\\nolimits^{{2}}-4ac \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1,2}}=\\frac{{-b \\pm \r
|
|
\\sqrt{{\\mathop{{b}}\\nolimits^{{2}}-4ac}}}}{{2a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}+\\mathop{{x}}\\nolimits_{{2}}=-\\frac{{b}}{{a}} \\ \r
|
|
\\mathop{{x}}\\nolimits_{{1}}\\mathop{{x}}\\nolimits_{{2}}=\\frac{{c}}{{a}} \r
|
|
\\end{array} `}]}]},{name:"\u51E0\u4F55",value:"\\Delta A B C ",children:[{data:[{value:"\\Delta A B C "},{value:"a \\parallel c,b \\parallel c \\Rightarrow a \\parallel b "},{value:"l \\perp \\beta ,l \\subset \\alpha \\Rightarrow \\alpha \\perp \\beta"},{value:`\\left.\\begin{matrix} \r
|
|
a \\perp \\alpha \\ \r
|
|
b \\perp \\alpha \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\parallel b`},{value:"P \\in \\alpha ,P \\in \\beta , \\alpha \\cap \\beta =l \\Rightarrow P \\in l "},{value:`\\alpha \\perp \\beta , \\alpha \\cap \\beta =l,a \\subset \\alpha ,a \\perp l \r
|
|
\\Rightarrow a \\perp \\beta `},{value:`\\left.\\begin{matrix} \r
|
|
a \\subset \\beta ,b \\subset \\beta ,a \\cap b=P \\ \r
|
|
a \\parallel \\partial ,b \\parallel \\partial \r
|
|
\\end{matrix}\\right\\}\\Rightarrow \\beta \\parallel \\alpha `},{value:"\\alpha \\parallel \\beta , \\gamma \\cap \\alpha =a, \\gamma \\cap \\beta =b \\Rightarrow a \\parallel b "},{value:"A \\in l,B \\in l,A \\in \\alpha ,B \\in \\alpha \\Rightarrow l \\subset \\alpha "},{value:`\\left.\\begin{matrix} \r
|
|
m \\subset \\alpha ,n \\subset \\alpha ,m \\cap n=P \\ \r
|
|
a \\perp m,a \\perp n \r
|
|
\\end{matrix}\\right\\}\\Rightarrow a \\perp \\alpha `},{value:`\\begin{array}{c} \r
|
|
\\text{\u76F4\u89D2\u4E09\u89D2\u5F62\u4E2D,\u76F4\u89D2\u8FB9\u957Fa,b,\u659C\u8FB9\u8FB9\u957Fc} \\ \r
|
|
a^{2}+b^{2}=c^{2} \r
|
|
\\end{array}`}]}]},{name:"\u4E0D\u7B49\u5F0F",value:"a > b",children:[{data:[{value:"a > b,b > c \\Rightarrow a > c "},{value:"a > b,c > d \\Rightarrow a+c > b+d "},{value:"a > b > 0,c > d > 0 \\Rightarrow ac bd "},{value:`\\begin{array}{c} \r
|
|
a \\gt b,c \\gt 0 \\Rightarrow ac \\gt bc \\ \r
|
|
a \\gt b,c \\lt 0 \\Rightarrow ac \\lt bc \r
|
|
\\end{array}`},{value:"\\left | a-b \\right | \\geqslant \\left | a \\right | -\\left | b \\right | "},{value:"-\\left | a \\right |\\leq a\\leqslant \\left | a \\right | "},{value:"\\left | a \\right |\\leqslant b \\Rightarrow -b \\leqslant a \\leqslant \\left | b \\right | "},{value:"\\left | a+b \\right | \\leqslant \\left | a \\right | + \\left | b \\right | "},{value:`\\begin{array}{c} \r
|
|
a \\gt b \\gt 0,n \\in N^{\\ast},n \\gt 1 \\ \r
|
|
\\Rightarrow a^{n}\\gt b^{n}, \\sqrt[n]{a}\\gt \\sqrt[n]{b} \r
|
|
\\end{array}`},{value:`\\left( \\sum_{k=1}^n a_k b_k \\right)^{\\!\\!2}\\leq \r
|
|
\\left( \\sum_{k=1}^n a_k^2 \\right) \\left( \\sum_{k=1}^n b_k^2 \\right) `},{value:`\\begin{array}{c} \r
|
|
a,b \\in R^{+} \\ \r
|
|
\\Rightarrow \\frac{a+b}{{2}}\\ge \\sqrt{ab} \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
a,b \\in R \\ \r
|
|
\\Rightarrow a^{2}+b^{2}\\gt 2ab \\ \r
|
|
\\left( \\text{\u5F53\u4E14\u4EC5\u5F53}a=b\\text{\u65F6\u53D6\u201C}=\\text{\u201D\u53F7}\\right) \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
H_{n}=\\frac{n}{\\sum \\limits_{i=1}^{n}\\frac{1}{x_{i}}}= \\frac{n}{\\frac{1}{x_{1}}+ \\frac{1}{x_{2}}+ \\cdots + \\frac{1}{x_{n}}} \\ G_{n}=\\sqrt[n]{\\prod \\limits_{i=1}^{n}x_{i}}= \\sqrt[n]{x_{1}x_{2}\\cdots x_{n}} \\ A_{n}=\\frac{1}{n}\\sum \\limits_{i=1}^{n}x_{i}=\\frac{x_{1}+ x_{2}+ \\cdots + x_{n}}{n} \\ Q_{n}=\\sqrt{\\sum \\limits_{i=1}^{n}x_{i}^{2}}= \\sqrt{\\frac{x_{1}^{2}+ x_{2}^{2}+ \\cdots + x_{n}^{2}}{n}} \\ H_{n}\\leq G_{n}\\leq A_{n}\\leq Q_{n} \r
|
|
\\end{array}`}]}]},{name:"\u79EF\u5206",value:"\\frac{\\mathrm{d}\\partial}{\\partial x}",children:[{data:[{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}x^n=nx^{n-1} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}e^{ax}=a\\,e^{ax} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\ln(x)=\\frac{1}{x} "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\sin x=\\cos x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cos x=-\\sin x "},{value:"\\int k\\mathrm{d}x = kx+C "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\tan x=\\sec^2 x "},{value:"\\frac{\\mathrm{d}}{\\mathrm{d}x}\\cot x=-\\csc^2 x "},{value:"\\int \\frac{1}{x}\\mathrm{d}x= \\ln \\left| x \\right| +C "},{value:"\\int \\frac{1}{\\sqrt{1-x^{2}}}\\mathrm{d}x= \\arcsin x +C "},{value:"\\int \\frac{1}{1+x^{2}}\\mathrm{d}x= \\arctan x +C "},{value:"\\int u \\frac{\\mathrm{d}v}{\\mathrm{d}x}\\,\\mathrm{d}x=uv-\\int \\frac{\\mathrm{d}u}{\\mathrm{d}x}v\\,\\mathrm{d}x "},{value:"f(x) = \\int_{-\\infty}^\\infty \\hat f(x)\\xi\\,e^{2 \\pi i \\xi x} \\,\\mathrm{d}\\xi "},{value:"\\int x^{\\mu}\\mathrm{d}x=\\frac{x^{\\mu +1}}{\\mu +1}+C, \\left({\\mu \\neq -1}\\right) "}]}]},{name:"\u4E09\u89D2",value:"e^{i \\theta}",children:[{name:"\u6C42\u548C Summation",data:[{value:"e^{i \\theta} "},{value:"\\left(\\frac{\\pi}{2}-\\theta \\right ) "},{value:"\\text{sin}^{2}\\frac{\\alpha}{2}=\\frac{1- \\text{cos}\\alpha}{2} "},{value:"\\text{cos}^{2}\\frac{\\alpha}{2}=\\frac{1+ \\text{cos}\\alpha}{2} "},{value:"\\text{tan}\\frac{\\alpha}{2}=\\frac{\\text{sin}\\alpha}{1+ \\text{cos}\\alpha} "},{value:"\\sin \\alpha + \\sin \\beta =2 \\sin \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\sin \\alpha - \\sin \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha + \\cos \\beta =2 \\cos \\frac{\\alpha + \\beta}{2}\\cos \\frac{\\alpha - \\beta}{2} "},{value:"\\cos \\alpha - \\cos \\beta =-2\\sin \\frac{\\alpha + \\beta}{2}\\sin \\frac{\\alpha - \\beta}{2} "},{value:"a^{2}=b^{2}+c^{2}-2bc\\cos A "},{value:"\\frac{\\sin A}{a}=\\frac{\\sin B}{b}=\\frac{\\sin C}{c}=\\frac{1}{2R} "},{value:"\\sin \\left ( \\frac{\\pi}{2}-\\alpha \\right ) = \\cos \\alpha "},{value:"\\sin \\left ( \\frac{\\pi}{2}+\\alpha \\right ) = \\cos \\alpha "}]}]},{name:"\u7EDF\u8BA1",value:"C_{r}^{n}",children:[{data:[{value:"C_{r}^{n} "},{value:"\\frac{n!}{r!(n-r)!} "},{value:"\\sum_{i=1}^{n}{X_i} "},{value:"\\sum_{i=1}^{n}{X_i^2} "},{value:"X_1, \\cdots,X_n "},{value:"\\frac{x-\\mu}{\\sigma} "},{value:"\\sum_{i=1}^{n}{(X_i - \\overline{X})^2} "},{value:`\\begin{array}{c} \r
|
|
\\text{\u82E5}P \\left( AB \\right) =P \\left( A \\right) P \\left( B \\right) \\\\ \r
|
|
\\text{\u5219}P \\left( A \\left| B\\right. \\right) =P \\left({B}\\right) \r
|
|
\\end{array}`},{value:"P(E) ={n \\choose k}p^k (1-p)^{n-k} "},{value:"P \\left( A \\right) = \\lim \\limits_{n \\to \\infty}f_{n}\\left ( A \\right ) "},{value:"P \\left( \\bigcup \\limits_{i=1}^{+ \\infty}A_{i}\\right) = \\prod \\limits_{i=1}^{+ \\infty}P{\\left( A_{i}\\right)} "},{value:`\\begin{array}{c} \r
|
|
P \\left( \\emptyset \\right) =0 \\\\ \r
|
|
P \\left( S \\right) =1 \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
\\forall A \\in S \\\\ \r
|
|
P \\left( A \\right) \\ge 0 \r
|
|
\\end{array}`},{value:"P \\left( \\bigcup \\limits_{i=1}^{n}A_{i}\\right) = \\prod \\limits_{i=1}^{n}P \\left( A_{i}\\right) "},{value:`\\begin{array}{c} \r
|
|
S= \\binom{N}{n},A_{k}=\\binom{M}{k}\\cdot \\binom{N-M}{n-k} \\\\ \r
|
|
P\\left ( A_{k}\\right ) = \\frac{\\binom{M}{k}\\cdot \\binom{N-M}{n-k}}{\\binom{N}{n}} \r
|
|
\\end{array}`},{value:`\\begin{array}{c} \r
|
|
P_{n}=n! \\\\ \r
|
|
A_{n}^{k}=\\frac{n!}{\\left( n-k \\left) !\\right. \\right.} \r
|
|
\\end{array}`}]}]}],le=Se=>{ne.current.setValue(ne.current.getValue()+" "+Se.value+" ")},ge=[{key:"1",label:"\u5FEB\u6377\u6A21\u677F",children:Et.createElement(nt.Z,{className:dt.Z.lists,gutter:[10,10]},te.map((Se,be)=>Et.createElement(it.Z,{flex:"110px",className:dt.Z.item},Et.createElement("div",null,Et.createElement(ze.Z,{value:`$$${Se.value}$$`}),Se.name),Et.createElement("div",{className:dt.Z.children},Se.children.map((Ie,Ze)=>Et.createElement("div",{key:Ze},Et.createElement("h1",null,Ie.name),Et.createElement(nt.Z,{gutter:[10,10]},Ie.data.map((st,Ye)=>Et.createElement(it.Z,{key:Ye,onClick:()=>le(st),className:dt.Z.diamond},Et.createElement(ze.Z,{value:"`$$"+st.value+"$$`"}))))))))))},{key:"2",label:"\u516C\u5F0F\u6A21\u677F",children:Et.createElement(nt.Z,{className:dt.Z.lists,gutter:[10,10]},de.map((Se,be)=>Et.createElement(it.Z,{flex:"110px",className:dt.Z.item},Et.createElement("div",null,Et.createElement(ze.Z,{value:"`$$"+Se.value+"$$`"}),Se.name),Et.createElement("div",{className:dt.Z.children},Se.children.map((Ie,Ze)=>Et.createElement("div",{key:Ze},Ie.name&&Et.createElement("h1",null,Ie.name),Et.createElement(nt.Z,{gutter:[10,10]},Ie.data.map((st,Ye)=>Et.createElement(it.Z,{key:Ye,onClick:()=>le(st),className:dt.Z.diamond},Et.createElement(ze.Z,{value:"`$$"+st.value+"$$`"}))))))))))}],me=()=>{var Se=document.createElement("div");Se.innerHTML=ne.current.getValue();var be=Se.innerText;return zt&&zt(be),be};return(0,ye.useImperativeHandle)(Ne,()=>({getData:me})),Et.createElement("div",{className:dt.Z.mathWrap},Et.createElement(Dt.default,{defaultActiveKey:"1",items:ge}),Et.createElement("math-field",{locale:"zh_cn",className:dt.Z.mathField,placeholder:"\u8BF7\u6253\u5F00\u952E\u76D8\uFF0C\u8F93\u5165\u516C\u5F0F",ref:ne,style:{width:800,marginTop:30,fontSize:18}},Ht||""),Ke&&Et.createElement("div",{className:dt.Z.button},Et.createElement(Mt.ZP,{size:"large",onClick:me,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))});gi.Z=Me},28426:function(Jn,gi,De){"use strict";var ye=De(59301),nt=De(93314),it=De(99571),Dt=Object.defineProperty,Mt=Object.defineProperties,ze=Object.getOwnPropertyDescriptors,dt=Object.getOwnPropertySymbols,Kt=Object.prototype.hasOwnProperty,Et=Object.prototype.propertyIsEnumerable,Me=(Ne,ne,te)=>ne in Ne?Dt(Ne,ne,{enumerable:!0,configurable:!0,writable:!0,value:te}):Ne[ne]=te,zt=(Ne,ne)=>{for(var te in ne||(ne={}))Kt.call(ne,te)&&Me(Ne,te,ne[te]);if(dt)for(var te of dt(ne))Et.call(ne,te)&&Me(Ne,te,ne[te]);return Ne},Ke=(Ne,ne)=>Mt(Ne,ze(ne));const Ht=({img:Ne,buttonProps:ne={},styles:te={},customText:de,ButtonText:le,ButtonClick:ge,Buttonclass:me,ButtonTwo:Se,imgStyles:be,loading:Ie=!1,className:Ze=""})=>ye.createElement("section",{className:`tc animated fadeIn ${Ze}`,style:zt({color:"#999",margin:"100px auto",visibility:Ie?"hidden":"visible"},te)},ye.createElement("img",{src:Ne||nt,style:Ke(zt({},be),{pointerEvents:"none",userSelect:"none"})}),ye.createElement("p",{className:"mt20 font14"},de||"\u6682\u65F6\u8FD8\u6CA1\u6709\u76F8\u5173\u6570\u636E\u54E6!"),le&&ye.createElement(it.ZP,zt({className:me,onClick:ge},ne),le),Se&&Se);gi.Z=Ht},43155:function(Jn,gi,De){"use strict";De.d(gi,{Q:function(){return ze}});var ye=De(59301),nt=De(82326),it=De(47889),Dt=De(71051),Mt=De(59301),ze=(Kt=>(Kt[Kt.Number=1]="Number",Kt[Kt.Percent=2]="Percent",Kt))(ze||{});const dt=({value:Kt,onChange:Et,disabled:Me,hidePercentOption:zt=!1,percentType:Ke="select"})=>{const Ht=(0,ye.useMemo)(()=>zt?1:2,[zt]),[Ne,ne]=(0,ye.useState)(Ht);console.log(Ne);const te=le=>Kt.type===1?`${le}\u5206`:`${le}%`,de=(0,ye.useCallback)(le=>{if(Ne===1){const ge=le.replace("\u5206","");return isNaN(parseInt(ge,10))?0:ge}else return le.replace("%","")},[Ne]);return(0,ye.useEffect)(()=>{ne(Kt.type)},[Kt]),Mt.createElement("div",{style:{display:"flex",alignItems:"center"}},Ke=="select"&&Mt.createElement(nt.default,{size:"large",onChange:le=>{ne(le),Et({type:le,inputValue:le===1?5:20})},value:Ne||Ht,style:{width:100},options:zt?[{label:"\u5206\u503C",value:1}]:[{label:"\u767E\u5206\u6BD4",value:2},{label:"\u5206\u503C",value:1}],disabled:Me}),Ke=="radio"&&Mt.createElement(it.ZP.Group,{size:"large",onChange:le=>{const ge=le.target.value;ne(ge),Et({type:ge,inputValue:ge===1?5:20})},value:Ne||Ht,disabled:Me},!zt&&Mt.createElement(it.ZP,{value:2,style:{marginRight:"50px"}},"\u767E\u5206\u6BD4\u6263\u5206"),Mt.createElement(it.ZP,{value:1},"\u56FA\u5B9A\u5206\u503C")),Ke=="radio"&&Mt.createElement("div",{style:{marginRight:"10px",color:"#000000"}},Kt.type==2?"\u6263\u9664\u8865\u4EA4\u9636\u6BB5\u5F97\u5206\u7684":"\u6263\u9664\u603B\u6210\u7EE9\u7684"),Mt.createElement(Dt.Z,{size:"large",disabled:Me,value:Kt.inputValue,style:{width:"120px"},parser:de,addonAfter:Kt.type===1?"\u5206":"%",max:Ne===2?100:Number.MAX_SAFE_INTEGER,min:0,precision:0,onChange:le=>{Et({type:Ne,inputValue:le})}}),Ke=="radio"&&Kt.type==2&&Mt.createElement("div",{style:{marginLeft:"10px",color:"#000000"}},"\u5206\u6570"))};gi.Z=dt},45677:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return me}});var ye=De(59301),nt={wrp:"wrp___dq7YK",bgBlack:"bgBlack___ARIUV",monaco:"monaco___VnZC3",darkBlue:"darkBlue___UprA9",close:"close___LKoWu",embed:"embed___hvpEJ"},it=De(99571),Dt=De(70557),Mt=De(75975),ze=De(25399),dt=De(51257),Kt=De(81722),Et=De(28426),Me=De(346),zt=De(44203),Ke=De(59301),Ht=Object.defineProperty,Ne=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,de=(Se,be,Ie)=>be in Se?Ht(Se,be,{enumerable:!0,configurable:!0,writable:!0,value:Ie}):Se[be]=Ie,le=(Se,be)=>{for(var Ie in be||(be={}))ne.call(be,Ie)&&de(Se,Ie,be[Ie]);if(Ne)for(var Ie of Ne(be))te.call(be,Ie)&&de(Se,Ie,be[Ie]);return Se},ge=(Se,be,Ie)=>new Promise((Ze,st)=>{var Ye=ft=>{try{At(Ie.next(ft))}catch(Nt){st(Nt)}},Xe=ft=>{try{At(Ie.throw(ft))}catch(Nt){st(Nt)}},At=ft=>ft.done?Ze(ft.value):Promise.resolve(ft.value).then(Ye,Xe);At((Ie=Ie.apply(Se,be)).next())}),me=({editOffice:Se="view",data:be,issaver:Ie,onSaver:Ze,theme:st,type:Ye,filename:Xe,monacoEditor:At,className:ft,style:Nt,close:Lt,onClose:ln,hasMask:kn,disabledDownload:un,onImgDimensions:_t,showNodata:hn,recordInfo:vt})=>{const[$e,gn]=(0,ye.useState)("https://view.officeapps.live.com/op/view.aspx?src=http://testgs.educoder.net//rails/active_storage/blobs/eyJfcmFpbHMiOnsibWVzc2FnZSI6IkJBaHBCZz09IiwiZXhwIjpudWxsLCJwdXIiOiJibG9iX2lkIn19--03541f6234b93d7ac3b2d84e7eb0e6594a952945/1.ppt"),[ci,Fn]=(0,ye.useState)(""),[rn,Xn]=(0,ye.useState)(),Nn=window.ENV==="build"?"/react/build":"",mi=location.host.startsWith("localhost")?Me.Z.PROXY_SERVER:Me.Z.API_SERVER,Rn=10*(1024*1024),wt=(0,ye.useRef)();be!=null&&be.startsWith("/api")&&Ye!=="txt"&&(be=Me.Z.API_SERVER+be);const Ai=Be=>Be.substring(Be.lastIndexOf("/")+1).split(".").pop();Xe&&At&&(At.filename=Xe),(0,ye.useEffect)(()=>{var Be,Ge;const ke=(Ge=(Be=document.cookie)==null?void 0:Be.replace(/\s/g,""))==null?void 0:Ge.split(";");ke==null||ke.map(et=>{let an=et.split("=");an[0]==="_educoder_session"&&Fn(an[1])})},[]),(0,ye.useEffect)(()=>{Ye==="office"&&(be.indexOf("bigfilescdn.")>-1||be.indexOf("bigfiles1")>-1?Xn({url:be,fileType:Ai(be),model:be.indexOf("model=edit")?"edit":"view"}):je())},[Ye,be]);function Kn(Be){return ge(this,null,function*(){Be.data.type==="pdfdata"&&(Ze(Be.data.data),window.removeEventListener("message",Kn,!1)),console.log("mess---:",Be.data)})}const je=()=>ge(void 0,null,function*(){console.log("data:",be);let Be=be;be.startsWith("http")||(Be=location.origin+Be);let Ge=new URL(Be).pathname.split("/").pop();const ke=yield(0,Kt.gJ)({attachment_id:Ge});ke.url=mi+ke.url,Xn(ke)}),Le=()=>{if(be.startsWith("http")||be.startsWith("blob:")){we();return}(0,dt.Sv)(Xe||"educoder",be,Xe)},we=()=>{vt&&(0,zt.fc)({id:vt==null?void 0:vt.id,watch_type:1,course_id:vt==null?void 0:vt.course_id}),(0,dt.Nd)(Xe||"educoder",decodeURIComponent(be))};return Ke.createElement("div",{style:le({},Nt||{}),className:`${kn&&nt.bgBlack} ${Ye?nt.wrp:"hide"}`},Lt&&Ke.createElement("div",{className:nt.close,ref:wt},!!_t&&Ke.createElement(ze.Z,{title:"\u70B9\u51FB\u5BF9\u56FE\u7247\u8FDB\u884C\u6279\u6CE8",getPopupContainer:()=>wt.current},Ke.createElement("span",{onClick:()=>{ln(),_t()}},Ke.createElement("i",{className:"icon-yulanpizhu"}))),!un&&Ke.createElement(ze.Z,{title:"\u70B9\u51FB\u4E0B\u8F7D\u6B64\u6587\u4EF6",getPopupContainer:()=>wt.current},Ke.createElement("span",{onClick:we},Ke.createElement("i",{className:"icon-quxiaozhiding"}))),Ie&&Ke.createElement(ze.Z,{title:"\u4FDD\u5B58pdf\u5E76\u9000\u51FA",getPopupContainer:()=>wt.current},Ke.createElement("span",{className:"",onClick:()=>{const Be=document.getElementById("pdfiframe");window.addEventListener("message",Kn,!1),setTimeout(()=>{Be.contentWindow.postMessage("getData","*")},300)}},Ke.createElement("i",{className:"icon-baocun"}))),Ke.createElement(ze.Z,{title:"\u5173\u95ED",getPopupContainer:()=>wt.current},Ke.createElement("span",{className:"",onClick:()=>{ln()}},Ke.createElement("i",{className:"icon-guanbi1"})))),Ke.createElement("div",{className:`${nt[ft]} ${ft} ${nt.monaco} ${Ye==="txt"?"show":"hide"}`},Ye==="txt"&&Ke.createElement(Ke.Fragment,null,Ke.createElement(Mt.ZP,le({},At)))),Ye==="audio"&&Ke.createElement("audio",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:audio/mp3;base64,"}${be}`,autoPlay:!0}),Ye==="video"&&Ke.createElement(Ke.Fragment,null,(be==null?void 0:be.indexOf("http"))>-1?Ke.createElement("video",{controls:!0,src:`${be}`,autoPlay:!0}):Ke.createElement("video",{controls:!0,src:`data:video/mp4;base64,${be}`,autoPlay:!0})),Ye==="office"&&rn&&Ke.createElement("iframe",{src:`${Nn}/office.html?key=${rn.key}&url=${btoa(rn.url)}&callbackUrl=${mi+(rn.callbackUrl||"")}&fileType=${rn.fileType}&title=${rn.title||""}&model=${Se}&officeServer=${Me.Z.ONLYOFFICE}&disabledDownload=${!!un}`}),Ye==="html"&&Ke.createElement("iframe",{src:be+"&disposition=inline"}),Ye==="pdf"&&Ke.createElement("iframe",{id:"pdfiframe",src:`${Nn}/js/pdfview/index.html?filename=${Xe||"educoder.pdf"}&url=${encodeURIComponent(be)}&disabledDownload=${!!un}&model=${Se}`}),Ye==="image"&&Ke.createElement("img",{src:`${(be==null?void 0:be.indexOf("http://"))>-1||(be==null?void 0:be.indexOf("https://"))>-1?"":"data:image/png;base64,"}${be}`}),(Ye==="other"||Ye==="download")&&Ke.createElement(Ke.Fragment,null,hn?Ke.createElement(Et.Z,{customText:"\u5F53\u524D\u6587\u4EF6\u4E0D\u652F\u6301\u9884\u89C8\uFF0C\u53EF\u70B9\u51FB\u4E0B\u8F7D\u67E5\u770B",ButtonTwo:Ke.createElement(it.ZP,{icon:Ke.createElement("i",{className:"iconfont icon-xiazai4 font14"}),type:"primary",size:"middle",onClick:Le,disabled:un},"\u4E0B\u8F7D")}):Ke.createElement(it.ZP,{type:"primary",size:"middle",onClick:Le,disabled:un},Ke.createElement(Dt.Z,null),"\u70B9\u51FB\u4E0B\u8F7D")))}},76902:function(Jn,gi,De){"use strict";De.d(gi,{z:function(){return st},Z:function(){return Ye}});var ye=De(59301),nt=De(8944),it=De(81428),Dt=De(64018),Mt=De(79710),ze=De(346),dt=De(51257),Kt=De(15342),Et=De(1012),Me=De(45677),zt=De(59301),Ht=({html:Xe})=>{const At=(0,ye.useRef)(null),ft=(0,ye.useRef)(null),Nt=`.markdown-body p {
|
|
margin: 0 0 16px 0 !important;
|
|
line-height: 28px;
|
|
white-space: pre-wrap;
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
li {
|
|
list-style-type: none
|
|
}
|
|
|
|
ol,
|
|
ul,
|
|
dl {
|
|
margin-bottom: 0px;
|
|
}
|
|
|
|
.markdown-body {
|
|
-ms-text-size-adjust: 100%;
|
|
-webkit-text-size-adjust: 100%;
|
|
color: #333;
|
|
overflow: hidden;
|
|
font-family: "Microsoft YaHei", Helvetica, "Meiryo UI", "Malgun Gothic", "Segoe UI", "Trebuchet MS", "Monaco", monospace, Tahoma, STXihei, "\u534E\u6587\u7EC6\u9ED1", STHeiti, "Helvetica Neue", "Droid Sans", "wenquanyi micro hei", FreeSans, Arimo, Arial, SimSun, "\u5B8B\u4F53", Heiti, "\u9ED1\u4F53", sans-serif;
|
|
word-break: break-word;
|
|
font-size: 16px;
|
|
line-height: 1.6;
|
|
white-space: normal;
|
|
word-wrap: break-word;
|
|
position: relative;
|
|
}
|
|
|
|
.markdown-body ul>li {
|
|
list-style-type: disc;
|
|
}
|
|
|
|
.markdown-body ol>li {
|
|
list-style-type: decimal;
|
|
}
|
|
|
|
.markdown-body a {
|
|
background: transparent;
|
|
}
|
|
|
|
.markdown-body a:active,
|
|
.markdown-body a:hover {
|
|
outline: 0;
|
|
}
|
|
|
|
.markdown-body strong {
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 2em;
|
|
margin: 0.67em 0;
|
|
}
|
|
|
|
.markdown-body img {
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
-moz-box-sizing: content-box;
|
|
box-sizing: content-box;
|
|
height: 0;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
overflow: auto;
|
|
}
|
|
|
|
.markdown-body code,
|
|
.markdown-body kbd,
|
|
.markdown-body pre {
|
|
font-family: "Meiryo UI", "YaHei Consolas Hybrid", Consolas, "Malgun Gothic", "Segoe UI", "Trebuchet MS", Helvetica, monospace, monospace;
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body input {
|
|
color: inherit;
|
|
font: inherit;
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body html input[disabled] {
|
|
cursor: default;
|
|
}
|
|
|
|
.markdown-body input {
|
|
line-height: normal;
|
|
}
|
|
|
|
.markdown-body input[type="checkbox"] {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
border-collapse: collapse;
|
|
border-spacing: 0;
|
|
}
|
|
|
|
.markdown-body td,
|
|
.markdown-body th {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body * {
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body input {
|
|
font: 13px/1.4 Helvetica, arial, freesans, clean, sans-serif, "Segoe UI Emoji", "Segoe UI Symbol";
|
|
}
|
|
|
|
.markdown-body a {
|
|
color: #4183c4;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body a:hover,
|
|
.markdown-body a:active {
|
|
text-decoration: underline;
|
|
}
|
|
|
|
.markdown-body hr {
|
|
height: 0;
|
|
margin: 15px 0;
|
|
overflow: hidden;
|
|
background: transparent;
|
|
border: 0;
|
|
border-bottom: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body hr:before {
|
|
display: table;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body hr:after {
|
|
display: table;
|
|
clear: both;
|
|
content: "";
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
margin-top: 15px;
|
|
margin-bottom: 15px;
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
font-size: 30px;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
font-size: 21px;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 16px;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 14px;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 11px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
margin: 0;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding: 0;
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
ul.linenums,
|
|
ol.linenums {
|
|
padding: 16px 0 0 56px !important;
|
|
}
|
|
|
|
.markdown-body ul,
|
|
.markdown-body ol {
|
|
padding-left: 2em;
|
|
}
|
|
|
|
|
|
.markdown-body ol ol,
|
|
.markdown-body ul ol {
|
|
list-style-type: lower-roman;
|
|
}
|
|
|
|
.markdown-body ul ul ol,
|
|
.markdown-body ul ol ol,
|
|
.markdown-body ol ul ol,
|
|
.markdown-body ol ol ol {
|
|
list-style-type: lower-alpha;
|
|
}
|
|
|
|
.markdown-body dd {
|
|
margin-left: 0;
|
|
}
|
|
|
|
.markdown-body code {
|
|
font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
font-size: 12px;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
font: 12px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
}
|
|
|
|
.markdown-body .octicon {
|
|
font: normal normal 16px octicons-anchor;
|
|
line-height: 1;
|
|
display: inline-block;
|
|
text-decoration: none;
|
|
-webkit-font-smoothing: antialiased;
|
|
-moz-osx-font-smoothing: grayscale;
|
|
-webkit-user-select: none;
|
|
-moz-user-select: none;
|
|
-ms-user-select: none;
|
|
user-select: none;
|
|
}
|
|
|
|
.markdown-body .octicon-link:before {
|
|
content: '\f05c';
|
|
}
|
|
|
|
.markdown-body>*:first-child {
|
|
margin-top: 0 !important;
|
|
}
|
|
|
|
.markdown-body>*:last-child {
|
|
margin-bottom: 0 !important;
|
|
}
|
|
|
|
.markdown-body .anchor {
|
|
position: absolute;
|
|
top: 0;
|
|
left: 0;
|
|
display: block;
|
|
padding-right: 6px;
|
|
padding-left: 30px;
|
|
margin-left: -30px;
|
|
}
|
|
|
|
.markdown-body .anchor:focus {
|
|
outline: none;
|
|
}
|
|
|
|
.markdown-body h1,
|
|
.markdown-body h2,
|
|
.markdown-body h3,
|
|
.markdown-body h4,
|
|
.markdown-body h5,
|
|
.markdown-body h6 {
|
|
position: relative;
|
|
margin-top: 1em;
|
|
margin-bottom: 16px;
|
|
font-weight: bold;
|
|
line-height: 1.4;
|
|
}
|
|
|
|
.markdown-body h1 .octicon-link,
|
|
.markdown-body h2 .octicon-link,
|
|
.markdown-body h3 .octicon-link,
|
|
.markdown-body h4 .octicon-link,
|
|
.markdown-body h5 .octicon-link,
|
|
.markdown-body h6 .octicon-link {
|
|
display: none;
|
|
color: #000;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor,
|
|
.markdown-body h2:hover .anchor,
|
|
.markdown-body h3:hover .anchor,
|
|
.markdown-body h4:hover .anchor,
|
|
.markdown-body h5:hover .anchor,
|
|
.markdown-body h6:hover .anchor {
|
|
padding-left: 8px;
|
|
margin-left: -30px;
|
|
text-decoration: none;
|
|
}
|
|
|
|
.markdown-body h1:hover .anchor .octicon-link,
|
|
.markdown-body h2:hover .anchor .octicon-link,
|
|
.markdown-body h3:hover .anchor .octicon-link,
|
|
.markdown-body h4:hover .anchor .octicon-link,
|
|
.markdown-body h5:hover .anchor .octicon-link,
|
|
.markdown-body h6:hover .anchor .octicon-link {
|
|
display: inline-block;
|
|
}
|
|
|
|
.markdown-body h1 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 2.25em;
|
|
line-height: 1.2;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h1 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h2 {
|
|
padding-bottom: 0.3em;
|
|
font-size: 1.75em;
|
|
line-height: 1.225;
|
|
border-bottom: 1px solid #eee;
|
|
}
|
|
|
|
.markdown-body h2 .anchor {
|
|
line-height: 1;
|
|
}
|
|
|
|
.markdown-body h3 {
|
|
font-size: 1.5em;
|
|
line-height: 1.43;
|
|
}
|
|
|
|
.markdown-body h3 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h4 {
|
|
font-size: 1.25em;
|
|
}
|
|
|
|
.markdown-body h4 .anchor {
|
|
line-height: 1.2;
|
|
}
|
|
|
|
.markdown-body h5 {
|
|
font-size: 1em;
|
|
}
|
|
|
|
.markdown-body h5 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body h6 {
|
|
font-size: 1em;
|
|
color: #777;
|
|
}
|
|
|
|
.markdown-body h6 .anchor {
|
|
line-height: 1.1;
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body ul ul,
|
|
.markdown-body ul ol,
|
|
.markdown-body ol ol,
|
|
.markdown-body ol ul {
|
|
margin-top: 0;
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body li>p {
|
|
margin-top: 16px;
|
|
}
|
|
|
|
.markdown-body dl {
|
|
padding: 0;
|
|
}
|
|
|
|
.markdown-body dl dt {
|
|
padding: 0;
|
|
margin-top: 16px;
|
|
font-size: 1em;
|
|
font-style: italic;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body dl dd {
|
|
padding: 0 16px;
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body blockquote {
|
|
padding: 0 15px;
|
|
color: #777;
|
|
border-left: 4px solid #ddd;
|
|
}
|
|
|
|
.markdown-body blockquote> :first-child {
|
|
margin-top: 0;
|
|
}
|
|
|
|
.markdown-body blockquote> :last-child {
|
|
margin-bottom: 0;
|
|
}
|
|
|
|
.markdown-body table {
|
|
display: block;
|
|
width: 100%;
|
|
overflow: auto;
|
|
word-break: normal;
|
|
word-break: keep-all;
|
|
}
|
|
|
|
.markdown-body table th {
|
|
font-weight: bold;
|
|
text-align: revert;
|
|
}
|
|
|
|
.markdown-body table th,
|
|
.markdown-body table td {
|
|
padding: 6px 13px;
|
|
border: 1px solid #ddd;
|
|
}
|
|
|
|
.markdown-body table tr {
|
|
background-color: #fff;
|
|
border-top: 1px solid #ccc;
|
|
}
|
|
|
|
.markdown-body table tr:nth-child(2n) {
|
|
background-color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body img {
|
|
max-width: 100%;
|
|
-moz-box-sizing: border-box;
|
|
box-sizing: border-box;
|
|
}
|
|
|
|
.markdown-body code {
|
|
padding: 0;
|
|
padding-top: 0.2em;
|
|
padding-bottom: 0.2em;
|
|
margin: 0;
|
|
font-size: 85%;
|
|
background-color: rgba(0, 0, 0, 0.04);
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body code:has(.katex) {
|
|
background-color: transparent;
|
|
}
|
|
|
|
.markdown-body code:before,
|
|
.markdown-body code:after {
|
|
letter-spacing: -0.2em;
|
|
content: "\\00a0";
|
|
}
|
|
|
|
.markdown-body pre>code {
|
|
padding: 0;
|
|
margin: 0;
|
|
font-size: 100%;
|
|
word-break: normal;
|
|
white-space: pre;
|
|
background: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body .highlight {
|
|
margin-bottom: 16px;
|
|
}
|
|
|
|
.markdown-body .highlight pre,
|
|
.markdown-body pre {
|
|
padding: 16px;
|
|
overflow: auto;
|
|
font-size: 85%;
|
|
line-height: 1.45;
|
|
background-color: #f7f7f7;
|
|
border-radius: 3px;
|
|
}
|
|
|
|
.markdown-body .highlight pre {
|
|
margin-bottom: 0;
|
|
word-break: normal;
|
|
}
|
|
|
|
.markdown-body pre {
|
|
word-wrap: normal;
|
|
}
|
|
|
|
.markdown-body pre code {
|
|
display: inline;
|
|
max-width: initial;
|
|
padding: 0;
|
|
margin: 0;
|
|
overflow: initial;
|
|
line-height: inherit;
|
|
word-wrap: normal;
|
|
background-color: transparent;
|
|
border: 0;
|
|
}
|
|
|
|
.markdown-body pre code:before,
|
|
.markdown-body pre code:after {
|
|
content: normal;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font-size: 11px;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .pl-c {
|
|
color: #969896;
|
|
}
|
|
|
|
.markdown-body .pl-c1,
|
|
.markdown-body .pl-mdh,
|
|
.markdown-body .pl-mm,
|
|
.markdown-body .pl-mp,
|
|
.markdown-body .pl-mr,
|
|
.markdown-body .pl-s1 .pl-v,
|
|
.markdown-body .pl-s3,
|
|
.markdown-body .pl-sc,
|
|
.markdown-body .pl-sv {
|
|
color: #0086b3;
|
|
}
|
|
|
|
.markdown-body .pl-e,
|
|
.markdown-body .pl-en {
|
|
color: #795da3;
|
|
}
|
|
|
|
.markdown-body .pl-s1 .pl-s2,
|
|
.markdown-body .pl-smi,
|
|
.markdown-body .pl-smp,
|
|
.markdown-body .pl-stj,
|
|
.markdown-body .pl-vo,
|
|
.markdown-body .pl-vpf {
|
|
color: #333;
|
|
}
|
|
|
|
.markdown-body .pl-ent {
|
|
color: #63a35c;
|
|
}
|
|
|
|
.markdown-body .pl-k,
|
|
.markdown-body .pl-s,
|
|
.markdown-body .pl-st {
|
|
color: #a71d5d;
|
|
}
|
|
|
|
.markdown-body .pl-pds,
|
|
.markdown-body .pl-s1,
|
|
.markdown-body .pl-s1 .pl-pse .pl-s2,
|
|
.markdown-body .pl-sr,
|
|
.markdown-body .pl-sr .pl-cce,
|
|
.markdown-body .pl-sr .pl-sra,
|
|
.markdown-body .pl-sr .pl-sre,
|
|
.markdown-body .pl-src {
|
|
color: #df5000;
|
|
}
|
|
|
|
.markdown-body .pl-mo,
|
|
.markdown-body .pl-v {
|
|
color: #1d3e81;
|
|
}
|
|
|
|
.markdown-body .pl-id {
|
|
color: #b52a1d;
|
|
}
|
|
|
|
.markdown-body .pl-ii {
|
|
background-color: #b52a1d;
|
|
color: #f8f8f8;
|
|
}
|
|
|
|
.markdown-body .pl-sr .pl-cce {
|
|
color: #63a35c;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-ml {
|
|
color: #693a17;
|
|
}
|
|
|
|
.markdown-body .pl-mh,
|
|
.markdown-body .pl-mh .pl-en,
|
|
.markdown-body .pl-ms {
|
|
color: #1d3e81;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-mq {
|
|
color: #008080;
|
|
}
|
|
|
|
.markdown-body .pl-mi {
|
|
color: #333;
|
|
font-style: italic;
|
|
}
|
|
|
|
.markdown-body .pl-mb {
|
|
color: #333;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body .pl-md,
|
|
.markdown-body .pl-mdhf {
|
|
background-color: #ffecec;
|
|
color: #bd2c00;
|
|
}
|
|
|
|
.markdown-body .pl-mdht,
|
|
.markdown-body .pl-mi1 {
|
|
background-color: #eaffea;
|
|
color: #55a532;
|
|
}
|
|
|
|
.markdown-body .pl-mdr {
|
|
color: #795da3;
|
|
font-weight: bold;
|
|
}
|
|
|
|
.markdown-body kbd {
|
|
display: inline-block;
|
|
padding: 3px 5px;
|
|
font: 11px Consolas, "Liberation Mono", Menlo, Courier, monospace;
|
|
line-height: 10px;
|
|
color: #555;
|
|
vertical-align: middle;
|
|
background-color: #fcfcfc;
|
|
border: solid 1px #ccc;
|
|
border-bottom-color: #bbb;
|
|
border-radius: 3px;
|
|
box-shadow: inset 0 -1px 0 #bbb;
|
|
}
|
|
|
|
.markdown-body .task-list-item {
|
|
list-style-type: none;
|
|
}
|
|
|
|
.markdown-body .task-list-item+.task-list-item {
|
|
margin-top: 3px;
|
|
}
|
|
|
|
.markdown-body .task-list-item input {
|
|
float: left;
|
|
margin: 0.3em 0 0.25em -1.6em;
|
|
vertical-align: middle;
|
|
}
|
|
|
|
.markdown-body :checked+.radio-label {
|
|
z-index: 1;
|
|
position: relative;
|
|
border-color: #4183c4;
|
|
}
|
|
|
|
|
|
/*! Pretty printing styles. Used with prettify.js. */
|
|
/* SPAN elements with the classes below are added by prettyprint. */
|
|
.pln {
|
|
color: #000
|
|
}
|
|
|
|
/* plain text */
|
|
|
|
@media screen {
|
|
.str {
|
|
color: #080
|
|
}
|
|
|
|
/* string content */
|
|
.kwd {
|
|
color: #008
|
|
}
|
|
|
|
/* a keyword */
|
|
.com {
|
|
color: #800
|
|
}
|
|
|
|
/* a comment */
|
|
.typ {
|
|
color: #606
|
|
}
|
|
|
|
/* a type name */
|
|
.lit {
|
|
color: #066
|
|
}
|
|
|
|
/* a literal value */
|
|
/* punctuation, lisp open bracket, lisp close bracket */
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #660
|
|
}
|
|
|
|
.tag {
|
|
color: #008
|
|
}
|
|
|
|
/* a markup tag name */
|
|
.atn {
|
|
color: #606
|
|
}
|
|
|
|
/* a markup attribute name */
|
|
.atv {
|
|
color: #080
|
|
}
|
|
|
|
/* a markup attribute value */
|
|
.dec,
|
|
.var {
|
|
color: #606
|
|
}
|
|
|
|
/* a declaration; a variable name */
|
|
.fun {
|
|
color: red
|
|
}
|
|
|
|
/* a function name */
|
|
}
|
|
|
|
/* Use higher contrast and text-weight for printable form. */
|
|
@media print,
|
|
projection {
|
|
.str {
|
|
color: #060
|
|
}
|
|
|
|
.kwd {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.com {
|
|
color: #600;
|
|
font-style: italic
|
|
}
|
|
|
|
.typ {
|
|
color: #404;
|
|
font-weight: bold
|
|
}
|
|
|
|
.lit {
|
|
color: #044
|
|
}
|
|
|
|
.pun,
|
|
.opn,
|
|
.clo {
|
|
color: #440
|
|
}
|
|
|
|
.tag {
|
|
color: #006;
|
|
font-weight: bold
|
|
}
|
|
|
|
.atn {
|
|
color: #404
|
|
}
|
|
|
|
.atv {
|
|
color: #060
|
|
}
|
|
}
|
|
|
|
/* Put a border around prettyprinted code snippets. */
|
|
pre.prettyprint {
|
|
padding: 2px;
|
|
/* border: 1px solid #888 */
|
|
}
|
|
|
|
/* Specify class=linenums on a pre to get line numbering */
|
|
ol.linenums {
|
|
margin-top: 0;
|
|
margin-bottom: 0
|
|
}
|
|
|
|
/* IE indents via margin-left */
|
|
li.L0,
|
|
li.L1,
|
|
li.L2,
|
|
li.L3,
|
|
li.L5,
|
|
li.L6,
|
|
li.L7,
|
|
li.L8 {
|
|
list-style-type: none
|
|
}
|
|
|
|
/* Alternate shading for lines */
|
|
li.L1,
|
|
li.L3,
|
|
li.L5,
|
|
li.L7,
|
|
li.L9 {
|
|
background: #eee
|
|
}
|
|
|
|
.markdown-body p,
|
|
.markdown-body blockquote,
|
|
.markdown-body ul,
|
|
.markdown-body ol,
|
|
.markdown-body dl,
|
|
.markdown-body table,
|
|
.markdown-body pre {
|
|
margin-top: 0;
|
|
margin-bottom: 16px;
|
|
}`;return(0,ye.useEffect)(()=>{const Lt=At.current.attachShadow({mode:"open"});ft.current=document.createElement("div"),ft.current.className="markdown-body",ft.current.innerHTML=Xe,Lt.appendChild(ft.current);const ln=document.createElement("style");return ln.textContent=Nt,Lt.appendChild(ln),()=>{Lt.innerHTML=""}},[]),(0,ye.useEffect)(()=>{ft.current&&(ft.current.innerHTML=Xe)},[Xe]),zt.createElement("div",{ref:At})};function Ne(Xe){const At=["onabort","onanimationend","onanimationiteration","onanimationstart","onauxclick","onblur","oncancel","oncanplay","oncanplaythrough","onchange","onclick","onclose","oncontextmenu","oncopy","oncut","ondblclick","ondrag","ondragend","ondragenter","ondragleave","ondragover","ondragstart","ondrop","ondurationchange","onemptied","onended","onerror","onfocus","onformdata","ongotpointercapture","oninput","oninvalid","onkeydown","onkeypress","onkeyup","onload","onloadeddata","onloadedmetadata","onloadstart","onlostpointercapture","onmousedown","onmousemove","onmouseout","onmouseover","onmouseup","onpaste","onpause","onplay","onplaying","onpointercancel","onpointerdown","onpointerenter","onpointerleave","onpointermove","onpointerout","onpointerover","onpointerup","onprogress","onratechange","onreset","onresize","onscroll","onsecuritypolicyviolation","onseeked","onseeking","onselect","onslotchange","onstalled","onsubmit","onsuspend","ontimeupdate","ontoggle","ontouchcancel","ontouchend","ontouchmove","ontouchstart","ontransitionend","onvolumechange","onwaiting","onwheel"],ft=new RegExp(`\\b(${At.join("|")})\\s*=\\s*(?:"[^"]*"|'[^']*'|[^\\s>]*)`,"gi");return Xe.replace(ft,"").trim()}var ne=Object.defineProperty,te=Object.getOwnPropertySymbols,de=Object.prototype.hasOwnProperty,le=Object.prototype.propertyIsEnumerable,ge=(Xe,At,ft)=>At in Xe?ne(Xe,At,{enumerable:!0,configurable:!0,writable:!0,value:ft}):Xe[At]=ft,me=(Xe,At)=>{for(var ft in At||(At={}))de.call(At,ft)&&ge(Xe,ft,At[ft]);if(te)for(var ft of te(At))le.call(At,ft)&&ge(Xe,ft,At[ft]);return Xe};const Se="@\u2581\u2581@",be="@\u2581@",Ie=/<pre[^>]*>/g;function Ze(Xe){let At=document.createElement("div");return At.innerHTML=Xe,At.childNodes.length===0?"":At.childNodes[0].nodeValue}const st=(Xe,At)=>{Xe=Xe||"";const ft=/(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?\)|(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Nt=/\"(?:https?:\/\/[^\/]+)?\/api\/attachments\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,Lt=/\(\s+(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?|\"(?:https?:\/\/[^\/]+)?\/files\/uploads\/([A-Za-z0-9+/=]+)(\?.*?)?\//g,ln=/(?:https?:\/\/[^\/]+)?\/attachments\/download\/([A-Za-z0-9+/=]+)(\?.*?)?\//g;return At?Xe.replaceAll("https://www.educoder.net","").replaceAll("https://www-cdn.educoder.net","").replaceAll("//api/attachments","/api/attachments").replace(ft,(kn,un,_t,hn,vt,$e,gn)=>{const ci=un||hn||$e,Fn=_t||vt||gn||"?";return ze.Z.API_SERVER+"/api/attachments/"+ci+Fn+"&t="+(0,dt.Jn)(ci,Date.now())+(kn.indexOf(")")>-1?")":"&")}).replaceAll('src="(','src="').replaceAll("src='(",'src="'):(Xe=Xe.replace(ln,(kn,un,_t,hn,vt,$e,gn)=>{const ci=un||hn||$e,Fn=_t||vt||gn||"?";return ze.Z.API_SERVER+"/attachments/download/"+ci+Fn+"&t="+(0,dt.Jn)(ci,Date.now())+(kn.indexOf(")")>-1?")":"&")}).replace(ft,(kn,un,_t,hn,vt,$e,gn)=>{const ci=un||hn||$e,Fn=_t||vt||gn||"?";return ze.Z.API_SERVER+"/api/attachments/"+ci+Fn+"&t="+(0,dt.Jn)(ci,Date.now())+(kn.indexOf(")")>-1?")":"&")}).replace(Nt,(kn,un,_t,hn,vt)=>{const $e=un||hn,gn=_t||vt||"";return'"'+ze.Z.API_SERVER+"/api/attachments/"+$e+gn+$e+gn+"&t="+(0,dt.Jn)($e,Date.now())}).replace(Lt,(kn,un,_t,hn,vt)=>{const $e=un||hn,gn=_t||vt||"";return"("+ze.Z.API_SERVER+"/files/uploads/"+$e+gn+$e+gn+"&t="+(0,dt.Jn)($e,Date.now())}).replaceAll('src="(','src="').replaceAll("src='(",'src="').replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`),Xe)};var Ye=({value:Xe="",className:At,showTextOnly:ft,showLines:Nt,style:Lt={},stylesPrev:ln={},highlightKeywords:kn,showProgramFill:un,isProgramFill:_t,disabledFill:hn=!1,programFillValue:vt,onFillChange:$e=Fn=>{},onFillBlur:gn=()=>{},onFillFocus:ci=()=>{}})=>{let Fn=Ne(String(Xe||""));const[rn,Xn]=(0,ye.useState)(""),[Nn,mi]=(0,ye.useState)("office"),[Zt,Rn]=(0,ye.useState)([]),wt=(0,ye.useRef)("a"+(0,Et.Z)()),Ai={},Kn=Pt=>/<style[\s\S]*?>/i.test(Pt||""),je=(Pt,Tt,Yt)=>{const dn=document.createElement(Pt===be?"input":"textarea");dn.style.width="100%",dn.style.height=Pt===be?"40px":"151px",dn.rows=5,dn.spellcheck=!1,dn.name="edu-program-fill",dn.placeholder="\u8BF7\u8F93\u5165",dn.dataset.id=Tt;const On=Object.keys(Ai).length;return Ai[On]=dn,`<span class="edu-program-fill-wrap ${Pt===be?"":"show"}" style="width:${Pt===be?"400px":"100%"}" title=${Yt||""}><span>${dn.outerHTML}<span class="edu-program-fill-score" style="margin:0 6px"></span></span></span>`};function Le(Pt){return Pt=Pt.replace(/!\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(/\[.*?\]\(.*?\)/g,""),Pt=Pt.replace(new RegExp("<iframe.*?<\\/iframe>","gs"),""),Pt=Pt.replace(/<embed.*?>/g,""),Pt=Pt.replace(/<img.*?>/g,""),Pt=Pt.replace(new RegExp("<video.*?>.*?<\\/video>","gs"),""),Pt=Pt.replace(new RegExp("<audio.*?>.*?<\\/audio>","gs"),""),Pt=Pt.replace(new RegExp("<style.*?>.*?<\\/style>","gs"),""),Pt=Pt.replace(new RegExp("<script.*?>.*?<\\/script>","gs"),""),Pt}const we=Pt=>!ft&&Kn(Fn)?Pt:Pt.replace(/<style.*?>([\s\S]+?)<\/style>/gim,function(Tt,Yt){let dn=Yt.replace(/(\n|\r)/g,"").split("}"),On=[];return dn.map(wn=>{wn!=""&&On.push(`.${wt.current} ${wn}`)}),`<style>${On.join("}")}</style>`}),Be=(0,ye.useMemo)(()=>{try{const dn=/\(\s+\/api\/attachments\/|\(\/api\/attachments\//g,On=/\"\/api\/attachments\/|\"\/attachments\/download\//g,wn=/\(\s+\/files\/uploads\/|\"\/files\/uploads\//g,nn=/\(\/attachments\/download\//g;Fn=Fn.replace(nn,"("+ze.Z.API_SERVER+"/attachments/download/").replace(dn,"("+ze.Z.API_SERVER+"/api/attachments/").replace(On,'"'+ze.Z.API_SERVER+"/api/attachments/").replace(wn,'"'+ze.Z.API_SERVER+"/files/uploads/").replaceAll("http://video.educoder","https://video.educoder").replaceAll("http://www.educoder.net/api","https://data.educoder.net/api").replaceAll("https://www.educoder.net/api","https://data.educoder.net/api").replace(/\r\n/g,`
|
|
`)}catch(dn){}if(un){let dn=-1;return Fn=Fn.replaceAll("<","<").replaceAll(">",">").replace(/(@▁▁@|@▁@)/g,function(On,wn,nn){var jt;return++dn,je(On,dn,(jt=vt==null?void 0:vt[dn])==null?void 0:jt.value.replaceAll("<","<").replaceAll(">",">"))}),`<pre style="background:#fff;padding:4px">${we(Fn||"")}</pre>`}let Pt=we(Fn);Pt=(0,it.ZP)(Pt);const Tt=(0,it.ez)();Fn.match(/\[TOC\]/)&&(Pt=Pt.replace("<p>[TOC]</p>",(0,it.Qv)()),(0,it.Iy)()),Pt=Pt.replace(/(__special_katext_id_\d+__)/g,(dn,On)=>{const{type:wn,expression:nn}=Tt[On];return(0,Kt.renderToString)(Ze(nn)||"",{displayMode:wn==="block",throwOnError:!1,output:"html"})}),Pt=Pt.replace(/▁/g,"\u2581\u2581\u2581\u2581\u2581"),(0,it.AL)();const Yt=document.createElement("div");if(Yt.innerHTML=Pt,ft)return Yt.innerText;if(kn){const dn=kn.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");return an(Yt,dn),Yt.innerHTML}return setTimeout(()=>gt(),500),Yt.innerHTML},[Fn,kn]);(0,ye.useEffect)(()=>{Bt.current&&Bt.current.querySelectorAll(["input","textarea"]).forEach(Tt=>{Tt.oninput=Ge,Tt.onblur=ke,Tt.onfocus=et})},[Zt]),(0,ye.useEffect)(()=>{var Pt,Tt,Yt,dn,On;if(vt!=null&&vt.length)try{const wn=Bt.current.querySelectorAll(".edu-program-fill-score"),nn=Bt.current.querySelectorAll('[name="edu-program-fill"]');for(const[jt,Xt]of nn.entries())Xt.value=((Pt=vt==null?void 0:vt[jt])==null?void 0:Pt.value)||"",((Tt=vt==null?void 0:vt[jt])==null?void 0:Tt.type)==="warning"?Xt.className="program-fill-warning":((Yt=vt==null?void 0:vt[jt])==null?void 0:Yt.type)==="success"?Xt.className="program-fill-success":Xt.className="";for(const[jt,Xt]of wn.entries())Xt.innerHTML=(dn=vt==null?void 0:vt[jt])!=null&&dn.score?`${(On=vt==null?void 0:vt[jt])==null?void 0:On.score}\u5206`:"";Rn(vt)}catch(wn){console.log(wn,"error")}},[vt]);const Ge=Pt=>{Zt[Pt.target.dataset.id]=Zt[Pt.target.dataset.id]||{},Zt[Pt.target.dataset.id].value=Pt.target.value,Rn([...Zt]),$e(Zt,Pt.target.dataset.id)},ke=Pt=>{Zt[Pt.target.dataset.id]=Zt[Pt.target.dataset.id]||{},Zt[Pt.target.dataset.id].value=Pt.target.value,Rn([...Zt]),gn(Zt,Pt.target.dataset.id)},et=Pt=>{Zt[Pt.target.dataset.id]=Zt[Pt.target.dataset.id]||{},Zt[Pt.target.dataset.id].value=Pt.target.value,Rn([...Zt]),ci(Zt,Pt.target.dataset.id)};function an(Pt,Tt){return Pt.childNodes.forEach(Yt=>{var dn;if(Yt.childNodes.length>0)an(Yt,Tt);else if(Yt.nodeName!=="IMG")if(Yt.innerHTML)Yt.innerHTML=(dn=Yt.innerHTML)==null?void 0:dn.replace(new RegExp(Tt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>');else{const On=document.createElement("span");On.innerHTML=Yt.textContent.replace(new RegExp(Tt,"gi"),'<span style="color:#0152d9;background-color:#1890ff33">$&</span>'),Yt.replaceWith(On)}})}const Bt=(0,ye.useRef)();it.jb.WebkitLineClamp=Nt,Nt&&(Lt=me(me({},Lt),it.jb));function Ut(Pt){let Tt=Pt.target;if(Tt.tagName.toUpperCase()==="A"){let Yt=Tt.getAttribute("href");if(Yt.indexOf("office")>-1)Pt.preventDefault(),Xn(Yt),mi("office");else if(Yt.indexOf("application/pdf")>-1)Pt.preventDefault(),Xn(Yt),mi("pdf");else if(Yt.indexOf("text/html")>-1)Pt.preventDefault(),Xn(Yt),mi("html");else if(Yt.startsWith("#")){Pt.preventDefault();let dn=document.getElementById(Yt.replace("#",""));dn&&dn.scrollIntoView(!0)}}}const gt=()=>{var Pt;const Tt=(Pt=Bt.current)==null?void 0:Pt.querySelectorAll("video");Tt==null||Tt.forEach(Yt=>{if(Yt.oncontextmenu=()=>!1,Yt.src.indexOf(".m3u8")>-1&&!Yt.canPlayType("application/vnd.apple.mpegurl")){if(Mt.ZP.isSupported()){var dn=new Mt.ZP;dn.loadSource(Yt.src),dn.attachMedia(Yt)}}})};return(0,ye.useEffect)(()=>{if(Bt.current&&Be&&Be.match(Ie)&&window.PR.prettyPrint(),Bt.current)return Bt.current.addEventListener("click",Ut),()=>{var Pt;(Pt=Bt.current)==null||Pt.removeEventListener("click",Ut),(0,it.AL)(),(0,it.Iy)()}},[Be,Bt.current,Ut]),(0,ye.useEffect)(()=>{var Pt;const Tt=Yt=>{Yt.preventDefault(),Yt.clipboardData.setData("text",window.getSelection().toString())};return(Pt=Bt.current)==null||Pt.addEventListener("copy",Tt),()=>{var Yt;(Yt=Bt.current)==null||Yt.removeEventListener("copy",Tt)}},[Bt.current]),ye.createElement(ye.Fragment,null,ft&&ye.createElement("div",{ref:Bt},Be),!ft&&!Kn(Be)&&ye.createElement("div",{ref:Bt,style:me({},Lt),className:`${At||""} ${hn?"disabled-fill":""} markdown-body ${wt.current}`,dangerouslySetInnerHTML:{__html:Be}}),!ft&&Kn(Be)&&ye.createElement(Ht,{html:Be}),ye.createElement(Me.Z,{close:!0,data:rn,type:rn!=null&&rn.length?Nn:"",style:me({},ln),onClose:()=>Xn("")}))}},3039:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Kt}});var ye=De(59301),nt={flex_box_center:"flex_box_center___rQJfc",flex_space_between:"flex_space_between___MDW24",flex_box_vertical_center:"flex_box_vertical_center___RZbAv",flex_box_center_end:"flex_box_center_end___ILhJA",flex_box_column:"flex_box_column___Fmij7",orangeColor:"orangeColor___U5vU6",redColor:"redColor___qYa6X",statustitle:"statustitle___pTBLm",statusbody:"statusbody___qUPQx",flex:"flex___VtL45"},it=De(62957),Dt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAPCAYAAADUFP50AAAAAXNSR0IArs4c6QAAAUFJREFUOE+V0ktKw1AUxvH/rVqIxT4wkgwEUSmK4APRBfiYCKU7cOZEBOkadAMZiwhuwJETBQciFRTtwJkPBLW2BRGrRanU9kpN2sSYiGaWc/PjuznnCN2Qh8AkPo+AzXxKLLiPhW7ICtDqB4GzQkqM/huGFZgZcDCBBDaaicsTMKbZH2xfwdY5/ICAEGSasC0AwRYblj+gKkENwfy4WS9V4LHsgsk49EZteJKHdBa6w7AybdZzr3D64ILxGKjtNrx9gfsSRBSYtf6xZh1/u+qQClrIhtdFuHmGvhisJcz65RPsZl2Jc/3QE7FhpgDHuT80x2+O9cR1K/GiCDt3rkQ/+Ns43gDFD0YVmHIuQGOOmiGTARhxwkGd1cZ7Vwd0OppWr3911StpcV++Iwn67q/kyBMuHchErcqwFxT1XZXsfQJqo2zI6kdI4QAAAABJRU5ErkJggg==",Mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAAAXNSR0IArs4c6QAAAW1JREFUOE+dkj1IQmEUht9z/blp4VQEjS39eW+oSCFCpFCI4BiKFGWWQUSrCjVVg+lQNJZQDZGNTm1B4NTibS3n2lo0wuqEN8i/a0HfeN7v+d73nO+QJEcKAJzQPAwCnSpKNtoqkyRHqgDrtUFAb6Rnedx43KgT6O5P0GQijFiNLe/Sy3/B8g+YTIRRrb5jP32JYNADr8eOldU0RJEqVlm8r1kyuA/AIEB10OWy4vBgA4ryCIdjCJlMDmfn1zAY6EmyGY/UrAwrgGATWKsn4mGEQl4Uiw+YX9hT73aZiEcl8eMbZAGA0AT6/ZPY3Ykiny/A55tA7uoGqdQFBD2VbDbDugoSTTEj3gTGYgG8Vt7UeG63hNkZJ7a2s+gw1XqPnf5REKhkt4kxNakO08ycbOtRC/7FcakCwNTJ0WwmDI+1LUCZZDkSYGa5Eewf0G0KAnprNYtFQHdPbZhNS1cmLafF5bUTJsyBSVMHPm+/ADTrfrtCH68WAAAAAElFTkSuQmCC",ze=(Et,Me,zt)=>new Promise((Ke,Ht)=>{var Ne=de=>{try{te(zt.next(de))}catch(le){Ht(le)}},ne=de=>{try{te(zt.throw(de))}catch(le){Ht(le)}},te=de=>de.done?Ke(de.value):Promise.resolve(de.value).then(Ne,ne);te((zt=zt.apply(Et,Me)).next())}),Kt=({type:Et,resdata:Me,onok:zt,oktext:Ke,okloading:Ht})=>{const[Ne,ne]=(0,ye.useState)(!1),{can_copy_list:te,can_copy_num:de,challenge_type:le,course_data_list:ge,no_copy_list:me,no_copy_num:Se,no_use_list:be,no_use_num:Ie,repeat_shixun_num:Ze,student_count:st,total_num:Ye,use_num:Xe}=Me;let At=de>0||Et==="exercise";(0,ye.useEffect)(()=>{(Me==null?void 0:Me.student_count)>0&&ne(!0)},[Me]),console.log("---11",Ht),(0,ye.useEffect)(()=>{Ht||ne(!1)},[Ht]);const ft=()=>{if(Et==="exercise"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:nt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u4F5C\u7B54\u5DF2\u6311\u6218\u8FC7\u7684\u5B9E\u8BAD\u9898\u3002"));if(Et==="exercise"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:nt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="shixun"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="shixun"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7\u8BE5\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="subject"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:nt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="subject"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709 ",ye.createElement("span",{className:nt.orangeColor},st)," \u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u6311\u6218\u8FC7\u5176\u4E2D\u7684 ",ye.createElement("span",{className:nt.orangeColor},Xe)," \u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u9001\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="exercisepush")return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u5176\u4ED6\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u8BD5\u5377\u4E2D\u7684",ye.createElement("span",{className:nt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE \uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u5728\u5F53\u524D\u8003\u8BD5\u4E2D\u8FDB\u884C\u4F5C\u7B54\u3002"));if(Et==="shixunpush"&&le===1)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8003\u8BD5\u4E2D\u6311\u6218\u8FC7\u5176\u4E2D\u7684",ye.createElement("span",{className:nt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"));if(Et==="shixunpush"&&le===2)return ye.createElement(ye.Fragment,null,"\u8BFE\u5802\u5185\u6709",ye.createElement("span",{className:nt.orangeColor},st),"\u540D\u5B66\u751F\u5DF2\u5728\u8BFE\u5802\u5B9E\u9A8C\u4E2D\u6311\u6218\u8FC7",ye.createElement("span",{className:nt.orangeColor},Xe),"\u4E2A\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E14\u4F5C\u4E1A\u5DF2\u5F00\u542F\u201C\u4F5C\u4E1A\u622A\u6B62\u540E\u4E0D\u5141\u8BB8\u5B66\u751F\u7F16\u8F91\u4EE3\u7801\u201D\u8BBE\u7F6E\u9879\uFF0C",ye.createElement("span",{className:nt.redColor},"\u91CD\u590D\u53D1\u5E03\u4F1A\u5BFC\u81F4\u8FD9\u90E8\u5206\u5B66\u751F\u65E0\u6CD5\u518D\u63D0\u4EA4\u4F5C\u4E1A\u3002"))},Nt=()=>{if(Et==="exercise"||Et==="subject"||Et==="exercisepush"||Et==="shixunpush")return ye.createElement("div",{style:{marginTop:20}},Se>0&&ye.createElement("div",null,ye.createElement("span",{className:nt.flex},ye.createElement("img",{src:Mt,style:{width:14}}),ye.createElement("span",{className:nt.statustitle},"\u4E0D\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ye.createElement("div",{className:nt.statusbody},Et==="exercise"&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",ye.createElement("span",{className:nt.redColor},"\u4EE5\u4E0B\u8BD5\u9898\u5C06\u4E0D\u4F1A\u88AB\u53D1\u9001\u81F3\u8BFE\u5802\u4E2D\u3002"),"\u60A8\u4E5F\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),(Et==="subject"||Et==="exercisepush")&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",At&&ye.createElement("span",{className:nt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),Et==="shixunpush"&&ye.createElement("div",{style:{marginBottom:15}},"\u6CA1\u6709\u590D\u5236\u6743\u9650\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C",At&&ye.createElement("span",{className:nt.redColor},"\u4E00\u952E\u590D\u5236\u4E0D\u4F1A\u590D\u5236\u6B64\u90E8\u5206\u9879\u76EE\u3002"),"\u5EFA\u8BAE\u60A8\u91CD\u65B0\u9009\u62E9\u5B9E\u8DF5\u9879\u76EE\u518D\u53D1\u5E03\u4F5C\u4E1A\uFF0C\u4E5F\u53EF\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002"),ye.createElement("div",null,me==null?void 0:me.map((Lt,ln)=>ye.createElement("a",{href:`/shixuns/${Lt.identifier}/challenges`,target:"_blank"},"\u300A",Lt==null?void 0:Lt.name,"\u300B",ln+1!==Se&&"\u3001"))))),de>0&&ye.createElement("div",{style:{marginTop:20}},ye.createElement("span",{className:nt.flex},ye.createElement("img",{src:Dt,style:{width:14}}),ye.createElement("span",{className:nt.statustitle},"\u652F\u6301\u590D\u5236\u7684\u5B9E\u8DF5\u9879\u76EE")),ye.createElement("div",{className:nt.statusbody},Et==="exercise"&&ye.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u8BD5\u5377\u4E2D\u7684\u539F\u8BD5\u9898\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),(Et==="subject"||Et==="exercisepush")&&ye.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),Et==="shixunpush"&&ye.createElement("div",{style:{marginBottom:15}},"\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362\u8BD5\u9898\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\u66FF\u6362\u5F53\u524D\u4F5C\u4E1A\u4E2D\u7684\u5B9E\u8DF5\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002"),ye.createElement("div",null,te==null?void 0:te.map((Lt,ln)=>ye.createElement("a",{href:`/shixuns/${Lt.identifier}/challenges`,target:"_blank"},"\u300A",Lt==null?void 0:Lt.name,"\u300B",ln+1!==de&&"\u3001"))))));if(Et==="shixun")return ye.createElement("div",{style:{marginTop:20}},de>0?"\u8BE5\u9879\u76EE\u652F\u6301\u590D\u5236\uFF0C\u5EFA\u8BAE\u60A8\u4E00\u952E\u590D\u5236\u5E76\u53D1\u9001\uFF08\u5C06\u590D\u5236\u5E76\u521B\u5EFA\u4E00\u4E2A\u65B0\u7684\u9879\u76EE\uFF0C\u4E0D\u4F1A\u590D\u5236\u5B66\u751F\u7684\u6311\u6218\u8BB0\u5F55\uFF0C\u65B0\u7684\u9879\u76EE\u652F\u6301\u8FDB\u884C\u7F16\u8F91\u5E76\u4E0E\u539F\u9879\u76EE\u4FE1\u606F\u4E92\u4E0D\u5F71\u54CD\uFF09\u3002":"\u8BE5\u9879\u76EE\u4E0D\u652F\u6301\u590D\u5236\uFF0C\u60A8\u53EF\u4EE5\u8054\u7CFB\u9879\u76EE\u521B\u5EFA\u8005\u5F00\u542F\u590D\u5236\u6743\u9650\u6216\u8005\u8054\u7CFB\u5E73\u53F0\u6559\u7814\u52A9\u7406\u8FDB\u884C\u534F\u52A9\u3002")};return ye.createElement(it.default,{open:Ne,onCancel:()=>{ne(!1)},cancelText:"\u53D6\u6D88",title:"\u63D0\u793A",width:700,centered:!0,cancelButtonProps:{style:{display:!At&&"none"}},zIndex:1003,confirmLoading:Ht,okText:At?Ke:"\u6211\u77E5\u9053\u4E86",onOk:()=>ze(void 0,null,function*(){At?yield zt([...te,...be]):ne(!1)})},ye.createElement("div",{style:{maxHeight:600,overflow:"auto"}},ft(),Nt()))}},69720:function(Jn,gi,De){"use strict";De.d(gi,{h:function(){return Se}});var ye=De(59301),nt=De(82326),it=De(28284),Dt=De(99571),Mt=De(89780),ze=De.n(Mt),dt=De(8336),Kt=De(12469),Et=Object.defineProperty,Me=Object.defineProperties,zt=Object.getOwnPropertyDescriptors,Ke=Object.getOwnPropertySymbols,Ht=Object.prototype.hasOwnProperty,Ne=Object.prototype.propertyIsEnumerable,ne=(be,Ie,Ze)=>Ie in be?Et(be,Ie,{enumerable:!0,configurable:!0,writable:!0,value:Ze}):be[Ie]=Ze,te=(be,Ie)=>{for(var Ze in Ie||(Ie={}))Ht.call(Ie,Ze)&&ne(be,Ze,Ie[Ze]);if(Ke)for(var Ze of Ke(Ie))Ne.call(Ie,Ze)&&ne(be,Ze,Ie[Ze]);return be},de=(be,Ie)=>Me(be,zt(Ie));const le=nt.default.Option,ge={labelCol:{span:4},wrapperCol:{span:20}},me={asp:["ASP","vbscript"],actionscript:["ActionScript(3.0)/Flash/Flex","clike"],bash:["Bash/Bat","shell"],css:["CSS","css"],c:["C","clike"],cpp:["C++","clike"],csharp:["C#","clike"],coffeescript:["CoffeeScript","coffeescript"],d:["D","d"],dart:["Dart","dart"],delphi:["Delphi/Pascal","pascal"],erlang:["Erlang","erlang"],go:["Golang","go"],groovy:["Groovy","groovy"],html:["HTML","text/html"],java:["Java","clike"],json:["JSON","text/json"],javascript:["Javascript","javascript"],lua:["Lua","lua"],less:["LESS","css"],markdown:["Markdown","gfm"],"objective-c":["Objective-C","clike"],php:["PHP","php"],perl:["Perl","perl"],python:["Python","python"],r:["R","r"],rst:["reStructedText","rst"],ruby:["Ruby","ruby"],sql:["SQL","sql"],sass:["SASS/SCSS","sass"],shell:["Shell","shell"],scala:["Scala","clike"],swift:["Swift","clike"],vb:["VB/VBScript","vb"],xml:["XML","text/xml"],yaml:["YAML","yaml"]};gi.Z=({callback:be,onCancel:Ie})=>{const[Ze,st]=(0,ye.useState)("python");function Ye(At){st(me[At][1])}function Xe(At){be(At)}return ye.createElement(it.default,de(te({},ge),{className:"code-block-panel",initialValues:{language:"python",content:""},onFinish:Xe,style:{width:500}}),ye.createElement(it.default.Item,{label:"\u4EE3\u7801\u8BED\u8A00",name:"language"},ye.createElement(nt.default,{getPopupContainer:At=>At.parentNode,onChange:Ye},Object.keys(me).map(At=>ye.createElement(le,{key:At,value:At},me[At][0])))),ye.createElement(it.default.Item,{label:"\u4EE3\u7801\u5185\u5BB9",name:"content",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4EE3\u7801\u5185\u5BB9"}]},ye.createElement(Se,{mode:Ze})),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(Dt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(Dt.ZP,{type:"ghost",onClick:Ie},"\u53D6\u6D88")))};function Se({value:be,onChange:Ie,mode:Ze,options:st={}}){const Ye=(0,ye.useRef)(),[Xe,At]=(0,ye.useState)();return(0,ye.useEffect)(()=>{if(Xe){let ft=function(Nt){const Lt=Nt.getValue();Ie&&Ie(Lt)};return Xe.on("change",ft),()=>{Xe.off("change",ft)}}},[Xe,Ie]),(0,ye.useEffect)(()=>{Xe&&Xe.setOption("mode",Ze)},[Xe,Ze]),(0,ye.useEffect)(()=>{Xe&&(be!==Xe.getValue()||be==="")&&setTimeout(()=>{Xe.setValue(be||"")},300)},[Xe,be]),(0,ye.useEffect)(()=>{if(Ye.current&&!Xe){const ft=ze().fromTextArea(Ye.current,te({mode:Ze,lineNumbers:!0,lineWrapping:!0,autoCloseBrackets:!0,tabSize:4,autofocus:!0,autoCloseTags:!0,matchBrackets:!0,styleActiveLine:!0},st));At(ft)}},[Ye.current,Xe]),ye.createElement("div",{className:"my-codemirror-container"},ye.createElement("textarea",{ref:Ye}))}},39793:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Mn}});var ye=De(59301),nt=De(89780),it=De.n(nt),Dt=De(76374),Mt=De(8336),ze=De(6313),dt=De(25717),Kt=De(99498),Et=De(25419),Me=De(67549),zt=De(76902),Ke=({value:yt="",className:xt,showTextOnly:Ct,showLines:Yn,style:$n={}})=>{const di=(0,ye.useMemo)(()=>"",[yt]);return ye.createElement(ye.Fragment,null,ye.createElement("div",{dangerouslySetInnerHTML:{__html:di}}))},Ht=De(59301),Ne=Object.defineProperty,ne=Object.defineProperties,te=Object.getOwnPropertyDescriptors,de=Object.getOwnPropertySymbols,le=Object.prototype.hasOwnProperty,ge=Object.prototype.propertyIsEnumerable,me=(yt,xt,Ct)=>xt in yt?Ne(yt,xt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):yt[xt]=Ct,Se=(yt,xt)=>{for(var Ct in xt||(xt={}))le.call(xt,Ct)&&me(yt,Ct,xt[Ct]);if(de)for(var Ct of de(xt))ge.call(xt,Ct)&&me(yt,Ct,xt[Ct]);return yt},be=(yt,xt)=>ne(yt,te(xt));let Ie=[{title:"\u7C97\u4F53",icon:"md-iconfont icon-bold",actionName:"bold"},{title:"\u659C\u4F53",icon:"md-iconfont icon-italic",actionName:"italic"},"|",{title:"\u65E0\u5E8F\u5217\u8868",icon:"md-iconfont icon-unorder-list",actionName:"list-ul"},{title:"\u6709\u5E8F\u5217\u8868",icon:"md-iconfont icon-order-list",actionName:"list-ol"},"|",{title:"\u884C\u5185\u4EE3\u7801",icon:"md-iconfont icon-code",actionName:"code"},{title:"\u4EE3\u7801\u5757\uFF08\u591A\u8BED\u8A00\u98CE\u683C\uFF09",icon:"md-iconfont icon-file-code",actionName:"code-block"},{title:"\u94FE\u63A5",icon:"md-iconfont icon-link",actionName:"link"},"|",{title:"\u884C\u5185\u516C\u5F0F",icon:"md-iconfont icon-sum",actionName:"inline-latex"},{title:"\u6570\u5B66\u56FE\u50CF",icon:"iconfont icon-shuxuetuxiang2",actionName:"maths-latex"},{title:"\u591A\u884C\u516C\u5F0F",icon:"iconfont icon-jisuan1",actionName:"latex"},"|",{title:"\u6DFB\u52A0\u56FE\u7247",icon:"md-iconfont icon-picture",actionName:"upload-image"},{title:"\u63D2\u5165\u753B\u56FE",icon:"iconfont icon-sheji",actionName:"draw-image"},{title:"\u63D2\u5165\u6D41\u7A0B\u56FE",icon:"iconfont icon-liucheng",actionName:"add-flowchart"},{title:"\u8868\u683C",icon:"md-iconfont icon-table",actionName:"add-table"},"|",{title:"\u6362\u884C",icon:"md-iconfont icon-minus",actionName:"line-break"},{title:"\u6E05\u7A7A",icon:"md-iconfont icon-eraser",actionName:"eraser"}];function Ze({onActionCallback:yt,title:xt,icon:Ct,actionName:Yn,className:$n="",children:di}){function xn(){yt(Yn)}return Ht.createElement("a",{title:xt,className:$n,onClick:xn},Ht.createElement("i",{className:`${Ct}`}),di)}var st=({watch:yt,showNullButton:xt,showNullProgramButton:Ct,onActionCallback:Yn,fullScreen:$n,insertTemp:di,hidetoolBar:xn,extraUse:ai})=>{const Pn=[...Ie,{title:`${yt?"\u5173\u95ED\u5B9E\u65F6\u9884\u89C8":"\u5F00\u542F\u5B9E\u65F6\u9884\u89C8"}`,icon:`${yt?"md-iconfont icon-eye-slash":"md-iconfont icon-eye"}`,actionName:"trigger-watch"}];return Ht.createElement("ul",{className:"markdown-toolbar-container"},!xn&&Pn.map((zi,fr)=>Ht.createElement("li",{key:fr},zi.actionName?Ht.createElement(Ze,be(Se({},zi),{onActionCallback:Yn})):Ht.createElement("span",{className:"v-line"}))),xt?Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-null-ch",onActionCallback:Yn},Ht.createElement("span",{className:"fill-tip"},"\u70B9\u51FB\u63D2\u5165\b\u586B\u7A7A\u9879"))):null,Ct?Ht.createElement(Ht.Fragment,null,Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-edit insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-signal",onActionCallback:Yn},Ht.createElement("span",{className:"fill-tip"},"+\u5355\u884C\u586B\u7A7A\u9879"))),Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-uniE900 insert-blank",className:"btn-null",title:"\u589E\u52A0\u586B\u7A7A",actionName:"add-multiple",onActionCallback:Yn},Ht.createElement("span",{className:"fill-tip"},"+\u591A\u884C\u586B\u7A7A\u9879")))):null,di&&Ht.createElement("li",null,Ht.createElement(Ze,{icon:"md-iconfont icon-edit",className:"btn-null",title:"\u63D2\u5165\u6A21\u677F",actionName:`inster-template-${di}`,onActionCallback:Yn},Ht.createElement("span",{className:"fill-tip"},"\u63D2\u5165\u6A21\u677F"))),ai&&Ht.createElement("li",null,ai),Ht.createElement("li",{className:"btn-full-screen"},Ht.createElement(Ze,{icon:`${$n?"md-iconfont icon-shrink":"md-iconfont icon-enlarge"}`,title:$n?"\u5173\u95ED\u5168\u5C4F":"\u5F00\u542F\u5168\u5C4F",actionName:"trigger-full-screen",onActionCallback:Yn})))},Ye=De(91558),Xe=De(28284),At=De(37568),ft=De(99571),Nt=Object.defineProperty,Lt=Object.defineProperties,ln=Object.getOwnPropertyDescriptors,kn=Object.getOwnPropertySymbols,un=Object.prototype.hasOwnProperty,_t=Object.prototype.propertyIsEnumerable,hn=(yt,xt,Ct)=>xt in yt?Nt(yt,xt,{enumerable:!0,configurable:!0,writable:!0,value:Ct}):yt[xt]=Ct,vt=(yt,xt)=>{for(var Ct in xt||(xt={}))un.call(xt,Ct)&&hn(yt,Ct,xt[Ct]);if(kn)for(var Ct of kn(xt))_t.call(xt,Ct)&&hn(yt,Ct,xt[Ct]);return yt},$e=(yt,xt)=>Lt(yt,ln(xt));const gn={labelCol:{span:4},wrapperCol:{span:20}};var ci=({callback:yt,onCancel:xt})=>{function Ct(Yn){yt(Yn)}return ye.createElement(Xe.default,$e(vt({},gn),{initialValues:{link:"http://",title:""},className:"link-panel",onFinish:Ct,style:{width:500}}),ye.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u5730\u5740",name:"link",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u5730\u5740"}]},ye.createElement(At.default,null)),ye.createElement(Xe.default.Item,{label:"\u94FE\u63A5\u6807\u9898",name:"title",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u94FE\u63A5\u6807\u9898"}]},ye.createElement(At.default,null)),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(ft.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(ft.ZP,{type:"ghost",onClick:xt},"\u53D6\u6D88")))},Fn=De(69720),rn=De(17077),Xn=De(62957),Nn=De(77019),mi=De(9507),Zt=De(59301),Rn=({callback:yt,onCancel:xt})=>{const Ct=document.createElement("canvas"),Yn=Ct.getContext("2d");Ct.width=1e3,Ct.height=800,Yn.fillStyle="#ffffff",Yn.fillRect(0,0,Ct.width,Ct.height);const $n=Ct.toDataURL("image/png");return Zt.createElement(Xn.default,{open:!0,width:"100vw",style:{height:"100vh",top:0},footer:null,title:null,closable:!1},Zt.createElement(Nn.Z,{style:{height:"100vh"}},Zt.createElement(mi.Z,{fullWidth:!0,noAssociationId:!0,showFullTools:!0,data:{src:$n,visible:!0,title:String(Date.now())},onOk:di=>{yt({src:di.url})},onClose:xt})))},wt=De(12378);function Ai(){go.CommandHandler.call(this),this._arrowKeyBehavior="move",this._pasteOffset=new go.Point(10,10),this._lastPasteOffset=new go.Point(0,0)}go.Diagram.inherit(Ai,go.CommandHandler),Ai.prototype.canAlignSelection=function(){var yt=this.diagram;return!(yt===null||yt.isReadOnly||yt.isModelReadOnly||yt.selection.count<2)},Ai.prototype.alignLeft=function(){var yt=this.diagram;yt.startTransaction("aligning left");var xt=1/0;yt.selection.each(function(Ct){Ct instanceof go.Link||(xt=Math.min(Ct.position.x,xt))}),yt.selection.each(function(Ct){Ct instanceof go.Link||Ct.move(new go.Point(xt,Ct.position.y))}),yt.commitTransaction("aligning left")},Ai.prototype.alignRight=function(){var yt=this.diagram;yt.startTransaction("aligning right");var xt=-1/0;yt.selection.each(function(Ct){if(!(Ct instanceof go.Link)){var Yn=Ct.actualBounds.x+Ct.actualBounds.width;xt=Math.max(Yn,xt)}}),yt.selection.each(function(Ct){Ct instanceof go.Link||Ct.move(new go.Point(xt-Ct.actualBounds.width,Ct.position.y))}),yt.commitTransaction("aligning right")},Ai.prototype.alignTop=function(){var yt=this.diagram;yt.startTransaction("alignTop");var xt=1/0;yt.selection.each(function(Ct){Ct instanceof go.Link||(xt=Math.min(Ct.position.y,xt))}),yt.selection.each(function(Ct){Ct instanceof go.Link||Ct.move(new go.Point(Ct.position.x,xt))}),yt.commitTransaction("alignTop")},Ai.prototype.alignBottom=function(){var yt=this.diagram;yt.startTransaction("aligning bottom");var xt=-1/0;yt.selection.each(function(Ct){if(!(Ct instanceof go.Link)){var Yn=Ct.actualBounds.y+Ct.actualBounds.height;xt=Math.max(Yn,xt)}}),yt.selection.each(function(Ct){Ct instanceof go.Link||Ct.move(new go.Point(Ct.actualBounds.x,xt-Ct.actualBounds.height))}),yt.commitTransaction("aligning bottom")},Ai.prototype.alignCenterX=function(){var yt=this.diagram,xt=yt.selection.first();if(xt){yt.startTransaction("aligning Center X");var Ct=xt.actualBounds.x+xt.actualBounds.width/2;yt.selection.each(function(Yn){Yn instanceof go.Link||Yn.move(new go.Point(Ct-Yn.actualBounds.width/2,Yn.actualBounds.y))}),yt.commitTransaction("aligning Center X")}},Ai.prototype.alignCenterY=function(){var yt=this.diagram,xt=yt.selection.first();if(xt){yt.startTransaction("aligning Center Y");var Ct=xt.actualBounds.y+xt.actualBounds.height/2;yt.selection.each(function(Yn){Yn instanceof go.Link||Yn.move(new go.Point(Yn.actualBounds.x,Ct-Yn.actualBounds.height/2))}),yt.commitTransaction("aligning Center Y")}},Ai.prototype.alignColumn=function(yt){var xt=this.diagram;xt.startTransaction("align Column"),yt===void 0&&(yt=0),yt=parseFloat(yt);var Ct=new Array;xt.selection.each(function(ai){ai instanceof go.Link||Ct.push(ai)});for(var Yn=0;Yn<Ct.length-1;Yn++){var $n=Ct[Yn],di=$n.actualBounds.y+$n.actualBounds.height+yt,xn=Ct[Yn+1];xn.move(new go.Point($n.actualBounds.x,di))}xt.commitTransaction("align Column")},Ai.prototype.alignRow=function(yt){yt===void 0&&(yt=0),yt=parseFloat(yt);var xt=this.diagram;xt.startTransaction("align Row");var Ct=new Array;xt.selection.each(function(ai){ai instanceof go.Link||Ct.push(ai)});for(var Yn=0;Yn<Ct.length-1;Yn++){var $n=Ct[Yn],di=$n.actualBounds.x+$n.actualBounds.width+yt,xn=Ct[Yn+1];xn.move(new go.Point(di,$n.actualBounds.y))}xt.commitTransaction("align Row")},Ai.prototype.canRotate=function(yt){var xt=this.diagram;return!(xt===null||xt.isReadOnly||xt.isModelReadOnly||xt.selection.count<1)},Ai.prototype.rotate=function(yt){yt===void 0&&(yt=90);var xt=this.diagram;xt.startTransaction("rotate "+yt.toString());var xt=this.diagram;xt.selection.each(function(Ct){Ct instanceof go.Link||Ct instanceof go.Group||(Ct.angle+=yt)}),xt.commitTransaction("rotate "+yt.toString())},Ai.prototype.pullToFront=function(){var yt=this.diagram;yt.startTransaction("pullToFront");var xt=new go.Map;yt.selection.each(function(Ct){xt.set(Ct.layer,0)}),xt.iteratorKeys.each(function(Ct){var Yn=0;Ct.parts.each(function($n){if(!$n.isSelected){var di=$n.zOrder;isNaN(di)?$n.zOrder=0:Yn=Math.max(Yn,di)}}),xt.set(Ct,Yn)}),yt.selection.each(function(Ct){Ai._assignZOrder(Ct,xt.get(Ct.layer)+1)}),yt.commitTransaction("pullToFront")},Ai.prototype.pushToBack=function(){var yt=this.diagram;yt.startTransaction("pushToBack");var xt=new go.Map;yt.selection.each(function(Ct){xt.set(Ct.layer,0)}),xt.iteratorKeys.each(function(Ct){var Yn=0;Ct.parts.each(function($n){if(!$n.isSelected){var di=$n.zOrder;isNaN(di)?$n.zOrder=0:Yn=Math.min(Yn,di)}}),xt.set(Ct,Yn)}),yt.selection.each(function(Ct){Ai._assignZOrder(Ct,xt.get(Ct.layer)-1-Ai._findGroupDepth(Ct))}),yt.commitTransaction("pushToBack")},Ai._assignZOrder=function(yt,xt,Ct){Ct===void 0&&(Ct=yt),yt.layer===Ct.layer&&(yt.zOrder=xt),yt instanceof go.Group&&yt.memberParts.each(function(Yn){Ai._assignZOrder(Yn,xt+1,Ct)})},Ai._findGroupDepth=function(yt){if(yt instanceof go.Group){var xt=0;return yt.memberParts.each(function(Ct){xt=Math.max(xt,Ai._findGroupDepth(Ct))}),xt+1}else return 0},Ai.prototype.doKeyDown=function(){var yt=this.diagram;if(yt!==null){var xt=yt.lastInput;if(xt.key==="Up"||xt.key==="Down"||xt.key==="Left"||xt.key==="Right"){var Ct=this.arrowKeyBehavior;if(Ct==="none")return;if(Ct==="select"){this._arrowKeySelect();return}else if(Ct==="move"){this._arrowKeyMove();return}else if(Ct==="tree"){this._arrowKeyTree();return}}go.CommandHandler.prototype.doKeyDown.call(this)}},Ai.prototype._getAllParts=function(){var yt=new Array;return this.diagram.nodes.each(function(xt){yt.push(xt)}),this.diagram.parts.each(function(xt){yt.push(xt)}),yt},Ai.prototype._arrowKeyMove=function(){var yt=this.diagram,xt=yt.lastInput,Ct=0,Yn=0;if(xt.control||xt.meta)Ct=1,Yn=1;else if(yt.grid!==null){var $n=yt.grid.gridCellSize;Yn=$n.width,Ct=$n.height}yt.startTransaction("arrowKeyMove"),yt.selection.each(function(di){xt.key==="Up"?di.move(new go.Point(di.actualBounds.x,di.actualBounds.y-Ct)):xt.key==="Down"?di.move(new go.Point(di.actualBounds.x,di.actualBounds.y+Ct)):xt.key==="Left"?di.move(new go.Point(di.actualBounds.x-Yn,di.actualBounds.y)):xt.key==="Right"&&di.move(new go.Point(di.actualBounds.x+Yn,di.actualBounds.y))}),yt.commitTransaction("arrowKeyMove")},Ai.prototype._arrowKeySelect=function(){var yt=this.diagram,xt=yt.lastInput,Ct=null;xt.key==="Up"?Ct=this._findNearestPartTowards(270):xt.key==="Down"?Ct=this._findNearestPartTowards(90):xt.key==="Left"?Ct=this._findNearestPartTowards(180):xt.key==="Right"&&(Ct=this._findNearestPartTowards(0)),Ct!==null&&(xt.shift?Ct.isSelected=!0:xt.control||xt.meta?Ct.isSelected=!Ct.isSelected:yt.select(Ct))},Ai.prototype._findNearestPartTowards=function(yt){var xt=this.diagram.selection.first();if(xt===null)return null;for(var Ct=xt.actualBounds.center,Yn=this._getAllParts(),$n=1/0,di=xt,xn=0;xn<Yn.length;xn++){var ai=Yn[xn];if(ai!==xt&&ai.canSelect()){var Pn=ai.actualBounds.center,zi=Ct.directionPoint(Pn),fr=this._angleCloseness(zi,yt);if(fr<=45){var Ve=Ct.distanceSquaredPoint(Pn);Ve*=1+Math.sin(fr*Math.PI/180),Ve<$n&&($n=Ve,di=ai)}}}return di},Ai.prototype._angleCloseness=function(yt,xt){return Math.min(Math.abs(xt-yt),Math.min(Math.abs(xt+360-yt),Math.abs(xt-360-yt)))},Ai.prototype._arrowKeyTree=function(){var yt=this.diagram,xt=yt.selection.first();if(xt instanceof go.Node){var Ct=yt.lastInput;if(Ct.key==="Right"){if(!xt.isTreeLeaf)if(!xt.isTreeExpanded)yt.commandHandler.canExpandTree(xt)&&yt.commandHandler.expandTree(xt);else{var Yn=this._sortTreeChildrenByY(xt).first();Yn!==null&&yt.select(Yn)}}else if(Ct.key==="Left")if(!xt.isTreeLeaf&&xt.isTreeExpanded)yt.commandHandler.canCollapseTree(xt)&&yt.commandHandler.collapseTree(xt);else{var $n=xt.findTreeParentNode();$n!==null&&yt.select($n)}else if(Ct.key==="Up"){var $n=xt.findTreeParentNode();if($n!==null){var di=this._sortTreeChildrenByY($n),xn=di.indexOf(xt);if(xn>0){for(var ai=di.elt(xn-1);ai!==null&&ai.isTreeExpanded&&!ai.isTreeLeaf;){var Pn=this._sortTreeChildrenByY(ai);ai=Pn.last()}ai!==null&&yt.select(ai)}else yt.select($n)}}else if(Ct.key==="Down")if(xt.isTreeExpanded&&!xt.isTreeLeaf){var Yn=this._sortTreeChildrenByY(xt).first();Yn!==null&&yt.select(Yn)}else for(;xt!==null;){var $n=xt.findTreeParentNode();if($n===null)break;var di=this._sortTreeChildrenByY($n),xn=di.indexOf(xt);if(xn<di.length-1){yt.select(di.elt(xn+1));break}else xt=$n}var zi=yt.selection.first();zi!==null&&yt.scrollToRect(zi.actualBounds)}},Ai.prototype._sortTreeChildrenByY=function(yt){var xt=new go.List().addAll(yt.findTreeChildrenNodes());return xt.sort(function(Ct,Yn){var $n=Ct.location,di=Yn.location;return $n.y<di.y?-1:$n.y>di.y?1:$n.x<di.x?-1:$n.x>di.x?1:0}),xt},Ai.prototype.copyToClipboard=function(yt){go.CommandHandler.prototype.copyToClipboard.call(this,yt),this._lastPasteOffset.set(this.pasteOffset)},Ai.prototype.pasteFromClipboard=function(){var yt=go.CommandHandler.prototype.pasteFromClipboard.call(this);return this.diagram.moveParts(yt,this._lastPasteOffset),this._lastPasteOffset.add(this.pasteOffset),yt},Object.defineProperty(Ai.prototype,"arrowKeyBehavior",{get:function(){return this._arrowKeyBehavior},set:function(yt){if(yt!=="move"&&yt!=="select"&&yt!=="scroll"&&yt!=="tree"&&yt!=="none")throw new Error('DrawCommandHandler.arrowKeyBehavior must be either "move", "select", "scroll", "tree", or "none", not: '+yt);this._arrowKeyBehavior=yt}}),Object.defineProperty(Ai.prototype,"pasteOffset",{get:function(){return this._pasteOffset},set:function(yt){if(!(yt instanceof go.Point))throw new Error("DrawCommandHandler.pasteOffset must be a Point, not: "+yt);this._pasteOffset.set(yt)}});var Kn=Ai,je=De(63720),Le=De(5269),we=De(38986),Be={myPaletteDiv:"myPaletteDiv___Xjz2I",flowChartWrp:"flowChartWrp____f45r",maxH60:"maxH60___Pd4Re"},Ge=De(48790),ke=De(59301),et=(yt,xt,Ct)=>new Promise((Yn,$n)=>{var di=Pn=>{try{ai(Ct.next(Pn))}catch(zi){$n(zi)}},xn=Pn=>{try{ai(Ct.throw(Pn))}catch(zi){$n(zi)}},ai=Pn=>Pn.done?Yn(Pn.value):Promise.resolve(Pn.value).then(di,xn);ai((Ct=Ct.apply(yt,xt)).next())});function an({onCancel:yt,callback:xt}){let Ct=(0,ye.useRef)(),Yn=(0,ye.useRef)(),$n=(0,ye.useRef)(),di=(0,ye.useRef)(!1);const xn=(0,ye.useRef)(!1),[ai,Pn]=(0,ye.useState)(0);function zi(){const Ve=wt.bx.make,mt={red:"#ff3333",blue:"#3358ff",green:"#25ad23",magenta:"#d533ff",purple:"#7d33ff",orange:"#ff6233",brown:"#8e571e",white:"#ffffff",black:"#000000",beige:"#fffcd5",extralightblue:"#d5ebff",extralightred:"#f2dfe0",lightblue:"#a5d2fa",lightgray:"#cccccc",lightgreen:"#b3e6b3",lightred:"#fcbbbd"};Ct.current=new wt.S0(Yn.current,{padding:20,grid:Ve(wt.s_,"Grid",Ve(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ve(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),"draggingTool.isGridSnapEnabled":!0,handlesDragDropForTopLevelParts:!0,mouseDrop:Si=>{var Vi=Si.diagram.commandHandler.addTopLevelParts(Si.diagram.selection,!0);Vi||Si.diagram.currentTool.doCancel()},commandHandler:Ve(Kn),"clickCreatingTool.archetypeNodeData":{text:"\u672A\u547D\u540D",fill:null,stroke:null,borderColor:"rgba(0,0,0,0)"},PartCreated:Si=>{var Vi=Si.subject;Vi.location=Vi.location.copy().snapToGridPoint(Si.diagram.grid.gridOrigin,Si.diagram.grid.gridCellSize),setTimeout(()=>{Si.diagram.commandHandler.editTextBlock()},20)},"commandHandler.archetypeGroupData":{isGroup:!0,text:"NEW GROUP"},SelectionGrouped:Si=>{var Vi=Si.subject;setTimeout(()=>{Si.diagram.commandHandler.editTextBlock()})},LinkRelinked:Si=>{var Vi=Si.parameter.part;Vi.invalidateConnectedLinks();var Wi=Si.subject;Si.diagram.toolManager.linkingTool.isForwards?Wi.toNode.invalidateConnectedLinks():Wi.fromNode.invalidateConnectedLinks()},"undoManager.isEnabled":!0}),Ct.current.nodeTemplate=Ve(wt.NB,"Auto",{locationSpot:wt.z6.Center,locationObjectName:"SHAPE",desiredSize:new wt.$u(120,60),minSize:new wt.$u(40,40),resizable:!0,resizeCellSize:new wt.$u(10,10),rotatable:!0},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),new wt.KX("desiredSize","size",wt.$u.parse).makeTwoWay(wt.$u.stringify),Ve(wt.bn,{name:"SHAPE",fill:mt.white,cursor:"pointer",portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("figure"),new wt.KX("fill"),new wt.KX("stroke","borderColor"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),Ve(wt.bn,{width:100,height:20,strokeWidth:0,fill:"transparent"}),Ve(wt.al,{margin:1,textAlign:"center",overflow:wt.al.OverflowEllipsis,editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Ct.current.nodeTemplate.toolTip=Ve("ToolTip",Ve(wt.s_,"Vertical",{maxSize:new wt.$u(200,NaN)},Ve(wt.al,{font:"bold 10pt sans-serif",textAlign:"center"},new wt.KX("text")),Ve(wt.al,{font:"10pt sans-serif",textAlign:"center"},new wt.KX("text","details"))));function Dn(Si,Vi){var Wi=($i,Pr)=>{$i.handled=!0,$i.diagram.model.commit(br=>{var Hi=Pr.part.adornedPart,er=new wt.E9().setRectSpot(Hi.actualBounds,Si);er.subtract(Hi.location),er.scale(2,2),er.x+=Math.sign(er.x)*130,er.y+=Math.sign(er.y)*130,er.add(Hi.location),er.snapToGridPoint($i.diagram.grid.gridOrigin,$i.diagram.grid.gridCellSize);var Gi=br.copyNodeData(Hi.data);br.setGroupKeyForNodeData(Gi,br.getGroupKeyForNodeData(Hi.data)),br.addNodeData(Gi);var cn={from:Hi.key,to:br.getKeyForNodeData(Gi)};br.addLinkData(cn);var sr=$i.diagram.findNodeForData(Gi);sr.location=er,$i.diagram.select(sr),setTimeout(()=>{$i.diagram.commandHandler.editTextBlock()},20)})};return Ve(wt.bn,{figure:Vi,alignment:Si,alignmentFocus:Si.opposite(),width:Si.equals(wt.z6.Top)||Si.equals(wt.z6.Bottom)?25:18,height:Si.equals(wt.z6.Top)||Si.equals(wt.z6.Bottom)?18:25,fill:"orange",stroke:mt.white,strokeWidth:4,mouseEnter:($i,Pr)=>Pr.fill="dodgerblue",mouseLeave:($i,Pr)=>Pr.fill="orange",isActionable:!0,click:Wi,contextClick:Wi})}function An(Si){return Ve(wt.bn,{fill:"orange",stroke:"rgba(0, 0, 0, 0)",strokeWidth:15,background:"transparent",geometryString:"F1 M0 0 b 0 360 -4 0 4 z M10 0 b 0 360 -4 0 4 z M20 0 b 0 360 -4 0 4",isActionable:!0,cursor:"context-menu",mouseEnter:(Vi,Wi)=>Wi.fill="dodgerblue",mouseLeave:(Vi,Wi)=>Wi.fill="orange",click:(Vi,Wi)=>{Vi.diagram.commandHandler.showContextMenu(Wi.part.adornedPart)}},Si||{})}Ct.current.nodeTemplate.selectionAdornmentTemplate=Ve(wt.uz,"Spot",Ve(wt.Vm,{padding:10}),Dn(wt.z6.Top,"TriangleUp"),Dn(wt.z6.Left,"TriangleLeft"),Dn(wt.z6.Right,"TriangleRight"),Dn(wt.z6.Bottom,"TriangleDown"),An({alignment:new wt.z6(.75,0)}));function Ot(Si,Vi){return(Wi,$i)=>{Wi.handled=!0,Wi.diagram.model.commit(Pr=>{Pr.set($i.part.adornedPart.data,Si,Vi)})}}function Bn(Si,Vi){return Vi||(Vi="color"),Ve(wt.bn,{width:16,height:16,stroke:"lightgray",fill:Si,margin:1,background:"transparent",mouseEnter:(Wi,$i)=>$i.stroke="dodgerblue",mouseLeave:(Wi,$i)=>$i.stroke="lightgray",click:Ot(Vi,Si),contextClick:Ot(Vi,Si)})}function Hn(){return[Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Bn(mt.white,"fill"),Bn(mt.beige,"fill"),Bn(mt.extralightblue,"fill"),Bn(mt.extralightred,"fill"))),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Bn(mt.lightgray,"fill"),Bn(mt.lightgreen,"fill"),Bn(mt.lightblue,"fill"),Bn(mt.lightred,"fill")))]}function _n(){return[Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Bn(mt.black),Bn(mt.green),Bn(mt.blue),Bn(mt.red))),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Bn(mt.white),Bn(mt.magenta),Bn(mt.purple),Bn(mt.orange)))]}function Ei(Si,Vi){return Vi||(Vi="thickness"),Ve(wt.bn,"LineH",{width:16,height:16,strokeWidth:Si,margin:1,background:"transparent",mouseEnter:(Wi,$i)=>$i.background="dodgerblue",mouseLeave:(Wi,$i)=>$i.background="transparent",click:Ot(Vi,Si),contextClick:Ot(Vi,Si)})}function si(Si,Vi){return Vi||(Vi="dash"),Ve(wt.bn,"LineH",{width:24,height:16,strokeWidth:2,strokeDashArray:Si,margin:1,background:"transparent",mouseEnter:(Wi,$i)=>$i.background="dodgerblue",mouseLeave:(Wi,$i)=>$i.background="transparent",click:Ot(Vi,Si),contextClick:Ot(Vi,Si)})}function Pi(){return[Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Ei(1),Ei(2),Ei(3),Ei(4))),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",si(null),si([2,4]),si([4,4])))]}function yi(Si,Vi){return Vi||(Vi="figure"),Ve(wt.bn,{width:32,height:32,scale:.5,fill:"lightgray",figure:Si,margin:1,background:"transparent",mouseEnter:(Wi,$i)=>$i.fill="dodgerblue",mouseLeave:(Wi,$i)=>$i.fill="lightgray",click:Ot(Vi,Si),contextClick:Ot(Vi,Si)})}Ct.current.nodeTemplate.contextMenu=Ve("ContextMenu",Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",yi("Rectangle"),yi("RoundedRectangle"),yi("Ellipse"),yi("Diamond"))),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",yi("Parallelogram2"),yi("ManualOperation"),yi("Procedure"),yi("Cylinder1"))),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",yi("Terminator"),yi("CreateRequest"),yi("Document"),yi("TriangleDown"))),Hn(),_n(),Pi()),Ct.current.groupTemplate=Ve(wt.ZA,"Spot",{layerName:"Background",ungroupable:!0,locationSpot:wt.z6.Center,selectionObjectName:"BODY",computesBoundsAfterDrag:!0,handlesDragDropForMembers:!0,mouseDrop:(Si,Vi)=>{var Wi=Vi.addMembers(Vi.diagram.selection,!0);Wi||Vi.diagram.currentTool.doCancel()},avoidable:!1},new wt.KX("location","loc",wt.E9.parse).makeTwoWay(wt.E9.stringify),Ve(wt.s_,"Auto",{name:"BODY"},Ve(wt.bn,{parameter1:10,fill:mt.white,strokeWidth:2,cursor:"pointer",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromSpot:wt.z6.AllSides,toSpot:wt.z6.AllSides},new wt.KX("fill"),new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),Ve(wt.Vm,{background:"transparent",margin:20})),Ve(wt.al,{alignment:wt.z6.Top,alignmentFocus:wt.z6.Bottom,font:"bold 12pt sans-serif",editable:!0},new wt.KX("text"),new wt.KX("stroke","color"))),Ct.current.groupTemplate.selectionAdornmentTemplate=Ve(wt.uz,"Spot",Ve(wt.s_,"Auto",Ve(wt.bn,{fill:null,stroke:"dodgerblue",strokeWidth:3}),Ve(wt.Vm,{margin:1.5})),An({alignment:wt.z6.TopRight,alignmentFocus:wt.z6.BottomRight})),Ct.current.groupTemplate.contextMenu=Ve("ContextMenu",Hn(),_n(),Pi()),Ct.current.linkTemplate=Ve(wt.rU,{layerName:"Foreground",routing:wt.rU.AvoidsNodes,corner:10,fromShortLength:10,toShortLength:15,relinkableFrom:!0,relinkableTo:!0,reshapable:!0,resegmentable:!0},new wt.KX("fromSpot","fromSpot",wt.z6.parse),new wt.KX("toSpot","toSpot",wt.z6.parse),new wt.KX("fromShortLength","dir",Si=>Si>=1?10:0),new wt.KX("toShortLength","dir",Si=>Si>=1?10:0),new wt.KX("points").makeTwoWay(),Ve(wt.bn,{strokeWidth:2},new wt.KX("stroke","color"),new wt.KX("strokeWidth","thickness"),new wt.KX("strokeDashArray","dash")),Ve(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,0),segmentOrientation:wt.rU.OrientAlong,alignmentFocus:wt.z6.Right,figure:"circle",width:10,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Si=>Si===1)),Ve(wt.bn,{segmentIndex:-1,segmentOffset:new wt.E9(-10,6),segmentOrientation:wt.rU.OrientPlus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Si=>Si>=1),new wt.KX("width","thickness",Si=>7+3*Si),new wt.KX("height","thickness",Si=>7+3*Si),new wt.KX("segmentOffset","thickness",Si=>new wt.E9(-15,4+1.5*Si))),Ve(wt.bn,{segmentIndex:0,segmentOffset:new wt.E9(15,-6),segmentOrientation:wt.rU.OrientMinus90,alignmentFocus:wt.z6.Right,figure:"triangle",width:12,height:12,strokeWidth:0},new wt.KX("fill","color"),new wt.KX("visible","dir",Si=>Si===2),new wt.KX("width","thickness",Si=>7+3*Si),new wt.KX("height","thickness",Si=>7+3*Si),new wt.KX("segmentOffset","thickness",Si=>new wt.E9(-15,4+1.5*Si))),Ve(wt.al,{alignmentFocus:new wt.z6(0,1,-4,0),editable:!0},new wt.KX("text").makeTwoWay(),new wt.KX("stroke","color"))),Ct.current.linkTemplate.selectionAdornmentTemplate=Ve(wt.uz,Ve(wt.bn,{isPanelMain:!0,stroke:"transparent",strokeWidth:6,pathPattern:_i(2)},new wt.KX("pathPattern","thickness",_i)),An({alignmentFocus:new wt.z6(0,0,-6,-4)}));function _i(Si){return Ve(wt.bn,{stroke:"dodgerblue",strokeWidth:2,strokeCap:"square",geometryString:"M0 0 M4 2 H3 M4 "+(Si+4).toString()+" H3"})}function Ri(Si){var Vi="M0 0 M8 16 M0 8 L16 8 M12 11 L16 8 L12 5";return Si===0?Vi="M0 0 M16 16 M0 8 L16 8":Si===2&&(Vi="M0 0 M16 16 M0 8 L16 8 M12 11 L16 8 L12 5 M4 11 L0 8 L4 5"),Ve(wt.bn,{geometryString:Vi,margin:2,background:"transparent",mouseEnter:(Wi,$i)=>$i.background="dodgerblue",mouseLeave:(Wi,$i)=>$i.background="transparent",click:Ot("dir",Si),contextClick:Ot("dir",Si)})}function Di(Si){var Vi=(Wi,$i)=>{Wi.handled=!0,Wi.diagram.model.commit(Pr=>{var br=$i.part.adornedPart;Pr.set(br.data,Si?"toSpot":"fromSpot",wt.z6.stringify(wt.z6.AllSides)),(Si?br.toNode:br.fromNode).invalidateConnectedLinks()})};return Ve(wt.bn,{width:12,height:12,fill:"transparent",mouseEnter:(Wi,$i)=>$i.background="dodgerblue",mouseLeave:(Wi,$i)=>$i.background="transparent",click:Vi,contextClick:Vi})}function sn(Si,Vi){var Wi=0,$i=wt.z6.RightSide;Si.equals(wt.z6.Top)?(Wi=270,$i=wt.z6.TopSide):Si.equals(wt.z6.Left)?(Wi=180,$i=wt.z6.LeftSide):Si.equals(wt.z6.Bottom)&&(Wi=90,$i=wt.z6.BottomSide),Vi||(Wi-=180);var Pr=(br,Hi)=>{br.handled=!0,br.diagram.model.commit(er=>{var Gi=Hi.part.adornedPart;er.set(Gi.data,Vi?"toSpot":"fromSpot",wt.z6.stringify($i)),(Vi?Gi.toNode:Gi.fromNode).invalidateConnectedLinks()})};return Ve(wt.bn,{alignment:Si,alignmentFocus:Si.opposite(),geometryString:"M0 0 M12 12 M12 6 L1 6 L4 4 M1 6 L4 8",angle:Wi,background:"transparent",mouseEnter:(br,Hi)=>Hi.background="dodgerblue",mouseLeave:(br,Hi)=>Hi.background="transparent",click:Pr,contextClick:Pr})}Ct.current.linkTemplate.contextMenu=Ve("ContextMenu",_n(),Pi(),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Ri(0),Ri(1),Ri(2))),Ve("ContextMenuButton",Ve(wt.s_,"Horizontal",Ve(wt.s_,"Spot",Di(!1),sn(wt.z6.Top,!1),sn(wt.z6.Left,!1),sn(wt.z6.Right,!1),sn(wt.z6.Bottom,!1)),Ve(wt.s_,"Spot",{margin:new wt.Zt(0,0,0,2)},Di(!0),sn(wt.z6.Top,!0),sn(wt.z6.Left,!0),sn(wt.z6.Right,!0),sn(wt.z6.Bottom,!0)))));const pr=`{ "class": "GraphLinksModel",
|
|
"nodeDataArray": [
|
|
{"text":"Find Problem","key":-9,"loc":"-20 -140","color":"#3358ff","fill":"white","figure":"Procedure","thickness":3},
|
|
{"text":"What do we want?","key":-10,"loc":"-65 -324.305","group":-16,"figure":"Ellipse","fill":"white"},
|
|
{"text":"What do our users want?","key":-11,"loc":"105 -334.305","group":-20,"figure":"Ellipse","fill":"#ffffff","color":"black"},
|
|
{"text":"Meetings","key":-12,"loc":"-65 -444.305","group":-16,"figure":"TriangleDown","fill":"#ffffff"},
|
|
{"text":"Reviews","key":-13,"loc":"105 -454.305","group":-20,"figure":"TriangleDown","fill":"#ffffff","color":"black"},
|
|
{"text":"Can we solve it?","key":-14,"loc":"190 -140","color":"#7d33ff","fill":"#ffffff","figure":"Diamond","size":"140 80","thickness":3},
|
|
{"isGroup":true,"text":"Internal","key":-16,"loc":"-65 -384.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"External","key":-20,"loc":"105 -394.305","fill":"#d5ebff","dash":null,"thickness":1,"group":-22},
|
|
{"isGroup":true,"text":"Sources","key":-22,"loc":"20 -400","fill":"#a5d2fa","dash":[4,4],"color":"#3358ff"}
|
|
],
|
|
"linkDataArray": [
|
|
{"from":-12,"to":-10,"points":[-65,-414.305,-65,-404.305,-65,-384.305,-65,-384.305,-65,-364.305,-65,-354.305],"dash":null,"dir":1},
|
|
{"from":-13,"to":-11,"points":[105,-424.305,105,-414.305,105,-394.305,105,-394.305,105,-374.305,105,-364.305],"dash":null,"color":"#000000","dir":1},
|
|
{"from":-10,"to":-9,"points":[-65,-294.305,-65,-284.305,-65,-232.1525,-40,-232.1525,-40,-180,-40,-170],"dir":2,"dash":[4,4]},
|
|
{"from":-11,"to":-9,"points":[105,-304.305,105,-294.305,105,-237.1525,0,-237.1525,0,-180,0,-170],"dash":[4,4],"dir":2},
|
|
{"from":-9,"to":-14,"points":[40,-150,58,-150,80,-150,80,-153.33333333333331,102,-153.33333333333331,120,-153.33333333333331],"dir":1,"color":"#3358ff"},
|
|
{"from":-14,"to":-9,"points":[190,-100,190,-90,-20,-90,-20,-95,-20,-100,-20,-110],"fromSpot":"BottomSide","toSpot":"BottomSide","text":"No","color":"#ff3333","thickness":2,"dir":1},
|
|
{"from":-9,"to":-14,"points":[40,-130,58,-130,80,-130,80,-126.66666666666666,102,-126.66666666666666,120,-126.66666666666666]}
|
|
]}`;var Mr=["Rectangle","Square","RoundedRectangle","Border","Ellipse","Circle","TriangleRight","TriangleDown","TriangleLeft","TriangleUp","Triangle","Diamond","LineH","LineV","None","BarH","BarV","MinusLine","PlusLine","XLine","LineRight","LineDown","LineLeft","LineUp"];function Kr(Si){return console.log("shapeName:",Si),Mr.indexOf(Si)>=0}var En=new wt.YI($n.current,{maxSelectionCount:1,linkTemplate:Ve(wt.rU,{locationSpot:wt.z6.Center,selectionAdornmentTemplate:Ve(wt.uz,"Link",{locationSpot:wt.z6.Center},Ve(wt.bn,{isPanelMain:!0,fill:null,stroke:"deepskyblue",strokeWidth:0}),Ve(wt.bn,{toArrow:"Standard",stroke:null}))},{routing:wt.rU.AvoidsNodes,curve:wt.rU.JumpOver,corner:5,toShortLength:4},new wt.KX("points"),Ve(wt.bn,{isPanelMain:!0,strokeWidth:2}),Ve(wt.bn,{toArrow:"Standard",stroke:null})),model:new wt.FJ([{text:"\u672A\u547D\u540D",size:"100 100",fill:null,stroke:"#000"},...wt.bn.getFigureGenerators().toArray().map(Si=>({text:"\u672A\u547D\u540D",size:"100 100",figure:Si.key,fill:"white",stroke:"#666",borderColor:"#000"}))])});return Ct.current.addDiagramListener("TextEdited",function(Si){var Vi;const Wi=Si.subject.part;var $i=(Vi=document.activeElement)==null?void 0:Vi.value;typeof $i=="string"&&$i.trim()===""&&Ct.current.model.commit(function(Pr){Pr.set(Wi.data,"text","\u672A\u547D\u540D"),Ct.current.commandHandler.stopCommand()},"increment")}),En.nodeTemplate=Ve(wt.NB,"Auto",{locationSpot:wt.z6.Center},new wt.KX("location","location",wt.E9.parse).makeTwoWay(wt.E9.stringify),Ve(wt.bn,"Circle",{fill:"white",stroke:"gray",strokeWidth:2,width:20,height:20,portId:"",fromLinkable:!0,toLinkable:!0,fromLinkableDuplicates:!0,toLinkableDuplicates:!0,fromLinkableSelfNode:!0,toLinkableSelfNode:!0},new wt.KX("stroke").makeTwoWay(),new wt.KX("fill").makeTwoWay(),new wt.KX("figure")),Ve(wt.al,{margin:new wt.Zt(5,5,3,5),font:"10pt sans-serif",minSize:new wt.$u(16,16),maxSize:new wt.$u(10,NaN),textAlign:"center",editable:!0},new wt.KX("key").makeTwoWay())),setTimeout(()=>{Ct.current.grid=Ve(wt.s_,"Grid",Ve(wt.bn,"LineH",{stroke:"lightgray",strokeWidth:.5}),Ve(wt.bn,"LineV",{stroke:"lightgray",strokeWidth:.5})),Ct.current.grid.visible=!0,Ct.current.grid.gridCellStroke="darkgray",Ct.current.grid.gridCellStrokeWidth=1},300),window.myDiagrams=Ct.current,Ct.current}const fr=()=>et(this,null,function*(){var Ve,mt=Ct.current.makeImage();const Dn=yield(0,we.ZP)("/api/attachments.json",{method:"post",body:{file_type:"base64",original_filename:Date.now(),file:mt.src,file_data:JSON.stringify({login:(Ve=(0,Ge.eY)())==null?void 0:Ve.login,data:JSON.parse(Ct.current.model.toJson())})}});xt({src:Dn.url})});return(0,ye.useEffect)(()=>(setTimeout(()=>{zi()},500),Pn(ai+1),()=>{Ct.current=null}),[]),ke.createElement("div",{ref:xn,className:"body-overflow-initial"},ke.createElement(Xn.default,{width:1200,icon:null,footer:null,closable:!0,visible:!!ai,destroyOnClose:!0,maskClosable:!1,rootClassName:"zIndex-9999",title:ke.createElement(Nn.Z,null,ke.createElement(Le.Z,{flex:1},"\u63D2\u5165\u6D41\u7A0B\u56FE"),ke.createElement(Le.Z,{onClick:()=>{var Ve,mt,Dn=Ct.current.selection.first();if(di.current=!di.current,document.activeElement&&Dn){let An=(mt=(Ve=document.activeElement)==null?void 0:Ve.value)==null?void 0:mt.trim();typeof An=="string"&&Ct.current.model.commit(function(Ot){Ot.set(Dn.data,"text",An||"\u672A\u547D\u540D"),Ct.current.commandHandler.stopCommand()},"increment")}Pn(ai+1)}},ke.createElement("span",{className:"current c-blue mr30",style:{fontWeight:400}},"\u5C55\u5F00/\u6536\u8D77"))),onCancel:yt},ke.createElement("div",{style:{width:"100%",height:"80vh",overflow:"hidden",position:"relative",display:di.current?"none":"block"},className:Be.flowChartWrp},ke.createElement("div",{style:{display:"flex",height:"100%"}},ke.createElement("div",{style:{width:"300px",height:"100%"}},ke.createElement("div",{style:{background:"#fff",position:"relative",zIndex:12,fontSize:16,color:"#3061d0"}},"\u56FE\u5F62\u5E93"),ke.createElement("div",{style:{height:"calc(100% - 50px)"},className:Be.myPaletteDiv,ref:$n})),ke.createElement("div",{style:{flex:1,position:"relative"}},ke.createElement("div",{ref:Yn,style:{height:"80vh"}}))),ke.createElement("div",{className:"tr"},ke.createElement(ft.ZP,{size:"large",onClick:fr,style:{position:"absolute",right:0,bottom:0,zIndex:8},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668")))))}var Bt=an,Ut=De(47889),gt=De(71051);const Pt=Ut.ZP.Group,Tt={margin:"0 8px"};var Yt=({callback:yt,onCancel:xt})=>{function Ct(Yn){yt(Yn)}return ye.createElement(Xe.default,{className:"add-table-panel",initialValues:{row:3,col:2,align:"default"},onFinish:Ct},ye.createElement("div",{className:"flex-container",style:{alignItems:"baseline"}},ye.createElement("span",{style:Tt},"\u5355\u5143\u683C\u6570\uFF1A"),ye.createElement("span",{style:Tt},"\u884C\u6570"),ye.createElement(Xe.default.Item,{name:"row",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u884C\u6570"}]},ye.createElement(gt.Z,null)),ye.createElement("span",{style:Tt},"\u5217\u6570"),ye.createElement(Xe.default.Item,{name:"col",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u5217\u6570"}]},ye.createElement(gt.Z,null))),ye.createElement("div",{className:"flex-container",style:{marginTop:12,alignItems:"baseline"}},ye.createElement("span",{style:Tt},"\u5BF9\u9F50\u65B9\u5F0F\uFF1A"),ye.createElement(Xe.default.Item,{name:"align"},ye.createElement(Pt,null,ye.createElement(Ut.ZP,{value:"default"},ye.createElement("i",{className:"fa fa-align-justify"})),ye.createElement(Ut.ZP,{value:"left"},ye.createElement("i",{className:"fa fa-align-left"})),ye.createElement(Ut.ZP,{value:"center"},ye.createElement("i",{className:"fa fa-align-center"})),ye.createElement(Ut.ZP,{value:"right"},ye.createElement("i",{className:"fa fa-align-right"}))))),ye.createElement("div",{className:"flex-container flex-end"},ye.createElement(ft.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),ye.createElement(ft.ZP,{type:"ghost",onClick:xt},"\u53D6\u6D88")))},dn=De(71411),On=De(43001),wn=De.n(On),jt=(0,ye.forwardRef)(({use3d:yt,width:xt,height:Ct,callback:Yn,showSaveButton:$n},di)=>{const xn=(0,ye.useRef)(),ai=(0,ye.useRef)(),[Pn,zi]=(0,ye.useState)(!1),fr=(0,ye.useRef)({id:xn,appName:"graphing",width:xt||1e3,height:Ct||600,showToolBar:!0,showMenuBar:!0,allowStyleBar:!0,showAlgebraInput:!0,enableLabelDrags:!1,enableShiftDragZoom:!0,showToolBarHelp:!1,errorDialogsActive:!0,showTutorialLink:!0,showLogging:!0,useBrowserForJS:!1});(0,ye.useEffect)(()=>{ai.current=new(wn())(fr.current,!0),window.onload=function(){ai.current.inject("applet_container")}},[]);const Ve=()=>{var mt=window.ggbApplet.getPNGBase64(1,!0,72);return Yn&&Yn(mt),mt};return(0,ye.useEffect)(()=>{fr.current.appName=Pn?"3D":"graphing",ai.current.inject("applet_container")},[Pn]),(0,ye.useEffect)(()=>{zi(yt)},[yt]),(0,ye.useImperativeHandle)(di,()=>({getImgData:Ve})),ye.createElement(ye.Fragment,null,ye.createElement("div",{style:{width:"100%",height:"100%"},id:"applet_container",ref:xn}),ye.createElement(Nn.Z,{align:"middle"},ye.createElement(Le.Z,{flex:1},ye.createElement(dn.Z,{size:"default",checkedChildren:"\u5173\u95ED3D\u56FE\u50CF",unCheckedChildren:"\u5F00\u542F3D\u56FE\u50CF",checked:Pn,onChange:mt=>zi(mt)})),ye.createElement(Le.Z,null,ye.createElement(ft.ZP,{size:"large",onClick:Ve,style:{zIndex:8,marginTop:10},type:"primary"},"\u4FDD\u5B58\u5230\u7F16\u8F91\u5668"))))}),Xt=De(76562),pn=De(6767);const bn="link",Un="upload-image",ti="add-flowchart",pi="draw-image",vn="add-flowchart",wi="code-block",Yi="add-table",gr="------------",rr={default:gr,left:`:${gr}`,center:`:${gr}:`,right:`${gr}:`};var tr=De(37808);function vr(){}let hr=0;const ar=1e4,Xi="\u2581",yr="@\u2581\u2581@",Ce="@\u2581@",Sn=`
|
|
**\u6A21\u677F\u6807\u9898**
|
|
\u6A21\u677F\u6B63\u6587\u5185\u5BB9\uFF0C\u53EF\u8F93\u5165\u6587\u672C\u5185\u5BB9\u548C\u7C98\u8D34\u56FE\u7247\u7B49\u64CD\u4F5C`,Gn=["pptm","pptx","ppt","pot","pps","ppa","potx","ppsx","ppam","pptm","potm","ppsm","doc","docx","dot","dotx","docm","dotm","xls","xlsx","csv","xlt","xla","xltx","xlsm","xltm","xlam","xlsb"];function dr(yt){return/^\d+$/.test(yt)?`${yt}px`:yt}const Ii=navigator.platform.toUpperCase().indexOf("MAC")>=0?"Cmd":"Ctrl",Tn={[Ii+"-B"]:"bold",[Ii+"-I"]:"italic"},Cn={[bn]:"\u6DFB\u52A0\u94FE\u63A5",[wi]:"\u6DFB\u52A0\u4EE3\u7801\u5757",[Un]:"\u6DFB\u52A0\u56FE\u7247",[pi]:"\u6DFB\u52A0\u753B\u56FE",[ti]:"\u63D2\u5165\u6D41\u7A0B\u56FE",[Yi]:"\u6DFB\u52A0\u8868\u683C","maths-latex":"\u6570\u5B66\u56FE\u50CF","inline-latex":"LATEX\u516C\u5F0F"};var Mn=({defaultValue:yt="",onChange:xt,width:Ct="100%",height:Yn=400,miniToolbar:$n=!1,isFocus:di=!1,watch:xn,insertTemp:ai,mode:Pn="markdown",id:zi="markdown-editor-id",showResizeBar:fr=!1,noStorage:Ve=!1,showNullButton:mt=!1,showNullProgramButton:Dn=!1,hidetoolBar:An=!1,fullScreen:Ot=!1,onBlur:Bn,onCMBeforeChange:Hn,onFullScreen:_n,className:Ei="",disablePaste:si=!1,disabled:Pi=!1,disabledFill:yi=!1,placeholder:_i="",values:Ri="",extraUse:Di})=>{const[sn,pr]=(0,ye.useState)(null),[Mr,Kr]=(0,ye.useState)(yt),[En,Si]=(0,ye.useState)(xn),[Vi,Wi]=(0,ye.useState)(Ot),[$i,Pr]=(0,ye.useState)(""),[br,Hi]=(0,ye.useState)(0),[er,Gi]=(0,ye.useState)(Yn),[cn,sr]=(0,ye.useState)(!1),[yn,bi]=(0,ye.useState)(0),[Cr,Nr]=(0,ye.useState)(0),to=(0,ye.useRef)(),Ur=(0,ye.useRef)(),Br=(0,ye.useRef)(),ao=(0,ye.useRef)();(0,ye.useEffect)(()=>{const Ee=window.scrollY||window.pageYOffset;Kr(Ri),sn==null||sn.setValue(Ri),window.scrollTo(0,Ee)},[Ri]),(0,ye.useEffect)(()=>{_n==null||_n(Vi)},[Vi]),(0,ye.useEffect)(()=>{if(to.current){let Ee=function(Re,ot){var lt;if(si){ot.preventDefault();return}const Wt=ot.clipboardData;if(Wt){const Vt=Wt.types.toString(),tn=Wt.items;if(Vt==="Files"||Wt.types.indexOf("Files")>-1){if(ot.preventDefault(),Pn=="stex")return;try{let Ln=tn[1];((lt=tn[0])==null?void 0:lt.kind)==="file"&&(Ln=tn[0]);const Wn=Ln.getAsFile(),mn=Wn.name.split(".").pop();(0,rn.I)(Wn,ei=>{var fi,ut,Qn;ei.id?((fi=Wn==null?void 0:Wn.type)==null?void 0:fi.indexOf("image"))>-1?Ue.replaceSelection(`<img width="100%" src="/api/attachments/${ei.id}?type=${ei.content_type})" alt="" />`):((ut=Wn==null?void 0:Wn.type)==null?void 0:ut.indexOf("video"))>-1?Ue.replaceSelection(`<video width="100%" controls src="/api/attachments/${ei.id}"></video>`):((Qn=Wn==null?void 0:Wn.type)==null?void 0:Qn.indexOf("pdf"))>-1?Ue.replaceSelection(`<a href="/api/attachments/${ei.id}?type=${Wn.type}&disposition=inline" target="_blank">${Wn.name}</a>`):Gn.includes(mn)?Ue.replaceSelection(`<a href="/api/attachments/${ei.id}?type=office&disposition=inline" target="_blank">${Wn.name}</a>`):Ue.replaceSelection(`[${Wn.name}](/api/attachments/${ei.id}?type=${ei.content_type})`):(ei==null?void 0:ei.status)===401&&(document.location.href="/user/login")})}catch(Ln){pn.ZP.warning("\u8BF7\u4F7F\u7528chrome\u6D4F\u89C8\u5668\u7C98\u8D34")}return!0}else return!0}return!0};const Ue=it().fromTextArea(to.current,{mode:Pn,lineNumbers:!$n,lineWrapping:!0,value:yt,autoCloseTags:!0,autoCloseBrackets:!0});return Ue.on("keyup",function(Re,ot){ot.keyCode===8&&(Re.getValue()==""?Ue.setOption("placeholder",_i):Ue.setOption("placeholder",null))}),Ue.on("keydown",function(Re,ot){if(ot.keyCode===8){var lt=Vn(Re);lt&&ot.preventDefault()}}),di&&Ue.focus(),Ue.on("paste",Ee),Pi&&Ue.on("beforeChange",function(Re,ot){(ot.origin==="paste"||ot.origin==="+input")&&ot.cancel()}),pr(Ue),()=>{Ue.off("paste",Ee)}}},[]);const Qt=(0,ye.useCallback)(()=>{if(Ur.current)try{}catch(Ee){console.log(Ee,"---- to set md editor body height")}},[er,Ur,Vi]);(0,ye.useEffect)(()=>{function Ee(){let Ue=new Dt.Z(Re=>{for(let ot of Re)(ot.target.offsetHeight>0||ot.target.offsetWidth>0)&&(Qt(),sn.setSize("100%","100%"),sn.refresh())});return Ue.observe(to.current.parentElement),Ue}if(sn){const Ue=Ee();return()=>{var Re,ot;(Re=to.current)!=null&&Re.parentElement&&Ue.unobserve((ot=to.current)==null?void 0:ot.parentElement)}}},[sn,Qt]),(0,ye.useEffect)(()=>{if(sn){let Ee=[];for(const[Ue,Re]of Object.entries(Tn)){let ot={[Ue]:()=>{$t(Re)}};Ee.push(ot),sn.addKeyMap(ot)}return()=>{for(let Ue of Ee)sn.removeKeyMap(Ue)}}},[sn]),(0,ye.useEffect)(()=>{Ot!==Vi&&Wi(Ot)},[Ot]),(0,tr.Z)(()=>{if(!Ve&&br>0){let Ee=new Date().getTime(),Ue=window.sessionStorage.getItem(zi);Ee>=br+ar&&(!Ue||Ue!==Mr)&&(window.sessionStorage.setItem(zi,Mr),sr(!0))}},ar),(0,ye.useEffect)(()=>{Si(xn)},[sn,xn]),(0,ye.useEffect)(()=>{sn&&di&&sn.focus()},[sn,di]),(0,ye.useEffect)(()=>{if(En&&sn){let Ee=function(Re){let ot=Re.target;if(ao.current){let lt=ot.scrollTop/ot.scrollHeight;ao.current.scrollTop=ao.current.scrollHeight*lt}};const Ue=sn.getScrollerElement();return Ue.addEventListener("scroll",Ee),()=>{Ue.removeEventListener("scroll",Ee)}}},[sn,En]),(0,ye.useEffect)(()=>{if(sn&&Hn){let Ee=function(Ue,Re){Hn(Ue,Re)};return sn.on("beforeChange",Ee),()=>{sn.off("beforeChange",Ee)}}},[sn,Hn]),(0,ye.useEffect)(()=>{if(sn&&Bn){let Ee=function(){Bn(sn.getValue())};return sn.on("blur",Ee),()=>{sn.off("blur",Ee)}}},[sn,Bn]);function Vn(Ee,Ue){var Re=Ee.getDoc(),ot=Re.getCursor(),lt=Re.getLine(ot.line),Wt=lt.charAt(ot.ch-1),Vt=lt.lastIndexOf("@\u2581@",ot.ch),tn=lt.lastIndexOf("@\u2581\u2581@",ot.ch),Ln=Vt>tn?Vt:tn,Wn=Vt>tn?3:4;if(yr.indexOf(Wt)===-1)return null;if(console.log("change1:",Ue,Ee,lt,ot,Ln,Vt,tn,Wt),Ln>=0&&ot.ch-Ln<5){var mn=Ln+Wn;return Re.replaceRange("",{line:ot.line,ch:Ln},{line:ot.line,ch:mn}),{line:ot.line,ch:mn}}return null}(0,ye.useEffect)(()=>{if(sn){let Ee=function(Ue,Re){const ot=Ue.getValue();Kr(ot),Hi(new Date().getTime()),Ue.getScrollerElement().dispatchEvent(new CustomEvent("scroll")),xt&&(Dn?xt(ot,Ft(ot)):xt(ot))};return sn.on("change",Ee),()=>{sn.off("change",Ee)}}},[sn,xt]),(0,ye.useEffect)(()=>{if(sn)if(yt==null)sn.setValue(""),Kr("");else{const Ee=window.scrollY||window.pageYOffset;yt!==sn.getValue()&&(sn.setValue(yt),Kr(yt),sn.setCursor(Pi?1:sn.lineCount(),0),window.scrollTo(0,Ee))}},[sn,yt]);const $t=(0,ye.useCallback)(Ee=>{const Ue=sn.getCursor(),Re=sn.getSelection();let ot=Re.split(`
|
|
`);switch(Ee){case"bold":return sn.replaceSelection("**"+Re+"**"),Re===""&&sn.setCursor(Ue.line,Ue.ch+2),sn.focus();case"italic":return sn.replaceSelection("*"+Re+"*"),Re===""&&sn.setCursor(Ue.line,Ue.ch+1),sn.focus();case"code":return sn.replaceSelection("`"+Re+"`"),Re===""&&sn.setCursor(Ue.line,Ue.ch+1),sn.focus();case"inline-latex":return Pr("inline-latex"),sn.focus();case"latex":return sn.replaceSelection("```latex\n"+Re+"\n```"),sn.setCursor(Ue.line+1,Re.length+1),sn.focus();case"line-break":return sn.replaceSelection(`<br/>
|
|
`),sn.focus();case"list-ul":return Re===""?sn.replaceSelection("- "+Re):sn.replaceSelection(ot.map(lt=>lt===""?"":`- ${lt}`).join(`
|
|
`)),sn.focus();case"list-ol":return Re===""?sn.replaceSelection("1. "+Re):sn.replaceSelection(ot.map((lt,Wt)=>lt===""?"":`${Wt+1}. ${lt}`).join(`
|
|
`)),sn.focus();case"add-null-ch":return Re===""&&sn.setCursor(Ue.line,Ue.ch),sn.replaceSelection(Xi),sn.focus();case"add-signal":return Re===""&&sn.setCursor(Ue.line,Ue.ch),sn.replaceSelection(Ce),sn.focus();case"add-multiple":return Re===""&&sn.setCursor(Ue.line,Ue.ch),sn.replaceSelection(yr),sn.focus();case"inster-template-1":return Re===""&&sn.setCursor(Ue.line,Ue.ch),sn.replaceSelection(Sn),sn.focus();case"eraser":return sn.setValue(""),sn.focus();case"trigger-watch":return Si(!En),sn.focus();case"trigger-full-screen":return Wi(!Vi),sn.focus();case bn:Pr(bn);return;case wi:Pr(wi);return;case Un:Pr(Un);return;case pi:Pr(pi);return;case"maths-latex":Pr("maths-latex");return;case ti:Pr(ti);return;case Yi:Pr(Yi);return;default:throw new Error}},[sn,En,Vi]),Te=(0,ye.useCallback)((Ee,Ue)=>{var Re,ot,lt,Wt,Vt,tn;switch(Pr(""),$i){case bn:const{title:fi,link:ut}=Ee;return sn.replaceSelection(`[${fi}](${ut})`),sn.focus();case wi:const{language:Qn,content:ri}=Ee;return sn.replaceSelection(["```"+Qn,ri,"```"].join(`
|
|
`)),sn.focus();case"maths-latex":for(var Ln=atob(Ee),Wn=new Uint8Array(Ln.length),mn=0;mn<Ln.length;mn++)Wn[mn]=Ln.charCodeAt(mn);var ei=new Blob([Wn],{type:"image/png"});(0,rn.I)(ei,kr=>{kr.id?sn.replaceSelection(``):(kr==null?void 0:kr.status)===401&&(document.location.href="/user/login")});break;case"inline-latex":sn.replaceSelection("`$$"+Ee+"$$`");break;case Un:case pi:case vn:const{src:jn,alt:oi}=Ee,xi=Ue,Ni=(lt=(ot=(Re=xi==null?void 0:xi.name)==null?void 0:Re.split("."))==null?void 0:ot.pop)==null?void 0:lt.call(ot);return((Wt=xi==null?void 0:xi.type)==null?void 0:Wt.indexOf("image"))>-1||!(xi!=null&&xi.type)?xi!=null&&xi.align||xi!=null&&xi.width?sn.replaceSelection(`<p style="text-align:${xi.align||"initial"}"><img width="${xi.width?xi.width+"%":"initial"}" src="${jn}" alt="${oi||""}" /></p>`):sn.replaceSelection(`<img width="100%" src="${jn}" alt="${oi||""}" />`):((Vt=xi==null?void 0:xi.type)==null?void 0:Vt.indexOf("video"))>-1?sn.replaceSelection(`<video width="100%" controls src="${jn}"></video>`):((tn=xi==null?void 0:xi.type)==null?void 0:tn.indexOf("pdf"))>-1?sn.replaceSelection(`<a href="${jn}?type=${xi.type}&disposition=inline" target="_blank">${xi.name}</a>`):Gn.includes(Ni)?sn.replaceSelection(`<a href="${jn}?type=office&disposition=inline" target="_blank">${xi.name}</a>`):sn.replaceSelection(`[${xi.name}](${jn})`),sn.focus();case Yi:const{row:ki,col:Bi,align:Oi}=Ee;let cr=`
|
|
`;for(let kr=0;kr<ki;kr++){let Hr=[],Zr=[];for(let Fi=0;Fi<Bi;Fi++)kr===1&&Zr.push(rr[Oi]),Hr.push(" ");kr===1&&(cr+=`| ${Zr.join(" | ")} |
|
|
`),cr+=`| ${Hr.join(Bi===1?"":" | ")} |
|
|
`}return sn.replaceSelection(cr+`
|
|
`),sn.focus();default:throw new Error}},[sn,$i]),He=(0,ye.useMemo)(()=>{switch($i){case bn:return ye.createElement(ci,{callback:Te,onCancel:qe});case wi:return ye.createElement(Fn.Z,{callback:Te,onCancel:qe});case Un:return ye.createElement(rn.Z,{callback:Te,onCancel:qe});case ti:return ye.createElement(Bt,{callback:Te,onCancel:qe});case Yi:return ye.createElement(Yt,{callback:Te,onCancel:qe});case"maths-latex":return ye.createElement(jt,{showSaveButton:!0,callback:Te});case"inline-latex":return ye.createElement(Xt.Z,{showSaveButton:!0,callback:Te});default:return null}},[$i]);function qe(){Pr("")}(0,ye.useEffect)(()=>{if(Br.current){let Ee=function(Vt){lt=!0,Wt=Vt.pageY},Ue=function(){lt=!1},Re=function(Vt){if(lt){let tn=Vt.pageY-Wt;tn<0&&(tn=0),tn>300&&(tn=300);let Ln=Yn+tn+"px";Gi(Ln)}},ot=Br.current,lt=!1,Wt=0;return ot.addEventListener("mousedown",Ee),document.addEventListener("mousemove",Re),document.addEventListener("mouseup",Ue),()=>{ot.removeEventListener("mousedown",Ee),document.removeEventListener("mousemove",Re),document.removeEventListener("mouseup",Ue)}}},[sn,Br]),(0,ye.useEffect)(()=>{Gi(Yn)},[Yn]);const St=dr(Ct),It=dr(er),en={width:St,height:It},tt=(0,ye.useMemo)(()=>{if(br){let Ee=new Date(br),Ue=Ee.getHours(),Re=Ee.getMinutes(),ot=Ee.getSeconds();return Ue=Ue<10?"0"+Ue:Ue,Re=Re<10?"0"+Re:Re,ot=ot<10?"0"+ot:ot,`${Ue}:${Re}:${ot}`}return 0},[br]),Ft=Ee=>{const Ue=[];if(Dn){let Re=-1;Ee=Ee.replace(/(@▁▁@|@▁@)/g,function(ot,lt,Wt){Ue.push({multiLine:ot!==Ce})})}return Ue};function Gt(){window.sessionStorage.removeItem(zi),sr(!1),Hi(0)}function Rt(){sr(!1),Hi(0),sn.setValue(window.sessionStorage.getItem(zi))}(0,ye.useEffect)(()=>{Cn[$i]&&$i!==pi&&$i!==ti&&setTimeout(()=>{const Ee=document.getElementsByClassName("markdown-popup-form")[0],Ue=window.innerWidth/2-Ee.offsetWidth/2,Re=window.innerHeight/2-Ee.offsetHeight/2;bi(Ue),Nr(Re)},0)},[$i]);const on=Ee=>{Ee.preventDefault();const Ue=Ee.clientX-yn,Re=Ee.clientY-Cr;document.body.onmousemove=ot=>{let lt=ot.clientX-Ue,Wt=ot.clientY-Re;const Vt=document.getElementsByClassName("markdown-popup-form")[0],tn=window.innerWidth-Vt.offsetWidth,Ln=window.innerHeight-Vt.offsetHeight;lt=Math.max(0,Math.min(lt,tn)),Wt=Math.max(0,Math.min(Wt,Ln)),li(ot.clientX,ot.clientY,Ue,Re)&&(bi(lt),Nr(Wt))},document.body.onmouseup=function(){document.body.onmousemove=null}},li=(Ee,Ue,Re,ot)=>{const lt=document.body.clientHeight,Wt=document.body.clientWidth;return Ee<20&&Re>Ee||Ee>Wt-20&&Re<Ee||Ue<20&&ot>Ue||Ue>lt-20&&ot<Ue?(document.body.onmousemove=null,document.body.onmouseup=null,!1):!0};return ye.createElement(ye.Fragment,null,ye.createElement("div",{className:"markdown-editor-wrapper",ref:Ur},ye.createElement("div",{className:`markdown-editor-container ${Ei} ${En?"on-preview":""} ${$n?"mini":""} ${Vi?"full-screen":""}`,style:en},ye.createElement(st,{insertTemp:ai,watch:En,fullScreen:Vi,showNullButton:mt,showNullProgramButton:Dn,onActionCallback:$t,hidetoolBar:An,extraUse:Di}),ye.createElement("div",{className:"markdown-editor-body"},ye.createElement("div",{className:"codemirror-container"},ye.createElement("textarea",{ref:to,placeholder:_i})),En?ye.createElement("div",{ref:ao,className:"preview-container"},Pn==="stex"&&ye.createElement(Ke,{value:Mr}),Pn!=="stex"&&ye.createElement(zt.Z,{disabledFill:yi,showProgramFill:Dn,value:Mr})):null))),fr?ye.createElement("a",{ref:Br,className:"editor-resize"}):null,$i===pi&&ye.createElement(Rn,{callback:Te,onCancel:qe}),$i===ti&&ye.createElement(Bt,{callback:Te,onCancel:qe}),ye.createElement(Ye.Z,null,Cn[$i]&&$i!==pi&&$i!==ti?ye.createElement(Xn.default,{maskClosable:!1,centered:!0,style:{position:"absolute",left:yn,top:Cr},title:ye.createElement("div",{style:{cursor:"move"},onMouseDown:on},Cn[$i]),open:!0,onCancel:qe,footer:null,destroyOnClose:!0,width:$i===ti?"1200px":null,height:$i===ti?"80vh":null,className:"markdown-popup-form"},He):null))}},17077:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Ie},I:function(){return st}});var ye=De(28284),nt=De(6767),it=De(37568),Dt=De(77736),Mt=De(71051),ze=De(47889),dt=De(99571),Kt=De(46699),Et=De(59301),Me=De(59301),zt=Object.defineProperty,Ke=Object.defineProperties,Ht=Object.getOwnPropertyDescriptors,Ne=Object.getOwnPropertySymbols,ne=Object.prototype.hasOwnProperty,te=Object.prototype.propertyIsEnumerable,de=(Ye,Xe,At)=>Xe in Ye?zt(Ye,Xe,{enumerable:!0,configurable:!0,writable:!0,value:At}):Ye[Xe]=At,le=(Ye,Xe)=>{for(var At in Xe||(Xe={}))ne.call(Xe,At)&&de(Ye,At,Xe[At]);if(Ne)for(var At of Ne(Xe))te.call(Xe,At)&&de(Ye,At,Xe[At]);return Ye},ge=(Ye,Xe)=>Ke(Ye,Ht(Xe));const{useForm:me}=ye.default,Se={width:280,marginRight:10},be={labelCol:{span:5},wrapperCol:{span:19}};var Ie=({callback:Ye,onCancel:Xe})=>{const[At]=me();let ft=(0,Et.useRef)();function Nt(kn){ft.current.width=At.getFieldValue("width"),ft.current.align=At.getFieldValue("align"),Ye(kn,ft.current)}function Lt(kn,un){if(kn.status===-1){nt.ZP.error(kn.message);return}At.setFieldsValue({src:`/api/attachments/${kn.id}`,type:un.type})}function ln(kn){let un=kn.target.files[0];ft.current=un,st(un,Lt)}return Me.createElement(ye.default,ge(le({form:At},be),{className:"upload-image-panel",onFinish:Nt,style:{width:470,overflow:"hidden"}}),Me.createElement(ye.default.Item,{label:"\u56FE\u7247\u5730\u5740",required:!0},Me.createElement("div",{className:"flex-container"},Me.createElement(ye.default.Item,{noStyle:!0,name:"src",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u56FE\u7247\u5730\u5740"}]},Me.createElement(it.default,{style:Se})),Me.createElement(Ze,{onFileChange:ln}))),Me.createElement(ye.default.Item,{label:"\u56FE\u7247\u63CF\u8FF0",name:"alt"},Me.createElement(it.default,{style:{width:264}})),Me.createElement(ye.default.Item,{label:"\u56FE\u7247\u5BBD\u5EA6",name:"width"},Me.createElement(Dt.Z,null,Me.createElement(ye.default.Item,{name:"width",style:{margin:0}},Me.createElement(Mt.Z,{style:{width:264}})),Me.createElement("span",{className:"ml8"},"%"))),Me.createElement(ye.default.Item,{label:"\u5BF9\u9F50\u65B9\u5F0F",name:"align"},Me.createElement(ze.ZP.Group,{name:"align",defaultValue:1,options:[{value:"left",label:"\u5DE6\u5BF9\u9F50"},{value:"center",label:"\u5C45\u4E2D\u5BF9\u9F50"},{value:"right",label:"\u53F3\u5BF9\u9F50"}]})),Me.createElement("aside",null,Me.createElement(ye.default.Item,{style:{textAlign:"right",position:"relative",right:-98}},Me.createElement(dt.ZP,{type:"primary",htmlType:"submit",style:{marginRight:10}},"\u786E\u5B9A"),Me.createElement(dt.ZP,{type:"default",onClick:Xe},"\u53D6\u6D88"))))};function Ze({onFileChange:Ye}){return Me.createElement("label",{className:"upload-button",style:{cursor:"pointer"}},"\u672C\u5730\u4E0A\u4F20",Me.createElement("input",{type:"file",onChange:Ye}))}function st(Ye,Xe){if(!Ye)throw new String("\u6CA1\u6709\u6587\u4EF6");let At=new FormData;At.append("editormd-image-file",Ye),At.append("file_param_name","editormd-image-file"),At.append("byxhr","true");var ft=new window.XMLHttpRequest;ft.withCredentials=!0,ft.addEventListener("load",function(Nt){Xe(JSON.parse(Nt.target.responseText),Ye)},!1),ft.addEventListener("error",function(Nt){console.error(Nt)},!1),ft.open("POST",`${Kt.KI}/api/attachments.json`),ft.send(At)}},91558:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return it}});var ye=De(59301),nt=De(4676);class it extends ye.Component{constructor(Mt){super(Mt);const ze=window.document;this.node=ze.createElement("div"),ze.body.appendChild(this.node)}render(){const{children:Mt}=this.props;return(0,nt.createPortal)(Mt,this.node)}componentWillUnmount(){window.document.body.removeChild(this.node)}}},75975:function(Jn,gi,De){"use strict";De.d(gi,{SV:function(){return an},ZP:function(){return et}});var ye=De(59301),nt=De(76374);const it={keywords:["print","auto","break","case","char","const","continue","default","do","double","else","enum","extern","float","for","goto","if","int","long","register","return","short","signed","sizeof","static","struct","switch","typedef","union","unsigned","void","volatile","while"]},Dt={quickKey:[{label:"main",content:["public static void main(String[] args) {"," $0","}"].join(`
|
|
`)},{label:"System.out.println",content:["System.out.println($0)"].join(`
|
|
`)},{label:"System.out.print",content:["System.out.print($0)"].join(`
|
|
`)}],keywords:["abstract","continue","for","new","switch","assert","default","goto","package","synchronized","boolean","do","if","private","this","break","double","implements","protected","throw","byte","else","import","public","throws","case","enum","instanceof","return","transient","catch","extends","int","short","try","char","final","interface","static","void","class","finally","long","strictfp","volatile","const","float","native","super","while","true","false"]},Mt={keywords:["abstract","amp","array","auto","bool","break","case","catch","char","class","const","constexpr","const_cast","continue","cpu","decltype","default","delegate","delete","do","double","dynamic_cast","each","else","enum","event","explicit","export","extern","false","final","finally","float","friend","gcnew","generic","goto","in","initonly","inline","int","interface","interior_ptr","internal","literal","long","mutable","namespace","new","noexcept","nullptr","__nullptr","operator","override","partial","pascal","pin_ptr","private","property","protected","public","ref","register","reinterpret_cast","restrict","return","safe_cast","sealed","short","signed","sizeof","static","static_assert","static_cast","struct","switch","template","this","thread_local","throw","tile_static","true","try","typedef","typeid","typename","union","unsigned","using","virtual","void","volatile","wchar_t","where","while","_asm","_based","_cdecl","_declspec","_fastcall","_if_exists","_if_not_exists","_inline","_multiple_inheritance","_pascal","_single_inheritance","_stdcall","_virtual_inheritance","_w64","__abstract","__alignof","__asm","__assume","__based","__box","__builtin_alignof","__cdecl","__clrcall","__declspec","__delegate","__event","__except","__fastcall","__finally","__forceinline","__gc","__hook","__identifier","__if_exists","__if_not_exists","__inline","__int128","__int16","__int32","__int64","__int8","__interface","__leave","__m128","__m128d","__m128i","__m256","__m256d","__m256i","__m64","__multiple_inheritance","__newslot","__nogc","__noop","__nounwind","__novtordisp","__pascal","__pin","__pragma","__property","__ptr32","__ptr64","__raise","__restrict","__resume","__sealed","__single_inheritance","__stdcall","__super","__thiscall","__try","__try_cast","__typeof","__unaligned","__unhook","__uuidof","__value","__virtual_inheritance","__w64","__wchar_t"],operators:["=",">","<","!","~","?",":","==","<=",">=","!=","&&","||","++","--","+","-","*","/","&","|","^","%","<<",">>",">>>","+=","-=","*=","/=","&=","|=","^=","%=","<<=",">>=",">>>="],quickKey:[{label:"ifelse",content:["if (${1:condition}) {"," $0","} else {"," ","}"].join(`
|
|
`)},{label:"include",content:"include<$0>"},{label:"printf",content:"printf($0)"},{label:"system",content:'system("$0")'},{label:"main",content:["int main () {"," $0","}"].join(`
|
|
`)},{label:"if",content:["if () {"," $0","}"].join(`
|
|
`)},{label:"for",content:["for(int j=0 ; j<10; j++){"," $0","}"].join(`
|
|
`)},{label:"trycatch",content:["try{"," $0","}catch(ExceptionName e){","}"].join(`
|
|
`)},{label:"using namespace std;",content:["using namespace std;"].join(`
|
|
`)},{label:"include <iostream>",content:["#include <iostream>"].join(`
|
|
`)},{label:"include <vector>",content:["#include <vector>"].join(`
|
|
`)},{label:"include <cstdio>",content:["#include <cstdio>"].join(`
|
|
`)},{label:"include <cstring>",content:["#include <cstring>"].join(`
|
|
`)},{label:"include <sstream>",content:["#include <sstream>"].join(`
|
|
`)},{label:"include <fstream>",content:["#include <fstream>"].join(`
|
|
`)},{label:"include <map>",content:["#include <map>"].join(`
|
|
`)},{label:"include <string>",content:["#include <string>"].join(`
|
|
`)},{label:"include <cmath>",content:["#include <cmath>"].join(`
|
|
`)}]},ze={keywords:["and","as","assert","break","class","continue","def","del","elif","else","except","exec","finally","for","from","global","if","import","in","is","lambda","None","not","or","pass","raise","return","self","try","while","with","yield","int","float","long","complex","hex","abs","all","any","apply","basestring","bin","bool","buffer","bytearray","callable","chr","classmethod","cmp","coerce","compile","complex","delattr","dict","dir","divmod","enumerate","eval","execfile","file","filter","format","frozenset","getattr","globals","hasattr","hash","help","id","input","intern","isinstance","issubclass","iter","len","locals","list","map","max","memoryview","min","next","object","oct","open","ord","pow","print","property","reversed","range","raw_input","reduce","reload","repr","reversed","round","set","setattr","slice","sorted","staticmethod","str","sum","super","tuple","type","unichr","unicode","vars","xrange","zip","True","False","__dict__","__methods__","__members__","__class__","__bases__","__name__","__mro__","__subclasses__","__init__","__import__"],quickKey:[{label:"print",content:["print($0)"].join(`
|
|
`)}]},dt={keywords:["asInstanceOf","catch","class","classOf","def","do","else","extends","finally","for","foreach","forSome","if","import","isInstanceOf","macro","match","new","object","package","return","throw","trait","try","type","until","val","var","while","with","yield","given","enum","then"],quickKey:[{label:"println",content:["println($0)"].join(`
|
|
`)}]};var Kt=De(53184),Et=De.n(Kt),Me=Object.defineProperty,zt=Object.defineProperties,Ke=Object.getOwnPropertyDescriptors,Ht=Object.getOwnPropertySymbols,Ne=Object.prototype.hasOwnProperty,ne=Object.prototype.propertyIsEnumerable,te=(Bt,Ut,gt)=>Ut in Bt?Me(Bt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Bt[Ut]=gt,de=(Bt,Ut)=>{for(var gt in Ut||(Ut={}))Ne.call(Ut,gt)&&te(Bt,gt,Ut[gt]);if(Ht)for(var gt of Ht(Ut))ne.call(Ut,gt)&&te(Bt,gt,Ut[gt]);return Bt},le=(Bt,Ut)=>zt(Bt,Ke(Ut)),ge=(Bt,Ut,gt)=>new Promise((Pt,Tt)=>{var Yt=wn=>{try{On(gt.next(wn))}catch(nn){Tt(nn)}},dn=wn=>{try{On(gt.throw(wn))}catch(nn){Tt(nn)}},On=wn=>wn.done?Pt(wn.value):Promise.resolve(wn.value).then(Yt,dn);On((gt=gt.apply(Bt,Ut)).next())});const me={languages:["c","abap","apex","azcli","bat","cameligo","clojure","coffee","cpp","csharp","csp","css","dockerfile","fsharp","go","graphql","handlebars","html","ini","java","javascript","json","kotlin","less","lua","markdown","mips","msdax","mysql","objective-c","pascal","pascaligo","perl","pgsql","php","postiats","powerquery","powershell","pug","python","r","razor","redis","redshift","restructuredtext","ruby","rust","sb","scheme","scss","shell","solidity","sophia","sql","st","swift","tcl","twig","vb","xml","yaml'"],tables:{users:["name","id","email","phone","password"],roles:["id","name","order","created_at","updated_at","deleted_at"]}},Se=(Bt,Ut)=>Ut.map(gt=>({label:gt,kind:Bt.languages.CompletionItemKind.Keyword,insertText:gt})),be=Bt=>Object.keys(me.tables).map(Ut=>({label:Ut,kind:Bt.languages.CompletionItemKind.Variable,insertText:Ut})),Ie=(Bt,Ut)=>{const gt=me.tables[Bt];return gt?gt.map(Pt=>({label:Pt,kind:Ut.languages.CompletionItemKind.Field,insertText:Pt})):[]};function Ze(Bt,Ut,gt,Pt,Tt){let Yt=Ut.getWordUntilPosition(gt),dn={startLineNumber:gt.lineNumber,endLineNumber:gt.lineNumber,startColumn:Yt.startColumn,endColumn:Yt.endColumn},On=Pt.map(wn=>({label:wn,kind:Bt.languages.CompletionItemKind.Keyword,insertText:wn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:dn}));return Tt.map(wn=>{On.push(le(de({},wn),{range:dn}))}),On}var st=Bt=>{me.languages.map(Tt=>(Bt.languages.registerDocumentFormattingEditProvider(Tt,{provideDocumentFormattingEdits(Yt,dn,On){return ge(this,null,function*(){const wn=Et()(Yt.getValue(),{indent_size:"2",indent_char:" ",max_preserve_newlines:"2",preserve_newlines:!0,keep_array_indentation:!0,break_chained_methods:!1,indent_scripts:"normal",brace_style:"collapse",space_before_conditional:!0,unescape_strings:!1,jslint_happy:!1,end_with_newline:!0,wrap_line_length:"0",indent_inner_html:!1,comma_first:!1,e4x:!1,indent_empty_lines:!1});return[{range:Yt.getFullModelRange(),text:wn}]})}}),Tt));const Ut=Mt.quickKey.map(Tt=>({label:Tt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Tt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),gt=ze.quickKey.map(Tt=>({label:Tt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Tt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet})),Pt=Dt.quickKey.map(Tt=>({label:Tt.label,kind:Bt.languages.CompletionItemKind.Method,insertText:Tt.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet}));Bt.languages.registerCompletionItemProvider("cpp",{provideCompletionItems:function(Tt,Yt){var dn=Tt.getWordUntilPosition(Yt),On={startLineNumber:Yt.lineNumber,endLineNumber:Yt.lineNumber,startColumn:dn.startColumn,endColumn:dn.endColumn},wn=Tt.getLineContent(Yt.lineNumber).substring(dn.startColumn-2,dn.endColumn);return{suggestions:[...Mt.keywords.map(nn=>({label:nn,kind:Bt.languages.CompletionItemKind.Function,documentation:nn,insertText:nn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On})),...Mt.quickKey.map(nn=>({label:nn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:nn.content,insertText:wn.startsWith("#")?nn.content.replace(/#/,""):nn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On}))]}}}),Bt.languages.registerCompletionItemProvider("c",{provideCompletionItems:function(Tt,Yt){var dn=Tt.getWordUntilPosition(Yt),On={startLineNumber:Yt.lineNumber,endLineNumber:Yt.lineNumber,startColumn:dn.startColumn,endColumn:dn.endColumn};return{suggestions:[...it.keywords.map(wn=>({label:wn,kind:Bt.languages.CompletionItemKind.Function,documentation:wn,insertText:wn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On}))]}}}),Bt.languages.registerCompletionItemProvider("java",{provideCompletionItems:function(Tt,Yt){var dn=Tt.getWordUntilPosition(Yt),On={startLineNumber:Yt.lineNumber,endLineNumber:Yt.lineNumber,startColumn:dn.startColumn,endColumn:dn.endColumn},wn=Tt.getLineContent(Yt.lineNumber).substring(dn.startColumn-2,dn.endColumn);return{suggestions:[...Dt.keywords.map(nn=>({label:nn,kind:Bt.languages.CompletionItemKind.Function,documentation:nn,insertText:nn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On})),...Dt.quickKey.map(nn=>({label:nn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:nn.content,insertText:wn.startsWith("#")?nn.content.replace(/#/,""):nn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On}))]}}}),Bt.languages.registerCompletionItemProvider("scala",{provideCompletionItems:function(Tt,Yt){var dn=Tt.getWordUntilPosition(Yt),On={startLineNumber:Yt.lineNumber,endLineNumber:Yt.lineNumber,startColumn:dn.startColumn,endColumn:dn.endColumn},wn=Tt.getLineContent(Yt.lineNumber).substring(dn.startColumn-2,dn.endColumn);return{suggestions:[...dt.keywords.map(nn=>({label:nn,kind:Bt.languages.CompletionItemKind.Function,documentation:nn,insertText:nn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On})),...dt.quickKey.map(nn=>({label:nn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:nn.content,insertText:wn.startsWith("#")?nn.content.replace(/#/,""):nn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On}))]}}}),Bt.languages.registerCompletionItemProvider("python",{provideCompletionItems:function(Tt,Yt){var dn=Tt.getWordUntilPosition(Yt),On={startLineNumber:Yt.lineNumber,endLineNumber:Yt.lineNumber,startColumn:dn.startColumn,endColumn:dn.endColumn},wn=Tt.getLineContent(Yt.lineNumber).substring(dn.startColumn-2,dn.endColumn);return{suggestions:[...ze.keywords.map(nn=>({label:nn,kind:Bt.languages.CompletionItemKind.Function,documentation:nn,insertText:nn,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On})),...ze.quickKey.map(nn=>({label:nn.label,kind:Bt.languages.CompletionItemKind.Function,documentation:nn.content,insertText:wn.startsWith("#")?nn.content.replace(/#/,""):nn.content,insertTextRules:Bt.languages.CompletionItemInsertTextRule.InsertAsSnippet,range:On}))]}}})};const Ye="\u8BE5\u4EFB\u52A1\u5173\u5361\u8BBE\u7F6E\u4E86\u7981\u6B62\u590D\u5236\u7C98\u8D34\uFF0C\u8BF7\u624B\u52A8\u8F93\u5165\u4EE3\u7801\u3002";var Xe=Object.defineProperty,At=(Bt,Ut,gt)=>Ut in Bt?Xe(Bt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Bt[Ut]=gt,ft=(Bt,Ut,gt)=>At(Bt,typeof Ut!="symbol"?Ut+"":Ut,gt);const Nt=class Ex{constructor(Ut,gt,Pt){this.placeholder=Ut,this.editor=gt,this.monaco=Pt,gt.onDidChangeModelContent(()=>this.onDidChangeModelContent()),this.onDidChangeModelContent()}onDidChangeModelContent(){this.editor.getValue()===""?this.editor.addContentWidget(this):this.editor.removeContentWidget(this)}getId(){return Ex.ID}getDomNode(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.style.width="max-content",this.domNode.textContent=this.placeholder,this.domNode.style.fontStyle="initial",this.domNode.style.color="#D7D7D7",this.domNode.style.pointerEvents="none",this.editor.applyFontInfo(this.domNode)),this.domNode}getPosition(){return{position:{lineNumber:1,column:1},preference:[this.monaco.editor.ContentWidgetPositionPreference.EXACT]}}dispose(){this.editor.removeContentWidget(this)}};ft(Nt,"ID","editor.widget.placeholderHint");var ln=Nt,kn=De(96236),un=De(6767),_t=De(25399),hn=De(89392),vt=De(49535),$e=De(56102),gn=Object.defineProperty,ci=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,rn=Object.getOwnPropertySymbols,Xn=Object.prototype.hasOwnProperty,Nn=Object.prototype.propertyIsEnumerable,mi=(Bt,Ut,gt)=>Ut in Bt?gn(Bt,Ut,{enumerable:!0,configurable:!0,writable:!0,value:gt}):Bt[Ut]=gt,Zt=(Bt,Ut)=>{for(var gt in Ut||(Ut={}))Xn.call(Ut,gt)&&mi(Bt,gt,Ut[gt]);if(rn)for(var gt of rn(Ut))Nn.call(Ut,gt)&&mi(Bt,gt,Ut[gt]);return Bt},Rn=(Bt,Ut)=>ci(Bt,Fn(Ut)),wt=(Bt,Ut)=>{var gt={};for(var Pt in Bt)Xn.call(Bt,Pt)&&Ut.indexOf(Pt)<0&&(gt[Pt]=Bt[Pt]);if(Bt!=null&&rn)for(var Pt of rn(Bt))Ut.indexOf(Pt)<0&&Nn.call(Bt,Pt)&&(gt[Pt]=Bt[Pt]);return gt},Ai=(Bt,Ut,gt)=>new Promise((Pt,Tt)=>{var Yt=wn=>{try{On(gt.next(wn))}catch(nn){Tt(nn)}},dn=wn=>{try{On(gt.throw(wn))}catch(nn){Tt(nn)}},On=wn=>wn.done?Pt(wn.value):Promise.resolve(wn.value).then(Yt,dn);On((gt=gt.apply(Bt,Ut)).next())});function Kn(Bt){return/^\d+$/.test(Bt)?`${Bt}px`:Bt}function je(){}let Le=!1;const we={"Python3.6":"python","Python2.7":"python",Dynamips:"cpp",Java:"java",Web:"php",Html:"html",Hive:"sql",Hadoop:"java",SDL:"cpp",PHP:"php",Matlab:"python",Git:"python",Python:"python","C/C++":"cpp","C++":"cpp",C:"cpp",Ruby:"ruby",Shell:"shell",JavaScript:"javascript",Perl6:"perl",Kotlin:"kotlin",Elixir:"elixir",Android:"java",JavaWeb:"java",Go:"go",Spark:"sql",MachineLearning:"python",Verilog:"xml","Verilog/VNC":"xml",Docker:"dockerfile","C#":"csharp",SQLite3:"sql",Oracle:"sql",Vhdl:"vhdl",R:"r",Swift:"swift",SQLServer:"mysql",MySQL:"mysql",Mongo:"sql",PostgreSql:"pgsql",Hbase:"powershell",Sqoop:"sql",Nasm:"cpp",Kafka:"java",Flink:"java",Sml:"javascript",OpenGL:"cpp",Perl5:"perl",Orange:"python",Scala:"scale",solidity:"sol"};function Be(Bt=[]){let Ut=Bt;if(Array.isArray(Bt)){for(let gt=0;gt<Bt.length;gt++){let Pt=we[Bt[gt]];if(Pt)return Pt}return Ut[0]}return we[Ut]||Ut}let Ge=null;const ke=()=>Ai(void 0,null,function*(){try{yield navigator.clipboard.writeText(" "),console.log("\u5185\u5BB9\u5DF2\u81EA\u52A8\u590D\u5236\u5230\u526A\u8D34\u677F:")}catch(Bt){console.error("\u81EA\u52A8\u590D\u5236\u5931\u8D25:",Bt)}});var et=Bt=>{var Ut=Bt,{width:gt="100%",height:Pt="100%",value:Tt,language:Yt="javascript",style:dn={},options:On={},overrideServices:wn={},theme:nn="vs-dark",onEditBlur:jt,isCopy:Xt=!1,onSave:pn,autoHeight:bn=!1,forbidCopy:Un=!1,onChange:ti=je,editorDidMount:pi=je,onFocus:vn=je,onBreakPoint:wi=je,breakPointValue:Yi=[],filename:gr="educoder.txt",errorLine:rr,errorContent:tr="",highlightLine:vr,openBreakPoint:hr=!1,placeholder:ar="",showMiniMap:Xi=!0}=Ut,yr=wt(Ut,["width","height","value","language","style","options","overrideServices","theme","onEditBlur","isCopy","onSave","autoHeight","forbidCopy","onChange","editorDidMount","onFocus","onBreakPoint","breakPointValue","filename","errorLine","errorContent","highlightLine","openBreakPoint","placeholder","showMiniMap"]);const Ce=(0,ye.useRef)(),Sn=(0,ye.useRef)({}),Gn=(0,ye.useRef)(),dr=(0,ye.useRef)(),or=(0,ye.useRef)([]),Ii=(0,ye.useRef)(!1),Tn=(0,ye.useRef)(),Cn=(0,ye.useRef)(),Mn=(0,ye.useRef)(!1),[yt,xt]=(0,ye.useState)(!1);function Ct(){let Hn;return Ce.current&&(Hn=new nt.Z(_n=>{for(let Ei of _n)(Ei.target.offsetHeight>0||Ei.target.offsetWidth>0)&&Sn.current.instance.layout()}),Hn.observe(Ce.current)),Hn}function Yn(){un.ZP.warning({content:decodeURIComponent(Ye),key:"monaco-editor-tip"})}const $n=()=>{let Hn=Sn.current.instance;if(Tt!=null&&Hn&&yt){const _n=Hn.getModel();_n&&Tt!==_n.getValue()&&(Le=!0,_n.setValue(Tt),Hn.layout(),Le=!1)}};(0,ye.useEffect)(()=>{const Hn=vt.Z.subscribe("formatDocument",_n=>{var Ei;let si=Sn.current.instance;(Ei=si==null?void 0:si.getAction)==null||Ei.call(si,"editor.action.formatDocument").run()});return window.updateMonacoValue=_n=>{ti(_n)},Hn},[]),(0,ye.useEffect)(()=>{var Hn;let _n=Sn.current.instance;dr.current&&clearTimeout(dr.current),dr.current=setTimeout(()=>{$n()},500),Tt&&(Tt!=null&&Tt.length)&&((Hn=_n==null?void 0:_n.updateOptions)==null||Hn.call(_n,{lineNumbersMinChars:Math.max(Math.floor(Math.log10(Tt.split(/\r\n|\r|\n/g).length))+3,5)}))},[Tt,yt,Sn.current]),(0,ye.useEffect)(()=>{if(rr&&Sn.current&&Sn.current.instance){let _n=Sn.current.instance;_n.changeViewZones(function(Ei){var si=document.createElement("div");si.style.padding="10px 20px",si.style.width="calc(100% - 20px)",si.className="my-error-line-wrp",si.innerHTML=tr,Ei.addZone({afterLineNumber:rr||11,heightInLines:3,domNode:si})});var Hn={domNode:null,getId:function(){return"my.overlay.widget"},getDomNode:function(){return this.domNode||(this.domNode=document.createElement("div"),this.domNode.innerHTML="",this.domNode.style.width="100%",this.domNode.style.padding="20px 100px",this.domNode.style.right="0px",this.domNode.style.top="50px",this.domNode.style.position="relative",this.domNode.style.color="#333"),this.domNode},getPosition:function(){return null}};_n.addOverlayWidget(Hn),_n.revealPositionInCenter({lineNumber:20,column:1})}},[rr,Sn.current,yt]);const di=(Hn="",_n)=>{if(!Hn||Hn.trim()==="")return!0;const si=Sn.current.instance.getModel().getLineTokens(_n);let Pi=!1;for(let yi=0;yi<2;yi++)si.getStandardTokenType(yi)===1&&(Pi=!0);return Pi};(0,ye.useEffect)(()=>{var Hn;const _n=(Hn=Sn.current)==null?void 0:Hn.instance;if(_n&&yt&&Un){const Ei=_n.onDidBlurEditorWidget(()=>{Mn.current=!1}),si=_n.onDidFocusEditorText(()=>{Mn.current=!0});return()=>{Ei.dispose(),si.dispose()}}},[Sn.current,yt,Un]),(0,ye.useEffect)(()=>{var Hn;if((Hn=Sn.current)!=null&&Hn.instance&&yt&&hr){let _n=Sn.current.instance,Ei=_n.getModel();if(!Ei)return;(()=>{var Si;let Vi=[],Wi=[];const $i=Ei.getAllDecorations();for(let br of $i)br.options.className==="highlighted-line"&&(Vi.push((Si=br==null?void 0:br.range)==null?void 0:Si.startLineNumber),Wi.push(br==null?void 0:br.id));if(vr===Vi[0])return;Ei.deltaDecorations(Wi,[]);const Pr=Ei.getLineCount();vr&&vr<=Pr&&(_n.deltaDecorations([],[{range:new Ge.Range(vr,1,vr,Ei.getLineMaxColumn(vr)),options:{isWholeLine:!0,className:"highlighted-line"}}]),_n.revealLineInCenter(vr))})();const Pi=(Si=!1)=>{var Vi;let Wi=[],$i=[];const Pr=Ei.getAllDecorations();for(let br of Pr)br.options.linesDecorationsClassName==="breakpoints-select"&&(Wi.push((Vi=br==null?void 0:br.range)==null?void 0:Vi.startLineNumber),$i.push(br==null?void 0:br.id));if(Si)return{lines:Wi,ids:$i};wi(Wi)},yi=Si=>Ai(void 0,null,function*(){let Vi={range:new Ge.Range(Si,1,Si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}};yield Ei.deltaDecorations([],[Vi]),Pi()}),_i=Si=>Ai(void 0,null,function*(){let Vi=[];const Wi=_n.getLineDecorations(Si);for(let $i of Wi)$i.options.linesDecorationsClassName==="breakpoints-select"&&Vi.push($i.id);yield Ei.deltaDecorations(Vi,[]),Pi()}),Ri=Si=>{let Vi=_n.getLineDecorations(Si);for(let Wi of Vi)if(Wi.options.linesDecorationsClassName==="breakpoints-select")return!0;return!1};if(!(0,hn.isEqual)(Yi,Pi(!0).lines)){Ei.deltaDecorations(Pi(!0).ids,[]);const Si=Yi.map(Vi=>({range:new Ge.Range(Vi,1,Vi,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-select"}}));Ei.deltaDecorations([],Si)}const Di=_n.onDidChangeModelContent(Si=>{let Vi=_n.getPosition();if(Vi){let Wi=Vi.lineNumber;clearTimeout(Cn.current),Cn.current=setTimeout(()=>{di(Ei.getLineContent(Wi),Wi)?_i(Wi):Ri(Wi)?(_i(Wi),yi(Wi)):Pi()},100)}}),sn=_n.onMouseDown(Si=>{var Vi,Wi,$i;if(Si.target.detail&&(($i=(Wi=(Vi=Si.target)==null?void 0:Vi.element)==null?void 0:Wi.className)!=null&&$i.includes("line-numbers"))){let Pr=Si.target.position.lineNumber;if(di(Ei.getLineContent(Pr),Pr))return;Ri(Pr)?_i(Pr):yi(Pr)}}),pr=Si=>{let Vi={range:new Ge.Range(Si,1,Si,1),options:{isWholeLine:!1,linesDecorationsClassName:"breakpoints-fake"}};or.current=_n.deltaDecorations(or.current,[Vi])},Mr=()=>{or.current=_n.deltaDecorations(or.current,[])},Kr=_n.onMouseMove(Si=>{var Vi,Wi,$i;if(Mr(),Si.target.detail&&(($i=(Wi=(Vi=Si.target)==null?void 0:Vi.element)==null?void 0:Wi.className)!=null&&$i.includes("line-numbers"))){let Pr=Si.target.position.lineNumber;if(di(Ei.getLineContent(Pr),Pr))return;pr(Pr)}}),En=_n.onMouseLeave(()=>{Mr()});return()=>{Di.dispose(),sn.dispose(),Kr.dispose(),En.dispose()}}},[Sn.current,yt,Yi,vr,hr,Yt]),(0,ye.useEffect)(()=>{var Hn;(Hn=Sn.current)!=null&&Hn.instance&&hr&&Sn.current.instance.setPosition({lineNumber:0,column:0})},[vr]);function xn(){let Hn=Sn.current.instance;if(Hn){const _n=Hn.getSelection(),Ei=Sn.current.pastePos||{},si=new Ge.Range(Ei.startLineNumber||_n.endLineNumber,Ei.startColumn||_n.endColumn,Ei.endLineNumber||_n.endLineNumber,Ei.endColumn||_n.endColumn);setTimeout(()=>{Hn.executeEdits("",[{range:si,text:""}])},300)}}function ai(Hn){(window.navigator.platform.match("Mac")?Hn.metaKey:Hn.ctrlKey)&&Hn.keyCode==83&&(Hn.preventDefault(),pn())}const Pn=()=>{if(bn&&Sn.current.instance){const Hn=Sn.current.instance.getContentHeight();Ot(Hn<Pt?Pt:Hn)}else Ot(Pt)};function zi(Hn){var _n=document.createEvent("MouseEvents");_n.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),Hn.dispatchEvent(_n)}const fr=Hn=>{if(!Mn.current)return;const{keyCode:_n,ctrlKey:Ei,metaKey:si,target:Pi,type:yi}=Hn;return(yi==="paste"||(_n===67||_n===86)&&(si||Ei))&&Pi.nodeName==="TEXTAREA"&&(Yn(),Hn.preventDefault()),!1};function Ve(Hn,_n){var Ei=window.URL||window.webkitURL||window,si=new Blob([_n]),Pi=document.createElementNS("http://www.w3.org/1999/xhtml","a");Pi.href=Ei.createObjectURL(si),Pi.download=Hn,zi(Pi)}(0,ye.useEffect)(()=>{Pn()},[Pn]),(0,ye.useEffect)(()=>{Ce.current&&!yt&&Promise.all([De.e(8909),De.e(6656)]).then(De.bind(De,71448)).then(Hn=>{try{Ge=Hn,Sn.current.instance=Ge.editor.create(Ce.current,{value:Tt,language:Be(Yt),theme:nn,requireConfig:{"vs/nls":{availableLanguages:{"*":"zh-cn"}}},wordWrap:!0,autoIndent:!0,contextmenu:!0,formatOnType:!0,minimap:{enabled:Xi||!1}},wn);const _n=Sn.current.instance;let Pi=[...kn.BH._menuItems].find(Di=>Di[0]._debugName=="EditorContext")[1],yi=["editor.action.clipboardCopyWithSyntaxHighlightingAction","editor.action.quickCommand","editor.action.clipboardCopyAction","editor.action.clipboardPasteAction","editor.action.clipboardCutAction"],_i=(Di,sn)=>{var pr,Mr;let Kr=Di._first;do sn.includes((Mr=(pr=Kr.element)==null?void 0:pr.command)==null?void 0:Mr.id)&&Di._remove(Kr);while(Kr=Kr.next)};if(pi(_n,Ge),setTimeout(()=>{Pn(),Sn.current.instance.addAction({id:"d123123",label:"Download File",contextMenuGroupId:"9_cutcopypaste",run:()=>{Ve(gr||"educoder.txt",_n.getValue())}})},500),Sn.current.subscription=_n.onDidChangeModelContent(Di=>{Ii.current?clearTimeout(Tn.current):(Pn(),ti(_n.getValue(),Di)),Tn.current=setTimeout(()=>{Ii.current=!1},500)}),window.Monaco||st(Ge,Be(Yt)),Un&&(_i(Pi,yi),Ce.current.classList.add("noCopyPaste"),window.removeEventListener("keydown",fr),window.removeEventListener("paste",fr),window.addEventListener("keydown",fr),window.addEventListener("paste",fr)),window.Monaco=Ge,jt&&_n.onDidBlurEditorWidget(()=>{jt(_n.getValue())}),vn&&_n.onDidFocusEditorText(()=>{Un&&ke(),vn(_n.getValue())}),Un){ke();try{_n.onDidPaste(Di=>{const sn=_n.getSelection(),pr=Sn.current.pastePos||{},Mr=new Ge.Range(pr.startLineNumber||sn.endLineNumber,pr.startColumn||sn.endColumn,pr.endLineNumber||sn.endLineNumber,pr.endColumn||sn.endColumn);_n.executeEdits("",[{range:Di.range,text:""}])})}catch(Di){}}let Ri=Ct();return ar&&typeof ar=="string"&&new ln(ar,_n,Ge),xt(!0),()=>{const Di=Sn.current.instance;Di.dispose();const sn=Di.getModel();sn&&sn.dispose(),Sn.current.subscription&&Sn.current.subscription.dispose(),Ri.unobserve(Ce.current)}}catch(_n){}})},[]),(0,ye.useEffect)(()=>{if(Sn.current.instance&&yt)return document.addEventListener("keydown",ai,!1),()=>{document.removeEventListener("keydown",ai)}},[pn,yt]),(0,ye.useEffect)(()=>{let Hn=Sn.current.instance;if(Hn&&yt){let _n=Be(Yt);Ge.editor.setModelLanguage(Hn.getModel(),_n)}},[Yt,yt]),(0,ye.useEffect)(()=>{Sn.current.instance&&yt&&Ge.editor.setTheme(nn)},[nn,yt]),(0,ye.useEffect)(()=>{let Hn=Sn.current.instance;Gn.current=On,Hn&&yt&&(Hn.updateOptions(Zt({},On)),setTimeout(()=>{Hn.getModel().updateOptions(Zt({},On))},200))},[JSON.stringify(On),yt]),(0,ye.useEffect)(()=>{let Hn=Sn.current.instance;Hn&&yt&&Hn.layout()},[gt,Pt,yt]);const[mt,Dn]=(0,ye.useState)(Kn(gt)),[An,Ot]=(0,ye.useState)(Kn(Pt)),Bn=Rn(Zt({},dn),{width:mt,height:An,position:"relative"});return ye.createElement("div",{className:"my-monaco-editor",ref:Ce,style:Bn},Xt&&ye.createElement($e.CopyToClipboard,{text:Tt,onCopy:()=>un.ZP.success("\u590D\u5236\u6210\u529F")},ye.createElement(_t.Z,{title:"\u590D\u5236\u4EE3\u7801"},ye.createElement("div",{style:{position:"absolute",top:0,right:10,cursor:"pointer",zIndex:10,color:"#165DFF"}},ye.createElement("i",{className:"iconfont icon-fuzhi8",style:{fontSize:14}})," \u590D\u5236\u4EE3\u7801"))))};function an({width:Bt="100%",height:Ut="100%",original:gt,modified:Pt,language:Tt,options:Yt={}}){const dn=(0,ye.useRef)(),[On,wn]=(0,ye.useState)(null);function nn(bn){let Un;return dn.current&&(Un=new nt.Z(ti=>{for(let pi of ti)(pi.target.offsetHeight>0||pi.target.offsetWidth>0)&&bn.layout()}),Un.observe(dn.current)),Un}(0,ye.useEffect)(()=>(dn.current&&Promise.all([De.e(8909),De.e(9404)]).then(De.bind(De,2550)).then(bn=>{Ge=bn;const Un=Ge.editor.createDiffEditor(dn.current,Rn(Zt({enableSplitViewResizing:!1,scrollBeyondLastLine:!1,roundedSelection:!1,renderIndicators:!1,useShadows:!1,horizontal:"hidden",lineNumbers:"off",wordWrap:"off",ignoreTrimWhitespace:!1,"semanticHighlighting.enabled":!0,followsCaret:!0,ignoreCharChanges:!0,minimap:{enabled:!1},readOnly:!0},Yt),{wordWrap:!0}));wn(Un);let ti=nn(Un);return()=>{Un.dispose();const pi=Un.getModel();pi&&pi.dispose(),ti.unobserve(dn.current)}}),()=>{window.removeEventListener("keydown",checkPaste),window.removeEventListener("paste",checkPaste)}),[]),(0,ye.useEffect)(()=>{On&&On.setModel({original:Ge.editor.createModel(gt,Tt),modified:Ge.editor.createModel(Pt,Tt)})},[gt,Pt,Tt,On]);const jt=Kn(Bt),Xt=Kn(Ut),pn={width:jt,height:Xt};return ye.createElement("div",{className:"my-diff-editor",ref:dn,style:pn})}},45775:function(Jn,gi,De){"use strict";De.d(gi,{jL:function(){return Mt},w9:function(){return Xn},QD:function(){return Un},cQ:function(){return $e},op:function(){return wn},O5:function(){return Tn},_b:function(){return gr},t7:function(){return le},Gi:function(){return Ai},YG:function(){return Rn},qp:function(){return zt},vr:function(){return vn},qE:function(){return Xt},Je:function(){return Se},wb:function(){return kn},cq:function(){return Ge},tp:function(){return Ne}});var ye=De(59301),nt={flex_box_center:"flex_box_center___NeSU8",flex_space_between:"flex_space_between___ImTGl",flex_box_vertical_center:"flex_box_vertical_center___BtRd9",flex_box_center_end:"flex_box_center_end___qcLe3",flex_box_column:"flex_box_column___Ze_3q",banner:"banner___PoUBO",content:"content___XoDjy",btns:"btns___Pb35j"},it="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAE4AAAA0CAYAAAAkEw66AAAAAXNSR0IArs4c6QAAGNVJREFUeF7VmwmwHVWdxr9zuvvu9+3ZXsxCiNkIQZOwEzMgyADjggsWgzPqOAJaMiCjYiGKqDBQAo4iWGAxA+ooMm7gBhSyhBBRIIBSAQlrHuTt7913t97PmfpOd4cXlLAFGO6rW9237719+/z6+6/nPIHX+XHttddaex38nlW2lLO1svq1wJ4aeFMM9CqFnNKoaYVapDAOicfjGEMKqKk2nrx59Lbt5xx6aPR6DEG8Hj/K3xwY0YtjSx2vYnlspLEsX0BRKUBrINtyX+PZp0r3fR+IIgzFSo9EsahFUfSHWIj7Pa919zvf2vlo+rFXdWivObjHJvR8S6vTJORHckV0+4GBAF4InwQlBCAIkEMXgCLA9Mn9WCef4ft8HWkgVIDn6ckwUA/HQfCzoFX71TsP6n/41aL3moHTWotnJnGysPEFx8ZcAtMqGTjh2NmVTL+iDB6BZurjsRSe2SogjhNwMZIngbZbqgXom8N26/KjV3femB7ebRxfE3DbRnW/k8c3LQvv5yCjOFVVqhgCyNnJmAhoxyOFasz1OeCM2lLTJryI4BQQUn1RAhI24Lc1dBjc2K6Nnv2edfP+sLvIvergxqb0vpHA1fk8lre9xBZpZsYKU9sMYiDvAHKaqU4HuANcZrIpcILiezRdo7z0aUw3BoJYI4gELAeI/bjZmBq9+PGNd5x/+unHua8U4KsKbriujxUSV9gW+rwg9WPTfpHgpEgUQgAFJwU6LSDwjSxA8F2jslSBBJaZKwVGJRv1pSAJLyQ8qlwLOA4Q1us31Z58+OTj3rX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kF01acPc3akXS8IbsW1Onf6AnVib16ewqWz21vq9qu2yNPeqL7thW7xZ65391jcV1jE/1qKFcaeCfDwOYeK9D83nv32/wHzrWgvjJ8Q7AAAAABJRU5ErkJggg==",Mt=({dataSource:Cn=[],img:Mn,imgWidth:yt=346,title:xt,sunTitle:Ct,bannerExtraContent:Yn})=>ye.createElement("div",{className:nt.banner},ye.createElement("div",{className:nt.content},ye.createElement("aside",null,ye.createElement("p",null,ye.createElement("b",null,xt),ye.createElement("span",null,Ct)),Cn.length>0&&ye.createElement("div",{className:nt.btns},Cn.map(($n,di)=>ye.createElement("div",{key:di,onClick:$n.click},$n.name,$n.sign?ye.createElement("img",{src:it,width:39}):null))),Yn),Mn&&ye.createElement("img",{style:{marginTop:33,marginRight:38},src:Mn,width:yt}))),ze={flex_box_center:"flex_box_center___hG6RI",flex_space_between:"flex_space_between___ss3Fh",flex_box_vertical_center:"flex_box_vertical_center___K80p9",flex_box_center_end:"flex_box_center_end___qmXX3",flex_box_column:"flex_box_column___GFV8F",row:"row___aXJjm",title:"title___HUKL0",tagsWrap:"tagsWrap___XB2W3",action:"action___VdHb1",bar:"bar___t1kKC",tag:"tag___V7Eft",name:"name___Hk1Ip",num:"num___xQpcH",active:"active___XryTX",tagsBorderWrap:"tagsBorderWrap___OMxjs"},dt=De(92310),Kt=De.n(dt),Et=De(89392),zt=({dataSource:Cn=[],value:Mn,onChange:yt,onTitleChange:xt,className:Ct,title:Yn,titleWidth:$n=41,style:di={},fontColor:xn="#6A7283",showCount:ai})=>{const[Pn,zi]=(0,ye.useState)(0),[fr,Ve]=(0,ye.useState)(!1),mt=(0,ye.useRef)(null),Dn=(0,ye.useRef)(null);return(0,ye.useEffect)(()=>{var An;Cn.length!==0&&(((An=mt==null?void 0:mt.current)==null?void 0:An.clientHeight)>97?zi(1):zi(0)),Cn.length===0&&zi(0),Ve(!1)},[Cn]),ye.createElement("div",{className:Kt()(ze.row,Ct),style:di},ye.createElement("div",{onClick:(0,Et.throttle)(()=>xt==null?void 0:xt(),2e3),style:{width:$n,marginTop:fr?12:4},className:`${ze.title} ${xt?"current":""}`},Yn),ye.createElement("div",{className:fr?`${ze.tagsWrap} ${ze.tagsBorderWrap}`:ze.tagsWrap},ye.createElement("div",{className:ze.bar,ref:Dn,style:Pn>0?{height:Pn===1?97:"auto",overflow:Pn===1?"hidden":"auto",paddingRight:55}:{paddingRight:0}},ye.createElement("div",{className:ze.tag,ref:mt},Cn==null?void 0:Cn.map(An=>ye.createElement("span",{onClick:()=>yt(An.id),key:An.id,style:{color:xn},className:Mn===An.id?ze.active:""},ye.createElement("span",{title:An.name,className:ze.name},An.name),!!ai&&ye.createElement("span",{className:ze.num},An.count))))),!!Pn&&ye.createElement(ye.Fragment,null,Pn===1?ye.createElement("div",{onClick:()=>{var An;zi(2),((An=mt==null?void 0:mt.current)==null?void 0:An.clientHeight)>245?Ve(!0):Ve(!1)},className:ze.action},"\u5C55\u5F00",ye.createElement("i",{style:{transform:"translateY(1px) scale(0.6)"},className:"iconfont icon-zhankai4"})):ye.createElement("div",{onClick:()=>{Dn.current.scrollTop=0,zi(1),Ve(!1)},className:ze.action},"\u6536\u8D77",ye.createElement("i",{style:{transform:"translateY(0px) scale(0.6)"},className:"iconfont icon-shouqi3"})))))},Ke={flex_box_center:"flex_box_center___aK2n3",flex_space_between:"flex_space_between___HX0Oh",flex_box_vertical_center:"flex_box_vertical_center___LJOJr",flex_box_center_end:"flex_box_center_end___SCakF",flex_box_column:"flex_box_column___AYv4m",tabs:"tabs___GTqPV",active:"active___F26E8"},Ne=({dataSource:Cn=[],value:Mn,onChange:yt,className:xt,style:Ct={}})=>ye.createElement("div",{style:Ct,className:Kt()(Ke.tabs,xt)},Cn.map(Yn=>ye.createElement("span",{onClick:()=>yt(Yn.id),className:Mn===Yn.id?Ke.active:"",key:Yn.id},Yn.name))),ne={flex_box_center:"flex_box_center___yX6Oa",flex_space_between:"flex_space_between___t7oqF",flex_box_vertical_center:"flex_box_vertical_center___dEIHy",flex_box_center_end:"flex_box_center_end___taQDF",flex_box_column:"flex_box_column___xY_Lr",input:"input___PW2zI",dropdown:"dropdown___vSy8B",menu:"menu___NiyBu",text:"text___Grueu",b1:"b1___ZKryM",b2:"b2___aKyGa"},te=De(37568),le=({dataSource:Cn=[],value:Mn="",onChange:yt,onInputChange:xt=()=>{},className:Ct,style:Yn={},placeholder:$n,allowClear:di=!1})=>{var xn;const[ai,Pn]=(0,ye.useState)(""),[zi,fr]=(0,ye.useState)("");(0,ye.useEffect)(()=>{var Dn;let An=Mn;(Dn=JSON.stringify(Mn))!=null&&Dn.includes("{")&&(Pn(Mn.id),An=Mn.value||"");try{fr(decodeURIComponent(An||""))}catch(Ot){fr(decodeURIComponent(An||""))}},[Mn]);const Ve=()=>{yt(encodeURIComponent(zi),ai||null)},mt=Dn=>{Dn!==ai&&(Pn(Dn),yt(encodeURIComponent(zi),Dn))};return ye.createElement("div",{className:Kt()(ne.input,Ct),style:Yn},!!Cn.length&&ye.createElement("div",{className:ne.dropdown},ye.createElement("div",{className:ne.text},(xn=Cn.find(Dn=>Dn.id===ai))==null?void 0:xn.name,ye.createElement("i",{className:"iconfont icon-zhankai4"}),ye.createElement("b",{className:ne.b1}),ye.createElement("b",{className:ne.b2})),ye.createElement("div",{className:ne.menu},Cn.map((Dn,An)=>ye.createElement("div",{key:An,onClick:()=>mt(Dn.id)},Dn.name)))),ye.createElement(te.default,{onPressEnter:Ve,value:zi,onChange:Dn=>{fr(Dn.target.value),xt(encodeURIComponent(Dn.target.value),ai||null)},bordered:!1,placeholder:$n}),ye.createElement("i",{onClick:Ve,className:"iconfont icon-sousuo9 font14 pl10 current"}))},ge={flex_box_center:"flex_box_center___tol8o",flex_space_between:"flex_space_between___Z235C",flex_box_vertical_center:"flex_box_vertical_center___Wq1sZ",flex_box_center_end:"flex_box_center_end___LLxom",flex_box_column:"flex_box_column___DbMSN",quickPager:"quickPager___GM30J",disabled:"disabled___Ozc8I"},Se=({value:Cn,onChange:Mn,className:yt,total:xt,pageSize:Ct,style:Yn={}})=>{const $n=Cn<2,di=Cn>=Math.ceil(xt/Ct);return xt<=Ct?ye.createElement(ye.Fragment,null):ye.createElement("div",{className:Kt()(ge.quickPager,yt),style:Yn},ye.createElement("div",{onClick:()=>{$n||Mn(Cn-1,"prev")},className:$n?ge.disabled:""},"\u4E0A\u4E00\u9875"),ye.createElement("div",{onClick:()=>{di||Mn(Cn+1,"next")},className:di?ge.disabled:""},"\u4E0B\u4E00\u9875"))},be={flex_box_center:"flex_box_center___FO7TP",flex_space_between:"flex_space_between___LotYx",flex_box_vertical_center:"flex_box_vertical_center___bWdaw",flex_box_center_end:"flex_box_center_end___mVJ1o",flex_box_column:"flex_box_column___M83Mm",list:"list___oOsiS",wrap:"wrap___G6T7F",lockWrap:"lockWrap___Rl79E",li:"li___oZZ7l",cover:"cover___b2bYW",img:"img___IQX7w",sign:"sign___HkT6C",name:"name___SsJx8",e:"e___TMqq0",tags:"tags___bcjyo",rate:"rate___YACg7"},Ie=De(29787),Ze=De(25399),st=De(58018),Ye=De(346),Xe=De(51257),At=De(96908),ft=De(57177),Nt=De(81378),Lt=De(28426),kn=({className:Cn,dataSource:Mn=[],col:yt=4,right:xt,bottom:Ct=23,precision:Yn=0,wrapWidth:$n=1200,trackEventItems:di,loading:xn})=>{const ai=Math.floor(($n-(yt-1)*xt)/yt);return ye.createElement(Ie.Z,{spinning:xn},ye.createElement("div",{className:Kt()(be.list,Cn)},!!Mn.length&&Mn.map((Pn,zi)=>{const{name:fr,id:Ve,identifier:mt,power:Dn,cover_image_id:An,pic:Ot}=Pn;return ye.createElement("div",{className:be.wrap,key:Ve,style:{width:ai,marginRight:(1+zi)%yt===0?0:xt+Yn,marginBottom:Ct}},ye.createElement("a",{target:"_blank",href:`/shixuns/${mt}/challenges`,className:be.li,onClick:Bn=>{Bn.preventDefault(),di&&(0,Xe.L9)([di]),Dn&&(0,Xe.xg)(`/shixuns/${mt}/challenges`)}},ye.createElement("div",{className:be.img},ye.createElement("img",{className:be.cover,src:`${Ot}`}),Pn.is_jupyter&&ye.createElement("img",{className:be.sign,src:At}),Pn.is_jupyter_lab&&ye.createElement("img",{className:be.sign,src:ft}),Pn.is_unity_3d&&ye.createElement("img",{className:be.sign,src:Nt})),ye.createElement("div",{className:be.name},ye.createElement(Ze.Z,{title:fr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"},ye.createElement("span",{className:be.e},fr||"\u5B9E\u8DF5\u9879\u76EE\u540D\u79F0-\u672A\u586B\u5199"))),ye.createElement("div",{className:be.tags},ye.createElement(Ze.Z,{placement:"bottom",title:"\u5173\u5361\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-shixunguanqia font14 mr2"}),ye.createElement("span",null,Pn.challenges_count))),!!Pn.myshixuns_count&&ye.createElement(Ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},ye.createElement("span",null,ye.createElement("i",{className:"iconfont icon-chengyuan font14 mr2"}),ye.createElement("span",null,Pn.myshixuns_count))),ye.createElement(Ze.Z,{placement:"bottom",title:"\u96BE\u5EA6\u7B49\u7EA7"},ye.createElement("span",null,ye.createElement("span",null,Pn.level))),ye.createElement("div",{className:be.rate},ye.createElement(st.Z,{allowHalf:!0,disabled:!0,defaultValue:Pn.score_info}),ye.createElement("span",null,"\xA0",Pn.score_info?`${Pn.score_info}\u5206`:"5\u5206")))),!Dn&&ye.createElement("div",{className:be.lockWrap},ye.createElement("img",{src:`${Ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),ye.createElement("span",{className:"mt15 font16 c-white"},"\u5B9A\u5411\u5F00\u653E\u5185\u5BB9\uFF0C\u9700\u8981\u6388\u6743")))}),!Mn.length&&ye.createElement(Lt.Z,null)))},un={flex_box_center:"flex_box_center___AQ53o",flex_space_between:"flex_space_between___i2aIa",flex_box_vertical_center:"flex_box_vertical_center___sPEKB",flex_box_center_end:"flex_box_center_end___GhSSH",flex_box_column:"flex_box_column___R9_Hb",list:"list___jb2Ay",wrap:"wrap___VsQDr",lockWrap:"lockWrap___g1k1T",li:"li___IxCLC",cover:"cover___Mu8wr",img:"img___IpFLA",movebq:"movebq___mF7wt",bq:"bq___Bil0T",sign:"sign___DXJ4d",name:"name___l7FoJ",e:"e___pXQUG",unit:"unit___wCIFR",tags:"tags___w_Mil",tag1:"tag1___dxm7r",tag2:"tag2___llZkf"},_t=De(48790),hn=De(59301),$e=({className:Cn,dataSource:Mn=[],col:yt=4,right:xt,bottom:Ct=23,precision:Yn=0,wrapWidth:$n=1200,trackEventItems:di,loading:xn,onRemove:ai=()=>{},isCurrent:Pn=!0,showAlias:zi=!1})=>{const fr=Math.floor(($n-(yt-1)*xt)/yt),Ve=[{name:"\u63A8\u8350\u81EA\u5B66",ptimg:"/images/tjzx.png",swimg:"/images/sw_tjzx.png"},{name:"101\u8BA1\u5212",ptimg:"/images/jh.png",swimg:"/images/sw_jh.png"},{name:"\u56FD\u5BB6\u4E00\u6D41",ptimg:"/images/gjyl.png",swimg:"/images/sw_gjyl.png"},{name:"\u7701\u7EA7\u4E00\u6D41",ptimg:"/images/sjyl.png",swimg:"/images/sw_sjyl.png"},{name:"\u7CBE\u54C1\u8BFE\u7A0B",ptimg:"/images/jpkc.png",swimg:"/images/sw_jpkc.png"},{name:"\u519B\u961F\u4E00\u6D41",ptimg:"/images/jdyl.png",swimg:"/images/sw_jdyl.png"},{name:"\u65B0\u578B\u6559\u6750",ptimg:"/images/xxjc.png",swimg:"/images/sw_xxjc.png"}];return hn.createElement(Ie.Z,{spinning:xn},hn.createElement("div",{className:Kt()(un.list,Cn)},!!(Mn!=null&&Mn.length)&&(Mn==null?void 0:Mn.map((mt,Dn)=>{var An;const{name:Ot,id:Bn,identifier:Hn,featured:_n,school_name:Ei,image_url:si,excellent:Pi,is_plan:yi}=mt;return hn.createElement("div",{key:Bn,className:un.wrap,style:{width:fr,marginRight:(1+Dn)%yt===0?0:xt+Yn,marginBottom:Ct}},hn.createElement("a",{className:un.li,onClick:_i=>{_i.preventDefault(),_i.stopPropagation(),di&&(0,Xe.L9)([di]),(0,Xe.xg)(`/paths/${Hn}`)}},hn.createElement("div",{className:un.img},hn.createElement("img",{className:un.cover,src:`${si}`}),Pn&&(0,_t.bg)()&&(mt==null?void 0:mt.studying)&&hn.createElement("div",{className:`${un.movebq} user-path-items`,onClick:_i=>{_i.stopPropagation(),ai(mt)}},hn.createElement("i",{className:"iconfont icon-yichu1 mr5 c-red"}),hn.createElement("span",{className:"c-red"},"\u79FB\u9664")),(An=mt==null?void 0:mt.subject_tags)==null?void 0:An.map((_i,Ri)=>{var Di,sn;if(Ri===0){const Mr=(Di=Ve.find(Kr=>Kr.name==_i))==null?void 0:Di.swimg;return hn.createElement("img",{className:un.sign,src:Mr,style:{left:"-4px"}})}const pr=(sn=Ve.find(Mr=>Mr.name==_i))==null?void 0:sn.ptimg;return hn.createElement("img",{className:un.sign,src:pr,style:{left:`${48+52*(Ri-1)+2*Ri}px`}})}),hn.createElement("div",{style:{position:"absolute",top:"150px",left:"4px"}},(mt==null?void 0:mt.excellent)&&hn.createElement("div",{className:un.bq},"\u5F00\u653E\u8BFE\u7A0B"))),hn.createElement("div",{className:un.name},hn.createElement(Ze.Z,{title:zi&&(mt!=null&&mt.excellent_alias_name)?hn.createElement("span",null,`\u8BFE\u7A0B\u539F\u540D\uFF1A${Ot}`,hn.createElement("br",null),hn.createElement("span",null,`\u8BFE\u7A0B\u522B\u540D\uFF1A${mt==null?void 0:mt.excellent_alias_name}`)):Ot},hn.createElement("span",{className:un.e},zi&&(mt==null?void 0:mt.excellent_alias_name)||Ot))),hn.createElement(Ze.Z,{title:`\u53D1\u5E03\u5355\u4F4D\uFF1A${Ei}`},hn.createElement("div",{className:un.unit},hn.createElement("i",{className:"iconfont icon-danwei1 font14 mr3"}),Ei)),hn.createElement("div",{className:un.tags},hn.createElement("div",null,hn.createElement(Ze.Z,{placement:"bottom",title:"\u7AE0\u8282\u6570"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-zhangjie1 font14 mr3"}),hn.createElement("span",null,mt.stages_count))),hn.createElement(Ze.Z,{placement:"bottom",title:"\u5B66\u4E60\u4EBA\u6570"},hn.createElement("span",null,hn.createElement("i",{className:"iconfont icon-chengyuan font14 mr3"}),hn.createElement("span",null,mt.members_count)))))))})),!Mn.length&&hn.createElement(Lt.Z,null)))},gn={flex_box_center:"flex_box_center___eMcr7",flex_space_between:"flex_space_between___HcNca",flex_box_vertical_center:"flex_box_vertical_center___ZnvVN",flex_box_center_end:"flex_box_center_end___fdgDf",flex_box_column:"flex_box_column___SEKvd",list:"list___L1hmU",wrap:"wrap___pKgcW",lockWrap:"lockWrap___SMhkK",top:"top___udHSB",sign:"sign___uwRpq",name:"name___Fpf90",img:"img___AMLhL",text:"text___KiTb7",btns:"btns___i6IuZ",bottom:"bottom____k2sh"},ci="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAHgAAAB4CAYAAAA5ZDbSAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXWmQXFd1/s59r3t6nX00o93GluV9AQNxiAkIB0OMISFsFQqSAhOohFR+JKmEQPILClJZfpEfIUAChFQSHIJxnGDiDYwsb8KRLUuWZcmSxqN9pJF6nV7eSZ373u1509Mzvd2eGVt6VV2z9Ht3+9459+yX8Bq4mDmWK2GLqla3MvFWZt4KpjVMSBNzGoQ0M6WJkJbpMiNDxBkwMkyUIUYGxCeJaB8x7fMcZ18yiv1EVHy1Lw+9GicwO8tXlSrlbSB6O4HfANAmZlY250JEHsBHGLQTzA9H3chDfX2012Yfy9HWqwJgZh7NF6vvY/a2gWkbgyeWY3Hq+yDQcRA/RKQeSsSce4jo9EqMo50+Vy3AzNxXKFTv9MAfB/AuZo60M7Fe30tEZQA/UqBvx+POvUQ02+s+O2l/1QGcy5Xe6Cn1SXj8YYAHO5nU8j9DM1D0b8rzvpFMRp9a/v4X73HVAJwplN9GHj7P4NtW0wK1OxYCPcAKX0rHI4+0+2wv7l9xgHPF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HzvojGkRZCJdjhwP9iJntush54ALJ2KwJUrVL4M4A9frbbrZovX7fdiWwbwN8m4+7l2LVSt9t0zgM0AxEHhVflbF/flBbvjtHLot9pxHLQK6jxdupOH2n1GuxpR+S6Yb2332dfk/USPOnA/2qrLr5s16DkFm8EJm84Xq5/wPP7LC5eaaVop+pNEzPlmwJ67wa6lZ5cN4BDQw9l8+StEdNeFsjcLmMz89VQi8qdEdKYlZCzdtOwAm3EHIblfZeabLc1lVTYjccsK/NlEIvrESgxwxQAOCWHv9jz+Aph/cSUWoGd9Ej2mFH3RlkWq03GuOMBm4JLwRh4+z+DbOp3ManhOsvxY4UvpeOSR1TGe1TCK0BiC/OS7APoQwKHqHKtsoPOGQzMA/7sCvp5MRp9aTSNdNRRcvyhSTqJQqN7pgT8O4F3MvArC3uZGKdVsAPxIgb4djzv3EtHsagLWjGXVAhxeLCnxlC9W38fsbQPTNgZPrMRiSgU5ED9EpB5KxJx7iKjFkxlXYrR+n68KgOuXJ6ituQ1E2wj8eoA2McuxWPYuqbcM8BEG7QTzw1E38pBtR4C90S7e0qsS4AbsPJYrYYuqVrcy8VZm3gqmcSakiTkFQpqZ0kRIy7PMyBBxBowME2WJkQHxCSLaR0z7PMfZl4xiPxFdXaKvAAAADElEQVQVlwOEXvbx/3Bccpan8cseAAAAAElFTkSuQmCC",Fn=De(59301),Xn=({className:Cn,dataSource:Mn=[],col:yt=4,right:xt,bottom:Ct=23,precision:Yn=0,wrapWidth:$n=1200,trackEventItems:di,loading:xn,handleVery:ai=()=>!0})=>{const Pn=Math.floor(($n-(yt-1)*xt)/yt);return Fn.createElement(Ie.Z,{spinning:xn},Fn.createElement("div",{className:Kt()(gn.list,Cn)},!!Mn.length&&Mn.map((zi,fr)=>{const{subject_identifier:Ve,id:mt,identifier:Dn,power:An}=zi,Ot=zi.is_public!=0&&zi.is_public;return Fn.createElement("div",{className:gn.wrap,key:mt,style:{width:Pn,marginRight:(1+fr)%yt===0?0:xt+Yn,marginBottom:Ct}},Fn.createElement("a",{className:gn.li,onClick:Bn=>{Bn.preventDefault(),ai(zi==null?void 0:zi.first_category_url)&&(di&&(0,Xe.L9)([di]),(0,Xe.xg)(zi.first_category_url))}},Fn.createElement("div",{className:gn.top},Fn.createElement(Ze.Z,{title:zi.name},Fn.createElement("div",{className:gn.name},zi.name)),Fn.createElement("img",{className:gn.img,src:Ye.Z.IMG_SERVER+"/images/"+zi.avatar_url}),Fn.createElement("div",{className:gn.text,title:zi.creator},zi.creator),Ve&&Fn.createElement("div",{className:gn.btns},Fn.createElement("div",null,"\u5F00\u653E\u8BFE\u7A0B"),Fn.createElement("aside",null,"\u5F00\u653E\u8BFE\u5802")),Ot&&Fn.createElement("div",{className:gn.sign},"\u516C\u5F00")),Fn.createElement("div",{className:gn.bottom},zi.visits>0&&Fn.createElement(Ze.Z,{title:"\u8BBF\u95EE\u91CF",placement:"bottom"},Fn.createElement("span",null,Fn.createElement("i",{className:"iconfont icon-liulanyan"}),Fn.createElement("span",null,zi.visits))),zi.course_members_count>0&&Fn.createElement(Ze.Z,{title:"\u6210\u5458",placement:"bottom"},Fn.createElement("span",null,Fn.createElement("i",{className:"iconfont icon-chengyuan"}),zi.course_members_count)),zi.tasks_count>0&&Fn.createElement(Ze.Z,{title:"\u4F5C\u4E1A",placement:"bottom"},Fn.createElement("span",null,Fn.createElement("i",{className:"iconfont icon-zuoye"}),zi.tasks_count)),zi.is_end?Fn.createElement("div",{style:{color:"#6B758B"}},"\u5DF2\u7ED3\u675F"):Fn.createElement("div",{style:{color:"#00B187"}},"\u8FDB\u884C\u4E2D"))),!zi.is_accessible&&Fn.createElement("div",{className:gn.lockWrap},Fn.createElement("img",{src:`${Ye.Z.IMG_SERVER}/images/educoder/icon/lockclose.svg`}),Fn.createElement("span",{className:"mt15 font16 c-white"},"\u975E\u8BFE\u5802\u6210\u5458\u4E0D\u53EF\u8FDB\u5165")))}),!Mn.length&&Fn.createElement(Lt.Z,null)))},Nn={flex_box_center:"flex_box_center___d27mZ",flex_space_between:"flex_space_between___qfRU9",flex_box_vertical_center:"flex_box_vertical_center___fCRld",flex_box_center_end:"flex_box_center_end___ORMV8",flex_box_column:"flex_box_column___PNKtZ",tabs:"tabs___alpa7",tabsWrap:"tabsWrap___aCQjw",tab:"tab___MKLr4",active:"active___nl_4v"},mi=De(25690),Rn=({dataSource:Cn=[],value:Mn,onChange:yt,className:xt,style:Ct={},tabBarExtraContent:Yn})=>ye.createElement("div",{className:Kt()(Nn.tabs,xt),style:Ct},ye.createElement("div",{className:Nn.tabsWrap},Cn.map(($n,di)=>!($n!=null&&$n.hide)&&ye.createElement("aside",{className:Nn.tab,onClick:()=>{yt($n.id),$n.link&&mi.history.push($n.link)},key:di},ye.createElement("div",{className:Mn===$n.id?Nn.active:""},$n.name),($n==null?void 0:$n.resetCount)==null&&($n==null?void 0:$n.total)!==void 0&&ye.createElement("span",null,"\uFF08",$n==null?void 0:$n.total,"\uFF09"),($n==null?void 0:$n.resetCount)!==void 0&&($n==null?void 0:$n.total)!==void 0&&ye.createElement(Ze.Z,{title:($n==null?void 0:$n.tip)!=null?$n==null?void 0:$n.tip:""},ye.createElement("span",{style:{color:"#9096A3"}},"\uFF08",ye.createElement("span",{style:{color:"#000"}},$n==null?void 0:$n.resetCount),"/",ye.createElement("span",null,$n==null?void 0:$n.total),"\uFF09"))))),ye.createElement("div",{className:Nn.tabBar},Yn)),Ai=({className:Cn,style:Mn={},children:yt})=>ye.createElement("div",{className:Kt()(Cn),style:Mn},yt),Kn={flex_box_center:"flex_box_center___e6HxQ",flex_space_between:"flex_space_between___RnXYe",flex_box_vertical_center:"flex_box_vertical_center___lVxPk",flex_box_center_end:"flex_box_center_end___bu8yv",flex_box_column:"flex_box_column___JczGj",orderWrap:"orderWrap___ZfyGX",orderIconWrap:"orderIconWrap___XTB_O",orderAsc:"orderAsc___KWHmA",orderDesc:"orderDesc___rHdbB",active:"active___a7eSP",cursorPointer:"cursorPointer___gs9kL",orderTextWrap:"orderTextWrap___teAKn"},je=De(75727),Le=De(93041);const we=[{id:"updated_at",name:"\u6700\u65B0\u52A8\u6001"},{id:"created_at",name:"\u6700\u65B0\u521B\u5EFA"},{id:"name",name:"\u540D\u79F0\u6392\u5E8F"}];var Ge=({sortValue:Cn,dropValue:Mn,className:yt,onSort:xt,onDrop:Ct,dataSource:Yn=we})=>{var $n;return ye.createElement("div",{className:Kt()(Kn.orderWrap,yt)},ye.createElement(je.Z,{dropdownRender:()=>ye.createElement(Le.default,null,Yn.map((di,xn)=>ye.createElement(Le.default.Item,{key:xn,onClick:()=>Ct(di.id)},di.name)))},ye.createElement("span",{className:Kn.orderTextWrap},($n=Yn.find(di=>Mn===di.id))==null?void 0:$n.name)),ye.createElement("span",{className:Kn.orderIconWrap},ye.createElement("span",{className:Kn.orderAsc},ye.createElement("i",{className:Cn==="asc"?`iconfont icon-sanjiaoxing-up font12 ${Kn.cursorPointer} ${Kn.active}`:`iconfont icon-sanjiaoxing-up font12 ${Kn.cursorPointer}`,onClick:()=>xt(Cn==="asc"?"desc":"asc")})),ye.createElement("span",{className:Kn.orderDesc},ye.createElement("i",{className:Cn==="desc"?`iconfont icon-sanjiaoxing-down font12 ${Kn.cursorPointer} ${Kn.active}`:`iconfont icon-sanjiaoxing-down font12 ${Kn.cursorPointer}`,onClick:()=>xt(Cn==="asc"?"desc":"asc")}))))},ke={flex_box_center:"flex_box_center___LCi0B",flex_space_between:"flex_space_between___hzONe",flex_box_vertical_center:"flex_box_vertical_center___ZyQRE",flex_box_center_end:"flex_box_center_end___XKM74",flex_box_column:"flex_box_column___p8LCU",btn:"btn___In02G","mediacy-round":"mediacy-round___uveEv","mediacy-default":"mediacy-default___dDxsd",default:"default___K791v"},et=De(99571),an=Object.defineProperty,Bt=Object.getOwnPropertySymbols,Ut=Object.prototype.hasOwnProperty,gt=Object.prototype.propertyIsEnumerable,Pt=(Cn,Mn,yt)=>Mn in Cn?an(Cn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Cn[Mn]=yt,Tt=(Cn,Mn)=>{for(var yt in Mn||(Mn={}))Ut.call(Mn,yt)&&Pt(Cn,yt,Mn[yt]);if(Bt)for(var yt of Bt(Mn))gt.call(Mn,yt)&&Pt(Cn,yt,Mn[yt]);return Cn},Yt=(Cn,Mn)=>{var yt={};for(var xt in Cn)Ut.call(Cn,xt)&&Mn.indexOf(xt)<0&&(yt[xt]=Cn[xt]);if(Cn!=null&&Bt)for(var xt of Bt(Cn))Mn.indexOf(xt)<0&>.call(Cn,xt)&&(yt[xt]=Cn[xt]);return yt},dn=(Cn,Mn,yt)=>new Promise((xt,Ct)=>{var Yn=xn=>{try{di(yt.next(xn))}catch(ai){Ct(ai)}},$n=xn=>{try{di(yt.throw(xn))}catch(ai){Ct(ai)}},di=xn=>xn.done?xt(xn.value):Promise.resolve(xn.value).then(Yn,$n);di((yt=yt.apply(Cn,Mn)).next())}),wn=Cn=>{var Mn=Cn,{className:yt,style:xt,children:Ct,loading:Yn=!1,openLoading:$n,onClick:di=()=>{},size:xn="middle",shape:ai="round"}=Mn,Pn=Yt(Mn,["className","style","children","loading","openLoading","onClick","size","shape"]);const[zi,fr]=(0,ye.useState)(!1);return ye.createElement(et.ZP,Tt({onClick:(0,Et.throttle)(Ve=>dn(void 0,null,function*(){$n&&fr(!0);try{yield di(Ve)}catch(mt){console.log("error",mt)}$n&&fr(!1)}),2e3,{leading:!0,trailing:!1}),className:Kt()(ke.btn,ke[`${xn}-${ai}`],yt),style:xt,size:xn,shape:ai,loading:zi||Yn},Pn),Ct)},nn={flex_box_center:"flex_box_center___TB7bQ",flex_space_between:"flex_space_between___oBlTb",flex_box_vertical_center:"flex_box_vertical_center___b5XbB",flex_box_center_end:"flex_box_center_end___CNhe7",flex_box_column:"flex_box_column___yHXKW",head:"head___ghH72",node:"node___mjPEy"},Xt=({className:Cn,style:Mn,children:yt=null,onClick:xt,title:Ct})=>ye.createElement("div",{className:Kt()(nn.head,Cn),style:Mn},ye.createElement("span",{className:"primary-hover",onClick:xt},ye.createElement("i",{className:"iconfont icon-fanhui2 font12"}),"\u8FD4\u56DE"),ye.createElement("b",{title:Ct},Ct),ye.createElement("div",{className:nn.node},yt)),pn={flex_box_center:"flex_box_center___AlHuF",flex_space_between:"flex_space_between___vN2LW",flex_box_vertical_center:"flex_box_vertical_center___Ac7D2",flex_box_center_end:"flex_box_center_end___y38I7",flex_box_column:"flex_box_column___iQE6P",btns:"btns___sNgTb",confirm:"confirm___Ozirl",cancel:"cancel___aiq1I"},Un=({confirmShow:Cn=!0,confirmTitle:Mn,confirmClick:yt,cancelShow:xt=!0,cancelTitle:Ct,cancelClick:Yn,className:$n,style:di,confirmLoading:xn=!1})=>ye.createElement("div",{className:Kt()(pn.btns,$n),style:di},Cn&&ye.createElement(et.ZP,{loading:xn,onClick:yt,type:"primary",className:pn.confirm},Mn),xt&&ye.createElement(et.ZP,{onClick:Yn,className:pn.cancel},Ct)),ti={flex_box_center:"flex_box_center___jkpdr",flex_space_between:"flex_space_between___OtsL8",flex_box_vertical_center:"flex_box_vertical_center___rbcb_",flex_box_center_end:"flex_box_center_end___zBR21",flex_box_column:"flex_box_column___nS_eP",fixedBottom:"fixedBottom___oJl7m",wrap:"wrap___A3Oq1",center:"center____VL1y"},vn=({className:Cn,style:Mn={},LeftContent:yt,children:xt,RightContent:Ct})=>ye.createElement("div",{className:Kt()(ti.fixedBottom,Cn),style:Mn},ye.createElement("div",{className:ti.wrap},ye.createElement("div",{className:ti.left},yt),ye.createElement("div",{className:ti.center},xt),ye.createElement("div",{className:ti.right},Ct))),wi={flex_box_center:"flex_box_center___tY8Yn",flex_space_between:"flex_space_between___vHdYA",flex_box_vertical_center:"flex_box_vertical_center___pa61F",flex_box_center_end:"flex_box_center_end___HyDXt",flex_box_column:"flex_box_column___UjZek",crumbs:"crumbs___V41Oe",hover:"hover___bEIVd"},gr=({className:Cn,style:Mn={},dataSource:yt=[]})=>ye.createElement("div",{className:Kt()(wi.crumbs,Cn),style:Mn},yt.map((xt,Ct)=>Ct<yt.length-1?ye.createElement(ye.Fragment,{key:Ct},xt.path||xt.onClick?ye.createElement("span",{className:wi.hover,onClick:xt!=null&&xt.onClick?xt.onClick:()=>mi.history.push(xt.path)},xt.name):ye.createElement("span",null,xt.name),ye.createElement("span",null,"\xA0",">","\xA0")):ye.createElement("span",{key:Ct,style:{color:"#5F6368"}},xt.name))),rr=De(11938),tr=Object.defineProperty,vr=Object.defineProperties,hr=Object.getOwnPropertyDescriptors,ar=Object.getOwnPropertySymbols,Xi=Object.prototype.hasOwnProperty,yr=Object.prototype.propertyIsEnumerable,Ce=(Cn,Mn,yt)=>Mn in Cn?tr(Cn,Mn,{enumerable:!0,configurable:!0,writable:!0,value:yt}):Cn[Mn]=yt,Sn=(Cn,Mn)=>{for(var yt in Mn||(Mn={}))Xi.call(Mn,yt)&&Ce(Cn,yt,Mn[yt]);if(ar)for(var yt of ar(Mn))yr.call(Mn,yt)&&Ce(Cn,yt,Mn[yt]);return Cn},Gn=(Cn,Mn)=>vr(Cn,hr(Mn)),dr=(Cn,Mn)=>{var yt={};for(var xt in Cn)Xi.call(Cn,xt)&&Mn.indexOf(xt)<0&&(yt[xt]=Cn[xt]);if(Cn!=null&&ar)for(var xt of ar(Cn))Mn.indexOf(xt)<0&&yr.call(Cn,xt)&&(yt[xt]=Cn[xt]);return yt};const{Countdown:or}=rr.default;var Tn=Cn=>{var Mn=Cn,{onChange:yt}=Mn,xt=dr(Mn,["onChange"]);const[Ct,Yn]=(0,ye.useState)(null);(0,ye.useEffect)(()=>{typeof Ct=="number"&&Ct>=0&&yt(Ct)},[Ct]);const $n=di=>{const xn=Math.floor(di/1e3);Yn(xn)};return ye.createElement(or,Gn(Sn({},xt),{onChange:$n}))}},37808:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return nt}});var ye=De(59301);function nt(it,Dt){const Mt=(0,ye.useRef)();(0,ye.useEffect)(()=>{Mt.current=it}),(0,ye.useEffect)(()=>{function ze(){Mt.current()}if(Dt!==null){let dt=setInterval(ze,Dt);return()=>clearInterval(dt)}},[Dt])}},35171:function(Jn,gi,De){"use strict";De.r(gi),De.d(gi,{default:function(){return Ii}});var ye=De(59301),nt={card:"card___c4ypw",head:"head___d2Dfo",element:"element___PyfcV",collaborator:"collaborator___o6MF4",btn:"btn___CF6mw",delSty:"delSty___Wm5pj",delBorder:"delBorder___IVg2Z",copHover:"copHover___rNmmw",wrap:"wrap___feope",center:"center___uU09V",tip:"tip___yCX57",title:"title___OpV1r",content:"content___XU4yH",fixedBtns:"fixedBtns___ItSdd"},it=De(92310),Dt=De.n(it),Mt=De(45775),ze=De(39793),dt=De(77019),Kt=De(99571),Et=De(62957),Me=De(37568),zt=De(54172),Ke=De(28284),Ht=De(25399),Ne=De(71051),ne=De(6767),te=De(29787),de=De(62673),le=De(47889),ge=De(16326),me=De(51257),Se=De(25690),be=De(56082),Ie=De(87954),Ze=De(18257),st=De(19719),Ye=De(35241),Xe=De(28426),At=Object.defineProperty,ft=Object.defineProperties,Nt=Object.getOwnPropertyDescriptors,Lt=Object.getOwnPropertySymbols,ln=Object.prototype.hasOwnProperty,kn=Object.prototype.propertyIsEnumerable,un=(Tn,Cn,Mn)=>Cn in Tn?At(Tn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Tn[Cn]=Mn,_t=(Tn,Cn)=>{for(var Mn in Cn||(Cn={}))ln.call(Cn,Mn)&&un(Tn,Mn,Cn[Mn]);if(Lt)for(var Mn of Lt(Cn))kn.call(Cn,Mn)&&un(Tn,Mn,Cn[Mn]);return Tn},hn=(Tn,Cn)=>ft(Tn,Nt(Cn));const vt=ye.createContext({}),$e=()=>{const{setActivatorNodeRef:Tn,listeners:Cn}=(0,ye.useContext)(vt);return ye.createElement(Kt.ZP,_t({type:"text",size:"small",icon:ye.createElement(Ht.Z,{title:"\u53EF\u9F20\u6807\u62D6\u62FD\u8FDB\u884C\u8BD5\u9898\u6392\u5E8F\uFF0C\u5B66\u751F\u7AEF\u5C06\u6309\u7167\u6B64\u6392\u5E8F\u5C55\u793A"},ye.createElement(be.Z,null)),style:{cursor:"move"},ref:Tn},Cn))},gn=Tn=>{const{attributes:Cn,listeners:Mn,setNodeRef:yt,setActivatorNodeRef:xt,transform:Ct,transition:Yn,isDragging:$n}=(0,st.nB)({id:Tn["data-row-key"]}),di=_t(hn(_t({},Tn.style),{transform:Ye.ux.Translate.toString(Ct),transition:Yn}),$n?{position:"relative",zIndex:99}:{}),xn=(0,ye.useMemo)(()=>({setActivatorNodeRef:xt,listeners:Mn}),[xt,Mn]);return ye.createElement(vt.Provider,{value:xn},ye.createElement("tr",_t(hn(_t({},Tn),{ref:yt,style:di}),Cn)))};var Fn=({columns:Tn,dataSource:Cn,setDataSource:Mn,loading:yt})=>{const xt=({active:Ct,over:Yn})=>{Ct.id!==(Yn==null?void 0:Yn.id)&&Mn($n=>{const di=$n.findIndex(ai=>ai.id===(Ct==null?void 0:Ct.id)),xn=$n.findIndex(ai=>ai.id===(Yn==null?void 0:Yn.id));return(0,st.Rp)($n,di,xn)})};return ye.createElement(Ie.LB,{modifiers:[Ze.DL],onDragEnd:xt},ye.createElement(st.Fo,{items:Cn.map(Ct=>Ct.id),strategy:st.qw},ye.createElement(zt.default,{pagination:!1,scroll:{y:400},rowKey:"id",loading:yt,locale:{emptyText:ye.createElement(Xe.Z,{styles:{margin:"80px auto"},customText:ye.createElement("span",null,"\u8FD8\u6CA1\u6709\u8BD5\u9898\uFF0C\u8BF7\u4ECE",ye.createElement("span",{style:{color:"#CA7720"}},"\u53F3\u4E0A\u89D2\u64CD\u4F5C\u6309\u94AE"),"\u8FDB\u884C\u6DFB\u52A0\uFF5E")})},dataSource:Cn,components:{body:{row:gn}},columns:[{key:"sort",align:"center",width:80,render:()=>ye.createElement($e,null)},...Tn],size:"middle"})))},rn=De(20554),Xn=De(17149),Nn=De(82326),mi=De(69219),Zt=De(13747),Rn=De(38986),wt={flex_box_center:"flex_box_center___Iqqr9",flex_space_between:"flex_space_between___y0uZc",flex_box_vertical_center:"flex_box_vertical_center___akeKA",flex_box_center_end:"flex_box_center_end___DEJG9",flex_box_column:"flex_box_column___pgYr1",scoremodal:"scoremodal___PYXCN",selectWrapper:"selectWrapper___RNoPX",selectWrappers:"selectWrappers___fUTXA",allqingchu:"allqingchu___k6Qgb",title:"title___AAfdA",score:"score___oYtrM",close:"close___i8V3V",content:"content___JpTOI",items:"items___je5K0",bottom:"bottom___jjylc",yes:"yes___Wh4La",no:"no___fIya2",titlecount:"titlecount___pZQaF",add:"add___hT0xx",search:"search___WBmWG",searchIcon:"searchIcon___LgZF_",tabWrap:"tabWrap___lGZ3A",previewModal:"previewModal___jPoO2"},Ai=De(55305),Kn={flex_box_center:"flex_box_center____Tkex",flex_space_between:"flex_space_between___EZnYm",flex_box_vertical_center:"flex_box_vertical_center___e6Uyw",flex_box_center_end:"flex_box_center_end___FubGu",flex_box_column:"flex_box_column___ibm4g",warp:"warp___IgClr",shixunbutton:"shixunbutton___DTP9s",redio:"redio___wfYmJ",redioitem:"redioitem___Lx8l8",redioitemyes:"redioitemyes___KKsIv",title:"title___GXJmE",titleyes:"titleyes___yYOlS",yestag:"yestag___WQlWV",qcount:"qcount___QpuQ9",score:"score___WkTL9",qtitle:"qtitle___TQM3w",checkbox:"checkbox___XWcyb",checkboxitem:"checkboxitem___eUzWD",checkboxitemyes:"checkboxitemyes___LOyRE",bottom:"bottom___IKM1j",bottomitem:"bottomitem___TaUK6",left:"left___szEjt",right:"right___XEuVG",completion:"completion___bVp0S",content:"content___R3KZ7",items:"items___DCx2v",simple:"simple___GPeTT",shixun:"shixun___hhixj",combination:"combination___toZnZ",program:"program___alaBk"},je=De(76902),Le=De(24334);const we=["A\uFF0E","B\uFF0E","C\uFF0E","D\uFF0E","E\uFF0E","F\uFF0E","G\uFF0E","H\uFF0E","I\uFF0E","J\uFF0E","K\uFF0E","L\uFF0E","M\uFF0E","N\uFF0E","O\uFF0E","P\uFF0E","Q\uFF0E","R\uFF0E","S\uFF0E","T\uFF0E","U\uFF0E","V\uFF0E","W\uFF0E","X\uFF0E","Y\uFF0E","Z\uFF0E"];var Ge=({qitem:Tn})=>{var Cn,Mn,yt,xt,Ct,Yn,$n,di,xn,ai;return ye.createElement("div",{className:Kn.warp},ye.createElement("div",{className:Kn.mainPart},ye.createElement("div",{className:Kn.qcount},(Tn==null?void 0:Tn.question_type)===8&&ye.createElement(je.Z,{className:Kn.content,showProgramFill:!0,value:(Cn=Tn==null?void 0:Tn.program_attr)==null?void 0:Cn.description}),(Tn==null?void 0:Tn.question_type)!=8&&ye.createElement(je.Z,{className:Kn.qtitle,value:(Tn==null?void 0:Tn.name)||(Tn==null?void 0:Tn.title)})),((Tn==null?void 0:Tn.question_type)===0||(Tn==null?void 0:Tn.question_type)===2)&&ye.createElement("div",null,(Mn=Tn==null?void 0:Tn.choices)==null?void 0:Mn.map((Pn,zi)=>ye.createElement("div",{className:Kn.redio},!(Pn!=null&&Pn.is_answer)&&ye.createElement("span",{className:Kn.redioitem}),(Pn==null?void 0:Pn.is_answer)&&ye.createElement("i",{className:`${Kn.redioitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:Pn!=null&&Pn.is_answer?Kn.titleyes:Kn.title,value:we[zi]+(Pn==null?void 0:Pn.choice_text)}),(Pn==null?void 0:Pn.is_answer)&&ye.createElement("div",{className:Kn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Tn==null?void 0:Tn.question_type)===1&&ye.createElement("div",null,(yt=Tn==null?void 0:Tn.choices)==null?void 0:yt.map((Pn,zi)=>ye.createElement("div",{className:Kn.checkbox},!(Pn!=null&&Pn.is_answer)&&ye.createElement("span",{className:Kn.checkboxitem}),(Pn==null?void 0:Pn.is_answer)&&ye.createElement("i",{className:`${Kn.checkboxitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:Pn!=null&&Pn.is_answer?Kn.titleyes:Kn.title,value:we[zi]+(Pn==null?void 0:Pn.choice_text)}),(Pn==null?void 0:Pn.is_answer)&&ye.createElement("div",{className:Kn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Tn==null?void 0:Tn.question_type)===3&&ye.createElement("div",{className:Kn.completion},(xt=Tn==null?void 0:Tn.standard_answer)==null?void 0:xt.map((Pn,zi)=>{var fr;return ye.createElement("div",{style:{display:"flex"}},ye.createElement("span",{className:Kn.title},"\u586B\u7A7A\u9879",zi+1),ye.createElement("div",{className:Kn.content},(fr=Pn==null?void 0:Pn.answer_text)==null?void 0:fr.map((Ve,mt)=>ye.createElement("div",{className:Kn.items},Ve))))})),(Tn==null?void 0:Tn.question_type)===4&&ye.createElement("div",{className:Kn.simple},ye.createElement("div",{className:Kn.title},"\u53C2\u8003\u7B54\u6848"),ye.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Ct=Tn==null?void 0:Tn.answer_texts)!=null&&Ct[0]?ye.createElement(je.Z,{className:Kn.content,value:(Yn=Tn==null?void 0:Tn.answer_texts)==null?void 0:Yn[0]}):ye.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),(Tn==null?void 0:Tn.question_type)===5&&(($n=Tn==null?void 0:Tn.challenge_names)==null?void 0:$n.map((Pn,zi)=>ye.createElement("div",{className:Kn.shixun},ye.createElement("span",{className:Kn.qtitle},ye.createElement("span",{style:{marginRight:10}},"\u7B2C",(0,me.EM)(zi+1),"\u9898"),Pn)))),(Tn==null?void 0:Tn.question_type)===6&&ye.createElement("div",{className:Kn.program},ye.createElement(je.Z,{className:Kn.content,value:((di=Tn==null?void 0:Tn.program_attr)==null?void 0:di.description)||"- -"})),(Tn==null?void 0:Tn.question_type)===7&&((xn=Tn==null?void 0:Tn.sub_item_banks)==null?void 0:xn.map((Pn,zi)=>{var fr,Ve,mt,Dn,An;return ye.createElement("div",null,ye.createElement("div",{className:Kn.combination},ye.createElement("span",{className:Kn.qtitle},Pn==null?void 0:Pn.name)),ye.createElement("div",{className:Kn.warp,style:{padding:"0px",paddingTop:20}},ye.createElement("div",null,((Pn==null?void 0:Pn.item_type)=="SINGLE"||(Pn==null?void 0:Pn.item_type)=="JUDGMENT")&&((fr=Pn==null?void 0:Pn.choices)==null?void 0:fr.map((Ot,Bn)=>ye.createElement("div",{className:Kn.redio},!(Ot!=null&&Ot.is_answer)&&ye.createElement("span",{className:Kn.redioitem}),(Ot==null?void 0:Ot.is_answer)&&ye.createElement("i",{className:`${Kn.redioitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:Ot!=null&&Ot.is_answer?Kn.titleyes:Kn.title,value:we[Bn]+(Ot==null?void 0:Ot.choice_text)}),(Ot==null?void 0:Ot.is_answer)&&ye.createElement("div",{className:Kn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Pn==null?void 0:Pn.item_type)=="MULTIPLE"&&((Ve=Pn==null?void 0:Pn.choices)==null?void 0:Ve.map((Ot,Bn)=>ye.createElement("div",{className:Kn.checkbox},!(Ot!=null&&Ot.is_answer)&&ye.createElement("span",{className:Kn.checkboxitem}),(Ot==null?void 0:Ot.is_answer)&&ye.createElement("i",{className:`${Kn.checkboxitemyes} icon-duigou1`}),ye.createElement(je.Z,{className:Ot!=null&&Ot.is_answer?Kn.titleyes:Kn.title,value:we[Bn]+(Ot==null?void 0:Ot.choice_text)}),(Ot==null?void 0:Ot.is_answer)&&ye.createElement("div",{className:Kn.yestag},"\u6B63\u786E\u7B54\u6848")))),(Pn==null?void 0:Pn.item_type)=="COMPLETION"&&ye.createElement("div",{className:Kn.completion},(mt=Pn==null?void 0:Pn.standard_answer)==null?void 0:mt.map((Ot,Bn)=>{var Hn;return ye.createElement("div",{style:{display:"flex"}},ye.createElement("span",{className:Kn.title},"\u586B\u7A7A\u9879",Bn+1),ye.createElement("div",{className:Kn.content},(Hn=Ot==null?void 0:Ot.answer_text)==null?void 0:Hn.map((_n,Ei)=>ye.createElement("div",{className:Kn.items},_n))))})),(Pn==null?void 0:Pn.item_type)=="SUBJECTIVE"&&ye.createElement("div",{className:Kn.simple},ye.createElement("div",{className:Kn.title},"\u53C2\u8003\u7B54\u6848"),ye.createElement("div",{className:"mt10",style:{fontSize:"16px"}},(Dn=Pn==null?void 0:Pn.answer_texts)!=null&&Dn[0]?ye.createElement(je.Z,{className:Kn.content,value:(An=Pn==null?void 0:Pn.answer_texts)==null?void 0:An[0]}):ye.createElement("div",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))))))})),(Tn==null?void 0:Tn.question_type)===8&&ye.createElement("div",null,ye.createElement(je.Z,{disabledFill:!0,className:Kn.content,showProgramFill:!0,value:Le.Base64.decode(((ai=Tn==null?void 0:Tn.program_attr)==null?void 0:ai.code)||"")})),(Tn==null?void 0:Tn.question_type)===5&&ye.createElement("div",{style:{background:"#F6F7F9",padding:"0px 20px",height:46,lineHeight:"46px",marginTop:40,display:"flex",alignItems:"center"}},ye.createElement("div",{style:{flex:1,alignItems:"center",display:"flex"}},ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u521B\u5EFA\u8005"),ye.createElement("span",{style:{color:"#000000"}},(Tn==null?void 0:Tn.author_name)||"- -")),ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u6240\u5C5E\u5355\u4F4D"),ye.createElement("span",{style:{color:"#000000"}},(Tn==null?void 0:Tn.author_school_name)||"- -")),ye.createElement("div",{style:{marginRight:30}},ye.createElement("span",{style:{marginRight:10}},"\u5B66\u4E60\u4EBA\u6570"),ye.createElement("span",{style:{color:"#000000"}},(Tn==null?void 0:Tn.study_count)||"0"))),ye.createElement("a",{className:Kn.shixunbutton,href:`/shixuns/${Tn==null?void 0:Tn.identifier}/challenges?exercise=true`,target:"_blank"},ye.createElement("i",{onClick:()=>{},style:{marginRight:20},className:"iconfont icon-shixunkecheng mr5 "}),"\u5B9E\u8BAD\u8BE6\u60C5"))),((Tn==null?void 0:Tn.question_type)<=4||[6,8].includes(Tn==null?void 0:Tn.question_type))&&ye.createElement("div",{className:Kn.bottom},ye.createElement("div",{className:Kn.bottomitem},ye.createElement("span",{className:Kn.left},"\u89E3\u6790"),ye.createElement("span",{className:Kn.right},Tn!=null&&Tn.analysis?ye.createElement(je.Z,{value:Tn==null?void 0:Tn.analysis}):ye.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~"))),ye.createElement("div",{className:Kn.bottomitem},ye.createElement("span",{className:Kn.left},"\u96BE\u5EA6"),ye.createElement("span",{className:Kn.right},(Tn==null?void 0:Tn.difficulty)===1?"\u7B80\u5355":(Tn==null?void 0:Tn.difficulty)===2?"\u9002\u4E2D":"\u56F0\u96BE")),ye.createElement("div",{className:Kn.bottomitem},ye.createElement("span",{className:Kn.left},"\u77E5\u8BC6\u70B9"),ye.createElement("span",{className:Kn.right},Tn!=null&&Tn.tag_discipline?Tn==null?void 0:Tn.tag_discipline:ye.createElement("span",{style:{color:"#C1C1C1"}},"\u6682\u672A\u8BBE\u7F6E~")))))},ke=De(61250),et=De(57149),an=De(46722),Bt=De(61485),Ut=De(59301),gt=Object.defineProperty,Pt=Object.defineProperties,Tt=Object.getOwnPropertyDescriptors,Yt=Object.getOwnPropertySymbols,dn=Object.prototype.hasOwnProperty,On=Object.prototype.propertyIsEnumerable,wn=(Tn,Cn,Mn)=>Cn in Tn?gt(Tn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Tn[Cn]=Mn,nn=(Tn,Cn)=>{for(var Mn in Cn||(Cn={}))dn.call(Cn,Mn)&&wn(Tn,Mn,Cn[Mn]);if(Yt)for(var Mn of Yt(Cn))On.call(Cn,Mn)&&wn(Tn,Mn,Cn[Mn]);return Tn},jt=(Tn,Cn)=>Pt(Tn,Tt(Cn)),Xt=(Tn,Cn,Mn)=>new Promise((yt,xt)=>{var Ct=di=>{try{$n(Mn.next(di))}catch(xn){xt(xn)}},Yn=di=>{try{$n(Mn.throw(di))}catch(xn){xt(xn)}},$n=di=>di.done?yt(di.value):Promise.resolve(di.value).then(Ct,Yn);$n((Mn=Mn.apply(Tn,Cn)).next())});const pn=({setScoreShow:Tn,ScoreShow:Cn,onOk:Mn,isshixuns:yt,isloadings:xt,dispatch:Ct,selectedIds:Yn,user:$n,virtualId:di,shixunsDetail:xn})=>{var ai;let[Pn,zi]=(0,ye.useState)({type:"0",page:1,per_page:10,updated_at:"",quotes:"",item_type:"PROGRAM"}),[fr,Ve]=(0,ye.useState)([]),[mt,Dn]=(0,ye.useState)([]),[An,Ot]=(0,ye.useState)([]),[Bn,Hn]=(0,ye.useState)([]);const[_n,Ei]=(0,ye.useState)(!1),[si]=Ke.default.useForm(),[Pi,yi]=(0,ye.useState)(),[_i,Ri]=(0,ye.useState)(!1);let[Di,sn]=(0,ye.useState)(yt);const[pr,Mr]=(0,ye.useState)([]),[Kr,En]=(0,ye.useState)(0),[Si,Vi]=(0,ye.useState)(!0),[Wi,$i]=(0,ye.useState)([]),[Pr,br]=(0,ye.useState)([]),Hi=[{name:"\u5168\u90E8",value:"",question_type:0},{name:"\u5355\u9009\u9898",value:"SINGLE",question_type:0},{name:"\u591A\u9009\u9898",value:"MULTIPLE",question_type:1},{name:"\u5224\u65AD\u9898",value:"JUDGMENT",question_type:2},{name:"\u586B\u7A7A\u9898",value:"COMPLETION",question_type:3},{name:"\u7B80\u7B54\u9898",value:"SUBJECTIVE",question_type:4},{name:"\u5B9E\u8BAD\u9898",value:"SHIXUN",question_type:5},{name:"\u7F16\u7A0B\u9898",value:"PROGRAM",question_type:6},{name:"\u7EC4\u5408\u9898",value:"COMBINATION",question_type:7},{name:"\u7A0B\u5E8F\u586B\u7A7A\u9898",value:"BPROGRAM",question_type:8}],[er,Gi]=(0,ye.useState)([]),cn=(0,ye.useRef)(new Set),sr=(0,ye.useRef)(new Set),yn=(0,ye.useRef)(1),bi=[{name:"\u7B80\u5355",value:1},{name:"\u9002\u4E2D",value:2},{name:"\u56F0\u96BE",value:3}],Cr=[{name:"\u521D\u7EA7",value:1},{name:"\u4E2D\u7EA7",value:2},{name:"\u4E2D\u9AD8\u7EA7",value:3},{name:"\u9AD8\u7EA7",value:4}],Nr=[{name:"\u672A\u53D1\u5E03",value:"unpublish"},{name:"\u9759\u9ED8\u53D1\u5E03",value:"silent_publish"},{name:"\u516C\u5F00\u53D1\u5E03",value:"public_publish"}],[to,Ur]=(0,ye.useState)(!1),Br=()=>{si.resetFields(),Di=!1,sn(!1),Ur(!1),si.submit()};(0,ye.useEffect)(()=>{Cn&&(si.setFieldsValue({item_type:"",courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,teach_group_id:null}),Si&&Di&&(si.setFieldsValue({item_type:"SHIXUN"}),Pn.item_type="SHIXUN",zi(nn({},Pn)),Vi(!1)),Pn.type="0",Dn(Yn),Ot(Yn),sr.current=new Set(Yn),ao(Pn),Qt(),Vn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),$t())},[Cn]),console.log(mt,An,"listitems"),(0,ye.useEffect)(()=>{Kr>0&&setTimeout(()=>{En(0)},2e3)},[Kr]);function ao(tt){return Xt(this,null,function*(){var Ft,Gt,Rt;if(Ei(!0),zi(nn({},tt)),(An==null?void 0:An.length)<=0&&tt.type==="5"){Hn([]),Ei(!1);return}let on=tt.type==="5"?An==null?void 0:An.filter(Re=>!pr.includes(Re)):null,li=tt.type==="5"?An==null?void 0:An.filter(Re=>pr.includes(Re)):null;yn.current=yn.current+1;const Ee=yn.current;let Ue=yield(0,Rn.ZP)("/api/item_banks.json",{method:"get",params:jt(nn({},tt),{discipline_id:((Ft=tt==null?void 0:tt.courseid)==null?void 0:Ft[0])||null,sub_discipline_id:((Gt=tt==null?void 0:tt.courseid)==null?void 0:Gt[1])||null,ids:on,shixun_ids:li,include_shixuns:!0,group_id:((Rt=tt.group_id)==null?void 0:Rt.map(Re=>Re==null?void 0:Re.value))||null,keyword:tt.keyword?encodeURIComponent(tt.keyword):tt.keyword,type:tt.type==="5"?null:tt.type,clazz:tt.type==="3"?"ItemBanksGroup":null})});yn.current===Ee&&(Hn(Ue),Ei(!1))})}function Qt(){return Xt(this,null,function*(){let tt=yield(0,Rn.ZP)("/api/disciplines.json",{method:"get",params:{source:"question",group_id:0,group_type:Pn.type==="5"?null:Pn.type,clazz:"ItemBanksGroup"}});Ve((0,Ai.L)(tt==null?void 0:tt.disciplines))})}function Vn(tt){return Xt(this,null,function*(){var Ft;let Gt=yield(0,Rn.ZP)("/api/item_banks_groups/for_problemset.json",{method:"post",body:tt}),Rt=[{title:"\u6839\u76EE\u5F55",id:0,pid:0,value:0,key:0,isLeaf:!1,children:(Ft=Gt==null?void 0:Gt.data)==null?void 0:Ft.map(on=>({title:on.name,id:on.id,pid:on.id,value:on.id,key:on.id,isLeaf:!on.have_child}))}];$i(Rt)})}function $t(){return Xt(this,null,function*(){let tt=yield(0,an.Dm)({});(tt==null?void 0:tt.status)===0&&br(tt==null?void 0:tt.groups)})}function Te(tt){return Xt(this,null,function*(){var Ft,Gt,Rt,on;Ei(!0);let li=(Ft=tt.list)==null?void 0:Ft.filter(Re=>!pr.includes(Re)),Ee=(Gt=tt.list)==null?void 0:Gt.filter(Re=>pr.includes(Re));if(li.length===0&&Ee.length===0){Ei(!1),Hn([]);return}let Ue=yield(0,Rn.ZP)("/api/item_banks.json",{method:"get",params:jt(nn({},tt),{discipline_id:((Rt=tt==null?void 0:tt.courseid)==null?void 0:Rt[0])||null,sub_discipline_id:((on=tt==null?void 0:tt.courseid)==null?void 0:on[1])||null,ids:li,shixun_ids:Ee,type:tt.type==="5"?null:tt.type,clazz:tt.type==="3"?"ItemBanksGroup":null})});Ei(!1),Hn(Ue)})}const He=tt=>Xt(void 0,null,function*(){const Ft=yield Ct({type:"shixunsDetail/release",payload:{id:tt}});let Gt=Ft==null?void 0:Ft.tag_position,Rt=(Ft==null?void 0:Ft.evaluation_set_position)||[],on=Ft.status;return on===0?(ne.ZP.success("\u53D1\u5E03\u6210\u529F"),ao(Pn),!0):(on===2?ne.ZP.error(`\u7B2C${Rt.join(",")}\u5173\u5C1A\u672A\u5B8C\u6210\uFF0C\u65E0\u6CD5\u7533\u8BF7\u53D1\u5E03`):on===3?ne.ZP.error(`\u6BCF\u4E00\u4E2A\u5173\u5361\u81F3\u5C11\u9700\u8981\u4E00\u4E2A\u6280\u80FD\u6807\u7B7E, \u7B2C${Gt.join(",")}\u5173\u5C1A\u672A\u8BBE\u7F6E\u6280\u80FD\u6807\u7B7E\uFF0C\u8BF7\u8865\u5145`):ne.ZP.error("\u5C1A\u672A\u521B\u5EFA\u4EFB\u52A1\u7684\u5B9E\u8BAD\uFF0C\u4E0D\u80FD\u7533\u8BF7\u53D1\u5E03"),!1)}),qe=tt=>(tt==null?void 0:tt.shixun_tag_num)===1?"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528\uFF0C\u8BF7\u5148\u8FDB\u884C\u53D1\u5E03":"",St=()=>_n?"\u6682\u65E0\u6570\u636E":Pn.type==="3"&&!(Pr!=null&&Pr.length)?Ut.createElement("span",null,"\u4F60\u8FD8\u672A\u52A0\u5165\u6559\u7814\u56E2\u961F\uFF0C\u8BF7\u5148 ",Ut.createElement("span",{onClick:()=>{var tt;return(0,me.xg)(`/users/${(tt=$n==null?void 0:$n.userInfo)==null?void 0:tt.login}/teach-group`)},style:{color:"#3061D0",cursor:"pointer"}},"\u65B0\u521B\u5EFA\u6559\u7814\u56E2\u961F")):Pn.type==="0"&&(Bn==null?void 0:Bn.items_count)===0&&!(Pn!=null&&Pn.tag_discipline_id)&&!(Pn!=null&&Pn.difficulty)&&!(Pn!=null&&Pn.keyword)&&!(Pn!=null&&Pn.group_id)&&!(Pn!=null&&Pn.difficulty)?Ut.createElement("span",null,"\u4F60\u8FD8\u672A\u521B\u5EFA\u8FC7\u7F16\u7A0B\u9898\uFF0C\u8BF7\u5148 ",Ut.createElement("span",{onClick:()=>{(0,me.xg)(`/problems/newcreate?&pageId=${di}`),Tn(!1)},style:{color:"#3061D0",cursor:"pointer"}},"\u521B\u5EFA\u7F16\u7A0B\u9898")):"\u6682\u65E0\u6570\u636E",It=(tt,Ft,Gt)=>tt.map(Rt=>Rt.key===Ft?nn(nn({},Rt),Gt):Rt.children?jt(nn({},Rt),{children:It(Rt.children,Ft,Gt)}):Rt),en=tt=>Xt(void 0,null,function*(){const{key:Ft}=tt;let Gt=Pn.type;const Rt=yield(0,an.ex)({page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",group_id:Math.abs(Ft),type:Gt}),{data:on,total_count:li}=Rt||{};li>0&&$i(Ee=>It(Ee,Ft,{children:on.map(Ue=>({title:Ue.name,id:Ue.id,pid:Ue.id,value:Ue.id,key:Ue.id,isLeaf:!Ue.have_child}))}))});return Ut.createElement("div",null,Ut.createElement(Et.default,{title:!1,footer:!1,open:Cn,width:1200,centered:!0,className:wt.scoremodal,onCancel:()=>{Tn(!1)}},Ut.createElement("div",{style:{display:"flex",alignItems:"center"}},Ut.createElement("div",{className:wt.title},"\u9009\u62E9\u7F16\u7A0B\u9898")),Ut.createElement(rn.default,{className:wt.tabWrap,activeKey:Pn.type,onChange:tt=>{tt==="3"?(Pn.show_all_share=!0,Vn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"3"})):Pn.show_all_share=null,tt==="0"&&Vn({group_id:0,page:1,per_page:20,sort_by:"updated_at",sort_direction:"desc",type:"0"}),Pn.type=tt,Pn.page=1,Pn.updated_at="",Pn.quotes="",Pn.courseid="",Pn.tag_discipline_id=null,Pn.difficulty=null,Pn.keyword=null,Pn.group_id=null,Pn.teach_group_id=null,si.setFieldsValue({courseid:"",tag_discipline_id:null,difficulty:null,keyword:null,group_id:[],teach_group_id:null}),(Pn==null?void 0:Pn.item_type)==="SHIXUN"&&Pn.type!=="5"&&(Di=!0,sn(!0)),Ur(!1),Pn.type==="5"&&(Di=!1,sn(!1)),zi(nn({},Pn)),ao(nn({},Pn)),Qt()},items:[{label:"\u6211\u521B\u5EFA\u7684",key:"0"},{label:"\u56E2\u961F\u5171\u4EAB",key:"3"},{label:"\u516C\u5171",key:"1"},{label:Ut.createElement("div",null,"\u5DF2\u9009",An.length>0&&Ut.createElement("span",{className:wt.titlecount},An.length),Kr>0&&Ut.createElement("span",{className:wt.add},"+",Kr)),key:"5"}]}),Ut.createElement(Ke.default,{layout:"inline",form:si,onValuesChange:(tt,Ft)=>{const Gt=Object.values(Ft).some(on=>on!==null&&on!==""&&on!==void 0),Rt=Ft.keyword==="";if(Ur(Gt||!Rt),Pn.page=1,(Ft==null?void 0:Ft.item_type)==="SHIXUN"){if(Pn.type==="5"?sn(!1):sn(!0),tt.keyword||tt.keyword==="")return;si.submit()}else{if(tt!=null&&tt.courseid&&si.setFieldsValue({tag_discipline_id:""}),sn(!1),tt.keyword||tt.keyword==="")return;si.submit()}},onFinish:tt=>{var Ft;Pn.type==="3"&&(!tt.group_id||((Ft=tt==null?void 0:tt.group_id)==null?void 0:Ft.length)===0)?Pn.show_all_share=!0:Pn.show_all_share=null,zi(nn(nn({},Pn),tt)),ao(nn(nn({},Pn),tt))}},Ut.createElement(Ke.default.Item,{name:"courseid"},Ut.createElement(Xn.Z,{className:wt.selectWrapper,style:{width:160},size:"middle",placeholder:"\u65B9\u5411&\u8BFE\u7A0B",options:fr})),!Di&&Ut.createElement(Ke.default.Item,{name:"tag_discipline_id"},Ut.createElement(Nn.default,{className:wt.selectWrapper,placeholder:"\u77E5\u8BC6\u70B9",style:{width:160},size:"middle",allowClear:!0},(ai=Bn==null?void 0:Bn.tag_disciplines)==null?void 0:ai.map(tt=>Ut.createElement(Nn.default.Option,{key:tt.id},tt.name)))),Ut.createElement(Ke.default.Item,{name:Di?"diff":"difficulty"},Ut.createElement(Nn.default,{className:wt.selectWrapper,placeholder:"\u96BE\u5EA6",style:{width:118},size:"middle",allowClear:!0},!Di&&bi.map(tt=>Ut.createElement(Nn.default.Option,{key:tt.value},tt.name)),Di&&Cr.map(tt=>Ut.createElement(Nn.default.Option,{key:tt.value},tt.name)))),Di&&Ut.createElement(Ke.default.Item,{name:"shixun_publish_status"},Ut.createElement(Nn.default,{className:wt.selectWrapper,placeholder:"\u5168\u90E8\u72B6\u6001",style:{width:118},size:"middle",allowClear:!0},Nr.map(tt=>Ut.createElement(Nn.default.Option,{key:tt.value},tt.name)))),Pn.type==="3"&&!Di&&Ut.createElement(Ke.default.Item,{name:"teach_group_id"},Ut.createElement(Nn.default,{className:wt.selectWrapper,placeholder:"\u56E2\u961F",style:{width:118},size:"middle",showSearch:!0,allowClear:!0,filterOption:(tt,Ft)=>(console.log("---",tt,Ft),Ft.children.toUpperCase().indexOf(tt.toUpperCase())!==-1)},Pr==null?void 0:Pr.map(tt=>Ut.createElement(Nn.default.Option,{key:tt.group_id},tt.name)))),(Pn.type==="3"||Pn.type==="0")&&!Di&&Ut.createElement(Ke.default.Item,{name:"group_id"},Ut.createElement(mi.default,{treeDataSimpleMode:!0,style:{width:118},className:wt.selectWrappers,multiple:!0,allowClear:!0,showSearch:!0,filterTreeNode:(tt,Ft)=>Ft.title.toUpperCase().indexOf(tt.toUpperCase())!==-1,dropdownStyle:{maxHeight:400,width:500,overflow:"auto"},placeholder:"\u8BF7\u9009\u62E9\u6587\u4EF6\u5939",treeCheckStrictly:!0,loadData:en,treeDefaultExpandedKeys:[0],maxTagCount:0,treeCheckable:!0,treeData:Wi})),to&&Ut.createElement("span",{className:wt.allqingchu,onClick:Br},Ut.createElement("i",{className:"iconfont icon-guanbi4"}),Ut.createElement("span",null,"\u6E05\u9664\u7B5B\u9009\u6761\u4EF6")),Ut.createElement(Ke.default.Item,{style:{flex:"0 0 auto",marginRight:0,marginLeft:"auto"},name:"keyword"},Ut.createElement(Me.default.Search,{className:wt.search,placeholder:"\u8BF7\u8F93\u5165\u8BD5\u9898\u7F16\u53F7\u6216\u5173\u952E\u8BCD\u641C\u7D22",allowClear:!0,suffix:Ut.createElement("i",{className:`iconfont icon-sousuo9 font14 ${wt.searchIcon}`,onClick:()=>si.submit()}),onSearch:tt=>{si.submit()}}))),Ut.createElement("div",{style:{background:"#F6F7F9",display:"flex",alignItems:"center",marginTop:18,height:40,paddingLeft:10,paddingRight:20}},Ut.createElement("div",{onClick:()=>{Pn.updated_at==="asc"?Pn.updated_at="desc":Pn.updated_at="asc",zi(jt(nn({},Pn),{page:1})),ao(jt(nn({},Pn),{page:1}))}}," ",Pn.updated_at?Ut.createElement("img",{src:Pn.updated_at==="asc"?ke.Z:et.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ut.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u66F4\u65B0\u65F6\u95F4\u6392\u5E8F"),Ut.createElement("div",{onClick:()=>{Pn.quotes==="asc"?Pn.quotes="desc":Pn.quotes="asc",zi(jt(nn({},Pn),{page:1})),ao(jt(nn({},Pn),{page:1}))},style:{marginLeft:20}}," ",Pn.quotes?Ut.createElement("img",{src:Pn.quotes==="asc"?ke.Z:et.Z,style:{width:"15px",verticalAlign:"text-bottom"},className:"font14 mr5 c-light-primary"}):Ut.createElement("i",{style:{fontSize:"14px"},className:"iconfont icon-jiangxu mr5 c-light-primary"}),"\u6309\u4F7F\u7528\u6B21\u6570\u6392\u5E8F")),Ut.createElement(zt.default,{style:{marginTop:2,marginBottom:20},scroll:{y:260},dataSource:(Bn==null?void 0:Bn.items)||(Bn==null?void 0:Bn.shixun_list),pagination:!1,locale:{emptyText:Ut.createElement(Xe.Z,{styles:{margin:"18px auto"},customText:St()})},loading:_n,rowKey:tt=>tt.id,rowSelection:{type:"checkbox",selectedRowKeys:mt,getCheckboxProps:tt=>({disabled:tt.shixun_tag_num===1}),onSelect(tt,Ft,Gt){if(Ft)Di&&Mr([...pr,tt.id]),Dn([...mt,tt.id]),Gi([...er,tt]),tt.identifier?cn.current.add(tt.id):sr.current.add(tt.id),En(1),Ot([...An,tt.id]);else{const Rt=er.filter(Ee=>Ee.id!==tt.id);Gi(Rt);const on=Rt.map(Ee=>Ee.id);Dn([...on]),tt.identifier?cn.current.delete(tt.id):sr.current.delete(tt.id);let li=An.filter(Ee=>Ee!==tt.id);if(Ot(li),Di){let Ee=pr.filter(Ue=>Ue!==tt.id);Mr([...Ee])}if(Pn.type==="5"){Te(jt(nn({},Pn),{list:[...li]}));return}}},onSelectAll(tt,Ft,Gt){if(tt){const Rt=Gt.map(on=>on.id);Di&&Mr([...pr,...Rt]),Gi([...er,...Gt]),Dn([...mt,...Rt]),Ot([...An,...Rt]);for(const on of Gt)on.identifier?cn.current.add(on.id):sr.current.add(on.id)}else{const Rt=Gt.map(Ee=>Ee.id),on=mt.filter(Ee=>!Rt.some(Ue=>Ue===Ee)),li=er.filter(Ee=>!Rt.some(Ue=>Ue===Ee.id));if(Gi(li),Dn([...on]),Ot([...on]),Di){let Ee=pr.filter(Ue=>!Rt.some(Re=>Re===Ue.id));Mr([...Ee])}Pn.type==="5"&&Te(jt(nn({},Pn),{list:[...on]}));for(const Ee of Rt)Ee.identifier?cn.current.delete(Ee):sr.current.delete(Ee)}}},columns:[{title:"\u8BD5\u9898\u7F16\u53F7",dataIndex:"id",key:"id",width:110,render:(tt,Ft,Gt)=>{const Rt=`No.${tt}`;return Ut.createElement(Ht.Z,{title:Rt},Ut.createElement("span",null,Rt))}},{title:"\u8BD5\u9898\u540D\u79F0",dataIndex:"name",width:Di?"30%":"60%",key:"name",render:(tt,Ft,Gt)=>{var Rt;return Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("span",null,Ut.createElement(je.Z,{key:1,showLines:1,showTextOnly:!0,value:Di||Ft!=null&&Ft.challenge_names?Ft!=null&&Ft.title||tt===null?"--":tt:(Ft==null?void 0:Ft.item_type)=="BPROGRAM"?(Rt=Ft==null?void 0:Ft.program_attr)==null?void 0:Rt.description:tt})))}},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",key:"tag_discipline",ellipsis:!0,width:150,render:(tt,Ft,Gt)=>Ut.createElement(Ht.Z,{title:tt},Ut.createElement("span",null,tt||"- -"))},{title:"\u521B\u5EFA\u8005",dataIndex:"author_name",key:"author_name",hidden:!Di,render:(tt,Ft,Gt)=>{var Rt;return Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("span",null,tt?(Rt=tt==null?void 0:tt.split("\u3001"))==null?void 0:Rt[0]:"- -"))}},{title:"\u6240\u5C5E\u5355\u4F4D",dataIndex:"author_school_name",key:"author_school_name",hidden:!Di,render:(tt,Ft,Gt)=>Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("span",null,tt||"- -"))},{title:"\u96BE\u5EA6",dataIndex:"difficulty",key:"difficulty",width:50,render:(tt,Ft,Gt)=>{var Rt,on,li,Ee;return Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("div",null,Di||Ft!=null&&Ft.challenge_names?(Ft==null?void 0:Ft.level)||((on=(Rt=bi==null?void 0:bi.filter(Ue=>Ue.value===tt))==null?void 0:Rt[0])==null?void 0:on.name):(Ee=(li=bi==null?void 0:bi.filter(Ue=>Ue.value===tt))==null?void 0:li[0])==null?void 0:Ee.name))}},{title:"\u5173\u5361\u6570\u91CF",dataIndex:"challenges_count",key:"challenges_count",hidden:!Di,render:(tt,Ft,Gt)=>Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("div",null,tt||"- -"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes",key:"quotes",width:74,render:(tt,Ft,Gt)=>Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("div",null,Di||Ft!=null&&Ft.challenge_names?(Ft==null?void 0:Ft.study_count)||(Ft==null?void 0:Ft.stu_num):tt))},{title:Ut.createElement("span",null,"\u53D1\u5E03\u72B6\u6001 ",Ut.createElement(Ht.Z,{title:"\u672A\u53D1\u5E03\u7684\u5B9E\u8DF5\u9879\u76EE\u4E0D\u80FD\u88AB\u9009\u7528"},Ut.createElement(Bt.Z,null))),dataIndex:"shixun_tag_num_name",key:"shixun_tag_num_name",hidden:!Di,render:(tt,Ft,Gt)=>Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("div",null,tt||"- -"))},{title:"\u64CD\u4F5C",dataIndex:"id",key:"item_type",width:50,align:"right",render:(tt,Ft,Gt)=>Ut.createElement(Ht.Z,{title:qe(Ft)},Ut.createElement("div",{style:{flex:1,textAlign:"start"}},Ut.createElement("a",{onClick:()=>{var Rt,on;yi(jt(nn({},Ft),{question_type:Di||Ft!=null&&Ft.challenge_names?5:(on=(Rt=Hi==null?void 0:Hi.filter(li=>li.value===(Ft==null?void 0:Ft.item_type)))==null?void 0:Rt[0])==null?void 0:on.question_type})),Ri(!0)}},"\u67E5\u770B"),(Ft==null?void 0:Ft.shixun_tag_num)===1&&Ut.createElement("a",{style:{marginLeft:10},onClick:()=>{Et.default.confirm({title:"\u63D0\u793A",icon:null,centered:!0,width:400,content:Ut.createElement("div",null,"\u662F\u5426\u786E\u5B9A\u53D1\u5E03",Ut.createElement("span",{style:{cursor:"pointer",color:"#3061D0"},onClick:()=>{window.open(`/shixuns/${Ft==null?void 0:Ft.identifier}/challenges`)}},(Ft==null?void 0:Ft.shixun_name)||"--"),"\uFF1F"),onOk:()=>Xt(void 0,null,function*(){if(!He(Ft==null?void 0:Ft.identifier))return new Promise((Rt,on)=>{on()})})})}},"\u53D1\u5E03")))}].filter(tt=>!tt.hidden)}),Ut.createElement(Zt.Z,{current:Pn.page,total:(Bn==null?void 0:Bn.items_count)||(Bn==null?void 0:Bn.shixuns_count),style:{marginBottom:20},defaultPageSize:Pn.per_page,hideOnSinglePage:!(Bn!=null&&Bn.items_count),showTotal:tt=>Ut.createElement("span",null,"\u5171\xA0",Ut.createElement("span",{style:{color:"#165DFF"}},tt),"\xA0\u6761\u6570\u636E"),pageSize:Pn.per_page,onChange:(tt,Ft)=>{Pn.page=tt,Pn.per_page=Ft,zi(nn({},Pn)),ao(nn({},Pn))}}),Ut.createElement("div",{className:wt.bottom},Ut.createElement(Kt.ZP,{className:wt.no,onClick:()=>{Tn(!1)}},"\u53D6\u6D88"),Ut.createElement(Kt.ZP,{loading:xt,style:{width:xt&&75},className:wt.yes,onClick:()=>Xt(void 0,null,function*(){if((An==null?void 0:An.length)<=0){ne.ZP.info("\u5F53\u524D\u6682\u672A\u9009\u62E9\u6570\u636E");return}Mn([...sr.current],[...cn.current],!0,An==null?void 0:An.length)})},"\u786E\u8BA4"))),Ut.createElement(Et.default,{open:_i,title:"\u9898\u76EE\u8BE6\u60C5",footer:!1,className:wt.previewModal,width:1e3,centered:!0,onCancel:()=>{Ri(!1)},onOk:()=>{Ri(!1)}},Ut.createElement(Ge,{qitem:Pi})))};var bn=(0,Se.connect)(({shixunsDetail:Tn,user:Cn})=>({shixunsDetail:Tn,user:Cn}))(pn),Un=De(29267),ti=De(61186),pi=De.n(ti),vn=De(59301),wi=Object.defineProperty,Yi=Object.defineProperties,gr=Object.getOwnPropertyDescriptors,rr=Object.getOwnPropertySymbols,tr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable,hr=(Tn,Cn,Mn)=>Cn in Tn?wi(Tn,Cn,{enumerable:!0,configurable:!0,writable:!0,value:Mn}):Tn[Cn]=Mn,ar=(Tn,Cn)=>{for(var Mn in Cn||(Cn={}))tr.call(Cn,Mn)&&hr(Tn,Mn,Cn[Mn]);if(rr)for(var Mn of rr(Cn))vr.call(Cn,Mn)&&hr(Tn,Mn,Cn[Mn]);return Tn},Xi=(Tn,Cn)=>Yi(Tn,gr(Cn)),yr=(Tn,Cn)=>{var Mn={};for(var yt in Tn)tr.call(Tn,yt)&&Cn.indexOf(yt)<0&&(Mn[yt]=Tn[yt]);if(Tn!=null&&rr)for(var yt of rr(Tn))Cn.indexOf(yt)<0&&vr.call(Tn,yt)&&(Mn[yt]=Tn[yt]);return Mn},Ce=(Tn,Cn,Mn)=>new Promise((yt,xt)=>{var Ct=di=>{try{$n(Mn.next(di))}catch(xn){xt(xn)}},Yn=di=>{try{$n(Mn.throw(di))}catch(xn){xt(xn)}},$n=di=>di.done?yt(di.value):Promise.resolve(di.value).then(Ct,Yn);$n((Mn=Mn.apply(Tn,Cn)).next())});const Sn=({title:Tn,icon:Cn,className:Mn,style:yt,children:xt})=>vn.createElement("div",{className:Dt()(nt.card,Mn),style:yt},vn.createElement("div",{className:nt.head},vn.createElement("i",{className:Cn}),vn.createElement("b",null,Tn)),vn.createElement("div",{className:nt.element},xt)),Gn=Tn=>{var Cn=Tn,{value:Mn,onChange:yt}=Cn,xt=yr(Cn,["value","onChange"]);return vn.createElement(ze.Z,Xi(ar({},xt),{defaultValue:Mn,onChange:yt}))},dr=({value:Tn=[],onChange:Cn,params:Mn,className:yt})=>{const[xt,Ct]=(0,ye.useState)(!1),[Yn,$n]=(0,ye.useState)([]),[di,xn]=(0,ye.useState)(""),[ai,Pn]=(0,ye.useState)([]),[zi,fr]=(0,ye.useState)("");(0,ye.useEffect)(()=>{Ve()},[]);function Ve(){return Ce(this,null,function*(){let mt=yield(0,Rn.ZP)(`/api/courses/${Mn==null?void 0:Mn.coursesId}/teachers`,{method:"get",params:{homework_id:Mn.categoryId,limit:1e3}});Pn((mt==null?void 0:mt.teacher_list)||[])})}return vn.createElement(ye.Fragment,null,vn.createElement("div",{className:Dt()(nt.collaborator,yt)},Tn==null?void 0:Tn.map(mt=>vn.createElement(dt.Z,{align:"middle",className:`${nt.btn} ${zi==(mt==null?void 0:mt.user_id)?nt.delBorder:""}`,key:mt.user_id},vn.createElement("span",{className:"c-grey-333"},mt==null?void 0:mt.name),vn.createElement("span",{className:`iconfont icon-guanbi11 current ml20 c-grey-ccc ${nt.delSty}`,onMouseEnter:()=>{fr(mt==null?void 0:mt.user_id)},onMouseLeave:()=>{fr("")},onClick:()=>{const Dn=Tn.filter(An=>An.user_id!==mt.user_id);$n(Dn.map(An=>An.user_id)),Cn(Dn)}}))),vn.createElement(Kt.ZP,{className:nt.copHover,style:{height:38,padding:"6px 15px"},type:"primary",ghost:!0,onClick:()=>Ct(!0)},"\u6DFB\u52A0\u534F\u4F5C\u8005")),vn.createElement(Et.default,{title:"\u6DFB\u52A0\u534F\u4F5C\u8005",open:xt,onCancel:()=>Ct(!1),onOk:()=>{const mt=ai.filter(Dn=>Yn.includes(Dn.user_id));Cn(mt),Ct(!1)},afterClose:()=>{xn("")}},vn.createElement(dt.Z,{align:"middle"},vn.createElement("label",null,"\u59D3\u540D\uFF1A"),vn.createElement(Me.default.Search,{value:di,size:"middle",style:{flex:1},onChange:mt=>xn(mt.target.value)})),vn.createElement(zt.default,{style:{marginTop:10,height:300,overflow:"auto"},rowSelection:{type:"checkbox",onChange:mt=>{$n(mt)},selectedRowKeys:Yn,getCheckboxProps:mt=>({disabled:mt.is_collaborator})},pagination:!1,rowKey:"user_id",size:"middle",dataSource:ai.filter(mt=>mt.name.includes(di)),columns:[{title:"\u59D3\u540D",dataIndex:"name"},{title:"\u89D2\u8272",dataIndex:"role"}]})))};var Ii=()=>{var Tn;const Cn=(0,Se.useParams)(),Mn=(0,Se.useDispatch)(),[yt]=Ke.default.useForm(),xt=Ke.default.useWatch("hack_score_settings",yt),Ct=Ke.default.useWatch("open_code",yt),Yn=Ke.default.useWatch("rank_forbidden",yt),$n=Ke.default.useWatch("hack_analysis",yt),di=Ke.default.useWatch("hack_answer",yt),[xn,ai]=(0,ye.useState)([]),[Pn,zi]=(0,ye.useState)({}),[fr,Ve]=(0,ye.useState)({course_end_date:null,manage_all_group:!0,send_type:0,can_publish:!0,difficult_settings:[],difficult_count:[],unified_setting:!0}),[mt,Dn]=(0,ye.useState)(!0),[An,Ot]=(0,ye.useState)(!1),[Bn,Hn]=(0,ye.useState)(!1),[_n,Ei]=(0,ye.useState)({}),[si,Pi]=(0,ye.useState)(!1),[yi,_i]=(0,ye.useState)(!1),Ri=(0,ye.useRef)(!1),Di=(0,ye.useRef)(String(Math.random()).slice(-6)),sn=(Tn=window.location.pathname)==null?void 0:Tn.includes("add");(0,ye.useEffect)(()=>(window.addEventListener("visibilitychange",pr),()=>{window.removeEventListener("visibilitychange",pr)}),[xn,_n]),(0,ye.useEffect)(()=>(Mn({type:"globalSetting/footerToggle",payload:!1}),()=>{Mn({type:"globalSetting/footerToggle",payload:!0})}),[]),(0,ye.useEffect)(()=>{xn.length&&xt!==void 0&&Wi()},[xt,JSON.stringify(xn==null?void 0:xn.map(Hi=>Hi.id+Hi.hack_score))]),(0,ye.useEffect)(()=>{Mr(),sn?Dn(!1):Kr()},[]);const pr=()=>Ce(void 0,null,function*(){var Hi;if(document.visibilityState==="visible"){_i(!0);let er=xn.map(sr=>sr.id),Gi=localStorage.getItem(Di.current);Gi&&(Gi=JSON.parse(Gi),Gi=Array.isArray(Gi)?Gi:[],er=[...er,...Gi],localStorage.removeItem(Di.current));const cn=yield(0,Rn.ZP)("/api/item_banks.json",{method:"get",params:{hack_item_bank_ids:er.length?er:-1,homework_common_id:sn?null:_n==null?void 0:_n.homework_id}});if(cn!=null&&cn.items){const sr=(Hi=cn==null?void 0:cn.items)==null?void 0:Hi.map(yn=>{const bi=xn.find(Cr=>Cr.id===yn.id);return bi?Xi(ar({},yn),{hack_score:bi.hack_score}):yn});ai(sr)}_i(!1)}}),Mr=()=>Ce(void 0,null,function*(){const Hi=yield(0,Rn.ZP)(`/api/courses/${Cn.coursesId}/homework_commons/new.json`,{method:"get",params:{category:Cn==null?void 0:Cn.categoryId,type:5}});Hi!=null&&Hi.course_name&&zi(Hi)}),Kr=()=>Ce(void 0,null,function*(){var Hi,er;const Gi=yield(0,Rn.ZP)(`/api/homework_commons/${Cn==null?void 0:Cn.categoryId}/edit_hack.json`,{method:"get"});if((Gi==null?void 0:Gi.status)===0){const cn=(Hi=Gi==null?void 0:Gi.collaborators_data)==null?void 0:Hi.map(yn=>({user_id:yn.id,name:yn.real_name}));yt.setFieldsValue(Xi(ar({},Gi),{user_ids:cn,rank_forbidden_start:Gi!=null&&Gi.rank_forbidden_start?pi()(Gi==null?void 0:Gi.rank_forbidden_start):"",rank_forbidden_end:Gi!=null&&Gi.rank_forbidden_end?pi()(Gi==null?void 0:Gi.rank_forbidden_end):""}));const sr=(er=Gi==null?void 0:Gi.items)==null?void 0:er.map((yn,bi)=>{var Cr,Nr;return Xi(ar({},yn),{hack_score:(Nr=(Cr=Gi==null?void 0:Gi.hack_settings)==null?void 0:Cr[bi])==null?void 0:Nr.hack_score})});ai(sr||[]),Ei(ar({},Gi))}Dn(!1)}),En=()=>{let Hi=`/classrooms/${Cn==null?void 0:Cn.coursesId}/program_homework`;return sn||(Hi=`/classrooms/${Cn==null?void 0:Cn.coursesId}/program_homework/${Cn==null?void 0:Cn.categoryId}/detail`),Hi},Si=[{name:(Pn==null?void 0:Pn.course_name)||"",path:`/classrooms/${Pn==null?void 0:Pn.course_id}/program_homework`},{name:sn?"\u7F16\u7A0B\u4F5C\u4E1A":_n==null?void 0:_n.name,path:En()},{name:(sn?"\u65B0\u5EFA":"\u7F16\u8F91")+"\u7F16\u7A0B\u4F5C\u4E1A"}],Vi=[{title:"\u5E8F\u53F7",dataIndex:"index",width:80,render:(Hi,er,Gi)=>Gi+1},{title:"\u6807\u9898",dataIndex:"name",ellipsis:!0,render:Hi=>vn.createElement(Ht.Z,{placement:"topLeft",title:Hi},vn.createElement("span",null,Hi||"--"))},{title:"\u5206\u503C",dataIndex:"hack_score",render:(Hi,er,Gi)=>vn.createElement(Ne.Z,{disabled:xt!==2,size:"middle",min:0,precision:1,addonAfter:"\u5206",value:Hi,onChange:cn=>{xn[Gi].hack_score=cn;const sr=xn.reduce((yn,bi)=>yn+Number(bi.hack_score||0),0);yt.setFieldsValue({total_score:sr.toFixed(2)}),ai([...xn])}})},{title:"\u96BE\u5EA6",dataIndex:"difficulty",align:"center",width:90,render:Hi=>vn.createElement("span",null,Hi===1?"\u7B80\u5355":Hi===2?"\u4E2D\u7B49":"\u56F0\u96BE")},{title:"\u77E5\u8BC6\u70B9",dataIndex:"tag_discipline",render:Hi=>vn.createElement(Ht.Z,{placement:"topLeft",title:Hi},vn.createElement("span",{style:{backgroundColor:"#ECFAF5",color:"#1B8565",overflow:"hidden",textOverflow:"ellipsis",padding:"2px 6px"}},Hi||"--"))},{title:"\u4F7F\u7528\u6B21\u6570",dataIndex:"quotes"},{title:"\u64CD\u4F5C",dataIndex:"action",width:146,render:(Hi,er)=>vn.createElement("span",null,vn.createElement("span",{onClick:()=>Ce(void 0,null,function*(){var Gi;Mn({type:"globalSetting/setGlobalLoading",payload:{show:!0,text:"\u6B63\u5728\u521D\u59CB\u5316\uFF0C\u8BF7\u7A0D\u540E..."}});let cn=yield(0,Rn.ZP)(`/api/problems/${(Gi=er==null?void 0:er.program_attr)==null?void 0:Gi.identifier}/start.json`,{method:"get"});(cn==null?void 0:cn.status)===0&&(0,me.xg)(`/myproblems/${cn==null?void 0:cn.identifier}?type=1&pageId=edit&backUrl=${En()}`),Mn({type:"globalSetting/setGlobalLoading",payload:{show:!1}})}),className:"c-light-primary current"},"\u4F53\u9A8C"),vn.createElement("span",{onClick:()=>{var Gi;return(0,me.xg)(`/problems/newedit/${(Gi=er==null?void 0:er.program_attr)==null?void 0:Gi.identifier}?type=1&pageId=edit&backUrl=${window.location.pathname}`)},className:"c-light-primary current mr20 ml20"},"\u7F16\u8F91"),vn.createElement("span",{onClick:()=>{const Gi=xn.filter(cn=>cn.id!==er.id);ai(Gi),ne.ZP.success("\u5220\u9664\u6210\u529F")},className:"current",style:{color:"#E30000"}},"\u5220\u9664"))}],Wi=()=>{const Hi=[...xn],er=yt.getFieldValue("total_score"),Gi=Hi==null?void 0:Hi.length;let cn=0,sr;switch(xt){case 0:const yn=(er/Gi).toFixed(2);Hi.map((Qt,Vn)=>{cn=Vn,Qt.hack_score=yn>0?yn:0}),sr=(er-yn*(Gi-1)).toFixed(2),Hi[cn].hack_score=sr>0?sr:0;break;case 1:const bi=[0,1,3,6];let Cr=0;const Nr=Hi.filter(Qt=>Qt.difficulty===1).length*bi[1],to=Hi.filter(Qt=>Qt.difficulty===2).length*bi[2],Ur=Hi.filter(Qt=>Qt.difficulty===3).length*bi[3],Br=er/(Nr+to+Ur);Hi.map((Qt,Vn)=>{cn=Vn,Qt.hack_score=(bi[Qt.difficulty]*Br).toFixed(2),Cr=Cr+Number(Qt.hack_score)});let ao=Hi[cn].hack_score;sr=(er-Cr+Number(ao)).toFixed(2),Hi[cn].hack_score=sr>0?sr:0;break}ai(Hi)},$i=Hi=>{Ri.current=Hi,yt.submit()},Pr=Hi=>Ce(void 0,null,function*(){var er;if(!xn.length){ne.ZP.error("\u672A\u8BBE\u7F6E\u7F16\u7A0B\u9898\uFF0C\u8BF7\u6DFB\u52A0\u7F16\u7A0B\u9898"),yt.scrollToField("hack_score_settings",{behavior:"smooth",block:"center"});return}Pi(!0);const Gi=[],cn=xn.map(bi=>(Gi.push(bi.hack_id),{hack_id:bi.hack_id,hack_name:bi.name,hack_score:bi.hack_score,difficult:bi.difficulty})),sr=(er=Hi==null?void 0:Hi.user_ids)==null?void 0:er.map(bi=>bi.user_id),yn=yield(0,Rn.ZP)(`/api/courses/${Cn.coursesId}/homework_commons/create_hack_homework.json`,{method:"post",body:Xi(ar({},Hi),{category:sn?Number(Cn==null?void 0:Cn.categoryId):null,homework_id:sn?null:_n==null?void 0:_n.homework_id,hack_settings:cn,user_ids:sr,hack_ids:Gi})});if((yn==null?void 0:yn.status)===0)if(ne.ZP.success("\u4FDD\u5B58\u6210\u529F"),Ri.current){const bi=ar({},yn);Ve(bi),Mn({type:"classroomList/setActionTabs",payload:{key:"\u7ACB\u5373\u53D1\u5E03",selectArrs:[yn==null?void 0:yn.id],selectArrsAll:[bi],params:Cn,detail:!0,type:2,manage_all_group:bi==null?void 0:bi.manage_all_group}})}else Se.history.push(`/classrooms/${Cn.coursesId}/program_homework/${yn==null?void 0:yn.id}/detail`);Pi(!1)}),br=Hi=>Ce(void 0,null,function*(){if(!Hi.length){ne.ZP.warning("\u8BF7\u9009\u62E9\u7F16\u7A0B\u9898");return}if(Hi.length>200){ne.ZP.warning("\u7F16\u7A0B\u9898\u6570\u91CF\u4E0D\u5F97\u8D85\u8FC7200\u9053");return}const er=[],Gi=xn.map(yn=>{var bi;return(bi=yn.program_attr)==null?void 0:bi.origin_item_bank_id}),cn=[];Hi.forEach(yn=>{if(Gi.includes(yn)){const bi=xn.find(Cr=>{var Nr;return((Nr=Cr.program_attr)==null?void 0:Nr.origin_item_bank_id)===yn});cn.push(bi)}else er.push(yn)}),Hn(!0);const sr=yield(0,Rn.ZP)("/api/problems/copy_item_banks.json",{method:"post",body:{ids:er}});if(sr!=null&&sr.items){const yn=[...cn,...sr==null?void 0:sr.items];if(xt===2){const bi=yn.reduce((Cr,Nr)=>Cr+Number(Nr.hack_score||0),0);yt.setFieldsValue({total_score:bi.toFixed(2)})}ai(yn),Ot(!1)}Hn(!1)});return vn.createElement("div",{className:nt.wrap},vn.createElement(te.Z,{spinning:mt},vn.createElement("div",{className:nt.center},vn.createElement(Mt._b,{dataSource:Si,className:"mb20"}),vn.createElement(Ke.default,{form:yt,preserve:!1,onValuesChange:Hi=>{"total_score"in Hi&&Wi()},onFinishFailed:Hi=>Ce(void 0,null,function*(){var er,Gi;ne.ZP.error(Hi.errorFields[0].errors[0]),yt.scrollToField((Gi=(er=Hi==null?void 0:Hi.errorFields)==null?void 0:er[0])==null?void 0:Gi.name,{behavior:"smooth",block:"center"})}),onFinish:Pr,colon:!1,size:"large"},vn.createElement(Sn,{className:"mb20",title:"\u57FA\u672C\u4FE1\u606F",icon:"iconfont icon-jibenxinxi2"},vn.createElement(Ke.default.Item,{label:"\u4F5C\u4E1A\u540D\u79F0",name:"name",rules:[{required:!0,message:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0"},{whitespace:!0,message:"\u4F5C\u4E1A\u540D\u79F0\u4E0D\u80FD\u4E3A\u7A7A"}]},vn.createElement(Me.default,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u540D\u79F0",showCount:!0,maxLength:60})),vn.createElement(Ke.default.Item,{labelCol:{flex:"81px"},label:"\u4F5C\u4E1A\u8BF4\u660E",name:"description",initialValue:"",rules:[{max:5e4,message:"\u4F5C\u4E1A\u8BF4\u660E\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26"}]},vn.createElement(Gn,{placeholder:"\u8BF7\u8F93\u5165\u4F5C\u4E1A\u8BF4\u660E\uFF0C\u6700\u5927\u9650\u523650000\u4E2A\u5B57\u7B26",watch:!0}))),vn.createElement(Sn,{className:"mb20",title:"\u9898\u76EE\u8BBE\u7F6E",icon:"iconfont icon-timushezhi"},vn.createElement(Ke.default.Item,{label:"\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00",name:"languages",rules:[{required:!0,message:"\u8BF7\u9009\u62E9\u8BD5\u9898\u7F16\u7A0B\u8BED\u8A00"}]},vn.createElement(de.default.Group,null,vn.createElement(de.default,{value:"c"},"C\u8BED\u8A00"),vn.createElement(de.default,{value:"c++"},"C++\u8BED\u8A00"),vn.createElement(de.default,{value:"java"},"Java\u8BED\u8A00"),vn.createElement(de.default,{value:"python"},"Python\u8BED\u8A00"))),vn.createElement(dt.Z,{align:"middle"},vn.createElement(Ke.default.Item,{label:"\u603B\u5206\u503C",name:"total_score",rules:[{required:!0,message:"\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A"}],initialValue:100},vn.createElement(Ne.Z,{precision:1,disabled:xt===2,min:0,style:{width:223},addonAfter:"\u5206"})),vn.createElement(Ke.default.Item,{label:"\u6D4B\u8BC4\u5355\u6B21\u62A5\u9519\u589E\u52A0\u65F6\u957F",name:"punish_time",initialValue:0,style:{marginLeft:40}},vn.createElement(Ne.Z,{min:0,style:{width:223},addonAfter:"\u5206\u949F"}))),vn.createElement(Ke.default.Item,{label:"\u8BD5\u9898\u5206\u503C",name:"hack_score_settings",initialValue:0},vn.createElement(le.ZP.Group,null,vn.createElement(le.ZP,{value:0},"\u5747\u5206\u6BD4\u4F8B"),vn.createElement(le.ZP,{style:{margin:"0 40px"},value:1},"\u96BE\u6613\u5EA6"),vn.createElement(le.ZP,{value:2},"\u81EA\u5B9A\u4E49\u5206\u503C"))),vn.createElement(dt.Z,{align:"middle"},vn.createElement("span",null,"\u9898\u76EE\u5217\u8868"),vn.createElement(Kt.ZP,{onClick:()=>Ot(!0),style:{marginLeft:"auto",width:110},type:"primary",ghost:!0},"\u9009\u62E9\u7F16\u7A0B\u9898"),vn.createElement(Kt.ZP,{onClick:()=>(0,me.xg)(`/problems/newcreate?pageId=${Di.current}`),style:{marginLeft:20,width:110},type:"primary"},"\u65B0\u589E\u7F16\u7A0B\u9898")),vn.createElement("div",{className:nt.tip},vn.createElement("i",{className:"iconfont icon-tishi12 mr5 font14"}),"\u63D0\u793A\uFF1A\u53EF\u4EE5\u70B9\u51FB\u201C\u7F16\u8F91\u201D\u5BF9\u8BE5\u8BD5\u9898\u7684\u6D4B\u8BD5\u7528\u4F8B/\u521D\u59CB\u4EE3\u7801\u8FDB\u884C\u4FEE\u6539\uFF0C\u4FEE\u6539\u7684\u5185\u5BB9\u5E76\u4E0D\u4F1A\u540C\u6B65\u5230\u8BD5\u9898\u5E93"),vn.createElement(Ke.default.Item,{name:"hack_settings",className:"mb0",initialValue:[]},vn.createElement(Fn,{dataSource:xn,setDataSource:ai,columns:Vi,loading:yi}))),vn.createElement(Sn,{style:{marginBottom:100},title:"\u4F5C\u4E1A\u8BBE\u7F6E",icon:"iconfont icon-zuoyeshezhi"},vn.createElement("div",{className:nt.title},"\u6392\u884C\u699C\u65F6\u95F4\u540D\u6B21\u89C4\u5219"),vn.createElement("div",{className:`${nt.content} mb30`},vn.createElement(Ke.default.Item,{name:"hack_rank_rule",noStyle:!0,initialValue:0},vn.createElement(le.ZP.Group,null,vn.createElement(le.ZP,{value:0},vn.createElement("span",{className:"c-black"},"\u8017\u65F6\u65F6\u957F\u4F18\u5148"),vn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u8017\u65F6\u8D8A\u77ED\u540D\u6B21\u8D8A\u524D\uFF09")),vn.createElement(le.ZP,{style:{marginLeft:40},value:1},vn.createElement("span",{className:"c-black"},"\u5B8C\u6210\u65F6\u95F4\u70B9\u4F18\u5148"),vn.createElement("span",{className:"c-grey-666 font14"},"\uFF08\u540C\u6210\u7EE9\uFF0C\u5B8C\u6210\u65F6\u95F4\u8D8A\u65E9\u540D\u6B21\u8D8A\u524D\uFF09"))))),vn.createElement("div",{className:`${nt.title} mt30`},"\u5B66\u751F\u5B9E\u9A8C\u62A5\u544A\u4EE3\u7801\u5C55\u793A\u8BBE\u7F6E"),vn.createElement("div",{className:nt.content},vn.createElement(Ke.default.Item,{name:"show_late_code",noStyle:!0,valuePropName:"checked",initialValue:!0},vn.createElement(de.default,null,vn.createElement("span",{className:"c-black"},"\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\uFF0C\u5C55\u793A\u6240\u6709\u8BC4\u6D4B\u4EE3\u7801\uFF0C\u5426\u5219\u53EA\u5C55\u793A\u5728\u4F5C\u4E1A\u65F6\u95F4\u8303\u56F4\u5185\u63D0\u4EA4\u7684\u4EE3\u7801\uFF09")))),vn.createElement("div",{className:`${nt.title} mt30`},"\u516C\u5F00\u8BBE\u7F6E"),vn.createElement("div",{className:nt.content},vn.createElement(Ke.default.Item,{name:"score_open",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(de.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u6210\u7EE9"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u52FE\u9009\u540E\u5B66\u751F\u5728\u4F5C\u4E1A\u622A\u6B62/\u8865\u4EA4\u7ED3\u675F\u540E\uFF0C\u53EF\u67E5\u770B\u5176\u4ED6\u5B66\u751F\u7684\u6210\u7EE9\uFF09"))),vn.createElement(Ke.default.Item,{name:"open_code",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(de.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u4EE3\u7801"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u53EF\u5728\u6392\u884C\u699C\u4E2D\u67E5\u770B\u4ED6\u4EBA\u8BD5\u9898\u901A\u8FC7\u4EE3\u7801\u8BE6\u60C5\uFF09"))),!!Ct&&vn.createElement(Ke.default.Item,{name:"open_code_type",className:"mb0 ml25",initialValue:1},vn.createElement(le.ZP.Group,null,vn.createElement(le.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),vn.createElement(le.ZP,{style:{marginLeft:60},value:0},"\u4EFB\u610F\u65F6\u95F4"))),vn.createElement(Ke.default.Item,{name:"rank_forbidden",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(de.default,null,vn.createElement("span",{className:"c-black"},"\u5F00\u542F\u5C01\u699C"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u4E0D\u53EF\u67E5\u770B\u6392\u884C\u699C\u4FE1\u606F\u7684\u65F6\u95F4\u6BB5\uFF09"))),!!Yn&&vn.createElement(dt.Z,{align:"middle",className:"ml25"},vn.createElement(Ke.default.Item,{label:"\u5F00\u59CB\u65F6\u95F4",name:"rank_forbidden_start",initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u5F00\u59CB\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},vn.createElement(ge.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u5F00\u59CB\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:me.Q8,disabledTime:me.d0})),vn.createElement(Ke.default.Item,{label:"\u622A\u6B62\u65F6\u95F4",name:"rank_forbidden_end",style:{marginLeft:40},initialValue:"",rules:[{required:!0,message:"\u5C01\u699C\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"}],className:"mb0"},vn.createElement(ge.default,{style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm"},format:"YYYY-MM-DD HH:mm",disabledDate:me.Q8,disabledTime:me.d0}))),vn.createElement(Ke.default.Item,{name:"hack_analysis",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(de.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u89E3\u6790"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u89E3\u6790\uFF09"))),!!$n&&vn.createElement(Ke.default.Item,{name:"hack_analysis_type",className:"mb0 ml25",initialValue:2},vn.createElement(le.ZP.Group,null,vn.createElement(le.ZP,{value:2},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),vn.createElement(le.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4"),vn.createElement(le.ZP,{style:{marginLeft:60},value:1},"\u5B66\u751F\u901A\u8FC7\u7B54\u9898\u540E/\u672A\u901A\u8FC7\u7684\u5B66\u751F\u4F5C\u4E1A\u622A\u6B62\u540E"))),vn.createElement(Ke.default.Item,{name:"hack_answer",valuePropName:"checked",className:"mb0",initialValue:!1},vn.createElement(de.default,null,vn.createElement("span",{className:"c-black"},"\u516C\u5F00\u7B54\u6848"),vn.createElement("span",{className:"c-grey-666 ml10"},"\uFF08\u8BBE\u7F6E\u5B66\u751F\u5728\u5B9E\u9A8C\u9875\u9762\u67E5\u770B\u8BD5\u9898\u7B54\u6848\uFF09"))),!!di&&vn.createElement(Ke.default.Item,{name:"hack_answer_type",className:"mb0 ml25",initialValue:1},vn.createElement(le.ZP.Group,null,vn.createElement(le.ZP,{value:1},"\u4F5C\u4E1A\u7ED3\u675F\u540E"),vn.createElement(le.ZP,{value:0,style:{marginLeft:60}},"\u4EFB\u610F\u65F6\u95F4")))),vn.createElement("div",{className:`${nt.title} mt30`},"\u534F\u4F5C\u8BBE\u7F6E"),vn.createElement(Ke.default.Item,{name:"user_ids",noStyle:!0,initialValue:[]},vn.createElement(dr,{params:Cn}))))),vn.createElement("div",{className:nt.fixedBtns},vn.createElement(dt.Z,{align:"middle",className:nt.center},vn.createElement(Kt.ZP,{onClick:()=>Se.history.push(En()),style:{padding:"6px 15px"},type:"primary",ghost:!0},"\u53D6\u6D88"),vn.createElement(Kt.ZP,{loading:si&&!Ri.current,disabled:si&&Ri.current,onClick:()=>$i(!1),style:{marginLeft:"auto",marginRight:20,padding:"6px 40px"},type:"primary",ghost:!0},"\u4FDD\u5B58\u4F5C\u4E1A"),vn.createElement(Kt.ZP,{loading:si&&Ri.current,disabled:si&&!Ri.current,onClick:()=>$i(!0),style:{padding:"6px 19px"},type:"primary"},"\u4FDD\u5B58\u5E76\u53D1\u5E03\u4F5C\u4E1A")))),vn.createElement(bn,{setScoreShow:Ot,isshixuns:!1,ScoreShow:An,virtualId:Di.current,isloadings:Bn,onOk:br,selectedIds:xn.map(Hi=>{var er;return(er=Hi.program_attr)==null?void 0:er.origin_item_bank_id})||[]}),vn.createElement(Un.Z,{courseEndTime:fr==null?void 0:fr.course_end_date,onWindowBack:()=>{window.location.href=`/classrooms/${Cn==null?void 0:Cn.coursesId}/program_homework/${fr==null?void 0:fr.id}/detail`}}))}},29267:function(Jn,gi,De){"use strict";var ye=De(59301),nt=De(28284),it=De(6767),Dt=De(62957),Mt=De(77019),ze=De(47889),dt=De(71051),Kt=De(5269),Et=De(16326),Me=De(62673),zt=De(61186),Ke=De.n(zt),Ht=De(38986),Ne=De(48790),ne=De(51257),te=De(25690),de=De(73410),le=De(82264),ge=De(48716),me=De(59301),Se=Object.defineProperty,be=Object.defineProperties,Ie=Object.getOwnPropertyDescriptors,Ze=Object.getOwnPropertySymbols,st=Object.prototype.hasOwnProperty,Ye=Object.prototype.propertyIsEnumerable,Xe=(kn,un,_t)=>un in kn?Se(kn,un,{enumerable:!0,configurable:!0,writable:!0,value:_t}):kn[un]=_t,At=(kn,un)=>{for(var _t in un||(un={}))st.call(un,_t)&&Xe(kn,_t,un[_t]);if(Ze)for(var _t of Ze(un))Ye.call(un,_t)&&Xe(kn,_t,un[_t]);return kn},ft=(kn,un)=>be(kn,Ie(un)),Nt=(kn,un)=>{var _t={};for(var hn in kn)st.call(kn,hn)&&un.indexOf(hn)<0&&(_t[hn]=kn[hn]);if(kn!=null&&Ze)for(var hn of Ze(kn))un.indexOf(hn)<0&&Ye.call(kn,hn)&&(_t[hn]=kn[hn]);return _t},Lt=(kn,un,_t)=>new Promise((hn,vt)=>{var $e=Fn=>{try{ci(_t.next(Fn))}catch(rn){vt(rn)}},gn=Fn=>{try{ci(_t.throw(Fn))}catch(rn){vt(rn)}},ci=Fn=>Fn.done?hn(Fn.value):Promise.resolve(Fn.value).then($e,gn);ci((_t=_t.apply(kn,un)).next())});const ln=kn=>{var un=kn,{classroomList:_t,dispatch:hn,courseEndTime:vt,onWindowBack:$e}=un,gn=Nt(un,["classroomList","dispatch","courseEndTime","onWindowBack"]),ci,Fn,rn,Xn,Nn,mi,Zt,Rn,wt,Ai,Kn,je,Le,we,Be,Ge,ke,et,an,Bt,Ut,gt,Pt,Tt,Yt,dn,On,wn,nn,jt,Xt,pn,bn,Un,ti,pi,vn,wi,Yi;const gr=(0,te.useParams)(),[rr]=nt.default.useForm(),[tr,vr]=(0,ye.useState)(1),[hr,ar]=(0,ye.useState)([]),[Xi,yr]=(0,ye.useState)(0),[Ce,Sn]=(0,ye.useState)(2e3),[Gn,dr]=(0,ye.useState)(!0),[or,Ii]=(0,ye.useState)(!1),[Tn,Cn]=(0,ye.useState)(!1),[Mn,yt]=(0,ye.useState)([]),[xt,Ct]=(0,ye.useState)(!0),[Yn,$n]=(0,ye.useState)(!((rn=(Fn=(ci=_t.actionTabs)==null?void 0:ci.selectArrsAll)==null?void 0:Fn[0])!=null&&rn.send_type));let[di,xn]=(0,ye.useState)([0,0,0]);(0,ye.useEffect)(()=>{var An,Ot,Bn,Hn,_n,Ei,si,Pi,yi,_i,Ri,Di,sn;if(_t.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03")if(fr(),(Bn=(Ot=(An=_t.actionTabs)==null?void 0:An.selectArrsAll)==null?void 0:Ot[0])!=null&&Bn.can_publish?xn([...(yi=(Pi=(si=_t.actionTabs)==null?void 0:si.selectArrsAll)==null?void 0:Pi[0])==null?void 0:yi.difficult_count]):xn([...(Ei=(_n=(Hn=_t.actionTabs)==null?void 0:Hn.selectArrsAll)==null?void 0:_n[0])==null?void 0:Ei.difficult_settings]),$n(!((Di=(Ri=(_i=_t.actionTabs)==null?void 0:_i.selectArrsAll)==null?void 0:Ri[0])!=null&&Di.send_type)),ai(),_t.actionTabs.type===2){const pr=(sn=_t.actionTabs.selectArrsAll)==null?void 0:sn[0];Ct(pr.unified_setting)}else Ct(!1)},[_t.actionTabs]),(0,ye.useEffect)(()=>{if(or){if(Tn)return;hn({type:"classroomList/setActionTabs",payload:{}}),(0,Ne.GJ)()?(hn({type:"classroomList/getClassroomTeacherCommonList",payload:ft(At({},_t.actionTabs.params),{type:1})}),hn({type:"shixunHomeworks/getWorkList",payload:At({},gr)})):hn({type:"classroomList/getClassroomCommonList",payload:At({},_t.actionTabs.params)})}},[or]);const ai=An=>Lt(void 0,null,function*(){dr(!0);const Ot=yield(0,le.c_)(ft(At({},gr),{page:An||tr,limit:2e4,homework_id:_t.actionTabs.type===1?"":_t.actionTabs.selectArrs[0]}));Ot==null||Ot.course_groups.map((Bn,Hn)=>{Bn.key=Bn.id,Bn.title=Bn.name,Bn.disabled=Bn.is_published}),Ot&&(ar([...Ot==null?void 0:Ot.course_groups]),yr(Ot==null?void 0:Ot.course_groups_count),dr(!1),An||rr.setFieldsValue({publish_time:Ke()(Ke()(new Date).add(0,"days").format("YYYY-MM-DD HH:mm")),end_time:Ke()(Ke()(new Date).add(7,"days").format("YYYY-MM-DD HH:mm"))}))}),Pn=()=>{(0,Ne.GJ)()?_t.actionTabs.detail?(hn({type:"shixunHomeworks/setActionTabs",payload:{}}),hn({type:"shixunHomeworks/getWorkList",payload:At({},gr)}),hn({type:"shixunHomeworks/getWorkSetting",payload:At({},gr)})):hn({type:"classroomList/getClassroomTeacherCommonList",payload:ft(At({},_t.actionTabs.params),{type:5,category:_t.actionTabs.params.categoryId})}):hn({type:"classroomList/getClassroomCommonList",payload:At({},_t.actionTabs.params)})},zi=()=>Lt(void 0,null,function*(){var An,Ot;if((0,Ne.Rm)()&&!((An=_t.AssistantObject.hack)!=null&&An.can_publish)){it.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),Dn(!1);return}const Bn=At({},rr.getFieldsValue());if(Bn.end_time<=Bn.publish_time){it.ZP.info("\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u5927\u4E8E\u6216\u7B49\u4E8E\u53D1\u5E03\u65F6\u95F4"),Dn(!1);return}if((Mn==null?void 0:Mn.length)<=0&&!xt&&hr.length>0){it.ZP.info("\u53D1\u5E03\u73ED\u7EA7\u4E0D\u80FD\u4E3A\u7A7A"),Dn(!1);return}if(di.reduce((Ei,si)=>Ei+si)===0&&!Yn){it.ZP.info("\u7B80\u5355\u9002\u4E2D\u56F0\u96BE\u9898\u6570\u76F8\u52A0\u4E0D\u80FD\u4E3A0"),Dn(!1);return}let Hn={homework_ids:[..._t.actionTabs.selectArrs],group_ids:Mn.length>0?Mn.map(Ei=>Ei.id):(Ot=_t.detailCommonHomeworksList)==null?void 0:Ot.course_groups,end_time:Ke()(Bn.end_time).format("YYYY-MM-DD HH:mm"),publish_time:Ke()(Bn.publish_time).format("YYYY-MM-DD HH:mm"),difficult_settings:di==null?void 0:di.map(Ei=>Ei),send_type:Yn?"0":"1",unified_setting:!Mn.length};if(Dn(!0),(yield(0,Ht.ZP)(`/api/courses/${gr.coursesId}/homework_commons/publish_with_homework_list_position.json`,{method:"post",body:At({},Hn)})).status===0){if(Dn(!1),(0,ne.L9)(["\u6559\u5B66\u8BFE\u5802","\u56FE\u6587\u4F5C\u4E1A","\u7ACB\u5373\u53D1\u5E03"]),it.ZP.success("\u53D1\u5E03\u6210\u529F"),hn({type:"classroomList/setActionTabs",payload:{key:"\u6E05\u9664\u9009\u62E9\u6570\u636E"}}),$e){$e();return}gn.onCallback&&gn.onCallback(),Pn(),localStorage.getItem("Noviceguide")==="0"||hn({type:"shixunHomeworks/setActionTabs",payload:{key:"\u5E95\u90E8\u5F39\u7A97",type:13,text:me.createElement("div",null,"\u6700\u540E\uFF0C\u54B1\u4EEC\u7ED9\u6559\u5B66\u8BFE\u5802\u6DFB\u52A0\u4E00\u540D\u5B66\u751F~\u70B9\u51FB\u201C\u6DFB\u52A0\u5B66\u751F\u201D\uFF0C\u5728\u5F39\u7A97\u9875\u9762\u4E2D\u8F93\u5165\u5E76\u641C\u7D22\u5B66\u751F\u59D3\u540D\uFF0C\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u5C31\u53EF\u4EE5\u4E3A\u60A8\u7684\u8BFE\u5802\u6DFB\u52A0\u7B2C\u4E00\u4F4D\u5B66\u751F\u5566~")}})}else Dn(!1)}),fr=()=>{vr(1),ar([]),yt([])},Ve=Xi>tr*Ce,[mt,Dn]=(0,ye.useState)(!1);return me.createElement(Dt.default,{width:600,confirmLoading:mt,centered:!0,title:"\u53D1\u5E03\u4F5C\u4E1A",open:_t.actionTabs.key==="\u7ACB\u5373\u53D1\u5E03",okText:"\u53D1\u5E03\u4F5C\u4E1A",cancelText:"\u6682\u4E0D\u53D1\u5E03",onOk:zi,onCancel:()=>{if(fr(),hn({type:"classroomList/setActionTabs",payload:{}}),$e){$e();return}Pn()}},me.createElement("p",{className:"tc"},"\u5B66\u751F\u5C06\u7ACB\u5373\u6536\u5230\u4F5C\u4E1A",me.createElement("br",null),'\u672C\u64CD\u4F5C\u53EA\u5BF9"\u672A\u53D1\u5E03"\u7684\u4F5C\u4E1A\u6709\u6548'),hr&&me.createElement(nt.default,{form:rr},me.createElement("div",{style:{paddingLeft:0}},_t.actionTabs.type===2&&me.createElement(Mt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u8BD5\u9898\u53D1\u9001:"),me.createElement(ze.ZP.Group,{value:Yn,disabled:!((mi=(Nn=(Xn=_t.actionTabs)==null?void 0:Xn.selectArrsAll)==null?void 0:Nn[0])!=null&&mi.can_publish),onChange:An=>{$n(An.target.value)}},me.createElement(ze.ZP,{value:!0},"\u5168\u90E8\u56FA\u5B9A\u8BD5\u9898"),me.createElement(ze.ZP,{className:"ml20",value:!1},"\u968F\u673A\u62BD\u53D6"))),!Yn&&me.createElement(Mt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{style:{marginRight:65}}),me.createElement("span",null,"\u7B80\u5355\u9898\u6570 ",me.createElement(dt.Z,{value:di[0],onChange:An=>{di[0]=An,xn([...di])},min:0,disabled:!((wt=(Rn=(Zt=_t.actionTabs)==null?void 0:Zt.selectArrsAll)==null?void 0:Rn[0])!=null&&wt.can_publish),placeholder:`\u6700\u5927${(Le=(je=(Kn=(Ai=_t.actionTabs)==null?void 0:Ai.selectArrsAll)==null?void 0:Kn[0])==null?void 0:je.difficult_count)==null?void 0:Le[0]}`,max:(ke=(Ge=(Be=(we=_t.actionTabs)==null?void 0:we.selectArrsAll)==null?void 0:Be[0])==null?void 0:Ge.difficult_count)==null?void 0:ke[0],style:{width:60}})),me.createElement("span",{style:{margin:"0px 40px"}},"\u9002\u4E2D\u9898\u6570 ",me.createElement(dt.Z,{value:di[1],onChange:An=>{di[1]=An,xn([...di])},min:0,disabled:!((Bt=(an=(et=_t.actionTabs)==null?void 0:et.selectArrsAll)==null?void 0:an[0])!=null&&Bt.can_publish),max:(Tt=(Pt=(gt=(Ut=_t.actionTabs)==null?void 0:Ut.selectArrsAll)==null?void 0:gt[0])==null?void 0:Pt.difficult_count)==null?void 0:Tt[1],placeholder:`\u6700\u5927${(wn=(On=(dn=(Yt=_t.actionTabs)==null?void 0:Yt.selectArrsAll)==null?void 0:dn[0])==null?void 0:On.difficult_count)==null?void 0:wn[1]}`,style:{width:60}})),me.createElement("span",null,"\u56F0\u96BE\u9898\u6570 ",me.createElement(dt.Z,{value:di[2],onChange:An=>{di[2]=An,xn([...di])},min:0,disabled:!((Xt=(jt=(nn=_t.actionTabs)==null?void 0:nn.selectArrsAll)==null?void 0:jt[0])!=null&&Xt.can_publish),placeholder:`\u6700\u5927${(ti=(Un=(bn=(pn=_t.actionTabs)==null?void 0:pn.selectArrsAll)==null?void 0:bn[0])==null?void 0:Un.difficult_count)==null?void 0:ti[2]}`,max:(Yi=(wi=(vn=(pi=_t.actionTabs)==null?void 0:pi.selectArrsAll)==null?void 0:vn[0])==null?void 0:wi.difficult_count)==null?void 0:Yi[2],style:{width:60}}))),me.createElement(Mt.Z,{className:"mt30",align:"middle"},me.createElement(Kt.Z,null,me.createElement(nt.default.Item,{name:"publish_time",label:"\u53D1\u5E03\u65F6\u95F4"},me.createElement(Et.default,{style:{width:170,marginRight:"25px"},disabledDate:An=>(0,ge.Q8)(An,vt),disabledTime:An=>(0,ge.d0)(An),placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ke()((0,ne.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",allowClear:!1}))),me.createElement(Kt.Z,{className:"ml20"},me.createElement(nt.default.Item,{name:"end_time",label:"\u622A\u6B62\u65F6\u95F4"},me.createElement(Et.default,{style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ke()((0,ne.U6)(),"HH:mm")},disabledDate:An=>(0,ge.Q8)(An,vt,rr.getFieldValue("publish_time")),disabledTime:An=>(0,ge.d0)(An,rr.getFieldValue("publish_time")),format:"YYYY-MM-DD HH:mm",allowClear:!1})))),_t.actionTabs.type===2&&me.createElement(Mt.Z,{style:{marginBottom:"10px"}},me.createElement("span",{className:"mr5"},"\u53D1\u5E03\u8BBE\u7F6E:"),me.createElement(ze.ZP.Group,{value:xt,onChange:An=>{Ct(An.target.value),yt([])}},me.createElement(ze.ZP,{value:!0,disabled:!_t.actionTabs.manage_all_group},"\u7EDF\u4E00\u53D1\u5E03"),me.createElement(ze.ZP,{className:"ml20",disabled:hr.length<=0,value:!1},"\u5206\u73ED\u53D1\u5E03"))),hr.length<=0&&_t.actionTabs.type===2&&me.createElement("span",{style:{marginLeft:"65px",color:"rgba(0, 0, 0, 0.25)"}},'\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03"')),(_t.actionTabs.type===1||!xt)&&hr.length>0&&me.createElement("div",{style:{display:"flex",justifyContent:"space-between",marginBottom:"10px"}},me.createElement("span",{style:{flex:1}},me.createElement(Me.default,{checked:Mn.length===hr.length,onChange:An=>{Mn.length===hr.length?yt([]):yt(hr.filter(Ot=>!Ot.is_published))}},"\u5168\u9009")," "),me.createElement("span",{style:{width:16}}),me.createElement("span",{style:{flex:1}},"\u5DF2\u9009\u62E9",Mn.length||0,"\u4E2A\u5206\u73ED")),(_t.actionTabs.type===1||!xt)&&hr.length>0&&me.createElement(de.Z,{data:hr,selectedRowKeys:Mn,setSelectedRowKeys:yt})))};gi.Z=(0,te.connect)(({classroomList:kn})=>({classroomList:kn}))(ln)},48716:function(Jn,gi,De){"use strict";De.d(gi,{Q8:function(){return $e},d0:function(){return gn},w6:function(){return vt}});var ye=De(59301),nt=De(16326),it=De(82326),Dt=De(6767),Mt=De(62957),ze=De(47889),dt=De(77019),Kt=De(5269),Et=De(25399),Me=De(62673),zt=De(99571),Ke=De(61186),Ht=De.n(Ke),Ne=De(48790),ne=De(38986),te=De(89392),de=De.n(te),le=De(51257),ge=De(22982),me=De(25690),Se=De(43155),be=De(40197),Ie=De(59229),Ze=De(3039),st=De(75736),Ye=De(59301),Xe=Object.defineProperty,At=Object.defineProperties,ft=Object.getOwnPropertyDescriptors,Nt=Object.getOwnPropertySymbols,Lt=Object.prototype.hasOwnProperty,ln=Object.prototype.propertyIsEnumerable,kn=(Nn,mi,Zt)=>mi in Nn?Xe(Nn,mi,{enumerable:!0,configurable:!0,writable:!0,value:Zt}):Nn[mi]=Zt,un=(Nn,mi)=>{for(var Zt in mi||(mi={}))Lt.call(mi,Zt)&&kn(Nn,Zt,mi[Zt]);if(Nt)for(var Zt of Nt(mi))ln.call(mi,Zt)&&kn(Nn,Zt,mi[Zt]);return Nn},_t=(Nn,mi)=>At(Nn,ft(mi)),hn=(Nn,mi,Zt)=>new Promise((Rn,wt)=>{var Ai=Le=>{try{je(Zt.next(Le))}catch(we){wt(we)}},Kn=Le=>{try{je(Zt.throw(Le))}catch(we){wt(we)}},je=Le=>Le.done?Rn(Le.value):Promise.resolve(Le.value).then(Ai,Kn);je((Zt=Zt.apply(Nn,mi)).next())});function vt(Nn,mi){const Zt=[];for(let Rn=Nn;Rn<mi;Rn++)Zt.push(Rn);return Zt}const $e=(Nn,mi,Zt)=>{const Rn=Nn<Ht()().startOf("day"),wt=Nn>Ht()(mi).endOf("day"),Ai=Nn<Ht()(Zt).startOf("day");return mi?Zt?Ht()()<=Ht()(Zt)?Ai||wt:Rn||wt:Nn&&Rn||wt:Zt&&Ht()()<=Ht()(Zt)?Ai:Rn},gn=(Nn,mi)=>{const Zt=parseInt(Ht()(Nn).format("HH")),Rn=parseInt(Ht()().format("HH")),wt=parseInt(Ht()().format("mm"));if(!Nn)return{disabledHours:()=>vt(0,Rn),disabledMinutes:()=>vt(0,wt)};if(mi){const Ai=parseInt(Ht()(mi).format("HH")),Kn=parseInt(Ht()(mi).format("mm"));return Ht()(Nn).isSame(Ht()(mi),"day")?{disabledHours:()=>vt(0,Ai),disabledMinutes:()=>Zt<=Ai?vt(0,Kn):[]}:void 0}if(Ht()(Nn).isSame(Ht()(),"day"))return{disabledHours:()=>vt(0,Rn),disabledMinutes:()=>Ht()(Nn).isSame(Ht()(),"hour")&&Zt<=Rn?vt(0,wt):[]}},ci=(Nn,mi)=>Nn==null?void 0:Nn.map(Zt=>{var Rn;return(Rn=mi==null?void 0:mi.find(wt=>wt.value===Zt))==null?void 0:Rn.id}),{RangePicker:Fn}=nt.default,{Option:rn}=it.default,Xn=({shixunHomeworks:Nn,loading:mi,dispatch:Zt,classroomList:Rn,user:wt})=>{var Ai,Kn,je,Le,we,Be,Ge,ke,et;const an=(0,me.useParams)(),{workSetting:Bt,workList:Ut,shixunWorkList:gt,headerInfo:Pt,changeData:Tt}=Nn,[Yt,dn]=(0,ye.useState)(!1),[On,wn]=(0,ye.useState)(!1);let[nn,jt]=(0,ye.useState)([]),[Xt,pn]=(0,ye.useState)([]),[bn,Un]=(0,ye.useState)({unified_setting:!1,publish_time:"",end_time:"",allow_late:!1,unified_late:!0,late_time:"",late_penalty:0,penalty_type:Se.Q.Percent,challenge_settings:[],work_efficiency:!1,shixun_evaluation:"",answer_open_evaluation:!1,answer_public:!1,score_open:!1,comment_public:!0,total_score:"",eff_score:0,action_analysis:!1,work_end_forbid_evaluate:!1});const[ti,pi]=(0,ye.useState)({}),[vn,wi]=(0,ye.useState)({});(0,ye.useEffect)(()=>()=>{jt([])},[]),(0,ye.useEffect)(()=>{dn(!(0,Ne.GJ)())},[(0,Ne.GJ)()]);const Yi=()=>{Zt({type:"shixunHomeworks/getWorkSetting",payload:un({},an)})};(0,ye.useEffect)(()=>{if(!(Bt!=null&&Bt.course_id))return;Object.keys(bn).map(function(Gn){bn[Gn]=Bt[Gn]}),(!bn.allow_late||!bn.unified_late)&&(bn.late_penalty=20,bn.penalty_type=Se.Q.Percent),bn.unified_setting||(bn.unified_late=!1,bn.unified_anonymous_comment=!1,bn.unified_anonymous_appeal=!1),nn=JSON.parse(JSON.stringify(Bt.group_settings.map(Gn=>_t(un({},Gn),{group_name:[Gn.group_name]})).filter(Gn=>Gn.publish_time!==null))),Xt=JSON.parse(JSON.stringify(Bt.allow_late_settings.map(Gn=>_t(un({},Gn),{group_name:[Gn.group_name]})).filter(Gn=>Gn.late_time!==null))),Un(un({},bn));const Sn=(0,le.QE)((nn==null?void 0:nn.length)>0?nn:[]);jt([...Sn]),(Xt==null?void 0:Xt.length)<=0?pn([{penalty_type:Se.Q.Percent,late_penalty:20}]):pn([...Xt])},[Bt]);const gr=()=>hn(void 0,null,function*(){var Sn,Gn;if(((Sn=wt==null?void 0:wt.userInfo)==null?void 0:Sn.user_status)===2){(0,be.Rd)();return}const dr=JSON.parse(JSON.stringify(bn));if(dr.challenge_settings.filter(Ii=>!Ii.hide),dr.categoryId=an.categoryId,(Gn=dr.challenge_settings)!=null&&Gn.every(Ii=>!Ii.checked)){Dt.ZP.warning("\u5173\u5361\u4E0D\u80FD\u5168\u90E8\u8BBE\u7F6E\u4E3A\u53EF\u4E0D\u505A");return}if(console.log(nn),!bn.unified_setting)nn=nn==null?void 0:nn.map(Ii=>{var Tn;if(!Ii.publish_time||!Ii.end_time)throw Dt.ZP.error("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u53D1\u5E03\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ii.group_name)throw Dt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ii.group_name=typeof(Ii==null?void 0:Ii.group_name)=="string"?[Ii==null?void 0:Ii.group_name]:Ii==null?void 0:Ii.group_name,Ii.group_id=(Tn=Bt.group_settings)==null?void 0:Tn.filter(Cn=>{var Mn;return(Mn=Ii==null?void 0:Ii.group_name)==null?void 0:Mn.includes(Cn.group_name)}).map(Cn=>Cn.group_id||Cn.id).toString().split(","),Ii});else if(!bn.publish_time||!bn.end_time)throw Dt.ZP.error("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A"),new String("\u53D1\u5E03\u622A\u6B62\u65F6\u95F4\u4E0D\u80FD\u4E3A\u7A7A");if(dr.group_settings=nn,bn.allow_late)if(bn.unified_late){if(bn.late_penalty===null||bn.late_penalty===void 0||bn.late_penalty<0||bn.late_penalty>100)throw Dt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!bn.late_time)throw Dt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574")}else Xt=Xt==null?void 0:Xt.map(Ii=>{var Tn,Cn;if(Ii.late_penalty===null||Ii.late_penalty===void 0||Ii.late_penalty<0||Ii.late_penalty>100)throw Dt.ZP.error("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100"),new String("\u8FDF\u4EA4\u6263\u5206\u586B\u5199\u533A\u95F4\u4E3A0~100");if(!Ii.late_time)throw Dt.ZP.error("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574"),new String("\u8BF7\u628A\u622A\u6B62\u65F6\u95F4\u586B\u5199\u5B8C\u6574");if(!Ii.group_name)throw Dt.ZP.error("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0"),new String("\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0");return Ii.group_name=typeof(Ii==null?void 0:Ii.group_name)=="string"?[Ii==null?void 0:Ii.group_name]:Ii==null?void 0:Ii.group_name,Ii.group_id=(Cn=(Tn=Ii==null?void 0:Ii.group_name)==null?void 0:Tn.map(Mn=>{var yt,xt;let Ct=(xt=(yt=Bt.group_settings)==null?void 0:yt.filter(Yn=>(Yn==null?void 0:Yn.group_name)===Mn))==null?void 0:xt[0];return Ct==null?void 0:Ct.group_id}))==null?void 0:Cn.toString().split(","),Ii}),dr.allow_late_settings=Xt;let or=yield(0,st.Tr)({homework_common_ids:[parseInt(an.categoryId)],course_id:an.coursesId,type:"homework_common"});(or==null?void 0:or.student_count)===0?rr(dr):(wi(dr),pi(or))}),rr=Sn=>{var Gn;if(Sn.total_score===null){Dt.ZP.warning("\u603B\u5206\u503C\u4E0D\u80FD\u4E3A\u7A7A");return}if(Sn!=null&&Sn.work_efficiency&&Sn.eff_score===null){Dt.ZP.warning("\u6548\u7387\u5206\u4E0D\u80FD\u4E3A\u7A7A");return}const dr=Sn.challenge_settings.reduce((Tn,Cn)=>Tn+Number(Cn.challenge_score),0);if((dr==null?void 0:dr.toFixed(10))!==((Gn=Sn.total_score-Sn.eff_score)==null?void 0:Gn.toFixed(10))){Dt.ZP.warning(`\u6548\u7387\u5206\u52A0\u5173\u5361\u4EFB\u52A1\u603B\u5206\u5FC5\u987B\u7B49\u4E8E\u603B\u5206\u503C\uFF1A${Sn.total_score}\u5206`);return}const or={shixun_evaluation:Sn.shixun_evaluation,challenge_settings:Sn.challenge_settings};let Ii=()=>{var Tn;const Cn=()=>hn(void 0,null,function*(){wn(!0),(yield(0,ne.ZP)(`/api/homework_commons/${an.categoryId}/publish_setting.json`,{method:"post",body:un({},Sn)})).status===0&&(Dt.ZP.success("\u66F4\u65B0\u6210\u529F"),Yi(),Zt({type:"shixunHomeworks/getShixunWorkHeadInfo",payload:un({},an)})),wn(!1)});!(0,te.isEqual)(Tt,or)&&!((Tn=Pt==null?void 0:Pt.homework_status)!=null&&Tn.includes("\u672A\u53D1\u5E03"))?Mt.default.confirm({title:"\u66F4\u65B0\u6210\u7EE9",content:"\u60A8\u6539\u52A8\u4E86\u672C\u6B21\u4F5C\u4E1A\u7684\u5173\u5361\u5F97\u5206\u8BBE\u7F6E\uFF0C\u8FD9\u53EF\u80FD\u5BFC\u81F4\u5DF2\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\u7684\u6210\u7EE9\u4EA7\u751F\u9519\u8BEF\u3002\u70B9\u51FB\u201C\u786E\u5B9A\u201D\u6309\u94AE\u5C06\u4FDD\u5B58\u6700\u65B0\u8BBE\u7F6E\u5E76\u6309\u6700\u65B0\u8BBE\u7F6E\u66F4\u65B0\u5168\u73ED\u6210\u7EE9\u3002",okText:"\u786E\u8BA4",cancelText:"\u53D6\u6D88",onOk:Cn}):Cn()};Bt!=null&&Bt.high_resources_consume&&!(Bt!=null&&Bt.high_resources_consume_permission)?Zt({type:"classroomList/setActionTabs",payload:{key:"\u6388\u6743\u4F7F\u7528",id:an.coursesId,type:"shixun",type_id:an.categoryId,name:Bt.homework_name,fn:()=>{Ii()}}}):Ii()},tr=(Sn,Gn,dr="group_id")=>{var or;return Gn?Gn.find(Ii=>Ii[dr]===Sn):(or=Bt==null?void 0:Bt.group_settings)==null?void 0:or.find(Ii=>Ii.group_id[0]===Sn)},vr=(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.anonymous_comment),hr=Sn=>{var Gn,dr;const or=tr(Sn,Bt==null?void 0:Bt.allow_late_settings,"id"),Ii=tr(Sn,Bt==null?void 0:Bt.anonymous_comment_settings),Tn=tr(Sn);return(Bt==null?void 0:Bt.allow_late)&&or&&Ht()(or==null?void 0:or.late_time)<=Ht()()||(Bt==null?void 0:Bt.anonymous_comment)&&Ii&&(Ii==null?void 0:Ii.evaluation_start)!==null||((dr=(Ht()(Tn==null?void 0:Tn.end_time)<=Ht()()&&((Gn=Bt==null?void 0:Bt.allow_late_settings)==null?void 0:Gn.filter(Cn=>Cn.group_id.includes(Sn))))[0])==null?void 0:dr.late_time)!=null},ar=(0,ye.useMemo)(()=>(Bt==null?void 0:Bt.allow_late)||(Bt==null?void 0:Bt.all_group_late),[Bt,Pt]),Xi=Bt==null?void 0:Bt.anonymous_comment,yr=Sn=>{if(!Sn)return!1;const Gn=tr(Sn,Bt==null?void 0:Bt.anonymous_comment_settings);return(Bt==null?void 0:Bt.anonymous_comment)&&Gn&&(Gn==null?void 0:Gn.evaluation_start)!==null},Ce=(Sn,Gn)=>{var dr,or,Ii,Tn,Cn;Sn!=null&&Sn.group_id||(Sn.group_id=ci(Sn==null?void 0:Sn.group_name,Bt==null?void 0:Bt.group_settings)),Zt({type:"classroomList/setActionTabs",payload:{key:"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",data:Sn,index:Gn,rangePickerDisabled:(or=(dr=Sn==null?void 0:Sn.group_id)==null?void 0:dr[0])!=null&&or.publish_time?Yt||(Ht()()<=Ht()((Tn=tr((Ii=Sn==null?void 0:Sn.group_id)==null?void 0:Ii[0]))==null?void 0:Tn.publish_time)?!1:[!0,hr((Cn=Sn==null?void 0:Sn.group_id)==null?void 0:Cn[0])]):!1,disabledDate:Bt==null?void 0:Bt.course_end_date}})};return Ye.createElement("section",{className:ge.Z.form},Ye.createElement("div",{className:ge.Z.title},"\u4F5C\u4E1A\u53D1\u5E03",Ye.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u4F5C\u4E1A\u4E00\u65E6\u53D1\u5E03\u540E\u4E0D\u53EF\u53D8\u66F4\u8BD5\u9898\u53D1\u5E03\u6A21\u5F0F\uFF09")),Ye.createElement("div",null,Ye.createElement("div",{style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ye.createElement(ze.ZP.Group,{disabled:Yt||!((Ai=Pt==null?void 0:Pt.homework_status)!=null&&Ai.includes("\u672A\u53D1\u5E03"))||(0,Ne.Rm)()&&!((Kn=Rn.AssistantObject.practice)!=null&&Kn.can_publish),value:bn.unified_setting,onChange:Sn=>{var Gn;if(!((Gn=Pt==null?void 0:Pt.homework_status)!=null&&Gn.includes("\u672A\u53D1\u5E03"))){Dt.ZP.error("\u5DF2\u53D1\u5E03\uFF0C\u4E0D\u80FD\u518D\u4FEE\u6539\u7EDF\u4E00\u8BBE\u7F6E");return}if(bn.unified_setting=!bn.unified_setting,bn.unified_setting||(bn.unified_late=!1,pn([{late_penalty:5}])),Un(Object.assign({},bn)),bn.unified_setting===!1&&nn==""){jt(nn.concat({}));return}bn.unified_setting&&(jt([]),pn([{late_penalty:5}]))}},Ye.createElement(ze.ZP,{value:!0,disabled:Yt||!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u53D1\u5E03"),Ye.createElement(ze.ZP,{disabled:Yt||!((je=Bt==null?void 0:Bt.group_settings)!=null&&je.length),value:!1},"\u5206\u73ED\u53D1\u5E03")),((Le=Bt==null?void 0:Bt.group_settings)==null?void 0:Le.length)===0&&Ye.createElement("div",{style:{color:"rgba(0, 0, 0, 0.25)",height:"22px"}},"\uFF08\u672C\u8BFE\u5802\u65E0\u5206\u73ED\uFF0C\u4EC5\u652F\u6301\u9009\u62E9\u201C\u7EDF\u4E00\u53D1\u5E03\u201C\uFF09")),bn.unified_setting&&Ye.createElement("div",{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",height:"50px",marginTop:"1px"}},Ye.createElement(dt.Z,{align:"middle"},Ye.createElement(Kt.Z,{style:{marginLeft:"23px"}},"\u53D1\u5E03\u65F6\u95F4"),Ye.createElement(Kt.Z,{className:"ml10"},Ye.createElement(nt.default,{size:"large",disabled:Yt||!((we=Pt==null?void 0:Pt.homework_status)!=null&&we.includes("\u672A\u53D1\u5E03")||(Be=Pt==null?void 0:Pt.homework_status)!=null&&Be.includes("\u672A\u5F00\u59CB"))||(0,Ne.Rm)()&&!((Ge=Rn.AssistantObject.practice)!=null&&Ge.can_publish),style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u53D1\u5E03\u65F6\u95F4",showTime:{format:"HH:mm"},allowClear:!1,format:"YYYY-MM-DD HH:mm",disabledDate:Sn=>$e(Sn,Bt==null?void 0:Bt.course_end_date),disabledTime:Sn=>gn(Sn),value:bn.publish_time?Ht()(bn.publish_time):"",onChange:(Sn,Gn)=>{bn.publish_time=Gn,(bn.end_time==""||!bn.end_time)&&bn.unified_setting&&(bn.end_time=Ht()(Sn).add(7,"days").format("YYYY-MM-DD HH:mm:ss")),Un(Object.assign({},bn))}}))),Ye.createElement(dt.Z,{align:"middle",className:"pl30"},Ye.createElement(Kt.Z,null,"\u622A\u6B62\u65F6\u95F4"),Ye.createElement(Kt.Z,{className:"ml10"},Ye.createElement(nt.default,{size:"large",style:{width:170},allowClear:!1,placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ht()((0,le.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:(Bt==null?void 0:Bt.allow_late)&&(Bt==null?void 0:Bt.homework_status.includes("\u5DF2\u622A\u6B62"))||Yt||(Bt==null?void 0:Bt.allow_late)&&Ht()()>=Ht()(Bt==null?void 0:Bt.end_time)||(0,Ne.Rm)()&&!((ke=Rn.AssistantObject.practice)!=null&&ke.can_publish),disabledDate:Sn=>$e(Sn,Bt==null?void 0:Bt.course_end_date,bn.publish_time),disabledTime:Sn=>gn(Sn,bn.publish_time),value:bn.end_time?Ht()(bn.end_time):"",onChange:(Sn,Gn)=>{bn.end_time=Gn,Un(Object.assign({},bn))}})))),!bn.unified_setting&&(nn==null?void 0:nn.length)>0&&Ye.createElement(dt.Z,{style:{display:"flex",color:"#666666",background:"#F6F7F9",padding:"5px 30px",marginTop:"1px"}},nn&&nn.map(function(Sn,Gn){var dr,or,Ii,Tn,Cn,Mn,yt;return Ye.createElement(Kt.Z,{span:24,key:Gn},Ye.createElement(dt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:Gn==(nn==null?void 0:nn.length)-1?"0px":"10px"}},Ye.createElement("div",{style:{minWidth:85,marginRight:"15px",textAlign:"right"}},"\u53D1\u5E03\u89C4\u5219",Gn+1),Ye.createElement(it.default,{disabled:Yt||((dr=Pt==null?void 0:Pt.homework_status)!=null&&dr.includes("\u672A\u53D1\u5E03")&&Sn.id||Ht()()<Ht()(Sn==null?void 0:Sn.publish_time)?!1:!!(Sn!=null&&Sn.publish_time))||(0,Ne.Rm)()&&!((or=Rn.AssistantObject.practice)!=null&&or.can_publish),mode:"multiple",className:ge.Z.multiple_select,style:{width:"250px"},value:Sn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:xt=>{var Ct;if((0,Ne.Rm)()&&!((Ct=Rn.AssistantObject.practice)!=null&&Ct.can_publish)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}nn[Gn].group_name=xt,nn[Gn].group_id=Sn.group_id;const Yn=(0,te.flattenDeep)(nn.map(di=>di.group_name)),$n=Xt.map(di=>{let xn=(di==null?void 0:di.group_name)||[];return _t(un({},di),{group_name:(0,te.remove)(xn,ai=>Yn.includes(ai))})});pn($n),jt(nn.slice())},maxTagCount:4,maxTagPlaceholder:xt=>Ye.createElement("div",{style:{cursor:"pointer"},onClick:()=>Ce(Sn,Gn)},"+",xt==null?void 0:xt.length)},Bt.group_settings&&Bt.group_settings.map(function(xt){if(!nn.map(Yn=>Yn.group_name).flat().includes(xt.group_name))return Ye.createElement(rn,{value:xt.group_name,key:xt.id},xt.group_name)})),Ye.createElement("div",{className:"ml20"},Ye.createElement(Fn,{size:"large",ranges:{\u6B64\u523B:[Sn.publish_time?Ht()(Sn.publish_time):Ht()(),Ht()()]},allowClear:!1,disabled:Yt||(Ht()()<=Ht()((Tn=tr((Ii=Sn==null?void 0:Sn.group_id)==null?void 0:Ii[0]))==null?void 0:Tn.publish_time)?!1:[!0,hr((Cn=Sn==null?void 0:Sn.group_id)==null?void 0:Cn[0])]),style:{width:605},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:xt=>$e(xt,Bt==null?void 0:Bt.course_end_date),disabledTime:xt=>gn(xt),showTime:{showNow:!0,format:"HH:mm",defaultValue:[Ht()((0,le.U6)(),"HH:mm"),Ht()((0,le.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:[Sn.publish_time?Ht()(Sn.publish_time):void 0,Sn.end_time?Ht()(Sn.end_time):void 0],onChange:(xt,Ct)=>{var Yn;if((0,Ne.Rm)()&&!((Yn=Rn.AssistantObject.practice)!=null&&Yn.can_publish)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}nn[Gn].publish_time=Ct[0],!Sn.end_time&&Ct[0]?nn[Gn].end_time=Ht()(Ct[0]).add(7,"days"):nn[Gn].end_time=Ct[1],jt([...nn])},onCalendarChange:(xt,Ct,Yn)=>{if(Ct!=null&&Ct[0]&&!Ct[1]){const $n=Ht()(Ct[0]).add(7,"days");nn[Gn].publish_time=Ct[0],nn[Gn].end_time=$n,jt([...nn])}}})),!Yt&&Ye.createElement("div",{style:{display:"flex",width:"50px"}},((Mn=Sn==null?void 0:Sn.group_id)==null?void 0:Mn.length)>1&&Ye.createElement(Et.Z,{title:"\u89C4\u5219\u62C6\u5206"},Ye.createElement("i",{className:"iconfont icon-chaifen ml10",style:{cursor:"pointer",color:"#3061d0"},onClick:()=>Ce(Sn,Gn)})),nn.length<((yt=Bt==null?void 0:Bt.group_settings)==null?void 0:yt.length)&&Ye.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var xt;if((0,Ne.Rm)()&&!((xt=Rn.AssistantObject.practice)!=null&&xt.can_publish)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}jt(nn.concat({}))}}),((Sn==null?void 0:Sn.publish_time)&&Ht()()<Ht()(Sn==null?void 0:Sn.publish_time)||!(Sn!=null&&Sn.publish_time))&&Gn!=0&&Ye.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{const xt=(0,te.cloneDeep)(Xt);xt.forEach((Ct,Yn)=>{Ct.group_name&&(Ct.group_name=Ct.group_name.filter($n=>{var di;return!((di=nn[Gn].group_name)!=null&&di.includes($n))}))}),nn=nn.filter((Ct,Yn)=>Gn!==Yn),pn(xt),jt(nn.slice()),setTimeout(()=>jt(nn.slice()),10)}}))))}))),Ye.createElement(dt.Z,null,Ye.createElement(Kt.Z,null,Ye.createElement("div",{className:ge.Z.title,style:{marginTop:"30px"}},"\u8865\u4EA4\u8BBE\u7F6E",Ye.createElement("span",{className:"c-grey-666 font14",style:{fontWeight:400}},"\uFF08\u53EF\u5BF9\u5728\u4F5C\u4E1A\u53D1\u5E03\u65F6\u95F4\u8303\u56F4\u5185\u672A\u5B8C\u6210\u4F5C\u4E1A\u7684\u5B66\u751F\uFF0C\u5EF6\u957F\u65F6\u95F4\u8FDB\u884C\u8865\u4EA4\uFF09"))),Ye.createElement(Kt.Z,{span:24,style:{background:"#F6F7F9",padding:"13px 30px",display:"flex",alignItems:"center"}},Ye.createElement(Me.default,{checked:bn.allow_late,disabled:Yt||ar,onChange:Sn=>{var Gn;if((0,Ne.Rm)()&&!((Gn=Rn.AssistantObject.practice)!=null&&Gn.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Sn.target.checked&&Mt.default.warning({title:"\u5F00\u542F\u8865\u4EA4\u63D0\u793A",centered:!0,width:480,content:Ye.createElement("div",{style:{padding:10,background:"#f5f6f9"}},Ye.createElement("div",null,"1.\u5F00\u542F\u8865\u4EA4\u540E\u4E0D\u53EF\u5173\u95ED\uFF0C\u8865\u4EA4\u65B9\u5F0F\u63D0\u4EA4\u4FDD\u5B58\u540E\u4E0D\u53EF\u4FEE\u6539\uFF1B"),Ye.createElement("div",null,"2.\u8865\u4EA4\u622A\u6B62\u65F6\u95F4\u5FC5\u987B\u665A\u4E8E\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\uFF1B"),Ye.createElement("div",null,"3.\u73ED\u7EA7\u9636\u6BB5\u8FDB\u5165\u201C\u8865\u4EA4\u4E2D\u201D\u5219\u4E0D\u53EF\u53D8\u66F4\u4F5C\u4E1A\u622A\u6B62\u65F6\u95F4\u3002"))}),bn.allow_late=!bn.allow_late,Xt==""&&pn([{late_penalty:5}]),Un(Object.assign({},bn))}},Ye.createElement("strong",null,"\u5F00\u542F\u8865\u4EA4")))),(bn==null?void 0:bn.allow_late)&&Ye.createElement("div",{style:{background:"#F6F7F9",padding:"10px 30px",marginTop:"1px",color:"#666666"}},Ye.createElement("div",{style:{display:"flex"}},Ye.createElement("div",{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u65B9\u5F0F"),Ye.createElement(ze.ZP.Group,{style:{marginLeft:"20px"},disabled:Yt||(Bt==null?void 0:Bt.anonymous_comment)||(Bt==null?void 0:Bt.allow_late),value:bn.unified_late,onChange:Sn=>{var Gn;if((0,Ne.Rm)()&&!((Gn=Rn.AssistantObject.practice)!=null&&Gn.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bn.unified_late=Sn.target.value,Xt==""&&!Sn.target.value&&pn([{penalty_type:Se.Q.Percent,late_penalty:20}]),Un(un({},bn))}},(bn==null?void 0:bn.unified_setting)&&Ye.createElement(ze.ZP,{value:!0,disabled:!(Bt!=null&&Bt.manage_all_group),style:{marginRight:"50px"}},"\u7EDF\u4E00\u8865\u4EA4"),((et=Bt==null?void 0:Bt.group_settings)==null?void 0:et.length)>0&&Ye.createElement(ze.ZP,{value:!1},"\u5206\u73ED\u8865\u4EA4"))),bn!=null&&bn.unified_late?Ye.createElement(Ye.Fragment,null,Ye.createElement(dt.Z,{align:"middle",style:{marginTop:"10px"}},Ye.createElement(Kt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u6263\u5206"),Ye.createElement(Kt.Z,{className:"ml20"},Ye.createElement(Se.Z,{disabled:Yt||Xi,value:{type:bn.penalty_type,inputValue:bn.late_penalty},onChange:Sn=>{var Gn;if((0,Ne.Rm)()&&!((Gn=Rn.AssistantObject.practice)!=null&&Gn.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Un(_t(un({},bn),{late_penalty:Sn.inputValue,penalty_type:Sn.type}))}})),Ye.createElement(Kt.Z,{flex:"1",className:"ml5"},Ye.createElement("span",{className:"c-grey-c ml10"},bn.penalty_type===Se.Q.Number?"(\u8865\u4EA4\u65F6\u6309\u7167\u5B66\u751F\u603B\u6210\u7EE9\u6263\u5206)":"(\u5B66\u751F\u6700\u7EC8\u5F97\u5206=\u8865\u4EA4\u524D\u5F97\u5206+\u8865\u4EA4\u9636\u6BB5\u589E\u52A0\u7684\u5206\u503C*\uFF08100%-\u767E\u5206\u6BD4%\uFF09)"))),Ye.createElement(dt.Z,{align:"middle",style:{marginTop:"15px"}},Ye.createElement(Kt.Z,{style:{width:"110px",textAlign:"right"}},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ye.createElement(Kt.Z,{className:"ml20"},Ye.createElement(nt.default,{size:"large",allowClear:!1,style:{width:170},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",showTime:{format:"HH:mm",defaultValue:Ht()((0,le.U6)(),"HH:mm")},format:"YYYY-MM-DD HH:mm",disabled:Yt||Xi,value:bn.late_time?Ht()(bn.late_time):"",disabledDate:Sn=>$e(Sn,Bt==null?void 0:Bt.course_end_date),onChange:(Sn,Gn)=>{var dr;if((0,Ne.Rm)()&&!((dr=Rn.AssistantObject.practice)!=null&&dr.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}bn.late_time=Gn,Un(Object.assign({},bn))}})))):Xt.map(function(Sn,Gn){var dr;return Ye.createElement(Kt.Z,{span:24,key:Gn},Ye.createElement(dt.Z,{style:{display:"flex",alignItems:"center",marginTop:"10px"}},Ye.createElement("div",{style:{width:"85px",marginLeft:"27px",textAlign:"right"}},"\u8865\u4EA4\u89C4\u5219",Gn+1),Ye.createElement(it.default,{disabled:Yt||!((dr=Pt==null?void 0:Pt.homework_status)!=null&&dr.includes("\u672A\u53D1\u5E03"))&&Sn.id||(Bt==null?void 0:Bt.anonymous_comment),mode:"multiple",className:ge.Z.multiple_select,style:{width:"212px",marginLeft:"18px"},value:typeof Sn.group_name=="string"?[Sn.group_name]:Sn.group_name,placeholder:"\u8BF7\u9009\u62E9\u5206\u73ED\u540D\u79F0",onChange:or=>{var Ii;if((0,Ne.Rm)()&&!((Ii=Rn.AssistantObject.practice)!=null&&Ii.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xt[Gn].group_name=or,Xt[Gn].group_id=Sn.group_id,pn(Xt.slice())}},Bt.group_settings&&Bt.group_settings.map(function(or){const Ii=Xt.map(Cn=>Cn.group_name).flat(),Tn=nn.map(Cn=>Cn.group_name).flat();if(bn!=null&&bn.unified_setting){if(!Ii.includes(or.group_name))return Ye.createElement(rn,{value:or.group_name,key:or.id},or.group_name)}else if(Tn.includes(or.group_name)&&!Ii.includes(or.group_name))return Ye.createElement(rn,{value:or.group_name,key:or.id},or.group_name)})),Ye.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u6263\u5206"),Ye.createElement(Se.Z,{disabled:Yt||yr(Sn.id),value:{type:Sn.penalty_type,inputValue:Sn.late_penalty},onChange:or=>{var Ii;if((0,Ne.Rm)()&&!((Ii=Rn.AssistantObject.practice)!=null&&Ii.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xt[Gn].late_penalty=or.inputValue,Xt[Gn].penalty_type=or.type,pn([...Xt])}}),Ye.createElement("div",{className:"ml20 mr10"},"\u8865\u4EA4\u622A\u6B62\u65F6\u95F4"),Ye.createElement(nt.default,{size:"large",disabled:Yt||yr(Sn.id),style:{width:225},showTime:{format:"HH:mm",defaultValue:Ht()((0,le.U6)(),"HH:mm")},placeholder:"\u8BF7\u9009\u62E9\u622A\u6B62\u65F6\u95F4",disabledDate:or=>$e(or,Bt==null?void 0:Bt.course_end_date),format:"YYYY-MM-DD HH:mm",value:Sn!=null&&Sn.late_time?Ht()(Sn.late_time):void 0,onChange:(or,Ii)=>{var Tn;if((0,Ne.Rm)()&&!((Tn=Rn.AssistantObject.practice)!=null&&Tn.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xt[Gn].late_time=Ii,pn([...Xt])}}),!Yt&&Ye.createElement("div",{style:{display:"flex",width:"50px"}},Ye.createElement("i",{className:"iconfont icon-zengjia1 ml10 mr10",style:{cursor:"pointer",color:"#00B187"},onClick:()=>{var or;if((0,Ne.Rm)()&&!((or=Rn.AssistantObject.practice)!=null&&or.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}pn(Xt.concat({penalty_type:Se.Q.Percent,late_penalty:20}))}}),Gn>0&&!Sn.id&&Ye.createElement("i",{className:"iconfont icon-shanjian1",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{var or;if((0,Ne.Rm)()&&!((or=Rn.AssistantObject.practice)!=null&&or.can_late)){Dt.ZP.warning("\u60A8\u672A\u83B7\u53D6\u6B64\u6743\u9650\uFF0C\u9700\u5411\u8BFE\u5802\u7BA1\u7406\u5458\u7533\u8BF7\u6743\u9650\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD");return}Xt=Xt.filter((Ii,Tn)=>Gn!==Tn),pn(Xt.slice()),setTimeout(()=>pn(Xt.slice()),10)}}))))})),!Yt&&Ye.createElement(Ye.Fragment,null,Ye.createElement(zt.ZP,{type:"primary",size:"large",loading:On,style:{width:"138px",marginTop:"30px"},onClick:()=>gr()},"\u4FDD\u5B58")),Ye.createElement(Ie.Z,{onConfirm:(Sn,Gn)=>{nn.splice(Sn,0,...Gn),nn.splice(Sn+Gn.length,1);const dr=(0,le.QE)([...nn]);jt([...dr])}}),Ye.createElement(Ze.Z,{resdata:ti,type:"shixun",okloading:On,oktext:(ti==null?void 0:ti.can_copy_num)===0?"\u786E\u5B9A":"\u4E00\u952E\u590D\u5236\u5E76\u66FF\u6362",onok:Sn=>hn(void 0,null,function*(){wn(!0);let Gn=yield(0,ne.ZP)(`/api/courses/${an.coursesId}/batch_copy_shixuns.json`,{method:"post",body:{type:"homework_common",ids:[parseInt(an.categoryId)]}});wn(!1),(Gn==null?void 0:Gn.status)===0&&rr(vn)})}))};gi.ZP=(0,me.connect)(({shixunHomeworks:Nn,classroomList:mi,loading:Zt,user:Rn})=>({shixunHomeworks:Nn,classroomList:mi,loading:Zt.effects,user:Rn}))(Xn)},73410:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Me}});var ye=De(59301),nt=De(37568),it=De(62673),Dt=De(77019),Mt={leftdiv:"leftdiv___aBzsX",listClass:"listClass___bxIEW",spantitle:"spantitle___v_Vc4",rightdiv:"rightdiv___xWu4M"},ze="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAbVJREFUOE+Nk79rFUEUhb+zE4OFwUD+CyGKKQQbSaMikQQ7C1tBBIsUQaJvl2Fn/cWDpAiIYJsi7YOIaCUWFoKKRhG0sbEzEImFGnev7G6yyXsxeU5159yZb87l3hG9q2WLiBO79FIwXpLp0s6cwITnQCMWrGDM43jdBckZQ0wTMdrong2R2Bxm0/98sZ8ozdcOEm5hjOC41u9Olc9ZQKySclOVkNhljCmCzjeAJM/4FbW5p+8k5tlggTtarfKxLSM6pHq4BTiL0SboaAOIi284jeP1nti+ApMEvdoEvEPMkOpJDZi1IwzwgqDh/wSsYZwk08ca4O0Qua3zW8OV5crmHg6u22EGbQ2nIbx+1IC6rrK+cYJW9gXEVrbxGUEj5bltQGJvgBapHu0LSGwCyEh1vBsQWwd4TNCDPg6uAOcImuoFlL1dJ9WNPg5uYwwRVM3MzhJmKIpjZK6e9bj4jNNpvL4QFx9wuoDXJ1r5IlH0llTtXgcXwa4SolObnYnwKnbFcfEcdJ+gpW6AtzFynuIop/Fn053u4CA5yzjO4FV9tu0Syl2S38WiSWBgD8AfoEPQ7Fb+LwIiyhxWwe2KAAAAAElFTkSuQmCC",dt=De(28426),Kt=(zt,Ke,Ht)=>new Promise((Ne,ne)=>{var te=ge=>{try{le(Ht.next(ge))}catch(me){ne(me)}},de=ge=>{try{le(Ht.throw(ge))}catch(me){ne(me)}},le=ge=>ge.done?Ne(ge.value):Promise.resolve(ge.value).then(te,de);le((Ht=Ht.apply(zt,Ke)).next())}),Me=({data:zt,value:Ke=[],handleChangePage:Ht,className:Ne="",setSelectedRowKeys:ne,selectedRowKeys:te,onChange:de=()=>{}})=>{const[le,ge]=(0,ye.useState)([]),[me,Se]=(0,ye.useState)([]),[be,Ie]=(0,ye.useState)([]);let[Ze,st]=(0,ye.useState)(1),[Ye,Xe]=(0,ye.useState)();return(0,ye.useEffect)(()=>{ge(zt),Se([]),Ie([])},[zt]),(0,ye.useEffect)(()=>{ne&&(Se(te),Ie(te))},[te]),ye.createElement("div",{className:`flex justify-between w-full ${Ne}`},ye.createElement("div",{className:Mt.leftdiv},ye.createElement(nt.default.Search,{size:"middle",style:{marginBottom:"10rem"},onChange:At=>Kt(void 0,null,function*(){ge(zt.filter(ft=>{var Nt;return(Nt=ft==null?void 0:ft.name)==null?void 0:Nt.includes(At.target.value)}))}),placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),le.length===0&&ye.createElement(dt.Z,{styles:{margin:"70rem auto"},customText:"\u6682\u65E0\u5206\u73ED"}),ye.createElement("div",{style:{height:"85%",overflow:"auto",overflowX:"hidden"}},ye.createElement(it.default.Group,{value:me.map(At=>`${At.id}`),onChange:At=>{ne(le.filter(ft=>At.includes(`${ft.id}`)))},style:{marginTop:"10px",flexDirection:"column"}},le.map((At,ft)=>ye.createElement(Dt.Z,{key:At.id,style:{marginTop:"10rem",lineHeight:"24rem",display:"flex",width:"200rem"}},ye.createElement(it.default,{style:{display:"flex",height:"24px",alignItems:"center"},disabled:At.is_published,value:`${At.id}`},ye.createElement("div",{className:Mt.listClass},ye.createElement("span",{className:Mt.spantitle,style:{width:At.is_published?"108px":"170px"}},At.name),At.is_published&&ye.createElement("span",{style:{width:"52px",height:"24px",background:"#B8B8B8",borderRadius:"13px",color:"white",lineHeight:"24px",textAlign:"center",display:"inline-block"}},"\u5DF2\u53D1\u5E03")))))))),ye.createElement("div",{className:Mt.rightdiv},ye.createElement(nt.default.Search,{onChange:At=>{Ie(me.filter(ft=>ft.name.includes(At.target.value)))},size:"middle",placeholder:"\u53EF\u8F93\u5165\u73ED\u7EA7\u540D\u79F0\u67E5\u8BE2"}),be.length===0&&ye.createElement(dt.Z,{imgStyles:{width:"200rem"},styles:{margin:"70rem auto"},customText:"\u6682\u672A\u9009\u62E9\u5206\u73ED"}),be.length>0&&ye.createElement("div",{style:{marginTop:"10px",height:"85%",overflow:"hidden",position:"relative"}},ye.createElement("div",{style:{overflowX:"hidden",overflowY:"scroll",position:"absolute",left:0,top:0,right:-17,bottom:0}},be.map((At,ft)=>ye.createElement("div",{className:"flex justify-between item-center",style:{marginTop:"10rem"},key:At.id},ye.createElement("div",{className:"multi_ellipsis1 flex-1 minW-0",style:{margin:"0 5rem"}},At.name),ye.createElement("img",{src:ze,className:"current",style:{height:"16rem",marginRight:"17rem"},onClick:()=>{ne(me.filter(Nt=>`${Nt.id}`!=`${At.id}`))}})))))))}},59229:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return de}});var ye=De(59301),nt=De(25690),it=De(16326),Dt=De(62957),Mt=De(37568),ze=De(6767),dt=De(77019),Kt=De(5269),Et={title_tooltip:"title_tooltip___LLdrn",multiple_select:"multiple_select___kDXUm",modal_con:"modal_con___ERnkW"},Me=De(61186),zt=De.n(Me),Ke=De(51257),Ht=De(28426),Ne=De(59301);const{RangePicker:ne}=it.default,te=({dispatch:le,classroomList:ge,onConfirm:me})=>{const[Se,be]=(0,ye.useState)([]),[Ie,Ze]=(0,ye.useState)([]),[st,Ye]=(0,ye.useState)(""),[Xe,At]=(0,ye.useState)([!1,!1]);(0,ye.useEffect)(()=>{var Lt,ln,kn,un;if(ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206"){console.log((Lt=ge.actionTabs)==null?void 0:Lt.rangePickerDisabled),(ln=ge.actionTabs)!=null&&ln.rangePickerDisabled?At((kn=ge.actionTabs)==null?void 0:kn.rangePickerDisabled):At([!1,!1]);let _t=ge.actionTabs.data,hn=(un=_t==null?void 0:_t.group_name)==null?void 0:un.map((vt,$e)=>{var gn;return{group_id:_t==null?void 0:_t.group_id[$e],group_name:_t==null?void 0:_t.group_name[$e],is_admin:_t==null?void 0:_t.is_admin,end_time:_t==null?void 0:_t.end_time,publish_time:Array.isArray(_t==null?void 0:_t.publish_time)?(gn=_t==null?void 0:_t.publish_time)==null?void 0:gn[0]:_t==null?void 0:_t.publish_time}});hn&&(be([...hn]),Ze([...hn]))}},[ge.actionTabs]);const ft=()=>{le({type:"classroomList/setActionTabs",payload:{}}),Ye("")},Nt=Lt=>{if(Lt){const ln=Ie==null?void 0:Ie.filter(kn=>{var un,_t;return(_t=(un=kn==null?void 0:kn.group_name)==null?void 0:un.toLowerCase())==null?void 0:_t.includes(Lt==null?void 0:Lt.toLowerCase())});be(ln)}else be(Ie)};return Ne.createElement(Dt.default,{width:980,title:Ne.createElement("div",{style:{fontWeight:"bold",display:"flex"}},Ne.createElement("div",null,"\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",Ne.createElement("span",{className:Et.title_tooltip},"\uFF08\u5F53\u5206\u73ED\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u4E0D\u76F8\u540C\u65F6\u5019\uFF0C\u73ED\u7EA7\u81EA\u52A8\u62C6\u5206\u51FA\u53BB\u65B0\u8D77\u89C4\u5219\uFF09")),Ne.createElement(Mt.default.Search,{allowClear:!0,placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u5B57\u8FDB\u884C\u641C\u7D22",style:{width:220,marginLeft:"60px"},value:st,onChange:Lt=>{Ye(Lt.target.value.trim()),Nt(Lt.target.value.trim())}})),centered:!0,maskClosable:!1,open:ge.actionTabs.key==="\u5206\u73ED\u53D1\u5E03-\u53D1\u5E03\u89C4\u5219\u62C6\u5206",onCancel:()=>ft(),onOk:()=>{var Lt;if(Ie.some(kn=>!kn.end_time||!kn.publish_time)){ze.ZP.warning("\u8BF7\u5C06\u5217\u8868\u6570\u636E\u4E2D\u7684\u53D1\u5E03\u65F6\u95F4\u548C\u622A\u6B62\u65F6\u95F4\u8865\u5145\u5B8C\u6574\uFF01");return}me((Lt=ge.actionTabs)==null?void 0:Lt.index,Ie),ft()}},Ne.createElement("div",{className:Et.modal_con},Ne.createElement(dt.Z,{style:{display:"flex",color:"#666666",padding:"5px",marginTop:"1px"}},(Se==null?void 0:Se.length)>0?Se.map(function(Lt,ln){return Ne.createElement(Kt.Z,{span:24,key:ln},Ne.createElement(dt.Z,{gutter:[8,16],style:{display:"flex",alignItems:"center",marginBottom:ln==(Se==null?void 0:Se.length)-1?"0px":"10px"}},Ne.createElement("div",{className:Et.multiple_select,title:Lt==null?void 0:Lt.group_name},Lt==null?void 0:Lt.group_name),Ne.createElement("div",{className:"ml20"},Ne.createElement(ne,{size:"large",allowClear:!1,disabled:Xe,style:{width:600},placeholder:["\u53D1\u5E03\u65F6\u95F4\uFF08\u5B66\u751F\u6536\u5230\u4F5C\u4E1A\u65F6\u95F4\uFF09","\u622A\u6B62\u65F6\u95F4\uFF08\u5B66\u751F\u201C\u6309\u65F6\u201D\u63D0\u4EA4\u4F5C\u54C1\u65F6\u95F4\u622A\u70B9\uFF09"],disabledDate:kn=>{var un;return(0,Ke.Q8)(kn,(un=ge.actionTabs)==null?void 0:un.disabledDate)},disabledTime:kn=>(0,Ke.d0)(kn),showTime:{showNow:!0,format:"HH:mm",defaultValue:[zt()((0,Ke.U6)(),"HH:mm"),zt()((0,Ke.U6)(),"HH:mm")]},format:"YYYY-MM-DD HH:mm",value:(Lt==null?void 0:Lt.publish_time)&&[zt()(Lt==null?void 0:Lt.publish_time),Lt!=null&&Lt.end_time?zt()(Lt==null?void 0:Lt.end_time):void 0],onChange:(kn,un)=>{Se[ln].publish_time=un[0],Se[ln].end_time=un[1],be([...Se]),Ie.forEach(_t=>{_t.group_id===(Lt==null?void 0:Lt.group_id)&&(_t.publish_time=un[0],_t.end_time=un[1])}),Ze([...Ie])},onCalendarChange:(kn,un,_t)=>{if(un!=null&&un[0]&&!un[1]){const hn=zt()(un[0]).add(7,"days");Se[ln].publish_time=un[0],Se[ln].end_time=hn,be([...Se]),Ie.forEach(vt=>{vt.group_id===(Lt==null?void 0:Lt.group_id)&&(vt.publish_time=un[0],vt.end_time=hn)}),Ze([...Ie])}}})),Xe[0]?Ne.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{color:"#E30000",opacity:"0.2",cursor:"not-allowed"}}):Ne.createElement("i",{className:"iconfont icon-shanjian1 ml15",style:{cursor:"pointer",color:"#E30000"},onClick:()=>{Se.splice(ln,1),be([...Se]),Ie.forEach((kn,un)=>{kn.group_id===(Lt==null?void 0:Lt.group_id)&&Ie.splice(un,1)}),Ze([...Ie])}})))}):Ne.createElement(Ht.Z,null))))};var de=(0,nt.connect)(({classroomList:le})=>({classroomList:le}))(te)},81428:function(Jn,gi,De){"use strict";De.d(gi,{AL:function(){return Se},Iy:function(){return zt},Qv:function(){return Ne},ez:function(){return me},jb:function(){return Ke}});var ye=De(32834),nt=De.n(ye),it=De(11690),Dt=De.n(it);let Mt=1;function ze(Ye,Xe){const At=Ye.match(/^(\s+)(?:```)/);if(At===null)return Xe;const ft=At[1];return Xe.split(`
|
|
`).map(Nt=>{const Lt=Nt.match(/^\s+/);if(Lt===null)return Nt;const[ln]=Lt;return ln.length>=ft.length?Nt.slice(ft.length):Nt}).join(`
|
|
`)}let dt=[],Kt=["<ul>"];const Et=new(nt()).Renderer,Me=/^ *(#{1,6}) *([^\n]+?) *(?:#+ *)?(?:\n+|$)/;function zt(){dt.length=0,Kt=["<ul>"]}const Ke={overflow:"hidden",WebkitBoxOrient:"vertical",display:"-webkit-box",WebkitLineClamp:2};function Ht(Ye,Xe,At,ft){if(Xe>=Ye.length||Ye[Xe].level<=At)return Xe;var Nt=Ye[Xe];ft.push("<li><a href='#"+Mt+Nt.anchor+"'>"+Nt.text+"</a>"),Xe++;var Lt=[];return Xe=Ht(Ye,Xe,Nt.level,Lt),Lt.length>0&&(ft.push("<ul>"),Lt.forEach(function(ln){ft.push(ln)}),ft.push("</ul>")),ft.push("</li>"),Xe=Ht(Ye,Xe,At,ft),Xe}function Ne(){return Ht(dt,0,0,Kt),Kt.push("</ul>"),Kt.join("")}const ne={heading(Ye){const Xe=Me.exec(Ye);if(Mt+=1,Xe)return{type:"heading",raw:Xe[0],depth:Xe[1].length,text:Xe[2]}},fences(Ye){const Xe=this.rules.block.fences.exec(Ye);if(Xe){const At=Xe[0];let ft=ze(At,Xe[3]||"");const Nt=Xe[2]?Xe[2].trim():Xe[2];if(["latex","katex","math"].indexOf(Nt)>=0){const Lt=le(),ln=ft;ft=Lt,ge[Lt]={type:"block",expression:ln}}return{type:"code",raw:At,lang:Nt,text:ft}}}},te=/(?:\${2})([^\n`]+?)(?:\${2})/gi;let de=0;const le=()=>`__special_katext_id_${de++}__`;let ge={};function me(){return ge}function Se(){de=0,ge={}}function be(Ye){return Ye=Ye.replace(te,(Xe,At)=>{const ft=le();return ge[ft]={type:"inline",expression:At},ft}),Ye}const Ie=Et.listitem;Et.listitem=function(Ye){return Ie(be(Ye))};const Ze=Et.paragraph;Et.paragraph=function(Ye){return Ze(be(Ye))};const st=Et.tablecell;Et.tablecell=function(Ye,Xe){return st(be(Ye),Xe)},Et.code=function(Ye,Xe,At){const ft=(Xe||"").match(/\S*/)[0];return ft?["latex","katex","math"].indexOf(ft)>=0?`<p class='editormd-tex'>${Ye}</p>`:`<pre class="prettyprint linenums"><code class="language-${Xe}">${At?Ye:(0,it.escape)(Ye,!0)}</code></pre>
|
|
`:'<pre class="prettyprint linenums"><code>'+(At?Ye:(0,it.escape)(Ye,!0))+"</code></pre>"},Et.heading=function(Ye,Xe,At){let ft=this.options.headerPrefix+At.toLowerCase().replace(/[^\w\\u4e00-\\u9fa5]]+/g,"-");return dt.push({anchor:ft,level:Xe,text:Ye}),"<h"+Xe+' id="'+Mt+ft+'">'+Ye+"</h"+Xe+">"},nt().setOptions({silent:!0,gfm:!0,pedantic:!1}),nt().use({tokenizer:ne,renderer:Et}),gi.ZP=nt()},40197:function(Jn,gi,De){"use strict";De.d(gi,{rX:function(){return be},pW:function(){return Ie},gy:function(){return Ze},xY:function(){return Se},O5:function(){return me},hs:function(){return te},tJ:function(){return Ne},o1:function(){return ne},Rd:function(){return ge}});var ye=De(25690),nt=De(62957),it=De(37285),Dt=De(6767),Mt=De(48790),ze=De(51257),dt=De(87169),Kt=De(25510),Et="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAZAAAAGQCAIAAAAP3aGbAAAABGdBTUEAALGPC/xhBQAAACBjSFJNAAB6JgAAgIQAAPoAAACA6AAAdTAAAOpgAAA6mAAAF3CculE8AAAABmJLR0QA/wD/AP+gvaeTAAAACXBIWXMAABcRAAAXEQHKJvM/AAAouElEQVR42u3de5gU1Z038HOqqu89PQPMhQHkNqCiCCK5qMRojIkXRNFERDTGNRvik5hNjPtgzEuyJLq6sq/EbEyy+u5jjBEhSEREvKyXQJRVs1FEMARhhhlgLsDAMD3T96o67x8zzPQMPTPVU12XX8/38/D4PDZdVedUd3+py6nf4UIIBgBAgeR0AwAAjEJgAQAZCCwAIAOBBQBkILAAgAwEFgCQgcACADIQWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMxfhbOedOt7a/nKUmcrbT2aIUxned8Xaa/DhMbsi2dppk8nO3ovG27XnbemTbDmE4wgIAQhBYAEAGAgsAyEBgAQAZCCwAIAOBBQBk5DGsIaedO3dWVFRY3cpVq1atXLnS4JuNj3WwgvF7tCbHZFhxe9u2dZp8Z04uHGlhxbAbKz44F/6KB2I2s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m7mZEVlBZP1Epwd65CTbSMYLBq5giMsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQIYlwxpaWlrMLG5yBgrbSvfbVnKASsED25j8iE2u0/jiJsc6uLBWhLPrZBYFVsHnvAEAYDglBABCEFgAQAYCCwDIQGABABlmL7qvWrUqHA5b3cotW7bYszsAwM24FXeIbUPl0XPbahsY76ZtU3W48+64ma0bZ9tnZFtdB9tKoQwEp4QAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjDyGNQAAOAtHWABABgILAMhAYAEAGQgsACADgQUAZCCwAIAMBBYAkIHAAgAyEFgAQAYCCwDIQGABABkILAAgA4EFAGQgsACAjP8Prqme11Be/zoAAAAASUVORK5CYII=",Me=De.p+"static/newqrcode.a8740efb.png",zt=De(32637),Ke=De(59301),Ht=(st,Ye,Xe)=>new Promise((At,ft)=>{var Nt=kn=>{try{ln(Xe.next(kn))}catch(un){ft(un)}},Lt=kn=>{try{ln(Xe.throw(kn))}catch(un){ft(un)}},ln=kn=>kn.done?At(kn.value):Promise.resolve(kn.value).then(Nt,Lt);ln((Xe=Xe.apply(st,Ye)).next())});const Ne=(st,Ye=!1,Xe=!1,At="",ft=!1)=>!!(ne(st)&&de(st,Ye,Xe,At,ft)),ne=st=>(0,Mt.bg)()?!0:(st({type:"user/showPopLogin",payload:{showPopLogin:!0,showClosable:!0}}),!1),te=st=>{var Ye,Xe,At;const{user:ft}=(0,ye.getDvaApp)()._store.getState();(0,Mt.bg)()&&!((Xe=(Ye=ft==null?void 0:ft.userInfo)==null?void 0:Ye.course)!=null&&Xe.course_public)&&!((At=ft==null?void 0:ft.userInfo)!=null&&At.profile_completed)&&st({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:"/account/profile/edit",isCurrentPage:!0}})},de=(st,Ye=!1,Xe=!0,At="",ft=!1)=>{var Nt;const{user:Lt}=(0,ye.getDvaApp)()._store.getState();return(Nt=Lt.userInfo)!=null&&Nt.profile_completed?!0:(Xe?st({type:"user/showUpdateProfilePanel",payload:{showUpdateProfilePanel:!0,showClosable:!0,backurl:At,isCurrentPage:ft}}):nt.default.confirm({title:"\u63D0\u793A",width:530,centered:!0,content:"\u60A8\u9700\u8981\u53BB\u5B8C\u5584\u60A8\u7684\u4E2A\u4EBA\u8D44\u6599\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD",okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ze.xg)("/account/profile/edit"),le()}}),!1)},le=()=>{nt.default.success({title:"\u63D0\u793A",width:430,closable:!0,centered:!0,content:"\u5DF2\u5B8C\u5584\u4E2A\u4EBA\u8D44\u6599\uFF1F\u8BF7\u5237\u65B0\u9875\u9762",okText:"\u7ACB\u5373\u5237\u65B0",icon:null,onOk:()=>{location.reload()}})},ge=()=>{nt.default.warning({title:"\u63D0\u793A",icon:null,width:400,content:Ke.createElement("div",{style:{textAlign:"center"}},Ke.createElement("div",{style:{color:"#191919",fontSize:14,marginBottom:15,textAlign:"left"}},"\u8001\u5E08\u60A8\u597D\uFF0C\u60A8\u7684\u8BFE\u5802\u8BD5\u7528\u671F\u5DF2\u7ED3\u675F\uFF0C\u76F8\u5173\u529F\u80FD\u88AB\u9650\u5236\u3002 \u5982\u9700\u7EE7\u7EED\u4F7F\u7528\uFF0C\u8BF7\u5C3D\u5FEB\u5BF9\u63A5\u4EBA\u5DE5\u652F\u6301\uFF01"),Ke.createElement("img",{style:{border:"1px solid #D8E3E9",width:190,height:180},src:zt}),Ke.createElement("div",{style:{color:"#666666",fontSize:14,marginTop:15}},"\u6DFB\u52A0\u5BA2\u670D\u4EBA\u5458\u5FAE\u4FE1\uFF0C\u83B7\u5F97\u66F4\u591A\u652F\u6301"))})},me=()=>{var st;const{user:Ye}=(0,ye.getDvaApp)()._store.getState();return(st=Ye.userInfo)!=null&&st.professional_certification?!0:(nt.default.confirm({title:"\u63D0\u793A",centered:!0,content:Ke.createElement("div",{className:"tc"},"\u60A8\u9700\u8981\u53BB\u5B8C\u6210\u60A8\u7684\u804C\u4E1A\u8BA4\u8BC1\uFF0C\u624D\u80FD\u4F7F\u7528\u6B64\u529F\u80FD"),okText:"\u7ACB\u5373\u5B8C\u5584",cancelText:"\u7A0D\u540E\u5B8C\u5584",onOk:()=>{(0,ze.xg)("/account/certification")}}),!1)},Se=()=>(0,Mt.V9)()?!0:(nt.default.warning({centered:!0,width:530,title:"\u63D0\u793A",content:Ke.createElement("div",{className:"tc",style:{marginLeft:-38}},Ke.createElement("p",null,"\u626B\u7801\u52A0\u5934\u6B4C\u52A9\u6559\uFF0C\u7533\u8BF7\u64CD\u4F5C\u6743\u9650"),Ke.createElement("img",{src:Me,width:200})),okText:"\u6211\u77E5\u9053\u4E86",maskClosable:!0}),!1),be=(st,Ye)=>st?!0:(nt.default.confirm({centered:!0,zIndex:1e4,width:530,title:"\u63D0\u793A",content:Ke.createElement("div",null,Ke.createElement("p",null,Ye||"\u8BE5\u5B9E\u8DF5\u8D44\u6E90\u9700\u6388\u6743\u540E\u624D\u53EF\u4F7F\u7528\u3002 \u60A8\u53EF\u4EE5\u5728QQ\u670D\u52A1\u7FA4\u5411\u7BA1\u7406\u5458\u7533\u8BF7\uFF0C\u83B7\u5F97\u7EE7\u7EED\u64CD\u4F5C\u7684\u6743\u9650\u3002"),Ke.createElement("div",{style:{marginLeft:"110px"}},Ke.createElement("img",{src:Et,width:200}),Ke.createElement("div",{style:{marginLeft:"35px"}},"\u7FA4\u53F7\uFF1A","714336072"))),okText:"\u7ACB\u5373\u8054\u7CFB",cancelText:"\u53D6\u6D88",onOk:()=>{(0,ze.xg)("https://qm.qq.com/cgi-bin/qm/qr?k=tIyDPXUtE0yEk-MOJxhH55lTUJS-nYAM&jump_from=webapi")}}),!1),Ie=st=>{nt.default.info({title:"\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425",icon:null,width:615,centered:!0,content:Ke.createElement("div",null,Ke.createElement("div",null,Ke.createElement("p",{style:{color:"#191919",fontWeight:400,fontSize:14}},"\u201C\u4FDD\u5B58\u5B9E\u9A8C\u4E34\u65F6\u6570\u636E\u201D\u529F\u80FD\u4E3A\u4ED8\u8D39\u529F\u80FD\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u8FD0\u8425\u8FDB\u884C\u5F00\u901A\u3002"),Ke.createElement(it.Z,null),Ke.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ke.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"1")," \u56E0\u5E73\u53F0\u7684\u5B9E\u9A8C\u6570\u636E\u50A8\u5B58\u5BB9\u91CF\u548C\u6210\u672C\u6D88\u8017\u8F83\u5927\uFF0C\u5B9E\u8DF5\u9879\u76EE\u9ED8\u8BA4\u4FDD\u5B58\u5B9E\u9A8C\u73AF\u5883\u4E2D\u4E34\u65F6\u6570\u636E ",Ke.createElement("a",null,st),"\u5929\u3002"),Ke.createElement("p",{style:{color:"#666666",fontSize:12}}," ",Ke.createElement("span",{style:{display:"inline-flex",width:14,height:14,borderRadius:2,background:"#F3F3F3",justifyContent:"center",color:"#666666",fontSize:12,lineHeight:"14px",marginRight:8}},"2"),"\u82E5\u60A8\u9700\u8981\u4E2A\u6027\u5316\u7684\u6570\u636E\u4FDD\u5B58\u5468\u671F\u670D\u52A1\uFF0C\u6211\u4EEC\u53EF\u4EE5\u63D0\u4F9B\u76F8\u5173\u6280\u672F\u652F\u6301\uFF0C\u5E76\u6839\u636E\u60A8\u7684\u9700\u6C42\u6536\u53D6\u5B9A\u5236\u8D39\u7528\u3002")),Ke.createElement("div",{style:{textAlign:"center",marginTop:30}},Ke.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Kt,alt:"\u4E8C\u7EF4\u7801",width:160})))})},Ze=(st,Ye="")=>{const{shixunsDetail:{detail:Xe}}=(0,ye.getDvaApp)()._store.getState();if((Xe==null?void 0:Xe.public)===2||(Xe==null?void 0:Xe.public)===1||(Xe==null?void 0:Xe.shixun_status)===3){let At="";return(Xe==null?void 0:Xe.public)===2&&(At="\u5DF2\u516C\u5F00"),(Xe==null?void 0:Xe.public)===1&&(At="\u5F85\u5BA1\u6838"),(Xe==null?void 0:Xe.shixun_status)===3&&(At="\u5DF2\u5173\u95ED"),nt.default.info({centered:!0,icon:Ke.createElement(dt.Z,{style:{color:"#faad14"}}),width:460,title:"\u63D0\u793A",content:Ke.createElement("div",{className:"tc",style:{marginLeft:-38}},Ke.createElement("div",{style:{display:"flex",flexDirection:"column",alignItems:"flex-start",paddingLeft:38,margin:"12px 0"}},Ke.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u7684\u72B6\u6001\u4E3A",At,"\uFF0C",Ye,"\u3002"),Ke.createElement("p",null,"\u5982\u6709\u9700\u8981\uFF0C\u8BF7\u8054\u7CFB\u5E73\u53F0\u7BA1\u7406\u5458\u8FDB\u884C\u6280\u672F\u652F\u6301\u3002")),Ke.createElement("img",{style:{border:"4px solid #0152d9",borderRadius:"4px"},src:Kt,alt:"\u4E8C\u7EF4\u7801",width:160})),okText:"\u6211\u77E5\u9053\u4E86"}),!0}return(Xe==null?void 0:Xe.shixun_status)===2?(nt.default.confirm({centered:!0,icon:Ke.createElement(dt.Z,null),title:"\u63D0\u793A",content:Ke.createElement("div",null,Ke.createElement("span",null,"\u8BE5\u5B9E\u8DF5\u9879\u76EE\u5DF2\u53D1\u5E03\uFF0C",Ye,"\u3002"),Ke.createElement("br",null),Ke.createElement("span",null,"\u5982\u6709\u9700\u8981\uFF0C\u60A8\u53EF\u4EE5\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u518D\u8FDB\u884C\u64CD\u4F5C\u3002")),okText:"\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>{nt.default.confirm({width:440,centered:!0,icon:Ke.createElement(dt.Z,{style:{color:"#faad14"}}),title:"\u63D0\u793A",content:"\u64A4\u9500\u53D1\u5E03\u540E\uFF0C\u5B66\u5458\u5C06\u65E0\u6CD5\u8FDB\u884C\u7EC3\u4E60\u3002\u662F\u5426\u786E\u8BA4\u64A4\u9500\u53D1\u5E03\uFF1F",okText:"\u786E\u5B9A\u64A4\u9500\u53D1\u5E03",cancelText:"\u53D6\u6D88",onOk:()=>Ht(void 0,null,function*(){(yield st({type:"shixunsDetail/cancelRelease",payload:{id:Xe==null?void 0:Xe.identifier}})).status!==401&&(Dt.ZP.success("\u64A4\u9500\u53D1\u5E03\u6210\u529F\u3002\u5B9E\u8BAD\u56DE\u5230\u672A\u53D1\u5E03\u7684\u72B6\u6001\u3002"),st({type:"shixunsDetail/getShixunsDetail",payload:{id:Xe==null?void 0:Xe.identifier}}),st({type:"practiceSetting/getCommonData",payload:{id:Xe==null?void 0:Xe.identifier}}))})})}}),!0):!1}},99498:function(Jn,gi,De){(function(ye){ye(De(89780))})(function(ye){ye.defineOption("placeholder","",function(Kt,Et,Me){var zt=Me&&Me!=ye.Init;if(Et&&!zt)Kt.on("blur",Mt),Kt.on("change",ze),Kt.on("swapDoc",ze),ye.on(Kt.getInputField(),"compositionupdate",Kt.state.placeholderCompose=function(){Dt(Kt)}),ze(Kt);else if(!Et&&zt){Kt.off("blur",Mt),Kt.off("change",ze),Kt.off("swapDoc",ze),ye.off(Kt.getInputField(),"compositionupdate",Kt.state.placeholderCompose),nt(Kt);var Ke=Kt.getWrapperElement();Ke.className=Ke.className.replace(" CodeMirror-empty","")}Et&&!Kt.hasFocus()&&Mt(Kt)});function nt(Kt){Kt.state.placeholder&&(Kt.state.placeholder.parentNode.removeChild(Kt.state.placeholder),Kt.state.placeholder=null)}function it(Kt){nt(Kt);var Et=Kt.state.placeholder=document.createElement("pre");Et.style.cssText="height: 0; overflow: visible",Et.style.direction=Kt.getOption("direction"),Et.className="CodeMirror-placeholder CodeMirror-line-like";var Me=Kt.getOption("placeholder");typeof Me=="string"&&(Me=document.createTextNode(Me)),Et.appendChild(Me),Kt.display.lineSpace.insertBefore(Et,Kt.display.lineSpace.firstChild)}function Dt(Kt){setTimeout(function(){var Et=!1,Me=Kt.getInputField();Me.nodeName=="TEXTAREA"?Et=!Me.value:Kt.lineCount()==1&&(Et=!/[^\u200b]/.test(Me.querySelector(".CodeMirror-line").textContent)),Et?it(Kt):nt(Kt)},20)}function Mt(Kt){dt(Kt)&&it(Kt)}function ze(Kt){var Et=Kt.getWrapperElement(),Me=dt(Kt);Et.className=Et.className.replace(" CodeMirror-empty","")+(Me?" CodeMirror-empty":""),Me?it(Kt):nt(Kt)}function dt(Kt){return Kt.lineCount()===1&&Kt.getLine(0)===""}})},25717:function(Jn,gi,De){(function(ye){ye(De(89780))})(function(ye){var nt={pairs:`()[]{}''""`,closeBefore:`)]}'":;>`,triples:"",explode:"[]{}"},it=ye.Pos;ye.defineOption("autoCloseBrackets",!1,function(ne,te,de){de&&de!=ye.Init&&(ne.removeKeyMap(Mt),ne.state.closeBrackets=null),te&&(ze(Dt(te,"pairs")),ne.state.closeBrackets=te,ne.addKeyMap(Mt))});function Dt(ne,te){return te=="pairs"&&typeof ne=="string"?ne:typeof ne=="object"&&ne[te]!=null?ne[te]:nt[te]}var Mt={Backspace:Et,Enter:Me};function ze(ne){for(var te=0;te<ne.length;te++){var de=ne.charAt(te),le="'"+de+"'";Mt[le]||(Mt[le]=dt(de))}}ze(nt.pairs+"`");function dt(ne){return function(te){return Ke(te,ne)}}function Kt(ne){var te=ne.state.closeBrackets;if(!te||te.override)return te;var de=ne.getModeAt(ne.getCursor());return de.closeBrackets||te}function Et(ne){var te=Kt(ne);if(!te||ne.getOption("disableInput"))return ye.Pass;for(var de=Dt(te,"pairs"),le=ne.listSelections(),ge=0;ge<le.length;ge++){if(!le[ge].empty())return ye.Pass;var me=Ht(ne,le[ge].head);if(!me||de.indexOf(me)%2!=0)return ye.Pass}for(var ge=le.length-1;ge>=0;ge--){var Se=le[ge].head;ne.replaceRange("",it(Se.line,Se.ch-1),it(Se.line,Se.ch+1),"+delete")}}function Me(ne){var te=Kt(ne),de=te&&Dt(te,"explode");if(!de||ne.getOption("disableInput"))return ye.Pass;for(var le=ne.listSelections(),ge=0;ge<le.length;ge++){if(!le[ge].empty())return ye.Pass;var me=Ht(ne,le[ge].head);if(!me||de.indexOf(me)%2!=0)return ye.Pass}ne.operation(function(){var Se=ne.lineSeparator()||`
|
|
`;ne.replaceSelection(Se+Se,null),ne.execCommand("goCharLeft"),le=ne.listSelections();for(var be=0;be<le.length;be++){var Ie=le[be].head.line;ne.indentLine(Ie,null,!0),ne.indentLine(Ie+1,null,!0)}})}function zt(ne){var te=ye.cmpPos(ne.anchor,ne.head)>0;return{anchor:new it(ne.anchor.line,ne.anchor.ch+(te?-1:1)),head:new it(ne.head.line,ne.head.ch+(te?1:-1))}}function Ke(ne,te){var de=Kt(ne);if(!de||ne.getOption("disableInput"))return ye.Pass;var le=Dt(de,"pairs"),ge=le.indexOf(te);if(ge==-1)return ye.Pass;for(var me=Dt(de,"closeBefore"),Se=Dt(de,"triples"),be=le.charAt(ge+1)==te,Ie=ne.listSelections(),Ze=ge%2==0,st,Ye=0;Ye<Ie.length;Ye++){var Xe=Ie[Ye],At=Xe.head,ft,Nt=ne.getRange(At,it(At.line,At.ch+1));if(Ze&&!Xe.empty())ft="surround";else if((be||!Ze)&&Nt==te)be&&Ne(ne,At)?ft="both":Se.indexOf(te)>=0&&ne.getRange(At,it(At.line,At.ch+3))==te+te+te?ft="skipThree":ft="skip";else if(be&&At.ch>1&&Se.indexOf(te)>=0&&ne.getRange(it(At.line,At.ch-2),At)==te+te){if(At.ch>2&&/\bstring/.test(ne.getTokenTypeAt(it(At.line,At.ch-2))))return ye.Pass;ft="addFour"}else if(be){var Lt=At.ch==0?" ":ne.getRange(it(At.line,At.ch-1),At);if(!ye.isWordChar(Nt)&&Lt!=te&&!ye.isWordChar(Lt))ft="both";else return ye.Pass}else if(Ze&&(Nt.length===0||/\s/.test(Nt)||me.indexOf(Nt)>-1))ft="both";else return ye.Pass;if(!st)st=ft;else if(st!=ft)return ye.Pass}var ln=ge%2?le.charAt(ge-1):te,kn=ge%2?te:le.charAt(ge+1);ne.operation(function(){if(st=="skip")ne.execCommand("goCharRight");else if(st=="skipThree")for(var un=0;un<3;un++)ne.execCommand("goCharRight");else if(st=="surround"){for(var _t=ne.getSelections(),un=0;un<_t.length;un++)_t[un]=ln+_t[un]+kn;ne.replaceSelections(_t,"around"),_t=ne.listSelections().slice();for(var un=0;un<_t.length;un++)_t[un]=zt(_t[un]);ne.setSelections(_t)}else st=="both"?(ne.replaceSelection(ln+kn,null),ne.triggerElectric(ln+kn),ne.execCommand("goCharLeft")):st=="addFour"&&(ne.replaceSelection(ln+ln+ln+ln,"before"),ne.execCommand("goCharRight"))})}function Ht(ne,te){var de=ne.getRange(it(te.line,te.ch-1),it(te.line,te.ch+1));return de.length==2?de:null}function Ne(ne,te){var de=ne.getTokenAt(it(te.line,te.ch+1));return/\bstring/.test(de.type)&&de.start==te.ch&&(te.ch==0||!/\bstring/.test(ne.getTokenTypeAt(te)))}})},6313:function(Jn,gi,De){(function(ye){ye(De(89780),De(32855))})(function(ye){ye.defineOption("autoCloseTags",!1,function(Et,Me,zt){if(zt!=ye.Init&&zt&&Et.removeKeyMap("autoCloseTags"),!!Me){var Ke={name:"autoCloseTags"};(typeof Me!="object"||Me.whenClosing!==!1)&&(Ke["'/'"]=function(Ht){return ze(Ht)}),(typeof Me!="object"||Me.whenOpening!==!1)&&(Ke["'>'"]=function(Ht){return Dt(Ht)}),Et.addKeyMap(Ke)}});var nt=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"],it=["applet","blockquote","body","button","div","dl","fieldset","form","frameset","h1","h2","h3","h4","h5","h6","head","html","iframe","layer","legend","object","ol","p","select","table","ul"];function Dt(Et){if(Et.getOption("disableInput"))return ye.Pass;for(var Me=Et.listSelections(),zt=[],Ke=Et.getOption("autoCloseTags"),Ht=0;Ht<Me.length;Ht++){if(!Me[Ht].empty())return ye.Pass;var Ne=Me[Ht].head,ne=Et.getTokenAt(Ne),te=ye.innerMode(Et.getMode(),ne.state),de=te.state,le=te.mode.xmlCurrentTag&&te.mode.xmlCurrentTag(de),ge=le&&le.name;if(!ge)return ye.Pass;var me=te.mode.configuration=="html",Se=typeof Ke=="object"&&Ke.dontCloseTags||me&&nt,be=typeof Ke=="object"&&Ke.indentTags||me&⁢ne.end>Ne.ch&&(ge=ge.slice(0,ge.length-ne.end+Ne.ch));var Ie=ge.toLowerCase();if(!ge||ne.type=="string"&&(ne.end!=Ne.ch||!/[\"\']/.test(ne.string.charAt(ne.string.length-1))||ne.string.length==1)||ne.type=="tag"&&le.close||ne.string.indexOf("/")==Ne.ch-ne.start-1||Se&&dt(Se,Ie)>-1||Kt(Et,te.mode.xmlCurrentContext&&te.mode.xmlCurrentContext(de)||[],ge,Ne,!0))return ye.Pass;var Ze=typeof Ke=="object"&&Ke.emptyTags;if(Ze&&dt(Ze,ge)>-1){zt[Ht]={text:"/>",newPos:ye.Pos(Ne.line,Ne.ch+2)};continue}var st=be&&dt(be,Ie)>-1;zt[Ht]={indent:st,text:">"+(st?`
|
|
|
|
`:"")+"</"+ge+">",newPos:st?ye.Pos(Ne.line+1,0):ye.Pos(Ne.line,Ne.ch+1)}}for(var Ye=typeof Ke=="object"&&Ke.dontIndentOnAutoClose,Ht=Me.length-1;Ht>=0;Ht--){var Xe=zt[Ht];Et.replaceRange(Xe.text,Me[Ht].head,Me[Ht].anchor,"+insert");var At=Et.listSelections().slice(0);At[Ht]={head:Xe.newPos,anchor:Xe.newPos},Et.setSelections(At),!Ye&&Xe.indent&&(Et.indentLine(Xe.newPos.line,null,!0),Et.indentLine(Xe.newPos.line+1,null,!0))}}function Mt(Et,Me){for(var zt=Et.listSelections(),Ke=[],Ht=Me?"/":"</",Ne=Et.getOption("autoCloseTags"),ne=typeof Ne=="object"&&Ne.dontIndentOnSlash,te=0;te<zt.length;te++){if(!zt[te].empty())return ye.Pass;var de=zt[te].head,le=Et.getTokenAt(de),ge=ye.innerMode(Et.getMode(),le.state),me=ge.state;if(Me&&(le.type=="string"||le.string.charAt(0)!="<"||le.start!=de.ch-1))return ye.Pass;var Se,be=ge.mode.name!="xml"&&Et.getMode().name=="htmlmixed";if(be&&ge.mode.name=="javascript")Se=Ht+"script";else if(be&&ge.mode.name=="css")Se=Ht+"style";else{var Ie=ge.mode.xmlCurrentContext&&ge.mode.xmlCurrentContext(me);if(!Ie||Ie.length&&Kt(Et,Ie,Ie[Ie.length-1],de))return ye.Pass;Se=Ht+Ie[Ie.length-1]}Et.getLine(de.line).charAt(le.end)!=">"&&(Se+=">"),Ke[te]=Se}if(Et.replaceSelections(Ke),zt=Et.listSelections(),!ne)for(var te=0;te<zt.length;te++)(te==zt.length-1||zt[te].head.line<zt[te+1].head.line)&&Et.indentLine(zt[te].head.line)}function ze(Et){return Et.getOption("disableInput")?ye.Pass:Mt(Et,!0)}ye.commands.closeTag=function(Et){return Mt(Et)};function dt(Et,Me){if(Et.indexOf)return Et.indexOf(Me);for(var zt=0,Ke=Et.length;zt<Ke;++zt)if(Et[zt]==Me)return zt;return-1}function Kt(Et,Me,zt,Ke,Ht){if(!ye.scanForClosingTag)return!1;var Ne=Math.min(Et.lastLine()+1,Ke.line+500),ne=ye.scanForClosingTag(Et,Ke,null,Ne);if(!ne||ne.tag!=zt)return!1;for(var te=Ht?1:0,de=Me.length-1;de>=0&&Me[de]==zt;de--)++te;Ke=ne.to;for(var de=1;de<te;de++){var le=ye.scanForClosingTag(Et,Ke,null,Ne);if(!le||le.tag!=zt)return!1;Ke=le.to}return!0}})},32855:function(Jn,gi,De){(function(ye){ye(De(89780))})(function(ye){"use strict";var nt=ye.Pos;function it(de,le){return de.line-le.line||de.ch-le.ch}var Dt="A-Z_a-z\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD",Mt=Dt+"-:.0-9\\u00B7\\u0300-\\u036F\\u203F-\\u2040",ze=new RegExp("<(/?)(["+Dt+"]["+Mt+"]*)","g");function dt(de,le,ge,me){this.line=le,this.ch=ge,this.cm=de,this.text=de.getLine(le),this.min=me?Math.max(me.from,de.firstLine()):de.firstLine(),this.max=me?Math.min(me.to-1,de.lastLine()):de.lastLine()}function Kt(de,le){var ge=de.cm.getTokenTypeAt(nt(de.line,le));return ge&&/\btag\b/.test(ge)}function Et(de){if(!(de.line>=de.max))return de.ch=0,de.text=de.cm.getLine(++de.line),!0}function Me(de){if(!(de.line<=de.min))return de.text=de.cm.getLine(--de.line),de.ch=de.text.length,!0}function zt(de){for(;;){var le=de.text.indexOf(">",de.ch);if(le==-1){if(Et(de))continue;return}if(!Kt(de,le+1)){de.ch=le+1;continue}var ge=de.text.lastIndexOf("/",le),me=ge>-1&&!/\S/.test(de.text.slice(ge+1,le));return de.ch=le+1,me?"selfClose":"regular"}}function Ke(de){for(;;){var le=de.ch?de.text.lastIndexOf("<",de.ch-1):-1;if(le==-1){if(Me(de))continue;return}if(!Kt(de,le+1)){de.ch=le;continue}ze.lastIndex=le,de.ch=le;var ge=ze.exec(de.text);if(ge&&ge.index==le)return ge}}function Ht(de){for(;;){ze.lastIndex=de.ch;var le=ze.exec(de.text);if(!le){if(Et(de))continue;return}if(!Kt(de,le.index+1)){de.ch=le.index+1;continue}return de.ch=le.index+le[0].length,le}}function Ne(de){for(;;){var le=de.ch?de.text.lastIndexOf(">",de.ch-1):-1;if(le==-1){if(Me(de))continue;return}if(!Kt(de,le+1)){de.ch=le;continue}var ge=de.text.lastIndexOf("/",le),me=ge>-1&&!/\S/.test(de.text.slice(ge+1,le));return de.ch=le+1,me?"selfClose":"regular"}}function ne(de,le){for(var ge=[];;){var me=Ht(de),Se,be=de.line,Ie=de.ch-(me?me[0].length:0);if(!me||!(Se=zt(de)))return;if(Se!="selfClose")if(me[1]){for(var Ze=ge.length-1;Ze>=0;--Ze)if(ge[Ze]==me[2]){ge.length=Ze;break}if(Ze<0&&(!le||le==me[2]))return{tag:me[2],from:nt(be,Ie),to:nt(de.line,de.ch)}}else ge.push(me[2])}}function te(de,le){for(var ge=[];;){var me=Ne(de);if(!me)return;if(me=="selfClose"){Ke(de);continue}var Se=de.line,be=de.ch,Ie=Ke(de);if(!Ie)return;if(Ie[1])ge.push(Ie[2]);else{for(var Ze=ge.length-1;Ze>=0;--Ze)if(ge[Ze]==Ie[2]){ge.length=Ze;break}if(Ze<0&&(!le||le==Ie[2]))return{tag:Ie[2],from:nt(de.line,de.ch),to:nt(Se,be)}}}}ye.registerHelper("fold","xml",function(de,le){for(var ge=new dt(de,le.line,0);;){var me=Ht(ge);if(!me||ge.line!=le.line)return;var Se=zt(ge);if(!Se)return;if(!me[1]&&Se!="selfClose"){var be=nt(ge.line,ge.ch),Ie=ne(ge,me[2]);return Ie&&it(Ie.from,be)>0?{from:be,to:Ie.from}:null}}}),ye.findMatchingTag=function(de,le,ge){var me=new dt(de,le.line,le.ch,ge);if(!(me.text.indexOf(">")==-1&&me.text.indexOf("<")==-1)){var Se=zt(me),be=Se&&nt(me.line,me.ch),Ie=Se&&Ke(me);if(!(!Se||!Ie||it(me,le)>0)){var Ze={from:nt(me.line,me.ch),to:be,tag:Ie[2]};return Se=="selfClose"?{open:Ze,close:null,at:"open"}:Ie[1]?{open:te(me,Ie[2]),close:Ze,at:"close"}:(me=new dt(de,be.line,be.ch,ge),{open:Ze,close:ne(me,Ie[2]),at:"open"})}}},ye.findEnclosingTag=function(de,le,ge,me){for(var Se=new dt(de,le.line,le.ch,ge);;){var be=te(Se,me);if(!be)break;var Ie=new dt(de,le.line,le.ch,ge),Ze=ne(Ie,be.tag);if(Ze)return{open:be,close:Ze}}},ye.scanForClosingTag=function(de,le,ge,me){var Se=new dt(de,le.line,le.ch,me?{from:0,to:me}:null);return ne(Se,ge)}})},89780:function(Jn){(function(gi,De){Jn.exports=De()})(this,function(){"use strict";var gi=navigator.userAgent,De=navigator.platform,ye=/gecko\/\d/i.test(gi),nt=/MSIE \d/.test(gi),it=/Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(gi),Dt=/Edge\/(\d+)/.exec(gi),Mt=nt||it||Dt,ze=Mt&&(nt?document.documentMode||6:+(Dt||it)[1]),dt=!Dt&&/WebKit\//.test(gi),Kt=dt&&/Qt\/\d+\.\d+/.test(gi),Et=!Dt&&/Chrome\//.test(gi),Me=/Opera\//.test(gi),zt=/Apple Computer/.test(navigator.vendor),Ke=/Mac OS X 1\d\D([8-9]|\d\d)\D/.test(gi),Ht=/PhantomJS/.test(gi),Ne=!Dt&&/AppleWebKit/.test(gi)&&/Mobile\/\w+/.test(gi),ne=/Android/.test(gi),te=Ne||ne||/webOS|BlackBerry|Opera Mini|Opera Mobi|IEMobile/i.test(gi),de=Ne||/Mac/.test(De),le=/\bCrOS\b/.test(gi),ge=/win/i.test(De),me=Me&&gi.match(/Version\/(\d*\.\d*)/);me&&(me=Number(me[1])),me&&me>=15&&(Me=!1,dt=!0);var Se=de&&(Kt||Me&&(me==null||me<12.11)),be=ye||Mt&&ze>=9;function Ie(ie){return new RegExp("(^|\\s)"+ie+"(?:$|\\s)\\s*")}var Ze=function(ie,ae){var ce=ie.className,he=Ie(ae).exec(ce);if(he){var pe=ce.slice(he.index+he[0].length);ie.className=ce.slice(0,he.index)+(pe?he[1]+pe:"")}};function st(ie){for(var ae=ie.childNodes.length;ae>0;--ae)ie.removeChild(ie.firstChild);return ie}function Ye(ie,ae){return st(ie).appendChild(ae)}function Xe(ie,ae,ce,he){var pe=document.createElement(ie);if(ce&&(pe.className=ce),he&&(pe.style.cssText=he),typeof ae=="string")pe.appendChild(document.createTextNode(ae));else if(ae)for(var Ae=0;Ae<ae.length;++Ae)pe.appendChild(ae[Ae]);return pe}function At(ie,ae,ce,he){var pe=Xe(ie,ae,ce,he);return pe.setAttribute("role","presentation"),pe}var ft;document.createRange?ft=function(ie,ae,ce,he){var pe=document.createRange();return pe.setEnd(he||ie,ce),pe.setStart(ie,ae),pe}:ft=function(ie,ae,ce){var he=document.body.createTextRange();try{he.moveToElementText(ie.parentNode)}catch(pe){return he}return he.collapse(!0),he.moveEnd("character",ce),he.moveStart("character",ae),he};function Nt(ie,ae){if(ae.nodeType==3&&(ae=ae.parentNode),ie.contains)return ie.contains(ae);do if(ae.nodeType==11&&(ae=ae.host),ae==ie)return!0;while(ae=ae.parentNode)}function Lt(){var ie;try{ie=document.activeElement}catch(ae){ie=document.body||null}for(;ie&&ie.shadowRoot&&ie.shadowRoot.activeElement;)ie=ie.shadowRoot.activeElement;return ie}function ln(ie,ae){var ce=ie.className;Ie(ae).test(ce)||(ie.className+=(ce?" ":"")+ae)}function kn(ie,ae){for(var ce=ie.split(" "),he=0;he<ce.length;he++)ce[he]&&!Ie(ce[he]).test(ae)&&(ae+=" "+ce[he]);return ae}var un=function(ie){ie.select()};Ne?un=function(ie){ie.selectionStart=0,ie.selectionEnd=ie.value.length}:Mt&&(un=function(ie){try{ie.select()}catch(ae){}});function _t(ie){var ae=Array.prototype.slice.call(arguments,1);return function(){return ie.apply(null,ae)}}function hn(ie,ae,ce){ae||(ae={});for(var he in ie)ie.hasOwnProperty(he)&&(ce!==!1||!ae.hasOwnProperty(he))&&(ae[he]=ie[he]);return ae}function vt(ie,ae,ce,he,pe){ae==null&&(ae=ie.search(/[^\s\u00a0]/),ae==-1&&(ae=ie.length));for(var Ae=he||0,Oe=pe||0;;){var Qe=ie.indexOf(" ",Ae);if(Qe<0||Qe>=ae)return Oe+(ae-Ae);Oe+=Qe-Ae,Oe+=ce-Oe%ce,Ae=Qe+1}}var $e=function(){this.id=null,this.f=null,this.time=0,this.handler=_t(this.onTimeout,this)};$e.prototype.onTimeout=function(ie){ie.id=0,ie.time<=+new Date?ie.f():setTimeout(ie.handler,ie.time-+new Date)},$e.prototype.set=function(ie,ae){this.f=ae;var ce=+new Date+ie;(!this.id||ce<this.time)&&(clearTimeout(this.id),this.id=setTimeout(this.handler,ie),this.time=ce)};function gn(ie,ae){for(var ce=0;ce<ie.length;++ce)if(ie[ce]==ae)return ce;return-1}var ci=50,Fn={toString:function(){return"CodeMirror.Pass"}},rn={scroll:!1},Xn={origin:"*mouse"},Nn={origin:"+move"};function mi(ie,ae,ce){for(var he=0,pe=0;;){var Ae=ie.indexOf(" ",he);Ae==-1&&(Ae=ie.length);var Oe=Ae-he;if(Ae==ie.length||pe+Oe>=ae)return he+Math.min(Oe,ae-pe);if(pe+=Ae-he,pe+=ce-pe%ce,he=Ae+1,pe>=ae)return he}}var Zt=[""];function Rn(ie){for(;Zt.length<=ie;)Zt.push(wt(Zt)+" ");return Zt[ie]}function wt(ie){return ie[ie.length-1]}function Ai(ie,ae){for(var ce=[],he=0;he<ie.length;he++)ce[he]=ae(ie[he],he);return ce}function Kn(ie,ae,ce){for(var he=0,pe=ce(ae);he<ie.length&&ce(ie[he])<=pe;)he++;ie.splice(he,0,ae)}function je(){}function Le(ie,ae){var ce;return Object.create?ce=Object.create(ie):(je.prototype=ie,ce=new je),ae&&hn(ae,ce),ce}var we=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;function Be(ie){return/\w/.test(ie)||ie>"\x80"&&(ie.toUpperCase()!=ie.toLowerCase()||we.test(ie))}function Ge(ie,ae){return ae?ae.source.indexOf("\\w")>-1&&Be(ie)?!0:ae.test(ie):Be(ie)}function ke(ie){for(var ae in ie)if(ie.hasOwnProperty(ae)&&ie[ae])return!1;return!0}var et=/[\u0300-\u036f\u0483-\u0489\u0591-\u05bd\u05bf\u05c1\u05c2\u05c4\u05c5\u05c7\u0610-\u061a\u064b-\u065e\u0670\u06d6-\u06dc\u06de-\u06e4\u06e7\u06e8\u06ea-\u06ed\u0711\u0730-\u074a\u07a6-\u07b0\u07eb-\u07f3\u0816-\u0819\u081b-\u0823\u0825-\u0827\u0829-\u082d\u0900-\u0902\u093c\u0941-\u0948\u094d\u0951-\u0955\u0962\u0963\u0981\u09bc\u09be\u09c1-\u09c4\u09cd\u09d7\u09e2\u09e3\u0a01\u0a02\u0a3c\u0a41\u0a42\u0a47\u0a48\u0a4b-\u0a4d\u0a51\u0a70\u0a71\u0a75\u0a81\u0a82\u0abc\u0ac1-\u0ac5\u0ac7\u0ac8\u0acd\u0ae2\u0ae3\u0b01\u0b3c\u0b3e\u0b3f\u0b41-\u0b44\u0b4d\u0b56\u0b57\u0b62\u0b63\u0b82\u0bbe\u0bc0\u0bcd\u0bd7\u0c3e-\u0c40\u0c46-\u0c48\u0c4a-\u0c4d\u0c55\u0c56\u0c62\u0c63\u0cbc\u0cbf\u0cc2\u0cc6\u0ccc\u0ccd\u0cd5\u0cd6\u0ce2\u0ce3\u0d3e\u0d41-\u0d44\u0d4d\u0d57\u0d62\u0d63\u0dca\u0dcf\u0dd2-\u0dd4\u0dd6\u0ddf\u0e31\u0e34-\u0e3a\u0e47-\u0e4e\u0eb1\u0eb4-\u0eb9\u0ebb\u0ebc\u0ec8-\u0ecd\u0f18\u0f19\u0f35\u0f37\u0f39\u0f71-\u0f7e\u0f80-\u0f84\u0f86\u0f87\u0f90-\u0f97\u0f99-\u0fbc\u0fc6\u102d-\u1030\u1032-\u1037\u1039\u103a\u103d\u103e\u1058\u1059\u105e-\u1060\u1071-\u1074\u1082\u1085\u1086\u108d\u109d\u135f\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17b7-\u17bd\u17c6\u17c9-\u17d3\u17dd\u180b-\u180d\u18a9\u1920-\u1922\u1927\u1928\u1932\u1939-\u193b\u1a17\u1a18\u1a56\u1a58-\u1a5e\u1a60\u1a62\u1a65-\u1a6c\u1a73-\u1a7c\u1a7f\u1b00-\u1b03\u1b34\u1b36-\u1b3a\u1b3c\u1b42\u1b6b-\u1b73\u1b80\u1b81\u1ba2-\u1ba5\u1ba8\u1ba9\u1c2c-\u1c33\u1c36\u1c37\u1cd0-\u1cd2\u1cd4-\u1ce0\u1ce2-\u1ce8\u1ced\u1dc0-\u1de6\u1dfd-\u1dff\u200c\u200d\u20d0-\u20f0\u2cef-\u2cf1\u2de0-\u2dff\u302a-\u302f\u3099\u309a\ua66f-\ua672\ua67c\ua67d\ua6f0\ua6f1\ua802\ua806\ua80b\ua825\ua826\ua8c4\ua8e0-\ua8f1\ua926-\ua92d\ua947-\ua951\ua980-\ua982\ua9b3\ua9b6-\ua9b9\ua9bc\uaa29-\uaa2e\uaa31\uaa32\uaa35\uaa36\uaa43\uaa4c\uaab0\uaab2-\uaab4\uaab7\uaab8\uaabe\uaabf\uaac1\uabe5\uabe8\uabed\udc00-\udfff\ufb1e\ufe00-\ufe0f\ufe20-\ufe26\uff9e\uff9f]/;function an(ie){return ie.charCodeAt(0)>=768&&et.test(ie)}function Bt(ie,ae,ce){for(;(ce<0?ae>0:ae<ie.length)&&an(ie.charAt(ae));)ae+=ce;return ae}function Ut(ie,ae,ce){for(var he=ae>ce?-1:1;;){if(ae==ce)return ae;var pe=(ae+ce)/2,Ae=he<0?Math.ceil(pe):Math.floor(pe);if(Ae==ae)return ie(Ae)?ae:ce;ie(Ae)?ce=Ae:ae=Ae+he}}function gt(ie,ae,ce,he){if(!ie)return he(ae,ce,"ltr",0);for(var pe=!1,Ae=0;Ae<ie.length;++Ae){var Oe=ie[Ae];(Oe.from<ce&&Oe.to>ae||ae==ce&&Oe.to==ae)&&(he(Math.max(Oe.from,ae),Math.min(Oe.to,ce),Oe.level==1?"rtl":"ltr",Ae),pe=!0)}pe||he(ae,ce,"ltr")}var Pt=null;function Tt(ie,ae,ce){var he;Pt=null;for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe];if(Ae.from<ae&&Ae.to>ae)return pe;Ae.to==ae&&(Ae.from!=Ae.to&&ce=="before"?he=pe:Pt=pe),Ae.from==ae&&(Ae.from!=Ae.to&&ce!="before"?he=pe:Pt=pe)}return he!=null?he:Pt}var Yt=function(){var ie="bbbbbbbbbtstwsbbbbbbbbbbbbbbssstwNN%%%NNNNNN,N,N1111111111NNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNNNLLLLLLLLLLLLLLLLLLLLLLLLLLNNNNbbbbbbsbbbbbbbbbbbbbbbbbbbbbbbbbb,N%%%%NNNNLNNNNN%%11NLNNN1LNNNNNLLLLLLLLLLLLLLLLLLLLLLLNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLN",ae="nnnnnnNNr%%r,rNNmmmmmmmmmmmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmmmmmmmmmmmmmmmnnnnnnnnnn%nnrrrmrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrrmmmmmmmnNmmmmmmrrmmNmmmmrr1111111111";function ce(ct){return ct<=247?ie.charAt(ct):1424<=ct&&ct<=1524?"R":1536<=ct&&ct<=1785?ae.charAt(ct-1536):1774<=ct&&ct<=2220?"r":8192<=ct&&ct<=8203?"w":ct==8204?"b":"L"}var he=/[\u0590-\u05f4\u0600-\u06ff\u0700-\u08ac]/,pe=/[stwN]/,Ae=/[LRr]/,Oe=/[Lb1n]/,Qe=/[1n]/;function _e(ct,fn,kt){this.level=ct,this.from=fn,this.to=kt}return function(ct,fn){var kt=fn=="ltr"?"L":"R";if(ct.length==0||fn=="ltr"&&!he.test(ct))return!1;for(var qn=ct.length,Zn=[],Ki=0;Ki<qn;++Ki)Zn.push(ce(ct.charCodeAt(Ki)));for(var qi=0,mr=kt;qi<qn;++qi){var Ir=Zn[qi];Ir=="m"?Zn[qi]=mr:mr=Ir}for(var $r=0,Gr=kt;$r<qn;++$r){var oo=Zn[$r];oo=="1"&&Gr=="r"?Zn[$r]="n":Ae.test(oo)&&(Gr=oo,oo=="r"&&(Zn[$r]="R"))}for(var ko=1,Vr=Zn[0];ko<qn-1;++ko){var _o=Zn[ko];_o=="+"&&Vr=="1"&&Zn[ko+1]=="1"?Zn[ko]="1":_o==","&&Vr==Zn[ko+1]&&(Vr=="1"||Vr=="n")&&(Zn[ko]=Vr),Vr=_o}for(var ja=0;ja<qn;++ja){var Ss=Zn[ja];if(Ss==",")Zn[ja]="N";else if(Ss=="%"){var _a=void 0;for(_a=ja+1;_a<qn&&Zn[_a]=="%";++_a);for(var ul=ja&&Zn[ja-1]=="!"||_a<qn&&Zn[_a]=="1"?"1":"N",Ys=ja;Ys<_a;++Ys)Zn[Ys]=ul;ja=_a-1}}for(var ps=0,Pl=kt;ps<qn;++ps){var Rs=Zn[ps];Pl=="L"&&Rs=="1"?Zn[ps]="L":Ae.test(Rs)&&(Pl=Rs)}for(var ms=0;ms<qn;++ms)if(pe.test(Zn[ms])){var ma=void 0;for(ma=ms+1;ma<qn&&pe.test(Zn[ma]);++ma);for(var qa=(ms?Zn[ms-1]:kt)=="L",As=(ma<qn?Zn[ma]:kt)=="L",zs=qa==As?qa?"L":"R":kt,su=ms;su<ma;++su)Zn[su]=zs;ms=ma-1}for(var Ja=[],Jl,is=0;is<qn;)if(Oe.test(Zn[is])){var Bc=is;for(++is;is<qn&&Oe.test(Zn[is]);++is);Ja.push(new _e(0,Bc,is))}else{var Rl=is,Cl=Ja.length,hl=fn=="rtl"?1:0;for(++is;is<qn&&Zn[is]!="L";++is);for(var Na=Rl;Na<is;)if(Qe.test(Zn[Na])){Rl<Na&&(Ja.splice(Cl,0,new _e(1,Rl,Na)),Cl+=hl);var Ls=Na;for(++Na;Na<is&&Qe.test(Zn[Na]);++Na);Ja.splice(Cl,0,new _e(2,Ls,Na)),Cl+=hl,Rl=Na}else++Na;Rl<is&&Ja.splice(Cl,0,new _e(1,Rl,is))}return fn=="ltr"&&(Ja[0].level==1&&(Jl=ct.match(/^\s+/))&&(Ja[0].from=Jl[0].length,Ja.unshift(new _e(0,0,Jl[0].length))),wt(Ja).level==1&&(Jl=ct.match(/\s+$/))&&(wt(Ja).to-=Jl[0].length,Ja.push(new _e(0,qn-Jl[0].length,qn)))),fn=="rtl"?Ja.reverse():Ja}}();function dn(ie,ae){var ce=ie.order;return ce==null&&(ce=ie.order=Yt(ie.text,ae)),ce}var On=[],wn=function(ie,ae,ce){if(ie.addEventListener)ie.addEventListener(ae,ce,!1);else if(ie.attachEvent)ie.attachEvent("on"+ae,ce);else{var he=ie._handlers||(ie._handlers={});he[ae]=(he[ae]||On).concat(ce)}};function nn(ie,ae){return ie._handlers&&ie._handlers[ae]||On}function jt(ie,ae,ce){if(ie.removeEventListener)ie.removeEventListener(ae,ce,!1);else if(ie.detachEvent)ie.detachEvent("on"+ae,ce);else{var he=ie._handlers,pe=he&&he[ae];if(pe){var Ae=gn(pe,ce);Ae>-1&&(he[ae]=pe.slice(0,Ae).concat(pe.slice(Ae+1)))}}}function Xt(ie,ae){var ce=nn(ie,ae);if(ce.length)for(var he=Array.prototype.slice.call(arguments,2),pe=0;pe<ce.length;++pe)ce[pe].apply(null,he)}function pn(ie,ae,ce){return typeof ae=="string"&&(ae={type:ae,preventDefault:function(){this.defaultPrevented=!0}}),Xt(ie,ce||ae.type,ie,ae),wi(ae)||ae.codemirrorIgnore}function bn(ie){var ae=ie._handlers&&ie._handlers.cursorActivity;if(ae)for(var ce=ie.curOp.cursorActivityHandlers||(ie.curOp.cursorActivityHandlers=[]),he=0;he<ae.length;++he)gn(ce,ae[he])==-1&&ce.push(ae[he])}function Un(ie,ae){return nn(ie,ae).length>0}function ti(ie){ie.prototype.on=function(ae,ce){wn(this,ae,ce)},ie.prototype.off=function(ae,ce){jt(this,ae,ce)}}function pi(ie){ie.preventDefault?ie.preventDefault():ie.returnValue=!1}function vn(ie){ie.stopPropagation?ie.stopPropagation():ie.cancelBubble=!0}function wi(ie){return ie.defaultPrevented!=null?ie.defaultPrevented:ie.returnValue==!1}function Yi(ie){pi(ie),vn(ie)}function gr(ie){return ie.target||ie.srcElement}function rr(ie){var ae=ie.which;return ae==null&&(ie.button&1?ae=1:ie.button&2?ae=3:ie.button&4&&(ae=2)),de&&ie.ctrlKey&&ae==1&&(ae=3),ae}var tr=function(){if(Mt&&ze<9)return!1;var ie=Xe("div");return"draggable"in ie||"dragDrop"in ie}(),vr;function hr(ie){if(vr==null){var ae=Xe("span","\u200B");Ye(ie,Xe("span",[ae,document.createTextNode("x")])),ie.firstChild.offsetHeight!=0&&(vr=ae.offsetWidth<=1&&ae.offsetHeight>2&&!(Mt&&ze<8))}var ce=vr?Xe("span","\u200B"):Xe("span","\xA0",null,"display: inline-block; width: 1px; margin-right: -1px");return ce.setAttribute("cm-text",""),ce}var ar;function Xi(ie){if(ar!=null)return ar;var ae=Ye(ie,document.createTextNode("A\u062EA")),ce=ft(ae,0,1).getBoundingClientRect(),he=ft(ae,1,2).getBoundingClientRect();return st(ie),!ce||ce.left==ce.right?!1:ar=he.right-ce.right<3}var yr=`
|
|
|
|
b`.split(/\n/).length!=3?function(ie){for(var ae=0,ce=[],he=ie.length;ae<=he;){var pe=ie.indexOf(`
|
|
`,ae);pe==-1&&(pe=ie.length);var Ae=ie.slice(ae,ie.charAt(pe-1)=="\r"?pe-1:pe),Oe=Ae.indexOf("\r");Oe!=-1?(ce.push(Ae.slice(0,Oe)),ae+=Oe+1):(ce.push(Ae),ae=pe+1)}return ce}:function(ie){return ie.split(/\r\n?|\n/)},Ce=window.getSelection?function(ie){try{return ie.selectionStart!=ie.selectionEnd}catch(ae){return!1}}:function(ie){var ae;try{ae=ie.ownerDocument.selection.createRange()}catch(ce){}return!ae||ae.parentElement()!=ie?!1:ae.compareEndPoints("StartToEnd",ae)!=0},Sn=function(){var ie=Xe("div");return"oncopy"in ie?!0:(ie.setAttribute("oncopy","return;"),typeof ie.oncopy=="function")}(),Gn=null;function dr(ie){if(Gn!=null)return Gn;var ae=Ye(ie,Xe("span","x")),ce=ae.getBoundingClientRect(),he=ft(ae,0,1).getBoundingClientRect();return Gn=Math.abs(ce.left-he.left)>1}var or={},Ii={};function Tn(ie,ae){arguments.length>2&&(ae.dependencies=Array.prototype.slice.call(arguments,2)),or[ie]=ae}function Cn(ie,ae){Ii[ie]=ae}function Mn(ie){if(typeof ie=="string"&&Ii.hasOwnProperty(ie))ie=Ii[ie];else if(ie&&typeof ie.name=="string"&&Ii.hasOwnProperty(ie.name)){var ae=Ii[ie.name];typeof ae=="string"&&(ae={name:ae}),ie=Le(ae,ie),ie.name=ae.name}else{if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+xml$/.test(ie))return Mn("application/xml");if(typeof ie=="string"&&/^[\w\-]+\/[\w\-]+\+json$/.test(ie))return Mn("application/json")}return typeof ie=="string"?{name:ie}:ie||{name:"null"}}function yt(ie,ae){ae=Mn(ae);var ce=or[ae.name];if(!ce)return yt(ie,"text/plain");var he=ce(ie,ae);if(xt.hasOwnProperty(ae.name)){var pe=xt[ae.name];for(var Ae in pe)pe.hasOwnProperty(Ae)&&(he.hasOwnProperty(Ae)&&(he["_"+Ae]=he[Ae]),he[Ae]=pe[Ae])}if(he.name=ae.name,ae.helperType&&(he.helperType=ae.helperType),ae.modeProps)for(var Oe in ae.modeProps)he[Oe]=ae.modeProps[Oe];return he}var xt={};function Ct(ie,ae){var ce=xt.hasOwnProperty(ie)?xt[ie]:xt[ie]={};hn(ae,ce)}function Yn(ie,ae){if(ae===!0)return ae;if(ie.copyState)return ie.copyState(ae);var ce={};for(var he in ae){var pe=ae[he];pe instanceof Array&&(pe=pe.concat([])),ce[he]=pe}return ce}function $n(ie,ae){for(var ce;ie.innerMode&&(ce=ie.innerMode(ae),!(!ce||ce.mode==ie));)ae=ce.state,ie=ce.mode;return ce||{mode:ie,state:ae}}function di(ie,ae,ce){return ie.startState?ie.startState(ae,ce):!0}var xn=function(ie,ae,ce){this.pos=this.start=0,this.string=ie,this.tabSize=ae||8,this.lastColumnPos=this.lastColumnValue=0,this.lineStart=0,this.lineOracle=ce};xn.prototype.eol=function(){return this.pos>=this.string.length},xn.prototype.sol=function(){return this.pos==this.lineStart},xn.prototype.peek=function(){return this.string.charAt(this.pos)||void 0},xn.prototype.next=function(){if(this.pos<this.string.length)return this.string.charAt(this.pos++)},xn.prototype.eat=function(ie){var ae=this.string.charAt(this.pos),ce;if(typeof ie=="string"?ce=ae==ie:ce=ae&&(ie.test?ie.test(ae):ie(ae)),ce)return++this.pos,ae},xn.prototype.eatWhile=function(ie){for(var ae=this.pos;this.eat(ie););return this.pos>ae},xn.prototype.eatSpace=function(){for(var ie=this.pos;/[\s\u00a0]/.test(this.string.charAt(this.pos));)++this.pos;return this.pos>ie},xn.prototype.skipToEnd=function(){this.pos=this.string.length},xn.prototype.skipTo=function(ie){var ae=this.string.indexOf(ie,this.pos);if(ae>-1)return this.pos=ae,!0},xn.prototype.backUp=function(ie){this.pos-=ie},xn.prototype.column=function(){return this.lastColumnPos<this.start&&(this.lastColumnValue=vt(this.string,this.start,this.tabSize,this.lastColumnPos,this.lastColumnValue),this.lastColumnPos=this.start),this.lastColumnValue-(this.lineStart?vt(this.string,this.lineStart,this.tabSize):0)},xn.prototype.indentation=function(){return vt(this.string,null,this.tabSize)-(this.lineStart?vt(this.string,this.lineStart,this.tabSize):0)},xn.prototype.match=function(ie,ae,ce){if(typeof ie=="string"){var he=function(Oe){return ce?Oe.toLowerCase():Oe},pe=this.string.substr(this.pos,ie.length);if(he(pe)==he(ie))return ae!==!1&&(this.pos+=ie.length),!0}else{var Ae=this.string.slice(this.pos).match(ie);return Ae&&Ae.index>0?null:(Ae&&ae!==!1&&(this.pos+=Ae[0].length),Ae)}},xn.prototype.current=function(){return this.string.slice(this.start,this.pos)},xn.prototype.hideFirstChars=function(ie,ae){this.lineStart+=ie;try{return ae()}finally{this.lineStart-=ie}},xn.prototype.lookAhead=function(ie){var ae=this.lineOracle;return ae&&ae.lookAhead(ie)},xn.prototype.baseToken=function(){var ie=this.lineOracle;return ie&&ie.baseToken(this.pos)};function ai(ie,ae){if(ae-=ie.first,ae<0||ae>=ie.size)throw new Error("There is no line "+(ae+ie.first)+" in the document.");for(var ce=ie;!ce.lines;)for(var he=0;;++he){var pe=ce.children[he],Ae=pe.chunkSize();if(ae<Ae){ce=pe;break}ae-=Ae}return ce.lines[ae]}function Pn(ie,ae,ce){var he=[],pe=ae.line;return ie.iter(ae.line,ce.line+1,function(Ae){var Oe=Ae.text;pe==ce.line&&(Oe=Oe.slice(0,ce.ch)),pe==ae.line&&(Oe=Oe.slice(ae.ch)),he.push(Oe),++pe}),he}function zi(ie,ae,ce){var he=[];return ie.iter(ae,ce,function(pe){he.push(pe.text)}),he}function fr(ie,ae){var ce=ae-ie.height;if(ce)for(var he=ie;he;he=he.parent)he.height+=ce}function Ve(ie){if(ie.parent==null)return null;for(var ae=ie.parent,ce=gn(ae.lines,ie),he=ae.parent;he;ae=he,he=he.parent)for(var pe=0;he.children[pe]!=ae;++pe)ce+=he.children[pe].chunkSize();return ce+ae.first}function mt(ie,ae){var ce=ie.first;e:do{for(var he=0;he<ie.children.length;++he){var pe=ie.children[he],Ae=pe.height;if(ae<Ae){ie=pe;continue e}ae-=Ae,ce+=pe.chunkSize()}return ce}while(!ie.lines);for(var Oe=0;Oe<ie.lines.length;++Oe){var Qe=ie.lines[Oe],_e=Qe.height;if(ae<_e)break;ae-=_e}return ce+Oe}function Dn(ie,ae){return ae>=ie.first&&ae<ie.first+ie.size}function An(ie,ae){return String(ie.lineNumberFormatter(ae+ie.firstLineNumber))}function Ot(ie,ae,ce){if(ce===void 0&&(ce=null),!(this instanceof Ot))return new Ot(ie,ae,ce);this.line=ie,this.ch=ae,this.sticky=ce}function Bn(ie,ae){return ie.line-ae.line||ie.ch-ae.ch}function Hn(ie,ae){return ie.sticky==ae.sticky&&Bn(ie,ae)==0}function _n(ie){return Ot(ie.line,ie.ch)}function Ei(ie,ae){return Bn(ie,ae)<0?ae:ie}function si(ie,ae){return Bn(ie,ae)<0?ie:ae}function Pi(ie,ae){return Math.max(ie.first,Math.min(ae,ie.first+ie.size-1))}function yi(ie,ae){if(ae.line<ie.first)return Ot(ie.first,0);var ce=ie.first+ie.size-1;return ae.line>ce?Ot(ce,ai(ie,ce).text.length):_i(ae,ai(ie,ae.line).text.length)}function _i(ie,ae){var ce=ie.ch;return ce==null||ce>ae?Ot(ie.line,ae):ce<0?Ot(ie.line,0):ie}function Ri(ie,ae){for(var ce=[],he=0;he<ae.length;he++)ce[he]=yi(ie,ae[he]);return ce}var Di=function(ie,ae){this.state=ie,this.lookAhead=ae},sn=function(ie,ae,ce,he){this.state=ae,this.doc=ie,this.line=ce,this.maxLookAhead=he||0,this.baseTokens=null,this.baseTokenPos=1};sn.prototype.lookAhead=function(ie){var ae=this.doc.getLine(this.line+ie);return ae!=null&&ie>this.maxLookAhead&&(this.maxLookAhead=ie),ae},sn.prototype.baseToken=function(ie){if(!this.baseTokens)return null;for(;this.baseTokens[this.baseTokenPos]<=ie;)this.baseTokenPos+=2;var ae=this.baseTokens[this.baseTokenPos+1];return{type:ae&&ae.replace(/( |^)overlay .*/,""),size:this.baseTokens[this.baseTokenPos]-ie}},sn.prototype.nextLine=function(){this.line++,this.maxLookAhead>0&&this.maxLookAhead--},sn.fromSaved=function(ie,ae,ce){return ae instanceof Di?new sn(ie,Yn(ie.mode,ae.state),ce,ae.lookAhead):new sn(ie,Yn(ie.mode,ae),ce)},sn.prototype.save=function(ie){var ae=ie!==!1?Yn(this.doc.mode,this.state):this.state;return this.maxLookAhead>0?new Di(ae,this.maxLookAhead):ae};function pr(ie,ae,ce,he){var pe=[ie.state.modeGen],Ae={};br(ie,ae.text,ie.doc.mode,ce,function(ct,fn){return pe.push(ct,fn)},Ae,he);for(var Oe=ce.state,Qe=function(ct){ce.baseTokens=pe;var fn=ie.state.overlays[ct],kt=1,qn=0;ce.state=!0,br(ie,ae.text,fn.mode,ce,function(Zn,Ki){for(var qi=kt;qn<Zn;){var mr=pe[kt];mr>Zn&&pe.splice(kt,1,Zn,pe[kt+1],mr),kt+=2,qn=Math.min(Zn,mr)}if(Ki)if(fn.opaque)pe.splice(qi,kt-qi,Zn,"overlay "+Ki),kt=qi+2;else for(;qi<kt;qi+=2){var Ir=pe[qi+1];pe[qi+1]=(Ir?Ir+" ":"")+"overlay "+Ki}},Ae),ce.state=Oe,ce.baseTokens=null,ce.baseTokenPos=1},_e=0;_e<ie.state.overlays.length;++_e)Qe(_e);return{styles:pe,classes:Ae.bgClass||Ae.textClass?Ae:null}}function Mr(ie,ae,ce){if(!ae.styles||ae.styles[0]!=ie.state.modeGen){var he=Kr(ie,Ve(ae)),pe=ae.text.length>ie.options.maxHighlightLength&&Yn(ie.doc.mode,he.state),Ae=pr(ie,ae,he);pe&&(he.state=pe),ae.stateAfter=he.save(!pe),ae.styles=Ae.styles,Ae.classes?ae.styleClasses=Ae.classes:ae.styleClasses&&(ae.styleClasses=null),ce===ie.doc.highlightFrontier&&(ie.doc.modeFrontier=Math.max(ie.doc.modeFrontier,++ie.doc.highlightFrontier))}return ae.styles}function Kr(ie,ae,ce){var he=ie.doc,pe=ie.display;if(!he.mode.startState)return new sn(he,!0,ae);var Ae=Hi(ie,ae,ce),Oe=Ae>he.first&&ai(he,Ae-1).stateAfter,Qe=Oe?sn.fromSaved(he,Oe,Ae):new sn(he,di(he.mode),Ae);return he.iter(Ae,ae,function(_e){En(ie,_e.text,Qe);var ct=Qe.line;_e.stateAfter=ct==ae-1||ct%5==0||ct>=pe.viewFrom&&ct<pe.viewTo?Qe.save():null,Qe.nextLine()}),ce&&(he.modeFrontier=Qe.line),Qe}function En(ie,ae,ce,he){var pe=ie.doc.mode,Ae=new xn(ae,ie.options.tabSize,ce);for(Ae.start=Ae.pos=he||0,ae==""&&Si(pe,ce.state);!Ae.eol();)Vi(pe,Ae,ce.state),Ae.start=Ae.pos}function Si(ie,ae){if(ie.blankLine)return ie.blankLine(ae);if(ie.innerMode){var ce=$n(ie,ae);if(ce.mode.blankLine)return ce.mode.blankLine(ce.state)}}function Vi(ie,ae,ce,he){for(var pe=0;pe<10;pe++){he&&(he[0]=$n(ie,ce).mode);var Ae=ie.token(ae,ce);if(ae.pos>ae.start)return Ae}throw new Error("Mode "+ie.name+" failed to advance stream.")}var Wi=function(ie,ae,ce){this.start=ie.start,this.end=ie.pos,this.string=ie.current(),this.type=ae||null,this.state=ce};function $i(ie,ae,ce,he){var pe=ie.doc,Ae=pe.mode,Oe;ae=yi(pe,ae);var Qe=ai(pe,ae.line),_e=Kr(ie,ae.line,ce),ct=new xn(Qe.text,ie.options.tabSize,_e),fn;for(he&&(fn=[]);(he||ct.pos<ae.ch)&&!ct.eol();)ct.start=ct.pos,Oe=Vi(Ae,ct,_e.state),he&&fn.push(new Wi(ct,Oe,Yn(pe.mode,_e.state)));return he?fn:new Wi(ct,Oe,_e.state)}function Pr(ie,ae){if(ie)for(;;){var ce=ie.match(/(?:^|\s+)line-(background-)?(\S+)/);if(!ce)break;ie=ie.slice(0,ce.index)+ie.slice(ce.index+ce[0].length);var he=ce[1]?"bgClass":"textClass";ae[he]==null?ae[he]=ce[2]:new RegExp("(?:^|\\s)"+ce[2]+"(?:$|\\s)").test(ae[he])||(ae[he]+=" "+ce[2])}return ie}function br(ie,ae,ce,he,pe,Ae,Oe){var Qe=ce.flattenSpans;Qe==null&&(Qe=ie.options.flattenSpans);var _e=0,ct=null,fn=new xn(ae,ie.options.tabSize,he),kt,qn=ie.options.addModeClass&&[null];for(ae==""&&Pr(Si(ce,he.state),Ae);!fn.eol();){if(fn.pos>ie.options.maxHighlightLength?(Qe=!1,Oe&&En(ie,ae,he,fn.pos),fn.pos=ae.length,kt=null):kt=Pr(Vi(ce,fn,he.state,qn),Ae),qn){var Zn=qn[0].name;Zn&&(kt="m-"+(kt?Zn+" "+kt:Zn))}if(!Qe||ct!=kt){for(;_e<fn.start;)_e=Math.min(fn.start,_e+5e3),pe(_e,ct);ct=kt}fn.start=fn.pos}for(;_e<fn.pos;){var Ki=Math.min(fn.pos,_e+5e3);pe(Ki,ct),_e=Ki}}function Hi(ie,ae,ce){for(var he,pe,Ae=ie.doc,Oe=ce?-1:ae-(ie.doc.mode.innerMode?1e3:100),Qe=ae;Qe>Oe;--Qe){if(Qe<=Ae.first)return Ae.first;var _e=ai(Ae,Qe-1),ct=_e.stateAfter;if(ct&&(!ce||Qe+(ct instanceof Di?ct.lookAhead:0)<=Ae.modeFrontier))return Qe;var fn=vt(_e.text,null,ie.options.tabSize);(pe==null||he>fn)&&(pe=Qe-1,he=fn)}return pe}function er(ie,ae){if(ie.modeFrontier=Math.min(ie.modeFrontier,ae),!(ie.highlightFrontier<ae-10)){for(var ce=ie.first,he=ae-1;he>ce;he--){var pe=ai(ie,he).stateAfter;if(pe&&(!(pe instanceof Di)||he+pe.lookAhead<ae)){ce=he+1;break}}ie.highlightFrontier=Math.min(ie.highlightFrontier,ce)}}var Gi=!1,cn=!1;function sr(){Gi=!0}function yn(){cn=!0}function bi(ie,ae,ce){this.marker=ie,this.from=ae,this.to=ce}function Cr(ie,ae){if(ie)for(var ce=0;ce<ie.length;++ce){var he=ie[ce];if(he.marker==ae)return he}}function Nr(ie,ae){for(var ce,he=0;he<ie.length;++he)ie[he]!=ae&&(ce||(ce=[])).push(ie[he]);return ce}function to(ie,ae){ie.markedSpans=ie.markedSpans?ie.markedSpans.concat([ae]):[ae],ae.marker.attachLine(ie)}function Ur(ie,ae,ce){var he;if(ie)for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],Oe=Ae.marker,Qe=Ae.from==null||(Oe.inclusiveLeft?Ae.from<=ae:Ae.from<ae);if(Qe||Ae.from==ae&&Oe.type=="bookmark"&&(!ce||!Ae.marker.insertLeft)){var _e=Ae.to==null||(Oe.inclusiveRight?Ae.to>=ae:Ae.to>ae);(he||(he=[])).push(new bi(Oe,Ae.from,_e?null:Ae.to))}}return he}function Br(ie,ae,ce){var he;if(ie)for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],Oe=Ae.marker,Qe=Ae.to==null||(Oe.inclusiveRight?Ae.to>=ae:Ae.to>ae);if(Qe||Ae.from==ae&&Oe.type=="bookmark"&&(!ce||Ae.marker.insertLeft)){var _e=Ae.from==null||(Oe.inclusiveLeft?Ae.from<=ae:Ae.from<ae);(he||(he=[])).push(new bi(Oe,_e?null:Ae.from-ae,Ae.to==null?null:Ae.to-ae))}}return he}function ao(ie,ae){if(ae.full)return null;var ce=Dn(ie,ae.from.line)&&ai(ie,ae.from.line).markedSpans,he=Dn(ie,ae.to.line)&&ai(ie,ae.to.line).markedSpans;if(!ce&&!he)return null;var pe=ae.from.ch,Ae=ae.to.ch,Oe=Bn(ae.from,ae.to)==0,Qe=Ur(ce,pe,Oe),_e=Br(he,Ae,Oe),ct=ae.text.length==1,fn=wt(ae.text).length+(ct?pe:0);if(Qe)for(var kt=0;kt<Qe.length;++kt){var qn=Qe[kt];if(qn.to==null){var Zn=Cr(_e,qn.marker);Zn?ct&&(qn.to=Zn.to==null?null:Zn.to+fn):qn.to=pe}}if(_e)for(var Ki=0;Ki<_e.length;++Ki){var qi=_e[Ki];if(qi.to!=null&&(qi.to+=fn),qi.from==null){var mr=Cr(Qe,qi.marker);mr||(qi.from=fn,ct&&(Qe||(Qe=[])).push(qi))}else qi.from+=fn,ct&&(Qe||(Qe=[])).push(qi)}Qe&&(Qe=Qt(Qe)),_e&&_e!=Qe&&(_e=Qt(_e));var Ir=[Qe];if(!ct){var $r=ae.text.length-2,Gr;if($r>0&&Qe)for(var oo=0;oo<Qe.length;++oo)Qe[oo].to==null&&(Gr||(Gr=[])).push(new bi(Qe[oo].marker,null,null));for(var ko=0;ko<$r;++ko)Ir.push(Gr);Ir.push(_e)}return Ir}function Qt(ie){for(var ae=0;ae<ie.length;++ae){var ce=ie[ae];ce.from!=null&&ce.from==ce.to&&ce.marker.clearWhenEmpty!==!1&&ie.splice(ae--,1)}return ie.length?ie:null}function Vn(ie,ae,ce){var he=null;if(ie.iter(ae.line,ce.line+1,function(Zn){if(Zn.markedSpans)for(var Ki=0;Ki<Zn.markedSpans.length;++Ki){var qi=Zn.markedSpans[Ki].marker;qi.readOnly&&(!he||gn(he,qi)==-1)&&(he||(he=[])).push(qi)}}),!he)return null;for(var pe=[{from:ae,to:ce}],Ae=0;Ae<he.length;++Ae)for(var Oe=he[Ae],Qe=Oe.find(0),_e=0;_e<pe.length;++_e){var ct=pe[_e];if(!(Bn(ct.to,Qe.from)<0||Bn(ct.from,Qe.to)>0)){var fn=[_e,1],kt=Bn(ct.from,Qe.from),qn=Bn(ct.to,Qe.to);(kt<0||!Oe.inclusiveLeft&&!kt)&&fn.push({from:ct.from,to:Qe.from}),(qn>0||!Oe.inclusiveRight&&!qn)&&fn.push({from:Qe.to,to:ct.to}),pe.splice.apply(pe,fn),_e+=fn.length-3}}return pe}function $t(ie){var ae=ie.markedSpans;if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.detachLine(ie);ie.markedSpans=null}}function Te(ie,ae){if(ae){for(var ce=0;ce<ae.length;++ce)ae[ce].marker.attachLine(ie);ie.markedSpans=ae}}function He(ie){return ie.inclusiveLeft?-1:0}function qe(ie){return ie.inclusiveRight?1:0}function St(ie,ae){var ce=ie.lines.length-ae.lines.length;if(ce!=0)return ce;var he=ie.find(),pe=ae.find(),Ae=Bn(he.from,pe.from)||He(ie)-He(ae);if(Ae)return-Ae;var Oe=Bn(he.to,pe.to)||qe(ie)-qe(ae);return Oe||ae.id-ie.id}function It(ie,ae){var ce=cn&&ie.markedSpans,he;if(ce)for(var pe=void 0,Ae=0;Ae<ce.length;++Ae)pe=ce[Ae],pe.marker.collapsed&&(ae?pe.from:pe.to)==null&&(!he||St(he,pe.marker)<0)&&(he=pe.marker);return he}function en(ie){return It(ie,!0)}function tt(ie){return It(ie,!1)}function Ft(ie,ae){var ce=cn&&ie.markedSpans,he;if(ce)for(var pe=0;pe<ce.length;++pe){var Ae=ce[pe];Ae.marker.collapsed&&(Ae.from==null||Ae.from<ae)&&(Ae.to==null||Ae.to>ae)&&(!he||St(he,Ae.marker)<0)&&(he=Ae.marker)}return he}function Gt(ie,ae,ce,he,pe){var Ae=ai(ie,ae),Oe=cn&&Ae.markedSpans;if(Oe)for(var Qe=0;Qe<Oe.length;++Qe){var _e=Oe[Qe];if(_e.marker.collapsed){var ct=_e.marker.find(0),fn=Bn(ct.from,ce)||He(_e.marker)-He(pe),kt=Bn(ct.to,he)||qe(_e.marker)-qe(pe);if(!(fn>=0&&kt<=0||fn<=0&&kt>=0)&&(fn<=0&&(_e.marker.inclusiveRight&&pe.inclusiveLeft?Bn(ct.to,ce)>=0:Bn(ct.to,ce)>0)||fn>=0&&(_e.marker.inclusiveRight&&pe.inclusiveLeft?Bn(ct.from,he)<=0:Bn(ct.from,he)<0)))return!0}}}function Rt(ie){for(var ae;ae=en(ie);)ie=ae.find(-1,!0).line;return ie}function on(ie){for(var ae;ae=tt(ie);)ie=ae.find(1,!0).line;return ie}function li(ie){for(var ae,ce;ae=tt(ie);)ie=ae.find(1,!0).line,(ce||(ce=[])).push(ie);return ce}function Ee(ie,ae){var ce=ai(ie,ae),he=Rt(ce);return ce==he?ae:Ve(he)}function Ue(ie,ae){if(ae>ie.lastLine())return ae;var ce=ai(ie,ae),he;if(!Re(ie,ce))return ae;for(;he=tt(ce);)ce=he.find(1,!0).line;return Ve(ce)+1}function Re(ie,ae){var ce=cn&&ae.markedSpans;if(ce){for(var he=void 0,pe=0;pe<ce.length;++pe)if(he=ce[pe],!!he.marker.collapsed){if(he.from==null)return!0;if(!he.marker.widgetNode&&he.from==0&&he.marker.inclusiveLeft&&ot(ie,ae,he))return!0}}}function ot(ie,ae,ce){if(ce.to==null){var he=ce.marker.find(1,!0);return ot(ie,he.line,Cr(he.line.markedSpans,ce.marker))}if(ce.marker.inclusiveRight&&ce.to==ae.text.length)return!0;for(var pe=void 0,Ae=0;Ae<ae.markedSpans.length;++Ae)if(pe=ae.markedSpans[Ae],pe.marker.collapsed&&!pe.marker.widgetNode&&pe.from==ce.to&&(pe.to==null||pe.to!=ce.from)&&(pe.marker.inclusiveLeft||ce.marker.inclusiveRight)&&ot(ie,ae,pe))return!0}function lt(ie){ie=Rt(ie);for(var ae=0,ce=ie.parent,he=0;he<ce.lines.length;++he){var pe=ce.lines[he];if(pe==ie)break;ae+=pe.height}for(var Ae=ce.parent;Ae;ce=Ae,Ae=ce.parent)for(var Oe=0;Oe<Ae.children.length;++Oe){var Qe=Ae.children[Oe];if(Qe==ce)break;ae+=Qe.height}return ae}function Wt(ie){if(ie.height==0)return 0;for(var ae=ie.text.length,ce,he=ie;ce=en(he);){var pe=ce.find(0,!0);he=pe.from.line,ae+=pe.from.ch-pe.to.ch}for(he=ie;ce=tt(he);){var Ae=ce.find(0,!0);ae-=he.text.length-Ae.from.ch,he=Ae.to.line,ae+=he.text.length-Ae.to.ch}return ae}function Vt(ie){var ae=ie.display,ce=ie.doc;ae.maxLine=ai(ce,ce.first),ae.maxLineLength=Wt(ae.maxLine),ae.maxLineChanged=!0,ce.iter(function(he){var pe=Wt(he);pe>ae.maxLineLength&&(ae.maxLineLength=pe,ae.maxLine=he)})}var tn=function(ie,ae,ce){this.text=ie,Te(this,ae),this.height=ce?ce(this):1};tn.prototype.lineNo=function(){return Ve(this)},ti(tn);function Ln(ie,ae,ce,he){ie.text=ae,ie.stateAfter&&(ie.stateAfter=null),ie.styles&&(ie.styles=null),ie.order!=null&&(ie.order=null),$t(ie),Te(ie,ce);var pe=he?he(ie):1;pe!=ie.height&&fr(ie,pe)}function Wn(ie){ie.parent=null,$t(ie)}var mn={},ei={};function fi(ie,ae){if(!ie||/^\s*$/.test(ie))return null;var ce=ae.addModeClass?ei:mn;return ce[ie]||(ce[ie]=ie.replace(/\S+/g,"cm-$&"))}function ut(ie,ae){var ce=At("span",null,null,dt?"padding-right: .1px":null),he={pre:At("pre",[ce],"CodeMirror-line"),content:ce,col:0,pos:0,cm:ie,trailingSpace:!1,splitSpaces:ie.getOption("lineWrapping")};ae.measure={};for(var pe=0;pe<=(ae.rest?ae.rest.length:0);pe++){var Ae=pe?ae.rest[pe-1]:ae.line,Oe=void 0;he.pos=0,he.addToken=ri,Xi(ie.display.measure)&&(Oe=dn(Ae,ie.doc.direction))&&(he.addToken=oi(he.addToken,Oe)),he.map=[];var Qe=ae!=ie.display.externalMeasured&&Ve(Ae);Ni(Ae,he,Mr(ie,Ae,Qe)),Ae.styleClasses&&(Ae.styleClasses.bgClass&&(he.bgClass=kn(Ae.styleClasses.bgClass,he.bgClass||"")),Ae.styleClasses.textClass&&(he.textClass=kn(Ae.styleClasses.textClass,he.textClass||""))),he.map.length==0&&he.map.push(0,0,he.content.appendChild(hr(ie.display.measure))),pe==0?(ae.measure.map=he.map,ae.measure.cache={}):((ae.measure.maps||(ae.measure.maps=[])).push(he.map),(ae.measure.caches||(ae.measure.caches=[])).push({}))}if(dt){var _e=he.content.lastChild;(/\bcm-tab\b/.test(_e.className)||_e.querySelector&&_e.querySelector(".cm-tab"))&&(he.content.className="cm-tab-wrap-hack")}return Xt(ie,"renderLine",ie,ae.line,he.pre),he.pre.className&&(he.textClass=kn(he.pre.className,he.textClass||"")),he}function Qn(ie){var ae=Xe("span","\u2022","cm-invalidchar");return ae.title="\\u"+ie.charCodeAt(0).toString(16),ae.setAttribute("aria-label",ae.title),ae}function ri(ie,ae,ce,he,pe,Ae,Oe){if(ae){var Qe=ie.splitSpaces?jn(ae,ie.trailingSpace):ae,_e=ie.cm.state.specialChars,ct=!1,fn;if(!_e.test(ae))ie.col+=ae.length,fn=document.createTextNode(Qe),ie.map.push(ie.pos,ie.pos+ae.length,fn),Mt&&ze<9&&(ct=!0),ie.pos+=ae.length;else{fn=document.createDocumentFragment();for(var kt=0;;){_e.lastIndex=kt;var qn=_e.exec(ae),Zn=qn?qn.index-kt:ae.length-kt;if(Zn){var Ki=document.createTextNode(Qe.slice(kt,kt+Zn));Mt&&ze<9?fn.appendChild(Xe("span",[Ki])):fn.appendChild(Ki),ie.map.push(ie.pos,ie.pos+Zn,Ki),ie.col+=Zn,ie.pos+=Zn}if(!qn)break;kt+=Zn+1;var qi=void 0;if(qn[0]==" "){var mr=ie.cm.options.tabSize,Ir=mr-ie.col%mr;qi=fn.appendChild(Xe("span",Rn(Ir),"cm-tab")),qi.setAttribute("role","presentation"),qi.setAttribute("cm-text"," "),ie.col+=Ir}else qn[0]=="\r"||qn[0]==`
|
|
`?(qi=fn.appendChild(Xe("span",qn[0]=="\r"?"\u240D":"\u2424","cm-invalidchar")),qi.setAttribute("cm-text",qn[0]),ie.col+=1):(qi=ie.cm.options.specialCharPlaceholder(qn[0]),qi.setAttribute("cm-text",qn[0]),Mt&&ze<9?fn.appendChild(Xe("span",[qi])):fn.appendChild(qi),ie.col+=1);ie.map.push(ie.pos,ie.pos+1,qi),ie.pos++}}if(ie.trailingSpace=Qe.charCodeAt(ae.length-1)==32,ce||he||pe||ct||Ae||Oe){var $r=ce||"";he&&($r+=he),pe&&($r+=pe);var Gr=Xe("span",[fn],$r,Ae);if(Oe)for(var oo in Oe)Oe.hasOwnProperty(oo)&&oo!="style"&&oo!="class"&&Gr.setAttribute(oo,Oe[oo]);return ie.content.appendChild(Gr)}ie.content.appendChild(fn)}}function jn(ie,ae){if(ie.length>1&&!/ /.test(ie))return ie;for(var ce=ae,he="",pe=0;pe<ie.length;pe++){var Ae=ie.charAt(pe);Ae==" "&&ce&&(pe==ie.length-1||ie.charCodeAt(pe+1)==32)&&(Ae="\xA0"),he+=Ae,ce=Ae==" "}return he}function oi(ie,ae){return function(ce,he,pe,Ae,Oe,Qe,_e){pe=pe?pe+" cm-force-border":"cm-force-border";for(var ct=ce.pos,fn=ct+he.length;;){for(var kt=void 0,qn=0;qn<ae.length&&(kt=ae[qn],!(kt.to>ct&&kt.from<=ct));qn++);if(kt.to>=fn)return ie(ce,he,pe,Ae,Oe,Qe,_e);ie(ce,he.slice(0,kt.to-ct),pe,Ae,null,Qe,_e),Ae=null,he=he.slice(kt.to-ct),ct=kt.to}}}function xi(ie,ae,ce,he){var pe=!he&&ce.widgetNode;pe&&ie.map.push(ie.pos,ie.pos+ae,pe),!he&&ie.cm.display.input.needsContentAttribute&&(pe||(pe=ie.content.appendChild(document.createElement("span"))),pe.setAttribute("cm-marker",ce.id)),pe&&(ie.cm.display.input.setUneditable(pe),ie.content.appendChild(pe)),ie.pos+=ae,ie.trailingSpace=!1}function Ni(ie,ae,ce){var he=ie.markedSpans,pe=ie.text,Ae=0;if(!he){for(var Oe=1;Oe<ce.length;Oe+=2)ae.addToken(ae,pe.slice(Ae,Ae=ce[Oe]),fi(ce[Oe+1],ae.cm.options));return}for(var Qe=pe.length,_e=0,ct=1,fn="",kt,qn,Zn=0,Ki,qi,mr,Ir,$r;;){if(Zn==_e){Ki=qi=mr=qn="",$r=null,Ir=null,Zn=1/0;for(var Gr=[],oo=void 0,ko=0;ko<he.length;++ko){var Vr=he[ko],_o=Vr.marker;if(_o.type=="bookmark"&&Vr.from==_e&&_o.widgetNode)Gr.push(_o);else if(Vr.from<=_e&&(Vr.to==null||Vr.to>_e||_o.collapsed&&Vr.to==_e&&Vr.from==_e)){if(Vr.to!=null&&Vr.to!=_e&&Zn>Vr.to&&(Zn=Vr.to,qi=""),_o.className&&(Ki+=" "+_o.className),_o.css&&(qn=(qn?qn+";":"")+_o.css),_o.startStyle&&Vr.from==_e&&(mr+=" "+_o.startStyle),_o.endStyle&&Vr.to==Zn&&(oo||(oo=[])).push(_o.endStyle,Vr.to),_o.title&&(($r||($r={})).title=_o.title),_o.attributes)for(var ja in _o.attributes)($r||($r={}))[ja]=_o.attributes[ja];_o.collapsed&&(!Ir||St(Ir.marker,_o)<0)&&(Ir=Vr)}else Vr.from>_e&&Zn>Vr.from&&(Zn=Vr.from)}if(oo)for(var Ss=0;Ss<oo.length;Ss+=2)oo[Ss+1]==Zn&&(qi+=" "+oo[Ss]);if(!Ir||Ir.from==_e)for(var _a=0;_a<Gr.length;++_a)xi(ae,0,Gr[_a]);if(Ir&&(Ir.from||0)==_e){if(xi(ae,(Ir.to==null?Qe+1:Ir.to)-_e,Ir.marker,Ir.from==null),Ir.to==null)return;Ir.to==_e&&(Ir=!1)}}if(_e>=Qe)break;for(var ul=Math.min(Qe,Zn);;){if(fn){var Ys=_e+fn.length;if(!Ir){var ps=Ys>ul?fn.slice(0,ul-_e):fn;ae.addToken(ae,ps,kt?kt+Ki:Ki,mr,_e+ps.length==Zn?qi:"",qn,$r)}if(Ys>=ul){fn=fn.slice(ul-_e),_e=ul;break}_e=Ys,mr=""}fn=pe.slice(Ae,Ae=ce[ct++]),kt=fi(ce[ct++],ae.cm.options)}}}function ki(ie,ae,ce){this.line=ae,this.rest=li(ae),this.size=this.rest?Ve(wt(this.rest))-ce+1:1,this.node=this.text=null,this.hidden=Re(ie,ae)}function Bi(ie,ae,ce){for(var he=[],pe,Ae=ae;Ae<ce;Ae=pe){var Oe=new ki(ie.doc,ai(ie.doc,Ae),Ae);pe=Ae+Oe.size,he.push(Oe)}return he}var Oi=null;function cr(ie){Oi?Oi.ops.push(ie):ie.ownsGroup=Oi={ops:[ie],delayedCallbacks:[]}}function kr(ie){var ae=ie.delayedCallbacks,ce=0;do{for(;ce<ae.length;ce++)ae[ce].call(null);for(var he=0;he<ie.ops.length;he++){var pe=ie.ops[he];if(pe.cursorActivityHandlers)for(;pe.cursorActivityCalled<pe.cursorActivityHandlers.length;)pe.cursorActivityHandlers[pe.cursorActivityCalled++].call(null,pe.cm)}}while(ce<ae.length)}function Hr(ie,ae){var ce=ie.ownsGroup;if(ce)try{kr(ce)}finally{Oi=null,ae(ce)}}var Zr=null;function Fi(ie,ae){var ce=nn(ie,ae);if(ce.length){var he=Array.prototype.slice.call(arguments,2),pe;Oi?pe=Oi.delayedCallbacks:Zr?pe=Zr:(pe=Zr=[],setTimeout(Fr,0));for(var Ae=function(Qe){pe.push(function(){return ce[Qe].apply(null,he)})},Oe=0;Oe<ce.length;++Oe)Ae(Oe)}}function Fr(){var ie=Zr;Zr=null;for(var ae=0;ae<ie.length;++ae)ie[ae]()}function Er(ie,ae,ce,he){for(var pe=0;pe<ae.changes.length;pe++){var Ae=ae.changes[pe];Ae=="text"?ii(ie,ae):Ae=="gutter"?Ji(ie,ae,ce,he):Ae=="class"?Zi(ie,ae):Ae=="widget"&&lr(ie,ae,he)}ae.changes=null}function Rr(ie){return ie.node==ie.text&&(ie.node=Xe("div",null,null,"position: relative"),ie.text.parentNode&&ie.text.parentNode.replaceChild(ie.node,ie.text),ie.node.appendChild(ie.text),Mt&&ze<8&&(ie.node.style.zIndex=2)),ie.node}function xr(ie,ae){var ce=ae.bgClass?ae.bgClass+" "+(ae.line.bgClass||""):ae.line.bgClass;if(ce&&(ce+=" CodeMirror-linebackground"),ae.background)ce?ae.background.className=ce:(ae.background.parentNode.removeChild(ae.background),ae.background=null);else if(ce){var he=Rr(ae);ae.background=he.insertBefore(Xe("div",null,ce),he.firstChild),ie.display.input.setUneditable(ae.background)}}function jr(ie,ae){var ce=ie.display.externalMeasured;return ce&&ce.line==ae.line?(ie.display.externalMeasured=null,ae.measure=ce.measure,ce.built):ut(ie,ae)}function ii(ie,ae){var ce=ae.text.className,he=jr(ie,ae);ae.text==ae.node&&(ae.node=he.pre),ae.text.parentNode.replaceChild(he.pre,ae.text),ae.text=he.pre,he.bgClass!=ae.bgClass||he.textClass!=ae.textClass?(ae.bgClass=he.bgClass,ae.textClass=he.textClass,Zi(ie,ae)):ce&&(ae.text.className=ce)}function Zi(ie,ae){xr(ie,ae),ae.line.wrapClass?Rr(ae).className=ae.line.wrapClass:ae.node!=ae.text&&(ae.node.className="");var ce=ae.textClass?ae.textClass+" "+(ae.line.textClass||""):ae.line.textClass;ae.text.className=ce||""}function Ji(ie,ae,ce,he){if(ae.gutter&&(ae.node.removeChild(ae.gutter),ae.gutter=null),ae.gutterBackground&&(ae.node.removeChild(ae.gutterBackground),ae.gutterBackground=null),ae.line.gutterClass){var pe=Rr(ae);ae.gutterBackground=Xe("div",null,"CodeMirror-gutter-background "+ae.line.gutterClass,"left: "+(ie.options.fixedGutter?he.fixedPos:-he.gutterTotalWidth)+"px; width: "+he.gutterTotalWidth+"px"),ie.display.input.setUneditable(ae.gutterBackground),pe.insertBefore(ae.gutterBackground,ae.text)}var Ae=ae.line.gutterMarkers;if(ie.options.lineNumbers||Ae){var Oe=Rr(ae),Qe=ae.gutter=Xe("div",null,"CodeMirror-gutter-wrapper","left: "+(ie.options.fixedGutter?he.fixedPos:-he.gutterTotalWidth)+"px");if(ie.display.input.setUneditable(Qe),Oe.insertBefore(Qe,ae.text),ae.line.gutterClass&&(Qe.className+=" "+ae.line.gutterClass),ie.options.lineNumbers&&(!Ae||!Ae["CodeMirror-linenumbers"])&&(ae.lineNumber=Qe.appendChild(Xe("div",An(ie.options,ce),"CodeMirror-linenumber CodeMirror-gutter-elt","left: "+he.gutterLeft["CodeMirror-linenumbers"]+"px; width: "+ie.display.lineNumInnerWidth+"px"))),Ae)for(var _e=0;_e<ie.display.gutterSpecs.length;++_e){var ct=ie.display.gutterSpecs[_e].className,fn=Ae.hasOwnProperty(ct)&&Ae[ct];fn&&Qe.appendChild(Xe("div",[fn],"CodeMirror-gutter-elt","left: "+he.gutterLeft[ct]+"px; width: "+he.gutterWidth[ct]+"px"))}}}function lr(ie,ae,ce){ae.alignable&&(ae.alignable=null);for(var he=Ie("CodeMirror-linewidget"),pe=ae.node.firstChild,Ae=void 0;pe;pe=Ae)Ae=pe.nextSibling,he.test(pe.className)&&ae.node.removeChild(pe);nr(ie,ae,ce)}function Qi(ie,ae,ce,he){var pe=jr(ie,ae);return ae.text=ae.node=pe.pre,pe.bgClass&&(ae.bgClass=pe.bgClass),pe.textClass&&(ae.textClass=pe.textClass),Zi(ie,ae),Ji(ie,ae,ce,he),nr(ie,ae,he),ae.node}function nr(ie,ae,ce){if(Mi(ie,ae.line,ae,ce,!0),ae.rest)for(var he=0;he<ae.rest.length;he++)Mi(ie,ae.rest[he],ae,ce,!1)}function Mi(ie,ae,ce,he,pe){if(ae.widgets)for(var Ae=Rr(ce),Oe=0,Qe=ae.widgets;Oe<Qe.length;++Oe){var _e=Qe[Oe],ct=Xe("div",[_e.node],"CodeMirror-linewidget"+(_e.className?" "+_e.className:""));_e.handleMouseEvents||ct.setAttribute("cm-ignore-events","true"),zr(_e,ct,ce,he),ie.display.input.setUneditable(ct),pe&&_e.above?Ae.insertBefore(ct,ce.gutter||ce.text):Ae.appendChild(ct),Fi(_e,"redraw")}}function zr(ie,ae,ce,he){if(ie.noHScroll){(ce.alignable||(ce.alignable=[])).push(ae);var pe=he.wrapperWidth;ae.style.left=he.fixedPos+"px",ie.coverGutter||(pe-=he.gutterTotalWidth,ae.style.paddingLeft=he.gutterTotalWidth+"px"),ae.style.width=pe+"px"}ie.coverGutter&&(ae.style.zIndex=5,ae.style.position="relative",ie.noHScroll||(ae.style.marginLeft=-he.gutterTotalWidth+"px"))}function Yr(ie){if(ie.height!=null)return ie.height;var ae=ie.doc.cm;if(!ae)return 0;if(!Nt(document.body,ie.node)){var ce="position: relative;";ie.coverGutter&&(ce+="margin-left: -"+ae.display.gutters.offsetWidth+"px;"),ie.noHScroll&&(ce+="width: "+ae.display.wrapper.clientWidth+"px;"),Ye(ae.display.measure,Xe("div",[ie.node],null,ce))}return ie.height=ie.node.parentNode.offsetHeight}function Qr(ie,ae){for(var ce=gr(ae);ce!=ie.wrapper;ce=ce.parentNode)if(!ce||ce.nodeType==1&&ce.getAttribute("cm-ignore-events")=="true"||ce.parentNode==ie.sizer&&ce!=ie.mover)return!0}function Ar(ie){return ie.lineSpace.offsetTop}function eo(ie){return ie.mover.offsetHeight-ie.lineSpace.offsetHeight}function Xr(ie){if(ie.cachedPaddingH)return ie.cachedPaddingH;var ae=Ye(ie.measure,Xe("pre","x","CodeMirror-line-like")),ce=window.getComputedStyle?window.getComputedStyle(ae):ae.currentStyle,he={left:parseInt(ce.paddingLeft),right:parseInt(ce.paddingRight)};return!isNaN(he.left)&&!isNaN(he.right)&&(ie.cachedPaddingH=he),he}function _r(ie){return ci-ie.display.nativeBarWidth}function fo(ie){return ie.display.scroller.clientWidth-_r(ie)-ie.display.barWidth}function mo(ie){return ie.display.scroller.clientHeight-_r(ie)-ie.display.barHeight}function Bo(ie,ae,ce){var he=ie.options.lineWrapping,pe=he&&fo(ie);if(!ae.measure.heights||he&&ae.measure.width!=pe){var Ae=ae.measure.heights=[];if(he){ae.measure.width=pe;for(var Oe=ae.text.firstChild.getClientRects(),Qe=0;Qe<Oe.length-1;Qe++){var _e=Oe[Qe],ct=Oe[Qe+1];Math.abs(_e.bottom-ct.bottom)>2&&Ae.push((_e.bottom+ct.top)/2-ce.top)}}Ae.push(ce.bottom-ce.top)}}function so(ie,ae,ce){if(ie.line==ae)return{map:ie.measure.map,cache:ie.measure.cache};for(var he=0;he<ie.rest.length;he++)if(ie.rest[he]==ae)return{map:ie.measure.maps[he],cache:ie.measure.caches[he]};for(var pe=0;pe<ie.rest.length;pe++)if(Ve(ie.rest[pe])>ce)return{map:ie.measure.maps[pe],cache:ie.measure.caches[pe],before:!0}}function ia(ie,ae){ae=Rt(ae);var ce=Ve(ae),he=ie.display.externalMeasured=new ki(ie.doc,ae,ce);he.lineN=ce;var pe=he.built=ut(ie,he);return he.text=pe.pre,Ye(ie.display.lineMeasure,pe.pre),he}function po(ie,ae,ce,he){return Vo(ie,Po(ie,ae),ce,he)}function Jo(ie,ae){if(ae>=ie.display.viewFrom&&ae<ie.display.viewTo)return ie.display.view[ts(ie,ae)];var ce=ie.display.externalMeasured;if(ce&&ae>=ce.lineN&&ae<ce.lineN+ce.size)return ce}function Po(ie,ae){var ce=Ve(ae),he=Jo(ie,ce);he&&!he.text?he=null:he&&he.changes&&(Er(ie,he,ce,Pa(ie)),ie.curOp.forceUpdate=!0),he||(he=ia(ie,ae));var pe=so(he,ae,ce);return{line:ae,view:he,rect:null,map:pe.map,cache:pe.cache,before:pe.before,hasHeights:!1}}function Vo(ie,ae,ce,he,pe){ae.before&&(ce=-1);var Ae=ce+(he||""),Oe;return ae.cache.hasOwnProperty(Ae)?Oe=ae.cache[Ae]:(ae.rect||(ae.rect=ae.view.text.getBoundingClientRect()),ae.hasHeights||(Bo(ie,ae.view,ae.rect),ae.hasHeights=!0),Oe=Lo(ie,ae,ce,he),Oe.bogus||(ae.cache[Ae]=Oe)),{left:Oe.left,right:Oe.right,top:pe?Oe.rtop:Oe.top,bottom:pe?Oe.rbottom:Oe.bottom}}var Go={left:0,right:0,top:0,bottom:0};function Yo(ie,ae,ce){for(var he,pe,Ae,Oe,Qe,_e,ct=0;ct<ie.length;ct+=3)if(Qe=ie[ct],_e=ie[ct+1],ae<Qe?(pe=0,Ae=1,Oe="left"):ae<_e?(pe=ae-Qe,Ae=pe+1):(ct==ie.length-3||ae==_e&&ie[ct+3]>ae)&&(Ae=_e-Qe,pe=Ae-1,ae>=_e&&(Oe="right")),pe!=null){if(he=ie[ct+2],Qe==_e&&ce==(he.insertLeft?"left":"right")&&(Oe=ce),ce=="left"&&pe==0)for(;ct&&ie[ct-2]==ie[ct-3]&&ie[ct-1].insertLeft;)he=ie[(ct-=3)+2],Oe="left";if(ce=="right"&&pe==_e-Qe)for(;ct<ie.length-3&&ie[ct+3]==ie[ct+4]&&!ie[ct+5].insertLeft;)he=ie[(ct+=3)+2],Oe="right";break}return{node:he,start:pe,end:Ae,collapse:Oe,coverStart:Qe,coverEnd:_e}}function Ro(ie,ae){var ce=Go;if(ae=="left")for(var he=0;he<ie.length&&(ce=ie[he]).left==ce.right;he++);else for(var pe=ie.length-1;pe>=0&&(ce=ie[pe]).left==ce.right;pe--);return ce}function Lo(ie,ae,ce,he){var pe=Yo(ae.map,ce,he),Ae=pe.node,Oe=pe.start,Qe=pe.end,_e=pe.collapse,ct;if(Ae.nodeType==3){for(var fn=0;fn<4;fn++){for(;Oe&&an(ae.line.text.charAt(pe.coverStart+Oe));)--Oe;for(;pe.coverStart+Qe<pe.coverEnd&&an(ae.line.text.charAt(pe.coverStart+Qe));)++Qe;if(Mt&&ze<9&&Oe==0&&Qe==pe.coverEnd-pe.coverStart?ct=Ae.parentNode.getBoundingClientRect():ct=Ro(ft(Ae,Oe,Qe).getClientRects(),he),ct.left||ct.right||Oe==0)break;Qe=Oe,Oe=Oe-1,_e="right"}Mt&&ze<11&&(ct=oa(ie.display.measure,ct))}else{Oe>0&&(_e=he="right");var kt;ie.options.lineWrapping&&(kt=Ae.getClientRects()).length>1?ct=kt[he=="right"?kt.length-1:0]:ct=Ae.getBoundingClientRect()}if(Mt&&ze<9&&!Oe&&(!ct||!ct.left&&!ct.right)){var qn=Ae.parentNode.getClientRects()[0];qn?ct={left:qn.left,right:qn.left+ya(ie.display),top:qn.top,bottom:qn.bottom}:ct=Go}for(var Zn=ct.top-ae.rect.top,Ki=ct.bottom-ae.rect.top,qi=(Zn+Ki)/2,mr=ae.view.measure.heights,Ir=0;Ir<mr.length-1&&!(qi<mr[Ir]);Ir++);var $r=Ir?mr[Ir-1]:0,Gr=mr[Ir],oo={left:(_e=="right"?ct.right:ct.left)-ae.rect.left,right:(_e=="left"?ct.left:ct.right)-ae.rect.left,top:$r,bottom:Gr};return!ct.left&&!ct.right&&(oo.bogus=!0),ie.options.singleCursorHeightPerLine||(oo.rtop=Zn,oo.rbottom=Ki),oo}function oa(ie,ae){if(!window.screen||screen.logicalXDPI==null||screen.logicalXDPI==screen.deviceXDPI||!dr(ie))return ae;var ce=screen.logicalXDPI/screen.deviceXDPI,he=screen.logicalYDPI/screen.deviceYDPI;return{left:ae.left*ce,right:ae.right*ce,top:ae.top*he,bottom:ae.bottom*he}}function wa(ie){if(ie.measure&&(ie.measure.cache={},ie.measure.heights=null,ie.rest))for(var ae=0;ae<ie.rest.length;ae++)ie.measure.caches[ae]={}}function zo(ie){ie.display.externalMeasure=null,st(ie.display.lineMeasure);for(var ae=0;ae<ie.display.view.length;ae++)wa(ie.display.view[ae])}function Oa(ie){zo(ie),ie.display.cachedCharWidth=ie.display.cachedTextHeight=ie.display.cachedPaddingH=null,ie.options.lineWrapping||(ie.display.maxLineChanged=!0),ie.display.lineNumChars=null}function bo(){return Et&&ne?-(document.body.getBoundingClientRect().left-parseInt(getComputedStyle(document.body).marginLeft)):window.pageXOffset||(document.documentElement||document.body).scrollLeft}function yo(){return Et&&ne?-(document.body.getBoundingClientRect().top-parseInt(getComputedStyle(document.body).marginTop)):window.pageYOffset||(document.documentElement||document.body).scrollTop}function vo(ie){var ae=0;if(ie.widgets)for(var ce=0;ce<ie.widgets.length;++ce)ie.widgets[ce].above&&(ae+=Yr(ie.widgets[ce]));return ae}function Qo(ie,ae,ce,he,pe){if(!pe){var Ae=vo(ae);ce.top+=Ae,ce.bottom+=Ae}if(he=="line")return ce;he||(he="local");var Oe=lt(ae);if(he=="local"?Oe+=Ar(ie.display):Oe-=ie.display.viewOffset,he=="page"||he=="window"){var Qe=ie.display.lineSpace.getBoundingClientRect();Oe+=Qe.top+(he=="window"?0:yo());var _e=Qe.left+(he=="window"?0:bo());ce.left+=_e,ce.right+=_e}return ce.top+=Oe,ce.bottom+=Oe,ce}function ro(ie,ae,ce){if(ce=="div")return ae;var he=ae.left,pe=ae.top;if(ce=="page")he-=bo(),pe-=yo();else if(ce=="local"||!ce){var Ae=ie.display.sizer.getBoundingClientRect();he+=Ae.left,pe+=Ae.top}var Oe=ie.display.lineSpace.getBoundingClientRect();return{left:he-Oe.left,top:pe-Oe.top}}function ta(ie,ae,ce,he,pe){return he||(he=ai(ie.doc,ae.line)),Qo(ie,he,po(ie,he,ae.ch,pe),ce)}function wr(ie,ae,ce,he,pe,Ae){he=he||ai(ie.doc,ae.line),pe||(pe=Po(ie,he));function Oe(Ki,qi){var mr=Vo(ie,pe,Ki,qi?"right":"left",Ae);return qi?mr.left=mr.right:mr.right=mr.left,Qo(ie,he,mr,ce)}var Qe=dn(he,ie.doc.direction),_e=ae.ch,ct=ae.sticky;if(_e>=he.text.length?(_e=he.text.length,ct="before"):_e<=0&&(_e=0,ct="after"),!Qe)return Oe(ct=="before"?_e-1:_e,ct=="before");function fn(Ki,qi,mr){var Ir=Qe[qi],$r=Ir.level==1;return Oe(mr?Ki-1:Ki,$r!=mr)}var kt=Tt(Qe,_e,ct),qn=Pt,Zn=fn(_e,kt,ct=="before");return qn!=null&&(Zn.other=fn(_e,qn,ct!="before")),Zn}function ur(ie,ae){var ce=0;ae=yi(ie.doc,ae),ie.options.lineWrapping||(ce=ya(ie.display)*ae.ch);var he=ai(ie.doc,ae.line),pe=lt(he)+Ar(ie.display);return{left:ce,right:ce,top:pe,bottom:pe+he.height}}function Dr(ie,ae,ce,he,pe){var Ae=Ot(ie,ae,ce);return Ae.xRel=pe,he&&(Ae.outside=he),Ae}function Sr(ie,ae,ce){var he=ie.doc;if(ce+=ie.display.viewOffset,ce<0)return Dr(he.first,0,null,-1,-1);var pe=mt(he,ce),Ae=he.first+he.size-1;if(pe>Ae)return Dr(he.first+he.size-1,ai(he,Ae).text.length,null,1,1);ae<0&&(ae=0);for(var Oe=ai(he,pe);;){var Qe=zn(ie,Oe,pe,ae,ce),_e=Ft(Oe,Qe.ch+(Qe.xRel>0||Qe.outside>0?1:0));if(!_e)return Qe;var ct=_e.find(1);if(ct.line==pe)return ct;Oe=ai(he,pe=ct.line)}}function vi(ie,ae,ce,he){he-=vo(ae);var pe=ae.text.length,Ae=Ut(function(Oe){return Vo(ie,ce,Oe-1).bottom<=he},pe,0);return pe=Ut(function(Oe){return Vo(ie,ce,Oe).top>he},Ae,pe),{begin:Ae,end:pe}}function Do(ie,ae,ce,he){ce||(ce=Po(ie,ae));var pe=Qo(ie,ae,Vo(ie,ce,he),"line").top;return vi(ie,ae,ce,pe)}function pt(ie,ae,ce,he){return ie.bottom<=ce?!1:ie.top>ce?!0:(he?ie.left:ie.right)>ae}function zn(ie,ae,ce,he,pe){pe-=lt(ae);var Ae=Po(ie,ae),Oe=vo(ae),Qe=0,_e=ae.text.length,ct=!0,fn=dn(ae,ie.doc.direction);if(fn){var kt=(ie.options.lineWrapping?ga:ha)(ie,ae,ce,Ae,fn,he,pe);ct=kt.level!=1,Qe=ct?kt.from:kt.to-1,_e=ct?kt.to:kt.from-1}var qn=null,Zn=null,Ki=Ut(function(ko){var Vr=Vo(ie,Ae,ko);return Vr.top+=Oe,Vr.bottom+=Oe,pt(Vr,he,pe,!1)?(Vr.top<=pe&&Vr.left<=he&&(qn=ko,Zn=Vr),!0):!1},Qe,_e),qi,mr,Ir=!1;if(Zn){var $r=he-Zn.left<Zn.right-he,Gr=$r==ct;Ki=qn+(Gr?0:1),mr=Gr?"after":"before",qi=$r?Zn.left:Zn.right}else{!ct&&(Ki==_e||Ki==Qe)&&Ki++,mr=Ki==0?"after":Ki==ae.text.length?"before":Vo(ie,Ae,Ki-(ct?1:0)).bottom+Oe<=pe==ct?"after":"before";var oo=wr(ie,Ot(ce,Ki,mr),"line",ae,Ae);qi=oo.left,Ir=pe<oo.top?-1:pe>=oo.bottom?1:0}return Ki=Bt(ae.text,Ki,1),Dr(ce,Ki,mr,Ir,he-qi)}function ha(ie,ae,ce,he,pe,Ae,Oe){var Qe=Ut(function(kt){var qn=pe[kt],Zn=qn.level!=1;return pt(wr(ie,Ot(ce,Zn?qn.to:qn.from,Zn?"before":"after"),"line",ae,he),Ae,Oe,!0)},0,pe.length-1),_e=pe[Qe];if(Qe>0){var ct=_e.level!=1,fn=wr(ie,Ot(ce,ct?_e.from:_e.to,ct?"after":"before"),"line",ae,he);pt(fn,Ae,Oe,!0)&&fn.top>Oe&&(_e=pe[Qe-1])}return _e}function ga(ie,ae,ce,he,pe,Ae,Oe){var Qe=vi(ie,ae,he,Oe),_e=Qe.begin,ct=Qe.end;/\s/.test(ae.text.charAt(ct-1))&&ct--;for(var fn=null,kt=null,qn=0;qn<pe.length;qn++){var Zn=pe[qn];if(!(Zn.from>=ct||Zn.to<=_e)){var Ki=Zn.level!=1,qi=Vo(ie,he,Ki?Math.min(ct,Zn.to)-1:Math.max(_e,Zn.from)).right,mr=qi<Ae?Ae-qi+1e9:qi-Ae;(!fn||kt>mr)&&(fn=Zn,kt=mr)}}return fn||(fn=pe[pe.length-1]),fn.from<_e&&(fn={from:_e,to:fn.to,level:fn.level}),fn.to>ct&&(fn={from:fn.from,to:ct,level:fn.level}),fn}var aa;function sa(ie){if(ie.cachedTextHeight!=null)return ie.cachedTextHeight;if(aa==null){aa=Xe("pre",null,"CodeMirror-line-like");for(var ae=0;ae<49;++ae)aa.appendChild(document.createTextNode("x")),aa.appendChild(Xe("br"));aa.appendChild(document.createTextNode("x"))}Ye(ie.measure,aa);var ce=aa.offsetHeight/50;return ce>3&&(ie.cachedTextHeight=ce),st(ie.measure),ce||1}function ya(ie){if(ie.cachedCharWidth!=null)return ie.cachedCharWidth;var ae=Xe("span","xxxxxxxxxx"),ce=Xe("pre",[ae],"CodeMirror-line-like");Ye(ie.measure,ce);var he=ae.getBoundingClientRect(),pe=(he.right-he.left)/10;return pe>2&&(ie.cachedCharWidth=pe),pe||10}function Pa(ie){for(var ae=ie.display,ce={},he={},pe=ae.gutters.clientLeft,Ae=ae.gutters.firstChild,Oe=0;Ae;Ae=Ae.nextSibling,++Oe){var Qe=ie.display.gutterSpecs[Oe].className;ce[Qe]=Ae.offsetLeft+Ae.clientLeft+pe,he[Qe]=Ae.clientWidth}return{fixedPos:hs(ae),gutterTotalWidth:ae.gutters.offsetWidth,gutterLeft:ce,gutterWidth:he,wrapperWidth:ae.wrapper.clientWidth}}function hs(ie){return ie.scroller.getBoundingClientRect().left-ie.sizer.getBoundingClientRect().left}function da(ie){var ae=sa(ie.display),ce=ie.options.lineWrapping,he=ce&&Math.max(5,ie.display.scroller.clientWidth/ya(ie.display)-3);return function(pe){if(Re(ie.doc,pe))return 0;var Ae=0;if(pe.widgets)for(var Oe=0;Oe<pe.widgets.length;Oe++)pe.widgets[Oe].height&&(Ae+=pe.widgets[Oe].height);return ce?Ae+(Math.ceil(pe.text.length/he)||1)*ae:Ae+ae}}function qr(ie){var ae=ie.doc,ce=da(ie);ae.iter(function(he){var pe=ce(he);pe!=he.height&&fr(he,pe)})}function Ya(ie,ae,ce,he){var pe=ie.display;if(!ce&&gr(ae).getAttribute("cm-not-content")=="true")return null;var Ae,Oe,Qe=pe.lineSpace.getBoundingClientRect();try{Ae=ae.clientX-Qe.left,Oe=ae.clientY-Qe.top}catch(kt){return null}var _e=Sr(ie,Ae,Oe),ct;if(he&&_e.xRel>0&&(ct=ai(ie.doc,_e.line).text).length==_e.ch){var fn=vt(ct,ct.length,ie.options.tabSize)-ct.length;_e=Ot(_e.line,Math.max(0,Math.round((Ae-Xr(ie.display).left)/ya(ie.display))-fn))}return _e}function ts(ie,ae){if(ae>=ie.display.viewTo||(ae-=ie.display.viewFrom,ae<0))return null;for(var ce=ie.display.view,he=0;he<ce.length;he++)if(ae-=ce[he].size,ae<0)return he}function ca(ie,ae,ce,he){ae==null&&(ae=ie.doc.first),ce==null&&(ce=ie.doc.first+ie.doc.size),he||(he=0);var pe=ie.display;if(he&&ce<pe.viewTo&&(pe.updateLineNumbers==null||pe.updateLineNumbers>ae)&&(pe.updateLineNumbers=ae),ie.curOp.viewChanged=!0,ae>=pe.viewTo)cn&&Ee(ie.doc,ae)<pe.viewTo&&Sa(ie);else if(ce<=pe.viewFrom)cn&&Ue(ie.doc,ce+he)>pe.viewFrom?Sa(ie):(pe.viewFrom+=he,pe.viewTo+=he);else if(ae<=pe.viewFrom&&ce>=pe.viewTo)Sa(ie);else if(ae<=pe.viewFrom){var Ae=ds(ie,ce,ce+he,1);Ae?(pe.view=pe.view.slice(Ae.index),pe.viewFrom=Ae.lineN,pe.viewTo+=he):Sa(ie)}else if(ce>=pe.viewTo){var Oe=ds(ie,ae,ae,-1);Oe?(pe.view=pe.view.slice(0,Oe.index),pe.viewTo=Oe.lineN):Sa(ie)}else{var Qe=ds(ie,ae,ae,-1),_e=ds(ie,ce,ce+he,1);Qe&&_e?(pe.view=pe.view.slice(0,Qe.index).concat(Bi(ie,Qe.lineN,_e.lineN)).concat(pe.view.slice(_e.index)),pe.viewTo+=he):Sa(ie)}var ct=pe.externalMeasured;ct&&(ce<ct.lineN?ct.lineN+=he:ae<ct.lineN+ct.size&&(pe.externalMeasured=null))}function So(ie,ae,ce){ie.curOp.viewChanged=!0;var he=ie.display,pe=ie.display.externalMeasured;if(pe&&ae>=pe.lineN&&ae<pe.lineN+pe.size&&(he.externalMeasured=null),!(ae<he.viewFrom||ae>=he.viewTo)){var Ae=he.view[ts(ie,ae)];if(Ae.node!=null){var Oe=Ae.changes||(Ae.changes=[]);gn(Oe,ce)==-1&&Oe.push(ce)}}}function Sa(ie){ie.display.viewFrom=ie.display.viewTo=ie.doc.first,ie.display.view=[],ie.display.viewOffset=0}function ds(ie,ae,ce,he){var pe=ts(ie,ae),Ae,Oe=ie.display.view;if(!cn||ce==ie.doc.first+ie.doc.size)return{index:pe,lineN:ce};for(var Qe=ie.display.viewFrom,_e=0;_e<pe;_e++)Qe+=Oe[_e].size;if(Qe!=ae){if(he>0){if(pe==Oe.length-1)return null;Ae=Qe+Oe[pe].size-ae,pe++}else Ae=Qe-ae;ae+=Ae,ce+=Ae}for(;Ee(ie.doc,ce)!=ce;){if(pe==(he<0?0:Oe.length-1))return null;ce+=he*Oe[pe-(he<0?1:0)].size,pe+=he}return{index:pe,lineN:ce}}function ua(ie,ae,ce){var he=ie.display,pe=he.view;pe.length==0||ae>=he.viewTo||ce<=he.viewFrom?(he.view=Bi(ie,ae,ce),he.viewFrom=ae):(he.viewFrom>ae?he.view=Bi(ie,ae,he.viewFrom).concat(he.view):he.viewFrom<ae&&(he.view=he.view.slice(ts(ie,ae))),he.viewFrom=ae,he.viewTo<ce?he.view=he.view.concat(Bi(ie,he.viewTo,ce)):he.viewTo>ce&&(he.view=he.view.slice(0,ts(ie,ce)))),he.viewTo=ce}function cs(ie){for(var ae=ie.display.view,ce=0,he=0;he<ae.length;he++){var pe=ae[he];!pe.hidden&&(!pe.node||pe.changes)&&++ce}return ce}function za(ie){ie.display.input.showSelection(ie.display.input.prepareSelection())}function Dl(ie,ae){ae===void 0&&(ae=!0);for(var ce=ie.doc,he={},pe=he.cursors=document.createDocumentFragment(),Ae=he.selection=document.createDocumentFragment(),Oe=0;Oe<ce.sel.ranges.length;Oe++)if(!(!ae&&Oe==ce.sel.primIndex)){var Qe=ce.sel.ranges[Oe];if(!(Qe.from().line>=ie.display.viewTo||Qe.to().line<ie.display.viewFrom)){var _e=Qe.empty();(_e||ie.options.showCursorWhenSelecting)&&Ho(ie,Qe.head,pe),_e||To(ie,Qe,Ae)}}return he}function Ho(ie,ae,ce){var he=wr(ie,ae,"div",null,null,!ie.options.singleCursorHeightPerLine),pe=ce.appendChild(Xe("div","\xA0","CodeMirror-cursor"));if(pe.style.left=he.left+"px",pe.style.top=he.top+"px",pe.style.height=Math.max(0,he.bottom-he.top)*ie.options.cursorHeight+"px",he.other){var Ae=ce.appendChild(Xe("div","\xA0","CodeMirror-cursor CodeMirror-secondarycursor"));Ae.style.display="",Ae.style.left=he.other.left+"px",Ae.style.top=he.other.top+"px",Ae.style.height=(he.other.bottom-he.other.top)*.85+"px"}}function Fa(ie,ae){return ie.top-ae.top||ie.left-ae.left}function To(ie,ae,ce){var he=ie.display,pe=ie.doc,Ae=document.createDocumentFragment(),Oe=Xr(ie.display),Qe=Oe.left,_e=Math.max(he.sizerWidth,fo(ie)-he.sizer.offsetLeft)-Oe.right,ct=pe.direction=="ltr";function fn(Gr,oo,ko,Vr){oo<0&&(oo=0),oo=Math.round(oo),Vr=Math.round(Vr),Ae.appendChild(Xe("div",null,"CodeMirror-selected","position: absolute; left: "+Gr+`px;
|
|
top: `+oo+"px; width: "+(ko==null?_e-Gr:ko)+`px;
|
|
height: `+(Vr-oo)+"px"))}function kt(Gr,oo,ko){var Vr=ai(pe,Gr),_o=Vr.text.length,ja,Ss;function _a(ps,Pl){return ta(ie,Ot(Gr,ps),"div",Vr,Pl)}function ul(ps,Pl,Rs){var ms=Do(ie,Vr,null,ps),ma=Pl=="ltr"==(Rs=="after")?"left":"right",qa=Rs=="after"?ms.begin:ms.end-(/\s/.test(Vr.text.charAt(ms.end-1))?2:1);return _a(qa,ma)[ma]}var Ys=dn(Vr,pe.direction);return gt(Ys,oo||0,ko==null?_o:ko,function(ps,Pl,Rs,ms){var ma=Rs=="ltr",qa=_a(ps,ma?"left":"right"),As=_a(Pl-1,ma?"right":"left"),zs=oo==null&&ps==0,su=ko==null&&Pl==_o,Ja=ms==0,Jl=!Ys||ms==Ys.length-1;if(As.top-qa.top<=3){var is=(ct?zs:su)&&Ja,Bc=(ct?su:zs)&&Jl,Rl=is?Qe:(ma?qa:As).left,Cl=Bc?_e:(ma?As:qa).right;fn(Rl,qa.top,Cl-Rl,qa.bottom)}else{var hl,Na,Ls,Ru;ma?(hl=ct&&zs&&Ja?Qe:qa.left,Na=ct?_e:ul(ps,Rs,"before"),Ls=ct?Qe:ul(Pl,Rs,"after"),Ru=ct&&su&&Jl?_e:As.right):(hl=ct?ul(ps,Rs,"before"):Qe,Na=!ct&&zs&&Ja?_e:qa.right,Ls=!ct&&su&&Jl?Qe:As.left,Ru=ct?ul(Pl,Rs,"after"):_e),fn(hl,qa.top,Na-hl,qa.bottom),qa.bottom<As.top&&fn(Qe,qa.bottom,null,As.top),fn(Ls,As.top,Ru-Ls,As.bottom)}(!ja||Fa(qa,ja)<0)&&(ja=qa),Fa(As,ja)<0&&(ja=As),(!Ss||Fa(qa,Ss)<0)&&(Ss=qa),Fa(As,Ss)<0&&(Ss=As)}),{start:ja,end:Ss}}var qn=ae.from(),Zn=ae.to();if(qn.line==Zn.line)kt(qn.line,qn.ch,Zn.ch);else{var Ki=ai(pe,qn.line),qi=ai(pe,Zn.line),mr=Rt(Ki)==Rt(qi),Ir=kt(qn.line,qn.ch,mr?Ki.text.length+1:null).end,$r=kt(Zn.line,mr?0:null,Zn.ch).start;mr&&(Ir.top<$r.top-2?(fn(Ir.right,Ir.top,null,Ir.bottom),fn(Qe,$r.top,$r.left,$r.bottom)):fn(Ir.right,Ir.top,$r.left-Ir.right,Ir.bottom)),Ir.bottom<$r.top&&fn(Qe,Ir.bottom,null,$r.top)}ce.appendChild(Ae)}function $o(ie){if(ie.state.focused){var ae=ie.display;clearInterval(ae.blinker);var ce=!0;ae.cursorDiv.style.visibility="",ie.options.cursorBlinkRate>0?ae.blinker=setInterval(function(){ie.hasFocus()||pl(ie),ae.cursorDiv.style.visibility=(ce=!ce)?"":"hidden"},ie.options.cursorBlinkRate):ie.options.cursorBlinkRate<0&&(ae.cursorDiv.style.visibility="hidden")}}function pa(ie){ie.state.focused||(ie.display.input.focus(),qo(ie))}function xa(ie){ie.state.delayingBlurEvent=!0,setTimeout(function(){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1,pl(ie))},100)}function qo(ie,ae){ie.state.delayingBlurEvent&&(ie.state.delayingBlurEvent=!1),ie.options.readOnly!="nocursor"&&(ie.state.focused||(Xt(ie,"focus",ie,ae),ie.state.focused=!0,ln(ie.display.wrapper,"CodeMirror-focused"),!ie.curOp&&ie.display.selForContextMenu!=ie.doc.sel&&(ie.display.input.reset(),dt&&setTimeout(function(){return ie.display.input.reset(!0)},20)),ie.display.input.receivedFocus()),$o(ie))}function pl(ie,ae){ie.state.delayingBlurEvent||(ie.state.focused&&(Xt(ie,"blur",ie,ae),ie.state.focused=!1,Ze(ie.display.wrapper,"CodeMirror-focused")),clearInterval(ie.display.blinker),setTimeout(function(){ie.state.focused||(ie.display.shift=!1)},150))}function no(ie){for(var ae=ie.display,ce=ae.lineDiv.offsetTop,he=0;he<ae.view.length;he++){var pe=ae.view[he],Ae=ie.options.lineWrapping,Oe=void 0,Qe=0;if(!pe.hidden){if(Mt&&ze<8){var _e=pe.node.offsetTop+pe.node.offsetHeight;Oe=_e-ce,ce=_e}else{var ct=pe.node.getBoundingClientRect();Oe=ct.bottom-ct.top,!Ae&&pe.text.firstChild&&(Qe=pe.text.firstChild.getBoundingClientRect().right-ct.left-1)}var fn=pe.line.height-Oe;if((fn>.005||fn<-.005)&&(fr(pe.line,Oe),vu(pe.line),pe.rest))for(var kt=0;kt<pe.rest.length;kt++)vu(pe.rest[kt]);if(Qe>ie.display.sizerWidth){var qn=Math.ceil(Qe/ya(ie.display));qn>ie.display.maxLineLength&&(ie.display.maxLineLength=qn,ie.display.maxLine=pe.line,ie.display.maxLineChanged=!0)}}}}function vu(ie){if(ie.widgets)for(var ae=0;ae<ie.widgets.length;++ae){var ce=ie.widgets[ae],he=ce.node.parentNode;he&&(ce.height=he.offsetHeight)}}function Ao(ie,ae,ce){var he=ce&&ce.top!=null?Math.max(0,ce.top):ie.scroller.scrollTop;he=Math.floor(he-Ar(ie));var pe=ce&&ce.bottom!=null?ce.bottom:he+ie.wrapper.clientHeight,Ae=mt(ae,he),Oe=mt(ae,pe);if(ce&&ce.ensure){var Qe=ce.ensure.from.line,_e=ce.ensure.to.line;Qe<Ae?(Ae=Qe,Oe=mt(ae,lt(ai(ae,Qe))+ie.wrapper.clientHeight)):Math.min(_e,ae.lastLine())>=Oe&&(Ae=mt(ae,lt(ai(ae,_e))-ie.wrapper.clientHeight),Oe=_e)}return{from:Ae,to:Math.max(Oe,Ae+1)}}function Kl(ie,ae){if(!pn(ie,"scrollCursorIntoView")){var ce=ie.display,he=ce.sizer.getBoundingClientRect(),pe=null;if(ae.top+he.top<0?pe=!0:ae.bottom+he.top>(window.innerHeight||document.documentElement.clientHeight)&&(pe=!1),pe!=null&&!Ht){var Ae=Xe("div","\u200B",null,`position: absolute;
|
|
top: `+(ae.top-ce.viewOffset-Ar(ie.display))+`px;
|
|
height: `+(ae.bottom-ae.top+_r(ie)+ce.barHeight)+`px;
|
|
left: `+ae.left+"px; width: "+Math.max(2,ae.right-ae.left)+"px;");ie.display.lineSpace.appendChild(Ae),Ae.scrollIntoView(pe),ie.display.lineSpace.removeChild(Ae)}}}function qs(ie,ae,ce,he){he==null&&(he=0);var pe;!ie.options.lineWrapping&&ae==ce&&(ae=ae.ch?Ot(ae.line,ae.sticky=="before"?ae.ch-1:ae.ch,"after"):ae,ce=ae.sticky=="before"?Ot(ae.line,ae.ch+1,"before"):ae);for(var Ae=0;Ae<5;Ae++){var Oe=!1,Qe=wr(ie,ae),_e=!ce||ce==ae?Qe:wr(ie,ce);pe={left:Math.min(Qe.left,_e.left),top:Math.min(Qe.top,_e.top)-he,right:Math.max(Qe.left,_e.left),bottom:Math.max(Qe.bottom,_e.bottom)+he};var ct=yu(ie,pe),fn=ie.doc.scrollTop,kt=ie.doc.scrollLeft;if(ct.scrollTop!=null&&(ml(ie,ct.scrollTop),Math.abs(ie.doc.scrollTop-fn)>1&&(Oe=!0)),ct.scrollLeft!=null&&(vl(ie,ct.scrollLeft),Math.abs(ie.doc.scrollLeft-kt)>1&&(Oe=!0)),!Oe)break}return pe}function Nl(ie,ae){var ce=yu(ie,ae);ce.scrollTop!=null&&ml(ie,ce.scrollTop),ce.scrollLeft!=null&&vl(ie,ce.scrollLeft)}function yu(ie,ae){var ce=ie.display,he=sa(ie.display);ae.top<0&&(ae.top=0);var pe=ie.curOp&&ie.curOp.scrollTop!=null?ie.curOp.scrollTop:ce.scroller.scrollTop,Ae=mo(ie),Oe={};ae.bottom-ae.top>Ae&&(ae.bottom=ae.top+Ae);var Qe=ie.doc.height+eo(ce),_e=ae.top<he,ct=ae.bottom>Qe-he;if(ae.top<pe)Oe.scrollTop=_e?0:ae.top;else if(ae.bottom>pe+Ae){var fn=Math.min(ae.top,(ct?Qe:ae.bottom)-Ae);fn!=pe&&(Oe.scrollTop=fn)}var kt=ie.options.fixedGutter?0:ce.gutters.offsetWidth,qn=ie.curOp&&ie.curOp.scrollLeft!=null?ie.curOp.scrollLeft:ce.scroller.scrollLeft-kt,Zn=fo(ie)-ce.gutters.offsetWidth,Ki=ae.right-ae.left>Zn;return Ki&&(ae.right=ae.left+Zn),ae.left<10?Oe.scrollLeft=0:ae.left<qn?Oe.scrollLeft=Math.max(0,ae.left+kt-(Ki?0:10)):ae.right>Zn+qn-3&&(Oe.scrollLeft=ae.right+(Ki?0:10)-Zn),Oe}function Su(ie,ae){ae!=null&&(Gs(ie),ie.curOp.scrollTop=(ie.curOp.scrollTop==null?ie.doc.scrollTop:ie.curOp.scrollTop)+ae)}function Vs(ie){Gs(ie);var ae=ie.getCursor();ie.curOp.scrollToPos={from:ae,to:ae,margin:ie.options.cursorScrollMargin}}function Yl(ie,ae,ce){(ae!=null||ce!=null)&&Gs(ie),ae!=null&&(ie.curOp.scrollLeft=ae),ce!=null&&(ie.curOp.scrollTop=ce)}function Uo(ie,ae){Gs(ie),ie.curOp.scrollToPos=ae}function Gs(ie){var ae=ie.curOp.scrollToPos;if(ae){ie.curOp.scrollToPos=null;var ce=ur(ie,ae.from),he=ur(ie,ae.to);xu(ie,ce,he,ae.margin)}}function xu(ie,ae,ce,he){var pe=yu(ie,{left:Math.min(ae.left,ce.left),top:Math.min(ae.top,ce.top)-he,right:Math.max(ae.right,ce.right),bottom:Math.max(ae.bottom,ce.bottom)+he});Yl(ie,pe.scrollLeft,pe.scrollTop)}function ml(ie,ae){Math.abs(ie.doc.scrollTop-ae)<2||(ye||ph(ie,{top:ae}),Nu(ie,ae,!0),ye&&ph(ie),rs(ie,100))}function Nu(ie,ae,ce){ae=Math.max(0,Math.min(ie.display.scroller.scrollHeight-ie.display.scroller.clientHeight,ae)),!(ie.display.scroller.scrollTop==ae&&!ce)&&(ie.doc.scrollTop=ae,ie.display.scrollbars.setScrollTop(ae),ie.display.scroller.scrollTop!=ae&&(ie.display.scroller.scrollTop=ae))}function vl(ie,ae,ce,he){ae=Math.max(0,Math.min(ae,ie.display.scroller.scrollWidth-ie.display.scroller.clientWidth)),!((ce?ae==ie.doc.scrollLeft:Math.abs(ie.doc.scrollLeft-ae)<2)&&!he)&&(ie.doc.scrollLeft=ae,of(ie),ie.display.scroller.scrollLeft!=ae&&(ie.display.scroller.scrollLeft=ae),ie.display.scrollbars.setScrollLeft(ae))}function No(ie){var ae=ie.display,ce=ae.gutters.offsetWidth,he=Math.round(ie.doc.height+eo(ie.display));return{clientHeight:ae.scroller.clientHeight,viewHeight:ae.wrapper.clientHeight,scrollWidth:ae.scroller.scrollWidth,clientWidth:ae.scroller.clientWidth,viewWidth:ae.wrapper.clientWidth,barLeft:ie.options.fixedGutter?ce:0,docHeight:he,scrollHeight:he+_r(ie)+ae.barHeight,nativeBarWidth:ae.nativeBarWidth,gutterWidth:ce}}var Ko=function(ie,ae,ce){this.cm=ce;var he=this.vert=Xe("div",[Xe("div",null,null,"min-width: 1px")],"CodeMirror-vscrollbar"),pe=this.horiz=Xe("div",[Xe("div",null,null,"height: 100%; min-height: 1px")],"CodeMirror-hscrollbar");he.tabIndex=pe.tabIndex=-1,ie(he),ie(pe),wn(he,"scroll",function(){he.clientHeight&&ae(he.scrollTop,"vertical")}),wn(pe,"scroll",function(){pe.clientWidth&&ae(pe.scrollLeft,"horizontal")}),this.checkedZeroWidth=!1,Mt&&ze<8&&(this.horiz.style.minHeight=this.vert.style.minWidth="18px")};Ko.prototype.update=function(ie){var ae=ie.scrollWidth>ie.clientWidth+1,ce=ie.scrollHeight>ie.clientHeight+1,he=ie.nativeBarWidth;if(ce){this.vert.style.display="block",this.vert.style.bottom=ae?he+"px":"0";var pe=ie.viewHeight-(ae?he:0);this.vert.firstChild.style.height=Math.max(0,ie.scrollHeight-ie.clientHeight+pe)+"px"}else this.vert.style.display="",this.vert.firstChild.style.height="0";if(ae){this.horiz.style.display="block",this.horiz.style.right=ce?he+"px":"0",this.horiz.style.left=ie.barLeft+"px";var Ae=ie.viewWidth-ie.barLeft-(ce?he:0);this.horiz.firstChild.style.width=Math.max(0,ie.scrollWidth-ie.clientWidth+Ae)+"px"}else this.horiz.style.display="",this.horiz.firstChild.style.width="0";return!this.checkedZeroWidth&&ie.clientHeight>0&&(he==0&&this.zeroWidthHack(),this.checkedZeroWidth=!0),{right:ce?he:0,bottom:ae?he:0}},Ko.prototype.setScrollLeft=function(ie){this.horiz.scrollLeft!=ie&&(this.horiz.scrollLeft=ie),this.disableHoriz&&this.enableZeroWidthBar(this.horiz,this.disableHoriz,"horiz")},Ko.prototype.setScrollTop=function(ie){this.vert.scrollTop!=ie&&(this.vert.scrollTop=ie),this.disableVert&&this.enableZeroWidthBar(this.vert,this.disableVert,"vert")},Ko.prototype.zeroWidthHack=function(){var ie=de&&!Ke?"12px":"18px";this.horiz.style.height=this.vert.style.width=ie,this.horiz.style.pointerEvents=this.vert.style.pointerEvents="none",this.disableHoriz=new $e,this.disableVert=new $e},Ko.prototype.enableZeroWidthBar=function(ie,ae,ce){ie.style.pointerEvents="auto";function he(){var pe=ie.getBoundingClientRect(),Ae=ce=="vert"?document.elementFromPoint(pe.right-1,(pe.top+pe.bottom)/2):document.elementFromPoint((pe.right+pe.left)/2,pe.bottom-1);Ae!=ie?ie.style.pointerEvents="none":ae.set(1e3,he)}ae.set(1e3,he)},Ko.prototype.clear=function(){var ie=this.horiz.parentNode;ie.removeChild(this.horiz),ie.removeChild(this.vert)};var ka=function(){};ka.prototype.update=function(){return{bottom:0,right:0}},ka.prototype.setScrollLeft=function(){},ka.prototype.setScrollTop=function(){},ka.prototype.clear=function(){};function ns(ie,ae){ae||(ae=No(ie));var ce=ie.display.barWidth,he=ie.display.barHeight;Qa(ie,ae);for(var pe=0;pe<4&&ce!=ie.display.barWidth||he!=ie.display.barHeight;pe++)ce!=ie.display.barWidth&&ie.options.lineWrapping&&no(ie),Qa(ie,No(ie)),ce=ie.display.barWidth,he=ie.display.barHeight}function Qa(ie,ae){var ce=ie.display,he=ce.scrollbars.update(ae);ce.sizer.style.paddingRight=(ce.barWidth=he.right)+"px",ce.sizer.style.paddingBottom=(ce.barHeight=he.bottom)+"px",ce.heightForcer.style.borderBottom=he.bottom+"px solid transparent",he.right&&he.bottom?(ce.scrollbarFiller.style.display="block",ce.scrollbarFiller.style.height=he.bottom+"px",ce.scrollbarFiller.style.width=he.right+"px"):ce.scrollbarFiller.style.display="",he.bottom&&ie.options.coverGutterNextToScrollbar&&ie.options.fixedGutter?(ce.gutterFiller.style.display="block",ce.gutterFiller.style.height=he.bottom+"px",ce.gutterFiller.style.width=ae.gutterWidth+"px"):ce.gutterFiller.style.display=""}var Bl={native:Ko,null:ka};function yl(ie){ie.display.scrollbars&&(ie.display.scrollbars.clear(),ie.display.scrollbars.addClass&&Ze(ie.display.wrapper,ie.display.scrollbars.addClass)),ie.display.scrollbars=new Bl[ie.options.scrollbarStyle](function(ae){ie.display.wrapper.insertBefore(ae,ie.display.scrollbarFiller),wn(ae,"mousedown",function(){ie.state.focused&&setTimeout(function(){return ie.display.input.focus()},0)}),ae.setAttribute("cm-not-content","true")},function(ae,ce){ce=="horizontal"?vl(ie,ae):ml(ie,ae)},ie),ie.display.scrollbars.addClass&&ln(ie.display.wrapper,ie.display.scrollbars.addClass)}var Oo=0;function xo(ie){ie.curOp={cm:ie,viewChanged:!1,startHeight:ie.doc.height,forceUpdate:!1,updateInput:0,typing:!1,changeObjs:null,cursorActivityHandlers:null,cursorActivityCalled:0,selectionChanged:!1,updateMaxLine:!1,scrollLeft:null,scrollTop:null,scrollToPos:null,focus:!1,id:++Oo},cr(ie.curOp)}function Ua(ie){var ae=ie.curOp;ae&&Hr(ae,function(ce){for(var he=0;he<ce.ops.length;he++)ce.ops[he].cm.curOp=null;ou(ce)})}function ou(ie){for(var ae=ie.ops,ce=0;ce<ae.length;ce++)Dd(ae[ce]);for(var he=0;he<ae.length;he++)cg(ae[he]);for(var pe=0;pe<ae.length;pe++)nf(ae[pe]);for(var Ae=0;Ae<ae.length;Ae++)Va(ae[Ae]);for(var Oe=0;Oe<ae.length;Oe++)Qu(ae[Oe])}function Dd(ie){var ae=ie.cm,ce=ae.display;Vp(ae),ie.updateMaxLine&&Vt(ae),ie.mustUpdate=ie.viewChanged||ie.forceUpdate||ie.scrollTop!=null||ie.scrollToPos&&(ie.scrollToPos.from.line<ce.viewFrom||ie.scrollToPos.to.line>=ce.viewTo)||ce.maxLineChanged&&ae.options.lineWrapping,ie.update=ie.mustUpdate&&new Xh(ae,ie.mustUpdate&&{top:ie.scrollTop,ensure:ie.scrollToPos},ie.forceUpdate)}function cg(ie){ie.updatedDisplay=ie.mustUpdate&&rf(ie.cm,ie.update)}function nf(ie){var ae=ie.cm,ce=ae.display;ie.updatedDisplay&&no(ae),ie.barMeasure=No(ae),ce.maxLineChanged&&!ae.options.lineWrapping&&(ie.adjustWidthTo=po(ae,ce.maxLine,ce.maxLine.text.length).left+3,ae.display.sizerWidth=ie.adjustWidthTo,ie.barMeasure.scrollWidth=Math.max(ce.scroller.clientWidth,ce.sizer.offsetLeft+ie.adjustWidthTo+_r(ae)+ae.display.barWidth),ie.maxScrollLeft=Math.max(0,ce.sizer.offsetLeft+ie.adjustWidthTo-fo(ae))),(ie.updatedDisplay||ie.selectionChanged)&&(ie.preparedSelection=ce.input.prepareSelection())}function Va(ie){var ae=ie.cm;ie.adjustWidthTo!=null&&(ae.display.sizer.style.minWidth=ie.adjustWidthTo+"px",ie.maxScrollLeft<ae.doc.scrollLeft&&vl(ae,Math.min(ae.display.scroller.scrollLeft,ie.maxScrollLeft),!0),ae.display.maxLineChanged=!1);var ce=ie.focus&&ie.focus==Lt();ie.preparedSelection&&ae.display.input.showSelection(ie.preparedSelection,ce),(ie.updatedDisplay||ie.startHeight!=ae.doc.height)&&ns(ae,ie.barMeasure),ie.updatedDisplay&&vh(ae,ie.barMeasure),ie.selectionChanged&&$o(ae),ae.state.focused&&ie.updateInput&&ae.display.input.reset(ie.typing),ce&&pa(ie.cm)}function Qu(ie){var ae=ie.cm,ce=ae.display,he=ae.doc;if(ie.updatedDisplay&&Ea(ae,ie.update),ce.wheelStartX!=null&&(ie.scrollTop!=null||ie.scrollLeft!=null||ie.scrollToPos)&&(ce.wheelStartX=ce.wheelStartY=null),ie.scrollTop!=null&&Nu(ae,ie.scrollTop,ie.forceScroll),ie.scrollLeft!=null&&vl(ae,ie.scrollLeft,!0,!0),ie.scrollToPos){var pe=qs(ae,yi(he,ie.scrollToPos.from),yi(he,ie.scrollToPos.to),ie.scrollToPos.margin);Kl(ae,pe)}var Ae=ie.maybeHiddenMarkers,Oe=ie.maybeUnhiddenMarkers;if(Ae)for(var Qe=0;Qe<Ae.length;++Qe)Ae[Qe].lines.length||Xt(Ae[Qe],"hide");if(Oe)for(var _e=0;_e<Oe.length;++_e)Oe[_e].lines.length&&Xt(Oe[_e],"unhide");ce.wrapper.offsetHeight&&(he.scrollTop=ae.display.scroller.scrollTop),ie.changeObjs&&Xt(ae,"changes",ae,ie.changeObjs),ie.update&&ie.update.finish()}function lo(ie,ae){if(ie.curOp)return ae();xo(ie);try{return ae()}finally{Ua(ie)}}function co(ie,ae){return function(){if(ie.curOp)return ae.apply(ie,arguments);xo(ie);try{return ae.apply(ie,arguments)}finally{Ua(ie)}}}function Mo(ie){return function(){if(this.curOp)return ie.apply(this,arguments);xo(this);try{return ie.apply(this,arguments)}finally{Ua(this)}}}function ra(ie){return function(){var ae=this.cm;if(!ae||ae.curOp)return ie.apply(this,arguments);xo(ae);try{return ie.apply(this,arguments)}finally{Ua(ae)}}}function rs(ie,ae){ie.doc.highlightFrontier<ie.display.viewTo&&ie.state.highlight.set(ae,_t(fs,ie))}function fs(ie){var ae=ie.doc;if(!(ae.highlightFrontier>=ie.display.viewTo)){var ce=+new Date+ie.options.workTime,he=Kr(ie,ae.highlightFrontier),pe=[];ae.iter(he.line,Math.min(ae.first+ae.size,ie.display.viewTo+500),function(Ae){if(he.line>=ie.display.viewFrom){var Oe=Ae.styles,Qe=Ae.text.length>ie.options.maxHighlightLength?Yn(ae.mode,he.state):null,_e=pr(ie,Ae,he,!0);Qe&&(he.state=Qe),Ae.styles=_e.styles;var ct=Ae.styleClasses,fn=_e.classes;fn?Ae.styleClasses=fn:ct&&(Ae.styleClasses=null);for(var kt=!Oe||Oe.length!=Ae.styles.length||ct!=fn&&(!ct||!fn||ct.bgClass!=fn.bgClass||ct.textClass!=fn.textClass),qn=0;!kt&&qn<Oe.length;++qn)kt=Oe[qn]!=Ae.styles[qn];kt&&pe.push(he.line),Ae.stateAfter=he.save(),he.nextLine()}else Ae.text.length<=ie.options.maxHighlightLength&&En(ie,Ae.text,he),Ae.stateAfter=he.line%5==0?he.save():null,he.nextLine();if(+new Date>ce)return rs(ie,ie.options.workDelay),!0}),ae.highlightFrontier=he.line,ae.modeFrontier=Math.max(ae.modeFrontier,he.line),pe.length&&lo(ie,function(){for(var Ae=0;Ae<pe.length;Ae++)So(ie,pe[Ae],"text")})}}var Xh=function(ie,ae,ce){var he=ie.display;this.viewport=ae,this.visible=Ao(he,ie.doc,ae),this.editorIsHidden=!he.wrapper.offsetWidth,this.wrapperHeight=he.wrapper.clientHeight,this.wrapperWidth=he.wrapper.clientWidth,this.oldDisplayWidth=fo(ie),this.force=ce,this.dims=Pa(ie),this.events=[]};Xh.prototype.signal=function(ie,ae){Un(ie,ae)&&this.events.push(arguments)},Xh.prototype.finish=function(){for(var ie=0;ie<this.events.length;ie++)Xt.apply(null,this.events[ie])};function Vp(ie){var ae=ie.display;!ae.scrollbarsClipped&&ae.scroller.offsetWidth&&(ae.nativeBarWidth=ae.scroller.offsetWidth-ae.scroller.clientWidth,ae.heightForcer.style.height=_r(ie)+"px",ae.sizer.style.marginBottom=-ae.nativeBarWidth+"px",ae.sizer.style.borderRightWidth=_r(ie)+"px",ae.scrollbarsClipped=!0)}function Gp(ie){if(ie.hasFocus())return null;var ae=Lt();if(!ae||!Nt(ie.display.lineDiv,ae))return null;var ce={activeElt:ae};if(window.getSelection){var he=window.getSelection();he.anchorNode&&he.extend&&Nt(ie.display.lineDiv,he.anchorNode)&&(ce.anchorNode=he.anchorNode,ce.anchorOffset=he.anchorOffset,ce.focusNode=he.focusNode,ce.focusOffset=he.focusOffset)}return ce}function sl(ie){if(!(!ie||!ie.activeElt||ie.activeElt==Lt())&&(ie.activeElt.focus(),!/^(INPUT|TEXTAREA)$/.test(ie.activeElt.nodeName)&&ie.anchorNode&&Nt(document.body,ie.anchorNode)&&Nt(document.body,ie.focusNode))){var ae=window.getSelection(),ce=document.createRange();ce.setEnd(ie.anchorNode,ie.anchorOffset),ce.collapse(!1),ae.removeAllRanges(),ae.addRange(ce),ae.extend(ie.focusNode,ie.focusOffset)}}function rf(ie,ae){var ce=ie.display,he=ie.doc;if(ae.editorIsHidden)return Sa(ie),!1;if(!ae.force&&ae.visible.from>=ce.viewFrom&&ae.visible.to<=ce.viewTo&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo)&&ce.renderedView==ce.view&&cs(ie)==0)return!1;us(ie)&&(Sa(ie),ae.dims=Pa(ie));var pe=he.first+he.size,Ae=Math.max(ae.visible.from-ie.options.viewportMargin,he.first),Oe=Math.min(pe,ae.visible.to+ie.options.viewportMargin);ce.viewFrom<Ae&&Ae-ce.viewFrom<20&&(Ae=Math.max(he.first,ce.viewFrom)),ce.viewTo>Oe&&ce.viewTo-Oe<20&&(Oe=Math.min(pe,ce.viewTo)),cn&&(Ae=Ee(ie.doc,Ae),Oe=Ue(ie.doc,Oe));var Qe=Ae!=ce.viewFrom||Oe!=ce.viewTo||ce.lastWrapHeight!=ae.wrapperHeight||ce.lastWrapWidth!=ae.wrapperWidth;ua(ie,Ae,Oe),ce.viewOffset=lt(ai(ie.doc,ce.viewFrom)),ie.display.mover.style.top=ce.viewOffset+"px";var _e=cs(ie);if(!Qe&&_e==0&&!ae.force&&ce.renderedView==ce.view&&(ce.updateLineNumbers==null||ce.updateLineNumbers>=ce.viewTo))return!1;var ct=Gp(ie);return _e>4&&(ce.lineDiv.style.display="none"),fg(ie,ce.updateLineNumbers,ae.dims),_e>4&&(ce.lineDiv.style.display=""),ce.renderedView=ce.view,sl(ct),st(ce.cursorDiv),st(ce.selectionDiv),ce.gutters.style.height=ce.sizer.style.minHeight=0,Qe&&(ce.lastWrapHeight=ae.wrapperHeight,ce.lastWrapWidth=ae.wrapperWidth,rs(ie,400)),ce.updateLineNumbers=null,!0}function Ea(ie,ae){for(var ce=ae.viewport,he=!0;;he=!1){if(!he||!ie.options.lineWrapping||ae.oldDisplayWidth==fo(ie)){if(ce&&ce.top!=null&&(ce={top:Math.min(ie.doc.height+eo(ie.display)-mo(ie),ce.top)}),ae.visible=Ao(ie.display,ie.doc,ce),ae.visible.from>=ie.display.viewFrom&&ae.visible.to<=ie.display.viewTo)break}else he&&(ae.visible=Ao(ie.display,ie.doc,ce));if(!rf(ie,ae))break;no(ie);var pe=No(ie);za(ie),ns(ie,pe),vh(ie,pe),ae.force=!1}ae.signal(ie,"update",ie),(ie.display.viewFrom!=ie.display.reportedViewFrom||ie.display.viewTo!=ie.display.reportedViewTo)&&(ae.signal(ie,"viewportChange",ie,ie.display.viewFrom,ie.display.viewTo),ie.display.reportedViewFrom=ie.display.viewFrom,ie.display.reportedViewTo=ie.display.viewTo)}function ph(ie,ae){var ce=new Xh(ie,ae);if(rf(ie,ce)){no(ie),Ea(ie,ce);var he=No(ie);za(ie),ns(ie,he),vh(ie,he),ce.finish()}}function fg(ie,ae,ce){var he=ie.display,pe=ie.options.lineNumbers,Ae=he.lineDiv,Oe=Ae.firstChild;function Qe(Ki){var qi=Ki.nextSibling;return dt&&de&&ie.display.currentWheelTarget==Ki?Ki.style.display="none":Ki.parentNode.removeChild(Ki),qi}for(var _e=he.view,ct=he.viewFrom,fn=0;fn<_e.length;fn++){var kt=_e[fn];if(!kt.hidden)if(!kt.node||kt.node.parentNode!=Ae){var qn=Qi(ie,kt,ct,ce);Ae.insertBefore(qn,Oe)}else{for(;Oe!=kt.node;)Oe=Qe(Oe);var Zn=pe&&ae!=null&&ae<=ct&&kt.lineNumber;kt.changes&&(gn(kt.changes,"gutter")>-1&&(Zn=!1),Er(ie,kt,ct,ce)),Zn&&(st(kt.lineNumber),kt.lineNumber.appendChild(document.createTextNode(An(ie.options,ct)))),Oe=kt.node.nextSibling}ct+=kt.size}for(;Oe;)Oe=Qe(Oe)}function mh(ie){var ae=ie.gutters.offsetWidth;ie.sizer.style.marginLeft=ae+"px"}function vh(ie,ae){ie.display.sizer.style.minHeight=ae.docHeight+"px",ie.display.heightForcer.style.top=ae.docHeight+"px",ie.display.gutters.style.height=ae.docHeight+ie.display.barHeight+_r(ie)+"px"}function of(ie){var ae=ie.display,ce=ae.view;if(!(!ae.alignWidgets&&(!ae.gutters.firstChild||!ie.options.fixedGutter))){for(var he=hs(ae)-ae.scroller.scrollLeft+ie.doc.scrollLeft,pe=ae.gutters.offsetWidth,Ae=he+"px",Oe=0;Oe<ce.length;Oe++)if(!ce[Oe].hidden){ie.options.fixedGutter&&(ce[Oe].gutter&&(ce[Oe].gutter.style.left=Ae),ce[Oe].gutterBackground&&(ce[Oe].gutterBackground.style.left=Ae));var Qe=ce[Oe].alignable;if(Qe)for(var _e=0;_e<Qe.length;_e++)Qe[_e].style.left=Ae}ie.options.fixedGutter&&(ae.gutters.style.left=he+pe+"px")}}function us(ie){if(!ie.options.lineNumbers)return!1;var ae=ie.doc,ce=An(ie.options,ae.first+ae.size-1),he=ie.display;if(ce.length!=he.lineNumChars){var pe=he.measure.appendChild(Xe("div",[Xe("div",ce)],"CodeMirror-linenumber CodeMirror-gutter-elt")),Ae=pe.firstChild.offsetWidth,Oe=pe.offsetWidth-Ae;return he.lineGutter.style.width="",he.lineNumInnerWidth=Math.max(Ae,he.lineGutter.offsetWidth-Oe)+1,he.lineNumWidth=he.lineNumInnerWidth+Oe,he.lineNumChars=he.lineNumInnerWidth?ce.length:-1,he.lineGutter.style.width=he.lineNumWidth+"px",mh(ie.display),!0}return!1}function Cs(ie,ae){for(var ce=[],he=!1,pe=0;pe<ie.length;pe++){var Ae=ie[pe],Oe=null;if(typeof Ae!="string"&&(Oe=Ae.style,Ae=Ae.className),Ae=="CodeMirror-linenumbers")if(ae)he=!0;else continue;ce.push({className:Ae,style:Oe})}return ae&&!he&&ce.push({className:"CodeMirror-linenumbers",style:null}),ce}function _h(ie){var ae=ie.gutters,ce=ie.gutterSpecs;st(ae),ie.lineGutter=null;for(var he=0;he<ce.length;++he){var pe=ce[he],Ae=pe.className,Oe=pe.style,Qe=ae.appendChild(Xe("div",null,"CodeMirror-gutter "+Ae));Oe&&(Qe.style.cssText=Oe),Ae=="CodeMirror-linenumbers"&&(ie.lineGutter=Qe,Qe.style.width=(ie.lineNumWidth||1)+"px")}ae.style.display=ce.length?"":"none",mh(ie)}function Tl(ie){_h(ie.display),ca(ie),of(ie)}function yh(ie,ae,ce,he){var pe=this;this.input=ce,pe.scrollbarFiller=Xe("div",null,"CodeMirror-scrollbar-filler"),pe.scrollbarFiller.setAttribute("cm-not-content","true"),pe.gutterFiller=Xe("div",null,"CodeMirror-gutter-filler"),pe.gutterFiller.setAttribute("cm-not-content","true"),pe.lineDiv=At("div",null,"CodeMirror-code"),pe.selectionDiv=Xe("div",null,null,"position: relative; z-index: 1"),pe.cursorDiv=Xe("div",null,"CodeMirror-cursors"),pe.measure=Xe("div",null,"CodeMirror-measure"),pe.lineMeasure=Xe("div",null,"CodeMirror-measure"),pe.lineSpace=At("div",[pe.measure,pe.lineMeasure,pe.selectionDiv,pe.cursorDiv,pe.lineDiv],null,"position: relative; outline: none");var Ae=At("div",[pe.lineSpace],"CodeMirror-lines");pe.mover=Xe("div",[Ae],null,"position: relative"),pe.sizer=Xe("div",[pe.mover],"CodeMirror-sizer"),pe.sizerWidth=null,pe.heightForcer=Xe("div",null,null,"position: absolute; height: "+ci+"px; width: 1px;"),pe.gutters=Xe("div",null,"CodeMirror-gutters"),pe.lineGutter=null,pe.scroller=Xe("div",[pe.sizer,pe.heightForcer,pe.gutters],"CodeMirror-scroll"),pe.scroller.setAttribute("tabIndex","-1"),pe.wrapper=Xe("div",[pe.scrollbarFiller,pe.gutterFiller,pe.scroller],"CodeMirror"),Mt&&ze<8&&(pe.gutters.style.zIndex=-1,pe.scroller.style.paddingRight=0),!dt&&!(ye&&te)&&(pe.scroller.draggable=!0),ie&&(ie.appendChild?ie.appendChild(pe.wrapper):ie(pe.wrapper)),pe.viewFrom=pe.viewTo=ae.first,pe.reportedViewFrom=pe.reportedViewTo=ae.first,pe.view=[],pe.renderedView=null,pe.externalMeasured=null,pe.viewOffset=0,pe.lastWrapHeight=pe.lastWrapWidth=0,pe.updateLineNumbers=null,pe.nativeBarWidth=pe.barHeight=pe.barWidth=0,pe.scrollbarsClipped=!1,pe.lineNumWidth=pe.lineNumInnerWidth=pe.lineNumChars=null,pe.alignWidgets=!1,pe.cachedCharWidth=pe.cachedTextHeight=pe.cachedPaddingH=null,pe.maxLine=null,pe.maxLineLength=0,pe.maxLineChanged=!1,pe.wheelDX=pe.wheelDY=pe.wheelStartX=pe.wheelStartY=null,pe.shift=!1,pe.selForContextMenu=null,pe.activeTouch=null,pe.gutterSpecs=Cs(he.gutters,he.lineNumbers),_h(pe),ce.init(pe)}var Sl=0,os=null;Mt?os=-.53:ye?os=15:Et?os=-.7:zt&&(os=-1/3);function wu(ie){var ae=ie.wheelDeltaX,ce=ie.wheelDeltaY;return ae==null&&ie.detail&&ie.axis==ie.HORIZONTAL_AXIS&&(ae=ie.detail),ce==null&&ie.detail&&ie.axis==ie.VERTICAL_AXIS?ce=ie.detail:ce==null&&(ce=ie.wheelDelta),{x:ae,y:ce}}function Ol(ie){var ae=wu(ie);return ae.x*=os,ae.y*=os,ae}function Es(ie,ae){var ce=wu(ae),he=ce.x,pe=ce.y,Ae=ie.display,Oe=Ae.scroller,Qe=Oe.scrollWidth>Oe.clientWidth,_e=Oe.scrollHeight>Oe.clientHeight;if(he&&Qe||pe&&_e){if(pe&&de&&dt){e:for(var ct=ae.target,fn=Ae.view;ct!=Oe;ct=ct.parentNode)for(var kt=0;kt<fn.length;kt++)if(fn[kt].node==ct){ie.display.currentWheelTarget=ct;break e}}if(he&&!ye&&!Me&&os!=null){pe&&_e&&ml(ie,Math.max(0,Oe.scrollTop+pe*os)),vl(ie,Math.max(0,Oe.scrollLeft+he*os)),(!pe||pe&&_e)&&pi(ae),Ae.wheelStartX=null;return}if(pe&&os!=null){var qn=pe*os,Zn=ie.doc.scrollTop,Ki=Zn+Ae.wrapper.clientHeight;qn<0?Zn=Math.max(0,Zn+qn-50):Ki=Math.min(ie.doc.height,Ki+qn+50),ph(ie,{top:Zn,bottom:Ki})}Sl<20&&(Ae.wheelStartX==null?(Ae.wheelStartX=Oe.scrollLeft,Ae.wheelStartY=Oe.scrollTop,Ae.wheelDX=he,Ae.wheelDY=pe,setTimeout(function(){if(Ae.wheelStartX!=null){var qi=Oe.scrollLeft-Ae.wheelStartX,mr=Oe.scrollTop-Ae.wheelStartY,Ir=mr&&Ae.wheelDY&&mr/Ae.wheelDY||qi&&Ae.wheelDX&&qi/Ae.wheelDX;Ae.wheelStartX=Ae.wheelStartY=null,Ir&&(os=(os*Sl+Ir)/(Sl+1),++Sl)}},200)):(Ae.wheelDX+=he,Ae.wheelDY+=pe))}}var Ul=function(ie,ae){this.ranges=ie,this.primIndex=ae};Ul.prototype.primary=function(){return this.ranges[this.primIndex]},Ul.prototype.equals=function(ie){if(ie==this)return!0;if(ie.primIndex!=this.primIndex||ie.ranges.length!=this.ranges.length)return!1;for(var ae=0;ae<this.ranges.length;ae++){var ce=this.ranges[ae],he=ie.ranges[ae];if(!Hn(ce.anchor,he.anchor)||!Hn(ce.head,he.head))return!1}return!0},Ul.prototype.deepCopy=function(){for(var ie=[],ae=0;ae<this.ranges.length;ae++)ie[ae]=new Aa(_n(this.ranges[ae].anchor),_n(this.ranges[ae].head));return new Ul(ie,this.primIndex)},Ul.prototype.somethingSelected=function(){for(var ie=0;ie<this.ranges.length;ie++)if(!this.ranges[ie].empty())return!0;return!1},Ul.prototype.contains=function(ie,ae){ae||(ae=ie);for(var ce=0;ce<this.ranges.length;ce++){var he=this.ranges[ce];if(Bn(ae,he.from())>=0&&Bn(ie,he.to())<=0)return ce}return-1};var Aa=function(ie,ae){this.anchor=ie,this.head=ae};Aa.prototype.from=function(){return si(this.anchor,this.head)},Aa.prototype.to=function(){return Ei(this.anchor,this.head)},Aa.prototype.empty=function(){return this.head.line==this.anchor.line&&this.head.ch==this.anchor.ch};function au(ie,ae,ce){var he=ie&&ie.options.selectionsMayTouch,pe=ae[ce];ae.sort(function(qn,Zn){return Bn(qn.from(),Zn.from())}),ce=gn(ae,pe);for(var Ae=1;Ae<ae.length;Ae++){var Oe=ae[Ae],Qe=ae[Ae-1],_e=Bn(Qe.to(),Oe.from());if(he&&!Oe.empty()?_e>0:_e>=0){var ct=si(Qe.from(),Oe.from()),fn=Ei(Qe.to(),Oe.to()),kt=Qe.empty()?Oe.from()==Oe.head:Qe.from()==Qe.head;Ae<=ce&&--ce,ae.splice(--Ae,2,new Aa(kt?fn:ct,kt?ct:fn))}}return new Ul(ae,ce)}function qu(ie,ae){return new Ul([new Aa(ie,ae||ie)],0)}function Sh(ie){return ie.text?Ot(ie.from.line+ie.text.length-1,wt(ie.text).length+(ie.text.length==1?ie.from.ch:0)):ie.to}function Jh(ie,ae){if(Bn(ie,ae.from)<0)return ie;if(Bn(ie,ae.to)<=0)return Sh(ae);var ce=ie.line+ae.text.length-(ae.to.line-ae.from.line)-1,he=ie.ch;return ie.line==ae.to.line&&(he+=Sh(ae).ch-ae.to.ch),Ot(ce,he)}function cc(ie,ae){for(var ce=[],he=0;he<ie.sel.ranges.length;he++){var pe=ie.sel.ranges[he];ce.push(new Aa(Jh(pe.anchor,ae),Jh(pe.head,ae)))}return au(ie.cm,ce,ie.sel.primIndex)}function Nd(ie,ae,ce){return ie.line==ae.line?Ot(ce.line,ie.ch-ae.ch+ce.ch):Ot(ce.line+(ie.line-ae.line),ie.ch)}function fc(ie,ae,ce){for(var he=[],pe=Ot(ie.first,0),Ae=pe,Oe=0;Oe<ae.length;Oe++){var Qe=ae[Oe],_e=Nd(Qe.from,pe,Ae),ct=Nd(Sh(Qe),pe,Ae);if(pe=Qe.to,Ae=ct,ce=="around"){var fn=ie.sel.ranges[Oe],kt=Bn(fn.head,fn.anchor)<0;he[Oe]=new Aa(kt?ct:_e,kt?_e:ct)}else he[Oe]=new Aa(_e,_e)}return new Ul(he,ie.sel.primIndex)}function Xo(ie){ie.doc.mode=yt(ie.options,ie.doc.modeOption),gc(ie)}function gc(ie){ie.doc.iter(function(ae){ae.stateAfter&&(ae.stateAfter=null),ae.styles&&(ae.styles=null)}),ie.doc.modeFrontier=ie.doc.highlightFrontier=ie.doc.first,rs(ie,100),ie.state.modeGen++,ie.curOp&&ca(ie)}function gg(ie,ae){return ae.from.ch==0&&ae.to.ch==0&&wt(ae.text)==""&&(!ie.cm||ie.cm.options.wholeLineUpdateBefore)}function af(ie,ae,ce,he){function pe($r){return ce?ce[$r]:null}function Ae($r,Gr,oo){Ln($r,Gr,oo,he),Fi($r,"change",$r,ae)}function Oe($r,Gr){for(var oo=[],ko=$r;ko<Gr;++ko)oo.push(new tn(ct[ko],pe(ko),he));return oo}var Qe=ae.from,_e=ae.to,ct=ae.text,fn=ai(ie,Qe.line),kt=ai(ie,_e.line),qn=wt(ct),Zn=pe(ct.length-1),Ki=_e.line-Qe.line;if(ae.full)ie.insert(0,Oe(0,ct.length)),ie.remove(ct.length,ie.size-ct.length);else if(gg(ie,ae)){var qi=Oe(0,ct.length-1);Ae(kt,kt.text,Zn),Ki&&ie.remove(Qe.line,Ki),qi.length&&ie.insert(Qe.line,qi)}else if(fn==kt)if(ct.length==1)Ae(fn,fn.text.slice(0,Qe.ch)+qn+fn.text.slice(_e.ch),Zn);else{var mr=Oe(1,ct.length-1);mr.push(new tn(qn+fn.text.slice(_e.ch),Zn,he)),Ae(fn,fn.text.slice(0,Qe.ch)+ct[0],pe(0)),ie.insert(Qe.line+1,mr)}else if(ct.length==1)Ae(fn,fn.text.slice(0,Qe.ch)+ct[0]+kt.text.slice(_e.ch),pe(0)),ie.remove(Qe.line+1,Ki);else{Ae(fn,fn.text.slice(0,Qe.ch)+ct[0],pe(0)),Ae(kt,qn+kt.text.slice(_e.ch),Zn);var Ir=Oe(1,ct.length-1);Ki>1&&ie.remove(Qe.line+1,Ki-1),ie.insert(Qe.line+1,Ir)}Fi(ie,"change",ie,ae)}function Pu(ie,ae,ce){function he(pe,Ae,Oe){if(pe.linked)for(var Qe=0;Qe<pe.linked.length;++Qe){var _e=pe.linked[Qe];if(_e.doc!=Ae){var ct=Oe&&_e.sharedHist;ce&&!ct||(ae(_e.doc,ct),he(_e.doc,pe,ct))}}}he(ie,null,!0)}function sf(ie,ae){if(ae.cm)throw new Error("This document is already in use.");ie.doc=ae,ae.cm=ie,qr(ie),Xo(ie),pc(ie),ie.options.lineWrapping||Vt(ie),ie.options.mode=ae.modeOption,ca(ie)}function pc(ie){(ie.doc.direction=="rtl"?ln:Ze)(ie.display.lineDiv,"CodeMirror-rtl")}function iv(ie){lo(ie,function(){pc(ie),ca(ie)})}function Bd(ie){this.done=[],this.undone=[],this.undoDepth=1/0,this.lastModTime=this.lastSelTime=0,this.lastOp=this.lastSelOp=null,this.lastOrigin=this.lastSelOrigin=null,this.generation=this.maxGeneration=ie||1}function lf(ie,ae){var ce={from:_n(ae.from),to:Sh(ae),text:Pn(ie,ae.from,ae.to)};return xh(ie,ce,ae.from.line,ae.to.line+1),Pu(ie,function(he){return xh(he,ce,ae.from.line,ae.to.line+1)},!0),ce}function Td(ie){for(;ie.length;){var ae=wt(ie);if(ae.ranges)ie.pop();else break}}function mc(ie,ae){if(ae)return Td(ie.done),wt(ie.done);if(ie.done.length&&!wt(ie.done).ranges)return wt(ie.done);if(ie.done.length>1&&!ie.done[ie.done.length-2].ranges)return ie.done.pop(),wt(ie.done)}function vc(ie,ae,ce,he){var pe=ie.history;pe.undone.length=0;var Ae=+new Date,Oe,Qe;if((pe.lastOp==he||pe.lastOrigin==ae.origin&&ae.origin&&(ae.origin.charAt(0)=="+"&&pe.lastModTime>Ae-(ie.cm?ie.cm.options.historyEventDelay:500)||ae.origin.charAt(0)=="*"))&&(Oe=mc(pe,pe.lastOp==he)))Qe=wt(Oe.changes),Bn(ae.from,ae.to)==0&&Bn(ae.from,Qe.to)==0?Qe.to=Sh(ae):Oe.changes.push(lf(ie,ae));else{var _e=wt(pe.done);for((!_e||!_e.ranges)&&Od(ie.sel,pe.done),Oe={changes:[lf(ie,ae)],generation:pe.generation},pe.done.push(Oe);pe.done.length>pe.undoDepth;)pe.done.shift(),pe.done[0].ranges||pe.done.shift()}pe.done.push(ce),pe.generation=++pe.maxGeneration,pe.lastModTime=pe.lastSelTime=Ae,pe.lastOp=pe.lastSelOp=he,pe.lastOrigin=pe.lastSelOrigin=ae.origin,Qe||Xt(ie,"historyAdded")}function pg(ie,ae,ce,he){var pe=ae.charAt(0);return pe=="*"||pe=="+"&&ce.ranges.length==he.ranges.length&&ce.somethingSelected()==he.somethingSelected()&&new Date-ie.history.lastSelTime<=(ie.cm?ie.cm.options.historyEventDelay:500)}function yc(ie,ae,ce,he){var pe=ie.history,Ae=he&&he.origin;ce==pe.lastSelOp||Ae&&pe.lastSelOrigin==Ae&&(pe.lastModTime==pe.lastSelTime&&pe.lastOrigin==Ae||pg(ie,Ae,wt(pe.done),ae))?pe.done[pe.done.length-1]=ae:Od(ae,pe.done),pe.lastSelTime=+new Date,pe.lastSelOrigin=Ae,pe.lastSelOp=ce,he&&he.clearRedo!==!1&&Td(pe.undone)}function Od(ie,ae){var ce=wt(ae);ce&&ce.ranges&&ce.equals(ie)||ae.push(ie)}function xh(ie,ae,ce,he){var pe=ae["spans_"+ie.id],Ae=0;ie.iter(Math.max(ie.first,ce),Math.min(ie.first+ie.size,he),function(Oe){Oe.markedSpans&&((pe||(pe=ae["spans_"+ie.id]={}))[Ae]=Oe.markedSpans),++Ae})}function $s(ie){if(!ie)return null;for(var ae,ce=0;ce<ie.length;++ce)ie[ce].marker.explicitlyCleared?ae||(ae=ie.slice(0,ce)):ae&&ae.push(ie[ce]);return ae?ae.length?ae:null:ie}function Bu(ie,ae){var ce=ae["spans_"+ie.id];if(!ce)return null;for(var he=[],pe=0;pe<ae.text.length;++pe)he.push($s(ce[pe]));return he}function uf(ie,ae){var ce=Bu(ie,ae),he=ao(ie,ae);if(!ce)return he;if(!he)return ce;for(var pe=0;pe<ce.length;++pe){var Ae=ce[pe],Oe=he[pe];if(Ae&&Oe)e:for(var Qe=0;Qe<Oe.length;++Qe){for(var _e=Oe[Qe],ct=0;ct<Ae.length;++ct)if(Ae[ct].marker==_e.marker)continue e;Ae.push(_e)}else Oe&&(ce[pe]=Oe)}return ce}function $u(ie,ae,ce){for(var he=[],pe=0;pe<ie.length;++pe){var Ae=ie[pe];if(Ae.ranges){he.push(ce?Ul.prototype.deepCopy.call(Ae):Ae);continue}var Oe=Ae.changes,Qe=[];he.push({changes:Qe});for(var _e=0;_e<Oe.length;++_e){var ct=Oe[_e],fn=void 0;if(Qe.push({from:ct.from,to:ct.to,text:ct.text}),ae)for(var kt in ct)(fn=kt.match(/^spans_(\d+)$/))&&gn(ae,Number(fn[1]))>-1&&(wt(Qe)[kt]=ct[kt],delete ct[kt])}}return he}function hf(ie,ae,ce,he){if(he){var pe=ie.anchor;if(ce){var Ae=Bn(ae,pe)<0;Ae!=Bn(ce,pe)<0?(pe=ae,ae=ce):Ae!=Bn(ae,ce)<0&&(ae=ce)}return new Aa(pe,ae)}else return new Aa(ce||ae,ae)}function df(ie,ae,ce,he,pe){pe==null&&(pe=ie.cm&&(ie.cm.display.shift||ie.extend)),Ks(ie,new Ul([hf(ie.sel.primary(),ae,ce,pe)],0),he)}function Kp(ie,ae,ce){for(var he=[],pe=ie.cm&&(ie.cm.display.shift||ie.extend),Ae=0;Ae<ie.sel.ranges.length;Ae++)he[Ae]=hf(ie.sel.ranges[Ae],ae[Ae],null,pe);var Oe=au(ie.cm,he,ie.sel.primIndex);Ks(ie,Oe,ce)}function wh(ie,ae,ce,he){var pe=ie.sel.ranges.slice(0);pe[ae]=ce,Ks(ie,au(ie.cm,pe,ie.sel.primIndex),he)}function Qh(ie,ae,ce,he){Ks(ie,qu(ae,ce),he)}function Yp(ie,ae,ce){var he={ranges:ae.ranges,update:function(pe){this.ranges=[];for(var Ae=0;Ae<pe.length;Ae++)this.ranges[Ae]=new Aa(yi(ie,pe[Ae].anchor),yi(ie,pe[Ae].head))},origin:ce&&ce.origin};return Xt(ie,"beforeSelectionChange",ie,he),ie.cm&&Xt(ie.cm,"beforeSelectionChange",ie.cm,he),he.ranges!=ae.ranges?au(ie.cm,he.ranges,he.ranges.length-1):ae}function cf(ie,ae,ce){var he=ie.history.done,pe=wt(he);pe&&pe.ranges?(he[he.length-1]=ae,qh(ie,ae,ce)):Ks(ie,ae,ce)}function Ks(ie,ae,ce){qh(ie,ae,ce),yc(ie,ie.sel,ie.cm?ie.cm.curOp.id:NaN,ce)}function qh(ie,ae,ce){(Un(ie,"beforeSelectionChange")||ie.cm&&Un(ie.cm,"beforeSelectionChange"))&&(ae=Yp(ie,ae,ce));var he=ce&&ce.bias||(Bn(ae.primary().head,ie.sel.primary().head)<0?-1:1);mg(ie,xc(ie,ae,he,!0)),!(ce&&ce.scroll===!1)&&ie.cm&&Vs(ie.cm)}function mg(ie,ae){ae.equals(ie.sel)||(ie.sel=ae,ie.cm&&(ie.cm.curOp.updateInput=1,ie.cm.curOp.selectionChanged=!0,bn(ie.cm)),Fi(ie,"cursorActivity",ie))}function Sc(ie){mg(ie,xc(ie,ie.sel,null,!1))}function xc(ie,ae,ce,he){for(var pe,Ae=0;Ae<ae.ranges.length;Ae++){var Oe=ae.ranges[Ae],Qe=ae.ranges.length==ie.sel.ranges.length&&ie.sel.ranges[Ae],_e=wc(ie,Oe.anchor,Qe&&Qe.anchor,ce,he),ct=wc(ie,Oe.head,Qe&&Qe.head,ce,he);(pe||_e!=Oe.anchor||ct!=Oe.head)&&(pe||(pe=ae.ranges.slice(0,Ae)),pe[Ae]=new Aa(_e,ct))}return pe?au(ie.cm,pe,ae.primIndex):ae}function eh(ie,ae,ce,he,pe){var Ae=ai(ie,ae.line);if(Ae.markedSpans)for(var Oe=0;Oe<Ae.markedSpans.length;++Oe){var Qe=Ae.markedSpans[Oe],_e=Qe.marker,ct="selectLeft"in _e?!_e.selectLeft:_e.inclusiveLeft,fn="selectRight"in _e?!_e.selectRight:_e.inclusiveRight;if((Qe.from==null||(ct?Qe.from<=ae.ch:Qe.from<ae.ch))&&(Qe.to==null||(fn?Qe.to>=ae.ch:Qe.to>ae.ch))){if(pe&&(Xt(_e,"beforeCursorEnter"),_e.explicitlyCleared))if(Ae.markedSpans){--Oe;continue}else break;if(!_e.atomic)continue;if(ce){var kt=_e.find(he<0?1:-1),qn=void 0;if((he<0?fn:ct)&&(kt=vg(ie,kt,-he,kt&&kt.line==ae.line?Ae:null)),kt&&kt.line==ae.line&&(qn=Bn(kt,ce))&&(he<0?qn<0:qn>0))return eh(ie,kt,ae,he,pe)}var Zn=_e.find(he<0?-1:1);return(he<0?ct:fn)&&(Zn=vg(ie,Zn,he,Zn.line==ae.line?Ae:null)),Zn?eh(ie,Zn,ae,he,pe):null}}return ae}function wc(ie,ae,ce,he,pe){var Ae=he||1,Oe=eh(ie,ae,ce,Ae,pe)||!pe&&eh(ie,ae,ce,Ae,!0)||eh(ie,ae,ce,-Ae,pe)||!pe&&eh(ie,ae,ce,-Ae,!0);return Oe||(ie.cantEdit=!0,Ot(ie.first,0))}function vg(ie,ae,ce,he){return ce<0&&ae.ch==0?ae.line>ie.first?yi(ie,Ot(ae.line-1)):null:ce>0&&ae.ch==(he||ai(ie,ae.line)).text.length?ae.line<ie.first+ie.size-1?Ot(ae.line+1,0):null:new Ot(ae.line,ae.ch+ce)}function as(ie){ie.setSelection(Ot(ie.firstLine(),0),Ot(ie.lastLine()),rn)}function Pc(ie,ae,ce){var he={canceled:!1,from:ae.from,to:ae.to,text:ae.text,origin:ae.origin,cancel:function(){return he.canceled=!0}};return ce&&(he.update=function(pe,Ae,Oe,Qe){pe&&(he.from=yi(ie,pe)),Ae&&(he.to=yi(ie,Ae)),Oe&&(he.text=Oe),Qe!==void 0&&(he.origin=Qe)}),Xt(ie,"beforeChange",ie,he),ie.cm&&Xt(ie.cm,"beforeChange",ie.cm,he),he.canceled?(ie.cm&&(ie.cm.curOp.updateInput=2),null):{from:he.from,to:he.to,text:he.text,origin:he.origin}}function Ph(ie,ae,ce){if(ie.cm){if(!ie.cm.curOp)return co(ie.cm,Ph)(ie,ae,ce);if(ie.cm.state.suppressEdits)return}if(!((Un(ie,"beforeChange")||ie.cm&&Un(ie.cm,"beforeChange"))&&(ae=Pc(ie,ae,!0),!ae))){var he=Gi&&!ce&&Vn(ie,ae.from,ae.to);if(he)for(var pe=he.length-1;pe>=0;--pe)$h(ie,{from:he[pe].from,to:he[pe].to,text:pe?[""]:ae.text,origin:ae.origin});else $h(ie,ae)}}function $h(ie,ae){if(!(ae.text.length==1&&ae.text[0]==""&&Bn(ae.from,ae.to)==0)){var ce=cc(ie,ae);vc(ie,ae,ce,ie.cm?ie.cm.curOp.id:NaN),Id(ie,ae,ce,ao(ie,ae));var he=[];Pu(ie,function(pe,Ae){!Ae&&gn(he,pe.history)==-1&&(Sg(pe.history,ae),he.push(pe.history)),Id(pe,ae,null,ao(pe,ae))})}}function Cc(ie,ae,ce){var he=ie.cm&&ie.cm.state.suppressEdits;if(!(he&&!ce)){for(var pe=ie.history,Ae,Oe=ie.sel,Qe=ae=="undo"?pe.done:pe.undone,_e=ae=="undo"?pe.undone:pe.done,ct=0;ct<Qe.length&&(Ae=Qe[ct],!(ce?Ae.ranges&&!Ae.equals(ie.sel):!Ae.ranges));ct++);if(ct!=Qe.length){for(pe.lastOrigin=pe.lastSelOrigin=null;;)if(Ae=Qe.pop(),Ae.ranges){if(Od(Ae,_e),ce&&!Ae.equals(ie.sel)){Ks(ie,Ae,{clearRedo:!1});return}Oe=Ae}else if(he){Qe.push(Ae);return}else break;var fn=[];Od(Oe,_e),_e.push({changes:fn,generation:pe.generation}),pe.generation=Ae.generation||++pe.maxGeneration;for(var kt=Un(ie,"beforeChange")||ie.cm&&Un(ie.cm,"beforeChange"),qn=function(qi){var mr=Ae.changes[qi];if(mr.origin=ae,kt&&!Pc(ie,mr,!1))return Qe.length=0,{};fn.push(lf(ie,mr));var Ir=qi?cc(ie,mr):wt(Qe);Id(ie,mr,Ir,uf(ie,mr)),!qi&&ie.cm&&ie.cm.scrollIntoView({from:mr.from,to:Sh(mr)});var $r=[];Pu(ie,function(Gr,oo){!oo&&gn($r,Gr.history)==-1&&(Sg(Gr.history,mr),$r.push(Gr.history)),Id(Gr,mr,null,uf(Gr,mr))})},Zn=Ae.changes.length-1;Zn>=0;--Zn){var Ki=qn(Zn);if(Ki)return Ki.v}}}}function yg(ie,ae){if(ae!=0&&(ie.first+=ae,ie.sel=new Ul(Ai(ie.sel.ranges,function(pe){return new Aa(Ot(pe.anchor.line+ae,pe.anchor.ch),Ot(pe.head.line+ae,pe.head.ch))}),ie.sel.primIndex),ie.cm)){ca(ie.cm,ie.first,ie.first-ae,ae);for(var ce=ie.cm.display,he=ce.viewFrom;he<ce.viewTo;he++)So(ie.cm,he,"gutter")}}function Id(ie,ae,ce,he){if(ie.cm&&!ie.cm.curOp)return co(ie.cm,Id)(ie,ae,ce,he);if(ae.to.line<ie.first){yg(ie,ae.text.length-1-(ae.to.line-ae.from.line));return}if(!(ae.from.line>ie.lastLine())){if(ae.from.line<ie.first){var pe=ae.text.length-1-(ie.first-ae.from.line);yg(ie,pe),ae={from:Ot(ie.first,0),to:Ot(ae.to.line+pe,ae.to.ch),text:[wt(ae.text)],origin:ae.origin}}var Ae=ie.lastLine();ae.to.line>Ae&&(ae={from:ae.from,to:Ot(Ae,ai(ie,Ae).text.length),text:[ae.text[0]],origin:ae.origin}),ae.removed=Pn(ie,ae.from,ae.to),ce||(ce=cc(ie,ae)),ie.cm?Up(ie.cm,ae,he):af(ie,ae,he),qh(ie,ce,rn),ie.cantEdit&&wc(ie,Ot(ie.firstLine(),0))&&(ie.cantEdit=!1)}}function Up(ie,ae,ce){var he=ie.doc,pe=ie.display,Ae=ae.from,Oe=ae.to,Qe=!1,_e=Ae.line;ie.options.lineWrapping||(_e=Ve(Rt(ai(he,Ae.line))),he.iter(_e,Oe.line+1,function(Zn){if(Zn==pe.maxLine)return Qe=!0,!0})),he.sel.contains(ae.from,ae.to)>-1&&bn(ie),af(he,ae,ce,da(ie)),ie.options.lineWrapping||(he.iter(_e,Ae.line+ae.text.length,function(Zn){var Ki=Wt(Zn);Ki>pe.maxLineLength&&(pe.maxLine=Zn,pe.maxLineLength=Ki,pe.maxLineChanged=!0,Qe=!1)}),Qe&&(ie.curOp.updateMaxLine=!0)),er(he,Ae.line),rs(ie,400);var ct=ae.text.length-(Oe.line-Ae.line)-1;ae.full?ca(ie):Ae.line==Oe.line&&ae.text.length==1&&!gg(ie.doc,ae)?So(ie,Ae.line,"text"):ca(ie,Ae.line,Oe.line+1,ct);var fn=Un(ie,"changes"),kt=Un(ie,"change");if(kt||fn){var qn={from:Ae,to:Oe,text:ae.text,removed:ae.removed,origin:ae.origin};kt&&Fi(ie,"change",ie,qn),fn&&(ie.curOp.changeObjs||(ie.curOp.changeObjs=[])).push(qn)}ie.display.selForContextMenu=null}function ed(ie,ae,ce,he,pe){var Ae;he||(he=ce),Bn(he,ce)<0&&(Ae=[he,ce],ce=Ae[0],he=Ae[1]),typeof ae=="string"&&(ae=ie.splitLines(ae)),Ph(ie,{from:ce,to:he,text:ae,origin:pe})}function Xl(ie,ae,ce,he){ce<ie.line?ie.line+=he:ae<ie.line&&(ie.line=ae,ie.ch=0)}function Xp(ie,ae,ce,he){for(var pe=0;pe<ie.length;++pe){var Ae=ie[pe],Oe=!0;if(Ae.ranges){Ae.copied||(Ae=ie[pe]=Ae.deepCopy(),Ae.copied=!0);for(var Qe=0;Qe<Ae.ranges.length;Qe++)Xl(Ae.ranges[Qe].anchor,ae,ce,he),Xl(Ae.ranges[Qe].head,ae,ce,he);continue}for(var _e=0;_e<Ae.changes.length;++_e){var ct=Ae.changes[_e];if(ce<ct.from.line)ct.from=Ot(ct.from.line+he,ct.from.ch),ct.to=Ot(ct.to.line+he,ct.to.ch);else if(ae<=ct.to.line){Oe=!1;break}}Oe||(ie.splice(0,pe+1),pe=0)}}function Sg(ie,ae){var ce=ae.from.line,he=ae.to.line,pe=ae.text.length-(he-ce)-1;Xp(ie.done,ce,he,pe),Xp(ie.undone,ce,he,pe)}function td(ie,ae,ce,he){var pe=ae,Ae=ae;return typeof ae=="number"?Ae=ai(ie,Pi(ie,ae)):pe=Ve(ae),pe==null?null:(he(Ae,pe)&&ie.cm&&So(ie.cm,pe,ce),Ae)}function Rd(ie){this.lines=ie,this.parent=null;for(var ae=0,ce=0;ce<ie.length;++ce)ie[ce].parent=this,ae+=ie[ce].height;this.height=ae}Rd.prototype={chunkSize:function(){return this.lines.length},removeInner:function(ie,ae){for(var ce=ie,he=ie+ae;ce<he;++ce){var pe=this.lines[ce];this.height-=pe.height,Wn(pe),Fi(pe,"delete")}this.lines.splice(ie,ae)},collapse:function(ie){ie.push.apply(ie,this.lines)},insertInner:function(ie,ae,ce){this.height+=ce,this.lines=this.lines.slice(0,ie).concat(ae).concat(this.lines.slice(ie));for(var he=0;he<ae.length;++he)ae[he].parent=this},iterN:function(ie,ae,ce){for(var he=ie+ae;ie<he;++ie)if(ce(this.lines[ie]))return!0}};function Xa(ie){this.children=ie;for(var ae=0,ce=0,he=0;he<ie.length;++he){var pe=ie[he];ae+=pe.chunkSize(),ce+=pe.height,pe.parent=this}this.size=ae,this.height=ce,this.parent=null}Xa.prototype={chunkSize:function(){return this.size},removeInner:function(ie,ae){this.size-=ae;for(var ce=0;ce<this.children.length;++ce){var he=this.children[ce],pe=he.chunkSize();if(ie<pe){var Ae=Math.min(ae,pe-ie),Oe=he.height;if(he.removeInner(ie,Ae),this.height-=Oe-he.height,pe==Ae&&(this.children.splice(ce--,1),he.parent=null),(ae-=Ae)==0)break;ie=0}else ie-=pe}if(this.size-ae<25&&(this.children.length>1||!(this.children[0]instanceof Rd))){var Qe=[];this.collapse(Qe),this.children=[new Rd(Qe)],this.children[0].parent=this}},collapse:function(ie){for(var ae=0;ae<this.children.length;++ae)this.children[ae].collapse(ie)},insertInner:function(ie,ae,ce){this.size+=ae.length,this.height+=ce;for(var he=0;he<this.children.length;++he){var pe=this.children[he],Ae=pe.chunkSize();if(ie<=Ae){if(pe.insertInner(ie,ae,ce),pe.lines&&pe.lines.length>50){for(var Oe=pe.lines.length%25+25,Qe=Oe;Qe<pe.lines.length;){var _e=new Rd(pe.lines.slice(Qe,Qe+=25));pe.height-=_e.height,this.children.splice(++he,0,_e),_e.parent=this}pe.lines=pe.lines.slice(0,Oe),this.maybeSpill()}break}ie-=Ae}},maybeSpill:function(){if(!(this.children.length<=10)){var ie=this;do{var ae=ie.children.splice(ie.children.length-5,5),ce=new Xa(ae);if(ie.parent){ie.size-=ce.size,ie.height-=ce.height;var pe=gn(ie.parent.children,ie);ie.parent.children.splice(pe+1,0,ce)}else{var he=new Xa(ie.children);he.parent=ie,ie.children=[he,ce],ie=he}ce.parent=ie.parent}while(ie.children.length>10);ie.parent.maybeSpill()}},iterN:function(ie,ae,ce){for(var he=0;he<this.children.length;++he){var pe=this.children[he],Ae=pe.chunkSize();if(ie<Ae){var Oe=Math.min(ae,Ae-ie);if(pe.iterN(ie,Oe,ce))return!0;if((ae-=Oe)==0)break;ie=0}else ie-=Ae}}};var th=function(ie,ae,ce){if(ce)for(var he in ce)ce.hasOwnProperty(he)&&(this[he]=ce[he]);this.doc=ie,this.node=ae};th.prototype.clear=function(){var ie=this.doc.cm,ae=this.line.widgets,ce=this.line,he=Ve(ce);if(!(he==null||!ae)){for(var pe=0;pe<ae.length;++pe)ae[pe]==this&&ae.splice(pe--,1);ae.length||(ce.widgets=null);var Ae=Yr(this);fr(ce,Math.max(0,ce.height-Ae)),ie&&(lo(ie,function(){_p(ie,ce,-Ae),So(ie,he,"widget")}),Fi(ie,"lineWidgetCleared",ie,this,he))}},th.prototype.changed=function(){var ie=this,ae=this.height,ce=this.doc.cm,he=this.line;this.height=null;var pe=Yr(this)-ae;pe&&(Re(this.doc,he)||fr(he,he.height+pe),ce&&lo(ce,function(){ce.curOp.forceUpdate=!0,_p(ce,he,pe),Fi(ce,"lineWidgetChanged",ce,ie,Ve(he))}))},ti(th);function _p(ie,ae,ce){lt(ae)<(ie.curOp&&ie.curOp.scrollTop||ie.doc.scrollTop)&&Su(ie,ce)}function ff(ie,ae,ce,he){var pe=new th(ie,ce,he),Ae=ie.cm;return Ae&&pe.noHScroll&&(Ae.display.alignWidgets=!0),td(ie,ae,"widget",function(Oe){var Qe=Oe.widgets||(Oe.widgets=[]);if(pe.insertAt==null?Qe.push(pe):Qe.splice(Math.min(Qe.length-1,Math.max(0,pe.insertAt)),0,pe),pe.line=Oe,Ae&&!Re(ie,Oe)){var _e=lt(Oe)<ie.scrollTop;fr(Oe,Oe.height+Yr(pe)),_e&&Su(Ae,pe.height),Ae.curOp.forceUpdate=!0}return!0}),Ae&&Fi(Ae,"lineWidgetAdded",Ae,pe,typeof ae=="number"?ae:Ve(ae)),pe}var Jp=0,qt=function(ie,ae){this.lines=[],this.type=ae,this.doc=ie,this.id=++Jp};qt.prototype.clear=function(){if(!this.explicitlyCleared){var ie=this.doc.cm,ae=ie&&!ie.curOp;if(ae&&xo(ie),Un(this,"clear")){var ce=this.find();ce&&Fi(this,"clear",ce.from,ce.to)}for(var he=null,pe=null,Ae=0;Ae<this.lines.length;++Ae){var Oe=this.lines[Ae],Qe=Cr(Oe.markedSpans,this);ie&&!this.collapsed?So(ie,Ve(Oe),"text"):ie&&(Qe.to!=null&&(pe=Ve(Oe)),Qe.from!=null&&(he=Ve(Oe))),Oe.markedSpans=Nr(Oe.markedSpans,Qe),Qe.from==null&&this.collapsed&&!Re(this.doc,Oe)&&ie&&fr(Oe,sa(ie.display))}if(ie&&this.collapsed&&!ie.options.lineWrapping)for(var _e=0;_e<this.lines.length;++_e){var ct=Rt(this.lines[_e]),fn=Wt(ct);fn>ie.display.maxLineLength&&(ie.display.maxLine=ct,ie.display.maxLineLength=fn,ie.display.maxLineChanged=!0)}he!=null&&ie&&this.collapsed&&ca(ie,he,pe+1),this.lines.length=0,this.explicitlyCleared=!0,this.atomic&&this.doc.cantEdit&&(this.doc.cantEdit=!1,ie&&Sc(ie.doc)),ie&&Fi(ie,"markerCleared",ie,this,he,pe),ae&&Ua(ie),this.parent&&this.parent.clear()}},qt.prototype.find=function(ie,ae){ie==null&&this.type=="bookmark"&&(ie=1);for(var ce,he,pe=0;pe<this.lines.length;++pe){var Ae=this.lines[pe],Oe=Cr(Ae.markedSpans,this);if(Oe.from!=null&&(ce=Ot(ae?Ae:Ve(Ae),Oe.from),ie==-1))return ce;if(Oe.to!=null&&(he=Ot(ae?Ae:Ve(Ae),Oe.to),ie==1))return he}return ce&&{from:ce,to:he}},qt.prototype.changed=function(){var ie=this,ae=this.find(-1,!0),ce=this,he=this.doc.cm;!ae||!he||lo(he,function(){var pe=ae.line,Ae=Ve(ae.line),Oe=Jo(he,Ae);if(Oe&&(wa(Oe),he.curOp.selectionChanged=he.curOp.forceUpdate=!0),he.curOp.updateMaxLine=!0,!Re(ce.doc,pe)&&ce.height!=null){var Qe=ce.height;ce.height=null;var _e=Yr(ce)-Qe;_e&&fr(pe,pe.height+_e)}Fi(he,"markerChanged",he,ie)})},qt.prototype.attachLine=function(ie){if(!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(!ae.maybeHiddenMarkers||gn(ae.maybeHiddenMarkers,this)==-1)&&(ae.maybeUnhiddenMarkers||(ae.maybeUnhiddenMarkers=[])).push(this)}this.lines.push(ie)},qt.prototype.detachLine=function(ie){if(this.lines.splice(gn(this.lines,ie),1),!this.lines.length&&this.doc.cm){var ae=this.doc.cm.curOp;(ae.maybeHiddenMarkers||(ae.maybeHiddenMarkers=[])).push(this)}},ti(qt);function nd(ie,ae,ce,he,pe){if(he&&he.shared)return Qp(ie,ae,ce,he,pe);if(ie.cm&&!ie.cm.curOp)return co(ie.cm,nd)(ie,ae,ce,he,pe);var Ae=new qt(ie,pe),Oe=Bn(ae,ce);if(he&&hn(he,Ae,!1),Oe>0||Oe==0&&Ae.clearWhenEmpty!==!1)return Ae;if(Ae.replacedWith&&(Ae.collapsed=!0,Ae.widgetNode=At("span",[Ae.replacedWith],"CodeMirror-widget"),he.handleMouseEvents||Ae.widgetNode.setAttribute("cm-ignore-events","true"),he.insertLeft&&(Ae.widgetNode.insertLeft=!0)),Ae.collapsed){if(Gt(ie,ae.line,ae,ce,Ae)||ae.line!=ce.line&&Gt(ie,ce.line,ae,ce,Ae))throw new Error("Inserting collapsed marker partially overlapping an existing one");yn()}Ae.addToHistory&&vc(ie,{from:ae,to:ce,origin:"markText"},ie.sel,NaN);var Qe=ae.line,_e=ie.cm,ct;if(ie.iter(Qe,ce.line+1,function(kt){_e&&Ae.collapsed&&!_e.options.lineWrapping&&Rt(kt)==_e.display.maxLine&&(ct=!0),Ae.collapsed&&Qe!=ae.line&&fr(kt,0),to(kt,new bi(Ae,Qe==ae.line?ae.ch:null,Qe==ce.line?ce.ch:null)),++Qe}),Ae.collapsed&&ie.iter(ae.line,ce.line+1,function(kt){Re(ie,kt)&&fr(kt,0)}),Ae.clearOnEnter&&wn(Ae,"beforeCursorEnter",function(){return Ae.clear()}),Ae.readOnly&&(sr(),(ie.history.done.length||ie.history.undone.length)&&ie.clearHistory()),Ae.collapsed&&(Ae.id=++Jp,Ae.atomic=!0),_e){if(ct&&(_e.curOp.updateMaxLine=!0),Ae.collapsed)ca(_e,ae.line,ce.line+1);else if(Ae.className||Ae.startStyle||Ae.endStyle||Ae.css||Ae.attributes||Ae.title)for(var fn=ae.line;fn<=ce.line;fn++)So(_e,fn,"text");Ae.atomic&&Sc(_e.doc),Fi(_e,"markerAdded",_e,Ae)}return Ae}var Tu=function(ie,ae){this.markers=ie,this.primary=ae;for(var ce=0;ce<ie.length;++ce)ie[ce].parent=this};Tu.prototype.clear=function(){if(!this.explicitlyCleared){this.explicitlyCleared=!0;for(var ie=0;ie<this.markers.length;++ie)this.markers[ie].clear();Fi(this,"clear")}},Tu.prototype.find=function(ie,ae){return this.primary.find(ie,ae)},ti(Tu);function Qp(ie,ae,ce,he,pe){he=hn(he),he.shared=!1;var Ae=[nd(ie,ae,ce,he,pe)],Oe=Ae[0],Qe=he.widgetNode;return Pu(ie,function(_e){Qe&&(he.widgetNode=Qe.cloneNode(!0)),Ae.push(nd(_e,yi(_e,ae),yi(_e,ce),he,pe));for(var ct=0;ct<_e.linked.length;++ct)if(_e.linked[ct].isParent)return;Oe=wt(Ae)}),new Tu(Ae,Oe)}function xg(ie){return ie.findMarks(Ot(ie.first,0),ie.clipPos(Ot(ie.lastLine())),function(ae){return ae.parent})}function qp(ie,ae){for(var ce=0;ce<ae.length;ce++){var he=ae[ce],pe=he.find(),Ae=ie.clipPos(pe.from),Oe=ie.clipPos(pe.to);if(Bn(Ae,Oe)){var Qe=nd(ie,Ae,Oe,he.primary,he.primary.type);he.markers.push(Qe),Qe.parent=he}}}function wg(ie){for(var ae=function(he){var pe=ie[he],Ae=[pe.primary.doc];Pu(pe.primary.doc,function(_e){return Ae.push(_e)});for(var Oe=0;Oe<pe.markers.length;Oe++){var Qe=pe.markers[Oe];gn(Ae,Qe.doc)==-1&&(Qe.parent=null,pe.markers.splice(Oe--,1))}},ce=0;ce<ie.length;ce++)ae(ce)}var rv=0,Is=function(ie,ae,ce,he,pe){if(!(this instanceof Is))return new Is(ie,ae,ce,he,pe);ce==null&&(ce=0),Xa.call(this,[new Rd([new tn("",null)])]),this.first=ce,this.scrollTop=this.scrollLeft=0,this.cantEdit=!1,this.cleanGeneration=1,this.modeFrontier=this.highlightFrontier=ce;var Ae=Ot(ce,0);this.sel=qu(Ae),this.history=new Bd(null),this.id=++rv,this.modeOption=ae,this.lineSep=he,this.direction=pe=="rtl"?"rtl":"ltr",this.extend=!1,typeof ie=="string"&&(ie=this.splitLines(ie)),af(this,{from:Ae,to:Ae,text:ie}),Ks(this,qu(Ae),rn)};Is.prototype=Le(Xa.prototype,{constructor:Is,iter:function(ie,ae,ce){ce?this.iterN(ie-this.first,ae-ie,ce):this.iterN(this.first,this.first+this.size,ie)},insert:function(ie,ae){for(var ce=0,he=0;he<ae.length;++he)ce+=ae[he].height;this.insertInner(ie-this.first,ae,ce)},remove:function(ie,ae){this.removeInner(ie-this.first,ae)},getValue:function(ie){var ae=zi(this,this.first,this.first+this.size);return ie===!1?ae:ae.join(ie||this.lineSeparator())},setValue:ra(function(ie){var ae=Ot(this.first,0),ce=this.first+this.size-1;Ph(this,{from:ae,to:Ot(ce,ai(this,ce).text.length),text:this.splitLines(ie),origin:"setValue",full:!0},!0),this.cm&&Yl(this.cm,0,0),Ks(this,qu(ae),rn)}),replaceRange:function(ie,ae,ce,he){ae=yi(this,ae),ce=ce?yi(this,ce):ae,ed(this,ie,ae,ce,he)},getRange:function(ie,ae,ce){var he=Pn(this,yi(this,ie),yi(this,ae));return ce===!1?he:he.join(ce||this.lineSeparator())},getLine:function(ie){var ae=this.getLineHandle(ie);return ae&&ae.text},getLineHandle:function(ie){if(Dn(this,ie))return ai(this,ie)},getLineNumber:function(ie){return Ve(ie)},getLineHandleVisualStart:function(ie){return typeof ie=="number"&&(ie=ai(this,ie)),Rt(ie)},lineCount:function(){return this.size},firstLine:function(){return this.first},lastLine:function(){return this.first+this.size-1},clipPos:function(ie){return yi(this,ie)},getCursor:function(ie){var ae=this.sel.primary(),ce;return ie==null||ie=="head"?ce=ae.head:ie=="anchor"?ce=ae.anchor:ie=="end"||ie=="to"||ie===!1?ce=ae.to():ce=ae.from(),ce},listSelections:function(){return this.sel.ranges},somethingSelected:function(){return this.sel.somethingSelected()},setCursor:ra(function(ie,ae,ce){Qh(this,yi(this,typeof ie=="number"?Ot(ie,ae||0):ie),null,ce)}),setSelection:ra(function(ie,ae,ce){Qh(this,yi(this,ie),yi(this,ae||ie),ce)}),extendSelection:ra(function(ie,ae,ce){df(this,yi(this,ie),ae&&yi(this,ae),ce)}),extendSelections:ra(function(ie,ae){Kp(this,Ri(this,ie),ae)}),extendSelectionsBy:ra(function(ie,ae){var ce=Ai(this.sel.ranges,ie);Kp(this,Ri(this,ce),ae)}),setSelections:ra(function(ie,ae,ce){if(ie.length){for(var he=[],pe=0;pe<ie.length;pe++)he[pe]=new Aa(yi(this,ie[pe].anchor),yi(this,ie[pe].head));ae==null&&(ae=Math.min(ie.length-1,this.sel.primIndex)),Ks(this,au(this.cm,he,ae),ce)}}),addSelection:ra(function(ie,ae,ce){var he=this.sel.ranges.slice(0);he.push(new Aa(yi(this,ie),yi(this,ae||ie))),Ks(this,au(this.cm,he,he.length-1),ce)}),getSelection:function(ie){for(var ae=this.sel.ranges,ce,he=0;he<ae.length;he++){var pe=Pn(this,ae[he].from(),ae[he].to());ce=ce?ce.concat(pe):pe}return ie===!1?ce:ce.join(ie||this.lineSeparator())},getSelections:function(ie){for(var ae=[],ce=this.sel.ranges,he=0;he<ce.length;he++){var pe=Pn(this,ce[he].from(),ce[he].to());ie!==!1&&(pe=pe.join(ie||this.lineSeparator())),ae[he]=pe}return ae},replaceSelection:function(ie,ae,ce){for(var he=[],pe=0;pe<this.sel.ranges.length;pe++)he[pe]=ie;this.replaceSelections(he,ae,ce||"+input")},replaceSelections:ra(function(ie,ae,ce){for(var he=[],pe=this.sel,Ae=0;Ae<pe.ranges.length;Ae++){var Oe=pe.ranges[Ae];he[Ae]={from:Oe.from(),to:Oe.to(),text:this.splitLines(ie[Ae]),origin:ce}}for(var Qe=ae&&ae!="end"&&fc(this,he,ae),_e=he.length-1;_e>=0;_e--)Ph(this,he[_e]);Qe?cf(this,Qe):this.cm&&Vs(this.cm)}),undo:ra(function(){Cc(this,"undo")}),redo:ra(function(){Cc(this,"redo")}),undoSelection:ra(function(){Cc(this,"undo",!0)}),redoSelection:ra(function(){Cc(this,"redo",!0)}),setExtending:function(ie){this.extend=ie},getExtending:function(){return this.extend},historySize:function(){for(var ie=this.history,ae=0,ce=0,he=0;he<ie.done.length;he++)ie.done[he].ranges||++ae;for(var pe=0;pe<ie.undone.length;pe++)ie.undone[pe].ranges||++ce;return{undo:ae,redo:ce}},clearHistory:function(){var ie=this;this.history=new Bd(this.history.maxGeneration),Pu(this,function(ae){return ae.history=ie.history},!0)},markClean:function(){this.cleanGeneration=this.changeGeneration(!0)},changeGeneration:function(ie){return ie&&(this.history.lastOp=this.history.lastSelOp=this.history.lastOrigin=null),this.history.generation},isClean:function(ie){return this.history.generation==(ie||this.cleanGeneration)},getHistory:function(){return{done:$u(this.history.done),undone:$u(this.history.undone)}},setHistory:function(ie){var ae=this.history=new Bd(this.history.maxGeneration);ae.done=$u(ie.done.slice(0),null,!0),ae.undone=$u(ie.undone.slice(0),null,!0)},setGutterMarker:ra(function(ie,ae,ce){return td(this,ie,"gutter",function(he){var pe=he.gutterMarkers||(he.gutterMarkers={});return pe[ae]=ce,!ce&&ke(pe)&&(he.gutterMarkers=null),!0})}),clearGutter:ra(function(ie){var ae=this;this.iter(function(ce){ce.gutterMarkers&&ce.gutterMarkers[ie]&&td(ae,ce,"gutter",function(){return ce.gutterMarkers[ie]=null,ke(ce.gutterMarkers)&&(ce.gutterMarkers=null),!0})})}),lineInfo:function(ie){var ae;if(typeof ie=="number"){if(!Dn(this,ie)||(ae=ie,ie=ai(this,ie),!ie))return null}else if(ae=Ve(ie),ae==null)return null;return{line:ae,handle:ie,text:ie.text,gutterMarkers:ie.gutterMarkers,textClass:ie.textClass,bgClass:ie.bgClass,wrapClass:ie.wrapClass,widgets:ie.widgets}},addLineClass:ra(function(ie,ae,ce){return td(this,ie,ae=="gutter"?"gutter":"class",function(he){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass";if(!he[pe])he[pe]=ce;else{if(Ie(ce).test(he[pe]))return!1;he[pe]+=" "+ce}return!0})}),removeLineClass:ra(function(ie,ae,ce){return td(this,ie,ae=="gutter"?"gutter":"class",function(he){var pe=ae=="text"?"textClass":ae=="background"?"bgClass":ae=="gutter"?"gutterClass":"wrapClass",Ae=he[pe];if(Ae)if(ce==null)he[pe]=null;else{var Oe=Ae.match(Ie(ce));if(!Oe)return!1;var Qe=Oe.index+Oe[0].length;he[pe]=Ae.slice(0,Oe.index)+(!Oe.index||Qe==Ae.length?"":" ")+Ae.slice(Qe)||null}else return!1;return!0})}),addLineWidget:ra(function(ie,ae,ce){return ff(this,ie,ae,ce)}),removeLineWidget:function(ie){ie.clear()},markText:function(ie,ae,ce){return nd(this,yi(this,ie),yi(this,ae),ce,ce&&ce.type||"range")},setBookmark:function(ie,ae){var ce={replacedWith:ae&&(ae.nodeType==null?ae.widget:ae),insertLeft:ae&&ae.insertLeft,clearWhenEmpty:!1,shared:ae&&ae.shared,handleMouseEvents:ae&&ae.handleMouseEvents};return ie=yi(this,ie),nd(this,ie,ie,ce,"bookmark")},findMarksAt:function(ie){ie=yi(this,ie);var ae=[],ce=ai(this,ie.line).markedSpans;if(ce)for(var he=0;he<ce.length;++he){var pe=ce[he];(pe.from==null||pe.from<=ie.ch)&&(pe.to==null||pe.to>=ie.ch)&&ae.push(pe.marker.parent||pe.marker)}return ae},findMarks:function(ie,ae,ce){ie=yi(this,ie),ae=yi(this,ae);var he=[],pe=ie.line;return this.iter(ie.line,ae.line+1,function(Ae){var Oe=Ae.markedSpans;if(Oe)for(var Qe=0;Qe<Oe.length;Qe++){var _e=Oe[Qe];!(_e.to!=null&&pe==ie.line&&ie.ch>=_e.to||_e.from==null&&pe!=ie.line||_e.from!=null&&pe==ae.line&&_e.from>=ae.ch)&&(!ce||ce(_e.marker))&&he.push(_e.marker.parent||_e.marker)}++pe}),he},getAllMarks:function(){var ie=[];return this.iter(function(ae){var ce=ae.markedSpans;if(ce)for(var he=0;he<ce.length;++he)ce[he].from!=null&&ie.push(ce[he].marker)}),ie},posFromIndex:function(ie){var ae,ce=this.first,he=this.lineSeparator().length;return this.iter(function(pe){var Ae=pe.text.length+he;if(Ae>ie)return ae=ie,!0;ie-=Ae,++ce}),yi(this,Ot(ce,ae))},indexFromPos:function(ie){ie=yi(this,ie);var ae=ie.ch;if(ie.line<this.first||ie.ch<0)return 0;var ce=this.lineSeparator().length;return this.iter(this.first,ie.line,function(he){ae+=he.text.length+ce}),ae},copy:function(ie){var ae=new Is(zi(this,this.first,this.first+this.size),this.modeOption,this.first,this.lineSep,this.direction);return ae.scrollTop=this.scrollTop,ae.scrollLeft=this.scrollLeft,ae.sel=this.sel,ae.extend=!1,ie&&(ae.history.undoDepth=this.history.undoDepth,ae.setHistory(this.getHistory())),ae},linkedDoc:function(ie){ie||(ie={});var ae=this.first,ce=this.first+this.size;ie.from!=null&&ie.from>ae&&(ae=ie.from),ie.to!=null&&ie.to<ce&&(ce=ie.to);var he=new Is(zi(this,ae,ce),ie.mode||this.modeOption,ae,this.lineSep,this.direction);return ie.sharedHist&&(he.history=this.history),(this.linked||(this.linked=[])).push({doc:he,sharedHist:ie.sharedHist}),he.linked=[{doc:this,isParent:!0,sharedHist:ie.sharedHist}],qp(he,xg(this)),he},unlinkDoc:function(ie){if(ie instanceof fa&&(ie=ie.doc),this.linked)for(var ae=0;ae<this.linked.length;++ae){var ce=this.linked[ae];if(ce.doc==ie){this.linked.splice(ae,1),ie.unlinkDoc(this),wg(xg(this));break}}if(ie.history==this.history){var he=[ie.id];Pu(ie,function(pe){return he.push(pe.id)},!0),ie.history=new Bd(null),ie.history.done=$u(this.history.done,he),ie.history.undone=$u(this.history.undone,he)}},iterLinkedDocs:function(ie){Pu(this,ie)},getMode:function(){return this.mode},getEditor:function(){return this.cm},splitLines:function(ie){return this.lineSep?ie.split(this.lineSep):yr(ie)},lineSeparator:function(){return this.lineSep||`
|
|
`},setDirection:ra(function(ie){ie!="rtl"&&(ie="ltr"),ie!=this.direction&&(this.direction=ie,this.iter(function(ae){return ae.order=null}),this.cm&&iv(this.cm))})}),Is.prototype.eachLine=Is.prototype.iter;var Ec=0;function Pg(ie){var ae=this;if(tm(ae),!(pn(ae,ie)||Qr(ae.display,ie))){pi(ie),Mt&&(Ec=+new Date);var ce=Ya(ae,ie,!0),he=ie.dataTransfer.files;if(!(!ce||ae.isReadOnly()))if(he&&he.length&&window.FileReader&&window.File)for(var pe=he.length,Ae=Array(pe),Oe=0,Qe=function(){++Oe==pe&&co(ae,function(){ce=yi(ae.doc,ce);var Zn={from:ce,to:ce,text:ae.doc.splitLines(Ae.filter(function(Ki){return Ki!=null}).join(ae.doc.lineSeparator())),origin:"paste"};Ph(ae.doc,Zn),cf(ae.doc,qu(yi(ae.doc,ce),yi(ae.doc,Sh(Zn))))})()},_e=function(Zn,Ki){if(ae.options.allowDropFileTypes&&gn(ae.options.allowDropFileTypes,Zn.type)==-1){Qe();return}var qi=new FileReader;qi.onerror=function(){return Qe()},qi.onload=function(){var mr=qi.result;if(/[\x00-\x08\x0e-\x1f]{2}/.test(mr)){Qe();return}Ae[Ki]=mr,Qe()},qi.readAsText(Zn)},ct=0;ct<he.length;ct++)_e(he[ct],ct);else{if(ae.state.draggingText&&ae.doc.sel.contains(ce)>-1){ae.state.draggingText(ie),setTimeout(function(){return ae.display.input.focus()},20);return}try{var fn=ie.dataTransfer.getData("Text");if(fn){var kt;if(ae.state.draggingText&&!ae.state.draggingText.copy&&(kt=ae.listSelections()),qh(ae.doc,qu(ce,ce)),kt)for(var qn=0;qn<kt.length;++qn)ed(ae.doc,"",kt[qn].anchor,kt[qn].head,"drag");ae.replaceSelection(fn,"around","paste"),ae.display.input.focus()}}catch(Zn){}}}}function $p(ie,ae){if(Mt&&(!ie.state.draggingText||+new Date-Ec<100)){Yi(ae);return}if(!(pn(ie,ae)||Qr(ie.display,ae))&&(ae.dataTransfer.setData("Text",ie.getSelection()),ae.dataTransfer.effectAllowed="copyMove",ae.dataTransfer.setDragImage&&!zt)){var ce=Xe("img",null,null,"position: fixed; left: 0; top: 0;");ce.src="data:image/gif;base64,R0lGODlhAQABAAAAACH5BAEKAAEALAAAAAABAAEAAAICTAEAOw==",Me&&(ce.width=ce.height=1,ie.display.wrapper.appendChild(ce),ce._top=ce.offsetTop),ae.dataTransfer.setDragImage(ce,0,0),Me&&ce.parentNode.removeChild(ce)}}function em(ie,ae){var ce=Ya(ie,ae);if(ce){var he=document.createDocumentFragment();Ho(ie,ce,he),ie.display.dragCursor||(ie.display.dragCursor=Xe("div",null,"CodeMirror-cursors CodeMirror-dragcursors"),ie.display.lineSpace.insertBefore(ie.display.dragCursor,ie.display.cursorDiv)),Ye(ie.display.dragCursor,he)}}function tm(ie){ie.display.dragCursor&&(ie.display.lineSpace.removeChild(ie.display.dragCursor),ie.display.dragCursor=null)}function nm(ie){if(document.getElementsByClassName){for(var ae=document.getElementsByClassName("CodeMirror"),ce=[],he=0;he<ae.length;he++){var pe=ae[he].CodeMirror;pe&&ce.push(pe)}ce.length&&ce[0].operation(function(){for(var Ae=0;Ae<ce.length;Ae++)ie(ce[Ae])})}}var Cg=!1;function Il(){Cg||(zd(),Cg=!0)}function zd(){var ie;wn(window,"resize",function(){ie==null&&(ie=setTimeout(function(){ie=null,nm(Eg)},100))}),wn(window,"blur",function(){return nm(pl)})}function Eg(ie){var ae=ie.display;ae.cachedCharWidth=ae.cachedTextHeight=ae.cachedPaddingH=null,ae.scrollbarsClipped=!1,ie.setSize()}for(var Ou={3:"Pause",8:"Backspace",9:"Tab",13:"Enter",16:"Shift",17:"Ctrl",18:"Alt",19:"Pause",20:"CapsLock",27:"Esc",32:"Space",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"Left",38:"Up",39:"Right",40:"Down",44:"PrintScrn",45:"Insert",46:"Delete",59:";",61:"=",91:"Mod",92:"Mod",93:"Mod",106:"*",107:"=",109:"-",110:".",111:"/",145:"ScrollLock",173:"-",186:";",187:"=",188:",",189:"-",190:".",191:"/",192:"`",219:"[",220:"\\",221:"]",222:"'",224:"Mod",63232:"Up",63233:"Down",63234:"Left",63235:"Right",63272:"Delete",63273:"Home",63275:"End",63276:"PageUp",63277:"PageDown",63302:"Insert"},Ac=0;Ac<10;Ac++)Ou[Ac+48]=Ou[Ac+96]=String(Ac);for(var gf=65;gf<=90;gf++)Ou[gf]=String.fromCharCode(gf);for(var Lc=1;Lc<=12;Lc++)Ou[Lc+111]=Ou[Lc+63235]="F"+Lc;var xl={};xl.basic={Left:"goCharLeft",Right:"goCharRight",Up:"goLineUp",Down:"goLineDown",End:"goLineEnd",Home:"goLineStartSmart",PageUp:"goPageUp",PageDown:"goPageDown",Delete:"delCharAfter",Backspace:"delCharBefore","Shift-Backspace":"delCharBefore",Tab:"defaultTab","Shift-Tab":"indentAuto",Enter:"newlineAndIndent",Insert:"toggleOverwrite",Esc:"singleSelection"},xl.pcDefault={"Ctrl-A":"selectAll","Ctrl-D":"deleteLine","Ctrl-Z":"undo","Shift-Ctrl-Z":"redo","Ctrl-Y":"redo","Ctrl-Home":"goDocStart","Ctrl-End":"goDocEnd","Ctrl-Up":"goLineUp","Ctrl-Down":"goLineDown","Ctrl-Left":"goGroupLeft","Ctrl-Right":"goGroupRight","Alt-Left":"goLineStart","Alt-Right":"goLineEnd","Ctrl-Backspace":"delGroupBefore","Ctrl-Delete":"delGroupAfter","Ctrl-S":"save","Ctrl-F":"find","Ctrl-G":"findNext","Shift-Ctrl-G":"findPrev","Shift-Ctrl-F":"replace","Shift-Ctrl-R":"replaceAll","Ctrl-[":"indentLess","Ctrl-]":"indentMore","Ctrl-U":"undoSelection","Shift-Ctrl-U":"redoSelection","Alt-U":"redoSelection",fallthrough:"basic"},xl.emacsy={"Ctrl-F":"goCharRight","Ctrl-B":"goCharLeft","Ctrl-P":"goLineUp","Ctrl-N":"goLineDown","Alt-F":"goWordRight","Alt-B":"goWordLeft","Ctrl-A":"goLineStart","Ctrl-E":"goLineEnd","Ctrl-V":"goPageDown","Shift-Ctrl-V":"goPageUp","Ctrl-D":"delCharAfter","Ctrl-H":"delCharBefore","Alt-D":"delWordAfter","Alt-Backspace":"delWordBefore","Ctrl-K":"killLine","Ctrl-T":"transposeChars","Ctrl-O":"openLine"},xl.macDefault={"Cmd-A":"selectAll","Cmd-D":"deleteLine","Cmd-Z":"undo","Shift-Cmd-Z":"redo","Cmd-Y":"redo","Cmd-Home":"goDocStart","Cmd-Up":"goDocStart","Cmd-End":"goDocEnd","Cmd-Down":"goDocEnd","Alt-Left":"goGroupLeft","Alt-Right":"goGroupRight","Cmd-Left":"goLineLeft","Cmd-Right":"goLineRight","Alt-Backspace":"delGroupBefore","Ctrl-Alt-Backspace":"delGroupAfter","Alt-Delete":"delGroupAfter","Cmd-S":"save","Cmd-F":"find","Cmd-G":"findNext","Shift-Cmd-G":"findPrev","Cmd-Alt-F":"replace","Shift-Cmd-Alt-F":"replaceAll","Cmd-[":"indentLess","Cmd-]":"indentMore","Cmd-Backspace":"delWrappedLineLeft","Cmd-Delete":"delWrappedLineRight","Cmd-U":"undoSelection","Shift-Cmd-U":"redoSelection","Ctrl-Up":"goDocStart","Ctrl-Down":"goDocEnd",fallthrough:["basic","emacsy"]},xl.default=de?xl.macDefault:xl.pcDefault;function Ag(ie){var ae=ie.split(/-(?!$)/);ie=ae[ae.length-1];for(var ce,he,pe,Ae,Oe=0;Oe<ae.length-1;Oe++){var Qe=ae[Oe];if(/^(cmd|meta|m)$/i.test(Qe))Ae=!0;else if(/^a(lt)?$/i.test(Qe))ce=!0;else if(/^(c|ctrl|control)$/i.test(Qe))he=!0;else if(/^s(hift)?$/i.test(Qe))pe=!0;else throw new Error("Unrecognized modifier name: "+Qe)}return ce&&(ie="Alt-"+ie),he&&(ie="Ctrl-"+ie),Ae&&(ie="Cmd-"+ie),pe&&(ie="Shift-"+ie),ie}function Lg(ie){var ae={};for(var ce in ie)if(ie.hasOwnProperty(ce)){var he=ie[ce];if(/^(name|fallthrough|(de|at)tach)$/.test(ce))continue;if(he=="..."){delete ie[ce];continue}for(var pe=Ai(ce.split(" "),Ag),Ae=0;Ae<pe.length;Ae++){var Oe=void 0,Qe=void 0;Ae==pe.length-1?(Qe=pe.join(" "),Oe=he):(Qe=pe.slice(0,Ae+1).join(" "),Oe="...");var _e=ae[Qe];if(!_e)ae[Qe]=Oe;else if(_e!=Oe)throw new Error("Inconsistent bindings for "+Qe)}delete ie[ce]}for(var ct in ae)ie[ct]=ae[ct];return ie}function _l(ie,ae,ce,he){ae=id(ae);var pe=ae.call?ae.call(ie,he):ae[ie];if(pe===!1)return"nothing";if(pe==="...")return"multi";if(pe!=null&&ce(pe))return"handled";if(ae.fallthrough){if(Object.prototype.toString.call(ae.fallthrough)!="[object Array]")return _l(ie,ae.fallthrough,ce,he);for(var Ae=0;Ae<ae.fallthrough.length;Ae++){var Oe=_l(ie,ae.fallthrough[Ae],ce,he);if(Oe)return Oe}}}function jd(ie){var ae=typeof ie=="string"?ie:Ou[ie.keyCode];return ae=="Ctrl"||ae=="Alt"||ae=="Shift"||ae=="Mod"}function bg(ie,ae,ce){var he=ie;return ae.altKey&&he!="Alt"&&(ie="Alt-"+ie),(Se?ae.metaKey:ae.ctrlKey)&&he!="Ctrl"&&(ie="Ctrl-"+ie),(Se?ae.ctrlKey:ae.metaKey)&&he!="Mod"&&(ie="Cmd-"+ie),!ce&&ae.shiftKey&&he!="Shift"&&(ie="Shift-"+ie),ie}function im(ie,ae){if(Me&&ie.keyCode==34&&ie.char)return!1;var ce=Ou[ie.keyCode];return ce==null||ie.altGraphKey?!1:(ie.keyCode==3&&ie.code&&(ce=ie.code),bg(ce,ie,ae))}function id(ie){return typeof ie=="string"?xl[ie]:ie}function wl(ie,ae){for(var ce=ie.doc.sel.ranges,he=[],pe=0;pe<ce.length;pe++){for(var Ae=ae(ce[pe]);he.length&&Bn(Ae.from,wt(he).to)<=0;){var Oe=he.pop();if(Bn(Oe.from,Ae.from)<0){Ae.from=Oe.from;break}}he.push(Ae)}lo(ie,function(){for(var Qe=he.length-1;Qe>=0;Qe--)ed(ie.doc,"",he[Qe].from,he[Qe].to,"+delete");Vs(ie)})}function Mg(ie,ae,ce){var he=Bt(ie.text,ae+ce,ce);return he<0||he>ie.text.length?null:he}function ss(ie,ae,ce){var he=Mg(ie,ae.ch,ce);return he==null?null:new Ot(ae.line,he,ce<0?"after":"before")}function bc(ie,ae,ce,he,pe){if(ie){ae.doc.direction=="rtl"&&(pe=-pe);var Ae=dn(ce,ae.doc.direction);if(Ae){var Oe=pe<0?wt(Ae):Ae[0],Qe=pe<0==(Oe.level==1),_e=Qe?"after":"before",ct;if(Oe.level>0||ae.doc.direction=="rtl"){var fn=Po(ae,ce);ct=pe<0?ce.text.length-1:0;var kt=Vo(ae,fn,ct).top;ct=Ut(function(qn){return Vo(ae,fn,qn).top==kt},pe<0==(Oe.level==1)?Oe.from:Oe.to-1,ct),_e=="before"&&(ct=Mg(ce,ct,1))}else ct=pe<0?Oe.to:Oe.from;return new Ot(he,ct,_e)}}return new Ot(he,pe<0?ce.text.length:0,pe<0?"before":"after")}function pf(ie,ae,ce,he){var pe=dn(ae,ie.doc.direction);if(!pe)return ss(ae,ce,he);ce.ch>=ae.text.length?(ce.ch=ae.text.length,ce.sticky="before"):ce.ch<=0&&(ce.ch=0,ce.sticky="after");var Ae=Tt(pe,ce.ch,ce.sticky),Oe=pe[Ae];if(ie.doc.direction=="ltr"&&Oe.level%2==0&&(he>0?Oe.to>ce.ch:Oe.from<ce.ch))return ss(ae,ce,he);var Qe=function(Ir,$r){return Mg(ae,Ir instanceof Ot?Ir.ch:Ir,$r)},_e,ct=function(Ir){return ie.options.lineWrapping?(_e=_e||Po(ie,ae),Do(ie,ae,_e,Ir)):{begin:0,end:ae.text.length}},fn=ct(ce.sticky=="before"?Qe(ce,-1):ce.ch);if(ie.doc.direction=="rtl"||Oe.level==1){var kt=Oe.level==1==he<0,qn=Qe(ce,kt?1:-1);if(qn!=null&&(kt?qn<=Oe.to&&qn<=fn.end:qn>=Oe.from&&qn>=fn.begin)){var Zn=kt?"before":"after";return new Ot(ce.line,qn,Zn)}}var Ki=function(Ir,$r,Gr){for(var oo=function(ja,Ss){return Ss?new Ot(ce.line,Qe(ja,1),"before"):new Ot(ce.line,ja,"after")};Ir>=0&&Ir<pe.length;Ir+=$r){var ko=pe[Ir],Vr=$r>0==(ko.level!=1),_o=Vr?Gr.begin:Qe(Gr.end,-1);if(ko.from<=_o&&_o<ko.to||(_o=Vr?ko.from:Qe(ko.to,-1),Gr.begin<=_o&&_o<Gr.end))return oo(_o,Vr)}},qi=Ki(Ae+he,he,fn);if(qi)return qi;var mr=he>0?fn.end:Qe(fn.begin,-1);return mr!=null&&!(he>0&&mr==ae.text.length)&&(qi=Ki(he>0?0:pe.length-1,he,ct(mr)),qi)?qi:null}var Ch={selectAll:as,singleSelection:function(ie){return ie.setSelection(ie.getCursor("anchor"),ie.getCursor("head"),rn)},killLine:function(ie){return wl(ie,function(ae){if(ae.empty()){var ce=ai(ie.doc,ae.head.line).text.length;return ae.head.ch==ce&&ae.head.line<ie.lastLine()?{from:ae.head,to:Ot(ae.head.line+1,0)}:{from:ae.head,to:Ot(ae.head.line,ce)}}else return{from:ae.from(),to:ae.to()}})},deleteLine:function(ie){return wl(ie,function(ae){return{from:Ot(ae.from().line,0),to:yi(ie.doc,Ot(ae.to().line+1,0))}})},delLineLeft:function(ie){return wl(ie,function(ae){return{from:Ot(ae.from().line,0),to:ae.from()}})},delWrappedLineLeft:function(ie){return wl(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,he=ie.coordsChar({left:0,top:ce},"div");return{from:he,to:ae.from()}})},delWrappedLineRight:function(ie){return wl(ie,function(ae){var ce=ie.charCoords(ae.head,"div").top+5,he=ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div");return{from:ae.from(),to:he}})},undo:function(ie){return ie.undo()},redo:function(ie){return ie.redo()},undoSelection:function(ie){return ie.undoSelection()},redoSelection:function(ie){return ie.redoSelection()},goDocStart:function(ie){return ie.extendSelection(Ot(ie.firstLine(),0))},goDocEnd:function(ie){return ie.extendSelection(Ot(ie.lastLine()))},goLineStart:function(ie){return ie.extendSelectionsBy(function(ae){return Wd(ie,ae.head.line)},{origin:"+move",bias:1})},goLineStartSmart:function(ie){return ie.extendSelectionsBy(function(ae){return kg(ie,ae.head)},{origin:"+move",bias:1})},goLineEnd:function(ie){return ie.extendSelectionsBy(function(ae){return Hd(ie,ae.head.line)},{origin:"+move",bias:-1})},goLineRight:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:ie.display.lineDiv.offsetWidth+100,top:ce},"div")},Nn)},goLineLeft:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5;return ie.coordsChar({left:0,top:ce},"div")},Nn)},goLineLeftSmart:function(ie){return ie.extendSelectionsBy(function(ae){var ce=ie.cursorCoords(ae.head,"div").top+5,he=ie.coordsChar({left:0,top:ce},"div");return he.ch<ie.getLine(he.line).search(/\S/)?kg(ie,ae.head):he},Nn)},goLineUp:function(ie){return ie.moveV(-1,"line")},goLineDown:function(ie){return ie.moveV(1,"line")},goPageUp:function(ie){return ie.moveV(-1,"page")},goPageDown:function(ie){return ie.moveV(1,"page")},goCharLeft:function(ie){return ie.moveH(-1,"char")},goCharRight:function(ie){return ie.moveH(1,"char")},goColumnLeft:function(ie){return ie.moveH(-1,"column")},goColumnRight:function(ie){return ie.moveH(1,"column")},goWordLeft:function(ie){return ie.moveH(-1,"word")},goGroupRight:function(ie){return ie.moveH(1,"group")},goGroupLeft:function(ie){return ie.moveH(-1,"group")},goWordRight:function(ie){return ie.moveH(1,"word")},delCharBefore:function(ie){return ie.deleteH(-1,"codepoint")},delCharAfter:function(ie){return ie.deleteH(1,"char")},delWordBefore:function(ie){return ie.deleteH(-1,"word")},delWordAfter:function(ie){return ie.deleteH(1,"word")},delGroupBefore:function(ie){return ie.deleteH(-1,"group")},delGroupAfter:function(ie){return ie.deleteH(1,"group")},indentAuto:function(ie){return ie.indentSelection("smart")},indentMore:function(ie){return ie.indentSelection("add")},indentLess:function(ie){return ie.indentSelection("subtract")},insertTab:function(ie){return ie.replaceSelection(" ")},insertSoftTab:function(ie){for(var ae=[],ce=ie.listSelections(),he=ie.options.tabSize,pe=0;pe<ce.length;pe++){var Ae=ce[pe].from(),Oe=vt(ie.getLine(Ae.line),Ae.ch,he);ae.push(Rn(he-Oe%he))}ie.replaceSelections(ae)},defaultTab:function(ie){ie.somethingSelected()?ie.indentSelection("add"):ie.execCommand("insertTab")},transposeChars:function(ie){return lo(ie,function(){for(var ae=ie.listSelections(),ce=[],he=0;he<ae.length;he++)if(ae[he].empty()){var pe=ae[he].head,Ae=ai(ie.doc,pe.line).text;if(Ae){if(pe.ch==Ae.length&&(pe=new Ot(pe.line,pe.ch-1)),pe.ch>0)pe=new Ot(pe.line,pe.ch+1),ie.replaceRange(Ae.charAt(pe.ch-1)+Ae.charAt(pe.ch-2),Ot(pe.line,pe.ch-2),pe,"+transpose");else if(pe.line>ie.doc.first){var Oe=ai(ie.doc,pe.line-1).text;Oe&&(pe=new Ot(pe.line,1),ie.replaceRange(Ae.charAt(0)+ie.doc.lineSeparator()+Oe.charAt(Oe.length-1),Ot(pe.line-1,Oe.length-1),pe,"+transpose"))}}ce.push(new Aa(pe,pe))}ie.setSelections(ce)})},newlineAndIndent:function(ie){return lo(ie,function(){for(var ae=ie.listSelections(),ce=ae.length-1;ce>=0;ce--)ie.replaceRange(ie.doc.lineSeparator(),ae[ce].anchor,ae[ce].head,"+input");ae=ie.listSelections();for(var he=0;he<ae.length;he++)ie.indentLine(ae[he].from().line,null,!0);Vs(ie)})},openLine:function(ie){return ie.replaceSelection(`
|
|
`,"start")},toggleOverwrite:function(ie){return ie.toggleOverwrite()}};function Wd(ie,ae){var ce=ai(ie.doc,ae),he=Rt(ce);return he!=ce&&(ae=Ve(he)),bc(!0,ie,he,ae,1)}function Hd(ie,ae){var ce=ai(ie.doc,ae),he=on(ce);return he!=ce&&(ae=Ve(he)),bc(!0,ie,ce,ae,-1)}function kg(ie,ae){var ce=Wd(ie,ae.line),he=ai(ie.doc,ce.line),pe=dn(he,ie.doc.direction);if(!pe||pe[0].level==0){var Ae=Math.max(ce.ch,he.text.search(/\S/)),Oe=ae.line==ce.line&&ae.ch<=Ae&&ae.ch;return Ot(ce.line,Oe?0:Ae,ce.sticky)}return ce}function Zd(ie,ae,ce){if(typeof ae=="string"&&(ae=Ch[ae],!ae))return!1;ie.display.input.ensurePolled();var he=ie.display.shift,pe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),ce&&(ie.display.shift=!1),pe=ae(ie)!=Fn}finally{ie.display.shift=he,ie.state.suppressEdits=!1}return pe}function Fg(ie,ae,ce){for(var he=0;he<ie.state.keyMaps.length;he++){var pe=_l(ae,ie.state.keyMaps[he],ce,ie);if(pe)return pe}return ie.options.extraKeys&&_l(ae,ie.options.extraKeys,ce,ie)||_l(ae,ie.options.keyMap,ce,ie)}var Iu=new $e;function rd(ie,ae,ce,he){var pe=ie.state.keySeq;if(pe){if(jd(ae))return"handled";if(/\'$/.test(ae)?ie.state.keySeq=null:Iu.set(50,function(){ie.state.keySeq==pe&&(ie.state.keySeq=null,ie.display.input.reset())}),mf(ie,pe+" "+ae,ce,he))return!0}return mf(ie,ae,ce,he)}function mf(ie,ae,ce,he){var pe=Fg(ie,ae,he);return pe=="multi"&&(ie.state.keySeq=ae),pe=="handled"&&Fi(ie,"keyHandled",ie,ae,ce),(pe=="handled"||pe=="multi")&&(pi(ce),$o(ie)),!!pe}function vf(ie,ae){var ce=im(ae,!0);return ce?ae.shiftKey&&!ie.state.keySeq?rd(ie,"Shift-"+ce,ae,function(he){return Zd(ie,he,!0)})||rd(ie,ce,ae,function(he){if(typeof he=="string"?/^go[A-Z]/.test(he):he.motion)return Zd(ie,he)}):rd(ie,ce,ae,function(he){return Zd(ie,he)}):!1}function yf(ie,ae,ce){return rd(ie,"'"+ce+"'",ae,function(he){return Zd(ie,he,!0)})}var od=null;function Dg(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&(ae.curOp.focus=Lt(),!pn(ae,ie))){Mt&&ze<11&&ie.keyCode==27&&(ie.returnValue=!1);var ce=ie.keyCode;ae.display.shift=ce==16||ie.shiftKey;var he=vf(ae,ie);Me&&(od=he?ce:null,!he&&ce==88&&!Sn&&(de?ie.metaKey:ie.ctrlKey)&&ae.replaceSelection("",null,"cut")),ye&&!de&&!he&&ce==46&&ie.shiftKey&&!ie.ctrlKey&&document.execCommand&&document.execCommand("cut"),ce==18&&!/\bCodeMirror-crosshair\b/.test(ae.display.lineDiv.className)&&Ng(ae)}}function Ng(ie){var ae=ie.display.lineDiv;ln(ae,"CodeMirror-crosshair");function ce(he){(he.keyCode==18||!he.altKey)&&(Ze(ae,"CodeMirror-crosshair"),jt(document,"keyup",ce),jt(document,"mouseover",ce))}wn(document,"keyup",ce),wn(document,"mouseover",ce)}function Bg(ie){ie.keyCode==16&&(this.doc.sel.shift=!1),pn(this,ie)}function Cu(ie){var ae=this;if(!(ie.target&&ie.target!=ae.display.input.getField())&&!(Qr(ae.display,ie)||pn(ae,ie)||ie.ctrlKey&&!ie.altKey||de&&ie.metaKey)){var ce=ie.keyCode,he=ie.charCode;if(Me&&ce==od){od=null,pi(ie);return}if(!(Me&&(!ie.which||ie.which<10)&&vf(ae,ie))){var pe=String.fromCharCode(he==null?ce:he);pe!="\b"&&(yf(ae,ie,pe)||ae.display.input.onKeyPress(ie))}}}var rm=400,Tg=function(ie,ae,ce){this.time=ie,this.pos=ae,this.button=ce};Tg.prototype.compare=function(ie,ae,ce){return this.time+rm>ie&&Bn(ae,this.pos)==0&&ce==this.button};var Vd,ad;function Og(ie,ae){var ce=+new Date;return ad&&ad.compare(ce,ie,ae)?(Vd=ad=null,"triple"):Vd&&Vd.compare(ce,ie,ae)?(ad=new Tg(ce,ie,ae),Vd=null,"double"):(Vd=new Tg(ce,ie,ae),ad=null,"single")}function Eu(ie){var ae=this,ce=ae.display;if(!(pn(ae,ie)||ce.activeTouch&&ce.input.supportsTouch())){if(ce.input.ensurePolled(),ce.shift=ie.shiftKey,Qr(ce,ie)){dt||(ce.scroller.draggable=!1,setTimeout(function(){return ce.scroller.draggable=!0},100));return}if(!wf(ae,ie)){var he=Ya(ae,ie),pe=rr(ie),Ae=he?Og(he,pe):"single";window.focus(),pe==1&&ae.state.selectingText&&ae.state.selectingText(ie),!(he&&Ig(ae,pe,he,Ae,ie))&&(pe==1?he?om(ae,he,Ae,ie):gr(ie)==ce.scroller&&pi(ie):pe==2?(he&&df(ae.doc,he),setTimeout(function(){return ce.input.focus()},20)):pe==3&&(be?ae.display.input.onContextMenu(ie):xa(ae)))}}}function Ig(ie,ae,ce,he,pe){var Ae="Click";return he=="double"?Ae="Double"+Ae:he=="triple"&&(Ae="Triple"+Ae),Ae=(ae==1?"Left":ae==2?"Middle":"Right")+Ae,rd(ie,bg(Ae,pe),pe,function(Oe){if(typeof Oe=="string"&&(Oe=Ch[Oe]),!Oe)return!1;var Qe=!1;try{ie.isReadOnly()&&(ie.state.suppressEdits=!0),Qe=Oe(ie,ce)!=Fn}finally{ie.state.suppressEdits=!1}return Qe})}function Sf(ie,ae,ce){var he=ie.getOption("configureMouse"),pe=he?he(ie,ae,ce):{};if(pe.unit==null){var Ae=le?ce.shiftKey&&ce.metaKey:ce.altKey;pe.unit=Ae?"rectangle":ae=="single"?"char":ae=="double"?"word":"line"}return(pe.extend==null||ie.doc.extend)&&(pe.extend=ie.doc.extend||ce.shiftKey),pe.addNew==null&&(pe.addNew=de?ce.metaKey:ce.ctrlKey),pe.moveOnDrag==null&&(pe.moveOnDrag=!(de?ce.altKey:ce.ctrlKey)),pe}function om(ie,ae,ce,he){Mt?setTimeout(_t(pa,ie),0):ie.curOp.focus=Lt();var pe=Sf(ie,ce,he),Ae=ie.doc.sel,Oe;ie.options.dragDrop&&tr&&!ie.isReadOnly()&&ce=="single"&&(Oe=Ae.contains(ae))>-1&&(Bn((Oe=Ae.ranges[Oe]).from(),ae)<0||ae.xRel>0)&&(Bn(Oe.to(),ae)>0||ae.xRel<0)?Rg(ie,he,ae,pe):ov(ie,he,ae,pe)}function Rg(ie,ae,ce,he){var pe=ie.display,Ae=!1,Oe=co(ie,function(ct){dt&&(pe.scroller.draggable=!1),ie.state.draggingText=!1,jt(pe.wrapper.ownerDocument,"mouseup",Oe),jt(pe.wrapper.ownerDocument,"mousemove",Qe),jt(pe.scroller,"dragstart",_e),jt(pe.scroller,"drop",Oe),Ae||(pi(ct),he.addNew||df(ie.doc,ce,null,null,he.extend),dt&&!zt||Mt&&ze==9?setTimeout(function(){pe.wrapper.ownerDocument.body.focus({preventScroll:!0}),pe.input.focus()},20):pe.input.focus())}),Qe=function(ct){Ae=Ae||Math.abs(ae.clientX-ct.clientX)+Math.abs(ae.clientY-ct.clientY)>=10},_e=function(){return Ae=!0};dt&&(pe.scroller.draggable=!0),ie.state.draggingText=Oe,Oe.copy=!he.moveOnDrag,pe.scroller.dragDrop&&pe.scroller.dragDrop(),wn(pe.wrapper.ownerDocument,"mouseup",Oe),wn(pe.wrapper.ownerDocument,"mousemove",Qe),wn(pe.scroller,"dragstart",_e),wn(pe.scroller,"drop",Oe),xa(ie),setTimeout(function(){return pe.input.focus()},20)}function zg(ie,ae,ce){if(ce=="char")return new Aa(ae,ae);if(ce=="word")return ie.findWordAt(ae);if(ce=="line")return new Aa(Ot(ae.line,0),yi(ie.doc,Ot(ae.line+1,0)));var he=ce(ie,ae);return new Aa(he.from,he.to)}function ov(ie,ae,ce,he){var pe=ie.display,Ae=ie.doc;pi(ae);var Oe,Qe,_e=Ae.sel,ct=_e.ranges;if(he.addNew&&!he.extend?(Qe=Ae.sel.contains(ce),Qe>-1?Oe=ct[Qe]:Oe=new Aa(ce,ce)):(Oe=Ae.sel.primary(),Qe=Ae.sel.primIndex),he.unit=="rectangle")he.addNew||(Oe=new Aa(ce,ce)),ce=Ya(ie,ae,!0,!0),Qe=-1;else{var fn=zg(ie,ce,he.unit);he.extend?Oe=hf(Oe,fn.anchor,fn.head,he.extend):Oe=fn}he.addNew?Qe==-1?(Qe=ct.length,Ks(Ae,au(ie,ct.concat([Oe]),Qe),{scroll:!1,origin:"*mouse"})):ct.length>1&&ct[Qe].empty()&&he.unit=="char"&&!he.extend?(Ks(Ae,au(ie,ct.slice(0,Qe).concat(ct.slice(Qe+1)),0),{scroll:!1,origin:"*mouse"}),_e=Ae.sel):wh(Ae,Qe,Oe,Xn):(Qe=0,Ks(Ae,new Ul([Oe],0),Xn),_e=Ae.sel);var kt=ce;function qn(Gr){if(Bn(kt,Gr)!=0)if(kt=Gr,he.unit=="rectangle"){for(var oo=[],ko=ie.options.tabSize,Vr=vt(ai(Ae,ce.line).text,ce.ch,ko),_o=vt(ai(Ae,Gr.line).text,Gr.ch,ko),ja=Math.min(Vr,_o),Ss=Math.max(Vr,_o),_a=Math.min(ce.line,Gr.line),ul=Math.min(ie.lastLine(),Math.max(ce.line,Gr.line));_a<=ul;_a++){var Ys=ai(Ae,_a).text,ps=mi(Ys,ja,ko);ja==Ss?oo.push(new Aa(Ot(_a,ps),Ot(_a,ps))):Ys.length>ps&&oo.push(new Aa(Ot(_a,ps),Ot(_a,mi(Ys,Ss,ko))))}oo.length||oo.push(new Aa(ce,ce)),Ks(Ae,au(ie,_e.ranges.slice(0,Qe).concat(oo),Qe),{origin:"*mouse",scroll:!1}),ie.scrollIntoView(Gr)}else{var Pl=Oe,Rs=zg(ie,Gr,he.unit),ms=Pl.anchor,ma;Bn(Rs.anchor,ms)>0?(ma=Rs.head,ms=si(Pl.from(),Rs.anchor)):(ma=Rs.anchor,ms=Ei(Pl.to(),Rs.head));var qa=_e.ranges.slice(0);qa[Qe]=am(ie,new Aa(yi(Ae,ms),ma)),Ks(Ae,au(ie,qa,Qe),Xn)}}var Zn=pe.wrapper.getBoundingClientRect(),Ki=0;function qi(Gr){var oo=++Ki,ko=Ya(ie,Gr,!0,he.unit=="rectangle");if(ko)if(Bn(ko,kt)!=0){ie.curOp.focus=Lt(),qn(ko);var Vr=Ao(pe,Ae);(ko.line>=Vr.to||ko.line<Vr.from)&&setTimeout(co(ie,function(){Ki==oo&&qi(Gr)}),150)}else{var _o=Gr.clientY<Zn.top?-20:Gr.clientY>Zn.bottom?20:0;_o&&setTimeout(co(ie,function(){Ki==oo&&(pe.scroller.scrollTop+=_o,qi(Gr))}),50)}}function mr(Gr){ie.state.selectingText=!1,Ki=1/0,Gr&&(pi(Gr),pe.input.focus()),jt(pe.wrapper.ownerDocument,"mousemove",Ir),jt(pe.wrapper.ownerDocument,"mouseup",$r),Ae.history.lastSelOrigin=null}var Ir=co(ie,function(Gr){Gr.buttons===0||!rr(Gr)?mr(Gr):qi(Gr)}),$r=co(ie,mr);ie.state.selectingText=$r,wn(pe.wrapper.ownerDocument,"mousemove",Ir),wn(pe.wrapper.ownerDocument,"mouseup",$r)}function am(ie,ae){var ce=ae.anchor,he=ae.head,pe=ai(ie.doc,ce.line);if(Bn(ce,he)==0&&ce.sticky==he.sticky)return ae;var Ae=dn(pe);if(!Ae)return ae;var Oe=Tt(Ae,ce.ch,ce.sticky),Qe=Ae[Oe];if(Qe.from!=ce.ch&&Qe.to!=ce.ch)return ae;var _e=Oe+(Qe.from==ce.ch==(Qe.level!=1)?0:1);if(_e==0||_e==Ae.length)return ae;var ct;if(he.line!=ce.line)ct=(he.line-ce.line)*(ie.doc.direction=="ltr"?1:-1)>0;else{var fn=Tt(Ae,he.ch,he.sticky),kt=fn-Oe||(he.ch-ce.ch)*(Qe.level==1?-1:1);fn==_e-1||fn==_e?ct=kt<0:ct=kt>0}var qn=Ae[_e+(ct?-1:0)],Zn=ct==(qn.level==1),Ki=Zn?qn.from:qn.to,qi=Zn?"after":"before";return ce.ch==Ki&&ce.sticky==qi?ae:new Aa(new Ot(ce.line,Ki,qi),he)}function xf(ie,ae,ce,he){var pe,Ae;if(ae.touches)pe=ae.touches[0].clientX,Ae=ae.touches[0].clientY;else try{pe=ae.clientX,Ae=ae.clientY}catch(qn){return!1}if(pe>=Math.floor(ie.display.gutters.getBoundingClientRect().right))return!1;he&&pi(ae);var Oe=ie.display,Qe=Oe.lineDiv.getBoundingClientRect();if(Ae>Qe.bottom||!Un(ie,ce))return wi(ae);Ae-=Qe.top-Oe.viewOffset;for(var _e=0;_e<ie.display.gutterSpecs.length;++_e){var ct=Oe.gutters.childNodes[_e];if(ct&&ct.getBoundingClientRect().right>=pe){var fn=mt(ie.doc,Ae),kt=ie.display.gutterSpecs[_e];return Xt(ie,ce,ie,fn,kt.className,ae),wi(ae)}}}function wf(ie,ae){return xf(ie,ae,"gutterClick",!0)}function Pf(ie,ae){Qr(ie.display,ae)||sm(ie,ae)||pn(ie,ae,"contextmenu")||be||ie.display.input.onContextMenu(ae)}function sm(ie,ae){return Un(ie,"gutterContextMenu")?xf(ie,ae,"gutterContextMenu",!1):!1}function Cf(ie){ie.display.wrapper.className=ie.display.wrapper.className.replace(/\s*cm-s-\S+/g,"")+ie.options.theme.replace(/(^|\s)\s*/g," cm-s-"),Oa(ie)}var Eh={toString:function(){return"CodeMirror.Init"}},jg={},Mc={};function lm(ie){var ae=ie.optionHandlers;function ce(he,pe,Ae,Oe){ie.defaults[he]=pe,Ae&&(ae[he]=Oe?function(Qe,_e,ct){ct!=Eh&&Ae(Qe,_e,ct)}:Ae)}ie.defineOption=ce,ie.Init=Eh,ce("value","",function(he,pe){return he.setValue(pe)},!0),ce("mode",null,function(he,pe){he.doc.modeOption=pe,Xo(he)},!0),ce("indentUnit",2,Xo,!0),ce("indentWithTabs",!1),ce("smartIndent",!0),ce("tabSize",4,function(he){gc(he),Oa(he),ca(he)},!0),ce("lineSeparator",null,function(he,pe){if(he.doc.lineSep=pe,!!pe){var Ae=[],Oe=he.doc.first;he.doc.iter(function(_e){for(var ct=0;;){var fn=_e.text.indexOf(pe,ct);if(fn==-1)break;ct=fn+pe.length,Ae.push(Ot(Oe,fn))}Oe++});for(var Qe=Ae.length-1;Qe>=0;Qe--)ed(he.doc,pe,Ae[Qe],Ot(Ae[Qe].line,Ae[Qe].ch+pe.length))}}),ce("specialChars",/[\u0000-\u001f\u007f-\u009f\u00ad\u061c\u200b-\u200c\u200e\u200f\u2028\u2029\ufeff\ufff9-\ufffc]/g,function(he,pe,Ae){he.state.specialChars=new RegExp(pe.source+(pe.test(" ")?"":"| "),"g"),Ae!=Eh&&he.refresh()}),ce("specialCharPlaceholder",Qn,function(he){return he.refresh()},!0),ce("electricChars",!0),ce("inputStyle",te?"contenteditable":"textarea",function(){throw new Error("inputStyle can not (yet) be changed in a running editor")},!0),ce("spellcheck",!1,function(he,pe){return he.getInputField().spellcheck=pe},!0),ce("autocorrect",!1,function(he,pe){return he.getInputField().autocorrect=pe},!0),ce("autocapitalize",!1,function(he,pe){return he.getInputField().autocapitalize=pe},!0),ce("rtlMoveVisually",!ge),ce("wholeLineUpdateBefore",!0),ce("theme","default",function(he){Cf(he),Tl(he)},!0),ce("keyMap","default",function(he,pe,Ae){var Oe=id(pe),Qe=Ae!=Eh&&id(Ae);Qe&&Qe.detach&&Qe.detach(he,Oe),Oe.attach&&Oe.attach(he,Qe||null)}),ce("extraKeys",null),ce("configureMouse",null),ce("lineWrapping",!1,um,!0),ce("gutters",[],function(he,pe){he.display.gutterSpecs=Cs(pe,he.options.lineNumbers),Tl(he)},!0),ce("fixedGutter",!0,function(he,pe){he.display.gutters.style.left=pe?hs(he.display)+"px":"0",he.refresh()},!0),ce("coverGutterNextToScrollbar",!1,function(he){return ns(he)},!0),ce("scrollbarStyle","native",function(he){yl(he),ns(he),he.display.scrollbars.setScrollTop(he.doc.scrollTop),he.display.scrollbars.setScrollLeft(he.doc.scrollLeft)},!0),ce("lineNumbers",!1,function(he,pe){he.display.gutterSpecs=Cs(he.options.gutters,pe),Tl(he)},!0),ce("firstLineNumber",1,Tl,!0),ce("lineNumberFormatter",function(he){return he},Tl,!0),ce("showCursorWhenSelecting",!1,za,!0),ce("resetSelectionOnContextMenu",!0),ce("lineWiseCopyCut",!0),ce("pasteLinesPerSelection",!0),ce("selectionsMayTouch",!1),ce("readOnly",!1,function(he,pe){pe=="nocursor"&&(pl(he),he.display.input.blur()),he.display.input.readOnlyChanged(pe)}),ce("screenReaderLabel",null,function(he,pe){pe=pe===""?null:pe,he.display.input.screenReaderLabelChanged(pe)}),ce("disableInput",!1,function(he,pe){pe||he.display.input.reset()},!0),ce("dragDrop",!0,Ef),ce("allowDropFileTypes",null),ce("cursorBlinkRate",530),ce("cursorScrollMargin",0),ce("cursorHeight",1,za,!0),ce("singleCursorHeightPerLine",!0,za,!0),ce("workTime",100),ce("workDelay",100),ce("flattenSpans",!0,gc,!0),ce("addModeClass",!1,gc,!0),ce("pollInterval",100),ce("undoDepth",200,function(he,pe){return he.doc.history.undoDepth=pe}),ce("historyEventDelay",1250),ce("viewportMargin",10,function(he){return he.refresh()},!0),ce("maxHighlightLength",1e4,gc,!0),ce("moveInputWithCursor",!0,function(he,pe){pe||he.display.input.resetPosition()}),ce("tabindex",null,function(he,pe){return he.display.input.getField().tabIndex=pe||""}),ce("autofocus",null),ce("direction","ltr",function(he,pe){return he.doc.setDirection(pe)},!0),ce("phrases",null)}function Ef(ie,ae,ce){var he=ce&&ce!=Eh;if(!ae!=!he){var pe=ie.display.dragFunctions,Ae=ae?wn:jt;Ae(ie.display.scroller,"dragstart",pe.start),Ae(ie.display.scroller,"dragenter",pe.enter),Ae(ie.display.scroller,"dragover",pe.over),Ae(ie.display.scroller,"dragleave",pe.leave),Ae(ie.display.scroller,"drop",pe.drop)}}function um(ie){ie.options.lineWrapping?(ln(ie.display.wrapper,"CodeMirror-wrap"),ie.display.sizer.style.minWidth="",ie.display.sizerWidth=null):(Ze(ie.display.wrapper,"CodeMirror-wrap"),Vt(ie)),qr(ie),ca(ie),Oa(ie),setTimeout(function(){return ns(ie)},100)}function fa(ie,ae){var ce=this;if(!(this instanceof fa))return new fa(ie,ae);this.options=ae=ae?hn(ae):{},hn(jg,ae,!1);var he=ae.value;typeof he=="string"?he=new Is(he,ae.mode,null,ae.lineSeparator,ae.direction):ae.mode&&(he.modeOption=ae.mode),this.doc=he;var pe=new fa.inputStyles[ae.inputStyle](this),Ae=this.display=new yh(ie,he,pe,ae);Ae.wrapper.CodeMirror=this,Cf(this),ae.lineWrapping&&(this.display.wrapper.className+=" CodeMirror-wrap"),yl(this),this.state={keyMaps:[],overlays:[],modeGen:0,overwrite:!1,delayingBlurEvent:!1,focused:!1,suppressEdits:!1,pasteIncoming:-1,cutIncoming:-1,selectingText:!1,draggingText:!1,highlight:new $e,keySeq:null,specialChars:null},ae.autofocus&&!te&&Ae.input.focus(),Mt&&ze<11&&setTimeout(function(){return ce.display.input.reset(!0)},20),Gd(this),Il(),xo(this),this.curOp.forceUpdate=!0,sf(this,he),ae.autofocus&&!te||this.hasFocus()?setTimeout(function(){ce.hasFocus()&&!ce.state.focused&&qo(ce)},20):pl(this);for(var Oe in Mc)Mc.hasOwnProperty(Oe)&&Mc[Oe](this,ae[Oe],Eh);us(this),ae.finishInit&&ae.finishInit(this);for(var Qe=0;Qe<sd.length;++Qe)sd[Qe](this);Ua(this),dt&&ae.lineWrapping&&getComputedStyle(Ae.lineDiv).textRendering=="optimizelegibility"&&(Ae.lineDiv.style.textRendering="auto")}fa.defaults=jg,fa.optionHandlers=Mc;function Gd(ie){var ae=ie.display;wn(ae.scroller,"mousedown",co(ie,Eu)),Mt&&ze<11?wn(ae.scroller,"dblclick",co(ie,function(_e){if(!pn(ie,_e)){var ct=Ya(ie,_e);if(!(!ct||wf(ie,_e)||Qr(ie.display,_e))){pi(_e);var fn=ie.findWordAt(ct);df(ie.doc,fn.anchor,fn.head)}}})):wn(ae.scroller,"dblclick",function(_e){return pn(ie,_e)||pi(_e)}),wn(ae.scroller,"contextmenu",function(_e){return Pf(ie,_e)}),wn(ae.input.getField(),"contextmenu",function(_e){ae.scroller.contains(_e.target)||Pf(ie,_e)});var ce,he={end:0};function pe(){ae.activeTouch&&(ce=setTimeout(function(){return ae.activeTouch=null},1e3),he=ae.activeTouch,he.end=+new Date)}function Ae(_e){if(_e.touches.length!=1)return!1;var ct=_e.touches[0];return ct.radiusX<=1&&ct.radiusY<=1}function Oe(_e,ct){if(ct.left==null)return!0;var fn=ct.left-_e.left,kt=ct.top-_e.top;return fn*fn+kt*kt>20*20}wn(ae.scroller,"touchstart",function(_e){if(!pn(ie,_e)&&!Ae(_e)&&!wf(ie,_e)){ae.input.ensurePolled(),clearTimeout(ce);var ct=+new Date;ae.activeTouch={start:ct,moved:!1,prev:ct-he.end<=300?he:null},_e.touches.length==1&&(ae.activeTouch.left=_e.touches[0].pageX,ae.activeTouch.top=_e.touches[0].pageY)}}),wn(ae.scroller,"touchmove",function(){ae.activeTouch&&(ae.activeTouch.moved=!0)}),wn(ae.scroller,"touchend",function(_e){var ct=ae.activeTouch;if(ct&&!Qr(ae,_e)&&ct.left!=null&&!ct.moved&&new Date-ct.start<300){var fn=ie.coordsChar(ae.activeTouch,"page"),kt;!ct.prev||Oe(ct,ct.prev)?kt=new Aa(fn,fn):!ct.prev.prev||Oe(ct,ct.prev.prev)?kt=ie.findWordAt(fn):kt=new Aa(Ot(fn.line,0),yi(ie.doc,Ot(fn.line+1,0))),ie.setSelection(kt.anchor,kt.head),ie.focus(),pi(_e)}pe()}),wn(ae.scroller,"touchcancel",pe),wn(ae.scroller,"scroll",function(){ae.scroller.clientHeight&&(ml(ie,ae.scroller.scrollTop),vl(ie,ae.scroller.scrollLeft,!0),Xt(ie,"scroll",ie))}),wn(ae.scroller,"mousewheel",function(_e){return Es(ie,_e)}),wn(ae.scroller,"DOMMouseScroll",function(_e){return Es(ie,_e)}),wn(ae.wrapper,"scroll",function(){return ae.wrapper.scrollTop=ae.wrapper.scrollLeft=0}),ae.dragFunctions={enter:function(_e){pn(ie,_e)||Yi(_e)},over:function(_e){pn(ie,_e)||(em(ie,_e),Yi(_e))},start:function(_e){return $p(ie,_e)},drop:co(ie,Pg),leave:function(_e){pn(ie,_e)||tm(ie)}};var Qe=ae.input.getField();wn(Qe,"keyup",function(_e){return Bg.call(ie,_e)}),wn(Qe,"keydown",co(ie,Dg)),wn(Qe,"keypress",co(ie,Cu)),wn(Qe,"focus",function(_e){return qo(ie,_e)}),wn(Qe,"blur",function(_e){return pl(ie,_e)})}var sd=[];fa.defineInitHook=function(ie){return sd.push(ie)};function ys(ie,ae,ce,he){var pe=ie.doc,Ae;ce==null&&(ce="add"),ce=="smart"&&(pe.mode.indent?Ae=Kr(ie,ae).state:ce="prev");var Oe=ie.options.tabSize,Qe=ai(pe,ae),_e=vt(Qe.text,null,Oe);Qe.stateAfter&&(Qe.stateAfter=null);var ct=Qe.text.match(/^\s*/)[0],fn;if(!he&&!/\S/.test(Qe.text))fn=0,ce="not";else if(ce=="smart"&&(fn=pe.mode.indent(Ae,Qe.text.slice(ct.length),Qe.text),fn==Fn||fn>150)){if(!he)return;ce="prev"}ce=="prev"?ae>pe.first?fn=vt(ai(pe,ae-1).text,null,Oe):fn=0:ce=="add"?fn=_e+ie.options.indentUnit:ce=="subtract"?fn=_e-ie.options.indentUnit:typeof ce=="number"&&(fn=_e+ce),fn=Math.max(0,fn);var kt="",qn=0;if(ie.options.indentWithTabs)for(var Zn=Math.floor(fn/Oe);Zn;--Zn)qn+=Oe,kt+=" ";if(qn<fn&&(kt+=Rn(fn-qn)),kt!=ct)return ed(pe,kt,Ot(ae,0),Ot(ae,ct.length),"+input"),Qe.stateAfter=null,!0;for(var Ki=0;Ki<pe.sel.ranges.length;Ki++){var qi=pe.sel.ranges[Ki];if(qi.head.line==ae&&qi.head.ch<ct.length){var mr=Ot(ae,ct.length);wh(pe,Ki,new Aa(mr,mr));break}}}var ll=null;function ld(ie){ll=ie}function kc(ie,ae,ce,he,pe){var Ae=ie.doc;ie.display.shift=!1,he||(he=Ae.sel);var Oe=+new Date-200,Qe=pe=="paste"||ie.state.pasteIncoming>Oe,_e=yr(ae),ct=null;if(Qe&&he.ranges.length>1)if(ll&&ll.text.join(`
|
|
`)==ae){if(he.ranges.length%ll.text.length==0){ct=[];for(var fn=0;fn<ll.text.length;fn++)ct.push(Ae.splitLines(ll.text[fn]))}}else _e.length==he.ranges.length&&ie.options.pasteLinesPerSelection&&(ct=Ai(_e,function(Ir){return[Ir]}));for(var kt=ie.curOp.updateInput,qn=he.ranges.length-1;qn>=0;qn--){var Zn=he.ranges[qn],Ki=Zn.from(),qi=Zn.to();Zn.empty()&&(ce&&ce>0?Ki=Ot(Ki.line,Ki.ch-ce):ie.state.overwrite&&!Qe?qi=Ot(qi.line,Math.min(ai(Ae,qi.line).text.length,qi.ch+wt(_e).length)):Qe&&ll&&ll.lineWise&&ll.text.join(`
|
|
`)==_e.join(`
|
|
`)&&(Ki=qi=Ot(Ki.line,0)));var mr={from:Ki,to:qi,text:ct?ct[qn%ct.length]:_e,origin:pe||(Qe?"paste":ie.state.cutIncoming>Oe?"cut":"+input")};Ph(ie.doc,mr),Fi(ie,"inputRead",ie,mr)}ae&&!Qe&&Hg(ie,ae),Vs(ie),ie.curOp.updateInput<2&&(ie.curOp.updateInput=kt),ie.curOp.typing=!0,ie.state.pasteIncoming=ie.state.cutIncoming=-1}function Wg(ie,ae){var ce=ie.clipboardData&&ie.clipboardData.getData("Text");if(ce)return ie.preventDefault(),!ae.isReadOnly()&&!ae.options.disableInput&&lo(ae,function(){return kc(ae,ce,0,null,"paste")}),!0}function Hg(ie,ae){if(!(!ie.options.electricChars||!ie.options.smartIndent))for(var ce=ie.doc.sel,he=ce.ranges.length-1;he>=0;he--){var pe=ce.ranges[he];if(!(pe.head.ch>100||he&&ce.ranges[he-1].head.line==pe.head.line)){var Ae=ie.getModeAt(pe.head),Oe=!1;if(Ae.electricChars){for(var Qe=0;Qe<Ae.electricChars.length;Qe++)if(ae.indexOf(Ae.electricChars.charAt(Qe))>-1){Oe=ys(ie,pe.head.line,"smart");break}}else Ae.electricInput&&Ae.electricInput.test(ai(ie.doc,pe.head.line).text.slice(0,pe.head.ch))&&(Oe=ys(ie,pe.head.line,"smart"));Oe&&Fi(ie,"electricInput",ie,pe.head.line)}}}function Zg(ie){for(var ae=[],ce=[],he=0;he<ie.doc.sel.ranges.length;he++){var pe=ie.doc.sel.ranges[he].head.line,Ae={anchor:Ot(pe,0),head:Ot(pe+1,0)};ce.push(Ae),ae.push(ie.getRange(Ae.anchor,Ae.head))}return{text:ae,ranges:ce}}function Vg(ie,ae,ce,he){ie.setAttribute("autocorrect",ce?"":"off"),ie.setAttribute("autocapitalize",he?"":"off"),ie.setAttribute("spellcheck",!!ae)}function Gg(){var ie=Xe("textarea",null,null,"position: absolute; bottom: -1em; padding: 0; width: 1px; height: 1em; outline: none"),ae=Xe("div",[ie],null,"overflow: hidden; position: relative; width: 3px; height: 0px;");return dt?ie.style.width="1000px":ie.setAttribute("wrap","off"),Ne&&(ie.style.border="1px solid black"),Vg(ie),ae}function Ah(ie){var ae=ie.optionHandlers,ce=ie.helpers={};ie.prototype={constructor:ie,focus:function(){window.focus(),this.display.input.focus()},setOption:function(he,pe){var Ae=this.options,Oe=Ae[he];Ae[he]==pe&&he!="mode"||(Ae[he]=pe,ae.hasOwnProperty(he)&&co(this,ae[he])(this,pe,Oe),Xt(this,"optionChange",this,he))},getOption:function(he){return this.options[he]},getDoc:function(){return this.doc},addKeyMap:function(he,pe){this.state.keyMaps[pe?"push":"unshift"](id(he))},removeKeyMap:function(he){for(var pe=this.state.keyMaps,Ae=0;Ae<pe.length;++Ae)if(pe[Ae]==he||pe[Ae].name==he)return pe.splice(Ae,1),!0},addOverlay:Mo(function(he,pe){var Ae=he.token?he:ie.getMode(this.options,he);if(Ae.startState)throw new Error("Overlays may not be stateful.");Kn(this.state.overlays,{mode:Ae,modeSpec:he,opaque:pe&&pe.opaque,priority:pe&&pe.priority||0},function(Oe){return Oe.priority}),this.state.modeGen++,ca(this)}),removeOverlay:Mo(function(he){for(var pe=this.state.overlays,Ae=0;Ae<pe.length;++Ae){var Oe=pe[Ae].modeSpec;if(Oe==he||typeof he=="string"&&Oe.name==he){pe.splice(Ae,1),this.state.modeGen++,ca(this);return}}}),indentLine:Mo(function(he,pe,Ae){typeof pe!="string"&&typeof pe!="number"&&(pe==null?pe=this.options.smartIndent?"smart":"prev":pe=pe?"add":"subtract"),Dn(this.doc,he)&&ys(this,he,pe,Ae)}),indentSelection:Mo(function(he){for(var pe=this.doc.sel.ranges,Ae=-1,Oe=0;Oe<pe.length;Oe++){var Qe=pe[Oe];if(Qe.empty())Qe.head.line>Ae&&(ys(this,Qe.head.line,he,!0),Ae=Qe.head.line,Oe==this.doc.sel.primIndex&&Vs(this));else{var _e=Qe.from(),ct=Qe.to(),fn=Math.max(Ae,_e.line);Ae=Math.min(this.lastLine(),ct.line-(ct.ch?0:1))+1;for(var kt=fn;kt<Ae;++kt)ys(this,kt,he);var qn=this.doc.sel.ranges;_e.ch==0&&pe.length==qn.length&&qn[Oe].from().ch>0&&wh(this.doc,Oe,new Aa(_e,qn[Oe].to()),rn)}}}),getTokenAt:function(he,pe){return $i(this,he,pe)},getLineTokens:function(he,pe){return $i(this,Ot(he),pe,!0)},getTokenTypeAt:function(he){he=yi(this.doc,he);var pe=Mr(this,ai(this.doc,he.line)),Ae=0,Oe=(pe.length-1)/2,Qe=he.ch,_e;if(Qe==0)_e=pe[2];else for(;;){var ct=Ae+Oe>>1;if((ct?pe[ct*2-1]:0)>=Qe)Oe=ct;else if(pe[ct*2+1]<Qe)Ae=ct+1;else{_e=pe[ct*2+2];break}}var fn=_e?_e.indexOf("overlay "):-1;return fn<0?_e:fn==0?null:_e.slice(0,fn-1)},getModeAt:function(he){var pe=this.doc.mode;return pe.innerMode?ie.innerMode(pe,this.getTokenAt(he).state).mode:pe},getHelper:function(he,pe){return this.getHelpers(he,pe)[0]},getHelpers:function(he,pe){var Ae=[];if(!ce.hasOwnProperty(pe))return Ae;var Oe=ce[pe],Qe=this.getModeAt(he);if(typeof Qe[pe]=="string")Oe[Qe[pe]]&&Ae.push(Oe[Qe[pe]]);else if(Qe[pe])for(var _e=0;_e<Qe[pe].length;_e++){var ct=Oe[Qe[pe][_e]];ct&&Ae.push(ct)}else Qe.helperType&&Oe[Qe.helperType]?Ae.push(Oe[Qe.helperType]):Oe[Qe.name]&&Ae.push(Oe[Qe.name]);for(var fn=0;fn<Oe._global.length;fn++){var kt=Oe._global[fn];kt.pred(Qe,this)&&gn(Ae,kt.val)==-1&&Ae.push(kt.val)}return Ae},getStateAfter:function(he,pe){var Ae=this.doc;return he=Pi(Ae,he==null?Ae.first+Ae.size-1:he),Kr(this,he+1,pe).state},cursorCoords:function(he,pe){var Ae,Oe=this.doc.sel.primary();return he==null?Ae=Oe.head:typeof he=="object"?Ae=yi(this.doc,he):Ae=he?Oe.from():Oe.to(),wr(this,Ae,pe||"page")},charCoords:function(he,pe){return ta(this,yi(this.doc,he),pe||"page")},coordsChar:function(he,pe){return he=ro(this,he,pe||"page"),Sr(this,he.left,he.top)},lineAtHeight:function(he,pe){return he=ro(this,{top:he,left:0},pe||"page").top,mt(this.doc,he+this.display.viewOffset)},heightAtLine:function(he,pe,Ae){var Oe=!1,Qe;if(typeof he=="number"){var _e=this.doc.first+this.doc.size-1;he<this.doc.first?he=this.doc.first:he>_e&&(he=_e,Oe=!0),Qe=ai(this.doc,he)}else Qe=he;return Qo(this,Qe,{top:0,left:0},pe||"page",Ae||Oe).top+(Oe?this.doc.height-lt(Qe):0)},defaultTextHeight:function(){return sa(this.display)},defaultCharWidth:function(){return ya(this.display)},getViewport:function(){return{from:this.display.viewFrom,to:this.display.viewTo}},addWidget:function(he,pe,Ae,Oe,Qe){var _e=this.display;he=wr(this,yi(this.doc,he));var ct=he.bottom,fn=he.left;if(pe.style.position="absolute",pe.setAttribute("cm-ignore-events","true"),this.display.input.setUneditable(pe),_e.sizer.appendChild(pe),Oe=="over")ct=he.top;else if(Oe=="above"||Oe=="near"){var kt=Math.max(_e.wrapper.clientHeight,this.doc.height),qn=Math.max(_e.sizer.clientWidth,_e.lineSpace.clientWidth);(Oe=="above"||he.bottom+pe.offsetHeight>kt)&&he.top>pe.offsetHeight?ct=he.top-pe.offsetHeight:he.bottom+pe.offsetHeight<=kt&&(ct=he.bottom),fn+pe.offsetWidth>qn&&(fn=qn-pe.offsetWidth)}pe.style.top=ct+"px",pe.style.left=pe.style.right="",Qe=="right"?(fn=_e.sizer.clientWidth-pe.offsetWidth,pe.style.right="0px"):(Qe=="left"?fn=0:Qe=="middle"&&(fn=(_e.sizer.clientWidth-pe.offsetWidth)/2),pe.style.left=fn+"px"),Ae&&Nl(this,{left:fn,top:ct,right:fn+pe.offsetWidth,bottom:ct+pe.offsetHeight})},triggerOnKeyDown:Mo(Dg),triggerOnKeyPress:Mo(Cu),triggerOnKeyUp:Bg,triggerOnMouseDown:Mo(Eu),execCommand:function(he){if(Ch.hasOwnProperty(he))return Ch[he].call(null,this)},triggerElectric:Mo(function(he){Hg(this,he)}),findPosH:function(he,pe,Ae,Oe){var Qe=1;pe<0&&(Qe=-1,pe=-pe);for(var _e=yi(this.doc,he),ct=0;ct<pe&&(_e=Fc(this.doc,_e,Qe,Ae,Oe),!_e.hitSide);++ct);return _e},moveH:Mo(function(he,pe){var Ae=this;this.extendSelectionsBy(function(Oe){return Ae.display.shift||Ae.doc.extend||Oe.empty()?Fc(Ae.doc,Oe.head,he,pe,Ae.options.rtlMoveVisually):he<0?Oe.from():Oe.to()},Nn)}),deleteH:Mo(function(he,pe){var Ae=this.doc.sel,Oe=this.doc;Ae.somethingSelected()?Oe.replaceSelection("",null,"+delete"):wl(this,function(Qe){var _e=Fc(Oe,Qe.head,he,pe,!1);return he<0?{from:_e,to:Qe.head}:{from:Qe.head,to:_e}})}),findPosV:function(he,pe,Ae,Oe){var Qe=1,_e=Oe;pe<0&&(Qe=-1,pe=-pe);for(var ct=yi(this.doc,he),fn=0;fn<pe;++fn){var kt=wr(this,ct,"div");if(_e==null?_e=kt.left:kt.left=_e,ct=Lh(this,kt,Qe,Ae),ct.hitSide)break}return ct},moveV:Mo(function(he,pe){var Ae=this,Oe=this.doc,Qe=[],_e=!this.display.shift&&!Oe.extend&&Oe.sel.somethingSelected();if(Oe.extendSelectionsBy(function(fn){if(_e)return he<0?fn.from():fn.to();var kt=wr(Ae,fn.head,"div");fn.goalColumn!=null&&(kt.left=fn.goalColumn),Qe.push(kt.left);var qn=Lh(Ae,kt,he,pe);return pe=="page"&&fn==Oe.sel.primary()&&Su(Ae,ta(Ae,qn,"div").top-kt.top),qn},Nn),Qe.length)for(var ct=0;ct<Oe.sel.ranges.length;ct++)Oe.sel.ranges[ct].goalColumn=Qe[ct]}),findWordAt:function(he){var pe=this.doc,Ae=ai(pe,he.line).text,Oe=he.ch,Qe=he.ch;if(Ae){var _e=this.getHelper(he,"wordChars");(he.sticky=="before"||Qe==Ae.length)&&Oe?--Oe:++Qe;for(var ct=Ae.charAt(Oe),fn=Ge(ct,_e)?function(kt){return Ge(kt,_e)}:/\s/.test(ct)?function(kt){return/\s/.test(kt)}:function(kt){return!/\s/.test(kt)&&!Ge(kt)};Oe>0&&fn(Ae.charAt(Oe-1));)--Oe;for(;Qe<Ae.length&&fn(Ae.charAt(Qe));)++Qe}return new Aa(Ot(he.line,Oe),Ot(he.line,Qe))},toggleOverwrite:function(he){he!=null&&he==this.state.overwrite||((this.state.overwrite=!this.state.overwrite)?ln(this.display.cursorDiv,"CodeMirror-overwrite"):Ze(this.display.cursorDiv,"CodeMirror-overwrite"),Xt(this,"overwriteToggle",this,this.state.overwrite))},hasFocus:function(){return this.display.input.getField()==Lt()},isReadOnly:function(){return!!(this.options.readOnly||this.doc.cantEdit)},scrollTo:Mo(function(he,pe){Yl(this,he,pe)}),getScrollInfo:function(){var he=this.display.scroller;return{left:he.scrollLeft,top:he.scrollTop,height:he.scrollHeight-_r(this)-this.display.barHeight,width:he.scrollWidth-_r(this)-this.display.barWidth,clientHeight:mo(this),clientWidth:fo(this)}},scrollIntoView:Mo(function(he,pe){he==null?(he={from:this.doc.sel.primary().head,to:null},pe==null&&(pe=this.options.cursorScrollMargin)):typeof he=="number"?he={from:Ot(he,0),to:null}:he.from==null&&(he={from:he,to:null}),he.to||(he.to=he.from),he.margin=pe||0,he.from.line!=null?Uo(this,he):xu(this,he.from,he.to,he.margin)}),setSize:Mo(function(he,pe){var Ae=this,Oe=function(_e){return typeof _e=="number"||/^\d+$/.test(String(_e))?_e+"px":_e};he!=null&&(this.display.wrapper.style.width=Oe(he)),pe!=null&&(this.display.wrapper.style.height=Oe(pe)),this.options.lineWrapping&&zo(this);var Qe=this.display.viewFrom;this.doc.iter(Qe,this.display.viewTo,function(_e){if(_e.widgets){for(var ct=0;ct<_e.widgets.length;ct++)if(_e.widgets[ct].noHScroll){So(Ae,Qe,"widget");break}}++Qe}),this.curOp.forceUpdate=!0,Xt(this,"refresh",this)}),operation:function(he){return lo(this,he)},startOperation:function(){return xo(this)},endOperation:function(){return Ua(this)},refresh:Mo(function(){var he=this.display.cachedTextHeight;ca(this),this.curOp.forceUpdate=!0,Oa(this),Yl(this,this.doc.scrollLeft,this.doc.scrollTop),mh(this.display),(he==null||Math.abs(he-sa(this.display))>.5||this.options.lineWrapping)&&qr(this),Xt(this,"refresh",this)}),swapDoc:Mo(function(he){var pe=this.doc;return pe.cm=null,this.state.selectingText&&this.state.selectingText(),sf(this,he),Oa(this),this.display.input.reset(),Yl(this,he.scrollLeft,he.scrollTop),this.curOp.forceScroll=!0,Fi(this,"swapDoc",this,pe),pe}),phrase:function(he){var pe=this.options.phrases;return pe&&Object.prototype.hasOwnProperty.call(pe,he)?pe[he]:he},getInputField:function(){return this.display.input.getField()},getWrapperElement:function(){return this.display.wrapper},getScrollerElement:function(){return this.display.scroller},getGutterElement:function(){return this.display.gutters}},ti(ie),ie.registerHelper=function(he,pe,Ae){ce.hasOwnProperty(he)||(ce[he]=ie[he]={_global:[]}),ce[he][pe]=Ae},ie.registerGlobalHelper=function(he,pe,Ae,Oe){ie.registerHelper(he,pe,Oe),ce[he]._global.push({pred:Ae,val:Oe})}}function Fc(ie,ae,ce,he,pe){var Ae=ae,Oe=ce,Qe=ai(ie,ae.line),_e=pe&&ie.direction=="rtl"?-ce:ce;function ct(){var $r=ae.line+_e;return $r<ie.first||$r>=ie.first+ie.size?!1:(ae=new Ot($r,ae.ch,ae.sticky),Qe=ai(ie,$r))}function fn($r){var Gr;if(he=="codepoint"){var oo=Qe.text.charCodeAt(ae.ch+(he>0?0:-1));isNaN(oo)?Gr=null:Gr=new Ot(ae.line,Math.max(0,Math.min(Qe.text.length,ae.ch+ce*(oo>=55296&&oo<56320?2:1))),-ce)}else pe?Gr=pf(ie.cm,Qe,ae,ce):Gr=ss(Qe,ae,ce);if(Gr==null)if(!$r&&ct())ae=bc(pe,ie.cm,Qe,ae.line,_e);else return!1;else ae=Gr;return!0}if(he=="char"||he=="codepoint")fn();else if(he=="column")fn(!0);else if(he=="word"||he=="group")for(var kt=null,qn=he=="group",Zn=ie.cm&&ie.cm.getHelper(ae,"wordChars"),Ki=!0;!(ce<0&&!fn(!Ki));Ki=!1){var qi=Qe.text.charAt(ae.ch)||`
|
|
`,mr=Ge(qi,Zn)?"w":qn&&qi==`
|
|
`?"n":!qn||/\s/.test(qi)?null:"p";if(qn&&!Ki&&!mr&&(mr="s"),kt&&kt!=mr){ce<0&&(ce=1,fn(),ae.sticky="after");break}if(mr&&(kt=mr),ce>0&&!fn(!Ki))break}var Ir=wc(ie,ae,Ae,Oe,!0);return Hn(Ae,Ir)&&(Ir.hitSide=!0),Ir}function Lh(ie,ae,ce,he){var pe=ie.doc,Ae=ae.left,Oe;if(he=="page"){var Qe=Math.min(ie.display.wrapper.clientHeight,window.innerHeight||document.documentElement.clientHeight),_e=Math.max(Qe-.5*sa(ie.display),3);Oe=(ce>0?ae.bottom:ae.top)+ce*_e}else he=="line"&&(Oe=ce>0?ae.bottom+3:ae.top-3);for(var ct;ct=Sr(ie,Ae,Oe),!!ct.outside;){if(ce<0?Oe<=0:Oe>=pe.height){ct.hitSide=!0;break}Oe+=ce*5}return ct}var Da=function(ie){this.cm=ie,this.lastAnchorNode=this.lastAnchorOffset=this.lastFocusNode=this.lastFocusOffset=null,this.polling=new $e,this.composing=null,this.gracePeriod=!1,this.readDOMTimeout=null};Da.prototype.init=function(ie){var ae=this,ce=this,he=ce.cm,pe=ce.div=ie.lineDiv;Vg(pe,he.options.spellcheck,he.options.autocorrect,he.options.autocapitalize);function Ae(Qe){for(var _e=Qe.target;_e;_e=_e.parentNode){if(_e==pe)return!0;if(/\bCodeMirror-(?:line)?widget\b/.test(_e.className))break}return!1}wn(pe,"paste",function(Qe){!Ae(Qe)||pn(he,Qe)||Wg(Qe,he)||ze<=11&&setTimeout(co(he,function(){return ae.updateFromDOM()}),20)}),wn(pe,"compositionstart",function(Qe){ae.composing={data:Qe.data,done:!1}}),wn(pe,"compositionupdate",function(Qe){ae.composing||(ae.composing={data:Qe.data,done:!1})}),wn(pe,"compositionend",function(Qe){ae.composing&&(Qe.data!=ae.composing.data&&ae.readFromDOMSoon(),ae.composing.done=!0)}),wn(pe,"touchstart",function(){return ce.forceCompositionEnd()}),wn(pe,"input",function(){ae.composing||ae.readFromDOMSoon()});function Oe(Qe){if(!(!Ae(Qe)||pn(he,Qe))){if(he.somethingSelected())ld({lineWise:!1,text:he.getSelections()}),Qe.type=="cut"&&he.replaceSelection("",null,"cut");else if(he.options.lineWiseCopyCut){var _e=Zg(he);ld({lineWise:!0,text:_e.text}),Qe.type=="cut"&&he.operation(function(){he.setSelections(_e.ranges,0,rn),he.replaceSelection("",null,"cut")})}else return;if(Qe.clipboardData){Qe.clipboardData.clearData();var ct=ll.text.join(`
|
|
`);if(Qe.clipboardData.setData("Text",ct),Qe.clipboardData.getData("Text")==ct){Qe.preventDefault();return}}var fn=Gg(),kt=fn.firstChild;he.display.lineSpace.insertBefore(fn,he.display.lineSpace.firstChild),kt.value=ll.text.join(`
|
|
`);var qn=document.activeElement;un(kt),setTimeout(function(){he.display.lineSpace.removeChild(fn),qn.focus(),qn==pe&&ce.showPrimarySelection()},50)}}wn(pe,"copy",Oe),wn(pe,"cut",Oe)},Da.prototype.screenReaderLabelChanged=function(ie){ie?this.div.setAttribute("aria-label",ie):this.div.removeAttribute("aria-label")},Da.prototype.prepareSelection=function(){var ie=Dl(this.cm,!1);return ie.focus=document.activeElement==this.div,ie},Da.prototype.showSelection=function(ie,ae){!ie||!this.cm.display.view.length||((ie.focus||ae)&&this.showPrimarySelection(),this.showMultipleSelections(ie))},Da.prototype.getSelection=function(){return this.cm.display.wrapper.ownerDocument.getSelection()},Da.prototype.showPrimarySelection=function(){var ie=this.getSelection(),ae=this.cm,ce=ae.doc.sel.primary(),he=ce.from(),pe=ce.to();if(ae.display.viewTo==ae.display.viewFrom||he.line>=ae.display.viewTo||pe.line<ae.display.viewFrom){ie.removeAllRanges();return}var Ae=Dc(ae,ie.anchorNode,ie.anchorOffset),Oe=Dc(ae,ie.focusNode,ie.focusOffset);if(!(Ae&&!Ae.bad&&Oe&&!Oe.bad&&Bn(si(Ae,Oe),he)==0&&Bn(Ei(Ae,Oe),pe)==0)){var Qe=ae.display.view,_e=he.line>=ae.display.viewFrom&&Af(ae,he)||{node:Qe[0].measure.map[2],offset:0},ct=pe.line<ae.display.viewTo&&Af(ae,pe);if(!ct){var fn=Qe[Qe.length-1].measure,kt=fn.maps?fn.maps[fn.maps.length-1]:fn.map;ct={node:kt[kt.length-1],offset:kt[kt.length-2]-kt[kt.length-3]}}if(!_e||!ct){ie.removeAllRanges();return}var qn=ie.rangeCount&&ie.getRangeAt(0),Zn;try{Zn=ft(_e.node,_e.offset,ct.offset,ct.node)}catch(Ki){}Zn&&(!ye&&ae.state.focused?(ie.collapse(_e.node,_e.offset),Zn.collapsed||(ie.removeAllRanges(),ie.addRange(Zn))):(ie.removeAllRanges(),ie.addRange(Zn)),qn&&ie.anchorNode==null?ie.addRange(qn):ye&&this.startGracePeriod()),this.rememberSelection()}},Da.prototype.startGracePeriod=function(){var ie=this;clearTimeout(this.gracePeriod),this.gracePeriod=setTimeout(function(){ie.gracePeriod=!1,ie.selectionChanged()&&ie.cm.operation(function(){return ie.cm.curOp.selectionChanged=!0})},20)},Da.prototype.showMultipleSelections=function(ie){Ye(this.cm.display.cursorDiv,ie.cursors),Ye(this.cm.display.selectionDiv,ie.selection)},Da.prototype.rememberSelection=function(){var ie=this.getSelection();this.lastAnchorNode=ie.anchorNode,this.lastAnchorOffset=ie.anchorOffset,this.lastFocusNode=ie.focusNode,this.lastFocusOffset=ie.focusOffset},Da.prototype.selectionInEditor=function(){var ie=this.getSelection();if(!ie.rangeCount)return!1;var ae=ie.getRangeAt(0).commonAncestorContainer;return Nt(this.div,ae)},Da.prototype.focus=function(){this.cm.options.readOnly!="nocursor"&&((!this.selectionInEditor()||document.activeElement!=this.div)&&this.showSelection(this.prepareSelection(),!0),this.div.focus())},Da.prototype.blur=function(){this.div.blur()},Da.prototype.getField=function(){return this.div},Da.prototype.supportsTouch=function(){return!0},Da.prototype.receivedFocus=function(){var ie=this;this.selectionInEditor()?this.pollSelection():lo(this.cm,function(){return ie.cm.curOp.selectionChanged=!0});function ae(){ie.cm.state.focused&&(ie.pollSelection(),ie.polling.set(ie.cm.options.pollInterval,ae))}this.polling.set(this.cm.options.pollInterval,ae)},Da.prototype.selectionChanged=function(){var ie=this.getSelection();return ie.anchorNode!=this.lastAnchorNode||ie.anchorOffset!=this.lastAnchorOffset||ie.focusNode!=this.lastFocusNode||ie.focusOffset!=this.lastFocusOffset},Da.prototype.pollSelection=function(){if(!(this.readDOMTimeout!=null||this.gracePeriod||!this.selectionChanged())){var ie=this.getSelection(),ae=this.cm;if(ne&&Et&&this.cm.display.gutterSpecs.length&&Kg(ie.anchorNode)){this.cm.triggerOnKeyDown({type:"keydown",keyCode:8,preventDefault:Math.abs}),this.blur(),this.focus();return}if(!this.composing){this.rememberSelection();var ce=Dc(ae,ie.anchorNode,ie.anchorOffset),he=Dc(ae,ie.focusNode,ie.focusOffset);ce&&he&&lo(ae,function(){Ks(ae.doc,qu(ce,he),rn),(ce.bad||he.bad)&&(ae.curOp.selectionChanged=!0)})}}},Da.prototype.pollContent=function(){this.readDOMTimeout!=null&&(clearTimeout(this.readDOMTimeout),this.readDOMTimeout=null);var ie=this.cm,ae=ie.display,ce=ie.doc.sel.primary(),he=ce.from(),pe=ce.to();if(he.ch==0&&he.line>ie.firstLine()&&(he=Ot(he.line-1,ai(ie.doc,he.line-1).length)),pe.ch==ai(ie.doc,pe.line).text.length&&pe.line<ie.lastLine()&&(pe=Ot(pe.line+1,0)),he.line<ae.viewFrom||pe.line>ae.viewTo-1)return!1;var Ae,Oe,Qe;he.line==ae.viewFrom||(Ae=ts(ie,he.line))==0?(Oe=Ve(ae.view[0].line),Qe=ae.view[0].node):(Oe=Ve(ae.view[Ae].line),Qe=ae.view[Ae-1].node.nextSibling);var _e=ts(ie,pe.line),ct,fn;if(_e==ae.view.length-1?(ct=ae.viewTo-1,fn=ae.lineDiv.lastChild):(ct=Ve(ae.view[_e+1].line)-1,fn=ae.view[_e+1].node.previousSibling),!Qe)return!1;for(var kt=ie.doc.splitLines(Yd(ie,Qe,fn,Oe,ct)),qn=Pn(ie.doc,Ot(Oe,0),Ot(ct,ai(ie.doc,ct).text.length));kt.length>1&&qn.length>1;)if(wt(kt)==wt(qn))kt.pop(),qn.pop(),ct--;else if(kt[0]==qn[0])kt.shift(),qn.shift(),Oe++;else break;for(var Zn=0,Ki=0,qi=kt[0],mr=qn[0],Ir=Math.min(qi.length,mr.length);Zn<Ir&&qi.charCodeAt(Zn)==mr.charCodeAt(Zn);)++Zn;for(var $r=wt(kt),Gr=wt(qn),oo=Math.min($r.length-(kt.length==1?Zn:0),Gr.length-(qn.length==1?Zn:0));Ki<oo&&$r.charCodeAt($r.length-Ki-1)==Gr.charCodeAt(Gr.length-Ki-1);)++Ki;if(kt.length==1&&qn.length==1&&Oe==he.line)for(;Zn&&Zn>he.ch&&$r.charCodeAt($r.length-Ki-1)==Gr.charCodeAt(Gr.length-Ki-1);)Zn--,Ki++;kt[kt.length-1]=$r.slice(0,$r.length-Ki).replace(/^\u200b+/,""),kt[0]=kt[0].slice(Zn).replace(/\u200b+$/,"");var ko=Ot(Oe,Zn),Vr=Ot(ct,qn.length?wt(qn).length-Ki:0);if(kt.length>1||kt[0]||Bn(ko,Vr))return ed(ie.doc,kt,ko,Vr,"+input"),!0},Da.prototype.ensurePolled=function(){this.forceCompositionEnd()},Da.prototype.reset=function(){this.forceCompositionEnd()},Da.prototype.forceCompositionEnd=function(){this.composing&&(clearTimeout(this.readDOMTimeout),this.composing=null,this.updateFromDOM(),this.div.blur(),this.div.focus())},Da.prototype.readFromDOMSoon=function(){var ie=this;this.readDOMTimeout==null&&(this.readDOMTimeout=setTimeout(function(){if(ie.readDOMTimeout=null,ie.composing)if(ie.composing.done)ie.composing=null;else return;ie.updateFromDOM()},80))},Da.prototype.updateFromDOM=function(){var ie=this;(this.cm.isReadOnly()||!this.pollContent())&&lo(this.cm,function(){return ca(ie.cm)})},Da.prototype.setUneditable=function(ie){ie.contentEditable="false"},Da.prototype.onKeyPress=function(ie){ie.charCode==0||this.composing||(ie.preventDefault(),this.cm.isReadOnly()||co(this.cm,kc)(this.cm,String.fromCharCode(ie.charCode==null?ie.keyCode:ie.charCode),0))},Da.prototype.readOnlyChanged=function(ie){this.div.contentEditable=String(ie!="nocursor")},Da.prototype.onContextMenu=function(){},Da.prototype.resetPosition=function(){},Da.prototype.needsContentAttribute=!0;function Af(ie,ae){var ce=Jo(ie,ae.line);if(!ce||ce.hidden)return null;var he=ai(ie.doc,ae.line),pe=so(ce,he,ae.line),Ae=dn(he,ie.doc.direction),Oe="left";if(Ae){var Qe=Tt(Ae,ae.ch);Oe=Qe%2?"right":"left"}var _e=Yo(pe.map,ae.ch,Oe);return _e.offset=_e.collapse=="right"?_e.end:_e.start,_e}function Kg(ie){for(var ae=ie;ae;ae=ae.parentNode)if(/CodeMirror-gutter-wrapper/.test(ae.className))return!0;return!1}function Kd(ie,ae){return ae&&(ie.bad=!0),ie}function Yd(ie,ae,ce,he,pe){var Ae="",Oe=!1,Qe=ie.doc.lineSeparator(),_e=!1;function ct(Zn){return function(Ki){return Ki.id==Zn}}function fn(){Oe&&(Ae+=Qe,_e&&(Ae+=Qe),Oe=_e=!1)}function kt(Zn){Zn&&(fn(),Ae+=Zn)}function qn(Zn){if(Zn.nodeType==1){var Ki=Zn.getAttribute("cm-text");if(Ki){kt(Ki);return}var qi=Zn.getAttribute("cm-marker"),mr;if(qi){var Ir=ie.findMarks(Ot(he,0),Ot(pe+1,0),ct(+qi));Ir.length&&(mr=Ir[0].find(0))&&kt(Pn(ie.doc,mr.from,mr.to).join(Qe));return}if(Zn.getAttribute("contenteditable")=="false")return;var $r=/^(pre|div|p|li|table|br)$/i.test(Zn.nodeName);if(!/^br$/i.test(Zn.nodeName)&&Zn.textContent.length==0)return;$r&&fn();for(var Gr=0;Gr<Zn.childNodes.length;Gr++)qn(Zn.childNodes[Gr]);/^(pre|p)$/i.test(Zn.nodeName)&&(_e=!0),$r&&(Oe=!0)}else Zn.nodeType==3&&kt(Zn.nodeValue.replace(/\u200b/g,"").replace(/\u00a0/g," "))}for(;qn(ae),ae!=ce;)ae=ae.nextSibling,_e=!1;return Ae}function Dc(ie,ae,ce){var he;if(ae==ie.display.lineDiv){if(he=ie.display.lineDiv.childNodes[ce],!he)return Kd(ie.clipPos(Ot(ie.display.viewTo-1)),!0);ae=null,ce=0}else for(he=ae;;he=he.parentNode){if(!he||he==ie.display.lineDiv)return null;if(he.parentNode&&he.parentNode==ie.display.lineDiv)break}for(var pe=0;pe<ie.display.view.length;pe++){var Ae=ie.display.view[pe];if(Ae.node==he)return hm(Ae,ae,ce)}}function hm(ie,ae,ce){var he=ie.text.firstChild,pe=!1;if(!ae||!Nt(he,ae))return Kd(Ot(Ve(ie.line),0),!0);if(ae==he&&(pe=!0,ae=he.childNodes[ce],ce=0,!ae)){var Ae=ie.rest?wt(ie.rest):ie.line;return Kd(Ot(Ve(Ae),Ae.text.length),pe)}var Oe=ae.nodeType==3?ae:null,Qe=ae;for(!Oe&&ae.childNodes.length==1&&ae.firstChild.nodeType==3&&(Oe=ae.firstChild,ce&&(ce=Oe.nodeValue.length));Qe.parentNode!=he;)Qe=Qe.parentNode;var _e=ie.measure,ct=_e.maps;function fn(mr,Ir,$r){for(var Gr=-1;Gr<(ct?ct.length:0);Gr++)for(var oo=Gr<0?_e.map:ct[Gr],ko=0;ko<oo.length;ko+=3){var Vr=oo[ko+2];if(Vr==mr||Vr==Ir){var _o=Ve(Gr<0?ie.line:ie.rest[Gr]),ja=oo[ko]+$r;return($r<0||Vr!=mr)&&(ja=oo[ko+($r?1:0)]),Ot(_o,ja)}}}var kt=fn(Oe,Qe,ce);if(kt)return Kd(kt,pe);for(var qn=Qe.nextSibling,Zn=Oe?Oe.nodeValue.length-ce:0;qn;qn=qn.nextSibling){if(kt=fn(qn,qn.firstChild,0),kt)return Kd(Ot(kt.line,kt.ch-Zn),pe);Zn+=qn.textContent.length}for(var Ki=Qe.previousSibling,qi=ce;Ki;Ki=Ki.previousSibling){if(kt=fn(Ki,Ki.firstChild,-1),kt)return Kd(Ot(kt.line,kt.ch+qi),pe);qi+=Ki.textContent.length}}var gs=function(ie){this.cm=ie,this.prevInput="",this.pollingFast=!1,this.polling=new $e,this.hasSelection=!1,this.composing=null};gs.prototype.init=function(ie){var ae=this,ce=this,he=this.cm;this.createField(ie);var pe=this.textarea;ie.wrapper.insertBefore(this.wrapper,ie.wrapper.firstChild),Ne&&(pe.style.width="0px"),wn(pe,"input",function(){Mt&&ze>=9&&ae.hasSelection&&(ae.hasSelection=null),ce.poll()}),wn(pe,"paste",function(Oe){pn(he,Oe)||Wg(Oe,he)||(he.state.pasteIncoming=+new Date,ce.fastPoll())});function Ae(Oe){if(!pn(he,Oe)){if(he.somethingSelected())ld({lineWise:!1,text:he.getSelections()});else if(he.options.lineWiseCopyCut){var Qe=Zg(he);ld({lineWise:!0,text:Qe.text}),Oe.type=="cut"?he.setSelections(Qe.ranges,null,rn):(ce.prevInput="",pe.value=Qe.text.join(`
|
|
`),un(pe))}else return;Oe.type=="cut"&&(he.state.cutIncoming=+new Date)}}wn(pe,"cut",Ae),wn(pe,"copy",Ae),wn(ie.scroller,"paste",function(Oe){if(!(Qr(ie,Oe)||pn(he,Oe))){if(!pe.dispatchEvent){he.state.pasteIncoming=+new Date,ce.focus();return}var Qe=new Event("paste");Qe.clipboardData=Oe.clipboardData,pe.dispatchEvent(Qe)}}),wn(ie.lineSpace,"selectstart",function(Oe){Qr(ie,Oe)||pi(Oe)}),wn(pe,"compositionstart",function(){var Oe=he.getCursor("from");ce.composing&&ce.composing.range.clear(),ce.composing={start:Oe,range:he.markText(Oe,he.getCursor("to"),{className:"CodeMirror-composing"})}}),wn(pe,"compositionend",function(){ce.composing&&(ce.poll(),ce.composing.range.clear(),ce.composing=null)})},gs.prototype.createField=function(ie){this.wrapper=Gg(),this.textarea=this.wrapper.firstChild},gs.prototype.screenReaderLabelChanged=function(ie){ie?this.textarea.setAttribute("aria-label",ie):this.textarea.removeAttribute("aria-label")},gs.prototype.prepareSelection=function(){var ie=this.cm,ae=ie.display,ce=ie.doc,he=Dl(ie);if(ie.options.moveInputWithCursor){var pe=wr(ie,ce.sel.primary().head,"div"),Ae=ae.wrapper.getBoundingClientRect(),Oe=ae.lineDiv.getBoundingClientRect();he.teTop=Math.max(0,Math.min(ae.wrapper.clientHeight-10,pe.top+Oe.top-Ae.top)),he.teLeft=Math.max(0,Math.min(ae.wrapper.clientWidth-10,pe.left+Oe.left-Ae.left))}return he},gs.prototype.showSelection=function(ie){var ae=this.cm,ce=ae.display;Ye(ce.cursorDiv,ie.cursors),Ye(ce.selectionDiv,ie.selection),ie.teTop!=null&&(this.wrapper.style.top=ie.teTop+"px",this.wrapper.style.left=ie.teLeft+"px")},gs.prototype.reset=function(ie){if(!(this.contextMenuPending||this.composing)){var ae=this.cm;if(ae.somethingSelected()){this.prevInput="";var ce=ae.getSelection();this.textarea.value=ce,ae.state.focused&&un(this.textarea),Mt&&ze>=9&&(this.hasSelection=ce)}else ie||(this.prevInput=this.textarea.value="",Mt&&ze>=9&&(this.hasSelection=null))}},gs.prototype.getField=function(){return this.textarea},gs.prototype.supportsTouch=function(){return!1},gs.prototype.focus=function(){if(this.cm.options.readOnly!="nocursor"&&(!te||Lt()!=this.textarea))try{this.textarea.focus()}catch(ie){}},gs.prototype.blur=function(){this.textarea.blur()},gs.prototype.resetPosition=function(){this.wrapper.style.top=this.wrapper.style.left=0},gs.prototype.receivedFocus=function(){this.slowPoll()},gs.prototype.slowPoll=function(){var ie=this;this.pollingFast||this.polling.set(this.cm.options.pollInterval,function(){ie.poll(),ie.cm.state.focused&&ie.slowPoll()})},gs.prototype.fastPoll=function(){var ie=!1,ae=this;ae.pollingFast=!0;function ce(){var he=ae.poll();!he&&!ie?(ie=!0,ae.polling.set(60,ce)):(ae.pollingFast=!1,ae.slowPoll())}ae.polling.set(20,ce)},gs.prototype.poll=function(){var ie=this,ae=this.cm,ce=this.textarea,he=this.prevInput;if(this.contextMenuPending||!ae.state.focused||Ce(ce)&&!he&&!this.composing||ae.isReadOnly()||ae.options.disableInput||ae.state.keySeq)return!1;var pe=ce.value;if(pe==he&&!ae.somethingSelected())return!1;if(Mt&&ze>=9&&this.hasSelection===pe||de&&/[\uf700-\uf7ff]/.test(pe))return ae.display.input.reset(),!1;if(ae.doc.sel==ae.display.selForContextMenu){var Ae=pe.charCodeAt(0);if(Ae==8203&&!he&&(he="\u200B"),Ae==8666)return this.reset(),this.cm.execCommand("undo")}for(var Oe=0,Qe=Math.min(he.length,pe.length);Oe<Qe&&he.charCodeAt(Oe)==pe.charCodeAt(Oe);)++Oe;return lo(ae,function(){kc(ae,pe.slice(Oe),he.length-Oe,null,ie.composing?"*compose":null),pe.length>1e3||pe.indexOf(`
|
|
`)>-1?ce.value=ie.prevInput="":ie.prevInput=pe,ie.composing&&(ie.composing.range.clear(),ie.composing.range=ae.markText(ie.composing.start,ae.getCursor("to"),{className:"CodeMirror-composing"}))}),!0},gs.prototype.ensurePolled=function(){this.pollingFast&&this.poll()&&(this.pollingFast=!1)},gs.prototype.onKeyPress=function(){Mt&&ze>=9&&(this.hasSelection=null),this.fastPoll()},gs.prototype.onContextMenu=function(ie){var ae=this,ce=ae.cm,he=ce.display,pe=ae.textarea;ae.contextMenuPending&&ae.contextMenuPending();var Ae=Ya(ce,ie),Oe=he.scroller.scrollTop;if(!Ae||Me)return;var Qe=ce.options.resetSelectionOnContextMenu;Qe&&ce.doc.sel.contains(Ae)==-1&&co(ce,Ks)(ce.doc,qu(Ae),rn);var _e=pe.style.cssText,ct=ae.wrapper.style.cssText,fn=ae.wrapper.offsetParent.getBoundingClientRect();ae.wrapper.style.cssText="position: static",pe.style.cssText=`position: absolute; width: 30px; height: 30px;
|
|
top: `+(ie.clientY-fn.top-5)+"px; left: "+(ie.clientX-fn.left-5)+`px;
|
|
z-index: 1000; background: `+(Mt?"rgba(255, 255, 255, .05)":"transparent")+`;
|
|
outline: none; border-width: 0; outline: none; overflow: hidden; opacity: .05; filter: alpha(opacity=5);`;var kt;dt&&(kt=window.scrollY),he.input.focus(),dt&&window.scrollTo(null,kt),he.input.reset(),ce.somethingSelected()||(pe.value=ae.prevInput=" "),ae.contextMenuPending=Zn,he.selForContextMenu=ce.doc.sel,clearTimeout(he.detectingSelectAll);function qn(){if(pe.selectionStart!=null){var qi=ce.somethingSelected(),mr="\u200B"+(qi?pe.value:"");pe.value="\u21DA",pe.value=mr,ae.prevInput=qi?"":"\u200B",pe.selectionStart=1,pe.selectionEnd=mr.length,he.selForContextMenu=ce.doc.sel}}function Zn(){if(ae.contextMenuPending==Zn&&(ae.contextMenuPending=!1,ae.wrapper.style.cssText=ct,pe.style.cssText=_e,Mt&&ze<9&&he.scrollbars.setScrollTop(he.scroller.scrollTop=Oe),pe.selectionStart!=null)){(!Mt||Mt&&ze<9)&&qn();var qi=0,mr=function(){he.selForContextMenu==ce.doc.sel&&pe.selectionStart==0&&pe.selectionEnd>0&&ae.prevInput=="\u200B"?co(ce,as)(ce):qi++<10?he.detectingSelectAll=setTimeout(mr,500):(he.selForContextMenu=null,he.input.reset())};he.detectingSelectAll=setTimeout(mr,200)}}if(Mt&&ze>=9&&qn(),be){Yi(ie);var Ki=function(){jt(window,"mouseup",Ki),setTimeout(Zn,20)};wn(window,"mouseup",Ki)}else setTimeout(Zn,50)},gs.prototype.readOnlyChanged=function(ie){ie||this.reset(),this.textarea.disabled=ie=="nocursor",this.textarea.readOnly=!!ie},gs.prototype.setUneditable=function(){},gs.prototype.needsContentAttribute=!1;function dm(ie,ae){if(ae=ae?hn(ae):{},ae.value=ie.value,!ae.tabindex&&ie.tabIndex&&(ae.tabindex=ie.tabIndex),!ae.placeholder&&ie.placeholder&&(ae.placeholder=ie.placeholder),ae.autofocus==null){var ce=Lt();ae.autofocus=ce==ie||ie.getAttribute("autofocus")!=null&&ce==document.body}function he(){ie.value=Qe.getValue()}var pe;if(ie.form&&(wn(ie.form,"submit",he),!ae.leaveSubmitMethodAlone)){var Ae=ie.form;pe=Ae.submit;try{var Oe=Ae.submit=function(){he(),Ae.submit=pe,Ae.submit(),Ae.submit=Oe}}catch(_e){}}ae.finishInit=function(_e){_e.save=he,_e.getTextArea=function(){return ie},_e.toTextArea=function(){_e.toTextArea=isNaN,he(),ie.parentNode.removeChild(_e.getWrapperElement()),ie.style.display="",ie.form&&(jt(ie.form,"submit",he),!ae.leaveSubmitMethodAlone&&typeof ie.form.submit=="function"&&(ie.form.submit=pe))}},ie.style.display="none";var Qe=fa(function(_e){return ie.parentNode.insertBefore(_e,ie.nextSibling)},ae);return Qe}function Ud(ie){ie.off=jt,ie.on=wn,ie.wheelEventPixels=Ol,ie.Doc=Is,ie.splitLines=yr,ie.countColumn=vt,ie.findColumn=mi,ie.isWordChar=Be,ie.Pass=Fn,ie.signal=Xt,ie.Line=tn,ie.changeEnd=Sh,ie.scrollbarModel=Bl,ie.Pos=Ot,ie.cmpPos=Bn,ie.modes=or,ie.mimeModes=Ii,ie.resolveMode=Mn,ie.getMode=yt,ie.modeExtensions=xt,ie.extendMode=Ct,ie.copyState=Yn,ie.startState=di,ie.innerMode=$n,ie.commands=Ch,ie.keyMap=xl,ie.keyName=im,ie.isModifierKey=jd,ie.lookupKey=_l,ie.normalizeKeyMap=Lg,ie.StringStream=xn,ie.SharedTextMarker=Tu,ie.TextMarker=qt,ie.LineWidget=th,ie.e_preventDefault=pi,ie.e_stopPropagation=vn,ie.e_stop=Yi,ie.addClass=ln,ie.contains=Nt,ie.rmClass=Ze,ie.keyNames=Ou}lm(fa),Ah(fa);var nh="iter insert remove copy getEditor constructor".split(" ");for(var Nc in Is.prototype)Is.prototype.hasOwnProperty(Nc)&&gn(nh,Nc)<0&&(fa.prototype[Nc]=function(ie){return function(){return ie.apply(this.doc,arguments)}}(Is.prototype[Nc]));return ti(Is),fa.inputStyles={textarea:gs,contenteditable:Da},fa.defineMode=function(ie){!fa.defaults.mode&&ie!="null"&&(fa.defaults.mode=ie),Tn.apply(this,arguments)},fa.defineMIME=Cn,fa.defineMode("null",function(){return{token:function(ie){return ie.skipToEnd()}}}),fa.defineMIME("text/plain","null"),fa.defineExtension=function(ie,ae){fa.prototype[ie]=ae},fa.defineDocExtension=function(ie,ae){Is.prototype[ie]=ae},fa.fromTextArea=dm,Ud(fa),fa.version="5.58.2",fa})},25419:function(Jn,gi,De){(function(ye){ye(De(89780),De(15525),De(98101))})(function(ye){"use strict";ye.defineMode("markdown",function(nt,it){var Dt=ye.getMode(nt,"text/html"),Mt=Dt.name=="null";function ze(vt){if(ye.findModeByName){var $e=ye.findModeByName(vt);$e&&(vt=$e.mime||$e.mimes[0])}var gn=ye.getMode(nt,vt);return gn.name=="null"?null:gn}it.highlightFormatting===void 0&&(it.highlightFormatting=!1),it.maxBlockquoteDepth===void 0&&(it.maxBlockquoteDepth=0),it.taskLists===void 0&&(it.taskLists=!1),it.strikethrough===void 0&&(it.strikethrough=!1),it.emoji===void 0&&(it.emoji=!1),it.fencedCodeBlockHighlighting===void 0&&(it.fencedCodeBlockHighlighting=!0),it.fencedCodeBlockDefaultMode===void 0&&(it.fencedCodeBlockDefaultMode="text/plain"),it.xml===void 0&&(it.xml=!0),it.tokenTypeOverrides===void 0&&(it.tokenTypeOverrides={});var dt={header:"header",code:"comment",quote:"quote",list1:"variable-2",list2:"variable-3",list3:"keyword",hr:"hr",image:"image",imageAltText:"image-alt-text",imageMarker:"image-marker",formatting:"formatting",linkInline:"link",linkEmail:"link",linkText:"link",linkHref:"string",em:"em",strong:"strong",strikethrough:"strikethrough",emoji:"builtin"};for(var Kt in dt)dt.hasOwnProperty(Kt)&&it.tokenTypeOverrides[Kt]&&(dt[Kt]=it.tokenTypeOverrides[Kt]);var Et=/^([*\-_])(?:\s*\1){2,}\s*$/,Me=/^(?:[*\-+]|^[0-9]+([.)]))\s+/,zt=/^\[(x| )\](?=\s)/i,Ke=it.allowAtxHeaderWithoutSpace?/^(#+)/:/^(#+)(?: |$)/,Ht=/^ {0,3}(?:\={1,}|-{2,})\s*$/,Ne=/^[^#!\[\]*_\\<>` "'(~:]+/,ne=/^(~~~+|```+)[ \t]*([\w\/+#-]*)[^\n`]*$/,te=/^\s*\[[^\]]+?\]:.*$/,de=/[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/,le=" ";function ge(vt,$e,gn){return $e.f=$e.inline=gn,gn(vt,$e)}function me(vt,$e,gn){return $e.f=$e.block=gn,gn(vt,$e)}function Se(vt){return!vt||!/\S/.test(vt.string)}function be(vt){if(vt.linkTitle=!1,vt.linkHref=!1,vt.linkText=!1,vt.em=!1,vt.strong=!1,vt.strikethrough=!1,vt.quote=0,vt.indentedCode=!1,vt.f==Ze){var $e=Mt;if(!$e){var gn=ye.innerMode(Dt,vt.htmlState);$e=gn.mode.name=="xml"&&gn.state.tagStart===null&&!gn.state.context&&gn.state.tokenize.isInText}$e&&(vt.f=At,vt.block=Ie,vt.htmlState=null)}return vt.trailingSpace=0,vt.trailingSpaceNewLine=!1,vt.prevLine=vt.thisLine,vt.thisLine={stream:null},null}function Ie(vt,$e){var gn=vt.column()===$e.indentation,ci=Se($e.prevLine.stream),Fn=$e.indentedCode,rn=$e.prevLine.hr,Xn=$e.list!==!1,Nn=($e.listStack[$e.listStack.length-1]||0)+3;$e.indentedCode=!1;var mi=$e.indentation;if($e.indentationDiff===null&&($e.indentationDiff=$e.indentation,Xn)){for($e.list=null;mi<$e.listStack[$e.listStack.length-1];)$e.listStack.pop(),$e.listStack.length?$e.indentation=$e.listStack[$e.listStack.length-1]:$e.list=!1;$e.list!==!1&&($e.indentationDiff=mi-$e.listStack[$e.listStack.length-1])}var Zt=!ci&&!rn&&!$e.prevLine.header&&(!Xn||!Fn)&&!$e.prevLine.fencedCodeEnd,Rn=($e.list===!1||rn||ci)&&$e.indentation<=Nn&&vt.match(Et),wt=null;if($e.indentationDiff>=4&&(Fn||$e.prevLine.fencedCodeEnd||$e.prevLine.header||ci))return vt.skipToEnd(),$e.indentedCode=!0,dt.code;if(vt.eatSpace())return null;if(gn&&$e.indentation<=Nn&&(wt=vt.match(Ke))&&wt[1].length<=6)return $e.quote=0,$e.header=wt[1].length,$e.thisLine.header=!0,it.highlightFormatting&&($e.formatting="header"),$e.f=$e.inline,Ye($e);if($e.indentation<=Nn&&vt.eat(">"))return $e.quote=gn?1:$e.quote+1,it.highlightFormatting&&($e.formatting="quote"),vt.eatSpace(),Ye($e);if(!Rn&&!$e.setext&&gn&&$e.indentation<=Nn&&(wt=vt.match(Me))){var Ai=wt[1]?"ol":"ul";return $e.indentation=mi+vt.current().length,$e.list=!0,$e.quote=0,$e.listStack.push($e.indentation),$e.em=!1,$e.strong=!1,$e.code=!1,$e.strikethrough=!1,it.taskLists&&vt.match(zt,!1)&&($e.taskList=!0),$e.f=$e.inline,it.highlightFormatting&&($e.formatting=["list","list-"+Ai]),Ye($e)}else{if(gn&&$e.indentation<=Nn&&(wt=vt.match(ne,!0)))return $e.quote=0,$e.fencedEndRE=new RegExp(wt[1]+"+ *$"),$e.localMode=it.fencedCodeBlockHighlighting&&ze(wt[2]||it.fencedCodeBlockDefaultMode),$e.localMode&&($e.localState=ye.startState($e.localMode)),$e.f=$e.block=st,it.highlightFormatting&&($e.formatting="code-block"),$e.code=-1,Ye($e);if($e.setext||(!Zt||!Xn)&&!$e.quote&&$e.list===!1&&!$e.code&&!Rn&&!te.test(vt.string)&&(wt=vt.lookAhead(1))&&(wt=wt.match(Ht)))return $e.setext?($e.header=$e.setext,$e.setext=0,vt.skipToEnd(),it.highlightFormatting&&($e.formatting="header")):($e.header=wt[0].charAt(0)=="="?1:2,$e.setext=$e.header),$e.thisLine.header=!0,$e.f=$e.inline,Ye($e);if(Rn)return vt.skipToEnd(),$e.hr=!0,$e.thisLine.hr=!0,dt.hr;if(vt.peek()==="[")return ge(vt,$e,kn)}return ge(vt,$e,$e.inline)}function Ze(vt,$e){var gn=Dt.token(vt,$e.htmlState);if(!Mt){var ci=ye.innerMode(Dt,$e.htmlState);(ci.mode.name=="xml"&&ci.state.tagStart===null&&!ci.state.context&&ci.state.tokenize.isInText||$e.md_inside&&vt.current().indexOf(">")>-1)&&($e.f=At,$e.block=Ie,$e.htmlState=null)}return gn}function st(vt,$e){var gn=$e.listStack[$e.listStack.length-1]||0,ci=$e.indentation<gn,Fn=gn+3;if($e.fencedEndRE&&$e.indentation<=Fn&&(ci||vt.match($e.fencedEndRE))){it.highlightFormatting&&($e.formatting="code-block");var rn;return ci||(rn=Ye($e)),$e.localMode=$e.localState=null,$e.block=Ie,$e.f=At,$e.fencedEndRE=null,$e.code=0,$e.thisLine.fencedCodeEnd=!0,ci?me(vt,$e,$e.block):rn}else return $e.localMode?$e.localMode.token(vt,$e.localState):(vt.skipToEnd(),dt.code)}function Ye(vt){var $e=[];if(vt.formatting){$e.push(dt.formatting),typeof vt.formatting=="string"&&(vt.formatting=[vt.formatting]);for(var gn=0;gn<vt.formatting.length;gn++)$e.push(dt.formatting+"-"+vt.formatting[gn]),vt.formatting[gn]==="header"&&$e.push(dt.formatting+"-"+vt.formatting[gn]+"-"+vt.header),vt.formatting[gn]==="quote"&&(!it.maxBlockquoteDepth||it.maxBlockquoteDepth>=vt.quote?$e.push(dt.formatting+"-"+vt.formatting[gn]+"-"+vt.quote):$e.push("error"))}if(vt.taskOpen)return $e.push("meta"),$e.length?$e.join(" "):null;if(vt.taskClosed)return $e.push("property"),$e.length?$e.join(" "):null;if(vt.linkHref?$e.push(dt.linkHref,"url"):(vt.strong&&$e.push(dt.strong),vt.em&&$e.push(dt.em),vt.strikethrough&&$e.push(dt.strikethrough),vt.emoji&&$e.push(dt.emoji),vt.linkText&&$e.push(dt.linkText),vt.code&&$e.push(dt.code),vt.image&&$e.push(dt.image),vt.imageAltText&&$e.push(dt.imageAltText,"link"),vt.imageMarker&&$e.push(dt.imageMarker)),vt.header&&$e.push(dt.header,dt.header+"-"+vt.header),vt.quote&&($e.push(dt.quote),!it.maxBlockquoteDepth||it.maxBlockquoteDepth>=vt.quote?$e.push(dt.quote+"-"+vt.quote):$e.push(dt.quote+"-"+it.maxBlockquoteDepth)),vt.list!==!1){var ci=(vt.listStack.length-1)%3;ci?ci===1?$e.push(dt.list2):$e.push(dt.list3):$e.push(dt.list1)}return vt.trailingSpaceNewLine?$e.push("trailing-space-new-line"):vt.trailingSpace&&$e.push("trailing-space-"+(vt.trailingSpace%2?"a":"b")),$e.length?$e.join(" "):null}function Xe(vt,$e){if(vt.match(Ne,!0))return Ye($e)}function At(vt,$e){var gn=$e.text(vt,$e);if(typeof gn!="undefined")return gn;if($e.list)return $e.list=null,Ye($e);if($e.taskList){var ci=vt.match(zt,!0)[1]===" ";return ci?$e.taskOpen=!0:$e.taskClosed=!0,it.highlightFormatting&&($e.formatting="task"),$e.taskList=!1,Ye($e)}if($e.taskOpen=!1,$e.taskClosed=!1,$e.header&&vt.match(/^#+$/,!0))return it.highlightFormatting&&($e.formatting="header"),Ye($e);var Fn=vt.next();if($e.linkTitle){$e.linkTitle=!1;var rn=Fn;Fn==="("&&(rn=")"),rn=(rn+"").replace(/([.?*+^\[\]\\(){}|-])/g,"\\$1");var Xn="^\\s*(?:[^"+rn+"\\\\]+|\\\\\\\\|\\\\.)"+rn;if(vt.match(new RegExp(Xn),!0))return dt.linkHref}if(Fn==="`"){var Nn=$e.formatting;it.highlightFormatting&&($e.formatting="code"),vt.eatWhile("`");var mi=vt.current().length;if($e.code==0&&(!$e.quote||mi==1))return $e.code=mi,Ye($e);if(mi==$e.code){var Zt=Ye($e);return $e.code=0,Zt}else return $e.formatting=Nn,Ye($e)}else if($e.code)return Ye($e);if(Fn==="\\"&&(vt.next(),it.highlightFormatting)){var Rn=Ye($e),wt=dt.formatting+"-escape";return Rn?Rn+" "+wt:wt}if(Fn==="!"&&vt.match(/\[[^\]]*\] ?(?:\(|\[)/,!1))return $e.imageMarker=!0,$e.image=!0,it.highlightFormatting&&($e.formatting="image"),Ye($e);if(Fn==="["&&$e.imageMarker&&vt.match(/[^\]]*\](\(.*?\)| ?\[.*?\])/,!1))return $e.imageMarker=!1,$e.imageAltText=!0,it.highlightFormatting&&($e.formatting="image"),Ye($e);if(Fn==="]"&&$e.imageAltText){it.highlightFormatting&&($e.formatting="image");var Rn=Ye($e);return $e.imageAltText=!1,$e.image=!1,$e.inline=$e.f=Nt,Rn}if(Fn==="["&&!$e.image)return $e.linkText&&vt.match(/^.*?\]/)||($e.linkText=!0,it.highlightFormatting&&($e.formatting="link")),Ye($e);if(Fn==="]"&&$e.linkText){it.highlightFormatting&&($e.formatting="link");var Rn=Ye($e);return $e.linkText=!1,$e.inline=$e.f=vt.match(/\(.*?\)| ?\[.*?\]/,!1)?Nt:At,Rn}if(Fn==="<"&&vt.match(/^(https?|ftps?):\/\/(?:[^\\>]|\\.)+>/,!1)){$e.f=$e.inline=ft,it.highlightFormatting&&($e.formatting="link");var Rn=Ye($e);return Rn?Rn+=" ":Rn="",Rn+dt.linkInline}if(Fn==="<"&&vt.match(/^[^> \\]+@(?:[^\\>]|\\.)+>/,!1)){$e.f=$e.inline=ft,it.highlightFormatting&&($e.formatting="link");var Rn=Ye($e);return Rn?Rn+=" ":Rn="",Rn+dt.linkEmail}if(it.xml&&Fn==="<"&&vt.match(/^(!--|\?|!\[CDATA\[|[a-z][a-z0-9-]*(?:\s+[a-z_:.\-]+(?:\s*=\s*[^>]+)?)*\s*(?:>|$))/i,!1)){var Ai=vt.string.indexOf(">",vt.pos);if(Ai!=-1){var Kn=vt.string.substring(vt.start,Ai);/markdown\s*=\s*('|"){0,1}1('|"){0,1}/.test(Kn)&&($e.md_inside=!0)}return vt.backUp(1),$e.htmlState=ye.startState(Dt),me(vt,$e,Ze)}if(it.xml&&Fn==="<"&&vt.match(/^\/\w*?>/))return $e.md_inside=!1,"tag";if(Fn==="*"||Fn==="_"){for(var je=1,Le=vt.pos==1?" ":vt.string.charAt(vt.pos-2);je<3&&vt.eat(Fn);)je++;var we=vt.peek()||" ",Be=!/\s/.test(we)&&(!de.test(we)||/\s/.test(Le)||de.test(Le)),Ge=!/\s/.test(Le)&&(!de.test(Le)||/\s/.test(we)||de.test(we)),ke=null,et=null;if(je%2&&(!$e.em&&Be&&(Fn==="*"||!Ge||de.test(Le))?ke=!0:$e.em==Fn&&Ge&&(Fn==="*"||!Be||de.test(we))&&(ke=!1)),je>1&&(!$e.strong&&Be&&(Fn==="*"||!Ge||de.test(Le))?et=!0:$e.strong==Fn&&Ge&&(Fn==="*"||!Be||de.test(we))&&(et=!1)),et!=null||ke!=null){it.highlightFormatting&&($e.formatting=ke==null?"strong":et==null?"em":"strong em"),ke===!0&&($e.em=Fn),et===!0&&($e.strong=Fn);var Zt=Ye($e);return ke===!1&&($e.em=!1),et===!1&&($e.strong=!1),Zt}}else if(Fn===" "&&(vt.eat("*")||vt.eat("_"))){if(vt.peek()===" ")return Ye($e);vt.backUp(1)}if(it.strikethrough){if(Fn==="~"&&vt.eatWhile(Fn)){if($e.strikethrough){it.highlightFormatting&&($e.formatting="strikethrough");var Zt=Ye($e);return $e.strikethrough=!1,Zt}else if(vt.match(/^[^\s]/,!1))return $e.strikethrough=!0,it.highlightFormatting&&($e.formatting="strikethrough"),Ye($e)}else if(Fn===" "&&vt.match(/^~~/,!0)){if(vt.peek()===" ")return Ye($e);vt.backUp(2)}}if(it.emoji&&Fn===":"&&vt.match(/^(?:[a-z_\d+][a-z_\d+-]*|\-[a-z_\d+][a-z_\d+-]*):/)){$e.emoji=!0,it.highlightFormatting&&($e.formatting="emoji");var an=Ye($e);return $e.emoji=!1,an}return Fn===" "&&(vt.match(/^ +$/,!1)?$e.trailingSpace++:$e.trailingSpace&&($e.trailingSpaceNewLine=!0)),Ye($e)}function ft(vt,$e){var gn=vt.next();if(gn===">"){$e.f=$e.inline=At,it.highlightFormatting&&($e.formatting="link");var ci=Ye($e);return ci?ci+=" ":ci="",ci+dt.linkInline}return vt.match(/^[^>]+/,!0),dt.linkInline}function Nt(vt,$e){if(vt.eatSpace())return null;var gn=vt.next();return gn==="("||gn==="["?($e.f=$e.inline=ln(gn==="("?")":"]"),it.highlightFormatting&&($e.formatting="link-string"),$e.linkHref=!0,Ye($e)):"error"}var Lt={")":/^(?:[^\\\(\)]|\\.|\((?:[^\\\(\)]|\\.)*\))*?(?=\))/,"]":/^(?:[^\\\[\]]|\\.|\[(?:[^\\\[\]]|\\.)*\])*?(?=\])/};function ln(vt){return function($e,gn){var ci=$e.next();if(ci===vt){gn.f=gn.inline=At,it.highlightFormatting&&(gn.formatting="link-string");var Fn=Ye(gn);return gn.linkHref=!1,Fn}return $e.match(Lt[vt]),gn.linkHref=!0,Ye(gn)}}function kn(vt,$e){return vt.match(/^([^\]\\]|\\.)*\]:/,!1)?($e.f=un,vt.next(),it.highlightFormatting&&($e.formatting="link"),$e.linkText=!0,Ye($e)):ge(vt,$e,At)}function un(vt,$e){if(vt.match(/^\]:/,!0)){$e.f=$e.inline=_t,it.highlightFormatting&&($e.formatting="link");var gn=Ye($e);return $e.linkText=!1,gn}return vt.match(/^([^\]\\]|\\.)+/,!0),dt.linkText}function _t(vt,$e){return vt.eatSpace()?null:(vt.match(/^[^\s]+/,!0),vt.peek()===void 0?$e.linkTitle=!0:vt.match(/^(?:\s+(?:"(?:[^"\\]|\\\\|\\.)+"|'(?:[^'\\]|\\\\|\\.)+'|\((?:[^)\\]|\\\\|\\.)+\)))?/,!0),$e.f=$e.inline=At,dt.linkHref+" url")}var hn={startState:function(){return{f:Ie,prevLine:{stream:null},thisLine:{stream:null},block:Ie,htmlState:null,indentation:0,inline:At,text:Xe,formatting:!1,linkText:!1,linkHref:!1,linkTitle:!1,code:0,em:!1,strong:!1,header:0,setext:0,hr:!1,taskList:!1,list:!1,listStack:[],quote:0,trailingSpace:0,trailingSpaceNewLine:!1,strikethrough:!1,emoji:!1,fencedEndRE:null}},copyState:function(vt){return{f:vt.f,prevLine:vt.prevLine,thisLine:vt.thisLine,block:vt.block,htmlState:vt.htmlState&&ye.copyState(Dt,vt.htmlState),indentation:vt.indentation,localMode:vt.localMode,localState:vt.localMode?ye.copyState(vt.localMode,vt.localState):null,inline:vt.inline,text:vt.text,formatting:!1,linkText:vt.linkText,linkTitle:vt.linkTitle,linkHref:vt.linkHref,code:vt.code,em:vt.em,strong:vt.strong,strikethrough:vt.strikethrough,emoji:vt.emoji,header:vt.header,setext:vt.setext,hr:vt.hr,taskList:vt.taskList,list:vt.list,listStack:vt.listStack.slice(0),quote:vt.quote,indentedCode:vt.indentedCode,trailingSpace:vt.trailingSpace,trailingSpaceNewLine:vt.trailingSpaceNewLine,md_inside:vt.md_inside,fencedEndRE:vt.fencedEndRE}},token:function(vt,$e){if($e.formatting=!1,vt!=$e.thisLine.stream){if($e.header=0,$e.hr=!1,vt.match(/^\s*$/,!0))return be($e),null;if($e.prevLine=$e.thisLine,$e.thisLine={stream:vt},$e.taskList=!1,$e.trailingSpace=0,$e.trailingSpaceNewLine=!1,!$e.localState&&($e.f=$e.block,$e.f!=Ze)){var gn=vt.match(/^\s*/,!0)[0].replace(/\t/g,le).length;if($e.indentation=gn,$e.indentationDiff=null,gn>0)return null}}return $e.f(vt,$e)},innerMode:function(vt){return vt.block==Ze?{state:vt.htmlState,mode:Dt}:vt.localState?{state:vt.localState,mode:vt.localMode}:{state:vt,mode:hn}},indent:function(vt,$e,gn){return vt.block==Ze&&Dt.indent?Dt.indent(vt.htmlState,$e,gn):vt.localState&&vt.localMode.indent?vt.localMode.indent(vt.localState,$e,gn):ye.Pass},blankLine:be,getType:Ye,blockCommentStart:"<!--",blockCommentEnd:"-->",closeBrackets:"()[]{}''\"\"``",fold:"markdown"};return hn},"xml"),ye.defineMIME("text/markdown","markdown"),ye.defineMIME("text/x-markdown","markdown")})},98101:function(Jn,gi,De){(function(ye){ye(De(89780))})(function(ye){"use strict";ye.modeInfo=[{name:"APL",mime:"text/apl",mode:"apl",ext:["dyalog","apl"]},{name:"PGP",mimes:["application/pgp","application/pgp-encrypted","application/pgp-keys","application/pgp-signature"],mode:"asciiarmor",ext:["asc","pgp","sig"]},{name:"ASN.1",mime:"text/x-ttcn-asn",mode:"asn.1",ext:["asn","asn1"]},{name:"Asterisk",mime:"text/x-asterisk",mode:"asterisk",file:/^extensions\.conf$/i},{name:"Brainfuck",mime:"text/x-brainfuck",mode:"brainfuck",ext:["b","bf"]},{name:"C",mime:"text/x-csrc",mode:"clike",ext:["c","h","ino"]},{name:"C++",mime:"text/x-c++src",mode:"clike",ext:["cpp","c++","cc","cxx","hpp","h++","hh","hxx"],alias:["cpp"]},{name:"Cobol",mime:"text/x-cobol",mode:"cobol",ext:["cob","cpy"]},{name:"C#",mime:"text/x-csharp",mode:"clike",ext:["cs"],alias:["csharp","cs"]},{name:"Clojure",mime:"text/x-clojure",mode:"clojure",ext:["clj","cljc","cljx"]},{name:"ClojureScript",mime:"text/x-clojurescript",mode:"clojure",ext:["cljs"]},{name:"Closure Stylesheets (GSS)",mime:"text/x-gss",mode:"css",ext:["gss"]},{name:"CMake",mime:"text/x-cmake",mode:"cmake",ext:["cmake","cmake.in"],file:/^CMakeLists\.txt$/},{name:"CoffeeScript",mimes:["application/vnd.coffeescript","text/coffeescript","text/x-coffeescript"],mode:"coffeescript",ext:["coffee"],alias:["coffee","coffee-script"]},{name:"Common Lisp",mime:"text/x-common-lisp",mode:"commonlisp",ext:["cl","lisp","el"],alias:["lisp"]},{name:"Cypher",mime:"application/x-cypher-query",mode:"cypher",ext:["cyp","cypher"]},{name:"Cython",mime:"text/x-cython",mode:"python",ext:["pyx","pxd","pxi"]},{name:"Crystal",mime:"text/x-crystal",mode:"crystal",ext:["cr"]},{name:"CSS",mime:"text/css",mode:"css",ext:["css"]},{name:"CQL",mime:"text/x-cassandra",mode:"sql",ext:["cql"]},{name:"D",mime:"text/x-d",mode:"d",ext:["d"]},{name:"Dart",mimes:["application/dart","text/x-dart"],mode:"dart",ext:["dart"]},{name:"diff",mime:"text/x-diff",mode:"diff",ext:["diff","patch"]},{name:"Django",mime:"text/x-django",mode:"django"},{name:"Dockerfile",mime:"text/x-dockerfile",mode:"dockerfile",file:/^Dockerfile$/},{name:"DTD",mime:"application/xml-dtd",mode:"dtd",ext:["dtd"]},{name:"Dylan",mime:"text/x-dylan",mode:"dylan",ext:["dylan","dyl","intr"]},{name:"EBNF",mime:"text/x-ebnf",mode:"ebnf"},{name:"ECL",mime:"text/x-ecl",mode:"ecl",ext:["ecl"]},{name:"edn",mime:"application/edn",mode:"clojure",ext:["edn"]},{name:"Eiffel",mime:"text/x-eiffel",mode:"eiffel",ext:["e"]},{name:"Elm",mime:"text/x-elm",mode:"elm",ext:["elm"]},{name:"Embedded Javascript",mime:"application/x-ejs",mode:"htmlembedded",ext:["ejs"]},{name:"Embedded Ruby",mime:"application/x-erb",mode:"htmlembedded",ext:["erb"]},{name:"Erlang",mime:"text/x-erlang",mode:"erlang",ext:["erl"]},{name:"Esper",mime:"text/x-esper",mode:"sql"},{name:"Factor",mime:"text/x-factor",mode:"factor",ext:["factor"]},{name:"FCL",mime:"text/x-fcl",mode:"fcl"},{name:"Forth",mime:"text/x-forth",mode:"forth",ext:["forth","fth","4th"]},{name:"Fortran",mime:"text/x-fortran",mode:"fortran",ext:["f","for","f77","f90","f95"]},{name:"F#",mime:"text/x-fsharp",mode:"mllike",ext:["fs"],alias:["fsharp"]},{name:"Gas",mime:"text/x-gas",mode:"gas",ext:["s"]},{name:"Gherkin",mime:"text/x-feature",mode:"gherkin",ext:["feature"]},{name:"GitHub Flavored Markdown",mime:"text/x-gfm",mode:"gfm",file:/^(readme|contributing|history)\.md$/i},{name:"Go",mime:"text/x-go",mode:"go",ext:["go"]},{name:"Groovy",mime:"text/x-groovy",mode:"groovy",ext:["groovy","gradle"],file:/^Jenkinsfile$/},{name:"HAML",mime:"text/x-haml",mode:"haml",ext:["haml"]},{name:"Haskell",mime:"text/x-haskell",mode:"haskell",ext:["hs"]},{name:"Haskell (Literate)",mime:"text/x-literate-haskell",mode:"haskell-literate",ext:["lhs"]},{name:"Haxe",mime:"text/x-haxe",mode:"haxe",ext:["hx"]},{name:"HXML",mime:"text/x-hxml",mode:"haxe",ext:["hxml"]},{name:"ASP.NET",mime:"application/x-aspx",mode:"htmlembedded",ext:["aspx"],alias:["asp","aspx"]},{name:"HTML",mime:"text/html",mode:"htmlmixed",ext:["html","htm","handlebars","hbs"],alias:["xhtml"]},{name:"HTTP",mime:"message/http",mode:"http"},{name:"IDL",mime:"text/x-idl",mode:"idl",ext:["pro"]},{name:"Pug",mime:"text/x-pug",mode:"pug",ext:["jade","pug"],alias:["jade"]},{name:"Java",mime:"text/x-java",mode:"clike",ext:["java"]},{name:"Java Server Pages",mime:"application/x-jsp",mode:"htmlembedded",ext:["jsp"],alias:["jsp"]},{name:"JavaScript",mimes:["text/javascript","text/ecmascript","application/javascript","application/x-javascript","application/ecmascript"],mode:"javascript",ext:["js"],alias:["ecmascript","js","node"]},{name:"JSON",mimes:["application/json","application/x-json"],mode:"javascript",ext:["json","map"],alias:["json5"]},{name:"JSON-LD",mime:"application/ld+json",mode:"javascript",ext:["jsonld"],alias:["jsonld"]},{name:"JSX",mime:"text/jsx",mode:"jsx",ext:["jsx"]},{name:"Jinja2",mime:"text/jinja2",mode:"jinja2",ext:["j2","jinja","jinja2"]},{name:"Julia",mime:"text/x-julia",mode:"julia",ext:["jl"]},{name:"Kotlin",mime:"text/x-kotlin",mode:"clike",ext:["kt"]},{name:"LESS",mime:"text/x-less",mode:"css",ext:["less"]},{name:"LiveScript",mime:"text/x-livescript",mode:"livescript",ext:["ls"],alias:["ls"]},{name:"Lua",mime:"text/x-lua",mode:"lua",ext:["lua"]},{name:"Markdown",mime:"text/x-markdown",mode:"markdown",ext:["markdown","md","mkd"]},{name:"mIRC",mime:"text/mirc",mode:"mirc"},{name:"MariaDB SQL",mime:"text/x-mariadb",mode:"sql"},{name:"Mathematica",mime:"text/x-mathematica",mode:"mathematica",ext:["m","nb","wl","wls"]},{name:"Modelica",mime:"text/x-modelica",mode:"modelica",ext:["mo"]},{name:"MUMPS",mime:"text/x-mumps",mode:"mumps",ext:["mps"]},{name:"MS SQL",mime:"text/x-mssql",mode:"sql"},{name:"mbox",mime:"application/mbox",mode:"mbox",ext:["mbox"]},{name:"MySQL",mime:"text/x-mysql",mode:"sql"},{name:"Nginx",mime:"text/x-nginx-conf",mode:"nginx",file:/nginx.*\.conf$/i},{name:"NSIS",mime:"text/x-nsis",mode:"nsis",ext:["nsh","nsi"]},{name:"NTriples",mimes:["application/n-triples","application/n-quads","text/n-triples"],mode:"ntriples",ext:["nt","nq"]},{name:"Objective-C",mime:"text/x-objectivec",mode:"clike",ext:["m"],alias:["objective-c","objc"]},{name:"Objective-C++",mime:"text/x-objectivec++",mode:"clike",ext:["mm"],alias:["objective-c++","objc++"]},{name:"OCaml",mime:"text/x-ocaml",mode:"mllike",ext:["ml","mli","mll","mly"]},{name:"Octave",mime:"text/x-octave",mode:"octave",ext:["m"]},{name:"Oz",mime:"text/x-oz",mode:"oz",ext:["oz"]},{name:"Pascal",mime:"text/x-pascal",mode:"pascal",ext:["p","pas"]},{name:"PEG.js",mime:"null",mode:"pegjs",ext:["jsonld"]},{name:"Perl",mime:"text/x-perl",mode:"perl",ext:["pl","pm"]},{name:"PHP",mimes:["text/x-php","application/x-httpd-php","application/x-httpd-php-open"],mode:"php",ext:["php","php3","php4","php5","php7","phtml"]},{name:"Pig",mime:"text/x-pig",mode:"pig",ext:["pig"]},{name:"Plain Text",mime:"text/plain",mode:"null",ext:["txt","text","conf","def","list","log"]},{name:"PLSQL",mime:"text/x-plsql",mode:"sql",ext:["pls"]},{name:"PostgreSQL",mime:"text/x-pgsql",mode:"sql"},{name:"PowerShell",mime:"application/x-powershell",mode:"powershell",ext:["ps1","psd1","psm1"]},{name:"Properties files",mime:"text/x-properties",mode:"properties",ext:["properties","ini","in"],alias:["ini","properties"]},{name:"ProtoBuf",mime:"text/x-protobuf",mode:"protobuf",ext:["proto"]},{name:"Python",mime:"text/x-python",mode:"python",ext:["BUILD","bzl","py","pyw"],file:/^(BUCK|BUILD)$/},{name:"Puppet",mime:"text/x-puppet",mode:"puppet",ext:["pp"]},{name:"Q",mime:"text/x-q",mode:"q",ext:["q"]},{name:"R",mime:"text/x-rsrc",mode:"r",ext:["r","R"],alias:["rscript"]},{name:"reStructuredText",mime:"text/x-rst",mode:"rst",ext:["rst"],alias:["rst"]},{name:"RPM Changes",mime:"text/x-rpm-changes",mode:"rpm"},{name:"RPM Spec",mime:"text/x-rpm-spec",mode:"rpm",ext:["spec"]},{name:"Ruby",mime:"text/x-ruby",mode:"ruby",ext:["rb"],alias:["jruby","macruby","rake","rb","rbx"]},{name:"Rust",mime:"text/x-rustsrc",mode:"rust",ext:["rs"]},{name:"SAS",mime:"text/x-sas",mode:"sas",ext:["sas"]},{name:"Sass",mime:"text/x-sass",mode:"sass",ext:["sass"]},{name:"Scala",mime:"text/x-scala",mode:"clike",ext:["scala"]},{name:"Scheme",mime:"text/x-scheme",mode:"scheme",ext:["scm","ss"]},{name:"SCSS",mime:"text/x-scss",mode:"css",ext:["scss"]},{name:"Shell",mimes:["text/x-sh","application/x-sh"],mode:"shell",ext:["sh","ksh","bash"],alias:["bash","sh","zsh"],file:/^PKGBUILD$/},{name:"Sieve",mime:"application/sieve",mode:"sieve",ext:["siv","sieve"]},{name:"Slim",mimes:["text/x-slim","application/x-slim"],mode:"slim",ext:["slim"]},{name:"Smalltalk",mime:"text/x-stsrc",mode:"smalltalk",ext:["st"]},{name:"Smarty",mime:"text/x-smarty",mode:"smarty",ext:["tpl"]},{name:"Solr",mime:"text/x-solr",mode:"solr"},{name:"SML",mime:"text/x-sml",mode:"mllike",ext:["sml","sig","fun","smackspec"]},{name:"Soy",mime:"text/x-soy",mode:"soy",ext:["soy"],alias:["closure template"]},{name:"SPARQL",mime:"application/sparql-query",mode:"sparql",ext:["rq","sparql"],alias:["sparul"]},{name:"Spreadsheet",mime:"text/x-spreadsheet",mode:"spreadsheet",alias:["excel","formula"]},{name:"SQL",mime:"text/x-sql",mode:"sql",ext:["sql"]},{name:"SQLite",mime:"text/x-sqlite",mode:"sql"},{name:"Squirrel",mime:"text/x-squirrel",mode:"clike",ext:["nut"]},{name:"Stylus",mime:"text/x-styl",mode:"stylus",ext:["styl"]},{name:"Swift",mime:"text/x-swift",mode:"swift",ext:["swift"]},{name:"sTeX",mime:"text/x-stex",mode:"stex"},{name:"LaTeX",mime:"text/x-latex",mode:"stex",ext:["text","ltx","tex"],alias:["tex"]},{name:"SystemVerilog",mime:"text/x-systemverilog",mode:"verilog",ext:["v","sv","svh"]},{name:"Tcl",mime:"text/x-tcl",mode:"tcl",ext:["tcl"]},{name:"Textile",mime:"text/x-textile",mode:"textile",ext:["textile"]},{name:"TiddlyWiki",mime:"text/x-tiddlywiki",mode:"tiddlywiki"},{name:"Tiki wiki",mime:"text/tiki",mode:"tiki"},{name:"TOML",mime:"text/x-toml",mode:"toml",ext:["toml"]},{name:"Tornado",mime:"text/x-tornado",mode:"tornado"},{name:"troff",mime:"text/troff",mode:"troff",ext:["1","2","3","4","5","6","7","8","9"]},{name:"TTCN",mime:"text/x-ttcn",mode:"ttcn",ext:["ttcn","ttcn3","ttcnpp"]},{name:"TTCN_CFG",mime:"text/x-ttcn-cfg",mode:"ttcn-cfg",ext:["cfg"]},{name:"Turtle",mime:"text/turtle",mode:"turtle",ext:["ttl"]},{name:"TypeScript",mime:"application/typescript",mode:"javascript",ext:["ts"],alias:["ts"]},{name:"TypeScript-JSX",mime:"text/typescript-jsx",mode:"jsx",ext:["tsx"],alias:["tsx"]},{name:"Twig",mime:"text/x-twig",mode:"twig"},{name:"Web IDL",mime:"text/x-webidl",mode:"webidl",ext:["webidl"]},{name:"VB.NET",mime:"text/x-vb",mode:"vb",ext:["vb"]},{name:"VBScript",mime:"text/vbscript",mode:"vbscript",ext:["vbs"]},{name:"Velocity",mime:"text/velocity",mode:"velocity",ext:["vtl"]},{name:"Verilog",mime:"text/x-verilog",mode:"verilog",ext:["v"]},{name:"VHDL",mime:"text/x-vhdl",mode:"vhdl",ext:["vhd","vhdl"]},{name:"Vue.js Component",mimes:["script/x-vue","text/x-vue"],mode:"vue",ext:["vue"]},{name:"XML",mimes:["application/xml","text/xml"],mode:"xml",ext:["xml","xsl","xsd","svg"],alias:["rss","wsdl","xsd"]},{name:"XQuery",mime:"application/xquery",mode:"xquery",ext:["xy","xquery"]},{name:"Yacas",mime:"text/x-yacas",mode:"yacas",ext:["ys"]},{name:"YAML",mimes:["text/x-yaml","text/yaml"],mode:"yaml",ext:["yaml","yml"],alias:["yml"]},{name:"Z80",mime:"text/x-z80",mode:"z80",ext:["z80"]},{name:"mscgen",mime:"text/x-mscgen",mode:"mscgen",ext:["mscgen","mscin","msc"]},{name:"xu",mime:"text/x-xu",mode:"mscgen",ext:["xu"]},{name:"msgenny",mime:"text/x-msgenny",mode:"mscgen",ext:["msgenny"]},{name:"WebAssembly",mime:"text/webassembly",mode:"wast",ext:["wat","wast"]}];for(var nt=0;nt<ye.modeInfo.length;nt++){var it=ye.modeInfo[nt];it.mimes&&(it.mime=it.mimes[0])}ye.findModeByMIME=function(Dt){Dt=Dt.toLowerCase();for(var Mt=0;Mt<ye.modeInfo.length;Mt++){var ze=ye.modeInfo[Mt];if(ze.mime==Dt)return ze;if(ze.mimes){for(var dt=0;dt<ze.mimes.length;dt++)if(ze.mimes[dt]==Dt)return ze}}if(/\+xml$/.test(Dt))return ye.findModeByMIME("application/xml");if(/\+json$/.test(Dt))return ye.findModeByMIME("application/json")},ye.findModeByExtension=function(Dt){Dt=Dt.toLowerCase();for(var Mt=0;Mt<ye.modeInfo.length;Mt++){var ze=ye.modeInfo[Mt];if(ze.ext){for(var dt=0;dt<ze.ext.length;dt++)if(ze.ext[dt]==Dt)return ze}}},ye.findModeByFileName=function(Dt){for(var Mt=0;Mt<ye.modeInfo.length;Mt++){var ze=ye.modeInfo[Mt];if(ze.file&&ze.file.test(Dt))return ze}var dt=Dt.lastIndexOf("."),Kt=dt>-1&&Dt.substring(dt+1,Dt.length);if(Kt)return ye.findModeByExtension(Kt)},ye.findModeByName=function(Dt){Dt=Dt.toLowerCase();for(var Mt=0;Mt<ye.modeInfo.length;Mt++){var ze=ye.modeInfo[Mt];if(ze.name.toLowerCase()==Dt)return ze;if(ze.alias){for(var dt=0;dt<ze.alias.length;dt++)if(ze.alias[dt].toLowerCase()==Dt)return ze}}}})},67549:function(Jn,gi,De){(function(ye){ye(De(89780))})(function(ye){"use strict";ye.defineMode("stex",function(nt,it){"use strict";function Dt(Ne,ne){Ne.cmdState.push(ne)}function Mt(Ne){return Ne.cmdState.length>0?Ne.cmdState[Ne.cmdState.length-1]:null}function ze(Ne){var ne=Ne.cmdState.pop();ne&&ne.closeBracket()}function dt(Ne){for(var ne=Ne.cmdState,te=ne.length-1;te>=0;te--){var de=ne[te];if(de.name!="DEFAULT")return de}return{styleIdentifier:function(){return null}}}function Kt(Ne,ne,te){return function(){this.name=Ne,this.bracketNo=0,this.style=ne,this.styles=te,this.argument=null,this.styleIdentifier=function(){return this.styles[this.bracketNo-1]||null},this.openBracket=function(){return this.bracketNo++,"bracket"},this.closeBracket=function(){}}}var Et={};Et.importmodule=Kt("importmodule","tag",["string","builtin"]),Et.documentclass=Kt("documentclass","tag",["","atom"]),Et.usepackage=Kt("usepackage","tag",["atom"]),Et.begin=Kt("begin","tag",["atom"]),Et.end=Kt("end","tag",["atom"]),Et.label=Kt("label","tag",["atom"]),Et.ref=Kt("ref","tag",["atom"]),Et.eqref=Kt("eqref","tag",["atom"]),Et.cite=Kt("cite","tag",["atom"]),Et.bibitem=Kt("bibitem","tag",["atom"]),Et.Bibitem=Kt("Bibitem","tag",["atom"]),Et.RBibitem=Kt("RBibitem","tag",["atom"]),Et.DEFAULT=function(){this.name="DEFAULT",this.style="tag",this.styleIdentifier=this.openBracket=this.closeBracket=function(){}};function Me(Ne,ne){Ne.f=ne}function zt(Ne,ne){var te;if(Ne.match(/^\\[a-zA-Z@]+/)){var de=Ne.current().slice(1);return te=Et.hasOwnProperty(de)?Et[de]:Et.DEFAULT,te=new te,Dt(ne,te),Me(ne,Ht),te.style}if(Ne.match(/^\\[$&%#{}_]/)||Ne.match(/^\\[,;!\/\\]/))return"tag";if(Ne.match("\\["))return Me(ne,function(ge,me){return Ke(ge,me,"\\]")}),"keyword";if(Ne.match("\\("))return Me(ne,function(ge,me){return Ke(ge,me,"\\)")}),"keyword";if(Ne.match("$$"))return Me(ne,function(ge,me){return Ke(ge,me,"$$")}),"keyword";if(Ne.match("$"))return Me(ne,function(ge,me){return Ke(ge,me,"$")}),"keyword";var le=Ne.next();if(le=="%")return Ne.skipToEnd(),"comment";if(le=="}"||le=="]"){if(te=Mt(ne),te)te.closeBracket(le),Me(ne,Ht);else return"error";return"bracket"}else return le=="{"||le=="["?(te=Et.DEFAULT,te=new te,Dt(ne,te),"bracket"):/\d/.test(le)?(Ne.eatWhile(/[\w.%]/),"atom"):(Ne.eatWhile(/[\w\-_]/),te=dt(ne),te.name=="begin"&&(te.argument=Ne.current()),te.styleIdentifier())}function Ke(Ne,ne,te){if(Ne.eatSpace())return null;if(te&&Ne.match(te))return Me(ne,zt),"keyword";if(Ne.match(/^\\[a-zA-Z@]+/))return"tag";if(Ne.match(/^[a-zA-Z]+/))return"variable-2";if(Ne.match(/^\\[$&%#{}_]/)||Ne.match(/^\\[,;!\/]/)||Ne.match(/^[\^_&]/))return"tag";if(Ne.match(/^[+\-<>|=,\/@!*:;'"`~#?]/))return null;if(Ne.match(/^(\d+\.\d*|\d*\.\d+|\d+)/))return"number";var de=Ne.next();return de=="{"||de=="}"||de=="["||de=="]"||de=="("||de==")"?"bracket":de=="%"?(Ne.skipToEnd(),"comment"):"error"}function Ht(Ne,ne){var te=Ne.peek(),de;return te=="{"||te=="["?(de=Mt(ne),de.openBracket(te),Ne.eat(te),Me(ne,zt),"bracket"):/[ \t\r]/.test(te)?(Ne.eat(te),null):(Me(ne,zt),ze(ne),zt(Ne,ne))}return{startState:function(){var Ne=it.inMathMode?function(ne,te){return Ke(ne,te)}:zt;return{cmdState:[],f:Ne}},copyState:function(Ne){return{cmdState:Ne.cmdState.slice(),f:Ne.f}},token:function(Ne,ne){return ne.f(Ne,ne)},blankLine:function(Ne){Ne.f=zt,Ne.cmdState.length=0},lineComment:"%"}}),ye.defineMIME("text/x-stex","stex"),ye.defineMIME("text/x-latex","stex")})},15525:function(Jn,gi,De){(function(ye){ye(De(89780))})(function(ye){"use strict";var nt={autoSelfClosers:{area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},implicitlyClosed:{dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},contextGrabbers:{dd:{dd:!0,dt:!0},dt:{dd:!0,dt:!0},li:{li:!0},option:{option:!0,optgroup:!0},optgroup:{optgroup:!0},p:{address:!0,article:!0,aside:!0,blockquote:!0,dir:!0,div:!0,dl:!0,fieldset:!0,footer:!0,form:!0,h1:!0,h2:!0,h3:!0,h4:!0,h5:!0,h6:!0,header:!0,hgroup:!0,hr:!0,menu:!0,nav:!0,ol:!0,p:!0,pre:!0,section:!0,table:!0,ul:!0},rp:{rp:!0,rt:!0},rt:{rp:!0,rt:!0},tbody:{tbody:!0,tfoot:!0},td:{td:!0,th:!0},tfoot:{tbody:!0},th:{td:!0,th:!0},thead:{tbody:!0,tfoot:!0},tr:{tr:!0}},doNotIndent:{pre:!0},allowUnquoted:!0,allowMissing:!0,caseFold:!0},it={autoSelfClosers:{},implicitlyClosed:{},contextGrabbers:{},doNotIndent:{},allowUnquoted:!1,allowMissing:!1,allowMissingTagName:!1,caseFold:!1};ye.defineMode("xml",function(Dt,Mt){var ze=Dt.indentUnit,dt={},Kt=Mt.htmlMode?nt:it;for(var Et in Kt)dt[Et]=Kt[Et];for(var Et in Mt)dt[Et]=Mt[Et];var Me,zt;function Ke(ft,Nt){function Lt(un){return Nt.tokenize=un,un(ft,Nt)}var ln=ft.next();if(ln=="<")return ft.eat("!")?ft.eat("[")?ft.match("CDATA[")?Lt(ne("atom","]]>")):null:ft.match("--")?Lt(ne("comment","-->")):ft.match("DOCTYPE",!0,!0)?(ft.eatWhile(/[\w\._\-]/),Lt(te(1))):null:ft.eat("?")?(ft.eatWhile(/[\w\._\-]/),Nt.tokenize=ne("meta","?>"),"meta"):(Me=ft.eat("/")?"closeTag":"openTag",Nt.tokenize=Ht,"tag bracket");if(ln=="&"){var kn;return ft.eat("#")?ft.eat("x")?kn=ft.eatWhile(/[a-fA-F\d]/)&&ft.eat(";"):kn=ft.eatWhile(/[\d]/)&&ft.eat(";"):kn=ft.eatWhile(/[\w\.\-:]/)&&ft.eat(";"),kn?"atom":"error"}else return ft.eatWhile(/[^&<]/),null}Ke.isInText=!0;function Ht(ft,Nt){var Lt=ft.next();if(Lt==">"||Lt=="/"&&ft.eat(">"))return Nt.tokenize=Ke,Me=Lt==">"?"endTag":"selfcloseTag","tag bracket";if(Lt=="=")return Me="equals",null;if(Lt=="<"){Nt.tokenize=Ke,Nt.state=me,Nt.tagName=Nt.tagStart=null;var ln=Nt.tokenize(ft,Nt);return ln?ln+" tag error":"tag error"}else return/[\'\"]/.test(Lt)?(Nt.tokenize=Ne(Lt),Nt.stringStartCol=ft.column(),Nt.tokenize(ft,Nt)):(ft.match(/^[^\s\u00a0=<>\"\']*[^\s\u00a0=<>\"\'\/]/),"word")}function Ne(ft){var Nt=function(Lt,ln){for(;!Lt.eol();)if(Lt.next()==ft){ln.tokenize=Ht;break}return"string"};return Nt.isInAttribute=!0,Nt}function ne(ft,Nt){return function(Lt,ln){for(;!Lt.eol();){if(Lt.match(Nt)){ln.tokenize=Ke;break}Lt.next()}return ft}}function te(ft){return function(Nt,Lt){for(var ln;(ln=Nt.next())!=null;){if(ln=="<")return Lt.tokenize=te(ft+1),Lt.tokenize(Nt,Lt);if(ln==">")if(ft==1){Lt.tokenize=Ke;break}else return Lt.tokenize=te(ft-1),Lt.tokenize(Nt,Lt)}return"meta"}}function de(ft,Nt,Lt){this.prev=ft.context,this.tagName=Nt,this.indent=ft.indented,this.startOfLine=Lt,(dt.doNotIndent.hasOwnProperty(Nt)||ft.context&&ft.context.noIndent)&&(this.noIndent=!0)}function le(ft){ft.context&&(ft.context=ft.context.prev)}function ge(ft,Nt){for(var Lt;;){if(!ft.context||(Lt=ft.context.tagName,!dt.contextGrabbers.hasOwnProperty(Lt)||!dt.contextGrabbers[Lt].hasOwnProperty(Nt)))return;le(ft)}}function me(ft,Nt,Lt){return ft=="openTag"?(Lt.tagStart=Nt.column(),Se):ft=="closeTag"?be:me}function Se(ft,Nt,Lt){return ft=="word"?(Lt.tagName=Nt.current(),zt="tag",st):dt.allowMissingTagName&&ft=="endTag"?(zt="tag bracket",st(ft,Nt,Lt)):(zt="error",Se)}function be(ft,Nt,Lt){if(ft=="word"){var ln=Nt.current();return Lt.context&&Lt.context.tagName!=ln&&dt.implicitlyClosed.hasOwnProperty(Lt.context.tagName)&&le(Lt),Lt.context&&Lt.context.tagName==ln||dt.matchClosing===!1?(zt="tag",Ie):(zt="tag error",Ze)}else return dt.allowMissingTagName&&ft=="endTag"?(zt="tag bracket",Ie(ft,Nt,Lt)):(zt="error",Ze)}function Ie(ft,Nt,Lt){return ft!="endTag"?(zt="error",Ie):(le(Lt),me)}function Ze(ft,Nt,Lt){return zt="error",Ie(ft,Nt,Lt)}function st(ft,Nt,Lt){if(ft=="word")return zt="attribute",Ye;if(ft=="endTag"||ft=="selfcloseTag"){var ln=Lt.tagName,kn=Lt.tagStart;return Lt.tagName=Lt.tagStart=null,ft=="selfcloseTag"||dt.autoSelfClosers.hasOwnProperty(ln)?ge(Lt,ln):(ge(Lt,ln),Lt.context=new de(Lt,ln,kn==Lt.indented)),me}return zt="error",st}function Ye(ft,Nt,Lt){return ft=="equals"?Xe:(dt.allowMissing||(zt="error"),st(ft,Nt,Lt))}function Xe(ft,Nt,Lt){return ft=="string"?At:ft=="word"&&dt.allowUnquoted?(zt="string",st):(zt="error",st(ft,Nt,Lt))}function At(ft,Nt,Lt){return ft=="string"?At:st(ft,Nt,Lt)}return{startState:function(ft){var Nt={tokenize:Ke,state:me,indented:ft||0,tagName:null,tagStart:null,context:null};return ft!=null&&(Nt.baseIndent=ft),Nt},token:function(ft,Nt){if(!Nt.tagName&&ft.sol()&&(Nt.indented=ft.indentation()),ft.eatSpace())return null;Me=null;var Lt=Nt.tokenize(ft,Nt);return(Lt||Me)&&Lt!="comment"&&(zt=null,Nt.state=Nt.state(Me||Lt,ft,Nt),zt&&(Lt=zt=="error"?Lt+" error":zt)),Lt},indent:function(ft,Nt,Lt){var ln=ft.context;if(ft.tokenize.isInAttribute)return ft.tagStart==ft.indented?ft.stringStartCol+1:ft.indented+ze;if(ln&&ln.noIndent)return ye.Pass;if(ft.tokenize!=Ht&&ft.tokenize!=Ke)return Lt?Lt.match(/^(\s*)/)[0].length:0;if(ft.tagName)return dt.multilineTagIndentPastTag!==!1?ft.tagStart+ft.tagName.length+2:ft.tagStart+ze*(dt.multilineTagIndentFactor||1);if(dt.alignCDATA&&/<!\[CDATA\[/.test(Nt))return 0;var kn=Nt&&/^<(\/)?([\w_:\.-]*)/.exec(Nt);if(kn&&kn[1])for(;ln;)if(ln.tagName==kn[2]){ln=ln.prev;break}else if(dt.implicitlyClosed.hasOwnProperty(ln.tagName))ln=ln.prev;else break;else if(kn)for(;ln;){var un=dt.contextGrabbers[ln.tagName];if(un&&un.hasOwnProperty(kn[2]))ln=ln.prev;else break}for(;ln&&ln.prev&&!ln.startOfLine;)ln=ln.prev;return ln?ln.indent+ze:ft.baseIndent||0},electricInput:/<\/[\s\w:]+>$/,blockCommentStart:"<!--",blockCommentEnd:"-->",configuration:dt.htmlMode?"html":"xml",helperType:dt.htmlMode?"html":"xml",skipAttribute:function(ft){ft.state==Xe&&(ft.state=st)},xmlCurrentTag:function(ft){return ft.tagName?{name:ft.tagName,close:ft.type=="closeTag"}:null},xmlCurrentContext:function(ft){for(var Nt=[],Lt=ft.context;Lt;Lt=Lt.prev)Lt.tagName&&Nt.push(Lt.tagName);return Nt.reverse()}}}),ye.defineMIME("text/xml","xml"),ye.defineMIME("application/xml","xml"),ye.mimeModes.hasOwnProperty("text/html")||ye.defineMIME("text/html",{name:"xml",htmlMode:!0})})},12378:function(Jn,gi,De){"use strict";De.d(gi,{$u:function(){return Et},BD:function(){return je},E9:function(){return Kt},FF:function(){return vr},FJ:function(){return me},Hn:function(){return ge},KX:function(){return be},NB:function(){return gt},S0:function(){return wt},UL:function(){return Me},Vk:function(){return le},Vm:function(){return Tt},YI:function(){return Ai},ZA:function(){return it},Zt:function(){return zt},al:function(){return ke},bn:function(){return Ge},bx:function(){return Le},g2:function(){return Kn},h1:function(){return Xe},hD:function(){return ti},l4:function(){return ze},rU:function(){return Pt},s_:function(){return we},uz:function(){return Ut},z6:function(){return Ke}}),Jn=De.hmd(Jn),function(){var Ce;function Sn(a){var y=0;return function(){return y<a.length?{done:!1,value:a[y++]}:{done:!0}}}function Gn(a){var y=typeof Symbol!="undefined"&&Symbol.iterator&&a[Symbol.iterator];return y?y.call(a):{next:Sn(a)}}function dr(a){for(var y,x=[];!(y=a.next()).done;)x.push(y.value);return x}var or=typeof Object.create=="function"?Object.create:function(a){function y(){}return y.prototype=a,new y},Ii;if(typeof Object.setPrototypeOf=="function")Ii=Object.setPrototypeOf;else{var Tn;e:{var Cn={a:!0},Mn={};try{Mn.__proto__=Cn,Tn=Mn.a;break e}catch(a){}Tn=!1}Ii=Tn?function(a,y){if(a.__proto__=y,a.__proto__!==y)throw new TypeError(a+" is not extensible");return a}:null}var yt=Ii;function xt(a,y){if(a.prototype=or(y.prototype),a.prototype.constructor=a,yt)yt(a,y);else for(var x in y)if(x!="prototype")if(Object.defineProperties){var E=Object.getOwnPropertyDescriptor(y,x);E&&Object.defineProperty(a,x,E)}else a[x]=y[x];a.QA=y.prototype}var Ct=typeof De.g!="undefined"&&De.g!=null?De.g:self,Yn=typeof Object.assign=="function"?Object.assign:function(a,y){for(var x=1;x<arguments.length;x++){var E=arguments[x];if(E)for(var b in E)Object.prototype.hasOwnProperty.call(E,b)&&(a[b]=E[b])}return a},$n=typeof Object.defineProperties=="function"?Object.defineProperty:function(a,y,x){a!=Array.prototype&&a!=Object.prototype&&(a[y]=x.value)};function di(a,y){if(y){var x=Ct;a=a.split(".");for(var E=0;E<a.length-1;E++){var b=a[E];b in x||(x[b]={}),x=x[b]}a=a[a.length-1],E=x[a],y=y(E),y!=E&&y!=null&&$n(x,a,{writable:!0,value:y})}}di("Object.assign",function(a){return a||Yn}),di("Array.prototype.fill",function(a){return a||function(y,x,E){var b=this.length||0;for(0>x&&(x=Math.max(0,b+x)),(E==null||E>b)&&(E=b),E=Number(E),0>E&&(E=Math.max(0,b+E)),x=Number(x||0);x<E;x++)this[x]=y;return this}});var xn=typeof globalThis=="object"&&globalThis||typeof De.g=="object"&&De.g.global===De.g&&De.g||typeof self=="object"&&self.self===self&&self||{};xn.requestAnimationFrame===void 0&&(xn.setImmediate===void 0?xn.requestAnimationFrame=function(a){xn.setTimeout(a,0)}:xn.requestAnimationFrame=xn.setImmediate);function ai(){}function Pn(a,y){var x=-1;return function(){var E=this,b=arguments;x!==-1&&xn.clearTimeout(x),x=zi(function(){x=-1,a.apply(E,b)},y)}}function zi(a,y){return xn.setTimeout(a,y)}function fr(a){return xn.document.createElement(a)}function Ve(a){throw Error(a)}function mt(a,y){a="The object is frozen, so its properties cannot be set: "+a.toString(),y!==void 0&&(a+=" to value: "+y),Ve(a)}function Dn(a,y,x,E){x=x===null?"*":typeof x=="string"?x:typeof x=="function"&&typeof x.className=="string"?x.className:"",E!==void 0&&(x+="."+E),Ve(x+" is not in the range "+y+": "+a)}function An(a){xn.console&&xn.console.log(a)}function Ot(a){return typeof a=="object"&&a!==null}function Bn(a){return Array.isArray(a)||xn.NodeList&&a instanceof xn.NodeList||xn.HTMLCollection&&a instanceof xn.HTMLCollection}function Hn(a){return Array.prototype.slice.call(a)}function _n(a,y,x){Array.isArray(a)?y>=a.length?a.push(x):a.splice(y,0,x):Ve("Cannot insert an object into an HTMLCollection or NodeList: "+x+" at "+y)}function Ei(a,y){Array.isArray(a)?y>=a.length?a.pop():a.splice(y,1):Ve("Cannot remove an object from an HTMLCollection or NodeList at "+y)}function si(){var a=Kr.pop();return a===void 0?[]:a}function Pi(a){a.length=0,Kr.push(a)}function yi(a){if(typeof a=="function"){if(a.className)return a.className;if(a.name)return a.name;var y=a.toString();if(y=y.substring(9,y.indexOf("(")).trim(),y!=="")return a._className=y}else if(Ot(a)&&a.constructor)return yi(a.constructor);return typeof a}function _i(a){var y=a;return Ot(a)&&(a.text?y=a.text:a.name?y=a.name:a.key!==void 0?y=a.key:a.id!==void 0?y=a.id:a.constructor===Object&&(a.Text?y=a.Text:a.Name?y=a.Name:a.Key!==void 0?y=a.Key:a.Id!==void 0?y=a.Id:a.ID!==void 0&&(y=a.ID))),y===void 0?"undefined":y===null?"null":y.toString()}function Ri(a,y){if(a.hasOwnProperty(y))return!0;for(a=Object.getPrototypeOf(a);a&&a!==Function;){if(a.hasOwnProperty(y))return!0;var x=a.CA;if(x&&x[y])return!0;a=Object.getPrototypeOf(a)}return!1}function Di(a,y,x){Object.defineProperty(Ao.prototype,a,{get:y,set:x})}function sn(a){for(var y=[],x=0;256>x;x++)y["0123456789abcdef".charAt(x>>4)+"0123456789abcdef".charAt(x&15)]=String.fromCharCode(x);a.length%2&&(a="0"+a),x=[];for(var E=0,b=0;b<a.length;b+=2)x[E++]=y[a.substr(b,2)];for(a=x.join(""),a=a===""?"0":a,y=[],x=0;256>x;x++)y[x]=x;for(x=E=0;256>x;x++)E=(E+y[x]+119)%256,b=y[x],y[x]=y[E],y[E]=b;E=x=0;for(var z="",ee=0;ee<a.length;ee++)x=(x+1)%256,E=(E+y[x])%256,b=y[x],y[x]=y[E],y[E]=b,z+=String.fromCharCode(a.charCodeAt(ee)^y[(y[x]+y[E])%256]);return z.indexOf("GoJS 2.1 evaluation")>-1||z.indexOf("\xA9 1998-2021 Northwoods Software")>-1||z.indexOf("Not for distribution or production use")>-1||z.indexOf("gojs.net")>-1?"":z}var pr=xn.navigator!==void 0&&0<xn.navigator.userAgent.indexOf("Trident/7"),Mr=xn.navigator!==void 0&&xn.navigator.platform!==void 0&&xn.navigator.platform.match(/(iPhone|iPod|iPad|Mac)/i)!==null,Kr=[];Object.freeze([]),ai.className="Util",ai.Dx="32ab5ff3b26f42dc0ed90f21472913b5",ai.adym="gojs.net",ai.vfo="28e645fdb266",ai.className="Util";function En(a,y,x){bi(this),this.j=a,this.xa=y,this.o=x}En.prototype.toString=function(){return"EnumValue."+this.xa};function Si(a,y){return y==null||y===""?null:a[y]}Ct.Object.defineProperties(En.prototype,{classType:{get:function(){return this.j}},name:{get:function(){return this.xa}},value:{get:function(){return this.o}}}),En.className="EnumValue";function Vi(){this.ew=[]}Vi.prototype.toString=function(){return this.ew.join("")},Vi.prototype.add=function(a){a!==""&&this.ew.push(a)},Vi.className="StringBuilder";function Wi(){}Wi.className="PropertyCollection";var $i={EA:!1,JA:!1,GA:!1,IA:!1,NA:!1,LA:!1,nx:!1,FA:null,trace:function(a){xn.console&&xn.console.log(a)},HA:function(a,y,x,E){a.strokeStyle="red",a.fillStyle="red",a.font="8px sans-serif",a.beginPath(),a.moveTo(-10,0),a.lineTo(10,0),a.moveTo(0,-10),a.lineTo(0,10),a.stroke(),a.setTransform(1,0,0,1,0,0),a.scale(x,x),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.lineWidth=2,a.beginPath(),a.moveTo(E.left,E.top+20),a.lineTo(E.left,E.top),a.lineTo(E.left+20,E.top),a.moveTo(E.right,E.bottom-20),a.lineTo(E.right,E.bottom),a.lineTo(E.right-20,E.bottom),a.stroke(),a.fillText("DB: "+Math.round(E.x)+", "+Math.round(E.y)+", "+Math.round(E.width)+", "+Math.round(E.height),E.left,E.top-5)},DA:function(a){var y={},x;for(x in a){if(y.x=x,y.x!=="licenseKey"){var E=a[y.x];if(E.prototype!==void 0){y.Zl=Object.getOwnPropertyNames(E.prototype);for(var b={Tj:0};b.Tj<y.Zl.length;b={Tj:b.Tj},b.Tj++){var z=Object.getOwnPropertyDescriptor(E.prototype,y.Zl[b.Tj]);z.get!==void 0&&z.set===void 0&&Object.defineProperty(E.prototype,y.Zl[b.Tj],{set:function(ee,re){return function(){throw Error("Property "+ee.Zl[re.Tj]+" of "+ee.x+" is read-only.")}}(y,b)})}}}y={Zl:y.Zl,x:y.x}}}};function Pr(){}Pr.prototype.reset=function(){},Pr.prototype.next=function(){return!1},Pr.prototype.Ad=function(){return!1},Pr.prototype.first=function(){return null},Pr.prototype.any=function(){return!1},Pr.prototype.all=function(){return!0},Pr.prototype.each=function(){return this},Pr.prototype.map=function(){return this},Pr.prototype.filter=function(){return this},Pr.prototype.de=function(){},Pr.prototype.toString=function(){return"EmptyIterator"},Ct.Object.defineProperties(Pr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 0}}}),Pr.prototype.first=Pr.prototype.first,Pr.prototype.hasNext=Pr.prototype.Ad,Pr.prototype.next=Pr.prototype.next,Pr.prototype.reset=Pr.prototype.reset;var br=null;Pr.className="EmptyIterator",br=new Pr;function Hi(a){this.key=-1,this.value=a}Hi.prototype.reset=function(){this.key=-1},Hi.prototype.next=function(){return this.key===-1?(this.key=0,!0):!1},Hi.prototype.Ad=function(){return this.next()},Hi.prototype.first=function(){return this.key=0,this.value},Hi.prototype.any=function(a){return this.key=-1,a(this.value)},Hi.prototype.all=function(a){return this.key=-1,a(this.value)},Hi.prototype.each=function(a){return this.key=-1,a(this.value),this},Hi.prototype.map=function(a){return new Hi(a(this.value))},Hi.prototype.filter=function(a){return a(this.value)?new Hi(this.value):br},Hi.prototype.de=function(){this.value=null},Hi.prototype.toString=function(){return"SingletonIterator("+this.value+")"},Ct.Object.defineProperties(Hi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return 1}}}),Hi.prototype.first=Hi.prototype.first,Hi.prototype.hasNext=Hi.prototype.Ad,Hi.prototype.next=Hi.prototype.next,Hi.prototype.reset=Hi.prototype.reset,Hi.className="SingletonIterator";function er(a){this.Bb=a,this.qf=null,a.Sa=null,this.qa=a.Ja,this.Za=-1}er.prototype.reset=function(){var a=this.Bb;a.Sa=null,this.qa=a.Ja,this.Za=-1},er.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;a=a.s;var y=a.length,x=++this.Za,E=this.qf;if(E!==null)for(;x<y;){var b=a[x];if(E(b))return this.key=this.Za=x,this.value=b,!0;x++}else{if(x<y)return this.key=x,this.value=a[x],!0;this.de()}return!1},er.prototype.Ad=function(){return this.next()},er.prototype.first=function(){var a=this.Bb;this.qa=a.Ja,this.Za=0,a=a.s;var y=a.length,x=this.qf;if(x!==null){for(var E=0;E<y;){var b=a[E];if(x(b))return this.key=this.Za=E,this.value=b;E++}return null}return 0<y?(a=a[0],this.key=0,this.value=a):null},er.prototype.any=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&a(z))return!0}return!1},er.prototype.all=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];if((E===null||E(z))&&!a(z))return!1}return!0},er.prototype.each=function(a){var y=this.Bb;y.Sa=null,this.Za=-1,y=y.s;for(var x=y.length,E=this.qf,b=0;b<x;b++){var z=y[b];(E===null||E(z))&&a(z)}return this},er.prototype.map=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&x.push(a(ee))}return a=new cn,a.s=x,a.xb(),a.iterator},er.prototype.filter=function(a){var y=this.Bb;y.Sa=null,this.Za=-1;var x=[];y=y.s;for(var E=y.length,b=this.qf,z=0;z<E;z++){var ee=y[z];(b===null||b(ee))&&a(ee)&&x.push(ee)}return a=new cn,a.s=x,a.xb(),a.iterator},er.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.qf=null,this.Bb.Sa=this},er.prototype.toString=function(){return"ListIterator@"+this.Za+"/"+this.Bb.count},Ct.Object.defineProperties(er.prototype,{iterator:{get:function(){return this}},predicate:{get:function(){return this.qf},set:function(a){this.qf=a}},count:{get:function(){var a=this.qf;if(a!==null){for(var y=0,x=this.Bb.s,E=x.length,b=0;b<E;b++)a(x[b])&&y++;return y}return this.Bb.s.length}}}),er.prototype.first=er.prototype.first,er.prototype.hasNext=er.prototype.Ad,er.prototype.next=er.prototype.next,er.prototype.reset=er.prototype.reset,er.className="ListIterator";function Gi(a){this.Bb=a,a.Hg=null,this.qa=a.Ja,this.Za=a.s.length}Gi.prototype.reset=function(){var a=this.Bb;a.Hg=null,this.qa=a.Ja,this.Za=a.s.length},Gi.prototype.next=function(){var a=this.Bb;if(a.Ja!==this.qa&&0>this.key)return!1;var y=--this.Za;return 0<=y?(this.key=y,this.value=a.s[y],!0):(this.de(),!1)},Gi.prototype.Ad=function(){return this.next()},Gi.prototype.first=function(){var a=this.Bb;this.qa=a.Ja;var y=a.s;return this.Za=a=y.length-1,0<=a?(y=y[a],this.key=a,this.value=y):null},Gi.prototype.any=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(a(y[x]))return!0;return!1},Gi.prototype.all=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)if(!a(y[x]))return!1;return!0},Gi.prototype.each=function(a){var y=this.Bb;y.Hg=null,y=y.s;var x=y.length;for(this.Za=x,--x;0<=x;x--)a(y[x]);return this},Gi.prototype.map=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--)x.push(a(y[E]));return a=new cn,a.s=x,a.xb(),a.iterator},Gi.prototype.filter=function(a){var y=this.Bb;y.Hg=null;var x=[];y=y.s;var E=y.length;for(this.Za=E,--E;0<=E;E--){var b=y[E];a(b)&&x.push(b)}return a=new cn,a.s=x,a.xb(),a.iterator},Gi.prototype.de=function(){this.key=-1,this.value=null,this.qa=-1,this.Bb.Hg=this},Gi.prototype.toString=function(){return"ListIteratorBackwards("+this.Za+"/"+this.Bb.count+")"},Ct.Object.defineProperties(Gi.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.Bb.s.length}}}),Gi.prototype.first=Gi.prototype.first,Gi.prototype.hasNext=Gi.prototype.Ad,Gi.prototype.next=Gi.prototype.next,Gi.prototype.reset=Gi.prototype.reset,Gi.className="ListIteratorBackwards";function cn(a){bi(this),this._isFrozen=!1,this.s=[],this.Ja=0,this.Hg=this.Sa=null,typeof a=="string"&&Ve("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=cn.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"List()#"+Nr(this)},Ce.add=function(a){return a===null?this:(this._isFrozen&&mt(this,a),this.s.push(a),this.xb(),this)},Ce.push=function(a){this.add(a)},Ce.addAll=function(a){if(a===null)return this;this._isFrozen&&mt(this);var y=this.s;if(Bn(a))for(var x=a.length,E=0;E<x;E++)y.push(a[E]);else for(a=a.iterator;a.next();)y.push(a.value);return this.xb(),this},Ce.clear=function(){this._isFrozen&&mt(this),this.s.length=0,this.xb()},Ce.contains=function(a){return a===null?!1:this.s.indexOf(a)!==-1},Ce.has=function(a){return this.contains(a)},Ce.indexOf=function(a){return a===null?-1:this.s.indexOf(a)},Ce.M=function(a){var y=this.s;return(0>a||a>=y.length)&&Dn(a,"0 <= i < length",cn,"elt:i"),y[a]},Ce.get=function(a){return this.M(a)},Ce.cd=function(a,y){var x=this.s;(0>a||a>=x.length)&&Dn(a,"0 <= i < length",cn,"setElt:i"),this._isFrozen&&mt(this,a),x[a]=y},Ce.set=function(a,y){this.cd(a,y)},Ce.first=function(){var a=this.s;return a.length===0?null:a[0]},Ce.jc=function(){var a=this.s,y=a.length;return 0<y?a[y-1]:null},Ce.pop=function(){this._isFrozen&&mt(this);var a=this.s;return 0<a.length?a.pop():null},cn.prototype.any=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(a(y[E]))return!0;return!1},cn.prototype.all=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)if(!a(y[E]))return!1;return!0},cn.prototype.each=function(a){for(var y=this.s,x=y.length,E=0;E<x;E++)a(y[E]);return this},cn.prototype.map=function(a){for(var y=new cn,x=[],E=this.s,b=E.length,z=0;z<b;z++)x.push(a(E[z]));return y.s=x,y.xb(),y},cn.prototype.filter=function(a){for(var y=new cn,x=[],E=this.s,b=E.length,z=0;z<b;z++){var ee=E[z];a(ee)&&x.push(ee)}return y.s=x,y.xb(),y},Ce=cn.prototype,Ce.Gb=function(a,y){0>a&&Dn(a,">= 0",cn,"insertAt:i"),this._isFrozen&&mt(this,a);var x=this.s;a>=x.length?x.push(y):x.splice(a,0,y),this.xb()},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&mt(this,a);var y=this.s;return a=y.indexOf(a),a===-1?!1:(a===y.length-1?y.pop():y.splice(a,1),this.xb(),!0)},Ce.delete=function(a){return this.remove(a)},Ce.mb=function(a){var y=this.s;(0>a||a>=y.length)&&Dn(a,"0 <= i < length",cn,"removeAt:i"),this._isFrozen&&mt(this,a),a===y.length-1?y.pop():y.splice(a,1),this.xb()},Ce.removeRange=function(a,y){var x=this.s,E=x.length;if(0>a)a=0;else if(a>=E)return this;if(0>y)return this;if(y>=E&&(y=E-1),a>y)return this;this._isFrozen&&mt(this);for(var b=a,z=y+1;z<E;)x[b++]=x[z++];return x.length=E-(y-a+1),this.xb(),this},cn.prototype.copy=function(){var a=new cn,y=this.s;return 0<y.length&&(a.s=Array.prototype.slice.call(y)),a},Ce=cn.prototype,Ce.Fa=function(){for(var a=this.s,y=this.count,x=Array(y),E=0;E<y;E++)x[E]=a[E];return x},Ce.Iv=function(){for(var a=new yn,y=this.s,x=this.count,E=0;E<x;E++)a.add(y[E]);return a},Ce.sort=function(a){return this._isFrozen&&mt(this),this.s.sort(a),this.xb(),this},Ce.zi=function(a,y,x){var E=this.s,b=E.length;y===void 0&&(y=0),x===void 0&&(x=b),this._isFrozen&&mt(this);var z=x-y;if(1>=z)return this;if((0>y||y>=b-1)&&Dn(y,"0 <= from < length",cn,"sortRange:from"),z===2)return x=E[y],b=E[y+1],0<a(x,b)&&(E[y]=b,E[y+1]=x,this.xb()),this;if(y===0)if(x>=b)E.sort(a);else for(y=E.slice(0,x),y.sort(a),a=0;a<x;a++)E[a]=y[a];else if(x>=b)for(x=E.slice(y),x.sort(a),a=y;a<b;a++)E[a]=x[a-y];else for(b=E.slice(y,x),b.sort(a),a=y;a<x;a++)E[a]=b[a-y];return this.xb(),this},Ce.reverse=function(){return this._isFrozen&&mt(this),this.s.reverse(),this.xb(),this},Ct.Object.defineProperties(cn.prototype,{_dataArray:{get:function(){return this.s}},count:{get:function(){return this.s.length}},size:{get:function(){return this.s.length}},length:{get:function(){return this.s.length}},iterator:{get:function(){if(0>=this.s.length)return br;var a=this.Sa;return a!==null?(a.reset(),a):new er(this)}},iteratorBackwards:{get:function(){if(0>=this.s.length)return br;var a=this.Hg;return a!==null?(a.reset(),a):new Gi(this)}}}),cn.prototype.reverse=cn.prototype.reverse,cn.prototype.sortRange=cn.prototype.zi,cn.prototype.sort=cn.prototype.sort,cn.prototype.toSet=cn.prototype.Iv,cn.prototype.toArray=cn.prototype.Fa,cn.prototype.removeRange=cn.prototype.removeRange,cn.prototype.removeAt=cn.prototype.mb,cn.prototype.delete=cn.prototype.delete,cn.prototype.remove=cn.prototype.remove,cn.prototype.insertAt=cn.prototype.Gb,cn.prototype.pop=cn.prototype.pop,cn.prototype.last=cn.prototype.jc,cn.prototype.first=cn.prototype.first,cn.prototype.set=cn.prototype.set,cn.prototype.setElt=cn.prototype.cd,cn.prototype.get=cn.prototype.get,cn.prototype.elt=cn.prototype.M,cn.prototype.indexOf=cn.prototype.indexOf,cn.prototype.has=cn.prototype.has,cn.prototype.contains=cn.prototype.contains,cn.prototype.clear=cn.prototype.clear,cn.prototype.addAll=cn.prototype.addAll,cn.prototype.push=cn.prototype.push,cn.prototype.add=cn.prototype.add,cn.prototype.thaw=cn.prototype.ka,cn.prototype.freeze=cn.prototype.freeze,cn.className="List";function sr(a){this.eg=a,a.Sa=null,this.qa=a.Ja,this.sa=null}sr.prototype.reset=function(){var a=this.eg;a.Sa=null,this.qa=a.Ja,this.sa=null},sr.prototype.next=function(){var a=this.eg;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},sr.prototype.Ad=function(){return this.next()},sr.prototype.first=function(){var a=this.eg;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},sr.prototype.any=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},sr.prototype.all=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},sr.prototype.each=function(a){var y=this.eg;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},sr.prototype.map=function(a){var y=this.eg;y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},sr.prototype.filter=function(a){var y=this.eg;y.Sa=null;var x=new cn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},sr.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.eg.Sa=this},sr.prototype.toString=function(){return this.sa!==null?"SetIterator@"+this.sa.value:"SetIterator"},Ct.Object.defineProperties(sr.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.eg.Sb}}}),sr.prototype.first=sr.prototype.first,sr.prototype.hasNext=sr.prototype.Ad,sr.prototype.next=sr.prototype.next,sr.prototype.reset=sr.prototype.reset,sr.className="SetIterator";function yn(a){bi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ve("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=yn.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"Set()#"+Nr(this)},Ce.add=function(a){if(a===null)return this;this._isFrozen&&mt(this,a);var y=a;return Ot(a)&&(y=Cr(a)),this.Tb[y]===void 0&&(this.Sb++,a=new Qt(a,a),this.Tb[y]=a,y=this.kf,y===null?this.ea=a:(a.ll=y,y.va=a),this.kf=a,this.xb()),this},Ce.addAll=function(a){if(a===null)return this;if(this._isFrozen&&mt(this),Bn(a))for(var y=a.length,x=0;x<y;x++)this.add(a[x]);else for(a=a.iterator;a.next();)this.add(a.value);return this},Ce.contains=function(a){if(a===null)return!1;var y=a;return Ot(a)&&(y=Nr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ce.has=function(a){return this.contains(a)},Ce.Sy=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(!this.contains(a.value))return!1;return!0},Ce.Ty=function(a){if(a===null)return!0;for(a=a.iterator;a.next();)if(this.contains(a.value))return!0;return!1},Ce.first=function(){var a=this.ea;return a===null?null:a.value},yn.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},yn.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},yn.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y.value),y=y.va;return this},yn.prototype.map=function(a){for(var y=new yn,x=this.ea;x!==null;)y.add(a(x.value)),x=x.va;return y},yn.prototype.filter=function(a){for(var y=new yn,x=this.ea;x!==null;){var E=x.value;a(E)&&y.add(E),x=x.va}return y},Ce=yn.prototype,Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&mt(this,a);var y=a;if(Ot(a)&&(y=Nr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Ce.delete=function(a){return this.remove(a)},Ce.hp=function(a){if(a===null)return this;if(this._isFrozen&&mt(this),Bn(a))for(var y=a.length,x=0;x<y;x++)this.remove(a[x]);else for(a=a.iterator;a.next();)this.remove(a.value);return this},Ce.pA=function(a){if(a===null||this.count===0)return this;this._isFrozen&&mt(this);var y=new yn;y.addAll(a),a=[];for(var x=this.iterator;x.next();){var E=x.value;y.contains(E)||a.push(E)}return this.hp(a),this},Ce.clear=function(){this._isFrozen&&mt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.kf=this.ea=null,this.xb()},yn.prototype.copy=function(){var a=new yn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a},yn.prototype.Fa=function(){var a=Array(this.Sb),y=this.Tb,x=0,E;for(E in y)a[x]=y[E].value,x++;return a},yn.prototype.Hv=function(){var a=new cn,y=this.Tb,x;for(x in y)a.add(y[x].value);return a};function bi(a){a.__gohashid=to++}function Cr(a){var y=a.__gohashid;return y===void 0&&(y=to++,a.__gohashid=y),y}function Nr(a){return a.__gohashid}Ct.Object.defineProperties(yn.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.Sb)return br;var a=this.Sa;return a!==null?(a.reset(),a):new sr(this)}}}),yn.prototype.toList=yn.prototype.Hv,yn.prototype.toArray=yn.prototype.Fa,yn.prototype.clear=yn.prototype.clear,yn.prototype.retainAll=yn.prototype.pA,yn.prototype.removeAll=yn.prototype.hp,yn.prototype.delete=yn.prototype.delete,yn.prototype.remove=yn.prototype.remove,yn.prototype.first=yn.prototype.first,yn.prototype.containsAny=yn.prototype.Ty,yn.prototype.containsAll=yn.prototype.Sy,yn.prototype.has=yn.prototype.has,yn.prototype.contains=yn.prototype.contains,yn.prototype.addAll=yn.prototype.addAll,yn.prototype.add=yn.prototype.add,yn.prototype.thaw=yn.prototype.ka,yn.prototype.freeze=yn.prototype.freeze;var to=1;yn.className="Set",yn.uniqueHash=bi,yn.hashIdUnique=Cr,yn.hashId=Nr;function Ur(a){this.ma=a,this.qa=a.Ja,this.sa=null}Ur.prototype.reset=function(){this.qa=this.ma.Ja,this.sa=null},Ur.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=this.key=a=y.key,!0):(this.de(),!1)},Ur.prototype.Ad=function(){return this.next()},Ur.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.value=this.key=a=a.key):null},Ur.prototype.any=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Ur.prototype.all=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Ur.prototype.each=function(a){var y=this.ma;for(this.sa=null,y=y.ea;y!==null;)a(y.key),y=y.va;return this},Ur.prototype.map=function(a){var y=this.ma;this.sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.key)),y=y.va;return x.iterator},Ur.prototype.filter=function(a){var y=this.ma;this.sa=null;var x=new cn;for(y=y.ea;y!==null;){var E=y.key;a(E)&&x.add(E),y=y.va}return x.iterator},Ur.prototype.de=function(){this.value=this.key=null,this.qa=-1},Ur.prototype.toString=function(){return this.sa!==null?"MapKeySetIterator@"+this.sa.value:"MapKeySetIterator"},Ct.Object.defineProperties(Ur.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Ur.prototype.first=Ur.prototype.first,Ur.prototype.hasNext=Ur.prototype.Ad,Ur.prototype.next=Ur.prototype.next,Ur.prototype.reset=Ur.prototype.reset,Ur.className="MapKeySetIterator";function Br(a){yn.call(this),bi(this),this._isFrozen=!0,this.ma=a}xt(Br,yn),Ce=Br.prototype,Ce.freeze=function(){return this},Ce.ka=function(){return this},Ce.toString=function(){return"MapKeySet("+this.ma.toString()+")"},Ce.add=function(){Ve("This Set is read-only: "+this.toString())},Ce.contains=function(a){return this.ma.contains(a)},Ce.has=function(a){return this.contains(a)},Ce.remove=function(){Ve("This Set is read-only: "+this.toString())},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){Ve("This Set is read-only: "+this.toString())},Ce.first=function(){var a=this.ma.ea;return a!==null?a.key:null},Br.prototype.any=function(a){for(var y=this.ma.ea;y!==null;){if(a(y.key))return!0;y=y.va}return!1},Br.prototype.all=function(a){for(var y=this.ma.ea;y!==null;){if(!a(y.key))return!1;y=y.va}return!0},Br.prototype.each=function(a){for(var y=this.ma.ea;y!==null;)a(y.key),y=y.va;return this},Br.prototype.map=function(a){for(var y=new yn,x=this.ma.ea;x!==null;)y.add(a(x.key)),x=x.va;return y},Br.prototype.filter=function(a){for(var y=new yn,x=this.ma.ea;x!==null;){var E=x.key;a(E)&&y.add(E),x=x.va}return y},Br.prototype.copy=function(){return new Br(this.ma)},Br.prototype.Iv=function(){var a=new yn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Br.prototype.Fa=function(){var a=this.ma.Tb,y=Array(this.ma.Sb),x=0,E;for(E in a)y[x]=a[E].key,x++;return y},Br.prototype.Hv=function(){var a=new cn,y=this.ma.Tb,x;for(x in y)a.add(y[x].key);return a},Ct.Object.defineProperties(Br.prototype,{count:{get:function(){return this.ma.Sb}},size:{get:function(){return this.ma.Sb}},iterator:{get:function(){return 0>=this.ma.Sb?br:new Ur(this.ma)}}}),Br.prototype.toList=Br.prototype.Hv,Br.prototype.toArray=Br.prototype.Fa,Br.prototype.toSet=Br.prototype.Iv,Br.prototype.first=Br.prototype.first,Br.prototype.clear=Br.prototype.clear,Br.prototype.delete=Br.prototype.delete,Br.prototype.remove=Br.prototype.remove,Br.prototype.has=Br.prototype.has,Br.prototype.contains=Br.prototype.contains,Br.prototype.add=Br.prototype.add,Br.prototype.thaw=Br.prototype.ka,Br.prototype.freeze=Br.prototype.freeze,Br.className="MapKeySet";function ao(a){this.ma=a,a.jf=null,this.qa=a.Ja,this.sa=null}ao.prototype.reset=function(){var a=this.ma;a.jf=null,this.qa=a.Ja,this.sa=null},ao.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.value=y.value,this.key=y.key,!0):(this.de(),!1)},ao.prototype.Ad=function(){return this.next()},ao.prototype.first=function(){var a=this.ma;if(this.qa=a.Ja,a=a.ea,a!==null){this.sa=a;var y=a.value;return this.key=a.key,this.value=y}return null},ao.prototype.any=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(a(y.value))return!0;y=y.va}return!1},ao.prototype.all=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;){if(!a(y.value))return!1;y=y.va}return!0},ao.prototype.each=function(a){var y=this.ma;for(this.sa=y.jf=null,y=y.ea;y!==null;)a(y.value),y=y.va;return this},ao.prototype.map=function(a){var y=this.ma;this.sa=y.jf=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y.value)),y=y.va;return x.iterator},ao.prototype.filter=function(a){var y=this.ma;this.sa=y.jf=null;var x=new cn;for(y=y.ea;y!==null;){var E=y.value;a(E)&&x.add(E),y=y.va}return x.iterator},ao.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.jf=this},ao.prototype.toString=function(){return this.sa!==null?"MapValueSetIterator@"+this.sa.value:"MapValueSetIterator"},Ct.Object.defineProperties(ao.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),ao.prototype.first=ao.prototype.first,ao.prototype.hasNext=ao.prototype.Ad,ao.prototype.next=ao.prototype.next,ao.prototype.reset=ao.prototype.reset,ao.className="MapValueSetIterator";function Qt(a,y){this.key=a,this.value=y,this.ll=this.va=null}Qt.prototype.toString=function(){return"{"+this.key+":"+this.value+"}"},Qt.className="KeyValuePair";function Vn(a){this.ma=a,a.Sa=null,this.qa=a.Ja,this.sa=null}Vn.prototype.reset=function(){var a=this.ma;a.Sa=null,this.qa=a.Ja,this.sa=null},Vn.prototype.next=function(){var a=this.ma;if(a.Ja!==this.qa&&this.key===null)return!1;var y=this.sa;return y=y===null?a.ea:y.va,y!==null?(this.sa=y,this.key=y.key,this.value=y.value,!0):(this.de(),!1)},Vn.prototype.Ad=function(){return this.next()},Vn.prototype.first=function(){var a=this.ma;return this.qa=a.Ja,a=a.ea,a!==null?(this.sa=a,this.key=a.key,this.value=a.value,a):null},Vn.prototype.any=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},Vn.prototype.all=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},Vn.prototype.each=function(a){var y=this.ma;for(this.sa=y.Sa=null,y=y.ea;y!==null;)a(y),y=y.va;return this},Vn.prototype.map=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)x.add(a(y)),y=y.va;return x.iterator},Vn.prototype.filter=function(a){var y=this.ma;this.sa=y.Sa=null;var x=new cn;for(y=y.ea;y!==null;)a(y)&&x.add(y),y=y.va;return x.iterator},Vn.prototype.de=function(){this.value=this.key=null,this.qa=-1,this.ma.Sa=this},Vn.prototype.toString=function(){return this.sa!==null?"MapIterator@"+this.sa:"MapIterator"},Ct.Object.defineProperties(Vn.prototype,{iterator:{get:function(){return this}},count:{get:function(){return this.ma.Sb}}}),Vn.prototype.first=Vn.prototype.first,Vn.prototype.hasNext=Vn.prototype.Ad,Vn.prototype.next=Vn.prototype.next,Vn.prototype.reset=Vn.prototype.reset,Vn.className="MapIterator";function $t(a){bi(this),this._isFrozen=!1,this.Tb={},this.Sb=0,this.jf=this.Sa=null,this.Ja=0,this.kf=this.ea=null,typeof a=="string"&&Ve("Error: Since 2.0 List/Map/Set constructors no longer take an argument that enforces type."),a!==void 0&&this.addAll(a)}Ce=$t.prototype,Ce.xb=function(){var a=this.Ja;a++,999999999<a&&(a=0),this.Ja=a},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.toString=function(){return"Map()#"+Nr(this)},Ce.add=function(a,y){this._isFrozen&&mt(this,a);var x=a;Ot(a)&&(x=Cr(a));var E=this.Tb[x];return E===void 0?(this.Sb++,a=new Qt(a,y),this.Tb[x]=a,x=this.kf,x===null?this.ea=a:(a.ll=x,x.va=a),this.kf=a,this.xb()):E.value=y,this},Ce.set=function(a,y){return this.add(a,y)},Ce.addAll=function(a){if(a===null)return this;if(Bn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];this.add(E.key,E.value)}else if(a instanceof $t)for(a=a.iterator;a.next();)this.add(a.key,a.value);else for(a=a.iterator;a.next();)y=a.value,this.add(y.key,y.value);return this},Ce.first=function(){return this.ea},$t.prototype.any=function(a){for(var y=this.ea;y!==null;){if(a(y))return!0;y=y.va}return!1},$t.prototype.all=function(a){for(var y=this.ea;y!==null;){if(!a(y))return!1;y=y.va}return!0},$t.prototype.each=function(a){for(var y=this.ea;y!==null;)a(y),y=y.va;return this},$t.prototype.map=function(a){for(var y=new $t,x=this.ea;x!==null;)y.add(x.key,a(x)),x=x.va;return y},$t.prototype.filter=function(a){for(var y=new $t,x=this.ea;x!==null;)a(x)&&y.add(x.key,x.value),x=x.va;return y},Ce=$t.prototype,Ce.contains=function(a){var y=a;return Ot(a)&&(y=Nr(a),y===void 0)?!1:this.Tb[y]!==void 0},Ce.has=function(a){return this.contains(a)},Ce.I=function(a){var y=a;return Ot(a)&&(y=Nr(a),y===void 0)?null:(a=this.Tb[y],a===void 0?null:a.value)},Ce.get=function(a){return this.I(a)},Ce.remove=function(a){if(a===null)return!1;this._isFrozen&&mt(this,a);var y=a;if(Ot(a)&&(y=Nr(a),y===void 0)||(a=this.Tb[y],a===void 0))return!1;var x=a.va,E=a.ll;return x!==null&&(x.ll=E),E!==null&&(E.va=x),this.ea===a&&(this.ea=x),this.kf===a&&(this.kf=E),delete this.Tb[y],this.Sb--,this.xb(),!0},Ce.delete=function(a){return this.remove(a)},Ce.clear=function(){this._isFrozen&&mt(this),this.Tb={},this.Sb=0,this.Sa!==null&&this.Sa.reset(),this.jf!==null&&this.jf.reset(),this.kf=this.ea=null,this.xb()},$t.prototype.copy=function(){var a=new $t,y=this.Tb,x;for(x in y){var E=y[x];a.add(E.key,E.value)}return a},$t.prototype.Fa=function(){var a=this.Tb,y=Array(this.Sb),x=0,E;for(E in a){var b=a[E];y[x]=new Qt(b.key,b.value),x++}return y},$t.prototype.Lf=function(){return new Br(this)},Ct.Object.defineProperties($t.prototype,{count:{get:function(){return this.Sb}},size:{get:function(){return this.Sb}},iterator:{get:function(){if(0>=this.count)return br;var a=this.Sa;return a!==null?(a.reset(),a):new Vn(this)}},iteratorKeys:{get:function(){return 0>=this.count?br:new Ur(this)}},iteratorValues:{get:function(){if(0>=this.count)return br;var a=this.jf;return a!==null?(a.reset(),a):new ao(this)}}}),$t.prototype.toKeySet=$t.prototype.Lf,$t.prototype.toArray=$t.prototype.Fa,$t.prototype.clear=$t.prototype.clear,$t.prototype.delete=$t.prototype.delete,$t.prototype.remove=$t.prototype.remove,$t.prototype.get=$t.prototype.get,$t.prototype.getValue=$t.prototype.I,$t.prototype.has=$t.prototype.has,$t.prototype.contains=$t.prototype.contains,$t.prototype.first=$t.prototype.first,$t.prototype.addAll=$t.prototype.addAll,$t.prototype.set=$t.prototype.set,$t.prototype.add=$t.prototype.add,$t.prototype.thaw=$t.prototype.ka,$t.prototype.freeze=$t.prototype.freeze,$t.className="Map";function Te(a,y){a===void 0?this.y=this.x=0:typeof a=="number"&&typeof y=="number"?(this.x=a,this.y=y):Ve("Invalid arguments to Point constructor: "+a+", "+y),this._isFrozen=!1}var He,qe,St,It,en;Te.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this},Te.prototype.h=function(a,y){return this.x=a,this.y=y,this},Te.prototype.sg=function(a,y){return this.x=a,this.y=y,this},Te.prototype.set=function(a){return this.x=a.x,this.y=a.y,this},Te.prototype.copy=function(){var a=new Te;return a.x=this.x,a.y=this.y,a},Ce=Te.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function tt(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Te(x,b)}return new Te}function Ft(a){return a.x.toString()+" "+a.y.toString()}Ce.toString=function(){return"Point("+this.x+","+this.y+")"},Ce.D=function(a){return a instanceof Te?this.x===a.x&&this.y===a.y:!1},Ce.hi=function(a,y){return this.x===a&&this.y===y},Ce.Xa=function(a){return pt.B(this.x,a.x)&&pt.B(this.y,a.y)},Ce.add=function(a){return this.x+=a.x,this.y+=a.y,this},Ce.re=function(a){return this.x-=a.x,this.y-=a.y,this},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Te.prototype.rotate=function(a){if(a===0)return this;var y=this.x,x=this.y;if(y===0&&x===0)return this;if(360<=a?a-=360:0>a&&(a+=360),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));return this.x=a*y-E*x,this.y=E*y+a*x,this},Ce=Te.prototype,Ce.scale=function(a,y){return this.x*=a,this.y*=y,this},Ce.Bf=function(a){var y=a.x-this.x;return a=a.y-this.y,y*y+a*a},Ce.zd=function(a,y){return a-=this.x,y-=this.y,a*a+y*y},Ce.normalize=function(){var a=this.x,y=this.y,x=Math.sqrt(a*a+y*y);return 0<x&&(this.x=a/x,this.y=y/x),this},Ce.ab=function(a){return Gt(a.x-this.x,a.y-this.y)},Ce.direction=function(a,y){return Gt(a-this.x,y-this.y)};function Gt(a,y){if(a===0)return 0<y?90:0>y?270:0;if(y===0)return 0<a?0:180;if(isNaN(a)||isNaN(y))return 0;var x=180*Math.atan(Math.abs(y/a))/Math.PI;return 0>a?x=0>y?x+180:180-x:0>y&&(x=360-x),x}Ce.Ry=function(a,y){return pt.Fl(a.x,a.y,y.x,y.y,this.x,this.y)},Ce.fA=function(a,y,x,E){return pt.qh(a,y,x,E,this.x,this.y,this),this},Ce.gA=function(a,y){return pt.qh(a.x,a.y,y.x,y.y,this.x,this.y,this),this},Ce.uA=function(a,y,x,E){return pt.No(this.x,this.y,a,y,x,E,this),this},Ce.vA=function(a,y){return pt.No(this.x,this.y,a.x,a.y,y.width,y.height,this),this},Ce.xi=function(a,y){return this.x=a.x+y.x*a.width+y.offsetX,this.y=a.y+y.y*a.height+y.offsetY,this},Ce.yi=function(a,y,x,E,b){return this.x=a+b.x*x+b.offsetX,this.y=y+b.y*E+b.offsetY,this},Ce.transform=function(a){return a.Ga(this),this};function Rt(a,y){return y.Cd(a),a}function on(a,y,x,E,b,z){var ee=b-x,re=z-E,oe=ee*ee+re*re;x-=a,E-=y;var se=-x*ee-E*re;return 0>=se||se>=oe?(ee=b-a,re=z-y,Math.min(x*x+E*E,ee*ee+re*re)):(a=ee*E-re*x,a*a/oe)}function li(a,y,x,E){return a=x-a,y=E-y,a*a+y*y}function Ee(a,y,x,E){return a=x-a,y=E-y,a===0?0<y?90:0>y?270:0:y===0?0<a?0:180:isNaN(a)||isNaN(y)?0:(E=180*Math.atan(Math.abs(y/a))/Math.PI,0>a?E=0>y?E+180:180-E:0>y&&(E=360-E),E)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)},Te.alloc=function(){var a=Ue.pop();return a===void 0?new Te:a},Te.allocAt=function(a,y){var x=Ue.pop();return x===void 0?new Te(a,y):(x.x=a,x.y=y,x)},Te.free=function(a){Ue.push(a)},Te.prototype.isReal=Te.prototype.w,Te.prototype.setSpot=Te.prototype.yi,Te.prototype.setRectSpot=Te.prototype.xi,Te.prototype.snapToGridPoint=Te.prototype.vA,Te.prototype.snapToGrid=Te.prototype.uA,Te.prototype.projectOntoLineSegmentPoint=Te.prototype.gA,Te.prototype.projectOntoLineSegment=Te.prototype.fA,Te.intersectingLineSegments=function(a,y,x,E,b,z,ee,re){return pt.Rl(a,y,x,E,b,z,ee,re)},Te.prototype.compareWithLineSegmentPoint=Te.prototype.Ry,Te.compareWithLineSegment=function(a,y,x,E,b,z){return pt.Fl(a,y,x,E,b,z)},Te.prototype.direction=Te.prototype.direction,Te.prototype.directionPoint=Te.prototype.ab,Te.prototype.normalize=Te.prototype.normalize,Te.prototype.distanceSquared=Te.prototype.zd,Te.prototype.distanceSquaredPoint=Te.prototype.Bf,Te.prototype.scale=Te.prototype.scale,Te.prototype.rotate=Te.prototype.rotate,Te.prototype.offset=Te.prototype.offset,Te.prototype.subtract=Te.prototype.re,Te.prototype.add=Te.prototype.add,Te.prototype.equalsApprox=Te.prototype.Xa,Te.prototype.equalTo=Te.prototype.hi,Te.prototype.equals=Te.prototype.D,Te.prototype.set=Te.prototype.set,Te.prototype.setTo=Te.prototype.sg;var Ue=[];Te.className="Point",Te.parse=tt,Te.stringify=Ft,Te.distanceLineSegmentSquared=on,Te.distanceSquared=li,Te.direction=Ee,Te.Origin=He=new Te(0,0).ja(),Te.InfiniteTopLeft=qe=new Te(-1/0,-1/0).ja(),Te.InfiniteBottomRight=St=new Te(1/0,1/0).ja(),Te.SixPoint=It=new Te(6,6).ja(),Te.NoPoint=en=new Te(NaN,NaN).ja(),Te.parse=tt,Te.stringify=Ft,Te.distanceLineSegmentSquared=on,Te.distanceSquared=li,Te.direction=Ee;function Re(a,y){a===void 0?this.height=this.width=0:typeof a=="number"&&(0<=a||isNaN(a))&&typeof y=="number"&&(0<=y||isNaN(y))?(this.width=a,this.height=y):Ve("Invalid arguments to Size constructor: "+a+", "+y),this._isFrozen=!1}var ot,lt,Wt,Vt,tn,Ln,Wn;Re.prototype.assign=function(a){return this.width=a.width,this.height=a.height,this},Re.prototype.h=function(a,y){return this.width=a,this.height=y,this},Re.prototype.sg=function(a,y){return this.width=a,this.height=y,this},Re.prototype.set=function(a){return this.width=a.width,this.height=a.height,this},Re.prototype.copy=function(){var a=new Re;return a.width=this.width,a.height=this.height,a},Ce=Re.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function mn(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;return(E=a[y++])&&(b=parseFloat(E)),new Re(x,b)}return new Re}function ei(a){return a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Size("+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof Re?this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y){return this.width===a&&this.height===y},Ce.Xa=function(a){return pt.B(this.width,a.width)&&pt.B(this.height,a.height)},Ce.Bc=function(a,y){return a=this.width+a,this.width=0<=a?a:0,y=this.height+y,this.height=0<=y?y:0,this},Ce.w=function(){return isFinite(this.width)&&isFinite(this.height)},Re.alloc=function(){var a=fi.pop();return a===void 0?new Re:a},Re.free=function(a){fi.push(a)},Re.prototype.isReal=Re.prototype.w,Re.prototype.inflate=Re.prototype.Bc,Re.prototype.equalsApprox=Re.prototype.Xa,Re.prototype.equalTo=Re.prototype.hi,Re.prototype.equals=Re.prototype.D,Re.prototype.set=Re.prototype.set,Re.prototype.setTo=Re.prototype.sg;var fi=[];Re.className="Size",Re.parse=mn,Re.stringify=ei,Re.ZeroSize=ot=new Re(0,0).ja(),Re.OneSize=lt=new Re(1,1).ja(),Re.SixSize=Wt=new Re(6,6).ja(),Re.EightSize=Vt=new Re(8,8).ja(),Re.TenSize=tn=new Re(10,10).ja(),Re.InfiniteSize=Ln=new Re(1/0,1/0).ja(),Re.NoSize=Wn=new Re(NaN,NaN).ja(),Re.parse=mn,Re.stringify=ei;function ut(a,y,x,E){a===void 0?this.height=this.width=this.y=this.x=0:typeof a=="number"&&typeof y=="number"&&typeof x=="number"&&(0<=x||isNaN(x))&&typeof E=="number"&&(0<=E||isNaN(E))?(this.x=a,this.y=y,this.width=x,this.height=E):a instanceof Te?(x=a.x,a=a.y,y instanceof Te?(E=y.x,y=y.y,this.x=Math.min(x,E),this.y=Math.min(a,y),this.width=Math.abs(x-E),this.height=Math.abs(a-y)):y instanceof Re?(this.x=x,this.y=a,this.width=y.width,this.height=y.height):Ve("Incorrect second argument supplied to Rect constructor "+y)):Ve("Invalid arguments to Rect constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Ce=ut.prototype,Ce.assign=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.h=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this};function Qn(a,y,x){a.width=y,a.height=x}Ce.sg=function(a,y,x,E){return this.x=a,this.y=y,this.width=x,this.height=E,this},Ce.set=function(a){return this.x=a.x,this.y=a.y,this.width=a.width,this.height=a.height,this},Ce.dd=function(a){return this.x=a.x,this.y=a.y,this},Ce.tA=function(a){return this.width=a.width,this.height=a.height,this},ut.prototype.copy=function(){var a=new ut;return a.x=this.x,a.y=this.y,a.width=this.width,a.height=this.height,a},Ce=ut.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function ri(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;(E=a[y++])&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;(E=a[y++])&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),new ut(x,b,z,ee)}return new ut}function jn(a){return a.x.toString()+" "+a.y.toString()+" "+a.width.toString()+" "+a.height.toString()}Ce.toString=function(){return"Rect("+this.x+","+this.y+","+this.width+","+this.height+")"},Ce.D=function(a){return a instanceof ut?this.x===a.x&&this.y===a.y&&this.width===a.width&&this.height===a.height:!1},Ce.hi=function(a,y,x,E){return this.x===a&&this.y===y&&this.width===x&&this.height===E},Ce.Xa=function(a){return pt.B(this.x,a.x)&&pt.B(this.y,a.y)&&pt.B(this.width,a.width)&&pt.B(this.height,a.height)};function oi(a,y){return pt.$(a.x,y.x)&&pt.$(a.y,y.y)&&pt.$(a.width,y.width)&&pt.$(a.height,y.height)}Ce.ca=function(a){return this.x<=a.x&&this.x+this.width>=a.x&&this.y<=a.y&&this.y+this.height>=a.y},Ce.Re=function(a){return this.x<=a.x&&a.x+a.width<=this.x+this.width&&this.y<=a.y&&a.y+a.height<=this.y+this.height},Ce.contains=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),this.x<=a&&a+x<=this.x+this.width&&this.y<=y&&y+E<=this.y+this.height},Ce.offset=function(a,y){return this.x+=a,this.y+=y,this},Ce.Bc=function(a,y){return xi(this,y,a,y,a)},Ce.Co=function(a){return xi(this,a.top,a.right,a.bottom,a.left)},Ce.Fv=function(a){return xi(this,-a.top,-a.right,-a.bottom,-a.left)},Ce.Hz=function(a,y,x,E){return xi(this,a,y,x,E)};function xi(a,y,x,E,b){var z=a.width;return x+b<=-z?(a.x+=z/2,a.width=0):(a.x-=b,a.width+=x+b),x=a.height,y+E<=-x?(a.y+=x/2,a.height=0):(a.y-=y,a.height+=y+E),a}Ce.Ex=function(a){return Ni(this,a.x,a.y,a.width,a.height)},Ce.Uu=function(a,y,x,E){return Ni(this,a,y,x,E)};function Ni(a,y,x,E,b){var z=Math.max(a.x,y),ee=Math.max(a.y,x);return y=Math.min(a.x+a.width,y+E),x=Math.min(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=Math.max(0,y-z),a.height=Math.max(0,x-ee),a}Ce.Yc=function(a){return this.Vu(a.x,a.y,a.width,a.height)},Ce.Vu=function(a,y,x,E){var b=this.width,z=this.x;return b!==1/0&&x!==1/0&&(b+=z,x+=a,isNaN(x)||isNaN(b)||z>x||a>b)?!1:(a=this.height,x=this.y,!(a!==1/0&&E!==1/0&&(a+=x,E+=y,isNaN(E)||isNaN(a)||x>E||y>a)))};function ki(a,y){var x=a.width,E=a.x,b=y.x-10;return E>y.width+10+10+b||b>x+E?!1:(x=a.height,a=a.y,E=y.y-10,!(a>y.height+10+10+E||E>x+a))}Ce.Ye=function(a){return Bi(this,a.x,a.y,0,0)},Ce.ed=function(a){return Bi(this,a.x,a.y,a.width,a.height)},Ce.Kv=function(a,y,x,E){return x===void 0&&(x=0),E===void 0&&(E=0),Bi(this,a,y,x,E)};function Bi(a,y,x,E,b){var z=Math.min(a.x,y),ee=Math.min(a.y,x);return y=Math.max(a.x+a.width,y+E),x=Math.max(a.y+a.height,x+b),a.x=z,a.y=ee,a.width=y-z,a.height=x-ee,a}Ce.yi=function(a,y,x){return this.x=a-x.offsetX-x.x*this.width,this.y=y-x.offsetY-x.y*this.height,this};function Oi(a,y,x,E,b,z,ee,re){return ee===void 0&&(ee=0),re===void 0&&(re=0),a<=b&&b+ee<=a+x&&y<=z&&z+re<=y+E}function cr(a,y,x,E,b,z,ee,re){return a>ee+b||b>x+a?!1:!(y>re+z||z>E+y)}Ce.w=function(){return isFinite(this.x)&&isFinite(this.y)&&isFinite(this.width)&&isFinite(this.height)},Ce.Mz=function(){return this.width===0&&this.height===0},ut.alloc=function(){var a=Zr.pop();return a===void 0?new ut:a},ut.allocAt=function(a,y,x,E){var b=Zr.pop();return b===void 0?new ut(a,y,x,E):b.h(a,y,x,E)},ut.free=function(a){Zr.push(a)},Ct.Object.defineProperties(ut.prototype,{left:{get:function(){return this.x},set:function(a){this.x=a}},top:{get:function(){return this.y},set:function(a){this.y=a}},right:{get:function(){return this.x+this.width},set:function(a){this.x+=a-(this.x+this.width)}},bottom:{get:function(){return this.y+this.height},set:function(a){this.y+=a-(this.y+this.height)}},position:{get:function(){return new Te(this.x,this.y)},set:function(a){this.x=a.x,this.y=a.y}},size:{get:function(){return new Re(this.width,this.height)},set:function(a){this.width=a.width,this.height=a.height}},center:{get:function(){return new Te(this.x+this.width/2,this.y+this.height/2)},set:function(a){this.x=a.x-this.width/2,this.y=a.y-this.height/2}},centerX:{get:function(){return this.x+this.width/2},set:function(a){this.x=a-this.width/2}},centerY:{get:function(){return this.y+this.height/2},set:function(a){this.y=a-this.height/2}}}),ut.prototype.isEmpty=ut.prototype.Mz,ut.prototype.isReal=ut.prototype.w,ut.intersectsLineSegment=function(a,y,x,E,b,z,ee,re){return pt.Fx(a,y,x,E,b,z,ee,re)},ut.prototype.setSpot=ut.prototype.yi,ut.prototype.union=ut.prototype.Kv,ut.prototype.unionRect=ut.prototype.ed,ut.prototype.unionPoint=ut.prototype.Ye,ut.prototype.intersects=ut.prototype.Vu,ut.prototype.intersectsRect=ut.prototype.Yc,ut.prototype.intersect=ut.prototype.Uu,ut.prototype.intersectRect=ut.prototype.Ex,ut.prototype.grow=ut.prototype.Hz,ut.prototype.subtractMargin=ut.prototype.Fv,ut.prototype.addMargin=ut.prototype.Co,ut.prototype.inflate=ut.prototype.Bc,ut.prototype.offset=ut.prototype.offset,ut.prototype.contains=ut.prototype.contains,ut.prototype.containsRect=ut.prototype.Re,ut.prototype.containsPoint=ut.prototype.ca,ut.prototype.equalsApprox=ut.prototype.Xa,ut.prototype.equalTo=ut.prototype.hi,ut.prototype.equals=ut.prototype.D,ut.prototype.setSize=ut.prototype.tA,ut.prototype.setPoint=ut.prototype.dd,ut.prototype.set=ut.prototype.set,ut.prototype.setTo=ut.prototype.sg;var kr=null,Hr=null,Zr=[];ut.className="Rect",ut.parse=ri,ut.stringify=jn,ut.contains=Oi,ut.intersects=cr,ut.ZeroRect=kr=new ut(0,0,0,0).ja(),ut.NoRect=Hr=new ut(NaN,NaN,NaN,NaN).ja(),ut.parse=ri,ut.stringify=jn,ut.contains=Oi,ut.intersects=cr;function Fi(a,y,x,E){a===void 0?this.left=this.bottom=this.right=this.top=0:y===void 0?this.left=this.bottom=this.right=this.top=a:x===void 0?(this.top=a,this.right=y,this.bottom=a,this.left=y):E!==void 0?(this.top=a,this.right=y,this.bottom=x,this.left=E):Ve("Invalid arguments to Margin constructor: "+a+", "+y+", "+x+", "+E),this._isFrozen=!1}Fi.prototype.assign=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Fi.prototype.sg=function(a,y,x,E){return this.top=a,this.right=y,this.bottom=x,this.left=E,this},Fi.prototype.set=function(a){return this.top=a.top,this.right=a.right,this.bottom=a.bottom,this.left=a.left,this},Fi.prototype.copy=function(){var a=new Fi;return a.top=this.top,a.right=this.right,a.bottom=this.bottom,a.left=this.left,a},Ce=Fi.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function Fr(a){if(typeof a=="string"){a=a.split(" ");for(var y=0,x=NaN;a[y]==="";)y++;var E=a[y++];if(E&&(x=parseFloat(E)),isNaN(x))return new Fi;for(var b=NaN;a[y]==="";)y++;if((E=a[y++])&&(b=parseFloat(E)),isNaN(b))return new Fi(x);for(var z=NaN;a[y]==="";)y++;if((E=a[y++])&&(z=parseFloat(E)),isNaN(z))return new Fi(x,b);for(var ee=NaN;a[y]==="";)y++;return(E=a[y++])&&(ee=parseFloat(E)),isNaN(ee)?new Fi(x,b):new Fi(x,b,z,ee)}return new Fi}function Er(a){return a.top.toString()+" "+a.right.toString()+" "+a.bottom.toString()+" "+a.left.toString()}Ce.toString=function(){return"Margin("+this.top+","+this.right+","+this.bottom+","+this.left+")"},Ce.D=function(a){return a instanceof Fi?this.top===a.top&&this.right===a.right&&this.bottom===a.bottom&&this.left===a.left:!1},Ce.hi=function(a,y,x,E){return this.top===a&&this.right===y&&this.bottom===x&&this.left===E},Ce.Xa=function(a){return pt.B(this.top,a.top)&&pt.B(this.right,a.right)&&pt.B(this.bottom,a.bottom)&&pt.B(this.left,a.left)},Ce.w=function(){return isFinite(this.top)&&isFinite(this.right)&&isFinite(this.bottom)&&isFinite(this.left)},Fi.alloc=function(){var a=jr.pop();return a===void 0?new Fi:a},Fi.free=function(a){jr.push(a)},Fi.prototype.isReal=Fi.prototype.w,Fi.prototype.equalsApprox=Fi.prototype.Xa,Fi.prototype.equalTo=Fi.prototype.hi,Fi.prototype.equals=Fi.prototype.D,Fi.prototype.set=Fi.prototype.set,Fi.prototype.setTo=Fi.prototype.sg;var Rr=null,xr=null,jr=[];Fi.className="Margin",Fi.parse=Fr,Fi.stringify=Er,Fi.ZeroMargin=Rr=new Fi(0,0,0,0).ja(),Fi.TwoMargin=xr=new Fi(2,2,2,2).ja(),Fi.parse=Fr,Fi.stringify=Er;function ii(a,y,x,E){a===void 0?this.offsetY=this.offsetX=this.y=this.x=0:(y===void 0&&(y=0),x===void 0&&(x=0),E===void 0&&(E=0),this.x=a,this.y=y,this.offsetX=x,this.offsetY=E),this._isFrozen=!1}var Zi,Ji,lr,Qi,nr,Mi,zr,Yr,Qr,Ar,eo,Xr,_r,fo,mo,Bo,so,ia,po,Jo,Po,Vo,Go,Yo,Ro,Lo,oa,wa,zo,Oa,bo,yo,vo,Qo,ro,ta;ii.prototype.assign=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ii.prototype.sg=function(a,y,x,E){return this.x=a,this.y=y,this.offsetX=x,this.offsetY=E,this},ii.prototype.set=function(a){return this.x=a.x,this.y=a.y,this.offsetX=a.offsetX,this.offsetY=a.offsetY,this},ii.prototype.copy=function(){var a=new ii;return a.x=this.x,a.y=this.y,a.offsetX=this.offsetX,a.offsetY=this.offsetY,a},Ce=ii.prototype,Ce.ja=function(){return this._isFrozen=!0,Object.freeze(this),this},Ce.J=function(){return this._isFrozen||Object.isFrozen(this)?this:this.copy().freeze()},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this};function wr(a,y){return a.x=NaN,a.y=NaN,a.offsetX=y,a}function ur(a){if(typeof a=="string"){if(a=a.trim(),a==="None")return Zi;if(a==="TopLeft")return Ji;if(a==="Top"||a==="TopCenter"||a==="MiddleTop")return lr;if(a==="TopRight")return Qi;if(a==="Left"||a==="LeftCenter"||a==="MiddleLeft")return nr;if(a==="Center")return Mi;if(a==="Right"||a==="RightCenter"||a==="MiddleRight")return zr;if(a==="BottomLeft")return Yr;if(a==="Bottom"||a==="BottomCenter"||a==="MiddleBottom")return Qr;if(a==="BottomRight")return Ar;if(a==="TopSide")return eo;if(a==="LeftSide")return Xr;if(a==="RightSide")return _r;if(a==="BottomSide")return fo;if(a==="TopBottomSides")return mo;if(a==="LeftRightSides")return Bo;if(a==="TopLeftSides")return so;if(a==="TopRightSides")return ia;if(a==="BottomLeftSides")return po;if(a==="BottomRightSides")return Jo;if(a==="NotTopSide")return Po;if(a==="NotLeftSide")return Vo;if(a==="NotRightSide")return Go;if(a==="NotBottomSide")return Yo;if(a==="AllSides")return Ro;if(a==="Default")return Lo;a=a.split(" ");for(var y=0,x=0;a[y]==="";)y++;var E=a[y++];E!==void 0&&0<E.length&&(x=parseFloat(E));for(var b=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(b=parseFloat(E));for(var z=0;a[y]==="";)y++;E=a[y++],E!==void 0&&0<E.length&&(z=parseFloat(E));for(var ee=0;a[y]==="";)y++;return E=a[y++],E!==void 0&&0<E.length&&(ee=parseFloat(E)),new ii(x,b,z,ee)}return new ii}function Dr(a){return a.sb()?a.x.toString()+" "+a.y.toString()+" "+a.offsetX.toString()+" "+a.offsetY.toString():a.toString()}Ce.toString=function(){return this.sb()?this.offsetX===0&&this.offsetY===0?"Spot("+this.x+","+this.y+")":"Spot("+this.x+","+this.y+","+this.offsetX+","+this.offsetY+")":this.D(Zi)?"None":this.D(Ji)?"TopLeft":this.D(lr)?"Top":this.D(Qi)?"TopRight":this.D(nr)?"Left":this.D(Mi)?"Center":this.D(zr)?"Right":this.D(Yr)?"BottomLeft":this.D(Qr)?"Bottom":this.D(Ar)?"BottomRight":this.D(eo)?"TopSide":this.D(Xr)?"LeftSide":this.D(_r)?"RightSide":this.D(fo)?"BottomSide":this.D(mo)?"TopBottomSides":this.D(Bo)?"LeftRightSides":this.D(so)?"TopLeftSides":this.D(ia)?"TopRightSides":this.D(po)?"BottomLeftSides":this.D(Jo)?"BottomRightSides":this.D(Po)?"NotTopSide":this.D(Vo)?"NotLeftSide":this.D(Go)?"NotRightSide":this.D(Yo)?"NotBottomSide":this.D(Ro)?"AllSides":this.D(Lo)?"Default":"None"},Ce.D=function(a){return a instanceof ii?(this.x===a.x||isNaN(this.x)&&isNaN(a.x))&&(this.y===a.y||isNaN(this.y)&&isNaN(a.y))&&this.offsetX===a.offsetX&&this.offsetY===a.offsetY:!1},Ce.gv=function(){return new ii(.5-(this.x-.5),.5-(this.y-.5),-this.offsetX,-this.offsetY)},Ce.Hf=function(a){if(!this.$c())return!1;if(!a.$c())if(a.D(oa))a=Xr;else if(a.D(wa))a=_r;else if(a.D(zo))a=eo;else if(a.D(Oa))a=fo;else return!1;return a=a.offsetY,(this.offsetY&a)===a},Ce.sb=function(){return!isNaN(this.x)&&!isNaN(this.y)},Ce.Mc=function(){return isNaN(this.x)||isNaN(this.y)},Ce.$c=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===1&&this.offsetY!==0},Ce.ys=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===0&&this.offsetY===0},Ce.Xb=function(){return isNaN(this.x)&&isNaN(this.y)&&this.offsetX===-1&&this.offsetY===0},ii.alloc=function(){var a=Sr.pop();return a===void 0?new ii:a},ii.free=function(a){Sr.push(a)},ii.prototype.isDefault=ii.prototype.Xb,ii.prototype.isNone=ii.prototype.ys,ii.prototype.isSide=ii.prototype.$c,ii.prototype.isNoSpot=ii.prototype.Mc,ii.prototype.isSpot=ii.prototype.sb,ii.prototype.includesSide=ii.prototype.Hf,ii.prototype.opposite=ii.prototype.gv,ii.prototype.equals=ii.prototype.D,ii.prototype.set=ii.prototype.set,ii.prototype.setTo=ii.prototype.sg;var Sr=[];ii.className="Spot",ii.parse=ur,ii.stringify=Dr,ii.None=Zi=wr(new ii(0,0,0,0),0).ja(),ii.Default=Lo=wr(new ii(0,0,-1,0),-1).ja(),ii.TopLeft=Ji=new ii(0,0,0,0).ja(),ii.TopCenter=lr=new ii(.5,0,0,0).ja(),ii.TopRight=Qi=new ii(1,0,0,0).ja(),ii.LeftCenter=nr=new ii(0,.5,0,0).ja(),ii.Center=Mi=new ii(.5,.5,0,0).ja(),ii.RightCenter=zr=new ii(1,.5,0,0).ja(),ii.BottomLeft=Yr=new ii(0,1,0,0).ja(),ii.BottomCenter=Qr=new ii(.5,1,0,0).ja(),ii.BottomRight=Ar=new ii(1,1,0,0).ja(),ii.MiddleTop=bo=lr,ii.MiddleLeft=yo=nr,ii.MiddleRight=vo=zr,ii.MiddleBottom=Qo=Qr,ii.Top=zo=lr,ii.Left=oa=nr,ii.Right=wa=zr,ii.Bottom=Oa=Qr,ii.TopSide=eo=wr(new ii(0,0,1,1),1).ja(),ii.LeftSide=Xr=wr(new ii(0,0,1,2),1).ja(),ii.RightSide=_r=wr(new ii(0,0,1,4),1).ja(),ii.BottomSide=fo=wr(new ii(0,0,1,8),1).ja(),ii.TopBottomSides=mo=wr(new ii(0,0,1,9),1).ja(),ii.LeftRightSides=Bo=wr(new ii(0,0,1,6),1).ja(),ii.TopLeftSides=so=wr(new ii(0,0,1,3),1).ja(),ii.TopRightSides=ia=wr(new ii(0,0,1,5),1).ja(),ii.BottomLeftSides=po=wr(new ii(0,0,1,10),1).ja(),ii.BottomRightSides=Jo=wr(new ii(0,0,1,12),1).ja(),ii.NotTopSide=Po=wr(new ii(0,0,1,14),1).ja(),ii.NotLeftSide=Vo=wr(new ii(0,0,1,13),1).ja(),ii.NotRightSide=Go=wr(new ii(0,0,1,11),1).ja(),ii.NotBottomSide=Yo=wr(new ii(0,0,1,7),1).ja(),ii.AllSides=Ro=wr(new ii(0,0,1,15),1).ja(),ro=new ii(.156,.156).ja(),ta=new ii(.844,.844).ja(),ii.parse=ur,ii.stringify=Dr;function vi(){this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0}vi.prototype.set=function(a){return this.m11=a.m11,this.m12=a.m12,this.m21=a.m21,this.m22=a.m22,this.dx=a.dx,this.dy=a.dy,this},vi.prototype.setTransform=function(a,y,x,E,b,z){return this.m11=a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},vi.prototype.copy=function(){var a=new vi;return a.m11=this.m11,a.m12=this.m12,a.m21=this.m21,a.m22=this.m22,a.dx=this.dx,a.dy=this.dy,a},vi.prototype.toString=function(){return"Transform("+this.m11+","+this.m12+","+this.m21+","+this.m22+","+this.dx+","+this.dy+")"},vi.prototype.D=function(a){return this.m11===a.m11&&this.m12===a.m12&&this.m21===a.m21&&this.m22===a.m22&&this.dx===a.dx&&this.dy===a.dy},vi.prototype.ws=function(){return this.dx===0&&this.dy===0&&this.m11===1&&this.m12===0&&this.m21===0&&this.m22===1},vi.prototype.reset=function(){return this.m11=1,this.m21=this.m12=0,this.m22=1,this.dy=this.dx=0,this},vi.prototype.multiply=function(a){var y=this.m11*a.m11+this.m21*a.m12,x=this.m12*a.m11+this.m22*a.m12,E=this.m11*a.m21+this.m21*a.m22,b=this.m12*a.m21+this.m22*a.m22;return this.dx=this.m11*a.dx+this.m21*a.dy+this.dx,this.dy=this.m12*a.dx+this.m22*a.dy+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},vi.prototype.bv=function(a){var y=1/(a.m11*a.m22-a.m12*a.m21),x=a.m22*y,E=-a.m12*y,b=-a.m21*y,z=a.m11*y,ee=y*(a.m21*a.dy-a.m22*a.dx);return a=y*(a.m12*a.dx-a.m11*a.dy),y=this.m11*x+this.m21*E,x=this.m12*x+this.m22*E,E=this.m11*b+this.m21*z,b=this.m12*b+this.m22*z,this.dx=this.m11*ee+this.m21*a+this.dx,this.dy=this.m12*ee+this.m22*a+this.dy,this.m11=y,this.m12=x,this.m21=E,this.m22=b,this},vi.prototype.Vj=function(){var a=1/(this.m11*this.m22-this.m12*this.m21),y=-this.m12*a,x=-this.m21*a,E=this.m11*a,b=a*(this.m21*this.dy-this.m22*this.dx),z=a*(this.m12*this.dx-this.m11*this.dy);return this.m11=this.m22*a,this.m12=y,this.m21=x,this.m22=E,this.dx=b,this.dy=z,this},vi.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a===0)return this;if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.m12*a+this.m22*E,z=this.m11*-E+this.m21*a,ee=this.m12*-E+this.m22*a;return this.m11=this.m11*a+this.m21*E,this.m12=b,this.m21=z,this.m22=ee,this.translate(-y,-x),this},Ce=vi.prototype,Ce.translate=function(a,y){return this.dx+=this.m11*a+this.m21*y,this.dy+=this.m12*a+this.m22*y,this},Ce.scale=function(a,y){return y===void 0&&(y=a),this.m11*=a,this.m12*=a,this.m21*=y,this.m22*=y,this},Ce.Ga=function(a){var y=a.x,x=a.y;return a.h(y*this.m11+x*this.m21+this.dx,y*this.m12+x*this.m22+this.dy)},Ce.Cd=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=a.x,E=a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ce.Eu=function(a){var y=1/(this.m11*this.m22-this.m12*this.m21),x=1.25*a.x,E=1.2*a.y;return a.h(x*this.m22*y+E*-this.m21*y+y*(this.m21*this.dy-this.m22*this.dx),x*-this.m12*y+E*this.m11*y+y*(this.m12*this.dx-this.m11*this.dy))},Ce.pp=function(a){var y=a.x,x=a.y,E=y+a.width,b=x+a.height,z=this.m11,ee=this.m12,re=this.m21,oe=this.m22,se=this.dx,ue=this.dy,fe=y*z+x*re+se,ve=y*ee+x*oe+ue,xe=E*z+x*re+se,Pe=E*ee+x*oe+ue;return x=y*z+b*re+se,y=y*ee+b*oe+ue,z=E*z+b*re+se,E=E*ee+b*oe+ue,b=Math.min(fe,xe),fe=Math.max(fe,xe),xe=Math.min(ve,Pe),ve=Math.max(ve,Pe),b=Math.min(b,x),fe=Math.max(fe,x),xe=Math.min(xe,y),ve=Math.max(ve,y),b=Math.min(b,z),fe=Math.max(fe,z),xe=Math.min(xe,E),ve=Math.max(ve,E),a.h(b,xe,fe-b,ve-xe),a},vi.alloc=function(){var a=Do.pop();return a===void 0?new vi:a},vi.free=function(a){Do.push(a)},vi.prototype.transformRect=vi.prototype.pp,vi.prototype.transformPoint=vi.prototype.Ga,vi.prototype.scale=vi.prototype.scale,vi.prototype.translate=vi.prototype.translate,vi.prototype.rotate=vi.prototype.rotate,vi.prototype.invert=vi.prototype.Vj,vi.prototype.multiplyInverted=vi.prototype.bv,vi.prototype.multiply=vi.prototype.multiply,vi.prototype.reset=vi.prototype.reset,vi.prototype.isIdentity=vi.prototype.ws,vi.prototype.equals=vi.prototype.D,vi.prototype.setTransform=vi.prototype.setTransform,vi.prototype.set=vi.prototype.set;var Do=[];vi.className="Transform",vi.xF="54a702f3e53909c447824c6706603faf4c";var pt={AA:"7da71ca0ad381e90",wg:(Math.sqrt(2)-1)/3*4,Uv:null,sqrt:function(a){if(0>=a)return 0;var y=pt.Uv;if(y===null){y=[];for(var x=0;2e3>=x;x++)y[x]=Math.sqrt(x);pt.Uv=y}return 1>a?(x=1/a,2e3>=x?1/y[x|0]:Math.sqrt(a)):2e3>=a?y[a|0]:Math.sqrt(a)},B:function(a,y){return a-=y,.5>a&&-.5<a},$:function(a,y){return a-=y,5e-8>a&&-5e-8<a},Yb:function(a,y,x,E,b,z,ee){if(0>=b&&(b=1e-6),a<x)var re=a,oe=x;else re=x,oe=a;if(y<E)var se=y,ue=E;else se=E,ue=y;if(a===x)return se<=ee&&ee<=ue&&a-b<=z&&z<=a+b;if(y===E)return re<=z&&z<=oe&&y-b<=ee&&ee<=y+b;if(oe+=b,re-=b,re<=z&&z<=oe&&(ue+=b,se-=b,se<=ee&&ee<=ue))if(oe-re>ue-se)if(a-x>b||x-a>b){if(z=(E-y)/(x-a)*(z-a)+y,z-b<=ee&&ee<=z+b)return!0}else return!0;else if(y-E>b||E-y>b){if(ee=(x-a)/(E-y)*(ee-y)+a,ee-b<=z&&z<=ee+b)return!0}else return!0;return!1},cs:function(a,y,x,E,b,z,ee,re,oe,se,ue,fe){if(pt.Yb(a,y,ee,re,fe,x,E)&&pt.Yb(a,y,ee,re,fe,b,z))return pt.Yb(a,y,ee,re,fe,se,ue);var ve=(a+x)/2,xe=(y+E)/2,Pe=(x+b)/2,Fe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ve+Pe)/2,x=(xe+Fe)/2,Pe=(Pe+b)/2,Fe=(Fe+z)/2;var Je=(E+Pe)/2,We=(x+Fe)/2;return pt.cs(a,y,ve,xe,E,x,Je,We,oe,se,ue,fe)||pt.cs(Je,We,Pe,Fe,b,z,ee,re,oe,se,ue,fe)},ax:function(a,y,x,E,b,z,ee,re,oe){var se=(x+b)/2,ue=(E+z)/2;return oe.h((((a+x)/2+se)/2+(se+(b+ee)/2)/2)/2,(((y+E)/2+ue)/2+(ue+(z+re)/2)/2)/2),oe},My:function(a,y,x,E,b,z,ee,re){var oe=(x+b)/2,se=(E+z)/2;return Ee(((a+x)/2+oe)/2,((y+E)/2+se)/2,(oe+(b+ee)/2)/2,(se+(z+re)/2)/2)},Dl:function(a,y,x,E,b,z,ee,re,oe,se){if(pt.Yb(a,y,ee,re,oe,x,E)&&pt.Yb(a,y,ee,re,oe,b,z))Bi(se,a,y,0,0),Bi(se,ee,re,0,0);else{var ue=(a+x)/2,fe=(y+E)/2,ve=(x+b)/2,xe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ue+ve)/2,x=(fe+xe)/2,ve=(ve+b)/2,xe=(xe+z)/2;var Pe=(E+ve)/2,Fe=(x+xe)/2;pt.Dl(a,y,ue,fe,E,x,Pe,Fe,oe,se),pt.Dl(Pe,Fe,ve,xe,b,z,ee,re,oe,se)}return se},Qe:function(a,y,x,E,b,z,ee,re,oe,se){if(pt.Yb(a,y,ee,re,oe,x,E)&&pt.Yb(a,y,ee,re,oe,b,z))se.length===0&&(se.push(a),se.push(y)),se.push(ee),se.push(re);else{var ue=(a+x)/2,fe=(y+E)/2,ve=(x+b)/2,xe=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(ue+ve)/2,x=(fe+xe)/2,ve=(ve+b)/2,xe=(xe+z)/2;var Pe=(E+ve)/2,Fe=(x+xe)/2;pt.Qe(a,y,ue,fe,E,x,Pe,Fe,oe,se),pt.Qe(Pe,Fe,ve,xe,b,z,ee,re,oe,se)}return se},jv:function(a,y,x,E,b,z,ee,re,oe,se){if(pt.Yb(a,y,b,z,se,x,E))return pt.Yb(a,y,b,z,se,re,oe);var ue=(a+x)/2,fe=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ve=(ue+x)/2,xe=(fe+E)/2;return pt.jv(a,y,ue,fe,ve,xe,ee,re,oe,se)||pt.jv(ve,xe,x,E,b,z,ee,re,oe,se)},OA:function(a,y,x,E,b,z,ee){return ee.h(((a+x)/2+(x+b)/2)/2,((y+E)/2+(E+z)/2)/2),ee},iv:function(a,y,x,E,b,z,ee,re){if(pt.Yb(a,y,b,z,ee,x,E))Bi(re,a,y,0,0),Bi(re,b,z,0,0);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,fe=(se+E)/2;pt.iv(a,y,oe,se,ue,fe,ee,re),pt.iv(ue,fe,x,E,b,z,ee,re)}return re},ep:function(a,y,x,E,b,z,ee,re){if(pt.Yb(a,y,b,z,ee,x,E))re.length===0&&(re.push(a),re.push(y)),re.push(b),re.push(z);else{var oe=(a+x)/2,se=(y+E)/2;x=(x+b)/2,E=(E+z)/2;var ue=(oe+x)/2,fe=(se+E)/2;pt.ep(a,y,oe,se,ue,fe,ee,re),pt.ep(ue,fe,x,E,b,z,ee,re)}return re},Eo:function(a,y,x,E,b,z,ee,re,oe,se,ue,fe,ve,xe){if(pt.Yb(a,y,ee,re,ve,x,E)&&pt.Yb(a,y,ee,re,ve,b,z))return!pt.Rl(a,y,ee,re,oe,se,ue,fe)||(ve=(a-ee)*(se-fe)-(y-re)*(oe-ue),ve===0)?!1:(xe.h(((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-se*ue))/ve,((a*re-y*ee)*(se-fe)-(y-re)*(oe*fe-se*ue))/ve),!0);var Pe=(a+x)/2,Fe=(y+E)/2,Je=(x+b)/2,We=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Pe+Je)/2,x=(Fe+We)/2,Je=(Je+b)/2,We=(We+z)/2;var rt=(E+Je)/2,at=(x+We)/2,ht=1/0,bt=!1,Jt=0,Ci=0;return pt.Eo(a,y,Pe,Fe,E,x,rt,at,oe,se,ue,fe,ve,xe)&&(a=(xe.x-oe)*(xe.x-oe)+(xe.y-se)*(xe.y-se),a<ht&&(ht=a,bt=!0,Jt=xe.x,Ci=xe.y)),pt.Eo(rt,at,Je,We,b,z,ee,re,oe,se,ue,fe,ve,xe)&&(xe.x-oe)*(xe.x-oe)+(xe.y-se)*(xe.y-se)<ht&&(bt=!0,Jt=xe.x,Ci=xe.y),bt&&(xe.x=Jt,xe.y=Ci),bt},Fo:function(a,y,x,E,b,z,ee,re,oe,se,ue,fe,ve){var xe=0;if(pt.Yb(a,y,ee,re,ve,x,E)&&pt.Yb(a,y,ee,re,ve,b,z)){if(ve=(a-ee)*(se-fe)-(y-re)*(oe-ue),ve===0)return xe;var Pe=((a*re-y*ee)*(oe-ue)-(a-ee)*(oe*fe-se*ue))/ve,Fe=((a*re-y*ee)*(se-fe)-(y-re)*(oe*fe-se*ue))/ve;if(Pe>=ue)return xe;if((oe>ue?oe-ue:ue-oe)<(se>fe?se-fe:fe-se)){if(y<re?(oe=y,a=re):(oe=re,a=y),Fe<oe||Fe>a)return xe}else if(a<ee?(oe=a,a=ee):oe=ee,Pe<oe||Pe>a)return xe;0<ve?xe++:0>ve&&xe--}else{Pe=(a+x)/2,Fe=(y+E)/2;var Je=(x+b)/2,We=(E+z)/2;b=(b+ee)/2,z=(z+re)/2,E=(Pe+Je)/2,x=(Fe+We)/2,Je=(Je+b)/2,We=(We+z)/2;var rt=(E+Je)/2,at=(x+We)/2;xe+=pt.Fo(a,y,Pe,Fe,E,x,rt,at,oe,se,ue,fe,ve),xe+=pt.Fo(rt,at,Je,We,b,z,ee,re,oe,se,ue,fe,ve)}return xe},qh:function(a,y,x,E,b,z,ee){return pt.$(a,x)?(y<E?(x=y,y=E):x=E,z<x?(ee.h(a,x),!1):z>y?(ee.h(a,y),!1):(ee.h(a,z),!0)):pt.$(y,E)?(a<x?(E=a,a=x):E=x,b<E?(ee.h(E,y),!1):b>a?(ee.h(a,y),!1):(ee.h(b,y),!0)):(b=((a-b)*(a-x)+(y-z)*(y-E))/((x-a)*(x-a)+(E-y)*(E-y)),-5e-6>b?(ee.h(a,y),!1):1.000005<b?(ee.h(x,E),!1):(ee.h(a+b*(x-a),y+b*(E-y)),!0))},Ve:function(a,y,x,E,b,z,ee,re,oe){return pt.B(a,x)&&pt.B(y,E)?(oe.h(a,y),!1):pt.$(b,ee)?pt.$(a,x)?(pt.qh(a,y,x,E,b,z,oe),!1):pt.qh(a,y,x,E,b,(E-y)/(x-a)*(b-a)+y,oe):(re=(re-z)/(ee-b),pt.$(a,x)?(x=re*(a-b)+z,y<E?(b=y,y=E):b=E,x<b?(oe.h(a,b),!1):x>y?(oe.h(a,y),!1):(oe.h(a,x),!0)):(ee=(E-y)/(x-a),pt.$(re,ee)?(pt.qh(a,y,x,E,b,z,oe),!1):(b=(ee*a-re*b+z-y)/(ee-re),pt.$(ee,0)?(a<x?(E=a,a=x):E=x,b<E?(oe.h(E,y),!1):b>a?(oe.h(a,y),!1):(oe.h(b,y),!0)):pt.qh(a,y,x,E,b,ee*(b-a)+y,oe))))},MA:function(a,y,x,E,b){return pt.Ve(x.x,x.y,E.x,E.y,a.x,a.y,y.x,y.y,b)},KA:function(a,y,x,E,b,z,ee,re,oe,se){function ue(Je,We){var rt=(Je-a)*(Je-a)+(We-y)*(We-y);rt<fe&&(fe=rt,oe.h(Je,We))}var fe=1/0;ue(oe.x,oe.y);var ve=0,xe=0,Pe=0,Fe=0;if(b<ee?(ve=b,xe=ee):(ve=ee,xe=b),z<re?(Pe=b,Fe=ee):(Pe=ee,Fe=b),ve=(xe-ve)/2+se,se=(Fe-Pe)/2+se,b=(b+ee)/2,z=(z+re)/2,ve===0||se===0)return oe;if(.5>(x>a?x-a:a-x)){if(ve=1-(x-b)*(x-b)/(ve*ve),0>ve)return oe;ve=Math.sqrt(ve),E=-se*ve+z,ue(x,se*ve+z),ue(x,E)}else{if(x=(E-y)/(x-a),E=1/(ve*ve)+x*x/(se*se),re=2*x*(y-x*a)/(se*se)-2*x*z/(se*se)-2*b/(ve*ve),ve=re*re-4*E*(2*x*a*z/(se*se)-2*y*z/(se*se)+z*z/(se*se)+b*b/(ve*ve)-1+(y-x*a)*(y-x*a)/(se*se)),0>ve)return oe;ve=Math.sqrt(ve),se=(-re+ve)/(2*E),ue(se,x*se-x*a+y),ve=(-re-ve)/(2*E),ue(ve,x*ve-x*a+y)}return oe},Ff:function(a,y,x,E,b,z,ee,re,oe){var se=1e21,ue=a,fe=y;if(pt.Ve(a,y,a,E,b,z,ee,re,oe)){var ve=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z);ve<se&&(se=ve,ue=oe.x,fe=oe.y)}return pt.Ve(x,y,x,E,b,z,ee,re,oe)&&(ve=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),ve<se&&(se=ve,ue=oe.x,fe=oe.y)),pt.Ve(a,y,x,y,b,z,ee,re,oe)&&(y=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),y<se&&(se=y,ue=oe.x,fe=oe.y)),pt.Ve(a,E,x,E,b,z,ee,re,oe)&&(a=(oe.x-b)*(oe.x-b)+(oe.y-z)*(oe.y-z),a<se&&(se=a,ue=oe.x,fe=oe.y)),oe.h(ue,fe),1e21>se},us:function(a,y,x){return pt.Fx(a.x,a.y,a.width,a.height,y.x,y.y,x.x,x.y)},Fx:function(a,y,x,E,b,z,ee,re){var oe=a+x,se=y+E;return b===ee?(z<re?(ee=z,z=re):ee=re,a<=b&&b<=oe&&ee<=se&&z>=y):z===re?(b<ee?(re=b,b=ee):re=ee,y<=z&&z<=se&&re<=oe&&b>=a):!!(Oi(a,y,x,E,b,z)||Oi(a,y,x,E,ee,re)||pt.Rl(a,y,oe,y,b,z,ee,re)||pt.Rl(oe,y,oe,se,b,z,ee,re)||pt.Rl(oe,se,a,se,b,z,ee,re)||pt.Rl(a,se,a,y,b,z,ee,re))},Rl:function(a,y,x,E,b,z,ee,re){return a===x&&y===E&&b===ee&&z===re?a===b&&y===z:0>=pt.Fl(a,y,x,E,b,z)*pt.Fl(a,y,x,E,ee,re)&&0>=pt.Fl(b,z,ee,re,a,y)*pt.Fl(b,z,ee,re,x,E)},Fl:function(a,y,x,E,b,z){return x-=a,E-=y,a=b-a,y=z-y,z=a*E-y*x,z===0&&(z=a*x+y*E,0<z&&(z=(a-x)*x+(y-E)*E,0>z&&(z=0))),z},bp:function(a){return 0>a&&(a+=360),360<=a&&(a-=360),a},jx:function(a,y,x,E,b,z){var ee=Math.PI;z||(E*=ee/180,b*=ee/180);var re=E>b?-1:1;z=[];var oe=ee/2,se=E;if(E=Math.min(2*ee,Math.abs(b-E)),1e-5>E)return oe=se+re*Math.min(E,oe),re=a+x*Math.cos(se),se=y+x*Math.sin(se),a+=x*Math.cos(oe),y+=x*Math.sin(oe),x=(re+a)/2,oe=(se+y)/2,z.push([re,se,x,oe,x,oe,a,y]),z;for(;1e-5<E;)b=se+re*Math.min(E,oe),z.push(pt.Vy(x,se,b,a,y)),E-=Math.abs(b-se),se=b;return z},Vy:function(a,y,x,E,b){var z=(x-y)/2,ee=a*Math.cos(z),re=a*Math.sin(z),oe=-re,se=ee*ee+oe*oe,ue=se+ee*ee+oe*re;return se=4/3*(Math.sqrt(2*se*ue)-ue)/(ee*re-oe*ee),re=ee-se*oe,ee=oe+se*ee,oe=-ee,se=z+y,z=Math.cos(se),se=Math.sin(se),[E+a*Math.cos(y),b+a*Math.sin(y),E+re*z-ee*se,b+re*se+ee*z,E+re*z-oe*se,b+re*se+oe*z,E+a*Math.cos(x),b+a*Math.sin(x)]},No:function(a,y,x,E,b,z,ee){x=Math.floor((a-x)/b)*b+x,E=Math.floor((y-E)/z)*z+E;var re=x;return x+b-a<b/2&&(re=x+b),a=E,E+z-y<z/2&&(a=E+z),ee.h(re,a),ee},vx:function(a,y){var x=Math.max(a,y);a=Math.min(a,y);var E;do y=x%a,x=E=a,a=y;while(0<y);return E},$y:function(a,y,x,E){var b=0>x,z=0>E;if(a<y)var ee=1,re=0;else ee=0,re=1;var oe=ee===0?a:y,se=ee===0?x:E;return(ee===0?b:z)&&(se=-se),ee=re,x=ee===0?x:E,(ee===0?b:z)&&(x=-x),pt.az(oe,ee===0?a:y,se,x,0,0)},az:function(a,y,x,E,b,z){if(0<E)if(0<x){b=a*a,z=y*y,a*=x;var ee=y*E,re=-z+ee,oe=-z+Math.sqrt(a*a+ee*ee);y=re;for(var se=0;9999999999>se&&(y=.5*(re+oe),!(y===re||y===oe));++se){var ue=a/(y+b),fe=ee/(y+z);if(ue=ue*ue+fe*fe-1,0<ue)re=y;else if(0>ue)oe=y;else break}x=b*x/(y+b)-x,E=z*E/(y+z)-E,x=Math.sqrt(x*x+E*E)}else x=Math.abs(E-y);else E=a*a-y*y,z=a*x,z<E?(E=z/E,z=y*Math.sqrt(Math.abs(1-E*E)),x=a*E-x,x=Math.sqrt(x*x+z*z)):x=Math.abs(x-a);return x},Ze:new Wi,um:new Wi,Mf:new Wi,Nf:0,vm:100};pt.za=pt.AA;function zn(a){bi(this),this.l=2,a===void 0&&(a=zn.o),this.na=a,this.Ec=this.Dc=this.pd=this.od=0,a===zn.o?this.ee=new cn:(zn.V===null&&(zn.V=new cn().freeze()),this.ee=zn.V),this.aq=this.ee.Ja,this.Ip=new ut().freeze(),this.ym=this.tk=null,this.zm=NaN,this.fg=Ji,this.gg=Ar,this.Rk=this.Sk=NaN,this.Uf=qn}zn.prototype.copy=function(){var a=new zn;if(a.l=this.l&-2,a.na=this.na,a.od=this.od,a.pd=this.pd,a.Dc=this.Dc,a.Ec=this.Ec,this.na===zn.o){for(var y=this.ee.s,x=a.ee,E=0;E<y.length;E++)x.add(y[E].copy());a.ee=x}else a.ee=this.ee;return a.aq=this.aq,a.Ip.assign(this.Ip),a.tk=this.tk,a.ym=this.ym,a.zm=this.zm,a.fg=this.fg.J(),a.gg=this.gg.J(),a.Sk=this.Sk,a.Rk=this.Rk,a.Uf=this.Uf,a},zn.prototype.ja=function(){return this.freeze(),Object.freeze(this),this},zn.prototype.freeze=function(){if(this._isFrozen=!0,this.type!==zn.o)return this;var a=this.figures;a.freeze(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].freeze();return this},zn.prototype.ka=function(){if(Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this.type!==zn.o)return this;var a=this.figures;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},zn.prototype.Xa=function(a){if(!(a instanceof zn))return!1;if(this.type!==a.type)return this.type===zn.j&&a.type===zn.o?ha(this,a):a.type===zn.j&&this.type===zn.o?ha(a,this):!1;if(this.type===zn.o){var y=this.figures.s;a=a.figures.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0}return pt.B(this.startX,a.startX)&&pt.B(this.startY,a.startY)&&pt.B(this.endX,a.endX)&&pt.B(this.endY,a.endY)};function ha(a,y){return a.type!==zn.j||y.type!==zn.o?!1:!!(y.figures.count===1&&(y=y.figures.M(0),y.segments.count===1&&pt.B(a.startX,y.startX)&&pt.B(a.startY,y.startY)&&(y=y.segments.M(0),y.type===So&&pt.B(a.endX,y.endX)&&pt.B(a.endY,y.endY))))}zn.ia=function(a){return a.toString()},zn.prototype.qb=function(a){a.classType===zn&&(this.type=a)},zn.prototype.toString=function(a){switch(a===void 0&&(a=-1),this.type){case zn.j:return 0>a?"M"+this.startX.toString()+" "+this.startY.toString()+"L"+this.endX.toString()+" "+this.endY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a)+"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);case zn.u:var y=new ut(this.startX,this.startY,0,0);return y.Kv(this.endX,this.endY,0,0),0>a?"M"+y.x.toString()+" "+y.y.toString()+"H"+y.right.toString()+"V"+y.bottom.toString()+"H"+y.left.toString()+"z":"M"+y.x.toFixed(a)+" "+y.y.toFixed(a)+"H"+y.right.toFixed(a)+"V"+y.bottom.toFixed(a)+"H"+y.left.toFixed(a)+"z";case zn.F:if(y=new ut(this.startX,this.startY,0,0),y.Kv(this.endX,this.endY,0,0),0>a)return a=y.left.toString()+" "+(y.y+y.height/2).toString(),"M"+a+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+(y.right.toString()+" "+(y.y+y.height/2).toString())+"A"+(y.width/2).toString()+" "+(y.height/2).toString()+" 0 0 1 "+a;var x=y.left.toFixed(a)+" "+(y.y+y.height/2).toFixed(a);return"M"+x+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+(y.right.toFixed(a)+" "+(y.y+y.height/2).toFixed(a))+"A"+(y.width/2).toFixed(a)+" "+(y.height/2).toFixed(a)+" 0 0 1 "+x;case zn.o:y="",x=this.figures.s;for(var E=x.length,b=0;b<E;b++){var z=x[b];0<b&&(y+=" x "),z.isFilled&&(y+="F "),y+=z.toString(a)}return y;default:return this.type.toString()}},zn.nb=function(a){a=a.split(/[Xx]/);for(var y=a.length,x="",E=0;E<y;E++){var b=a[E];x=b.match(/[Ff]/)!==null?E===0?x+b:x+("X"+(b[0]===" "?"":" ")+b):x+((E===0?"":"X ")+"F"+(b[0]===" "?"":" ")+b)}return x},zn.parse=function(a,y){function x(){return Fe>=ht-1?!0:se[Fe+1].match(bt)!==null}function E(){return Fe++,se[Fe]}function b(Tr){var Lr=parseFloat(E()),ho=parseFloat(E());Je===Je.toLowerCase()&&(Lr=at.x+Lr,ho=at.y+ho),Tr.h(Lr,ho)}function z(){return b(at),at}function ee(){return b(rt),rt}function re(){var Tr=We.toLowerCase();return Tr!=="c"&&Tr!=="s"&&Tr!=="q"&&Tr!=="t"?at:new Te(2*at.x-rt.x,2*at.y-rt.y)}y===void 0&&(y=!1);var oe=/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm;a=a.replace(/,/gm," "),a=a.replace(oe,"$1 $2"),a=a.replace(oe,"$1 $2"),a=a.replace(/([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])([^s])/gm,"$1 $2"),a=a.replace(/([^s])([UuBbMmZzLlHhVvCcSsQqTtAaFfXx])/gm,"$1 $2"),a=a.replace(/([0-9])([+\-])/gm,"$1 $2"),a=a.replace(/[\s\r\t\n]+/gm," "),a=a.replace(/^\s+|\s+$/g,"");var se=a.split(" ");for(a=0;a<se.length;a++){var ue=se[a];if(ue.match(/(\.[0-9]*)(\.)/gm)!==null){oe=si();for(var fe="",ve=!1,xe=0;xe<ue.length;xe++){var Pe=ue[xe];Pe!=="."||ve?Pe==="."?(oe.push(fe),fe="."):fe+=Pe:(ve=!0,fe+=Pe)}for(oe.push(fe),se.splice(a,1),ue=0;ue<oe.length;ue++)se.splice(a+ue,0,oe[ue]);a+=oe.length-1,Pi(oe)}}var Fe=-1,Je="",We="";oe=new Te(0,0);var rt=new Te(0,0),at=new Te(0,0),ht=se.length;a=O1(null),ve=fe=ue=!1,xe=!0,Pe=null;for(var bt=/[UuBbMmZzLlHhVvCcSsQqTtAaFfXx]/;!(Fe>=ht-1);)if(We=Je,Je=E(),Je!=="")switch(Je.toUpperCase()){case"X":xe=!0,fe=ue=!1;break;case"M":for(Pe=z(),a.mc===null||xe===!0?(jf(a,Pe.x,Pe.y,ue,!fe,ve),xe=!1):a.moveTo(Pe.x,Pe.y),oe.assign(at);!x();)Pe=z(),a.lineTo(Pe.x,Pe.y);break;case"L":for(;!x();)Pe=z(),a.lineTo(Pe.x,Pe.y);break;case"H":for(;!x();)at=new Te((Je===Je.toLowerCase()?at.x:0)+parseFloat(E()),at.y),a.lineTo(at.x,at.y);break;case"V":for(;!x();)at=new Te(at.x,(Je===Je.toLowerCase()?at.y:0)+parseFloat(E())),a.lineTo(at.x,at.y);break;case"C":for(;!x();){Pe=new Te,b(Pe);var Jt=ee(),Ci=z();Fh(a,Pe.x,Pe.y,Jt.x,Jt.y,Ci.x,Ci.y)}break;case"S":for(;!x();)Pe=re(),Jt=ee(),Ci=z(),Fh(a,Pe.x,Pe.y,Jt.x,Jt.y,Ci.x,Ci.y);break;case"Q":for(;!x();)Pe=ee(),Jt=z(),Hm(a,Pe.x,Pe.y,Jt.x,Jt.y);break;case"T":for(;!x();)rt=Pe=re(),Jt=z(),Hm(a,Pe.x,Pe.y,Jt.x,Jt.y);break;case"B":for(;!x();){Pe=parseFloat(E()),Jt=parseFloat(E()),Ci=parseFloat(E());var ji=parseFloat(E()),Ti=parseFloat(E()),ui=Ti,In=!1;x()||(ui=parseFloat(E()),x()||(In=parseFloat(E())!==0)),Je===Je.toLowerCase()&&(Ci+=at.x,ji+=at.y),a.arcTo(Pe,Jt,Ci,ji,Ti,ui,In)}break;case"A":for(;!x();)Pe=Math.abs(parseFloat(E())),Jt=Math.abs(parseFloat(E())),Ci=parseFloat(E()),Ti=ji=!1,In=ui=0,ui=E(),ui.length===1?(ji=!!parseFloat(ui),Ti=!!parseFloat(E()),ui=parseFloat(E())):ui.length===2?(ji=!!parseFloat(ui[0]),Ti=!!parseFloat(ui[1]),ui=parseFloat(E())):(ji=!!parseFloat(ui[0]),Ti=!!parseFloat(ui[1]),ui=parseFloat(ui.slice(2))),In=parseFloat(E()),Je===Je.toLowerCase()&&(ui=at.x+ui,In=at.y+In),at.h(ui,In),Dx(a,Pe,Jt,Ci,ji,Ti,ui,In);break;case"Z":Fx(a),at.assign(oe);break;case"F":for(Pe="",Jt=1;se[Fe+Jt];)if(se[Fe+Jt]==="0")ve=!0,Jt++;else if(se[Fe+Jt].match(/[Uu]/)!==null)Jt++;else if(se[Fe+Jt].match(bt)===null)Jt++;else{Pe=se[Fe+Jt];break}Pe.match(/[Mm]/)?ue=!0:0<a.mc.segments.length&&(a.mc.isFilled=!0);break;case"U":for(Pe="",Jt=1;se[Fe+Jt];)if(se[Fe+Jt].match(/[Ff]/)!==null)Jt++;else if(se[Fe+Jt].match(bt)===null)Jt++;else{Pe=se[Fe+Jt];break}Pe.match(/[Mm]/)?fe=!0:a.mc.isShadowed=!1}if(oe=a.os,Zm=a,y)for(y=oe.figures.iterator;y.next();)y.value.isFilled=!0;return oe},zn.Ha=function(a,y){for(var x=a.length,E=Te.alloc(),b=0;b<x;b++){var z=a[b];E.x=z[0],E.y=z[1],y.Ga(E),z[0]=E.x,z[1]=E.y,E.x=z[2],E.y=z[3],y.Ga(E),z[2]=E.x,z[3]=E.y,E.x=z[4],E.y=z[5],y.Ga(E),z[4]=E.x,z[5]=E.y,E.x=z[6],E.y=z[7],y.Ga(E),z[6]=E.x,z[7]=E.y}Te.free(E)},zn.prototype.Zu=function(){if(this._isInvalidBounds)return!0;if(this.type===zn.o){if(this.aq!==this.figures.Ja)return!0;for(var a=this.figures.s,y=a.length,x=0;x<y;x++)if(a[x].Zu())return!0}return!1},zn.prototype.computeBounds=function(){if(this._isInvalidBounds=!1,this.ym=this.tk=null,this.zm=NaN,this.type===zn.o){this.aq=this.figures.Ja;for(var a=this.figures.s,y=a.length,x=0;x<y;x++){var E=a[x];E._isInvalidBounds=!1;var b=E.segments;E.sr=b.Ja,E=b.s,b=E.length;for(var z=0;z<b;z++){var ee=E[z];ee._isInvalidBounds=!1,ee.ae=null}}}a=this.Ip,a.ka(),isNaN(this.Sk)||isNaN(this.Rk)?a.h(0,0,0,0):a.h(0,0,this.Sk,this.Rk),ga(this,a,!1),Bi(a,0,0,0,0),a.freeze()},zn.prototype.ix=function(){var a=new ut;return ga(this,a,!0),a};function ga(a,y,x){switch(a.type){case zn.j:case zn.u:case zn.F:x?y.h(a.od,a.pd,0,0):Bi(y,a.od,a.pd,0,0),Bi(y,a.Dc,a.Ec,0,0);break;case zn.o:var E=a.figures;a=E.s,E=E.length;for(var b=0;b<E;b++){var z=a[b];x&&b===0?y.h(z.startX,z.startY,0,0):Bi(y,z.startX,z.startY,0,0);for(var ee=z.segments.s,re=ee.length,oe=z.startX,se=z.startY,ue=0;ue<re;ue++){var fe=ee[ue];switch(fe.type){case So:case ca:oe=fe.endX,se=fe.endY,Bi(y,oe,se,0,0);break;case Sa:pt.Dl(oe,se,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.5,y),oe=fe.endX,se=fe.endY;break;case ds:pt.iv(oe,se,fe.point1X,fe.point1Y,fe.endX,fe.endY,.5,y),oe=fe.endX,se=fe.endY;break;case ua:case cs:var ve=fe.type===ua?Ya(fe,z):ts(fe,z,oe,se),xe=ve.length;if(xe===0){oe=fe.type===ua?fe.centerX:fe.endX,se=fe.type===ua?fe.centerY:fe.endY,Bi(y,oe,se,0,0);break}fe=null;for(var Pe=0;Pe<xe;Pe++)fe=ve[Pe],pt.Dl(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.5,y);fe!==null&&(oe=fe[6],se=fe[7]);break;default:Ve("Unknown Segment type: "+fe.type)}}}break;default:Ve("Unknown Geometry type: "+a.type)}}zn.prototype.normalize=function(){this._isFrozen&&mt(this);var a=this.ix();return this.offset(-a.x,-a.y),new Te(-a.x,-a.y)},zn.prototype.offset=function(a,y){return this._isFrozen&&mt(this),this.transform(1,0,0,1,a,y),this},zn.prototype.scale=function(a,y){return this._isFrozen&&mt(this),this.transform(a,0,0,y,0,0),this},zn.prototype.rotate=function(a,y,x){this._isFrozen&&mt(this),y===void 0&&(y=0),x===void 0&&(x=0);var E=vi.alloc();return E.reset(),E.rotate(a,y,x),this.transform(E.m11,E.m12,E.m21,E.m22,E.dx,E.dy),vi.free(E),this},Ce=zn.prototype,Ce.transform=function(a,y,x,E,b,z){switch(this.type){case zn.j:case zn.u:case zn.F:var ee=this.od,re=this.pd;this.od=ee*a+re*x+b,this.pd=ee*y+re*E+z,ee=this.Dc,re=this.Ec,this.Dc=ee*a+re*x+b,this.Ec=ee*y+re*E+z;break;case zn.o:for(var oe=this.figures.s,se=oe.length,ue=0;ue<se;ue++){var fe=oe[ue];ee=fe.startX,re=fe.startY,fe.startX=ee*a+re*x+b,fe.startY=ee*y+re*E+z,fe=fe.segments.s;for(var ve=fe.length,xe=0;xe<ve;xe++){var Pe=fe[xe];switch(Pe.type){case So:case ca:ee=Pe.endX,re=Pe.endY,Pe.endX=ee*a+re*x+b,Pe.endY=ee*y+re*E+z;break;case Sa:ee=Pe.point1X,re=Pe.point1Y,Pe.point1X=ee*a+re*x+b,Pe.point1Y=ee*y+re*E+z,ee=Pe.point2X,re=Pe.point2Y,Pe.point2X=ee*a+re*x+b,Pe.point2Y=ee*y+re*E+z,ee=Pe.endX,re=Pe.endY,Pe.endX=ee*a+re*x+b,Pe.endY=ee*y+re*E+z;break;case ds:ee=Pe.point1X,re=Pe.point1Y,Pe.point1X=ee*a+re*x+b,Pe.point1Y=ee*y+re*E+z,ee=Pe.endX,re=Pe.endY,Pe.endX=ee*a+re*x+b,Pe.endY=ee*y+re*E+z;break;case ua:ee=Pe.centerX,re=Pe.centerY,Pe.centerX=ee*a+re*x+b,Pe.centerY=ee*y+re*E+z,y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Pe.startAngle+=ee),0>a&&(Pe.startAngle=180-Pe.startAngle,Pe.sweepAngle=-Pe.sweepAngle),0>E&&(Pe.startAngle=-Pe.startAngle,Pe.sweepAngle=-Pe.sweepAngle),Pe.radiusX*=Math.sqrt(a*a+x*x),Pe.radiusY!==void 0&&(Pe.radiusY*=Math.sqrt(y*y+E*E));break;case cs:if(ee=Pe.endX,re=Pe.endY,Pe.endX=ee*a+re*x+b,Pe.endY=ee*y+re*E+z,Pe.radiusX===0||Pe.radiusY===0)break;y!==0&&(ee=180*Math.atan2(y,a)/Math.PI,0>ee&&(ee+=360),Pe.xAxisRotation+=ee),0>a&&(Pe.xAxisRotation=180-Pe.xAxisRotation,Pe.isClockwiseArc=!Pe.isClockwiseArc),0>E&&(Pe.xAxisRotation=-Pe.xAxisRotation,Pe.isClockwiseArc=!Pe.isClockwiseArc),Pe.radiusX*=Math.sqrt(a*a+x*x),Pe.radiusY*=Math.sqrt(y*y+E*E);break;default:Ve("Unknown Segment type: "+Pe.type)}}}}return this._isInvalidBounds=!0,this},Ce.ca=function(a,y){y===void 0&&(y=0);var x=this.od,E=this.pd,b=this.Dc,z=this.Ec;switch(this.type){case zn.j:return pt.Yb(x,E,b,z,y,a.x,a.y);case zn.u:var ee=ut.allocAt(Math.min(x,b)-y,Math.min(E,z)-y,Math.abs(b-x)+2*y,Math.abs(z-E)+2*y);return a=ee.ca(a),ut.free(ee),a;case zn.F:ee=Math.min(x,b)-y;var re=Math.min(E,z)-y;return x=(Math.abs(b-x)+2*y)/2,y=(Math.abs(z-E)+2*y)/2,0>=x||0>=y?!1:(ee=a.x-(ee+x),re=a.y-(re+y),1>=ee*ee/(x*x)+re*re/(y*y));case zn.o:return aa(this,a,y,!0,!1);default:return!1}};function aa(a,y,x,E,b){var z=y.x;y=y.y;for(var ee=a.bounds.x-20,re=0,oe,se,ue,fe,ve=a.figures.s,xe=ve.length,Pe=0;Pe<xe;Pe++){var Fe=ve[Pe],Je=!Fe.isEvenOdd;if(Fe.isFilled){if(E&&Fe.ca(z,y,x))return!0;var We=Fe.segments;oe=Fe.startX,se=Fe.startY;for(var rt=oe,at=se,ht=We.s,bt=0;bt<=We.length;bt++){var Jt=void 0;if(bt!==We.length){Jt=ht[bt];var Ci=Jt.type;a=Jt.endX,fe=Jt.endY}else Ci=So,a=rt,fe=at;switch(Ci){case ca:if(rt=sa(z,y,ee,y,oe,se,rt,at),isNaN(rt))return!0;re+=rt,rt=a,at=fe;break;case So:if(oe=sa(z,y,ee,y,oe,se,a,fe),isNaN(oe))return!0;re+=oe;break;case Sa:ue=pt.Fo(oe,se,Jt.point1X,Jt.point1Y,Jt.point2X,Jt.point2Y,a,fe,ee,y,z,y,.5),re+=ue;break;case ds:ue=pt.Fo(oe,se,(oe+2*Jt.point1X)/3,(se+2*Jt.point1Y)/3,(2*Jt.point1X+a)/3,(2*Jt.point1Y+fe)/3,a,fe,ee,y,z,y,.5),re+=ue;break;case ua:case cs:Ci=Jt.type===ua?Ya(Jt,Fe):ts(Jt,Fe,oe,se);var ji=Ci.length;if(ji===0){if(oe=sa(z,y,ee,y,oe,se,Jt.type===ua?Jt.centerX:Jt.endX,Jt.type===ua?Jt.centerY:Jt.endY),isNaN(oe))return!0;re+=oe;break}Jt=null;for(var Ti=0;Ti<ji;Ti++){if(Jt=Ci[Ti],Ti===0){if(ue=sa(z,y,ee,y,oe,se,Jt[0],Jt[1]),isNaN(ue))return!0;re+=ue}ue=pt.Fo(Jt[0],Jt[1],Jt[2],Jt[3],Jt[4],Jt[5],Jt[6],Jt[7],ee,y,z,y,.5),re+=ue}Jt!==null&&(a=Jt[6],fe=Jt[7]);break;default:Ve("Unknown Segment type: "+Jt.type)}oe=a,se=fe}if(Je){if(re!==0)return!0}else if(re%2!==0)return!0;re=0}else if(Fe.ca(z,y,b?x:x+2))return!0}return!1}function sa(a,y,x,E,b,z,ee,re){if(pt.Yb(b,z,ee,re,.05,a,y))return NaN;var oe=(a-x)*(z-re);if(oe===0)return 0;var se=((a*E-y*x)*(b-ee)-(a-x)*(b*re-z*ee))/oe;if(y=(a*E-y*x)*(z-re)/oe,se>=a)return 0;if((b>ee?b-ee:ee-b)<(z>re?z-re:re-z)){if(z<re){if(y<z||y>re)return 0}else if(y<re||y>z)return 0}else if(b<ee){if(se<b||se>ee)return 0}else if(se<ee||se>b)return 0;return 0<oe?1:-1}function ya(a,y,x,E){a=a.figures.s;for(var b=a.length,z=0;z<b;z++)if(a[z].ca(y,x,E))return!0;return!1}Ce.Pu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=new Te),this.type===zn.j)return y.h(this.startX+a*(this.endX-this.startX),this.startY+a*(this.endY-this.startY)),y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=E[re],se=oe.length;for(a=0;a<se;a++){var ue=oe[a];if(ee+ue>=z)return E=z-ee,E=ue===0?0:E/ue,x=x[re],re=x[2*a],b=x[2*a+1],y.h(re+(x[2*a+2]-re)*E,b+(x[2*a+3]-b)*E),y;ee+=ue}}return y},Ce.wx=function(a){if(0>a?a=0:1<a&&(a=1),this.type===zn.j)return 180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI;for(var y=this.flattenedSegments,x=this.flattenedLengths,E=y.length,b=this.flattenedTotalLength*a,z=0,ee=0;ee<E;ee++){var re=x[ee],oe=re.length;for(a=0;a<oe;a++){var se=re[a];if(z+se>=b)return b=y[ee],y=b[2*a],x=b[2*a+1],E=b[2*a+2],a=b[2*a+3],1>Math.abs(E-y)&&1>Math.abs(a-x)?0:1>Math.abs(E-y)?0<=a-x?90:270:1>Math.abs(a-x)?0<=E-y?0:180:180*Math.atan2(a-x,E-y)/Math.PI;z+=se}}return NaN},Ce.Qu=function(a,y){if(0>a?a=0:1<a&&(a=1),y===void 0&&(y=[]),y.length=3,this.type===zn.j)return y[0]=this.startX+a*(this.endX-this.startX),y[1]=this.startY+a*(this.endY-this.startY),y[2]=180*Math.atan2(this.endY-this.startY,this.endX-this.startX)/Math.PI,y;for(var x=this.flattenedSegments,E=this.flattenedLengths,b=x.length,z=this.flattenedTotalLength*a,ee=0,re=0;re<b;re++){var oe=E[re],se=oe.length;for(a=0;a<se;a++){var ue=oe[a];if(ee+ue>=z)return E=z-ee,E=ue===0?0:E/ue,ue=x[re],x=ue[2*a],re=ue[2*a+1],b=ue[2*a+2],a=ue[2*a+3],y[0]=x+(b-x)*E,y[1]=re+(a-re)*E,y[2]=1>Math.abs(b-x)&&1>Math.abs(a-re)?0:1>Math.abs(b-x)?0<=a-re?90:270:1>Math.abs(a-re)?0<=b-x?0:180:180*Math.atan2(a-re,b-x)/Math.PI,y;ee+=ue}}return y},Ce.xx=function(a){if(this.type===zn.j){var y=this.startX,x=this.startY,E=this.endX,b=this.endY;if(y!==E||x!==b){var z=a.x;if(a=a.y,y===E){if(x<b){var ee=x;E=b}else ee=b,E=x;return a<=ee?ee===x?0:1:a>=E?E===x?0:1:Math.abs(a-x)/(E-ee)}if(x===b)return y<E?ee=y:(ee=E,E=y),z<=ee?ee===y?0:1:z>=E?E===y?0:1:Math.abs(z-y)/(E-ee);ee=(E-y)*(E-y)+(b-x)*(b-x);var re=Te.alloc();return pt.qh(y,x,E,b,z,a,re),a=re.x,z=re.y,Te.free(re),Math.sqrt(((a-y)*(a-y)+(z-x)*(z-x))/ee)}}else if(this.type===zn.u){ee=this.startX,re=this.startY;var oe=this.endX;if(b=this.endY,ee!==oe||re!==b){y=oe-ee,x=b-re,z=2*y+2*x,E=a.x,a=a.y,E=Math.min(Math.max(E,ee),oe),a=Math.min(Math.max(a,re),b),ee=Math.abs(E-ee),oe=Math.abs(E-oe),re=Math.abs(a-re),b=Math.abs(a-b);var se=Math.min(ee,oe,re,b);if(se===re)return E/z;if(se===oe)return(y+a)/z;if(se===b)return(2*y+x-E)/z;if(se===ee)return(2*y+2*x-a)/z}}else{y=this.flattenedSegments,x=this.flattenedLengths,z=this.flattenedTotalLength,E=Te.alloc(),b=1/0,re=ee=0,oe=y.length;for(var ue=se=0,fe=0;fe<oe;fe++)for(var ve=y[fe],xe=x[fe],Pe=ve.length,Fe=0;Fe<Pe;Fe+=2){var Je=ve[Fe],We=ve[Fe+1];if(Fe!==0){pt.qh(se,ue,Je,We,a.x,a.y,E);var rt=(E.x-a.x)*(E.x-a.x)+(E.y-a.y)*(E.y-a.y);rt<b&&(b=rt,ee=re,ee+=Math.sqrt((E.x-se)*(E.x-se)+(E.y-ue)*(E.y-ue))),re+=xe[(Fe-2)/2]}se=Je,ue=We}return Te.free(E),a=ee/z,0>a?0:1<a?1:a}return 0};function Pa(a){if(a.tk===null){var y=a.tk=[],x=a.ym=[],E=[],b=[];if(a.type===zn.j)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.endY),y.push(E),b.push(Math.sqrt((a.startX-a.endX)*(a.startX-a.endX)+(a.startY-a.endY)*(a.startY-a.endY))),x.push(b);else if(a.type===zn.u)E.push(a.startX),E.push(a.startY),E.push(a.endX),E.push(a.startY),E.push(a.endX),E.push(a.endY),E.push(a.startX),E.push(a.endY),E.push(a.startX),E.push(a.startY),y.push(E),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),b.push(Math.abs(a.startX-a.endX)),b.push(Math.abs(a.startY-a.endY)),x.push(b);else if(a.type===zn.F){var z=new da;z.startX=a.endX,z.startY=(a.startY+a.endY)/2;var ee=new qr(ua);if(ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(a.startX+a.endX)/2,ee.centerY=(a.startY+a.endY)/2,ee.radiusX=Math.abs(a.startX-a.endX)/2,ee.radiusY=Math.abs(a.startY-a.endY)/2,z.add(ee),a=Ya(ee,z),b=a.length,b===0)E.push(ee.centerX),E.push(ee.centerY);else{ee=z.startX,z=z.startY;for(var re=0;re<b;re++){var oe=a[re];pt.Qe(ee,z,oe[2],oe[3],oe[4],oe[5],oe[6],oe[7],.5,E),ee=oe[6],z=oe[7]}}y.push(E),x.push(hs(E))}else for(a=a.figures.iterator;a.next();){b=a.value,E=[],E.push(b.startX),E.push(b.startY),ee=b.startX,z=b.startY,re=ee,oe=z;for(var se=b.segments.s,ue=se.length,fe=0;fe<ue;fe++){var ve=se[fe];switch(ve.type){case ca:4<=E.length&&(y.push(E),x.push(hs(E))),E=[],E.push(ve.endX),E.push(ve.endY),ee=ve.endX,z=ve.endY,re=ee,oe=z;break;case So:E.push(ve.endX),E.push(ve.endY),ee=ve.endX,z=ve.endY;break;case Sa:pt.Qe(ee,z,ve.point1X,ve.point1Y,ve.point2X,ve.point2Y,ve.endX,ve.endY,.5,E),ee=ve.endX,z=ve.endY;break;case ds:pt.ep(ee,z,ve.point1X,ve.point1Y,ve.endX,ve.endY,.5,E),ee=ve.endX,z=ve.endY;break;case ua:var xe=Ya(ve,b),Pe=xe.length;if(Pe===0){E.push(ve.centerX),E.push(ve.centerY),ee=ve.centerX,z=ve.centerY;break}for(var Fe=0;Fe<Pe;Fe++){var Je=xe[Fe];pt.Qe(ee,z,Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],.5,E),ee=Je[6],z=Je[7]}break;case cs:if(xe=ts(ve,b,ee,z),Pe=xe.length,Fe=ve.endX,Je=ve.endY,Pe===0){E.push(Fe),E.push(Je),ee=Fe,z=Je;break}for(Fe=0;Fe<Pe;Fe++)Je=xe[Fe],pt.Qe(ee,z,Je[2],Je[3],Je[4],Je[5],Je[6],Je[7],.5,E),ee=Je[6],z=Je[7];break;default:Ve("Segment not of valid type: "+ve.type)}ve.isClosed&&(E.push(re),E.push(oe))}4<=E.length&&(y.push(E),x.push(hs(E)))}}}function hs(a){for(var y=[],x=0,E=0,b=a.length,z=0;z<b;z+=2){var ee=a[z],re=a[z+1];z!==0&&y.push(Math.sqrt(li(x,E,ee,re))),x=ee,E=re}return y}Ce.add=function(a){return this.ee.add(a),this},Ce.pm=function(a,y,x,E,b,z,ee,re){return this._isFrozen&&mt(this),this.fg=new ii(a,y,b,z).freeze(),this.gg=new ii(x,E,ee,re).freeze(),this},Ct.Object.defineProperties(zn.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},flattenedSegments:{get:function(){return Pa(this),this.tk}},flattenedLengths:{get:function(){return Pa(this),this.ym}},flattenedTotalLength:{get:function(){var a=this.zm;if(isNaN(a)){if(this.type===zn.j){a=Math.abs(this.endX-this.startX);var y=Math.abs(this.endY-this.startY);a=Math.sqrt(a*a+y*y)}else if(this.type===zn.u)a=2*Math.abs(this.endX-this.startX)+2*Math.abs(this.endY-this.startY);else{y=this.flattenedLengths;for(var x=y.length,E=a=0;E<x;E++)for(var b=y[E],z=b.length,ee=0;ee<z;ee++)a+=b[ee]}this.zm=a}return a}},type:{get:function(){return this.na},set:function(a){this.na!==a&&(this._isFrozen&&mt(this,a),this.na=a,a===zn.o?this.ee=new cn:(zn.V===null&&(zn.V=new cn().freeze()),this.ee=zn.V),this._isInvalidBounds=!0)}},startX:{get:function(){return this.od},set:function(a){this.od!==a&&(this._isFrozen&&mt(this,a),this.od=a,this._isInvalidBounds=!0)}},startY:{get:function(){return this.pd},set:function(a){this.pd!==a&&(this._isFrozen&&mt(this,a),this.pd=a,this._isInvalidBounds=!0)}},endX:{get:function(){return this.Dc},set:function(a){this.Dc!==a&&(this._isFrozen&&mt(this,a),this.Dc=a,this._isInvalidBounds=!0)}},endY:{get:function(){return this.Ec},set:function(a){this.Ec!==a&&(this._isFrozen&&mt(this,a),this.Ec=a,this._isInvalidBounds=!0)}},figures:{get:function(){return this.ee},set:function(a){this.ee!==a&&(this._isFrozen&&mt(this,a),this.ee=a,this._isInvalidBounds=!0)}},spot1:{get:function(){return this.fg},set:function(a){this._isFrozen&&mt(this,a),this.fg=a.J()}},spot2:{get:function(){return this.gg},set:function(a){this._isFrozen&&mt(this,a),this.gg=a.J()}},defaultStretch:{get:function(){return this.Uf},set:function(a){this._isFrozen&&mt(this,a),this.Uf=a}},bounds:{get:function(){return this.Zu()&&this.computeBounds(),this.Ip}}}),zn.prototype.setSpots=zn.prototype.pm,zn.prototype.add=zn.prototype.add,zn.prototype.getFractionForPoint=zn.prototype.xx,zn.prototype.getPointAndAngleAlongPath=zn.prototype.Qu,zn.prototype.getAngleAlongPath=zn.prototype.wx,zn.prototype.getPointAlongPath=zn.prototype.Pu,zn.prototype.containsPoint=zn.prototype.ca,zn.prototype.transform=zn.prototype.transform,zn.prototype.rotate=zn.prototype.rotate,zn.prototype.scale=zn.prototype.scale,zn.prototype.offset=zn.prototype.offset,zn.prototype.normalize=zn.prototype.normalize,zn.prototype.computeBoundsWithoutOrigin=zn.prototype.ix,zn.prototype.equalsApprox=zn.prototype.Xa,zn.className="Geometry",zn.j=new En(zn,"Line",0),zn.u=new En(zn,"Rectangle",1),zn.F=new En(zn,"Ellipse",2),zn.o=new En(zn,"Path",3),zn.V=null,zn.hb="UuBbMmZzLlHhVvCcSsQqTtAaFfXx",zn.className="Geometry",zn.stringify=zn.ia,zn.fillPath=zn.nb,zn.parse=zn.parse,zn.Line=zn.j,zn.Rectangle=zn.u,zn.Ellipse=zn.F,zn.Path=zn.o;function da(a,y,x,E,b){bi(this),x===void 0&&(x=!0),E===void 0&&(E=!0),b===void 0&&(b=!1),this.l=2|(x?4:0)|(E?8:0)|(b?16:0),a!==void 0?this.od=a:this.od=0,y!==void 0?this.pd=y:this.pd=0,this.pl=new cn,this.sr=this.pl.Ja,this.fw=null}da.prototype.copy=function(){var a=new da;a.l=this.l&-2,a.od=this.od,a.pd=this.pd;for(var y=this.pl.s,x=y.length,E=a.pl,b=0;b<x;b++){var z=y[b].copy();E.add(z)}return a.sr=this.sr,a.fw=this.fw,a},Ce=da.prototype,Ce.Xa=function(a){if(!(a instanceof da&&pt.B(this.startX,a.startX)&&pt.B(this.startY,a.startY)))return!1;var y=this.segments.s;a=a.segments.s;var x=y.length;if(x!==a.length)return!1;for(var E=0;E<x;E++)if(!y[E].Xa(a[E]))return!1;return!0},Ce.toString=function(a){a===void 0&&(a=-1);for(var y=0>a?"M"+this.startX.toString()+" "+this.startY.toString():"M"+this.startX.toFixed(a)+" "+this.startY.toFixed(a),x=this.segments.s,E=x.length,b=0;b<E;b++)y+=" "+x[b].toString(a);return y},Ce.freeze=function(){this._isFrozen=!0;var a=this.segments;a.freeze();var y=a.s;a=a.length;for(var x=0;x<a;x++)y[x].freeze();return this},Ce.ka=function(){this._isFrozen=!1;var a=this.segments;a.ka(),a=a.s;for(var y=a.length,x=0;x<y;x++)a[x].ka();return this},Ce.Zu=function(){if(this._isInvalidBounds)return!0;var a=this.segments;if(this.sr!==a.Ja)return!0;a=a.s;for(var y=a.length,x=0;x<y;x++)if(a[x]._isInvalidBounds)return!0;return!1},Ce.add=function(a){return this.pl.add(a),this},Ce.ca=function(a,y,x){for(var E=this.startX,b=this.startY,z=E,ee=b,re=this.segments.s,oe=re.length,se=0;se<oe;se++){var ue=re[se];switch(ue.type){case ca:z=ue.endX,ee=ue.endY,E=ue.endX,b=ue.endY;break;case So:if(pt.Yb(E,b,ue.endX,ue.endY,x,a,y))return!0;E=ue.endX,b=ue.endY;break;case Sa:if(pt.cs(E,b,ue.point1X,ue.point1Y,ue.point2X,ue.point2Y,ue.endX,ue.endY,.5,a,y,x))return!0;E=ue.endX,b=ue.endY;break;case ds:if(pt.jv(E,b,ue.point1X,ue.point1Y,ue.endX,ue.endY,.5,a,y,x))return!0;E=ue.endX,b=ue.endY;break;case ua:case cs:var fe=ue.type===ua?Ya(ue,this):ts(ue,this,E,b),ve=fe.length,xe=ue.type===ua?ue.centerX:ue.endX,Pe=ue.type===ua?ue.centerY:ue.endY;if(ve===0){if(pt.Yb(E,b,xe,Pe,x,a,y))return!0;E=xe,b=Pe;break}for(xe=null,Pe=0;Pe<ve;Pe++)if(xe=fe[Pe],Pe===0&&pt.Yb(E,b,xe[0],xe[1],x,a,y)||pt.cs(xe[0],xe[1],xe[2],xe[3],xe[4],xe[5],xe[6],xe[7],.5,a,y,x))return!0;xe!==null&&(E=xe[6],b=xe[7]);break;default:Ve("Unknown Segment type: "+ue.type)}if(ue.isClosed&&(E!==z||b!==ee)&&pt.Yb(E,b,z,ee,x,a,y))return!0}return!1},Ct.Object.defineProperties(da.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isFilled:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mt(this,a),this.l=a?this.l|4:this.l&-5}},isShadowed:{get:function(){return(this.l&8)!==0},set:function(a){this._isFrozen&&mt(this,a),this.l=a?this.l|8:this.l&-9}},isEvenOdd:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&mt(this,a),this.l=a?this.l|16:this.l&-17}},startX:{get:function(){return this.od},set:function(a){this._isFrozen&&mt(this,a),this.od=a,this._isInvalidBounds=!0}},startY:{get:function(){return this.pd},set:function(a){this._isFrozen&&mt(this,a),this.pd=a,this._isInvalidBounds=!0}},segments:{get:function(){return this.pl},set:function(a){this._isFrozen&&mt(this,a),this.pl=a,this._isInvalidBounds=!0}}}),da.prototype.add=da.prototype.add,da.prototype.equalsApprox=da.prototype.Xa,da.className="PathFigure";function qr(a,y,x,E,b,z,ee,re){bi(this),a===void 0&&(a=So),this.na=a,this.l=2,y!==void 0?this.Dc=y:this.Dc=0,x!==void 0?this.Ec=x:this.Ec=0,E===void 0&&(E=0),b===void 0&&(b=0),z===void 0&&(z=0),ee===void 0&&(ee=0),a===cs?(a=z%360,0>a&&(a+=360),this.Ne=a,this.Vh=0,this.Wh=Math.max(E,0),this.Pg=Math.max(b,0),typeof ee=="boolean"?ee&&(this.isLargeArc=!0):typeof ee=="number"&&ee&&(this.isLargeArc=!0),re&&(this.isClockwiseArc=!0)):(this.Ne=E,this.Vh=b,a===ua&&(z=Math.max(z,0)),this.Wh=z,typeof ee=="number"?(a===ua&&(ee=Math.max(ee,0)),this.Pg=ee):this.Pg=0),this.ae=null}qr.prototype.copy=function(){var a=new qr;return a.na=this.na,a.l=this.l&-2,a.Dc=this.Dc,a.Ec=this.Ec,a.Ne=this.Ne,a.Vh=this.Vh,a.Wh=this.Wh,a.Pg=this.Pg,a},Ce=qr.prototype,Ce.Xa=function(a){if(!(a instanceof qr)||this.type!==a.type||this.isClosed!==a.isClosed)return!1;switch(this.type){case ca:case So:return pt.B(this.endX,a.endX)&&pt.B(this.endY,a.endY);case Sa:return pt.B(this.endX,a.endX)&&pt.B(this.endY,a.endY)&&pt.B(this.point1X,a.point1X)&&pt.B(this.point1Y,a.point1Y)&&pt.B(this.point2X,a.point2X)&&pt.B(this.point2Y,a.point2Y);case ds:return pt.B(this.endX,a.endX)&&pt.B(this.endY,a.endY)&&pt.B(this.point1X,a.point1X)&&pt.B(this.point1Y,a.point1Y);case ua:return pt.B(this.startAngle,a.startAngle)&&pt.B(this.sweepAngle,a.sweepAngle)&&pt.B(this.centerX,a.centerX)&&pt.B(this.centerY,a.centerY)&&pt.B(this.radiusX,a.radiusX)&&pt.B(this.radiusY,a.radiusY);case cs:return this.isClockwiseArc===a.isClockwiseArc&&this.isLargeArc===a.isLargeArc&&pt.B(this.xAxisRotation,a.xAxisRotation)&&pt.B(this.endX,a.endX)&&pt.B(this.endY,a.endY)&&pt.B(this.radiusX,a.radiusX)&&pt.B(this.radiusY,a.radiusY);default:return!1}},Ce.qb=function(a){a.classType===qr&&(this.type=a)},Ce.toString=function(a){switch(a===void 0&&(a=-1),this.type){case ca:a=0>a?"M"+this.endX.toString()+" "+this.endY.toString():"M"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case So:a=0>a?"L"+this.endX.toString()+" "+this.endY.toString():"L"+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case Sa:a=0>a?"C"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.point2X.toString()+" "+this.point2Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"C"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.point2X.toFixed(a)+" "+this.point2Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ds:a=0>a?"Q"+this.point1X.toString()+" "+this.point1Y.toString()+" "+this.endX.toString()+" "+this.endY.toString():"Q"+this.point1X.toFixed(a)+" "+this.point1Y.toFixed(a)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;case ua:a=0>a?"B"+this.startAngle.toString()+" "+this.sweepAngle.toString()+" "+this.centerX.toString()+" "+this.centerY.toString()+" "+this.radiusX.toString()+" "+this.radiusY.toString():"B"+this.startAngle.toFixed(a)+" "+this.sweepAngle.toFixed(a)+" "+this.centerX.toFixed(a)+" "+this.centerY.toFixed(a)+" "+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a);break;case cs:a=0>a?"A"+this.radiusX.toString()+" "+this.radiusY.toString()+" "+this.xAxisRotation.toString()+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toString()+" "+this.endY.toString():"A"+this.radiusX.toFixed(a)+" "+this.radiusY.toFixed(a)+" "+this.xAxisRotation.toFixed(a)+" "+(this.isLargeArc?1:0)+" "+(this.isClockwiseArc?1:0)+" "+this.endX.toFixed(a)+" "+this.endY.toFixed(a);break;default:a=this.type.toString()}return a+(this.isClosed?"z":"")},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.close=function(){return this.isClosed=!0,this};function Ya(a,y){if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;var x=a.radiusX,E=a.radiusY;if(E===void 0&&(E=x),x===0||E===0)return a.ae=[],a.ae;y=a.Ne;var b=a.Vh,z=pt.jx(0,0,x<E?x:E,a.startAngle,a.startAngle+a.sweepAngle,!1);if(x!==E){var ee=vi.alloc();ee.reset(),x<E?ee.scale(1,E/x):ee.scale(x/E,1),zn.Ha(z,ee),vi.free(ee)}for(x=z.length,E=0;E<x;E++)ee=z[E],ee[0]+=y,ee[1]+=b,ee[2]+=y,ee[3]+=b,ee[4]+=y,ee[5]+=b,ee[6]+=y,ee[7]+=b;return a.ae=z,a.ae}function ts(a,y,x,E){function b(Fe,Je,We,rt){return(Fe*rt<Je*We?-1:1)*Math.acos((Fe*We+Je*rt)/(Math.sqrt(Fe*Fe+Je*Je)*Math.sqrt(We*We+rt*rt)))}if(a.ae!==null&&y._isInvalidBounds===!1)return a.ae;if(a.radiusX===0||a.radiusY===0)return a.ae=[],a.ae;y=a.Wh;var z=a.Pg;y===0&&(y=1e-4),z===0&&(z=1e-4);var ee=Math.PI/180*a.Ne,re=a.isLargeArc,oe=a.isClockwiseArc,se=a.Dc,ue=a.Ec,fe=Math.cos(ee),ve=Math.sin(ee),xe=fe*(x-se)/2+ve*(E-ue)/2;ee=-ve*(x-se)/2+fe*(E-ue)/2;var Pe=xe*xe/(y*y)+ee*ee/(z*z);return 1<Pe&&(y*=Math.sqrt(Pe),z*=Math.sqrt(Pe)),Pe=(re===oe?-1:1)*Math.sqrt((y*y*z*z-y*y*ee*ee-z*z*xe*xe)/(y*y*ee*ee+z*z*xe*xe)),isNaN(Pe)&&(Pe=0),re=Pe*y*ee/z,Pe=Pe*-z*xe/y,isNaN(re)&&(re=0),isNaN(Pe)&&(Pe=0),x=(x+se)/2+fe*re-ve*Pe,E=(E+ue)/2+ve*re+fe*Pe,ue=b(1,0,(xe-re)/y,(ee-Pe)/z),fe=(xe-re)/y,se=(ee-Pe)/z,xe=(-xe-re)/y,re=(-ee-Pe)/z,ee=b(fe,se,xe,re),xe=(fe*xe+se*re)/(Math.sqrt(fe*fe+se*se)*Math.sqrt(xe*xe+re*re)),-1>=xe?ee=Math.PI:1<=xe&&(ee=0),!oe&&0<ee&&(ee-=2*Math.PI),oe&&0>ee&&(ee+=2*Math.PI),oe=y>z?1:y/z,xe=y>z?z/y:1,y=pt.jx(0,0,y>z?y:z,ue,ue+ee,!0),z=vi.alloc(),z.reset(),z.translate(x,E),z.rotate(a.Ne,0,0),z.scale(oe,xe),zn.Ha(y,z),vi.free(z),a.ae=y,a.ae}Ct.Object.defineProperties(qr.prototype,{_isFrozen:{get:function(){return(this.l&1)!==0},set:function(a){this.l=a?this.l|1:this.l&-2}},_isInvalidBounds:{get:function(){return(this.l&2)!==0},set:function(a){this.l=a?this.l|2:this.l&-3}},isClosed:{get:function(){return(this.l&8)!==0},set:function(a){this.isClosed!==a&&(this.l=a?this.l|8:this.l&-9,this._isInvalidBounds=!0)}},type:{get:function(){return this.na},set:function(a){this._isFrozen&&mt(this,a),this.na=a,this._isInvalidBounds=!0}},endX:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mt(this,a),this.Dc=a,this._isInvalidBounds=!0}},endY:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mt(this,a),this.Ec=a,this._isInvalidBounds=!0}},point1X:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mt(this,a),this.Ne=a,this._isInvalidBounds=!0}},point1Y:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mt(this,a),this.Vh=a,this._isInvalidBounds=!0}},point2X:{get:function(){return this.Wh},set:function(a){this._isFrozen&&mt(this,a),this.Wh=a,this._isInvalidBounds=!0}},point2Y:{get:function(){return this.Pg},set:function(a){this._isFrozen&&mt(this,a),this.Pg=a,this._isInvalidBounds=!0}},centerX:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mt(this,a),this.Ne=a,this._isInvalidBounds=!0}},centerY:{get:function(){return this.Vh},set:function(a){this._isFrozen&&mt(this,a),this.Vh=a,this._isInvalidBounds=!0}},radiusX:{get:function(){return this.Wh},set:function(a){0>a&&Dn(a,">= zero",qr,"radiusX"),this._isFrozen&&mt(this,a),this.Wh=a,this._isInvalidBounds=!0}},radiusY:{get:function(){return this.Pg},set:function(a){0>a&&Dn(a,">= zero",qr,"radiusY"),this._isFrozen&&mt(this,a),this.Pg=a,this._isInvalidBounds=!0}},startAngle:{get:function(){return this.Dc},set:function(a){this._isFrozen&&mt(this,a),a%=360,0>a&&(a+=360),this.Dc=a,this._isInvalidBounds=!0}},sweepAngle:{get:function(){return this.Ec},set:function(a){this._isFrozen&&mt(this,a),360<a&&(a=360),-360>a&&(a=-360),this.Ec=a,this._isInvalidBounds=!0}},isClockwiseArc:{get:function(){return(this.l&4)!==0},set:function(a){this._isFrozen&&mt(this,a),this.l=a?this.l|4:this.l&-5,this._isInvalidBounds=!0}},isLargeArc:{get:function(){return(this.l&16)!==0},set:function(a){this._isFrozen&&mt(this,a),this.l=a?this.l|16:this.l&-17,this._isInvalidBounds=!0}},xAxisRotation:{get:function(){return this.Ne},set:function(a){this._isFrozen&&mt(this,a),a%=360,0>a&&(a+=360),this.Ne=a,this._isInvalidBounds=!0}}}),qr.prototype.equalsApprox=qr.prototype.Xa;var ca=new En(qr,"Move",0),So=new En(qr,"Line",1),Sa=new En(qr,"Bezier",2),ds=new En(qr,"QuadraticBezier",3),ua=new En(qr,"Arc",4),cs=new En(qr,"SvgArc",4);qr.className="PathSegment",qr.Move=ca,qr.Line=So,qr.Bezier=Sa,qr.QuadraticBezier=ds,qr.Arc=ua,qr.SvgArc=cs;function za(){this.H=null,this.xu=new Te(0,0).freeze(),this.mt=new Te(0,0).freeze(),this.Bp=this.Rq=0,this.Cp=1,this.xq="",this.Wr=this.Tp=!1,this.Rp=this.Ep=0,this.xg=this.nq=this.tq=!1,this.Zp=null,this.Rr=0,this.xd=this.Nr=null}za.prototype.copy=function(){var a=new za;return this.clone(a)},za.prototype.clone=function(a){return a.H=this.H,a.xu.assign(this.viewPoint),a.mt.assign(this.documentPoint),a.Rq=this.Rq,a.Bp=this.Bp,a.Cp=this.Cp,a.xq=this.xq,a.Tp=this.Tp,a.Wr=this.Wr,a.Ep=this.Ep,a.Rp=this.Rp,a.tq=this.tq,a.nq=this.nq,a.xg=this.xg,a.Zp=this.Zp,a.Rr=this.Rr,a.Nr=this.Nr,a.xd=this.xd,a},za.prototype.toString=function(){var a="^";return this.modifiers!==0&&(a+="M:"+this.modifiers),this.button!==0&&(a+="B:"+this.button),this.key!==""&&(a+="K:"+this.key),this.clickCount!==0&&(a+="C:"+this.clickCount),this.delta!==0&&(a+="D:"+this.delta),this.handled&&(a+="h"),this.bubbles&&(a+="b"),this.documentPoint!==null&&(a+="@"+this.documentPoint.toString()),a},za.prototype.So=function(a,y){var x=this.diagram;return x===null||bg(x,a,y),y},za.prototype.Bz=function(a,y){var x=this.diagram;return x===null||(bg(x,a,y),y.assign(x.Ps(y))),y},Ct.Object.defineProperties(za.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},viewPoint:{get:function(){return this.xu},set:function(a){this.xu.assign(a)}},documentPoint:{get:function(){return this.mt},set:function(a){this.mt.assign(a)}},modifiers:{get:function(){return this.Rq},set:function(a){this.Rq=a}},button:{get:function(){return this.Bp},set:function(a){if(this.Bp=a,this.event===null)switch(a){case 0:this.buttons=1;break;case 1:this.buttons=4;break;case 2:this.buttons=2}}},buttons:{get:function(){return this.Cp},set:function(a){this.Cp=a}},key:{get:function(){return this.xq},set:function(a){this.xq=a}},down:{get:function(){return this.Tp},set:function(a){this.Tp=a}},up:{get:function(){return this.Wr},set:function(a){this.Wr=a}},clickCount:{get:function(){return this.Ep},set:function(a){this.Ep=a}},delta:{get:function(){return this.Rp},set:function(a){this.Rp=a}},isMultiTouch:{get:function(){return this.tq},set:function(a){this.tq=a}},handled:{get:function(){return this.nq},set:function(a){this.nq=a}},bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},event:{get:function(){return this.Zp},set:function(a){this.Zp=a}},isTouchEvent:{get:function(){var a=this.event;return a===null?!1:a.pointerType==="touch"||a.pointerType==="pen"}},timestamp:{get:function(){return this.Rr},set:function(a){this.Rr=a}},targetDiagram:{get:function(){return this.Nr},set:function(a){this.Nr=a}},targetObject:{get:function(){return this.xd},set:function(a){this.xd=a}},control:{get:function(){return(this.modifiers&1)!==0},set:function(a){this.modifiers=a?this.modifiers|1:this.modifiers&-2}},shift:{get:function(){return(this.modifiers&4)!==0},set:function(a){this.modifiers=a?this.modifiers|4:this.modifiers&-5}},alt:{get:function(){return(this.modifiers&2)!==0},set:function(a){this.modifiers=a?this.modifiers|2:this.modifiers&-3}},meta:{get:function(){return(this.modifiers&8)!==0},set:function(a){this.modifiers=a?this.modifiers|8:this.modifiers&-9}},left:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&1)!==0:this.button===0},set:function(a){this.buttons=a?this.buttons|1:this.buttons&-2}},right:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&2)!==0:this.button===2},set:function(a){this.buttons=a?this.buttons|2:this.buttons&-3}},middle:{get:function(){var a=this.event;return a===null||a.type!=="mousedown"&&a.type!=="mouseup"&&a.type!=="pointerdown"&&a.type!=="pointerup"?(this.buttons&4)!==0:this.button===1},set:function(a){this.buttons=a?this.buttons|4:this.buttons&-5}}}),za.prototype.getMultiTouchDocumentPoint=za.prototype.Bz,za.prototype.getMultiTouchViewPoint=za.prototype.So,za.className="InputEvent";function Dl(){this.H=null,this.xa="",this.ar=this.Lr=null}Dl.prototype.copy=function(){var a=new Dl;return a.H=this.H,a.xa=this.xa,a.Lr=this.Lr,a.ar=this.ar,a},Dl.prototype.toString=function(){var a="*"+this.name;return this.subject!==null&&(a+=":"+this.subject.toString()),this.parameter!==null&&(a+="("+this.parameter.toString()+")"),a},Ct.Object.defineProperties(Dl.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},subject:{get:function(){return this.Lr},set:function(a){this.Lr=a}},parameter:{get:function(){return this.ar},set:function(a){this.ar=a}}}),Dl.className="DiagramEvent";function Ho(){this.Fm=To,this.rf=this.Qq="",this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null}Ho.prototype.clear=function(){this.Ln=this.Mn=this.Rn=this.Sn=this.Qn=this.H=this.cc=null},Ho.prototype.copy=function(){var a=new Ho;a.Fm=this.Fm,a.Qq=this.Qq,a.rf=this.rf,a.cc=this.cc,a.H=this.H,a.Qn=this.Qn;var y=this.Sn;return a.Sn=Ot(y)&&typeof y.J=="function"?y.J():y,y=this.Rn,a.Rn=Ot(y)&&typeof y.J=="function"?y.J():y,y=this.Mn,a.Mn=Ot(y)&&typeof y.J=="function"?y.J():y,y=this.Ln,a.Ln=Ot(y)&&typeof y.J=="function"?y.J():y,a},Ho.prototype.qb=function(a){a.classType===Ho&&(this.change=a)},Ho.prototype.toString=function(){var a="";return a=this.change===Fa?a+"* ":this.change===To?a+(this.model!==null?"!m":"!d"):a+((this.model!==null?"!m":"!d")+this.change),this.propertyName&&typeof this.propertyName=="string"&&(a+=" "+this.propertyName),this.modelChange&&this.modelChange!==this.propertyName&&(a+=" "+this.modelChange),a+=": ",this.change===Fa?this.oldValue!==null&&(a+=" "+this.oldValue):(this.object!==null&&(a+=_i(this.object)),this.oldValue!==null&&(a+=" old: "+_i(this.oldValue)),this.oldParam!==null&&(a+=" "+this.oldParam),this.newValue!==null&&(a+=" new: "+_i(this.newValue)),this.newParam!==null&&(a+=" "+this.newParam)),a},Ho.prototype.I=function(a){return a?this.oldValue:this.newValue},Ho.prototype.Dz=function(a){return a?this.oldParam:this.newParam},Ho.prototype.canUndo=function(){return this.model!==null||this.diagram!==null},Ho.prototype.undo=function(){this.canUndo()&&(this.model!==null?this.model.changeState(this,!0):this.diagram!==null&&this.diagram.changeState(this,!0))},Ho.prototype.canRedo=function(){return this.model!==null||this.diagram!==null},Ho.prototype.redo=function(){this.canRedo()&&(this.model!==null?this.model.changeState(this,!1):this.diagram!==null&&this.diagram.changeState(this,!1))},Ct.Object.defineProperties(Ho.prototype,{model:{get:function(){return this.cc},set:function(a){this.cc=a}},diagram:{get:function(){return this.H},set:function(a){this.H=a}},change:{get:function(){return this.Fm},set:function(a){this.Fm=a}},modelChange:{get:function(){return this.Qq},set:function(a){this.Qq=a}},propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},isTransactionFinished:{get:function(){return this.Fm===Fa&&(this.rf==="CommittedTransaction"||this.rf==="FinishedUndo"||this.rf==="FinishedRedo")}},object:{get:function(){return this.Qn},set:function(a){this.Qn=a}},oldValue:{get:function(){return this.Sn},set:function(a){this.Sn=a}},oldParam:{get:function(){return this.Rn},set:function(a){this.Rn=a}},newValue:{get:function(){return this.Mn},set:function(a){this.Mn=a}},newParam:{get:function(){return this.Ln},set:function(a){this.Ln=a}}}),Ho.prototype.redo=Ho.prototype.redo,Ho.prototype.canRedo=Ho.prototype.canRedo,Ho.prototype.undo=Ho.prototype.undo,Ho.prototype.canUndo=Ho.prototype.canUndo,Ho.prototype.getParam=Ho.prototype.Dz,Ho.prototype.getValue=Ho.prototype.I,Ho.prototype.clear=Ho.prototype.clear;var Fa=new En(Ho,"Transaction",-1),To=new En(Ho,"Property",0),$o=new En(Ho,"Insert",1),pa=new En(Ho,"Remove",2);Ho.className="ChangedEvent",Ho.Transaction=Fa,Ho.Property=To,Ho.Insert=$o,Ho.Remove=pa;function xa(){this.o=new cn().freeze(),this.xa="",this.j=!1}xa.prototype.toString=function(a){var y="Transaction: "+this.name+" "+this.changes.count.toString()+(this.isComplete?"":", incomplete");if(a!==void 0&&0<a){a=this.changes.count;for(var x=0;x<a;x++){var E=this.changes.M(x);E!==null&&(y+=`
|
|
`+E.toString())}}return y},xa.prototype.clear=function(){var a=this.changes;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),a.freeze()},xa.prototype.canUndo=function(){return this.isComplete},xa.prototype.undo=function(){if(this.canUndo())for(var a=this.changes.count-1;0<=a;a--){var y=this.changes.M(a);y!==null&&y.undo()}},xa.prototype.canRedo=function(){return this.isComplete},xa.prototype.redo=function(){if(this.canRedo())for(var a=this.changes.count,y=0;y<a;y++){var x=this.changes.M(y);x!==null&&x.redo()}},xa.prototype.ak=function(){if(this.isComplete){var a=this.changes;a.ka();for(var y=new $t,x=0;x<a.count;x++){var E=a.M(x);if(E!==null&&E.change===To&&E.object){var b=y.get(E.object);b||(b=new $t,y.set(E.object,b));var z=b.get(E.propertyName);z===null?b.set(E.propertyName,-1):(0<z&&a.cd(z,null),b.set(E.propertyName,x))}}for(x=y=0;x<a.count;x++)E=a.M(x),E!==null&&(x>y&&a.cd(y,E),y++);for(;a.length>y;)a.pop();a.freeze()}},Ct.Object.defineProperties(xa.prototype,{changes:{get:function(){return this.o}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isComplete:{get:function(){return this.j},set:function(a){this.j=a}}}),xa.prototype.optimize=xa.prototype.ak,xa.prototype.redo=xa.prototype.redo,xa.prototype.canRedo=xa.prototype.canRedo,xa.prototype.undo=xa.prototype.undo,xa.prototype.canUndo=xa.prototype.canUndo,xa.prototype.clear=xa.prototype.clear,xa.className="Transaction";function qo(){this.Pt=new yn,this.Jd=!1,this.u=new cn().freeze(),this.Ce=-1,this.o=999,this.Fe=!1,this.Np=null,this.bi=0,this.j=!1,this.Ie=new cn().freeze(),this.hl=new cn,this.tt=!0,this.Dt=this.rq=this.Gt=this.Ft=!1}qo.prototype.toString=function(a){var y="UndoManager "+this.historyIndex+"<"+this.history.count+"<="+this.maxHistoryLength;y+="[";for(var x=this.nestedTransactionNames.count,E=0;E<x;E++)0<E&&(y+=" "),y+=this.nestedTransactionNames.M(E);if(y+="]",a!==void 0&&0<a)for(x=this.history.count,E=0;E<x;E++)y+=`
|
|
`+this.history.M(E).toString(a-1);return y},qo.prototype.clear=function(){var a=this.history;a.ka();for(var y=a.count-1;0<=y;y--){var x=a.M(y);x!==null&&x.clear()}a.clear(),this.Ce=-1,a.freeze(),this.Fe=!1,this.Np=null,this.bi=0,this.Ie.ka(),this.Ie.clear(),this.Ie.freeze(),this.hl.clear(),this.Dt=this.rq=this.Gt=this.Ft=!1},qo.prototype.copyProperties=function(a){this.isEnabled=a.isEnabled,this.maxHistoryLength=a.maxHistoryLength,this.checksTransactionLevel=a.checksTransactionLevel},Ce=qo.prototype,Ce.Xw=function(a){this.Pt.add(a)},Ce.Rx=function(a){this.Pt.remove(a)},Ce.Ea=function(a){if(a===void 0&&(a=""),a===null&&(a=""),this.isUndoingRedoing)return!1;this.tt===!0&&(this.tt=!1,this.bi++,this.isInternalTransaction||this.Ob("StartingFirstTransaction",a,this.currentTransaction),0<this.bi&&this.bi--),this.isEnabled&&(this.Ie.ka(),this.Ie.add(a),this.Ie.freeze(),this.currentTransaction===null?this.hl.add(0):this.hl.add(this.currentTransaction.changes.count)),this.bi++;var y=this.transactionLevel===1;return y&&(this.isInternalTransaction||this.Ob("StartedTransaction",a,this.currentTransaction)),y},Ce.eb=function(a){return a===void 0&&(a=""),pl(this,!0,a)},Ce.Kf=function(){return pl(this,!1,"")};function pl(a,y,x){if(a.isUndoingRedoing)return!1;a.checksTransactionLevel&&1>a.transactionLevel&&An("Ending transaction without having started a transaction: "+x);var E=a.transactionLevel===1,b=a.currentTransaction;E&&y&&(a.isInternalTransaction||a.Ob("CommittingTransaction",x,b));var z=0;if(0<a.transactionLevel&&(a.bi--,a.isEnabled)){var ee=a.Ie.count;0<ee&&(x===""&&(x=a.Ie.M(0)),a.Ie.ka(),a.Ie.mb(ee-1),a.Ie.freeze()),ee=a.hl.count,0<ee&&(z=a.hl.M(ee-1),a.hl.mb(ee-1))}if(E){if(y)a.rq=!1,b===null&&x!==""&&(b=a.currentTransaction),a.isEnabled&&b!==null&&(b.isComplete||(b.isComplete=!0,b.name=x),a.lx(),y=a.history,y.ka(),E=a.maxHistoryLength,0<=E&&(E===0?y.clear():y.count>=E&&(z=y.M(0),z!==null&&z.clear(),y.mb(0),a.Ce--)),E===0||y.count!==0&&y.get(y.count-1)===b||(y.add(b),a.Ce++),y.freeze()),a.isInternalTransaction||a.Ob("CommittedTransaction",x,b);else{a.Fe=!0;try{a.isEnabled&&b!==null&&(b.isComplete=!0,b.undo())}finally{a.isInternalTransaction||a.Ob("RolledBackTransaction",x,b),a.Fe=!1}b!==null&&b.clear()}return a.Np=null,a.isPendingClear&&a.clear(),a.isPendingClear=!1,a.isPendingUnmodified=!1,!0}if(a.isEnabled&&!y&&b!==null){for(a=z,x=b.changes,b=x.count-1;b>=a;b--)y=x.M(b),y!==null&&y.undo(),x.ka(),x.mb(b);x.freeze()}return!1}Ce.lx=function(){if(!this.isUndoingRedoing&&this.canRedo()){var a=this.history;a.ka();for(var y=a.count-1;y>this.historyIndex;y--){var x=a.M(y);x!==null&&x.clear(),a.mb(y),this.rq=!0}a.freeze()}},qo.prototype.canUndo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToUndo;return!!(a!==null&&a.canUndo())},qo.prototype.undo=function(){if(this.canUndo()){var a=this.transactionToUndo;try{this.Fe=!0,this.Ob("StartingUndo","Undo",a),this.Ce--,a.undo()}catch(y){An("undo error: "+y.toString())}finally{this.Ob("FinishedUndo","Undo",a),this.Fe=!1}}},qo.prototype.canRedo=function(){if(!this.isEnabled||0<this.transactionLevel)return!1;var a=this.transactionToRedo;return!!(a!==null&&a.canRedo())},qo.prototype.redo=function(){if(this.canRedo()){var a=this.transactionToRedo;try{this.Fe=!0,this.Ob("StartingRedo","Redo",a),this.Ce++,a.redo()}catch(y){An("redo error: "+y.toString())}finally{this.Ob("FinishedRedo","Redo",a),this.Fe=!1}}},qo.prototype.Ob=function(a,y,x){x===void 0&&(x=null);var E=new Ho;for(E.change=Fa,E.propertyName=a,E.object=x,E.oldValue=y,a=this.models;a.next();)y=a.value,E.model=y,y.ds(E)},qo.prototype.Tu=function(a){if(this.isEnabled&&!this.isUndoingRedoing&&!this.skipsEvent(a)){var y=this.currentTransaction;y===null&&(this.Np=y=new xa);var x=a.copy();y=y.changes,y.ka(),y.add(x),y.freeze(),this.checksTransactionLevel&&0>=this.transactionLevel&&!this.tt&&(a=a.diagram,a!==null&&a.pi===!1||An("Change not within a transaction: "+x.toString()))}},qo.prototype.skipsEvent=function(a){if(a===null||0>a.change.value)return!0;if(a=a.object,a===null)return!1;if(a.layer!==void 0){if(a=a.layer,a!==null&&a.isTemporary)return!0}else if(a.isTemporary)return!0;return!1},Ct.Object.defineProperties(qo.prototype,{models:{get:function(){return this.Pt.iterator}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},transactionToUndo:{get:function(){return 0<=this.historyIndex&&this.historyIndex<=this.history.count-1?this.history.M(this.historyIndex):null}},transactionToRedo:{get:function(){return this.historyIndex<this.history.count-1?this.history.M(this.historyIndex+1):null}},isUndoingRedoing:{get:function(){return this.Fe}},history:{get:function(){return this.u}},maxHistoryLength:{get:function(){return this.o},set:function(a){this.o=a}},historyIndex:{get:function(){return this.Ce}},currentTransaction:{get:function(){return this.Np}},transactionLevel:{get:function(){return this.bi}},isInTransaction:{get:function(){return 0<this.bi}},checksTransactionLevel:{get:function(){return this.j},set:function(a){this.j=a}},nestedTransactionNames:{get:function(){return this.Ie}},isPendingClear:{get:function(){return this.Ft},set:function(a){this.Ft=a}},isPendingUnmodified:{get:function(){return this.Gt},set:function(a){this.Gt=a}},isInternalTransaction:{get:function(){return this.Dt},set:function(a){this.Dt=a}},isJustDiscarded:{get:function(){return this.rq}}}),qo.prototype.handleChanged=qo.prototype.Tu,qo.prototype.redo=qo.prototype.redo,qo.prototype.undo=qo.prototype.undo,qo.prototype.canUndo=qo.prototype.canUndo,qo.prototype.discardHistoryAfterIndex=qo.prototype.lx,qo.prototype.rollbackTransaction=qo.prototype.Kf,qo.prototype.commitTransaction=qo.prototype.eb,qo.prototype.startTransaction=qo.prototype.Ea,qo.prototype.removeModel=qo.prototype.Rx,qo.prototype.addModel=qo.prototype.Xw,qo.prototype.clear=qo.prototype.clear,qo.className="UndoManager";function no(){bi(this),this.H=Tu,this.xa="",this.Jd=!0,this.nb=!1,this.wm=null,this.yy=new za,this.Zr=-1}no.prototype.toString=function(){return this.name!==""?this.name+" Tool":yi(this.constructor)},no.prototype.updateAdornments=function(){},no.prototype.canStart=function(){return this.isEnabled},no.prototype.doStart=function(){},no.prototype.doActivate=function(){this.isActive=!0},no.prototype.doDeactivate=function(){this.isActive=!1},no.prototype.doStop=function(){},no.prototype.doCancel=function(){this.transactionResult=null,this.stopTool()},no.prototype.stopTool=function(){var a=this.diagram;a.currentTool===this&&(a.currentTool=null,a.currentCursor="")},no.prototype.doMouseDown=function(){!this.isActive&&this.canStart()&&this.doActivate()},no.prototype.doMouseMove=function(){},no.prototype.doMouseUp=function(){this.stopTool()},no.prototype.doMouseWheel=function(){},no.prototype.canStartMultiTouch=function(){return!0},no.prototype.standardPinchZoomStart=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Te.allocAt(NaN,NaN)),E=y.So(1,Te.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){a.Bw=a.scale;var b=E.x-x.x,z=E.y-x.y;a.Jw=Math.sqrt(b*b+z*z),y.bubbles=!1}Te.free(x),Te.free(E)},no.prototype.standardPinchZoomMove=function(){var a=this.diagram,y=a.lastInput,x=y.So(0,Te.allocAt(NaN,NaN)),E=y.So(1,Te.allocAt(NaN,NaN));if(x.w()&&E.w()&&(this.doCancel(),a.Ql("hasGestureZoom"))){var b=E.x-x.x,z=E.y-x.y;z=Math.sqrt(b*b+z*z)/a.Jw,b=new Te((Math.min(E.x,x.x)+Math.max(E.x,x.x))/2,(Math.min(E.y,x.y)+Math.max(E.y,x.y))/2),z*=a.Bw;var ee=a.commandHandler;if(z!==a.scale&&ee.canResetZoom(z)){var re=a.zoomPoint;a.zoomPoint=b,ee.resetZoom(z),a.zoomPoint=re}y.bubbles=!1}Te.free(x),Te.free(E)},no.prototype.doKeyDown=function(){this.diagram.lastInput.key==="Esc"&&this.doCancel()},no.prototype.doKeyUp=function(){},no.prototype.Ea=function(a){return a===void 0&&(a=this.name),this.transactionResult=null,this.diagram.Ea(a)},no.prototype.stopTransaction=function(){var a=this.diagram;return this.transactionResult===null?a.Kf():a.eb(this.transactionResult)},no.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.lastInput,x=a.Ol(y.documentPoint,!1);if(x!==null){if(Mr?y.meta:y.control){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!y.isSelected),a.R("ChangedSelection",a.selection)}else if(y.shift){if(!x.isSelected){for(a.R("ChangingSelection",a.selection),y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&(y.isSelected=!0),a.R("ChangedSelection",a.selection)}}else if(!x.isSelected){for(y=x;y!==null&&!y.canSelect();)y=y.containingGroup;y!==null&&a.select(y)}}else!y.left||(Mr?y.meta:y.control)||y.shift||a.clearSelection()}},no.prototype.standardMouseClick=function(a,y){a===void 0&&(a=null),y===void 0&&(y=function(b){return!b.layer.isTemporary});var x=this.diagram,E=x.lastInput;return a=x.ic(E.documentPoint,a,y),E.targetObject=a,vu(a,E,x),E.handled};function vu(a,y,x){if(y.handled=!1,a===null||a.If()){var E=0;y.left?E=y.clickCount===1?1:y.clickCount===2?2:1:y.right&&y.clickCount===1&&(E=3);var b="ObjectSingleClicked";if(a!==null){switch(E){case 1:b="ObjectSingleClicked";break;case 2:b="ObjectDoubleClicked";break;case 3:b="ObjectContextClicked"}E!==0&&x.R(b,a)}else{switch(E){case 1:b="BackgroundSingleClicked";break;case 2:b="BackgroundDoubleClicked";break;case 3:b="BackgroundContextClicked"}E!==0&&x.R(b)}if(a!==null)for(;a!==null;){switch(x=null,E){case 1:x=a.click;break;case 2:x=a.doubleClick?a.doubleClick:a.click;break;case 3:x=a.contextClick}if(x!==null&&(x(y,a),y.handled))break;a=a.panel}else{switch(a=null,E){case 1:a=x.click;break;case 2:a=x.doubleClick?x.doubleClick:x.click;break;case 3:a=x.contextClick}a!==null&&a(y)}}}no.prototype.standardMouseOver=function(){var a=this.diagram,y=a.lastInput;if(a.animationManager.zb!==!0){var x=a.skipsUndoManager;a.skipsUndoManager=!0;var E=a.viewportBounds.ca(y.documentPoint)?a.ic(y.documentPoint,null,null):null;!y.event||y.event.type!=="pointercancel"&&y.event.type!=="pointerout"||(E=null),y.targetObject=E;var b=!1;if(E!==a.Ck){var z=a.Ck,ee=z;for(a.Ck=E,this.doCurrentObjectChanged(z,E),y.handled=!1;z!==null;){var re=z.mouseLeave;if(re!==null&&(E===z||E!==null&&E.rg(z)||(re(y,z,E),b=!0,y.handled)))break;z=z.panel}for(z=ee,y.handled=!1;E!==null&&(ee=E.mouseEnter,!(ee!==null&&(z===E||z!==null&&z.rg(E)||(ee(y,E,z),b=!0,y.handled))));)E=E.panel;E=a.Ck}if(E!==null){for(z=E,ee="";z!==null&&(ee=z.cursor,ee==="");)z=z.panel;for(a.currentCursor=ee,y.handled=!1,z=E;z!==null&&(E=z.mouseOver,!(E!==null&&(E(y,z),b=!0,y.handled)));)z=z.panel}else this.doUpdateCursor(null),E=a.mouseOver,E!==null&&(E(y),b=!0);b&&a.$b(),a.skipsUndoManager=x}},no.prototype.doUpdateCursor=function(){var a=this.diagram;a&&(a.currentCursor="")},no.prototype.doCurrentObjectChanged=function(){},no.prototype.standardMouseWheel=function(){var a=this.diagram,y=a.lastInput,x=y.delta;if(x!==0&&a.documentBounds.w()){var E=a.commandHandler,b=a.toolManager.mouseWheelBehavior;if(E!==null&&(b===Nl&&!y.shift||b===qs&&y.control))(0<x?E.canIncreaseZoom():E.canDecreaseZoom())&&(b=a.zoomPoint,a.zoomPoint=y.viewPoint,0<x?E.increaseZoom():E.decreaseZoom(),a.zoomPoint=b),y.bubbles=!1;else if(b===Nl&&y.shift||b===qs&&!y.control){E=a.position.copy();var z=y.event;b=z.deltaMode;var ee=z.deltaX;z=z.deltaY;var re="pixel";if(ee===0&&z===0||y.shift)!y.shift&&a.allowVerticalScroll?(x=3*x*a.scrollVerticalLineChange,a.scroll(re,0<x?"up":"down",Math.abs(x))):y.shift&&a.allowHorizontalScroll&&(x=3*x*a.scrollHorizontalLineChange,a.scroll(re,0<x?"left":"right",Math.abs(x)));else{switch(b){case 0:re="pixel";break;case 1:re="line";break;case 2:re="page"}ee!==0&&a.allowHorizontalScroll&&(ee*=a.scrollHorizontalLineChange/16,a.scroll(re,0<ee?"right":"left",Math.abs(ee))),z!==0&&a.allowVerticalScroll&&(z*=a.scrollVerticalLineChange/16,a.scroll(re,0<z?"down":"up",Math.abs(z)))}this.doWheelChange(a,E,y)}}},no.prototype.doWheelChange=function(a,y,x){a.position.D(y)&&x.event.wheelDeltaX===0||(x.bubbles=!1)},no.prototype.standardWaitAfter=function(a,y){y===void 0&&(y=this.diagram.lastInput),this.cancelWaitAfter();var x=this,E=y.clone(this.yy);this.Zr=zi(function(){x.doWaitAfter(E)},a)},no.prototype.cancelWaitAfter=function(){this.Zr!==-1&&xn.clearTimeout(this.Zr),this.Zr=-1},no.prototype.doWaitAfter=function(){},no.prototype.findToolHandleAt=function(a,y){return a=this.diagram.ic(a,function(x){for(;x!==null&&!(x.panel instanceof uo);)x=x.panel;return x}),a===null?null:a.part.category===y?a:null},no.prototype.isBeyondDragSize=function(a,y){var x=this.diagram;a===void 0&&(a=x.firstInput.viewPoint),y===void 0&&(y=x.lastInput.viewPoint);var E=x.toolManager.dragSize,b=E.width;return E=E.height,x.firstInput.isTouchEvent&&(b+=6,E+=6),Math.abs(y.x-a.x)>b||Math.abs(y.y-a.y)>E},Ct.Object.defineProperties(no.prototype,{diagram:{get:function(){return this.H},set:function(a){a instanceof qt&&(this.H=a)}},name:{get:function(){return this.xa},set:function(a){this.xa=a}},isEnabled:{get:function(){return this.Jd},set:function(a){this.Jd=a}},isActive:{get:function(){return this.nb},set:function(a){this.nb=a}},transactionResult:{get:function(){return this.wm},set:function(a){this.wm=a}}}),no.prototype.startTransaction=no.prototype.Ea,no.className="Tool";function Ao(){no.call(this),this.name="ToolManager",this.hb=new cn,this.ob=new cn,this.Hb=new cn,this.F=this.V=850,this.o=new Re(2,2).ja(),this.Ha=5e3,this.ia=qs,this.u=Su,this.Mp=this.j=null,this.zj=-1}xt(Ao,no),Ao.prototype.initializeStandardTools=function(){},Ao.prototype.updateAdornments=function(a){var y=this.currentToolTip;if(y instanceof uo&&this.Mp===a){var x=y.adornedObject;(a!==null?x.part===a:x===null)?this.showToolTip(y,x):this.hideToolTip()}},Ao.prototype.doMouseDown=function(){var a=this.diagram,y=a.lastInput;if(y.isTouchEvent&&this.gestureBehavior===Vs&&(y.bubbles=!1),y.isMultiTouch){if(this.cancelWaitAfter(),this.gestureBehavior===Yl){y.bubbles=!0;return}if(this.gestureBehavior===Vs)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomStart();return}}for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseDown());return}}a.lastInput.button===1&&(this.mouseWheelBehavior===qs?this.mouseWheelBehavior=Nl:this.mouseWheelBehavior===Nl&&(this.mouseWheelBehavior=qs)),this.doActivate(),this.standardWaitAfter(this.holdDelay,y)},Ao.prototype.doMouseMove=function(){var a=this.diagram,y=a.lastInput;if(y.isMultiTouch){if(this.gestureBehavior===Yl){y.bubbles=!0;return}if(this.gestureBehavior===Vs)return;if(a.currentTool.canStartMultiTouch()){a.currentTool.standardPinchZoomMove();return}}if(this.isActive)for(var x=this.mouseMoveTools.length,E=0;E<x;E++){var b=this.mouseMoveTools.M(E);if(b.diagram=this.diagram,b.canStart()){a.doFocus(),a.currentTool=b,a.currentTool===b&&(b.isActive||b.doActivate(),b.doMouseMove());return}}Kl(this,a),a=y.event,a===null||a.type!=="pointermove"&&a.cancelable||(y.bubbles=!0)};function Kl(a,y){a.standardMouseOver(),a.isBeyondDragSize()&&a.standardWaitAfter(a.isActive?a.holdDelay:a.hoverDelay,y.lastInput)}Ao.prototype.doCurrentObjectChanged=function(a,y){a=this.currentToolTip,a===null||y!==null&&a instanceof uo&&(y===a||y.rg(a))||this.hideToolTip()},Ao.prototype.doWaitAfter=function(a){var y=this.diagram;y.ta!==null&&(this.doMouseHover(),this.isActive||this.doToolTip(),a.isTouchEvent&&!y.lastInput.handled&&(a=a.copy(),a.button=2,a.buttons=2,y.lastInput=a,y.qu=!0,y.doMouseUp()))},Ao.prototype.doMouseHover=function(){var a=this.diagram,y=a.lastInput;y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null));var x=y.targetObject;if(x!==null)for(y.handled=!1;x!==null&&(a=this.isActive?x.mouseHold:x.mouseHover,!(a!==null&&(a(y,x),y.handled)));)x=x.panel;else x=this.isActive?a.mouseHold:a.mouseHover,x!==null&&x(y)},Ao.prototype.doToolTip=function(){var a=this.diagram,y=a.lastInput;if(y.targetObject===null&&(y.targetObject=a.ic(y.documentPoint,null,null)),y=y.targetObject,y!==null){if(a=this.currentToolTip,!(a instanceof uo)||y!==a&&!y.rg(a)){for(;y!==null;){if(a=y.toolTip,a!==null){this.showToolTip(a,y);return}y=y.panel}this.hideToolTip()}}else y=a.toolTip,y!==null?this.showToolTip(y,null):this.hideToolTip()},Ao.prototype.showToolTip=function(a,y){var x=this.diagram;if(a!==this.currentToolTip&&this.hideToolTip(),a instanceof uo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category="ToolTip",a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionToolTip(a,y)}else a instanceof wu&&a!==this.currentToolTip&&a.show(y,x,this);if(this.currentToolTip=a,this.zj!==-1&&(xn.clearTimeout(this.zj),this.zj=-1),a=this.toolTipDuration,0<a&&a!==1/0){var b=this;this.zj=zi(function(){b.hideToolTip()},a)}},Ao.prototype.positionToolTip=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y=x.y+20/y.scale+E.height>b.bottom?x.y-(E.height+5/y.scale):x.y+20/y.scale,x.y<b.y&&(x.y=b.y),a.position=x}},Ao.prototype.hideToolTip=function(){this.zj!==-1&&(xn.clearTimeout(this.zj),this.zj=-1);var a=this.diagram,y=this.currentToolTip;y!==null&&(y instanceof uo?(a.remove(y),this.Mp!==null&&this.Mp.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wu&&y.hide!==null&&y.hide(a,this),this.currentToolTip=null)},Ao.prototype.doMouseUp=function(){this.cancelWaitAfter();var a=this.diagram;if(this.isActive)for(var y=this.mouseUpTools.length,x=0;x<y;x++){var E=this.mouseUpTools.M(x);if(E.diagram=this.diagram,E.canStart()){a.doFocus(),a.currentTool=E,a.currentTool===E&&(E.isActive||E.doActivate(),E.doMouseUp());return}}a.doFocus(),this.doDeactivate()},Ao.prototype.doMouseWheel=function(){this.standardMouseWheel()},Ao.prototype.doKeyDown=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyDown()},Ao.prototype.doKeyUp=function(){var a=this.diagram;a.commandHandler!==null&&a.commandHandler.doKeyUp()},Ao.prototype.findTool=function(a){for(var y=this.mouseDownTools.length,x=0;x<y;x++){var E=this.mouseDownTools.M(x);if(E.name===a)return E}for(y=this.mouseMoveTools.length,x=0;x<y;x++)if(E=this.mouseMoveTools.M(x),E.name===a)return E;for(y=this.mouseUpTools.length,x=0;x<y;x++)if(E=this.mouseUpTools.M(x),E.name===a)return E;return null},Ao.prototype.replaceTool=function(a,y){y!==null&&(y.diagram=this.diagram);for(var x=this.mouseDownTools.length,E=0;E<x;E++){var b=this.mouseDownTools.M(E);if(b.name===a)return y!==null?this.mouseDownTools.cd(E,y):this.mouseDownTools.mb(E),b}for(x=this.mouseMoveTools.length,E=0;E<x;E++)if(b=this.mouseMoveTools.M(E),b.name===a)return y!==null?this.mouseMoveTools.cd(E,y):this.mouseMoveTools.mb(E),b;for(x=this.mouseUpTools.length,E=0;E<x;E++)if(b=this.mouseUpTools.M(E),b.name===a)return y!==null?this.mouseUpTools.cd(E,y):this.mouseUpTools.mb(E),b;return null},Ao.prototype.gb=function(a,y,x){y!==null&&(y.name=a,y.diagram=this.diagram),this.findTool(a)?this.replaceTool(a,y):y!==null&&x.add(y)},Ct.Object.defineProperties(Ao.prototype,{mouseWheelBehavior:{get:function(){return this.ia},set:function(a){this.ia=a}},gestureBehavior:{get:function(){return this.u},set:function(a){this.u=a}},currentToolTip:{get:function(){return this.j},set:function(a){this.j=a,this.Mp=a!==null&&a instanceof uo?a.adornedPart:null}},mouseDownTools:{get:function(){return this.hb}},mouseMoveTools:{get:function(){return this.ob}},mouseUpTools:{get:function(){return this.Hb}},hoverDelay:{get:function(){return this.V},set:function(a){this.V=a}},holdDelay:{get:function(){return this.F},set:function(a){this.F=a}},dragSize:{get:function(){return this.o},set:function(a){this.o=a.J()}},toolTipDuration:{get:function(){return this.Ha},set:function(a){this.Ha=a}}}),Ao.prototype.replaceStandardTool=Ao.prototype.gb;var qs=new En(Ao,"WheelScroll",0),Nl=new En(Ao,"WheelZoom",1),yu=new En(Ao,"WheelNone",2),Su=new En(Ao,"GestureZoom",3),Vs=new En(Ao,"GestureCancel",4),Yl=new En(Ao,"GestureNone",5);Ao.className="ToolManager",Ao.WheelScroll=qs,Ao.WheelZoom=Nl,Ao.WheelNone=yu,Ao.GestureZoom=Su,Ao.GestureCancel=Vs,Ao.GestureNone=Yl;function Uo(){no.call(this),this.name="Dragging",this.u=this.Sw=this.ob=!0,this.o=this.Ha=this.V=this.Oe=null,this.Ym=this.Hb=!1,this.tl=new Te(NaN,NaN),this.Fr=new Te,this.hb=!0,this.Ik=100,this.Cg=[],this.te=new yn().freeze(),this.ia=new ae,this.Bn=null,this.F="copy",this.Oc="",this.Pc="no-drop"}var Gs;xt(Uo,no),Uo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly&&!a.allowDragOut||!a.allowMove&&!a.allowCopy&&!a.allowDragOut||!a.allowSelect)return!1;var y=a.lastInput;return!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.isTouchEvent&&y.timestamp-a.firstInput.timestamp<this.Ik)?!1:this.findDraggablePart()!==null},Uo.prototype.findDraggablePart=function(){var a=this.diagram;if(a=a.Ol(a.firstInput.documentPoint,!1),a===null)return null;for(;a!==null&&!a.canSelect();)a=a.containingGroup;return a!==null&&(a.canMove()||a.canCopy())?a:null},Uo.prototype.standardMouseSelect=function(){var a=this.diagram;if(a.allowSelect){var y=a.Ol(a.firstInput.documentPoint,!1);if(y!==null){for(;y!==null&&!y.canSelect();)y=y.containingGroup;this.currentPart=y,this.currentPart===null||this.currentPart.isSelected||(a.R("ChangingSelection",a.selection),y=a.lastInput,(Mr?y.meta:y.control)||y.shift||a.clearSelection(!0),this.currentPart.isSelected=!0,a.R("ChangedSelection",a.selection))}}},Uo.prototype.doActivate=function(){var a=this.diagram;this.Bn=null,this.currentPart===null&&this.standardMouseSelect();var y=this.currentPart;y!==null&&(y.canMove()||y.canCopy())&&(a.Fu(!0),Va=null,this.isActive=!0,this.tl.set(a.position),xu(this,a.selection),this.Cg.length=0,a.animationManager.Cc(),this.draggedParts=this.computeEffectiveCollection(a.selection,this.dragOptions),this.Sw=this.diagram.layout.isRealtime,this.diagram.layout.isRealtime=!1,a.Ns=!0,a.Gf("temporaryPixelRatio")===!0&&30<a.$w&&Is(a),yf(a,this.draggedParts),this.Ea("Drag"),this.startPoint=a.firstInput.documentPoint,a.isMouseCaptured=!0,a.allowDragOut&&(this.isDragOutStarted=!0,this.Ym=!1,Va=this,Qu=this.diagram,this.doSimulatedDragOut()))};function xu(a,y){if(a.dragsLink){var x=a.diagram;x.allowRelink&&(x.model.Wj()&&y.count===1&&y.first()instanceof hi?(a.draggedLink=y.first(),a.draggedLink.canRelinkFrom()&&a.draggedLink.canRelinkTo()&&a.draggedLink.Ej(),a.Oe=x.toolManager.findTool("Relinking"),a.Oe===null&&(a.Oe=new sl,a.Oe.diagram=x),a.Oe.originalLink=a.draggedLink):(a.draggedLink=null,a.Oe=null))}}Uo.prototype.computeEffectiveCollection=function(a,y){return this.diagram.commandHandler.computeEffectiveCollection(a,y)},Uo.prototype.Pd=function(a){return a===void 0?new nh(He):this.isGridSnapEnabled?new nh(new Te(Math.round(1e3*a.x)/1e3,Math.round(1e3*a.y)/1e3)):new nh(a.copy())},Uo.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;if(this.diagram.layout.isRealtime=this.Sw,a.Fu(!1),a.ug(),ml(this),od(a,this.draggedParts),this.draggedParts=this.currentPart=this.Bn=null,this.Ym=this.isDragOutStarted=!1,0<Gs.count){for(var y=Gs,x=y.length,E=0;E<x;E++){var b=y.M(E);Ko(b),No(b),ml(b),b.diagram.ug()}y.clear()}Ko(this),this.tl.h(NaN,NaN),Qu!==null&&(Qu.currentCursor=""),Va=Qu=null,No(this),a.isMouseCaptured=!1,a.currentCursor="",a.Ns=!1,this.stopTransaction(),Ec(a,!0)},Uo.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y};function ml(a){var y=a.diagram,x=y.skipsUndoManager;y.skipsUndoManager=!0,Bl(a,y.lastInput,null),y.skipsUndoManager=x,a.Cg.length=0}function Nu(){var a=Va;No(a),ns(a);var y=a.diagram;a.tl.w()&&(y.position=a.tl),y.ug()}Uo.prototype.doCancel=function(){No(this),ns(this);var a=this.diagram;this.tl.w()&&(a.position=this.tl),this.stopTool()},Uo.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput;this.isActive&&(y.key==="Esc"?this.doCancel():y.key!==a.previousInput.key&&this.doMouseMove())},Uo.prototype.doKeyUp=function(){this.isActive&&this.doMouseMove()};function vl(a,y){if(a.copiedParts===null){var x=a.diagram;if((!y||!x.isReadOnly&&!x.isModelReadOnly)&&a.draggedParts!==null){var E=x.undoManager;for(E.isEnabled&&E.isInTransaction?E.currentTransaction!==null&&0<E.currentTransaction.changes.count&&(x.undoManager.Kf(),x.Ea("Drag")):ns(a),x.skipsUndoManager=!y,x.partManager.addsToTemporaryLayer=!y,a.startPoint=x.firstInput.documentPoint,y=a.copiesEffectiveCollection?a.draggedParts.Lf():x.selection,y=x.Kj(y,x,!0),x=new $t,E=a.draggedParts.iterator;E.next();){var b=E.key;if(b.Zc()&&b.canCopy()){var z=y.I(b);z!==null&&(z.location=b.location,z.Va(),x.add(z,a.Pd(z.location)))}}for(y=y.iterator;y.next();)E=y.value,E instanceof hi&&E.canCopy()&&x.add(E,a.Pd());a.copiedParts=x,xu(a,x.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}function No(a){var y=a.diagram;if(a.copiedParts!==null){if(y.Is(a.copiedParts.Lf(),!1),a.copiedParts=null,a.draggedParts!==null)for(var x=a.draggedParts.iterator;x.next();)x.key instanceof hi&&(x.value.point=new Te(0,0));a.doUpdateCursor(null)}y.skipsUndoManager=!1,y.partManager.addsToTemporaryLayer=!1,a.startPoint=y.firstInput.documentPoint}function Ko(a){if(a.draggedLink!==null){if(a.dragsLink&&a.Oe!==null){var y=a.Oe;y.diagram.remove(y.temporaryFromNode),y.diagram.remove(y.temporaryToNode),a.Oe.originalLink=null}a.draggedLink=null,a.Oe=null}}function ka(a,y,x){var E=a.diagram,b=a.startPoint,z=Te.alloc();z.assign(E.lastInput.documentPoint),a.moveParts(y,z.re(b),x),Te.free(z),E.Gf("temporaryPixelRatio")===!0&&E.Yh===null&&30<E.$w&&(Is(E),E.hk())}Uo.prototype.moveParts=function(a,y,x){x===void 0&&(x=!1);var E=this.diagram;E!==null&&rd(E,a,y,this.dragOptions,x)};function ns(a){if(a.draggedParts!==null){for(var y=a.diagram,x=a.draggedParts.iterator;x.next();){var E=x.key;E.Zc()&&(E.location=x.value.point)}for(x=a.draggedParts.iterator;x.next();)if(E=x.key,E instanceof hi&&E.suspendsRouting){var b=x.value.point;a.draggedParts.add(E,a.Pd()),Bh(E,-b.x,-b.y)}y.bd()}}function Qa(a,y){var x=a.diagram;a.dragsLink&&(a.draggedLink!==null&&(a.draggedLink.fromNode=null,a.draggedLink.toNode=null),xo(a,!1));var E=a.findDragOverObject(y),b=x.lastInput;b.targetObject=E,a.doUpdateCursor(E);var z=x.skipsUndoManager,ee=!1;try{if(x.skipsUndoManager=!0,ee=Bl(a,b,E),!a.isActive&&Va===null)return;var re=E!==null?E.part:null;if(re===null||x.handlesDragDropForTopLevelParts&&re.isTopLevel&&!(re instanceof Or)){var oe=x.mouseDragOver;oe!==null&&(oe(b),ee=!0)}if(!a.isActive&&Va===null||(a.doDragOver(y,E),!a.isActive&&Va===null))return}finally{x.skipsUndoManager=z,ee&&x.bd()}a.Bn=E,x.isReadOnly||!x.allowMove&&!x.allowCopy||!x.allowHorizontalScroll&&!x.allowVerticalScroll||x.gs(b.viewPoint)}Uo.prototype.findDragOverObject=function(a){var y=this;return Ou(this.diagram,a,null,function(x){return x===null?x=!0:(x=x.part,x=!!(x===null||x instanceof uo||x.layer.isTemporary||y.draggedParts&&y.draggedParts.contains(x)||y.copiedParts&&y.copiedParts.contains(x))),!x})},Uo.prototype.doUpdateCursor=function(a){var y=this.diagram;(a===null||this.Bn!==a)&&(!this.diagram.currentTool.isActive||this.mayCopy()?y.currentCursor=this.copyCursor:this.mayMove()?y.currentCursor=this.moveCursor:this.mayDragOut()&&(y.currentCursor=this.nodropCursor))};function Bl(a,y,x){var E=!1,b=a.Cg.length,z=0<b?a.Cg[0]:null;if(x===z)return!1;y.handled=!1;for(var ee=0;ee<b;ee++){var re=a.Cg[ee],oe=re.mouseDragLeave;if(oe!==null&&(oe(y,re,x),E=!0,y.handled))break}if(a.Cg.length=0,!a.isActive&&Va===null||x===null)return E;for(y.handled=!1,b=x;b!==null;)a.Cg.push(b),b=yl(b);for(b=a.Cg.length,x=0;x<b&&(ee=a.Cg[x],re=ee.mouseDragEnter,re===null||(re(y,ee,z),E=!0,!y.handled));x++);return E}function yl(a){var y=a.panel;return y!==null?y:a instanceof ir&&!(a instanceof Or)&&(a=a.containingGroup,a!==null&&a.handlesDragDropForMembers)?a:null}function Oo(a,y,x){var E=a.Oe;if(E===null)return null;var b=a.diagram.og(y,E.portGravity,function(se){return E.findValidLinkablePort(se,x)});a=Te.alloc();var z=1/0,ee=null;for(b=b.iterator;b.next();){var re=b.value;if(re.part!==null){var oe=re.ga(Mi,a);oe=y.Bf(oe),oe<z&&(ee=re,z=oe)}}return Te.free(a),ee}function xo(a,y){var x=a.draggedLink;if(x!==null&&!(2>x.pointsCount)){var E=a.diagram;if(!E.isReadOnly){var b=a.Oe;if(b!==null){var z=null,ee=null;x.fromNode===null&&(z=Oo(a,x.i(0),!1),z!==null&&(ee=z.part));var re=null,oe=null;x.toNode===null&&(re=Oo(a,x.i(x.pointsCount-1),!0),re!==null&&(oe=re.part)),b.isValidLink(ee,z,oe,re)?y?(x.defaultFromPoint=x.i(0),x.defaultToPoint=x.i(x.pointsCount-1),x.suspendsRouting=!1,x.fromNode=ee,z!==null&&(x.fromPortId=z.portId),x.toNode=oe,re!==null&&(x.toPortId=re.portId),x.fromPort!==E.Mx&&E.R("LinkRelinked",x,E.Mx),x.toPort!==E.Nx&&E.R("LinkRelinked",x,E.Nx)):rf(b,ee,z,oe,re):rf(b,null,null,null,null)}}}}Uo.prototype.doDragOver=function(){};function Ua(a,y){var x=a.diagram;a.dragsLink&&xo(a,!0),ml(a);var E=a.findDragOverObject(y),b=x.lastInput;if(b.targetObject=E,E!==null){b.handled=!1;for(var z=E;z!==null;){var ee=z.mouseDrop;if(ee!==null&&(ee(b,z),b.handled))break;ou(a,b,z),z=yl(z)}}else z=x.mouseDrop,z!==null&&z(b);if(a.isActive||Va!==null){for(b=(a.copiedParts||a.draggedParts).iterator;b.next();)z=b.key,z instanceof Li&&z.linksConnected.each(function(re){re.suspendsRouting=!1});if(a.doDropOnto(y,E),a.isActive||Va!==null){for(a=ut.alloc(),y=x.selection.iterator;y.next();)E=y.value,E instanceof Li&&Dd(x,E,a);ut.free(a)}}}function ou(a,y,x){a=a.diagram,x=x.part,!a.handlesDragDropForTopLevelParts||!x.isTopLevel||x instanceof Or||(x=a.mouseDrop,x!==null&&x(y))}function Dd(a,y,x){var E=!1;if(x=y.getAvoidableRect(x),a.viewportBounds.Re(x)&&(E=!0),a=a.Nu(x,function(b){return b.part},function(b){return b instanceof hi},!0,function(b){return b instanceof hi},E),a.count!==0)for(a=a.iterator;a.next();)x=a.value,!x.Td(y)&&x.isAvoiding&&x.bb()}Uo.prototype.doDropOnto=function(){},Uo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;this.simulatedMouseMove(y.event,y.documentPoint,y.targetDiagram)||this.currentPart===null||this.draggedParts===null||(this.mayCopy()?(vl(this,!1),yf(a,this.copiedParts),ka(this,this.copiedParts,!1),od(a,this.copiedParts)):this.mayMove()?(No(this),ka(this,this.draggedParts,!0)):this.mayDragOut()?(vl(this,!1),ka(this,this.copiedParts,!1)):No(this),Qa(this,a.lastInput.documentPoint))}},Uo.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=a.lastInput;if(!this.simulatedMouseUp(y.event,y.documentPoint,y.targetDiagram)){y=!1;var x=this.mayCopy();if(x&&this.copiedParts!==null?(No(this),vl(this,!0),yf(a,this.copiedParts),ka(this,this.copiedParts,!1),od(a,this.copiedParts),this.copiedParts!==null&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0}))):(y=!0,No(this),this.mayMove()&&(ka(this,this.draggedParts,!0),Qa(this,a.lastInput.documentPoint))),this.Ym=!0,Ua(this,a.lastInput.documentPoint),this.isActive){var E=x?this.copiedParts.Lf():this.draggedParts.Lf();this.copiedParts=null,y&&cg(this),a.Ya(),od(a,this.draggedParts),this.transactionResult=x?"Copy":"Move",a.R(x?"SelectionCopied":"SelectionMoved",E)}this.stopTool(),x&&a.R("ChangedSelection",a.selection)}}},Uo.prototype.simulatedMouseMove=function(a,y,x){if(Va===null)return!1;var E=Va.diagram;x instanceof qt||(x=null);var b=Qu;return x!==b&&(b!==null&&b!==E&&(b.ug(),Va.isDragOutStarted=!1,b=b.toolManager.findTool("Dragging"),b!==null&&b.doSimulatedDragLeave()),Qu=x,x!==null&&x!==E&&(Nu(),b=x.toolManager.findTool("Dragging"),b!==null&&(Gs.contains(b)||Gs.add(b),b.doSimulatedDragEnter())),this.doUpdateCursor(null)),x===null||x===E||!x.allowDrop||x.isReadOnly||!x.allowInsert?!1:(E=x.toolManager.findTool("Dragging"),E!==null&&(a!==null&&(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!1,E.doSimulatedDragOver()),!0)},Uo.prototype.simulatedMouseUp=function(a,y,x){if(Va===null)return!1;var E=Qu,b=Va.diagram;if(x===null)return Va.doCancel(),!0;if(x!==E){var z=E.toolManager.findTool("Dragging");if(E!==null&&E!==b&&z!==null)return E.ug(),Va.isDragOutStarted=!1,z.doSimulatedDragLeave(),!1;Qu=x,E=x.toolManager.findTool("Dragging"),E!==null&&(Nu(),Gs.contains(E)||Gs.add(E),E.doSimulatedDragEnter())}return x!==this.diagram?(a!==null?(a.targetTouches!==void 0&&(0<a.targetTouches.length?a=a.targetTouches[0]:0<a.changedTouches.length&&(a=a.changedTouches[0])),y=x.getMouse(a)):y===null&&(y=new Te),x.lastInput.documentPoint=y,x.lastInput.viewPoint=x.op(y),x.lastInput.down=!1,x.lastInput.up=!0,a=x.toolManager.findTool("Dragging"),a!==null&&a.doSimulatedDrop(),a=Va,a!==null&&(x=a.mayCopy(),a.transactionResult=x?"Copy":"Move",a.stopTool()),!0):!1};function cg(a){if(a.draggedParts!==null)for(var y=a.draggedParts.iterator;y.next();){var x=y.key;x instanceof Li&&(x=x.containingGroup,x===null||x.placeholder===null||a.draggedParts.contains(x)||x.placeholder.v())}}Uo.prototype.mayCopy=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowCopy||(Mr?!a.lastInput.alt:!a.lastInput.control))return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayDragOut=function(){if(!this.isCopyEnabled)return!1;var a=this.diagram;if(!a.allowDragOut||!a.allowCopy||a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canCopy())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canCopy())},Uo.prototype.mayMove=function(){var a=this.diagram;if(a.isReadOnly||!a.allowMove)return!1;for(a=a.selection.iterator;a.next();)if(a.value.canMove())return!0;return!!(this.draggedLink!==null&&this.dragsLink&&this.draggedLink.canMove())},Uo.prototype.computeBorder=function(a,y,x){return this.Ym||this.draggedParts===null||this.draggedParts.contains(a)?null:x.assign(y)},Uo.prototype.Az=function(){return Va},Uo.prototype.mayDragIn=function(){var a=this.diagram;if(!a.allowDrop||a.isReadOnly||a.isModelReadOnly||!a.allowInsert)return!1;var y=Va;return!(y===null||y.diagram.model.dataFormat!==a.model.dataFormat)},Uo.prototype.doSimulatedDragEnter=function(){if(this.mayDragIn()){var a=this.diagram;a.animationManager.Cc(),wl(a),a.animationManager.Cc(),a=Va,a!==null&&(a.diagram.Ns=!1),this.doUpdateCursor(null)}},Uo.prototype.doSimulatedDragLeave=function(){var a=Va;a!==null&&a.doSimulatedDragOut(),this.doCancel()},Uo.prototype.doSimulatedDragOver=function(){var a=this.diagram;a.animationManager.Dm=!0;var y=Va;if(y!==null&&y.draggedParts!==null){if(!this.mayDragIn())return;nf(this,y.draggedParts.Lf(),!1,a.firstInput),ka(this,this.copiedParts,!1),Qa(this,a.lastInput.documentPoint)}a.animationManager.Dm=!1},Uo.prototype.doSimulatedDrop=function(){var a=this.diagram,y=Va;if(y!==null){var x=y.diagram;if(y.Ym=!0,No(this),!this.mayDragIn())return;a.animationManager.Dm=!0,a.R("ChangingSelection",a.selection),this.Ea("Drop"),nf(this,y.draggedParts.Lf(),!0,a.lastInput),ka(this,this.copiedParts,!1);var E=new yn;this.copiedParts!==null&&(a.clearSelection(!0),this.copiedParts.iteratorKeys.each(function(b){b.isSelected=!0,E.add(b)})),Ua(this,a.lastInput.documentPoint),a.Ya(),this.copiedParts!==null&&(this.transactionResult="ExternalCopy"),this.copiedParts=null,a.doFocus(),a.R("ExternalObjectsDropped",E,x),this.stopTransaction(),a.R("ChangedSelection",a.selection)}a.animationManager.Dm=!1};function nf(a,y,x,E){if(a.copiedParts===null){var b=a.diagram;if(!b.isReadOnly&&!b.isModelReadOnly){b.skipsUndoManager=!x,b.partManager.addsToTemporaryLayer=!x,a.startPoint=E.documentPoint,x=b.Kj(y,b,!0);var z=ut.alloc();b=E=1/0;for(var ee=-1/0,re=-1/0,oe=y.iterator;oe.next();){var se=oe.value;if(se.isVisible()){var ue=se.location;se=ue.x,ue=ue.y,isNaN(se)||isNaN(ue)||(se<E&&(E=se),ue<b&&(b=ue),se>ee&&(ee=se),ue>re&&(re=ue))}}for(E===1/0?z.h(0,0,0,0):z.h(E,b,ee-E,re-b),E=z.x+z.width/2,b=z.y+z.height/2,ut.free(z),z=a.Fr,ee=new $t,re=Te.alloc(),oe=y.iterator;oe.next();)se=oe.value,se instanceof hi&&se.canCopy()&&(ue=x.I(se),ue!==null&&(ue.points=se.points,Bh(ue,z.x-E,z.y-b),ue.suspendsRouting=!0,ee.add(ue,a.Pd())));for(y=y.iterator;y.next();)se=y.value,se.Zc()&&se.canCopy()&&(oe=x.I(se),oe!==null&&(se=se.location,re.h(z.x-(E-se.x),z.y-(b-se.y)),oe.location=re,oe.Va(),ee.add(oe,a.Pd(re))));Te.free(re),a.copiedParts=ee,xu(a,ee.Lf()),a.draggedLink!==null&&(x=a.draggedLink,y=x.routeBounds,Bh(x,a.startPoint.x-(y.x+y.width/2),a.startPoint.y-(y.y+y.height/2))),a.doUpdateCursor(null)}}}Uo.prototype.doSimulatedDragOut=function(){var a=this.diagram;a.Ns=!1,this.mayCopy()||this.mayMove()?a.currentCursor="":a.currentCursor=this.nodropCursor,this.Bn=null},Uo.prototype.computeMove=function(a,y,x,E){return x=this.diagram,x!==null?x.computeMove(a,y,this.dragOptions,E):new Te},Ct.Object.defineProperties(Uo.prototype,{isCopyEnabled:{get:function(){return this.ob},set:function(a){this.ob=a}},copiesEffectiveCollection:{get:function(){return this.u},set:function(a){this.u=a}},dragOptions:{get:function(){return this.ia},set:function(a){this.ia=a}},isGridSnapEnabled:{get:function(){return this.dragOptions.isGridSnapEnabled},set:function(a){this.dragOptions.isGridSnapEnabled=a}},isComplexRoutingRealtime:{get:function(){return this.hb},set:function(a){this.hb=a}},isGridSnapRealtime:{get:function(){return this.dragOptions.isGridSnapRealtime},set:function(a){this.dragOptions.isGridSnapRealtime=a}},gridSnapCellSize:{get:function(){return this.dragOptions.gridSnapCellSize},set:function(a){this.dragOptions.gridSnapCellSize.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSize=a)}},gridSnapCellSpot:{get:function(){return this.dragOptions.gridSnapCellSpot},set:function(a){this.dragOptions.gridSnapCellSpot.D(a)||(a=a.J(),this.dragOptions.gridSnapCellSpot=a)}},gridSnapOrigin:{get:function(){return this.dragOptions.gridSnapOrigin},set:function(a){this.dragOptions.gridSnapOrigin.D(a)||(a=a.J(),this.dragOptions.gridSnapOrigin=a)}},dragsLink:{get:function(){return this.dragOptions.dragsLink},set:function(a){this.dragOptions.dragsLink=a}},dragsTree:{get:function(){return this.dragOptions.dragsTree},set:function(a){this.dragOptions.dragsTree=a}},copyCursor:{get:function(){return this.F},set:function(a){this.F=a}},moveCursor:{get:function(){return this.Oc},set:function(a){this.Oc=a}},nodropCursor:{get:function(){return this.Pc},set:function(a){this.Pc=a}},currentPart:{get:function(){return this.V},set:function(a){this.V=a}},copiedParts:{get:function(){return this.o},set:function(a){this.o=a}},draggedParts:{get:function(){return this.Ha},set:function(a){this.Ha=a}},draggingParts:{get:function(){return this.copiedParts!==null?this.copiedParts.Lf():this.draggedParts!==null?this.draggedParts.Lf():this.te}},draggedLink:{get:function(){return this.diagram.draggedLink},set:function(a){this.diagram.draggedLink=a}},isDragOutStarted:{get:function(){return this.Hb},set:function(a){this.Hb=a}},startPoint:{get:function(){return this.Fr},set:function(a){this.Fr.D(a)||this.Fr.assign(a)}},delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}}}),Uo.prototype.getDraggingSource=Uo.prototype.Az;var Va=null,Qu=null;Uo.className="DraggingTool",Gs=new cn,Di("draggingTool",function(){return this.findTool("Dragging")},function(a){this.gb("Dragging",a,this.mouseMoveTools)}),Ao.prototype.doCancel=function(){Va!==null&&Va.doCancel(),no.prototype.doCancel.call(this)};function lo(){no.call(this),this.te=100,this.Ha=!1,this.u="pointer";var a=new hi,y=new Wr;y.isPanelMain=!0,y.stroke="blue",a.add(y),y=new Wr,y.toArrow="Standard",y.fill="blue",y.stroke="blue",a.add(y),a.layerName="Tool",this.Ci=a,a=new Li,y=new Wr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=lt,a.add(y),a.selectable=!1,a.layerName="Tool",this.Bi=a,this.j=y,a=new Li,y=new Wr,y.portId="",y.figure="Rectangle",y.fill=null,y.stroke="magenta",y.strokeWidth=2,y.desiredSize=lt,a.add(y),a.selectable=!1,a.layerName="Tool",this.Di=a,this.o=y,this.Pc=this.Oc=this.ob=this.hb=this.Hb=null,this.ia=!0,this.hy=new $t,this.Of=this.gj=this.Pf=null}xt(lo,no),lo.prototype.doStop=function(){this.diagram.ug(),this.originalToPort=this.originalToNode=this.originalFromPort=this.originalFromNode=this.originalLink=null,this.validPortsCache.clear(),this.targetPort=null},lo.prototype.copyPortProperties=function(a,y,x,E,b){if(a!==null&&y!==null&&x!==null&&E!==null){var z=y.Df(),ee=Re.alloc();ee.width=y.naturalBounds.width*z,ee.height=y.naturalBounds.height*z,E.desiredSize=ee,Re.free(ee),b?(E.toSpot=y.toSpot,E.toEndSegmentLength=y.toEndSegmentLength):(E.fromSpot=y.fromSpot,E.fromEndSegmentLength=y.fromEndSegmentLength),x.locationSpot=Mi,z=Te.alloc(),x.location=y.ga(Mi,z),Te.free(z),E.angle=y.li(),this.portTargeted!==null&&this.portTargeted(a,y,x,E,b)}},lo.prototype.setNoTargetPortProperties=function(a,y,x){y!==null&&(y.desiredSize=lt,y.fromSpot=Zi,y.toSpot=Zi),a!==null&&(a.location=this.diagram.lastInput.documentPoint),this.portTargeted!==null&&this.portTargeted(null,null,a,y,x)},lo.prototype.doMouseDown=function(){this.isActive&&this.doMouseMove()},lo.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram;if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null&&this.targetPort.part instanceof Li){var y=this.targetPort.part;this.isForwards?this.copyPortProperties(y,this.targetPort,this.temporaryToNode,this.temporaryToPort,!0):this.copyPortProperties(y,this.targetPort,this.temporaryFromNode,this.temporaryFromPort,!1)}else this.isForwards?this.setNoTargetPortProperties(this.temporaryToNode,this.temporaryToPort,!0):this.setNoTargetPortProperties(this.temporaryFromNode,this.temporaryFromPort,!1);(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},lo.prototype.findValidLinkablePort=function(a,y){if(a===null)return null;var x=a.part;if(!(x instanceof Li))return null;for(;a!==null;){var E=y?a.toLinkable:a.fromLinkable;if(E===!0&&(a.portId!==null||a instanceof Li)&&(y?this.isValidTo(x,a):this.isValidFrom(x,a)))return a;if(E===!1)break;a=a.panel}return null},lo.prototype.findTargetPort=function(a){var y=this.diagram,x=y.lastInput.documentPoint,E=this.portGravity;0>=E&&(E=.1);var b=this,z=y.og(x,E,function(fe){return b.findValidLinkablePort(fe,a)},null,!0);for(E=1/0,y=null,z=z.iterator;z.next();){var ee=z.value,re=ee.part;if(re instanceof Li){var oe=ee.ga(Mi,Te.alloc()),se=x.x-oe.x,ue=x.y-oe.y;Te.free(oe),oe=se*se+ue*ue,oe<E&&(se=this.validPortsCache.I(ee),se!==null?se&&(y=ee,E=oe):a&&this.isValidLink(this.originalFromNode,this.originalFromPort,re,ee)||!a&&this.isValidLink(re,ee,this.originalToNode,this.originalToPort)?(this.validPortsCache.add(ee,!0),y=ee,E=oe):this.validPortsCache.add(ee,!1))}}return y!==null&&(x=y.part,x instanceof Li&&(x.layer===null||x.layer.allowLink))?y:null},lo.prototype.isValidFrom=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.fromLinkable!==!0))return!1;var x=y.fromMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalFromNode&&y===this.originalFromPort)return!0;if(y=y.portId,y===null&&(y=""),a.Mo(y).count>=x)return!1}return!0},lo.prototype.isValidTo=function(a,y){if(a===null||y===null)return this.isUnconnectedLinkValid;if(this.diagram.currentTool===this&&(a.layer!==null&&!a.layer.allowLink||y.toLinkable!==!0))return!1;var x=y.toMaxLinks;if(1/0>x){if(this.originalLink!==null&&a===this.originalToNode&&y===this.originalToPort)return!0;if(y=y.portId,y===null&&(y=""),a.Sd(y).count>=x)return!1}return!0},lo.prototype.isInSameNode=function(a,y){return a===null||y===null?!1:a===y?!0:(a=a.part,y=y.part,a!==null&&a===y)},lo.prototype.isLinked=function(a,y){if(a===null||y===null)return!1;var x=a.part;if(!(x instanceof Li))return!1;a=a.portId,a===null&&(a="");var E=y.part;if(!(E instanceof Li))return!1;for(y=y.portId,y===null&&(y=""),y=E.Sd(y);y.next();)if(E=y.value,E.fromNode===x&&E.fromPortId===a)return!0;return!1},lo.prototype.isValidLink=function(a,y,x,E){if(!this.isValidFrom(a,y)||!this.isValidTo(x,E)||!(y===null||E===null||(y.fromLinkableSelfNode&&E.toLinkableSelfNode||!this.isInSameNode(y,E))&&(y.fromLinkableDuplicates&&E.toLinkableDuplicates||!this.isLinked(y,E)))||this.originalLink!==null&&(a!==null&&this.isLabelDependentOnLink(a,this.originalLink)||x!==null&&this.isLabelDependentOnLink(x,this.originalLink))||a!==null&&x!==null&&(a.data===null&&x.data!==null||a.data!==null&&x.data===null)||!this.isValidCycle(a,x,this.originalLink))return!1;if(a!==null){var b=a.linkValidation;if(b!==null&&!b(a,y,x,E,this.originalLink))return!1}return x!==null&&(b=x.linkValidation,b!==null&&!b(a,y,x,E,this.originalLink))?!1:(b=this.linkValidation,b!==null?b(a,y,x,E,this.originalLink):!0)},lo.prototype.isLabelDependentOnLink=function(a,y){if(a===null)return!1;var x=a.labeledLink;if(x===null)return!1;if(x===y)return!0;var E=new yn;return E.add(a),co(this,x,y,E)};function co(a,y,x,E){if(y===x)return!0;var b=y.fromNode;return b!==null&&b.isLinkLabel&&(E.add(b),co(a,b.labeledLink,x,E))?!0:(y=y.toNode,!!(y!==null&&y.isLinkLabel&&(E.add(y),co(a,y.labeledLink,x,E))))}lo.prototype.isValidCycle=function(a,y,x){if(x===void 0&&(x=null),a===null||y===null)return this.isUnconnectedLinkValid;var E=this.diagram.validCycle;if(E!==kc){if(E===Vg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=y.linksConnected;E.next();){var b=E.value;if(b!==x&&b.isTreeLink&&b.toNode===y)return!1}return!Mo(this,a,y,x,!0)}if(E===Gg){if(E=x||this.temporaryLink,E!==null&&!E.isTreeLink)return!0;for(E=a.linksConnected;E.next();)if(b=E.value,b!==x&&b.isTreeLink&&b.fromNode===a)return!1;return!Mo(this,a,y,x,!0)}if(E===Wg)return a===y?a=!0:(E=new yn,E.add(y),a=ra(this,E,a,y,x)),!a;if(E===Hg)return!Mo(this,a,y,x,!1);if(E===Zg)return a===y?a=!0:(E=new yn,E.add(y),a=rs(this,E,a,y,x)),!a}return!0};function Mo(a,y,x,E,b){if(y===x)return!0;if(y===null||x===null)return!1;for(var z=y.linksConnected;z.next();){var ee=z.value;if(ee!==E&&(!b||ee.isTreeLink)&&ee.toNode===y&&(ee=ee.fromNode,ee!==y&&Mo(a,ee,x,E,b)))return!0}return!1}function ra(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b&&ee.toNode===x&&(ee=ee.fromNode,ee!==x&&ra(a,y,ee,E,b)))return!0}return!1}function rs(a,y,x,E,b){if(x===E)return!0;if(x===null||E===null||y.contains(x))return!1;y.add(x);for(var z=x.linksConnected;z.next();){var ee=z.value;if(ee!==b){var re=ee.fromNode;if(ee=ee.toNode,re=re===x?ee:re,re!==x&&rs(a,y,re,E,b))return!0}}return!1}Ct.Object.defineProperties(lo.prototype,{portGravity:{get:function(){return this.te},set:function(a){0<=a&&(this.te=a)}},isUnconnectedLinkValid:{get:function(){return this.Ha},set:function(a){this.Ha=a}},linkingCursor:{get:function(){return this.u},set:function(a){this.u=a}},temporaryLink:{get:function(){return this.Ci},set:function(a){this.Ci=a}},temporaryFromNode:{get:function(){return this.Bi},set:function(a){(this.Bi=a)&&(this.j=a.port)}},temporaryFromPort:{get:function(){return this.j},set:function(a){if(this.j!==null){var y=this.j.panel;if(y!==null){var x=y.O.indexOf(this.j);y.mb(x),y.Gb(x,a)}}this.j=a}},temporaryToNode:{get:function(){return this.Di},set:function(a){(this.Di=a)&&(this.o=a.port)}},temporaryToPort:{get:function(){return this.o},set:function(a){if(this.o!==null){var y=this.o.panel;if(y!==null){var x=y.O.indexOf(this.o);y.mb(x),y.Gb(x,a)}}this.o=a}},originalLink:{get:function(){return this.Hb},set:function(a){this.Hb=a}},originalFromNode:{get:function(){return this.hb},set:function(a){this.hb=a}},originalFromPort:{get:function(){return this.ob},set:function(a){this.ob=a}},originalToNode:{get:function(){return this.Oc},set:function(a){this.Oc=a}},originalToPort:{get:function(){return this.Pc},set:function(a){this.Pc=a}},isForwards:{get:function(){return this.ia},set:function(a){this.ia=a}},validPortsCache:{get:function(){return this.hy}},targetPort:{get:function(){return this.Pf},set:function(a){this.Pf=a}},linkValidation:{get:function(){return this.gj},set:function(a){this.gj=a}},portTargeted:{get:function(){return this.Of},set:function(a){this.Of=a}}}),lo.className="LinkingBaseTool";function fs(){lo.call(this),this.name="Linking",this.V={},this.F=null,this.K=Xh,this.Xd=null}xt(fs,lo),fs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return a.isReadOnly||a.isModelReadOnly||!a.allowLink||!a.model.xs()||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize()?!1:this.findLinkablePort()!==null},fs.prototype.findLinkablePort=function(){var a=this.diagram,y=this.startObject;if(y===null&&(y=a.ic(a.firstInput.documentPoint,null,null)),y===null||(a=y.part,!(a instanceof Li)))return null;var x=this.direction;if(x===Xh||x===Vp){var E=this.findValidLinkablePort(y,!1);if(E!==null||this.startObject===a&&(E=a.port,this.findValidLinkablePort(E,!1)))return this.isForwards=!0,E}return(x===Xh||x===Gp)&&(y=this.findValidLinkablePort(y,!0),y!==null||this.startObject===a&&(y=a.port,this.findValidLinkablePort(y,!0)))?(this.isForwards=!1,y):null},fs.prototype.doActivate=function(){var a=this.diagram,y=this.findLinkablePort();y===null?this.stopTool():(this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.isForwards?(this.temporaryToNode!==null&&(this.temporaryToNode.location=a.lastInput.documentPoint),this.originalFromPort=y,y=this.originalFromPort.part,y instanceof Li&&(this.originalFromNode=y),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1)):(this.temporaryFromNode!==null&&(this.temporaryFromNode.location=a.lastInput.documentPoint),this.originalToPort=y,y=this.originalToPort.part,y instanceof Li&&(this.originalToNode=y),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0)),a.add(this.temporaryFromNode),this.temporaryFromNode&&this.temporaryFromNode.Va(),a.add(this.temporaryToNode),this.temporaryToNode&&this.temporaryToNode.Va(),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.temporaryLink.isTreeLink=this.isNewTreeLink(),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0)},fs.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},fs.prototype.doStop=function(){lo.prototype.doStop.call(this),this.startObject=null},fs.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram,y=this.transactionResult=null,x=null,E=null,b=null,z=null;try{var ee=this.targetPort=this.findTargetPort(this.isForwards);if(ee!==null){var re=ee.part;re instanceof Li&&(this.isForwards?(this.originalFromNode!==null&&(y=this.originalFromNode,x=this.originalFromPort),E=re,b=ee):(y=re,x=ee,this.originalToNode!==null&&(E=this.originalToNode,b=this.originalToPort)))}else this.isForwards?this.originalFromNode!==null&&this.isUnconnectedLinkValid&&(y=this.originalFromNode,x=this.originalFromPort):this.originalToNode!==null&&this.isUnconnectedLinkValid&&(E=this.originalToNode,b=this.originalToPort);y!==null||E!==null?(z=this.insertLink(y,x,E,b),z!==null?(ee===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint),a.allowSelect&&(a.R("ChangingSelection",a.selection),a.clearSelection(!0),z.isSelected=!0),this.transactionResult=this.name,a.R("LinkDrawn",z)):this.doNoLink(y,x,E,b)):this.isForwards?this.doNoLink(this.originalFromNode,this.originalFromPort,null,null):this.doNoLink(null,null,this.originalToNode,this.originalToPort)}finally{this.stopTool(),z&&a.allowSelect&&a.R("ChangedSelection",a.selection)}}},fs.prototype.isNewTreeLink=function(){var a=this.archetypeLinkData;if(a===null)return!0;if(a instanceof hi)return a.isTreeLink;var y=this.diagram;return y===null?!0:(a=y.partManager.getLinkCategoryForData(a),y=y.partManager.findLinkTemplateForCategory(a),y!==null?y.isTreeLink:!0)},fs.prototype.insertLink=function(a,y,x,E){return this.diagram.partManager.insertLink(a,y,x,E)},fs.prototype.doNoLink=function(){},Ct.Object.defineProperties(fs.prototype,{archetypeLinkData:{get:function(){return this.V},set:function(a){this.V=a}},archetypeLabelNodeData:{get:function(){return this.F},set:function(a){this.F=a}},direction:{get:function(){return this.K},set:function(a){this.K=a}},startObject:{get:function(){return this.Xd},set:function(a){this.Xd=a}}});var Xh=new En(fs,"Either",0),Vp=new En(fs,"ForwardsOnly",0),Gp=new En(fs,"BackwardsOnly",0);fs.className="LinkingTool",fs.Either=Xh,fs.ForwardsOnly=Vp,fs.BackwardsOnly=Gp;function sl(){lo.call(this),this.name="Relinking";var a=new Wr;a.figure="Diamond",a.desiredSize=Vt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=0,this.V=a,a=new Wr,a.figure="Diamond",a.desiredSize=Vt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor=this.linkingCursor,a.segmentIndex=-1,this.Xd=a,this.F=null,this.Ew=new ut}xt(sl,lo),sl.prototype.updateAdornments=function(a){if(a!==null&&a instanceof hi){var y="RelinkFrom",x=null;if(a.isSelected&&!this.diagram.isReadOnly){var E=a.selectionObject;E!==null&&a.canRelinkFrom()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null&&(x=this.makeAdornment(E,!1),a.bh(y,x)))}x===null&&a.Jf(y),y="RelinkTo",x=null,a.isSelected&&!this.diagram.isReadOnly&&(E=a.selectionObject,E!==null&&a.canRelinkTo()&&a.actualBounds.w()&&a.isVisible()&&E.actualBounds.w()&&E.Ed()&&(x=a.Pj(y),x===null?(x=this.makeAdornment(E,!0),a.bh(y,x)):x.v())),x===null&&a.Jf(y)}},sl.prototype.makeAdornment=function(a,y){var x=new uo;return x.type=ni.Link,y=y?this.toHandleArchetype:this.fromHandleArchetype,y!==null&&x.add(y.copy()),x.adornedObject=a,x},sl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowRelink||!a.model.xs()||!a.lastInput.left)return!1;var y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom");return y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo")),y!==null},sl.prototype.doActivate=function(){var a=this.diagram;if(this.originalLink===null){var y=this.handle;if(y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkFrom"),y===null&&(y=this.findToolHandleAt(a.firstInput.documentPoint,"RelinkTo"))),y===null)return;var x=y.part;if(!(x instanceof uo&&x.adornedPart instanceof hi))return;this.handle=y,this.isForwards=x===null||x.category==="RelinkTo",this.originalLink=x.adornedPart}this.Ea(this.name),a.isMouseCaptured=!0,a.currentCursor=this.linkingCursor,this.originalFromPort=this.originalLink.fromPort,this.originalFromNode=this.originalLink.fromNode,this.originalToPort=this.originalLink.toPort,this.originalToNode=this.originalLink.toNode,this.Ew.set(this.originalLink.actualBounds),this.originalLink!==null&&0<this.originalLink.pointsCount&&(this.originalLink.fromNode===null&&(this.temporaryFromPort!==null&&(this.temporaryFromPort.desiredSize=ot),this.temporaryFromNode!==null&&(this.temporaryFromNode.location=this.originalLink.i(0))),this.originalLink.toNode===null&&(this.temporaryToPort!==null&&(this.temporaryToPort.desiredSize=ot),this.temporaryToNode!==null&&(this.temporaryToNode.location=this.originalLink.i(this.originalLink.pointsCount-1)))),this.copyPortProperties(this.originalFromNode,this.originalFromPort,this.temporaryFromNode,this.temporaryFromPort,!1),this.copyPortProperties(this.originalToNode,this.originalToPort,this.temporaryToNode,this.temporaryToPort,!0),a.add(this.temporaryFromNode),a.add(this.temporaryToNode),this.temporaryLink!==null&&(this.temporaryFromNode!==null&&(this.temporaryLink.fromNode=this.temporaryFromNode),this.temporaryToNode!==null&&(this.temporaryLink.toNode=this.temporaryToNode),this.copyLinkProperties(this.originalLink,this.temporaryLink),this.temporaryLink.bb(),a.add(this.temporaryLink)),this.isActive=!0},sl.prototype.copyLinkProperties=function(a,y){if(a!==null&&y!==null){y.adjusting=a.adjusting,y.corner=a.corner;var x=a.curve;(x===Zf||x===Th)&&(x=ks),y.curve=x,y.curviness=a.curviness,y.isTreeLink=a.isTreeLink,y.points=a.points,y.routing=a.routing,y.smoothness=a.smoothness,y.fromSpot=a.fromSpot,y.fromEndSegmentLength=a.fromEndSegmentLength,y.fromShortLength=a.fromShortLength,y.toSpot=a.toSpot,y.toEndSegmentLength=a.toEndSegmentLength,y.toShortLength=a.toShortLength}},sl.prototype.doDeactivate=function(){this.isActive=!1;var a=this.diagram;a.remove(this.temporaryLink),a.remove(this.temporaryFromNode),a.remove(this.temporaryToNode),a.isMouseCaptured=!1,a.currentCursor="",this.stopTransaction()},sl.prototype.doStop=function(){lo.prototype.doStop.call(this),this.handle=null},sl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;this.transactionResult=null;var y=this.originalFromNode,x=this.originalFromPort,E=this.originalToNode,b=this.originalToPort,z=this.originalLink;try{if(this.targetPort=this.findTargetPort(this.isForwards),this.targetPort!==null){var ee=this.targetPort.part;ee instanceof Li&&(this.isForwards?(E=ee,b=this.targetPort):(y=ee,x=this.targetPort))}else this.isUnconnectedLinkValid?this.isForwards?b=E=null:x=y=null:z=null;z!==null?(this.reconnectLink(z,this.isForwards?E:y,this.isForwards?b:x,this.isForwards),this.targetPort===null&&(this.isForwards?z.defaultToPoint=a.lastInput.documentPoint:z.defaultFromPoint=a.lastInput.documentPoint,z.bb()),this.transactionResult=this.name,a.R("LinkRelinked",z,this.isForwards?this.originalToPort:this.originalFromPort)):this.doNoRelink(this.originalLink,this.isForwards),this.originalLink.Xo(this.Ew)}finally{this.stopTool()}}},sl.prototype.reconnectLink=function(a,y,x,E){return x=x!==null&&x.portId!==null?x.portId:"",E?(a.toNode=y,a.toPortId=x):(a.fromNode=y,a.fromPortId=x),!0},sl.prototype.doNoRelink=function(){};function rf(a,y,x,E,b){y!==null?(a.copyPortProperties(y,x,a.temporaryFromNode,a.temporaryFromPort,!1),a.diagram.add(a.temporaryFromNode)):a.diagram.remove(a.temporaryFromNode),E!==null?(a.copyPortProperties(E,b,a.temporaryToNode,a.temporaryToPort,!0),a.diagram.add(a.temporaryToNode)):a.diagram.remove(a.temporaryToNode)}Ct.Object.defineProperties(sl.prototype,{fromHandleArchetype:{get:function(){return this.V},set:function(a){this.V=a}},toHandleArchetype:{get:function(){return this.Xd},set:function(a){this.Xd=a}},handle:{get:function(){return this.F},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.F=a}}}),sl.className="RelinkingTool",Di("linkingTool",function(){return this.findTool("Linking")},function(a){this.gb("Linking",a,this.mouseMoveTools)}),Di("relinkingTool",function(){return this.findTool("Relinking")},function(a){this.gb("Relinking",a,this.mouseDownTools)});function Ea(){no.call(this),this.name="LinkReshaping";var a=new Wr;a.figure="Rectangle",a.desiredSize=Wt,a.fill="lightblue",a.stroke="dodgerblue",this.o=a,a=new Wr,a.figure="Diamond",a.desiredSize=Vt,a.fill="lightblue",a.stroke="dodgerblue",a.cursor="move",this.u=a,this.F=3,this.Ts=this.j=null,this.Fw=new Te,this.Yq=new cn}xt(Ea,no),Ea.prototype.Ru=function(a){return a&&a.reshapingBehavior.value!==0?a.reshapingBehavior:fg},Ea.prototype.om=function(a,y){a.reshapingBehavior=y},Ea.prototype.updateAdornments=function(a){if(a!==null&&a instanceof hi){var y=null;if(a.isSelected&&!this.diagram.isReadOnly){var x=a.path;x!==null&&a.canReshape()&&a.actualBounds.w()&&a.isVisible()&&x.actualBounds.w()&&x.Ed()&&(y=a.Pj(this.name),y===null||y.Aw!==a.pointsCount||y.Uw!==a.resegmentable)&&(y=this.makeAdornment(x),y!==null&&(y.Aw=a.pointsCount,y.Uw=a.resegmentable,a.bh(this.name,y)))}y===null&&a.Jf(this.name)}},Ea.prototype.makeAdornment=function(a){var y=a.part,x=y.pointsCount,E=y.isOrthogonal,b=null;if(y.points!==null&&1<x){b=new uo,b.type=ni.Link,x=y.firstPickIndex;var z=y.lastPickIndex,ee=E?1:0;if(y.resegmentable&&y.computeCurve()!==cl)for(var re=x+ee;re<z-ee;re++){var oe=this.makeResegmentHandle(a,re);oe!==null&&(oe.segmentIndex=re,oe.segmentFraction=.5,oe.fromMaxLinks=999,b.add(oe))}for(ee=x+1;ee<z;ee++)if(re=this.makeHandle(a,ee),re!==null){if(re.segmentIndex=ee,ee!==x)if(ee===x+1&&E){oe=y.i(x);var se=y.i(x+1);pt.B(oe.x,se.x)&&pt.B(oe.y,se.y)&&(se=y.i(x-1)),pt.B(oe.x,se.x)?(this.om(re,vh),re.cursor="n-resize"):pt.B(oe.y,se.y)&&(this.om(re,mh),re.cursor="w-resize")}else ee===z-1&&E?(oe=y.i(z-1),se=y.i(z),pt.B(oe.x,se.x)&&pt.B(oe.y,se.y)&&(oe=y.i(z+1)),pt.B(oe.x,se.x)?(this.om(re,vh),re.cursor="n-resize"):pt.B(oe.y,se.y)&&(this.om(re,mh),re.cursor="w-resize")):ee!==z&&(this.om(re,of),re.cursor="move");b.add(re)}b.adornedObject=a}return b},Ea.prototype.makeHandle=function(){var a=this.handleArchetype;return a===null?null:a.copy()},Ea.prototype.makeResegmentHandle=function(){var a=this.midHandleArchetype;return a===null?null:a.copy()},Ea.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowReshape&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Ea.prototype.doActivate=function(){var a=this.diagram;if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null){var y=this.handle.part.adornedPart;if(y instanceof hi){if(this.Ts=y,a.isMouseCaptured=!0,this.Ea(this.name),y.resegmentable&&this.handle.fromMaxLinks===999){var x=y.points.copy(),E=this.getResegmentingPoint();if(x.Gb(this.handle.segmentIndex+1,E),y.isOrthogonal&&x.Gb(this.handle.segmentIndex+1,E),y.points=x,y.Wb(),y.updateAdornments(),this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name),this.handle===null){this.doDeactivate();return}}this.Fw=y.i(this.handle.segmentIndex),this.Yq=y.points.copy(),this.isActive=!0}}},Ea.prototype.doDeactivate=function(){this.stopTransaction(),this.Ts=this.handle=null,this.isActive=this.diagram.isMouseCaptured=!1},Ea.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Ea.prototype.doCancel=function(){var a=this.adornedLink;a!==null&&(a.points=this.Yq),this.stopTool()},Ea.prototype.getResegmentingPoint=function(){return this.handle.ga(Mi)},Ea.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeReshape(a.lastInput.documentPoint),this.reshape(a))},Ea.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.computeReshape(a.lastInput.documentPoint);if(this.reshape(y),y=this.adornedLink,y!==null&&y.resegmentable){var x=this.handle.segmentIndex,E=y.i(x-1),b=y.i(x),z=y.i(x+1);if(y.isOrthogonal){if(x>y.firstPickIndex+1&&x<y.lastPickIndex-1){var ee=y.i(x-2);if(Math.abs(E.x-b.x)<this.resegmentingDistance&&Math.abs(E.y-b.y)<this.resegmentingDistance&&(ph(this,ee,E,b,z,!0)||ph(this,ee,E,b,z,!1))){var re=y.points.copy();ph(this,ee,E,b,z,!0)?(re.cd(x-2,new Te(ee.x,(z.y+ee.y)/2)),re.cd(x+1,new Te(z.x,(z.y+ee.y)/2))):(re.cd(x-2,new Te((z.x+ee.x)/2,ee.y)),re.cd(x+1,new Te((z.x+ee.x)/2,z.y))),re.mb(x),re.mb(x-1),y.points=re,y.Wb()}else ee=y.i(x+2),Math.abs(b.x-z.x)<this.resegmentingDistance&&Math.abs(b.y-z.y)<this.resegmentingDistance&&(ph(this,E,b,z,ee,!0)||ph(this,E,b,z,ee,!1))&&(re=y.points.copy(),ph(this,E,b,z,ee,!0)?(re.cd(x-1,new Te(E.x,(E.y+ee.y)/2)),re.cd(x+2,new Te(ee.x,(E.y+ee.y)/2))):(re.cd(x-1,new Te((E.x+ee.x)/2,E.y)),re.cd(x+2,new Te((E.x+ee.x)/2,ee.y))),re.mb(x+1),re.mb(x),y.points=re,y.Wb())}}else ee=Te.alloc(),pt.qh(E.x,E.y,z.x,z.y,b.x,b.y,ee)&&ee.Bf(b)<this.resegmentingDistance*this.resegmentingDistance&&(E=y.points.copy(),E.mb(x),y.points=E,y.Wb()),Te.free(ee)}a.Ya(),this.transactionResult=this.name,a.R("LinkReshaped",this.adornedLink,this.Yq)}this.stopTool()};function ph(a,y,x,E,b,z){return z?Math.abs(y.y-x.y)<a.resegmentingDistance&&Math.abs(x.y-E.y)<a.resegmentingDistance&&Math.abs(E.y-b.y)<a.resegmentingDistance:Math.abs(y.x-x.x)<a.resegmentingDistance&&Math.abs(x.x-E.x)<a.resegmentingDistance&&Math.abs(E.x-b.x)<a.resegmentingDistance}Ea.prototype.reshape=function(a){var y=this.adornedLink;y.uh();var x=this.handle.segmentIndex,E=this.Ru(this.handle);if(y.isOrthogonal)if(x===y.firstPickIndex+1)x=y.firstPickIndex+1,E===vh?(y.L(x,y.i(x-1).x,a.y),y.L(x+1,y.i(x+2).x,a.y)):E===mh&&(y.L(x,a.x,y.i(x-1).y),y.L(x+1,a.x,y.i(x+2).y));else if(x===y.lastPickIndex-1)x=y.lastPickIndex-1,E===vh?(y.L(x-1,y.i(x-2).x,a.y),y.L(x,y.i(x+1).x,a.y)):E===mh&&(y.L(x-1,a.x,y.i(x-2).y),y.L(x,a.x,y.i(x+1).y));else{E=x;var b=y.i(E),z=y.i(E-1),ee=y.i(E+1);pt.B(z.x,b.x)&&pt.B(b.y,ee.y)?(pt.B(z.x,y.i(E-2).x)&&!pt.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),pt.B(ee.y,y.i(E+2).y)&&!pt.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)):pt.B(z.y,b.y)&&pt.B(b.x,ee.x)?(pt.B(z.y,y.i(E-2).y)&&!pt.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),pt.B(ee.x,y.i(E+2).x)&&!pt.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):pt.B(z.x,b.x)&&pt.B(b.x,ee.x)?(pt.B(z.x,y.i(E-2).x)&&!pt.B(z.y,y.i(E-2).y)?(y.m(E,a.x,z.y),x++,E++):y.L(E-1,a.x,z.y),pt.B(ee.x,y.i(E+2).x)&&!pt.B(ee.y,y.i(E+2).y)?y.m(E+1,a.x,ee.y):y.L(E+1,a.x,ee.y)):pt.B(z.y,b.y)&&pt.B(b.y,ee.y)&&(pt.B(z.y,y.i(E-2).y)&&!pt.B(z.x,y.i(E-2).x)?(y.m(E,z.x,a.y),x++,E++):y.L(E-1,z.x,a.y),pt.B(ee.y,y.i(E+2).y)&&!pt.B(ee.x,y.i(E+2).x)?y.m(E+1,ee.x,a.y):y.L(E+1,ee.x,a.y)),y.L(x,a.x,a.y)}else y.L(x,a.x,a.y),E=y.fromNode,b=y.fromPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===1&&y.computeSpot(!0,b).Mc()&&(z=b.ga(Mi,Te.alloc()),E=y.getLinkPointFromPoint(E,b,z,a,!0,Te.alloc()),y.L(0,E.x,E.y),Te.free(z),Te.free(E)),E=y.toNode,b=y.toPort,E!==null&&(z=E.findVisibleNode(),z!==null&&z!==E&&(E=z,b=E.port)),x===y.pointsCount-2&&y.computeSpot(!1,b).Mc()&&(x=b.ga(Mi,Te.alloc()),a=y.getLinkPointFromPoint(E,b,x,a,!1,Te.alloc()),y.L(y.pointsCount-1,a.x,a.y),Te.free(x),Te.free(a));y.zf()},Ea.prototype.computeReshape=function(a){var y=this.adornedLink,x=this.handle.segmentIndex;switch(this.Ru(this.handle)){case of:return a;case vh:return new Te(y.i(x).x,a.y);case mh:return new Te(a.x,y.i(x).y);default:case fg:return y.i(x)}},Ct.Object.defineProperties(Ea.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},midHandleArchetype:{get:function(){return this.u},set:function(a){this.u=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedLink:{get:function(){return this.Ts}},resegmentingDistance:{get:function(){return this.F},set:function(a){this.F=a}},originalPoint:{get:function(){return this.Fw}},originalPoints:{get:function(){return this.Yq}}}),Ea.prototype.setReshapingBehavior=Ea.prototype.om,Ea.prototype.getReshapingBehavior=Ea.prototype.Ru;var fg=new En(Ea,"None",0),mh=new En(Ea,"Horizontal",1),vh=new En(Ea,"Vertical",2),of=new En(Ea,"All",3);Ea.className="LinkReshapingTool",Ea.None=fg,Ea.Horizontal=mh,Ea.Vertical=vh,Ea.All=of,Di("linkReshapingTool",function(){return this.findTool("LinkReshaping")},function(a){this.gb("LinkReshaping",a,this.mouseDownTools)});function us(){no.call(this),this.name="Resizing",this.o=new Re(1,1).freeze(),this.j=new Re(9999,9999).freeze(),this.yg=new Re(NaN,NaN).freeze(),this.V=!1,this.ia=!0,this.ue=null;var a=new Wr;a.alignmentFocus=Mi,a.figure="Rectangle",a.desiredSize=Wt,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.F=a,this.u=null,this.Xq=new Te,this.Dw=new Re,this.Tn=new Te,this.rt=new Re(0,0),this.qt=new Re(1/0,1/0),this.pt=new Re(1,1)}xt(us,no),us.prototype.updateAdornments=function(a){if(!(a===null||a instanceof hi)){if(a.isSelected&&!this.diagram.isReadOnly){var y=a.resizeObject,x=a.Pj(this.name);if(y!==null&&a.canResize()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed()&&((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null)){y=y.li(),dd(a)&&this.updateResizeHandles(x,y),a.bh(this.name,x);return}}a.Jf(this.name)}},us.prototype.makeAdornment=function(a){var y=a.part.resizeAdornmentTemplate;if(y===null){y=new uo,y.type=ni.Spot,y.locationSpot=Mi;var x=new Ms;x.isPanelMain=!0,y.add(x),y.add(this.makeHandle(a,Ji)),y.add(this.makeHandle(a,Qi)),y.add(this.makeHandle(a,Ar)),y.add(this.makeHandle(a,Yr)),y.add(this.makeHandle(a,bo)),y.add(this.makeHandle(a,vo)),y.add(this.makeHandle(a,Qo)),y.add(this.makeHandle(a,yo))}else if(jl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},us.prototype.makeHandle=function(a,y){return a=this.handleArchetype,a===null?null:(a=a.copy(),a.alignment=y,a)},us.prototype.updateResizeHandles=function(a,y){if(a!==null){if(!a.alignment.Xb()&&(a.cursor==="pointer"||0<a.cursor.indexOf("resize")))e:{var x=a.alignment;if(x.Mc()&&(x=Mi),0>=x.x)y=0>=x.y?y+225:1<=x.y?y+135:y+180;else if(1<=x.x)0>=x.y?y+=315:1<=x.y&&(y+=45);else if(0>=x.y)y+=270;else if(1<=x.y)y+=90;else break e;0>y?y+=360:360<=y&&(y-=360),a.cursor=22.5>y?"e-resize":67.5>y?"se-resize":112.5>y?"s-resize":157.5>y?"sw-resize":202.5>y?"w-resize":247.5>y?"nw-resize":292.5>y?"n-resize":337.5>y?"ne-resize":"e-resize"}else if(a instanceof ni)for(a=a.elements;a.next();)this.updateResizeHandles(a.value,y)}},us.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowResize&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},us.prototype.doActivate=function(){var a=this.diagram;this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle!==null&&(this.adornedObject=this.handle.part.adornedObject,this.adornedObject!==null&&(a.isMouseCaptured=!0,a.animationManager.Cc(),this.Ea(this.name),this.Xq.set(this.adornedObject.ga(this.handle.alignment.gv())),this.Tn.set(this.adornedObject.part.location),this.Dw.set(this.adornedObject.desiredSize),this.pt=this.computeCellSize(),this.rt=this.computeMinSize(),this.qt=this.computeMaxSize(),this.isActive=!0))},us.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.isActive=a.isMouseCaptured=!1},us.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},us.prototype.doCancel=function(){this.adornedObject!==null&&(this.adornedObject.desiredSize=this.originalDesiredSize,this.adornedObject.part.location=this.originalLocation),this.stopTool()},us.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Te.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),a.bd(),Te.free(b)}},us.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){var y=this.rt,x=this.qt,E=this.pt,b=this.adornedObject.qs(a.lastInput.documentPoint,Te.alloc()),z=this.computeReshape();y=this.computeResize(b,this.handle.alignment,y,x,E,z),this.resize(y),Te.free(b),a.Ya(),this.transactionResult=this.name,a.R("PartResized",this.adornedObject,this.originalDesiredSize)}this.stopTool()},us.prototype.resize=function(a){var y=this.diagram,x=this.adornedObject;if(x!==null){if(x.desiredSize=a.size,a=x.part,a.Va(),x=x.ga(this.handle.alignment.gv()),a instanceof Or){var E=new cn;if(E.add(a),!this.dragsMembers&&a.placeholder===null){var b=new ae;b.dragsMembers=!1}y.moveParts(E,this.oppositePoint.copy().re(x),!0,b)}else a.location=a.location.copy().re(x).add(this.oppositePoint);y.bd()}},us.prototype.computeResize=function(a,y,x,E,b,z){y.Mc()&&(y=Mi);var ee=this.adornedObject.naturalBounds,re=ee.x,oe=ee.y,se=ee.x+ee.width,ue=ee.y+ee.height,fe=1;if(!z){fe=ee.width;var ve=ee.height;0>=fe&&(fe=1),0>=ve&&(ve=1),fe=ve/fe}return ve=Te.alloc(),pt.No(a.x,a.y,re,oe,b.width,b.height,ve),a=ee.copy(),0>=y.x?0>=y.y?(a.x=Math.max(ve.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=Math.max(se-a.x,x.width),a.y=Math.max(ve.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.x=se-a.width,a.y=ue-a.height)):1<=y.y?(a.x=Math.max(ve.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=Math.max(se-a.x,x.width),a.height=Math.max(Math.min(ve.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.x=se-a.width)):(a.x=Math.max(ve.x,se-E.width),a.x=Math.min(a.x,se-x.width),a.width=se-a.x,z||(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):1<=y.x?0>=y.y?(a.width=Math.max(Math.min(ve.x-re,E.width),x.width),a.y=Math.max(ve.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=Math.max(ue-a.y,x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width),a.y=ue-a.height)):1<=y.y?(a.width=Math.max(Math.min(ve.x-re,E.width),x.width),a.height=Math.max(Math.min(ve.y-oe,E.height),x.height),z||(1<=a.height/a.width?(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe):(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width))):(a.width=Math.max(Math.min(ve.x-re,E.width),x.width),z||(a.height=Math.max(Math.min(fe*a.width,E.height),x.height),a.width=a.height/fe,a.y=oe+.5*(ue-oe-a.height))):0>=y.y?(a.y=Math.max(ve.y,ue-E.height),a.y=Math.min(a.y,ue-x.height),a.height=ue-a.y,z||(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width,a.x=re+.5*(se-re-a.width))):1<=y.y&&(a.height=Math.max(Math.min(ve.y-oe,E.height),x.height),z||(a.width=Math.max(Math.min(a.height/fe,E.width),x.width),a.height=fe*a.width,a.x=re+.5*(se-re-a.width))),Te.free(ve),a},us.prototype.computeReshape=function(){var a=Zn;return this.adornedObject instanceof Wr&&(a=Mv(this.adornedObject)),!(a===Ki||this.diagram.lastInput.shift)},us.prototype.computeMinSize=function(){var a=this.adornedObject.minSize.copy(),y=this.minSize;return!isNaN(y.width)&&y.width>a.width&&(a.width=y.width),!isNaN(y.height)&&y.height>a.height&&(a.height=y.height),a},us.prototype.computeMaxSize=function(){var a=this.adornedObject.maxSize.copy(),y=this.maxSize;return!isNaN(y.width)&&y.width<a.width&&(a.width=y.width),!isNaN(y.height)&&y.height<a.height&&(a.height=y.height),a},us.prototype.computeCellSize=function(){var a=new Re(NaN,NaN),y=this.adornedObject.part;return y!==null&&(y=y.resizeCellSize,!isNaN(y.width)&&0<y.width&&(a.width=y.width),!isNaN(y.height)&&0<y.height&&(a.height=y.height)),y=this.cellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height),y=this.diagram,(isNaN(a.width)||isNaN(a.height))&&y&&(y=y.grid,y!==null&&y.visible&&this.isGridSnapEnabled&&(y=y.gridCellSize,isNaN(a.width)&&!isNaN(y.width)&&0<y.width&&(a.width=y.width),isNaN(a.height)&&!isNaN(y.height)&&0<y.height&&(a.height=y.height))),(isNaN(a.width)||a.width===0||a.width===1/0)&&(a.width=1),(isNaN(a.height)||a.height===0||a.height===1/0)&&(a.height=1),a},Ct.Object.defineProperties(us.prototype,{handleArchetype:{get:function(){return this.F},set:function(a){this.F=a}},handle:{get:function(){return this.u},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.u=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof uo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},minSize:{get:function(){return this.o},set:function(a){if(!this.o.D(a)){var y=a.width;isNaN(y)&&(y=0),a=a.height,isNaN(a)&&(a=0),this.o.h(y,a)}}},maxSize:{get:function(){return this.j},set:function(a){if(!this.j.D(a)){var y=a.width;isNaN(y)&&(y=1/0),a=a.height,isNaN(a)&&(a=1/0),this.j.h(y,a)}}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||this.yg.assign(a)}},isGridSnapEnabled:{get:function(){return this.V},set:function(a){this.V=a}},dragsMembers:{get:function(){return this.ia},set:function(a){this.ia=a}},oppositePoint:{get:function(){return this.Xq},set:function(a){this.Xq.D(a)||this.Xq.assign(a)}},originalDesiredSize:{get:function(){return this.Dw}},originalLocation:{get:function(){return this.Tn}}}),us.className="ResizingTool",Di("resizingTool",function(){return this.findTool("Resizing")},function(a){this.gb("Resizing",a,this.mouseDownTools)});function Cs(){no.call(this),this.name="Rotating",this.ia=45,this.V=2,this.Tn=new Te,this.ue=null;var a=new Wr;a.figure="Ellipse",a.desiredSize=Vt,a.fill="lightblue",a.stroke="dodgerblue",a.strokeWidth=1,a.cursor="pointer",this.o=a,this.j=null,this.Cw=0,this.kr=new Te(NaN,NaN),this.u=0,this.F=50}xt(Cs,no),Cs.prototype.updateAdornments=function(a){if(a!==null){if(a.ph()){var y=a.rotateObject;if(y===a||y===a.path||y.isPanelMain)return}if(a.isSelected&&!this.diagram.isReadOnly&&(y=a.rotateObject,y!==null&&a.canRotate()&&a.actualBounds.w()&&a.isVisible()&&y.actualBounds.w()&&y.Ed())){var x=a.Pj(this.name);if((x===null||x.adornedObject!==y)&&(x=this.makeAdornment(y)),x!==null){x.angle=y.li(),x.placeholder===null&&(x.location=this.computeAdornmentLocation(y)),a.bh(this.name,x);return}}a.Jf(this.name)}},Cs.prototype.makeAdornment=function(a){var y=a.part.rotateAdornmentTemplate;if(y===null){y=new uo,y.type=ni.Position,y.locationSpot=Mi;var x=this.handleArchetype;x!==null&&y.add(x.copy())}else if(jl(y),y=y.copy(),y===null)return null;return y.adornedObject=a,y},Cs.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!a.isReadOnly&&a.allowRotate&&a.lastInput.left?this.findToolHandleAt(a.firstInput.documentPoint,this.name)!==null:!1},Cs.prototype.doActivate=function(){var a=this.diagram;if(this.adornedObject===null){if(this.handle===null&&(this.handle=this.findToolHandleAt(a.firstInput.documentPoint,this.name)),this.handle===null)return;this.adornedObject=this.handle.part.adornedObject}this.adornedObject!==null&&(a.isMouseCaptured=!0,a.delaysLayout=!0,this.Ea(this.name),this.Cw=this.adornedObject.angle,this.kr=this.computeRotationPoint(this.adornedObject),this.Tn=this.adornedObject.part.location.copy(),this.isActive=!0)},Cs.prototype.computeRotationPoint=function(a){var y=a.part,x=y.locationObject;return y.rotationSpot.sb()?a.ga(y.rotationSpot):a===y||a===x?x.ga(y.locationSpot):a.ga(Mi)},Cs.prototype.computeAdornmentLocation=function(a){var y=this.rotationPoint;y.w()||(y=this.computeRotationPoint(a)),y=a.qs(y);var x=this.handleAngle;0>x?x+=360:360<=x&&(x-=360),x=Math.round(45*Math.round(x/45));var E=this.handleDistance;return x===0?y.x=a.naturalBounds.width+E:x===45?(y.x=a.naturalBounds.width+E,y.y=a.naturalBounds.height+E):x===90?y.y=a.naturalBounds.height+E:x===135?(y.x=-E,y.y=a.naturalBounds.height+E):x===180?y.x=-E:x===225?(y.x=-E,y.y=-E):x===270?y.y=-E:x===315&&(y.x=a.naturalBounds.width+E,y.y=-E),a.ga(y)},Cs.prototype.doDeactivate=function(){var a=this.diagram;this.stopTransaction(),this.ue=this.handle=null,this.kr=new Te(NaN,NaN),this.isActive=a.isMouseCaptured=!1},Cs.prototype.stopTransaction=function(){var a=this.diagram,y=no.prototype.stopTransaction.call(this);return y&&a.undoManager.transactionToUndo!==null&&a.undoManager.transactionToUndo.ak(),y},Cs.prototype.doCancel=function(){this.diagram.delaysLayout=!1,this.rotate(this.originalAngle),this.stopTool()},Cs.prototype.doMouseMove=function(){var a=this.diagram;this.isActive&&(a=this.computeRotate(a.lastInput.documentPoint),this.rotate(a))},Cs.prototype.doMouseUp=function(){var a=this.diagram;if(this.isActive){a.delaysLayout=!1;var y=this.computeRotate(a.lastInput.documentPoint);this.rotate(y),a.Ya(),this.transactionResult=this.name,a.R("PartRotated",this.adornedObject,this.originalAngle)}this.stopTool()},Cs.prototype.rotate=function(a){var y=this.adornedObject;if(y!==null){y.angle=a,y=y.part,y.Va();var x=y.locationObject,E=y.rotateObject;(x===E||x.rg(E))&&(x=this.Tn.copy(),y.location=x.re(this.rotationPoint).rotate(a-this.originalAngle).add(this.rotationPoint)),this.diagram.bd()}},Cs.prototype.computeRotate=function(a){a=this.rotationPoint.ab(a)-this.handleAngle;var y=this.adornedObject.panel;y!==null&&(a-=y.li()),360<=a?a-=360:0>a&&(a+=360),y=Math.min(Math.abs(this.snapAngleMultiple),180);var x=Math.min(Math.abs(this.snapAngleEpsilon),y/2);return!this.diagram.lastInput.shift&&0<y&&0<x&&(a%y<x?a=Math.floor(a/y)*y:a%y>y-x&&(a=(Math.floor(a/y)+1)*y)),360<=a?a-=360:0>a&&(a+=360),a},Ct.Object.defineProperties(Cs.prototype,{handleArchetype:{get:function(){return this.o},set:function(a){this.o=a}},handle:{get:function(){return this.j},set:function(a){if(a!==null&&!(a.part instanceof uo))throw Error("new handle is not in an Adornment: "+a);this.j=a}},adornedObject:{get:function(){return this.ue},set:function(a){if(a!==null&&a.part instanceof uo)throw Error("new handle must not be in an Adornment: "+a);this.ue=a}},snapAngleMultiple:{get:function(){return this.ia},set:function(a){this.ia=a}},snapAngleEpsilon:{get:function(){return this.V},set:function(a){this.V=a}},originalAngle:{get:function(){return this.Cw}},rotationPoint:{get:function(){return this.kr},set:function(a){this.kr=a.copy()}},handleAngle:{get:function(){return this.u},set:function(a){this.u=a}},handleDistance:{get:function(){return this.F},set:function(a){this.F=a}}}),Cs.className="RotatingTool",Di("rotatingTool",function(){return this.findTool("Rotating")},function(a){this.gb("Rotating",a,this.mouseDownTools)});function _h(){no.call(this),this.name="ClickSelecting"}xt(_h,no),_h.prototype.canStart=function(){return!(!this.isEnabled||this.isBeyondDragSize())},_h.prototype.doMouseUp=function(){this.isActive&&(this.standardMouseSelect(),!this.standardMouseClick()&&this.diagram.lastInput.isTouchEvent&&this.diagram.toolManager.doToolTip()),this.stopTool()},_h.className="ClickSelectingTool";function Tl(){no.call(this),this.name="Action",this.pk=null}xt(Tl,no),Tl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram,y=a.lastInput,x=a.ic(y.documentPoint,function(E){for(;E.panel!==null&&!E.isActionable;)E=E.panel;return E});return x!==null&&x.isActionable?(this.pk=x,a.Ck=a.ic(y.documentPoint,null,null),!0):!1},Tl.prototype.doMouseDown=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionDown!==null&&y.actionDown(a,y))}else this.canStart()&&this.doActivate()},Tl.prototype.doMouseMove=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionMove!==null&&y.actionMove(a,y))}},Tl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram.lastInput,y=this.pk;if(y===null)return;a.targetObject=y,y.actionUp!==null&&y.actionUp(a,y),this.standardMouseClick(function(x){for(;x.panel!==null&&(!x.isActionable||x!==y);)x=x.panel;return x},function(x){return x===y})}this.stopTool()},Tl.prototype.doCancel=function(){var a=this.diagram.lastInput,y=this.pk;y!==null&&(a.targetObject=y,y.actionCancel!==null&&y.actionCancel(a,y),this.stopTool())},Tl.prototype.doStop=function(){this.pk=null},Tl.className="ActionTool";function yh(){no.call(this),this.name="ClickCreating",this.Ri=null,this.o=!0,this.j=!1,this.mw=new Te(0,0)}xt(yh,no),yh.prototype.canStart=function(){if(!this.isEnabled||this.archetypeNodeData===null)return!1;var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.lastInput.left||this.isBeyondDragSize())return!1;if(this.isDoubleClick){if(a.lastInput.clickCount===1&&(this.mw=a.lastInput.viewPoint.copy()),a.lastInput.clickCount!==2||this.isBeyondDragSize(this.mw))return!1}else if(a.lastInput.clickCount!==1)return!1;return!(a.currentTool!==this&&a.Ol(a.lastInput.documentPoint,!0)!==null)},yh.prototype.doMouseUp=function(){var a=this.diagram;this.isActive&&this.insertPart(a.lastInput.documentPoint),this.stopTool()},yh.prototype.insertPart=function(a){var y=this.diagram,x=this.archetypeNodeData;if(x===null)return null;var E=null;try{if(y.R("ChangingSelection",y.selection),this.Ea(this.name),x instanceof ir)x.Zc()&&(jl(x),E=x.copy(),E!==null&&y.add(E));else if(x!==null){var b=y.model.copyNodeData(x);Ot(b)&&(y.model.xf(b),E=y.Lc(b))}if(E!==null){var z=Te.allocAt(a.x,a.y);this.isGridSnapEnabled&&vf(this.diagram,E,a,z),E.location=z,y.allowSelect&&(y.clearSelection(!0),E.isSelected=!0),Te.free(z)}y.Ya(),this.transactionResult=this.name,y.R("PartCreated",E)}finally{this.stopTransaction(),y.R("ChangedSelection",y.selection)}return E},Ct.Object.defineProperties(yh.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){this.Ri=a}},isDoubleClick:{get:function(){return this.o},set:function(a){this.o=a}},isGridSnapEnabled:{get:function(){return this.j},set:function(a){this.j=a}}}),yh.className="ClickCreatingTool";function Sl(){no.call(this),this.name="DragSelecting",this.Ik=175,this.o=!1;var a=new ir;a.layerName="Tool",a.selectable=!1;var y=new Wr;y.name="SHAPE",y.figure="Rectangle",y.fill=null,y.stroke="magenta",a.add(y),this.j=a}xt(Sl,no),Sl.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(!a.allowSelect)return!1;var y=a.lastInput;return!(!y.left||a.currentTool!==this&&(!this.isBeyondDragSize()||y.timestamp-a.firstInput.timestamp<this.delay||a.Ol(y.documentPoint,!0)!==null))},Sl.prototype.doActivate=function(){var a=this.diagram;this.isActive=!0,a.isMouseCaptured=!0,a.skipsUndoManager=!0,a.add(this.box),this.doMouseMove()},Sl.prototype.doDeactivate=function(){var a=this.diagram;a.ug(),a.remove(this.box),a.skipsUndoManager=!1,this.isActive=a.isMouseCaptured=!1},Sl.prototype.doMouseMove=function(){var a=this.diagram;if(this.isActive&&this.box!==null){var y=this.computeBoxBounds(),x=this.box.fb("SHAPE");x===null&&(x=this.box.Pb());var E=Re.alloc().h(y.width,y.height);x.desiredSize=E,this.box.mm(y.x,y.y,!1),Re.free(E),(a.allowHorizontalScroll||a.allowVerticalScroll)&&a.gs(a.lastInput.viewPoint)}},Sl.prototype.doMouseUp=function(){if(this.isActive){var a=this.diagram;a.remove(this.box);try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),this.selectInRect(this.computeBoxBounds()),a.R("ChangedSelection",a.selection)}finally{a.currentCursor=""}}this.stopTool()},Sl.prototype.computeBoxBounds=function(){var a=this.diagram;return new ut(a.firstInput.documentPoint,a.lastInput.documentPoint)},Sl.prototype.selectInRect=function(a){var y=this.diagram,x=y.lastInput;if(a=y.ux(a,this.isPartialInclusion),Mr?x.meta:x.control)if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected&&(y.isSelected=!1);else for(a=a.iterator;a.next();)y=a.value,y.isSelected=!y.isSelected;else if(x.shift)for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0);else{for(x=new cn,y=y.selection.iterator;y.next();){var E=y.value;a.contains(E)||x.add(E)}for(y=x.iterator;y.next();)y.value.isSelected=!1;for(a=a.iterator;a.next();)y=a.value,y.isSelected||(y.isSelected=!0)}},Ct.Object.defineProperties(Sl.prototype,{delay:{get:function(){return this.Ik},set:function(a){this.Ik=a}},isPartialInclusion:{get:function(){return this.o},set:function(a){this.o=a}},box:{get:function(){return this.j},set:function(a){this.j=a}}}),Sl.className="DragSelectingTool";function os(){no.call(this),this.name="Panning",this.Xt=new Te,this.xy=new Te,this.xg=!1;var a=this;this.Kw=function(){var y=a.diagram;y!==null&&y.removeEventListener(xn.document,"scroll",a.Kw,!1),a.stopTool()}}xt(os,no),os.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return!(!a.allowHorizontalScroll&&!a.allowVerticalScroll||!a.lastInput.left||a.currentTool!==this&&!this.isBeyondDragSize())},os.prototype.doActivate=function(){var a=this.diagram;this.xg?(a.lastInput.bubbles=!0,a.addEventListener(xn.document,"scroll",this.Kw,!1)):(a.currentCursor="move",a.isMouseCaptured=!0,this.Xt.assign(a.position)),this.isActive=!0},os.prototype.doDeactivate=function(){var a=this.diagram;a.currentCursor="",this.isActive=a.isMouseCaptured=!1},os.prototype.doCancel=function(){var a=this.diagram;a.position=this.Xt,a.isMouseCaptured=!1,this.stopTool()},os.prototype.doMouseMove=function(){this.move()},os.prototype.doMouseUp=function(){this.move(),this.stopTool()},os.prototype.move=function(){var a=this.diagram;if(this.isActive&&a)if(this.xg)a.lastInput.bubbles=!0;else{var y=a.position,x=a.firstInput.documentPoint,E=a.lastInput.documentPoint,b=y.x+x.x-E.x;x=y.y+x.y-E.y,a.allowHorizontalScroll||(b=y.x),a.allowVerticalScroll||(x=y.y),a.position=this.xy.h(b,x)}},Ct.Object.defineProperties(os.prototype,{bubbles:{get:function(){return this.xg},set:function(a){this.xg=a}},originalPosition:{get:function(){return this.Xt}}}),os.className="PanningTool",Di("clickCreatingTool",function(){return this.findTool("ClickCreating")},function(a){this.gb("ClickCreating",a,this.mouseUpTools)}),Di("clickSelectingTool",function(){return this.findTool("ClickSelecting")},function(a){this.gb("ClickSelecting",a,this.mouseUpTools)}),Di("panningTool",function(){return this.findTool("Panning")},function(a){this.gb("Panning",a,this.mouseMoveTools)}),Di("dragSelectingTool",function(){return this.findTool("DragSelecting")},function(a){this.gb("DragSelecting",a,this.mouseMoveTools)}),Di("actionTool",function(){return this.findTool("Action")},function(a){this.gb("Action",a,this.mouseDownTools)});function wu(){this.F=this.u=this.j=this.o=null}Ct.Object.defineProperties(wu.prototype,{mainElement:{get:function(){return this.u},set:function(a){this.u=a}},show:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},hide:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},valueFunction:{get:function(){return this.F},set:function(a){this.F=a}}}),wu.className="HTMLInfo";function Ol(a,y,x){this.text=a,this.hx=y,this.visible=x}Ol.className="ContextMenuButtonInfo";function Es(){no.call(this),this.name="ContextMenu",this.o=this.ht=this.j=null,this.yw=new Te,this.jt=null,this.Et=!1;var a=this;this.tu=function(){a.stopTool()}}xt(Es,no);function Ul(a){var y=new wu;y.show=function(b,z,ee){ee.showDefaultContextMenu()},y.hide=function(b,z){z.hideDefaultContextMenu()},Jh=y,a.tu=function(){a.stopTool()},y=fr("div");var x=fr("div");y.style.cssText="top: 0px;z-index:10002;position: fixed;display: none;text-align: center;left: 25%;width: 50%;background-color: #F5F5F5;padding: 16px;border: 16px solid #444;border-radius: 10px;margin-top: 10px",x.style.cssText="z-index:10001;position: fixed;display: none;top: 0;left: 0;width: 100%;height: 100%;background-color: black;opacity: 0.8;";var E=fr("style");xn.document.getElementsByTagName("head")[0].appendChild(E),E.sheet.insertRule(".goCXul { list-style: none; }",0),E.sheet.insertRule(".goCXli {font:700 1.5em Helvetica, Arial, sans-serif;position: relative;min-width: 60px; }",0),E.sheet.insertRule(".goCXa {color: #444;display: inline-block;padding: 4px;text-decoration: none;margin: 2px;border: 1px solid gray;border-radius: 10px; }",0),E=a.diagram,E!==null&&(E.addEventListener(y,"contextmenu",Aa,!1),E.addEventListener(y,"selectstart",Aa,!1),E.addEventListener(x,"contextmenu",Aa,!1)),y.className="goCXforeground",x.className="goCXbackground",xn.document.body&&(xn.document.body.appendChild(y),xn.document.body.appendChild(x)),fc=y,Nd=x,cc=!0}function Aa(a){return a.preventDefault(),!1}Es.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;return this.isBeyondDragSize()||!a.lastInput.right||1<a.lastInput.clickCount?!1:!!(a.lastInput.isTouchEvent&&this.defaultTouchContextMenu!==null||this.findObjectWithContextMenu()!==null)},Es.prototype.doStart=function(){this.yw.set(this.diagram.firstInput.documentPoint)},Es.prototype.doStop=function(){this.hideContextMenu(),this.currentObject=null},Es.prototype.findObjectWithContextMenu=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.lastInput,E=null;if(a instanceof qt||(a instanceof kt?E=a:E=y.ic(x.documentPoint,null,function(b){return!b.layer.isTemporary})),E!==null){for(a=E;a!==null;){if(a.contextMenu!==null)return a;a=a.panel}if(y.lastInput.isTouchEvent&&this.defaultTouchContextMenu)return E.part}else if(y.contextMenu!==null)return y;return null},Es.prototype.doActivate=function(){},Es.prototype.doMouseDown=function(){if(no.prototype.doMouseDown.call(this),this.isActive&&this.currentContextMenu instanceof uo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doMouseDown(),a.doDeactivate())}this.diagram.toolManager.mouseDownTools.contains(this)&&au(this)},Es.prototype.doMouseUp=function(){if(this.isActive&&this.currentContextMenu instanceof uo){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.canStart()&&(a.doActivate(),a.doCancel(),a.doDeactivate())}au(this)};function au(a){var y=a.diagram;if(a.isActive){var x=a.currentContextMenu;if(x!==null){var E=null;x instanceof wu||(E=y.ic(y.lastInput.documentPoint,null,null),E!==null&&E.rg(x)&&a.standardMouseClick(null,null)),a.maybeStopTool(E)}}else a.canStart()&&(qu(a,!0),a.isActive||a.stopTool())}Es.prototype.maybeStopTool=function(){this.stopTool(),this.canStart()&&(this.diagram.currentTool=this,this.doMouseUp())};function qu(a,y,x){if(x===void 0&&(x=null),!a.Et&&(a.Et=!0,y&&a.standardMouseSelect(),y=a.standardMouseClick(),a.Et=!1,!y)){if(a.isActive=!0,y=Jh,x===null&&(x=a.findObjectWithContextMenu()),x!==null){var E=x.contextMenu;E!==null?(a.currentObject=x instanceof kt?x:null,a.showContextMenu(E,a.currentObject)):y!==null&&a.showContextMenu(y,a.currentObject)}else y!==null&&a.showContextMenu(y,null);a.currentContextMenu instanceof uo&&!a.currentContextMenu.visible&&a.stopTool()}}Es.prototype.doMouseMove=function(){var a=this.diagram.toolManager.findTool("Action");a!==null&&a.doMouseMove(),this.isActive&&this.diagram.toolManager.doMouseMove()},Es.prototype.showContextMenu=function(a,y){var x=this.diagram;if(a!==this.currentContextMenu&&this.hideContextMenu(),a instanceof uo){a.layerName="Tool",a.selectable=!1,a.scale=1/x.scale,a.category=this.name,a.placeholder!==null&&(a.placeholder.scale=x.scale);var E=a.diagram;E!==null&&E!==x&&E.remove(a),x.add(a),y!==null?a.adornedObject=y:a.data=x.model,a.Va(),this.positionContextMenu(a,y)}else a instanceof wu&&a.show(y,x,this);this.currentContextMenu=a},Es.prototype.positionContextMenu=function(a){if(a.placeholder===null){var y=this.diagram,x=y.lastInput.documentPoint.copy(),E=a.measuredBounds,b=y.viewportBounds;y.lastInput.isTouchEvent&&(x.x-=E.width),x.x+E.width>b.right&&(x.x-=E.width+5/y.scale),x.x<b.x&&(x.x=b.x),x.y+E.height>b.bottom&&(x.y-=E.height+5/y.scale),x.y<b.y&&(x.y=b.y),a.position=x}},Es.prototype.hideContextMenu=function(){var a=this.diagram,y=this.currentContextMenu;y!==null&&(y instanceof uo?(a.remove(y),this.ht!==null&&this.ht.Jf(y.category),y.data=null,y.adornedObject=null):y instanceof wu&&(y.hide!==null?y.hide(a,this):y.mainElement!==null&&(y.mainElement.style.display="none")),this.currentContextMenu=null,this.standardMouseOver())};function Sh(a){var y=new cn;return y.add(new Ol("Copy",function(x){x.commandHandler.copySelection()},function(x){return x.commandHandler.canCopySelection()})),y.add(new Ol("Cut",function(x){x.commandHandler.cutSelection()},function(x){return x.commandHandler.canCutSelection()})),y.add(new Ol("Delete",function(x){x.commandHandler.deleteSelection()},function(x){return x.commandHandler.canDeleteSelection()})),y.add(new Ol("Paste",function(x){x.commandHandler.pasteSelection(a.mouseDownPoint)},function(x){return x.commandHandler.canPasteSelection(a.mouseDownPoint)})),y.add(new Ol("Select All",function(x){x.commandHandler.selectAll()},function(x){return x.commandHandler.canSelectAll()})),y.add(new Ol("Undo",function(x){x.commandHandler.undo()},function(x){return x.commandHandler.canUndo()})),y.add(new Ol("Redo",function(x){x.commandHandler.redo()},function(x){return x.commandHandler.canRedo()})),y.add(new Ol("Scroll To Part",function(x){x.commandHandler.scrollToPart()},function(x){return x.commandHandler.canScrollToPart()})),y.add(new Ol("Zoom To Fit",function(x){x.commandHandler.zoomToFit()},function(x){return x.commandHandler.canZoomToFit()})),y.add(new Ol("Reset Zoom",function(x){x.commandHandler.resetZoom()},function(x){return x.commandHandler.canResetZoom()})),y.add(new Ol("Group Selection",function(x){x.commandHandler.groupSelection()},function(x){return x.commandHandler.canGroupSelection()})),y.add(new Ol("Ungroup Selection",function(x){x.commandHandler.ungroupSelection()},function(x){return x.commandHandler.canUngroupSelection()})),y.add(new Ol("Edit Text",function(x){x.commandHandler.editTextBlock()},function(x){return x.commandHandler.canEditTextBlock()})),y}Es.prototype.showDefaultContextMenu=function(){var a=this.diagram;this.jt===null&&(this.jt=Sh(this)),fc.innerHTML="",Nd.addEventListener("pointerdown",this.tu,!1);var y=this,x=fr("ul");x.className="goCXul",fc.appendChild(x),x.innerHTML="";for(var E=this.jt.iterator;E.next();){var b=E.value,z=b.visible;if(typeof b.hx=="function"&&(typeof z!="function"||z(a))){z=fr("li"),z.className="goCXli";var ee=fr("a");ee.className="goCXa",ee.href="#",ee.ky=b.hx,ee.addEventListener("pointerdown",function(re){return this.ky(a),y.stopTool(),re.preventDefault(),!1},!1),ee.textContent=b.text,z.appendChild(ee),x.appendChild(z)}}fc.style.display="block",Nd.style.display="block"},Es.prototype.hideDefaultContextMenu=function(){if(this.currentContextMenu!==null&&this.currentContextMenu===Jh){fc.style.display="none",Nd.style.display="none";var a=this.diagram;a!==null&&a.removeEventListener(Nd,"pointerdown",this.tu,!1),this.currentContextMenu=null}},Ct.Object.defineProperties(Es.prototype,{currentContextMenu:{get:function(){return this.j},set:function(a){this.j=a,this.ht=a instanceof uo?a.adornedPart:null}},defaultTouchContextMenu:{get:function(){return cc===!1&&Jh===null&&fa&&Ul(this),Jh},set:function(a){a===null&&(cc=!0),Jh=a}},currentObject:{get:function(){return this.o},set:function(a){this.o=a}},mouseDownPoint:{get:function(){return this.yw}}});var Jh=null,cc=!1,Nd=null,fc=null;Es.className="ContextMenuTool",Di("contextMenuTool",function(){return this.findTool("ContextMenu")},function(a){this.gb("ContextMenu",a,this.mouseUpTools)});function Xo(){no.call(this),this.name="TextEditing",this.Zh=new jo,this.ia=null,this.V=Bd,this.vj=null,this.qa=Td,this.u=1,this.F=!0,this.o=null,this.j=new wu,this.kt=null,gc(this,this.j)}xt(Xo,no);function gc(a,y){if(fa){var x=fr("textarea");a.kt=x,x.addEventListener("input",function(){if(a.textBlock!==null){var E=a.Lx(this.value);this.style.width=20+E.measuredBounds.width*this.wA+"px",this.rows=E.lineCount}},!1),x.addEventListener("keydown",function(E){if(!E.isComposing&&a.textBlock!==null){var b=E.key;b==="Enter"?(a.textBlock.isMultiline===!1&&E.preventDefault(),a.acceptText(pc)):b==="Tab"?(a.acceptText(sf),E.preventDefault()):b==="Escape"&&(a.doCancel(),a.diagram!==null&&a.diagram.doFocus())}},!1),x.addEventListener("focus",function(){if(a.currentTextEditor!==null&&a.state!==Td){var E=a.kt;a.qa===mc&&(a.qa=vc),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),x.addEventListener("blur",function(){if(a.currentTextEditor!==null&&a.state!==Td){var E=a.kt;typeof E.focus=="function"&&E.focus(),typeof E.select=="function"&&a.selectsTextOnActivate&&(E.select(),E.setSelectionRange(0,9999))}},!1),y.valueFunction=function(){return x.value},y.mainElement=x,y.show=function(E,b,z){if(E instanceof jo&&z instanceof Xo)if(z.state===yc)x.style.border="3px solid red",x.focus();else{var ee=E.ga(Mi),re=b.position,oe=b.scale,se=E.Df()*oe;se<z.minimumEditorScale&&(se=z.minimumEditorScale);var ue=E.naturalBounds.width*se+6,fe=E.naturalBounds.height*se+2,ve=(ee.x-re.x)*oe;ee=(ee.y-re.y)*oe,re=E.verticalAlignment,oe=(E.lineHeight+E.spacingAbove+E.spacingBelow)*E.lineCount*se,fe=re.y*fe-re.y*oe+re.offsetY-(.5*fe-.5*oe)-oe/2,x.value=E.text,b.div.style.font=E.font,x.style.position="absolute",x.style.zIndex="100",x.style.font="inherit",x.style.fontSize=100*se+"%",x.style.lineHeight="normal",x.style.width=ue+"px",x.style.left=(ve-ue/2|0)-1+"px",x.style.top=(ee+fe|0)-1+"px",x.style.textAlign=E.textAlign,x.style.margin="0",x.style.padding="1px",x.style.border="0",x.style.outline="none",x.style.whiteSpace="pre-wrap",x.style.overflow="hidden",x.rows=E.lineCount,x.wA=se,x.className="goTXarea",b.div.appendChild(x),x.focus(),z.selectsTextOnActivate&&(x.select(),x.setSelectionRange(0,9999))}},y.hide=function(E){E.div.removeChild(x)}}}Xo.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||a.isReadOnly||xh&&xh!==this&&(xh.acceptText(Pu),xh&&xh!==this)||!a.lastInput.left||this.isBeyondDragSize())return!1;var y=a.ic(a.lastInput.documentPoint);return y!==null&&y instanceof jo&&y.editable&&y.part.canEdit()?(y=y.part,!(y===null||this.starting===Bd&&!y.isSelected||this.starting===lf&&2>a.lastInput.clickCount)):!1},Xo.prototype.doStart=function(){xh=this,this.textBlock!==null&&this.doActivate()},Xo.prototype.doActivate=function(){if(!this.isActive){var a=this.diagram;if(a!==null){var y=this.textBlock;if(y===null&&(y=a.ic(a.lastInput.documentPoint)),y!==null&&y instanceof jo&&(this.textBlock=y,y.part!==null)){a.animationManager.Cc(),this.isActive=!0,this.qa=mc;var x=this.defaultTextEditor;y.textEditor!==null&&(x=y.textEditor),this.Zh=this.textBlock.copy();var E=new ut(this.textBlock.ga(Ji),this.textBlock.ga(Ar));a.tv(E),x.show(y,a,this),this.currentTextEditor=x}}}},Xo.prototype.doCancel=function(){this.stopTool()},Xo.prototype.doMouseUp=function(){this.canStart()&&this.doActivate()},Xo.prototype.doMouseDown=function(){this.isActive&&this.acceptText(Pu)},Xo.prototype.acceptText=function(a){switch(a){case Pu:this.qa===Od?this.currentTextEditor instanceof HTMLElement&&this.currentTextEditor.focus():(this.qa===mc||this.qa===yc||this.qa===vc)&&(this.qa=pg,gg(this));break;case af:case pc:case sf:(pc!==a||this.textBlock.isMultiline!==!0)&&(this.qa===mc||this.qa===yc||this.qa===vc)&&(this.qa=pg,gg(this))}};function gg(a){var y=a.textBlock,x=a.diagram,E=a.currentTextEditor;if(y!==null&&E!==null){var b=y.text,z="";E.valueFunction!==null&&(z=E.valueFunction()),a.isValidText(y,b,z)?(a.Ea(a.name),a.qa=Od,a.transactionResult=a.name,y.text=z,a.doSuccess(b,z),x!==null&&x.R("TextEdited",y,b),a.stopTransaction(),a.stopTool(),x!==null&&x.doFocus()):(a.qa=yc,a.doError(b,z))}}Xo.prototype.doError=function(a,y){var x=this.textBlock;x.errorFunction!==null&&x.errorFunction(this,a,y),(a=this.currentTextEditor)&&a.show(x,this.diagram,this)},Xo.prototype.doSuccess=function(a,y){var x=this.textBlock;x.textEdited!==null&&x.textEdited(x,a,y)},Xo.prototype.doDeactivate=function(){var a=this.diagram;a!==null&&(this.qa=Td,this.currentTextEditor!==null&&this.currentTextEditor.hide(a,this),this.textBlock=null,this.isActive=!1)},Xo.prototype.doStop=function(){xh=null},Xo.prototype.isValidText=function(a,y,x){var E=this.textValidation;return E!==null&&!E(a,y,x)?!1:(E=a.textValidation,!!(E===null||E(a,y,x)))},Xo.prototype.Lx=function(a){var y=this.Zh;return y.text=a,y.measure(this.textBlock.Ih,1/0),y},Ct.Object.defineProperties(Xo.prototype,{textBlock:{get:function(){return this.ia},set:function(a){this.ia=a}},currentTextEditor:{get:function(){return this.o},set:function(a){this.o=a}},defaultTextEditor:{get:function(){return this.j},set:function(a){this.j=a}},starting:{get:function(){return this.V},set:function(a){this.V=a}},textValidation:{get:function(){return this.vj},set:function(a){this.vj=a}},minimumEditorScale:{get:function(){return this.u},set:function(a){this.u=a}},selectsTextOnActivate:{get:function(){return this.F},set:function(a){this.F=a}},state:{get:function(){return this.qa},set:function(a){this.qa!==a&&(this.qa=a)}}}),Xo.prototype.measureTemporaryTextBlock=Xo.prototype.Lx;var af=new En(Xo,"LostFocus",0),Pu=new En(Xo,"MouseDown",1),sf=new En(Xo,"Tab",2),pc=new En(Xo,"Enter",3),iv=new En(Xo,"SingleClick",0),Bd=new En(Xo,"SingleClickSelected",1),lf=new En(Xo,"DoubleClick",2),Td=new En(Xo,"StateNone",0),mc=new En(Xo,"StateActive",1),vc=new En(Xo,"StateEditing",2),pg=new En(Xo,"StateValidating",3),yc=new En(Xo,"StateInvalid",4),Od=new En(Xo,"StateValidated",5),xh=null;Xo.className="TextEditingTool",Xo.LostFocus=af,Xo.MouseDown=Pu,Xo.Tab=sf,Xo.Enter=pc,Xo.SingleClick=iv,Xo.SingleClickSelected=Bd,Xo.DoubleClick=lf,Xo.StateNone=Td,Xo.StateActive=mc,Xo.StateEditing=vc,Xo.StateValidating=pg,Xo.StateInvalid=yc,Xo.StateValidated=Od,Di("textEditingTool",function(){return this.findTool("TextEditing")},function(a){this.gb("TextEditing",a,this.mouseUpTools)});function $s(a){xc||(mg(),xc=!0),this.H=Tu,this.Ok=this.zb=this.vq=this.bc=!1,this.Qw=!0,this.Pk=eh,this.Dm=!1,this.Gh=this.Jd=!0,this.Dg=600,this.cw=this.Ow=!1,this.Zd=new yn,this.ce=new as,this.ce.Yd=this,this.Ei=new yn,this.pu=new yn,this.Sr=new yn,this.pr=new yn,a&&Object.assign(this,a)}$s.prototype.Xe=function(a){this.H=a},$s.prototype.canStart=function(){return!0};function Bu(a,y){a.Jd&&a.canStart(y)&&(a.Zd.add(y),a.defaultAnimation.isAnimating&&a.Cc(),ss(a.H),a.zb=!0)}function uf(a){if(a.Jd&&a.zb){var y=a.ce,x=a.H,E=a.Zd.contains("Model");E&&(a.Ok=!0,a.Pk===eh?(y.isViewportUnconstrained=!0,y.vc.clear(),y.add(x,"position",x.position.copy().offset(0,-200),x.position),y.add(x,"opacity",0,1)):a.Pk===vg&&y.vc.clear(),a.Qw=!!(a.Pk===wc&&x.du.D(x.pa)),x.R("InitialAnimationStarting",a)),E&&!a.Gh||y.vc.count===0?(a.Zd.clear(),a.zb=!1,y.vc.clear(),Pc(y,x),a.Ok=!1,x.N()):(a.Zd.clear(),x.kg=!1,E=y.vc.get(x),x.autoScale!==ys&&E!==null&&(delete E.start.scale,delete E.end.scale),xn.requestAnimationFrame(function(){a.zb===!1||y.bc||(x.Gf("temporaryPixelRatio")&&Is(x),Pg(x),a.zb=!1,y.start(),y.bc&&(wh(a),x.Ya(),yg(y,0),wl(x,!0),Qh(a),x.R("AnimationStarting",a)))}))}}function $u(a){return a.Zd.contains("Trigger")&&a.Zd.count===1}function hf(a,y,x,E){a.isTicking||$u(a)||y instanceof hi&&(y.fromNode!==null||y.toNode!==null)||a.ce.add(y,"position",x,E,!1)}Ce=$s.prototype,Ce.fv=function(a){return this.ce.fv(a)},Ce.Xu=function(a){return this.ce.Xu(a)};function df(a,y){function x(){if(0<b.Sr.count&&(E.addAll(b.Sr),b.Sr.clear(),b.bc=!0),b.bc!==!1&&E.count!==0){b.pu.addAll(E);for(var z=b.pu.iterator;z.next();){var ee=z.value;if(ee.bc!==!1){e:if(0<ee.yl.count)var re=!0;else{for(re=ee.vc.iterator;re.next();){var oe=re.key;if(oe instanceof kt&&oe.diagram!==null||oe instanceof qt){re=!0;break e}}re=!1}re?Cc(ee,!1):ee.Xk=!0}}b.pu.clear(),b.bc!==!1&&(wh(b),wl(b.H),Qh(b)),xn.requestAnimationFrame(x)}}var E=a.Ei,b=a;a.bc?a.Sr.add(y):(a.bc=!0,E.add(y),xn.requestAnimationFrame(function(){x()}))}function Kp(a){for(a=a.Ei.iterator;a.next();)a.value.Xk=!1}function wh(a){if(!a.vq){var y=a.H;a.Ow=y.skipsUndoManager,a.cw=y.skipsModelSourceBindings,y.skipsUndoManager=!0,y.skipsModelSourceBindings=!0,a.vq=!0}}function Qh(a){var y=a.H;y.skipsUndoManager=a.Ow,y.skipsModelSourceBindings=a.cw,a.vq=!1}Ce.Cc=function(a){var y=this.ce;if(this.zb===!0&&(this.Ok=this.zb=!1,this.Zd.clear(),0<y.vc.count&&this.H.$b()),this.bc){if(y.Ml(!0),y.vc.clear(),Pc(y,null),a===!0)for(a=this.Ei.Fa(),y=0;y<a.length;y++)a[y].Ml(!0)}else y.vc.clear(),Pc(y,this.H)},Ce.Ml=function(a){a===this.defaultAnimation&&this.defaultAnimation.vc.clear(),this.Ei.remove(a),this.Ei.count===0&&(this.bc=!1,this.H.$b()),a===this.defaultAnimation&&(this.defaultAnimation.vc.clear(),this.H.R("AnimationFinished",this))},Ce.Cj=function(a,y){this.zb&&(this.Zd.contains("Expand Tree")||this.Zd.contains("Expand SubGraph"))&&(this.ce.Cj(a,y),Ks(this,a))},Ce.Aj=function(a,y){this.zb&&(this.Zd.contains("Collapse Tree")||this.Zd.contains("Collapse SubGraph"))&&(this.ce.Aj(a,y),Ph(this.ce,y,"position",y.position,y.position),Ks(this,a))};function Yp(a,y,x){!a.zb||y.D(x)||$u(a)||(a.H.pi||(y=x.copy()),Ph(a.ce,a.H,"position",y,x))}function cf(a,y,x){y.fd&&(y.Tg=x,a.pr.add(y))}function Ks(a,y){for(y=y.findLinksConnected();y.next();){var x=y.value;x.fd&&(x.Tg=x.points.copy(),a.pr.add(x))}}function qh(a,y,x,E,b){a===null&&(a=[0,0,0,0]),y===null&&(y=[0,0,0,0]);var z=a[0],ee=a[1],re=a[2];a=a[3];var oe=y[0],se=y[1],ue=y[2];return y=y[3],re===0||re===100?(z=oe,ee=se):(ue===0||ue===100)&&(oe=z,se=ee),180<Math.abs(oe-z)&&(oe>z?z+=360:oe+=360),z=b(x,z,oe-z,E)%360,ee=b(x,ee,se-ee,E),re=b(x,re,ue-re,E),x=b(x,a,y-a,E),"hsla("+z+", "+ee+"%, "+re+"%, "+x+")"}function mg(){function a(x,E,b,z,ee,re){x.position=new Te(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}var y=new $t;y.add("position:diagram",a),y.add("position",a),y.add("position:part",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new Te(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("location",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!0):x.location=new Te(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:placeholder",function(x,E,b,z,ee,re){ee<re?x.mm(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re),!1):x.position=new Te(z(ee,E.x,b.x-E.x,re),z(ee,E.y,b.y-E.y,re))}),y.add("position:nodeCollapse",function(x,E,b,z,ee,re){var oe=x.actualBounds,se=b.actualBounds;b=se.x+se.width/2-oe.width/2,oe=se.y+se.height/2-oe.height/2,ee<re?x.mm(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re),!1):x.position=new Te(z(ee,E.x,b-E.x,re),z(ee,E.y,oe-E.y,re))}),y.add("desiredSize",function(x,E,b,z,ee,re){x.desiredSize=new ut(z(ee,E.width,b.width-E.width,re),z(ee,E.height,b.height-E.height,re))}),y.add("width",function(x,E,b,z,ee,re){x.width=z(ee,E,b-E,re)}),y.add("height",function(x,E,b,z,ee,re){x.height=z(ee,E,b-E,re)}),y.add("fill",function(x,E,b,z,ee,re){x.fill=qh(E,b,ee,re,z)}),y.add("stroke",function(x,E,b,z,ee,re){x.stroke=qh(E,b,ee,re,z)}),y.add("strokeWidth",function(x,E,b,z,ee,re){x.strokeWidth=z(ee,E,b-E,re)}),y.add("strokeDashOffset",function(x,E,b,z,ee,re){x.strokeDashOffset=z(ee,E,b-E,re)}),y.add("background",function(x,E,b,z,ee,re){x.background=qh(E,b,ee,re,z)}),y.add("areaBackground",function(x,E,b,z,ee,re){x.areaBackground=qh(E,b,ee,re,z)}),y.add("opacity",function(x,E,b,z,ee,re){x.opacity=z(ee,E,b-E,re)}),y.add("scale",function(x,E,b,z,ee,re){x.scale=z(ee,E,b-E,re)}),y.add("angle",function(x,E,b,z,ee,re){x.angle=z(ee,E,b-E,re)}),Sc=y}Ct.Object.defineProperties($s.prototype,{animationReasons:{get:function(){return this.Zd}},isEnabled:{get:function(){return this.Jd},set:function(a){(this.Jd=a)&&this.Ei.each(function(y){y.isAnimating||y.runCount!==1/0||y.start()})}},duration:{get:function(){return this.Dg},set:function(a){1>a&&Dn(a,">= 1",$s,"duration"),this.Dg=a}},isAnimating:{get:function(){return this.bc}},isTicking:{get:function(){return this.vq}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a}},defaultAnimation:{get:function(){return this.ce}},activeAnimations:{get:function(){return this.Ei}},initialAnimationStyle:{get:function(){return this.Pk},set:function(a){this.Pk=a}}}),$s.prototype.stopAnimation=$s.prototype.Cc;var Sc=null,xc=!1,eh=new En($s,"Default",1),wc=new En($s,"AnimateLocations",2),vg=new En($s,"None",3);$s.className="AnimationManager",$s.defineAnimationEffect=function(a,y){xc||(mg(),xc=!0),Sc.add(a,y)},$s.Default=eh,$s.AnimateLocations=wc,$s.None=vg;function as(a){this.vu=this.Nw=this.Yd=this.H=null,this.Xk=this.bc=this.j=!1,this.cn=this.Qd=0,this.Lp=this.ot=Id,this.Wk=this.ho=!1,this.cu=1,this.au=0,this.Gd=this.Dg=NaN,this.gw=0,this.dn=null,this.o=He,this.vc=new $t,this.Tt=new $t,this.yl=new yn,this.Ut=new yn,this.dw=Ah,a&&Object.assign(this,a)}as.prototype.suspend=function(){this.Xk=!0},as.prototype.advanceTo=function(a,y){y&&(this.Xk=!1),this.ho&&a>=this.Gd&&(this.Wk=!0,a-=this.Gd),this.gw=a,Cc(this,!0),wh(this.Yd),wl(this.H),Qh(this.Yd),this.H.redraw()};function Pc(a,y){if(a.Tt.clear(),a.Wk=!1,a.au=0,a.Gd=NaN,0<a.yl.count&&a.yl.clear(),0<a.Ut.count&&a.Ut.clear(),y!==null)for(a=y.links;a.next();)a.value.Tg=null}Ce=as.prototype,Ce.start=function(){if(this.vc.count===0||this.bc)return this;for(var a=this.H,y=this.vc.iterator;y.next();){var x=y.key;a===null&&(x instanceof qt?a=x:x instanceof kt&&(a=x.diagram))}if(a!==null)this.H=a,this.Yd=a.animationManager;else return this;return y=this.Yd,y.isEnabled===!1?this:(this.Gd=isNaN(this.Dg)?y.duration:this.Dg,this.Lp=this.ot,y.Ok&&y.Pk===eh&&this===y.defaultAnimation&&(this.Lp=Up,this.Gd=isNaN(this.Dg)?y.duration===600?900:y.duration:this.Dg),this.dw=a.scrollMode,this.isViewportUnconstrained&&(a.sj=Fc),wh(y),this.yl.each(function(E){E.data=null,a.add(E)}),Qh(y),this.bc=!0,this.Qd=+new Date,this.cn=this.Qd+this.Gd,df(y,this),this)},Ce.Iy=function(a,y){return a.Zc()?(this.yl.add(a),this.H=y,this):this},Ce.add=function(a,y,x,E,b){if(y==="position"&&x.Xa(E))return this;if(this.H===null&&(a instanceof qt?this.H=a:a instanceof kt&&a.diagram!==null&&(this.H=a.diagram)),a instanceof ir){if(!a.isAnimated)return this;y==="position"&&(y="position:part")}return Ph(this,a,y,x,E,b),this};function Ph(a,y,x,E,b,z){var ee=a.vc;if(y instanceof qt&&x==="position"&&(x="position:diagram"),(x==="fill"||x==="stroke"||x==="background"||x==="areaBackground")&&(rh(E),hv(),E=[dl.j,dl.u,dl.o,dl.F],rh(b),hv(),b=[dl.j,dl.u,dl.o,dl.F]),ee.contains(y)){var re=ee.I(y),oe=re.start,se=re.end;oe[x]===void 0&&(oe[x]=$h(E)),se[x]=$h(b)}else oe={},se={},oe[x]=$h(E),se[x]=$h(b),re=oe.position,y instanceof kt&&re instanceof Te&&!re.w()&&y.diagram.animationManager.Zd.contains("Expand SubGraph")&&re.assign(se.position),re=new ed(oe,se,z),ee.add(y,re);ee=oe[x],ee instanceof Te&&!ee.w()&&ee.assign(a.o),z&&x.indexOf("position:")===0&&y instanceof ir?re.Ku.location=$h(y.location):z&&(re.Ku[x]=$h(E))}function $h(a){return a instanceof Te||a instanceof Re?a.copy():a}Ce.fv=function(a){return this.bc?(a=this.vc.I(a),a!==null&&a.nv):!1},Ce.Xu=function(a){return this.bc?(a=this.vc.I(a),a!==null&&(a.start.position||a.start.location)):!1};function Cc(a,y){if(!a.Xk||y){var x=a.Yd;if(a.bc!==!1){var E=+new Date,b=E>a.cn?a.Gd:E-a.Qd;y&&(b=a.gw,b<a.Gd?(a.Qd=+new Date-b,a.cn=a.Qd+a.Gd):b=a.Gd),wh(x),yg(a,b),wl(a.H,!0),Qh(x),E>a.cn&&(a.ho&&!a.Wk?(a.Qd=+new Date,a.cn=a.Qd+a.Gd,a.Wk=!0):a.Ml(!1))}}}function yg(a,y){for(var x=a.Gd,E=a.vc.iterator,b=a.Wk;E.next();){var z=E.key;if(!(z instanceof kt&&z.diagram===null)){var ee=E.value,re=b?ee.end:ee.start;ee=b?ee.start:ee.end;var oe=Sc,se;for(se in ee)se==="position"&&(ee["position:placeholder"]||ee["position:nodeCollapse"])||oe.get(se)===null||oe.get(se)(z,re[se],ee[se],a.Lp,y,x,a)}}}Ce.stop=function(){return this.bc?(this.Ml(!0),this):this},Ce.Ml=function(a){if(this.vu!==null&&this.vu.jo.remove(this.Nw),this.bc){var y=this.H,x=this.Yd;this.Xk=this.bc=x.Ok=!1,wh(x);for(var E=this.vc,b=this.yl.iterator;b.next();)y.remove(b.value);for(b=this.Ut.iterator;b.next();)b.value.v();b=this.ho,E=E.iterator;for(var z=Sc;E.next();){var ee=E.key,re=E.value,oe=b?re.end:re.start,se=b?re.start:re.end,ue=re.Ku,fe;for(fe in se)if(z.get(fe)!==null){var ve=fe;!re.Hu||ve!=="position:nodeCollapse"&&ve!=="position:placeholder"||(ve="position"),z.get(ve)(ee,oe[fe],ue[fe]!==void 0?ue[fe]:re.Hu?oe[fe]:se[fe],this.Lp,this.Gd,this.Gd,this)}re.Hu&&ue.location!==void 0&&ee instanceof ir&&(ee.location=ue.location),re.nv&&ee instanceof ir&&ee.Zb(!1)}if(y.As.clear(),Ec(y,!1),y.Ya(),y.N(),wl(y,!0),x.defaultAnimation===this){for(fe=x.pr.iterator;fe.next();)b=fe.value,b.Tg!==null&&(b.points=b.Tg,b.Tg=null);x.pr.clear()}wl(y,!0),this.isViewportUnconstrained&&(y.scrollMode=this.dw),Qh(x),this.au++,!a&&this.cu>this.au?(this.Wk=!1,this.start()):(this.dn&&this.dn(this),Pc(this,null),x.Ml(this),y.$b())}},Ce.Cj=function(a,y){var x=y.actualBounds,E=null;if(y instanceof Or&&(E=y.placeholder),E!==null?(x=E.ga(Ji),E=E.padding,x.x+=E.left,x.y+=E.top,this.add(a,"position",x,a.position,!1)):this.add(a,"position",new Te(x.x+x.width/2,x.y+x.height/2),a.position,!1),this.add(a,"scale",.01,a.scale,!1),a instanceof Or)for(a=a.memberParts;a.next();)E=a.value,E instanceof Li&&this.Cj(E,y)},Ce.Aj=function(a,y){if(a.isVisible()){var x=null;if(y instanceof Or&&(x=y.placeholder),x!==null){var E=x.ga(Ji);x=x.padding,E.x+=x.left,E.y+=x.top,this.add(a,"position:placeholder",a.position,E,!0)}else this.add(a,"position:nodeCollapse",a.position,y,!0);if(this.add(a,"scale",a.scale,.01,!0),E=this.vc,E.contains(a)&&(E.I(a).nv=!0),a instanceof Or)for(a=a.memberParts;a.next();)E=a.value,E instanceof Li&&this.Aj(E,y)}},Ce.Ez=function(a){var y=this.Tt.get(a);return y===null&&(y={},this.Tt.add(a,y)),y},Ct.Object.defineProperties(as.prototype,{duration:{get:function(){return this.Dg},set:function(a){1>a&&Dn(a,">= 1",as,"duration"),this.Dg=a}},reversible:{get:function(){return this.ho},set:function(a){this.ho=a}},runCount:{get:function(){return this.cu},set:function(a){0<a?this.cu=a:Ve("Animation.runCount value must be a positive integer.")}},finished:{get:function(){return this.dn},set:function(a){this.dn!==a&&(this.dn=a)}},easing:{get:function(){return this.ot},set:function(a){this.ot=a}},isViewportUnconstrained:{get:function(){return this.j},set:function(a){this.j=a}},isAnimating:{get:function(){return this.bc}}}),as.prototype.getTemporaryState=as.prototype.Ez,as.prototype.stop=as.prototype.stop,as.prototype.add=as.prototype.add,as.prototype.addTemporaryPart=as.prototype.Iy;function Id(a,y,x,E){return a/=E/2,1>a?x/2*a*a+y:-x/2*(--a*(a-2)-1)+y}function Up(a,y,x,E){return a===E?y+x:x*(-Math.pow(2,-10*a/E)+1)+y}as.className="Animation",as.EaseLinear=function(a,y,x,E){return x*a/E+y},as.EaseInOutQuad=Id,as.EaseInQuad=function(a,y,x,E){return x*(a/=E)*a+y},as.EaseOutQuad=function(a,y,x,E){return-x*(a/=E)*(a-2)+y},as.EaseInExpo=function(a,y,x,E){return a===0?y:x*Math.pow(2,10*(a/E-1))+y},as.EaseOutExpo=Up;function ed(a,y,x){this.start=a,this.end=y,this.Ku={},this.Hu=x,this.nv=!1}ed.className="AnimationState";function Xl(a,y,x){this.xd=null,this.rf=a,this.so=x||Sg,this.uk=null,y!==void 0&&(this.uk=y,x===void 0&&(this.so=td))}Xl.prototype.copy=function(){var a=new Xl(this.rf);a.so=this.so;var y=this.uk;if(y!==null){var x={};y.duration!==void 0&&(x.duration=y.duration),y.finished!==void 0&&(x.finished=y.finished),y.easing!==void 0&&(x.easing=y.easing),a.uk=x}return a};function Xp(a,y){a=a.uk,a!==null&&(a.duration&&(y.duration=a.duration),a.finished&&(y.finished=a.finished),a.easing&&(y.easing=a.easing))}Ct.Object.defineProperties(Xl.prototype,{propertyName:{get:function(){return this.rf},set:function(a){this.rf=a}},animationSettings:{get:function(){return this.uk},set:function(a){this.uk=a}},startCondition:{get:function(){return this.so},set:function(a){this.so=a}}});var Sg=new En(Xl,"Default",1),td=new En(Xl,"Immediate",2),Rd=new En(Xl,"Bundled",3);Xl.className="AnimationTrigger",Xl.Default=Sg,Xl.Immediate=td,Xl.Bundled=Rd;function Xa(a){bi(this),this.H=null,this.Pa=new cn,this.xa="",this.pb=1,this.o=!1,this.j=this.Uh=this.u=this.Oi=this.Ni=this.Mi=this.Li=this.Ji=this.Ki=this.Ii=this.Qi=this.Hi=this.Pi=this.Gi=this.Fi=!0,this.Zq=[],a&&Object.assign(this,a)}Ce=Xa.prototype,Ce.clear=function(){for(var a=this.Pa,y=0;y<a.length;y++){var x=a.s[y];x.Ig=null,ms(x)}a.clear(),this.Zq.length=0},Ce.Xe=function(a){this.H=a},Ce.toString=function(a){a===void 0&&(a=0);var y='Layer "'+this.name+'"';if(0>=a)return y;for(var x=0,E=0,b=0,z=0,ee=0,re=this.Pa.iterator;re.next();){var oe=re.value;oe instanceof Or?b++:oe instanceof Li?E++:oe instanceof hi?z++:oe instanceof uo?ee++:x++}if(re="",0<x&&(re+=x+" Parts "),0<E&&(re+=E+" Nodes "),0<b&&(re+=b+" Groups "),0<z&&(re+=z+" Links "),0<ee&&(re+=ee+" Adornments "),1<a)for(a=this.Pa.iterator;a.next();)x=a.value,re+=`
|
|
`+x.toString(),E=x.data,E!==null&&Nr(E)&&(re+=" #"+Nr(E)),x instanceof Li?re+=" "+_i(E):x instanceof hi&&(re+=" "+_i(x.fromNode)+" "+_i(x.toNode));return y+" "+this.Pa.count+": "+re},Ce.ic=function(a,y,x){if(y===void 0&&(y=null),x===void 0&&(x=null),this.Uh===!1)return null;var E=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(E=!0);for(var b=Te.alloc(),z=this.Pa.s,ee=z.length;ee--;){var re=z[ee];if((E!==!0||dd(re)!==!1)&&re.isVisible()&&(b.assign(a),Rt(b,re.oe),re=re.ic(b,y,x),re!==null&&(y!==null&&(re=y(re)),re!==null&&(x===null||x(re)))))return Te.free(b),re}return Te.free(b),null},Ce.ji=function(a,y,x,E){if(y===void 0&&(y=null),x===void 0&&(x=null),E instanceof cn||E instanceof yn||(E=new yn),this.Uh===!1)return E;var b=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(b=!0);for(var z=Te.alloc(),ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((b!==!0||dd(oe)!==!1)&&oe.isVisible()){z.assign(a),Rt(z,oe.oe);var se=oe;oe.ji(z,y,x,E)&&(y!==null&&(se=y(se)),se===null||x!==null&&!x(se)||E.add(se))}}return Te.free(z),E},Ce.Cf=function(a,y,x,E,b){if(y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof cn||b instanceof yn||(b=new yn),this.Uh===!1)return b;var z=!1;this.diagram!==null&&this.diagram.viewportBounds.Re(a)&&(z=!0);for(var ee=this.Pa.s,re=ee.length;re--;){var oe=ee[re];if((z!==!0||dd(oe)!==!1)&&oe.isVisible()){var se=oe;oe.Cf(a,y,x,E,b)&&(y!==null&&(se=y(se)),se===null||x!==null&&!x(se)||b.add(se))}}return b},Ce.Nu=function(a,y,x,E,b,z,ee){if(this.Uh===!1)return b;for(var re=this.Pa.s,oe=re.length;oe--;){var se=re[oe];if((ee!==!0||dd(se)!==!1)&&z(se)&&se.isVisible()){var ue=se;se.Cf(a,y,x,E,b)&&(y!==null&&(ue=y(ue)),ue===null||x!==null&&!x(ue)||b.add(ue))}}return b},Ce.og=function(a,y,x,E,b,z){if(x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof cn||b instanceof yn)&&(z=b),b=!0),z instanceof cn||z instanceof yn||(z=new yn),this.Uh===!1)return z;var ee=!1;this.diagram!==null&&this.diagram.viewportBounds.ca(a)&&(ee=!0);for(var re=Te.alloc(),oe=Te.alloc(),se=this.Pa.s,ue=se.length;ue--;){var fe=se[ue];if((ee!==!0||dd(fe)!==!1)&&fe.isVisible()){re.assign(a),Rt(re,fe.oe),oe.h(a.x+y,a.y),Rt(oe,fe.oe);var ve=fe;fe.og(re,oe,x,E,b,z)&&(x!==null&&(ve=x(ve)),ve===null||E!==null&&!E(ve)||z.add(ve))}}return Te.free(re),Te.free(oe),z},Ce.Fd=function(a,y){if(this.visible){var x=this.Pa.s,E=x.length;if(E!==0){a=si();for(var b=si(),z=0;z<E;z++){var ee=x[z];if(ee.vw=z,ee instanceof hi){if(ee.fd===!1)continue}else if(ee instanceof uo&&ee.adornedPart!==null)continue;var re=ee.actualBounds;ee.isVisible()&&ki(re,y)?(ee.Fd(!0),a.push(ee)):(ee.Fd(!1),ee.adornments!==null&&0<ee.adornments.count&&b.push(ee))}for(y=0;y<a.length;y++)for(x=a[y],jv(x),x=x.adornments;x.next();)E=x.value,E.measure(1/0,1/0),E.arrange(),E.Fd(!0);for(y=0;y<b.length;y++)jv(b[y]);Pi(a),Pi(b)}}};function th(a,y){var x=1;return a.pb!==1&&(x=y.globalAlpha,y.globalAlpha=x*a.pb),x}Ce.gc=function(a,y,x){if(this.visible&&this.pb!==0&&(x===void 0&&(x=!0),x||!this.isTemporary)){x=this.Pa.s;var E=x.length;if(E!==0){if(a.isTemporary)for(var b=0;b<E;b++)x[b].Gj();b=th(this,a);var z=this.Zq;z.length=0;for(var ee=y.scale,re=ut.alloc(),oe=0;oe<E;oe++)this.Oj(a,x[oe],y,z,ee,re,!0);if(ut.free(re),a.isTemporary)for(y=0;y<E;y++)x[y].Gj();a.globalAlpha=b}}};function _p(a,y,x,E,b){if(a.visible&&a.pb!==0&&(b||!a.isTemporary)){b=a.Pa.s;var z=b.length;if(z!==0){var ee=th(a,y),re=a.Zq;re.length=0;for(var oe=x.scale,se=ut.alloc(),ue=0;ue<z;ue++){var fe=b[ue];E.contains(fe)&&a.Oj(y,fe,x,re,oe,se,!1)}ut.free(se),y.globalAlpha=ee}}}Ce.Oj=function(a,y,x,E,b,z,ee){if(ee&&!dd(y))a.Hs(y);else{if(E!==null&&y instanceof hi&&(y.isOrthogonal&&E.push(y),y.fd===!1)){a.Hs(y);return}for(ee=!1,E=y.containingGroup;E!==null;)ee?E.tb!==null&&z.Ex(E.tb):E.tb!==null&&(ee=!0,z.assign(E.tb)),E=E.containingGroup;var re=y.actualBounds;if(E=!1,ee&&y.isVisible()){if(!z.Yc(re)){a.Hs(y);return}E=!z.Re(re)}E&&(a.save(),a instanceof el?a.bk=z.copy():(a.beginPath(),a.rect(z.x,z.y,z.width,z.height),a.clip())),re.width*b>x.Oq||re.height*b>x.Oq?y.gc(a,x):(b=y.actualBounds,z=y.naturalBounds,b.width===0||b.height===0||isNaN(b.x)||isNaN(b.y)||!y.isVisible()||(x=y.transform,y.areaBackground!==null&&(ma(y,a,y.areaBackground,!0,!0,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.areaBackground===null&&y.background===null&&(ma(y,a,"rgba(0,0,0,0.3)",!0,!1,z,b),a.fillRect(b.x,b.y,b.width,b.height)),y.background!==null&&(a.transform(x.m11,x.m12,x.m21,x.m22,x.dx,x.dy),ma(y,a,y.background,!0,!1,z,b),a.fillRect(0,0,z.width/2,z.height/2),x.ws()||(y=1/(x.m11*x.m22-x.m12*x.m21),a.transform(x.m22*y,-x.m12*y,-x.m21*y,x.m11*y,y*(x.m21*x.dy-x.m22*x.dx),y*(x.m12*x.dx-x.m11*x.dy)))))),E&&(a.restore(),a.Vc(!0))}},Ce.g=function(a,y,x,E,b){var z=this.diagram;z!==null&&z.cb(To,a,this,y,x,E,b)},Ce.oi=function(a,y,x){var E=this.Pa;if(y.Ig=this,this===null&&ms(y),a>=E.count)a=E.count;else if(E.M(a)===y)return-1;return E.Gb(a,y),y.Vo(x),E=this.diagram,E!==null&&(x?E.N():E.oi(y)),ff(this,a,y),a},Ce.pc=function(a,y,x){if(!x&&y.layer!==this&&y.layer!==null)return y.layer.pc(a,y,x);var E=this.Pa;if(0>a||a>=E.length){if(a=E.indexOf(y),0>a)return-1}else if(E.M(a)!==y&&(a=E.indexOf(y),0>a))return-1;return y.Wo(x),E.mb(a),E=this.diagram,E!==null&&(x?E.N():E.pc(y)),y.Ig=null,ms(y),a};function ff(a,y,x){if(y=Jp(a,y,x),x instanceof Or&&x!==null&&isNaN(x.zOrder)){if(x.memberParts.count!==0){for(var E=-1,b=a.Pa.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];if(re===x&&(y=ee,0<=E)||0>E&&re.containingGroup===x&&(E=ee,0<=y))break}!(0>E)&&E<y&&(b=a.Pa,b.mb(y),b.Gb(E,x))}y=x.containingGroup,y!==null&&ff(a,-1,y)}x.svg!==null&&x.svg.remove()}function Jp(a,y,x){var E=x.zOrder;if(isNaN(E))return y;a=a.Pa;var b=a.count;if(1>=b)return y;if(0>y&&(y=a.indexOf(x)),0>y)return-1;for(var z=y-1,ee=NaN;0<=z&&(ee=a.M(z).zOrder,!!isNaN(ee));)z--;for(var re=y+1,oe=NaN;re<b&&(oe=a.M(re).zOrder,!!isNaN(oe));)re++;if(!isNaN(ee)&&ee>E)for(;;){if(z===-1||ee<=E){if(z++,z===y)break;return a.mb(y),a.Gb(z,x),z}for(ee=NaN;0<=--z&&(ee=a.M(z).zOrder,isNaN(ee)););}else if(!isNaN(oe)&&oe<E)for(;;){if(re===b||oe>=E){if(re--,re===y)break;return a.mb(y),a.Gb(re,x),re}for(oe=NaN;++re<b&&(oe=a.M(re).zOrder,isNaN(oe)););}return y}Ct.Object.defineProperties(Xa.prototype,{parts:{get:function(){return this.Pa.iterator}},partsBackwards:{get:function(){return this.Pa.iteratorBackwards}},diagram:{get:function(){return this.H}},name:{get:function(){return this.xa},set:function(a){var y=this.xa;if(y!==a){var x=this.diagram;if(x!==null)for(y===""&&Ve("Cannot rename default Layer to: "+a),x=x.layers;x.next();)x.value.name===a&&Ve("Layer.name is already present in this diagram: "+a);for(this.xa=a,this.g("name",y,a),a=this.Pa.iterator;a.next();)a.value.layerName=this.xa}}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Dn(a,"0 <= value <= 1",Xa,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,a!==null&&a.N())}},isTemporary:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&((this.o=a)&&(this.isInDocumentBounds=!1),this.g("isTemporary",y,a))}},visible:{get:function(){return this.u},set:function(a){var y=this.u;if(y!==a){for(this.u=a,this.g("visible",y,a),y=this.Pa.iterator;y.next();)y.value.Zb(a);a=this.diagram,a!==null&&a.N()}}},pickable:{get:function(){return this.Uh},set:function(a){var y=this.Uh;y!==a&&(this.Uh=a,this.g("pickable",y,a))}},isInDocumentBounds:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,this.diagram!==null&&this.diagram.Ya())}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}}}),Xa.prototype.findObjectsNear=Xa.prototype.og,Xa.prototype.findObjectsIn=Xa.prototype.Cf,Xa.prototype.findObjectsAt=Xa.prototype.ji,Xa.prototype.findObjectAt=Xa.prototype.ic,Xa.className="Layer";function qt(a,y){if(hm||(gs(),hm=!0),bi(this),Tu=this,this.vb=!0,this.Ka=null,this.ya=this.Aa=0,this.ta=null,fa){var x=this,E=function(){x.removeEventListener(xn.document,"DOMContentLoaded",E,!1),x.setRTL()};xn.document.body!==null?this.setRTL():x.addEventListener(xn.document,"DOMContentLoaded",E,!1)}this.ol=null,Ef.add("Model",Co);var b=this;return this.Hb=function(z){var ee=b.partManager;if(z.model===ee.diagram.model&&ee.diagram.aa){ee.diagram.aa=!1;try{var re=z.change;z.modelChange===""&&re===To&&ee.updateDataBindings(z.object,z.propertyName)}finally{ee.diagram.aa=!0}}},this.Oc=function(z){b.partManager.doModelChanged(z)},this.hu=this.ku=null,Qp(this),this.model=gy(),this.Wg=!0,$p(this),this.layout=new na,this.Wg=!1,this.ck=this.ek=this.fk=this.dk=this.ui=this.aA=this.$j=this.Ov=null,this.hk=function(){},this.preventDefault=null,this.rn=!1,this.Yf=new dm,a!==void 0&&(typeof a=="string"||xn.Element&&a instanceof Element?wg(this,a):y=a),this.vb=!1,y&&this.nm(y),this}var nd,Tu;function Qp(a){a.Yd=new $s,a.Yd.Xe(a),a.Db=17,a.Gw=!1,a.tn=!1,a.bu="default",a.Wa=new cn,a.pj=new $t,a.nl="default",a.Tx(),a.Sx(),a.pb=1,a.pa=new Te(NaN,NaN).freeze(),a.du=new Te(NaN,NaN),a.Ca=1,a.Pp=1,a.zt=new Te(NaN,NaN).freeze(),a.At=NaN,a.Ot=1e-4,a.Mt=100,a.Ab=new vi,a.zu=new Te(NaN,NaN).freeze(),a.ut=new ut(NaN,NaN,NaN,NaN).freeze(),a.rj=new Fi(0,0,0,0).freeze(),a.sj=Ah,a.nu=!1,a.Zt=null,a.fu=null,a.yh=ys,a.zk=Lo,a.Fg=ys,a.pq=Lo,a.yt=Ji,a.Bt=Ji,a.Fc=!0,a.pn=!1,a.De=new yn,a.Eh=new $t,a.Xm=!0,a.vp=250,a.vk=-1,a.xp=new Fi(16,16,16,16).freeze(),a.kg=!1,a.Jk=!1,a.fn=!0,a.bq=new za,a.bq.diagram=a,a.Qg=new za,a.Qg.diagram=a,a.cj=new za,a.cj.diagram=a,a.zg=null,a.pf=null,a.qu=!1,ov(a),a.ai=new yn,a.Ht=!0,a.uu=Lh,a.pw=!1,a.wu=kc,a.it="auto",a.Op="auto",a.zh=null,a.Fh=null,a.Bh=null,a.Qh=null,a.Oh=null,a.Nh=null,a.Qt=null,a.Lh=null,a.xt=!1,a.Mh=null,a.Ph=null,a.$h=null,a.Ch=null,a.Rt=!1,a.Yt={},a.oj=[null,null],a.Wg=!1,a.Iw=!1,a.ou=!1,a.lt=!1,a.rw=!0,a.ld=!1,a.$i=!1,a.Tw=!0,a.Ce=-2,a.Og=new $t,a.Xn=new cn,a.Gg=!1,a.Jd=!0,a.Us=!0,a.Fi=!0,a.Gi=!0,a.Vs=!1,a.Ws=!0,a.Pi=!0,a.Hi=!0,a.Qi=!0,a.Ys=!0,a.Ii=!0,a.Ki=!0,a.Ji=!0,a.Li=!0,a.Mi=!0,a.Ni=!0,a.Oi=!0,a.Zs=!0,a.at=!0,a.qw=!1,a.Vk=!1,a.mn=!0,a.nn=!0,a.Xs=!0,a.$s=!0,a.iu=16,a.mu=16,a.qr=!1,a.gu=!1,a.lu=0,a.ju=0,a.yb=new Fi(5).freeze(),a.Hw=new yn().freeze(),a.Nt=999999999,a.nw=new yn().freeze(),a.Zi=!0,a.Ee=!0,a.vd=!0,a.Be=!1,a.gf=!1,a.xh=!0,a.hf=!1,a.sy=new yn,a.ow=new yn,a.Xh=null,a.aw=new Re(8,8),a.bw=999,a.Bw=1,a.Jw=0,a.fc={scale:1,position:new Te,bounds:new ut,Py:new Re,bA:new Re,Oz:!1},a.fc.canvasSize=a.fc.Py,a.fc.newCanvasSize=a.fc.bA,a.fc.isScroll=!1,a.Rw=new ut(NaN,NaN,NaN,NaN).freeze(),a.wo=new Re(NaN,NaN).freeze(),a.Sp=new ut(NaN,NaN,NaN,NaN).freeze(),a.It=!1,a.Lg=new $t;var y=new Li,x=new jo;x.bind(new La("text","",_i)),y.add(x),a.ny=y,a.Lg.add("",y),y=new Li,x=new jo,x.stroke="brown",x.bind(new La("text","",_i)),y.add(x),a.Lg.add("Comment",y),y=new Li,y.selectable=!1,y.avoidable=!1,x=new Wr,x.figure="Ellipse",x.fill="black",x.stroke=null,x.desiredSize=new Re(3,3).ja(),y.add(x),a.Lg.add("LinkLabel",y),a.Yi=new $t,y=new Or,y.selectionObjectName="GROUPPANEL",y.type=ni.Vertical,x=new jo,x.font="bold 12pt sans-serif",x.bind(new La("text","",_i)),y.add(x),x=new ni(ni.Auto),x.name="GROUPPANEL";var E=new Wr;E.figure="Rectangle",E.fill="rgba(128,128,128,0.2)",E.stroke="black",x.add(E),E=new Ms,E.padding=new Fi(5,5,5,5).ja(),x.add(E),y.add(x),a.ly=y,a.Yi.add("",y),a.Kh=new $t,y=new hi,x=new Wr,x.isPanelMain=!0,y.add(x),x=new Wr,x.toArrow="Standard",x.fill="black",x.stroke=null,x.strokeWidth=0,y.add(x),a.my=y,a.Kh.add("",y),y=new hi,x=new Wr,x.isPanelMain=!0,x.stroke="brown",y.add(x),a.Kh.add("Comment",y),y=new uo,y.type=ni.Auto,x=new Wr,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),x=new Ms,x.margin=new Fi(1.5,1.5,1.5,1.5).ja(),y.add(x),a.St=y,a.wt=y,y=new uo,y.type=ni.Link,x=new Wr,x.isPanelMain=!0,x.fill=null,x.stroke="dodgerblue",x.strokeWidth=3,y.add(x),a.Kt=y,a.fe=null,a.mq=!1,a.Ck=null,a.partManager=new Co,a.toolManager=new Ao,a.toolManager.initializeStandardTools(),a.defaultTool=a.toolManager,a.currentTool=a.defaultTool,a.nt=null,a.Wm=new ae,a.Vt=null,a.Wt=null,a.Mr=!1,a.commandHandler=qp(),a.eq=null,a.fq=en,a.Pw=!1,a.Mb=1,a.Yh=null,a.Oq=1,a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0,a.yq=1,a.tw=0,a.uw=new Te,a.zy=500,a.wp=new Te,a.wq=!1}qt.prototype.clear=function(){this.animationManager.Cc(),this.model.clear(),Gd=null,sd="",xg(this,!1),this.Xn.clear(),Rf(),this.Og.clear(),this.Xh=null,this.Ya(),this.Va(),this.N()};function xg(a,y){a.animationManager.Cc(!0),a.Hw=new yn().freeze(),a.nw=new yn().freeze();var x=a.skipsUndoManager,E=a.cc!==null&&a.cc!==void 0;E&&(a.skipsUndoManager=!0);var b=null;a.fe!==null&&(b=a.fe.part,b!==null&&a.remove(b));var z=[],ee=a.Wa.length;if(y){for(y=0;y<ee;y++)for(var re=a.Wa.s[y].parts;re.next();){var oe=re.value;oe!==b&&oe.data===null&&z.push(oe)}for(y=0;y<z.length;y++)a.remove(z[y])}for(y=0;y<ee;y++)a.Wa.s[y].clear();return a.partManager.clear(),a.De.clear(),a.Eh.clear(),a.ai.clear(),a.Ck=null,a.Xn.clear(),Rf(),a.Og.clear(),Kr=[],b!==null&&(a.add(b),a.partManager.parts.remove(b)),E&&(a.skipsUndoManager=x),z}function qp(){return null}qt.prototype.reset=function(){this.clear(),this.vb=!0,Qp(this),Eu(this),this.Wg=!0,$p(this),this.layout=new na,this.Wg=!1,this.model=gy(),this.model.undoManager=new qo,this.vb=this.rn=!1,this.N()},qt.prototype.setRTL=function(a){a=a===void 0?this.div:a,a===null&&(a=xn.document.body);var y=fr("div");y.dir="rtl",y.style.cssText="font-size: 14px; width: 1px; height: 1px; position: absolute; top: -1000px; overflow: scroll;",y.textContent="A",a.appendChild(y);var x="reverse";0<y.scrollLeft?x="default":(y.scrollLeft=1,y.scrollLeft===0&&(x="negative")),a.removeChild(y),this.bu=x},qt.prototype.setScrollWidth=function(a){a=a===void 0?this.div:a,a===null&&(a=xn.document.body);var y=0;if(fa){var x=um;y=nd,x===null&&(x=um=fr("p"),x.style.width="100%",x.style.height="200px",x.style.boxSizing="content-box",y=nd=fr("div"),y.style.position="absolute",y.style.visibility="hidden",y.style.width="200px",y.style.height="150px",y.style.boxSizing="content-box",y.appendChild(x)),y.style.overflow="hidden",a.appendChild(y);var E=x.offsetWidth;y.style.overflow="scroll",x=x.offsetWidth,E===x&&(x=y.clientWidth),a.removeChild(y),y=E-x,y!==0||Mr||(y=11)}this.Db=y,this.Gw=!0},qt.prototype.qb=function(a){a.classType===qt&&(this.autoScale=a)},qt.prototype.toString=function(a){a===void 0&&(a=0);var y="";if(this.div&&this.div.id&&(y=this.div.id),y='Diagram "'+y+'"',0>=a)return y;for(var x=this.Wa.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);return y};function wg(a,y){if(fa){if(y!=null||Ve("Diagram setup requires an argument DIV."),a.Ka!==null&&Ve("Diagram has already completed setup."),typeof y=="string"?a.Ka=xn.document.getElementById(y):y instanceof HTMLDivElement?a.Ka=y:Ve("No DIV or DIV id supplied: "+y),a.Ka===null&&Ve("Invalid DIV id; could not get element with id: "+y),a.Ka.H!==void 0&&Ve("Invalid div id; div already has a Diagram associated with it."),!a.ol&&xn.ResizeObserver){var x=Pn(function(){a.$b()},250);a.ol=new xn.ResizeObserver(function(){x()}),a.ol.observe(a.Ka)}xn.getComputedStyle(a.Ka,null).position==="static"&&(a.Ka.style.position="relative"),y=5;var E="rgba(2"+y+"5, 255, 255, 0)";y--,a.Ka.style["-webkit-tap-highlight-color"]=E,a.Ka.innerHTML="",a.Ka.H=a,a.Ka.goDiagram=a,a.Ka.go=xn.go;var b=new zl(a);if(b.style!==void 0&&(b.style.position="absolute",b.style.top="0px",b.style.left="0px",xn.getComputedStyle(a.Ka,null).getPropertyValue("direction")==="rtl"&&(a.tn=!0),b.style.zIndex="2",b.style.userSelect="none",b.style.MozUserSelect="none",b.style.touchAction="none",b.style.letterSpacing="normal !important",b.style.wordSpacing="normal !important"),a.ta=b,a.ib=b.context,E=a.ib,a.Mb=a.computePixelRatio(),a.viewSize.w()||(a.Aa=a.Ka.clientWidth||1,a.ya=a.Ka.clientHeight||1),kg(a,a.Aa,a.ya),a.Ka.insertBefore(b.Oa,a.Ka.firstChild),b=new zl(null),b.width=1,b.height=1,a.jw=b,a.oy=b.context,fa){b=fr("div");var z=fr("div");b.style.position="absolute",b.style.overflow="auto",b.style.width=a.Aa+"px",b.style.height=a.ya+"px",b.style.zIndex="1",z.style.position="absolute",z.style.width="1px",z.style.height="1px",a.Ka.appendChild(b),b.appendChild(z),b.onscroll=tm,b.addEventListener("pointerdown",nm),b.H=a,b.uy=!0,b.vy=!0,a.ku=b,a.hu=z}a.hk=Pn(function(){a.Yh=null,a.N()},300),a.Ov=Pn(function(){Pg(a)},250),a.preventDefault=function(ee){return ee.preventDefault(),!1},a.$j=function(ee){if(a.isEnabled){var re=xl(a,ee,!0);re.bubbles=!0;var oe=0,se=0;re.delta=0,ee.deltaX!==void 0?(ee.deltaX!==0&&(oe=0<ee.deltaX?1:-1),ee.deltaY!==0&&(se=0<ee.deltaY?1:-1),re.delta=Math.abs(ee.deltaX)>Math.abs(ee.deltaY)?-oe:-se):ee.wheelDeltaX!==void 0?(ee.wheelDeltaX!==0&&(oe=0<ee.wheelDeltaX?-1:1),ee.wheelDeltaY!==0&&(se=0<ee.wheelDeltaY?-1:1),re.delta=Math.abs(ee.wheelDeltaX)>Math.abs(ee.wheelDeltaY)?-oe:-se):ee.wheelDelta!==void 0&&ee.wheelDelta!==0&&(re.delta=0<ee.wheelDelta?1:-1),a.doMouseWheel(),_l(re,ee)}},a.aA=function(ee){a.isEnabled&&(a.Vk=!1,xl(a,ee,!0),ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())},a.ui=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.Yt;re[ee.pointerId]===void 0&&(re[ee.pointerId]=ee),re=a.oj;var oe=!1;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType)if(re[1]!==null&&re[1].pointerId===ee.pointerId)re[1]=ee,oe=!0;else if(re[0]===null)re[0]=ee;else if(re[1]===null)re[1]=ee,oe=!0;else{ee.preventDefault();return}else re[0]=ee;(re=ee.pointerType==="touch"||ee.pointerType==="pen")&&(a.qu=!1,a.wq=!0);var se=oe;oe=Lg(a,ee,!0,!1,!0,se),jd(a,ee,oe),oe.targetDiagram=Ag(ee,ee.target),oe.targetObject=null,se||oe.clone(a.bq),se=a.uw,re=re?25:10,ee.timeStamp-a.tw<a.zy&&!(Math.abs(se.x-ee.screenX)>re||Math.abs(se.y-ee.screenY)>re)?a.yq++:a.yq=1,oe.clickCount=a.yq,a.tw=ee.timeStamp,a.uw.sg(ee.screenX,ee.screenY),a.doMouseDown(),ee.button===1?ee.preventDefault():_l(oe,ee)}},a.dk=function(ee){if(a.isEnabled){a.Vk=!0;var re=a.oj;if(re[0]===null||re[0].pointerId!==ee.pointerId&&re[0].pointerType===ee.pointerType){if(re[1]!==null&&re[1].pointerId===ee.pointerId){re[1]=ee;return}if(re[0]===null)re[0]=ee;else return}else re[0]=ee;if(re[0].pointerId===ee.pointerId){re=Lg(a,ee,!1,!1,!1,re[1]!==null);var oe=xn.document.elementFromPoint(ee.clientX,ee.clientY)||null;oe!==null&&oe.shadowRoot!==void 0&&oe.shadowRoot!==null&&(oe=oe.shadowRoot.elementFromPoint(ee.clientX,ee.clientY));var se=a,ue=ee;oe&&oe.H&&(ue=ee,se=oe.H),re.targetDiagram=se,jd(a,ue,re),re.targetObject=null,a.doMouseMove(),_l(re,ee)}}},a.fk=function(ee){if(a.isEnabled){a.Vk=!0;var re=ee.pointerType==="touch"||ee.pointerType==="pen",oe=a.Yt;if(re&&a.qu)delete oe[ee.pointerId],ee.preventDefault();else if(oe=a.oj,oe[0]===null||oe[0].pointerId!==ee.pointerId&&oe[0].pointerType===ee.pointerType)oe[1]!==null&&oe[1].pointerId===ee.pointerId&&(oe[1]=null);else{oe[0]=null,oe=Lg(a,ee,!1,!0,!0,!1);var se=xn.document.elementFromPoint(ee.clientX,ee.clientY)||null;se!==null&&se.shadowRoot!==void 0&&se.shadowRoot!==null&&(se=se.shadowRoot.elementFromPoint(ee.clientX,ee.clientY)),se!==null&&se.H instanceof qt&&se.H!==a&&jd(se.H,ee,oe),se===null&&(se=ee.target),jd(a,ee,oe),oe.clickCount=a.yq,oe.targetDiagram=Ag(ee,se),oe.targetObject=null,a.doMouseUp(),_l(oe,ee),re&&(a.wq=!1)}}},a.ek=function(ee){if(a.isEnabled){a.Vk=!1;var re=a.Yt;re[ee.pointerId]&&delete re[ee.pointerId],re=a.oj,re[0]!==null&&re[0].pointerId===ee.pointerId&&(re[0]=null),re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null),ee.pointerType!=="touch"&&ee.pointerType!=="pen"&&(ee=a.currentTool,ee.cancelWaitAfter(),ee.standardMouseOver())}},a.ck=function(ee){var re=a.oj;re[0]!==null&&re[0].pointerId===ee.pointerId?(re[0]=null,a.wq=!1):re[1]!==null&&re[1].pointerId===ee.pointerId&&(re[1]=null)},a.Vp=E.Z["d"+Nc[1]+Nc[2]+"wI"+Yd.slice(1,5)]["b"+Hx.slice(1,y)](E.Z,Dc,y,y),E.Vc(!0),rv(a),a.nl==="svg"&&(y=a.pj.get("svg"),a.Ka.appendChild(y.Oa),a.ib=y.context)}}qt.prototype.addEventListener=function(a,y,x,E){a.addEventListener(y,x,{capture:E,passive:!1})},qt.prototype.removeEventListener=function(a,y,x,E){a.removeEventListener(y,x,{capture:E})};function rv(a){var y=a.ta.Oa;y instanceof HTMLCanvasElement||(y=a.div),a.addEventListener(y,"pointerdown",a.ui,!1),a.addEventListener(y,"pointermove",a.dk,!1),a.addEventListener(y,"pointerup",a.fk,!1),a.addEventListener(y,"pointerout",a.ek,!1),a.addEventListener(y,"pointercancel",a.ck,!1),a.addEventListener(y,"pointerenter",a.bz,!1),a.addEventListener(y,"pointerleave",a.cz,!1),a.addEventListener(y,"wheel",a.$j,!1),a.addEventListener(y,"keydown",a.Qz,!1),a.addEventListener(y,"keyup",a.Rz,!1),a.addEventListener(y,"blur",a.Ny,!1),a.addEventListener(y,"focus",a.Oy,!1),a.addEventListener(y,"selectstart",function(x){return x.preventDefault(),!1},!1),a.addEventListener(y,"contextmenu",function(x){return x.preventDefault(),!1},!1),a.addEventListener(xn,"resize",a.Ov,!1)}function Is(a){30<a.Sq&&(a.Yh=1)}function Ec(a,y){a.Yh!==null&&(a.Yh=null,y&&a.hk(),$i&&$i.nx||(a.Sq=0,a.zw=[0,0,0,0,0],a.Tq=0))}qt.prototype.computePixelRatio=function(){return this.Yh!==null?this.Yh:xn.devicePixelRatio||1},qt.prototype.doMouseMove=function(){this.currentTool.doMouseMove()},qt.prototype.doMouseDown=function(){this.currentTool.doMouseDown()},qt.prototype.doMouseUp=function(){this.currentTool.doMouseUp()},qt.prototype.doMouseWheel=function(){this.currentTool.doMouseWheel()},qt.prototype.doKeyDown=function(){this.currentTool.doKeyDown()},qt.prototype.doKeyUp=function(){this.currentTool.doKeyUp()},qt.prototype.doFocus=function(){this.focus()},qt.prototype.focus=function(){if(this.ta)if(this.scrollsPageOnFocus)this.ta.focus();else{var a=xn.scrollX||xn.pageXOffset,y=xn.scrollY||xn.pageYOffset;this.ta.focus(),xn.scrollTo(a,y)}},qt.prototype.Oy=function(){this.H.R("GainedFocus")},qt.prototype.Ny=function(){this.H.R("LostFocus")};function Pg(a){if(a.ta!==null){var y=a.Ka;if(y!==null&&y.clientWidth!==0&&y.clientHeight!==0){a.Gw||a.setScrollWidth();var x=a.gf?a.Db:0,E=a.Be?a.Db:0,b=a.Mb;a.Mb=a.computePixelRatio(),a.Mb!==b&&(a.pn=!0,a.$b()),(y.clientWidth!==a.Aa+x||y.clientHeight!==a.ya+E)&&(a.Ee=!0,a.Fc=!0,y=a.layout,y!==null&&y.isViewportSized&&a.autoScale===ys&&(a.Jk=!0,y.C()),a.ld||a.$b())}}}function $p(a){var y=new Xa;y.name="Background",a.Al(y),y=new Xa,y.name="",a.Al(y),y=new Xa,y.name="Foreground",a.Al(y),y=new Xa,y.name="Adornment",y.isTemporary=!0,y.isInDocumentBounds=!1,a.Al(y),y=new Xa,y.name="Tool",y.isTemporary=!0,y.isInDocumentBounds=!0,a.Al(y),y=new Xa,y.name="Grid",y.allowSelect=!1,y.pickable=!1,y.isTemporary=!0,y.isInDocumentBounds=!1,a.Ww(y,a.Qj("Background"))}function em(a){var y=new ni(ni.Grid);y.name="GRID";var x=new Wr;return x.figure="LineH",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wr,x.figure="LineH",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wr,x.figure="LineH",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new Wr,x.figure="LineV",x.stroke="lightgray",x.strokeWidth=.5,x.interval=1,y.add(x),x=new Wr,x.figure="LineV",x.stroke="gray",x.strokeWidth=.5,x.interval=5,y.add(x),x=new Wr,x.figure="LineV",x.stroke="gray",x.strokeWidth=1,x.interval=10,y.add(x),x=new ir,x.add(y),x.layerName="Grid",x.zOrder=0,x.isInDocumentBounds=!1,x.isAnimated=!1,x.pickable=!1,x.locationObjectName="GRID",a.add(x),a.partManager.parts.remove(x),y.visible=!1,y}function tm(){this.H.gu?this.H.gu=!1:this.H.isEnabled?this.H.kx(this):Zd(this.H)}function nm(a){this.H.isEnabled?(this.H.lu=a.target.scrollTop,this.H.ju=a.target.scrollLeft):Zd(this.H)}qt.prototype.kx=function(a){if(this.ta!==null){var y=this.ku,x=this.hu;this.qr=!0;var E=this.documentBounds,b=this.viewportBounds,z=this.rj,ee=E.x-z.left,re=E.y-z.top,oe=E.width+z.left+z.right,se=E.height+z.top+z.bottom,ue=E.right+z.right;z=E.bottom+z.bottom;var fe=b.x;E=b.y;var ve=b.width,xe=b.height,Pe=b.right,Fe=b.bottom;b=this.scale;var Je=a.scrollLeft;if(this.tn)switch(this.bu){case"negative":Je=Je+a.scrollWidth-a.clientWidth;break;case"reverse":Je=a.scrollWidth-Je-a.clientWidth}var We=Je;ve<oe||xe<se?(Je=Te.allocAt(this.position.x,this.position.y),this.allowHorizontalScroll&&this.ju!==We&&(Je.x=We/b+ee,this.ju=We),this.allowVerticalScroll&&this.lu!==a.scrollTop&&(Je.y=a.scrollTop/b+re,this.lu=a.scrollTop),this.position=Je,Te.free(Je),this.Ee=this.qr=!1):(Je=Te.alloc(),a.uy&&this.allowHorizontalScroll&&(ee<fe&&(this.position=Je.h(We+ee,this.position.y)),ue>Pe&&(this.position=Je.h(-(y.scrollWidth-this.Aa)+We-this.Aa/b+ue,this.position.y))),a.vy&&this.allowVerticalScroll&&(re<E&&(this.position=Je.h(this.position.x,a.scrollTop+re)),z>Fe&&(this.position=Je.h(this.position.x,-(y.scrollHeight-this.ya)+a.scrollTop-this.ya/b+z))),Te.free(Je),this.vd=!0,this.Ee=this.qr=!1,E=this.documentBounds,b=this.viewportBounds,ue=E.right,Pe=b.right,z=E.bottom,Fe=b.bottom,ee=E.x,fe=b.x,re=E.y,E=b.y,ve>=oe&&ee>=fe&&ue<=Pe&&(x.style.width="1px"),xe>=se&&re>=E&&z<=Fe&&(x.style.height="1px"))}},qt.prototype.computeBounds=function(a){return a===void 0&&(a=new ut),ss(this),Cg(this,a)};function Cg(a,y){if(a.fixedBounds.w())return y.assign(a.fixedBounds),y.Co(a.yb),y;for(var x=!0,E=a.Wa.s,b=E.length,z=0;z<b;z++){var ee=E[z];if(ee.visible&&ee.isInDocumentBounds){ee=ee.Pa.s;for(var re=ee.length,oe=0;oe<re;oe++){var se=ee[oe];se.isInDocumentBounds&&se.isVisible()&&(se=se.actualBounds,se.w()&&(x?(x=!1,y.assign(se)):y.ed(se)))}}}return x&&y.h(0,0,0,0),y.Co(a.yb),y}qt.prototype.computePartsBounds=function(a,y){y===void 0&&(y=!1);var x=null;if(Bn(a))for(var E=0;E<a.length;E++){var b=a[E];!y&&b instanceof hi||(b.Va(),x===null?x=b.actualBounds.copy():x.ed(b.actualBounds))}else for(a=a.iterator;a.next();)E=a.value,!y&&E instanceof hi||(E.Va(),x===null?x=E.actualBounds.copy():x.ed(E.actualBounds));return x===null?new ut(NaN,NaN,0,0):x};function Il(a,y){if((y||a.hf)&&!a.vb&&a.ta!==null&&a.documentBounds.w()){if(a.vb=!0,y){var x=a.initialPosition;if(x.w()){a.vb=!1,a.position=x;return}x=Te.alloc(),x.xi(a.documentBounds,a.initialDocumentSpot);var E=a.viewportBounds;E=ut.allocAt(0,0,E.width,E.height);var b=Te.alloc();b.xi(E,a.initialViewportSpot),b.h(x.x-b.x,x.y-b.y),a.position=b,ut.free(E),Te.free(b),Te.free(x)}x=a.yh,y&&a.Fg!==ys&&(x=a.Fg);var z=x!==ys?zd(a,x):a.scale;x=a.pa.x,E=a.pa.y,b=a.Aa/z;var ee=a.ya/z,re=a.zk,oe=a.pq;y&&!re.sb()&&(oe.sb()||oe.Xb())&&(re=oe.Xb()?Mi:oe),Eg(a,a.documentBounds,b,ee,re,y),y=a.scale,a.scale=z,a.vb=!1,z=a.viewportBounds,pt.B(z.x,x)&&pt.B(z.y,E)&&pt.B(z.width,b)&&pt.B(z.height,ee)||a.onViewportBoundsChanged(new ut(x,E,b,ee),z,y,!1)}}function zd(a,y){var x=a.Pp;if(a.ta===null)return x;a.Va();var E=a.documentBounds;if(!E.w())return x;var b=E.width;E=E.height;var z=a.Aa+(a.gf?a.Db:0),ee=a.ya+(a.Be?a.Db:0),re=z/b,oe=ee/E;return y===ll?(y=Math.min(oe,re),y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):y===ld?(y=oe>re?(ee-a.Db)/E:(z-a.Db)/b,y>x&&(y=x),y<a.minScale&&(y=a.minScale),y>a.maxScale&&(y=a.maxScale),y):a.scale}qt.prototype.zoomToFit=function(){var a=this.sj;this.sj=Ah,this.scale=zd(this,ll),a!==Ah&&(Il(this,!1),Eg(this,this.documentBounds,this.Aa/this.Ca,this.ya/this.Ca,this.zk,!1)),this.sj=a},Ce=qt.prototype,Ce.BA=function(a,y){y===void 0&&(y=ll);var x=a.width,E=a.height;if(!(x===0||E===0||isNaN(x)&&isNaN(E))){var b=1;if(y===ll||y===ld)if(isNaN(x))b=this.viewportBounds.height*this.scale/E;else if(isNaN(E))b=this.viewportBounds.width*this.scale/x;else{b=this.Aa;var z=this.ya;b=y===ld?z/E>b/x?(z-(this.Be?this.Db:0))/E:(b-(this.gf?this.Db:0))/x:Math.min(z/E,b/x)}this.scale=b,this.position=new Te(a.x,a.y)}},Ce.Jy=function(a,y){this.Va();var x=this.documentBounds,E=this.viewportBounds;this.position=new Te(x.x+(a.x*x.width+a.offsetX)-(y.x*E.width-y.offsetX),x.y+(a.y*x.height+a.offsetY)-(y.y*E.height-y.offsetY))},Ce.zz=function(a){if(a instanceof kt){this.eq=a;var y=Te.alloc();this.fq=this.op(a.ga(Ji,y)),Te.free(y)}else this.eq=null,this.fq=en};function Eg(a,y,x,E,b,z){var ee=Te.allocAt(a.pa.x,a.pa.y),re=ee.x,oe=ee.y;if(a.eq!==null){var se=Te.alloc();se=a.eq.ga(Ji,se),re=se.x-a.fq.x/a.scale,oe=se.y-a.fq.y/a.scale,b=Zi,Te.free(se)}(z||a.scrollMode===Ah)&&(b.sb()&&(x>y.width&&(re=y.x+(b.x*y.width+b.offsetX)-(b.x*x-b.offsetX)),E>y.height&&(oe=y.y+(b.y*y.height+b.offsetY)-(b.y*E-b.offsetY))),b=a.rj,z=x-y.width,x<y.width+b.left+b.right?(re=Math.min(re+x/2,y.right+Math.max(z,b.right)-x/2),re=Math.max(re,y.left-Math.max(z,b.left)+x/2),re-=x/2):re>y.left?re=y.left:re<y.right-x&&(re=y.right-x),x=E-y.height,E<y.height+b.top+b.bottom?(oe=Math.min(oe+E/2,y.bottom+Math.max(x,b.bottom)-E/2),oe=Math.max(oe,y.top-Math.max(x,b.top)+E/2),oe-=E/2):oe>y.top?oe=y.top:oe<y.bottom-E&&(oe=y.bottom-E)),ee.x=isFinite(re)?re:-a.yb.left,ee.y=isFinite(oe)?oe:-a.yb.top,a.positionComputation!==null&&(y=a.positionComputation(a,ee),ee.x=y.x,ee.y=y.y),Yp(a.Yd,a.pa,ee),a.pa.h(ee.x,ee.y),Eu(a),Te.free(ee)}Ce.Ol=function(a,y){if(y===void 0&&(y=!0),y){if(a=Ou(this,a,function(x){return x.part},function(x){return x.canSelect()}),a instanceof ir)return a}else if(a=Ou(this,a,function(x){return x.part}),a instanceof ir)return a;return null},Ce.ic=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null),ss(this);for(var E=this.Wa.iteratorBackwards;E.next();){var b=E.value;if(b.visible&&(b=b.ic(a,y,x),b!==null))return b}return null};function Ou(a,y,x,E){for(x===void 0&&(x=null),E===void 0&&(E=null),ss(a),a=a.Wa.iteratorBackwards;a.next();){var b=a.value;if(b.visible&&!b.isTemporary&&(b=b.ic(y,x,E),b!==null))return b}return null}Ce.lz=function(a,y,x){return y===void 0&&(y=!0),Ac(this,a,function(E){return E.part},y?function(E){return E instanceof ir&&E.canSelect()}:null,x)};function Ac(a,y,x,E,b){for(x===void 0&&(x=null),E===void 0&&(E=null),b instanceof cn||b instanceof yn||(b=new yn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var z=a.value;z.visible&&!z.isTemporary&&z.ji(y,x,E,b)}return b}Ce.ji=function(a,y,x,E){y===void 0&&(y=null),x===void 0&&(x=null),E instanceof cn||E instanceof yn||(E=new yn),ss(this);for(var b=this.Wa.iteratorBackwards;b.next();){var z=b.value;z.visible&&z.ji(a,y,x,E)}return E},Ce.ux=function(a,y,x,E){return y===void 0&&(y=!1),x===void 0&&(x=!0),gf(this,a,function(b){return b instanceof ir&&(!x||b.canSelect())},y,E)},Ce.Cf=function(a,y,x,E,b){y===void 0&&(y=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof cn||b instanceof yn||(b=new yn),ss(this);for(var z=this.Wa.iteratorBackwards;z.next();){var ee=z.value;ee.visible&&ee.Cf(a,y,x,E,b)}return b},Ce.Nu=function(a,y,x,E,b,z){var ee=new yn;ss(this);for(var re=this.Wa.iteratorBackwards;re.next();){var oe=re.value;oe.visible&&oe.Nu(a,y,x,E,ee,b,z)}return ee};function gf(a,y,x,E,b){var z=null;for(z===void 0&&(z=null),x===void 0&&(x=null),E===void 0&&(E=!1),b instanceof cn||b instanceof yn||(b=new yn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var ee=a.value;ee.visible&&!ee.isTemporary&&ee.Cf(y,z,x,E,b)}return b}Ce.mz=function(a,y,x,E,b){return x===void 0&&(x=!0),E===void 0&&(E=!0),Lc(this,a,y,function(z){return z instanceof ir&&(!E||z.canSelect())},x,b)},Ce.og=function(a,y,x,E,b,z){x===void 0&&(x=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof cn||b instanceof yn)&&(z=b),b=!0),z instanceof cn||z instanceof yn||(z=new yn),ss(this);for(var ee=this.Wa.iteratorBackwards;ee.next();){var re=ee.value;re.visible&&re.og(a,y,x,E,b,z)}return z};function Lc(a,y,x,E,b,z){var ee=null;for(ee===void 0&&(ee=null),E===void 0&&(E=null),b===void 0&&(b=!0),b!==!1&&b!==!0&&((b instanceof cn||b instanceof yn)&&(z=b),b=!0),z instanceof cn||z instanceof yn||(z=new yn),ss(a),a=a.Wa.iteratorBackwards;a.next();){var re=a.value;re.visible&&!re.isTemporary&&re.og(y,x,ee,E,b,z)}return z}qt.prototype.acceptEvent=function(a){return xl(this,a,a instanceof MouseEvent)};function xl(a,y,x){var E=a.Qg;return a.Qg=a.cj,a.cj=E,E.diagram=a,E.event=y,x?jd(a,y,E):(E.viewPoint=a.Qg.viewPoint,E.documentPoint=a.Qg.documentPoint),a=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),E.modifiers=a,E.button=y.button,y.buttons!==void 0&&(E.buttons=y.buttons),Mr&&y.button===0&&y.ctrlKey&&(E.button=2),E.down=!1,E.up=!1,E.clickCount=1,E.delta=0,E.handled=!1,E.bubbles=!1,E.timestamp=y.timeStamp,E.isMultiTouch=!1,E.targetDiagram=Ag(y,y.target),E.targetObject=null,E}function Ag(a,y){return y===null?null:(y=y.H)?y:((y=a.path)||typeof a.composedPath!="function"||(y=a.composedPath()),y&&y[0]&&y[0].H?y[0].H:null)}function Lg(a,y,x,E,b,z){var ee=a.Qg;return a.Qg=a.cj,a.cj=ee,ee.diagram=a,ee.clickCount=1,a=ee.delta=0,y.ctrlKey&&(a+=1),y.altKey&&(a+=2),y.shiftKey&&(a+=4),y.metaKey&&(a+=8),ee.modifiers=a,ee.event=y,ee.timestamp=y.timeStamp,ee.button=y.button,ee.buttons=y.buttons,Mr&&y.button===0&&y.ctrlKey&&(ee.button=2),ee.down=x,ee.up=E,ee.handled=!1,ee.bubbles=b,ee.isMultiTouch=z,ee}function _l(a,y){return a.bubbles?!0:(y.stopPropagation!==void 0&&y.stopPropagation(),y.cancelable!==!1&&y.preventDefault(),y.cancelBubble=!0,!1)}qt.prototype.Qz=function(a){var y=this.H;if(!this.H.isEnabled)return!1;var x=xl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.down=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del";break;case 48:x.key="0";break;case 187:case 61:case 107:x.key="Add";break;case 189:case 173:case 109:x.key="Subtract";break;case 27:x.key="Esc"}return y.doKeyDown(),_l(x,a)},qt.prototype.Rz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xl(y,a,!1);switch(x.key=String.fromCharCode(a.which),x.up=!0,a.which){case 8:x.key="Backspace";break;case 33:x.key="PageUp";break;case 34:x.key="PageDown";break;case 35:x.key="End";break;case 36:x.key="Home";break;case 37:x.key="Left";break;case 38:x.key="Up";break;case 39:x.key="Right";break;case 40:x.key="Down";break;case 45:x.key="Insert";break;case 46:x.key="Del"}return y.doKeyUp(),_l(x,a)},qt.prototype.bz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xl(y,a,!0);return y.mouseEnter!==null&&y.mouseEnter(x),y.currentTool.standardMouseOver(),_l(x,a)},qt.prototype.cz=function(a){var y=this.H;if(!y.isEnabled)return!1;var x=xl(y,a,!0);return y.mouseLeave!==null&&y.mouseLeave(x),_l(x,a)},qt.prototype.getMouse=function(a){var y=this.ta;if(y===null)return new Te(0,0);var x=y.getBoundingClientRect();return y=a.clientX-this.Aa/x.width*x.left,a=a.clientY-this.ya/x.height*x.top,this.Ab!==null?Rt(new Te(y,a),this.Ab):new Te(y,a)};function jd(a,y,x){var E=a.ta,b=a.Aa,z=a.ya,ee=0,re=0;E!==null&&(E=E.getBoundingClientRect(),ee=y.clientX-b/E.width*E.left,re=y.clientY-z/E.height*E.top),x.viewPoint.h(ee,re),a.Ab!==null?(y=Te.allocAt(ee,re),a.Ab.Cd(y),x.documentPoint.assign(y),Te.free(y)):x.documentPoint.h(ee,re)}function bg(a,y,x){if(a.oj[0]!==null){y=a.oj[y];var E=a.ta;E!==null&&(E=E.getBoundingClientRect(),x.h(y.clientX-a.Aa/E.width*E.left,y.clientY-a.ya/E.height*E.top))}}qt.prototype.Ya=function(){this.Zi||(this.Zi=!0,this.$b(!1))};function im(a){a.ld||ss(a),a.Va()}qt.prototype.redraw=function(){this.vb||this.ld||(this.N(),this.bd())},Ce=qt.prototype,Ce.Pz=function(){return this.kg},Ce.Xy=function(a){a===void 0&&(a=null);var y=this.animationManager,x=y.isEnabled;y.Cc(),y.isEnabled=!1,wl(this),this.hf=!1,this.du=new Te(NaN,NaN),y.isEnabled=x,this.ld=!0;var E=this;a!==null&&zi(function(){E.ld=!1,Bu(y,"Model"),a(E)},1)},Ce.$b=function(a){if(a===void 0&&(a=!1),this.kg!==!0&&!(this.vb||a===!1&&this.ld)){this.kg=!0;var y=this;xn.requestAnimationFrame(function(){y.kg&&y.bd()})}},Ce.bd=function(){(!this.fn||this.kg)&&(this.fn&&(this.fn=!1),wl(this))};function id(a,y,x){!a.Ee||a.vb||a.animationManager.defaultAnimation.isAnimating||Zd(a)||(y&&ss(a),x&&Il(a,!1))}function wl(a,y){if(!a.ld&&(a.kg=!1,a.Ka!==null||a.wo.w())){a.ld=!0;var x=a.animationManager,E=a.Xn;if(!x.isAnimating&&E.length!==0){for(var b=E.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];Na(re,!1),re.v()}E.clear()}E=a.ow,0<E.count&&(E.each(function(oe){oe.Nv()}),E.clear()),b=E=!1,x.defaultAnimation.isAnimating&&(b=!0,E=a.skipsUndoManager,a.skipsUndoManager=!0),x.zb||Pg(a),id(a,!1,!0),a.fe!==null&&(a.fe.visible&&!a.mq&&(Cu(a),a.mq=!0),!a.fe.visible&&a.mq&&(a.mq=!1)),ss(a),z=!1,(!a.hf||a.xh)&&(a.hf?Rg(a,!a.Jk):(a.Ea("Initial Layout"),x.isEnabled===!1&&x.Cc(),Rg(a,!1)),z=!0),a.Jk=!1,ss(a),a.ou||im(a),id(a,!0,!1),ee=!1,z?(x=ut.alloc(),x.assign(a.viewportBounds),a.hf||(ee=a.hf=!0,a.skipsUndoManager||(a.undoManager.isPendingClear=!0),a.undoManager.isPendingUnmodified=!0,Mg(a)),a.R("LayoutCompleted"),id(a,!0,!1),ut.free(x)):x.Ok&&x.Qw&&(a.Fg!==ys?a.scale=zd(a,a.Fg):a.yh!==ys?a.scale=zd(a,a.yh):(x=a.initialScale,isFinite(x)&&0<x&&(a.scale=x)),Il(a,!0)),z&&ee&&a.eb("Initial Layout"),ss(a),y||a.gc(a.ib),b&&(a.skipsUndoManager=E),a.ld=!1}}function Mg(a){if(a.Fg!==ys)a.scale=zd(a,a.Fg);else if(a.yh!==ys)a.scale=zd(a,a.yh);else{var y=a.initialScale;isFinite(y)&&0<y&&(a.scale=y)}Il(a,!0),y=a.Wa.s,a.Fd(y,y.length,a,a.viewportBounds),a.R("InitialLayoutCompleted"),a.du.assign(a.pa),Cu(a)}function ss(a){if(a.De.count!==0&&(a.ld||!a.animationManager.isTicking)){for(var y=0;23>y;y++){var x=a.De.iterator;if(x===null||a.De.count===0)break;a.De=new yn,a.Nv(x,a.De)}a.nodes.each(function(E){E instanceof Or&&E.U&65536&&(E.U=E.U^65536)})}}Ce.Nv=function(a,y){for(a.reset();a.next();){var x=a.value;!x.Zc()||x instanceof Or||(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))}for(a.reset();a.next();)x=a.value,x instanceof Or&&x.isVisible()&&bc(this,x);for(a.reset();a.next();)x=a.value,x instanceof hi&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x));for(a.reset();a.next();)x=a.value,x instanceof uo&&x.isVisible()&&(x.si()?(x.measure(1/0,1/0),x.arrange()):y.add(x))};function bc(a,y){for(var x=si(),E=si(),b=y.memberParts;b.next();){var z=b.value;z.isVisible()&&(z instanceof Or?(hl(z)||Ls(z)||hd(z))&&bc(a,z):z instanceof hi?z.fromNode===y||z.toNode===y?E.push(z):x.push(z):(z.measure(1/0,1/0),z.arrange()))}for(a=x.length,b=0;b<a;b++)z=x[b],z.measure(1/0,1/0),z.arrange();for(Pi(x),y.measure(1/0,1/0),y.arrange(),a=E.length,y=0;y<a;y++)x=E[y],x.measure(1/0,1/0),x.arrange();Pi(E)}Ce.Fd=function(a,y,x,E){if(this.vd||this.animationManager.isAnimating)for(var b=0;b<y;b++)a[b].Fd(x,E)},Ce.gc=function(a){if(this.Ka!==null){if(this.ta===null&&Ve("No canvas specified"),this.nl==="svg"){if(this.Ka!==null){var y=this.animationManager;if(!y.zb&&(!y.isAnimating||y.isTicking)){Hd(this);var x=this.Aa,E=this.ya;if(a.Gv.resize(x,E,x,E),x=this.Wa.s,E=x.length,this.Fd(x,E,this,this.viewportBounds),this.Fc||y.isAnimating){y=this.pa;var b=this.Ca,z=Math.round(y.x*b)/b,ee=Math.round(y.y*b)/b,re=this.Ab;for(re.reset(),b!==1&&re.scale(b),y.x===0&&y.y===0||re.translate(-z,-ee),a.ti=null,$y(a,re.m11,re.m12,re.m21,re.m22,re.dx,re.dy),this.pb!==1&&(a.globalAlpha=this.pb),Ch(this,a),y=this.Mb,this.ta.context.setTransform(y,0,0,y,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya),y=0;y<E;y++)x[y].gc(a,this);a=!1,this.Yf?Ud(this.Yf,this)&&(a=this.Vp()):a=!0,a&&(vi.prototype.Cd=vi.prototype.Eu),this.Fc=this.vd=!1}}}}else e:if(z=this.animationManager,!z.zb&&(!z.isAnimating||z.isTicking)&&(x=new Date,Hd(this),this.Ka.style.opacity!=="0")){if(E=a!==this.ib,y=this.Wa.s,b=y.length,this.Fd(y,b,this,this.viewportBounds),E)a.Vc(!0),this.vd=!0;else if(!this.Fc&&!z.isAnimating)break e;z=this.Ab,z.reset(),ee=this.Mb,re=this.pa;var oe=this.Ca,se=Math.round(re.x*oe)/oe,ue=Math.round(re.y*oe)/oe;for(oe!==1&&z.scale(oe),re.x===0&&re.y===0||z.translate(-se,-ue),a.setTransform(ee,0,0,ee,0,0),a.clearRect(0,0,this.Aa,this.ya),this.pb!==1&&(a.globalAlpha=this.pb),Ch(this,a),re=0;re<b;re++)a.setTransform(ee,0,0,ee,0,0),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),a.yc(),y[re].gc(a,this);if(y=!1,this.Yf?Ud(this.Yf,this)&&(y=this.Vp()):y=!0,y&&(vi.prototype.Cd=vi.prototype.Eu),E?(this.ib.Vc(!0),this.vd=!0):this.Fc=this.vd=!1,y=+new Date-+x,E=$i&&$i.nx,x=this.zw,E||this.Yh===null){for(x[this.Tq]=y,this.Tq=(this.Tq+1)%x.length,b=y=0;b<x.length;b++)y+=x[b];this.Sq=y/x.length}if(this.pb!==1&&(a.globalAlpha=1),E)for(a.setTransform(1,0,0,1,0,0),E=0;E<x.length;E++)a.fillText(x[E].toString(),20,150+ +(20*E))}}};function pf(a,y,x,E,b,z,ee,re,oe,se){if(a.Ka!==null){a.ta===null&&Ve("No canvas specified"),ee===void 0&&(ee=null),re===void 0&&(re=null),oe===void 0&&(oe=!1),se===void 0&&(se=!1),Hd(a),a.ib.Vc(!0),a.vd=!0,a.$i=!0;var ue=a.Ca;a.Ca=b;var fe=a.Wa.s,ve=fe.length;try{var xe=new ut(z.x,z.y,E.width/b,E.height/b),Pe=xe.copy();Pe.Co(x),Cu(a,Pe),ss(a),a.Fd(fe,ve,a,xe),y.setTransform(1,0,0,1,0,0),y.clearRect(0,0,E.width,E.height),re!==null&&re!==""&&(y.fillStyle=re,y.ox(0,0,E.width,E.height));var Fe=a.Mb;y.scale(Fe,Fe);var Je=vi.alloc();Je.reset(),Je.translate(x.left,x.top),Je.scale(b),z.x===0&&z.y===0||Je.translate(-z.x,-z.y),y.setTransform(Je.m11,Je.m12,Je.m21,Je.m22,Je.dx,Je.dy),y.yc(),y instanceof el&&$y(y,Je.m11,Je.m12,Je.m21,Je.m22,Je.dx,Je.dy),vi.free(Je),Ch(a,y),y.globalAlpha=a.pb;var We=a.Qj("Grid");if(ee){var rt=new yn,at=ee.iterator;for(at.reset();at.next();){var ht=at.value;ht instanceof ir&&(se||ht.layer!==We)&&(ht.Gj(),rt.add(ht))}for(se=0;se<ve;se++)_p(fe[se],y,a,rt,oe);rt.each(function(Jt){return Jt.Gj()})}else for(rt=0;rt<ve;rt++){var bt=fe[rt];bt===We?se&&bt.gc(y,a,!0):bt.gc(y,a,oe)}a.$i=!1,a.Yf&&Ud(a.Yf,a)&&a.Vp()}finally{a.Ca=ue,a.ib.Vc(!0),a.vd=!0,a.Fd(fe,ve,a,a.viewportBounds),Cu(a),a.ib instanceof el&&(a.ib.Nj.PA(),a.redraw())}}}Ce.Gf=function(a){return this.Rg[a]},Ce.Xx=function(a,y){a==="minDrawingLength"&&(this.Oq=y),this.Rg[a]=y,this.redraw()},Ce.Tx=function(){this.Rg=new Wi,this.Rg.drawShadows=!0,this.Rg.textGreeking=!0,this.Rg.viewportOptimizations=!(Mr||pr),this.Rg.temporaryPixelRatio=!0,this.Rg.pictureRatioOptimization=!0,this.Oq=this.Rg.minDrawingLength=1};function Ch(a,y){a=a.Rg,a!==null&&(a.imageSmoothingEnabled!==void 0&&y.Wx(!!a.imageSmoothingEnabled),a=a.defaultFont,a!=null&&(y.font=a))}Ce.Ql=function(a){return this.on[a]},Ce.sA=function(a,y){this.on[a]=y},Ce.Sx=function(){this.on=new Wi,this.on.extraTouchArea=10,this.on.extraTouchThreshold=10,this.on.hasGestureZoom=!0},Ce.set=function(a){return Object.assign(this,a),this},Ce.Du=function(a){return this.nm(a)},Ce.nm=function(a){return Wd(this,a),this};function Wd(a,y){var x=a instanceof ni,E=a instanceof qt,b;for(b in y){b===""&&Ve("Setting properties requires non-empty property names");var z=a,ee=b;if(x||E){var re=b.indexOf(".");if(0<re){var oe=b.substring(0,re);x?z=a.fb(oe):(z=a[oe],z==null&&(z=a.toolManager[oe])),Ot(z)?ee=b.substr(re+1):Ve("Unable to find object named: "+oe+" in "+a.toString()+" when trying to set property: "+b)}}if(ee[0]!=="_"&&!Ri(z,ee))if(E&&ee==="ModelChanged"){a.Yw(y[ee]);continue}else if(E&&ee==="Changed"){a.Pe(y[ee]);continue}else if(E&&Ri(a.toolManager,ee))z=a.toolManager;else if(E&&am(a,ee)){a.Bj(ee,y[ee]);continue}else if(a instanceof Ui&&ee==="Changed"){a.Pe(y[ee]);continue}else Ve('Trying to set undefined property "'+ee+'" on object: '+z.toString());z[ee]=y[b],ee[0]==="_"&&z instanceof kt&&z.Vw(ee)}}Ce.bx=function(){if(this.Eh.count!==0&&!(1<this.undoManager.transactionLevel)){for(;0<this.Eh.count;){var a=this.Eh;for(this.Eh=new $t,a=a.iterator;a.next();){var y=a.key;y.Xo(a.value),y.qc()}}this.N()}},Ce.N=function(a){if(a===void 0)this.Fc=!0,this.$b();else{var y=this.viewportBounds;a.w()&&y.Yc(a)&&(this.Fc=!0,this.$b())}this.R("InvalidateDraw")},qt.prototype.invalidateViewport=function(a,y){if(this.Fc!==!0)if(this.Fc=!0,this.nl==="svg")this.bd();else{var x=this.Gf("temporaryPixelRatio")===!0;if(this.Gf("viewportOptimizations")===!0&&this.scrollMode!==Fc&&this.rj.hi(0,0,0,0)&&y.width===a.width&&y.height===a.height){var E=this.scale,b=Math.max(a.y,y.y),z=Math.min(a.y+a.height,y.y+y.height);if(0<Math.max(0,Math.min(a.x+a.width,y.x+y.width)-Math.max(a.x,y.x))*E&&0<Math.max(0,z-b)*E){if(!(this.ld||(this.kg=!1,this.Ka===null||(this.ld=!0,this.documentBounds.w()||(E=ut.alloc(),Ig(this,this.computeBounds(E)),ut.free(E)),E=this.ta,E===null||E instanceof Au)))){var ee=this.Mb;b=this.Aa*ee;var re=this.ya*ee,oe=this.scale*ee;z=Math.round(Math.round(y.x*oe)-Math.round(a.x*oe)),y=Math.round(Math.round(y.y*oe)-Math.round(a.y*oe)),oe=this.jw,a=this.oy,oe.width!==b&&(oe.width=b),oe.height!==re&&(oe.height=re),a.clearRect(0,0,b,re),oe=190*ee;var se=70*ee,ue=Math.max(z,0),fe=Math.max(y,0),ve=Math.floor(b-ue),xe=Math.floor(re-fe);a.drawImage(E.Oa,ue,fe,ve,xe,0,0,ve,xe),Ud(this.Yf,this)&&a.clearRect(0,0,oe,se),E=si(),a=si(),xe=Math.abs(z),ve=Math.abs(y);var Pe=ue===0?0:b-xe;ue=Te.allocAt(Pe,0),xe=Te.allocAt(xe+Pe,re),a.push(new ut(Math.min(ue.x,xe.x),Math.min(ue.y,xe.y),Math.abs(ue.x-xe.x),Math.abs(ue.y-xe.y)));var Fe=this.Ab;if(Fe.reset(),Fe.scale(ee,ee),this.Ca!==1&&Fe.scale(this.Ca),ee=this.pa,(ee.x!==0||ee.y!==0)&&isFinite(ee.x)&&isFinite(ee.y)&&Fe.translate(-ee.x,-ee.y),Rt(ue,Fe),Rt(xe,Fe),E.push(new ut(Math.min(ue.x,xe.x),Math.min(ue.y,xe.y),Math.abs(ue.x-xe.x),Math.abs(ue.y-xe.y))),Pe=fe===0?0:re-ve,ue.h(0,Pe),xe.h(b,ve+Pe),a.push(new ut(Math.min(ue.x,xe.x),Math.min(ue.y,xe.y),Math.abs(ue.x-xe.x),Math.abs(ue.y-xe.y))),Rt(ue,Fe),Rt(xe,Fe),E.push(new ut(Math.min(ue.x,xe.x),Math.min(ue.y,xe.y),Math.abs(ue.x-xe.x),Math.abs(ue.y-xe.y))),Ud(this.Yf,this)&&(b=0<z?0:-z,re=0<y?0:-y,ue.h(b,re),xe.h(oe+b,se+re),a.push(new ut(Math.min(ue.x,xe.x),Math.min(ue.y,xe.y),Math.abs(ue.x-xe.x),Math.abs(ue.y-xe.y))),Rt(ue,Fe),Rt(xe,Fe),E.push(new ut(Math.min(ue.x,xe.x),Math.min(ue.y,xe.y),Math.abs(ue.x-xe.x),Math.abs(ue.y-xe.y)))),Te.free(ue),Te.free(xe),id(this,!1,!0),this.Ka===null&&Ve("No div specified"),this.ta===null&&Ve("No canvas specified"),!this.animationManager.zb&&(b=this.ib,this.Fc)){for(Hd(this),re=this.Mb,b.setTransform(1,0,0,1,0,0),b.clearRect(0,0,this.Aa*re,this.ya*re),b.drawImage(this.jw.Oa,0<z?0:Math.round(-z),0<y?0:Math.round(-y)),z=this.pa,ee=this.Ca,oe=Math.round(z.x*ee)/ee,se=Math.round(z.y*ee)/ee,y=this.Ab,y.reset(),ee!==1&&y.scale(ee),z.x===0&&z.y===0||y.translate(-oe,-se),b.save(),b.beginPath(),z=a.length,ee=0;ee<z;ee++)oe=a[ee],oe.width!==0&&oe.height!==0&&b.rect(Math.floor(oe.x),Math.floor(oe.y),Math.ceil(oe.width),Math.ceil(oe.height));for(b.clip(),b.setTransform(re,0,0,re,0,0),b.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),b.yc(),y=this.Wa.s,z=y.length,this.Fd(y,z,this,this.viewportBounds),Ch(this,b),b.globalAlpha=this.pb,re=0;re<z;re++)if(ee=y[re],oe=E,ee.visible&&ee.pb!==0){se=th(ee,b),fe=ee.Zq,fe.length=0,ue=this.scale,ve=ut.alloc(),xe=ee.Pa.s,Fe=xe.length,Pe=oe.length;for(var Je=0;Je<Fe;Je++){var We=xe[Je],rt=ec(We,We.actualBounds);e:{for(var at=2/ue,ht=4/ue,bt=0;bt<Pe;bt++){var Jt=oe[bt];if(Jt.width!==0&&Jt.height!==0&&rt.Vu(Jt.x-at,Jt.y-at,Jt.width+ht,Jt.height+ht)){rt=!0;break e}}rt=!1}rt&&ee.Oj(b,We,this,fe,ue,ve,!0)}ut.free(ve),b.globalAlpha=se}b.restore(),b.Vc(!0),this.Yf&&Ud(this.Yf,this)&&this.Vp(),this.Fc=this.vd=!1,this.hk()}Pi(E),Pi(a),this.ld=!1}}else this.bd();x&&(Is(this),this.bd(),Ec(this,!0))}else x?(Is(this),this.bd(),Ec(this,!0)):this.bd()}};function Hd(a){a.pn!==!1&&(a.pn=!1,kg(a,a.Aa,a.ya))}function kg(a,y,x){Eu(a);var E=a.Mb;a.ta.resize(y*E,x*E,y,x)&&(a.Fc=!0,a.ib.Vc(!0))}function Zd(a){var y=a.ta;if(y===null||a.wo.w())return!0;var x=a.Aa,E=a.ya,b=a.Ka,z=!1,ee=a.gf?a.Db:0,re=a.Be?a.Db:0,oe=b.clientWidth||x+ee,se=b.clientHeight||E+re,ue=a.viewportBounds;b=ue.x;var fe=ue.y,ve=ue.width,xe=ue.height;if((oe!==x+ee||se!==E+re)&&(a.gf=!1,a.Be=!1,re=ee=0,a.Aa=oe,a.ya=se,z=a.pn=!0,Eu(a)),!a.hf||!a.viewportBounds.w())return!0;var Pe=a.ku,Fe=a.hu;if(a.Ee=!1,!(z||a.gf||a.Be||a.mn||a.nn))return!0;var Je=a.documentBounds,We=0,rt=0,at=0,ht=0,bt=ue.width,Jt=ue.height,Ci=a.rj;a.contentAlignment.sb()?(Je.width>bt&&(We=Ci.left,rt=Ci.right),Je.height>Jt&&(at=Ci.top,ht=Ci.bottom)):(We=Ci.left,rt=Ci.right,at=Ci.top,ht=Ci.bottom);var ji=Je.width+We+rt,Ti=Je.height+at+ht;Ci=a.scale;var ui=ji>oe/Ci,In=Ti>se/Ci;if(!(z||a.gf||a.Be||ui||In))return!0;We=Je.x-We,oe=ue.x,rt=Je.right+rt,se=ue.right+ee,at=Je.y-at;var Tr=ue.y;Je=Je.bottom+ht,ue=ue.bottom+re;var Lr="1px";if(ht="1px",a.scrollMode===Ah&&(ui||In)&&(ui&&a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(ui=1,We+1<oe&&(ui=Math.max((oe-We)*Ci+a.Aa,ui)),rt>se+1&&(ui=Math.max((rt-se)*Ci+a.Aa,ui)),bt+ee+1<ji&&(ui=Math.max((ji-bt)*Ci+a.Aa,ui)),Lr=ui.toString()+"px"),In&&a.hasVerticalScrollbar&&a.allowVerticalScroll&&(ui=1,at+1<Tr&&(ui=Math.max((Tr-at)*Ci+a.ya,ui)),Je>ue+1&&(ui=Math.max((Je-ue)*Ci+a.ya,ui)),Jt+re+1<Ti&&(ui=Math.max((Ti-Jt)*Ci+a.ya,ui)),ht=ui.toString()+"px")),ui=Lr!=="1px",In=ht!=="1px",ui&&In||!ui&&!In||(In&&(se-=a.Db),ui&&(ue-=a.Db),ji<bt+ee||!a.hasHorizontalScrollbar||!a.allowHorizontalScroll||(ee=1,We+1<oe&&(ee=Math.max((oe-We)*Ci+a.Aa,ee)),rt>se+1&&(ee=Math.max((rt-se)*Ci+a.Aa,ee)),bt+1<ji&&(ee=Math.max((ji-bt)*Ci+a.Aa,ee)),Lr=ee.toString()+"px"),ui=Lr!=="1px",ee=a.ya,ui!==a.Be&&(ee=ui?a.ya-a.Db:a.ya+a.Db),Ti<Jt+re||!a.hasVerticalScrollbar||!a.allowVerticalScroll||(re=1,at+1<Tr&&(re=Math.max((Tr-at)*Ci+ee,re)),Je>ue+1&&(re=Math.max((Je-ue)*Ci+ee,re)),Jt+1<Ti&&(re=Math.max((Ti-Jt)*Ci+ee,re)),ht=re.toString()+"px"),In=ht!=="1px"),a.qr&&ui===a.Be&&In===a.gf)return x===a.Aa&&E===a.ya||a.bd(),!1;if(ui!==a.Be&&(Lr==="1px"?a.ya=a.ya+a.Db:a.ya=Math.max(a.ya-a.Db,1),z=!0),a.Be=ui,Fe.style.width=Lr,In!==a.gf&&(ht==="1px"?a.Aa=a.Aa+a.Db:a.Aa=Math.max(a.Aa-a.Db,1),z=!0,a.tn&&(re=Te.alloc(),In?(y.style.left=a.Db+"px",a.position=re.h(a.pa.x+a.Db/a.scale,a.pa.y)):(y.style.left="0px",a.position=re.h(a.pa.x-a.Db/a.scale,a.pa.y)),Te.free(re))),z&&Eu(a),a.gf=In,Fe.style.height=ht,a.gu=!0,z&&(a.pn=!0),y=Pe.scrollLeft,a.hasHorizontalScrollbar&&a.allowHorizontalScroll&&(bt+1<ji?y=(a.position.x-We)*Ci:We+1<oe?y=Pe.scrollWidth-Pe.clientWidth:rt>se+1&&(y=a.position.x*Ci)),a.tn)switch(a.bu){case"negative":y=-(Pe.scrollWidth-y-Pe.clientWidth);break;case"reverse":y=Pe.scrollWidth-y-Pe.clientWidth}return Pe.scrollLeft=y,a.hasVerticalScrollbar&&a.allowVerticalScroll&&(Jt+1<Ti?Pe.scrollTop=(a.position.y-at)*Ci:at+1<Tr?Pe.scrollTop=Pe.scrollHeight-Pe.clientHeight:Je>ue+1&&(Pe.scrollTop=a.position.y*Ci)),oe=a.Aa,se=a.ya,Pe.style.width=oe+(a.gf?a.Db:0)+"px",Pe.style.height=se+(a.Be?a.Db:0)+"px",x!==oe||E!==se||a.animationManager.zb?(x=ut.allocAt(b,fe,ve,xe),a.onViewportBoundsChanged(x,a.viewportBounds,Ci,z),ut.free(x),!1):!0}Ce=qt.prototype,Ce.add=function(a){var y=a.diagram;if(y!==this&&(y!==null&&Ve("Cannot add part "+a.toString()+" to "+this.toString()+". It is already a part of "+y.toString()),y=this.Qj(a.layerName),y===null&&(y=this.Qj("")),y===null&&Ve('Cannot add a Part when unable find a Layer named "'+a.layerName+'" and there is no default Layer'),a.layer!==y)){var x=y.oi(99999999,a,a.diagram===this);0<=x&&this.cb($o,"parts",y,null,a,null,x),y.isTemporary||this.Ya(),a.C(1),x=a.layerChanged,x!==null&&x(a,null,y)}},Ce.oi=function(a){this.partManager.oi(a);var y=this;Qd(a,function(x){Vd(y,x)}),(a instanceof uo||a instanceof Or&&a.placeholder!==null)&&a.v(),a.data!==null&&Qd(a,function(x){dy(y.partManager,x)}),Ls(a)!==!0&&hd(a)!==!0||this.De.add(a),Z1(a,!0,this),G1(a)?(a.actualBounds.w()&&this.N(ec(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(ec(a,a.actualBounds)),this.$b()},Ce.pc=function(a){a.Ej(),this.partManager.pc(a);var y=this;a.data!==null&&Qd(a,function(x){cy(y.partManager,x,y)}),this.De.remove(a),G1(a)?(a.actualBounds.w()&&this.N(ec(a,a.actualBounds)),this.Ya()):a.isVisible()&&a.actualBounds.w()&&this.N(ec(a,a.actualBounds)),this.$b()},Ce.remove=function(a){Fg(this,a,!0)};function Fg(a,y,x){var E=y.layer;E!==null&&E.diagram===a&&(y.isSelected=!1,y.isHighlighted=!1,y.C(2),x&&y.Lj(),x=E.pc(-1,y,!1),0<=x&&a.cb(pa,"parts",E,y,null,x,null),a=y.layerChanged,a!==null&&a(y,E,null))}Ce.Is=function(a,y){if(y===void 0&&(y=!1),Bn(a))for(var x=a.length,E=0;E<x;E++){var b=a[E];y&&!b.canDelete()||this.remove(b)}else for(x=new yn,x.addAll(a),a=x.iterator;a.next();)x=a.value,y&&!x.canDelete()||this.remove(x)},Ce.Kj=function(a,y,x){return x===void 0&&(x=!1),this.partManager.Kj(a,y,x)},qt.prototype.moveParts=function(a,y,x,E){if(x===void 0&&(x=!1),E===void 0&&(E=mf(this)),this.toolManager!==null){var b=new $t;if(a!==null)if(Bn(a))for(var z=0;z<a.length;z++)Iu(this,b,a[z],x,E);else for(a=a.iterator;a.next();)Iu(this,b,a.value,x,E);else{for(a=this.parts;a.next();)Iu(this,b,a.value,x,E);for(a=this.nodes;a.next();)Iu(this,b,a.value,x,E);for(a=this.links;a.next();)Iu(this,b,a.value,x,E)}rd(this,b,y,E,x)}};function Iu(a,y,x,E,b,z){if(!y.contains(x)&&(z===void 0&&(z=!1),!E||z||x.canMove()||x.canCopy()))if(b===void 0&&(b=mf(a)),x instanceof Li){if(y.add(x,a.Pd(b,x,x.location)),x instanceof Or&&(x.placeholder!==null||b.dragsMembers))for(z=x.memberParts;z.next();)Iu(a,y,z.value,E,b,b.groupsAlwaysMove);for(z=x.linksConnected;z.next();){var ee=z.value;if(!y.contains(ee)){var re=ee.fromNode,oe=ee.toNode;re!==null&&y.contains(re)&&oe!==null&&y.contains(oe)&&Iu(a,y,ee,E,b)}}if(b.dragsTree)for(x=x.Ou();x.next();)Iu(a,y,x.value,E,b)}else if(x instanceof hi)for(y.add(x,a.Pd(b,x)),x=x.labelNodes;x.next();)Iu(a,y,x.value,E,b);else x instanceof uo||y.add(x,a.Pd(b,x,x.location))}function rd(a,y,x,E,b){if(y!==null&&y.count!==0){var z=Te.alloc(),ee=Te.alloc();ee.assign(x),isNaN(ee.x)&&(ee.x=0),isNaN(ee.y)&&(ee.y=0),(x=a.Mr)||yf(a,y);for(var re=si(),oe=si(),se=y.iterator,ue=Te.alloc();se.next();){var fe=se.key,ve=se.value;if(fe.Zc()){var xe=Dg(a,fe,y);xe!==null?re.push(new ie(fe,ve,xe)):(!b||fe.canMove())&&(xe=ve.point,z.assign(xe),a.computeMove(fe,z.add(ee),E,ue),fe.location=ue,ve.shifted===void 0&&(ve.shifted=new Te),ve.shifted.assign(ue.re(xe)))}else se.key instanceof hi&&oe.push(se.sa)}for(Te.free(ue),b=re.length,se=0;se<b;se++)fe=re[se],z.assign(fe.info.point),fe.Su.shifted===void 0&&(fe.Su.shifted=new Te),fe.node.location=z.add(fe.Su.shifted);for(b=Te.alloc(),se=Te.alloc(),fe=oe.length,ve=0;ve<fe;ve++){var Pe=oe[ve];if(xe=Pe.key,xe instanceof hi)if(xe.suspendsRouting){xe.Tg=null,ue=xe.fromNode;var Fe=xe.toNode;if(a.draggedLink!==null&&E.dragsLink)if(Fe=Pe.value.point,xe.dragComputation===null)y.add(xe,a.Pd(E,xe,ee)),Bh(xe,ee.x-Fe.x,ee.y-Fe.y);else{Pe=Te.allocAt(0,0),(ue=xe.i(0))&&ue.w()&&Pe.assign(ue);var Je=ue=Te.alloc().assign(Pe).add(ee);E.isGridSnapEnabled&&(E.isGridSnapRealtime||a.lastInput.up)&&(Je=Te.alloc(),vf(a,xe,ue,Je,E)),ue.assign(xe.dragComputation(xe,ue,Je)).re(Pe),y.add(xe,a.Pd(E,xe,ue)),Bh(xe,ue.x-Fe.x,ue.y-Fe.y),Te.free(Pe),Te.free(ue),Je!==ue&&Te.free(Je)}else ue!==null&&(b.assign(ue.location),Je=y.I(ue),Je!==null&&b.re(Je.point)),Fe!==null&&(se.assign(Fe.location),Je=y.I(Fe),Je!==null&&se.re(Je.point)),ue!==null&&Fe!==null?b.Xa(se)?(ue=Pe.value.point,Fe=z,Fe.assign(b),Fe.re(ue),y.add(xe,a.Pd(E,xe,b)),Bh(xe,Fe.x,Fe.y)):(xe.suspendsRouting=!1,xe.bb()):(Pe=Pe.value.point,ue=ue!==null?b:Fe!==null?se:ee,y.add(xe,a.Pd(E,xe,ue)),Bh(xe,ue.x-Pe.x,ue.y-Pe.y))}else(xe.fromNode===null||xe.toNode===null)&&(ue=Pe.value.point,y.add(xe,a.Pd(E,xe,ee)),Bh(xe,ee.x-ue.x,ee.y-ue.y))}Te.free(z),Te.free(ee),Te.free(b),Te.free(se),Pi(re),Pi(oe),x||(ss(a),od(a,y))}}qt.prototype.computeMove=function(a,y,x,E){if(E===void 0&&(E=new Te),E.assign(y),a===null)return E;var b=y,z=x.isGridSnapEnabled;z&&(x.isGridSnapRealtime||this.lastInput.up)&&(b=Te.alloc(),vf(this,a,y,b,x)),x=a.dragComputation!==null?a.dragComputation(a,y,b):b;var ee=a.minLocation,re=ee.x;isNaN(re)&&(re=z?Math.round(1e3*a.location.x)/1e3:a.location.x),ee=ee.y,isNaN(ee)&&(ee=z?Math.round(1e3*a.location.y)/1e3:a.location.y);var oe=a.maxLocation,se=oe.x;return isNaN(se)&&(se=z?Math.round(1e3*a.location.x)/1e3:a.location.x),oe=oe.y,isNaN(oe)&&(oe=z?Math.round(1e3*a.location.y)/1e3:a.location.y),E.h(Math.max(re,Math.min(x.x,se)),Math.max(ee,Math.min(x.y,oe))),b!==y&&Te.free(b),E};function mf(a){var y=a.toolManager.findTool("Dragging");return y!==null?y.dragOptions:a.Wm}function vf(a,y,x,E,b){if(b===void 0&&(b=mf(a)),E.assign(x),y!==null){var z=a.grid;y=b.gridSnapCellSize,a=y.width,y=y.height;var ee=b.gridSnapOrigin,re=ee.x;if(ee=ee.y,b=b.gridSnapCellSpot,z!==null){var oe=z.gridCellSize;isNaN(a)&&(a=oe.width),isNaN(y)&&(y=oe.height),z=z.gridOrigin,isNaN(re)&&(re=z.x),isNaN(ee)&&(ee=z.y)}z=Te.allocAt(0,0),z.yi(0,0,a,y,b),pt.No(x.x,x.y,re+z.x,ee+z.y,a,y,E),Te.free(z)}}function yf(a,y){if(y!==null)for(a.Mr=!0,a=y.iterator;a.next();)y=a.key,y instanceof hi&&(y.suspendsRouting=!0)}function od(a,y){if(y!==null){for(y=y.iterator;y.next();){var x=y.key;x instanceof hi&&(x.suspendsRouting=!1,Qv(x)&&x.bb())}a.Mr=!1}}function Dg(a,y,x){return y=y.containingGroup,y!==null&&(a=Dg(a,y,x),a!==null||(a=x.I(y),a!==null))?a:null}Ce=qt.prototype,Ce.Pd=function(a,y,x){if(x===void 0)return new nh(He);var E=a.isGridSnapEnabled;return a.groupsSnapMembers||y.containingGroup===null||(E=!1),E?new nh(new Te(Math.round(1e3*x.x)/1e3,Math.round(1e3*x.y)/1e3)):new nh(x.copy())};function Ng(a,y,x){if(y.diagram!==null&&y.diagram!==a&&Ve("Cannot share a Layer with another Diagram: "+y+" of "+y.diagram),x===null?y.diagram!==null&&Ve("Cannot add an existing Layer to this Diagram again: "+y):(x.diagram!==a&&Ve("Existing Layer must be in this Diagram: "+x+" not in "+x.diagram),y===x&&Ve("Cannot move a Layer before or after itself: "+y)),y.diagram!==a){y=y.name,a=a.Wa,x=a.count;for(var E=0;E<x;E++)a.M(E).name===y&&Ve("Cannot add Layer with the name '"+y+"'; a Layer with the same name is already present in this Diagram.")}}Ce.Al=function(a){Ng(this,a,null),a.Xe(this);var y=this.Wa,x=y.count-1;if(!a.isTemporary)for(;0<=x&&y.M(x).isTemporary;)x--;return y.Gb(x+1,a),this.cc!==null&&this.cb($o,"layers",this,null,a,null,x+1),this.N(),this.Ya(),this},Ce.Ww=function(a,y){Ng(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(pa,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z,a);break}return this.cc!==null&&this.cb($o,"layers",this,null,a,null,z),this.N(),0>E&&this.Ya(),this},Ce.Cy=function(a,y){Ng(this,a,y),a.Xe(this);var x=this.Wa,E=x.indexOf(a);0<=E&&(x.remove(a),this.cc!==null&&this.cb(pa,"layers",this,a,null,E,null));var b=x.count,z;for(z=0;z<b;z++)if(x.M(z)===y){x.Gb(z+1,a);break}return this.cc!==null&&this.cb($o,"layers",this,null,a,null,z+1),this.N(),0>E&&this.Ya(),this},Ce.kA=function(a){if(a.diagram!==this&&Ve("Cannot remove a Layer from another Diagram: "+a+" of "+a.diagram),a.name!==""){var y=this.Wa,x=y.indexOf(a);if(y.remove(a)){for(y=a.Pa.copy().iterator;y.next();){var E=y.value,b=E.layerName;b!==a.name?E.layerName=b:E.layerName=""}this.cc!==null&&this.cb(pa,"layers",this,a,null,x,null),this.N(),this.Ya()}}},Ce.Qj=function(a){for(var y=this.layers;y.next();){var x=y.value;if(x.name===a)return x}return null},Ce.Yw=function(a){return this.pf===null&&(this.pf=new cn),this.pf.add(a),this.model.Pe(a),this},Ce.mA=function(a){this.pf!==null&&(this.pf.remove(a),this.pf.count===0&&(this.pf=null)),this.model.ik(a)},Ce.Pe=function(a){return this.zg===null&&(this.zg=new cn),this.zg.add(a),this},Ce.ik=function(a){this.zg!==null&&(this.zg.remove(a),this.zg.count===0&&(this.zg=null))},Ce.ds=function(a){if(this.skipsUndoManager||this.model.skipsUndoManager||this.model.undoManager.Tu(a),a.change!==Fa&&(this.isModified=!0),this.zg!==null)for(var y=this.zg,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ce.cb=function(a,y,x,E,b,z,ee){z===void 0&&(z=null),ee===void 0&&(ee=null);var re=new Ho;re.diagram=this,re.change=a,re.propertyName=y,re.object=x,re.oldValue=E,re.oldParam=z,re.newValue=b,re.newParam=ee,this.ds(re)},Ce.g=function(a,y,x,E,b){this.cb(To,a,this,y,x,E,b)},qt.prototype.changeState=function(a,y){if(a!==null&&a.diagram===this){var x=this.skipsModelSourceBindings;try{this.skipsModelSourceBindings=!0;var E=a.change;if(E===To){var b=a.object;if(ea(b,a.propertyName,a.I(y)),b instanceof kt){var z=b.part;z!==null&&z.Wb()}this.isModified=!0}else if(E===$o){var ee=a.object,re=a.newParam,oe=a.newValue;if(ee instanceof ni)if(typeof re=="number"&&oe instanceof kt){y?ee.pc(re):ee.Gb(re,oe);var se=ee.part;se!==null&&se.Wb()}else typeof re=="number"&&oe instanceof Ba&&(oe.isRow?p1(ee,re,y?void 0:oe):m1(ee,re,y?void 0:oe));else if(ee instanceof Xa){var ue=a.oldParam===!0;typeof re=="number"&&oe instanceof ir&&(y?(oe.isSelected=!1,oe.isHighlighted=!1,oe.Wb(),ee.pc(ue?re:-1,oe,ue)):ee.oi(re,oe,ue))}else ee instanceof qt?typeof re=="number"&&oe instanceof Xa&&(y?this.Wa.mb(re):(oe.Xe(this),this.Wa.Gb(re,oe))):Ve("unknown ChangedEvent.Insert object: "+a.toString());this.isModified=!0}else if(E===pa){var fe=a.object,ve=a.oldParam,xe=a.oldValue;if(fe instanceof ni)typeof ve=="number"&&xe instanceof kt?y?fe.Gb(ve,xe):fe.pc(ve):typeof ve=="number"&&xe instanceof Ba&&(xe.isRow?p1(fe,ve,y?xe:void 0):m1(fe,ve,y?xe:void 0));else if(fe instanceof Xa){var Pe=a.newParam===!0;typeof ve=="number"&&xe instanceof ir&&(y?0>fe.Pa.indexOf(xe)&&fe.oi(ve,xe,Pe):(xe.isSelected=!1,xe.isHighlighted=!1,xe.Wb(),fe.pc(Pe?ve:-1,xe,Pe)))}else fe instanceof qt?typeof ve=="number"&&xe instanceof Xa&&(y?(xe.Xe(this),this.Wa.Gb(ve,xe)):this.Wa.mb(ve)):Ve("unknown ChangedEvent.Remove object: "+a.toString());this.isModified=!0}else E!==Fa&&Ve("unknown ChangedEvent: "+a.toString())}finally{this.skipsModelSourceBindings=x}}},qt.prototype.Ea=function(a){return this.undoManager.Ea(a)},qt.prototype.eb=function(a){return this.undoManager.eb(a)},qt.prototype.Kf=function(){return this.undoManager.Kf()},qt.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},qt.prototype.updateAllTargetBindings=function(a){this.partManager.updateAllTargetBindings(a)},qt.prototype.rp=function(){this.partManager.rp()};function Bg(a,y,x){var E=a.animationManager;if(a.vb||a.ld)a.Ca=x,Eu(a),a.N(),a.Ee=!0,E.zb&&($u(E)||E.ce.add(E.H,"scale",y,a.Ca));else if(a.ta===null)a.Ca=x,Eu(a);else{a.vb=!0;var b=a.viewportBounds.copy(),z=a.Aa,ee=a.ya,re=a.zoomPoint.x,oe=a.zoomPoint.y,se=a.contentAlignment;isNaN(re)&&(se.$c()?se.Hf(Xr)?re=0:se.Hf(_r)&&(re=z-1):re=se.sb()?se.x*(z-1):z/2),isNaN(oe)&&(se.$c()?se.Hf(eo)?oe=0:se.Hf(fo)&&(oe=ee-1):oe=se.sb()?se.y*(ee-1):ee/2),a.scaleComputation===null||a.animationManager.defaultAnimation.isAnimating||(x=a.scaleComputation(a,x)),x<a.minScale&&(x=a.minScale),x>a.maxScale&&(x=a.maxScale),z=Te.allocAt(a.pa.x+re/y-re/x,a.pa.y+oe/y-oe/x),a.position=z,Te.free(z),a.Ca=x,Eu(a),a.vb=!1,a.onViewportBoundsChanged(b,a.viewportBounds,y,!1),Il(a,!1),E.zb&&($u(E)||E.ce.add(E.H,"scale",y,a.Ca))}}qt.prototype.onViewportBoundsChanged=function(a,y,x,E){if(!a.D(y)){E===void 0&&(E=!1),E||(this.Ee=!0),this.vd=!0;var b=this.layout;b===null||!b.isViewportSized||this.autoScale!==ys||a.width===y.width&&a.height===y.height||b.C(),b=this.currentTool,this.Vk===!0&&b instanceof Ao&&(this.lastInput.documentPoint=this.Ps(this.lastInput.viewPoint),Kl(b,this)),this.vb||this.invalidateViewport(a,y),Cu(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.canvasSize.width=Math.round(a.width*x),this.fc.canvasSize.height=Math.round(a.height*x),this.fc.newCanvasSize.width=this.Aa,this.fc.newCanvasSize.height=this.ya,this.fc.isScroll=E,this.R("ViewportBoundsChanged",this.fc,a),this.isVirtualized&&this.links.each(function(z){z.isAvoiding&&z.actualBounds.Yc(y)&&z.bb()})}};function Cu(a,y){var x=a.fe;if(x!==null&&x.visible){for(var E=Re.alloc(),b=1,z=1,ee=x.O.s,re=ee.length,oe=0;oe<re;oe++){var se=ee[oe],ue=Math.abs(se.interval);2>ue||(Sv(se.figure)?z=z*ue/pt.vx(z,ue):b=b*ue/pt.vx(b,ue))}if(ee=x.gridCellSize,E.h(z*ee.width,b*ee.height),y!==void 0)b=y.width,z=y.height,a=y.x,ee=y.y;else{if(y=ut.alloc(),a=a.viewportBounds,y.h(a.x,a.y,a.width,a.height),!y.w()){ut.free(y);return}b=y.width,z=y.height,a=y.x,ee=y.y,ut.free(y)}x.width=b+2*E.width,x.height=z+2*E.height,y=Te.alloc(),pt.No(a,ee,0,0,E.width,E.height,y),y.offset(-E.width,-E.height),Re.free(E),x.part.location=y,Te.free(y)}}qt.prototype.clearSelection=function(a){a===void 0&&(a=!1);var y=this.selection;if(y.count!==0){a||this.R("ChangingSelection",y);for(var x=y.Fa(),E=x.length,b=0;b<E;b++)x[b].isSelected=!1;y.ka(),y.clear(),y.freeze(),a||this.R("ChangedSelection",y)}},qt.prototype.select=function(a){a!==null&&a.diagram===this&&(!a.isSelected||1<this.selection.count)&&(this.R("ChangingSelection",this.selection),this.clearSelection(!0),a.isSelected=!0,this.R("ChangedSelection",this.selection))},qt.prototype.rA=function(a){if(this.R("ChangingSelection",this.selection),this.clearSelection(!0),Bn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];E instanceof ir||Ve("Diagram.selectCollection given something that is not a Part: "+E),E.isSelected=!0}else for(a=a.iterator;a.next();)y=a.value,y instanceof ir||Ve("Diagram.selectCollection given something that is not a Part: "+y),y.isSelected=!0;this.R("ChangedSelection",this.selection)},qt.prototype.clearHighlighteds=function(){var a=this.highlighteds;if(0<a.count){for(var y=a.Fa(),x=y.length,E=0;E<x;E++)y[E].isHighlighted=!1;a.ka(),a.clear(),a.freeze()}},Ce=qt.prototype,Ce.Iz=function(a){a!==null&&a.diagram===this&&(!a.isHighlighted||1<this.highlighteds.count)&&(this.clearHighlighteds(),a.isHighlighted=!0)},Ce.Jz=function(a){a=new yn().addAll(a);for(var y=this.highlighteds.copy().hp(a).iterator;y.next();)y.value.isHighlighted=!1;for(a=a.iterator;a.next();)y=a.value,y instanceof ir||Ve("Diagram.highlightCollection given something that is not a Part: "+y),y.isHighlighted=!0},Ce.scroll=function(a,y,x){x===void 0&&(x=1);var E=y==="up"||y==="down",b=0,z=Te.alloc();if(a==="pixel")b=x;else if(a==="line")b=x*(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange);else if(a==="page")a=E?this.viewportBounds.height:this.viewportBounds.width,a*=this.scale,a!==0&&(b=x*Math.max(a-(E?this.scrollVerticalLineChange:this.scrollHorizontalLineChange),0));else{if(a==="document"){b=this.documentBounds,x=this.viewportBounds,y==="up"?this.position=z.h(x.x,b.y):y==="left"?this.position=z.h(b.x,x.y):y==="down"?this.position=z.h(x.x,b.bottom-x.height):y==="right"&&(this.position=z.h(b.right-x.width,x.y)),Te.free(z);return}Ve("scrolling unit must be 'pixel', 'line', 'page', or 'document', not: "+a)}b/=this.scale,x=this.position,y==="up"?this.position=z.h(x.x,x.y-b):y==="down"?this.position=z.h(x.x,x.y+b):y==="left"?this.position=z.h(x.x-b,x.y):y==="right"?this.position=z.h(x.x+b,x.y):Ve("scrolling direction must be 'up', 'down', 'left', or 'right', not: "+y),Te.free(z)},Ce.tv=function(a){var y=this.viewportBounds;y.Re(a)||(a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a)},Ce.es=function(a){var y=this.viewportBounds;a=a.center,a.x-=y.width/2,a.y-=y.height/2,this.position=a},Ce.op=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),a.copy().transform(this.Ab)},Ce.zA=function(a){var y=this.Ab,x=a.x,E=a.y,b=x+a.width,z=E+a.height,ee=y.m11,re=y.m12,oe=y.m21,se=y.m22,ue=y.dx,fe=y.dy,ve=x*ee+E*oe+ue;y=x*re+E*se+fe;var xe=b*ee+E*oe+ue;return a=b*re+E*se+fe,E=x*ee+z*oe+ue,x=x*re+z*se+fe,ee=b*ee+z*oe+ue,b=b*re+z*se+fe,z=Math.min(ve,xe),ve=Math.max(ve,xe),xe=Math.min(y,a),y=Math.max(y,a),z=Math.min(z,E),ve=Math.max(ve,E),xe=Math.min(xe,x),y=Math.max(y,x),z=Math.min(z,ee),ve=Math.max(ve,ee),xe=Math.min(xe,b),y=Math.max(y,b),new ut(z,xe,ve-z,y-xe)},Ce.Ps=function(a){var y=this.Ab;y.reset(),this.Ca!==1&&y.scale(this.Ca);var x=this.pa;return(x.x!==0||x.y!==0)&&isFinite(x.x)&&isFinite(x.y)&&y.translate(-x.x,-x.y),Rt(a.copy(),this.Ab)};function rm(a){var y=a.isModified;a.Tw!==y&&(a.Tw=y,a.R("Modified"))}function Tg(a){return a=Ef.get(a),a!==null?new a:new Co}qt.prototype.doModelChanged=function(a){var y=this;if(a.model===this.model){var x=a.change,E=a.propertyName;if(x===Fa&&E[0]==="S")if(E==="StartingFirstTransaction"){var b=this;a=this.toolManager,a.mouseDownTools.each(function(oe){return oe.diagram=b}),a.mouseMoveTools.each(function(oe){return oe.diagram=b}),a.mouseUpTools.each(function(oe){return oe.diagram=b}),this.ld||this.hf||(this.Jk=!0,this.fn&&(this.kg=!0))}else E==="StartingUndo"||E==="StartingRedo"?(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc(),this.R("ChangingSelection",this.selection)):E==="StartedTransaction"&&(a=this.animationManager,a.defaultAnimation.isAnimating&&!this.skipsUndoManager&&a.Cc());else if(this.aa){this.aa=!1;try{if(a.modelChange===""&&x===Fa){(E==="FinishedUndo"||E==="FinishedRedo")&&(this.R("ChangedSelection",this.selection),ss(this));var z=this.animationManager;E==="RolledBackTransaction"&&z.Cc(),this.bx(),this.Jk=!0,this.bd(),this.undoManager.transactionLevel!==0&&this.undoManager.transactionLevel!==1||uf(z),E==="CommittedTransaction"&&this.undoManager.isJustDiscarded&&(this.Ce=Math.min(this.Ce,this.undoManager.historyIndex-1)),E!=="CommittedTransaction"&&E!=="RolledBackTransaction"||!this.undoManager.isPendingUnmodified||setTimeout(function(){y.isModified=!1},1);var ee=a.isTransactionFinished;if(ee&&(rm(this),this.As.clear(),Kp(this.animationManager)),!this.Rt&&ee&&this.lastInput.targetDiagram){this.Rt=!0;var re=this;zi(function(){re.currentTool.standardMouseOver(),re.Rt=!1},10)}}}finally{this.aa=!0}}}};function Vd(a,y){y=y.O.s;for(var x=y.length,E=0;E<x;E++)ad(a,y[E])}function ad(a,y){if(y instanceof Ws){var x=y.element;if(x!==null&&x instanceof HTMLImageElement){x.Bg instanceof yn&&x.Bg.add(a);var E=y.Eg;if(E!==null&&E.sq===!0&&y.diagram!==null&&y.diagram.Xn.add(y),x.hn)if(x=x.getAttribute("src")||"",E=a.Og.I(x),E===null)E=[],E.push(y),a.Og.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}}function Og(a,y){if(y instanceof Ws){var x=y.element;if(x!==null&&x instanceof HTMLImageElement&&x.hn){var E=x.getAttribute("src")||"",b=a.Og.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&(a.Og.remove(E),x.Fq&&x.removeEventListener("load",x.Fq),x.Yp&&x.removeEventListener("error",x.Yp),delete x.Fq,delete x.Yp,x.Bg instanceof yn&&x.Bg.remove(a),Rf(E));break}}}}}qt.prototype.Wd=function(){this.partManager.Wd()},qt.prototype.Aj=function(a,y){this.Yd.Aj(a,y)},qt.prototype.Cj=function(a,y){this.Yd.Cj(a,y)},qt.prototype.findPartForKey=function(a){return this.partManager.findPartForKey(a)},qt.prototype.Vb=function(a){return this.partManager.Vb(a)},qt.prototype.findLinkForKey=function(a){return this.partManager.findLinkForKey(a)},Ce=qt.prototype,Ce.Lc=function(a){return this.partManager.Lc(a)},Ce.ii=function(a){return this.partManager.ii(a)},Ce.Kc=function(a){return this.partManager.Kc(a)},Ce.ms=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ms.apply(this.partManager,y instanceof Array?y:dr(Gn(y)))},Ce.ls=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];return this.partManager.ls.apply(this.partManager,y instanceof Array?y:dr(Gn(y)))};function Eu(a){var y=a.pa,x=a.Ca;a.Rw.h(y.x,y.y,Math.max(a.Aa,0)/x,Math.max(a.ya,0)/x),a.vd=!0}function Ig(a,y){a.Zi=!1;var x=a.Sp;x.D(y)||(x=x.copy(),a.Sp.assign(y),Il(a,!1),a.R("DocumentBoundsChanged",void 0,x),a.Ee=!0,a.N())}Ce.Va=function(){if(this.Zi){var a=ut.alloc();Ig(this,this.computeBounds(a)),ut.free(a)}},Ce.rz=function(){for(var a=new yn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&a.add(x)}for(y=this.links;y.next();)x=y.value,x.isTopLevel&&a.add(x);return a.iterator},Ce.qz=function(){return this.ai.iterator},Ce.Uz=function(a){ss(this),a&&Sf(this,!0),this.ld?Rg(this,!1):(this.Jk=!0,wl(this))};function Sf(a,y){for(var x=a.ai.iterator;x.next();)om(a,x.value,y);a.layout&&(y?a.layout.isValidLayout=!1:a.layout.C())}function om(a,y,x){if(y!==null){for(var E=y.gl.iterator;E.next();)om(a,E.value,x);y.layout!==null&&(x?y.layout.isValidLayout=!1:y.layout.C())}}function Rg(a,y){if(a.xh&&!a.lt){var x=a.aa;a.aa=!0;var E=a.undoManager.transactionLevel,b=a.layout,z=a.animationManager;try{E===0&&(a.undoManager.isInternalTransaction=!0,a.Ea("Layout")),1>=E&&!z.defaultAnimation.isAnimating&&!z.zb&&(y||Bu(z,"Layout")),a.xh=!1;for(var ee=a.ai.iterator;ee.next();)zg(a,ee.value,y,E);b.isValidLayout||(!y||b.isRealtime||b.isRealtime===null||E===0?(b.doLayout(a),ss(a),b.isValidLayout=!0):a.xh=!0)}finally{y=a.undoManager.isInternalTransaction,E===0&&(a.eb("Layout"),a.undoManager.isInternalTransaction=!1),!y||E!==0&&E!==1||uf(z),a.aa=x}}}function zg(a,y,x,E){if(y!==null){for(var b=y.gl.iterator;b.next();)zg(a,b.value,x,E);b=y.layout,b===null||b.isValidLayout||(!x||b.isRealtime||E===0?(y.rh=!y.location.w(),b.doLayout(y),y.C(32),bc(a,y),b.isValidLayout=!0):a.xh=!0)}}Ce.yz=function(){for(var a=new cn,y=this.nodes;y.next();){var x=y.value;x.isTopLevel&&x.kh()===null&&a.add(x)}return a.iterator};function ov(a){function y(b){var z=b.toLowerCase(),ee=new cn;x.add(b,ee),x.add(z,ee),E.add(b,b),E.add(z,b)}var x=new $t,E=new $t;y("InitialAnimationStarting"),y("AnimationStarting"),y("AnimationFinished"),y("BackgroundSingleClicked"),y("BackgroundDoubleClicked"),y("BackgroundContextClicked"),y("ClipboardChanged"),y("ClipboardPasted"),y("DocumentBoundsChanged"),y("ExternalObjectsDropped"),y("GainedFocus"),y("InitialLayoutCompleted"),y("LayoutCompleted"),y("LinkDrawn"),y("LinkRelinked"),y("LinkReshaped"),y("LostFocus"),y("Modified"),y("ObjectSingleClicked"),y("ObjectDoubleClicked"),y("ObjectContextClicked"),y("PartCreated"),y("PartResized"),y("PartRotated"),y("SelectionMoved"),y("SelectionCopied"),y("SelectionDeleting"),y("SelectionDeleted"),y("SelectionGrouped"),y("SelectionUngrouped"),y("ChangingSelection"),y("ChangedSelection"),y("SubGraphCollapsed"),y("SubGraphExpanded"),y("TextEdited"),y("TreeCollapsed"),y("TreeExpanded"),y("ViewportBoundsChanged"),y("InvalidateDraw"),a.iw=x,a.hw=E}function am(a,y){var x=a.hw.I(y);return x!==null?x:a.hw.I(y.toLowerCase())}function xf(a,y){var x=a.iw.I(y);if(x!==null||(x=a.iw.I(y.toLowerCase()),x!==null))return x;Ve("Unknown DiagramEvent name: "+y)}Ce.Bj=function(a,y){return a=xf(this,a),a!==null&&a.add(y),this},Ce.am=function(a,y){a=xf(this,a),a!==null&&a.remove(y)},Ce.R=function(a,y,x){var E=xf(this,a),b=new Dl;if(b.diagram=this,a=am(this,a),a!==null&&(b.name=a),y!==void 0&&(b.subject=y),x!==void 0&&(b.parameter=x),y=E.length,y===1)E.M(0)(b);else if(y!==0)for(E=E.Fa(),x=0;x<y;x++)(0,E[x])(b)};function wf(a){if(a.animationManager.isTicking)return!1;var y=a.currentTool;return y===a.toolManager.findTool("Dragging")?!a.Mr||y.isComplexRoutingRealtime:!0}Ce.Yj=function(a,y){return Pf(this,!1,null,y||null).Yj(a.x,a.y,a.width,a.height)},qt.prototype.computeOccupiedArea=function(a){return this.isVirtualized?this.viewportBounds.copy():this.Zi?Cg(this,a):a.assign(this.documentBounds)};function Pf(a,y,x,E){var b=a.Xh;if(b===null&&(a.Xh=b=new fp(a.avoidanceCellSize)),b.vs||b.group!==x||b.Yx!==E){if(b.Hx=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.width)),b.Ix=Math.max(b.Os+1,Math.floor(a.avoidanceLimit/a.avoidanceCellSize.height)),x!==null&&(x=sm(a,x)),x===null){y=ut.alloc(),a.computeOccupiedArea(y),y.Bc(100,100),b.initialize(y);for(var z=a.nodes;z.next();){var ee=z.value,re=ee.layer;re!==null&&re.visible&&!re.isTemporary&&Cf(a,ee,E,y)}ut.free(y)}else{for(0<x.memberParts.count&&(y=a.computePartsBounds(x.memberParts,!1),y.Bc(20,20),b.initialize(y)),y=ut.alloc(),z=x.memberParts;z.next();)ee=z.value,ee instanceof Li&&Cf(a,ee,E,y);ut.free(y)}b.group=x,b.Yx=E,b.vs=!1}else y&&uS(b);return b}function sm(a,y){return y.avoidable&&!y.isLinkLabel?y:y.containingGroup!==null?sm(a,y.containingGroup):null}function Cf(a,y,x,E){if(y!==x&&y.isVisible()){if(y.avoidable&&!y.isLinkLabel){y=y.getAvoidableRect(E),a=a.Xh;var b=y.x,z=y.y;if(Vf(a,b,z))for(x=(z-a.Od)/a.sc|0,E=Math.min((b+y.width-a.Nd)/a.rc|0,a.di),y=Math.min((z+y.height-a.Od)/a.sc|0,a.ei),b=(b-a.Nd)/a.rc|0;b<=E;b++)if(z=a.ac[b],z.fill)z.fill(Oh,x,y+1);else for(var ee=x;ee<=y;ee++)z[ee]=Oh}else if(y instanceof Or)for(y=y.memberParts;y.next();)b=y.value,b instanceof Li&&Cf(a,b,x,E)}}function Eh(a,y){a.Xh===null||a.Xh.vs||y!==void 0&&(!y.avoidable||y.isLinkLabel)||(a.Xh.vs=!0)}qt.prototype.gs=function(a){this.wp.assign(a),this.computeAutoScrollPosition(this.wp).Xa(this.position)?this.ug():jg(this)};function jg(a){a.vk===-1&&(a.vk=zi(function(){if(a.vk!==-1&&(a.ug(),a.lastInput.event!==null)){var y=a.computeAutoScrollPosition(a.wp);y.Xa(a.position)||(a.position=y,a.lastInput.documentPoint=a.Ps(a.wp),a.doMouseMove(),a.Zi=!0,y=ut.alloc(),a.computeBounds(y),y.ed(a.documentBounds),Ig(a,y),ut.free(y),a.Fc=!0,a.bd(),jg(a))}},a.vp))}qt.prototype.ug=function(){this.vk!==-1&&(xn.clearTimeout(this.vk),this.vk=-1)},qt.prototype.computeAutoScrollPosition=function(a){var y=this.position,x=this.xp;if(0>=x.top&&0>=x.left&&0>=x.right&&0>=x.bottom)return y;var E=this.viewportBounds,b=this.scale;E=ut.allocAt(0,0,E.width*b,E.height*b);var z=Te.allocAt(0,0);if(a.x>=E.x&&a.x<E.x+x.left&&this.allowHorizontalScroll){var ee=Math.max(this.scrollHorizontalLineChange,1);ee|=0,z.x-=ee,a.x<E.x+x.left/2&&(z.x-=ee),a.x<E.x+x.left/4&&(z.x-=4*ee)}else a.x<=E.x+E.width&&a.x>E.x+E.width-x.right&&this.allowHorizontalScroll&&(ee=Math.max(this.scrollHorizontalLineChange,1),ee|=0,z.x+=ee,a.x>E.x+E.width-x.right/2&&(z.x+=ee),a.x>E.x+E.width-x.right/4&&(z.x+=4*ee));return a.y>=E.y&&a.y<E.y+x.top&&this.allowVerticalScroll?(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y-=ee,a.y<E.y+x.top/2&&(z.y-=ee),a.y<E.y+x.top/4&&(z.y-=4*ee)):a.y<=E.y+E.height&&a.y>E.y+E.height-x.bottom&&this.allowVerticalScroll&&(ee=Math.max(this.scrollVerticalLineChange,1),ee|=0,z.y+=ee,a.y>E.y+E.height-x.bottom/2&&(z.y+=ee),a.y>E.y+E.height-x.bottom/4&&(z.y+=4*ee)),z.Xa(He)||(y=new Te(y.x+z.x/b,y.y+z.y/b)),ut.free(E),Te.free(z),y},Ce=qt.prototype,Ce.Cs=function(){return null},Ce.av=function(){return null},Ce.bs=function(a,y){this.pj.add(a,y)},Ce.Fu=function(a){(this.Pw=a)||this.nodes.each(function(y){y instanceof Or&&(y.$p=null)})};function Mc(a,y,x){function E(){var ue=+new Date;for(z=!0,ee.reset();ee.next();)if(!ee.value[0].al){z=!1;break}z||ue-se>oe?y(x,b,re):xn.requestAnimationFrame(E)}for(var b=x.callback,z=!0,ee=a.Og.iterator;ee.next();)if(!ee.value[0].al){z=!1;break}if(typeof b!="function"||z)return y(x,b,a);var re=a,oe=x.callbackTimeout||300,se=+new Date;return xn.requestAnimationFrame(function(){E()}),null}Ce.Wz=function(a){return fa?(a===void 0&&(a={}),a.returnType="Image",this.Jx(a)):null},Ce.Jx=function(a){return a===void 0&&(a={}),Mc(this,this.Xz,a)},Ce.Xz=function(a,y,x){var E=lm(x,a,"canvas",null);if(E===null)return null;x=E.Z.canvas;var b=null;if(x!==null)switch(b=a.returnType,b===void 0?b="string":b=b.toLowerCase(),b){case Yd+"data":b=E.getImageData(0,0,x.width,x.height);break;case Yd:E=(a.document||document).createElement("img"),E.src=x.toDataURL(a.type,a.details),b=E;break;case"blob":return typeof y!="function"&&Ve('Error: Diagram.makeImageData called with "returnType: toBlob", but no required "callback" function property defined.'),typeof x.toBlob=="function"?(x.toBlob(y,a.type,a.details),"toBlob"):(y(null),null);default:b=x.toDataURL(a.type,a.details)}return typeof y=="function"?(y(b),null):b};function lm(a,y,x,E){if(a.animationManager.Cc(),a.bd(),a.ta===null)return null;typeof y!="object"&&Ve("properties argument must be an Object.");var b=y.size||null,z=y.scale||null;y.scale!==void 0&&isNaN(y.scale)&&(z="NaN");var ee=y.maxSize;y.maxSize===void 0&&(ee=x==="SVG"?new Re(1/0,1/0):new Re(2e3,2e3));var re=y.position||null,oe=y.parts||null,se=y.padding===void 0?1:y.padding,ue=y.background||null,fe=y.omitTemporary;fe===void 0&&(fe=!0);var ve=y.document||document,xe=y.elementFinished||null,Pe=y.showTemporary;Pe===void 0&&(Pe=!fe),y=y.showGrid,y===void 0&&(y=Pe),b!==null&&isNaN(b.width)&&isNaN(b.height)&&(b=null),typeof se=="number"?se=new Fi(se):se instanceof Fi||Ve("MakeImage padding must be a Margin or a number."),se.left=Math.max(se.left,0),se.right=Math.max(se.right,0),se.top=Math.max(se.top,0),se.bottom=Math.max(se.bottom,0),a.ib.Vc(!0),fe=new zl(null,ve,void 0,!0);var Fe=fe.context;if(!(b||z||oe||re))return fe.width=a.Aa+Math.ceil(se.left+se.right),fe.height=a.ya+Math.ceil(se.top+se.bottom),x==="SVG"?E===null?null:(E.resize(fe.width,fe.height,fe.width,fe.height),E.ownerDocument=ve,E.hs=xe,pf(a,E.context,se,new Re(fe.width,fe.height),a.Ca,a.pa,oe,ue,Pe,y),E.context):(a.Xm=!1,pf(a,Fe,se,new Re(fe.width,fe.height),a.Ca,a.pa,oe,ue,Pe,y),a.Xm=!0,fe.context);var Je=a.Pp,We=a.documentBounds.copy();if(We.Fv(a.yb),Pe)for(var rt=a.Wa.s,at=rt.length,ht=0;ht<at;ht++){var bt=rt[ht];if(bt.visible&&bt.isTemporary){bt=bt.Pa.s;for(var Jt=bt.length,Ci=0;Ci<Jt;Ci++){var ji=bt[Ci];ji.isInDocumentBounds&&ji.isVisible()&&(ji=ji.actualBounds,ji.w()&&We.ed(ji))}}}if(rt=new Te(We.x,We.y),oe!==null){for(at=new ut(0,0,0,0),ht=!0,bt=oe.iterator,bt.reset();bt.next();)Jt=bt.value,Jt instanceof ir&&(Ci=Jt.layer,Ci!==null&&!Ci.visible||Ci!==null&&!Pe&&Ci.isTemporary||!Jt.isVisible()||(Jt=Jt.actualBounds,Jt.w()&&(ht?(ht=!1,at.assign(Jt)):at.ed(Jt))));We.width=at.width,We.height=at.height,rt.x=at.x,rt.y=at.y}return re!==null&&re.w()&&(rt=re,z||(z=Je)),at=re=0,se!==null&&(re=se.left+se.right,at=se.top+se.bottom),ht=bt=0,b!==null&&(bt=b.width,ht=b.height,isFinite(bt)&&(bt=Math.max(0,bt-re)),isFinite(ht)&&(ht=Math.max(0,ht-at))),b!==null&&z!==null?(z==="NaN"&&(z=Je),b.w()?(b=bt,We=ht):isNaN(ht)?(b=bt,We=We.height*z):(b=We.width*z,We=ht)):b!==null?b.w()?(z=Math.min(bt/We.width,ht/We.height),b=bt,We=ht):isNaN(ht)?(z=bt/We.width,b=bt,We=We.height*z):(z=ht/We.height,b=We.width*z,We=ht):z!==null?z==="NaN"&&ee.w()?(z=Math.min((ee.width-re)/We.width,(ee.height-at)/We.height),z>Je?(z=Je,b=We.width,We=We.height):(b=ee.width,We=ee.height)):(b=We.width*z,We=We.height*z):(z=Je,b=We.width,We=We.height),se!==null?(b+=re,We+=at):se=new Fi(0),ee!==null&&(Je=ee.width,ee=ee.height,isNaN(Je)&&(Je=2e3),isNaN(ee)&&(ee=2e3),isFinite(Je)&&(b=Math.min(b,Je)),isFinite(ee)&&(We=Math.min(We,ee))),fe.width=Math.ceil(b),fe.height=Math.ceil(We),x==="SVG"?E===null?null:(E.resize(fe.width,fe.height,fe.width,fe.height),E.ownerDocument=ve,E.hs=xe,pf(a,E.context,se,new Re(Math.ceil(b),Math.ceil(We)),z,rt,oe,ue,Pe,y),E.context):(a.Xm=!1,pf(a,Fe,se,new Re(Math.ceil(b),Math.ceil(We)),z,rt,oe,ue,Pe,y),a.Xm=!0,fe.context)}Ct.Object.defineProperties(qt.prototype,{renderer:{get:function(){return this.nl},set:function(a){this instanceof pe||(a===""&&(a="default"),a=a.toLowerCase(),a!==this.nl&&(this.nl=a,a==="default"||a==="canvas"?(a=this.pj.get("svg"),a!==null&&a.Oa.remove(),this.ta&&(this.ib=this.ta.context)):a==="svg"?(this.pj.contains("svg")?a=this.pj.get("svg"):(a=new Au(this,xn.document),this.bs("svg",a)),this.div!==null&&this.div.appendChild(a.Oa),this.ib=a.context,this.ta&&(this.ta.context.setTransform(this.Mb,0,0,this.Mb,0,0),this.ta.context.clearRect(0,0,this.Aa,this.ya))):a!=="debug"||this.pj.contains("SVG")||(a=new Au(this,xn.document),this.bs("SVG",a),a.Oa.style.backgroundColor="whitesmoke",this.div!==null&&this.div.after(a.Oa)),this.hk()))}},div:{get:function(){return this.Ka},set:function(a){if(this.Ka!==a){var y=this.Ka;y!==null?(y.H=void 0,y.goDiagram=void 0,y.go=void 0,y.innerHTML="",this.ta!==null&&(y=this.ta.Oa,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.ta.mx()),this.ol&&(this.ol.disconnect(),this.ol=null),y=this.toolManager,y!==null&&(y.mouseDownTools.each(function(x){x.cancelWaitAfter()}),y.mouseMoveTools.each(function(x){x.cancelWaitAfter()}),y.mouseUpTools.each(function(x){x.cancelWaitAfter()})),y.cancelWaitAfter(),this.currentTool.doCancel(),this.ta=null,this.removeEventListener(xn,"resize",this.Ov,!1),this.removeEventListener(xn,"wheel",this.$j,!0),Tu===this&&(Tu=null)):this.ui===null&&(this.hf=!1),this.Ka=null,a!==null&&((y=a.H)&&(y.div=null),wg(this,a),this.hk())}}},$w:{get:function(){return this.Sq}},pi:{get:function(){return this.hf}},draggedLink:{get:function(){return this.nt},set:function(a){this.nt!==a&&(this.nt=a,a!==null&&(this.Vt=a.fromPort,this.Wt=a.toPort))}},Mx:{get:function(){return this.Vt},set:function(a){this.Vt=a}},Nx:{get:function(){return this.Wt},set:function(a){this.Wt=a}},animationManager:{get:function(){return this.Yd}},undoManager:{get:function(){return this.cc.undoManager}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a,this.cc.skipsUndoManager=a}},delaysLayout:{get:function(){return this.lt},set:function(a){this.lt=a}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Dn(a,"0 <= value <= 1",qt,"opacity"),this.pb=a,this.g("opacity",y,a),this.N())}},validCycle:{get:function(){return this.wu},set:function(a){var y=this.wu;y!==a&&(this.wu=a,this.g("validCycle",y,a))}},layers:{get:function(){return this.Wa.iterator}},isModelReadOnly:{get:function(){var a=this.cc;return a===null?!1:a.isReadOnly},set:function(a){var y=this.cc;y!==null&&(y.isReadOnly=a)}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},isEnabled:{get:function(){return this.Jd},set:function(a){var y=this.Jd;y!==a&&(this.Jd=a,this.g("isEnabled",y,a))}},allowClipboard:{get:function(){return this.Us},set:function(a){var y=this.Us;y!==a&&(this.Us=a,this.g("allowClipboard",y,a))}},allowCopy:{get:function(){return this.Fi},set:function(a){var y=this.Fi;y!==a&&(this.Fi=a,this.g("allowCopy",y,a))}},allowDelete:{get:function(){return this.Gi},set:function(a){var y=this.Gi;y!==a&&(this.Gi=a,this.g("allowDelete",y,a))}},allowDragOut:{get:function(){return this.Vs},set:function(a){var y=this.Vs;y!==a&&(this.Vs=a,this.g("allowDragOut",y,a))}},allowDrop:{get:function(){return this.Ws},set:function(a){var y=this.Ws;y!==a&&(this.Ws=a,this.g("allowDrop",y,a))}},allowTextEdit:{get:function(){return this.Pi},set:function(a){var y=this.Pi;y!==a&&(this.Pi=a,this.g("allowTextEdit",y,a))}},allowGroup:{get:function(){return this.Hi},set:function(a){var y=this.Hi;y!==a&&(this.Hi=a,this.g("allowGroup",y,a))}},allowUngroup:{get:function(){return this.Qi},set:function(a){var y=this.Qi;y!==a&&(this.Qi=a,this.g("allowUngroup",y,a))}},allowInsert:{get:function(){return this.Ys},set:function(a){var y=this.Ys;y!==a&&(this.Ys=a,this.g("allowInsert",y,a))}},allowLink:{get:function(){return this.Ii},set:function(a){var y=this.Ii;y!==a&&(this.Ii=a,this.g("allowLink",y,a))}},allowRelink:{get:function(){return this.Ki},set:function(a){var y=this.Ki;y!==a&&(this.Ki=a,this.g("allowRelink",y,a))}},allowMove:{get:function(){return this.Ji},set:function(a){var y=this.Ji;y!==a&&(this.Ji=a,this.g("allowMove",y,a))}},allowReshape:{get:function(){return this.Li},set:function(a){var y=this.Li;y!==a&&(this.Li=a,this.g("allowReshape",y,a))}},allowResize:{get:function(){return this.Mi},set:function(a){var y=this.Mi;y!==a&&(this.Mi=a,this.g("allowResize",y,a))}},allowRotate:{get:function(){return this.Ni},set:function(a){var y=this.Ni;y!==a&&(this.Ni=a,this.g("allowRotate",y,a))}},allowSelect:{get:function(){return this.Oi},set:function(a){var y=this.Oi;y!==a&&(this.Oi=a,this.g("allowSelect",y,a))}},allowUndo:{get:function(){return this.Zs},set:function(a){var y=this.Zs;y!==a&&(this.Zs=a,this.g("allowUndo",y,a))}},allowZoom:{get:function(){return this.at},set:function(a){var y=this.at;y!==a&&(this.at=a,this.g("allowZoom",y,a))}},hasVerticalScrollbar:{get:function(){return this.nn},set:function(a){var y=this.nn;y!==a&&(this.nn=a,this.Ee=!0,this.N(),this.g("hasVerticalScrollbar",y,a),Il(this,!1))}},hasHorizontalScrollbar:{get:function(){return this.mn},set:function(a){var y=this.mn;y!==a&&(this.mn=a,this.Ee=!0,this.N(),this.g("hasHorizontalScrollbar",y,a),Il(this,!1))}},allowHorizontalScroll:{get:function(){return this.Xs},set:function(a){var y=this.Xs;y!==a&&(this.Xs=a,this.g("allowHorizontalScroll",y,a),Il(this,!1))}},allowVerticalScroll:{get:function(){return this.$s},set:function(a){var y=this.$s;y!==a&&(this.$s=a,this.g("allowVerticalScroll",y,a),Il(this,!1))}},scrollHorizontalLineChange:{get:function(){return this.iu},set:function(a){var y=this.iu;y!==a&&(0>a&&Dn(a,">= 0",qt,"scrollHorizontalLineChange"),this.iu=a,this.g("scrollHorizontalLineChange",y,a))}},scrollVerticalLineChange:{get:function(){return this.mu},set:function(a){var y=this.mu;y!==a&&(0>a&&Dn(a,">= 0",qt,"scrollVerticalLineChange"),this.mu=a,this.g("scrollVerticalLineChange",y,a))}},lastInput:{get:function(){return this.cj},set:function(a){this.cj=a}},previousInput:{get:function(){return this.Qg},set:function(a){this.Qg=a}},firstInput:{get:function(){return this.bq},set:function(a){this.bq=a}},currentCursor:{get:function(){return this.it},set:function(a){if(a===""&&(a=this.Op),this.it!==a){var y=this.ta,x=this.Ka;if(y!==null&&x!==null){this.it=a;var E=y.style.cursor;y.style.cursor=a,x.style.cursor=a,y.style.cursor===E&&(y.style.cursor="-webkit-"+a,x.style.cursor="-webkit-"+a,y.style.cursor===E&&(y.style.cursor="-moz-"+a,x.style.cursor="-moz-"+a,y.style.cursor===E&&(y.style.cursor=a,x.style.cursor=a)))}}}},defaultCursor:{get:function(){return this.Op},set:function(a){a===""&&(a="auto");var y=this.Op;y!==a&&(this.Op=a,this.g("defaultCursor",y,a))}},click:{get:function(){return this.zh},set:function(a){var y=this.zh;y!==a&&(this.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.Fh},set:function(a){var y=this.Fh;y!==a&&(this.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.Bh},set:function(a){var y=this.Bh;y!==a&&(this.Bh=a,this.g("contextClick",y,a))}},mouseOver:{get:function(){return this.Qh},set:function(a){var y=this.Qh;y!==a&&(this.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.Oh},set:function(a){var y=this.Oh;y!==a&&(this.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.Nh},set:function(a){var y=this.Nh;y!==a&&(this.Nh=a,this.g("mouseHold",y,a))}},mouseDragOver:{get:function(){return this.Qt},set:function(a){var y=this.Qt;y!==a&&(this.Qt=a,this.g("mouseDragOver",y,a))}},mouseDrop:{get:function(){return this.Lh},set:function(a){var y=this.Lh;y!==a&&(this.Lh=a,this.g("mouseDrop",y,a))}},handlesDragDropForTopLevelParts:{get:function(){return this.xt},set:function(a){var y=this.xt;y!==a&&(this.xt=a,this.g("handlesDragDropForTopLevelParts",y,a))}},mouseEnter:{get:function(){return this.Mh},set:function(a){var y=this.Mh;y!==a&&(this.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.Ph},set:function(a){var y=this.Ph;y!==a&&(this.Ph=a,this.g("mouseLeave",y,a))}},toolTip:{get:function(){return this.$h},set:function(a){var y=this.$h;y!==a&&(this.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.Ch},set:function(a){var y=this.Ch;y!==a&&(this.Ch=a,this.g("contextMenu",y,a))}},commandHandler:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a,a.Xe(this))}},toolManager:{get:function(){return this.te},set:function(a){this.te!==a&&(this.te=a,a.diagram=this)}},defaultTool:{get:function(){return this.ob},set:function(a){var y=this.ob;y!==a&&(this.ob=a,a.diagram=this,this.currentTool===y&&(this.currentTool=a))}},currentTool:{get:function(){return this.hb},set:function(a){var y=this.hb;y&&(y.isActive&&y.doDeactivate(),y.cancelWaitAfter(),y.doStop()),a===null&&(a=this.defaultTool),a!==null&&(this.hb=a,a.diagram=this,a.doStart())}},selection:{get:function(){return this.Hw}},maxSelectionCount:{get:function(){return this.Nt},set:function(a){var y=this.Nt;if(y!==a)if(0<=a&&!isNaN(a)){if(this.Nt=a,this.g("maxSelectionCount",y,a),!this.undoManager.isUndoingRedoing&&(a=this.selection.count-a,0<a)){this.R("ChangingSelection",this.selection),y=this.selection.Fa();for(var x=0;x<a;x++)y[x].isSelected=!1;this.R("ChangedSelection",this.selection)}}else Dn(a,">= 0",qt,"maxSelectionCount")}},nodeSelectionAdornmentTemplate:{get:function(){return this.St},set:function(a){var y=this.St;y!==a&&(this.St=a,this.g("nodeSelectionAdornmentTemplate",y,a))}},groupSelectionAdornmentTemplate:{get:function(){return this.wt},set:function(a){var y=this.wt;y!==a&&(this.wt=a,this.g("groupSelectionAdornmentTemplate",y,a))}},linkSelectionAdornmentTemplate:{get:function(){return this.Kt},set:function(a){var y=this.Kt;y!==a&&(this.Kt=a,this.g("linkSelectionAdornmentTemplate",y,a))}},highlighteds:{get:function(){return this.nw}},isModified:{get:function(){var a=this.undoManager;return a.isEnabled?a.currentTransaction!==null?!0:this.rn&&this.Ce!==a.historyIndex:this.rn},set:function(a){if(this.rn!==a){this.rn=a;var y=this.undoManager;!a&&y.isEnabled&&(this.Ce=y.historyIndex),a||rm(this)}}},model:{get:function(){return this.cc},set:function(a){var y=this.cc;if(y!==a){this.currentTool.doCancel(),y&&y.undoManager!==a.undoManager&&y.undoManager.isInTransaction&&Ve("Do not replace a Diagram.model while a transaction is in progress."),this.animationManager.Cc(!0);var x=xg(this,!0);this.hf=!1,this.fn=!0,this.Ce=-2,this.kg=!1;var E=this.vb;this.vb=!0,Bu(this.animationManager,"Model"),y&&(this.pf!==null&&this.pf.each(function(z){return y.ik(z)}),y.ik(this.Oc)),this.cc=a,this.partManager=Tg(this.cc.type);for(var b=0;b<x.length;b++)this.add(x[b]);a.Pe(this.Hb),this.partManager.addAllModeledParts(),a.ik(this.Hb),a.Pe(this.Oc),this.pf!==null&&this.pf.each(function(z){return a.Pe(z)}),this.vb=E,this.Ya(),this.vb||this.N(),y&&a.undoManager.copyProperties(y.undoManager)}}},aa:{get:function(){return this.rw},set:function(a){this.rw=a}},As:{get:function(){return this.sy}},skipsModelSourceBindings:{get:function(){return this.Iw},set:function(a){this.Iw=a}},Ns:{get:function(){return this.ou},set:function(a){this.ou=a}},nodeTemplate:{get:function(){return this.Lg.I("")},set:function(a){var y=this.Lg.I("");y!==a&&(this.Lg.add("",a),this.g("nodeTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},nodeTemplateMap:{get:function(){return this.Lg},set:function(a){var y=this.Lg;y!==a&&(this.Lg=a,this.g("nodeTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplate:{get:function(){return this.Yi.I("")},set:function(a){var y=this.Yi.I("");y!==a&&(this.Yi.add("",a),this.g("groupTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},groupTemplateMap:{get:function(){return this.Yi},set:function(a){var y=this.Yi;y!==a&&(this.Yi=a,this.g("groupTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplate:{get:function(){return this.Kh.I("")},set:function(a){var y=this.Kh.I("");y!==a&&(this.Kh.add("",a),this.g("linkTemplate",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},linkTemplateMap:{get:function(){return this.Kh},set:function(a){var y=this.Kh;y!==a&&(this.Kh=a,this.g("linkTemplateMap",y,a),this.undoManager.isUndoingRedoing||this.Wd())}},isMouseCaptured:{get:function(){return this.qw},set:function(a){var y=this.ta;y!==null&&(y=y.Oa,y instanceof SVGElement||(a?(this.lastInput.bubbles=!1,this.removeEventListener(y,"pointermove",this.dk,!1),this.removeEventListener(y,"pointerdown",this.ui,!1),this.removeEventListener(y,"pointerup",this.fk,!1),this.removeEventListener(y,"pointerout",this.ek,!1),this.removeEventListener(y,"pointercancel",this.ck,!1),this.addEventListener(xn,"pointermove",this.dk,!0),this.addEventListener(xn,"pointerdown",this.ui,!0),this.addEventListener(xn,"pointerup",this.fk,!0),this.addEventListener(xn,"pointerout",this.ek,!0),this.addEventListener(xn,"pointercancel",this.ck,!0),this.removeEventListener(y,"wheel",this.$j,!1),this.addEventListener(xn,"wheel",this.$j,!0),this.addEventListener(xn,"selectstart",this.preventDefault,!1)):(this.removeEventListener(xn,"pointermove",this.dk,!0),this.removeEventListener(xn,"pointerdown",this.ui,!0),this.removeEventListener(xn,"pointerup",this.fk,!0),this.removeEventListener(xn,"pointerout",this.ek,!0),this.removeEventListener(xn,"pointercancel",this.ck,!0),this.addEventListener(y,"pointermove",this.dk,!1),this.addEventListener(y,"pointerdown",this.ui,!1),this.addEventListener(y,"pointerup",this.fk,!1),this.addEventListener(y,"pointerout",this.ek,!1),this.addEventListener(y,"pointercancel",this.ck,!1),this.removeEventListener(xn,"wheel",this.$j,!0),this.removeEventListener(xn,"selectstart",this.preventDefault,!1),this.addEventListener(y,"wheel",this.$j,!1)),this.qw=a))}},position:{get:function(){return this.pa},set:function(a){var y=Te.alloc().assign(this.pa);if(!y.D(a)){var x=this.viewportBounds.copy();this.pa.assign(a),Yp(this.animationManager,y,this.pa),this.vb||this.ta===null&&!this.wo.w()?Eu(this):(this.vb=!0,a=this.scale,Eg(this,this.Sp,this.Aa/a,this.ya/a,this.zk,!1),this.vb=!1),this.vb||this.onViewportBoundsChanged(x,this.viewportBounds,this.Ca,!1)}Te.free(y)}},initialPosition:{get:function(){return this.zt},set:function(a){this.zt.D(a)||(this.zt=a.J())}},initialScale:{get:function(){return this.At},set:function(a){this.At!==a&&(this.At=a)}},grid:{get:function(){return this.fe===null&&(this.fe=em(this)),this.fe},set:function(a){var y=this.fe;if(y!==a){y===null&&(y=this.fe=em(this)),a.type!==ni.Grid&&Ve("Diagram.grid must be a Panel of type Panel.Grid");var x=y.panel;x!==null&&x.remove(y),this.fe=a,a.name="GRID",x!==null&&x.add(a),Cu(this),this.N(),this.g("grid",y,a)}}},viewportBounds:{get:function(){return this.Rw}},viewSize:{get:function(){return this.wo},set:function(a){var y=this.viewSize;y.D(a)||(this.wo=a=a.J(),this.ya=this.Aa=0,a.w()?(this.Aa=a.width,this.ya=a.height):this.Ka!==null&&(this.Aa=this.Ka.clientWidth||1,this.ya=this.Ka.clientHeight||1),Eu(this),this.Ya(),this.g("viewSize",y,a),this.redraw())}},fixedBounds:{get:function(){return this.ut},set:function(a){var y=this.ut;y.D(a)||(a.width!==-1/0&&a.height!==1/0&&a.height!==-1/0||Ve("fixedBounds width/height must not be Infinity"),this.ut=a=a.J(),this.Ya(),this.g("fixedBounds",y,a))}},scrollMargin:{get:function(){return this.rj},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.rj;y.D(a)||(this.rj=a=a.J(),this.g("scrollMargin",y,a),this.hk())}},scrollMode:{get:function(){return this.sj},set:function(a){var y=this.sj;y!==a&&(this.sj=a,a===Ah&&Il(this,!1),this.g("scrollMode",y,a),this.Ee=!0,this.N())}},scrollsPageOnFocus:{get:function(){return this.nu},set:function(a){var y=this.nu;y!==a&&(this.nu=a,this.g("scrollsPageOnFocus",y,a))}},positionComputation:{get:function(){return this.Zt},set:function(a){var y=this.Zt;y!==a&&(this.Zt=a,Il(this,!1),this.g("positionComputation",y,a))}},scaleComputation:{get:function(){return this.fu},set:function(a){var y=this.fu;y!==a&&(this.fu=a,Bg(this,this.scale,this.scale),this.g("scaleComputation",y,a))}},documentBounds:{get:function(){return this.Sp}},isVirtualized:{get:function(){return this.It},set:function(a){var y=this.It;y!==a&&(this.It=a,this.g("isVirtualized",y,a))}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&Bg(this,y,a)}},defaultScale:{get:function(){return this.Pp},set:function(a){this.Pp=a}},autoScale:{get:function(){return this.yh},set:function(a){var y=this.yh;y!==a&&(this.yh=a,this.g("autoScale",y,a),a!==ys&&Il(this,!1))}},initialAutoScale:{get:function(){return this.Fg},set:function(a){var y=this.Fg;y!==a&&(this.Fg=a,this.g("initialAutoScale",y,a))}},initialViewportSpot:{get:function(){return this.Bt},set:function(a){var y=this.Bt;y!==a&&(a.sb()||Ve("initialViewportSpot must be a specific Spot: "+a),this.Bt=a,this.g("initialViewportSpot",y,a))}},initialDocumentSpot:{get:function(){return this.yt},set:function(a){var y=this.yt;y!==a&&(a.sb()||Ve("initialViewportSpot must be a specific Spot: "+a),this.yt=a,this.g("initialDocumentSpot",y,a))}},minScale:{get:function(){return this.Ot},set:function(a){var y=this.Ot;y!==a&&(0<a?(this.Ot=a,this.g("minScale",y,a),a>this.scale&&(this.scale=a)):Dn(a,"> 0",qt,"minScale"))}},maxScale:{get:function(){return this.Mt},set:function(a){var y=this.Mt;y!==a&&(0<a?(this.Mt=a,this.g("maxScale",y,a),a<this.scale&&(this.scale=a)):Dn(a,"> 0",qt,"maxScale"))}},zoomPoint:{get:function(){return this.zu},set:function(a){this.zu.D(a)||(this.zu=a=a.J())}},contentAlignment:{get:function(){return this.zk},set:function(a){var y=this.zk;y.D(a)||(this.zk=a=a.J(),this.g("contentAlignment",y,a),Il(this,!1))}},initialContentAlignment:{get:function(){return this.pq},set:function(a){var y=this.pq;y.D(a)||(this.pq=a=a.J(),this.g("initialContentAlignment",y,a))}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.Ya(),this.g("padding",y,a))}},partManager:{get:function(){return this.Pc},set:function(a){var y=this.Pc;y!==a&&(a.diagram!==null&&Ve("Cannot share PartManagers between Diagrams: "+a.toString()),y&&y.Xe(null),this.Pc=a,a.Xe(this))}},nodes:{get:function(){return this.partManager.nodes.iterator}},links:{get:function(){return this.partManager.links.iterator}},parts:{get:function(){return this.partManager.parts.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;y!==a&&(this.Sc=a,a.diagram=this,a.group=null,this.xh=!0,this.g("layout",y,a),this.$b())}},isTreePathToChildren:{get:function(){return this.Ht},set:function(a){var y=this.Ht;if(y!==a&&(this.Ht=a,this.g("isTreePathToChildren",y,a),!this.undoManager.isUndoingRedoing))for(a=this.nodes;a.next();)ip(a.value)}},treeCollapsePolicy:{get:function(){return this.uu},set:function(a){var y=this.uu;y!==a&&(a!==Lh&&a!==Da&&a!==Af&&Ve("Unknown Diagram.treeCollapsePolicy: "+a),this.uu=a,this.g("treeCollapsePolicy",y,a))}},Ue:{get:function(){return this.pw},set:function(a){this.pw=a}},avoidanceCellSize:{get:function(){return this.aw},set:function(a){this.Xh=null,this.aw=new Re(Math.max(1,a.width),Math.max(1,a.height))}},avoidanceLimit:{get:function(){return this.bw},set:function(a){this.bw=Math.max(1,a)}},autoScrollInterval:{get:function(){return this.vp},set:function(a){var y=this.vp;y!==a&&(this.vp=a,this.g("autoScrollInterval",y,a))}},autoScrollRegion:{get:function(){return this.xp},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.xp;y.D(a)||(this.xp=a=a.J(),this.Ya(),this.g("autoScrollRegion",y,a))}}}),Ct.Object.defineProperties(qt,{licenseKey:{get:function(){return Kg.jc()},set:function(a){Kg.add(a.replace(/\s/g,""))}},version:{get:function(){return Kd}}}),qt.prototype.makeImageData=qt.prototype.Jx,qt.prototype.makeImage=qt.prototype.Wz,qt.prototype.cacheGroupExternalLinks=qt.prototype.Fu,qt.prototype.addRenderer=qt.prototype.bs,qt.prototype.makeSVG=qt.prototype.av,qt.prototype.makeSvg=qt.prototype.Cs,qt.prototype.stopAutoScroll=qt.prototype.ug,qt.prototype.doAutoScroll=qt.prototype.gs,qt.prototype.isUnoccupied=qt.prototype.Yj,qt.prototype.raiseDiagramEvent=qt.prototype.R,qt.prototype.removeDiagramListener=qt.prototype.am,qt.prototype.addDiagramListener=qt.prototype.Bj,qt.prototype.findTreeRoots=qt.prototype.yz,qt.prototype.layoutDiagram=qt.prototype.Uz,qt.prototype.findTopLevelGroups=qt.prototype.qz,qt.prototype.findTopLevelNodesAndLinks=qt.prototype.rz,qt.prototype.ensureBounds=qt.prototype.Va,qt.prototype.findLinksByExample=qt.prototype.ls,qt.prototype.findNodesByExample=qt.prototype.ms,qt.prototype.findLinkForData=qt.prototype.Kc,qt.prototype.findNodeForData=qt.prototype.ii,qt.prototype.findPartForData=qt.prototype.Lc,qt.prototype.findLinkForKey=qt.prototype.findLinkForKey,qt.prototype.findNodeForKey=qt.prototype.Vb,qt.prototype.findPartForKey=qt.prototype.findPartForKey,qt.prototype.rebuildParts=qt.prototype.Wd,qt.prototype.transformViewToDoc=qt.prototype.Ps,qt.prototype.transformRectDocToView=qt.prototype.zA,qt.prototype.transformDocToView=qt.prototype.op,qt.prototype.centerRect=qt.prototype.es,qt.prototype.scrollToRect=qt.prototype.tv,qt.prototype.scroll=qt.prototype.scroll,qt.prototype.highlightCollection=qt.prototype.Jz,qt.prototype.highlight=qt.prototype.Iz,qt.prototype.selectCollection=qt.prototype.rA,qt.prototype.select=qt.prototype.select,qt.prototype.updateAllRelationshipsFromData=qt.prototype.rp,qt.prototype.updateAllTargetBindings=qt.prototype.updateAllTargetBindings,qt.prototype.commit=qt.prototype.commit,qt.prototype.rollbackTransaction=qt.prototype.Kf,qt.prototype.commitTransaction=qt.prototype.eb,qt.prototype.startTransaction=qt.prototype.Ea,qt.prototype.raiseChanged=qt.prototype.g,qt.prototype.raiseChangedEvent=qt.prototype.cb,qt.prototype.removeChangedListener=qt.prototype.ik,qt.prototype.addChangedListener=qt.prototype.Pe,qt.prototype.removeModelChangedListener=qt.prototype.mA,qt.prototype.addModelChangedListener=qt.prototype.Yw,qt.prototype.findLayer=qt.prototype.Qj,qt.prototype.removeLayer=qt.prototype.kA,qt.prototype.addLayerAfter=qt.prototype.Cy,qt.prototype.addLayerBefore=qt.prototype.Ww,qt.prototype.addLayer=qt.prototype.Al,qt.prototype.moveParts=qt.prototype.moveParts,qt.prototype.copyParts=qt.prototype.Kj,qt.prototype.removeParts=qt.prototype.Is,qt.prototype.remove=qt.prototype.remove,qt.prototype.add=qt.prototype.add,qt.prototype.clearDelayedGeometries=qt.prototype.bx,qt.prototype.setProperties=qt.prototype.nm,qt.prototype.attach=qt.prototype.Du,qt.prototype.set=qt.prototype.set,qt.prototype.resetInputOptions=qt.prototype.Sx,qt.prototype.setInputOption=qt.prototype.sA,qt.prototype.getInputOption=qt.prototype.Ql,qt.prototype.resetRenderingHints=qt.prototype.Tx,qt.prototype.setRenderingHint=qt.prototype.Xx,qt.prototype.getRenderingHint=qt.prototype.Gf,qt.prototype.maybeUpdate=qt.prototype.bd,qt.prototype.requestUpdate=qt.prototype.$b,qt.prototype.delayInitialization=qt.prototype.Xy,qt.prototype.isUpdateRequested=qt.prototype.Pz,qt.prototype.invalidateDocumentBounds=qt.prototype.Ya,qt.prototype.findObjectsNear=qt.prototype.og,qt.prototype.findPartsNear=qt.prototype.mz,qt.prototype.findObjectsIn=qt.prototype.Cf,qt.prototype.findPartsIn=qt.prototype.ux,qt.prototype.findObjectsAt=qt.prototype.ji,qt.prototype.findPartsAt=qt.prototype.lz,qt.prototype.findObjectAt=qt.prototype.ic,qt.prototype.findPartAt=qt.prototype.Ol,qt.prototype.focusObject=qt.prototype.zz,qt.prototype.alignDocument=qt.prototype.Jy,qt.prototype.zoomToRect=qt.prototype.BA,qt.prototype.zoomToFit=qt.prototype.zoomToFit,qt.prototype.diagramScroll=qt.prototype.kx,qt.prototype.focus=qt.prototype.focus;var Ef=new $t,um=null,fa=xn.document!==void 0,Gd=null,sd="",ys=new En(qt,"None",0),ll=new En(qt,"Uniform",1),ld=new En(qt,"UniformToFill",2),kc=new En(qt,"CycleAll",10),Wg=new En(qt,"CycleNotDirected",11),Hg=new En(qt,"CycleNotDirectedFast",12),Zg=new En(qt,"CycleNotUndirected",13),Vg=new En(qt,"CycleDestinationTree",14),Gg=new En(qt,"CycleSourceTree",15),Ah=new En(qt,"DocumentScroll",1),Fc=new En(qt,"InfiniteScroll",2),Lh=new En(qt,"TreeParentCollapsed",21),Da=new En(qt,"AllParentsCollapsed",22),Af=new En(qt,"AnyParentsCollapsed",23),Kg=new cn,Kd="2.3.10",Yd="image",Dc=null,hm=!1;function gs(){if(fa){var a=xn.document.createElement("canvas"),y=a.getContext("2d"),x=sn("7ca11abfd022028846");y[x]=sn("398c3597c01238");for(var E=["5da73c80a36455d7038e4972187c3cae51fd22",ai.Dx+"4ae6247590da4bb21c324ba3a84e385776",vi.xF+"fb236cdfda5de14c134ba1a95a2d4c7cc6f93c1387",pt.za],b=1;5>b;b++)y[sn("7ca11abfd7330390")](sn(E[b-1]),10,15*b);for(y[x]=sn("39f046ebb36e4b"),x=1;5>x;x++)y[sn("7ca11abfd7330390")](sn(E[x-1]),10,15*x);(E.length!==4||E[0][0]!=="5"||E[3][0]!=="7")&&(vi.prototype.Cd=vi.prototype.Eu),Dc=a}}qt.className="Diagram",qt.fromDiv=function(a){var y=a;return typeof a=="string"&&(y=xn.document.getElementById(a)),y instanceof HTMLDivElement&&y.H instanceof qt?y.H:null},qt.inherit=function(a,y){function x(){}if(Object.getPrototypeOf(a).prototype)throw Error(`Used go.Diagram.inherit defining already defined class
|
|
`+a);x.prototype=y.prototype,a.prototype=new x,a.prototype.constructor=a},qt.useDOM=function(a){fa=a?xn.document!==void 0:!1},qt.isUsingDOM=function(){return fa},qt.None=ys,qt.Uniform=ll,qt.UniformToFill=ld,qt.CycleAll=kc,qt.CycleNotDirected=Wg,qt.CycleNotDirectedFast=Hg,qt.CycleNotUndirected=Zg,qt.CycleDestinationTree=Vg,qt.CycleSourceTree=Gg,qt.DocumentScroll=Ah,qt.InfiniteScroll=Fc,qt.TreeParentCollapsed=Lh,qt.AllParentsCollapsed=Da,qt.AnyParentsCollapsed=Af;function dm(){this.wy=null,this.j="zz@orderNum",this._tk==="63ad05bbe23a1786468a4c741b6d2"?this.Rc=this.j=!0:this.Rc=null}function Ud(a,y){if(y.ib.setTransform(y.Mb,0,0,y.Mb,0,0),y.ib.yc(),a.Rc===null)e:{y="f";var x=xn[sn("76a715b2f73f148a")][sn("72ba13b5")]||"";if(a.Rc=!0,fa){var E=qt[sn("76a115b6ed251eaf4692")];if(E)for(var b=Kg.iterator;b.next()&&(E=b.value,E=sn(E).split(sn("39e9")),!(6>E.length));){var z=sn(E[1]).split(".");if(E[4]!=="7da71ca0")break;var ee=sn(ai[sn("6cae19")]).split(".");if(z[0]>ee[0]||z[0]===ee[0]&&z[1]>=ee[1]){var re=xn[sn("74a900bae4370f8b51")][sn("6fbb13a1c2311e8a57")].toLowerCase();if(ee=re[sn("73a612b6fb191d")](sn("3aad1ab6e022098b4dc4")),z=sn(E[2]),-1<ee&&(re=re[sn("73a612b6fb191d")](z.toLowerCase()+"/"),a.Rc=!(-1<re&&re<ee),!a.Rc))break;for(ee=x[sn("76ad18b4f73e")],re=x[sn("73a612b6fb191d")](sn("35e7"))+2;re<ee;re++)y+=x[re];if(ee=y[sn("73a612b6fb191d")](z),0>ee&&z!==sn("7da71ca0ad381e90")&&(ee=y[sn("73a612b6fb191d")](sn("76a715b2ef3e149757"))),0>ee&&(ee=y[sn("73a612b6fb191d")](sn("76a715b2ef3e149757"))),0>ee&&(ee=y[sn("73a612b6fb191d")](sn("2bfa41fdb3784bca12"))),0>ee&&(ee=x[sn("73a612b6fb191d")](sn("7baa19a6f76c1988428554"))),a.Rc=!(0<=ee&&ee<y[sn("73a612b6fb191d")](sn("35"))||y[sn("73a612b6fb191d")](sn("35"))===-1),!a.Rc||x[sn("73a612b6fb191d")](sn("7fb002b6ed25128b4da25b2e"))&&(a.Rc=!(-1<x[sn("73a612b6fb191d")](z)),!a.Rc)||(ee=xn[sn("76a715b2f73f148a")][sn("69ad17a1e03e")],re=ee[sn("73a612b6fb191d")](sn("7fb002b6ed25128b4da25b2e")),-1<re&&(a.Rc=!(ee[sn("73a612b6fb191d")](z)>re),!a.Rc)))break;if(z[0]==="#"){ee=xn.document.createElement("div");for(var oe=E[0].replace(/[A-Za-z]/g,"");4>oe.length;)oe+="9";if(re=oe,oe=oe.substr(oe.length-4),E="",E+=["gsh","gsf"][parseInt(oe.substr(0,1),10)%2],E+=["Header","Background","Display","Feedback"][parseInt(oe.substr(0,1),10)%4],ee[sn("79a417a0f0181a8946")]=E,xn.document[sn("78a712aa")]){xn.document[sn("78a712aa")][sn("7bb806b6ed32388c4a875b")](ee),oe=xn.getComputedStyle(ee).getPropertyValue(sn("78a704b7e62456904c9b12701b6532a8"));var se=xn.getComputedStyle(ee).getPropertyValue(sn("75b817b0ea2202"));if(xn.document[sn("78a712aa")][sn("68ad1bbcf533388c4a875b")](ee),oe){if(ee=xn[sn("77a902b0eb1b1e804a8a")],se==="0."+parseInt(re,10)%100||oe.indexOf(parseInt(z[1]+z[2],16))!==-1&&oe.indexOf(parseInt(z[3]+z[4],16))!==-1){a.Rc=!1;break}else if(ee&&ee(sn("32ae19a1e0331fc94084537c067a67fa59f1386b89d006")).matches)for(E="."+E,z=0;z<document.styleSheets.length;z++){ee=document.styleSheets[z].rules||document.styleSheets[z].cssRules;for(var ue in ee)if(E===ee[ue].selectorText){a.Rc=!1;break e}}}}else a.Rc=null,a.Rc=!1}}}else{for(ue=x[sn("76ad18b4f73e")],b=x[sn("73a612b6fb191d")](sn("35e7"))+2;b<ue;b++)y+=x[b];x=y[sn("73a612b6fb191d")](sn("7da71ca0ad381e90")),a.Rc=!(0<=x&&x<y[sn("73a612b6fb191d")](sn("35")))}}}return 0<a.Rc&&a!==a.wy}dm.className="DiagramHelper";function nh(a){this.j=a===void 0?new Te:a,this.o=new Te}Ct.Object.defineProperties(nh.prototype,{point:{get:function(){return this.j},set:function(a){this.j=a}},shifted:{get:function(){return this.o},set:function(a){this.o=a}}});var Nc="DraggingInfo";nh.className="DraggingInfo";function ie(a,y,x){this.node=a,this.info=y,this.Su=x}ie.className="DraggingNodeInfoPair";function ae(){this.reset()}ae.prototype.reset=function(){this.isGridSnapEnabled=!1,this.isGridSnapRealtime=!0,this.gridSnapCellSize=new Re(NaN,NaN).freeze(),this.gridSnapCellSpot=Ji,this.gridSnapOrigin=new Te(NaN,NaN).freeze(),this.groupsSnapMembers=this.dragsTree=this.dragsLink=!1,this.dragsMembers=this.groupsAlwaysMove=!0},ae.className="DraggingOptions";function ce(a,y){if(typeof a=="string"||xn.Element&&a instanceof Element)var x=qt.call(this,a)||this;else x=qt.call(this)||this,y=a;return he(x),y&&x.nm(y),x}xt(ce,qt);function he(a){a.allowDragOut=!0,a.allowMove=!1,a.isReadOnly=!0,a.contentAlignment=lr,a.layout=new $a}ce.prototype.reset=function(){qt.prototype.reset.call(this),he(this)},ce.className="Palette";function pe(a,y){if(typeof a=="string"||xn.Element&&a instanceof Element)var x=qt.call(this,a)||this;else x=qt.call(this)||this,y=a;var E=x;x.animationManager.isEnabled=!1,x.vb=!0,x.V=null,x.mn=!1,x.nn=!1,x.F=!0,x.u=!0,x.ia=0,x.o=!1,x.ql=null,x.Xx("drawShadows",!1),a=new ir;var b=new Wr;return b.stroke="magenta",b.strokeWidth=2,b.fill="transparent",b.name="BOXSHAPE",a.selectable=!0,a.selectionAdorned=!1,a.selectionObjectName="BOXSHAPE",a.locationObjectName="BOXSHAPE",a.resizeObjectName="BOXSHAPE",a.cursor="move",a.add(b),x.j=a,x.allowCopy=!1,x.allowDelete=!1,x.allowSelect=!0,x.autoScrollRegion=new Fi(0,0,0,0),x.pa.h(0,0),x.toolManager.gb("Dragging",new Qe,x.toolManager.mouseMoveTools),x.click=function(){var z=E.observed;if(z!==null){var ee=z.viewportBounds,re=E.lastInput.documentPoint;z.position=new Te(re.x-ee.width/2,re.y-ee.height/2)}},x.Pf=function(){E.Ya(),Oe(E)},x.Xd=function(){E.observed!==null&&(E.Ya(),E.N())},x.Ha=function(){1>E.updateDelay?E.N():E.o||(E.o=!0,setTimeout(function(){return E.redraw()},E.updateDelay))},x.Of=function(){E.observed!==null&&Oe(E)},x.autoScale=ll,x.vb=!1,y&&Object.assign(x,y),x}xt(pe,qt),pe.prototype.computePixelRatio=function(){return 1},pe.prototype.redraw=function(){if(this.o&&1<=this.updateDelay){this.o=!1;var a=this.ta,y=this.ib;if(a!==null&&y!==null){if(Hd(this),this.ql===null){var x=new zl(null);x.width=a.width,x.height=a.height,this.ql=x}try{this.ta=this.ql,this.ib=this.ta.context,this.ib.Vc(!0),this.ib.setTransform(1,0,0,1,0,0),this.ib.clearRect(0,0,this.ta.width,this.ta.height),Ae(this)}finally{this.ta=a,this.ib=y}}}qt.prototype.redraw.call(this)},pe.prototype.gc=function(){if(this.Ka===null&&Ve("No div specified"),this.ta===null&&Ve("No canvas specified"),!(this.ta instanceof Au)&&(jv(this.box),this.Fc)){var a=this.observed;if(a!==null&&!a.animationManager.defaultAnimation.isAnimating&&a.pi){Hd(this);var y=this.ta;a=this.ib,a.Vc(!0),a.setTransform(1,0,0,1,0,0),a.clearRect(0,0,y.width,y.height),1>this.updateDelay?Ae(this):this.ql!==null&&(a.drawImage(this.ql.Oa,0,0),y=this.Ab,y.reset(),this.scale!==1&&y.scale(this.scale),this.position.x===0&&this.position.y===0||y.translate(-this.position.x,-this.position.y),a.scale(this.Mb,this.Mb),a.transform(y.m11,y.m12,y.m21,y.m22,y.dx,y.dy),a.yc()),y=this.Wa.s;for(var x=y.length,E=0;E<x;E++)y[E].gc(a,this);this.Fc=this.vd=!1}}};function Ae(a){var y=a.observed;if(y!==null){var x=a.drawsTemporaryLayers,E=a.drawsGrid&&x,b=y.grid;E&&b!==null&&b.visible&&!isNaN(b.width)&&!isNaN(b.height)&&(b=ut.alloc().assign(a.viewportBounds).ed(y.viewportBounds),Cu(y,b),ut.free(b),ss(y));var z=a.Ab;z.reset(),a.scale!==1&&z.scale(a.scale),a.position.x===0&&a.position.y===0||z.translate(-a.position.x,-a.position.y),b=a.ib,b.scale(a.Mb,a.Mb),b.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),b.yc(),y=y.Wa.s,z=y.length;for(var ee=0;ee<z;ee++){var re=y[ee],oe=a;if(re.visible&&re.opacity!==0){var se=re.diagram.grid.part;if(!x&&re.isTemporary)E&&se.layer===re&&(re=th(re,b),se.gc(b,oe),b.globalAlpha=re);else{for(var ue=th(re,b),fe=oe.scale,ve=ut.alloc(),xe=re.Pa.s,Pe=xe.length,Fe=0;Fe<Pe;Fe++){var Je=xe[Fe];(E||Je!==se)&&re.Oj(b,Je,oe,null,fe,ve,!1)}ut.free(ve),b.globalAlpha=ue}}}}}function Oe(a){var y=a.box;if(y!==null){var x=a.observed;if(x!==null){a.Fc=!0,x=x.viewportBounds;var E=y.selectionObject,b=Re.alloc();b.h(x.width,x.height),E.desiredSize=b,Re.free(b),a=2/a.scale,E instanceof Wr&&(E.strokeWidth=a),y.location=new Te(x.x-a/2,x.y-a/2),y.isSelected=!0}}}pe.prototype.computeBounds=function(){var a=this.observed;if(a===null)return kr;var y=a.documentBounds.copy();return y.ed(a.viewportBounds),y},pe.prototype.invalidateViewport=function(){this.Fc!==!0&&(this.Fc=!0,this.$b())},pe.prototype.onViewportBoundsChanged=function(a,y,x,E){this.vb||(this.vd=!0,this.N(),this.Ee=!0,this.Ya(),Oe(this),this.fc.scale=x,this.fc.position.x=a.x,this.fc.position.y=a.y,this.fc.bounds.assign(a),this.fc.Oz=E,this.R("ViewportBoundsChanged",this.fc,a))},Ct.Object.defineProperties(pe.prototype,{observed:{get:function(){return this.V},set:function(a){var y=this.V;if(a instanceof pe&&Ve("Overview.observed Diagram may not be an Overview itself: "+a),y!==a){if(y!==null&&(this.remove(this.box),y.am("ViewportBoundsChanged",this.Pf),y.am("DocumentBoundsChanged",this.Xd),y.am("InvalidateDraw",this.Ha),y.am("AnimationFinished",this.Of)),this.V=a,a!==null&&(a.Bj("ViewportBoundsChanged",this.Pf),a.Bj("DocumentBoundsChanged",this.Xd),a.Bj("InvalidateDraw",this.Ha),a.Bj("AnimationFinished",this.Of),this.add(this.box)),this.Ya(),a===null){this.ql=null;var x=this.ta,E=this.ib;x&&E&&(E.setTransform(1,0,0,1,0,0),E.clearRect(0,0,x.width,x.height))}else this.Ha(null),Oe(this),this.N();this.g("observed",y,a)}}},box:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.remove(y),this.add(this.j),Oe(this),this.g("box",y,a))}},drawsTemporaryLayers:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a,this.redraw())}},drawsGrid:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a,this.redraw())}},updateDelay:{get:function(){return this.ia},set:function(a){0>a&&(a=0),this.ia!==a&&(this.ia=a)}}}),pe.className="Overview";function Qe(){Uo.call(this),this.j=null}xt(Qe,Uo),Qe.prototype.canStart=function(){if(!this.isEnabled)return!1;var a=this.diagram;if(a===null||!a.allowMove||!a.allowSelect)return!1;var y=a.observed;if(y===null)return!1;var x=a.lastInput;return!x.left||a.currentTool!==this&&(!this.isBeyondDragSize()||x.isTouchEvent&&x.timestamp-a.firstInput.timestamp<this.delay)?!1:(this.findDraggablePart()===null&&(x=y.viewportBounds,this.j=new Te(x.width/2,x.height/2),a=a.firstInput.documentPoint,y.position=new Te(a.x-this.j.x,a.y-this.j.y)),!0)},Qe.prototype.doActivate=function(){this.j=null,Uo.prototype.doActivate.call(this)},Qe.prototype.doUpdateCursor=function(){var a=this.diagram,y=a.box;y!==null&&y.cursor&&(a.currentCursor=y.cursor)},Qe.prototype.moveParts=function(){var a=this.diagram,y=a.observed;if(y!==null){var x=a.box;if(x!==null){if(this.j===null){var E=a.firstInput.documentPoint;x=x.location,this.j=new Te(E.x-x.x,E.y-x.y)}a=a.lastInput.documentPoint,y.position=new Te(a.x-this.j.x,a.y-this.j.y)}}},Qe.className="OverviewDraggingTool";function _e(){bi(this),this.H=Tu,this.Ha=this.u=this.o=!0,this.F=this.V=this.nb=this.ia=!1,this.ij=this.j=null,this.Hb=1.05,this.Jt=NaN,this.sw=null,this.Au=NaN,this.yu=kr,this.hb=!0,this.cg=null,this.ob=200}_e.prototype.toString=function(){return"CommandHandler"},_e.prototype.Xe=function(a){this.H=a},_e.prototype.doKeyDown=function(){var a=this.diagram,y=a.lastInput,x=Mr?y.meta:y.control,E=y.shift,b=y.alt,z=y.key;!x||z!=="C"&&z!=="Insert"?x&&z==="X"||E&&z==="Del"?this.canCutSelection()&&this.cutSelection():x&&z==="V"||E&&z==="Insert"?this.canPasteSelection()&&this.pasteSelection():x&&z==="Y"||b&&E&&z==="Backspace"?this.canRedo()&&this.redo():x&&z==="Z"||b&&z==="Backspace"?this.canUndo()&&this.undo():z==="Del"||z==="Backspace"?this.canDeleteSelection()&&this.deleteSelection():x&&z==="A"?this.canSelectAll()&&this.selectAll():z==="Esc"?this.canStopCommand()&&this.stopCommand():z==="Up"?a.allowVerticalScroll&&(x?a.scroll("pixel","up"):a.scroll("line","up")):z==="Down"?a.allowVerticalScroll&&(x?a.scroll("pixel","down"):a.scroll("line","down")):z==="Left"?a.allowHorizontalScroll&&(x?a.scroll("pixel","left"):a.scroll("line","left")):z==="Right"?a.allowHorizontalScroll&&(x?a.scroll("pixel","right"):a.scroll("line","right")):z==="PageUp"?E&&a.allowHorizontalScroll?a.scroll("page","left"):a.allowVerticalScroll&&a.scroll("page","up"):z==="PageDown"?E&&a.allowHorizontalScroll?a.scroll("page","right"):a.allowVerticalScroll&&a.scroll("page","down"):z==="Home"?x&&a.allowVerticalScroll?a.scroll("document","up"):!x&&a.allowHorizontalScroll&&a.scroll("document","left"):z==="End"?x&&a.allowVerticalScroll?a.scroll("document","down"):!x&&a.allowHorizontalScroll&&a.scroll("document","right"):z===" "?this.canScrollToPart()&&this.scrollToPart():z==="Subtract"?this.canDecreaseZoom()&&this.decreaseZoom():z==="Add"?this.canIncreaseZoom()&&this.increaseZoom():x&&z==="0"?this.canResetZoom()&&this.resetZoom():E&&z==="Z"?this.canZoomToFit()&&this.zoomToFit():x&&!E&&z==="G"?this.canGroupSelection()&&this.groupSelection():x&&E&&z==="G"?this.canUngroupSelection()&&this.ungroupSelection():z==="F2"||y.event&&y.event.key==="F2"?this.canEditTextBlock()&&this.editTextBlock():z==="ContextMenu"||y.event&&y.event.key==="ContextMenu"?this.canShowContextMenu()&&this.showContextMenu():y.bubbles=!0:this.canCopySelection()&&this.copySelection()},_e.prototype.doKeyUp=function(){this.diagram.lastInput.bubbles=!0},_e.prototype.stopCommand=function(){var a=this.diagram,y=a.currentTool;y instanceof Ao&&a.allowSelect&&a.clearSelection(),y!==null&&y.doCancel()},_e.prototype.canStopCommand=function(){return!0},_e.prototype.selectAll=function(){var a=this.diagram;a.N();try{a.currentCursor="wait",a.R("ChangingSelection",a.selection);for(var y=a.parts;y.next();)y.value.isSelected=!0;for(var x=a.nodes;x.next();)x.value.isSelected=!0;for(var E=a.links;E.next();)E.value.isSelected=!0}finally{a.R("ChangedSelection",a.selection),a.currentCursor=""}},_e.prototype.canSelectAll=function(){return this.diagram.allowSelect},_e.prototype.deleteSelection=function(){var a=this.diagram;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Delete"),a.R("SelectionDeleting",a.selection);for(var y=new yn,x=a.selection.iterator;x.next();)cd(y,x.value,!0,this.deletesTree?1/0:0,this.deletesConnectedLinks?null:!1,function(E){return E.canDelete()});a.Is(y,!0),a.R("SelectionDeleted",y)}finally{a.eb("Delete"),a.R("ChangedSelection",a.selection),a.currentCursor=""}},_e.prototype.canDeleteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowDelete||a.selection.count===0)},_e.prototype.copySelection=function(){var a=this.diagram,y=new yn;for(a=a.selection.iterator;a.next();)cd(y,a.value,!0,this.copiesTree?1/0:0,this.copiesConnectedLinks,function(x){return x.canCopy()});this.copyToClipboard(y)},_e.prototype.canCopySelection=function(){var a=this.diagram;return!!(a.allowCopy&&a.allowClipboard&&a.selection.count!==0)},_e.prototype.cutSelection=function(){this.copySelection(),this.deleteSelection()},_e.prototype.canCutSelection=function(){var a=this.diagram;return!!(!a.isReadOnly&&!a.isModelReadOnly&&a.allowCopy&&a.allowDelete&&a.allowClipboard&&a.selection.count!==0)},_e.prototype.copyToClipboard=function(a){var y=this.diagram,x=null;if(a===null)Gd=null,sd="";else{x=y.model;var E=!1,b=!1,z=null;try{x.Tl()&&(E=x.Jj,x.Jj=this.copiesParentKey),x.Wj()&&(b=x.Ij,x.Ij=this.copiesGroupKey),z=y.Kj(a,null,!0)}finally{x.Tl()&&(x.Jj=E),x.Wj()&&(x.Ij=b),x=new cn,x.addAll(z),Gd=x,sd=y.model.dataFormat}}y.R("ClipboardChanged",x)},_e.prototype.pasteFromClipboard=function(){var a=new yn,y=Gd;if(y===null)return a;var x=this.diagram;if(sd!==x.model.dataFormat)return a;var E=x.model,b=!1,z=!1,ee=null;try{E.Tl()&&(b=E.Jj,E.Jj=this.copiesParentKey),E.Wj()&&(z=E.Ij,E.Ij=this.copiesGroupKey),ee=x.Kj(y,x,!1)}finally{for(E.Tl()&&(E.Jj=b),E.Wj()&&(E.Ij=z),y=ee.iterator;y.next();)x=y.value,E=y.key,x.location.w()||(E.location.w()?x.location=E.location:!x.position.w()&&E.position.w()&&(x.position=E.position)),a.add(x)}return a},_e.prototype.pasteSelection=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Paste");var x=this.pasteFromClipboard();0<x.count&&y.clearSelection(!0);for(var E=x.iterator;E.next();)E.value.isSelected=!0;if(a!==null){var b=y.computePartsBounds(y.selection);if(b.w()){var z=this.computeEffectiveCollection(y.selection,y.Wm);rd(y,z,new Te(a.x-b.centerX,a.y-b.centerY),y.Wm,!1)}}y.R("ClipboardPasted",x)}finally{y.eb("Paste"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},_e.prototype.canPasteSelection=function(){var a=this.diagram;return!(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowClipboard||Gd===null||Gd.count===0||sd!==a.model.dataFormat)},_e.prototype.undo=function(){this.diagram.undoManager.undo()},_e.prototype.canUndo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canUndo()},_e.prototype.redo=function(){this.diagram.undoManager.redo()},_e.prototype.canRedo=function(){var a=this.diagram;return a.isReadOnly||a.isModelReadOnly?!1:a.allowUndo&&a.undoManager.canRedo()},_e.prototype.decreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;y.autoScale===ys&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},_e.prototype.canDecreaseZoom=function(a){a===void 0&&(a=1/this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},_e.prototype.increaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;y.autoScale===ys&&(a=y.scale*a,a<y.minScale||a>y.maxScale||(y.scale=a))},_e.prototype.canIncreaseZoom=function(a){a===void 0&&(a=this.zoomFactor);var y=this.diagram;return y.autoScale!==ys?!1:(a=y.scale*a,a<y.minScale||a>y.maxScale?!1:y.allowZoom)},_e.prototype.resetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;a<y.minScale||a>y.maxScale||(y.scale=a)},_e.prototype.canResetZoom=function(a){a===void 0&&(a=this.defaultScale);var y=this.diagram;return a<y.minScale||a>y.maxScale?!1:y.allowZoom},_e.prototype.zoomToFit=function(){var a=this.diagram,y=a.animationManager;y.Cc(),a.redraw();var x=a.position,E=a.scale;Bu(y,"Zoom To Fit"),this.isZoomToFitRestoreEnabled&&E===this.Au&&!isNaN(this.Jt)&&a.documentBounds.D(this.yu)?(a.scale=this.Jt,a.position=this.sw,this.Au=NaN,this.yu=kr):(this.Jt=E,this.sw=x.copy(),a.zoomToFit(),this.Au=a.scale,this.yu=a.documentBounds.copy()),uf(y)},_e.prototype.canZoomToFit=function(){return this.diagram.allowZoom},_e.prototype.scrollToPart=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.Va(),a===null){try{this.cg!==null&&(this.cg.next()?a=this.cg.value:this.cg=null)}catch(oe){this.cg=null}a===null&&(0<y.highlighteds.count?this.cg=y.highlighteds.iterator:0<y.selection.count&&(this.cg=y.selection.iterator),this.cg!==null&&this.cg.next()&&(a=this.cg.value))}if(a!==null){var x=y.animationManager;Bu(x,"Scroll To Part");var E=this.scrollToPartPause;if(0<E){var b=ct(this,a,[a]);if(b.length===1)y.Ea(),y.es(a.actualBounds),y.eb("Scroll To Part");else{var z=function(){y.Ea();for(var oe=b.pop();0<b.length&&oe instanceof Li&&oe.isTreeExpanded&&(!(oe instanceof Or)||oe.isSubGraphExpanded);)oe=b.pop();0<b.length?(oe instanceof ir&&y.tv(oe.actualBounds),oe instanceof Li&&!oe.isTreeExpanded&&(oe.isTreeExpanded=!0),oe instanceof Or&&!oe.isSubGraphExpanded&&(oe.isSubGraphExpanded=!0)):(oe instanceof ir&&y.es(oe.actualBounds),y.am("LayoutCompleted",ee)),y.eb("Scroll To Part")},ee=function(){zi(z,(x.isEnabled?x.duration:0)+E)};y.Bj("LayoutCompleted",ee),z()}}else{var re=y.position.copy();y.es(a.actualBounds),re.Xa(y.position)&&x.Cc()}}};function ct(a,y,x){if(y.isVisible())return x;if(y instanceof uo)ct(a,y.adornedPart,x);else if(y instanceof hi){var E=y.fromNode;E!==null&&ct(a,E,x),y=y.toNode,y!==null&&ct(a,y,x)}else y instanceof Li&&(E=y.labeledLink,E!==null&&ct(a,E,x),E=y.pg(),E!==null&&(E.isTreeExpanded||E.wasTreeExpanded||x.push(E),ct(a,E,x))),y=y.containingGroup,y!==null&&(y.isSubGraphExpanded||y.wasSubGraphExpanded||x.push(y),ct(a,y,x));return x}_e.prototype.canScrollToPart=function(a){return a===void 0&&(a=null),a!==null&&!(a instanceof ir)?!1:(a=this.diagram,a.selection.count===0&&a.highlighteds.count===0?!1:a.allowHorizontalScroll&&a.allowVerticalScroll)},_e.prototype.collapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse Tree"),Bu(y.animationManager,"Collapse Tree");var x=new cn;if(a!==null&&a.isTreeExpanded)a.collapseTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Li&&b.isTreeExpanded&&(b.collapseTree(),x.add(b))}y.R("TreeCollapsed",x)}finally{y.eb("Collapse Tree")}},_e.prototype.canCollapseTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Li&&a.isTreeExpanded))return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Li&&y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},_e.prototype.expandTree=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand Tree"),Bu(y.animationManager,"Expand Tree");var x=new cn;if(a!==null&&!a.isTreeExpanded)a.expandTree(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Li&&!b.isTreeExpanded&&(b.expandTree(),x.add(b))}y.R("TreeExpanded",x)}finally{y.eb("Expand Tree")}},_e.prototype.canExpandTree=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null){if(!(a instanceof Li)||a.isTreeExpanded)return!1;if(0<a.Qo().count)return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Li&&!y.isTreeExpanded&&0<y.Qo().count)return!0;return!1},_e.prototype.groupSelection=function(){var a=this.diagram,y=a.model;if(y.Xj()){var x=this.archetypeGroupData;if(x!==null){var E=null;try{a.currentCursor="wait",a.R("ChangingSelection",a.selection),a.Ea("Group");for(var b=new cn,z=a.selection.iterator;z.next();){var ee=z.value;ee.Zc()&&ee.canGroup()&&b.add(ee)}for(var re=new cn,oe=b.iterator;oe.next();){var se=oe.value;z=!1;for(var ue=b.iterator;ue.next();)if(se.Td(ue.value)){z=!0;break}z||re.add(se)}if(0<re.count){var fe=re.first().containingGroup;if(fe!==null)for(;fe!==null;){b=!1;for(var ve=re.iterator;ve.next();)if(!ve.value.Td(fe)){b=!0;break}if(b)fe=fe.containingGroup;else break}if(x instanceof Or)jl(x),E=x.copy(),E!==null&&a.add(E);else if(y.Yu(x)){var xe=y.copyNodeData(x);Ot(xe)&&(y.xf(xe),E=a.ii(xe))}if(E!==null){fe!==null&&this.isValidMember(fe,E)&&(E.containingGroup=fe);for(var Pe=re.iterator;Pe.next();){var Fe=Pe.value;this.isValidMember(E,Fe)&&(Fe.containingGroup=E)}a.clearSelection(!0),E.isSelected=!0}}a.R("SelectionGrouped",E)}finally{a.eb("Group"),a.R("ChangedSelection",a.selection),a.currentCursor=""}}}},_e.prototype.canGroupSelection=function(){var a=this.diagram;if(a.isReadOnly||a.isModelReadOnly||!a.allowInsert||!a.allowGroup||!a.model.Xj()||this.archetypeGroupData===null)return!1;for(a=a.selection.iterator;a.next();){var y=a.value;if(y.Zc()&&y.canGroup())return!0}return!1};function fn(a){var y=si();for(a=a.iterator;a.next();){var x=a.value;x instanceof hi||y.push(x)}a=new yn,x=y.length;for(var E=0;E<x;E++){for(var b=y[E],z=!0,ee=0;ee<x;ee++)if(b.Td(y[ee])){z=!1;break}z&&a.add(b)}return Pi(y),a}_e.prototype.isValidMember=function(a,y){if(y===null||a===y||y instanceof hi)return!1;if(a!==null){if(a===y||a.Td(y))return!1;var x=a.memberValidation;if(x!==null&&!x(a,y)||a.data===null&&y.data!==null||a.data!==null&&y.data===null)return!1}return x=this.memberValidation,x!==null?x(a,y):!0},_e.prototype.ungroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.model;if(x.Xj())try{y.currentCursor="wait",y.R("ChangingSelection",y.selection),y.Ea("Ungroup");var E=new cn;if(a!==null)E.add(a);else for(var b=y.selection.iterator;b.next();){var z=b.value;z instanceof Or&&z.canUngroup()&&E.add(z)}var ee=new cn;if(0<E.count){y.clearSelection(!0);for(var re=E.iterator;re.next();){var oe=re.value;oe.expandSubGraph();var se=oe.containingGroup,ue=se!==null&&se.data!==null?x.wa(se.data):void 0;ee.addAll(oe.memberParts);for(var fe=ee.iterator;fe.next();){var ve=fe.value;if(ve.isSelected=!0,!(ve instanceof hi)){var xe=ve.data;xe!==null?x.mp(xe,ue):ve.containingGroup=se}}y.remove(oe)}}y.R("SelectionUngrouped",E,ee)}finally{y.eb("Ungroup"),y.R("ChangedSelection",y.selection),y.currentCursor=""}},_e.prototype.canUngroupSelection=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowDelete||!y.allowUngroup||!y.model.Xj())return!1;if(a!==null){if(!(a instanceof Or))return!1;if(a.canUngroup())return!0}else for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Or&&y.canUngroup())return!0;return!1},_e.prototype.addTopLevelParts=function(a,y){var x=!0;for(a=fn(a).iterator;a.next();){var E=a.value;E.containingGroup!==null&&(!y||this.isValidMember(null,E)?E.containingGroup=null:x=!1)}return x},_e.prototype.collapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Collapse SubGraph"),Bu(y.animationManager,"Collapse SubGraph");var x=new cn;if(a!==null&&a.isSubGraphExpanded)a.collapseSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Or&&b.isSubGraphExpanded&&(b.collapseSubGraph(),x.add(b))}y.R("SubGraphCollapsed",x)}finally{y.eb("Collapse SubGraph")}},_e.prototype.canCollapseSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return!!(a instanceof Or&&a.isSubGraphExpanded);for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Or&&y.isSubGraphExpanded)return!0;return!1},_e.prototype.expandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;try{y.Ea("Expand SubGraph"),Bu(y.animationManager,"Expand SubGraph");var x=new cn;if(a!==null&&!a.isSubGraphExpanded)a.expandSubGraph(),x.add(a);else if(a===null)for(var E=y.selection.iterator;E.next();){var b=E.value;b instanceof Or&&!b.isSubGraphExpanded&&(b.expandSubGraph(),x.add(b))}y.R("SubGraphExpanded",x)}finally{y.eb("Expand SubGraph")}},_e.prototype.canExpandSubGraph=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly)return!1;if(a!==null)return a instanceof Or&&!a.isSubGraphExpanded;for(a=y.selection.iterator;a.next();)if(y=a.value,y instanceof Or&&!y.isSubGraphExpanded)return!0;return!1},_e.prototype.editTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram,x=y.toolManager.findTool("TextEditing");if(x!==null){if(a===null){a=null;for(var E=y.selection.iterator;E.next();){var b=E.value;if(b.canEdit()){a=b;break}}if(a===null)return;a=a.Nl(function(z){return z instanceof jo&&z.editable})}a!==null&&(y.currentTool=null,x.textBlock=a,y.currentTool=x)}},_e.prototype.canEditTextBlock=function(a){a===void 0&&(a=null);var y=this.diagram;if(y.isReadOnly||y.isModelReadOnly||!y.allowTextEdit||y.toolManager.findTool("TextEditing")===null)return!1;if(a!==null){if(!(a instanceof jo))return!1;if(a=a.part,a!==null&&a.canEdit())return!0}else for(y=y.selection.iterator;y.next();)if(a=y.value,a.canEdit()&&(a=a.Nl(function(x){return x instanceof jo&&x.editable}),a!==null))return!0;return!1},_e.prototype.showContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");if(x!==null&&(a===void 0&&(a=0<y.selection.count?y.selection.first():y),a=x.findObjectWithContextMenu(a),a!==null)){var E=y.lastInput,b=null;a instanceof kt?b=a.ga(Mi):y.viewportBounds.ca(E.documentPoint)||(b=y.viewportBounds,b=new Te(b.x+b.width/2,b.y+b.height/2)),b!==null&&(E.viewPoint=y.op(b),E.documentPoint=b,E.left=!1,E.right=!0,E.up=!0),y.currentTool=x,qu(x,!1,a)}},_e.prototype.canShowContextMenu=function(a){var y=this.diagram,x=y.toolManager.findTool("ContextMenu");return x===null?!1:(a===void 0&&(a=0<y.selection.count?y.selection.first():y),x.findObjectWithContextMenu(a)!==null)},_e.prototype.computeEffectiveCollection=function(a,y){var x=this.diagram,E=x.toolManager.findTool("Dragging"),b=x.currentTool===E;if(y===void 0&&(y=b?E.dragOptions:x.Wm),E=new $t,a===null)return E;for(var z=a.iterator;z.next();)Iu(x,E,z.value,b,y);if(x.draggedLink!==null&&y.dragsLink)return E;for(z=a.iterator;z.next();)a=z.value,a instanceof hi&&(y=a.fromNode,y===null||E.contains(y)?(y=a.toNode,y===null||E.contains(y)||E.remove(a)):E.remove(a));return E},Ct.Object.defineProperties(_e.prototype,{diagram:{get:function(){return this.H}},copiesClipboardData:{get:function(){return this.o},set:function(a){this.o=a}},copiesConnectedLinks:{get:function(){return this.u},set:function(a){this.u=a}},deletesConnectedLinks:{get:function(){return this.Ha},set:function(a){this.Ha=a}},copiesTree:{get:function(){return this.ia},set:function(a){this.ia=a}},deletesTree:{get:function(){return this.nb},set:function(a){this.nb=a}},copiesParentKey:{get:function(){return this.V},set:function(a){this.V=a}},copiesGroupKey:{get:function(){return this.F},set:function(a){this.F=a}},archetypeGroupData:{get:function(){return this.j},set:function(a){this.j=a}},memberValidation:{get:function(){return this.ij},set:function(a){this.ij=a}},defaultScale:{get:function(){return this.diagram.defaultScale},set:function(a){this.diagram.defaultScale=a}},zoomFactor:{get:function(){return this.Hb},set:function(a){1<a||Ve("zoomFactor must be larger than 1.0, not: "+a),this.Hb=a}},isZoomToFitRestoreEnabled:{get:function(){return this.hb},set:function(a){this.hb=a}},scrollToPartPause:{get:function(){return this.ob},set:function(a){this.ob=a}}}),_e.className="CommandHandler",qp=function(){return new _e};function kt(){bi(this),this.l=30723,this.pb=1,this.bn="",this.Ma=this.Me=null,this.pa=new Te(NaN,NaN).freeze(),this.jd=Wn,this.Ab=new vi,this.wh=new vi,this.Lb=null,this.Ca=this.Kk=1,this.Kb=0,this.Kg=Rr,this.uc=new ut(NaN,NaN,NaN,NaN).freeze(),this.Ib=new ut(NaN,NaN,NaN,NaN).freeze(),this.dc=new ut(0,0,NaN,NaN).freeze(),this.ba=this.Yn=this.Zn=null,this.sk=this.Jb=Lo,this.Ag=this.io=0,this.V=this.tb=this.Dh=this.A=this.Ua=null,this.Uc=!1,this.jo=this.Ng=null}var qn,Zn,Ki,qi,mr,Ir,$r,Gr,oo,ko;kt.prototype.cloneProtected=function(a){a.l=this.l|6144,a.pb=this.pb,a.bn=this.bn,a.Ma=this.Ma,a.pa.assign(this.pa),a.jd=this.jd.J(),this.Lb!==null?a.Lb=this.Lb.copy():a.Lb=null,a.Ca=this.Ca,a.Kb=this.Kb,a.Kg=this.Kg.J(),a.uc.assign(this.uc),a.Ib.assign(this.Ib),a.dc.assign(this.dc),a.Yn=this.Yn,this.ba!==null&&(a.ba=this.ba.copy()),a.Jb=this.Jb.J(),a.sk=this.sk.J(),a.io=this.io,a.Ag=this.Ag,this.Ua!==null&&(a.Ua=this.Ua.copy()),this.A!==null&&(a.A=this.A.nc?this.A:this.A.copy()),this.Dh!==null&&(a.Dh=Hn(this.Dh)),this.tb!==null&&(a.tb=this.tb.copy())},kt.prototype.Vw=function(a){var y=this.Dh;if(Bn(y)){for(var x=0;x<y.length;x++)if(y[x]===a)return}else this.Dh=y=[];y.push(a)},kt.prototype.Af=function(a){a.Zn=null,a.Ng=null,a.v()},kt.prototype.clone=function(){var a=new this.constructor;if(this.cloneProtected(a),this.Dh!==null)for(var y=0;y<this.Dh.length;y++){var x=this.Dh[y];a[x]=this[x]}return a},kt.prototype.copy=function(){return this.clone()},Ce=kt.prototype,Ce.qb=function(a){a.classType===hi?a.name.indexOf("Orient")===0?this.segmentOrientation=a:Ve("Unknown Link enum value for GraphObject.segmentOrientation property: "+a):a.classType===kt&&(this.stretch=a)},Ce.toString=function(){return yi(this.constructor)+"#"+Nr(this)},Ce.th=function(){this.A!==null&&(this.A.nc=!0)};function Vr(a){a.A===null?a.A=new Tc:a.A.nc&&(a.A=a.A.copy())}Ce.Xc=function(){if(this.ba===null){var a=new Yg;a.Xi=Zi,a.yj=Zi,a.Vi=10,a.wj=10,a.Wi=0,a.xj=0,this.ba=a}},Ce.cb=function(a,y,x,E,b,z,ee){var re=this.part;if(re!==null&&(re.gk(a,y,x,E,b,z,ee),x===this&&a===To&&is(this)&&_o(this,re,y),z=this.diagram,this.animationTriggers===null||z===null||!z.pi||z.undoManager.isUndoingRedoing||z.animationManager.Dm||(a=this.animationTriggers.get(y),a!==null&&z.animationManager.isEnabled&&!z.animationManager.isTicking&&(this.jo===null&&(this.jo=new $t),ee=z.undoManager.transactionLevel===0,a.startCondition===td?ee=!0:a.startCondition===Rd&&(ee=!1),ee?(z=new as,Xp(a,z),ee=this.jo.get(a),ee!==null&&ee.stop(),this.jo.add(a,z),z.vu=this,z.Nw=a,z.add(this,y,E,b),z.start()):(Bu(z.animationManager,"Trigger"),z.animationManager.defaultAnimation.add(this,y,E,b)))),this instanceof ni&&x===re&&(re.l&16777216)!==0&&re.data!==null))for(x=this.O.s,E=x.length,b=0;b<E;b++)re=x[b],re instanceof ni&&Qd(re,function(oe){oe.data!==null&&oe.l&16777216&&oe.La(y)})};function _o(a,y,x){var E=a.ih();if(E!==null)for(var b=a.localBindings.iterator;b.next();){var z=b.value,ee=null;if(z.sourceName!==null){if(ee=DS(z,E,a),ee===null)continue;z.sp(a,ee,x,null)}else if(z.isToModel){var re=y.diagram;re===null||re.skipsModelSourceBindings||z.sp(a,re.model.modelData,x,E)}else{if(re=E.data,re===null)continue;var oe=y.diagram;oe===null||oe.skipsModelSourceBindings||z.sp(a,re,x,E)}ee===a&&(re=E.ks(z.Ai),re!==null&&z.Mv(re,ee,x))}}Ce.ks=function(a){return this.bindingId===a?this:null},Ce.g=function(a,y,x){this.cb(To,a,this,y,x)},Ce.Ge=function(a,y,x,E){var b=this.uc;if(b.h(a,y,x,E),this.Ca!==1||this.Kb!==0){this.Lb===null&&(this.Lb=new vi);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),z.pp(b)}};function ja(a,y,x,E){return a.pickable===!1?!1:(E.multiply(a.transform),x?a.Yc(y,E):a.fh(y,E))}Ce.tx=function(a,y,x){if(this.pickable===!1)return!1;var E=this.naturalBounds;return y=a.Bf(y),x?on(a.x,a.y,0,0,0,E.height)<=y||on(a.x,a.y,0,E.height,E.width,E.height)<=y||on(a.x,a.y,E.width,E.height,E.width,0)<=y||on(a.x,a.y,E.width,0,0,0)<=y:a.zd(0,0)<=y&&a.zd(0,E.height)<=y&&a.zd(E.width,0)<=y&&a.zd(E.width,E.height)<=y},Ce.se=function(){return!0},Ce.ca=function(a){var y=Te.alloc();y.assign(a),this.transform.Ga(y);var x=this.actualBounds;if(!x.w())return Te.free(y),!1;var E=this.diagram;if(E!==null&&E.wq){var b=E.Ql("extraTouchThreshold"),z=E.Ql("extraTouchArea"),ee=z/2,re=this.naturalBounds;E=this.Df()*E.scale;var oe=1/E;if(re.width*E<b&&re.height*E<b)return a=Oi(x.x-ee*oe,x.y-ee*oe,x.width+z*oe,x.height+z*oe,y.x,y.y),Te.free(y),a}return b=!1,(this instanceof uo||this instanceof Wr?Oi(x.x-5,x.y-5,x.width+10,x.height+10,y.x,y.y):x.ca(y))&&(this.tb&&!this.tb.ca(y)?b=!1:this.areaBackground!==null&&x.ca(y)||this.Ma!==null&&this.dc.ca(a)?b=!0:b=this.gh(a)),Te.free(y),b},Ce.gh=function(a){var y=this.naturalBounds;return Oi(0,0,y.width,y.height,a.x,a.y)},Ce.Re=function(a){if(this.angle===0)return this.actualBounds.Re(a);var y=this.naturalBounds;y=ut.allocAt(0,0,y.width,y.height);var x=this.transform,E=!1,b=Te.allocAt(a.x,a.y);return y.ca(x.Cd(b))&&(b.h(a.x,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.bottom),y.ca(x.Cd(b))&&(b.h(a.right,a.y),y.ca(x.Cd(b))&&(E=!0)))),Te.free(b),ut.free(y),E},Ce.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.naturalBounds,E=!1,b=Te.allocAt(0,0);return a.ca(y.Ga(b))&&(b.h(0,x.height),a.ca(y.Ga(b))&&(b.h(x.width,x.height),a.ca(y.Ga(b))&&(b.h(x.width,0),a.ca(y.Ga(b))&&(E=!0)))),Te.free(b),E},Ce.Yc=function(a,y){if(y===void 0&&(y=this.transform,this.angle===0))return a.Yc(this.actualBounds);var x=this.naturalBounds,E=Te.allocAt(0,0),b=Te.allocAt(0,x.height),z=Te.allocAt(x.width,x.height),ee=Te.allocAt(x.width,0),re=!1;if(a.ca(y.Ga(E))||a.ca(y.Ga(b))||a.ca(y.Ga(z))||a.ca(y.Ga(ee)))re=!0;else{x=ut.allocAt(0,0,x.width,x.height);var oe=Te.allocAt(a.x,a.y);x.ca(y.Cd(oe))?re=!0:(oe.h(a.x,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.bottom),x.ca(y.Cd(oe))?re=!0:(oe.h(a.right,a.y),x.ca(y.Cd(oe))&&(re=!0)))),Te.free(oe),ut.free(x),!re&&(pt.us(a,E,b)||pt.us(a,b,z)||pt.us(a,z,ee)||pt.us(a,ee,E))&&(re=!0)}return Te.free(E),Te.free(b),Te.free(z),Te.free(ee),re},Ce.ga=function(a,y){if(y===void 0&&(y=new Te),a instanceof ii){var x=this.naturalBounds;y.h(a.x*x.width+a.offsetX,a.y*x.height+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ce.mi=function(a){a===void 0&&(a=new ut);var y=this.naturalBounds,x=this.oe,E=Te.allocAt(0,0).transform(x);return a.h(E.x,E.y,0,0),E.h(y.width,0).transform(x),Bi(a,E.x,E.y,0,0),E.h(y.width,y.height).transform(x),Bi(a,E.x,E.y,0,0),E.h(0,y.height).transform(x),Bi(a,E.x,E.y,0,0),Te.free(E),a},Ce.li=function(){var a=this.oe;return a.m11===1&&a.m12===0?a=0:(a=180*Math.atan2(a.m12,a.m11)/Math.PI,0>a&&(a+=360)),a},Ce.Df=function(){if(!(this.l&4096))return this.Kk;var a=this.Ca;return this.panel!==null?a*this.panel.Df():a},Ce.qs=function(a,y){return y===void 0&&(y=new Te),y.assign(a),this.oe.Cd(y),y},Ce.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ce.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,se=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ve=ee*(z.m12*z.dx-z.m11*z.dy);return this.areaBackground!==null?(z=this.actualBounds,pt.Ff(z.left,z.top,z.right,z.bottom,a,y,x,E,b)):(ee=a*re+y*se+fe,a=a*oe+y*ue+ve,y=x*re+E*se+fe,x=x*oe+E*ue+ve,b.h(0,0),E=this.naturalBounds,x=pt.Ff(0,0,E.width,E.height,ee,a,y,x,b),b.transform(z),x)},kt.prototype.measure=function(a,y,x,E){if(hl(this)!==!1){var b=this.Kg,z=b.right+b.left;b=b.top+b.bottom,a=Math.max(a-z,0),y=Math.max(y-b,0),x=Math.max((x||0)-z,0),E=Math.max((E||0)-b,0),z=this.angle,b=this.desiredSize;var ee=this.kq();z===90||z===270?(a=isFinite(b.height)?b.height+ee:a,y=isFinite(b.width)?b.width+ee:y):(a=isFinite(b.width)?b.width+ee:a,y=isFinite(b.height)?b.height+ee:y),b=x||0,ee=E||0;var re=this instanceof ni;switch(zs(this,!0)){case Zn:ee=b=0,re&&(y=a=1/0);break;case qn:isFinite(a)&&a>x&&(b=a),isFinite(y)&&y>E&&(ee=y);break;case qi:isFinite(a)&&a>x&&(b=a),ee=0,re&&(y=1/0);break;case mr:isFinite(y)&&y>E&&(ee=y),b=0,re&&(a=1/0)}re=this.maxSize;var oe=this.minSize;b>re.width&&oe.width<re.width&&(b=re.width),ee>re.height&&oe.height<re.height&&(ee=re.height),x=Math.max(b,oe.width),E=Math.max(ee,oe.height),re.width<x&&(x=Math.min(oe.width,x)),re.height<E&&(E=Math.min(oe.height,E)),a=Math.min(re.width,a),y=Math.min(re.height,y),a=Math.max(x,a),y=Math.max(E,y),(z===90||z===270)&&(z=a,a=y,y=z,z=x,x=E,E=z),this.uc.ka(),this.Wl(a,y,x,E),this.uc.freeze(),this.uc.w()||Ve("Non-real measuredBounds has been set. Object "+this+", measuredBounds: "+this.uc.toString()),Na(this,!1)}},kt.prototype.Wl=function(){},kt.prototype.Dd=function(){return!1},kt.prototype.arrange=function(a,y,x,E,b){this.Uk();var z=ut.alloc();z.assign(this.Ib),this.Ib.ka(),Ls(this)===!1?this.Ib.h(a,y,x,E):this.eh(a,y,x,E),this.Ib.freeze(),b===void 0?this.tb=null:this.tb=b,x=!1,b!==void 0?x=!0:(b=this.panel,b!==null&&kh(b)&&(b=b.panel),b!==null&&(b=b.dc,E=this.measuredBounds,this.areaBackground!==null&&(E=this.Ib),x=y+E.height,E=a+E.width,x=!(0<=a+.05&&E<=b.width+.05&&0<=y+.05&&x<=b.height+.05),this instanceof jo&&(a=this.naturalBounds,this.Lq>a.height||this.Cb>a.width))&&(x=!0)),this.l=x?this.l|256:this.l&-257,this.Ib.w()||Ve("Non-real actualBounds has been set. Object "+this+", actualBounds: "+this.Ib.toString()),this.Xl(z,this.Ib),Ru(this,!1),ut.free(z)},Ce=kt.prototype,Ce.eh=function(){};function Ss(a,y,x,E,b){if(a.Ib.h(y,x,E,b),!a.desiredSize.w()){var z=a.uc;x=a.Kg,y=x.right+x.left;var ee=x.top+x.bottom;switch(x=z.width+y,z=z.height+ee,E+=y,b+=ee,y=zs(a,!0),x===E&&z===b&&(y=Zn),y){case Zn:(x>E||z>b)&&(Na(a,!0),a.measure(x>E?E:x,z>b?b:z,0,0));break;case qn:Na(a,!0),a.measure(E,b,0,0);break;case qi:Na(a,!0),a.measure(E,z,0,0);break;case mr:Na(a,!0),a.measure(x,b,0,0)}}}Ce.Xl=function(a,y){var x=this.part;x!==null&&x.diagram!==null&&(x.selectionObject!==this&&x.resizeObject!==this&&x.rotateObject!==this||Zv(x,!0),this.N(),oi(a,y)||(x.oh(),this.Pn(x)))},Ce.Pn=function(a){this.portId!==null&&(Zv(a,!0),a instanceof Li&&X1(a,this))},Ce.gc=function(a,y){if(!Pl(this,a,y)&&this.visible){var x=this.opacity;if(x!==0){var E=1;x!==1&&(E=a.globalAlpha,a.globalAlpha=E*x);var b="";this.filter!==""&&(b=a.filter,a.filter=this.filter);var z=this instanceof ni&&kh(this),ee=this.Ib;if(z){var re=this.Ib,oe=this.dc,se=this.areaBackground,ue=this.Ma;se===null&&ue===null||a.yc(),se!==null&&(ma(this,a,se,!0,!0,oe,re),se instanceof wo&&se.type===Al?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(se)):a.fillRect(re.x,re.y,re.width,re.height)),ue!==null&&(ma(this,a,ue,!0,!1,oe,re),ue instanceof wo&&ue.type===Al?(a.beginPath(),a.rect(re.x,re.y,re.width,re.height),a.ng(ue)):a.fillRect(re.x,re.y,re.width,re.height)),this.hh(a,y)}if(!z&&(z||ee.width!==0&&ee.height!==0&&!isNaN(ee.x)&&!isNaN(ee.y))){z=this.transform,re=this.panel,this.l&4096&&qa(this),se=this.part,oe=!1;var fe=0;se&&y.Gf("drawShadows")&&(oe=se.isShadowed)&&(ue=se.shadowOffset,fe=Math.max(ue.y,ue.x)*y.scale*y.Mb),ue=this.Dd();var ve;if(!(ve=y.$i||!ue)){var xe=this.naturalBounds;ve=this.wh;var Pe=ve.m11,Fe=ve.m21,Je=ve.dx,We=ve.m12,rt=ve.m22,at=ve.dy,ht,bt=ht=0;ve=ht*Pe+bt*Fe+Je;var Jt=ht*We+bt*rt+at;ht=xe.width+fe,bt=0;var Ci=ht*Pe+bt*Fe+Je;ht=ht*We+bt*rt+at,bt=Math.min(ve,Ci);var ji=Math.min(Jt,ht),Ti=Math.max(ve+0,Ci)-bt,ui=Math.max(Jt+0,ht)-ji;ve=bt,Jt=ji,ht=xe.width+fe,bt=xe.height+fe,Ci=ht*Pe+bt*Fe+Je,ht=ht*We+bt*rt+at,bt=Math.min(ve,Ci),ji=Math.min(Jt,ht),Ti=Math.max(ve+Ti,Ci)-bt,ui=Math.max(Jt+ui,ht)-ji,ve=bt,Jt=ji,ht=0,bt=xe.height+fe,Ci=ht*Pe+bt*Fe+Je,ht=ht*We+bt*rt+at,bt=Math.min(ve,Ci),ji=Math.min(Jt,ht),Ti=Math.max(ve+Ti,Ci)-bt,ui=Math.max(Jt+ui,ht)-ji,ve=bt,Jt=ji,fe=y.viewportBounds,xe=fe.x,Pe=fe.y,ve=!(ve>fe.width+xe||xe>Ti+ve||Jt>fe.height+Pe||Pe>ui+Jt)}if(ve){if(ve=(this.l&256)!==0,a.clipInsteadOfFill&&(ve=!1),this instanceof jo&&(a.font=this.font),ve){if(Jt=re.se()?re.naturalBounds:re.actualBounds,Ti=Math.max(ee.x,Jt.x),ui=Math.max(ee.y,Jt.y),fe=Math.min(ee.right,Jt.right)-Ti,xe=Math.min(ee.bottom,Jt.bottom)-ui,Pe=this.tb,Pe!==null&&(Ti=Pe.x,ui=Pe.y,fe=Pe.width,xe=Pe.height),Ti>ee.width+ee.x||ee.x>Jt.width+Jt.x){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}a.save(),a.beginPath(),a.rect(Ti,ui,fe,xe),a.clip()}if(ue){if(!se.isVisible()){x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b);return}oe&&(Jt=se.shadowOffset,a.Ev(Jt.x*y.scale*this.scale*y.Mb,Jt.y*y.scale*this.scale*y.Mb,se.shadowBlur),ih(a),a.shadowColor=se.shadowColor)}oe&&this.shadowVisible===!0?ih(a):oe&&this.shadowVisible===!1&&zu(a),se=this.naturalBounds,this.areaBackground!==null&&(a.yc(),ul(this,a,se,ee)),a.transform(z.m11,z.m12,z.m21,z.m22,z.dx,z.dy),oe&&_a(this,re)&&this.shadowVisible===null&&zu(a),this.Ma!==null&&(a.yc(),Ys(this,a,se,ee)),oe&&(this.Ma!==null||this.areaBackground!==null||_a(this,re))?(Jl(this,!0),this.shadowVisible===null&&zu(a)):Jl(this,!1),this.hh(a,y),oe&&this.l&512&&ih(a),ue&&oe&&zu(a),ve&&(a.restore(),a.Vc(this instanceof ni)),z.ws()||(y=1/(z.m11*z.m22-z.m12*z.m21),a.transform(z.m22*y,-z.m12*y,-z.m21*y,z.m11*y,y*(z.m21*z.dy-z.m22*z.dx),y*(z.m12*z.dx-z.m11*z.dy)))}}x!==1&&(a.globalAlpha=E),this.filter!==""&&(a.filter=b)}}};function _a(a,y){return y===null?!1:(kh(y)&&(y=y.panel),(y.l&512)!==0||(y.type===ni.Auto||y.type===ni.Spot)&&y.Pb()!==a)}Ce.Dv=function(){};function ul(a,y,x,E){ma(a,y,a.areaBackground,!0,!0,x,E),a.areaBackground instanceof wo&&a.areaBackground.type===Al?(y.beginPath(),y.rect(E.x,E.y,E.width,E.height),y.ng(a.areaBackground)):y.fillRect(E.x,E.y,E.width,E.height)}function Ys(a,y,x,E){var b=a.kq(),z=x.x,ee=x.y,re=x.width+b,oe=x.height+b;ma(a,y,a.Ma,!0,!1,x,E),a.Ma instanceof wo&&a.Ma.type===Al?(y.beginPath(),y.rect(z-b/2,ee-b/2,re,oe),y.ng(a.Ma)):y.fillRect(z-b/2,ee-b/2,re,oe)}function ps(a,y,x){for(var E=y.O.s,b=E.length,z=-1,ee=0;ee<b;ee++)if(E[ee]===a){z=ee;break}if(a=z,a!==-1)if(a===0)y.svg.gd?y.svg.gd.after(x):y.svg.Ma?y.svg.Ma.after(x):y.type===ni.Table?(y=y.svg.getElementsByClassName("gojs-ts"),y=y.length!==0?y[0]:null,y!==null&&y.after(x)):y.svg.prepend(x);else{for(;a!==0&&!y.M(a-1).Ed();)a--;a===0?y.svg.prepend(x):(a=y.M(a-1).svg,a!==null?a.after(x):y.svg.appendChild(x))}}function Pl(a,y,x){if(!(y instanceof el))return!1;if(!a.visible||a.opacity===0||a.Dd()&&!a.isVisible())return a.svg!==null&&a.svg.parentNode!==null&&a.svg.remove(),!0;var E=a.panel,b=a.nk(y);if(a.kk(y,x,b))return a.svg.parentElement!==null?(a.Dd()&&(y.ti=a.svg),!0):(a.Dd()?(y.ti!==null?y.ti.after(a.svg):y.Nj.prepend(a.svg),y.ti=a.svg):E&&ps(a,E,a.svg),!0);if(a.Dd()&&a.isShadowed){var z=a.shadowOffset;y.Ev(z.x*x.scale*a.scale*x.Mb,z.y*x.scale*a.scale*x.Mb,a.shadowBlur),ih(y),y.shadowColor=a.shadowColor}a instanceof jo&&(y.font=a.font),y.yd=null;var ee=a.transform;z=a instanceof ni;var re=a instanceof ni?kh(a):!1;a.l&4096&&qa(a);var oe=a.Ib;if(y.rb.ha=[1,0,0,1,0,0],y.o=!1,b&&(y.o=!0,z&&re?(Ug(y,1,0,0,1,0,0),a.svg=y.ad):z?(Ug(y,ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy),a.svg=y.ad):Ug(y,1,0,0,1,0,0)),b=a.naturalBounds,a.areaBackground!==null){var se=ee.copy().Vj();y.rb.ha=[se.m11,se.m12,se.m21,se.m22,se.dx,se.dy],ul(a,y,b,oe),y.rb.ha=[1,0,0,1,0,0],y.yd.gd=y.ad,y.yd.prepend(y.ad)}return z||(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),a.background!==null&&(z?(re&&(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy]),Ys(a,y,b,oe),re&&(y.rb.ha=[1,0,0,1,0,0])):(y.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],Ys(a,y,b,oe)),y.yd.Ma=y.ad,y.yd.prepend(y.ad)),ee=y.yd,b=a.part,re=!1,b&&x.Gf("drawShadows")&&(re=b.isShadowed),y.clipInsteadOfFill&&(re=!1),a.Dd()&&re&&ih(y),re&&a.shadowVisible===!0?ih(y):re&&a.shadowVisible===!1&&zu(y),b=a.panel,re&&_a(a,b)&&a.shadowVisible===null&&zu(y),y.Il&&(se=x.computePixelRatio(),se="drop-shadow("+y.shadowOffsetX/se+"px "+y.shadowOffsetY/se+"px "+y.shadowBlur/se/2+"px "+y.shadowColor+")",a.background!==null&&ee.Ma.setAttributeNS(null,"filter",se),a.areaBackground!==null&&ee.gd.setAttributeNS(null,"filter",se)),re&&(a.Ma!==null||a.areaBackground!==null||_a(a,b))?(Jl(a,!0),a.shadowVisible===null&&zu(y)):Jl(a,!1),b=re,a.hh(y,x),z&&y.nh.pop(),y.o&&y.nh.pop(),ee=y.Gv.hs,re=z?a.svg:y.yd,se=a.svg,!z&&se!==null&&re!==se&&se.parentNode===a.panel.svg?(a.svg.replaceWith(re),a.svg=re,re!==null&&a.$o(y,E,oe,re),Rs(y,se),!0):(a.svg=re,ee!==null&&re===null&&(fm(y),y.nh.pop()),re===null||(a.$o(y,E,oe,re),y.Il&&(x=x.computePixelRatio(),a.Dv(re,"drop-shadow("+y.shadowOffsetX/x+"px "+y.shadowOffsetY/x+"px "+y.shadowBlur/x/2+"px "+y.shadowColor+")")),b&&a.l&512&&ih(y),a.Dd()&&zu(y),x=a.Dd()?a.opacity*y.globalAlpha:a.opacity,x!==1&&re.setAttributeNS(null,"opacity",x.toString()),a.filter!==""&&re.setAttributeNS(null,"filter",a.filter),a.Dd()?(y.ti?y.ti.after(re):y.Nj.prepend(re),y.ti=re):E!==null&&ps(a,E,re),ee!==null&&ee(a,re)),!0)}Ce.$o=function(a,y,x,E){var b=(this.l&256)!==0;if(a.clipInsteadOfFill&&(b=!1),b){var z=y.se()?y.naturalBounds:y.actualBounds;y=Math.max(x.x,z.x),b=Math.max(x.y,z.y);var ee=Math.min(x.right,z.right)-y;x=Math.min(x.bottom,z.bottom)-b,z=this.tb,z!==null&&(y=z.x,b=z.y,ee=z.width,x=z.height),z=E.getAttribute("clip-path");var re=null;z!==null&&(re=a.svg.getElementById(z.split("#")[1].slice(0,-1))),re===null?(z="CLIP"+to++,re=a.Ud("clipPath",{id:z}),y=a.Ud("rect",{x:y,y:b,width:ee,height:x}),this instanceof ni&&(b=this.transform.copy().Vj(),y.setAttribute("transform","matrix("+b.m11+", "+b.m12+", "+b.m21+", "+b.m22+", "+b.dx+", "+b.dy+")")),re.appendChild(y),a.svg.appendChild(re),E.setAttributeNS(null,"clip-path","url(#"+z+")")):(a=re.firstElementChild,a.setAttribute("x",y.toString()),a.setAttribute("y",b.toString()),a.setAttribute("width",ee.toString()),a.setAttribute("height",x.toString()))}else E.removeAttributeNS(null,"clip-path"),Rs(a,E)};function Rs(a,y){y=y.getAttribute("clip-path"),y!==null&&(a=a.svg.getElementById(y.split("#")[1].slice(0,-1)),a!==null&&a.remove())}function ms(a){if(a.svg!==null){var y=a.svg.innerHTML.match(/url\(#((CLIP|GRAD).+?)\)/g),x=a.svg.ownerDocument;if(y!==null){y=Gn(y);for(var E=y.next();!E.done;E=y.next())E=x.getElementById(E.value.split("#")[1].slice(0,-1)),E!==null&&E.remove()}a.svg.remove()}}Ce.hh=function(){},Ce.lv=function(){this.Uc=!0},Ce.kk=function(a,y,x){if(this.Uc)return this.lv(),this.Uc=!1;if(y=this.svg,y===null)return!1;if(!this.visible)return y.remove(),!1;if(y.nodeName!=="g"&&x||y.nodeName==="g"&&!x)return!1;var E=this.transform,b=this instanceof ni?kh(this):!1;if(!(this instanceof ni&&b))if(this instanceof Ws){var z=this.bt;a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy],z!==null&&e1(a,z[0],z[1],z[2],z[3],z[4],z[5],z[6],z[7]),x?y.lastElementChild.setAttributeNS(null,"transform",t1(a)):y.setAttributeNS(null,"transform",t1(a))}else if(!x||this instanceof ni)y.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");else if(this instanceof Wr){z=y.getElementsByTagName("path");for(var ee=0;ee<z.length;ee++)z[ee].setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")")}else y.lastElementChild.setAttributeNS(null,"transform","matrix("+E.m11+", "+E.m12+", "+E.m21+", "+E.m22+", "+E.dx+", "+E.dy+")");return z=this.Dd()?this.opacity*a.globalAlpha:this.opacity,z===1?y.removeAttribute("opacity"):y.setAttributeNS(null,"opacity",z.toString()),a.rb.ha=[1,0,0,1,0,0],(this.areaBackground!==null||y.gd!==void 0)&&(z=y.gd,this.areaBackground===null?(y.gd.remove(),y.gd=void 0):(ee=E.copy().Vj(),a.rb.ha=[ee.m11,ee.m12,ee.m21,ee.m22,ee.dx,ee.dy],ul(this,a,this.naturalBounds,this.actualBounds),a.rb.ha=[1,0,0,1,0,0],y.gd?(ee=y.gd.getAttribute("filter"),ee!==null&&a.ad.setAttribute("filter",ee),y.gd.replaceWith(a.ad)):y.prepend(a.ad),y.gd=a.ad),z&&gm(a,z)),(this.background!==null||y.Ma!==void 0)&&(z=y.Ma,this.background===null?(gm(a,y.Ma),y.Ma.remove(),y.Ma=void 0):((b||x&&!(this instanceof ni))&&(a.rb.ha=[E.m11,E.m12,E.m21,E.m22,E.dx,E.dy]),Ys(this,a,this.naturalBounds,this.actualBounds),y.Ma?(gm(a,y.Ma),x=y.Ma.getAttribute("filter"),x!==null&&a.ad.setAttribute("filter",x),y.Ma.replaceWith(a.ad)):y.prepend(a.ad),y.Ma=a.ad),z&&gm(a,z)),this.$o(a,this.panel,this.actualBounds,y),!0},Ce.nk=function(a){if(this.background!==null||this.areaBackground!==null)return!0;var y=(this.l&256)!==0;return a.clipInsteadOfFill&&(y=!1),!!y};function ma(a,y,x,E,b,z,ee){if(x!==null){var re=1,oe=1;if(typeof x=="string")E?y.fillStyle=x:y.strokeStyle=x;else if(x.type===Mh)E?y.fillStyle=x.color:y.strokeStyle=x.color;else{var se=a.kq();if(re=z.width,oe=z.height,b?(re=ee.width,oe=ee.height):E||(re+=se,oe+=se),(z=y instanceof Jd)&&x.xe&&(x.type===Nf||x.yk===re&&x.ft===oe))var ue=x.xe;else{var fe=0,ve=0,xe=0,Pe=0,Fe=0,Je=0;if(Je=Fe=0,b?(Fe=ee.x,Je=ee.y):E||(Fe-=se/2,Je-=se/2),fe=x.start.x*re+x.start.offsetX,ve=x.start.y*oe+x.start.offsetY,xe=x.end.x*re+x.end.offsetX,Pe=x.end.y*oe+x.end.offsetY,fe+=Fe,xe+=Fe,ve+=Je,Pe+=Je,x.type===oh)ue=y.createLinearGradient(fe,ve,xe,Pe);else if(x.type===Al)Je=isNaN(x.endRadius)?Math.max(re,oe)/2:x.endRadius,isNaN(x.startRadius)?(Fe=0,Je=Math.max(re,oe)/2):Fe=x.startRadius,ue=y.createRadialGradient(fe,ve,Fe,xe,Pe,Je);else if(x.type===Nf)try{ue=y.createPattern(x.pattern,"repeat")}catch(rt){ue=null}if(x.type!==Nf&&(b=x.colorStops,b!==null))for(b=b.iterator;b.next();)ue.addColorStop(b.key,b.value);if(z&&(x.xe=ue,ue!==null&&(x.yk=re,x.ft=oe),ue===null&&x.type===Nf&&x.yk!==-1)){x.yk=-1;var We=a.diagram;We!==null&&x.yk===-1&&zi(function(){We.redraw()},600)}}E?y.fillStyle=ue:y.strokeStyle=ue}}}Ce.rg=function(a){if(a instanceof ni)e:{if(this!==a&&a!==null)for(var y=this.panel;y!==null;){if(y===a){a=!0;break e}y=y.panel}a=!1}else a=!1;return a},Ce.Ed=function(){if(!this.visible)return!1;var a=this.panel;return a!==null?a.Ed():!0},Ce.If=function(){for(var a=this instanceof ni?this:this.panel;a!==null&&a.isEnabled;)a=a.panel;return a===null};function qa(a){if(a.l&2048){var y=a.Ab;if(y.reset(),!a.Ib.w()||!a.uc.w()){Rl(a,!1);return}if(y.translate(a.Ib.x-a.uc.x,a.Ib.y-a.uc.y),a.scale!==1||a.angle!==0){var x=a.naturalBounds;a.no(y,x.x,x.y,x.width,x.height)}Rl(a,!1),Cl(a,!0)}a.l&4096&&(y=a.panel,y===null?(a.wh.set(a.Ab),a.Kk=a.scale,Cl(a,!1)):y.oe!==null&&(x=a.wh,x.reset(),y.se()?x.multiply(y.wh):y.panel!==null&&x.multiply(y.panel.wh),x.multiply(a.Ab),a.Kk=a.scale*y.Kk,Cl(a,!1)))}Ce.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Te.alloc();z.yi(y,x,E,b,Mi),a.rotate(this.Kb,z.x,z.y),Te.free(z)}},Ce.v=function(a){if(!hl(this)){a===void 0&&(a=!1),Na(this,!0),Ru(this,!0);var y=this.panel;y===null||a||y.v()}},Ce.Uj=function(){hl(this)||(Na(this,!0),Ru(this,!0))};function As(a){if(!Ls(a)){var y=a.panel;y!==null?y.v():a.Dd()&&(y=a.diagram,y!==null&&(y.De.add(a),a instanceof Li&&a.Bd(),y.$b())),Ru(a,!0)}}Ce.Uk=function(){!(this.l&2048)&&(Rl(this,!0),Cl(this,!0))},Ce.Wu=function(){Cl(this,!0)},Ce.N=function(){var a=this.part;a!==null&&a.N()};function zs(a,y){var x=a.stretch,E=a.panel;return E!==null&&E.type===ni.Table?su(a,E.Fb(a.row),E.Eb(a.column),y):E!==null&&E.type===ni.Auto&&E.Pb()===a?Ja(a,qn,y):x===Ir?E!==null?E.type===ni.Spot&&E.Pb()===a?Ja(a,qn,y):(x=E.defaultStretch,x===Ir?Ja(a,Zn,y):Ja(a,x,y)):Ja(a,Zn,y):Ja(a,x,y)}function su(a,y,x,E){var b=a.stretch;if(b!==Ir)return Ja(a,b,E);var z=b=null;switch(y.stretch){case mr:z=!0;break;case qn:z=!0}switch(x.stretch){case qi:b=!0;break;case qn:b=!0}return y=a.panel.defaultStretch,b===null&&(b=y===qi||y===qn),z===null&&(z=y===mr||y===qn),b===!0&&z===!0?Ja(a,qn,E):b===!0?Ja(a,qi,E):z===!0?Ja(a,mr,E):Ja(a,Zn,E)}function Ja(a,y,x){if(x)return y;if(y===Zn||(x=a.desiredSize,x.w()))return Zn;if(a=a.angle,!isNaN(x.width))if(a!==90&&a!==270){if(y===qi)return Zn;if(y===qn)return mr}else{if(y===mr)return Zn;if(y===qn)return qi}if(!isNaN(x.height))if(a!==90&&a!==270){if(y===mr)return Zn;if(y===qn)return qi}else{if(y===qi)return Zn;if(y===qn)return mr}return y}function Jl(a,y){a.l=y?a.l|512:a.l&-513}function is(a){return(a.l&1024)!==0}function Bc(a,y){a.l=y?a.l|1024:a.l&-1025}function Rl(a,y){a.l=y?a.l|2048:a.l&-2049}function Cl(a,y){a.l=y?a.l|4096:a.l&-4097}function hl(a){return(a.l&8192)!==0}function Na(a,y){a.l=y?a.l|8192:a.l&-8193}function Ls(a){return(a.l&16384)!==0}function Ru(a,y){a.l=y?a.l|16384:a.l&-16385}Ce.Gj=function(){this.svg=null},Ce.wi=function(a){this.Me=a,this.svg!==null&&this.svg.remove()},Ce.Av=function(){},Ce.zv=function(a){return this.pa=a,As(this),!0},Ce.mm=function(a,y){(this.pa.x!==a||this.pa.y!==y)&&(this.pa.h(a,y),this.Uk())},Ce.kq=function(){return 0};function Xd(a){var y=a.part;if(y instanceof Li&&(a.portId!==null||a===y.port)){var x=y.diagram;x===null||x.undoManager.isUndoingRedoing||X1(y,a)}}function qy(a){var y=a.diagram;y===null||y.undoManager.isUndoingRedoing||(a instanceof ni?a instanceof Li?a.Bd():a.qm(a,function(x){Xd(x)}):Xd(a))}Ce.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new La(a,y,x,E):b=a,b.xd=this,a=this.ih(),a!==null&&v1(a)&&Ve("Cannot add a Binding to a template that has already been copied: "+b),this.localBindings===null&&(this.localBindings=new cn),this.localBindings.add(b),this},Ce.set=function(a){return Object.assign(this,a),this},Ce.Du=function(a){return av(this,a),this},Ce.apply=function(a){return a(this),this},Ce.nm=function(a){return Wd(this,a),this},Ce.pz=function(){return this.ih()},Ce.ih=function(){for(var a=this instanceof ni?this:this.panel;a!==null;){if(a.allBindings!==null)return a;a=a.panel}return null},Ce.Jv=function(a){return a.xd=this,this.animationTriggers===null&&(this.animationTriggers=new $t),this.animationTriggers.add(a.propertyName,a),this};function El(a,y){for(var x=1;x<arguments.length;++x);x=arguments;var E=null,b=null;if(typeof a=="function")b=a;else if(typeof a=="string"){var z=Lf.I(a);typeof z=="function"?(x=Hn(arguments),E=z(x),Ot(E)||Ve('GraphObject.make invoked object builder "'+a+'", but it did not return an Object')):b=xn.go[a]}if(E===null&&(b!=null&&b.constructor||Ve("GraphObject.make requires a class function or GoJS class name or name of an object builder, not: "+a),E=new b),b=1,E instanceof qt&&1<x.length){z=E;var ee=x[1];(typeof ee=="string"||ee instanceof HTMLDivElement)&&(wg(z,ee),b++)}for(;b<x.length;b++)z=x[b],z===void 0?Ve("Undefined value at argument "+b+" for object being constructed by GraphObject.make: "+E):av(E,z);return E}function av(a,y){if(typeof y=="string")if(a instanceof jo)a.text=y;else if(a instanceof Wr)a.figure=y;else if(a instanceof Ws)a.source=y;else if(a instanceof ni)y=Ql.I(y),y!==null&&(a.type=y);else if(a instanceof wo){var x=Si(wo,y);x!==null?a.type=x:Ve("Unknown Brush type as an argument to GraphObject.make: "+y)}else a instanceof zn?(y=Si(zn,y),y!==null&&(a.type=y)):a instanceof qr&&(y=Si(qr,y),y!==null&&(a.type=y));else if(y instanceof kt)a instanceof ni||Ve("A GraphObject can only be added to a Panel, not to: "+a),a.add(y);else if(y instanceof Ba){var E;y.isRow&&typeof a.getRowDefinition=="function"?E=a.getRowDefinition(y.index):y.isRow||typeof a.getColumnDefinition!="function"||(E=a.getColumnDefinition(y.index)),E instanceof Ba?Fm(E,y):Ve("A RowColumnDefinition can only be added to an object that implements getRowDefinition/getColumnDefinition, not to: "+a)}else if(y instanceof En)typeof a.qb=="function"&&a.qb(y);else if(y instanceof Ia)a.type=y;else if(y instanceof La)a instanceof kt||a instanceof Ba?a.bind(y):Ve("A Binding can only be applied to a GraphObject or RowColumnDefinition, not to: "+a);else if(y instanceof Xl)a instanceof kt?a.Jv(y):Ve("An AnimationTrigger can only be applied to a GraphObject, not to: "+a);else if(y instanceof da)a instanceof zn&&a.type===zn.o?a.figures.add(y):Ve("A PathFigure can only be added to a Path Geometry, not to: "+a);else if(y instanceof qr)a instanceof da?a.segments.add(y):Ve("A PathSegment can only be added to a PathFigure, not to: "+a);else if(y instanceof na)a instanceof qt||a instanceof Or?a.layout=y:Ve("A Layout can only be assigned to a Diagram or a Group, not to: "+a);else if(Array.isArray(y))for(x=0;x<y.length;x++)av(a,y[x]);else if(typeof y=="object"&&y!==null)if(a instanceof wo){x=new Wi;for(var b in y)E=parseFloat(b),isNaN(E)?x[b]=y[b]:a.addColorStop(E,y[b]);Wd(a,x)}else if(a instanceof Ba){y.row!==void 0?(b=y.row,(b==null||b===1/0||isNaN(b)||0>b)&&Ve("Must specify non-negative integer row for RowColumnDefinition "+y+", not: "+b),a.isRow=!0,a.index=b):y.column!==void 0&&(b=y.column,(b==null||b===1/0||isNaN(b)||0>b)&&Ve("Must specify non-negative integer column for RowColumnDefinition "+y+", not: "+b),a.isRow=!1,a.index=b),b=new Wi;for(x in y)x!=="row"&&x!=="column"&&(b[x]=y[x]);Wd(a,b)}else Wd(a,y);else Ve('Unknown initializer "'+y+'" for object being constructed by GraphObject.make: '+a)}function bh(a,y){Lf.add(a,y)}function cm(a,y,x){x===void 0&&(x=null);var E=a[1];if(typeof x=="function"?x(E):typeof E=="string")return a.splice(1,1),E;if(y===void 0)throw Error("no "+(typeof x=="function"?"satisfactory":"string")+" argument for GraphObject builder "+a[0]);return y}Ct.Object.defineProperties(kt.prototype,{bindingId:{get:function(){return this.A!==null?this.A.zp:-1},set:function(a){this.bindingId!==a&&(this.A===null&&(this.A=new Tc),this.A.zp=a)}},localBindings:{get:function(){return this.A!==null?this.A.te:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.te=a)}},srcBindings:{get:function(){return this.A!==null?this.A.wm:null},set:function(a){this.srcBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.wm=a)}},shadowVisible:{get:function(){return this.A!==null?this.A.Ci:null},set:function(a){var y=this.shadowVisible;y!==a&&(Vr(this),this.A.Ci=a,this.Uc=!0,this.N(),this.g("shadowVisible",y,a))}},enabledChanged:{get:function(){return this.A!==null?this.A.Hb:null},set:function(a){var y=this.enabledChanged;y!==a&&(Vr(this),this.A.Hb=a,this.g("enabledChanged",y,a))}},segmentOrientation:{get:function(){return this.Ua!==null?this.Ua.rr:ks},set:function(a){var y=this.segmentOrientation;y!==a&&(this.Ua===null&&(this.Ua=new ud),this.Ua.rr=a,this.v(),this.g("segmentOrientation",y,a),a===ks&&(this.angle=0))}},segmentIndex:{get:function(){return this.Ua!==null?this.Ua.u:-1/0},set:function(a){a=Math.round(a);var y=this.segmentIndex;y!==a&&(this.Ua===null&&(this.Ua=new ud),this.Ua.u=a,this.v(),this.g("segmentIndex",y,a))}},segmentFraction:{get:function(){return this.Ua!==null?this.Ua.o:0},set:function(a){isNaN(a)||0>a?a=0:1<a&&(a=1);var y=this.segmentFraction;y!==a&&(this.Ua===null&&(this.Ua=new ud),this.Ua.o=a,this.v(),this.g("segmentFraction",y,a))}},segmentOffset:{get:function(){return this.Ua!==null?this.Ua.F:He},set:function(a){var y=this.segmentOffset;y.D(a)||(a=a.J(),this.Ua===null&&(this.Ua=new ud),this.Ua.F=a,this.v(),this.g("segmentOffset",y,a))}},stretch:{get:function(){return this.A!==null?this.A.hg:Ir},set:function(a){var y=this.stretch;y!==a&&(Vr(this),this.A.hg=a,this.v(),this.g("stretch",y,a))}},name:{get:function(){return this.A!==null?this.A.xa:""},set:function(a){var y=this.name;y!==a&&(Vr(this),this.A.xa=a,this.part!==null&&(this.part.Rh=null),this.g("name",y,a))}},opacity:{get:function(){return this.pb},set:function(a){var y=this.pb;y!==a&&((0>a||1<a)&&Dn(a,"0 <= value <= 1",kt,"opacity"),this.pb=a,this.g("opacity",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(ec(y,y.actualBounds)))}},filter:{get:function(){return this.bn},set:function(a){var y=this.bn;y!==a&&(this.bn=a,this.Uc=!0,this.g("filter",y,a),a=this.diagram,y=this.part,a!==null&&y!==null&&a.N(ec(y,y.actualBounds)))}},visible:{get:function(){return(this.l&1)!==0},set:function(a){var y=(this.l&1)!==0;y!==a&&(this.l^=1,this.g("visible",y,a),y=this.panel,y!==null?y.v():this.Dd()&&this.Zb(a),this.N(),qy(this))}},pickable:{get:function(){return(this.l&2)!==0},set:function(a){var y=(this.l&2)!==0;y!==a&&(this.l^=2,this.g("pickable",y,a))}},fromLinkableDuplicates:{get:function(){return(this.l&4)!==0},set:function(a){var y=(this.l&4)!==0;y!==a&&(this.l^=4,this.g("fromLinkableDuplicates",y,a))}},fromLinkableSelfNode:{get:function(){return(this.l&8)!==0},set:function(a){var y=(this.l&8)!==0;y!==a&&(this.l^=8,this.g("fromLinkableSelfNode",y,a))}},toLinkableDuplicates:{get:function(){return(this.l&16)!==0},set:function(a){var y=(this.l&16)!==0;y!==a&&(this.l^=16,this.g("toLinkableDuplicates",y,a))}},toLinkableSelfNode:{get:function(){return(this.l&32)!==0},set:function(a){var y=(this.l&32)!==0;y!==a&&(this.l^=32,this.g("toLinkableSelfNode",y,a))}},isPanelMain:{get:function(){return(this.l&64)!==0},set:function(a){var y=(this.l&64)!==0;y!==a&&(this.l^=64,this.v(),this.g("isPanelMain",y,a))}},isActionable:{get:function(){return(this.l&128)!==0},set:function(a){var y=(this.l&128)!==0;y!==a&&(this.l^=128,this.g("isActionable",y,a))}},areaBackground:{get:function(){return this.A!==null?this.A.gd:null},set:function(a){var y=this.areaBackground;y!==a&&(a!==null&&Ic(a,"GraphObject.areaBackground"),a instanceof wo&&a.freeze(),Vr(this),this.A.gd=a,this.N(),this.g("areaBackground",y,a))}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ic(a,"GraphObject.background"),a instanceof wo&&a.freeze(),this.Ma=a,this.N(),this.g("background",y,a))}},part:{get:function(){if(this.Dd())return this;if(this.Ng!==null)return this.Ng;var a;for(a=this.panel;a;){if(a instanceof ir)return this.Ng=a;a=a.panel}return null}},svg:{get:function(){return this.V},set:function(a){this.V=a}},panel:{get:function(){return this.Me}},layer:{get:function(){var a=this.part;return a!==null?a.layer:null}},diagram:{get:function(){var a=this.part;return a!==null?a.diagram:null}},position:{get:function(){return this.pa},set:function(a){var y=a.x,x=a.y,E=this.pa,b=E.x;E=E.y,(b===y||isNaN(b)&&isNaN(y))&&(E===x||isNaN(E)&&isNaN(x))?this.Av():(a=a.copy(),this.zv(a,b,E)&&this.g("position",new Te(b,E),a))}},actualBounds:{get:function(){return this.Ib}},scale:{get:function(){return this.Ca},set:function(a){var y=this.Ca;y!==a&&(0>=a&&Ve("GraphObject.scale for "+this+" must be greater than zero, not: "+a),this.Ca=a,this.v(),this.g("scale",y,a))}},angle:{get:function(){return this.Kb},set:function(a){var y=this.Kb;y!==a&&(a%=360,0>a&&(a+=360),y!==a&&(this.Kb=a,qy(this),this.v(),this.g("angle",y,a)))}},desiredSize:{get:function(){return this.jd},set:function(a){var y=a.width,x=a.height,E=this.jd,b=E.width,z=E.height;(b===y||isNaN(b)&&isNaN(y))&&(z===x||isNaN(z)&&isNaN(x))||(this.jd=a=a.J(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",E,a),is(this)&&(a=this.part,a!==null&&(_o(this,a,"width"),_o(this,a,"height"))))}},width:{get:function(){return this.jd.width},set:function(a){var y=this.jd.width;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Re(a,this.jd.height).freeze(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"width")))}},height:{get:function(){return this.jd.height},set:function(a){var y=this.jd.height;y===a||isNaN(y)&&isNaN(a)||(y=this.jd,this.jd=a=new Re(this.jd.width,a).freeze(),this.v(),this instanceof Wr&&this.qc(),this.g("desiredSize",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"height")))}},minSize:{get:function(){return this.A!==null?this.A.u:ot},set:function(a){var y=this.minSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=0),isNaN(a.height)&&(a.height=0),a.freeze(),Vr(this),this.A.u=a,this.v(),this.g("minSize",y,a))}},maxSize:{get:function(){return this.A!==null?this.A.o:Ln},set:function(a){var y=this.maxSize;y.D(a)||(a=a.copy(),isNaN(a.width)&&(a.width=1/0),isNaN(a.height)&&(a.height=1/0),a.freeze(),Vr(this),this.A.o=a,this.v(),this.g("maxSize",y,a))}},measuredBounds:{get:function(){return this.uc}},naturalBounds:{get:function(){return this.dc}},margin:{get:function(){return this.Kg},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.Kg;y.D(a)||(this.Kg=a=a.J(),this.v(),this.g("margin",y,a))}},transform:{get:function(){return this.l&2048&&qa(this),this.Ab}},oe:{get:function(){return this.l&4096&&qa(this),this.wh}},animationTriggers:{get:function(){return this.A!==null?this.A.hb:null},set:function(a){this.animationTriggers!==a&&(Vr(this),this.A.hb=a)}},reshapingBehavior:{get:function(){return this.A!==null?this.A.Pf:Zn},set:function(a){this.reshapingBehavior!==a&&(Vr(this),this.A.Pf=a)}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(a.Mc()&&!a.Xb()&&Ve("GraphObject.alignment for "+this+" must be a real Spot or Spot.Default, not: "+a),this.Jb=a=a.J(),As(this),this.g("alignment",y,a))}},column:{get:function(){return this.Ag},set:function(a){a=Math.round(a);var y=this.Ag;y!==a&&(0>a&&Dn(a,">= 0",kt,"column"),this.Ag=a,this.v(),this.g("column",y,a),this.svg!==null&&this.svg.remove())}},columnSpan:{get:function(){return this.A!==null?this.A.ob:1},set:function(a){a=Math.round(a);var y=this.columnSpan;y!==a&&(1>a&&Dn(a,">= 1",kt,"columnSpan"),Vr(this),this.A.ob=a,this.v(),this.g("columnSpan",y,a))}},row:{get:function(){return this.io},set:function(a){a=Math.round(a);var y=this.io;y!==a&&(0>a&&Dn(a,">= 0",kt,"row"),this.io=a,this.v(),this.g("row",y,a),this.svg!==null&&this.svg.remove())}},rowSpan:{get:function(){return this.A!==null?this.A.Bi:1},set:function(a){a=Math.round(a);var y=this.rowSpan;y!==a&&(1>a&&Dn(a,">= 1",kt,"rowSpan"),Vr(this),this.A.Bi=a,this.v(),this.g("rowSpan",y,a))}},spanAllocation:{get:function(){return this.A!==null?this.A.Di:null},set:function(a){var y=this.spanAllocation;y!==a&&(Vr(this),this.A.Di=a,this.v(),this.g("spanAllocation",y,a))}},alignmentFocus:{get:function(){return this.sk},set:function(a){var y=this.sk;y.D(a)||(this.sk=a=a.J(),this.v(),this.g("alignmentFocus",y,a))}},portId:{get:function(){return this.Yn},set:function(a){var y=this.Yn;if(y!==a){var x=this.part;x===null||x instanceof Li||Ve("Cannot set portID on a Link: "+a),y!==null&&x!==null&&Yv(x,this),this.Yn=a,a!==null&&x!==null&&(x.Te=!0,Q1(x,this)),this.g("portId",y,a)}}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Zi},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),Xd(this))}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:10},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Dn(a,">= 0",kt,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),Xd(this))}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:0},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.g("toShortLength",y,a),Xd(this))}},toLinkable:{get:function(){return this.ba!==null?this.ba.Tr:null},set:function(a){var y=this.toLinkable;y!==a&&(this.Xc(),this.ba.Tr=a,this.g("toLinkable",y,a))}},toMaxLinks:{get:function(){return this.ba!==null?this.ba.Ur:1/0},set:function(a){var y=this.toMaxLinks;y!==a&&(0>a&&Dn(a,">= 0",kt,"toMaxLinks"),this.Xc(),this.ba.Ur=a,this.g("toMaxLinks",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Zi},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),Xd(this))}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:10},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Dn(a,">= 0",kt,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),Xd(this))}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:0},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.g("fromShortLength",y,a),Xd(this))}},fromLinkable:{get:function(){return this.ba!==null?this.ba.hq:null},set:function(a){var y=this.fromLinkable;y!==a&&(this.Xc(),this.ba.hq=a,this.g("fromLinkable",y,a))}},fromMaxLinks:{get:function(){return this.ba!==null?this.ba.iq:1/0},set:function(a){var y=this.fromMaxLinks;y!==a&&(0>a&&Dn(a,">= 0",kt,"fromMaxLinks"),this.Xc(),this.ba.iq=a,this.g("fromMaxLinks",y,a))}},cursor:{get:function(){return this.A!==null?this.A.j:""},set:function(a){var y=this.cursor;y!==a&&(Vr(this),this.A.j=a,this.g("cursor",y,a))}},click:{get:function(){return this.A!==null?this.A.zh:null},set:function(a){var y=this.click;y!==a&&(Vr(this),this.A.zh=a,this.g("click",y,a))}},doubleClick:{get:function(){return this.A!==null?this.A.Fh:null},set:function(a){var y=this.doubleClick;y!==a&&(Vr(this),this.A.Fh=a,this.g("doubleClick",y,a))}},contextClick:{get:function(){return this.A!==null?this.A.Bh:null},set:function(a){var y=this.contextClick;y!==a&&(Vr(this),this.A.Bh=a,this.g("contextClick",y,a))}},mouseEnter:{get:function(){return this.A!==null?this.A.Mh:null},set:function(a){var y=this.mouseEnter;y!==a&&(Vr(this),this.A.Mh=a,this.g("mouseEnter",y,a))}},mouseLeave:{get:function(){return this.A!==null?this.A.Ph:null},set:function(a){var y=this.mouseLeave;y!==a&&(Vr(this),this.A.Ph=a,this.g("mouseLeave",y,a))}},mouseOver:{get:function(){return this.A!==null?this.A.Qh:null},set:function(a){var y=this.mouseOver;y!==a&&(Vr(this),this.A.Qh=a,this.g("mouseOver",y,a))}},mouseHover:{get:function(){return this.A!==null?this.A.Oh:null},set:function(a){var y=this.mouseHover;y!==a&&(Vr(this),this.A.Oh=a,this.g("mouseHover",y,a))}},mouseHold:{get:function(){return this.A!==null?this.A.Nh:null},set:function(a){var y=this.mouseHold;y!==a&&(Vr(this),this.A.Nh=a,this.g("mouseHold",y,a))}},mouseDragEnter:{get:function(){return this.A!==null?this.A.Of:null},set:function(a){var y=this.mouseDragEnter;y!==a&&(Vr(this),this.A.Of=a,this.g("mouseDragEnter",y,a))}},mouseDragLeave:{get:function(){return this.A!==null?this.A.Xd:null},set:function(a){var y=this.mouseDragLeave;y!==a&&(Vr(this),this.A.Xd=a,this.g("mouseDragLeave",y,a))}},mouseDrop:{get:function(){return this.A!==null?this.A.Lh:null},set:function(a){var y=this.mouseDrop;y!==a&&(Vr(this),this.A.Lh=a,this.g("mouseDrop",y,a))}},actionDown:{get:function(){return this.A!==null?this.A.V:null},set:function(a){var y=this.actionDown;y!==a&&(Vr(this),this.A.V=a,this.g("actionDown",y,a))}},actionMove:{get:function(){return this.A!==null?this.A.ia:null},set:function(a){var y=this.actionMove;y!==a&&(Vr(this),this.A.ia=a,this.g("actionMove",y,a))}},actionUp:{get:function(){return this.A!==null?this.A.Ha:null},set:function(a){var y=this.actionUp;y!==a&&(Vr(this),this.A.Ha=a,this.g("actionUp",y,a))}},actionCancel:{get:function(){return this.A!==null?this.A.F:null},set:function(a){var y=this.actionCancel;y!==a&&(Vr(this),this.A.F=a,this.g("actionCancel",y,a))}},toolTip:{get:function(){return this.A!==null?this.A.$h:null},set:function(a){var y=this.toolTip;y!==a&&(Vr(this),this.A.$h=a,this.g("toolTip",y,a))}},contextMenu:{get:function(){return this.A!==null?this.A.Ch:null},set:function(a){var y=this.contextMenu;y!==a&&(Vr(this),this.A.Ch=a,this.g("contextMenu",y,a))}}}),kt.prototype.trigger=kt.prototype.Jv,kt.prototype.findBindingPanel=kt.prototype.ih,kt.prototype.findTemplateBinder=kt.prototype.pz,kt.prototype.setProperties=kt.prototype.nm,kt.prototype.apply=kt.prototype.apply,kt.prototype.attach=kt.prototype.Du,kt.prototype.set=kt.prototype.set,kt.prototype.isEnabledObject=kt.prototype.If,kt.prototype.isVisibleObject=kt.prototype.Ed,kt.prototype.isContainedBy=kt.prototype.rg,kt.prototype.getNearestIntersectionPoint=kt.prototype.rs,kt.prototype.getLocalPoint=kt.prototype.qs,kt.prototype.getDocumentScale=kt.prototype.Df,kt.prototype.getDocumentAngle=kt.prototype.li,kt.prototype.getDocumentBounds=kt.prototype.mi,kt.prototype.getDocumentPoint=kt.prototype.ga,kt.prototype.intersectsRect=kt.prototype.Yc,kt.prototype.containedInRect=kt.prototype.fh,kt.prototype.containsRect=kt.prototype.Re,kt.prototype.containsPoint=kt.prototype.ca,kt.prototype.raiseChanged=kt.prototype.g,kt.prototype.raiseChangedEvent=kt.prototype.cb,kt.prototype.addCopyProperty=kt.prototype.Vw;var Lf=null;kt.className="GraphObject",Lf=new $t,bh("Button",function(){function a(x,E){return x.diagram.ic(x.documentPoint,function(b){for(;b.panel!==null&&!b.isActionable;)b=b.panel;return b},function(b){return b===E})!==null}var y=El(ni,ni.Auto,{isActionable:!0,enabledChanged:function(x,E){if(x instanceof ni){var b=x.fb("ButtonBorder");b!==null&&(b.fill=E?x._buttonFillNormal:x._buttonFillDisabled)}},cursor:"pointer",_buttonFillNormal:"#F5F5F5",_buttonStrokeNormal:"#BDBDBD",_buttonFillOver:"#E0E0E0",_buttonStrokeOver:"#9E9E9E",_buttonFillPressed:"#BDBDBD",_buttonStrokePressed:"#9E9E9E",_buttonFillDisabled:"#E5E5E5"},El(Wr,{name:"ButtonBorder",figure:"RoundedRectangle",spot1:new ii(0,0,2.76142374915397,2.761423749153969),spot2:new ii(1,1,-2.76142374915397,-2.761423749153969),parameter1:2,parameter2:2,fill:"#F5F5F5",stroke:"#BDBDBD"}));return y.mouseEnter=function(x,E){if(E.If()&&E instanceof ni&&(x=E.fb("ButtonBorder"),x instanceof Wr)){var b=E._buttonFillOver;E._buttonFillNormal=x.fill,x.fill=b,b=E._buttonStrokeOver,E._buttonStrokeNormal=x.stroke,x.stroke=b}},y.mouseLeave=function(x,E){E.If()&&E instanceof ni&&(x=E.fb("ButtonBorder"),x instanceof Wr&&(x.fill=E._buttonFillNormal,x.stroke=E._buttonStrokeNormal))},y.actionDown=function(x,E){if(E.If()&&E instanceof ni&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wr){x=x.diagram;var z=x.skipsUndoManager;x.skipsUndoManager=!0;var ee=E._buttonFillPressed;E._buttonFillOver=b.fill,b.fill=ee,ee=E._buttonStrokePressed,E._buttonStrokeOver=b.stroke,b.stroke=ee,x.skipsUndoManager=z}}},y.actionUp=function(x,E){if(E.If()&&E instanceof ni&&E._buttonFillPressed!==null&&x.button===0){var b=E.fb("ButtonBorder");if(b instanceof Wr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionCancel=function(x,E){if(E.If()&&E instanceof ni&&E._buttonFillPressed!==null){var b=E.fb("ButtonBorder");if(b instanceof Wr){var z=x.diagram,ee=z.skipsUndoManager;z.skipsUndoManager=!0,a(x,E)?(b.fill=E._buttonFillOver,b.stroke=E._buttonStrokeOver):(b.fill=E._buttonFillNormal,b.stroke=E._buttonStrokeNormal),z.skipsUndoManager=ee}}},y.actionMove=function(x,E){if(E.If()&&E instanceof ni&&E._buttonFillPressed!==null){var b=x.diagram;if(b.firstInput.button===0&&(b.currentTool.standardMouseOver(),a(x,E)&&(x=E.fb("ButtonBorder"),x instanceof Wr))){var z=b.skipsUndoManager;b.skipsUndoManager=!0;var ee=E._buttonFillPressed;x.fill!==ee&&(x.fill=ee),ee=E._buttonStrokePressed,x.stroke!==ee&&(x.stroke=ee),b.skipsUndoManager=z}}},y}),bh("TreeExpanderButton",function(){var a=El("Button",{_treeExpandedFigure:"MinusLine",_treeCollapsedFigure:"PlusLine"},El(Wr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Vt},new La("figure","isTreeExpanded",function(y,x){return x=x.panel,y?x._treeExpandedFigure:x._treeCollapsedFigure}).cp()),{visible:!1},new La("visible","isTreeLeaf",function(y){return!y}).cp());return a.click=function(y,x){if(x=x.part,x instanceof uo&&(x=x.adornedPart),x instanceof Li){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isTreeExpanded){if(!E.canCollapseTree(x))return}else if(!E.canExpandTree(x))return;y.handled=!0,x.isTreeExpanded?E.collapseTree(x):E.expandTree(x)}}},a}),bh("SubGraphExpanderButton",function(){var a=El("Button",{_subGraphExpandedFigure:"MinusLine",_subGraphCollapsedFigure:"PlusLine"},El(Wr,{name:"ButtonIcon",figure:"MinusLine",stroke:"#424242",strokeWidth:2,desiredSize:Vt},new La("figure","isSubGraphExpanded",function(y,x){return x=x.panel,y?x._subGraphExpandedFigure:x._subGraphCollapsedFigure}).cp()));return a.click=function(y,x){if(x=x.part,x instanceof uo&&(x=x.adornedPart),x instanceof Or){var E=x.diagram;if(E!==null){if(E=E.commandHandler,x.isSubGraphExpanded){if(!E.canCollapseSubGraph(x))return}else if(!E.canExpandSubGraph(x))return;y.handled=!0,x.isSubGraphExpanded?E.collapseSubGraph(x):E.expandSubGraph(x)}}},a}),bh("ToolTip",function(){return El(uo,ni.Auto,{isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Te(0,3),shadowBlur:5},El(Wr,{name:"Border",figure:"RoundedRectangle",parameter1:1,parameter2:1,fill:"#F5F5F5",stroke:"#F0F0F0",spot1:new ii(0,0,4,6),spot2:new ii(1,1,-4,-4)}))}),bh("ContextMenu",function(){return El(uo,ni.Vertical,{background:"#F5F5F5",isShadowed:!0,shadowColor:"rgba(0, 0, 0, .4)",shadowOffset:new Te(0,3),shadowBlur:5},new La("background","",function(a){return a.adornedPart!==null&&a.placeholder!==null?null:"#F5F5F5"}))}),bh("ContextMenuButton",function(){var a=El("Button");a.stretch=qi;var y=a.fb("ButtonBorder");return y instanceof Wr&&(y.figure="Rectangle",y.strokeWidth=0,y.spot1=new ii(0,0,2,3),y.spot2=new ii(1,1,-2,-2)),a}),bh("PanelExpanderButton",function(a){var y=cm(a,"COLLAPSIBLE"),x=El("Button",{_buttonExpandedFigure:"M0 0 M0 6 L4 2 8 6 M8 8",_buttonCollapsedFigure:"M0 0 M0 2 L4 6 8 2 M8 8",_buttonFillNormal:"rgba(0, 0, 0, 0)",_buttonStrokeNormal:null,_buttonFillOver:"rgba(0, 0, 0, .2)",_buttonStrokeOver:null,_buttonFillPressed:"rgba(0, 0, 0, .4)",_buttonStrokePressed:null},El(Wr,{name:"ButtonIcon",strokeWidth:2},new La("geometryString","visible",function(E){return E?x._buttonExpandedFigure:x._buttonCollapsedFigure}).cp(y)));return a=x.fb("ButtonBorder"),a instanceof Wr&&(a.stroke=null,a.fill="rgba(0, 0, 0, 0)"),x.click=function(E,b){var z=b.diagram;if(z!==null&&!z.isReadOnly){var ee=b.ih();ee===null&&(ee=b.part),ee!==null&&(b=ee.fb(y),b!==null&&(E.handled=!0,z.Ea("Collapse/Expand Panel"),b.visible=!b.visible,z.eb("Collapse/Expand Panel")))}},x}),bh("CheckBoxButton",function(a){var y=cm(a);return a=El("Button",{desiredSize:new Re(14,14)},El(Wr,{name:"ButtonIcon",geometryString:"M0 0 M0 8.85 L4.9 13.75 16.2 2.45 M16.2 16.2",strokeWidth:2,stretch:qn,geometryStretch:Ki,visible:!1},y!==""?new La("visible",y).Kx():[])),a.click=function(x,E){if(E instanceof ni){var b=x.diagram;if(!(b===null||b.isReadOnly||y!==""&&b.model.isReadOnly)){x.handled=!0;var z=E.fb("ButtonIcon");b.Ea("checkbox"),z.visible=!z.visible,typeof E._doClick=="function"&&E._doClick(x,E),b.eb("checkbox")}}},a}),bh("CheckBox",function(a){a=cm(a),a=El("CheckBoxButton",a,{name:"Button",isActionable:!1,margin:new Fi(0,1,0,0)});var y=El(ni,"Horizontal",a,{isActionable:!0,cursor:a.cursor,margin:new Fi(1),_buttonFillNormal:a._buttonFillNormal,_buttonStrokeNormal:a._buttonStrokeNormal,_buttonFillOver:a._buttonFillOver,_buttonStrokeOver:a._buttonStrokeOver,_buttonFillPressed:a._buttonFillPressed,_buttonStrokePressed:a._buttonStrokePressed,_buttonFillDisabled:a._buttonFillDisabled,mouseEnter:a.mouseEnter,mouseLeave:a.mouseLeave,actionDown:a.actionDown,actionUp:a.actionUp,actionCancel:a.actionCancel,actionMove:a.actionMove,click:a.click,_buttonClick:a.click});return a.mouseEnter=null,a.mouseLeave=null,a.actionDown=null,a.actionUp=null,a.actionCancel=null,a.actionMove=null,a.click=null,y}),kt.None=Zn=new En(kt,"None",0),kt.Default=Ir=new En(kt,"Default",0),kt.Vertical=mr=new En(kt,"Vertical",4),kt.Horizontal=qi=new En(kt,"Horizontal",5),kt.Fill=qn=new En(kt,"Fill",3),kt.Uniform=Ki=new En(kt,"Uniform",1),kt.UniformToFill=$r=new En(kt,"UniformToFill",2),kt.FlipVertical=Gr=new En(kt,"FlipVertical",1),kt.FlipHorizontal=oo=new En(kt,"FlipHorizontal",2),kt.FlipBoth=ko=new En(kt,"FlipBoth",3),kt.make=El,kt.getBuilders=function(){var a=new $t,y;for(y in Lf)if(y!==y.toLowerCase()){var x=Lf.I(y);typeof x=="function"&&a.add(y,x)}return a.freeze(),a},kt.defineBuilder=bh,kt.build=function(a,y,x){for(var E=[],b=2;b<arguments.length;++b)E[b-2]=arguments[b];if(b=Lf.I(a),typeof b=="function"&&(E=b([a].concat(E)),E instanceof kt))return y&&E.set(y),E;Ve('GraphObject.build invoked object builder "'+a+'", but it did not return an Object')},kt.takeBuilderArgument=cm;function Tc(){this.nc=!1,this.xa="",this.zp=-1,this.nb=this.wm=this.te=null,this.j="",this.hb=this.Di=this.Hb=this.Ch=this.$h=this.F=this.Ha=this.ia=this.V=this.Lh=this.Xd=this.Of=this.Nh=this.Oh=this.Qh=this.Ph=this.Mh=this.Bh=this.Fh=this.zh=null,this.u=ot,this.o=Ln,this.hg=Ir,this.ob=this.Bi=1,this.Pf=Zn,this.Pc=this.Ci=this.gd=null,this.Oc="category"}Tc.prototype.copy=function(){var a=new Tc;return a.xa=this.xa,a.zp=this.zp,a.te=this.te,a.nb=this.nb,a.j=this.j,a.zh=this.zh,a.Fh=this.Fh,a.Bh=this.Bh,a.Mh=this.Mh,a.Ph=this.Ph,a.Qh=this.Qh,a.Oh=this.Oh,a.Nh=this.Nh,a.Of=this.Of,a.Xd=this.Xd,a.Lh=this.Lh,a.V=this.V,a.ia=this.ia,a.Ha=this.Ha,a.F=this.F,a.$h=this.$h,a.Ch=this.Ch,a.Hb=this.Hb,a.Di=this.Di,a.hb=this.hb,a.u=this.u.J(),a.o=this.o.J(),a.hg=this.hg,a.Bi=this.Bi,a.ob=this.ob,a.Pf=this.Pf,a.gd=this.gd,a.Ci=this.Ci,a.Pc=this.Pc,a.Oc=this.Oc,a};function ud(){this.u=-1/0,this.o=0,this.F=He,this.rr=ks,this.j=this.V="None"}ud.prototype.copy=function(){var a=new ud;return a.u=this.u,a.o=this.o,a.F=this.F.J(),a.rr=this.rr,a.V=this.V,a.j=this.j,a},ud.className="LinkElementSettings";function Yg(){this.yj=this.Xi=Lo,this.xj=this.Wi=this.wj=this.Vi=NaN,this.Tr=this.hq=null,this.Ur=this.iq=1/0}Yg.prototype.copy=function(){var a=new Yg;return a.Xi=this.Xi.J(),a.yj=this.yj.J(),a.Vi=this.Vi,a.wj=this.wj,a.Wi=this.Wi,a.xj=this.xj,a.hq=this.hq,a.Tr=this.Tr,a.iq=this.iq,a.Ur=this.Ur,a},Yg.className="LinkSettings";function _d(){this.ha=[1,0,0,1,0,0]}_d.prototype.copy=function(){var a=new _d;return a.ha[0]=this.ha[0],a.ha[1]=this.ha[1],a.ha[2]=this.ha[2],a.ha[3]=this.ha[3],a.ha[4]=this.ha[4],a.ha[5]=this.ha[5],a},_d.prototype.translate=function(a,y){this.ha[4]+=this.ha[0]*a+this.ha[2]*y,this.ha[5]+=this.ha[1]*a+this.ha[3]*y},_d.prototype.scale=function(a,y){this.ha[0]*=a,this.ha[1]*=a,this.ha[2]*=y,this.ha[3]*=y},_d.prototype.rotate=function(a,y,x){if(360<=a?a-=360:0>a&&(a+=360),a!==0){if(this.translate(y,x),a===90){a=0;var E=1}else a===180?(a=-1,E=0):a===270?(a=0,E=-1):(E=a*Math.PI/180,a=Math.cos(E),E=Math.sin(E));var b=this.ha[1]*a+this.ha[3]*E,z=this.ha[0]*-E+this.ha[2]*a,ee=this.ha[1]*-E+this.ha[3]*a;this.ha[0]=this.ha[0]*a+this.ha[2]*E,this.ha[1]=b,this.ha[2]=z,this.ha[3]=ee,this.translate(-y,-x)}},_d.className="STransform";function Oc(a){this.type=a,this.r2=this.y2=this.x2=this.r1=this.y1=this.x1=0,this.gx=[],this.pattern=null}Oc.prototype.addColorStop=function(a,y){this.gx.push({offset:a,color:y})},Oc.className="SGradient";function Au(a,y,x){this.ownerDocument=a=y===void 0?xn.document:y,this.cA="http://www.w3.org/2000/svg",a!==void 0&&(this.Oa=this.Ud("svg",{width:"1px",height:"1px",viewBox:"0 0 1 1"}),this.style.display="block",this.style.letterSpacing="normal",this.style.wordSpacing="normal",this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns","http://www.w3.org/2000/svg"),this.Oa.setAttributeNS("http://www.w3.org/2000/xmlns/","xmlns:xlink","http://www.w3.org/1999/xlink")),this.hs=null,this.context=new el(this,x)}Au.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",this.Oa.setAttributeNS(null,"width",x+"px"),this.Oa.setAttributeNS(null,"height",E+"px"),this.Oa.setAttributeNS(null,"viewBox","0 0 "+x+" "+E),this.context.ww.firstElementChild.setAttributeNS(null,"width",x+"px"),this.context.ww.firstElementChild.setAttributeNS(null,"height",E+"px"),!0):!1},Au.prototype.Ud=function(a,y,x){if(a=this.ownerDocument.createElementNS(this.cA,a),Ot(y))for(var E in y)a.setAttributeNS(E==="href"?"http://www.w3.org/1999/xlink":"",E,y[E]);return x!==void 0&&(a.textContent=x),a},Au.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},Au.prototype.focus=function(){this.Oa.focus()},Au.prototype.mx=function(){this.ownerDocument=null},Ct.Object.defineProperties(Au.prototype,{width:{get:function(){return this.Oa.width.baseVal.value},set:function(a){this.Oa.setAttribute("width",a+"px")}},height:{get:function(){return this.Oa.height.baseVal.value},set:function(a){this.Oa.setAttribute("height",a+"px")}},style:{get:function(){return this.Oa.style}}}),Au.className="SVGSurface";function el(a,y){this.Gv=a,this.svg=a.Oa,this.stack=[],this.nh=[],this.fillStyle="#000000",this.font="10px sans-serif",this.globalAlpha=1,this.lineCap="butt",this.lineDashOffset=0,this.lineJoin="miter",this.lineWidth=1,this.miterLimit=10,this.shadowBlur=0,this.shadowColor="rgba(0, 0, 0, 0)",this.shadowOffsetY=this.shadowOffsetX=0,this.Il=!1,this.strokeStyle="#000000",this.textAlign="start",this.clipInsteadOfFill=!1,this.Vg=this.Br=this.Ar=0,this.yd=this.ad=null,this.path=[],this.Yl={},this.Ct=!1,this.Yg=null,this.uj=0,this.rb=new _d,this.j=fm(this),this.Nj=fm(this,"gojs-diagram"),this.Hl=this.ti=null;var x=to++,E=this.Ud("clipPath",{id:"mainClip"+x});E.appendChild(this.Ud("rect",{x:0,y:0,width:a.width,height:a.height})),this.ww=E,this.svg.appendChild(this.j),this.j.appendChild(this.Nj),this.svg.appendChild(E),this.j.setAttributeNS(null,"clip-path","url(#mainClip"+x+")"),this.eA={},this.isTemporary=!!y,this.filter="",this.bk=null}function $y(a,y,x,E,b,z,ee){a.Nj===void 0?Ug(a,y,x,E,b,z,ee):a.Nj.setAttribute("transform","matrix("+y+", "+x+", "+E+", "+b+", "+z+", "+ee+")")}Ce=el.prototype,Ce.arc=function(a,y,x,E,b,z,ee,re){var oe=2*Math.PI,se=oe-1e-6,ue=x*Math.cos(E),fe=x*Math.sin(E),ve=a+ue,xe=y+fe,Pe=z?0:1;E=z?E-b:b-E,(1e-6<Math.abs(ee-ve)||1e-6<Math.abs(re-xe))&&this.path.push(["L",ve,+xe]),0>E&&(E=E%oe+oe),E>se?(this.path.push(["A",x,x,0,1,Pe,a-ue,y-fe]),this.path.push(["A",x,x,0,1,Pe,ve,xe])):1e-6<E&&this.path.push(["A",x,x,0,+(E>=Math.PI),Pe,a+x*Math.cos(b),y+x*Math.sin(b)])},Ce.beginPath=function(){this.path=[],this.Yl={stroke:"none",fill:"none"}},Ce.Se=function(a){this.addPath(this.path,this.rb,a||0)},Ce.bezierCurveTo=function(a,y,x,E,b,z){this.path.push(["C",a,y,x,E,b,z])},Ce.clearRect=function(){},Ce.clip=function(){this.Yl.clipPath=!0},Ce.closePath=function(){this.path.push(["z"])},Ce.createLinearGradient=function(a,y,x,E){var b=new Oc("linear");return b.x1=a,b.y1=y,b.x2=x,b.y2=E,b},Ce.createPattern=function(a){var y="";a instanceof HTMLCanvasElement&&(y=a.toDataURL()),a instanceof HTMLImageElement&&(y=a.getAttribute("src"));var x=this.eA;if(x[y])return"url(#"+x[y]+")";var E="PATTERN"+to++,b={x:0,y:0,width:a.width,height:a.height,href:y};return a=this.Ud("pattern",{width:a.width,height:a.height,id:E,patternUnits:"userSpaceOnUse"}),a.appendChild(this.Ud(Yd,b)),this.svg.appendChild(a),x[y]=E,"url(#"+E+")"},Ce.createRadialGradient=function(a,y,x,E,b,z){var ee=new Oc("radial");return ee.x1=a,ee.y1=y,ee.r1=x,ee.x2=E,ee.y2=b,ee.r2=z,ee};function e1(a,y,x,E,b,z,ee,re,oe){E=re/E,b=oe/b,z===0&&ee===0||a.rb.translate(z,ee),E===1&&b===1||a.rb.scale(E,b),y===0&&x===0||a.rb.translate(-y,-x)}Ce.drawImage=function(a,y,x,E,b,z,ee,re,oe){var se="";a instanceof HTMLCanvasElement&&(se=a.toDataURL()),a instanceof HTMLImageElement&&(se=a.getAttribute("src"));var ue=a instanceof HTMLImageElement?a.naturalWidth:a.width;a=a instanceof HTMLImageElement?a.naturalHeight:a.height,E===void 0&&(z=y,ee=x,re=E=ue,oe=b=a),E=E||0,b=b||0,re=re||0,oe=oe||0,e1(this,y,x,E,b,z||0,ee||0,re,oe),z={x:0,y:0,width:ue||E,height:a||b,href:se},pt.$(E,re)&&pt.$(b,oe)?se.toLowerCase().indexOf(".svg")===-1&&se.toLowerCase().indexOf("data:image/svg")===-1&&(z.preserveAspectRatio="xMidYMid slice"):z.preserveAspectRatio="none",(y!==0||x!==0||E!==ue||b!==a)&&(E+=y,b+=x,z["clip-path"]="path('M "+y+","+x+" L "+E+" "+x+" L "+E+" "+b+" L "+y+" "+b+" z')"),bf(this,Yd,z,this.rb),this.addElement(Yd,z)},Ce.fill=function(a){a&&(this.Yl["fill-rule"]="evenodd"),sv(this,this.Yl)},Ce.ng=function(a,y){this.clipInsteadOfFill?this.clip():this.fill(y)},Ce.fillRect=function(a,y,x,E){a=[a,y,x,E],a={x:a[0],y:a[1],width:a[2],height:a[3]},bf(this,"fill",a,this.rb),this.addElement("rect",a)},Ce.ox=function(a,y,x,E){a={x:a,y,width:x,height:E},bf(this,"fill",a,this.rb),sv(this,a),this.svg.prepend(this.Ud("rect",a))},Ce.fillText=function(a,y,x){a=[a,y,x],y=this.textAlign,y==="left"?y="start":y==="right"?y="end":y==="center"&&(y="middle"),y={x:a[1],y:a[2],style:"font: "+this.font,"text-anchor":y},bf(this,"fill",y,this.rb),this.addElement("text",y,a[0])},Ce.lineTo=function(a,y){this.path.push(["L",a,y])},Ce.moveTo=function(a,y){this.path.push(["M",a,y])},Ce.quadraticCurveTo=function(a,y,x,E){this.path.push(["Q",a,y,x,E])},Ce.rect=function(a,y,x,E){this.path.push(["M",a,y],["L",a+x,y],["L",a+x,y+E],["L",a,y+E],["z"])},Ce.restore=function(){this.rb=this.stack.pop(),this.path=this.stack.pop();var a=this.stack.pop();this.fillStyle=a.fillStyle,this.font=a.font,this.globalAlpha=a.globalAlpha,this.lineCap=a.lineCap,this.lineDashOffset=a.lineDashOffset,this.lineJoin=a.lineJoin,this.lineWidth=a.lineWidth,this.miterLimit=a.miterLimit,this.shadowBlur=a.shadowBlur,this.shadowColor=a.shadowColor,this.shadowOffsetX=a.shadowOffsetX,this.shadowOffsetY=a.shadowOffsetY,this.strokeStyle=a.strokeStyle,this.textAlign=a.textAlign,this.bk=a.bk},Ce.save=function(){this.stack.push({fillStyle:this.fillStyle,font:this.font,globalAlpha:this.globalAlpha,lineCap:this.lineCap,lineDashOffset:this.lineDashOffset,lineJoin:this.lineJoin,lineWidth:this.lineWidth,miterLimit:this.miterLimit,shadowBlur:this.shadowBlur,shadowColor:this.shadowColor,shadowOffsetX:this.shadowOffsetX,shadowOffsetY:this.shadowOffsetY,strokeStyle:this.strokeStyle,textAlign:this.textAlign,bk:this.bk});for(var a=[],y=0;y<this.path.length;y++)a.push(this.path[y]);this.stack.push(a),this.stack.push(this.rb.copy())},Ce.setTransform=function(a,y,x,E,b,z){a===1&&y===0&&x===0&&E===1&&b===0&&z===0||Ug(this,a,y,x,E,b,z)};function t1(a){return a=a.rb.ha,"matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")"}Ce.scale=function(a,y){this.rb.scale(a,y)},Ce.translate=function(a,y){this.rb.translate(a,y)},Ce.transform=function(){},Ce.yc=function(){},Ce.stroke=function(){i1(this,this.Yl)},Ce.jk=function(){this.clipInsteadOfFill||this.stroke()},Ce.Ud=function(a,y,x){return this.Gv.Ud(a,y,x)},Ce.addElement=function(a,y,x){return a=this.Ud(a,y,x),this.yd!==null?this.yd.appendChild(a):this.yd=a,this.ad=a};function bf(a,y,x,E){y==="fill"?sv(a,x):y==="stroke"&&i1(a,x),E!==null&&(a=E.ha,x.transform="matrix("+a[0]+", "+a[1]+", "+a[2]+", "+a[3]+", "+a[4]+", "+a[5]+")")}function sv(a,y){a.fillStyle instanceof Oc?y.fill=lv(a,a.fillStyle,!0):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.fill="rgb("+a[1]+","+a[2]+","+a[3]+")",y["fill-opacity"]=a[4]):y.fill=a.fillStyle}function n1(a,y,x){x=x?"fill":"stroke",a.fillStyle instanceof Oc?y.setAttributeNS(null,"fill",lv(a,a.fillStyle,!0)):/^rgba\(/.test(a.fillStyle)?(a=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.fillStyle),y.setAttributeNS(null,x,"rgb("+a[1]+","+a[2]+","+a[3]+")"),y.setAttributeNS(null,x+"-opacity",a[4])):y.setAttributeNS(null,x,a.fillStyle)}function i1(a,y){if(a.strokeStyle instanceof Oc)y.stroke=lv(a,a.strokeStyle,!1);else if(/^rgba\(/.test(a.strokeStyle)){var x=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(a.strokeStyle);y.stroke="rgb("+x[1]+","+x[2]+","+x[3]+")",y["stroke-opacity"]=x[4]}else y.stroke=a.strokeStyle;y["stroke-width"]=a.lineWidth,y["stroke-linecap"]=a.lineCap,y["stroke-linejoin"]=a.lineJoin,y["stroke-miterlimit"]=a.miterLimit,a.Ct&&(y["stroke-dasharray"]=a.Yg.toString(),y["stroke-dashoffset"]=a.uj)}function lv(a,y,x){var E="";if(E=a.Hl!==null?a.Hl.getAttribute(x?"fill":"stroke"):null,E!==null&&E.indexOf("GRAD")!==-1?(E=E.split("#")[1].slice(0,-1),x=a.svg.getElementById(E),x!==null&&x.remove()):E="GRAD"+to++,y.type==="linear")x=a.Ud("linearGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,id:E,gradientUnits:"userSpaceOnUse"});else if(y.type==="radial")x=a.Ud("radialGradient",{x1:y.x1,x2:y.x2,y1:y.y1,y2:y.y2,r1:y.r1,r2:y.r2,id:E});else throw Error("invalid gradient");var b=y.gx;y=b.length;for(var z=[],ee=0;ee<y;ee++){var re=b[ee],oe=re.color;re={offset:re.offset,"stop-color":oe},/^rgba\(/.test(oe)&&(oe=/^\s*rgba\s*\(([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\s*,\s*([^,\s]+)\)\s*$/i.exec(oe),re["stop-color"]="rgb("+oe[1]+","+oe[2]+","+oe[3]+")",re["stop-opacity"]=oe[4]),z.push(re)}for(z.sort(function(se,ue){return se.offset>ue.offset?1:-1}),b=0;b<y;b++)x.appendChild(a.Ud("stop",z[b]));return a.svg.appendChild(x),"url(#"+E+")"}Ce.addPath=function(a,y,x){for(var E=[],b=0;b<a.length;b++){var z=Hn(a[b]),ee=[z.shift()];if(ee[0]==="A")ee.push(z.shift()+","+z.shift(),z.shift(),z.shift()+","+z.shift(),z.shift()+","+z.shift());else for(;z.length;)ee.push(z.shift()+","+z.shift());E.push(ee.join(" "))}if(E=E.join(" "),a=this.Yl,a.clipPath)0<this.nh.length&&this.nh[this.nh.length-1].setAttributeNS(null,"clip-path",'path("'+E+'")');else if(a.d=E,bf(this,"",a,y),this.Hl!==null)if(y=this.Hl,y.nodeName!=="g")for(var re in a)re!=="transform"&&y.setAttributeNS(null,re,a[re]);else{re=y.getElementsByTagName("path");for(var oe in a)oe!=="transform"&&re[x].setAttributeNS(null,oe,a[oe])}else this.addElement("path",a)};function Ug(a,y,x,E,b,z,ee){var re=new _d;re.ha=[y,x,E,b,z,ee],y={},bf(a,"g",y,re),re=a.addElement("g",y),a.nh.push(re)}function fm(a,y){var x={};return y&&(x.class=y),y=a.addElement("g",x),a.nh.push(y),y}Ce.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x};function zu(a){a.Il=!1,a.shadowOffsetX=0,a.shadowOffsetY=0,a.shadowBlur=0}function ih(a){a.Il=!0,a.shadowOffsetX=a.Ar,a.shadowOffsetY=a.Br,a.shadowBlur=a.Vg}Ce.js=function(a,y){this.Ct=!0,this.Yg=a,this.uj=y},Ce.fs=function(){this.Ct=!1},Ce.Vc=function(){},Ce.Wx=function(){},el.prototype.rotate=function(a){this.rb.rotate(57.2958*a,0,0)},el.prototype.getImageData=function(){return null},el.prototype.measureText=function(){return null};function gm(a,y){y=y.getAttribute("fill"),y!==null&&(y=y.split("#"),y.length!==1&&(y=a.svg.getElementById(y[1].slice(0,-1)),y!==null&&a.svg.innerHTML.match(new RegExp(y.id,"g")).length===1&&y.remove()))}el.prototype.Hs=function(a){a.svg!==null&&a.svg.parentNode===this.Nj&&a.svg.remove()},el.className="SVGContext",qt.prototype.Cs=function(a){this.pj.contains("SVG")||this.bs("SVG",new Au(this,xn.document));var y=new Au(this,xn.document,!0);a===void 0&&(a=new Wi);var x=this;return Mc(this,function(E,b){return E=lm(x,E,"SVG",y),E=E!==null?E.svg:null,typeof b=="function"?(b(E),null):E},a)},qt.prototype.makeSvg=qt.prototype.Cs,qt.prototype.av=function(a){return this.Cs(a)},qt.prototype.makeSVG=qt.prototype.av;function zl(a,y,x,E){this.ownerDocument=y=y===void 0?xn.document:y,this.hs=null,y=y.createElement("canvas"),y.tabIndex=0,this.Oa=y,this.context=new Jd(y,x,E),y.H=a}zl.prototype.resize=function(a,y,x,E){return this.width!==a||this.height!==y?(this.width=a,this.height=y,this.style.width=x+"px",this.style.height=E+"px",!0):!1},zl.prototype.toDataURL=function(a,y){return this.Oa.toDataURL(a,y)},zl.prototype.getBoundingClientRect=function(){return this.Oa.getBoundingClientRect()},zl.prototype.focus=function(){this.Oa.focus()},zl.prototype.mx=function(){this.ownerDocument=this.Oa.H=null},Ct.Object.defineProperties(zl.prototype,{width:{get:function(){return this.Oa.width},set:function(a){this.Oa.width=a}},height:{get:function(){return this.Oa.height},set:function(a){this.Oa.height=a}},style:{get:function(){return this.Oa.style}}}),zl.className="CanvasSurface";function Jd(a,y,x){this.Z=a.getContext?a.getContext("2d",y):null,this.Z===null&&Ve("Browser does not support HTML Canvas Element"),this.ct=this.et=this.dt="",this.Hm=!1,this.Vg=this.Br=this.Ar=0,this.Il=!1,this.El=new vi,this.isTemporary=!!x}Ce=Jd.prototype,Ce.Wx=function(a){this.Z.imageSmoothingEnabled=a},Ce.arc=function(a,y,x,E,b,z){this.Z.arc(a,y,x,E,b,z)},Ce.beginPath=function(){this.Z.beginPath()},Ce.Se=function(){},Ce.bezierCurveTo=function(a,y,x,E,b,z){this.Z.bezierCurveTo(a,y,x,E,b,z)},Ce.clearRect=function(a,y,x,E){this.yc(),this.Z.clearRect(a,y,x,E)},Ce.clip=function(){this.Z.clip()},Ce.closePath=function(){this.Z.closePath()},Ce.createLinearGradient=function(a,y,x,E){return this.Z.createLinearGradient(a,y,x,E)},Ce.createPattern=function(a,y){return this.Z.createPattern(a,y)},Ce.createRadialGradient=function(a,y,x,E,b,z){return this.Z.createRadialGradient(a,y,x,E,b,z)},Ce.drawImage=function(a,y,x,E,b,z,ee,re,oe){E===void 0?this.Z.drawImage(a,y,x):this.Z.drawImage(a,y,x,E,b,z,ee,re,oe)},Ce.fill=function(a){this.Z.fill(a?"evenodd":"nonzero")},Ce.fillRect=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ce.ox=function(a,y,x,E){this.Z.fillRect(a,y,x,E)},Ce.fillText=function(a,y,x){this.Z.fillText(a,y,x)},Ce.getImageData=function(a,y,x,E){return this.Z.getImageData(a,y,x,E)},Ce.lineTo=function(a,y){this.Z.lineTo(a,y)},Ce.measureText=function(a){return this.Z.measureText(a)},Ce.moveTo=function(a,y){this.Z.moveTo(a,y)},Ce.quadraticCurveTo=function(a,y,x,E){this.Z.quadraticCurveTo(a,y,x,E)},Ce.rect=function(a,y,x,E){this.Z.rect(a,y,x,E)},Ce.restore=function(){this.Z.restore()},Ce.save=function(){this.yc(),this.Z.save()},Jd.prototype.rotate=function(a){this.El.rotate(57.2958*a,0,0)},Ce=Jd.prototype,Ce.setTransform=function(a,y,x,E,b,z){this.El.setTransform(a,y,x,E,b,z)},Ce.scale=function(a,y){this.El.scale(a,y)},Ce.translate=function(a,y){this.El.translate(a,y)},Ce.stroke=function(){this.Z.stroke()},Ce.transform=function(a,y,x,E,b,z){if(a!==1||y!==0||x!==0||E!==1||b!==0||z!==0){var ee=this.El,re=ee.m11*a+ee.m21*y;a=ee.m12*a+ee.m22*y,y=ee.m11*x+ee.m21*E,x=ee.m12*x+ee.m22*E,ee.dx=ee.m11*b+ee.m21*z+ee.dx,ee.dy=ee.m12*b+ee.m22*z+ee.dy,ee.m11=re,ee.m12=a,ee.m21=y,ee.m22=x}},Ce.yc=function(){var a=this.El;this.Z.setTransform(a.m11,a.m12,a.m21,a.m22,a.dx,a.dy)},Ce.ng=function(a,y){if(a instanceof wo&&a.type===Al){var x=a.yk;a=a.ft,a>x?(this.scale(x/a,1),this.translate((a-x)/2,0)):x>a&&(this.scale(1,a/x),this.translate(0,(x-a)/2)),this.Hm?this.clip():this.fill(y),a>x?(this.translate(-(a-x)/2,0),this.scale(1/(x/a),1)):x>a&&(this.translate(0,-(x-a)/2),this.scale(1,1/(a/x)))}else this.Hm?this.clip():this.fill(y)},Ce.jk=function(){this.Hm||this.stroke()},Ce.Ev=function(a,y,x){this.Ar=a,this.Br=y,this.Vg=x},Ce.js=function(a,y){var x=this.Z;x.setLineDash!==void 0&&(x.setLineDash(a),x.lineDashOffset=y)},Ce.fs=function(){var a=this.Z;a.setLineDash!==void 0&&(a.setLineDash(Ax),a.lineDashOffset=0)},Ce.Vc=function(a){a&&(this.dt=""),this.ct=this.et=""},Ce.Hs=function(){},Ct.Object.defineProperties(Jd.prototype,{fillStyle:{get:function(){return this.Z.fillStyle},set:function(a){this.ct!==a&&(this.ct=this.Z.fillStyle=a)}},font:{get:function(){return this.Z.font},set:function(a){this.dt!==a&&(this.dt=this.Z.font=a)}},globalAlpha:{get:function(){return this.Z.globalAlpha},set:function(a){this.Z.globalAlpha=a}},lineCap:{get:function(){return this.Z.lineCap},set:function(a){this.Z.lineCap=a}},lineDashOffset:{get:function(){return this.Z.lineDashOffset},set:function(a){this.Z.lineDashOffset=a}},lineJoin:{get:function(){return this.Z.lineJoin},set:function(a){this.Z.lineJoin=a}},lineWidth:{get:function(){return this.Z.lineWidth},set:function(a){this.Z.lineWidth=a}},miterLimit:{get:function(){return this.Z.miterLimit},set:function(a){this.Z.miterLimit=a}},shadowBlur:{get:function(){return this.Z.shadowBlur},set:function(a){this.Z.shadowBlur=a}},shadowColor:{get:function(){return this.Z.shadowColor},set:function(a){this.Z.shadowColor=a}},shadowOffsetX:{get:function(){return this.Z.shadowOffsetX},set:function(a){this.Z.shadowOffsetX=a}},shadowOffsetY:{get:function(){return this.Z.shadowOffsetY},set:function(a){this.Z.shadowOffsetY=a}},strokeStyle:{get:function(){return this.Z.strokeStyle},set:function(a){this.et!==a&&(this.et=this.Z.strokeStyle=a)}},textAlign:{get:function(){return this.Z.textAlign},set:function(a){this.Z.textAlign=a}},imageSmoothingEnabled:{get:function(){return this.Z.imageSmoothingEnabled},set:function(a){this.Z.imageSmoothingEnabled=a}},filter:{get:function(){return this.Z.filter},set:function(a){this.Z.filter=a===""?"none":a}},clipInsteadOfFill:{get:function(){return this.Hm},set:function(a){this.Hm=a}}});var Ax=Object.freeze([]);Jd.className="CanvasSurfaceContext";function Xg(){this.F=this.o=this.u=this.j=0}Xg.className="ColorNumbers";function wo(a,y){Df||(gv(),Df=!0),bi(this),this._isFrozen=!1,a===void 0?(this.na=Mh,this.xk="black"):typeof a=="string"?(this.na=Mh,this.xk=a):(this.na=a,this.xk="black"),a=this.na,a===oh?(this.Qd=lr,this.Lk=Qr):this.Lk=a===Al?this.Qd=Mi:this.Qd=Zi,this.Gr=0,this.Xp=NaN,this.xe=this.cr=this.we=null,this.ft=this.yk=0,y&&Object.assign(this,y)}wo.prototype.copy=function(){var a=new wo;return a.na=this.na,a.xk=this.xk,a.Qd=this.Qd.J(),a.Lk=this.Lk.J(),a.Gr=this.Gr,a.Xp=this.Xp,this.we!==null&&(a.we=this.we.copy()),a.cr=this.cr,a},Ce=wo.prototype,Ce.freeze=function(){return this._isFrozen=!0,this.we!==null&&this.we.freeze(),this},Ce.ka=function(){return Object.isFrozen(this)&&Ve("cannot thaw constant: "+this),this._isFrozen=!1,this.we!==null&&this.we.ka(),this},Ce.qb=function(a){a.classType===wo&&(this.type=a)},Ce.toString=function(){var a="Brush(";if(this.type===Mh)a+=this.color;else if(a=this.type===oh?a+"Linear ":this.type===Al?a+"Radial ":this.type===Nf?a+"Pattern ":a+"(unknown) ",a+=this.start+" "+this.end,this.colorStops!==null)for(var y=this.colorStops.iterator;y.next();)a+=" "+y.key+":"+y.value;return a+")"},Ce.addColorStop=function(a,y){return this._isFrozen&&mt(this),(typeof a!="number"||!isFinite(a)||1<a||0>a)&&Dn(a,"0 <= loc <= 1",wo,"addColorStop:loc"),this.we===null&&(this.we=new $t),this.we.add(a,y),this.na===Mh&&(this.type=oh),this.xe=null,this},Ce.Vz=function(a,y){if(this._isFrozen&&mt(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Mh)rh(this.color),this.color=kf(a,y);else if((this.type===oh||this.type===Al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)rh(x.value),this.addColorStop(x.key,kf(a,y));return this};function r1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,rh(a),kf(y,x)}Ce.Wy=function(a,y){if(this._isFrozen&&mt(this),a=a===void 0||typeof a!="number"?.2:a,y=y===void 0?Bf:y,this.type===Mh)rh(this.color),this.color=kf(-a,y);else if((this.type===oh||this.type===Al)&&this.colorStops!==null)for(var x=this.colorStops.iterator;x.next();)rh(x.value),this.addColorStop(x.key,kf(-a,y));return this};function o1(a,y,x){return y=y===void 0||typeof y!="number"?.2:y,x=x===void 0?Bf:x,rh(a),kf(-y,x)}function uv(a,y,x){rh(a),a=Zo.j;var E=Zo.u,b=Zo.o,z=Zo.F;return rh(y),x===void 0&&(x=.5),"rgba("+Math.round((Zo.j-a)*x+a)+", "+Math.round((Zo.u-E)*x+E)+", "+Math.round((Zo.o-b)*x+b)+", "+Math.round((Zo.F-z)*x+z)+")"}Ce.Gx=function(){if(this.type===Mh)return Mf(this.color);if((this.type===oh||this.type===Al)&&this.colorStops!==null){var a=this.colorStops;if(this.type===Al)return Mf(a.first().value);if(a.get(.5)!==null)return Mf(a.get(.5));if(a.count===2)return a=a.Fa(),Mf(uv(a[0].value,a[1].value));for(var y=a.iterator,x=-1,E=-1,b=1,z=1;y.next();){var ee=y.key,re=Math.abs(.5-y.key);b>z&&re<b?(x=ee,b=re):z>=b&&re<z&&(E=ee,z=re)}return x>E&&(z=x,x=E,E=z,z=b),b=E-x,Mf(uv(a.get(x),a.get(E),1-z/b))}return!1};function Mf(a){return a?a instanceof wo?a.Gx():(rh(a),128>(299*Zo.j+587*Zo.u+114*Zo.o)/1e3):!1}function kf(a,y){switch(y){case Bf:y=100*dv(Zo.j);var x=100*dv(Zo.u),E=100*dv(Zo.o);return bs.j=.4124564*y+.3575761*x+.1804375*E,bs.u=.2126729*y+.7151522*x+.072175*E,bs.o=.0193339*y+.119192*x+.9503041*E,bs.F=Zo.F,y=fv(bs.j/Ff[0]),x=fv(bs.u/Ff[1]),E=fv(bs.o/Ff[2]),ju.j=116*x-16,ju.u=500*(y-x),ju.o=200*(x-E),ju.F=bs.F,ju.j=Math.min(100,Math.max(0,ju.j+100*a)),a=(ju.j+16)/116,y=a-ju.o/200,bs.j=Ff[0]*a1(ju.u/500+a),bs.u=Ff[1]*(ju.j>pm*pv?Math.pow(a,3):ju.j/pm),bs.o=Ff[2]*a1(y),bs.F=ju.F,a=-.969266*bs.j+1.8760108*bs.u+.041556*bs.o,y=.0556434*bs.j+-.2040259*bs.u+1.0572252*bs.o,Zo.j=255*cv((3.2404542*bs.j+-1.5371385*bs.u+-.4985314*bs.o)/100),Zo.u=255*cv(a/100),Zo.o=255*cv(y/100),Zo.F=bs.F,Zo.j=Math.round(Zo.j),255<Zo.j?Zo.j=255:0>Zo.j&&(Zo.j=0),Zo.u=Math.round(Zo.u),255<Zo.u?Zo.u=255:0>Zo.u&&(Zo.u=0),Zo.o=Math.round(Zo.o),255<Zo.o?Zo.o=255:0>Zo.o&&(Zo.o=0),"rgba("+Zo.j+", "+Zo.u+", "+Zo.o+", "+Zo.F+")";case s1:return hv(),dl.o=Math.min(100,Math.max(0,dl.o+100*a)),"hsla("+dl.j+", "+dl.u+"%, "+dl.o+"%, "+dl.F+")";default:Ve("Unknown color space: "+y)}}function rh(a){Df||(gv(),Df=!0);var y=mv;if(y!==null){y.clearRect(0,0,1,1),y.fillStyle="#000000";var x=y.fillStyle;y.fillStyle=a,y.fillStyle!==x?(y.fillRect(0,0,1,1),a=y.getImageData(0,0,1,1).data,Zo.j=a[0],Zo.u=a[1],Zo.o=a[2],Zo.F=a[3]/255):(y.fillStyle="#FFFFFF",y.fillStyle=a,Zo.j=0,Zo.u=0,Zo.o=0,Zo.F=1)}}function hv(){var a=Zo.j/255,y=Zo.u/255,x=Zo.o/255,E=Math.max(a,y,x),b=Math.min(a,y,x),z=E-b;if(b=(E+b)/2,z===0)var ee=a=0;else{switch(E){case a:ee=(y-x)/z%6;break;case y:ee=(x-a)/z+2;break;case x:ee=(a-y)/z+4}ee*=60,0>ee&&(ee+=360),a=z/(1-Math.abs(2*b-1))}dl.j=Math.round(ee),dl.u=Math.round(100*a),dl.o=Math.round(100*b),dl.F=Zo.F}function dv(a){return a/=255,.04045>=a?a/12.92:Math.pow((a+.055)/1.055,2.4)}function cv(a){return .0031308>=a?12.92*a:1.055*Math.pow(a,1/2.4)-.055}function fv(a){return a>pv?Math.pow(a,1/3):(pm*a+16)/116}function a1(a){var y=a*a*a;return y>pv?y:(116*a-16)/pm}function Ic(a,y){typeof a!="string"&&(a instanceof wo||Ve("Value for "+y+" must be a color string or a Brush, not "+a))}function gv(){mv=fa?new zl(null,void 0,{willReadFrequently:!0}).context:null}Ct.Object.defineProperties(wo.prototype,{type:{get:function(){return this.na},set:function(a){this._isFrozen&&mt(this,a),this.na=a,this.start.Mc()&&(a===oh?this.start=lr:a===Al&&(this.start=Mi)),this.end.Mc()&&(a===oh?this.end=Qr:a===Al&&(this.end=Mi)),this.xe=null}},color:{get:function(){return this.xk},set:function(a){this._isFrozen&&mt(this,a),this.xk=a,this.xe=null}},start:{get:function(){return this.Qd},set:function(a){this._isFrozen&&mt(this,a),this.Qd=a.J(),this.xe=null}},end:{get:function(){return this.Lk},set:function(a){this._isFrozen&&mt(this,a),this.Lk=a.J(),this.xe=null}},startRadius:{get:function(){return this.Gr},set:function(a){this._isFrozen&&mt(this,a),0>a&&Dn(a,">= zero",wo,"startRadius"),this.Gr=a,this.xe=null}},endRadius:{get:function(){return this.Xp},set:function(a){this._isFrozen&&mt(this,a),0>a&&Dn(a,">= zero",wo,"endRadius"),this.Xp=a,this.xe=null}},colorStops:{get:function(){return this.we},set:function(a){this._isFrozen&&mt(this,a),this.we=a,this.xe=null}},pattern:{get:function(){return this.cr},set:function(a){this._isFrozen&&mt(this,a),this.cr=a,this.xe=null}}}),wo.prototype.isDark=wo.prototype.Gx,wo.prototype.darkenBy=wo.prototype.Wy,wo.prototype.lightenBy=wo.prototype.Vz,wo.prototype.addColorStop=wo.prototype.addColorStop;var pv=216/24389,pm=24389/27,Ff=[95.047,100,108.883],mv=null,Zo=new Xg,dl=new Xg,bs=new Xg,ju=new Xg,Df=!1;wo.className="Brush";var Mh;wo.Solid=Mh=new En(wo,"Solid",0);var oh;wo.Linear=oh=new En(wo,"Linear",1);var Al;wo.Radial=Al=new En(wo,"Radial",2);var Nf;wo.Pattern=Nf=new En(wo,"Pattern",4);var Bf;wo.Lab=Bf=new En(wo,"Lab",5);var s1;wo.HSL=s1=new En(wo,"HSL",6),wo.randomColor=function(a,y){a===void 0&&(a=128),y===void 0&&(y=Math.max(a,255));var x=Math.abs(y-a);y=Math.floor(a+Math.random()*x).toString(16);var E=Math.floor(a+Math.random()*x).toString(16);return a=Math.floor(a+Math.random()*x).toString(16),2>y.length&&(y="0"+y),2>E.length&&(E="0"+E),2>a.length&&(a="0"+a),"#"+y+E+a},wo.isValidColor=function(a){if(a==="black")return!0;if(a==="")return!1;Df||(gv(),Df=!0);var y=mv;if(y===null)return!0;y.fillStyle="#000000";var x=y.fillStyle;return y.fillStyle=a,y.fillStyle!==x?!0:(y.fillStyle="#FFFFFF",x=y.fillStyle,y.fillStyle=a,y.fillStyle!==x)},wo.lighten=function(a){return r1(a)},wo.lightenBy=r1,wo.darken=function(a){return o1(a)},wo.darkenBy=o1,wo.mix=uv,wo.isDark=Mf;function Ia(){this.xa="Base"}Ia.prototype.measure=function(){},Ia.prototype.Yz=function(a,y,x,E,b){a.measure(y,x,E,b)},Ia.prototype.arrange=function(){},Ia.prototype.Ly=function(a,y,x,E,b,z){a.arrange(y,x,E,b,z)},Ia.prototype.iA=function(a){a.Uj()},Ia.prototype.gc=function(){},Ct.Object.defineProperties(Ia.prototype,{name:{get:function(){return this.xa},set:function(a){this.xa=a}},classType:{get:function(){return ni}}}),Ia.prototype.remeasureObject=Ia.prototype.iA,Ia.prototype.arrangeElement=Ia.prototype.Ly,Ia.prototype.measureElement=Ia.prototype.Yz,Ia.className="PanelLayout";function mm(){this.xa="Base"}xt(mm,Ia),mm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;a=ah(a);for(var oe=0;oe<re;oe++){var se=E[oe];if(se.visible||se===a){var ue=se.margin,fe=ue.right+ue.left;ue=ue.top+ue.bottom,se.measure(y,x,z,ee);var ve=se.measuredBounds;fe=Math.max(ve.width+fe,0),ue=Math.max(ve.height+ue,0),ve=se.position.x;var xe=se.position.y;isFinite(ve)||(ve=0),isFinite(xe)||(xe=0),se instanceof Wr&&se.isGeometryPositioned&&(se=se.strokeWidth/2,ve-=se,xe-=se),Bi(b,ve,xe,fe,ue)}}},mm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding;for(a=x.x-b.left,x=x.y-b.top,b=0;b<E;b++){var z=y[b],ee=z.measuredBounds,re=z.margin,oe=z.position.x,se=z.position.y;if(oe=isNaN(oe)?-a:oe-a,se=isNaN(se)?-x:se-x,z instanceof Wr&&z.isGeometryPositioned){var ue=z.strokeWidth/2;oe-=ue,se-=ue}z.visible&&z.arrange(oe+re.left,se+re.top,ee.width,ee.height)}};function vm(){this.xa="Base"}xt(vm,Ia),vm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length;y=si(),z=ah(a);for(var oe=0;oe<re;oe++){var se=E[oe];if(se.visible||se===z){var ue=zs(se,!1);if(ue!==Zn&&ue!==qi)y.push(se);else{se.measure(1/0,x,0,ee),ue=se.margin,se=se.measuredBounds;var fe=Math.max(se.height+ue.top+ue.bottom,0);b.width+=Math.max(se.width+ue.right+ue.left,0),b.height=Math.max(b.height,fe)}}}for(E=y.length,a.desiredSize.height?x=Math.min(a.desiredSize.height,a.maxSize.height):b.height!==0&&(x=Math.min(b.height,a.maxSize.height)),a=0;a<E;a++)oe=y[a],(oe.visible||oe===z)&&(ue=oe.margin,re=ue.right+ue.left,ue=ue.top+ue.bottom,oe.measure(1/0,x,0,ee),oe=oe.measuredBounds,ue=Math.max(oe.height+ue,0),b.width+=Math.max(oe.width+re,0),b.height=Math.max(b.height,ue));Pi(y)},vm.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.top,ee=a.isOpposite,re=ee?x.width:b.left,oe=0;oe<E;oe++){var se=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,ve=ue.margin,xe=ve.top+ve.bottom,Pe=z+b.bottom,Fe=fe.height,Je=zs(ue,!1);(isNaN(ue.desiredSize.height)&&Je===qn||Je===mr)&&(Fe=Math.max(x.height-xe-Pe,0)),xe=Fe+xe+Pe,Pe=ue.alignment,Pe.Xb()&&(Pe=a.defaultAlignment),Pe.sb()||(Pe=Mi),ee&&(re-=fe.width+ve.left+ve.right),ue.arrange(re+Pe.offsetX+ve.left,se+Pe.offsetY+ve.top+(x.height*Pe.y-xe*Pe.y),fe.width,Fe),ee||(re+=fe.width+ve.left+ve.right)}}};function ym(){this.xa="Base"}xt(ym,Ia),ym.prototype.measure=function(a,y,x,E,b,z){var ee=E.length;x=si();for(var re=ah(a),oe=0;oe<ee;oe++){var se=E[oe];if(se.visible||se===re){var ue=zs(se,!1);if(ue!==Zn&&ue!==mr)x.push(se);else{var fe=se.margin;ue=fe.right+fe.left,fe=fe.top+fe.bottom,se.measure(y,1/0,z,0),se=se.measuredBounds,Qn(b,Math.max(b.width,Math.max(se.width+ue,0)),b.height+Math.max(se.height+fe,0))}}}if(E=x.length,E!==0){for(a.desiredSize.width?y=Math.min(a.desiredSize.width,a.maxSize.width):b.width!==0&&(y=Math.min(b.width,a.maxSize.width)),a=0;a<E;a++)oe=x[a],(oe.visible||oe===re)&&(se=oe.margin,ee=se.right+se.left,se=se.top+se.bottom,oe.measure(y,1/0,z,0),oe=oe.measuredBounds,se=Math.max(oe.height+se,0),b.width=Math.max(b.width,Math.max(oe.width+ee,0)),b.height+=se);Pi(x)}},ym.prototype.arrange=function(a,y,x){for(var E=y.length,b=a.padding,z=b.left,ee=a.isOpposite,re=ee?x.height:b.top,oe=0;oe<E;oe++){var se=z,ue=y[oe];if(ue.visible){var fe=ue.measuredBounds,ve=ue.margin,xe=ve.left+ve.right,Pe=z+b.right,Fe=fe.width,Je=zs(ue,!1);(isNaN(ue.desiredSize.width)&&Je===qn||Je===qi)&&(Fe=Math.max(x.width-xe-Pe,0)),xe=Fe+xe+Pe,Pe=ue.alignment,Pe.Xb()&&(Pe=a.defaultAlignment),Pe.sb()||(Pe=Mi),ee&&(re-=fe.height+ve.bottom+ve.top),ue.arrange(se+Pe.offsetX+ve.left+(x.width*Pe.x-xe*Pe.x),re+Pe.offsetY+ve.top,Fe,fe.height),ee||(re+=fe.height+ve.bottom+ve.top)}}};function Sm(){this.xa="Base"}xt(Sm,Ia),Sm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),se=oe.margin,ue=se.right+se.left,fe=se.top+se.bottom;oe.measure(y,x,z,ee);var ve=oe.measuredBounds;z=ve.width,ee=ve.height;var xe=Math.max(z+ue,0),Pe=Math.max(ee+fe,0),Fe=a.isClipping,Je=ut.allocAt(-se.left,-se.top,xe,Pe),We=ut.allocAt(0,0,z,ee);vv(oe,We,!0),z=We.width,ee=We.height;for(var rt=!0,at=ah(a),ht=0;ht<re;ht++){var bt=E[ht];ve=y;var Jt=x;if(bt!==oe&&(bt.visible||bt===at)){se=bt.margin;var Ci=se.left,ji=se.top;switch(xe=se.right+se.left,Pe=se.top+se.bottom,se=zs(bt,!1),se){case qn:ve=z,Jt=ee,ji=Ci=Pe=xe=0;break;case qi:ve=z,Ci=xe=0;break;case mr:Jt=ee,ji=Pe=0}bt.measure(ve,Jt,0,0),ve=bt.measuredBounds,xe=Math.max(ve.width+xe,0),Pe=Math.max(ve.height+Pe,0),se=bt.alignment,se.Xb()&&(se=a.defaultAlignment),se.sb()||(se=Mi);var Ti=bt.alignmentFocus;if(Ti.Xb()&&(Ti=Mi),Jt=null,bt instanceof ni&&bt.$e!==""&&(Jt=bt.fb(bt.$e),Jt===bt&&(Jt=null)),Ci=We.x-Ci,ji=We.y-ji,Jt!==null){for(bt.arrange(0,0,ve.width,ve.height),ve=Jt.actualBounds,ve=Te.allocAt(ve.x+(Ti.x*ve.width-Ti.offsetX),ve.y+(Ti.y*ve.height-Ti.offsetY)),Jt=Jt.panel;Jt!==bt;)Jt.transform.Ga(ve),Jt=Jt.panel;Ci+=se.x*z+se.offsetX-ve.x,ji+=se.y*ee+se.offsetY-ve.y,Te.free(ve)}else Ci+=se.x*z+se.offsetX-(Ti.x*ve.width+Ti.offsetX),ji+=se.y*ee+se.offsetY-(Ti.y*ve.height+Ti.offsetY);rt?(rt=!1,b.h(Ci,ji,xe,Pe)):Bi(b,Ci,ji,xe,Pe)}}switch(rt?b.assign(Je):Fe?b.Uu(We.x,We.y,We.width,We.height):Bi(b,Je.x,Je.y,Je.width,Je.height),ut.free(Je),ut.free(We),se=oe.stretch,se===Ir&&(se=zs(oe,!1)),se){case Zn:return;case qn:if(!isFinite(y)&&!isFinite(x))return;break;case qi:if(!isFinite(y))return;break;case mr:if(!isFinite(x))return}for(ve=oe.measuredBounds,z=ve.width,ee=ve.height,xe=Math.max(z+ue,0),Pe=Math.max(ee+fe,0),se=oe.margin,We=ut.allocAt(-se.left,-se.top,xe,Pe),vv(oe,We,!0),z=We.width,ee=We.height,y=0;y<re;y++)x=E[y],x===oe||!x.visible&&x!==at||(se=x.margin,xe=se.right+se.left,Pe=se.top+se.bottom,ve=x.measuredBounds,xe=Math.max(ve.width+xe,0),Pe=Math.max(ve.height+Pe,0),ue=x.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Mi),x=x.alignmentFocus,x.Xb()&&(x=Mi),rt?(rt=!1,b.h(ue.x*z+ue.offsetX-(x.x*ve.width+x.offsetX)-se.left,ue.y*ee+ue.offsetY-(x.y*ve.height+x.offsetY)-se.top,xe,Pe)):Bi(b,ue.x*z+ue.offsetX-(x.x*ve.width+x.offsetX)-se.left,ue.y*ee+ue.offsetY-(x.y*ve.height+x.offsetY)-se.top,xe,Pe));rt?b.assign(Je):Fe?b.Uu(We.x,We.y,We.width,We.height):Bi(b,Je.x,Je.y,Je.width,Je.height),ut.free(We)},Sm.prototype.arrange=function(a,y,x){var E=y.length,b=a.Pb(),z=b.measuredBounds,ee=z.width,re=z.height,oe=a.padding;z=oe.left,oe=oe.top;var se=z-x.x,ue=oe-x.y;for(b.arrange(se,ue,ee,re),ee=ut.allocAt(0,0,ee,re),vv(b,ee,!1),re=0;re<E;re++){var fe=y[re];if(fe!==b){se=fe.measuredBounds;var ve=se.width,xe=se.height;ue=fe.alignment,ue.Xb()&&(ue=a.defaultAlignment),ue.sb()||(ue=Mi);var Pe=fe.alignmentFocus;if(Pe.Xb()&&(Pe=Mi),se=null,fe instanceof ni&&fe.$e!==""&&(se=fe.fb(fe.$e),se===fe&&(se=null)),se!==null){var Fe=se.actualBounds;for(Pe=Te.allocAt(Fe.x+(Pe.x*Fe.width-Pe.offsetX),Fe.y+(Pe.y*Fe.height-Pe.offsetY)),se=se.panel;se!==fe;)se.transform.Ga(Pe),se=se.panel;se=ue.x*ee.width+ue.offsetX-Pe.x,ue=ue.y*ee.height+ue.offsetY-Pe.y,Te.free(Pe)}else se=ue.x*ee.width+ue.offsetX-(Pe.x*ve+Pe.offsetX),ue=ue.y*ee.height+ue.offsetY-(Pe.y*xe+Pe.offsetY);se+=ee.x-x.x,ue+=ee.y-x.y,fe.visible&&fe.arrange(z+se,oe+ue,ve,xe)}}ut.free(ee)};function vv(a,y,x){var E=null;if(a instanceof ni&&a.$e!==""&&(E=a.fb(a.$e),E===a&&(E=null)),E!==null)for(x&&a.arrange(0,0,y.width,y.height),y.assign(E.actualBounds),E=E.panel;E!==a;)E.transform.pp(y),E=E.panel}function xm(){this.xa="Base"}xt(xm,Ia),xm.prototype.measure=function(a,y,x,E,b,z,ee){var re=E.length,oe=a.Pb(),se=oe.margin,ue=y,fe=x,ve=se.right+se.left,xe=se.top+se.bottom;oe.measure(y,x,z,ee),se=oe.measuredBounds;var Pe=0,Fe=null;oe instanceof Wr&&(Fe=oe,Pe=Fe.strokeWidth*Fe.scale);var Je=Math.max(se.width+ve,0);se=Math.max(se.height+xe,0);var We=wv(oe),rt=We.x*Je+We.offsetX;We=We.y*se+We.offsetY;var at=Pv(oe),ht=at.x*Je+at.offsetX;for(at=at.y*se+at.offsetY,isFinite(y)&&(ue=Math.max(Math.abs(rt-ht)-Pe,0)),isFinite(x)&&(fe=Math.max(Math.abs(We-at)-Pe,0)),Pe=Re.alloc(),Pe.h(0,0),a=ah(a),at=0;at<re;at++)We=E[at],We===oe||!We.visible&&We!==a||(se=We.margin,Je=se.right+se.left,rt=se.top+se.bottom,We.measure(ue,fe,0,0),se=We.measuredBounds,Je=Math.max(se.width+Je,0),se=Math.max(se.height+rt,0),Pe.h(Math.max(Je,Pe.width),Math.max(se,Pe.height)));if(re===1)b.width=Je,b.height=se,Re.free(Pe);else{switch(We=wv(oe),at=Pv(oe),re=E=0,at.x!==We.x&&at.y!==We.y&&(E=Pe.width/Math.abs(at.x-We.x),re=Pe.height/Math.abs(at.y-We.y)),Re.free(Pe),Pe=0,Fe!==null&&(Pe=Fe.strokeWidth*Fe.scale,Mv(Fe)===Ki&&(E=re=Math.max(E,re))),E+=Math.abs(We.offsetX)+Math.abs(at.offsetX)+Pe,re+=Math.abs(We.offsetY)+Math.abs(at.offsetY)+Pe,Fe=oe.stretch,Fe===Ir&&(Fe=zs(oe,!1)),Fe){case Zn:ee=z=0;break;case qn:isFinite(y)&&(E=y),isFinite(x)&&(re=x);break;case qi:isFinite(y)&&(E=y),ee=0;break;case mr:z=0,isFinite(x)&&(re=x)}oe.Uj(),oe.measure(E,re,z,ee),b.width=oe.measuredBounds.width+ve,b.height=oe.measuredBounds.height+xe}},xm.prototype.arrange=function(a,y){var x=y.length,E=a.Pb(),b=E.measuredBounds,z=ut.alloc();z.h(0,0,1,1);var ee=E.margin,re=ee.left;ee=ee.top;var oe=a.padding,se=oe.left;oe=oe.top,E.arrange(se+re,oe+ee,b.width,b.height);var ue=wv(E),fe=Pv(E),ve=ue.y*b.height+ue.offsetY,xe=fe.x*b.width+fe.offsetX;for(fe=fe.y*b.height+fe.offsetY,z.x=ue.x*b.width+ue.offsetX,z.y=ve,Bi(z,xe,fe,0,0),z.x+=re+se,z.y+=ee+oe,b=0;b<x;b++)re=y[b],re!==E&&(se=re.measuredBounds,ee=re.margin,oe=Math.max(se.width+ee.right+ee.left,0),ue=Math.max(se.height+ee.top+ee.bottom,0),ve=re.alignment,ve.Xb()&&(ve=a.defaultAlignment),ve.sb()||(ve=Mi),oe=z.width*ve.x+ve.offsetX-oe*ve.x+ee.left+z.x,ee=z.height*ve.y+ve.offsetY-ue*ve.y+ee.top+z.y,re.visible&&(Oi(z.x,z.y,z.width,z.height,oe,ee,se.width,se.height)?re.arrange(oe,ee,se.width,se.height):re.arrange(oe,ee,se.width,se.height,new ut(z.x,z.y,z.width,z.height))));ut.free(z)};function wm(){this.xa="Base",this.name="Table"}xt(wm,Ia),wm.prototype.measure=function(a,y,x,E,b){for(var z=E.length,ee=si(),re=si(),oe=0;oe<z;oe++){var se=E[oe],ue=se instanceof ni?se:null;if(ue!==null&&kh(ue)&&se.visible){re.push(ue);for(var fe=ue.O.s,ve=fe.length,xe=0;xe<ve;xe++){var Pe=fe[xe];ue.type===ni.TableRow?Pe.row=se.row:ue.type===ni.TableColumn&&(Pe.column=se.column),ee.push(Pe)}}else ee.push(se)}z=ee.length,z===0&&(a.Fb(0),a.Eb(0));for(var Fe=[],Je=0;Je<z;Je++){var We=ee[Je];We.visible&&(Na(We,!0),Ru(We,!0),Fe[We.row]||(Fe[We.row]=[]),Fe[We.row][We.column]||(Fe[We.row][We.column]=[]),Fe[We.row][We.column].push(We))}Pi(ee);var rt=si(),at=si(),ht=si(),bt={count:0},Jt={count:0},Ci=y,ji=x,Ti=a.rowDefs,ui=a.colDefs,In=null;z=Ti.length;for(var Tr=0;Tr<z;Tr++)In=Ti[Tr],In!==void 0&&(In.actual=0);z=ui.length;for(var Lr=0;Lr<z;Lr++)In=ui[Lr],In!==void 0&&(In.actual=0);for(var ho=Fe.length,Io=0,Wa=0;Wa<ho;Wa++)Fe[Wa]&&(Io=Math.max(Io,Fe[Wa].length));var Ka=Math.min(a.topIndex,ho-1),xs=Math.min(a.leftIndex,Io-1),Ha=0;ho=Fe.length;for(var jh=ah(a),ba=0;ba<ho;ba++)if(Fe[ba]){Io=Fe[ba].length;var cu=a.Fb(ba);cu.actual=0;for(var ws=cu.oc=0;ws<Io;ws++)if(Fe[ba][ws]){var Wh=a.Eb(ws);rt[ws]===void 0&&(Wh.actual=0,Wh.oc=0,rt[ws]=!0);for(var gl=Fe[ba][ws],Zl=gl.length,il=0;il<Zl;il++){var Xs=gl[il];if(Xs.visible||Xs===jh){var Cd=1<Xs.rowSpan||1<Xs.columnSpan;Cd&&(ba<Ka||ws<xs||at.push(Xs));var fu=Xs.margin,ng=fu.right+fu.left,rl=fu.top+fu.bottom,Ps=su(Xs,cu,Wh,!1),Op=Xs.desiredSize,Xc=!isNaN(Op.height),Mu=!isNaN(Op.width)&&Xc;if(Cd||Ps===Zn||Mu||ba<Ka||ws<xs||(bt[ws]!==void 0||Ps!==qn&&Ps!==qi||(bt[ws]=-1,bt.count++),Jt[ba]!==void 0||Ps!==qn&&Ps!==mr||(Jt[ba]=-1,Jt.count++),ht.push(Xs)),Xs.measure(1/0,1/0,0,0),!(ba<Ka||ws<xs)){var _s=Xs.measuredBounds,oc=Math.max(_s.width+ng,0),ol=Math.max(_s.height+rl,0);if(Xs.rowSpan===1&&(Ps===Zn||Ps===qi)){In=a.Fb(ba);var Ed=In.Wc();Ha=Math.max(ol-In.actual,0),Ha+Ed>ji&&(Ha=Math.max(ji-Ed,0));var G0=In.oa===0;In.oc=In.oc+Ha,In.actual=In.oa+Ha,ji=Math.max(ji-(Ha+(G0?Ed:0)),0)}if(Xs.columnSpan===1&&(Ps===Zn||Ps===mr)){In=a.Eb(ws);var Ip=In.Wc();Ha=Math.max(oc-In.actual,0),Ha+Ip>Ci&&(Ha=Math.max(Ci-Ip,0));var Gy=In.oa===0;In.oc=In.oc+Ha,In.actual=In.oa+Ha,Ci=Math.max(Ci-(Ha+(Gy?Ip:0)),0)}Cd&&Xs.Uj()}}}}}Pi(rt);var Xu=0,uh=0;z=a.columnCount;for(var _c=0;_c<z;_c++){var Ad=ui[_c];Ad!==void 0&&(Xu+=isNaN(Ad.Hc)?Ad.oc:Ad.Hc,Ad.oc!==0&&(Xu+=Ad.Wc()))}z=a.rowCount;for(var ig=0;ig<z;ig++){var Ld=Ti[ig];Ld!==void 0&&(uh+=isNaN(Ld.Hc)?Ld.oc:Ld.Hc,Ld.oc!==0&&(uh+=Ld.Wc()))}Ci=Math.max(y-Xu,0);var _u=ji=Math.max(x-uh,0),Hh=Ci;z=ht.length;for(var Js=0;Js<z;Js++){var ku=ht[Js],K0=a.Fb(ku.row),hh=a.Eb(ku.column),rg=ku.measuredBounds,gu=ku.margin,ac=gu.right+gu.left,Fu=gu.top+gu.bottom;bt[ku.column]=hh.oc===0&&bt[ku.column]!==void 0?Math.max(rg.width+ac,bt[ku.column]):null,Jt[ku.row]=K0.oc===0&&Jt[ku.row]!==void 0?Math.max(rg.height+Fu,Jt[ku.row]):null}var Jc=0,og=0,iu;for(iu in Jt)iu!=="count"&&(Jc+=Jt[iu]);for(iu in bt)iu!=="count"&&(og+=bt[iu]);for(var es=Re.alloc(),Rp=0;Rp<z;Rp++){var Ts=ht[Rp];if(Ts.visible||Ts===jh){var Ma=a.Fb(Ts.row),Os=a.Eb(Ts.column),dh=0;isFinite(Os.width)?dh=Os.width:(isFinite(Ci)&&bt[Ts.column]!==null?og===0?dh=Os.actual+Ci:dh=bt[Ts.column]/og*Hh:bt[Ts.column]!==null?dh=Ci:dh=Os.actual||Ci,dh=Math.max(0,dh-Os.Wc()));var Zh=0;switch(isFinite(Ma.height)?Zh=Ma.height:(isFinite(ji)&&Jt[Ts.row]!==null?Jc===0?Zh=Ma.actual+ji:Zh=Jt[Ts.row]/Jc*_u:Jt[Ts.row]!==null?Zh=ji:Zh=Ma.actual||ji,Zh=Math.max(0,Zh-Ma.Wc())),es.h(Math.max(Os.minimum,Math.min(dh,Os.maximum)),Math.max(Ma.minimum,Math.min(Zh,Ma.maximum))),Ps=su(Ts,Ma,Os,!1),Ps){case qi:es.height=Math.max(es.height,Ma.actual+ji);break;case mr:es.width=Math.max(es.width,Os.actual+Ci)}var sc=Ts.margin,Ky=sc.right+sc.left,Y0=sc.top+sc.bottom;Ts.Uj(),Ts.measure(es.width,es.height,Os.minimum,Ma.minimum);var ag=Ts.measuredBounds,lc=Math.max(ag.width+Ky,0),Qc=Math.max(ag.height+Y0,0);isFinite(Ci)&&(lc=Math.min(lc,es.width)),isFinite(ji)&&(Qc=Math.min(Qc,es.height));var Qs=0;Qs=Ma.actual,Ma.actual=Math.max(Ma.actual,Qc),Ma.oc=Math.max(Ma.oc,Qc),Ha=Ma.actual-Qs,ji=Math.max(ji-Ha,0),Jt[Ts.row]===null&&(_u=Math.max(_u-Ha,0)),Qs=Os.actual,Os.actual=Math.max(Os.actual,lc),Os.oc=Math.max(Os.oc,lc),Ha=Os.actual-Qs,Ci=Math.max(Ci-Ha,0),bt[Ts.column]===null&&(Hh=Math.max(Hh-Ha,0))}}Pi(ht);var ch=Re.alloc(),pu=si(),Fl=si();if(z=at.length,z!==0){for(var bd=0;bd<ho;bd++)if(Fe[bd]){Io=Fe[bd].length;var sg=a.Fb(bd);pu[bd]=sg.actual;for(var Md=0;Md<Io;Md++)if(Fe[bd][Md]){var U0=a.Eb(Md);Fl[Md]=U0.actual}}}for(var lg=0;lg<z;lg++){var va=at[lg];if(va.visible||va===jh){var ru=a.Fb(va.row),Vl=a.Eb(va.column);switch(es.h(Math.max(Vl.minimum,Math.min(y,Vl.maximum)),Math.max(ru.minimum,Math.min(x,ru.maximum))),Ps=su(va,ru,Vl,!1),Ps){case qn:Fl[Vl.index]!==0&&(es.width=Math.min(es.width,Fl[Vl.index])),pu[ru.index]!==0&&(es.height=Math.min(es.height,pu[ru.index]));break;case qi:Fl[Vl.index]!==0&&(es.width=Math.min(es.width,Fl[Vl.index]));break;case mr:pu[ru.index]!==0&&(es.height=Math.min(es.height,pu[ru.index]))}isFinite(Vl.width)&&(es.width=Vl.width),isFinite(ru.height)&&(es.height=ru.height),ch.h(0,0);for(var X0=Vl.minimum,al=ru.minimum,Vh=1;Vh<va.rowSpan&&!(va.row+Vh>=a.rowCount);Vh++)In=a.Fb(va.row+Vh),Ha=0,Ha=Ps===qn||Ps===mr?Math.max(In.minimum,pu[va.row+Vh]===0?In.maximum:Math.min(pu[va.row+Vh],In.maximum)):Math.max(In.minimum,isNaN(In.Hc)?In.maximum:Math.min(In.Hc,In.maximum)),ch.height+=Ha,al+=In.minimum;for(var Gl=1;Gl<va.columnSpan&&!(va.column+Gl>=a.columnCount);Gl++)In=a.Eb(va.column+Gl),Ha=0,Ha=Ps===qn||Ps===qi?Math.max(In.minimum,Fl[va.column+Gl]===0?In.maximum:Math.min(Fl[va.column+Gl],In.maximum)):Math.max(In.minimum,isNaN(In.Hc)?In.maximum:Math.min(In.Hc,In.maximum)),ch.width+=Ha,X0+=In.minimum;es.width+=ch.width,es.height+=ch.height;var ug=va.margin,kd=ug.right+ug.left,zp=ug.top+ug.bottom;va.measure(es.width,es.height,X0,al);for(var hg=va.measuredBounds,Du=Math.max(hg.width+kd,0),uc=Math.max(hg.height+zp,0),Fd=0,dg=0;dg<va.rowSpan&&!(va.row+dg>=a.rowCount);dg++)In=a.Fb(va.row+dg),Fd+=In.total||0;if(Fd<uc){var Gh=uc-Fd,Ju=uc-Fd;if(va.spanAllocation!==null)for(var Kh=va.spanAllocation,fh=0;fh<va.rowSpan&&!(0>=Gh)&&!(va.row+fh>=a.rowCount);fh++){In=a.Fb(va.row+fh);var Yh=In.oa||0,hc=Kh(va,In,Ju);In.actual=Math.min(In.maximum,Yh+hc),In.oa!==Yh&&(Gh-=In.oa-Yh)}for(;0<Gh;){var mu=In.oa||0;if(isNaN(In.height)&&In.maximum>mu&&(In.actual=Math.min(In.maximum,mu+Gh),In.oa!==mu&&(Gh-=In.oa-mu)),In.index===0)break;In=a.Fb(In.index-1)}}for(var qc=0,Uh=0;Uh<va.columnSpan&&!(va.column+Uh>=a.columnCount);Uh++)In=a.Eb(va.column+Uh),qc+=In.total||0;if(qc<Du){var $c=Du-qc,Yy=Du-qc;if(va.spanAllocation!==null)for(var gh=va.spanAllocation,dc=0;dc<va.columnSpan&&!(0>=$c)&&!(va.column+dc>=a.columnCount);dc++){In=a.Eb(va.column+dc);var jp=In.oa||0,Uy=gh(va,In,Yy);In.actual=Math.min(In.maximum,jp+Uy),In.oa!==jp&&($c-=In.oa-jp)}for(;0<$c;){var _0=In.oa||0;if(isNaN(In.width)&&In.maximum>_0&&(In.actual=Math.min(In.maximum,_0+$c),In.oa!==_0&&($c-=In.oa-_0)),In.index===0)break;In=a.Eb(In.index-1)}}}}Pi(at),Re.free(ch),Re.free(es),pu!==void 0&&Pi(pu),Fl!==void 0&&Pi(Fl);var ef=0,tf=0,J0=a.desiredSize,Sx=a.maxSize;Ps=zs(a,!0);var Wp=uh=Xu=0,Hp=0;z=a.columnCount;for(var Q0=0;Q0<z;Q0++)ui[Q0]!==void 0&&(In=a.Eb(Q0),isFinite(In.width)?(Wp+=In.width,Wp+=In.Wc()):Dm(In)===qg?(Wp+=In.oa,Wp+=In.Wc()):In.oa!==0&&(Xu+=In.oa,Xu+=In.Wc()));isFinite(J0.width)?ef=Math.min(J0.width,Sx.width):ef=Ps!==Zn&&isFinite(y)?y:Xu,ef=Math.max(ef,a.minSize.width),ef=Math.max(ef-Wp,0);for(var aw=Xu===0?1:Math.max(ef/Xu,1),q0=0;q0<z;q0++)ui[q0]!==void 0&&(In=a.Eb(q0),isFinite(In.width)||Dm(In)===qg||(In.actual=In.oa*aw),In.position=b.width,In.oa!==0&&(b.width+=In.oa,b.width+=In.Wc()));z=a.rowCount;for(var $0=0;$0<z;$0++)Ti[$0]!==void 0&&(In=a.Fb($0),isFinite(In.height)?(Hp+=In.height,Hp+=In.Wc()):Dm(In)===qg?(Hp+=In.oa,Hp+=In.Wc()):In.oa!==0&&(uh+=In.oa,uh+=In.Wc()));isFinite(J0.height)?tf=Math.min(J0.height,Sx.height):tf=Ps!==Zn&&isFinite(x)?x:uh,tf=Math.max(tf,a.minSize.height),tf=Math.max(tf-Hp,0);for(var sw=uh===0?1:Math.max(tf/uh,1),ev=0;ev<z;ev++)Ti[ev]!==void 0&&(In=a.Fb(ev),isFinite(In.height)||Dm(In)===qg||(In.actual=In.oa*sw),In.position=b.height,In.oa!==0&&(b.height+=In.oa,b.height+=In.Wc()));z=re.length;for(var Xy=0;Xy<z;Xy++){var Zp=re[Xy],_y=0,Jy=0;Zp.type===ni.TableRow?(_y=b.width,In=a.Fb(Zp.row),Jy=In.actual):(In=a.Eb(Zp.column),_y=In.actual,Jy=b.height),Zp.measuredBounds.h(0,0,_y,Jy),Na(Zp,!1)}Pi(re),a.inRowsCols=Fe},wm.prototype.arrange=function(a,y,x){var E=y.length,b=a.padding,z=b.left;b=b.top;var ee=a.inRowsCols;if(ee!==null){for(var re,oe,se=ee.length,ue=0,fe=0;fe<se;fe++)ee[fe]&&(ue=Math.max(ue,ee[fe].length));oe=a.rowDefs,re=a.colDefs;var ve=fe=0,xe=Math.min(a.topIndex,se-1);if(0<oe.length){for(;xe!==se&&(oe[xe]===void 0||oe[xe].oa===0);)xe++;xe=Math.max(Math.min(xe,se-1),0),fe=-oe[xe].position}var Pe=Math.min(a.leftIndex,ue-1);if(0<re.length){for(;Pe!==ue&&(re[Pe]===void 0||re[Pe].oa===0);)Pe++;Pe=Math.max(Math.min(Pe,ue-1),0),ve=-re[Pe].position}for(var Fe=0,Je=0;Fe!==se&&oe[Fe]===void 0;)Fe++;for(;Je!==se&&re[Je]===void 0;)Je++;ue=a.part,a.Fb(Fe),a.Eb(Je);for(var We=0;We<y.length;We++){var rt=y[We];if(rt instanceof ni&&rt.visible&&kh(rt)){if(rt.type===ni.TableRow){re=a.Fb(rt.row);var at=a.Eb(Je)}else re=a.Fb(Fe),at=a.Eb(rt.column);oe=re.position+fe+b,re.oa!==0&&(oe+=re.Io(Math.max(Fe,xe))),re=at.position+ve+z,at.oa!==0&&(re+=at.Io(Math.max(Je,Pe))),at=rt.measuredBounds,rt.Uk(),rt.actualBounds.ka();var ht=rt.actualBounds,bt=ut.allocAt(ht.x,ht.y,ht.width,ht.height);ht.x=rt.type===ni.TableRow?z:re,ht.y=rt.type===ni.TableColumn?b:oe,ht.width=at.width,ht.height=at.height,rt.actualBounds.freeze(),Ru(rt,!1),oi(bt,ht)||ue===null||(ue.oh(),rt.Pn(ue)),ut.free(bt)}}for(We=Re.alloc(),rt=0;rt<se;rt++)if(ee[rt]){for(ue=ee[rt].length,at=a.Fb(rt),oe=at.position+fe+b,at.oa!==0&&(oe+=at.Io(Math.max(Fe,xe))),ht=0;ht<ue;ht++)if(ee[rt][ht]){bt=a.Eb(ht),re=bt.position+ve+z,bt.oa!==0&&(re+=bt.Io(Math.max(Je,Pe)));for(var Jt=ee[rt][ht],Ci=Jt.length,ji=0;ji<Ci;ji++){var Ti=Jt[ji],ui=Ti.measuredBounds;We.h(0,0);for(var In=1;In<Ti.rowSpan&&!(rt+In>=a.rowCount);In++){var Tr=a.Fb(rt+In);Tr.oa!==0&&(We.height+=Tr.total)}for(In=1;In<Ti.columnSpan&&!(ht+In>=a.columnCount);In++)Tr=a.Eb(ht+In),Tr.oa!==0&&(We.width+=Tr.total);var Lr=bt.oa+We.width,ho=at.oa+We.height;In=re,Tr=oe;var Io=Lr,Wa=ho,Ka=re,xs=oe,Ha=Lr,jh=ho;re+Lr>x.width&&(Ha=Math.max(x.width-re,0)),oe+ho>x.height&&(jh=Math.max(x.height-oe,0));var ba=Ti.alignment;if(ba.Xb()){ba=a.defaultAlignment,ba.sb()||(ba=Mi);var cu=ba.x,ws=ba.y,Wh=ba.offsetX;ba=ba.offsetY;var gl=bt.alignment,Zl=at.alignment;gl.sb()&&(cu=gl.x,Wh=gl.offsetX),Zl.sb()&&(ws=Zl.y,ba=Zl.offsetY)}else cu=ba.x,ws=ba.y,Wh=ba.offsetX,ba=ba.offsetY;(isNaN(cu)||isNaN(ws))&&(ws=cu=.5,ba=Wh=0),gl=ui.width,Zl=ui.height;var il=Ti.margin,Xs=il.left+il.right,Cd=il.top+il.bottom,fu=su(Ti,at,bt,!1);!isNaN(Ti.desiredSize.width)||fu!==qn&&fu!==qi||(gl=Math.max(Lr-Xs,0)),!isNaN(Ti.desiredSize.height)||fu!==qn&&fu!==mr||(Zl=Math.max(ho-Cd,0)),Lr=Ti.maxSize,ho=Ti.minSize,gl=Math.min(Lr.width,gl),Zl=Math.min(Lr.height,Zl),gl=Math.max(ho.width,gl),Zl=Math.max(ho.height,Zl),Lr=Zl+Cd,In+=Io*cu-(gl+Xs)*cu+Wh+il.left,Tr+=Wa*ws-Lr*ws+ba+il.top,Ti.visible&&(Oi(Ka,xs,Ha,jh,In,Tr,ui.width,ui.height)?Ti.arrange(In,Tr,gl,Zl):Ti.arrange(In,Tr,gl,Zl,new ut(Ka,xs,Ha,jh)))}}}for(Re.free(We),a=0;a<E;a++)x=y[a],z=x instanceof ni?x:null,z!==null&&kh(z)&&(z=x.actualBounds,x.naturalBounds.ka(),x.naturalBounds.h(0,0,z.width,z.height),x.naturalBounds.freeze())}};function Pm(){this.xa="Base"}xt(Pm,Ia),Pm.prototype.measure=function(){},Pm.prototype.arrange=function(){};function Cm(){this.xa="Base"}xt(Cm,Ia),Cm.prototype.measure=function(){},Cm.prototype.arrange=function(){};function Em(){this.xa="Base"}xt(Em,Ia),Em.prototype.measure=function(a,y,x,E,b,z,ee){1<E.length&&Ve("Viewbox Panel cannot contain more than one GraphObject."),E=E[0],E.Ca=1,E.Uj(),E.measure(1/0,1/0,z,ee);var re=E.measuredBounds,oe=E.margin,se=oe.right+oe.left;if(oe=oe.top+oe.bottom,isFinite(y)||isFinite(x)){var ue=E.scale,fe=re.width;re=re.height;var ve=Math.max(y-se,0),xe=Math.max(x-oe,0),Pe=1;a.viewboxStretch===Ki?fe!==0&&re!==0&&(Pe=Math.min(ve/fe,xe/re)):fe!==0&&re!==0&&(Pe=Math.max(ve/fe,xe/re)),Pe===0&&(Pe=1e-4),E.Ca*=Pe,ue!==E.scale&&(Na(E,!0),E.measure(1/0,1/0,z,ee))}re=E.measuredBounds,b.width=isFinite(y)?y:Math.max(re.width+se,0),b.height=isFinite(x)?x:Math.max(re.height+oe,0)},Em.prototype.arrange=function(a,y,x){y=y[0];var E=y.measuredBounds,b=y.margin,z=Math.max(E.width+(b.right+b.left),0);b=Math.max(E.height+(b.top+b.bottom),0);var ee=y.alignment;ee.Xb()&&(ee=a.defaultAlignment),ee.sb()||(ee=Mi),y.arrange(x.width*ee.x-z*ee.x+ee.offsetX,x.height*ee.y-b*ee.y+ee.offsetY,E.width,E.height)};function _g(){this.xa="Base"}xt(_g,Ia),_g.prototype.measure=function(){},_g.prototype.arrange=function(){},_g.prototype.gc=function(a,y,x){x=a.Df()*x.scale,0>=x&&(x=1);var E=a.gridCellSize,b=E.width;E=E.height;var z=a.naturalBounds,ee=a.actualBounds,re=z.width,oe=z.height,se=Math.ceil(re/b),ue=Math.ceil(oe/E),fe=a.gridOrigin,ve=fe.x;fe=fe.y,y.save(),y.beginPath(),y.rect(0,0,re,oe),y.clip(),y.Se();for(var xe=[],Pe=a.O.s,Fe=Pe.length,Je=0;Je<Fe;Je++){var We=Pe[Je],rt=[];if(xe.push(rt),We.visible){var at=We.interval;if(!(0>at)){We=Sv(We.figure);for(var ht=0;ht<Fe;ht++)if(ht!==Je){var bt=Pe[ht];bt.visible&&Sv(bt.figure)===We&&(bt=bt.interval,bt>at&&rt.push(bt))}}}}for(Pe=a.O.s,Fe=Pe.length,Je=0;Je<Fe;Je++){var Jt=Pe[Je];if(Jt.visible&&(rt=Jt.interval||1,We=Math.abs(rt),!(2>b*We*x))){if(at=Jt.segmentIndex,(!isFinite(at)||isNaN(at))&&(at=0),0>at&&(at=We-Math.min(-at,We)),at=Math.round(at%We),We=Jt.opacity,ht=1,We!==1){if(We===0)continue;ht=y.globalAlpha,y.globalAlpha=ht*We}bt=xe[Je];var Ci=!1,ji=Jt.strokeDashArray;if(ji!==null&&(Ci=!0,y.js(ji,Jt.strokeDashOffset)),Jt.figure==="LineV"&&Jt.stroke!==null&&0<Jt.strokeWidth){for(y.lineWidth=Jt.strokeWidth,ma(a,y,Jt.stroke,!1,!1,z,ee),y.beginPath(),ji=Jt=Math.floor((ve-b)/b);ji<=Jt+se;ji++){var Ti=ji*b+ve;0<=Ti&&Ti<=re&&Am(ji,rt,at,bt)&&(y.moveTo(Ti,0),y.lineTo(Ti,oe))}y.stroke(),y.Se()}else if(Jt.figure==="LineH"&&Jt.stroke!==null&&0<Jt.strokeWidth){for(y.lineWidth=Jt.strokeWidth,ma(a,y,Jt.stroke,!1,!1,z,ee),y.beginPath(),ji=Jt=Math.floor((fe-E)/E);ji<=Jt+ue;ji++)Ti=ji*E+fe,0<=Ti&&Ti<=oe&&Am(ji,rt,at,bt)&&(y.moveTo(0,Ti),y.lineTo(re,Ti));y.stroke(),y.Se()}else if(Jt.figure==="BarV"&&Jt.fill!==null)for(ma(a,y,Jt.fill,!0,!1,z,ee),Jt=Jt.width,isNaN(Jt)&&(Jt=b),Ti=ji=Math.floor((ve-b)/b);Ti<=ji+se;Ti++){var ui=Ti*b+ve;0<=ui+Jt&&ui<=re&&Am(Ti,rt,at,bt)&&y.fillRect(ui,0,Jt,oe)}else if(Jt.figure==="BarH"&&Jt.fill!==null)for(ma(a,y,Jt.fill,!0,!1,z,ee),Jt=Jt.height,isNaN(Jt)&&(Jt=E),Ti=ji=Math.floor((fe-E)/E);Ti<=ji+ue;Ti++)ui=Ti*E+fe,0<=ui+Jt&&ui<=oe&&Am(Ti,rt,at,bt)&&y.fillRect(0,ui,re,Jt);Ci&&y.fs(),We!==1&&(y.globalAlpha=ht)}}y.restore(),y.Vc(!1)};function Am(a,y,x,E){if(0>y)return a%y===x;if(a%y!==x)return!1;y=E.length;for(var b=0;b<y;b++)if(a%E[b]===x)return!1;return!0}function Lm(){this.xa="Base"}xt(Lm,Ia),Lm.prototype.measure=function(a,y,x,E,b){var z=E.length;if(a instanceof uo||a instanceof hi){var ee=null,re=null;if(a instanceof hi&&(ee=a),a instanceof uo&&(re=a,ee=re.adornedPart,a.j===null&&(a.j=[])),ee instanceof hi){var oe=ee;if(z===0)Qn(a.naturalBounds,0,0),a.measuredBounds.h(0,0,0,0);else{var se=a instanceof uo?null:ee.path;y=ee.routeBounds,x=a.jg,x.h(0,0,y.width,y.height);var ue=oe.points,fe=ee.pointsCount;re!==null?re.Ul(!1):ee!==null&&ee.Ul(!1),re=y.width;var ve=y.height,xe=a.j;if(xe.length=0,se!==null){l1(a,re,ve,se);var Pe=se.measuredBounds;x.ed(Pe),xe.push(Pe)}Pe=vi.alloc();for(var Fe=Te.alloc(),Je=Te.alloc(),We=0;We<z;We++){var rt=E[We];if(rt!==se)if(rt.isPanelMain&&rt instanceof Wr){l1(a,re,ve,rt);var at=rt.measuredBounds;x.ed(at),xe.push(at)}else if(2>fe)rt.measure(1/0,1/0,0,0),at=rt.measuredBounds,x.ed(at),xe.push(at);else{var ht=rt.segmentIndex,bt=rt.segmentFraction,Jt=rt.alignmentFocus;Jt.Mc()&&(Jt=Mi);var Ci=rt.segmentOrientation,ji=rt.segmentOffset;if(isNaN(ht)){var Ti=oe.ua;at=si(),Ti.Qu(bt,at);var ui=Te.allocAt(at[0],at[1]);if(ui.add(oe.i(0)),Ti.type===zn.j?ui.offset(-Ti.startX,-Ti.startY):(Ti=Ti.figures.first(),Ti!==null&&ui.offset(-Ti.startX,-Ti.startY)),Ti=at[2],Ci!==ks){var In=oe.computeAngle(rt,Ci,Ti);rt.Kb=In}In=ui.x-y.x;var Tr=ui.y-y.y;Te.free(ui),Pi(at)}else if(ht<-fe||ht>=fe)at=Te.alloc(),oe.vg(),oe.computeMidPoint(at),Ti=oe.midAngle,Ci!==ks&&(In=oe.computeAngle(rt,Ci,Ti),rt.Kb=In),In=at.x-y.x,Tr=at.y-y.y,Te.free(at);else{if(In=0,0<=ht?(Tr=ue.M(ht),at=ht<fe-1?ue.M(ht+1):Tr):(In=fe+ht,Tr=ue.M(In),at=0<In?ue.M(In-1):Tr),Tr.Xa(at)){0<=ht?(Ti=0<ht?ue.M(ht-1):Tr,In=ht<fe-2?ue.M(ht+2):at):(Ti=In<fe-1?ue.M(In+1):Tr,In=1<In?ue.M(In-2):at),ui=Ti.Bf(Tr);var Lr=at.Bf(In);Ti=ui>Lr+10?0<=ht?Ti.ab(Tr):Tr.ab(Ti):Lr>ui+10?0<=ht?at.ab(In):In.ab(at):0<=ht?Ti.ab(In):In.ab(Ti)}else Ti=0<=ht?Tr.ab(at):at.ab(Tr);Ci!==ks&&(In=oe.computeAngle(rt,Ci,Ti),rt.Kb=In),In=Tr.x+(at.x-Tr.x)*bt-y.x,Tr=Tr.y+(at.y-Tr.y)*bt-y.y}rt.measure(1/0,1/0,0,0),at=rt.measuredBounds,ui=rt.naturalBounds;var ho=0;rt instanceof Wr&&(ho=rt.strokeWidth),Lr=ui.width+ho;var Io=ui.height+ho;Pe.reset(),Pe.translate(-at.x,-at.y),Pe.scale(rt.scale,rt.scale),Pe.rotate(Ci===ks?rt.angle:Ti,Lr/2,Io/2),Ci!==lp&&Ci!==hp||Pe.rotate(90,Lr/2,Io/2),Ci!==up&&Ci!==dp||Pe.rotate(-90,Lr/2,Io/2),Ci===n0&&(45<Ti&&135>Ti||225<Ti&&315>Ti)&&Pe.rotate(-Ti,Lr/2,Io/2),ui=new ut(0,0,Lr,Io),Fe.xi(ui,Jt),Pe.Ga(Fe),Jt=-Fe.x+ho/2*rt.scale,rt=-Fe.y+ho/2*rt.scale,Je.assign(ji),ho=isNaN(ji.x);var Wa=isNaN(ji.y);if(ho||Wa){Lr=Lr/2+3,Io=Io/2+3;var Ka=45<=Ti&&135>=Ti,xs=225<=Ti&&315>=Ti;Ci===ks&&(Ka||xs)?(Je.x=Wa?Lr:ji.y,Je.y=ho?Io:ji.x,Ka?0<=ht||isNaN(ht)&&.5>bt||!ho||(Je.y=-Io):xs&&((0<=ht||isNaN(ht)&&.5>bt)&&ho&&(Je.y=-Io),Wa&&(Je.x=-Lr))):(ho&&(Je.x=0<=ht||isNaN(ht)&&.5>bt?Lr:-Lr),Wa&&(Je.y=-Io),Je.rotate(Ti))}else Je.rotate(Ti);In+=Je.x,Tr+=Je.y,ui.set(at),ui.h(In+Jt,Tr+rt,at.width,at.height),xe.push(ui),x.ed(ui)}}if(ee!==null)for(E=ee.labelNodes;E.next();)E.value.measure(1/0,1/0);a.jg=x,a.position.h(y.x+x.x,y.y+x.y),Qn(b,x.width||0,x.height||0),vi.free(Pe),Te.free(Fe),Te.free(Je)}}}},Lm.prototype.arrange=function(a,y){var x=y.length;if(a instanceof uo||a instanceof hi){var E=a,b=null;a instanceof uo&&(b=a,E=b.adornedPart);var z=a instanceof uo?null:E.path,ee=a.j;if(ee.length!==0){var re=0;if(z!==null&&re<ee.length){var oe=ee[re];re++,z.arrange(oe.x-a.jg.x,oe.y-a.jg.y,oe.width,oe.height)}for(oe=0;oe<x;oe++){var se=y[oe];if(se!==z&&re<ee.length){var ue=ee[re];re++,se.arrange(ue.x-a.jg.x,ue.y-a.jg.y,ue.width,ue.height)}}}if(y=E.points,x=y.count,2<=x&&a instanceof hi)for(z=a.labelNodes;z.next();){var fe=a;ee=z.value,re=ee.segmentIndex,oe=ee.segmentFraction;var ve=ee.alignmentFocus;if(se=ee.segmentOrientation,ue=ee.segmentOffset,isNaN(re)){var xe=fe.ua,Pe=si();xe.Qu(oe,Pe);var Fe=Te.allocAt(Pe[0],Pe[1]);Fe.add(fe.i(0)),xe.type===zn.j||(xe=xe.figures.first()),Fe.offset(-xe.startX,-xe.startY),xe=Pe[2],se!==ks&&(fe=fe.computeAngle(ee,se,xe),ee.angle=fe),fe=Fe.x;var Je=Fe.y;Te.free(Fe),Pi(Pe)}else if(re<-x||re>=x)Pe=Te.alloc(),xe=fe,Je=Pe,xe.vg(),xe.computeMidPoint(Je),xe=fe.midAngle,se!==ks&&(fe=fe.computeAngle(ee,se,xe),ee.angle=fe),fe=Pe.x,Je=Pe.y,Te.free(Pe);else{if(Fe=0,0<=re?(Pe=y.s[re],Je=re<x-1?y.s[re+1]:Pe):(Fe=x+re,Pe=y.s[Fe],Je=0<Fe?y.s[Fe-1]:Pe),Pe.Xa(Je)){0<=re?(xe=0<re?y.s[re-1]:Pe,Fe=re<x-2?y.s[re+2]:Je):(xe=Fe<x-1?y.s[Fe+1]:Pe,Fe=1<Fe?y.s[Fe-2]:Je);var We=xe.Bf(Pe),rt=Je.Bf(Fe);xe=We>rt+10?0<=re?xe.ab(Pe):Pe.ab(xe):rt>We+10?0<=re?Je.ab(Fe):Fe.ab(Je):0<=re?xe.ab(Fe):Fe.ab(xe)}else xe=0<=re?Pe.ab(Je):Je.ab(Pe);se!==ks&&(fe=fe.computeAngle(ee,se,xe),ee.angle=fe),fe=Pe.x+(Je.x-Pe.x)*oe,Je=Pe.y+(Je.y-Pe.y)*oe}if(ve.ys())ee.location=new Te(fe,Je);else{ve.Mc()&&(ve=Mi),Pe=vi.alloc(),Pe.reset(),Pe.scale(ee.scale,ee.scale),Pe.rotate(ee.angle,0,0);var at=ee.naturalBounds;Fe=ut.allocAt(0,0,at.width,at.height),We=Te.alloc(),We.xi(Fe,ve),Pe.Ga(We),ve=-We.x,rt=-We.y;var ht=at.width,bt=at.height;at=Te.alloc(),at.assign(ue);var Jt=isNaN(ue.x),Ci=isNaN(ue.y);if(Jt||Ci){ht=ht/2+3,bt=bt/2+3;var ji=45<=xe&&135>=xe,Ti=225<=xe&&315>=xe;se===ks&&(ji||Ti)?(at.x=Ci?ht:ue.y,at.y=Jt?bt:ue.x,ji?0<=re||isNaN(re)&&.5>oe||!Jt||(at.y=-bt):Ti&&((0<=re||isNaN(re)&&.5>oe)&&Jt&&(at.y=-bt),Ci&&(at.x=-ht))):(Jt&&(at.x=0<=re||isNaN(re)&&.5>oe?ht:-ht),Ci&&(at.y=-bt),at.rotate(xe))}else at.rotate(xe);fe+=at.x,Je+=at.y,Pe.pp(Fe),ve+=Fe.x,rt+=Fe.y,re=Te.allocAt(fe+ve,Je+rt),ee.move(re),Te.free(re),Te.free(at),Te.free(We),ut.free(Fe),vi.free(Pe)}}b!==null?b.Ul(!1):E.Ul(!1),E=R1(a),a.location.h(a.position.x+E.x,a.position.y+E.y),Te.free(E)}};function l1(a,y,x,E){if(hl(E)!==!1){var b=E.strokeWidth;b===0&&a instanceof uo&&a.type===ni.Link&&a.adornedObject instanceof Wr&&(b=a.adornedObject.strokeWidth),b*=E.Ca,a instanceof hi&&a.ua!==null?(a=a.geometry.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):a instanceof uo&&a.adornedPart.ua!==null?(a=a.adornedPart.ua.bounds,E.Ge(a.x-b/2,a.y-b/2,a.width+b,a.height+b)):E.Ge(-(b/2),-(b/2),y+b,x+b),b=E.desiredSize,b.w()||E.ua===null?E.dc.h(0,0,b.width,b.height):E.dc.assign(E.ua.bounds),Na(E,!1)}}function Jg(){this.xa="Base"}xt(Jg,Ia),Jg.prototype.measure=function(a,y,x,E,b,z,ee){var re=a.Pb();a.graduatedBounds=[];var oe=re.margin,se=oe.right+oe.left,ue=oe.top+oe.bottom;re.measure(y,x,z,ee);var fe=re.measuredBounds,ve=new ut(-oe.left,-oe.top,Math.max(fe.width+se,0),Math.max(fe.height+ue,0));a.graduatedBounds.push(ve),b.assign(ve);for(var xe=re.geometry,Pe=re.strokeWidth,Fe=xe.flattenedSegments,Je=xe.flattenedLengths,We=xe.flattenedTotalLength,rt=Fe.length,at=0,ht=0,bt=si(),Jt=0;Jt<rt;Jt++){var Ci=Fe[Jt],ji=[];ht=at=0;for(var Ti=Ci.length,ui=0;ui<Ti;ui+=2){var In=Ci[ui],Tr=Ci[ui+1];if(ui!==0){var Lr=180*Math.atan2(Tr-ht,In-at)/Math.PI;0>Lr&&(Lr+=360),ji.push(Lr)}at=In,ht=Tr}bt.push(ji)}if(a.graduatedIntervals===null){for(var ho=[],Io=a.O.s,Wa=Io.length,Ka=0;Ka<Wa;Ka++){var xs=Io[Ka],Ha=[];if(ho.push(Ha),xs.visible){var jh=xs.interval;if(!(0>jh)){for(var ba=0;ba<Wa;ba++)if(ba!==Ka){var cu=Io[ba];if(cu.visible&&xs.constructor===cu.constructor){var ws=cu.interval;ws>jh&&Ha.push(ws)}}}}}a.graduatedIntervals=ho}var Wh=a.graduatedIntervals,gl=a.O.s,Zl=gl.length,il=0,Xs=0,Cd=We;a.graduatedMarks=[];for(var fu,ng=0;ng<Zl;ng++){var rl=gl[ng];if(fu=[],rl.visible&&rl!==re){var Ps=Math.abs(rl.interval),Op=a.graduatedTickUnit;if(!(2>Op*Ps*We/a.graduatedRange&&rl.graduatedSkip===null)){var Xc=Je[0][0],Mu=0,_s=0;Xs=We*rl.graduatedStart-1e-4,Cd=We*rl.graduatedEnd+1e-4;var oc=Op*Ps,ol=a.graduatedTickBase;if(ol<a.graduatedMin){var Ed=(a.graduatedMin-ol)/oc;Ed=Ed%1===0?Ed:Math.floor(Ed+1),ol+=Ed*oc}else ol>a.graduatedMin+oc&&(ol-=Math.floor((ol-a.graduatedMin)/oc)*oc);for(var G0=Wh[ng],Ip=ol,Gy=1e-6*a.graduatedMax,Xu=1;ol<=a.graduatedMax+Gy;Xu++){e:{for(var uh=G0.length,_c=0;_c<uh;_c++){var Ad=(ol-a.graduatedTickBase)%(G0[_c]*a.graduatedTickUnit),ig=1e-6*a.graduatedTickUnit;if(Ad<ig&&Ad>-ig){var Ld=!1;break e}}Ld=!0}if(Ld&&(ol>a.graduatedMax&&(ol=a.graduatedMax),rl.graduatedSkip===null||rl instanceof jo&&!rl.graduatedSkip(ol,rl)||rl instanceof Wr&&!rl.graduatedSkip(ol,rl))&&(il=(ol-a.graduatedMin)*We/a.graduatedRange,il>We&&(il=We),Xs<=il&&il<=Cd)){for(var _u=bt[Mu][_s],Hh=Je[Mu][_s];Mu<Je.length;){for(;il>Xc&&_s<Je[Mu].length-1;)_s++,_u=bt[Mu][_s],Hh=Je[Mu][_s],Xc+=Hh;if(il<=Xc)break;Mu++,_s=0,_u=bt[Mu][_s],Hh=Je[Mu][_s],Xc+=Hh}var Js=Fe[Mu],ku=Js[2*_s],K0=Js[2*_s+1],hh=(il-(Xc-Hh))/Hh,rg=new Te(ku+(Js[2*_s+2]-ku)*hh+Pe/2-xe.bounds.x,K0+(Js[2*_s+3]-K0)*hh+Pe/2-xe.bounds.y);rg.scale(re.scale,re.scale);e:{var gu=_u,ac=bt[Mu];if(!(.5005>hh&&.4995<hh)){var Fu=gu;if(.5>hh?0<_s?Fu=ac[_s-1]:pt.$(Js[0],Js[Js.length-2])&&pt.$(Js[1],Js[Js.length-1])&&(Fu=ac[ac.length-1]):.5<hh&&(_s+1<ac.length?Fu=ac[_s+1]:pt.$(Js[0],Js[Js.length-2])&&pt.$(Js[1],Js[Js.length-1])&&(Fu=ac[0])),gu!==Fu){var Jc=Math.abs(gu-Fu);if(180<Jc&&(gu<Fu?gu+=360:Fu+=360,Jc=Math.abs(gu-Fu)),5e-4>hh||.9995<hh){_u=(gu+Fu)/2%360;break e}if(10>Jc){var og=1-Math.abs(.5-hh);_u=(gu*og+Fu*(1-og))%360;break e}}}_u=gu}if(rl instanceof jo){var iu="";rl.graduatedFunction!==null?(iu=rl.graduatedFunction(ol,rl),iu=iu!=null?iu.toString():""):iu=(+ol.toFixed(2)).toString(),iu!==""&&fu.push({$l:rg,angle:_u,text:iu})}else fu.push({$l:rg,angle:_u})}ol=Ip+Xu*oc}}}a.graduatedMarks.push(fu)}Pi(bt);var es=a.graduatedMarks;if(es!==null)for(var Rp=E.length,Ts=0;Ts<Rp;Ts++){var Ma=E[Ts],Os=es[Ts];if(Ma.visible&&Ma!==re&&Os.length!==0){if(Ma instanceof Wr){var dh=a,Zh=b,sc=Ma.alignmentFocus;sc.Mc()&&(sc=lr);var Ky=Ma.angle;Ma.Kb=0,Ma.measure(1/0,1/0,0,0),Ma.Kb=Ky;var Y0=Ma.measuredBounds,ag=Y0.width,lc=Y0.height,Qc=ut.allocAt(0,0,ag,lc),Qs=Te.alloc();Qs.xi(Qc,sc),ut.free(Qc);for(var ch=-Qs.x,pu=-Qs.y,Fl=new ut,bd=Os.length,sg=0;sg<bd;sg++)for(var Md=Os[sg],U0=Md.$l.x,lg=Md.$l.y,va=Md.angle,ru=0;4>ru;ru++){switch(ru){case 0:Qs.h(ch,pu);break;case 1:Qs.h(ch+ag,pu);break;case 2:Qs.h(ch,pu+lc);break;case 3:Qs.h(ch+ag,pu+lc)}Qs.rotate(va+Ma.angle),Qs.offset(U0,lg),sg===0&&ru===0?Fl.h(Qs.x,Qs.y,0,0):Fl.Ye(Qs),Qs.offset(-U0,-lg),Qs.rotate(-va-Ma.angle)}Te.free(Qs),dh.graduatedBounds!==null&&dh.graduatedBounds.push(Fl),Bi(Zh,Fl.x,Fl.y,Fl.width,Fl.height)}else if(Ma instanceof jo){var Vl=a,X0=b;Vl.temporaryTextBlock===null&&(Vl.temporaryTextBlock=new jo);var al=Vl.temporaryTextBlock;C1(al,Ma);var Vh=Ma.alignmentFocus;Vh.Mc()&&(Vh=lr);for(var Gl=Ma.segmentOrientation,ug=Ma.segmentOffset,kd=new ut,zp=0,hg=0,Du=0,uc=0,Fd=0,dg=Os.length,Gh=0;Gh<dg;Gh++){var Ju=Os[Gh];zp=Ju.$l.x,hg=Ju.$l.y,Du=Ju.angle,Fd=uc=Ma.angle,Gl!==ks&&(Fd=Gl===sp||Gl===t0?Du+Ma.angle:Du,uc=hi.computeAngle(Gl,Fd)),al.Kb=uc,al.text=Ju.text||"",al.measure(1/0,1/0,0,0);var Kh=al.measuredBounds,fh=al.naturalBounds,Yh=fh.width,hc=fh.height,mu=vi.alloc();mu.reset(),mu.translate(-Kh.x,-Kh.y),mu.scale(al.scale,al.scale),mu.rotate(Fd,Yh/2,hc/2),Gl!==lp&&Gl!==hp||mu.rotate(90,Yh/2,hc/2),Gl!==up&&Gl!==dp||mu.rotate(-90,Yh/2,hc/2),Gl===n0&&(45<Du&&135>Du||225<Du&&315>Du)&&mu.rotate(-Du,Yh/2,hc/2);var qc=ut.allocAt(0,0,Yh,hc),Uh=Te.alloc();Uh.xi(qc,Vh),mu.Ga(Uh);var $c=-Uh.x,Yy=-Uh.y,gh=Te.alloc();gh.assign(ug),isNaN(gh.x)&&(gh.x=Yh/2+3),isNaN(gh.y)&&(gh.y=-(hc/2+3)),gh.rotate(Du),zp+=gh.x+$c,hg+=gh.y+Yy;var dc=new ut(zp,hg,Kh.width,Kh.height),jp=new ut(Kh.x,Kh.y,Kh.width,Kh.height),Uy=new ut(fh.x,fh.y,fh.width,fh.height);Ju.Sz=uc,Ju.lineCount=al.lineCount,Ju.lines=[al.Cb,al.Ih,al.df,al.Le,al.Qc,al.Qb,al.ze],Ju.actualBounds=dc,Ju.measuredBounds=jp,Ju.naturalBounds=Uy,Gh===0?kd.assign(dc):kd.ed(dc),Te.free(gh),Te.free(Uh),ut.free(qc),vi.free(mu)}Vl.graduatedBounds!==null&&Vl.graduatedBounds.push(kd),Bi(X0,kd.x,kd.y,kd.width,kd.height)}Na(Ma,!1)}}},Jg.prototype.arrange=function(a,y,x){if(a.graduatedBounds!==null){var E=a.Pb(),b=a.graduatedMarks;if(b!==null){var z=a.graduatedBounds,ee=0,re=z[ee];ee++,E!==null&&E.arrange(re.x-x.x,re.y-x.y,re.width,re.height);for(var oe=y.length,se=0;se<oe;se++){var ue=y[se];re=b[se],ue.visible&&ue!==E&&re.length!==0&&(re=z[ee],ee++,ue.arrange(re.x-x.x,re.y-x.y,re.width,re.height))}a.graduatedBounds=null}}},Jg.prototype.gc=function(a,y,x){var E=x.$i;x.$i=!0;var b=a.naturalBounds,z=b.width,ee=b.height;b=y instanceof el,y.save(),y.beginPath(),y.rect(-1,-1,z+1,ee+1),y.clip(),y.Se(),z=a.Pb(),z.gc(y,x),ee=a.Df()*x.scale,0>=ee&&(ee=1);for(var re=z.actualBounds,oe=a.O.s,se=a.graduatedMarks,ue=oe.length,fe=0;fe<ue;fe++){var ve=oe[fe],xe=se[fe],Pe=xe.length;if(ve.visible&&ve!==z&&xe.length!==0){if(ve instanceof Wr){if(!(2>a.graduatedTickUnit*ve.interval*z.geometry.flattenedTotalLength/a.graduatedRange*ee&&ve.graduatedSkip===null)){var Fe=ve.measuredBounds,Je=ve.strokeWidth*ve.scale,We=ve.alignmentFocus;We.Mc()&&(We=lr);for(var rt=0;rt<Pe;rt++){var at=xe[rt].$l,ht=xe[rt].angle,bt=We,Jt=ve.Ab;Jt.reset(),Jt.translate(at.x+re.x,at.y+re.y),Jt.rotate(ht+ve.angle,0,0),Jt.translate(-Fe.width*bt.x+bt.offsetX+Je/2,-Fe.height*bt.y+bt.offsetY+Je/2),Jt.scale(ve.scale,ve.scale),Rl(ve,!1),ve.wh.set(ve.Ab),ve.Kk=ve.scale,Cl(ve,!1),ve.gc(y,x),b&&(a.svg.appendChild(ve.svg),ve.svg=null),ve.Ab.reset()}}}else if(ve instanceof jo)for(a.temporaryTextBlock===null&&(a.temporaryTextBlock=new jo),Fe=a.temporaryTextBlock,C1(Fe,ve),Je=0;Je<Pe;Je++)We=xe[Je],We.actualBounds&&We.measuredBounds&&We.naturalBounds&&(Fe.ec=We.text||"",Fe.Kb=We.Sz||0,Fe.Gc=We.lineCount||0,rt=We.lines,rt!==void 0&&(Fe.Cb=rt[0],Fe.Ih=rt[1],Fe.df=rt[2],Fe.Le=rt[3],Fe.Qc=rt[4],Fe.Qb=rt[5],Fe.ze=rt[6]),We.naturalBounds&&(Fe.dc=We.naturalBounds),We.actualBounds&&(rt=We.actualBounds,Fe.arrange(rt.x,rt.y,rt.width,rt.height)),rt=We.actualBounds,Fe.arrange(rt.x,rt.y,rt.width,rt.height),at=We.measuredBounds,We=We.naturalBounds,ht=Fe.Ab,ht.reset(),ht.translate(rt.x+re.x,rt.y+re.y),ht.translate(-at.x,-at.y),Fe.no(ht,We.x,We.y,We.width,We.height),Rl(Fe,!1),Fe.wh.set(Fe.Ab),Fe.Kk=Fe.scale,Cl(Fe,!1),Fe.Ng=ve.part,Fe.Me=ve.panel,Fe.gc(y,x),Fe.Me=null,Fe.Ng=null,b&&(a.svg.appendChild(Fe.svg),Fe.svg=null))}}x.$i=E,y.restore(),y.Vc(!0)};function ni(a,y){if(kt.call(this),this.na=null,a===void 0)this.na=ni.Position;else if(typeof a=="string"){var x=Ql.I(a);x!==null&&(this.na=x)}else a instanceof Ia?this.na=a:a&&(this.na=ni.Position,y=a);this.na===null&&Ve("Panel type not specified or PanelLayout not loaded: "+a),this.l=this.l|4194304|(this.na===ni.Grid?1048576:0),this.O=new cn,this.yb=Rr,this.Tm=Lo,this.Uf=Ir,this.$g=null,this.$e="",this.jg=new ut(NaN,NaN,NaN,NaN),this.T=this.F=null,this.xo=Ki,this.jn=tn,this.kn=He,this.ub=this.ra=null,this.zn=NaN,this.ge=this.Hh=null,y&&Object.assign(this,y)}xt(ni,kt),ni.prototype.cloneProtected=function(a){kt.prototype.cloneProtected.call(this,a),a.na=this.na,a.yb=this.yb.J(),a.Tm=this.Tm.J(),a.Uf=this.Uf,a.$e=this.$e,a.jg.assign(this.jg),this.T!==null&&(a.T=this.T.copy(a)),a.xo=this.xo,a.jn=this.jn.J(),a.kn=this.kn.J(),this.ra!==null&&(a.ra=this.ra.copy()),a.ub=this.ub,a.zn=this.zn,a.Hh=this.Hh},ni.prototype.Af=function(a){kt.prototype.Af.call(this,a),a.O=this.O;for(var y=a.O.s,x=y.length,E=0;E<x;E++)y[E].Me=a;a.$g=null},ni.prototype.copy=function(){var a=kt.prototype.copy.call(this);if(a!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].copy();b.wi(a),b.Ng=null;var z=a.O,ee=z.count;if(z.Gb(ee,b),z=a.part,z!==null){z.Rh=null,b.portId!==null&&z instanceof Li&&(z.Te=!0);var re=a.diagram;re!==null&&re.undoManager.isUndoingRedoing||z.cb($o,"elements",a,null,b,null,ee)}}return a}return null},Ce=ni.prototype,Ce.toString=function(){return"Panel("+this.type.name+")#"+Nr(this)},Ce.Pn=function(a){kt.prototype.Pn.call(this,a);for(var y=this.O.s,x=y.length,E=0;E<x;E++)y[E].Pn(a)},Ce.hh=function(a,y){if(this.na===ni.Grid)a.yc(),this.na.gc(this,a,y);else if(this.na===ni.Graduated)a.yc(),this.na.gc(this,a,y);else{if(this.na===ni.Table)if(a.yc(),a instanceof el){var x=a.yd;a.yd=fm(a,"gojs-ts"),yv(this,a),a.nh.pop(),a.yd=x}else yv(this,a);(x=this.isClipping&&this.na===ni.Spot)&&a.save();for(var E=this.Pb(),b=this.O.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x&&re===E&&(a.clipInsteadOfFill=!0),re.gc(a,y),x&&re===E&&(a.clipInsteadOfFill=!1)}x&&(a.restore(),a.Vc(!0))}};function yv(a,y){y.lineCap="butt";var x=0<a.rowCount?a.rowDefs:null,E=0<a.columnCount?a.colDefs:null;x!==null&&bm(a,y,!0,x,!0),E!==null&&bm(a,y,!1,E,!0),x!==null&&u1(a,y,!0,x),E!==null&&u1(a,y,!1,E),x!==null&&bm(a,y,!0,x,!1),E!==null&&bm(a,y,!1,E,!1)}function u1(a,y,x,E){for(var b=E.length,z=a.actualBounds,ee=a.naturalBounds,re=!0,oe=0;oe<b;oe++){var se=E[oe];if(se!==void 0&&se.actual!==0)if(re)re=!1;else{if(x){if(se.position>ee.height)continue}else if(se.position>ee.width)continue;var ue=se.separatorStrokeWidth;isNaN(ue)&&(ue=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var fe=se.separatorStroke;if(fe===null&&(fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),ue!==0&&fe!==null){ma(a,y,fe,!1,!1,ee,z),fe=!1;var ve=se.separatorDashArray;ve===null&&(ve=x?a.defaultRowSeparatorDashArray:a.defaultColumnSeparatorDashArray),ve!==null&&(fe=!0,y.js(ve,0)),y.beginPath(),ve=se.position+ue,x?ve>ee.height&&(ue-=ve-ee.height):ve>ee.width&&(ue-=ve-ee.width),se=se.position+ue/2,y.lineWidth=ue,ue=a.yb,x?(se+=ue.top,ve=ee.width-ue.right,y.moveTo(ue.left,se),y.lineTo(ve,se)):(se+=ue.left,ve=ee.height-ue.bottom,y.moveTo(se,ue.top),y.lineTo(se,ve)),y.stroke(),y.Se(),fe&&y.fs()}}}}function bm(a,y,x,E,b){for(var z=E.length,ee=a.actualBounds,re=a.naturalBounds,oe=h1(a,!0),se=h1(a,!1),ue=0;ue<z;ue++){var fe=E[ue];if(fe!==void 0&&fe.background!==null&&fe.coversSeparators!==b&&fe.actual!==0){var ve=x?ee.height:ee.width;if(!(fe.position>ve)){var xe=fe.Wc(),Pe=fe.separatorStrokeWidth;isNaN(Pe)&&(Pe=x?a.defaultRowSeparatorStrokeWidth:a.defaultColumnSeparatorStrokeWidth);var Fe=fe.separatorStroke;Fe===null&&(Fe=x?a.defaultRowSeparatorStroke:a.defaultColumnSeparatorStroke),(Fe===null||fe.index===(x?oe:se))&&(Pe=0),xe-=Pe,Pe=fe.position+Pe,xe+=fe.actual,Pe+xe>ve&&(xe=ve-Pe),0>=xe||(ve=a.yb,ma(a,y,fe.background,!0,!1,re,ee),x?y.fillRect(ve.left,Pe+ve.top,ee.width-(ve.left+ve.right),xe):y.fillRect(Pe+ve.left,ve.top,xe,ee.height-(ve.top+ve.bottom)))}}}}function h1(a,y){for(var x=y?a.rowCount:a.columnCount,E=0;E<x;E++){var b=y?a.rowDefs[E]:a.colDefs[E];if(b!==void 0)return b.index}return 0}function Sv(a){return a==="LineV"||a==="BarV"}Ce.lv=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].lv();this.Uc=!0},Ce.kk=function(a,y,x){if(!kt.prototype.kk.call(this,a,y,x))return!1;if(this.type===ni.Table)x=this.svg.getElementsByClassName("gojs-ts"),x=x.length!==0?x[0]:null,x!==null&&(x.innerHTML=""),a.yd=x,yv(this,a),a.yd=null;else if(this.na===ni.Grid||this.na===ni.Graduated)return this.svg.innerHTML="",this.svg.remove(),!1;x=this.O.s;for(var E=x.length,b=0;b<E;b++)x[b].gc(a,y);return!0},Ce.nk=function(){return!0},Ce.$o=function(a,y,x,E){if(!this.isClipping)if(this.Dd()&&a.bk!==null){a=a.bk,y=this.O.s;for(var b=0,z=0,ee=0;ee<y.length;ee++)if(y[ee].Ed()){var re=y[ee].actualBounds;b=ee===0?re.x:Math.min(re.x,b),z=ee===0?re.y:Math.min(re.y,z)}E.setAttributeNS(null,"clip-path","path('M "+(a.x-x.x-b)+","+(a.y-x.y-z)+" l "+a.width+" 0 l 0 "+a.height+" l -"+a.width+" 0 z')")}else kt.prototype.$o.call(this,a,y,x,E)},Ce.Sj=function(a,y,x,E,b){var z=this.se(),ee=this.transform,re=1/(ee.m11*ee.m22-ee.m12*ee.m21),oe=ee.m22*re,se=-ee.m12*re,ue=-ee.m21*re,fe=ee.m11*re,ve=re*(ee.m21*ee.dy-ee.m22*ee.dx),xe=re*(ee.m12*ee.dx-ee.m11*ee.dy);if(this.areaBackground!==null)return ee=this.actualBounds,pt.Ff(ee.left,ee.top,ee.right,ee.bottom,a,y,x,E,b);if(this.background!==null)return z=a*oe+y*ue+ve,re=a*se+y*fe+xe,a=x*oe+E*ue+ve,oe=x*se+E*fe+xe,b.h(0,0),x=this.naturalBounds,z=pt.Ff(0,0,x.width,x.height,z,re,a,oe,b),b.transform(ee),z;z||(oe=1,ue=se=0,fe=1,xe=ve=0),re=a*oe+y*ue+ve,a=a*se+y*fe+xe,oe=x*oe+E*ue+ve,x=x*se+E*fe+xe,b.h(oe,x),E=(oe-re)*(oe-re)+(x-a)*(x-a),se=!1,fe=this.O.s,xe=fe.length,ue=Te.alloc(),ve=null,y=1/0;var Pe=null,Fe=this.isClipping&&this.na===ni.Spot;Fe&&(Pe=Te.alloc(),ve=this.Pb(),(se=ve.Sj(re,a,oe,x,Pe))&&(y=(re-Pe.x)*(re-Pe.x)+(a-Pe.y)*(a-Pe.y)));for(var Je=0;Je<xe;Je++){var We=fe[Je];We.visible&&We!==ve&&We.Sj(re,a,oe,x,ue)&&(se=!0,We=(re-ue.x)*(re-ue.x)+(a-ue.y)*(a-ue.y),We<E&&(E=We,b.set(ue)))}return Fe&&(y>E&&b.set(Pe),Te.free(Pe)),Te.free(ue),z&&b.transform(ee),se},Ce.Gj=function(){for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Gj();kt.prototype.Gj.call(this)},Ce.v=function(a){if(!hl(this)){kt.prototype.v.call(this,a),a=null,(this.na===ni.Auto||this.na===ni.Link)&&(a=this.Pb());for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if((b===a||b.isPanelMain)&&b.v(!0),!b.desiredSize.w()){var z=zs(b,!1);(b instanceof Ms||b instanceof ni||b instanceof jo||z!==Zn)&&b.v(!0)}}}},Ce.Uj=function(){if(!hl(this)){Na(this,!0),Ru(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Uj()}},Ce.Uk=function(){if(!(this.l&2048)){Rl(this,!0),Cl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()}},Ce.Wu=function(){Cl(this,!0);for(var a=this.O.s,y=a.length,x=0;x<y;x++)a[x].Wu()},Ce.Wl=function(a,y,x,E){var b=this.jg;b.h(0,0,0,0);var z=this.desiredSize,ee=this.minSize;x===void 0&&(x=ee.width,E=ee.height),x=Math.max(x,ee.width),E=Math.max(E,ee.height);var re=this.maxSize;isNaN(z.width)||(a=Math.min(z.width,re.width)),isNaN(z.height)||(y=Math.min(z.height,re.height)),a=Math.max(x,a),y=Math.max(E,y);var oe=this.yb;a=Math.max(a-oe.left-oe.right,0),y=Math.max(y-oe.top-oe.bottom,0);var se=this.O.s;se.length!==0&&this.na.measure(this,a,y,se,b,x,E),a=b.width+oe.left+oe.right,oe=b.height+oe.top+oe.bottom,isFinite(z.width)&&(a=z.width),isFinite(z.height)&&(oe=z.height),a=Math.min(re.width,a),oe=Math.min(re.height,oe),a=Math.max(ee.width,a),oe=Math.max(ee.height,oe),a=Math.max(x,a),oe=Math.max(E,oe),Qn(b,a,oe),Qn(this.naturalBounds,a,oe),this.Ge(0,0,a,oe)},Ce.Pb=function(){if(this.$g===null){var a=this.O.s,y=a.length;if(y===0)return null;for(var x=0;x<y;x++){var E=a[x];if(E.isPanelMain===!0)return this.$g=E}this.$g=a[0]}return this.$g};function ah(a){return a.part!==null?a.part.locationObject:null}Ce.eh=function(a,y,x,E){var b=this.O.s;if(this.actualBounds.h(a,y,x,E),b.length!==0){if(!this.desiredSize.w()){a=zs(this,!0);var z=this.measuredBounds;y=z.width,z=z.height;var ee=this.Kg,re=ee.left+ee.right;switch(ee=ee.top+ee.bottom,y===x&&z===E&&(a=Zn),a){case Zn:(y>x||z>E)&&(this.v(),this.measure(y>x?x:y,z>E?E:z,0,0));break;case qn:this.v(!0),this.measure(x+re,E+ee,0,0);break;case qi:this.v(!0),this.measure(x+re,z+ee,0,0);break;case mr:this.v(!0),this.measure(y+re,E+ee,0,0)}}this.na.arrange(this,b,this.jg)}},Ce.gh=function(a){var y=this.naturalBounds,x=ah(this);if(Oi(0,0,y.width,y.height,a.x,a.y)){y=this.O.s;for(var E=y.length,b=Te.allocAt(0,0);E--;){var z=y[E];if((z.visible||z===x)&&(Rt(b.set(a),z.transform),z.ca(b)))return Te.free(b),!0}return Te.free(b),!(this.Ma===null&&this.areaBackground===null)}return!1},Ce.ks=function(a){if(this.bindingId===a)return this;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E].ks(a);if(b!==null)return b}return null},Ce.qm=function(a,y){if(y(this,a),a instanceof ni){a=a.O.s;for(var x=a.length,E=0;E<x;E++)this.qm(a[E],y)}};function Qd(a,y){d1(a,a,y)}function d1(a,y,x){x(y),y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=y[b];z instanceof ni&&d1(a,z,x)}}function Lx(a,y){c1(a,a,y)}function c1(a,y,x){if(x(y),y instanceof ni){y=y.O.s;for(var E=y.length,b=0;b<E;b++)c1(a,y[b],x)}}Ce.Nl=function(a){return f1(this,this,a)};function f1(a,y,x){if(x(y))return y;if(y instanceof ni){y=y.O.s;for(var E=y.length,b=0;b<E;b++){var z=f1(a,y[b],x);if(z!==null)return z}}return null}Ce.fb=function(a){if(this.name===a)return this;var y=this.O.s,x=y.length;this.Hh===null&&this.itemTemplateMap===null||(x=Qg(this));for(var E=0;E<x;E++){var b=y[E];if(b instanceof ni){var z=b.fb(a);if(z!==null)return z}if(b.name===a)return b}return null};function g1(a){a=a.O.s;for(var y=a.length,x=0,E=0;E<y;E++){var b=a[E];b instanceof ni?x=Math.max(x,g1(b)):b instanceof Wr&&(x=Math.max(x,b.ig/2*b.strokeMiterLimit*b.Df()))}return x}Ce.se=function(){return!(this.type===ni.TableRow||this.type===ni.TableColumn)};function kh(a){return a.type===ni.TableRow||a.type===ni.TableColumn}Ce.ic=function(a,y,x){if(this.pickable===!1||(y===void 0&&(y=null),x===void 0&&(x=null),Ls(this)))return null;var E=this.naturalBounds,b=1/this.Df(),z=this.se(),ee=z?a:Rt(Te.allocAt(a.x,a.y),this.transform),re=this.diagram,oe=10,se=5;if(re!==null&&(oe=re.Ql("extraTouchArea"),se=oe/2),Oi(-(se*b),-(se*b),E.width+oe*b,E.height+oe*b,ee.x,ee.y)){if(!this.isAtomic){b=this.O.s;var ue=b.length;if(re=Te.alloc(),se=(oe=this.isClipping&&this.na===ni.Spot)?this.Pb():null,oe&&(se.se()?Rt(re.set(a),se.transform):re.set(a),!se.ca(re)))return Te.free(re),z||Te.free(ee),null;for(var fe=ah(this);ue--;){var ve=b[ue];if((ve.visible||ve===fe)&&(ve.se()?Rt(re.set(a),ve.transform):re.set(a),!oe||ve!==se)){var xe=null;if(ve instanceof ni?xe=ve.ic(re,y,x):ve.pickable===!0&&ve.ca(re)&&(xe=ve),xe!==null&&(y!==null&&(xe=y(xe)),xe!==null&&(x===null||x(xe))))return Te.free(re),z||Te.free(ee),xe}}Te.free(re)}return this.background===null&&this.areaBackground===null?(z||Te.free(ee),null):(a=Oi(0,0,E.width,E.height,ee.x,ee.y)?this:null,z||Te.free(ee),a)}return z||Te.free(ee),null},Ce.ji=function(a,y,x,E){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var b=this.naturalBounds,z=this.se(),ee=z?a:Rt(Te.allocAt(a.x,a.y),this.transform);if(b=Oi(0,0,b.width,b.height,ee.x,ee.y),kh(this)||b){if(!this.isAtomic){for(var re=this.O.s,oe=re.length,se=Te.alloc(),ue=ah(this);oe--;){var fe=re[oe];if(fe.visible||fe===ue){fe.se()?Rt(se.set(a),fe.transform):se.set(a);var ve=fe;fe=fe instanceof ni?fe:null,(fe!==null?fe.ji(se,y,x,E):ve.ca(se))&&ve.pickable!==!1&&(y!==null&&(ve=y(ve)),ve===null||x!==null&&!x(ve)||E.add(ve))}}Te.free(se)}return z||Te.free(ee),b&&(this.background!==null||this.areaBackground!==null)}return z||Te.free(ee),!1},Ce.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=vi.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,b),z===void 0&&vi.free(ee),!0;if(this.Yc(a,ee)){if(!this.isAtomic)for(var re=ah(this),oe=this.O.s,se=oe.length;se--;){var ue=oe[se];if(ue.visible||ue===re){var fe=ue.actualBounds,ve=this.naturalBounds;fe.x>ve.width||fe.y>ve.height||0>fe.x+fe.width||0>fe.y+fe.height||(fe=ue,ue=ue instanceof ni?ue:null,ve=vi.alloc(),ve.set(ee),(ue!==null?ue.Cf(a,y,x,E,b,ve):ja(fe,a,E,ve))&&(y!==null&&(fe=y(fe)),fe===null||x!==null&&!x(fe)||b.add(fe)),vi.free(ve))}}return z===void 0&&vi.free(ee),E}return z===void 0&&vi.free(ee),!1};function xv(a,y,x,E){for(var b=a.O.s,z=b.length;z--;){var ee=b[z];if(ee.visible){var re=ee.actualBounds,oe=a.naturalBounds;re.x>oe.width||re.y>oe.height||0>re.x+re.width||0>re.y+re.height||(ee instanceof ni&&xv(ee,y,x,E),y!==null&&(ee=y(ee)),ee===null||x!==null&&!x(ee)||E.add(ee))}}}Ce.og=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;x===void 0&&(x=null),E===void 0&&(E=null);var ee=this.naturalBounds,re=this.se(),oe=re?a:Rt(Te.allocAt(a.x,a.y),this.transform),se=re?y:Rt(Te.allocAt(y.x,y.y),this.transform),ue=oe.Bf(se),fe=0<oe.x&&oe.x<ee.width&&0<oe.y&&oe.y<ee.height||on(oe.x,oe.y,0,0,0,ee.height)<=ue||on(oe.x,oe.y,0,ee.height,ee.width,ee.height)<=ue||on(oe.x,oe.y,ee.width,ee.height,ee.width,0)<=ue||on(oe.x,oe.y,ee.width,0,0,0)<=ue;if(ee=oe.zd(0,0)<=ue&&oe.zd(0,ee.height)<=ue&&oe.zd(ee.width,0)<=ue&&oe.zd(ee.width,ee.height)<=ue,re||(Te.free(oe),Te.free(se)),fe){if(!this.isAtomic){oe=Te.alloc(),se=Te.alloc(),ue=ah(this);for(var ve=this.O.s,xe=ve.length;xe--;){var Pe=ve[xe];if(Pe.visible||Pe===ue){var Fe=Pe.actualBounds,Je=this.naturalBounds;(!re||!(Fe.x>Je.width||Fe.y>Je.height||0>Fe.x+Fe.width||0>Fe.y+Fe.height))&&(Pe.se()?(Fe=Pe.transform,Rt(oe.set(a),Fe),Rt(se.set(y),Fe)):(oe.set(a),se.set(y)),Fe=Pe,Pe=Pe instanceof ni?Pe:null,(Pe!==null?Pe.og(oe,se,x,E,b,z):Fe.tx(oe,se,b))&&(x!==null&&(Fe=x(Fe)),Fe===null||E!==null&&!E(Fe)||z.add(Fe)))}}Te.free(oe),Te.free(se)}return b?fe:ee}return!1};function wv(a){var y=null;return a instanceof Wr&&(y=a.spot1,y===Lo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot1)),y===null&&(y=Ji),y}function Pv(a){var y=null;return a instanceof Wr&&(y=a.spot2,y===Lo&&(y=null),a=a.geometry,a!==null&&y===null&&(y=a.spot2)),y===null&&(y=Ar),y}Ce.add=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];for(x=0;x<y.length;x++)this.Gb(this.O.count,y[x]);return this},Ce.M=function(a){return this.O.M(a)},Ce.Gb=function(a,y){y instanceof ir&&Ve("Cannot add a Part to a Panel: "+y+"; use a Panel instead"),(this===y||this.rg(y))&&(this===y&&Ve("Cannot make a Panel contain itself: "+this.toString()),Ve("Cannot make a Panel indirectly contain itself: "+this.toString()+" already contains "+y.toString()));var x=y.panel;if(x!==null&&x!==this&&Ve("Cannot add a GraphObject that already belongs to another Panel to this Panel: "+y.toString()+", already contained by "+x.toString()+", cannot be shared by this Panel: "+this.toString()),this.na!==ni.Grid||y instanceof Wr||Ve("Can only add Shapes to a Grid Panel, not: "+y),this.na!==ni.Graduated||y instanceof Wr||y instanceof jo||Ve("Can only add Shapes or TextBlocks to a Graduated Panel, not: "+y),y.wi(this),y.Ng=null,this.itemArray!==null){var E=y.data;E!==null&&typeof E=="object"&&(this.ge===null&&(this.ge=new $t),this.ge.add(E,y))}var b=this.O;if(E=-1,x===this){for(var z=-1,ee=this.O.s,re=ee.length,oe=0;oe<re;oe++)if(ee[oe]===y){z=oe;break}if(z!==-1){if(z===a||z+1>=b.count&&a>=b.count)return;b.mb(z),E=z}else Ve("element "+y.toString()+" has panel "+x.toString()+" but is not contained by it.")}(0>a||a>b.count)&&(a=b.count),b.Gb(a,y),(a===0||y.isPanelMain)&&(this.$g=null),hl(this)||this.v(),y.v(!1),y.portId!==null?this.Te=!0:y instanceof ni&&y.Te===!0&&(this.Te=!0),this.graduatedIntervals=null,this.If()||km(this,y,!1),x=this.part,x!==null&&(x.Rh=null,x.ag=NaN,this.Te&&x instanceof Li&&(x.Te=!0),x.Te&&x instanceof Li&&(x.wc=null),b=this.diagram,b!==null&&b.undoManager.isUndoingRedoing||(E!==-1&&x.cb(pa,"elements",this,y,null,E,null),x.cb($o,"elements",this,null,y,null,a)))};function Cv(a,y){a.l=y?a.l|16777216:a.l&-16777217}Ce.remove=function(a){for(var y=this.O.s,x=y.length,E=-1,b=0;b<x;b++)if(y[b]===a){E=b;break}E!==-1&&this.pc(E,!0)},Ce.mb=function(a){0<=a&&this.pc(a,!0)},Ce.pc=function(a,y){var x=this.O,E=x.M(a);if(E.Ng=null,E.wi(null),this.ge!==null){var b=E.data;typeof b=="object"&&this.ge.remove(b)}x.mb(a),Na(this,!1),this.v(),this.$g===E&&(this.$g=null),this.graduatedIntervals=null;var z=this.part;z!==null&&(z.Rh=null,z.ag=NaN,z.Wb(),z instanceof Li&&(E instanceof ni?E.qm(E,function(ee,re){Yv(z,re,y)}):Yv(z,E,y)),x=this.diagram,x!==null&&x.undoManager.isUndoingRedoing||z.cb(pa,"elements",this,E,null,a,null))},Ce.Fb=function(a){0>a&&Dn(a,">= 0",ni,"getRowDefinition:idx"),a=Math.round(a);var y=this.rowDefs;if(y[a]===void 0){var x=new Ba;x.wi(this),x.isRow=!0,x.index=a,y[a]=x,this.cb($o,"rowdefs",this,null,x,null,a)}return y[a]},Ce.oA=function(a){if(0>a&&Dn(a,">= 0",ni,"removeRowDefinition:idx"),this.rowCount!==0){a=Math.round(a);var y=this.rowDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(pa,"rowdefs",this,x,null,a,null),this.v()}}};function p1(a,y,x){var E=a.rowDefs;if(!(0>y)){if(E[y]=x instanceof Ba?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ce.Eb=function(a){0>a&&Dn(a,">= 0",ni,"getColumnDefinition:idx"),a=Math.round(a);var y=this.colDefs;if(y[a]===void 0){var x=new Ba;x.wi(this),x.isRow=!1,x.index=a,y[a]=x,this.cb($o,"coldefs",this,null,x,null,a)}return y[a]},Ce.jA=function(a){if(0>a&&Dn(a,">= 0",ni,"removeColumnDefinition:idx"),this.columnCount!==0){a=Math.round(a);var y=this.colDefs,x=y[a];if(x){y[a]=void 0;for(var E=y.length-1;0<=E&&y[E--]===void 0;)y.length--;this.cb(pa,"coldefs",this,x,null,a,null),this.v()}}};function m1(a,y,x){var E=a.colDefs;if(!(0>y)){if(E[y]=x instanceof Ba?x:void 0,!x)for(y=E.length-1;0<=y&&E[y--]===void 0;)E.length--;a.v()}}Ce.Gy=function(a){var y=null;return a.isRow?y=this.Fb(a.index):a.isRow||(y=this.Eb(a.index)),y&&Fm(y,a),this},Ce.Hy=function(a,y){return(a=this.Fb(a))&&Fm(a,new Ba(y)),this},Ce.By=function(a,y){return(a=this.Eb(a))&&Fm(a,new Ba(y)),this},Ce.nz=function(a){if(0>a||this.type!==ni.Table||this.rowCount===0)return-1;for(var y=0,x=this.rowDefs,E=x.length,b=this.topIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ce.fz=function(a){if(0>a||this.type!==ni.Table||this.columnCount===0)return-1;for(var y=0,x=this.colDefs,E=x.length,b=this.leftIndex;b<E;b++){var z=x[b];if(z!==void 0&&(y+=z.total,a<y))break}return b},Ce.Fz=function(a,y){if(y===void 0&&(y=new Te(NaN,NaN)),this.type!==ni.Graduated)return y.h(NaN,NaN),y;a=Math.min(Math.max(a,this.graduatedMin),this.graduatedMax);var x=this.Pb();return x.geometry.Pu((a-this.graduatedMin)/this.graduatedRange,y),x.transform.Ga(y)},Ce.Gz=function(a){if(this.type!==ni.Graduated)return NaN;var y=this.Pb();return y.transform.Cd(a),y.geometry.xx(a)*this.graduatedRange+this.graduatedMin};function v1(a){return a=a.allBindings,a!==null&&a._isFrozen}function jl(a){var y=a.allBindings;if(y===null)a.data!==null&&Ve("Template cannot have .data be non-null: "+a),a.allBindings=y=new cn;else if(y._isFrozen)return;var x=new cn;Cv(a,!1),a.qm(a,function(se,ue){ue.th();var fe=ue.localBindings;if(fe!==null)for(Bc(ue,!1),fe=fe.iterator;fe.next();){var ve=fe.value;ve.mode===Sp&&Bc(ue,!0);var xe=ve.sourceName;xe!==null&&(xe==="/"&&Cv(se,!0),xe=DS(ve,se,ue),xe!==null&&(x.add(xe),xe.srcBindings===null&&(xe.srcBindings=new cn),xe.srcBindings.add(ve))),y.add(ve)}if(ue instanceof ni&&ue.type===ni.Table){if(0<ue.rowCount){for(se=ue.rowDefs,fe=se.length,ve=0;ve<fe;ve++)if(xe=se[ve],xe!==void 0&&xe.be!==null)for(var Pe=xe.be.iterator;Pe.next();){var Fe=Pe.value;Fe.xd=xe,Fe.to=2,Fe.wl=xe.index,y.add(Fe)}}if(0<ue.columnCount){for(ue=ue.colDefs,se=ue.length,fe=0;fe<se;fe++)if(ve=ue[fe],ve!==void 0&&ve.be!==null)for(xe=ve.be.iterator;xe.next();)Pe=xe.value,Pe.xd=ve,Pe.to=1,Pe.wl=ve.index,y.add(Pe)}}});for(var E=x.iterator;E.next();){var b=E.value;if(b.srcBindings!==null){Bc(b,!0);for(var z=b.srcBindings.iterator;z.next();){var ee=z.value;b.localBindings===null&&(b.localBindings=new cn),b.localBindings.add(ee)}}b.srcBindings=null}for(E=y.iterator;E.next();)if(b=E.value,z=b.xd,z!==null){b.xd=null;var re=b.targetProperty,oe=re.indexOf(".");0<oe&&z instanceof ni&&(ee=re.substring(0,oe),re=re.substr(oe+1),oe=z.fb(ee),oe!==null?(z=oe,b.targetProperty=re):An('Warning: unable to find GraphObject named "'+ee+'" for Binding: '+b.toString())),z instanceof Ba?(ee=Nr(z.panel),b.Ai=ee===void 0?-1:ee,z.panel.bindingId=b.Ai):z instanceof kt?(ee=Nr(z),b.Ai=ee===void 0?-1:ee,z.bindingId=b.Ai):Ve("Unknown type of binding target: "+z)}y.freeze(),a instanceof ir&&a.Zc()&&a.Va()}Ce.Uy=function(a){a===void 0&&(a=!1);var y=this.copy();return Lx(y,function(x){x instanceof ni&&(x.allBindings=null,x.ub=null);var E=x.localBindings;E!==null&&(x.localBindings=null,E.each(function(b){x.bind(b.copy())})),E=x.animationTriggers,E!==null&&(x.animationTriggers=null,E.each(function(b){x.Jv(b.value.copy())}))}),a&&jl(y),y},Ce.La=function(a){var y=this.allBindings;if(y!==null)for(a===void 0&&(a=""),y=y.iterator;y.next();){var x=y.value,E=x.sourceProperty;if((a===""||E===""||E===a)&&(E=x.targetProperty,x.converter!==null||E!=="")){E=this.data;var b=x.sourceName;if(b!==null){if(b==="")E=this;else if(b==="/")E=this;else if(b===".")E=this;else if(b==="..")E=this;else if(E=this.fb(b),E===null)continue}else if(x.isToModel)if(E=this.diagram,E!==null)E=E.model.modelData;else continue;var z=this,ee=x.Ai;if(ee!==-1){if(z=this.ks(ee),z===null)continue}else x.xd!==null&&(z=x.xd);if(b==="/"?E=z.part:b==="."?E=z:b===".."&&(E=z.panel),b=x.to,b!==0){if(!(z instanceof ni))continue;b===1?z=z.Eb(x.wl):b===2&&(z=z.Fb(x.wl))}z!==void 0&&x.Mv(z,E)}}},Ce.sx=function(a){return a==null||this.ge===null?null:this.ge.I(a)};function bx(a,y){a=a.O.s;for(var x=a.length,E=y.length,b=0,z=null;b<x&&(z=a[b],!(z instanceof ni&&z.data!==null));)b++,z=a[b];if(x-b!==E)return!0;if(z===null)return 0<E;for(var ee=0;b<x&&ee<E;){if(z=a[b],!(z instanceof ni)||z.data!==y[ee])return!0;b++,ee++}return!1}function Qg(a){if(a.type===ni.Spot||a.type===ni.Auto)return Math.min(a.O.length,1);if(a.type===ni.Link){a=a.O;for(var y=a.length,x=0;x<y;x++){var E=a.M(x);if(!(E instanceof Wr&&E.isPanelMain))break}return x}return a.type===ni.Table&&0<a.O.length&&(a=a.O.M(0),a.isPanelMain&&a instanceof ni&&kh(a))?1:0}Ce.mv=function(){for(var a=Qg(this);this.O.length>a;)this.pc(this.O.length-1,!1);y1(this,this.itemArray)};function y1(a,y){var x=Qg(a);if(y===null||y.length===0)for(;a.O.length>x;)a.pc(a.O.length-1,!1);else if(a.O.length<=x){x=y.length;for(var E=0;E<x;E++)Mm(a,y[E],E,!0)}else{E=x;for(var b=0;b<y.length;b++,E++){var z=y[b],ee=E<a.O.length?a.O.M(E):null;if(ee instanceof ni){if(ee.data!==z){var re=Av(a,ee.data),oe=Av(a,z),se=oe!==re;se||(re=Lv(a,re),se=Lv(a,oe)!==re),se?(a.pc(E,!1),Mm(a,z,b,!1)):ee.data=z}}else Mm(a,z,b,!1)}for(;E<a.O.length;)a.pc(E,!1);a.$g=null,Ev(a,x,0),hl(a)||a.v(),a.graduatedIntervals=null,a.If()||km(a,a,!1),y=a.part,y!==null&&(y.Rh=null,y.ag=NaN,a.Te&&y instanceof Li&&(y.Te=!0),y.Te&&y instanceof Li&&(y.wc=null))}}function Mm(a,y,x,E){if(!(y==null||0>x)){var b=Av(a,y);if(b=Lv(a,b),b!==null){if(jl(b),b=b.copy(),b.l&16777216){var z=a.ih();z!==null&&Cv(z,!0)}typeof y=="object"&&(a.ge===null&&(a.ge=new $t),a.ge.add(y,b)),z=x+Qg(a),a.Gb(z,b),E&&(b.ub=y,Ev(a,z,x),b.ub=null),b.data=y}}}function Ev(a,y,x){for(a=a.O;y<a.length;){var E=a.M(y);if(E instanceof ni){var b=y,z=x;E.type===ni.TableRow?E.row=b:E.type===ni.TableColumn&&(E.column=b),E.itemIndex=z}y++,x++}}function Av(a,y){if(y===null)return"";if(a=a.itemCategoryProperty,typeof a=="function")a=a(y);else if(typeof a=="string"&&typeof y=="object"){if(a==="")return"";a=Ca(y,a)}else return"";if(a===void 0)return"";if(typeof a=="string")return a;Ve("Panel.getCategoryForItemData found a non-string category for "+y+": "+a)}function Lv(a,y){var x=a.itemTemplateMap,E=null;return x!==null&&(E=x.I(y)),E===null&&(x!==null&&(E=x.I("")),E===null&&(S1||(S1=!0,An('No item template Panel found for category "'+y+'" on '+a),An(" Using default item template."),a=new ni,y=new jo,y.bind(new La("text","",_i)),a.add(y),x1=a),E=x1)),E}function km(a,y,x){var E=y.enabledChanged;if(E!==null&&E(y,x),y instanceof ni){y=y.O.s,E=y.length;for(var b=0;b<E;b++){var z=y[b];x&&z instanceof ni&&!z.isEnabled||km(a,z,x)}}}function Lu(a,y){y.name=a,Ql.add(a,y)}Ct.Object.defineProperties(ni.prototype,{type:{get:function(){return this.na},set:function(a){var y=this.na;y!==a&&(this.na=a,this.isAtomic=this.na===ni.Grid,this.v(),this.g("type",y,a))}},elements:{get:function(){return this.O.iterator}},naturalBounds:{get:function(){return this.dc}},padding:{get:function(){return this.yb},set:function(a){typeof a=="number"?(0>a&&Dn(a,">= 0",ni,"padding"),a=new Fi(a)):(0>a.left&&Dn(a.left,">= 0",ni,"padding:value.left"),0>a.right&&Dn(a.right,">= 0",ni,"padding:value.right"),0>a.top&&Dn(a.top,">= 0",ni,"padding:value.top"),0>a.bottom&&Dn(a.bottom,">= 0",ni,"padding:value.bottom"));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.v(),this.g("padding",y,a))}},defaultAlignment:{get:function(){return this.Tm},set:function(a){var y=this.Tm;y.D(a)||(this.Tm=a=a.J(),this.v(),this.g("defaultAlignment",y,a))}},defaultStretch:{get:function(){return this.Uf},set:function(a){var y=this.Uf;y!==a&&(this.Uf=a,this.v(),this.g("defaultStretch",y,a))}},defaultSeparatorPadding:{get:function(){return this.T!==null?this.T.Qp:Rr},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.defaultSeparatorPadding;y.D(a)||(a=a.J(),this.T===null&&(this.T=new Ll),this.T.Qp=a,this.v(),this.g("defaultSeparatorPadding",y,a))}},defaultRowSeparatorStroke:{get:function(){return this.T!==null?this.T.ia:null},set:function(a){var y=this.defaultRowSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof wo)&&(a instanceof wo&&a.freeze(),this.T===null&&(this.T=new Ll),this.T.ia=a,this.N(),this.g("defaultRowSeparatorStroke",y,a))}},defaultRowSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.Ha:1},set:function(a){var y=this.defaultRowSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Ll),this.T.Ha=a,this.v(),this.g("defaultRowSeparatorStrokeWidth",y,a))}},defaultRowSeparatorDashArray:{get:function(){return this.T!==null?this.T.V:null},set:function(a){var y=this.defaultRowSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Ve("defaultRowSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ll),this.T.V=a,this.N(),this.g("defaultRowSeparatorDashArray",y,a)}}},defaultColumnSeparatorStroke:{get:function(){return this.T!==null?this.T.u:null},set:function(a){var y=this.defaultColumnSeparatorStroke;y!==a&&(a===null||typeof a=="string"||a instanceof wo)&&(a instanceof wo&&a.freeze(),this.T===null&&(this.T=new Ll),this.T.u=a,this.N(),this.g("defaultColumnSeparatorStroke",y,a))}},defaultColumnSeparatorStrokeWidth:{get:function(){return this.T!==null?this.T.F:1},set:function(a){var y=this.defaultColumnSeparatorStrokeWidth;y!==a&&isFinite(a)&&0<=a&&(this.T===null&&(this.T=new Ll),this.T.F=a,this.v(),this.g("defaultColumnSeparatorStrokeWidth",y,a))}},defaultColumnSeparatorDashArray:{get:function(){return this.T!==null?this.T.o:null},set:function(a){var y=this.defaultColumnSeparatorDashArray;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Ve("defaultColumnSeparatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.T===null&&(this.T=new Ll),this.T.o=a,this.N(),this.g("defaultColumnSeparatorDashArray",y,a)}}},inRowsCols:{get:function(){return this.T!==null?this.T.nb:null},set:function(a){this.T===null&&(this.T=new Ll),this.T.nb=a}},viewboxStretch:{get:function(){return this.xo},set:function(a){var y=this.xo;y!==a&&(this.xo=a,this.v(),this.g("viewboxStretch",y,a))}},gridCellSize:{get:function(){return this.jn},set:function(a){var y=this.jn;if(!y.D(a)){a.w()&&a.width!==0&&a.height!==0||Ve("Invalid Panel.gridCellSize: "+a),this.jn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Cu(x),this.N(),this.g("gridCellSize",y,a)}}},gridOrigin:{get:function(){return this.kn},set:function(a){var y=this.kn;if(!y.D(a)){a.w()||Ve("Invalid Panel.gridOrigin: "+a),this.kn=a.J();var x=this.diagram;x!==null&&this===x.grid&&Cu(x),this.N(),this.g("gridOrigin",y,a)}}},graduatedMin:{get:function(){return this.ra!==null?this.ra.lq:0},set:function(a){var y=this.graduatedMin;y!==a&&(this.ra===null&&(this.ra=new sh),this.ra.lq=a,this.v(),this.g("graduatedMin",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"graduatedRange")))}},graduatedMax:{get:function(){return this.ra!==null?this.ra.F:100},set:function(a){var y=this.graduatedMax;y!==a&&(this.ra===null&&(this.ra=new sh),this.ra.F=a,this.v(),this.g("graduatedMax",y,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"graduatedRange")))}},graduatedRange:{get:function(){return this.graduatedMax-this.graduatedMin}},graduatedTickUnit:{get:function(){return this.ra!==null?this.ra.ia:10},set:function(a){var y=this.graduatedTickUnit;y!==a&&0<a&&(this.ra===null&&(this.ra=new sh),this.ra.ia=a,this.v(),this.g("graduatedTickUnit",y,a))}},graduatedTickBase:{get:function(){return this.ra!==null?this.ra.V:0},set:function(a){var y=this.graduatedTickBase;y!==a&&(this.ra===null&&(this.ra=new sh),this.ra.V=a,this.v(),this.g("graduatedTickBase",y,a))}},graduatedMarks:{get:function(){return this.ra!==null?this.ra.u:null},set:function(a){this.ra!==null?this.ra.u=a:a!==null&&(this.ra=new sh,this.ra.u=a)}},graduatedBounds:{get:function(){return this.ra!==null?this.ra.j:null},set:function(a){this.ra!==null?this.ra.j=a:a!==null&&(this.ra=new sh,this.ra.j=a)}},graduatedIntervals:{get:function(){return this.ra!==null?this.ra.o:null},set:function(a){this.ra!==null?this.ra.o=a:a!==null&&(this.ra=new sh,this.ra.o=a)}},temporaryTextBlock:{get:function(){return this.ra!==null?this.ra.Zh:null},set:function(a){this.ra!==null?this.ra.Zh=a:a!==null&&(this.ra=new sh,this.ra.Zh=a)}},panelLayoutState:{get:function(){return this.F},set:function(a){this.F=a}},Te:{get:function(){return(this.l&8388608)!==0},set:function(a){(this.l&8388608)!==0!==a&&(this.l^=8388608)}},rowDefs:{get:function(){return this.T===null&&(this.T=new Ll),this.T.Pc}},rowCount:{get:function(){return this.T===null?0:this.rowDefs.length}},colDefs:{get:function(){return this.T===null&&(this.T=new Ll),this.T.Oc}},columnCount:{get:function(){return this.T===null?0:this.colDefs.length}},rowSizing:{get:function(){return this.T!==null?this.T.ob:Nm},set:function(a){var y=this.rowSizing;y!==a&&(this.T===null&&(this.T=new Ll),this.T.ob=a,this.v(),this.g("rowSizing",y,a))}},columnSizing:{get:function(){return this.T!==null?this.T.j:Nm},set:function(a){var y=this.columnSizing;y!==a&&(this.T===null&&(this.T=new Ll),this.T.j=a,this.v(),this.g("columnSizing",y,a))}},topIndex:{get:function(){return this.T!==null?this.T.Hb:0},set:function(a){var y=this.topIndex;y!==a&&((!isFinite(a)||0>a)&&Ve("Panel.topIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),this.T.Hb=a,this.v(),this.g("topIndex",y,a))}},leftIndex:{get:function(){return this.T!==null?this.T.hb:0},set:function(a){var y=this.leftIndex;y!==a&&((!isFinite(a)||0>a)&&Ve("Panel.leftIndex must be greater than zero and a real number, not: "+a),this.T===null&&(this.T=new Ll),this.T.hb=a,this.v(),this.g("leftIndex",y,a))}},data:{get:function(){return this.ub},set:function(a){var y=this.ub;if(y!==a){var x=this instanceof ir&&!(this instanceof uo);jl(this),this.ub=a;var E=this.diagram;E!==null&&(x?(x=E.partManager,this instanceof hi?(y!==null&&x.bf.remove(y),a!==null&&x.bf.add(a,this)):this instanceof ir&&(y!==null&&x.cf.remove(y),a!==null&&x.cf.add(a,this))):(x=this.panel,x!==null&&x.ge!==null&&(y!==null&&x.ge.remove(y),a!==null&&x.ge.add(a,this)))),this.g("data",y,a),E!==null&&E.undoManager.isUndoingRedoing||a!==null&&this.La()}}},itemIndex:{get:function(){return this.zn},set:function(a){var y=this.zn;y!==a&&(this.zn=a,this.g("itemIndex",y,a))}},allBindings:{get:function(){return this.A!==null?this.A.nb:null},set:function(a){this.localBindings!==a&&(this.A===null&&(this.A=new Tc),this.A.nb=a)}},itemArray:{get:function(){return this.Hh},set:function(a){var y=this.Hh;if(y!==a||a!==null&&bx(this,a)){var x=this.diagram;y!==a&&(x!==null&&y!==null&&cy(x.partManager,this,x),this.Hh=a,x!==null&&a!==null&&dy(x.partManager,this)),this.g("itemArray",y,a),x!==null&&x.undoManager.isUndoingRedoing||y1(this,a)}}},itemTemplate:{get:function(){return this.itemTemplateMap===null?null:this.itemTemplateMap.I("")},set:function(a){if(this.itemTemplateMap===null){if(a===null)return;this.itemTemplateMap=new $t}var y=this.itemTemplateMap.I("");y!==a&&((a instanceof ir||a.isPanelMain)&&Ve("Panel.itemTemplate must not be a Part or be Panel.isPanelMain: "+a),this.itemTemplateMap.add("",a),this.g("itemTemplate",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv())}},itemTemplateMap:{get:function(){return this.A!==null?this.A.Pc:null},set:function(a){var y=this.itemTemplateMap;if(y!==a){for(var x=a.iterator;x.next(););Vr(this),this.A.Pc=a,this.g("itemTemplateMap",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.mv()}}},itemCategoryProperty:{get:function(){return this.A!==null?this.A.Oc:"category"},set:function(a){var y=this.itemCategoryProperty;y!==a&&(Vr(this),this.A.Oc=a,this.g("itemCategoryProperty",y,a))}},isAtomic:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("isAtomic",y,a))}},isClipping:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this instanceof Or&&(this.tb=null),this.v(),this.g("isClipping",y,a))}},isOpposite:{get:function(){return(this.l&33554432)!==0},set:function(a){var y=(this.l&33554432)!==0;y!==a&&(this.l^=33554432,this.v(),this.g("isOpposite",y,a))}},isEnabled:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;if(y!==a){var x=this.panel===null||this.panel.If();this.l^=4194304,this.g("isEnabled",y,a),y=this.diagram,y!==null&&y.undoManager.isUndoingRedoing||x&&km(this,this,a)}}},alignmentFocusName:{get:function(){return this.$e},set:function(a){var y=this.$e;y!==a&&(this.$e=a,this.v(),this.g("alignmentFocusName",y,a))}}}),Ct.Object.defineProperties(ni,{Position:{get:function(){return Ql.I("Position")}},Horizontal:{get:function(){return Ql.I("Horizontal")}},Vertical:{get:function(){return Ql.I("Vertical")}},Spot:{get:function(){return Ql.I("Spot")}},Auto:{get:function(){return Ql.I("Auto")}},Table:{get:function(){return Ql.I("Table")}},Viewbox:{get:function(){return Ql.I("Viewbox")}},TableRow:{get:function(){return Ql.I("TableRow")}},TableColumn:{get:function(){return Ql.I("TableColumn")}},Link:{get:function(){return Ql.I("Link")}},Grid:{get:function(){return Ql.I("Grid")}},Graduated:{get:function(){return Ql.I("Graduated")}}}),ni.prototype.rebuildItemElements=ni.prototype.mv,ni.prototype.findItemPanelForData=ni.prototype.sx,ni.prototype.updateTargetBindings=ni.prototype.La,ni.prototype.copyTemplate=ni.prototype.Uy,ni.prototype.graduatedValueForPoint=ni.prototype.Gz,ni.prototype.graduatedPointForValue=ni.prototype.Fz,ni.prototype.findColumnForLocalX=ni.prototype.fz,ni.prototype.findRowForLocalY=ni.prototype.nz,ni.prototype.addColumnDefinition=ni.prototype.By,ni.prototype.addRowDefinition=ni.prototype.Hy,ni.prototype.addRowColumnDefinition=ni.prototype.Gy,ni.prototype.removeColumnDefinition=ni.prototype.jA,ni.prototype.getColumnDefinition=ni.prototype.Eb,ni.prototype.removeRowDefinition=ni.prototype.oA,ni.prototype.getRowDefinition=ni.prototype.Fb,ni.prototype.removeAt=ni.prototype.mb,ni.prototype.remove=ni.prototype.remove,ni.prototype.insertAt=ni.prototype.Gb,ni.prototype.elt=ni.prototype.M,ni.prototype.add=ni.prototype.add,ni.prototype.findObject=ni.prototype.fb,ni.prototype.findInVisualTree=ni.prototype.Nl,ni.prototype.walkVisualTreeFrom=ni.prototype.qm,ni.prototype.findMainElement=ni.prototype.Pb;var S1=!1,x1=null,Ql=new $t;ni.className="Panel",ni.definePanelLayout=Lu,Lu("Position",new mm),Lu("Vertical",new ym),Lu("Auto",new xm),Lu("Link",new Lm);function sh(){this.lq=0,this.F=100,this.ia=10,this.V=0,this.Zh=this.o=this.j=this.u=null}sh.prototype.copy=function(){var a=new sh;return a.lq=this.lq,a.F=this.F,a.ia=this.ia,a.V=this.V,a.u=this.u,a.j=this.j,a.o=this.o,a.Zh=this.Zh,a},sh.className="GradPanelSettings";function Ll(){this.Pc=[],this.Oc=[],this.j=this.ob=Nm,this.hb=this.Hb=0,this.Qp=Rr,this.Ha=1,this.V=this.ia=null,this.F=1,this.nb=this.o=this.u=null}Ll.prototype.copy=function(a){for(var y=new Ll,x=this.Pc,E=x.length,b=y.Pc,z=0;z<E;z++)if(x[z]!==void 0){var ee=x[z].copy();ee.wi(a),b[z]=ee}for(x=this.Oc,E=x.length,b=y.Oc,z=0;z<E;z++)x[z]!==void 0&&(ee=x[z].copy(),ee.wi(a),b[z]=ee);return y.ob=this.ob,y.j=this.j,y.Hb=this.Hb,y.hb=this.hb,y.Qp=this.Qp.J(),y.Ha=this.Ha,y.ia=this.ia,y.V=this.V,y.F=this.F,y.u=this.u,y.o=this.o,y.nb=this.nb,y},Ll.className="TablePanelSettings";function Ba(a){bi(this),this.Me=null,this.uq=!0,this.Za=0,this.Hc=NaN,this.jj=0,this.hj=1/0,this.Jb=Lo,this.pa=this.oc=this.oa=0,this.be=null,this.oo=bv,this.hg=Ir,this.lo=this.dg=null,this.mo=NaN,this.Ma=this.tj=null,this.Pm=!1,a&&(Object.assign(this,a),a.column!==void 0?(this.isRow=!1,this.index=a.column):a.row!==void 0&&(this.isRow=!0,this.index=a.row))}Ba.prototype.copy=function(){var a=new Ba;return a.uq=this.uq,a.Za=this.Za,a.Hc=this.Hc,a.jj=this.jj,a.hj=this.hj,a.Jb=this.Jb,a.oa=this.oa,a.oc=this.oc,a.pa=this.pa,a.hg=this.hg,a.oo=this.oo,this.dg===null?a.dg=null:a.dg=this.dg.J(),a.lo=this.lo,a.mo=this.mo,a.tj=null,this.tj!==null&&(a.separatorDashArray=Hn(this.separatorDashArray)),a.Ma=this.Ma,a.Pm=this.Pm,a.be=this.be,a};function Fm(a,y){y.isRow?a.height=y.height:a.width=y.width,a.minimum=y.minimum,a.maximum=y.maximum,a.alignment=y.alignment,a.stretch=y.stretch,a.sizing=y.sizing,a.dg=y.separatorPadding===null?null:y.separatorPadding.J(),a.separatorStroke=y.separatorStroke,a.separatorStrokeWidth=y.separatorStrokeWidth,a.tj=null,y.separatorDashArray&&(a.tj=Hn(y.separatorDashArray)),a.background=y.background,a.coversSeparators=y.coversSeparators,a.be=y.be}Ce=Ba.prototype,Ce.qb=function(a){a.classType===Ba&&(this.sizing=a)},Ce.toString=function(){return"RowColumnDefinition "+(this.isRow?"(Row ":"(Column ")+this.index+") #"+Nr(this)},Ce.wi=function(a){this.Me=a},Ce.Io=function(a){var y=0,x=this.Me;if(this.index!==a&&(a=this.separatorStroke,a===null&&x!==null&&(a=this.isRow?x.defaultRowSeparatorStroke:x.defaultColumnSeparatorStroke),a!==null&&(y=this.separatorStrokeWidth,isNaN(y)&&(x!==null?y=this.isRow?x.defaultRowSeparatorStrokeWidth:x.defaultColumnSeparatorStrokeWidth:y=0))),a=this.dg,a===null)if(x!==null)a=x.defaultSeparatorPadding;else return y;return y+(this.isRow?a.top:a.left)},Ce.Wc=function(){var a=0,y=this.Me,x=0,E=this.isRow;if(y!==null&&y.type===ni.Table)for(var b=E?y.rowDefs.length:y.colDefs.length,z=0;z<b;z++){var ee=E?y.rowDefs[z]:y.colDefs[z];if(ee!==void 0&&ee.oa!==0){x=ee.index;break}}if(this.index!==x&&(x=this.separatorStroke,x===null&&y!==null&&(x=E?y.defaultRowSeparatorStroke:y.defaultColumnSeparatorStroke),x!==null&&(a=this.separatorStrokeWidth,isNaN(a)&&(y!==null?a=E?y.defaultRowSeparatorStrokeWidth:y.defaultColumnSeparatorStrokeWidth:a=0))),E=this.dg,E===null)if(y!==null)E=y.defaultSeparatorPadding;else return a;return a+(this.isRow?E.top+E.bottom:E.left+E.right)},Ce.Ob=function(a,y,x){var E=this.Me;if(E!==null&&(E.cb(To,a,this,y,x,void 0,void 0),this.be!==null&&(y=E.diagram,y!==null&&!y.skipsModelSourceBindings&&(E=E.ih(),E!==null&&(y=E.data,y!==null)))))for(x=this.be.iterator;x.next();)x.value.sp(this,y,a,E)};function Dm(a){if(a.sizing===bv){var y=a.Me;return a.isRow?y.rowSizing:y.columnSizing}return a.sizing}Ce.bind=function(a,y,x,E){var b=null;return typeof a=="string"?b=new La(a,y,x,E):b=a,b.xd=this,a=this.panel,a!==null&&(y=a.ih(),y!==null&&v1(y)&&Ve("Cannot add a Binding to a RowColumnDefinition that is already frozen: "+b+" on "+a)),this.be===null&&(this.be=new cn),this.be.add(b),this},Ct.Object.defineProperties(Ba.prototype,{panel:{get:function(){return this.Me}},isRow:{get:function(){return this.uq},set:function(a){this.uq=a}},index:{get:function(){return this.Za},set:function(a){this.Za=a}},height:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Dn(a,">= 0",Ba,"height"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("height",y,a))}},width:{get:function(){return this.Hc},set:function(a){var y=this.Hc;y!==a&&(0>a&&Dn(a,">= 0",Ba,"width"),this.Hc=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("width",y,a))}},minimum:{get:function(){return this.jj},set:function(a){var y=this.jj;y!==a&&((0>a||!isFinite(a))&&Dn(a,">= 0",Ba,"minimum"),this.jj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("minimum",y,a))}},maximum:{get:function(){return this.hj},set:function(a){var y=this.hj;y!==a&&(0>a&&Dn(a,">= 0",Ba,"maximum"),this.hj=a,this.actual=this.oa,this.panel!==null&&this.panel.v(),this.Ob("maximum",y,a))}},alignment:{get:function(){return this.Jb},set:function(a){var y=this.Jb;y.D(a)||(this.Jb=a.J(),this.panel!==null&&this.panel.v(),this.Ob("alignment",y,a))}},stretch:{get:function(){return this.hg},set:function(a){var y=this.hg;y!==a&&(this.hg=a,this.panel!==null&&this.panel.v(),this.Ob("stretch",y,a))}},separatorPadding:{get:function(){return this.dg},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.dg;a!==null&&y!==null&&y.D(a)||(a!==null&&(a=a.J()),this.dg=a,this.panel!==null&&this.panel.v(),this.Ob("separatorPadding",y,a))}},separatorStroke:{get:function(){return this.lo},set:function(a){var y=this.lo;y!==a&&(a!==null&&Ic(a,"RowColumnDefinition.separatorStroke"),a instanceof wo&&a.freeze(),this.lo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStroke",y,a))}},separatorStrokeWidth:{get:function(){return this.mo},set:function(a){var y=this.mo;y!==a&&(this.mo=a,this.panel!==null&&this.panel.v(),this.Ob("separatorStrokeWidth",y,a))}},separatorDashArray:{get:function(){return this.tj},set:function(a){var y=this.tj;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];typeof z=="number"&&0<=z&&isFinite(z)||Ve("separatorDashArray value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.tj=a,this.panel!==null&&this.panel.N(),this.Ob("separatorDashArray",y,a)}}},background:{get:function(){return this.Ma},set:function(a){var y=this.Ma;y!==a&&(a!==null&&Ic(a,"RowColumnDefinition.background"),a instanceof wo&&a.freeze(),this.Ma=a,this.panel!==null&&this.panel.N(),this.Ob("background",y,a))}},coversSeparators:{get:function(){return this.Pm},set:function(a){var y=this.Pm;y!==a&&(this.Pm=a,this.panel!==null&&this.panel.N(),this.Ob("coversSeparators",y,a))}},sizing:{get:function(){return this.oo},set:function(a){var y=this.oo;y!==a&&(this.oo=a,this.panel!==null&&this.panel.v(),this.Ob("sizing",y,a))}},actual:{get:function(){return this.oa},set:function(a){this.oa=isNaN(this.Hc)?Math.max(Math.min(this.hj,a),this.jj):Math.max(Math.min(this.hj,this.Hc),this.jj)}},measured:{get:function(){return this.oc},set:function(a){this.oc=a}},total:{get:function(){return this.oa+this.Wc()}},position:{get:function(){return this.pa},set:function(a){this.pa=a}}}),Ba.prototype.computeEffectiveSpacing=Ba.prototype.Wc,Ba.prototype.computeEffectiveSpacingTop=Ba.prototype.Io;var bv=new En(Ba,"Default",0),qg=new En(Ba,"None",1),Nm=new En(Ba,"ProportionalExtra",2);Ba.className="RowColumnDefinition",Ba.Default=bv,Ba.None=qg,Ba.ProportionalExtra=Nm;function Wr(a,y){kt.call(this),this.Rd=this.ua=null,this.an="None",this.xc=this.Ui="black",this.ig=1,this.Na=this.Yg=null,this.Vn=this.Un=NaN,this.fa=null,typeof a=="string"?this.figure=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}xt(Wr,kt),Wr.prototype.cloneProtected=function(a){kt.prototype.cloneProtected.call(this,a),a.ua=this.ua,a.Rd=this.Rd,a.an=this.an,a.Ui=this.Ui,a.xc=this.xc,a.ig=this.ig,this.Yg!==null&&(a.Yg=Hn(this.Yg)),this.Na!==null&&(a.Na=this.Na.nc?this.Na:this.Na.copy()),a.Un=this.Un,a.Vn=this.Vn,this.fa!==null&&(a.fa=this.fa.copy())};function qd(a){a.Na===null?a.Na=new Fv:a.Na.nc&&(a.Na=a.Na.copy())}Ce=Wr.prototype,Ce.th=function(){kt.prototype.th.call(this),this.Na!==null&&(this.Na.nc=!0)},Ce.qb=function(a){a===Zn||a===Ki||a===$r||a===Ir?this.geometryStretch=a:kt.prototype.qb.call(this,a)},Ce.toString=function(){return"Shape("+(this.figure!=="None"?this.figure:this.toArrow!=="None"?this.toArrow:this.fromArrow)+")#"+Nr(this)};function Tf(a,y,x,E){var b=x.length;if(!(4>b)){var z=E.measuredBounds,ee=Math.max(1,z.width);z=z.height;for(var re=x[0],oe=x[1],se,ue,fe,ve,xe,Pe,Fe=0,Je=si(),We=2;We<b;We+=2)se=x[We],ue=x[We+1],fe=se-re,re=ue-oe,fe===0&&(fe=.001),ve=re/fe,xe=Math.atan2(re,fe),Pe=Math.sqrt(fe*fe+re*re),Je.push([fe,xe,ve,Pe]),Fe+=Pe,re=se,oe=ue;re=x[0],oe=x[1],fe=E.measuredBounds.width,E instanceof Wr&&(fe-=E.strokeWidth),1>fe&&(fe=1),b=x=fe,se=ee/2,ue=se!==0,We=0,Pe=Je[We],fe=Pe[0],xe=Pe[1],ve=Pe[2],Pe=Pe[3];for(var rt=0;.1<=Fe;){if(rt===0&&(ue?(b=x,b-=se,Fe-=se,ue=!1):b=x,b===0&&(b=1)),b>Fe){Pi(Je);return}b>Pe?(rt=b-Pe,b=Pe):rt=0;var at=Math.sqrt(b*b/(1+ve*ve));if(0>fe&&(at=-at),re+=at,oe+=ve*at,a.translate(re,oe),a.rotate(xe),a.translate(-(ee/2),-(z/2)),rt===0&&E.hh(a,y),a.translate(ee/2,z/2),a.rotate(-xe),a.translate(-re,-oe),Fe-=b,Pe-=b,rt!==0){if(We++,We===Je.length){Pi(Je);return}Pe=Je[We],fe=Pe[0],xe=Pe[1],ve=Pe[2],Pe=Pe[3],b=rt}}Pi(Je)}}Ce.hh=function(a,y){var x=this.xc,E=this.Ui;if(x!==null||E!==null){var b=this.ua;if(b!==null){a.yc();var z=this.actualBounds,ee=this.naturalBounds;E!==null&&ma(this,a,E,!0,!1,ee,z);var re=this.part,oe=this.ig;if(x===null||oe!==0||re===null||!this.isPanelMain&&re.Pb()!==this||(oe=re.type===ni.Link&&re instanceof uo&&re.category==="Selection"&&re.adornedObject instanceof Wr&&re.adornedPart.Pb()===re.adornedObject?re.adornedObject.strokeWidth:0),oe===0&&(x=null),x!==null&&oe!==0&&(ma(this,a,x,!1,!1,ee,z),a.lineWidth=oe,a.lineJoin=this.strokeJoin,a.lineCap=this.strokeCap,a.miterLimit=this.strokeMiterLimit),z=!1,re&&y.Gf("drawShadows")&&(z=re.isShadowed),a.Il===!1&&(z=!1),re=!0,x===null||E!==null&&E!=="transparent"||(re=!1),ee=!1,oe=this.strokeDashArray,oe!==null&&(ee=!0,a.js(oe,this.strokeDashOffset)),b.type===zn.j)a.beginPath(),a.moveTo(b.startX,b.startY),a.lineTo(b.endX,b.endY),x!==null&&a.jk(),a.Se();else if(b.type===zn.u){var se=b.startX;oe=b.startY;var ue=b.endX,fe=b.endY;b=Math.min(se,ue);var ve=Math.min(oe,fe);se=Math.abs(ue-se),oe=Math.abs(fe-oe),a.beginPath(),a.rect(b,ve,se,oe),E!==null&&a.ng(E),x!==null&&(re&&z&&zu(a),a.jk(),re&&z&&ih(a)),a.Se()}else if(b.type===zn.F)se=b.startX,oe=b.startY,ue=b.endX,fe=b.endY,b=Math.abs(ue-se)/2,ve=Math.abs(fe-oe)/2,se=Math.min(se,ue)+b,oe=Math.min(oe,fe)+ve,a.beginPath(),a.moveTo(se,oe-ve),a.bezierCurveTo(se+pt.wg*b,oe-ve,se+b,oe-pt.wg*ve,se+b,oe),a.bezierCurveTo(se+b,oe+pt.wg*ve,se+pt.wg*b,oe+ve,se,oe+ve),a.bezierCurveTo(se-pt.wg*b,oe+ve,se-b,oe+pt.wg*ve,se-b,oe),a.bezierCurveTo(se-b,oe-pt.wg*ve,se-pt.wg*b,oe-ve,se,oe-ve),a.closePath(),E!==null&&a.ng(E),x!==null&&(re&&z&&zu(a),a.jk(),re&&z&&ih(a)),a.Se();else if(b.type===zn.o)for(b=b.figures,oe=b.length,ve=0;ve<oe;ve++){se=b.s[ve],a.beginPath(),a.moveTo(se.startX,se.startY),ue=se.segments.s,fe=ue.length;for(var xe=null,Pe=0;Pe<fe;Pe++){var Fe=ue[Pe];switch(Fe.type){case ca:a.moveTo(Fe.endX,Fe.endY);break;case So:a.lineTo(Fe.endX,Fe.endY);break;case Sa:a.bezierCurveTo(Fe.point1X,Fe.point1Y,Fe.point2X,Fe.point2Y,Fe.endX,Fe.endY);break;case ds:a.quadraticCurveTo(Fe.point1X,Fe.point1Y,Fe.endX,Fe.endY);break;case ua:if(Fe.radiusX===Fe.radiusY){var Je=Math.PI/180;a.arc(Fe.point1X,Fe.point1Y,Fe.radiusX,Fe.startAngle*Je,(Fe.startAngle+Fe.sweepAngle)*Je,0>Fe.sweepAngle,xe!==null?xe.endX:se.startX,xe!==null?xe.endY:se.startY)}else if(xe=Ya(Fe,se),Je=xe.length,Je===0)a.lineTo(Fe.centerX,Fe.centerY);else for(var We=0;We<Je;We++){var rt=xe[We];We===0&&a.lineTo(rt[0],rt[1]),a.bezierCurveTo(rt[2],rt[3],rt[4],rt[5],rt[6],rt[7])}break;case cs:if(We=Je=0,xe!==null&&xe.type===ua){if(xe=Ya(xe,se),rt=xe.length,rt===0){a.lineTo(Fe.endX,Fe.endY);break}xe=xe[rt-1]||null,xe!==null&&(Je=xe[6],We=xe[7])}else Je=xe!==null?xe.endX:se.startX,We=xe!==null?xe.endY:se.startY;if(xe=ts(Fe,se,Je,We),Je=xe.length,Je===0){a.lineTo(Fe.endX,Fe.endY);break}for(We=0;We<Je;We++)rt=xe[We],a.bezierCurveTo(rt[2],rt[3],rt[4],rt[5],rt[6],rt[7]);break;default:Ve("Segment not of valid type: "+Fe.type)}Fe.isClosed&&a.closePath(),xe=Fe}ue=se.isFilled,z?se.isShadowed?(ue===!0&&E!=="transparent"&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&(ue&&re&&zu(a),a.jk(),ue&&re&&ih(a))):(zu(a),ue&&E!=="transparent"&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&a.jk(),ih(a)):(ue&&E!==null&&a.ng(E,se.isEvenOdd),x!==null&&a.jk()),a.Se(ve)}if(ee&&a.fs(),this.pathPattern!==null){if(x=this.pathPattern,x.measure(1/0,1/0),E=x.measuredBounds,x.arrange(0,0,E.width,E.height),z=this.geometry,a.save(),a.beginPath(),E=si(),z.type===zn.j)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.endY),Tf(a,y,E,x);else if(z.type===zn.o)for(z=z.figures.iterator;z.next();){for(re=z.value,E.length=0,E.push(re.startX),E.push(re.startY),ee=re.startX,b=re.startY,oe=ee,ve=b,se=re.segments.s,ue=se.length,fe=0;fe<ue;fe++){switch(Pe=se[fe],Pe.type){case ca:Tf(a,y,E,x),E.length=0,E.push(Pe.endX),E.push(Pe.endY),ee=Pe.endX,b=Pe.endY,oe=ee,ve=b;break;case So:E.push(Pe.endX),E.push(Pe.endY),ee=Pe.endX,b=Pe.endY;break;case Sa:pt.Qe(ee,b,Pe.point1X,Pe.point1Y,Pe.point2X,Pe.point2Y,Pe.endX,Pe.endY,.5,E),ee=Pe.endX,b=Pe.endY;break;case ds:pt.ep(ee,b,Pe.point1X,Pe.point1Y,Pe.endX,Pe.endY,.5,E),ee=Pe.endX,b=Pe.endY;break;case ua:if(Fe=Ya(Pe,re),xe=Fe.length,xe===0){E.push(Pe.centerX),E.push(Pe.centerY),ee=Pe.centerX,b=Pe.centerY;break}for(Je=0;Je<xe;Je++)We=Fe[Je],pt.Qe(ee,b,We[2],We[3],We[4],We[5],We[6],We[7],.5,E),ee=We[6],b=We[7];break;case cs:if(Fe=ts(Pe,re,ee,b),xe=Fe.length,xe===0){E.push(Pe.endX),E.push(Pe.endY),ee=Pe.endX,b=Pe.endY;break}for(Je=0;Je<xe;Je++)We=Fe[Je],pt.Qe(ee,b,We[2],We[3],We[4],We[5],We[6],We[7],.5,E),ee=We[6],b=We[7];break;default:Ve("Segment not of valid type: "+Pe.type)}Pe.isClosed&&(E.push(oe),E.push(ve),Tf(a,y,E,x))}Tf(a,y,E,x)}else if(z.type===zn.u)E.push(z.startX),E.push(z.startY),E.push(z.endX),E.push(z.startY),E.push(z.endX),E.push(z.endY),E.push(z.startX),E.push(z.endY),E.push(z.startX),E.push(z.startY),Tf(a,y,E,x);else if(z.type===zn.F){if(b=new da,b.startX=z.endX,b.startY=(z.startY+z.endY)/2,ee=new qr(ua),ee.startAngle=0,ee.sweepAngle=360,ee.centerX=(z.startX+z.endX)/2,ee.centerY=(z.startY+z.endY)/2,ee.radiusX=Math.abs(z.startX-z.endX)/2,ee.radiusY=Math.abs(z.startY-z.endY)/2,b.add(ee),z=Ya(ee,b),re=z.length,re===0)E.push(ee.centerX),E.push(ee.centerY);else for(ee=b.startX,b=b.startY,oe=0;oe<re;oe++)ve=z[oe],pt.Qe(ee,b,ve[2],ve[3],ve[4],ve[5],ve[6],ve[7],.5,E),ee=ve[6],b=ve[7];Tf(a,y,E,x)}Pi(E),a.restore(),a.Vc(!1)}}}},Ce.kk=function(a,y,x){return!kt.prototype.kk.call(this,a,y,x)||this.xc===null&&this.Ui===null||this.ua===null||this.pathPattern!==null||this.geometry.figures.length!==this.svg.getElementsByTagName("path").length?!1:(a.Hl=this.svg,this.hh(a,y),a.Hl=null,!0)},Ce.nk=function(a){return this.geometry!==null&&1<this.geometry.figures.length||this.pathPattern!==null?!0:kt.prototype.nk.call(this,a)},Ce.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("path");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ce.ga=function(a,y){if(y===void 0&&(y=new Te),a instanceof ii){a.Mc()&&Ve("getDocumentPoint Spot must be a real, specific Spot, not: "+a.toString());var x=this.naturalBounds,E=this.strokeWidth;y.h(a.x*(x.width+E)-E/2+x.x+a.offsetX,a.y*(x.height+E)-E/2+x.y+a.offsetY)}else y.set(a);return this.oe.Ga(y),y},Ce.mi=function(a){a===void 0&&(a=new ut);var y=this.naturalBounds,x=this.oe;y=ut.allocAt(y.x,y.y,y.width,y.height);var E=this.strokeWidth;return y.Bc(E/2,E/2),E=Te.allocAt(y.x,y.y).transform(x),a.h(E.x,E.y,0,0),E.h(y.right,y.y).transform(x),Bi(a,E.x,E.y,0,0),E.h(y.right,y.bottom).transform(x),Bi(a,E.x,E.y,0,0),E.h(y.x,y.bottom).transform(x),Bi(a,E.x,E.y,0,0),ut.free(y),Te.free(E),a},Ce.gh=function(a,y){var x=this.geometry;if(x===null||this.fill===null&&this.stroke===null)return!1;var E=x.bounds,b=this.strokeWidth/2;x.type!==zn.j||y||(b+=2);var z=ut.alloc();if(z.assign(E),z.Bc(b+2,b+2),!z.ca(a))return ut.free(z),!1;if(E=b+1e-4,x.type===zn.j)return this.stroke===null||(E=(x.endX-x.startX)*(a.x-x.startX)+(x.endY-x.startY)*(a.y-x.startY),0>(x.startX-x.endX)*(a.x-x.endX)+(x.startY-x.endY)*(a.y-x.endY)||0>E)?!1:(ut.free(z),pt.Yb(x.startX,x.startY,x.endX,x.endY,b,a.x,a.y));if(x.type===zn.u){y=x.startX;var ee=x.startY,re=x.endX;if(x=x.endY,z.x=Math.min(y,re),z.y=Math.min(ee,x),z.width=Math.abs(re-y),z.height=Math.abs(x-ee),this.fill===null){if(z.Bc(-E,-E),z.ca(a))return ut.free(z),!1;z.Bc(E,E)}return this.stroke!==null&&z.Bc(b,b),a=z.ca(a),ut.free(z),a}if(x.type===zn.F){ee=x.startX,b=x.startY,re=x.endX;var oe=x.endY;if(x=Math.min(ee,re),y=Math.min(b,oe),ee=Math.abs(re-ee)/2,b=Math.abs(oe-b)/2,x=a.x-(x+ee),y=a.y-(y+b),this.fill===null){if(ee-=E,b-=E,0>=ee||0>=b||1>=x*x/(ee*ee)+y*y/(b*b))return ut.free(z),!1;ee+=E,b+=E}return this.stroke!==null&&(ee+=E,b+=E),ut.free(z),0>=ee||0>=b?!1:1>=x*x/(ee*ee)+y*y/(b*b)}if(x.type===zn.o)return ut.free(z),this.fill===null?ya(x,a.x,a.y,b):aa(x,a,b,1<this.strokeWidth,y);Ve("Unknown Geometry type: "+x.type)},Ce.Wl=function(a,y,x,E){var b=this.desiredSize,z=this.ig;if(a=Math.max(a,0),y=Math.max(y,0),this.Rd!==null)var ee=this.geometry.bounds;else{var re=this.figure,oe=kv[re];if(oe===void 0){var se=pt.Ze[re];typeof se=="string"&&(se=pt.Ze[se]),typeof se=="function"?(oe=se(null,100,100),kv[re]=oe):Ve("Unsupported Figure: "+re)}ee=oe.bounds}re=ee.width,oe=ee.height,se=ee.width;var ue=ee.height;switch(zs(this,!0)){case Zn:E=x=0;break;case qn:se=Math.max(a-z,0),ue=Math.max(y-z,0);break;case qi:se=Math.max(a-z,0),E=0;break;case mr:x=0,ue=Math.max(y-z,0)}isFinite(b.width)&&(se=b.width),isFinite(b.height)&&(ue=b.height);var fe=this.maxSize,ve=this.minSize;switch(x=Math.max(x-z,ve.width),E=Math.max(E-z,ve.height),se=Math.min(fe.width,se),ue=Math.min(fe.height,ue),se=isFinite(se)?Math.max(x,se):Math.max(re,x),ue=isFinite(ue)?Math.max(E,ue):Math.max(oe,E),x=Mv(this),x){case Zn:break;case qn:re=se,oe=ue;break;case Ki:x=Math.min(se/re,ue/oe),isFinite(x)||(x=1),re*=x,oe*=x;break;default:Ve(x+" is not a valid geometryStretch.")}this.Rd!==null?(re===0&&(re=.001),oe===0&&(oe=.001),x=this.Rd!==null?this.Rd:this.ua,ee=x.bounds,E=re/ee.width,ee=oe/ee.height,isFinite(E)||(E=1),isFinite(ee)||(ee=1),this.ua=E===1&&ee===1?x:x.copy().scale(E,ee)):this.ua!==null&&pt.$(this.ua.Sk,a-z)&&pt.$(this.ua.Rk,y-z)||(this.ua=Wr.makeGeometry(this,re,oe)),ee=this.ua.bounds,a===1/0||y===1/0?this.Ge(ee.x-z/2,ee.y-z/2,a===0&&re===0?0:ee.width+z,y===0&&oe===0?0:ee.height+z):this.Ge(-(z/2),-(z/2),se+z,ue+z),b.w()?(se=b.width,ue=b.height,se=Math.min(fe.width,se),ue=Math.min(fe.height,ue),se=Math.max(ve.width,se),ue=Math.max(ve.height,ue),this.dc.h(0,0,se,ue)):this.dc.assign(ee)};function Mv(a){var y=a.geometryStretch;return a.Rd!==null?y===Ir?qn:y:y===Ir?kv[a.figure].defaultStretch:y}Ce.eh=function(a,y,x,E){Ss(this,a,y,x,E)},Ce.rs=function(a,y,x){return this.Sj(a.x,a.y,y.x,y.y,x)},Ce.Sj=function(a,y,x,E,b){var z=this.transform,ee=1/(z.m11*z.m22-z.m12*z.m21),re=z.m22*ee,oe=-z.m12*ee,se=-z.m21*ee,ue=z.m11*ee,fe=ee*(z.m21*z.dy-z.m22*z.dx),ve=ee*(z.m12*z.dx-z.m11*z.dy);z=a*re+y*se+fe,ee=a*oe+y*ue+ve,re=x*re+E*se+fe,oe=x*oe+E*ue+ve,fe=this.ig/2,se=this.ua,se===null&&(this.measure(1/0,1/0),se=this.ua);var xe=se.bounds;if(ue=!1,se.type===zn.j)if(1.5>=this.strokeWidth)ue=pt.Ve(se.startX,se.startY,se.endX,se.endY,z,ee,re,oe,b);else{if(se.startX===se.endX?(E=fe,ue=0):(y=(se.endY-se.startY)/(se.endX-se.startX),ue=fe/Math.sqrt(1+y*y),E=ue*y),y=si(),a=new Te,pt.Ve(se.startX+E,se.startY+ue,se.endX+E,se.endY+ue,z,ee,re,oe,a)&&y.push(a),a=new Te,pt.Ve(se.startX-E,se.startY-ue,se.endX-E,se.endY-ue,z,ee,re,oe,a)&&y.push(a),a=new Te,pt.Ve(se.startX+E,se.startY+ue,se.startX-E,se.startY-ue,z,ee,re,oe,a)&&y.push(a),a=new Te,pt.Ve(se.endX+E,se.endY+ue,se.endX-E,se.endY-ue,z,ee,re,oe,a)&&y.push(a),re=y.length,re===0)return Pi(y),!1;for(ue=!0,oe=1/0,E=0;E<re;E++)a=y[E],x=(a.x-z)*(a.x-z)+(a.y-ee)*(a.y-ee),x<oe&&(oe=x,b.x=a.x,b.y=a.y);Pi(y)}else if(se.type===zn.u)ue=pt.Ff(xe.x-fe,xe.y-fe,xe.x+xe.width+fe,xe.y+xe.height+fe,z,ee,re,oe,b);else if(se.type===zn.F){y=ut.allocAt(xe.x,xe.y,xe.width,xe.height).Bc(fe,fe);e:if(y.width===0)ue=pt.Ve(y.x,y.y,y.x,y.y+y.height,z,ee,re,oe,b);else if(y.height===0)ue=pt.Ve(y.x,y.y,y.x+y.width,y.y,z,ee,re,oe,b);else{if(a=y.width/2,se=y.height/2,E=y.x+a,ue=y.y+se,x=9999,z!==re&&(x=(ee-oe)/(z-re)),9999>Math.abs(x)){if(oe=ee-ue-x*(z-E),0>a*a*x*x+se*se-oe*oe){b.x=NaN,b.y=NaN,ue=!1;break e}fe=Math.sqrt(a*a*x*x+se*se-oe*oe),re=(-(a*a*x*oe)+a*se*fe)/(se*se+a*a*x*x)+E,a=(-(a*a*x*oe)-a*se*fe)/(se*se+a*a*x*x)+E,se=x*(re-E)+oe+ue,oe=x*(a-E)+oe+ue,Math.abs((z-re)*(z-re))+Math.abs((ee-se)*(ee-se))<Math.abs((z-a)*(z-a))+Math.abs((ee-oe)*(ee-oe))?(b.x=re,b.y=se):(b.x=a,b.y=oe)}else{if(re=se*se,oe=z-E,re-=re/(a*a)*oe*oe,0>re){b.x=NaN,b.y=NaN,ue=!1;break e}oe=Math.sqrt(re),re=ue+oe,oe=ue-oe,Math.abs(re-ee)<Math.abs(oe-ee)?(b.x=z,b.y=re):(b.x=z,b.y=oe)}ue=!0}ut.free(y)}else if(se.type===zn.o){ve=Te.alloc();var Pe=re-z,Fe=oe-ee,Je=Pe*Pe+Fe*Fe,We=z,rt=ee;if(0<Je&&xe.contains(We,rt)&&(ve.x=We,ve.y=rt,this.ca(ve)))for(Pe!==0&&.5>Math.abs(Pe)?(Fe*=.5/Pe,Pe=.5):Fe!==0&&.5>Math.abs(Fe)&&(Pe*=.5/Fe,Fe=.5),We-=Pe,rt-=Fe;xe.contains(We,rt);)We-=Pe,rt-=Fe;for(b.x=re,b.y=oe,Fe=0;Fe<se.figures.count;Fe++){var at=se.figures.s[Fe],ht=at.isFilled?We:z,bt=at.isFilled?rt:ee,Jt=at.segments;xe=at.startX,Pe=at.startY;for(var Ci=xe,ji=Pe,Ti=0;Ti<Jt.count;Ti++){var ui=Jt.s[Ti],In=ui.type,Tr=ui.endX,Lr=ui.endY,ho=!1;switch(In){case ca:Ci=Tr,ji=Lr;break;case So:ho=Tm(xe,Pe,Tr,Lr,ht,bt,re,oe,ve);break;case Sa:ho=pt.Eo(xe,Pe,ui.point1X,ui.point1Y,ui.point2X,ui.point2Y,Tr,Lr,ht,bt,re,oe,.6,ve);break;case ds:ho=pt.Eo(xe,Pe,xe+2/3*(ui.point1X-xe),Pe+2/3*(ui.point1Y-Pe),Tr+2/3*(ui.point1X-Tr),Lr+2/3*(ui.point1Y-Lr),Tr,Lr,ht,bt,re,oe,.6,ve);break;case ua:case cs:In=ui.type===ua?Ya(ui,at):ts(ui,at,xe,Pe);var Io=In.length;if(Io===0){ho=Tm(xe,Pe,ui.type===ua?ui.centerX:ui.endX,ui.type===ua?ui.centerY:ui.endY,ht,bt,re,oe,ve);break}for(Lr=null,Tr=0;Tr<Io;Tr++){if(Lr=In[Tr],Tr===0&&Tm(xe,Pe,Lr[0],Lr[1],ht,bt,re,oe,ve)){var Wa=Bm(ht,bt,ve,Je,b);Wa<Je&&(Je=Wa,ue=!0)}pt.Eo(Lr[0],Lr[1],Lr[2],Lr[3],Lr[4],Lr[5],Lr[6],Lr[7],ht,bt,re,oe,.6,ve)&&(Wa=Bm(ht,bt,ve,Je,b),Wa<Je&&(Je=Wa,ue=!0))}Tr=Lr[6],Lr=Lr[7];break;default:Ve("Unknown Segment type: "+In)}xe=Tr,Pe=Lr,ho&&(ho=Bm(ht,bt,ve,Je,b),ho<Je&&(Je=ho,ue=!0)),ui.isClosed&&(Tr=Ci,Lr=ji,Tm(xe,Pe,Tr,Lr,ht,bt,re,oe,ve)&&(ui=Bm(ht,bt,ve,Je,b),ui<Je&&(Je=ui,ue=!0)))}}z=x-a,ee=E-y,re=Math.sqrt(z*z+ee*ee),re!==0&&(z/=re,ee/=re),b.x-=z*fe,b.y-=ee*fe,Te.free(ve)}else Ve("Unknown Geometry type: "+se.type);return ue?(this.transform.Ga(b),!0):!1};function Bm(a,y,x,E,b){return a=x.x-a,y=x.y-y,y=a*a+y*y,y<E?(b.x=x.x,b.y=x.y,y):E}function Tm(a,y,x,E,b,z,ee,re,oe){if(pt.$(a,x)&&pt.$(y,E)||pt.$(b,ee)&&pt.$(z,re))return!1;var se=!1,ue=(b-ee)*(y-E)-(z-re)*(a-x);return ue===0?!1:(oe.x=((b*re-z*ee)*(a-x)-(b-ee)*(a*E-y*x))/ue,oe.y=((b*re-z*ee)*(y-E)-(z-re)*(a*E-y*x))/ue,(a>x?a-x:x-a)<(y>E?y-E:E-y)?(a=y<E?y:E,y=y<E?E:y,(oe.y>a||pt.$(oe.y,a))&&(oe.y<y||pt.$(oe.y,y))&&(se=!0)):(y=a<x?a:x,a=a<x?x:a,(oe.x>y||pt.$(oe.x,y))&&(oe.x<a||pt.$(oe.x,a))&&(se=!0)),se)}Ce.fh=function(a,y){if(y===void 0)return a.Re(this.actualBounds);var x=this.ua;x===null&&(this.measure(1/0,1/0),x=this.ua),x=x.bounds;var E=this.strokeWidth/2,b=!1,z=Te.alloc();return z.h(x.x-E,x.y-E),a.ca(y.Ga(z))&&(z.h(x.x-E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.bottom+E),a.ca(y.Ga(z))&&(z.h(x.right+E,x.y-E),a.ca(y.Ga(z))&&(b=!0)))),Te.free(z),b},Ce.Yc=function(a,y){if(this.fh(a,y)||y===void 0&&(y=this.transform,a.Re(this.actualBounds)))return!0;var x=vi.alloc();x.set(y),x.Vj();var E=a.left,b=a.right,z=a.top;a=a.bottom;var ee=Te.alloc();if(ee.h(E,z),x.Ga(ee),this.gh(ee,!0)||(ee.h(b,z),x.Ga(ee),this.gh(ee,!0))||(ee.h(E,a),x.Ga(ee),this.gh(ee,!0))||(ee.h(b,a),x.Ga(ee),this.gh(ee,!0)))return Te.free(ee),!0;var re=Te.alloc(),oe=Te.alloc();return x.set(y),x.bv(this.transform),x.Vj(),re.x=b,re.y=z,re.transform(x),ee.x=E,ee.y=z,ee.transform(x),y=!1,$d(this,ee,re,oe)?y=!0:(ee.x=b,ee.y=a,ee.transform(x),$d(this,ee,re,oe)?y=!0:(re.x=E,re.y=a,re.transform(x),$d(this,ee,re,oe)?y=!0:(ee.x=E,ee.y=z,ee.transform(x),$d(this,ee,re,oe)&&(y=!0)))),Te.free(ee),vi.free(x),Te.free(re),Te.free(oe),y};function $d(a,y,x,E){if(!a.rs(y,x,E))return!1;a=y.x,y=y.y;var b=x.x,z=x.y;return x=E.x,E=E.y,a===b?(y<z?(a=y,y=z):a=z,E>=a&&E<=y):(a<b?(E=a,a=b):E=b,x>=E&&x<=a)}Ce.tx=function(a,y,x){function E(Je,We){for(var rt=Je.length,at=0;at<rt;at+=2)if(We.zd(Je[at],Je[at+1])>b)return!0;return!1}if(x&&this.fill!==null&&this.gh(a,!0))return!0;var b=a.Bf(y),z=b;if(1.5<this.strokeWidth&&(b=this.strokeWidth/2+Math.sqrt(b),b*=b),y=this.ua,y===null&&(this.measure(1/0,1/0),y=this.ua,y===null))return!1;if(!x){var ee=y.bounds,re=ee.x,oe=ee.y,se=ee.x+ee.width;if(ee=ee.y+ee.height,li(a.x,a.y,re,oe)<=b&&li(a.x,a.y,se,oe)<=b&&li(a.x,a.y,re,ee)<=b&&li(a.x,a.y,se,ee)<=b)return!0}if(re=y.startX,oe=y.startY,se=y.endX,ee=y.endY,y.type===zn.j){if(x=(re-se)*(a.x-se)+(oe-ee)*(a.y-ee),on(a.x,a.y,re,oe,se,ee)<=(0<=(se-re)*(a.x-re)+(ee-oe)*(a.y-oe)&&0<=x?b:z))return!0}else{if(y.type===zn.u)return y=!1,x&&(y=on(a.x,a.y,re,oe,re,ee)<=b||on(a.x,a.y,re,oe,se,oe)<=b||on(a.x,a.y,se,oe,se,ee)<=b||on(a.x,a.y,re,ee,se,ee)<=b),y;if(y.type===zn.F){y=a.x-(re+se)/2,z=a.y-(oe+ee)/2;var ue=Math.abs(se-re)/2,fe=Math.abs(ee-oe)/2;if(ue===0||fe===0)return on(a.x,a.y,re,oe,se,ee)<=b;if(x){if(a=pt.$y(ue,fe,y,z),a*a<=b)return!0}else return!(li(y,z,-ue,0)>=b||li(y,z,0,-fe)>=b||li(y,z,0,fe)>=b||li(y,z,ue,0)>=b)}else if(y.type===zn.o){if(se=y.bounds,z=se.x,re=se.y,oe=se.x+se.width,se=se.y+se.height,a.x>oe&&a.x<z&&a.y>se&&a.y<re&&on(a.x,a.y,z,re,z,se)>b&&on(a.x,a.y,z,re,oe,re)>b&&on(a.x,a.y,oe,se,z,se)>b&&on(a.x,a.y,oe,se,oe,re)>b)return!1;if(z=Math.sqrt(b),x){if(this.fill===null?ya(y,a.x,a.y,z):aa(y,a,z,!0,!1))return!0}else{for(x=y.figures,y=0;y<x.count;y++){if(z=x.s[y],ee=z.startX,ue=z.startY,a.zd(ee,ue)>b)return!1;for(re=z.segments.s,oe=re.length,se=0;se<oe;se++)switch(fe=re[se],fe.type){case ca:case So:if(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>b)return!1;break;case Sa:var ve=si();if(pt.Qe(ee,ue,fe.point1X,fe.point1Y,fe.point2X,fe.point2Y,fe.endX,fe.endY,.8,ve),ee=E(ve,a),Pi(ve),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>b))return!1;break;case ds:if(ve=si(),pt.ep(ee,ue,fe.point1X,fe.point1Y,fe.endX,fe.endY,.8,ve),ee=E(ve,a),Pi(ve),ee||(ee=fe.endX,ue=fe.endY,a.zd(ee,ue)>b))return!1;break;case ua:case cs:ve=fe.type===ua?Ya(fe,z):ts(fe,z,ee,ue);var xe=ve.length;if(xe===0){if(ee=fe.type===ua?fe.centerX:fe.endX,ue=fe.type===ua?fe.centerY:fe.endY,a.zd(ee,ue)>b)return!1;break}fe=null;for(var Pe=si(),Fe=0;Fe<xe;Fe++)if(fe=ve[Fe],Pe.length=0,pt.Qe(fe[0],fe[1],fe[2],fe[3],fe[4],fe[5],fe[6],fe[7],.8,Pe),E(Pe,a))return Pi(Pe),!1;Pi(Pe),fe!==null&&(ee=fe[6],ue=fe[7]);break;default:Ve("Unknown Segment type: "+fe.type)}}return!0}}}return!1},Ce.qc=function(){this.ua=null},Ce.kq=function(){return this.ig};function w1(a){var y=a.diagram;y!==null&&y.undoManager.isUndoingRedoing||(a.segmentOrientation=sp,a.toArrow!=="None"?(a.segmentIndex=-1,a.alignmentFocus=vo):a.fromArrow!=="None"&&(a.segmentIndex=0,a.alignmentFocus=new ii(1-vo.x,vo.y)))}Wr.makeGeometry=function(a,y,x){if(a.toArrow!=="None")var E=Wu[a.toArrow];else a.fromArrow!=="None"?E=Wu[a.fromArrow]:(E=pt.Ze[a.figure],typeof E=="string"&&(E=pt.Ze[E]),E===void 0&&Ve("Unknown Shape.figure: "+a.figure),E=E(a,y,x),E.Sk=y,E.Rk=x);if(E===null){var b=pt.Ze.Rectangle;typeof b=="function"&&(E=b(a,y,x))}return E};function P1(a){var y=Wu[a];if(y===void 0){var x=a.toLowerCase();if(x==="none")return"None";if(y=Wu[x],y===void 0){var E=null,b;for(b in pt.um)if(b.toLowerCase()===x){E=b;break}if(E!==null)return a=zn.parse(pt.um[E],!1),Wu[E]=a,x!==E&&(Wu[x]=E),E}}return typeof y=="string"?y:y instanceof zn?a:null}Ct.Object.defineProperties(Wr.prototype,{geometry:{get:function(){return this.ua!==null?this.ua:this.Rd},set:function(a){var y=this.ua,x=this.Rd;if(y!==a){a!==null?this.Rd=this.ua=a.freeze():this.Rd=this.ua=null;var E=this.part;E!==null&&(E.ag=NaN),this.v(),this.g("geometry",y||x,a),is(this)&&(a=this.part,a!==null&&_o(this,a,"geometryString"))}}},geometryString:{get:function(){return this.geometry===null?"":this.geometry.toString()},set:function(a){a=zn.parse(a);var y=a.normalize();this.geometry=a,this.position=a=Te.allocAt(-y.x,-y.y),Te.free(a)}},isGeometryPositioned:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.v(),this.g("isGeometryPositioned",y,a))}},fill:{get:function(){return this.Ui},set:function(a){var y=this.Ui;y!==a&&(a!==null&&Ic(a,"Shape.fill"),a instanceof wo&&a.freeze(),this.Ui=a,this.N(),this.g("fill",y,a))}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ic(a,"Shape.stroke"),a instanceof wo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},strokeWidth:{get:function(){return this.ig},set:function(a){var y=this.ig;if(y!==a)if(0<=a){this.ig=a,this.v();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeWidth",y,a)}else Dn(a,"value >= 0",Wr,"strokeWidth:value")}},strokeCap:{get:function(){return this.Na!==null?this.Na.Hr:"butt"},set:function(a){var y=this.strokeCap;y!==a&&(typeof a!="string"||a!=="butt"&&a!=="round"&&a!=="square"?Dn(a,'"butt", "round", or "square"',Wr,"strokeCap"):(qd(this),this.Na.Hr=a,this.N(),this.g("strokeCap",y,a)))}},strokeJoin:{get:function(){return this.Na!==null?this.Na.Ir:"miter"},set:function(a){var y=this.strokeJoin;y!==a&&(typeof a!="string"||a!=="miter"&&a!=="bevel"&&a!=="round"?Dn(a,'"miter", "bevel", or "round"',Wr,"strokeJoin"):(qd(this),this.Na.Ir=a,this.N(),this.g("strokeJoin",y,a)))}},strokeMiterLimit:{get:function(){return this.Na!==null?this.Na.Jr:10},set:function(a){var y=this.strokeMiterLimit;if(y!==a&&1<=a){qd(this),this.Na.Jr=a,this.N();var x=this.part;x!==null&&(x.ag=NaN),this.g("strokeMiterLimit",y,a)}}},strokeDashArray:{get:function(){return this.Yg},set:function(a){var y=this.Yg;if(y!==a){if(a!==null){for(var x=a.length,E=0,b=0;b<x;b++){var z=a[b];0<=z&&isFinite(z)||Ve("strokeDashArray:value "+z+" at index "+b+" must be a positive number or zero."),E+=z}if(E===0){if(y===null)return;a=null}}this.Yg=a,this.N(),this.g("strokeDashArray",y,a)}}},strokeDashOffset:{get:function(){return this.Na!==null?this.Na.uj:0},set:function(a){var y=this.strokeDashOffset;y!==a&&0<=a&&(qd(this),this.Na.uj=a,this.N(),this.g("strokeDashOffset",y,a))}},figure:{get:function(){return this.an},set:function(a){var y=this.an;if(y!==a){var x=pt.Ze[a];typeof x=="function"?x=a:(x=pt.Ze[a.toLowerCase()])||Ve("Unknown Shape.figure: "+a),y!==x&&(a=this.part,a!==null&&(a.ag=NaN),this.an=x,this.Rd=null,this.qc(),this.v(),this.g("figure",y,x))}}},toArrow:{get:function(){return this.Ua!==null?this.Ua.V:"None"},set:function(a){var y=this.toArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=P1(a);x===null?Ve("Unknown Shape.toArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ud),this.Ua.V=x,this.Rd=null,this.qc(),this.v(),w1(this),this.g("toArrow",y,x))}}},fromArrow:{get:function(){return this.Ua!==null?this.Ua.j:"None"},set:function(a){var y=this.fromArrow;if(a===!0?a="Standard":a===!1&&(a=""),y!==a){var x=P1(a);x===null?Ve("Unknown Shape.fromArrow: "+a):y!==x&&(this.Ua===null&&(this.Ua=new ud),this.Ua.j=x,this.Rd=null,this.qc(),this.v(),w1(this),this.g("fromArrow",y,x))}}},spot1:{get:function(){return this.Na!==null?this.Na.fg:Lo},set:function(a){var y=this.spot1;y.D(a)||(a=a.J(),qd(this),this.Na.fg=a,this.v(),this.g("spot1",y,a))}},spot2:{get:function(){return this.Na!==null?this.Na.gg:Lo},set:function(a){var y=this.spot2;y.D(a)||(a=a.J(),qd(this),this.Na.gg=a,this.v(),this.g("spot2",y,a))}},parameter1:{get:function(){return this.Un},set:function(a){var y=this.Un;y!==a&&(this.Un=a,this.qc(),this.v(),this.g("parameter1",y,a))}},parameter2:{get:function(){return this.Vn},set:function(a){var y=this.Vn;y!==a&&(this.Vn=a,this.qc(),this.v(),this.g("parameter2",y,a))}},naturalBounds:{get:function(){return this.dc}},pathPattern:{get:function(){return this.Na!==null?this.Na.br:null},set:function(a){var y=this.pathPattern;y!==a&&(qd(this),this.Na.br=a,this.N(),this.g("pathPattern",y,a))}},geometryStretch:{get:function(){return this.Na!==null?this.Na.jq:Ir},set:function(a){var y=this.geometryStretch;y!==a&&(qd(this),this.Na.jq=a,this.v(),this.g("geometryStretch",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Hu),this.fa.Tk=a;var x=this.diagram;x!==null&&this.panel===x.grid&&Cu(x),this.v(),x=this.panel,x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Hu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}}}),Wr.prototype.intersectsRect=Wr.prototype.Yc,Wr.prototype.containedInRect=Wr.prototype.fh,Wr.prototype.getNearestIntersectionPoint=Wr.prototype.rs,Wr.prototype.getDocumentBounds=Wr.prototype.mi,Wr.prototype.getDocumentPoint=Wr.prototype.ga;var Wu=new Wi,kv=new Wi;Wr.className="Shape",Wr.getFigureGenerators=function(){var a=new $t,y;for(y in pt.Ze)y!==y.toLowerCase()&&a.add(y,pt.Ze[y]);return a.freeze(),a},Wr.defineFigureGenerator=function(a,y){var x=a.toLowerCase(),E=pt.Ze;E[a]=y,E[x]=a},Wr.getArrowheadGeometries=function(){var a=new $t;for(E in pt.um)if(Wu[E]===void 0){var y=zn.parse(pt.um[E],!1);Wu[E]=y,y=E.toLowerCase(),y!==E&&(Wu[y]=E)}for(var x in Wu)if(x!==x.toLowerCase()){var E=Wu[x];E instanceof zn&&a.add(x,E)}return a.freeze(),a},Wr.defineArrowheadGeometry=function(a,y){var x=null;typeof y=="string"?x=zn.parse(y,!1):x=y,y=a.toLowerCase(),y!=="none"&&a!==y||Ve("Shape.defineArrowheadGeometry name must not be empty or None or all-lower-case: "+a);var E=Wu;E[a]=x,E[y]=a};function Fv(){this.nc=!1,this.Hr="butt",this.Ir="miter",this.Jr=10,this.uj=0,this.br=null,this.jq=Ir,this.gg=this.fg=Lo}Fv.prototype.copy=function(){var a=new Fv;return a.Hr=this.Hr,a.Ir=this.Ir,a.Jr=this.Jr,a.uj=this.uj,a.br=this.br,a.jq=this.jq,a.fg=this.fg.J(),a.gg=this.gg.J(),a};function jo(a,y){return kt.call(this),jm||(js=fa?new zl(null).context:null,jm=!0),this.l|=2097152,this.ec="",this.xc="black",this.Ae="13px sans-serif",this.Lq=this.Cb=this.Gc=0,this.da=this.fa=this.Gm=null,this.Ih=0,this.df=null,this.Le=0,this.ze=this.Qb=this.Qc=null,typeof a=="string"?this.text=a:a&&Object.assign(this,a),y&&Object.assign(this,y),this}xt(jo,kt),jo.prototype.cloneProtected=function(a){kt.prototype.cloneProtected.call(this,a),a.ec=this.ec,a.xc=this.xc,a.Ae=this.Ae,a.Gc=this.Gc,a.Cb=this.Cb,a.Lq=this.Lq,a.Gm=this.Gm,this.fa!==null&&(a.fa=this.fa.copy()),this.da!==null&&(a.da=this.da.nc?this.da:this.da.copy()),a.Ih=this.Ih,a.df=this.df,a.Le=this.Le,a.Qc=this.Qc,a.Qb=this.Qb,a.ze=this.ze};function bu(a){a.da===null?a.da=new Rv:a.da.nc&&(a.da=a.da.copy())}Ce=jo.prototype,Ce.th=function(){kt.prototype.th.call(this),this.da!==null&&(this.da.nc=!0)};function C1(a,y){a.l=y.l|6144,a.pb=y.opacity,a.Ma=y.background,a.areaBackground=y.areaBackground,a.jd=y.desiredSize.J(),a.minSize=y.minSize.J(),a.maxSize=y.maxSize.J(),y.Lb!==null?a.Lb=y.Lb.copy():a.Lb=null,a.Ca=y.scale,a.Kb=y.angle,a.stretch=y.stretch,a.Kg=y.margin.J(),a.Jb=y.alignment.J(),a.sk=y.alignmentFocus.J(),a.segmentFraction=y.segmentFraction,a.segmentOffset=y.segmentOffset.J(),a.segmentOrientation=y.segmentOrientation,y.tb!==null&&(a.tb=y.tb.copy()),a.shadowVisible=y.shadowVisible,a.ec=y.ec,a.xc=y.xc,a.Ae=y.Ae,a.fa!==null&&(a.fa=y.fa.copy()),y.da!==null&&(a.da=y.da.nc?y.da:y.da.copy()),a.Ih=y.Ih}Ce.qb=function(a){a.classType===jo?this.wrap=a:kt.prototype.qb.call(this,a)},Ce.toString=function(){return 22<this.ec.length?'TextBlock("'+this.ec.substring(0,20)+'"...)':'TextBlock("'+this.ec+'")'},Ce.v=function(){kt.prototype.v.call(this)},Ce.hh=function(a,y){if(this.xc!==null&&this.ec.length!==0&&this.Ae!==null){var x=this.naturalBounds,E=this.actualBounds,b=x.width,z=x.height,ee=ep(this),re=a.textAlign=this.textAlign,oe=y.tn;re==="start"?re=oe?"right":"left":re==="end"&&(re=oe?"left":"right"),oe=this.isUnderline;var se=this.isStrikethrough;ma(this,a,this.xc,!0,!1,x,E),(oe||se)&&ma(this,a,this.xc,!1,!1,x,E),E=0,x=!1;var ue=this.oe,fe=ue.dx-(ee*ue.m21+ue.dx);ue=ue.dy-(ee*ue.m22+ue.dy);var ve=y.scale;switch(8>(fe*fe+ue*ue)*ve*ve&&(x=!0),y.ib!==a&&(x=!1),y.ib instanceof el&&(x=!1),y.Gf("textGreeking")===!1&&(x=!1),y=this.spacingAbove,fe=this.spacingBelow,this.flip){case oo:a.translate(b,0),a.scale(-1,1);break;case Gr:a.translate(0,z),a.scale(1,-1);break;case ko:a.translate(b,z),a.scale(-1,-1)}if(a.yc(),ue=this.Gc,ve=(y+ee+fe)*ue,z>ve&&(E=this.verticalAlignment,E=E.y*z-E.y*ve+E.offsetY),ue===1&&this.ze!==null)fe=this.Cb,fe>b&&(fe=b),this.Oj(this.ze,a,0,E+y,b,ee,fe,x,re,oe,se);else if(this.Qc!==null&&this.Qb!==null)for(ve=0;ve<ue;ve++){var xe=this.Qc[ve];xe>b&&(xe=b),E+=y,this.Oj(this.Qb[ve],a,0,E,b,ee,xe,x,re,oe,se),E+=ee+fe}switch(this.flip){case oo:a.scale(-1,1),a.translate(-b,0);break;case Gr:a.scale(1,-1),a.translate(0,-z);break;case ko:a.scale(-1,-1),a.translate(-b,-z)}}},Ce.Oj=function(a,y,x,E,b,z,ee,re,oe,se,ue){var fe=0;if(re)oe==="left"?fe=0:oe==="right"?fe=b-ee:oe==="center"&&(fe=(b-ee)/2),y.fillRect(x+fe,E+.25*z,ee,1);else{if(oe==="left"?fe=0:oe==="right"?fe=b:oe==="center"&&(fe=b/2),b=Om!==null?Om(this,z):.75*z,y.fillText(a,x+fe,E+b),a=z/20|0,a===0&&(a=1),oe==="right"?fe-=ee:oe==="center"&&(fe-=ee/2),se){re=Im!==null?Im(this,z):.8*z,oe=x+fe,se=E+re,b=x+fe+ee,re=E+re;var ve=a;y.beginPath(),y.lineWidth=ve,y.moveTo(oe,se),y.lineTo(b,re),y.stroke(),y.Se(),y instanceof el&&y.ad.classList.add("gojs-td")}ue&&(ue=E+z-z/2.2|0,a%2!==0&&(ue+=.5),E=x+fe,z=ue,x=x+fe+ee,ee=ue,fe=a,y.beginPath(),y.lineWidth=fe,y.moveTo(E,z),y.lineTo(x,ee),y.stroke(),y.Se(),y instanceof el&&y.ad.classList.add("gojs-td"))}},Ce.kk=function(a,y,x){if(!kt.prototype.kk.call(this,a,y,x))return!1;if(ma(this,a,this.xc,!0,!1,this.naturalBounds,this.actualBounds),x){if(this.svg.getElementsByTagName("text").length===0)return!0;for(y=this.svg.getElementsByClassName("gojs-td"),x=0;x<y.length;x++)n1(a,y[x],!1)}else y=this.svg,y.innerHTML=this.text,n1(a,y,!0);return!0},Ce.nk=function(a){return 1<this.lineCount||this.isUnderline||this.isStrikethrough?!0:kt.prototype.nk.call(this,a)},Ce.Dv=function(a,y){if(a.nodeName!=="g")a.setAttributeNS(null,"filter",y);else{a=a.getElementsByTagName("text");for(var x=0;x<a.length;x++)a[x].setAttributeNS(null,"filter",y)}},Ce.Wl=function(a,y,x,E){var b=this.Gc;this.Ih=a,this.l&=-16777217;var z=this.Ae;js!==null&&F1!==z&&(F1=js.font=z),this.Cb=this.Le=0,this.ze=this.Qb=this.Qc=this.df=null;var ee;if(isNaN(this.desiredSize.width)){if(z=this.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),z.length===0)z=8;else if(this.isMultiline){for(var re=ee=0,oe=!1;!oe;){var se=z.indexOf(`
|
|
`,re);se===-1&&(se=z.length,oe=!0),re=z.substr(re,se-re),this.formatting===tp&&(re=re.trim()),ee=Math.max(ee,ql(re)),re=se+1}z=ee}else ee=z.indexOf(`
|
|
`,0),0<=ee&&(z=z.substr(0,ee)),z=ql(z);z=Math.min(z,a/this.scale)}else z=this.desiredSize.width;if(this.panel!==null&&(z=Math.min(z,this.panel.maxSize.width)),ee=A1(this,z),isNaN(this.desiredSize.height)?ee=Math.min(ee,y/this.scale):ee=this.desiredSize.height,oe=ee,this.Cb!==0&&this.Qc!==null&&this.Qb!==null&&this.overflow===Rm&&(y=this.Ae,y=this.overflow===Rm?E1(y):0,se=this.spacingAbove+this.spacingBelow,se=Math.max(0,ep(this)+se),oe=Math.min(this.maxLines-1,Math.max(Math.floor(oe/se+.01)-1,0)),!(oe+1>=this.Qb.length))){for(this.l|=16777216,se=this.Qb[oe],y=Math.max(1,a-y);ql(se)>y&&1<se.length;)se=se.substr(0,se.length-1);se+=np,y=ql(se),this.Qb[oe]=se,this.Qb=this.Qb.slice(0,oe+1),this.Qc[oe]=y,this.Qc=this.Qc.slice(0,oe+1),this.Le=this.Qb.length,this.Cb=Math.max(this.Cb,y),this.Gc=this.Le,this.Gc===1&&(this.ze=this.Qb[0])}(this.wrap===L1||isNaN(this.desiredSize.width))&&(z=isNaN(a)?this.Cb:Math.min(a,this.Cb)),z=Math.max(x,z),ee=Math.max(E,ee),Qn(this.dc,z,ee),this.Ge(0,0,z,ee),this.svg!==null&&b!==this.Gc&&(this.Uc=!0)},Ce.eh=function(a,y,x,E){Ss(this,a,y,x,E)};function $g(a,y,x){a.ze===null?(a.ze=y,a.Cb=x):((a.Qb===null||a.Qc===null)&&(a.Qb=[],a.Qc=[],a.Qb.push(a.ze),a.Qc.push(a.Cb)),a.Qb.push(y),a.Qc.push(x),a.Qb.length>a.maxLines&&(a.l|=16777216))}function Dv(a,y,x,E){var b=a.formatting===tp;b&&(y=y.trim());var z=0,ee=a.Ae,re=a.spacingAbove+a.spacingBelow;re=Math.max(0,ep(a)+re);var oe=a.overflow===Rm?E1(ee):0;if(a.Gc>=a.maxLines)E!==null&&E.h(0,re);else if(ee=y,a.wrap===Nv){a.Le=1;var se=ql(y);if(oe===0||se<=x)a.Cb=Math.max(a.Cb,se),$g(a,y,a.Cb),E!==null&&E.h(se,re);else{for(z=Of(a,ee),ee=ee.substr(z.length),y=Of(a,ee),se=ql(z+y);0<y.length&&se<=x;)z+=y,ee=ee.substr(y.length),y=Of(a,ee),se=z+y,b&&(se=se.trim()),se=ql(se);for(b&&(y=y.trim()),z+=y,x=Math.max(1,x-oe);ql(z)>x&&1<z.length;)z=z.substr(0,z.length-1);a.l|=16777216,z+=np;var ue=ql(z);a.Cb=ue,$g(a,z,ue),E!==null&&E.h(ue,re)}}else{for(oe=0,ee.length===0&&(oe=1,$g(a,ee,0));0<ee.length;){for(y=Of(a,ee),ee=ee.substr(y.length);ql(y)>x;){var fe=1;for(se=ql(y.substr(0,fe)),ue=0;se<=x;)fe++,ue=se,se=ql(y.substr(0,fe));if(fe===1){var ve=se;z=Math.max(z,se)}else ve=ue,z=Math.max(z,ue);if(fe--,1>fe&&(fe=1),$g(a,y.substr(0,fe),ve),oe++,y=y.substr(fe),a.Gc+oe>a.maxLines)break}for(ue=Of(a,ee),se=ql(y+ue);0<ue.length&&se<=x;)y+=ue,ee=ee.substr(ue.length),ue=Of(a,ee),se=y+ue,b&&(se=se.trim()),se=ql(se);if(b&&(y=y.trim()),y!==""&&(y[y.length-1]==="\xAD"&&(y=y.substring(0,y.length-1)+"\u2010"),ue.length===0?(fe=se,z=Math.max(z,se)):(fe=ue=ql(y),z=Math.max(z,ue)),$g(a,y,fe),oe++,a.Gc+oe>a.maxLines))break}a.Le=Math.min(a.maxLines,oe),a.Cb=Math.max(a.Cb,z),E!==null&&E.h(a.Cb,re*a.Le)}}function Of(a,y){if(a.wrap===b1)return y.substr(0,1);for(var x=y.length,E=0,b=Mx;E<x&&!b.test(y.charAt(E));)E++;for(a.formatting===M1&&(x=Math.min(x,E+1));E<x&&b.test(y.charAt(E));)E++;return E>=y.length?y:y.substr(0,E)}function ql(a){return js===null?8*a.length:js.measureText(a).width}function ep(a){if(a.df!==null)return a.df;var y=a.Ae;if(js===null){var x=16;return a.df=x}return Ov[y]!==void 0&&5e3>k1?x=Ov[y]:(x=1.3*js.measureText("M").width,Ov[y]=x,k1++),a.df=x}function E1(a){if(js===null)return 6;if(zm[a]!==void 0&&5e3>Iv)var y=zm[a];else y=js.measureText(np).width,zm[a]=y,Iv++;return y}function A1(a,y){var x=a.ec.replace(/\r\n/g,`
|
|
`).replace(/\r/g,`
|
|
`),E=a.spacingAbove+a.spacingBelow;if(E=Math.max(0,ep(a)+E),x.length===0)return a.Cb=0,a.Gc=1,E;if(!a.isMultiline){var b=x.indexOf(`
|
|
`,0);0<=b&&(x=x.substr(0,b))}b=0;for(var z=a.Gc=0,ee,re=!1;!re;){if(ee=x.indexOf(`
|
|
`,z),ee===-1&&(ee=x.length,re=!0),z<=ee){if(z=x.substr(z,ee-z),a.wrap!==Nv){a.Le=0;var oe=Re.alloc();Dv(a,z,y,oe),b+=oe.height,Re.free(oe),a.Gc+=a.Le}else Dv(a,z,y,null),b+=E,a.Gc++;a.Gc===a.maxLines&&(re=!0)}z=ee+1}return a.Lq=b}Ct.Object.defineProperties(jo.prototype,{font:{get:function(){return this.Ae},set:function(a){var y=this.Ae;y!==a&&(this.Ae=a,this.df=null,this.v(),this.g("font",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;a!=null?a=a.toString():a="",y!==a&&(this.ec=a,this.v(),this.g("text",y,a),this.Uc=!0)}},textAlign:{get:function(){return this.da!==null?this.da.Or:"start"},set:function(a){var y=this.textAlign;y===a||a!=="start"&&a!=="end"&&a!=="left"&&a!=="right"&&a!=="center"||(bu(this),this.da.Or=a,this.N(),this.g("textAlign",y,a))}},flip:{get:function(){return this.da!==null?this.da.Xf:Zn},set:function(a){var y=this.flip;y!==a&&(bu(this),this.da.Xf=a,this.N(),this.g("flip",y,a))}},verticalAlignment:{get:function(){return this.da!==null?this.da.Yr:zo},set:function(a){var y=this.verticalAlignment;y.D(a)||(a=a.J(),bu(this),this.da.Yr=a,As(this),this.g("verticalAlignment",y,a))}},naturalBounds:{get:function(){if(!this.dc.w()){var a=Re.alloc();Dv(this,this.ec,999999,a);var y=a.width;Re.free(a),a=A1(this,y);var x=this.desiredSize;isNaN(x.width)||(y=x.width),isNaN(x.height)||(a=x.height),Qn(this.dc,y,a)}return this.dc}},isMultiline:{get:function(){return(this.l&2097152)!==0},set:function(a){var y=(this.l&2097152)!==0;y!==a&&(this.l^=2097152,this.v(),this.g("isMultiline",y,a))}},isUnderline:{get:function(){return(this.l&4194304)!==0},set:function(a){var y=(this.l&4194304)!==0;y!==a&&(this.l^=4194304,this.Uc=!0,this.N(),this.g("isUnderline",y,a))}},isStrikethrough:{get:function(){return(this.l&8388608)!==0},set:function(a){var y=(this.l&8388608)!==0;y!==a&&(this.l^=8388608,this.Uc=!0,this.N(),this.g("isStrikethrough",y,a))}},wrap:{get:function(){return this.da!==null?this.da.$r:Bv},set:function(a){var y=this.wrap;y!==a&&(bu(this),this.da.$r=a,this.v(),this.g("wrap",y,a))}},overflow:{get:function(){return this.da!==null?this.da.$q:Tv},set:function(a){var y=this.overflow;y!==a&&(bu(this),this.da.$q=a,this.v(),this.g("overflow",y,a))}},isOverflowed:{get:function(){return(this.l&16777216)!==0}},stroke:{get:function(){return this.xc},set:function(a){var y=this.xc;y!==a&&(a!==null&&Ic(a,"TextBlock.stroke"),a instanceof wo&&a.freeze(),this.xc=a,this.N(),this.g("stroke",y,a))}},lineCount:{get:function(){return this.Gc}},lineHeight:{get:function(){return ep(this)}},editable:{get:function(){return(this.l&1048576)!==0},set:function(a){var y=(this.l&1048576)!==0;y!==a&&(this.l^=1048576,this.g("editable",y,a))}},textEditor:{get:function(){return this.da!==null?this.da.Qr:null},set:function(a){var y=this.textEditor;y!==a&&(bu(this),this.da.Qr=a,this.g("textEditor",y,a))}},errorFunction:{get:function(){return this.da!==null?this.da.Hd:null},set:function(a){var y=this.errorFunction;y!==a&&(bu(this),this.da.Hd=a,this.g("errorFunction",y,a))}},interval:{get:function(){return this.fa!==null?this.fa.Tk:1},set:function(a){var y=this.interval;if(a=Math.round(a),y!==a&&a!==0&&isFinite(a)){this.fa===null&&(this.fa=new Hu),this.fa.Tk=a,this.v();var x=this.panel;x!==null&&(x.graduatedIntervals=null),this.g("interval",y,a)}}},graduatedStart:{get:function(){return this.fa!==null?this.fa.u:0},set:function(a){var y=this.graduatedStart;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.u=a,this.v(),this.g("graduatedStart",y,a))}},graduatedEnd:{get:function(){return this.fa!==null?this.fa.j:1},set:function(a){var y=this.graduatedEnd;y!==a&&(0>a?a=0:1<a&&(a=1),this.fa===null&&(this.fa=new Hu),this.fa.j=a,this.v(),this.g("graduatedEnd",y,a))}},graduatedFunction:{get:function(){return this.fa!==null?this.fa.F:null},set:function(a){var y=this.graduatedFunction;y!==a&&(this.fa===null&&(this.fa=new Hu),this.fa.F=a,this.v(),this.g("graduatedFunction",y,a))}},graduatedSkip:{get:function(){return this.fa!==null?this.fa.o:null},set:function(a){var y=this.graduatedSkip;y!==a&&(this.fa===null&&(this.fa=new Hu),this.fa.o=a,this.v(),this.g("graduatedSkip",y,a))}},textValidation:{get:function(){return this.da!==null?this.da.vj:null},set:function(a){var y=this.textValidation;y!==a&&(bu(this),this.da.vj=a,this.g("textValidation",y,a))}},textEdited:{get:function(){return this.da!==null?this.da.Pr:null},set:function(a){var y=this.textEdited;y!==a&&(bu(this),this.da.Pr=a,this.g("textEdited",y,a))}},spacingAbove:{get:function(){return this.da!==null?this.da.Dr:0},set:function(a){var y=this.spacingAbove;y!==a&&(bu(this),this.da.Dr=a,this.v(),this.g("spacingAbove",y,a))}},spacingBelow:{get:function(){return this.da!==null?this.da.Er:0},set:function(a){var y=this.spacingBelow;y!==a&&(bu(this),this.da.Er=a,this.v(),this.g("spacingBelow",y,a))}},formatting:{get:function(){return this.da!==null?this.da.gq:tp},set:function(a){var y=this.formatting;y!==a&&(bu(this),this.da.gq=a,this.v(),this.g("formatting",y,a))}},maxLines:{get:function(){return this.da!==null?this.da.Jq:1/0},set:function(a){var y=this.maxLines;y!==a&&(a=Math.floor(a),0>=a&&Dn(a,"> 0",jo,"maxLines"),bu(this),this.da.Jq=a,this.v(),this.g("maxLines",y,a))}},metrics:{get:function(){return{arrSize:this.Qc!==null?this.Qc:[this.Cb],arrText:this.Qb!==null?this.Qb:[this.ze],maxLineWidth:this.Cb,fontHeight:this.df}}},choices:{get:function(){return this.Gm},set:function(a){var y=this.Gm;y!==a&&(this.Gm=a,this.g("choices",y,a))}}});var Om=null,Im=null,Nv=new En(jo,"None",0),L1=new En(jo,"WrapFit",1),Bv=new En(jo,"WrapDesiredSize",2),b1=new En(jo,"WrapBreakAll",3),Tv=new En(jo,"OverflowClip",0),Rm=new En(jo,"OverflowEllipsis",1),tp=new En(jo,"FormatTrim",0),M1=new En(jo,"FormatNone",0),Mx=/[ \u200b\u00ad]/,Ov=new Wi,k1=0,zm=new Wi,Iv=0,np="...",F1="",js=null,jm=!1;jo.className="TextBlock";function Rv(){this.nc=!1,this.Hd=null,this.Xf=Zn,this.gq=tp,this.Jq=1/0,this.$q=Tv,this.Er=this.Dr=0,this.Or="start",this.vj=this.Qr=this.Pr=null,this.Yr=zo,this.$r=Bv}Rv.prototype.copy=function(){var a=new Rv;return a.Hd=this.Hd,a.Xf=this.Xf,a.gq=this.gq,a.Jq=this.Jq,a.$q=this.$q,a.Dr=this.Dr,a.Er=this.Er,a.Or=this.Or,a.Pr=this.Pr,a.Qr=this.Qr,a.vj=this.vj,a.Yr=this.Yr,a.$r=this.$r,a},jo.getEllipsis=function(){return np},jo.setEllipsis=function(a){np=a,zm=new Wi,Iv=0},jo.getBaseline=function(){return Om},jo.setBaseline=function(a){Om=a},jo.getUnderline=function(){return Im},jo.setUnderline=function(a){Im=a},jo.isValidFont=function(a){if(jm||(js=fa?new zl(null).context:null,jm=!0),js===null)return!0;var y=js.font;if(a===y||a==="10px sans-serif")return!0;js.font="10px sans-serif",js.font=a;var x=js.font;if(x!=="10px sans-serif")return js.font=y,!0;js.font="19px serif";var E=js.font;return js.font=a,x=js.font,js.font=y,x!==E},jo.FormatNone=M1,jo.FormatTrim=tp,jo.None=Nv,jo.OverflowClip=Tv,jo.OverflowEllipsis=Rm,jo.WrapBreakAll=b1,jo.WrapDesiredSize=Bv,jo.WrapFit=L1;function Hu(){this.Tk=1,this.u=0,this.j=1,this.o=this.F=null}Hu.prototype.copy=function(){var a=new Hu;return a.Tk=this.Tk,a.u=this.u,a.j=this.j,a.F=this.F,a.o=this.o,a},Hu.className="GradElementSettings";function Ws(a,y){kt.call(this),this.Eg=null,this.qo="",this.Xg=Hr,this.Nk=qn,this.Zg=this.Hd=null,this.Mk=Mi,this.Xf=Zn,this.vl=null,this.qn=!1,this.en=!0,this.al=!1,this.bt=this.rl=null,typeof a=="string"?this.source=a:a&&Object.assign(this,a),y&&Object.assign(this,y)}var If;xt(Ws,kt),Ws.prototype.cloneProtected=function(a){kt.prototype.cloneProtected.call(this,a),a.qo=this.qo,a.element=this.Eg,a.Xg=this.Xg.J(),a.Nk=this.Nk,a.Xf=this.Xf,a.Hd=this.Hd,a.Zg=this.Zg,a.Mk=this.Mk.J(),a.en=this.en,a.rl=this.rl},Ws.prototype.qb=function(a){a===Zn||a===Ki||a===$r?this.imageStretch=a:kt.prototype.qb.call(this,a)},Ws.prototype.toString=function(){return"Picture("+this.source+")#"+Nr(this)};function Rf(a){a===void 0&&(a=""),a!==""?If[a]&&(delete If[a],Wm--):(If=new Wi,Wm=0)}function D1(a,y){y.qy||(y.Fq=function(x){y.sq=!0,y.ln=!1;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value;b.N();var z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null)for(var re=ee.length,oe=0;oe<re;oe++)z=ee[oe],b.Xn.add(z),z.Uc=!0,b.$b(),y.hn&&(y.eu===void 0&&(y.eu=x),z.Zg!==null&&z.Zg(z,x))}y.Bg.clear()}a.desiredSize.w()||(Na(a,!1),a.v())},y.Yp=function(x){y.ln=x;var E=y.Bg.copy();if(E!=null){for(E=E.iterator;E.next();){var b=E.value,z=y.getAttribute("src")||"",ee=b.Og.I(z);if(ee!==null){b=ee.length,z=si();for(var re=0;re<b;re++)z.push(ee[re]);if(y.hn)for(re=0;re<b;re++)ee=z[re],ee.Hd!==null&&ee.Hd(ee,x);Pi(z)}}y.Bg.clear()}},y.addEventListener("load",y.Fq),y.addEventListener("error",y.Yp),y.qy=!0)}Ws.prototype.hA=function(){if(this.source!==""){Rf(this.source);var a=this.source;this.source="",this.source=a}},Ws.prototype.redraw=function(){this.N(),this.Uc=!0},Ws.prototype.hh=function(a,y){var x=this.Eg;if(x!==null){var E=x.getAttribute("src");if(!(x instanceof HTMLImageElement&&(E===null||E==="")||x.ln instanceof Event&&a instanceof Jd)){var b=a instanceof el;E=this.naturalBounds;var z=0,ee=0,re=this.qn,oe=re?+x.width:x.naturalWidth;if(re=re?+x.height:x.naturalHeight,oe===void 0&&x.videoWidth&&(oe=x.videoWidth),re===void 0&&x.videoHeight&&(re=x.videoHeight),oe=oe||E.width,re=re||E.height,oe!==0&&re!==0){var se=oe,ue=re;this.sourceRect.w()&&(z=this.Xg.x,ee=this.Xg.y,oe=this.Xg.width,re=this.Xg.height);var fe=oe,ve=re,xe=this.Nk,Pe=this.Mk;switch(xe){case Zn:if(this.sourceRect.w())break;fe>=E.width&&(z=z+Pe.offsetX+(fe*Pe.x-E.width*Pe.x)),ve>=E.height&&(ee=ee+Pe.offsetY+(ve*Pe.y-E.height*Pe.y)),oe=Math.min(E.width,fe),re=Math.min(E.height,ve);break;case qn:fe=E.width,ve=E.height;break;case Ki:case $r:xe===Ki?(xe=Math.min(E.height/ve,E.width/fe),fe*=xe,ve*=xe):xe===$r&&(xe=Math.max(E.height/ve,E.width/fe),fe*=xe,ve*=xe,fe>=E.width&&(z=(z+Pe.offsetX+(fe*Pe.x-E.width*Pe.x)/fe)*oe),ve>=E.height&&(ee=(ee+Pe.offsetY+(ve*Pe.y-E.height*Pe.y)/ve)*re),oe*=1/(fe/E.width),re*=1/(ve/E.height),fe=E.width,ve=E.height)}xe=this.Df()*y.scale;var Fe=fe*xe*ve*xe,Je=oe*re/Fe,We=x.__goCache;xe=null;var rt=kx;if(!b){if(x.sq&&We!==void 0&&4<Fe&&Je>rt*rt)for(We.gi===null&&(B1(We,4,se,ue,x),B1(We,16,se,ue,x)),b=We.gi,se=b.length,ue=0;ue<se&&b[ue].ratio*b[ue].ratio<Je;ue++)xe=b[ue];if(!y.Xm){if(this.vl===null)if(this.Eg===null)this.vl=!1;else{b=new zl(null).context;try{b.drawImage(this.Eg,0,0)}catch(at){this.en=!1}try{b.getImageData(0,0,1,1).data[3]&&(this.vl=!1),this.vl=!1}catch(at){this.vl=!0}}if(this.vl)return}}switch(b=fe<E.width?Pe.offsetX+(E.width*Pe.x-fe*Pe.x):0,Pe=ve<E.height?Pe.offsetY+(E.height*Pe.y-ve*Pe.y):0,this.flip){case oo:a.translate(Math.min(E.width,fe),0),a.scale(-1,1);break;case Gr:a.translate(0,Math.min(E.height,ve)),a.scale(1,-1);break;case ko:a.translate(Math.min(E.width,fe),Math.min(E.height,ve)),a.scale(-1,-1)}if(a.yc(),y.Gf("pictureRatioOptimization")&&!y.$i&&We!==void 0&&xe!==null&&xe.ratio!==1){a.save(),y=xe.ratio;try{a.drawImage(xe.source,z/y,ee/y,Math.min(xe.source.width,oe/y),Math.min(xe.source.height,re/y),b,Pe,Math.min(E.width,fe),Math.min(E.height,ve)),a instanceof el&&(this.bt=[z/y,ee/y,Math.min(xe.source.width,oe/y),Math.min(xe.source.height,re/y),b,Pe,Math.min(E.width,fe),Math.min(E.height,ve)])}catch(at){this.en=!1}a.restore()}else try{a.drawImage(x,z,ee,oe,re,b,Pe,Math.min(E.width,fe),Math.min(E.height,ve)),a instanceof el&&(this.bt=[z,ee,oe,re,b,Pe,Math.min(E.width,fe),Math.min(E.height,ve)])}catch(at){this.en=!1}switch(this.flip){case oo:a.scale(-1,1),a.translate(-Math.min(E.width,fe),0);break;case Gr:a.scale(1,-1),a.translate(0,-Math.min(E.height,ve));break;case ko:a.scale(-1,-1),a.translate(-Math.min(E.width,fe),-Math.min(E.height,ve))}}}}},Ws.prototype.Wl=function(a,y,x,E){var b=this.desiredSize,z=zs(this,!0),ee=this.Eg,re=this.qn,oe=0,se=0;(re||!this.al&&ee&&ee.complete)&&(this.al=!0),ee===null?(isFinite(b.width)||(a=0),isFinite(b.height)||(y=0)):(oe=re?+ee.width:ee.naturalWidth,se=re?+ee.height:ee.naturalHeight),isFinite(b.width)||z===qn||z===qi?(isFinite(a)||(this.sourceRect.w()?a=this.sourceRect.width:ee!==null&&(a=oe)),x=0):ee!==null&&this.al!==!1&&(a=this.sourceRect.w()?this.sourceRect.width:oe),isFinite(b.height)||z===qn||z===mr?(isFinite(y)||(this.sourceRect.w()?y=this.sourceRect.height:ee!==null&&(y=se)),E=0):ee!==null&&this.al!==!1&&(y=this.sourceRect.w()?this.sourceRect.height:se),isFinite(b.width)&&(a=b.width),isFinite(b.height)&&(y=b.height),b=this.maxSize,z=this.minSize,x=Math.max(x||0,z.width),E=Math.max(E||0,z.height),a=Math.min(b.width,a),y=Math.min(b.height,y),a=Math.max(x,a),y=Math.max(E,y),ee===null||ee.complete||(isFinite(a)||(a=0),isFinite(y)||(y=0)),Qn(this.dc,a,y),this.Ge(0,0,a,y)},Ws.prototype.eh=function(a,y,x,E){Ss(this,a,y,x,E)},Ct.Object.defineProperties(Ws.prototype,{element:{get:function(){return this.Eg},set:function(a){var y=this.Eg;if(this.Uc=!0,y!==a){this.qn=a instanceof HTMLCanvasElement;var x=a instanceof HTMLImageElement;a===null||x||a instanceof HTMLVideoElement||this.qn||Ve("Picture.element must be an instance of Image, Canvas, or Video, not: "+a);var E=this.diagram;E!==null&&Og(E,this),this.Eg=a,a!==null&&x&&a.Bg===void 0&&(a.Bg=new yn),E!==null&&x&&ad(E,this),a!==null&&(this.qn||a.complete===!0?(a.hn&&(a.ln instanceof Event&&this.Hd!==null?this.Hd(this,a.ln):a.sq===!0&&!a.ln&&this.Zg!==null&&a.eu&&this.Zg(this,a.eu)),a.sq=!0,this.desiredSize.w()||(Na(this,!1),this.v())):x&&D1(this,a)),this.g("element",y,a),this.N()}}},source:{get:function(){return this.qo},set:function(a){var y=this.qo;if(y!==a){this.Uc=!0,this.qo=a;var x=If;if(fa){var E=null;if(x[a]!==void 0)E=x[a];else if(a!==""){30<Wm&&(Rf(),x=If),E=fr("img"),E.hn=!0,D1(this,E);var b=this.rl;b!==null&&(E.crossOrigin=b(this)),E.src=a,x[a]=E,Wm++}this.element=E,E!==null&&E.__goCache===void 0&&(E.__goCache=new N1),this.v(),this.N()}this.g("source",y,a)}}},sourceCrossOrigin:{get:function(){return this.rl},set:function(a){if(this.rl!==a&&(this.rl=a,this.element!==null)){var y=this.element.getAttribute("src");a===null&&typeof y=="string"?this.element.crossOrigin=null:a!==null&&(this.element.crossOrigin=a(this)),this.element.src=y}}},sourceRect:{get:function(){return this.Xg},set:function(a){var y=this.Xg;y.D(a)||(this.Xg=a=a.J(),this.N(),this.g("sourceRect",y,a))}},imageStretch:{get:function(){return this.Nk},set:function(a){var y=this.Nk;y!==a&&(this.Nk=a,this.N(),this.g("imageStretch",y,a))}},flip:{get:function(){return this.Xf},set:function(a){var y=this.Xf;y!==a&&(this.Xf=a,this.N(),this.g("flip",y,a))}},imageAlignment:{get:function(){return this.Mk},set:function(a){var y=this.Mk;y.D(a)||(this.Mk=a=a.J(),this.N(),this.g("imageAlignment",y,a))}},errorFunction:{get:function(){return this.Hd},set:function(a){var y=this.Hd;y!==a&&(this.Hd=a,this.g("errorFunction",y,a))}},successFunction:{get:function(){return this.Zg},set:function(a){var y=this.Zg;y!==a&&(this.Zg=a,this.g("successFunction",y,a))}},naturalBounds:{get:function(){return this.dc}}}),Ws.prototype.redraw=Ws.prototype.redraw,Ws.prototype.reloadSource=Ws.prototype.hA;var Wm=0,kx=4;Ws.className="Picture",If=new Wi,Ws.clearCache=Rf;function N1(){this.gi=null}function B1(a,y,x,E,b){a.gi===null&&(a.gi=[]);var z=new zl(null),ee=z.context,re=1/y;z.width=x/y,z.height=E/y,z.width!==0&&z.height!==0&&(y=new T1(z.Oa,y),x=1,0<a.gi.length&&(x=a.gi[a.gi.length-1],b=x.source,x=x.ratio),ee.setTransform(re*x,0,0,re*x,0,0),ee.yc(),ee.drawImage(b,0,0),a.gi.push(y))}N1.className="PictureCacheArray";function T1(a,y){this.source=a,this.ratio=y}T1.className="PictureCacheInstance";function zf(){this.os=new zn,this.mc=null}zf.prototype.reset=function(a){a!==null?(a.ka(),this.os=a,a.figures.clear()):this.os=new zn,this.mc=null};function jf(a,y,x,E,b,z){a.mc=new da,a.mc.startX=y,a.mc.startY=x,a.mc.isFilled=E,a.mc.isEvenOdd=z||!1,a.os.figures.add(a.mc),b!==void 0&&(a.mc.isShadowed=b)}function Fx(a){var y=a.mc.segments.length;0<y&&a.mc.segments.M(y-1).close()}zf.prototype.moveTo=function(a,y,x){x===void 0&&(x=!1);var E=new qr(ca);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)},zf.prototype.lineTo=function(a,y,x){x===void 0&&(x=!1);var E=new qr(So);E.endX=a,E.endY=y,x&&E.close(),this.mc.segments.add(E)};function Fh(a,y,x,E,b,z,ee){var re;re===void 0&&(re=!1);var oe=new qr(Sa);oe.point1X=y,oe.point1Y=x,oe.point2X=E,oe.point2Y=b,oe.endX=z,oe.endY=ee,re&&oe.close(),a.mc.segments.add(oe)}function Hm(a,y,x,E,b){var z;z===void 0&&(z=!1);var ee=new qr(ds);ee.point1X=y,ee.point1Y=x,ee.endX=E,ee.endY=b,z&&ee.close(),a.mc.segments.add(ee)}zf.prototype.arcTo=function(a,y,x,E,b,z,ee){z===void 0&&(z=0),ee===void 0&&(ee=!1);var re=new qr(ua);re.startAngle=a,re.sweepAngle=y,re.centerX=x,re.centerY=E,re.radiusX=b,re.radiusY=z!==0?z:b,ee&&re.close(),this.mc.segments.add(re)};function Dx(a,y,x,E,b,z,ee,re){var oe;oe===void 0&&(oe=!1),y=new qr(cs,ee,re,y,x,E,b,z),oe&&y.close(),a.mc.segments.add(y)}function O1(a){var y=Zm;return y!==null?(Zm=null,y.reset(a),y):(y=new zf,y.reset(a),y)}var Zm=null;zf.className="StreamGeometryContext";function vs(a,y){var x=a.toLowerCase(),E=pt.Ze;E[a]=y,E[x]=a}vs("Rectangle",function(a,y,x){a="r"+y+","+x;var E=pt.Mf[a];return E!==void 0||(E=new zn(zn.u),E.endX=y,E.endY=x,pt.Nf<pt.vm&&(pt.Mf[a]=E,pt.Nf++)),E}),vs("Square",function(a,y,x){a="s"+y+","+x;var E=pt.Mf[a];return E!==void 0||(E=new zn(zn.u),E.endX=y,E.endY=x,E.defaultStretch=Ki,pt.Nf<pt.vm&&(pt.Mf[a]=E,pt.Nf++)),E}),vs("RoundedRectangle",function(a,y,x){a=a?a.parameter1:NaN,(isNaN(a)||0>a)&&(a=5),a=Math.min(a,y/3),a=Math.min(a,x/3);var E="rr"+y+","+x+","+a,b=pt.Mf[E];if(b!==void 0)return b;var z=a*pt.wg;return b=new zn().add(new da(a,0,!0).add(new qr(So,y-a,0)).add(new qr(Sa,y,a,y-z,0,y,z)).add(new qr(So,y,x-a)).add(new qr(Sa,y-a,x,y,x-z,y-z,x)).add(new qr(So,a,x)).add(new qr(Sa,0,x-a,z,x,0,x-z)).add(new qr(So,0,a)).add(new qr(Sa,a,0,0,z,z,0).close())),1<z&&(b.spot1=new ii(0,0,z,z),b.spot2=new ii(1,1,-z,-z)),pt.Nf<pt.vm&&(pt.Mf[E]=b,pt.Nf++),b}),vs("Border","RoundedRectangle"),vs("Ellipse",function(a,y,x){a="e"+y+","+x;var E=pt.Mf[a];return E!==void 0||(E=new zn(zn.F),E.endX=y,E.endY=x,E.spot1=ro,E.spot2=ta,pt.Nf<pt.vm&&(pt.Mf[a]=E,pt.Nf++)),E}),vs("Circle",function(a,y,x){a="c"+y+","+x;var E=pt.Mf[a];return E!==void 0||(E=new zn(zn.F),E.endX=y,E.endY=x,E.spot1=ro,E.spot2=ta,E.defaultStretch=Ki,pt.Nf<pt.vm&&(pt.Mf[a]=E,pt.Nf++)),E}),vs("TriangleRight",function(a,y,x){return new zn().add(new da(0,0).add(new qr(So,y,.5*x)).add(new qr(So,0,x).close())).pm(0,.25,.5,.75)}),vs("TriangleDown",function(a,y,x){return new zn().add(new da(0,0).add(new qr(So,y,0)).add(new qr(So,.5*y,x).close())).pm(.25,0,.75,.5)}),vs("TriangleLeft",function(a,y,x){return new zn().add(new da(y,x).add(new qr(So,0,.5*x)).add(new qr(So,y,0).close())).pm(.5,.25,1,.75)}),vs("TriangleUp",function(a,y,x){return new zn().add(new da(y,x).add(new qr(So,0,x)).add(new qr(So,.5*y,0).close())).pm(.25,.5,.75,1)}),vs("Triangle","TriangleUp"),vs("Diamond",function(a,y,x){return new zn().add(new da(.5*y,0).add(new qr(So,0,.5*x)).add(new qr(So,.5*y,x)).add(new qr(So,y,.5*x).close())).pm(.25,.25,.75,.75)}),vs("LineH",function(a,y,x){return a=new zn(zn.j),a.startX=0,a.startY=x/2,a.endX=y,a.endY=x/2,a}),vs("LineV",function(a,y,x){return a=new zn(zn.j),a.startX=y/2,a.startY=0,a.endX=y/2,a.endY=x,a}),vs("None","Rectangle"),vs("BarH","Rectangle"),vs("BarV","Rectangle"),vs("MinusLine","LineH"),vs("PlusLine",function(a,y,x){return new zn().add(new da(0,x/2,!1).add(new qr(So,y,x/2)).add(new qr(ca,y/2,0)).add(new qr(So,y/2,x)))}),vs("XLine",function(a,y,x){return new zn().add(new da(0,x,!1).add(new qr(So,y,0)).add(new qr(ca,0,0)).add(new qr(So,y,x)))}),vs("LineRight",function(a,y,x){return new zn().add(new da(.25*y,0,!1).add(new qr(So,.75*y,.5*x)).add(new qr(So,.25*y,x)))}),vs("LineDown",function(a,y,x){return new zn().add(new da(0,.25*x,!1).add(new qr(So,.5*y,.75*x)).add(new qr(So,y,.25*x)))}),vs("LineLeft",function(a,y,x){return new zn().add(new da(.75*y,0,!1).add(new qr(So,.25*y,.5*x)).add(new qr(So,.75*y,x)))}),vs("LineUp",function(a,y,x){return new zn().add(new da(0,.75*x,!1).add(new qr(So,.5*y,.25*x)).add(new qr(So,y,.75*x)))}),pt.um={"":"",Standard:"F1 m 0,0 l 8,4 -8,4 2,-4 z",Backward:"F1 m 8,0 l -2,4 2,4 -8,-4 z",Triangle:"F1 m 0,0 l 8,4.62 -8,4.62 z",BackwardTriangle:"F1 m 8,4 l 0,4 -8,-4 8,-4 0,4 z",Boomerang:"F1 m 0,0 l 8,4 -8,4 4,-4 -4,-4 z",BackwardBoomerang:"F1 m 8,0 l -8,4 8,4 -4,-4 4,-4 z",SidewaysV:"m 0,0 l 8,4 -8,4 0,-1 6,-3 -6,-3 0,-1 z",BackwardV:"m 8,0 l -8,4 8,4 0,-1 -6,-3 6,-3 0,-1 z",OpenTriangle:"m 0,0 l 8,4 -8,4",BackwardOpenTriangle:"m 8,0 l -8,4 8,4",OpenTriangleLine:"m 0,0 l 8,4 -8,4 m 8.5,0 l 0,-8",BackwardOpenTriangleLine:"m 8,0 l -8,4 8,4 m -8.5,0 l 0,-8",OpenTriangleTop:"m 0,0 l 8,4 m 0,4",BackwardOpenTriangleTop:"m 8,0 l -8,4 m 0,4",OpenTriangleBottom:"m 0,8 l 8,-4",BackwardOpenTriangleBottom:"m 0,4 l 8,4",HalfTriangleTop:"F1 m 0,0 l 0,4 8,0 z m 0,8",BackwardHalfTriangleTop:"F1 m 8,0 l 0,4 -8,0 z m 0,8",HalfTriangleBottom:"F1 m 0,4 l 0,4 8,-4 z",BackwardHalfTriangleBottom:"F1 m 8,4 l 0,4 -8,-4 z",ForwardSemiCircle:"m 4,0 b 270 180 0 4 4",BackwardSemiCircle:"m 4,8 b 90 180 0 -4 4",Feather:"m 0,0 l 3,4 -3,4",BackwardFeather:"m 3,0 l -3,4 3,4",DoubleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardDoubleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4",TripleFeathers:"m 0,0 l 3,4 -3,4 m 3,-8 l 3,4 -3,4 m 3,-8 l 3,4 -3,4",BackwardTripleFeathers:"m 3,0 l -3,4 3,4 m 3,-8 l -3,4 3,4 m 3,-8 l -3,4 3,4",ForwardSlash:"m 0,8 l 5,-8",BackSlash:"m 0,0 l 5,8",DoubleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8",DoubleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8",TripleForwardSlash:"m 0,8 l 4,-8 m -2,8 l 4,-8 m -2,8 l 4,-8",TripleBackSlash:"m 0,0 l 4,8 m -2,-8 l 4,8 m -2,-8 l 4,8",Fork:"m 0,4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4",LineFork:"m 0,0 l 0,8 m 0,-4 l 8,0 m -8,0 l 8,-4 m -8,4 l 8,4",BackwardLineFork:"m 8,4 l -8,0 m 8,0 l -8,-4 m 8,4 l -8,4 m 8,-8 l 0,8",CircleFork:"F1 m 6,4 b 0 360 -3 0 3 z m 0,0 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 6,0 b 0 360 -3 0 3",CircleLineFork:"F1 m 6,4 b 0 360 -3 0 3 z m 1,-4 l 0,8 m 0,-4 l 6,0 m -6,0 l 6,-4 m -6,4 l 6,4",BackwardCircleLineFork:"F1 m 0,4 l 6,0 m -6,-4 l 6,4 m -6,4 l 6,-4 m 0,-4 l 0,8 m 7,-4 b 0 360 -3 0 3",Circle:"F1 m 8,4 b 0 360 -4 0 4 z",Block:"F1 m 0,0 l 0,8 8,0 0,-8 z",StretchedDiamond:"F1 m 0,3 l 5,-3 5,3 -5,3 -5,-3 z",Diamond:"F1 m 0,4 l 4,-4 4,4 -4,4 -4,-4 z",Chevron:"F1 m 0,0 l 5,0 3,4 -3,4 -5,0 3,-4 -3,-4 z",StretchedChevron:"F1 m 0,0 l 8,0 3,4 -3,4 -8,0 3,-4 -3,-4 z",NormalArrow:"F1 m 0,2 l 4,0 0,-2 4,4 -4,4 0,-2 -4,0 z",X:"m 0,0 l 8,8 m 0,-8 l -8,8",TailedNormalArrow:"F1 m 0,0 l 2,0 1,2 3,0 0,-2 2,4 -2,4 0,-2 -3,0 -1,2 -2,0 1,-4 -1,-4 z",DoubleTriangle:"F1 m 0,0 l 4,4 -4,4 0,-8 z m 4,0 l 4,4 -4,4 0,-8 z",BigEndArrow:"F1 m 0,0 l 5,2 0,-2 3,4 -3,4 0,-2 -5,2 0,-8 z",ConcaveTailArrow:"F1 m 0,2 h 4 v -2 l 4,4 -4,4 v -2 h -4 l 2,-2 -2,-2 z",RoundedTriangle:"F1 m 0,1 a 1,1 0 0 1 1,-1 l 7,3 a 0.5,1 0 0 1 0,2 l -7,3 a 1,1 0 0 1 -1,-1 l 0,-6 z",SimpleArrow:"F1 m 1,2 l -1,-2 2,0 1,2 -1,2 -2,0 1,-2 5,0 0,-2 2,2 -2,2 0,-2 z",AccelerationArrow:"F1 m 0,0 l 0,8 0.2,0 0,-8 -0.2,0 z m 2,0 l 0,8 1,0 0,-8 -1,0 z m 3,0 l 2,0 2,4 -2,4 -2,0 0,-8 z",BoxArrow:"F1 m 0,0 l 4,0 0,2 2,0 0,-2 2,4 -2,4 0,-2 -2,0 0,2 -4,0 0,-8 z",TriangleLine:"F1 m 8,4 l -8,-4 0,8 8,-4 z m 0.5,4 l 0,-8",CircleEndedArrow:"F1 m 10,4 l -2,-3 0,2 -2,0 0,2 2,0 0,2 2,-3 z m -4,0 b 0 360 -3 0 3 z",DynamicWidthArrow:"F1 m 0,3 l 2,0 2,-1 2,-2 2,4 -2,4 -2,-2 -2,-1 -2,0 0,-2 z",EquilibriumArrow:"m 0,3 l 8,0 -3,-3 m 3,5 l -8,0 3,3",FastForward:"F1 m 0,0 l 3.5,4 0,-4 3.5,4 0,-4 1,0 0,8 -1,0 0,-4 -3.5,4 0,-4 -3.5,4 0,-8 z",Kite:"F1 m 0,4 l 2,-4 6,4 -6,4 -2,-4 z",HalfArrowTop:"F1 m 0,0 l 4,4 4,0 -8,-4 z m 0,8",HalfArrowBottom:"F1 m 0,8 l 4,-4 4,0 -8,4 z",OpposingDirectionDoubleArrow:"F1 m 0,4 l 2,-4 0,2 4,0 0,-2 2,4 -2,4 0,-2 -4,0 0,2 -2,-4 z",PartialDoubleTriangle:"F1 m 0,0 4,3 0,-3 4,4 -4,4 0,-3 -4,3 0,-8 z",LineCircle:"F1 m 0,0 l 0,8 m 7 -4 b 0 360 -3 0 3 z",DoubleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",TripleLineCircle:"F1 m 0,0 l 0,8 m 2,-8 l 0,8 m 2,-8 l 0,8 m 7 -4 b 0 360 -3 0 3 z",CircleLine:"F1 m 6 4 b 0 360 -3 0 3 z m 1,-4 l 0,8",DiamondCircle:"F1 m 8,4 l -4,4 -4,-4 4,-4 4,4 m 8,0 b 0 360 -4 0 4 z",PlusCircle:"F1 m 8,4 b 0 360 -4 0 4 l -8 0 z m -4 -4 l 0 8",OpenRightTriangleTop:"m 8,0 l 0,4 -8,0 m 0,4",OpenRightTriangleBottom:"m 8,8 l 0,-4 -8,0",Line:"m 0,0 l 0,8",DoubleLine:"m 0,0 l 0,8 m 2,0 l 0,-8",TripleLine:"m 0,0 l 0,8 m 2,0 l 0,-8 m 2,0 l 0,8",PentagonArrow:"F1 m 8,4 l -4,-4 -4,0 0,8 4,0 4,-4 z"};function zv(){this.nc=!1,this.tr=this.Kp=this.zq=null,this.vr="",this.fr=this.oq=this.ur=null,this.hr="",this.gr=Wn,this.ir=null,this.jr="",this.lr=Lo,this.Gq="",this.Hq=Ji,this.Pq=qe,this.Kq=St,this.Up=null,this.Cq=127,this.zr=It,this.yr="gray",this.Vg=4}zv.prototype.copy=function(){var a=new zv;return a.zq=this.zq,a.Kp=this.Kp,a.tr=this.tr,a.vr=this.vr,a.ur=this.ur,a.oq=this.oq,a.fr=this.fr,a.hr=this.hr,a.gr=this.gr.J(),a.ir=this.ir,a.jr=this.jr,a.lr=this.lr.J(),a.Gq=this.Gq,a.Hq=this.Hq.J(),a.Pq=this.Pq.J(),a.Kq=this.Kq.J(),a.Up=this.Up,a.Cq=this.Cq,a.zr=this.zr.J(),a.yr=this.yr,a.Vg=this.Vg,a};function ir(a,y){a===void 0||a instanceof Ia||typeof a=="string"?ni.call(this,a):(ni.call(this),a&&(y=a)),this.G=2408959,this.Tf="",this.P=null,this.Jg="",this.Qf=this.Ug=null,this.ec="",this.Ah=this.Ig=null,this.ke=new Te(NaN,NaN).freeze(),this.nf=null,this.Ao=NaN,this.vw=-1,this.py=new ut,this.Rh=null,this.ag=NaN,y&&Object.assign(this,y)}xt(ir,ni),ir.prototype.cloneProtected=function(a){ni.prototype.cloneProtected.call(this,a),a.G=this.G&-4097|49152,a.Tf=this.Tf,this.P!==null&&(a.P=this.P.nc?this.P:this.P.copy()),a.Jg=this.Jg,a.Qf=null,a.ec=this.ec,a.ke.assign(this.ke),a.Ao=this.Ao},Ce=ir.prototype,Ce.Af=function(a){ni.prototype.Af.call(this,a),a.oh(),a.Ug=null,a.nf=null,a.Rh=null},Ce.toString=function(){var a=yi(this.constructor)+"#"+Nr(this);return this.data!==null&&(a+="("+_i(this.data)+")"),a};function Hs(a){a.P===null?a.P=new zv:a.P.nc&&(a.P=a.P.copy())}Ce.th=function(){ni.prototype.th.call(this),this.P!==null&&(this.P.nc=!0)},Ce.gk=function(a,y,x,E,b,z,ee){var re=this.diagram;re!==null&&(a===$o&&y==="elements"?b instanceof ni?Qd(b,function(oe){dy(re.partManager,oe),Vd(re,oe)}):ad(re,b):a===pa&&y==="elements"&&(b instanceof ni?Qd(b,function(oe){cy(re.partManager,oe,re)}):Og(re,b)),re.cb(a,y,x,E,b,z,ee))},Ce.La=function(a){if(ni.prototype.La.call(this,a),this.data!==null){for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b instanceof ni&&Qd(b,function(z){z.data!==null&&z.La()})}for(y=this.adornments;y.next();)y.value.La(a)}},ir.prototype.updateRelationshipsFromData=function(){var a;this.data!==null&&((a=this.diagram)===null||a===void 0||a.partManager.updateRelationshipsFromData(this))},ir.prototype.Pj=function(a){var y=this.Qf;return y===null?null:y.I(a)},ir.prototype.bh=function(a,y){if(y!==null){var x=null,E=this.Qf;if(E!==null&&(x=E.I(a)),x!==y){if(x!==null){var b=x.diagram;b!==null&&b.remove(x)}E===null&&(this.Qf=E=new $t),y.Tf!==a&&(y.category=a),E.add(a,y),a=this.diagram,a!==null&&(a.add(y),a=y.adornedObject,a!==null&&(a=a.ih(),a!==null&&(y.data=a.data)))}}},ir.prototype.Jf=function(a){var y=this.Qf;if(y!==null){var x=y.I(a);if(x!==null){var E=x.diagram;E!==null&&E.remove(x)}y.remove(a),y.count===0&&(this.Qf=null)}},ir.prototype.Ej=function(){var a=this.Qf;if(a!==null){var y=si();for(a=a.iterator;a.next();)y.push(a.key);a=y.length;for(var x=0;x<a;x++)this.Jf(y[x]);Pi(y)}},ir.prototype.updateAdornments=function(){var a=this.diagram;if(a!==null){for(var y=this.adornments;y.next();){var x=y.value;x.v(),x.placeholder&&x.placeholder.v()}e:{if(this.isSelected&&this.selectionAdorned&&(y=this.selectionObject,y!==null&&this.actualBounds.w()&&this.isVisible()&&y.Ed()&&y.actualBounds.w())){if(x=this.Pj("Selection"),x===null){if(x=this.selectionAdornmentTemplate,x===null&&(x=this.ph()?a.linkSelectionAdornmentTemplate:this instanceof Or?a.groupSelectionAdornmentTemplate:a.nodeSelectionAdornmentTemplate),!(x instanceof uo))break e;jl(x),x=x.copy(),x!==null&&(this.ph()&&this.selectionObject===this.path&&(x.type=ni.Link),x.adornedObject=y)}if(x!==null){x.type===ni.Link&&x.v(),this.bh("Selection",x);break e}}this.Jf("Selection")}for(Nx(this,a),y=this.adornments;y.next();)y.value.La()}},ir.prototype.Wb=function(){var a=this.diagram;a!==null&&(a.vd=!0,!(this.G&16384)&&(this.G|=16384))};function jv(a){a.G&16384&&(a.updateAdornments(),a.G&=-16385)}function Nx(a,y){y.toolManager.mouseDownTools.each(function(x){x.isEnabled&&x.updateAdornments(a)}),y.toolManager.updateAdornments(a)}function Vm(a){if(hd(a)===!1){Hv(a,!0),a.Uk();var y=a.diagram;y!==null&&(y.De.add(a),y.$b())}}function I1(a){if(a.G|=2097152,hd(a)!==!1){var y=a.position,x=a.location;x.w()&&y.w()||j1(a,y,x),x=a.Ib;var E=ut.alloc().assign(x);x.ka(),x.x=y.x,x.y=y.y,x.freeze(),a.Xl(E,x),ut.free(E),Hv(a,!1)}}ir.prototype.Ge=function(a,y,x,E){var b=this.uc;b.h(a,y,x,E),this.Lb===null&&(this.Lb=new vi);var z=this.Lb;z.reset(),this.no(z,a,y,x,E),this.Lb=z,z.ws()||z.pp(b)},ir.prototype.no=function(a,y,x,E,b){if(this.Ca!==1&&a.scale(this.Ca),this.Kb!==0){var z=Mi;this.locationSpot.sb()&&(z=this.locationSpot);var ee=Te.alloc();if(this.locationObject!==this)for(y=this.locationObject,x=y.naturalBounds,ee.yi(x.x,x.y,x.width,x.height,z),y.Lb!==null&&y.Lb.Ga(ee),ee.offset(-y.measuredBounds.x,-y.measuredBounds.y),z=y.panel;z!==null&&z!==this;)z.Lb!==null&&z.Lb.Ga(ee),ee.offset(-z.measuredBounds.x,-z.measuredBounds.y),z=z.panel;else ee.yi(y,x,E,b,z);a.rotate(this.Kb,ee.x,ee.y),Te.free(ee)}},ir.prototype.move=function(a,y){y===!0?this.location=a:this.position=a},ir.prototype.moveTo=function(a,y,x){a=Te.allocAt(a,y),this.move(a,x),Te.free(a)},ir.prototype.isVisible=function(){if(!this.visible)return!1;var a=this.layer;if(a!==null){if(!a.visible)return!1;if(a=a.diagram,a!==null&&a.animationManager.fv(this))return!0}return a=this.containingGroup,!!(a===null||a.isSubGraphExpanded&&a.isVisible())},ir.prototype.Zb=function(a){var y=this.diagram;a?(this.C(4),this.Wb(),y!==null&&y.De.add(this)):(this.C(8),this.Ej()),this.oh(),y!==null&&(y.Ya(),y.N())},ir.prototype.fb=function(a){if(this.name===a)return this;var y=this.Rh;if(y===null&&(this.Rh=y=new $t),y.I(a)!==null)return y.I(a);var x=ni.prototype.fb.call(this,a);return x!==null?(y.set(a,x),x):(y.set(a,null),null)};function Dh(a,y,x,E){E===void 0&&(E=new Te),x=x.Mc()?Mi:x;var b=y.naturalBounds;if(E.h(b.width*x.x+x.offsetX,b.height*x.y+x.offsetY),y===null||y===a)return E;for(y.transform.Ga(E),y=y.panel;y!==null&&y!==a;)y.transform.Ga(E),y=y.panel;return a.Lb!==null&&a.Lb.Ga(E),E.offset(-a.uc.x,-a.uc.y),E}ir.prototype.mi=function(a){return a===void 0&&(a=new ut),a.assign(this.actualBounds)},ir.prototype.Va=function(){this.measure(1/0,1/0),this.arrange()};function R1(a){var y=Te.alloc(),x=a.locationObject,E=x.naturalBounds,b=x instanceof Wr?x.strokeWidth:0;if(y.yi(0,0,E.width+b,E.height+b,a.locationSpot),x!==a)for(y.offset(-b/2,-b/2),x.transform.Ga(y),x=x.panel;x!==null&&x!==a;)x.transform.Ga(y),x=x.panel;return a.Lb!==null&&a.Lb.Ga(y),y.offset(-a.uc.x,-a.uc.y),y}function ec(a,y){var x=a.py;isNaN(a.ag)&&(a.ag=g1(a));var E=a.ag,b=2*E;if(!a.isShadowed)return x.h(y.x-1-E,y.y-1-E,y.width+2+b,y.height+2+b),x;E=y.x,b=y.y;var z=y.width;y=y.height;var ee=a.shadowBlur;return a=a.shadowOffset,z+=ee,y+=ee,E-=ee/2,b-=ee/2,0<a.x?z+=a.x:(E+=a.x,z-=a.x),0<a.y?y+=a.y:(b+=a.y,y-=a.y),x.h(E-1,b-1,z+2,y+2),x}ir.prototype.arrange=function(){if(Ls(this)===!1)I1(this);else{Ru(this,!1);var a=this.Ib,y=ut.alloc();y.assign(a);var x=dd(this);this.eh(0,0,this.uc.width,this.uc.height);var E=this.position;j1(this,E,this.location),a.ka(),a.x=E.x,a.y=E.y,a.freeze(),this.Xl(y,a),y.D(a)?this.Fd(x):!this.Zc()||pt.B(y.width,a.width)&&pt.B(y.height,a.height)||0<=this.vw&&this.C(16),ut.free(y),Hv(this,!1)}},Ce=ir.prototype,Ce.Xl=function(a,y){var x=this.diagram;if(x!==null){var E=!1;if(x.Zi===!1&&a.w()){var b=ut.alloc();b.assign(x.documentBounds),b.Fv(x.padding),a.x>b.x&&a.y>b.y&&a.right<b.right&&a.bottom<b.bottom&&y.x>b.x&&y.y>b.y&&y.right<b.right&&y.bottom<b.bottom&&(E=!0),ut.free(b)}!(this.G&65536)&&a.D(y)||Z1(this,E,x),x.N(),!a.w()&&!y.w()||oi(a,y)||(this instanceof Li&&!x.undoManager.isUndoingRedoing&&this.Bd(),this.oh())}},Ce.zv=function(a,y,x){if(this.ph()||!a.w())return!1;var E=this.diagram;return E!==null&&z1(this,E,a,y,x),this.pa=a,this.G&=-2097153,!this.ke.w()||E!==null&&!E.animationManager.isTicking&&E.undoManager.isUndoingRedoing||(E=this.ke,this.ke=new Te(E.x+(a.x-y),E.y+(a.y-x)),this.g("location",E,this.ke.copy())),hd(this)===!1&&Ls(this)===!1&&(Vm(this),I1(this)),!0};function z1(a,y,x,E,b){y===null||a instanceof uo||(y=y.animationManager,y.zb&&hf(y,a,new Te(E,b),x))}Ce.mm=function(a,y,x){var E=this.ke,b=this.pa;if(x){if(E.x===a&&E.y===y)return;hd(this)||Ls(this)?b.h(NaN,NaN):b.h(b.x+a-E.x,b.y+y-E.y),E.h(a,y)}else{if(b.x===a&&b.y===y)return;E.h(E.x+a-b.x,E.y+y-b.y),b.h(a,y)}Vm(this)},Ce.Av=function(){this.G&=-2097153,Vm(this)};function j1(a,y,x){var E=R1(a),b=a.diagram,z=x.w(),ee=y.w();z&&ee?a.G&2097152?W1(a,y,x,b,E):H1(a,y,x,b,E):z?W1(a,y,x,b,E):ee&&H1(a,y,x,b,E),a.G|=2097152,Te.free(E),a.Uk()}function W1(a,y,x,E,b){var z=y.x,ee=y.y;y.h(x.x-b.x,x.y-b.y),E!==null&&(x=E.animationManager,(E=x.defaultAnimation.isAnimating)||!x.zb||a instanceof uo||hf(x,a,new Te(z,ee),y),E||y.x===z&&y.y===ee||a.g("position",new Te(z,ee),y.copy()))}function H1(a,y,x,E,b){var z=x.copy();x.h(y.x+b.x,y.y+b.y),x.D(z)||E===null||a.g("location",z,x.copy())}function Z1(a,y,x){Zv(a,!1),a instanceof Li&&Eh(x,a),a.layer.isTemporary||y||x.Ya(),y=a.Ib;var E=x.viewportBounds;E.w()?dd(a)?(ki(y,E)||a.Fd(!1),a.updateAdornments()):a.isVisible()&&y.Yc(E)?(a.Fd(!0),a.updateAdornments()):a.Wb():x.vd=!0}Ce.si=function(){return!0},Ce.Zc=function(){return!0},Ce.ph=function(){return!1},Ce.Dd=function(){return!0};function Wv(a,y,x,E){y.constructor===a.constructor||K1||(K1=!0,An('Should not change the class of the Part when changing category from "'+x+'" to "'+E+'"'),An(" Old class: "+yi(a.constructor)+", new class: "+yi(y.constructor)+", part: "+a.toString())),a.Ej();var b=a.data;x=a.layerName;var z=a.isSelected,ee=a.isHighlighted,re=!0,oe=!0,se=!1;a instanceof Li&&(re=a.isTreeLeaf,oe=a.isTreeExpanded,se=a.wasTreeExpanded),y.Af(a),y.cloneProtected(a),a.Tf=E,a.svg!==null&&(a.svg.remove(),a.svg=null,a.Uc=!0),a.v(),a.N(),y=a.diagram,E=!0,y!==null&&(E=y.skipsUndoManager,y.skipsUndoManager=!0),a.ub=b,a.G=z?a.G|4096:a.G&-4097,a.G=ee?a.G|524288:a.G&-524289,a instanceof Li&&(a.U=re?a.U|4:a.U&-5,a.U=oe?a.U|1:a.U&-2,a.U=se?a.U|2:a.U&-3),b!==null&&a.La(),b=a.layerName,b!==x&&(a.Jg=x,a.layerName=b),y!==null&&(y.skipsUndoManager=E),a.Zc()&&a.C(64)}ir.prototype.canCopy=function(){if(!this.copyable)return!1;var a=this.layer;return a===null?!0:a.allowCopy?(a=a.diagram,a===null?!0:!!a.allowCopy):!1},ir.prototype.canDelete=function(){if(!this.deletable)return!1;var a=this.layer;return a===null?!0:a.allowDelete?(a=a.diagram,a===null?!0:!!a.allowDelete):!1},ir.prototype.canEdit=function(){if(!this.textEditable)return!1;var a=this.layer;return a===null?!0:a.allowTextEdit?(a=a.diagram,a===null?!0:!!a.allowTextEdit):!1},ir.prototype.canGroup=function(){if(!this.groupable)return!1;var a=this.layer;return a===null?!0:a.allowGroup?(a=a.diagram,a===null?!0:!!a.allowGroup):!1},ir.prototype.canMove=function(){if(!this.movable)return!1;var a=this.layer;return a===null?!0:a.allowMove?(a=a.diagram,a===null?!0:!!a.allowMove):!1},ir.prototype.canReshape=function(){if(!this.reshapable)return!1;var a=this.layer;return a===null?!0:a.allowReshape?(a=a.diagram,a===null?!0:!!a.allowReshape):!1},ir.prototype.canResize=function(){if(!this.resizable)return!1;var a=this.layer;return a===null?!0:a.allowResize?(a=a.diagram,a===null?!0:!!a.allowResize):!1},ir.prototype.canRotate=function(){if(!this.rotatable)return!1;var a=this.layer;return a===null?!0:a.allowRotate?(a=a.diagram,a===null?!0:!!a.allowRotate):!1},ir.prototype.canSelect=function(){if(!this.selectable)return!1;var a=this.layer;return a===null?!0:a.allowSelect?(a=a.diagram,a===null?!0:!!a.allowSelect):!1};function hd(a){return(a.G&32768)!==0}function Hv(a,y){a.G=y?a.G|32768:a.G&-32769}function Zv(a,y){a.G=y?a.G|65536:a.G&-65537}function dd(a){return(a.G&131072)!==0}Ce=ir.prototype,Ce.Fd=function(a){this.G=a?this.G|131072:this.G&-131073};function Gm(a,y){a.G=y?a.G|1048576:a.G&-1048577}Ce.oh=function(){var a=this.containingGroup;a!==null&&(a.v(),a.placeholder!==null&&a.placeholder.v(),a.Bd())},Ce.N=function(){var a=this.diagram;a!==null&&!Ls(this)&&!hd(this)&&this.isVisible()&&this.Ib.w()&&a.N(ec(this,this.Ib))},Ce.v=function(){ni.prototype.v.call(this);var a=this.diagram;a!==null&&(a.De.add(this),this instanceof Li&&this.labeledLink!==null&&As(this.labeledLink),a.$b(!0))},Ce.Vo=function(a){a||(a=this.Ah,a!==null&&Xv(a,this))},Ce.Wo=function(a){a||(a=this.Ah,a!==null&&_v(a,this))},Ce.Lj=function(){var a=this.data;if(a!==null){var y=this.diagram;y!==null&&(y=y.model,y!==null&&y.cm(a))}},Ce.oz=function(){return Vv(this,this)};function Vv(a,y){var x=y.containingGroup;return x!==null?1+Vv(a,x):y instanceof Li&&(y=y.labeledLink,y!==null)?Vv(a,y):0}Ce.sz=function(){return V1(this,this)};function V1(a,y){var x=y.containingGroup;return x!==null||y instanceof Li&&(x=y.labeledLink,x!==null)?V1(a,x):y}Ce.Td=function(a){return a instanceof Or?Gv(this,this,a):!1};function Gv(a,y,x){if(y===x||x===null)return!1;var E=y.containingGroup;return E===null||E!==x&&!Gv(a,E,x)?y instanceof Li&&(y=y.labeledLink,y!==null)?Gv(a,y,x):!1:!0}Ce.px=function(a){if(a===null)return null;if(this===a)return this.containingGroup;for(var y=this;y!==null;){if(y instanceof Or&&Gm(y,!0),y instanceof Li){var x=y.labeledLink;x!==null&&(y=x)}y=y.containingGroup}for(x=null,y=a;y!==null;){if(y.G&1048576){x=y;break}y instanceof Li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup}for(y=this;y!==null;)y instanceof Or&&Gm(y,!1),y instanceof Li&&(a=y.labeledLink,a!==null&&(y=a)),y=y.containingGroup;return x},ir.prototype.canLayout=function(){if(!this.isLayoutPositioned||!this.isVisible())return!1;var a=this.layer;return!(a!==null&&a.isTemporary||this instanceof Li&&this.isLinkLabel)},ir.prototype.C=function(a){if(a===void 0&&(a=16777215),this.isLayoutPositioned&&a&this.layoutConditions){var y=this.layer;y!==null&&y.isTemporary||this instanceof Li&&this.isLinkLabel?y=!1:(y=this.diagram,y=!(y!==null&&y.undoManager.isUndoingRedoing))}else y=!1;if(y)if(y=this.Ah,y!==null){var x=y.layout;x!==null?x.C():y.C(a)}else a=this.diagram,a!==null&&(a=a.layout,a!==null&&a.C())};function G1(a){return a.isVisible()?(a=a.layer,!(a!==null&&a.isTemporary)):!1}function cd(a,y,x,E,b,z){if(z===void 0&&(z=null),!(a.contains(y)||z!==null&&!z(y)||y instanceof uo)){if(a.add(y),y instanceof Li){if(x&&y instanceof Or)for(var ee=y.memberParts;ee.next();)cd(a,ee.value,x,E,b,z);if(b!==!1)for(ee=y.linksConnected;ee.next();){var re=ee.value;if(!a.contains(re)){var oe=re.fromNode,se=re.toNode;oe=oe===null||a.contains(oe),se=se===null||a.contains(se),(b?oe&&se:oe||se)&&cd(a,re,x,E,b,z)}}if(1<E)for(y=y.Ou();y.next();)cd(a,y.value,x,E-1,b,z)}else if(y instanceof hi)for(y=y.labelNodes;y.next();)cd(a,y.value,x,E,b,z)}}Ct.Object.defineProperties(ir.prototype,{key:{get:function(){var a=this.diagram;if(a!==null)return a.model.wa(this.data)}},adornments:{get:function(){return this.Qf===null?br:this.Qf.iteratorValues}},layer:{get:function(){return this.Ig}},diagram:{get:function(){var a=this.Ig;return a==null?null:a.diagram}},layerName:{get:function(){return this.Jg},set:function(a){var y=this.Jg;if(y!==a){var x=this.diagram;if((x===null||x.Qj(a)!==null&&!x.partManager.addsToTemporaryLayer)&&(this.Jg=a,x!==null&&x.Ya(),this.g("layerName",y,a),y=this.layer,y!==null&&y.name!==a&&(x=y.diagram,x!==null&&(a=x.Qj(a),a!==null&&a!==y)))){var E=y.pc(-1,this,!0);if(0<=E&&x.cb(pa,"parts",y,this,null,E,!0),E=a.oi(99999999,this,!0),y.visible!==a.visible&&this.Zb(a.visible),0<=E&&x.cb($o,"parts",a,null,this,!0,E),E=this.layerChanged,E!==null){var b=x.aa;x.aa=!0,E(this,y,a),x.aa=b}}}}},layerChanged:{get:function(){return this.P!==null?this.P.zq:null},set:function(a){var y=this.layerChanged;y!==a&&(Hs(this),this.P.zq=a,this.g("layerChanged",y,a))}},zOrder:{get:function(){return this.Ao},set:function(a){var y=this.Ao;if(y!==a){this.Ao=a;var x=this.layer;x!==null&&ff(x,-1,this),this.g("zOrder",y,a),a=this.diagram,a!==null&&a.N()}}},locationObject:{get:function(){if(this.nf===null){var a=this.locationObjectName;a!==""?(a=this.fb(a),a!==null?this.nf=a:this.nf=this):this instanceof uo?this.type!==ni.Link&&this.placeholder!==null?this.nf=this.placeholder:this.nf=this:this.nf=this}return this.nf.visible?this.nf:this}},minLocation:{get:function(){return this.P!==null?this.P.Pq:qe},set:function(a){var y=this.minLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Pq=a,this.g("minLocation",y,a))}},maxLocation:{get:function(){return this.P!==null?this.P.Kq:St},set:function(a){var y=this.maxLocation;y.D(a)||(a=a.J(),Hs(this),this.P.Kq=a,this.g("maxLocation",y,a))}},locationObjectName:{get:function(){return this.P!==null?this.P.Gq:""},set:function(a){var y=this.locationObjectName;y!==a&&(Hs(this),this.P.Gq=a,this.nf=null,this.v(),this.g("locationObjectName",y,a))}},locationSpot:{get:function(){return this.P!==null?this.P.Hq:Ji},set:function(a){var y=this.locationSpot;y.D(a)||(a=a.J(),Hs(this),this.P.Hq=a,this.v(),this.g("locationSpot",y,a))}},location:{get:function(){return this.ke},set:function(a){var y=a.x,x=a.y,E=this.ke;if(!(E.x===y||isNaN(E.x)&&isNaN(y))||!(E.y===x||isNaN(E.y)&&isNaN(x))){if(a=a.copy(),y=a,this.ph())y=!1;else{if(this.ke=y,this.G|=2097152,Ls(this)===!1&&(Vm(this),x=this.pa,x.w())){var b=this.diagram;if(b===null||b.animationManager.isTicking||!b.undoManager.isUndoingRedoing){var z=x.copy();x.h(x.x+(y.x-E.x),x.y+(y.y-E.y)),z1(this,b,x,z.x,z.y),this.g("position",z,x.copy())}}y=!0}y&&this.g("location",E,a.copy())}}},category:{get:function(){return this.Tf},set:function(a){var y=this.Tf;if(y!==a){this.svg!==null&&(this.svg.remove(),this.Uc=!0);var x=this.diagram,E=this.data,b=null;if(x!==null&&E!==null&&!(this instanceof uo)){var z=x.model.undoManager;z.isEnabled&&!z.isUndoingRedoing&&(b=this.clone(),b.O.addAll(this.O))}this.Tf=a,this.g("category",y,a),x===null||E===null||this instanceof uo?this instanceof uo&&(b=this.adornedPart,b!==null&&(a=b.Qf,a!==null&&a.remove(y),b.bh(this.category,this))):(z=x.model,z.undoManager.isUndoingRedoing||(this.ph()?(x.partManager.setLinkCategoryForData(E,a),x=x.partManager.findLinkTemplateForCategory(a),x!==null&&(jl(x),x=x.copy(),x!==null&&Wv(this,x,y,a))):(z!==null&&z.jm(E,a),x=mS(x.partManager,E,a),x!==null&&(jl(x),x=x.copy(),x===null||x instanceof hi||(E=this.location.copy(),Wv(this,x,y,a),this.location.w()||(this.location=E)))),b!==null&&(y=this.clone(),y.O.addAll(this.O),this.g("self",b,y))))}}},self:{get:function(){return this},set:function(a){Wv(this,a,this.category,a.category)}},copyable:{get:function(){return(this.G&1)!==0},set:function(a){var y=(this.G&1)!==0;y!==a&&(this.G^=1,this.g("copyable",y,a))}},deletable:{get:function(){return(this.G&2)!==0},set:function(a){var y=(this.G&2)!==0;y!==a&&(this.G^=2,this.g("deletable",y,a))}},textEditable:{get:function(){return(this.G&4)!==0},set:function(a){var y=(this.G&4)!==0;y!==a&&(this.G^=4,this.g("textEditable",y,a),this.Wb())}},groupable:{get:function(){return(this.G&8)!==0},set:function(a){var y=(this.G&8)!==0;y!==a&&(this.G^=8,this.g("groupable",y,a))}},movable:{get:function(){return(this.G&16)!==0},set:function(a){var y=(this.G&16)!==0;y!==a&&(this.G^=16,this.g("movable",y,a))}},selectionAdorned:{get:function(){return(this.G&32)!==0},set:function(a){var y=(this.G&32)!==0;y!==a&&(this.G^=32,this.g("selectionAdorned",y,a),this.Wb())}},isInDocumentBounds:{get:function(){return(this.G&64)!==0},set:function(a){var y=(this.G&64)!==0;if(y!==a){this.G^=64;var x=this.diagram;x!==null&&x.Ya(),this.g("isInDocumentBounds",y,a)}}},isLayoutPositioned:{get:function(){return(this.G&128)!==0},set:function(a){var y=(this.G&128)!==0;y!==a&&(this.G^=128,this.g("isLayoutPositioned",y,a),this.C(a?4:8))}},selectable:{get:function(){return(this.G&256)!==0},set:function(a){var y=(this.G&256)!==0;y!==a&&(this.G^=256,this.g("selectable",y,a),this.Wb())}},reshapable:{get:function(){return(this.G&512)!==0},set:function(a){var y=(this.G&512)!==0;y!==a&&(this.G^=512,this.g("reshapable",y,a),this.Wb())}},resizable:{get:function(){return(this.G&1024)!==0},set:function(a){var y=(this.G&1024)!==0;y!==a&&(this.G^=1024,this.g("resizable",y,a),this.Wb())}},rotatable:{get:function(){return(this.G&2048)!==0},set:function(a){var y=(this.G&2048)!==0;y!==a&&(this.G^=2048,this.g("rotatable",y,a),this.Wb())}},isSelected:{get:function(){return(this.G&4096)!==0},set:function(a){var y=(this.G&4096)!==0;if(y!==a){var x=this.diagram;if(!a||this.canSelect()&&!(x!==null&&x.selection.count>=x.maxSelectionCount)){this.G^=4096;var E=!1;if(x!==null){E=x.skipsUndoManager,x.skipsUndoManager=!0;var b=x.selection;b.ka(),a?b.add(this):b.remove(this),b.freeze()}this.g("isSelected",y,a),this.Wb(),a=this.selectionChanged,a!==null&&a(this),x!==null&&(x.$b(),x.skipsUndoManager=E)}}}},isHighlighted:{get:function(){return(this.G&524288)!==0},set:function(a){var y=(this.G&524288)!==0;if(y!==a){this.G^=524288;var x=this.diagram;x!==null&&(x=x.highlighteds,x.ka(),a?x.add(this):x.remove(this),x.freeze()),this.g("isHighlighted",y,a),this.N(),a=this.highlightedChanged,a!==null&&a(this)}}},isShadowed:{get:function(){return(this.G&8192)!==0},set:function(a){var y=(this.G&8192)!==0;y!==a&&(this.G^=8192,this.Uc=!0,this.g("isShadowed",y,a),this.N())}},isAnimated:{get:function(){return(this.G&262144)!==0},set:function(a){var y=(this.G&262144)!==0;y!==a&&(this.G^=262144,this.g("isAnimated",y,a))}},highlightedChanged:{get:function(){return this.P!==null?this.P.oq:null},set:function(a){var y=this.highlightedChanged;y!==a&&(Hs(this),this.P.oq=a,this.g("highlightedChanged",y,a))}},selectionObjectName:{get:function(){return this.P!==null?this.P.vr:""},set:function(a){var y=this.selectionObjectName;y!==a&&(Hs(this),this.P.vr=a,this.Ug=null,this.g("selectionObjectName",y,a))}},selectionAdornmentTemplate:{get:function(){return this.P!==null?this.P.tr:null},set:function(a){var y=this.selectionAdornmentTemplate;y!==a&&(Hs(this),this.P.tr=a,this.g("selectionAdornmentTemplate",y,a))}},selectionObject:{get:function(){if(this.Ug===null){var a=this.selectionObjectName;a!==null&&a!==""?(a=this.fb(a),a!==null?this.Ug=a:this.Ug=this):this instanceof hi?(a=this.path,a!==null?this.Ug=a:this.Ug=this):this.Ug=this}return this.Ug}},selectionChanged:{get:function(){return this.P!==null?this.P.ur:null},set:function(a){var y=this.selectionChanged;y!==a&&(Hs(this),this.P.ur=a,this.g("selectionChanged",y,a))}},resizeAdornmentTemplate:{get:function(){return this.P!==null?this.P.fr:null},set:function(a){var y=this.resizeAdornmentTemplate;y!==a&&(Hs(this),this.P.fr=a,this.g("resizeAdornmentTemplate",y,a))}},resizeObjectName:{get:function(){return this.P!==null?this.P.hr:""},set:function(a){var y=this.resizeObjectName;y!==a&&(Hs(this),this.P.hr=a,this.g("resizeObjectName",y,a))}},resizeObject:{get:function(){var a=this.resizeObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},resizeCellSize:{get:function(){return this.P!==null?this.P.gr:Wn},set:function(a){var y=this.resizeCellSize;y.D(a)||(a=a.J(),Hs(this),this.P.gr=a,this.g("resizeCellSize",y,a))}},rotateAdornmentTemplate:{get:function(){return this.P!==null?this.P.ir:null},set:function(a){var y=this.rotateAdornmentTemplate;y!==a&&(Hs(this),this.P.ir=a,this.g("rotateAdornmentTemplate",y,a))}},rotateObjectName:{get:function(){return this.P!==null?this.P.jr:""},set:function(a){var y=this.rotateObjectName;y!==a&&(Hs(this),this.P.jr=a,this.g("rotateObjectName",y,a))}},rotateObject:{get:function(){var a=this.rotateObjectName;return a!==""&&(a=this.fb(a),a!==null)?a:this}},rotationSpot:{get:function(){return this.P!==null?this.P.lr:Lo},set:function(a){var y=this.rotationSpot;y.D(a)||(a=a.J(),Hs(this),this.P.lr=a,this.g("rotationSpot",y,a))}},text:{get:function(){return this.ec},set:function(a){var y=this.ec;y!==a&&(this.ec=a,this.g("text",y,a))}},containingGroup:{get:function(){return this.Ah},set:function(a){if(this.Zc()){var y=this.Ah;if(y!==a){a===null||this!==a&&!a.Td(this)||(this===a&&Ve("Cannot make a Group a member of itself: "+this.toString()),Ve("Cannot make a Group indirectly contain itself: "+this.toString()+" already contains "+a.toString())),this.C(2);var x=this.diagram;if(y!==null?_v(y,this):this instanceof Or&&x!==null&&x.ai.remove(this),this.Ah=a,a!==null?Xv(a,this):this instanceof Or&&x!==null&&x.ai.add(this),this.C(1),x!==null&&x.aa){var E=this.data,b=x.model;if(E!==null&&b.Xj()){var z=b.wa(a!==null?a.data:null);b.mp(E,z)}}if(E=this.containingGroupChanged,E!==null&&(b=!0,x!==null&&(b=x.aa,x.aa=!0),E(this,y,a),x!==null&&(x.aa=b)),this instanceof Or){for(x=new yn,cd(x,this,!0,0,!0),x=x.iterator;x.next();)if(E=x.value,E instanceof Li)for(E=E.linksConnected;E.next();)Wf(E.value)}if(this instanceof Li){for(x=this.linksConnected;x.next();)Wf(x.value);x=this.labeledLink,x!==null&&Wf(x)}this.g("containingGroup",y,a),a!==null&&(y=a.layer,y!==null&&ff(y,-1,a))}}else Ve("cannot set the Part.containingGroup of a Link or Adornment")}},containingGroupChanged:{get:function(){return this.P!==null?this.P.Kp:null},set:function(a){var y=this.containingGroupChanged;y!==a&&(Hs(this),this.P.Kp=a,this.g("containingGroupChanged",y,a))}},isTopLevel:{get:function(){return!(this.containingGroup!==null||this instanceof Li&&this.labeledLink!==null)}},layoutConditions:{get:function(){return this.P!==null?this.P.Cq:127},set:function(a){var y=this.layoutConditions;y!==a&&(Hs(this),this.P.Cq=a,this.g("layoutConditions",y,a))}},dragComputation:{get:function(){return this.P!==null?this.P.Up:null},set:function(a){var y=this.dragComputation;y!==a&&(Hs(this),this.P.Up=a,this.g("dragComputation",y,a))}},shadowOffset:{get:function(){return this.P!==null?this.P.zr:It},set:function(a){var y=this.shadowOffset;y.D(a)||(a=a.J(),Hs(this),this.P.zr=a,this.N(),this.g("shadowOffset",y,a))}},shadowColor:{get:function(){return this.P!==null?this.P.yr:"gray"},set:function(a){var y=this.shadowColor;y!==a&&(Hs(this),this.P.yr=a,this.N(),this.g("shadowColor",y,a))}},shadowBlur:{get:function(){return this.P!==null?this.P.Vg:4},set:function(a){var y=this.shadowBlur;y!==a&&(Hs(this),this.P.Vg=a,this.N(),this.g("shadowBlur",y,a))}}}),ir.prototype.invalidateLayout=ir.prototype.C,ir.prototype.findCommonContainingGroup=ir.prototype.px,ir.prototype.isMemberOf=ir.prototype.Td,ir.prototype.findTopLevelPart=ir.prototype.sz,ir.prototype.findSubGraphLevel=ir.prototype.oz,ir.prototype.ensureBounds=ir.prototype.Va,ir.prototype.getDocumentBounds=ir.prototype.mi,ir.prototype.findObject=ir.prototype.fb,ir.prototype.moveTo=ir.prototype.moveTo,ir.prototype.invalidateAdornments=ir.prototype.Wb,ir.prototype.clearAdornments=ir.prototype.Ej,ir.prototype.removeAdornment=ir.prototype.Jf,ir.prototype.addAdornment=ir.prototype.bh,ir.prototype.findAdornment=ir.prototype.Pj,ir.prototype.updateTargetBindings=ir.prototype.La;var K1=!1;ir.className="Part",ir.LayoutNone=0,ir.LayoutAdded=1,ir.LayoutRemoved=2,ir.LayoutShown=4,ir.LayoutHidden=8,ir.LayoutNodeSized=16,ir.LayoutGroupLayout=32,ir.LayoutNodeReplaced=64,ir.LayoutStandard=127,ir.LayoutAll=16777215;function uo(a,y){a===void 0||a instanceof Ia||typeof a=="string"?ir.call(this,a):(ir.call(this),a&&(y=a)),this.G&=-257,this.Jg="Adornment",this.ue=null,this.Aw=0,this.Uw=!1,this.j=this.$a=null,y&&Object.assign(this,y)}xt(uo,ir),uo.prototype.toString=function(){var a=this.adornedPart;return"Adornment("+this.category+")"+(a!==null?a.toString():"")},uo.prototype.updateRelationshipsFromData=function(){},uo.prototype.Ul=function(a){var y=this.adornedObject,x=y==null?void 0:y.part;if(x instanceof hi&&y instanceof Wr){y=x.path,x.Ul(a),a=y.geometry,x=this.O.s,y=x.length;for(var E=0;E<y;E++){var b=x[E];b.isPanelMain&&b instanceof Wr&&(b.ua=a)}}},uo.prototype.si=function(){var a=this.ue;return a===null?!0:(a=a.part,a===null||!Ls(a))},uo.prototype.Zc=function(){return!1},uo.prototype.gk=function(a,y,x,E,b,z,ee){if(a===$o&&y==="elements"){if(b instanceof Ms)this.$a===null&&(this.$a=b);else if(b instanceof ni){var re=b.Nl(function(oe){return oe instanceof Ms});re instanceof Ms&&this.$a===null&&(this.$a=re)}}else a===pa&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ni&&this.$a.rg(E)&&(this.$a=null));ir.prototype.gk.call(this,a,y,x,E,b,z,ee)},uo.prototype.updateAdornments=function(){},uo.prototype.Lj=function(){},Ct.Object.defineProperties(uo.prototype,{placeholder:{get:function(){return this.$a}},adornedObject:{get:function(){return this.ue},set:function(a){var y=this.adornedPart,x=null;a!==null&&(x=a.part),y===null||a!==null&&y===x||y.Jf(this.category),this.ue=a,x!==null&&x.bh(this.category,this)}},adornedPart:{get:function(){var a=this.ue;return a!==null?a.part:null}},containingGroup:{get:function(){return null}}}),uo.className="Adornment";function Kv(){this.nc=!1,this.Vr=this.gj=this.Eq=this.Dq=null,this.yp=xr,this.er=Um,this.Kr=this.ij=this.Nq=this.Mq=null}Kv.prototype.copy=function(){var a=new Kv;return a.Dq=this.Dq,a.Eq=this.Eq,a.gj=this.gj,a.Vr=this.Vr,a.yp=this.yp.J(),a.er=this.er,a.Mq=this.Mq,a.Nq=this.Nq,a.ij=this.ij,a.Kr=this.Kr,a};function Li(a,y){a===void 0||a instanceof Ia||typeof a=="string"?ir.call(this,a):(ir.call(this),a&&(y=a)),this.U=13,this.Ba=null,this.jb=new cn,this.wc=this.af=this.Yk=null,this.ci=!1,y&&Object.assign(this,y)}xt(Li,ir),Li.prototype.cloneProtected=function(a){ir.prototype.cloneProtected.call(this,a),a.U=this.U,this.Ba!==null&&(a.Ba=this.Ba.nc?this.Ba:this.Ba.copy())},Ce=Li.prototype,Ce.Af=function(a){ir.prototype.Af.call(this,a),a.Bd(),a.af=this.af,a.wc=null};function Nh(a){a.Ba===null?a.Ba=new Kv:a.Ba.nc&&(a.Ba=a.Ba.copy())}Ce.th=function(){ir.prototype.th.call(this),this.Ba!==null&&(this.Ba.nc=!0)};function Y1(a,y){y!==null&&(a.af===null&&(a.af=new yn),a.af.add(y))}function U1(a,y,x,E){if(y===null||a.af===null)return null;for(var b=a.af.iterator;b.next();){var z=b.value;if(z.Ds===a&&z.cv===y&&z.Ox===x&&z.Px===E||z.Ds===y&&z.cv===a&&z.Ox===E&&z.Px===x)return z}return null}Ce.Lz=function(a,y,x){y==null&&(y=""),x==null&&(x=""),a=U1(this,a,y,x),a!==null&&a.Sl()},Ce.gk=function(a,y,x,E,b,z,ee){a===$o&&y==="elements"?this.wc=null:a===pa&&y==="elements"&&(this.wc=null),ir.prototype.gk.call(this,a,y,x,E,b,z,ee)},Ce.Bd=function(a){for(var y=this.linksConnected;y.next();){var x=y.value;a!==void 0&&a.contains(x)||(tl(x.fromPort),tl(x.toPort),x.bb())}};function X1(a,y){for(a=a.linksConnected;a.next();){var x=a.value;(x.fromPort===y||x.toPort===y)&&(tl(x.fromPort),tl(x.toPort),x.bb())}}function tl(a){if(a!==null){var y=a.Zn;y!==null&&y.Sl(),a=a.part,y=a.containingGroup,y===null||a.isVisible()||tl(y.port)}}Ce.si=function(){return!0},Li.prototype.getAvoidableRect=function(a){return a.set(this.actualBounds),a.Co(this.avoidableMargin),a},Li.prototype.findVisibleNode=function(){for(var a=this;a!==null&&!a.isVisible();)a=a.containingGroup;return a},Li.prototype.isVisible=function(){if(!ir.prototype.isVisible.call(this))return!1;var a=!0,y=Lh,x=this.diagram;if(x!==null&&(a=x.isTreePathToChildren,y=x.treeCollapsePolicy),y===Lh){if(a=this.pg(),a!==null&&!a.isTreeExpanded)return!1}else if(y===Da){if(a=a?this.Oo():this.Po(),0<a.count&&a.all(function(E){return!E.isTreeExpanded}))return!1}else if(y===Af&&(a=a?this.Oo():this.Po(),0<a.count&&a.any(function(E){return!E.isTreeExpanded})))return!1;return a=this.labeledLink,a!==null?a.isVisible():!0},Li.prototype.Zb=function(a){ir.prototype.Zb.call(this,a);for(var y=this.linksConnected;y.next();){var x=y.value;if(a&&this.containingGroup!==null){var E=x.To(this);E===null||E.Td(this.containingGroup)||x.bb()}x.Zb(a)}},Li.prototype.qx=function(){var a=new yn,y=new yn;return _1(this,this,a,y),y.iterator};function _1(a,y,x,E){if(y!==null&&!x.has(y)){x.add(y);var b=!0,z=a.diagram;z!==null&&(b=z.isTreePathToChildren),y.linksConnected.each(function(ee){ee.isTreeLink?(b?ee.fromNode===y:ee.toNode===y)&&_1(a,b?ee.toNode:ee.fromNode,x,E):E.add(ee)})}}Li.prototype.findLinksConnected=function(a){if(a===void 0&&(a=null),a===null)return this.jb.iterator;var y=new er(this.jb),x=this;return y.predicate=function(E){return E.fromNode===x&&E.fromPortId===a||E.toNode===x&&E.toPortId===a},y},Ce=Li.prototype,Ce.Mo=function(a){a===void 0&&(a=null);var y=new er(this.jb),x=this;return y.predicate=function(E){return E.fromNode!==x?!1:a===null?!0:E.fromPortId===a},y},Ce.Sd=function(a){a===void 0&&(a=null);var y=new er(this.jb),x=this;return y.predicate=function(E){return E.toNode!==x?!1:a===null?!0:E.toPortId===a},y},Ce.Mu=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode===this?(a===null||b.fromPortId===a)&&(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new yn,y.add(x),y.add(b)):x=b):b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new yn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Hi(x):br},Ce.Po=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.fromNode!==this||a!==null&&b.fromPortId!==a||(b=b.toNode,y!==null?y.add(b):x!==null&&x!==b?(y=new yn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Hi(x):br},Ce.Oo=function(a){a===void 0&&(a=null);for(var y=null,x=null,E=this.jb.iterator;E.next();){var b=E.value;b.toNode!==this||a!==null&&b.toPortId!==a||(b=b.fromNode,y!==null?y.add(b):x!==null&&x!==b?(y=new yn,y.add(x),y.add(b)):x=b)}return y!==null?y.iterator:x!==null?new Hi(x):br},Ce.jz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new er(this.jb),b=this;return E.predicate=function(z){return!((z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)&&(z.fromNode!==a||z.toNode!==b||x!==null&&z.fromPortId!==x||y!==null&&z.toPortId!==y))},E},Ce.kz=function(a,y,x){y===void 0&&(y=null),x===void 0&&(x=null);var E=new er(this.jb),b=this;return E.predicate=function(z){return!(z.fromNode!==b||z.toNode!==a||y!==null&&z.fromPortId!==y||x!==null&&z.toPortId!==x)},E};function Km(a,y,x){tl(x);var E=a.jb.contains(y);if(E||a.jb.add(y),!E||y.fromNode===y.toNode){var b=a.linkConnected;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,y,x),ee!==null&&(ee.aa=z)}}!E&&y.isTreeLink&&(x=y.fromNode,y=y.toNode,x!==null&&y!==null&&x!==y&&(E=!0,a=a.diagram,a!==null&&(E=a.isTreePathToChildren),b=E?y:x,z=E?x:y,b.ci||(b.ci=z),!z.isTreeLeaf||a!==null&&a.undoManager.isUndoingRedoing||(E?x===z&&(z.isTreeLeaf=!1):y===z&&(z.isTreeLeaf=!1))))}function Ym(a,y,x){tl(x);var E=a.jb.remove(y),b=null;if(E||y.toNode===y.fromNode){var z=a.linkDisconnected;if(b=a.diagram,z!==null){var ee=!0;b!==null&&(ee=b.aa,b.aa=!0),z(a,y,x),b!==null&&(b.aa=ee)}}E&&y.isTreeLink&&(x=!0,b!==null&&(x=b.isTreePathToChildren),a=x?y.toNode:y.fromNode,y=x?y.fromNode:y.toNode,a!==null&&(a.ci=!1),y===null||y.isTreeLeaf||(y.jb.count===0?(y.ci=null,b!==null&&b.undoManager.isUndoingRedoing||(y.isTreeLeaf=!0)):ip(y)))}function ip(a){if(a.ci=!1,a.jb.count!==0){var y=!0,x=a.diagram;if(x===null||!x.undoManager.isUndoingRedoing){for(x!==null&&(y=x.isTreePathToChildren),x=a.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink){if(y){if(E.fromNode===a){a.isTreeLeaf=!1;return}}else if(E.toNode===a){a.isTreeLeaf=!1;return}}}a.isTreeLeaf=!0}}}Li.prototype.updateRelationshipsFromData=function(){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)},Ce=Li.prototype,Ce.Vo=function(a){ir.prototype.Vo.call(this,a),a||(ip(this),a=this.Yk,a!==null&&rS(a,this))},Ce.Wo=function(a){ir.prototype.Wo.call(this,a),a||(a=this.Yk,a!==null&&a.wd!==null&&(a.wd.remove(this),a.v()))},Ce.Lj=function(){if(0<this.jb.count){var a=this.diagram;if(a!==null)for(var y=a.commandHandler!==null?a.commandHandler.deletesConnectedLinks:!0,x=this.jb.copy().iterator;x.next();){var E=x.value;y?a.remove(E):(E.fromNode===this&&(E.fromNode=null),E.toNode===this&&(E.toNode=null))}}this.labeledLink=null,ir.prototype.Lj.call(this)},Ce.ns=function(a){if(this.wc===null){if(a===""&&this.Te===!1)return this;J1(this)}var y=this.wc.I(a);return y!==null||a!==""&&(y=this.wc.I(""),y!==null)?y:this};function J1(a){a.wc===null?a.wc=new $t:a.wc.clear(),a.qm(a,function(y,x){Q1(y,x)}),a.wc.count===0&&a.wc.add("",a)}function Q1(a,y){var x=y.portId;x!==null&&a.wc!==null&&a.wc.add(x,y)}function Yv(a,y,x){var E=y.portId;if(E!==null&&(a.wc!==null&&a.wc.remove(E),y=a.diagram,y!==null&&x)){for(x=null,a=a.findLinksConnected(E);a.next();)E=a.value,x===null&&(x=si()),x.push(E);if(x!==null){for(a=0;a<x.length;a++)y.remove(x[a]);Pi(x)}}}Ce.Nz=function(a){if(a===null||a===this)return!1;var y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this,y)for(;x!==a;){y=null;for(var E=x.jb.iterator;E.next();){var b=E.value;if(b.isTreeLink&&(y=b.fromNode,y!==x&&y!==this))break}if(y===this||y===null||y===x)return!1;x=y}else for(;x!==a;){for(y=null,E=x.jb.iterator;E.next()&&(b=E.value,!b.isTreeLink||(y=b.toNode,y===x||y===this)););if(y===this||y===null||y===x)return!1;x=y}return!0},Ce.xz=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this,a)for(;;){a=null;for(var x=y.jb.iterator;x.next();){var E=x.value;if(E.isTreeLink&&(a=E.fromNode,a!==y&&a!==this))break}if(a===this)return this;if(a===null||a===y)return y;y=a}else for(;;){for(a=null,x=y.jb.iterator;x.next()&&(E=x.value,!E.isTreeLink||(a=E.toNode,a===y||a===this)););if(a===this)return this;if(a===null||a===y)return y;y=a}},Ce.gz=function(a){if(a===null)return null;if(this===a)return this;for(var y=this;y!==null;)Gm(y,!0),y=y.pg();var x=null;for(y=a;y!==null;){if(y.G&1048576){x=y;break}y=y.pg()}for(y=this;y!==null;)Gm(y,!1),y=y.pg();return x},Ce.kh=function(){var a=!0,y=this.diagram;if(y!==null&&(a=y.isTreePathToChildren),y=this.jb.iterator,a){for(;y.next();)if(a=y.value,a.isTreeLink&&a.fromNode!==this)return a}else for(;y.next();)if(a=y.value,a.isTreeLink&&a.toNode!==this)return a;return null},Ce.pg=function(){var a=this.ci;if(a===null)return null;if(a instanceof Li)return a;a=this.diagram,a=a!==null?a.isTreePathToChildren:!0;for(var y=this.jb.iterator;y.next();){var x=y.value;if(x.isTreeLink&&(x=a?x.fromNode:x.toNode,x!==this))return this.ci=x}return this.ci=null},Ce.vz=function(){function a(x,E){E.add(x);var b=x.kh();b!==null&&(E.add(b),x=x.pg(),x!==null&&a(x,E))}var y=new yn;return a(this,y),y},Ce.uz=function(){return q1(this,this)};function q1(a,y){return y=y.pg(),y===null?0:1+q1(a,y)}Ce.Qo=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren),y=new er(this.jb);var x=this;return y.predicate=a?function(E){return!!(E.isTreeLink&&E.fromNode===x)}:function(E){return!!(E.isTreeLink&&E.toNode===x)},y},Ce.Ou=function(){var a=!0,y=this.diagram;y!==null&&(a=y.isTreePathToChildren);var x=y=null,E=this.jb.iterator;if(a)for(;E.next();)a=E.value,a.isTreeLink&&a.fromNode===this&&(a=a.toNode,y!==null?y.add(a):x!==null&&x!==a?(y=new cn,y.add(x),y.add(a)):x=a);else for(;E.next();)a=E.value,a.isTreeLink&&a.toNode===this&&(a=a.fromNode,y!==null?y.add(a):x!==null&&x!==a?(y=new cn,y.add(x),y.add(a)):x=a);return y!==null?y.iterator:x!==null?new Hi(x):br},Ce.wz=function(a){a===void 0&&(a=1/0);var y=new yn;return cd(y,this,!1,a,!0),y},Li.prototype.collapseTree=function(a){a===void 0&&(a=1),1>a&&(a=1);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new yn;x.add(this),$1(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function $1(a,y,x,E,b,z,ee){if(1<E)for(var re=x?a.Mo():a.Sd();re.next();){var oe=re.value;oe.isTreeLink&&(oe=oe.To(a),oe===null||oe===a||y.contains(oe)||(y.add(oe),$1(oe,y,x,E-1,b,z,ee)))}else eS(a,y,x,b,z,ee)}function eS(a,y,x,E,b,z){for(var ee=b===a?!0:a.isTreeExpanded,re=x?a.Mo():a.Sd(),oe={};re.next();){var se=re.value;if(se.isTreeLink&&(se=se.To(a),se!==null&&se!==a)){var ue=y.contains(se);if(ue||y.add(se),ee){var fe=x?se.Oo():se.Po();oe.uv=a,fe.all(function(ve){return function(xe){return xe===ve.uv||!xe.isTreeExpanded}}(oe))&&E.Aj(se,b),se.oh(),se.Zb(!1)}se.isTreeExpanded&&(se.wasTreeExpanded=se.isTreeExpanded,ue||eS(se,y,x,E,b,z))}oe={uv:oe.uv}}a.isTreeExpanded=!1}Li.prototype.expandTree=function(a){a===void 0&&(a=2),2>a&&(a=2);var y=this.diagram;if(y!==null&&!y.Ue){y.Ue=!0;var x=new yn;x.add(this),tS(this,x,y.isTreePathToChildren,a,y,this,y.treeCollapsePolicy===Lh),y.Ue=!1}};function tS(a,y,x,E,b,z,ee){for(var re=z===a?!1:a.isTreeExpanded,oe=x?a.Mo():a.Sd(),se={};oe.next();){var ue=oe.value;if(ue.isTreeLink&&(re||ue.fd||ue.bb(),ue=ue.To(a),ue!==null&&ue!==a&&!y.contains(ue))){if(y.add(ue),!re){ue.Zb(!0),ue.oh();var fe=x?ue.Oo():ue.Po();se.vv=a,fe.all(function(ve){return function(xe){return xe===ve.vv||!xe.isTreeExpanded}}(se))&&b.Cj(ue,z)}(2<E||ue.wasTreeExpanded)&&(ue.wasTreeExpanded=!1,tS(ue,y,x,E-1,b,z,ee))}se={vv:se.vv}}a.isTreeExpanded=!0}Ct.Object.defineProperties(Li.prototype,{portSpreading:{get:function(){return this.Ba!==null?this.Ba.er:Um},set:function(a){var y=this.portSpreading;y!==a&&(Nh(this),this.Ba.er=a,this.g("portSpreading",y,a),a=this.diagram,a!==null&&a.undoManager.isUndoingRedoing||this.Bd())}},avoidable:{get:function(){return(this.U&8)!==0},set:function(a){var y=(this.U&8)!==0;if(y!==a){this.U^=8;var x=this.diagram;x!==null&&Eh(x,this),this.g("avoidable",y,a)}}},avoidableMargin:{get:function(){return this.Ba!==null?this.Ba.yp:xr},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.avoidableMargin;if(!y.D(a)){a=a.J(),Nh(this),this.Ba.yp=a;var x=this.diagram;x!==null&&Eh(x,this),this.g("avoidableMargin",y,a)}}},linksConnected:{get:function(){return this.jb.iterator}},linkConnected:{get:function(){return this.Ba!==null?this.Ba.Dq:null},set:function(a){var y=this.linkConnected;y!==a&&(Nh(this),this.Ba.Dq=a,this.g("linkConnected",y,a))}},linkDisconnected:{get:function(){return this.Ba!==null?this.Ba.Eq:null},set:function(a){var y=this.linkDisconnected;y!==a&&(Nh(this),this.Ba.Eq=a,this.g("linkDisconnected",y,a))}},linkValidation:{get:function(){return this.Ba!==null?this.Ba.gj:null},set:function(a){var y=this.linkValidation;y!==a&&(Nh(this),this.Ba.gj=a,this.g("linkValidation",y,a))}},isLinkLabel:{get:function(){return this.Yk!==null}},labeledLink:{get:function(){return this.Yk},set:function(a){var y=this.Yk;if(y!==a){var x=this.diagram,E=this.data;if(y!==null){if(y.wd!==null&&(y.wd.remove(this),y.v()),x!==null&&E!==null&&!x.undoManager.isUndoingRedoing){var b=y.data,z=x.model;if(b!==null&&z.ri()){var ee=z.wa(E);ee!==void 0&&z.Qx(b,ee)}}this.containingGroup=null}this.Yk=a,a!==null&&(rS(a,this),x===null||E===null||x.undoManager.isUndoingRedoing||(b=a.data,x=x.model,b!==null&&x.ri()&&(E=x.wa(E),E!==void 0&&x.Bu(b,E))),this.containingGroup=a.containingGroup),As(this),this.g("labeledLink",y,a)}}},port:{get:function(){return this.ns("")}},ports:{get:function(){return this.wc===null&&J1(this),this.wc.iteratorValues}},isTreeExpanded:{get:function(){return(this.U&1)!==0},set:function(a){var y=(this.U&1)!==0;if(y!==a){this.U^=1;var x=this.diagram;if(this.g("isTreeExpanded",y,a),y=this.treeExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?this.Zb(a):a?this.expandTree():this.collapseTree()}}},wasTreeExpanded:{get:function(){return(this.U&2)!==0},set:function(a){var y=(this.U&2)!==0;y!==a&&(this.U^=2,this.g("wasTreeExpanded",y,a))}},treeExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Vr:null},set:function(a){var y=this.treeExpandedChanged;y!==a&&(Nh(this),this.Ba.Vr=a,this.g("treeExpandedChanged",y,a))}},isTreeLeaf:{get:function(){return(this.U&4)!==0},set:function(a){var y=(this.U&4)!==0;y!==a&&(this.U^=4,this.g("isTreeLeaf",y,a))}}}),Li.prototype.expandTree=Li.prototype.expandTree,Li.prototype.collapseTree=Li.prototype.collapseTree,Li.prototype.findTreeParts=Li.prototype.wz,Li.prototype.findTreeChildrenNodes=Li.prototype.Ou,Li.prototype.findTreeChildrenLinks=Li.prototype.Qo,Li.prototype.findTreeLevel=Li.prototype.uz,Li.prototype.findTreeParentChain=Li.prototype.vz,Li.prototype.findTreeParentNode=Li.prototype.pg,Li.prototype.findTreeParentLink=Li.prototype.kh,Li.prototype.findCommonTreeParent=Li.prototype.gz,Li.prototype.findTreeRoot=Li.prototype.xz,Li.prototype.isInTreeOf=Li.prototype.Nz,Li.prototype.findPort=Li.prototype.ns,Li.prototype.findLinksTo=Li.prototype.kz,Li.prototype.findLinksBetween=Li.prototype.jz,Li.prototype.findNodesInto=Li.prototype.Oo,Li.prototype.findNodesOutOf=Li.prototype.Po,Li.prototype.findNodesConnected=Li.prototype.Mu,Li.prototype.findLinksInto=Li.prototype.Sd,Li.prototype.findLinksOutOf=Li.prototype.Mo,Li.prototype.findExternalTreeLinksConnected=Li.prototype.qx,Li.prototype.invalidateConnectedLinks=Li.prototype.Bd,Li.prototype.invalidateLinkBundle=Li.prototype.Lz;var Bx=new En(Li,"SpreadingNone",10),Um=new En(Li,"SpreadingEvenly",11),Uv=new En(Li,"SpreadingPacked",12);Li.className="Node",Li.SpreadingNone=Bx,Li.SpreadingEvenly=Um,Li.SpreadingPacked=Uv;function Or(a,y){a===void 0||a instanceof Ia||typeof a=="string"?Li.call(this,a):(Li.call(this),a&&(y=a)),this.U|=4608,this.Gn=new yn,this.$a=null,this.Sc=new na,this.Sc.group=this,this.gl=new yn,this.tb=this.$p=null,y&&Object.assign(this,y)}xt(Or,Li),Or.prototype.cloneProtected=function(a){Li.prototype.cloneProtected.call(this,a),this.U=this.U&-32769;var y=a.Nl(function(x){return x instanceof Ms});y instanceof Ms?a.$a=y:a.$a=null,this.Sc!==null?(a.Sc=this.Sc.copy(),a.Sc.group=a):(a.Sc!==null&&(a.Sc.group=null),a.Sc=null),this.tb!==null&&(a.tb=this.tb.copy())},Ce=Or.prototype,Ce.Af=function(a){Li.prototype.Af.call(this,a);var y=a.Rj();for(a=a.memberParts;a.next();){var x=a.value;if(x.v(),x.C(8),x.Ej(),x instanceof Li)x.Bd(y);else if(x instanceof hi)for(x=x.labelNodes;x.next();)x.value.Bd(y)}},Ce.gk=function(a,y,x,E,b,z,ee){if(a===$o&&y==="elements"){if(b instanceof Ms)this.$a===null?this.$a=b:this.$a!==b&&Ve("Cannot insert a second Placeholder into the visual tree of a Group.");else if(b instanceof ni){var re=b.Nl(function(oe){return oe instanceof Ms});re instanceof Ms&&(this.$a===null?this.$a=re:this.$a!==re&&Ve("Cannot insert a second Placeholder into the visual tree of a Group."))}}else a===pa&&y==="elements"&&this.$a!==null&&(E===this.$a?this.$a=null:E instanceof ni&&this.$a.rg(E)&&(this.$a=null));Li.prototype.gk.call(this,a,y,x,E,b,z,ee)},Ce.Xl=function(a,y){Li.prototype.Xl.call(this,a,y),this.isClipping&&this.type!==ni.Spot&&this.isSubGraphExpanded&&(a=this.resizeObject,a instanceof ni&&(a=a.Pb()),this.tb===null&&(this.tb=new ut),a.mi(this.tb),a instanceof Wr&&this.tb.Bc(-a.strokeWidth,-a.strokeWidth))},Ce.eh=function(a,y,x,E){this.nf=this.$a,Li.prototype.eh.call(this,a,y,x,E)},Ce.Va=function(){var a=this;a.isSubGraphExpanded&&this.memberParts.each(function(y){!a.computesBoundsIncludingLinks&&y instanceof hi||y.Va()}),Li.prototype.Va.call(this)},Ce.si=function(){if(!Li.prototype.si.call(this))return!1;for(var a=this.memberParts;a.next();){var y=a.value;if(y instanceof Li){if(y.isVisible()&&Ls(y))return!1}else if(y instanceof hi&&y.isVisible()&&Ls(y)&&y.fromNode!==this&&y.toNode!==this)return!1}return!0};function Xv(a,y){if(a.Gn.add(y)){y instanceof Or&&a.gl.add(y);var x=a.memberAdded;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!1)}y instanceof hi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}function _v(a,y){if(a.Gn.remove(y)){y instanceof Or&&a.gl.remove(y);var x=a.memberRemoved;if(x!==null){var E=!0,b=a.diagram;b!==null&&(E=b.aa,b.aa=!0),x(a,y),b!==null&&(b.aa=E)}a.isVisible()&&a.isSubGraphExpanded||y.Zb(!0)}y instanceof hi&&!a.computesBoundsIncludingLinks||(y=a.$a,y===null&&(y=a),y.v())}Ce.Lj=function(){if(0<this.Gn.count){var a=this.diagram;if(a!==null)for(var y=this.Gn.copy().iterator;y.next();)a.remove(y.value)}Li.prototype.Lj.call(this)},Or.prototype.canAddMembers=function(a){var y=this.diagram;if(y===null)return!1;for(y=y.commandHandler,a=fn(a).iterator;a.next();)if(!y.isValidMember(this,a.value))return!1;return!0},Or.prototype.addMembers=function(a,y){var x=this.diagram;if(x===null)return!1;x=x.commandHandler;var E=!0;for(a=fn(a).iterator;a.next();){var b=a.value;!y||x.isValidMember(this,b)?b.containingGroup=this:E=!1}return E},Or.prototype.canUngroup=function(){if(!this.ungroupable)return!1;var a=this.layer;return a===null||!a.allowUngroup?!1:(a=a.diagram,!!(a===null||a.allowUngroup))},Ce=Or.prototype,Ce.Bd=function(a){var y=(this.U&65536)!==0;if(Li.prototype.Bd.call(this,a),!y)for(!(this.U&65536)&&(this.U=this.U^65536),y=this.Lu();y.next();){var x=y.value;if(a===void 0||!a.contains(x)){var E=x.fromNode;E!==null&&E!==this&&E.Td(this)&&!E.isVisible()?(tl(x.fromPort),tl(x.toPort),x.bb()):(E=x.toNode,E!==null&&E!==this&&E.Td(this)&&!E.isVisible()&&(tl(x.fromPort),tl(x.toPort),x.bb()))}}},Ce.Lu=function(){var a=this.diagram!==null&&this.diagram.Pw;if(a&&this.$p!==null)return this.$p.iterator;var y=this.Rj();y.add(this);for(var x=new yn,E=y.iterator;E.next();){var b=E.value;if(b instanceof Li)for(b=b.linksConnected;b.next();){var z=b.value;y.contains(z)||x.add(z)}}return a&&(this.$p=x),x.iterator},Ce.iz=function(){var a=this.Rj();a.add(this);for(var y=new yn,x=a.iterator;x.next();){var E=x.value;if(E instanceof Li)for(E=E.linksConnected;E.next();){var b=E.value,z=b.fromNode;z===null||a.contains(z)&&z!==this||y.add(z),b=b.toNode,b===null||a.contains(b)&&b!==this||y.add(b)}}return y.iterator},Ce.hz=function(){function a(x,E){x!==null&&(E.add(x),a(x.containingGroup,E))}var y=new yn;return a(this,y),y},Ce.Rj=function(){var a=new yn;return cd(a,this,!0,0,!0),a.remove(this),a},Ce.Zb=function(a){Li.prototype.Zb.call(this,a);for(var y=this.memberParts;y.next();)y.value.Zb(a)},Or.prototype.collapseSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();nS(this,y,a,this),a.Ue=!1}};function nS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!1),z instanceof Or&&z.isSubGraphExpanded&&(z.wasSubGraphExpanded=z.isSubGraphExpanded,nS(z,y,x,E)),z instanceof Li)z.Bd(y),x.Aj(z,E);else if(z instanceof hi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!1}Or.prototype.expandSubGraph=function(){var a=this.diagram;if(a!==null&&!a.Ue){a.Ue=!0;var y=this.Rj();iS(this,y,a,this),a.Ue=!1}};function iS(a,y,x,E){for(var b=a.memberParts;b.next();){var z=b.value;if(z.Zb(!0),z instanceof Or&&z.wasSubGraphExpanded&&(z.wasSubGraphExpanded=!1,iS(z,y,x,E)),z instanceof Li)z.Bd(y),x.Cj(z,E);else if(z instanceof hi)for(z=z.labelNodes;z.next();)z.value.Bd(y)}a.isSubGraphExpanded=!0}Or.prototype.move=function(a,y){y===void 0&&(y=!1);var x=y?this.location:this.position,E=x.x;x=x.y;var b=a.x,z=a.y;if(!(E===b||isNaN(E)&&isNaN(b))||!(x===z||isNaN(x)&&isNaN(z))){for(E=b-(isNaN(E)?0:E),x=z-(isNaN(x)?0:x),z=Te.alloc(),Li.prototype.move.call(this,a,y),a=new yn,y=this.Rj().iterator;y.next();)b=y.value,b instanceof hi&&(b.suspendsRouting&&a.add(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(b.suspendsRouting=!0);for(y.reset();y.next();)if(b=y.value,!(b.ph()||b instanceof Li&&b.isLinkLabel)){var ee=b.position,re=b.location;ee.w()?(z.x=ee.x+E,z.y=ee.y+x,b.position=z):re.w()&&(z.x=re.x+E,z.y=re.y+x,b.location=z)}for(y.reset();y.next();)b=y.value,b instanceof hi&&(b.suspendsRouting=a.contains(b),b.fd||b.fromNode!==this&&b.toNode!==this)&&(ee=b.position,z.x=ee.x+E,z.y=ee.y+x,z.w()?b.move(z):b.bb(),Qv(b)&&b.bb());Te.free(z)}},Ct.Object.defineProperties(Or.prototype,{placeholder:{get:function(){return this.$a}},computesBoundsAfterDrag:{get:function(){return(this.U&2048)!==0},set:function(a){var y=(this.U&2048)!==0;y!==a&&(this.U^=2048,this.g("computesBoundsAfterDrag",y,a))}},computesBoundsIncludingLinks:{get:function(){return(this.U&4096)!==0},set:function(a){var y=(this.U&4096)!==0;y!==a&&(this.U^=4096,this.g("computesBoundsIncludingLinks",y,a))}},computesBoundsIncludingLocation:{get:function(){return(this.U&8192)!==0},set:function(a){var y=(this.U&8192)!==0;y!==a&&(this.U^=8192,this.g("computesBoundsIncludingLocation",y,a))}},handlesDragDropForMembers:{get:function(){return(this.U&16384)!==0},set:function(a){var y=(this.U&16384)!==0;y!==a&&(this.U^=16384,this.g("handlesDragDropForMembers",y,a))}},memberParts:{get:function(){return this.Gn.iterator}},layout:{get:function(){return this.Sc},set:function(a){var y=this.Sc;if(y!==a){a!==null&&a.diagram!==null&&a.diagram.layout===a&&Ve("A layout cannot be both the Diagram.layout and a Group.layout: "+a),y!==null&&(y.diagram=null,y.group=null),this.Sc=a;var x=this.diagram;a!==null&&(a.diagram=x,a.group=this),x!==null&&(x.xh=!0),this.g("layout",y,a),x!==null&&x.$b()}}},memberAdded:{get:function(){return this.Ba!==null?this.Ba.Mq:null},set:function(a){var y=this.memberAdded;y!==a&&(Nh(this),this.Ba.Mq=a,this.g("memberAdded",y,a))}},memberRemoved:{get:function(){return this.Ba!==null?this.Ba.Nq:null},set:function(a){var y=this.memberRemoved;y!==a&&(Nh(this),this.Ba.Nq=a,this.g("memberRemoved",y,a))}},memberValidation:{get:function(){return this.Ba!==null?this.Ba.ij:null},set:function(a){var y=this.memberValidation;y!==a&&(Nh(this),this.Ba.ij=a,this.g("memberValidation",y,a))}},ungroupable:{get:function(){return(this.U&256)!==0},set:function(a){var y=(this.U&256)!==0;y!==a&&(this.U^=256,this.g("ungroupable",y,a))}},isSubGraphExpanded:{get:function(){return(this.U&512)!==0},set:function(a){var y=(this.U&512)!==0;if(y!==a){this.U^=512;var x=this.diagram;if(this.g("isSubGraphExpanded",y,a),y=this.subGraphExpandedChanged,y!==null){var E=!0;x!==null&&(E=x.aa,x.aa=!0),y(this),x!==null&&(x.aa=E)}x!==null&&x.undoManager.isUndoingRedoing?(this.$a!==null&&this.$a.v(),this.memberParts.each(function(b){b.updateAdornments()})):a?this.expandSubGraph():this.collapseSubGraph()}}},wasSubGraphExpanded:{get:function(){return(this.U&1024)!==0},set:function(a){var y=(this.U&1024)!==0;y!==a&&(this.U^=1024,this.g("wasSubGraphExpanded",y,a))}},subGraphExpandedChanged:{get:function(){return this.Ba!==null?this.Ba.Kr:null},set:function(a){var y=this.subGraphExpandedChanged;y!==a&&(Nh(this),this.Ba.Kr=a,this.g("subGraphExpandedChanged",y,a))}},rh:{get:function(){return(this.U&32768)!==0},set:function(a){(this.U&32768)!==0!==a&&(this.U^=32768)}}}),Or.prototype.expandSubGraph=Or.prototype.expandSubGraph,Or.prototype.collapseSubGraph=Or.prototype.collapseSubGraph,Or.prototype.findSubGraphParts=Or.prototype.Rj,Or.prototype.findContainingGroupChain=Or.prototype.hz,Or.prototype.findExternalNodesConnected=Or.prototype.iz,Or.prototype.findExternalLinksConnected=Or.prototype.Lu,Or.prototype.ensureBounds=Or.prototype.Va,Or.className="Group";function Ms(a){kt.call(this),this.yb=Rr,this.ko=new ut(NaN,NaN,NaN,NaN),a&&Object.assign(this,a)}xt(Ms,kt),Ms.prototype.cloneProtected=function(a){kt.prototype.cloneProtected.call(this,a),a.yb=this.yb.J(),a.ko=this.ko.copy()},Ms.prototype.gh=function(a){if(this.background===null&&this.areaBackground===null)return!1;var y=this.naturalBounds;return Oi(0,0,y.width,y.height,a.x,a.y)},Ms.prototype.Wl=function(){var a=this.part;if(a!==null&&(a instanceof Or||a instanceof uo)||Ve("Placeholder is not inside a Group or Adornment."),a instanceof Or){var y=this.computeBorder(this.ko),x=this.minSize,E=this.dc;for(Qn(E,(isFinite(x.width)?Math.max(x.width,y.width):y.width)||0,(isFinite(x.height)?Math.max(x.height,y.height):y.height)||0),this.Ge(0,0,E.width,E.height),E=a.memberParts,x=!1;E.next();)if(E.value.isVisible()){x=!0;break}E=a.diagram,!x||E===null||E.animationManager.Xu(a)||isNaN(y.x)||isNaN(y.y)||(x=Te.alloc(),x.xi(y,a.locationSpot),x.D(a.location)||(a.location=x),Te.free(x))}else{y=this.dc,x=this.yb,E=x.left+x.right;var b=x.top+x.bottom,z=a.adornedObject;a.angle=z.li();var ee=0;z instanceof Wr&&(ee=z.strokeWidth);var re=z.Df(),oe=z.naturalBounds,se=(oe.width+ee)*re;ee=(oe.height+ee)*re,a.type!==ni.Link&&(re=z.ga(a.category==="Selection"?Ji:a.locationSpot,Te.alloc()),a.location=re,Te.free(re)),isNaN(se)||isNaN(ee)?(a=z.ga(Ji,Te.alloc()),se=ut.allocAt(a.x,a.y,0,0),se.Ye(z.ga(Ar,a)),se.Ye(z.ga(Qi,a)),se.Ye(z.ga(Yr,a)),Qn(y,se.width+E||0,se.height+b||0),this.Ge(-x.left,-x.top,y.width,y.height),Te.free(a),ut.free(se)):(Qn(y,se+E||0,ee+b||0),this.Ge(-x.left,-x.top,y.width,y.height))}},Ms.prototype.eh=function(a,y,x,E){this.actualBounds.h(a,y,x,E)},Ms.prototype.computeBorder=function(a){var y=this.part,x=y.diagram,E=x===null||!x.animationManager.isAnimating;if(x!==null&&y instanceof Or&&!y.layer.isTemporary&&y.computesBoundsAfterDrag&&this.ko.w()){var b=x.toolManager.findTool("Dragging");if(b===x.currentTool&&(x=b.computeBorder(y,this.ko,a),x!==null))return x}x=ut.alloc(),b=this.computeMemberBounds(x);var z=this.yb;return y instanceof Or&&!y.isSubGraphExpanded?a.h(b.x-z.left,b.y-z.top,0,0):a.h(b.x-z.left,b.y-z.top,Math.max(b.width+z.left+z.right,0),Math.max(b.height+z.top+z.bottom,0)),ut.free(x),E&&y instanceof Or&&y.computesBoundsIncludingLocation&&y.location.w()&&a.Ye(y.location),a},Ms.prototype.computeMemberBounds=function(a){if(!(this.part instanceof Or))return a.h(0,0,0,0),a;for(var y=this.part,x=1/0,E=1/0,b=-1/0,z=-1/0,ee=y.memberParts;ee.next();){var re=ee.value;if(re.isVisible()){if(re instanceof hi&&(!y.computesBoundsIncludingLinks||hl(re)||re.fromNode===y||re.toNode===y))continue;re=re.actualBounds,re.left<x&&(x=re.left),re.top<E&&(E=re.top),re.right>b&&(b=re.right),re.bottom>z&&(z=re.bottom)}}return isFinite(x)&&isFinite(E)?a.h(x,E,b-x,z-E):(y=y.location,a.h(y.x,y.y,0,0)),a},Ct.Object.defineProperties(Ms.prototype,{padding:{get:function(){return this.yb},set:function(a){typeof a=="number"&&(a=new Fi(a));var y=this.yb;y.D(a)||(this.yb=a=a.J(),this.g("padding",y,a),this.v())}}}),Ms.className="Placeholder";function hi(a){ir.call(this,ni.Link),this.Qa=8,this.ef=null,this.ff="",this.uf=this.gn=null,this.vf="",this.uo=null,this.qk=ks,this.Om=0,this.Qm=ks,this.Rm=NaN,this.qj=ey,this.po=.5,this.wd=null,this.Nb=new cn().freeze(),this.Tg=this.Mg=null,this.ml=new ut,this.ua=new zn,this.u=this.o=this.Sf=this.Wf=null,this.su=new Te,this.cq=this.Mw=this.Lw=null,this.vt=NaN,this.ba=null,this.j=[],a&&Object.assign(this,a)}xt(hi,ir),hi.prototype.cloneProtected=function(a){ir.prototype.cloneProtected.call(this,a),a.Qa=this.Qa&-113,a.ff=this.ff,a.gn=this.gn,a.vf=this.vf,a.uo=this.uo,a.qk=this.qk,a.Om=this.Om,a.Qm=this.Qm,a.Rm=this.Rm,a.qj=this.qj,a.po=this.po,this.ba!==null&&(a.ba=this.ba.copy())},Ce=hi.prototype,Ce.Af=function(a){ir.prototype.Af.call(this,a),this.ff=a.ff,this.vf=a.vf,a.Mg=null,a.bb(),a.Sf=this.Sf;var y=a.fromPort;y!==null&&tl(y),a=a.toPort,a!==null&&tl(a)},Ce.qb=function(a){a.classType===hi?(a.value&2)===2?this.routing=a:a===cl||a===Th||a===Zf?this.curve=a:a===ap||a===$m||a===e0?this.adjusting=a:a!==ey&&a!==ks&&Ve("Unknown Link enum value for a Link property: "+a):ir.prototype.qb.call(this,a)},Ce.Xc=function(){this.ba===null&&(this.ba=new Yg)},Ce.si=function(){var a=this.fromNode;if(a!==null){var y=a.findVisibleNode();if(y!==null&&(a=y),Ls(a)||hd(a))return!1}return a=this.toNode,!(a!==null&&(y=a.findVisibleNode(),y!==null&&(a=y),Ls(a)||hd(a)))},Ce.zv=function(){return!1},Ce.Av=function(){},Ce.Zc=function(){return!1},hi.prototype.computeAngle=function(a,y,x){return hi.computeAngle(y,x)},hi.computeAngle=function(a,y){switch(a){default:case ks:a=0;break;case sp:a=y;break;case lp:a=y+90;break;case up:a=y-90;break;case ty:a=y+180;break;case t0:a=pt.bp(y),90<a&&270>a&&(a-=180);break;case hp:a=pt.bp(y+90),90<a&&270>a&&(a-=180);break;case dp:a=pt.bp(y-90),90<a&&270>a&&(a-=180);break;case n0:if(a=pt.bp(y),45<a&&135>a||225<a&&315>a)return 0;90<a&&270>a&&(a-=180)}return pt.bp(a)};function Wf(a){var y=a.fromNode,x=a.toNode,E=null;if(y!==null?E=x!==null?y.px(x):y.containingGroup:x!==null?E=x.containingGroup:E=null,y=E,x=a.Ah,x!==y){x!==null&&_v(x,a),a.Ah=y,y!==null&&Xv(y,a);var b=a.containingGroupChanged;if(b!==null){var z=!0,ee=a.diagram;ee!==null&&(z=ee.aa,ee.aa=!0),b(a,x,y),ee!==null&&(ee.aa=z)}!a.fd||a.Lw!==x&&a.Mw!==x||a.bb()}if(a.isLabeledLink)for(a=a.labelNodes;a.next();)a.value.containingGroup=E}Ce=hi.prototype,Ce.oh=function(){var a=this.containingGroup;a!==null&&this.fromNode!==a&&this.toNode!==a&&a.computesBoundsIncludingLinks&&ir.prototype.oh.call(this)},Ce.To=function(a){var y=this.fromNode;return a===y?this.toNode:y},Ce.Cz=function(a){var y=this.fromPort;return a===y?this.toPort:y};function rS(a,y){a.wd===null&&(a.wd=new yn),a.wd.add(y),a.v()}Ce.Vo=function(a){if(ir.prototype.Vo.call(this,a),tc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Km(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Km(x,this,E)}rp(this)}},Ce.Wo=function(a){if(ir.prototype.Wo.call(this,a),tc(this)&&this.Xo(this.actualBounds),!a){a=this.ef;var y=null;a!==null&&(y=this.fromPort,Ym(a,this,y));var x=this.uf;if(x!==null){var E=this.toPort;x===a&&E===y||Ym(x,this,E)}op(this)}},Ce.Lj=function(){if(this.fd=!0,this.wd!==null){var a=this.diagram;if(a!==null)for(var y=this.wd.copy().iterator;y.next();)a.remove(y.value)}this.data!==null&&(a=this.diagram,a!==null&&a.partManager.removeDataForLink(this))},hi.prototype.updateRelationshipsFromData=function(){if(this.data!==null){var a=this.diagram;a!==null&&a.partManager.updateRelationshipsFromData(this)}},hi.prototype.move=function(a,y){var x=y?this.location:this.position,E=x.x;isNaN(E)&&(E=0);var b=x.y;for(isNaN(b)&&(b=0),E=a.x-E,b=a.y-b,y===!0?ir.prototype.move.call(this,a,!1):(a=Te.allocAt(x.x+E,x.y+b),ir.prototype.move.call(this,a,!1),Te.free(a)),Bh(this,E,b),a=this.labelNodes;a.next();)y=a.value,x=y.position,y.moveTo(x.x+E,x.y+b)},hi.prototype.canRelinkFrom=function(){if(!this.relinkableFrom)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},hi.prototype.canRelinkTo=function(){if(!this.relinkableTo)return!1;var a=this.layer;return a===null?!0:a.allowRelink?(a=a.diagram,!!(a===null||a.allowRelink)):!1},hi.prototype.computeMidPoint=function(a){var y=this.pointsCount;if(y===0)return a.assign(en),a;if(y===1)return a.assign(this.i(0)),a;if(y===2){var x=this.i(0),E=this.i(1);return a.h((x.x+E.x)/2,(x.y+E.y)/2),a}if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===cl))return this.ua.Pu(.5,a),a.add(this.i(0)),x=this.ua.figures.first(),a.offset(-x.startX,-x.startY),a;if(this.computeCurve()===cl){if(y===3){x=this.i(0),E=this.i(1);var b=this.i(2);return pt.ax(x.x,x.y,E.x,E.y,E.x,E.y,b.x,b.y,a),a}if(E=(y-1)/3|0,x=3*(E/2|0),E%2===1){E=this.i(x),b=this.i(x+1);var z=this.i(x+2);x=this.i(x+3),pt.ax(E.x,E.y,b.x,b.y,z.x,z.y,x.x,x.y,a)}else a.assign(this.i(x));return a}var ee=this.flattenedLengths;for(x=this.flattenedTotalLength,b=z=E=0;E<x/2&&z<y&&(b=ee[z],!(E+b>x/2));)E+=b,z++;return y=this.i(z),z=this.i(z+1),1>Math.abs(y.x-z.x)?y.y>z.y?a.h(y.x,y.y-(x/2-E)):a.h(y.x,y.y+(x/2-E)):1>Math.abs(y.y-z.y)?y.x>z.x?a.h(y.x-(x/2-E),y.y):a.h(y.x+(x/2-E),y.y):(x=(x/2-E)/b,a.h(y.x+x*(z.x-y.x),y.y+x*(z.y-y.y))),a},hi.prototype.computeMidAngle=function(){var a=this.pointsCount;if(2>a)return NaN;if(a===2)return this.i(0).ab(this.i(1));if(this.isOrthogonal&&(15<=this.computeCorner()||this.computeCurve()===cl))return this.ua.wx(.5);if(this.computeCurve()===cl&&4<=a){var y=(a-1)/3|0,x=3*(y/2|0);if(y%2===1){x=Math.floor(x),a=this.i(x),y=this.i(x+1);var E=this.i(x+2);return x=this.i(x+3),pt.My(a.x,a.y,y.x,y.y,E.x,E.y,x.x,x.y)}if(0<x&&x+1<a)return this.i(x-1).ab(this.i(x+1))}y=this.flattenedLengths,E=this.flattenedTotalLength;var b=0;x=0;for(var z;b<E/2&&x<a&&(z=y[x],!(b+z>E/2));)b+=z,x++;if(y=this.i(x),E=this.i(x+1),1>Math.abs(y.x-E.x)&&1>Math.abs(y.y-E.y)){if(0<x&&x+2<a)return this.i(x-1).ab(this.i(x+2))}else{if(1>Math.abs(y.x-E.x))return y.y>E.y?270:90;if(1>Math.abs(y.y-E.y))return y.x>E.x?180:0}return y.ab(E)},Ce=hi.prototype,Ce.i=function(a){return this.Nb.s[a]},Ce.dd=function(a,y){this.Nb.cd(a,y)},Ce.L=function(a,y,x){this.Nb.cd(a,new Te(y,x))},Ce.Kz=function(a,y){this.Nb.Gb(a,y)},Ce.m=function(a,y,x){this.Nb.Gb(a,new Te(y,x))},Ce.ne=function(a){this.Nb.add(a)},Ce.yf=function(a,y){this.Nb.add(new Te(a,y))},Ce.pv=function(a){this.Nb.mb(a)},Ce.Fj=function(){this.Nb.clear()};function Bh(a,y,x){if(y!==0||x!==0)if(a.pointsCount===0)a.defaultFromPoint&&a.defaultFromPoint.offset(y,x),a.defaultToPoint&&a.defaultToPoint.offset(y,x);else{for(var E=a.fd,b=new cn,z=a.Nb.iterator;z.next();){var ee=z.value;b.add(new Te(ee.x+y,ee.y+x).freeze())}b.freeze(),z=a.Nb,a.Nb=b,ee=a.diagram,isNaN(y)||isNaN(x)||ee!==null&&ee.animationManager.zb?a.v():(a.ke.h(a.ke.x+y,a.ke.y+x),a.pa.h(a.pa.x+y,a.pa.y+x),As(a)),E?Xm(a):(a.defaultFromPoint&&(a.defaultFromPoint=a.i(0)),a.defaultToPoint&&(a.defaultToPoint=a.i(a.pointsCount-1))),ee!==null&&ee.animationManager.zb&&cf(ee.animationManager,a,b),a.g("points",z,b)}}Ce.uh=function(){this.Mg===null&&(this.Mg=this.Nb,this.Nb=this.Nb.copy())},Ce.zf=function(){if(this.Mg!==null){for(var a=this.Mg,y=this.Nb,x=1/0,E=1/0,b=a.s,z=b.length,ee=0;ee<z;ee++){var re=b[ee];x=Math.min(re.x,x),E=Math.min(re.y,E)}re=ee=1/0;for(var oe=y.s,se=oe.length,ue=0;ue<se;ue++){var fe=oe[ue];ee=Math.min(fe.x,ee),re=Math.min(fe.y,re),fe.freeze()}if(y.freeze(),se===z){for(z=0;z<se;z++)if(ue=b[z],fe=oe[z],ue.x-x!==fe.x-ee||ue.y-E!==fe.y-re){this.qc();break}}else this.qc();this.Mg=null,x=this.diagram,x!==null&&x.animationManager.zb&&cf(x.animationManager,this,y),Xm(this),this.g("points",a,y)}},Ce.rv=function(){this.Mg!==null&&(this.Nb=this.Mg,this.Mg=null)};function Xm(a){a.Nb.count===0?a.fd=!1:(a.fd=!0,a.cq=null,a.vt=NaN,a.defaultFromPoint=a.i(0),a.defaultToPoint=a.i(a.pointsCount-1),qm(a,!1))}Ce.bb=function(){if(!this.suspendsRouting){var a=this.diagram;if(a){if(a.As.contains(this)||a.undoManager.isUndoingRedoing||(a=a.animationManager,a.isTicking&&!a.isAnimating))return;this.Tg===null||a.isTicking||(this.Tg=null)}a=this.path,a!==null&&(this.fd=!1,this.v(),a.v())}},Ce.vg=function(){if(!this.fd&&!this.computingPoints){var a=!0;try{this.computingPoints=!0,this.uh(),a=this.computePoints()}catch(y){this.computingPoints=!1,this.rv()}finally{this.computingPoints=!1,a?this.zf():this.rv()}}},hi.prototype.computePoints=function(){if(this.diagram===null)return!1;var a=this.fromNode,y=null;if(a===null?(jc||(jc=new Li,jc.desiredSize=ot,jc.Va()),this.defaultFromPoint&&(jc.location=this.defaultFromPoint,jc.Va(),y=a=jc)):y=this.fromPort,y!==null&&!a.isVisible()){var x=a.findVisibleNode();x!==null&&x!==a?(a=x,y=x.port):a=x}if(this.Lw=a,a===null||!a.location.w())return!1;for(;!(y===null||y.actualBounds.w()&&y.Ed());)y=y.panel;if(y===null)return!1;var E=this.toNode,b=null;if(E===null?(Wc||(Wc=new Li,Wc.desiredSize=ot,Wc.Va()),this.defaultToPoint&&(Wc.location=this.defaultToPoint,Wc.Va(),b=E=Wc)):b=this.toPort,b===null||E.isVisible()||(x=E.findVisibleNode(),x!==null&&x!==E?(E=x,b=x.port):E=x),this.Mw=E,E===null||!E.location.w())return!1;for(;!(b===null||b.actualBounds.w()&&b.Ed());)b=b.panel;if(b===null)return!1;var z=this.pointsCount,ee=this.computeSpot(!0,y);x=this.computeSpot(!1,b);var re=Hf(ee),oe=Hf(x),se=y===b&&y!==null,ue=this.isOrthogonal,fe=this.curve===cl;this.Wf=se&&!ue?fe=!0:!1;var ve=this.computeAdjusting()===ks||se;if(!ue&&!se&&re&&oe){if(re=!1,!ve&&3<=z&&(ve=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),re=this.adjustPoints(0,ve,z-1,oe))&&(ve=this.getLinkPoint(a,y,ee,!0,!1,E,b),oe=this.getLinkPoint(E,b,x,!1,!1,a,y),this.adjustPoints(0,ve,z-1,oe)),!re)if(this.Fj(),fe){z=this.getLinkPoint(a,y,ee,!0,!1,E,b),ve=this.getLinkPoint(E,b,x,!1,!1,a,y),re=ve.x-z.x,oe=ve.y-z.y,se=this.computeCurviness(),fe=ue=0;var xe=z.x+re/3,Pe=z.y+oe/3,Fe=xe,Je=Pe;pt.B(oe,0)?Je=0<re?Je-se:Je+se:(ue=-re/oe,fe=Math.sqrt(se*se/(ue*ue+1)),0>se&&(fe=-fe),Fe=(0>oe?-1:1)*fe+xe,Je=ue*(Fe-xe)+Pe),xe=z.x+2*re/3,Pe=z.y+2*oe/3;var We=xe,rt=Pe;pt.B(oe,0)?rt=0<re?rt-se:rt+se:(We=(0>oe?-1:1)*fe+xe,rt=ue*(We-xe)+Pe),this.Fj(),this.ne(z),this.yf(Fe,Je),this.yf(We,rt),this.ne(ve),this.dd(0,this.getLinkPoint(a,y,ee,!0,!1,E,b)),this.dd(3,this.getLinkPoint(E,b,x,!1,!1,a,y))}else z=E,ve=b,E=this.getLinkPoint(a,y,ee,!0,!1,z,ve),b=this.getLinkPoint(z,ve,x,!1,!1,a,y),this.hasCurviness()?(ve=b.x-E.x,x=b.y-E.y,ee=this.computeCurviness(),a=E.x+ve/2,y=E.y+x/2,z=a,re=y,pt.B(x,0)?re=0<ve?re-ee:re+ee:(ve=-ve/x,z=Math.sqrt(ee*ee/(ve*ve+1)),0>ee&&(z=-z),z=(0>x?-1:1)*z+a,re=ve*(z-a)+y),this.ne(E),this.yf(z,re),this.ne(b)):(this.ne(E),this.ne(b),re=ut.alloc(),y.mi(re),oe=re.ca(b),ve.mi(re),se=re.ca(E),(oe||se)&&(ee=y.ga(Jm(ee),new Te),this.dd(0,this.getLinkPointFromPoint(a,y,ee,b,!0,ee)),x=ve.ga(Jm(x),new Te),this.dd(1,this.getLinkPointFromPoint(z,ve,x,E,!1,x))),ut.free(re))}else{fe=this.isAvoiding,ve&&(ue&&fe||se)&&this.Fj();var at=se?this.computeCurviness():0;fe=this.getLinkPoint(a,y,ee,!0,ue,E,b),xe=Fe=Pe=0,(ue||!re||se)&&(Je=this.computeEndSegmentLength(a,y,ee,!0),xe=this.getLinkDirection(a,y,fe,ee,!0,ue,E,b),se&&(re||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(xe-=ue?90:30,0>at&&(xe-=180)),0>xe?xe+=360:360<=xe&&(xe-=360),se&&(Je+=Math.abs(at)*(ue?1:2)),xe===0?Pe=Je:xe===90?Fe=Je:xe===180?Pe=-Je:xe===270?Fe=-Je:(Pe=Je*Math.cos(xe*Math.PI/180),Fe=Je*Math.sin(xe*Math.PI/180)),ee.Mc()&&se&&(Je=y.ga(Mi,Te.alloc()),We=Te.allocAt(Je.x+1e3*Pe,Je.y+1e3*Fe),this.getLinkPointFromPoint(a,y,Je,We,!0,fe),Te.free(Je),Te.free(We))),Je=this.getLinkPoint(E,b,x,!1,ue,a,y);var ht=rt=We=0;if(ue||!oe||se){var bt=this.computeEndSegmentLength(E,b,x,!1);ht=this.getLinkDirection(E,b,Je,x,!1,ue,a,y),se&&(oe||ee.D(x)||!ue&&ee.x+x.x===1&&ee.y+x.y===1)&&(ht+=ue?0:30,0>at&&(ht+=180)),0>ht?ht+=360:360<=ht&&(ht-=360),se&&(bt+=Math.abs(at)*(ue?1:2)),ht===0?We=bt:ht===90?rt=bt:ht===180?We=-bt:ht===270?rt=-bt:(We=bt*Math.cos(ht*Math.PI/180),rt=bt*Math.sin(ht*Math.PI/180)),x.Mc()&&se&&(x=b.ga(Mi,Te.alloc()),ee=Te.allocAt(x.x+1e3*We,x.y+1e3*rt),this.getLinkPointFromPoint(E,b,x,ee,!1,Je),Te.free(x),Te.free(ee))}x=fe,(ue||!re||se)&&(x=new Te(fe.x+Pe,fe.y+Fe)),ee=Je,(ue||!oe||se)&&(ee=new Te(Je.x+We,Je.y+rt)),!ve&&!ue&&re&&3<z&&this.adjustPoints(0,fe,z-2,ee)?this.dd(z-1,Je):!ve&&!ue&&oe&&3<z&&this.adjustPoints(1,x,z-1,Je)?this.dd(0,fe):!ve&&(ue?6<=z:4<z)&&this.adjustPoints(1,x,z-2,ee)?(this.dd(0,fe),this.dd(z-1,Je)):(this.Fj(),this.ne(fe),(ue||!re||se)&&this.ne(x),ue&&this.addOrthoPoints(x,xe,ee,ht,a,E),(ue||!oe||se)&&this.ne(ee),this.ne(Je))}return!0};function Jv(a,y){return Math.abs(y.x-a.x)>Math.abs(y.y-a.y)?(y.x>=a.x?y.x=a.x+9e9:y.x=a.x-9e9,y.y=a.y):(y.y>=a.y?y.y=a.y+9e9:y.y=a.y-9e9,y.x=a.x),y}hi.prototype.getLinkPointFromPoint=function(a,y,x,E,b,z){if(z===void 0&&(z=new Te),a===null||y===null)return z.assign(x),z;if(a.isVisible()||(b=a.findVisibleNode(),b!==null&&b!==a&&(y=b.port)),a=null,b=y.panel,b===null||b.se()||(b=b.panel),b===null){b=E.x,E=E.y;var ee=x.x;x=x.y}else{a=b.oe,b=1/(a.m11*a.m22-a.m12*a.m21),ee=a.m22*b;var re=-a.m12*b,oe=-a.m21*b,se=a.m11*b,ue=b*(a.m21*a.dy-a.m22*a.dx),fe=b*(a.m12*a.dx-a.m11*a.dy);b=E.x*ee+E.y*oe+ue,E=E.x*re+E.y*se+fe,ee=x.x*ee+x.y*oe+ue,x=x.x*re+x.y*se+fe}return y.Sj(b,E,ee,x,z),a!==null&&z.transform(a),z};function _m(a,y){var x=y.Zn;return x===null&&(x=new Hc,x.port=y,x.node=y.part,y.Zn=x),cS(x,a)}hi.prototype.getLinkPoint=function(a,y,x,E,b,z,ee,re){if(re===void 0&&(re=new Te),x.sb()&&!Hf(x))return y.ga(x,re),re;if(x.$c()){var oe=_m(this,y);if(oe!==null){if(re.assign(oe.Zo),b&&this.routing===aS){var se=_m(this,ee);if(se!==null&&oe.Gl<se.Gl){oe=Te.alloc(),se=Te.alloc();var ue=new ut(y.ga(Ji,oe),y.ga(Ar,se)),fe=this.computeSpot(!E,ee);a=this.getLinkPoint(z,ee,fe,!E,b,a,y,se),(x.Hf(Xr)||x.Hf(_r))&&a.y>=ue.y&&a.y<=ue.y+ue.height?re.y=a.y:(x.Hf(eo)||x.Hf(fo))&&a.x>=ue.x&&a.x<=ue.x+ue.width&&(re.x=a.x),Te.free(oe),Te.free(se)}}return re}}return x=y.ga(Jm(x),Te.alloc()),this.pointsCount>(b?6:2)?(ee=E?this.i(1):this.i(this.pointsCount-2),b&&(ee=Jv(x,ee.copy()))):(oe=this.computeSpot(!E,ee),z=Te.alloc(),ee=ee.ga(Jm(oe),z),b&&(ee=Jv(x,ee)),Te.free(z)),this.getLinkPointFromPoint(a,y,x,ee,E,re),Te.free(x),re},hi.prototype.getLinkDirection=function(a,y,x,E,b,z,ee,re){e:if(E.sb())var oe=E.x>E.y?E.x>1-E.y?0:E.x<1-E.y?270:315:E.x<E.y?E.x>1-E.y?90:E.x<1-E.y?180:135:.5>E.x?225:.5<E.x?45:0;else{if(E.$c()&&(oe=_m(this,y),oe!==null))switch(oe.Nc){case 1:oe=270;break e;case 2:oe=180;break e;default:case 4:oe=0;break e;case 8:oe=90;break e}oe=y.ga(Mi,Te.alloc()),this.pointsCount>(z?6:2)?(re=b?this.i(1):this.i(this.pointsCount-2),re=z?Jv(oe,re.copy()):x):(x=Te.alloc(),re=re.ga(Mi,x),Te.free(x)),x=Math.abs(re.x-oe.x)>Math.abs(re.y-oe.y)?re.x>=oe.x?0:180:re.y>=oe.y?90:270,Te.free(oe),oe=x}return E.Mc()&&ee.Td(a)&&(oe+=180,360<=oe&&(oe-=360)),Hf(E)||(a=y.li(),a===0)||(45<=a&&135>a?oe+=90:135<=a&&225>a?oe+=180:225<=a&&315>a&&(oe+=270),360<=oe&&(oe-=360)),oe},hi.prototype.computeEndSegmentLength=function(a,y,x,E){return y!==null&&x.$c()&&(a=_m(this,y),a!==null)?a.Ju:(a=E?this.fromEndSegmentLength:this.toEndSegmentLength,y!==null&&isNaN(a)&&(a=E?y.fromEndSegmentLength:y.toEndSegmentLength),isNaN(a)&&(a=10),a)},hi.prototype.computeSpot=function(a,y){return y===void 0&&(y=null),a?(a=y||this.fromPort,a===null?a=Mi:(y=this.fromSpot,y.Xb()&&(y=a.fromSpot),a=y===Lo?Zi:y)):(a=y||this.toPort,a===null?a=Mi:(y=this.toSpot,y.Xb()&&(y=a.toSpot),a=y===Lo?Zi:y)),a};function Hf(a){return a===Zi||a.x===.5&&a.y===.5}function Jm(a){return a.x===.5&&a.y===.5?a:Mi}hi.prototype.computeOtherPoint=function(a,y){return this.computeAdjusting()!==ks&&4<this.pointsCount?this.computeMidPoint(new Te):(a=y.Zn,a=a!==null?cS(a,this):null,a!==null?a.Zo:y.ga(Mi))},hi.prototype.computeShortLength=function(a){if(a){if(a=this.fromShortLength,isNaN(a)){var y=this.fromPort;y!==null&&(a=y.fromShortLength)}return isNaN(a)?0:a}return a=this.toShortLength,isNaN(a)&&(y=this.toPort,y!==null&&(a=y.toShortLength)),isNaN(a)?0:a},hi.prototype.Cf=function(a,y,x,E,b,z){if(this.pickable===!1)return!1;y===void 0&&(y=null),x===void 0&&(x=null);var ee=z;if(z===void 0&&(ee=vi.alloc(),ee.reset()),ee.multiply(this.transform),this.fh(a,ee))return xv(this,y,x,b),z===void 0&&vi.free(ee),!0;if(this.Yc(a,ee)){var re=!1;if(!this.isAtomic)for(var oe=this.O.s,se=oe.length;se--;){var ue=oe[se];if(ue.visible||ue===this.locationObject){var fe=ue.actualBounds,ve=this.naturalBounds;if(!(fe.x>ve.width||fe.y>ve.height||0>fe.x+fe.width||0>fe.y+fe.height)){if(fe=vi.alloc(),fe.set(ee),ue instanceof ni)re=ue.Cf(a,y,x,E,b,fe);else if(this.path===ue){if(ue instanceof Wr)if(re=a,ve=E,ue.pickable===!1)re=!1;else if(fe.multiply(ue.transform),ve)e:{var xe=re,Pe=fe;if(ue.fh(xe,Pe))re=!0;else{if(Pe===void 0&&(Pe=ue.transform,xe.Re(ue.actualBounds))){re=!0;break e}re=xe.left,ve=xe.right;var Fe=xe.top;xe=xe.bottom;var Je=Te.alloc(),We=Te.alloc(),rt=Te.alloc(),at=vi.alloc();at.set(Pe),at.bv(ue.transform),at.Vj(),We.x=ve,We.y=Fe,We.transform(at),Je.x=re,Je.y=Fe,Je.transform(at),Pe=!1,$d(ue,Je,We,rt)?Pe=!0:(Je.x=ve,Je.y=xe,Je.transform(at),$d(ue,Je,We,rt)?Pe=!0:(We.x=re,We.y=xe,We.transform(at),$d(ue,Je,We,rt)?Pe=!0:(Je.x=re,Je.y=Fe,Je.transform(at),$d(ue,Je,We,rt)&&(Pe=!0)))),vi.free(at),Te.free(Je),Te.free(We),Te.free(rt),re=Pe}}else re=ue.fh(re,fe)}else re=ja(ue,a,E,fe);re&&(ve=ue,y!==null&&(ve=y(ue)),ve&&(x===null||x(ve))&&b.add(ve)),vi.free(fe)}}}return z===void 0&&vi.free(ee),re||this.background!==null||this.areaBackground!==null}return z===void 0&&vi.free(ee),!1},hi.prototype.computeCurve=function(){if(this.Wf===null){var a=this.fromPort,y=this.isOrthogonal;this.Wf=a!==null&&a===this.toPort&&!y}return this.Wf?cl:this.curve},hi.prototype.computeCorner=function(){if(this.curve===cl)return 0;var a=this.corner;return(isNaN(a)||0>a)&&(a=10),a},hi.prototype.findMidLabel=function(){for(var a=this.path,y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];if(b!==a&&!b.isPanelMain&&(b.segmentIndex===-1/0||isNaN(b.segmentIndex)))return b}for(a=this.labelNodes;a.next();)if(y=a.value,y.segmentIndex===-1/0||isNaN(y.segmentIndex))return y;return null},hi.prototype.computeSpacing=function(){if(!this.isVisible())return 0;var a=lS;a=Math.max(a,this.computeThickness());var y=this.fromPort,x=this.toPort;if(y!==null&&x!==null){var E=this.findMidLabel();if(E!==null){var b=E.naturalBounds,z=E.margin,ee=isNaN(b.width)?30:b.width*E.scale+z.left+z.right;b=isNaN(b.height)?14:b.height*E.scale+z.top+z.bottom,E=E.segmentOrientation,E===sp||E===t0||E===ty?a=Math.max(a,b):E===up||E===dp||E===lp||E===hp?a=Math.max(a,ee):(y=y.ga(Mi).ab(x.ga(Mi))/180*Math.PI,a=Math.max(a,Math.abs(Math.sin(y)*ee)+Math.abs(Math.cos(y)*b)+1)),this.curve===cl&&(a*=1.333)}}return a},hi.prototype.arrangeBundledLinks=function(a,y){if(y)for(y=0;y<a.length;y++){var x=a[y];x.computeAdjusting()===ks&&x.bb()}},hi.prototype.computeCurviness=function(){var a=this.curviness;if(isNaN(a)){a=sS;var y=this.Sf;if(y!==null){for(var x=si(),E=0,b=y.links,z=0;z<b.length;z++){var ee=b[z].computeSpacing();x.push(ee),E+=ee}for(E=-E/2,z=0;z<b.length;z++){if(b[z]===this){a=E+x[z]/2;break}E+=x[z]}y.Ds===this.fromNode&&(a=-a),Pi(x)}}return a},hi.prototype.computeThickness=function(){if(!this.isVisible())return 0;var a=this.path;return a!==null?Math.max(a.strokeWidth,1):1},hi.prototype.hasCurviness=function(){return!isNaN(this.curviness)||this.Sf!==null},hi.prototype.adjustPoints=function(a,y,x,E){var b=this.computeAdjusting();if(this.isOrthogonal){if(b===$m)return!1;b===e0&&(b=ap)}switch(b){case $m:var z=this.i(a),ee=this.i(x);if(!z.Xa(y)||!ee.Xa(E)){b=z.x,z=z.y;var re=ee.x-b,oe=ee.y-z,se=Math.sqrt(re*re+oe*oe);if(!pt.$(se,0)){if(pt.$(re,0))var ue=0>oe?-Math.PI/2:Math.PI/2;else ue=Math.atan(oe/Math.abs(re)),0>re&&(ue=Math.PI-ue);ee=y.x;var fe=y.y;re=E.x-ee;var ve=E.y-fe;for(oe=Math.sqrt(re*re+ve*ve),pt.$(re,0)?ve=0>ve?-Math.PI/2:Math.PI/2:(ve=Math.atan(ve/Math.abs(re)),0>re&&(ve=Math.PI-ve)),se=oe/se,ue=ve-ue,this.dd(a,y),a+=1;a<x;a++)y=this.i(a),re=y.x-b,oe=y.y-z,y=Math.sqrt(re*re+oe*oe),pt.$(y,0)||(pt.$(re,0)?oe=0>oe?-Math.PI/2:Math.PI/2:(oe=Math.atan(oe/Math.abs(re)),0>re&&(oe=Math.PI-oe)),re=oe+ue,y*=se,this.L(a,ee+y*Math.cos(re),fe+y*Math.sin(re)));this.dd(x,E)}}return!0;case e0:if(z=this.i(a),fe=this.i(x),!z.Xa(y)||!fe.Xa(E)){b=z.x,z=z.y,ee=fe.x,fe=fe.y,se=(ee-b)*(ee-b)+(fe-z)*(fe-z),re=y.x,ue=y.y,oe=E.x,ve=E.y;var xe=1;if(oe-re!==0){var Pe=(ve-ue)/(oe-re);xe=Math.sqrt(1+1/(Pe*Pe))}else Pe=9e9;for(this.dd(a,y),a+=1;a<x;a++){y=this.i(a);var Fe=y.x,Je=y.y,We=.5;se!==0&&(We=((b-Fe)*(b-ee)+(z-Je)*(z-fe))/se);var rt=b+We*(ee-b),at=z+We*(fe-z);y=Math.sqrt((Fe-rt)*(Fe-rt)+(Je-at)*(Je-at)),Je<Pe*(Fe-rt)+at&&(y=-y),0<Pe&&(y=-y),Fe=re+We*(oe-re),We=ue+We*(ve-ue),Pe!==0?(y=Fe+y/xe,this.L(a,y,We-(y-Fe)/Pe)):this.L(a,Fe,We+y)}this.dd(x,E)}return!0;case ap:e:{if(this.isOrthogonal&&(b=this.i(a),z=this.i(a+1),ee=this.i(a+2),re=z.x,ue=z.y,fe=re,se=ue,pt.B(b.y,z.y)?pt.B(z.x,ee.x)?ue=y.y:pt.B(z.y,ee.y)&&(re=y.x):pt.B(b.x,z.x)&&(pt.B(z.y,ee.y)?re=y.x:pt.B(z.x,ee.x)&&(ue=y.y)),this.L(a+1,re,ue),b=this.i(x),z=this.i(x-1),ee=this.i(x-2),re=z.x,ue=z.y,oe=re,ve=ue,pt.B(b.y,z.y)?pt.B(z.x,ee.x)?ue=E.y:pt.B(z.y,ee.y)&&(re=E.x):pt.B(b.x,z.x)&&(pt.B(z.y,ee.y)?re=E.x:pt.B(z.x,ee.x)&&(ue=E.y)),this.L(x-1,re,ue),Qv(this))){this.L(a+1,fe,se),this.L(x-1,oe,ve),x=!1;break e}this.dd(a,y),this.dd(x,E),x=!0}return x;default:return!1}},hi.prototype.addOrthoPoints=function(a,y,x,E,b,z){0>y?y+=360:360<=y&&(y-=360),0>E?E+=360:360<=E&&(E-=360);var ee=E;y=315<=y||45>y?0:45<=y&&135>y?90:135<=y&&225>y?180:270,E=315<=E||45>E?0:45<=E&&135>E?90:135<=E&&225>E?180:270;var re=b.actualBounds.copy(),oe=z.actualBounds.copy();if(re.w()&&oe.w()){re.Bc(cp,cp),oe.Bc(cp,cp),re.Ye(a),oe.Ye(x);var se=Te.alloc(),ue=Te.alloc();y===0?x.x>a.x||E===270&&x.y<a.y&&oe.right>a.x||E===90&&x.y>a.y&&oe.right>a.x?(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),E===180?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=se.x,ue.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(se.x=a.x<oe.left?this.computeMidOrthoPosition(a.x,a.y,oe.left,x.y,!1):a.x<oe.right&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.right,ue.x=se.x,ue.y=x.y):E===0&&a.x<oe.left&&a.y>oe.top&&a.y<oe.bottom&&(se.x=a.x,se.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=se.y)):(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(E===180||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===180&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===180||E===90)?se.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===180||E===270)&&(se.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=se.y),se.y>re.top&&se.y<re.bottom&&(x.x>=re.left&&x.x<=a.x||a.x<=oe.right&&a.x>=x.x?(E===90||E===270)&&(se.h(Math.max((a.x+x.x)/2,a.x),a.y),ue.h(se.x,x.y)):(se.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===0?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===0?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=se.y))):y===180?x.x<a.x||E===270&&x.y<a.y&&oe.left<a.x||E===90&&x.y>a.y&&oe.left<a.x?(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),E===0?(se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1),ue.x=se.x,ue.y=x.y):E===270&&x.y<a.y||E===90&&x.y>a.y?(se.x=a.x>oe.right?this.computeMidOrthoPosition(a.x,a.y,oe.right,x.y,!1):a.x>oe.left&&(E===270&&a.y<oe.top||E===90&&a.y>oe.bottom)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):oe.left,ue.x=se.x,ue.y=x.y):E===180&&a.x>oe.right&&a.y>oe.top&&a.y<oe.bottom&&(se.x=a.x,se.y=a.y<x.y?Math.min(x.y,oe.top):Math.max(x.y,oe.bottom),ue.y=se.y)):(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),(E===0||E===90&&x.y<re.top||E===270&&x.y>re.bottom)&&(E===0&&(oe.ca(a)||re.ca(x))?se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):x.y<a.y&&(E===0||E===90)?se.y=this.computeMidOrthoPosition(a.x,re.top,x.x,Math.max(x.y,oe.bottom),!0):x.y>a.y&&(E===0||E===270)&&(se.y=this.computeMidOrthoPosition(a.x,re.bottom,x.x,Math.min(x.y,oe.top),!0)),ue.x=x.x,ue.y=se.y),se.y>re.top&&se.y<re.bottom&&(x.x<=re.right&&x.x>=a.x||a.x>=oe.left&&a.x<=x.x?(E===90||E===270)&&(se.h(Math.min((a.x+x.x)/2,a.x),a.y),ue.h(se.x,x.y)):(se.y=E===270||(E===0||E===180)&&x.y<a.y?Math.min(x.y,E===180?re.top:Math.min(re.top,oe.top)):Math.max(x.y,E===180?re.bottom:Math.max(re.bottom,oe.bottom)),ue.x=x.x,ue.y=se.y))):y===90?x.y>a.y||E===180&&x.x<a.x&&oe.bottom>a.y||E===0&&x.x>a.x&&oe.bottom>a.y?(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),E===270?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=se.y):E===180&&x.x<a.x||E===0&&x.x>a.x?(se.y=a.y<oe.top?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.top,!0):a.y<oe.bottom&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.bottom,ue.x=x.x,ue.y=se.y):E===90&&a.y<oe.top&&a.x>oe.left&&a.x<oe.right&&(se.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),se.y=a.y,ue.x=se.x)):(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(E===270||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===270&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===270||E===0)?se.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===270||E===180)&&(se.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=se.x,ue.y=x.y),se.x>re.left&&se.x<re.right&&(x.y>=re.top&&x.y<=a.y||a.y<=oe.bottom&&a.y>=x.y?(E===0||E===180)&&(se.h(a.x,Math.max((a.y+x.y)/2,a.y)),ue.h(x.x,se.y)):(se.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===90?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===90?re.right:Math.max(re.right,oe.right)),ue.x=se.x,ue.y=x.y))):x.y<a.y||E===180&&x.x<a.x&&oe.top<a.y||E===0&&x.x>a.x&&oe.top<a.y?(se.h(a.x,x.y),ue.h((a.x+x.x)/2,x.y),E===90?(se.y=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0),ue.x=x.x,ue.y=se.y):E===180&&x.x<a.x||E===0&&x.x>=a.x?(se.y=a.y>oe.bottom?this.computeMidOrthoPosition(a.x,a.y,x.x,oe.bottom,!0):a.y>oe.top&&(E===180&&a.x<oe.left||E===0&&a.x>oe.right)?this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!0):oe.top,ue.x=x.x,ue.y=se.y):E===270&&a.y>oe.bottom&&a.x>oe.left&&a.x<oe.right&&(se.x=a.x<x.x?Math.min(x.x,oe.left):Math.max(x.x,oe.right),se.y=a.y,ue.x=se.x)):(se.h(x.x,a.y),ue.h(x.x,(a.y+x.y)/2),(E===90||E===0&&x.x<re.left||E===180&&x.x>re.right)&&(E===90&&(oe.ca(a)||re.ca(x))?se.x=this.computeMidOrthoPosition(a.x,a.y,x.x,x.y,!1):x.x<a.x&&(E===90||E===0)?se.x=this.computeMidOrthoPosition(re.left,a.y,Math.max(x.x,oe.right),x.y,!1):x.x>a.x&&(E===90||E===180)&&(se.x=this.computeMidOrthoPosition(re.right,a.y,Math.min(x.x,oe.left),x.y,!1)),ue.x=se.x,ue.y=x.y),se.x>re.left&&se.x<re.right&&(x.y<=re.bottom&&x.y>=a.y||a.y>=oe.top&&a.y<=x.y?(E===0||E===180)&&(se.h(a.x,Math.min((a.y+x.y)/2,a.y)),ue.h(x.x,se.y)):(se.x=E===180||(E===90||E===270)&&x.x<a.x?Math.min(x.x,E===270?re.left:Math.min(re.left,oe.left)):Math.max(x.x,E===270?re.right:Math.max(re.right,oe.right)),ue.x=se.x,ue.y=x.y)));var fe=x;if(this.isAvoiding){var ve=this.diagram;if(ve===null||b===z||this.layer.isTemporary||!wf(ve)||re.ca(fe)&&!z.Td(b)||oe.ca(a)&&!b.Td(z))y=!1;else{var xe=Pf(ve,!0,this.containingGroup,null);if(this.segmentIndex!==17&&xe.Yj(Math.min(a.x,se.x),Math.min(a.y,se.y),Math.abs(a.x-se.x),Math.abs(a.y-se.y))&&xe.Yj(Math.min(se.x,ue.x),Math.min(se.y,ue.y),Math.abs(se.x-ue.x),Math.abs(se.y-ue.y))&&xe.Yj(Math.min(ue.x,fe.x),Math.min(ue.y,fe.y),Math.abs(ue.x-fe.x),Math.abs(ue.y-fe.y)))y=!1;else{b=a,z=fe;var Pe=x=null;if(ve.isVirtualized){ve=xe.bounds.copy(),ve.Bc(-xe.Ho,-xe.Go);var Fe=Te.alloc();Vf(xe,a.x,a.y)||(pt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,a.x,a.y,se.x,se.y,Fe)?(x=a=Fe.copy(),y=Fe.ab(se)):pt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,se.x,se.y,ue.x,ue.y,Fe)?(x=a=Fe.copy(),y=Fe.ab(ue)):pt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,ue.x,ue.y,fe.x,fe.y,Fe)&&(x=a=Fe.copy(),y=Fe.ab(fe))),Vf(xe,fe.x,fe.y)||(pt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,fe.x,fe.y,ue.x,ue.y,Fe)?(Pe=fe=Fe.copy(),E=ue.ab(Fe)):pt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,ue.x,ue.y,se.x,se.y,Fe)?(Pe=fe=Fe.copy(),E=se.ab(Fe)):pt.Ff(ve.x,ve.y,ve.x+ve.width,ve.y+ve.height,se.x,se.y,a.x,a.y,Fe)&&(Pe=fe=Fe.copy(),E=a.ab(Fe))),Te.free(Fe)}re=re.copy().ed(oe),re.Bc(xe.Ho*xe.Os,xe.Go*xe.Os),hS(xe,a,y,fe,E,re,!0),oe=Zu(xe,fe.x,fe.y),!xe.abort&&oe>=Gf&&(uS(xe),re.Bc(xe.Ho*xe.Hx,xe.Go*xe.Ix),hS(xe,a,y,fe,E,re,!1),oe=Zu(xe,fe.x,fe.y)),!xe.abort&&oe<Gf&&Zu(xe,fe.x,fe.y)!==Oh?(qv(this,xe,fe.x,fe.y,E,!0,ee),re=this.i(2),4>this.pointsCount?(y===0||y===180?(re.x=a.x,re.y=fe.y):(re.x=fe.x,re.y=a.y),this.L(2,re.x,re.y),this.m(3,re.x,re.y)):(ee=this.i(3),y===0||y===180?pt.B(re.x,ee.x)?(re=y===0?Math.max(re.x,a.x):Math.min(re.x,a.x),this.L(2,re,a.y),this.L(3,re,ee.y)):pt.B(re.y,ee.y)?(Math.abs(a.y-re.y)<=xe.Go/2&&(this.L(2,re.x,a.y),this.L(3,ee.x,a.y)),this.m(2,re.x,a.y)):this.L(2,a.x,re.y):(y===90||y===270)&&(pt.B(re.y,ee.y)?(re=y===90?Math.max(re.y,a.y):Math.min(re.y,a.y),this.L(2,a.x,re),this.L(3,ee.x,re)):pt.B(re.x,ee.x)?(Math.abs(a.x-re.x)<=xe.Ho/2&&(this.L(2,a.x,re.y),this.L(3,a.x,ee.y)),this.m(2,a.x,re.y)):this.L(2,re.x,a.y))),x!==null&&(a=this.i(1),ee=this.i(2),a.x!==ee.x&&a.y!==ee.y?y===0||y===180?this.m(2,a.x,ee.y):this.m(2,ee.x,a.y):y===0||y===180?this.m(2,b.x,x.y):this.m(2,x.x,b.y)),Pe!==null&&(E===0||E===180?this.yf(z.x,Pe.y):this.yf(Pe.x,z.y)),y=!0):y=!1}}}else y=!1;y||(this.ne(se.copy()),this.ne(ue.copy())),Te.free(se),Te.free(ue)}},hi.prototype.computeMidOrthoPosition=function(a,y,x,E,b){var z=0;return!this.hasCurviness()||this.computeSpot(!0,this.fromPort).$c()||this.computeSpot(!1,this.toPort).$c()||(z=this.computeCurviness()),b?(y+E)/2+z:(a+x)/2+z};function Qv(a){if(a.diagram===null||!a.isAvoiding||!wf(a.diagram))return!1;var y=a.points.s,x=y.length;if(4>x)return!1;a=Pf(a.diagram,!0,a.containingGroup,null);for(var E=1;E<x-2;E++){var b=y[E],z=y[E+1];if(!a.Yj(Math.min(b.x,z.x),Math.min(b.y,z.y),Math.abs(b.x-z.x),Math.abs(b.y-z.y)))return!0}return!1}function qv(a,y,x,E,b,z,ee){var re=y.Ho,oe=y.Go,se=Zu(y,x,E),ue=x,fe=E;for(b===0?ue+=re:b===90?fe+=oe:b===180?ue-=re:fe-=oe,b!==ee&&se>nc&&Zu(y,ue,fe)!==se-1&&(Zu(y,x-re,E)===se-1?(b=180,ue=x-re,fe=E):Zu(y,x+re,E)===se-1?(b=0,ue=x+re,fe=E):Zu(y,x,E-oe)===se-1?(b=270,ue=x,fe=E-oe):Zu(y,x,E+oe)===se-1&&(b=90,ue=x,fe=E+oe));se>nc&&Zu(y,ue,fe)===se-1;)x=ue,E=fe,b===0?ue+=re:b===90?fe+=oe:b===180?ue-=re:fe-=oe,--se;z?se>nc&&(b===180||b===0?x=Math.floor(x/re)*re+re/2:(b===90||b===270)&&(E=Math.floor(E/oe)*oe+oe/2)):(x=Math.floor(x/re)*re+re/2,E=Math.floor(E/oe)*oe+oe/2),se>nc&&(z=b,ee=x,ue=E,b===0?(z=90,ue+=oe):b===90?(z=180,ee-=re):b===180?(z=270,ue-=oe):b===270&&(z=0,ee+=re),Zu(y,ee,ue)===se-1?qv(a,y,ee,ue,z,!1,z):(ee=x,ue=E,b===0?(z=270,ue-=oe):b===90?(z=0,ee+=re):b===180?(z=90,ue+=oe):b===270&&(z=180,ee-=re),Zu(y,ee,ue)===se-1&&qv(a,y,ee,ue,z,!1,z))),a.yf(x,E)}hi.prototype.ez=function(a){var y=a.x;a=a.y;for(var x=this.i(0),E=this.i(1),b=on(y,a,x.x,x.y,E.x,E.y),z=0,ee=1;ee<this.pointsCount-1;ee++){x=this.i(ee+1);var re=on(y,a,E.x,E.y,x.x,x.y);E=x,re<b&&(z=ee,b=re)}return z},hi.prototype.qc=function(){this.lk=!1,this.v()},hi.prototype.Ul=function(a){if(!(!a&&(this.fd===!1||(a=this.Pb(),this.lk&&(a===null||a.geometry!==null))))&&(2>this.pointsCount?this.lk=!0:this.ua=this.makeGeometry(),a=this.path,a!==null)){a.ua=this.ua;for(var y=this.O.s,x=y.length,E=0;E<x;E++){var b=y[E];b!==a&&b.isPanelMain&&b instanceof Wr&&(b.ua=this.ua)}}},hi.prototype.makeGeometry=function(){var a=this.ua,y=this.pointsCount,x=!1,E=this.diagram;E!==null&&tc(this)&&E.Eh.contains(this)&&(this.ml.width!==0||this.ml.height!==0)&&(E.animationManager.isAnimating||E.currentTool!==E.toolManager)&&(x=!0);var b=this.i(0).copy(),z=b.copy();E=this.Nb.s;var ee=this.computeCurve();if(ee===cl&&3<=y&&!pt.$(this.smoothness,0))if(y===3){var re=this.i(1);E=Math.min(b.x,re.x);var oe=Math.min(b.y,re.y);re=this.i(2),E=Math.min(E,re.x),oe=Math.min(oe,re.y)}else{if(this.isOrthogonal)for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);else for(E=3;E<y;E+=3)E+3>=y&&(E=y-1),oe=this.i(E),z.x=Math.min(oe.x,z.x),z.y=Math.min(oe.y,z.y);E=z.x,oe=z.y}else{for(oe=0;oe<y;oe++)re=E[oe],z.x=Math.min(re.x,z.x),z.y=Math.min(re.y,z.y);E=z.x,oe=z.y}if(E-=this.su.x,oe-=this.su.y,b.x-=E,b.y-=oe,y!==2||tc(this)){if(a.type=zn.o,re=O1(a),this.computeShortLength(!0)!==0&&(b=Rc(this,b,!0,z)),jf(re,b.x,b.y,!1),ee===cl&&3<=y&&!pt.$(this.smoothness,0))if(y===3)x=this.i(1),y=x.x-E,x=x.y-oe,b=this.i(2).copy(),b.x-=E,b.y-=oe,this.computeShortLength(!1)!==0&&(b=Rc(this,b,!1,z)),Fh(re,y,x,y,x,b.x,b.y);else if(this.isOrthogonal){y=Te.allocAt(E,oe),x=Te.alloc(),x.assign(this.i(1)),z=Te.allocAt(E,oe),b=Te.allocAt(E,oe),ee=this.i(0);for(var se,ue=this.smoothness/3,fe=1;fe<this.pointsCount-1;fe++){se=this.i(fe);var ve=ee,xe=se,Pe=this.i($v(this,se,fe,!1));if((!pt.$(ve.x,xe.x)||!pt.$(xe.x,Pe.x))&&(!pt.$(ve.y,xe.y)||!pt.$(xe.y,Pe.y))){var Fe=ue;isNaN(Fe)&&(Fe=this.smoothness/3);var Je=ve.x;ve=ve.y;var We=xe.x;xe=xe.y;var rt=Pe.x;Pe=Pe.y;var at=Fe*Qm(Je,ve,We,xe);Fe*=Qm(We,xe,rt,Pe),pt.$(ve,xe)&&pt.$(We,rt)&&(We>Je?Pe>xe?(z.x=We-at,z.y=xe-at,b.x=We+Fe,b.y=xe+Fe):(z.x=We-at,z.y=xe+at,b.x=We+Fe,b.y=xe-Fe):Pe>xe?(z.x=We+at,z.y=xe-at,b.x=We-Fe,b.y=xe+Fe):(z.x=We+at,z.y=xe+at,b.x=We-Fe,b.y=xe-Fe)),pt.$(Je,We)&&pt.$(xe,Pe)&&(xe>ve?(rt>We?(z.x=We-at,z.y=xe-at,b.x=We+Fe):(z.x=We+at,z.y=xe-at,b.x=We-Fe),b.y=xe+Fe):(rt>We?(z.x=We-at,z.y=xe+at,b.x=We+Fe):(z.x=We+at,z.y=xe+at,b.x=We-Fe),b.y=xe-Fe)),(pt.$(Je,We)&&pt.$(We,rt)||pt.$(ve,xe)&&pt.$(xe,Pe))&&(Je=.5*(Je+rt),ve=.5*(ve+Pe),z.x=Je,z.y=ve,b.x=Je,b.y=ve),(fe===1||fe===2&&pt.$(ee.x,this.i(0).x)&&pt.$(ee.y,this.i(0).y))&&(x.x=.5*(ee.x+se.x),x.y=.5*(ee.y+se.y)),Fh(re,x.x-E,x.y-oe,z.x-E,z.y-oe,se.x-E,se.y-oe),y.set(z),x.set(b),ee=se}}se=ee.x,ee=ee.y,ue=this.i(this.pointsCount-1),this.computeShortLength(!1)!==0&&(ue=Rc(this,ue.copy(),!1,He)),se=.5*(se+ue.x),ee=.5*(ee+ue.y),Fh(re,b.x-E,b.y-oe,se-E,ee-oe,ue.x-E,ue.y-oe),Te.free(y),Te.free(x),Te.free(z),Te.free(b)}else for(x=3;x<y;x+=3)z=this.i(x-2),x+3>=y&&(x=y-1),b=this.i(x-1),ee=this.i(x),x===y-1&&this.computeShortLength(!1)!==0&&(ee=Rc(this,ee.copy(),!1,He)),Fh(re,z.x-E,z.y-oe,b.x-E,b.y-oe,ee.x-E,ee.y-oe);else{for(z=Te.alloc(),z.assign(this.i(0)),b=Te.alloc(),b.assign(z),ee=this.computeCorner(),fe=1,se=0;fe<y;){if(fe=$v(this,z,fe,1<fe),ue=this.i(fe),fe>=y-1){if(!z.D(ue))this.computeShortLength(!1)!==0&&(ue=Rc(this,ue.copy(),!1,He)),zc(this,re,-E,-oe,z,ue,x);else if(se===0)for(fe=1;fe<y;)b.assign(z),ue=this.i(fe++),zc(this,re,-E,-oe,z,ue,x),z.assign(ue);break}if(se=$v(this,ue,fe+1,fe<y-3),fe=-E,Je=-oe,ve=ue,We=this.i(se),Fe=x,pt.B(z.y,ve.y)&&pt.B(ve.x,We.x))if(Pe=Math.min(ee,Math.abs(ve.x-b.x)/2),Pe=at=Math.min(Pe,Math.abs(We.y-ve.y)/2),pt.B(Pe,0))zc(this,re,fe,Je,z,ve,Fe),z.assign(ve);else{var ht=ve.x,bt=ve.y;xe=ht,rt=bt,ve.x>z.x?ht=ve.x-Pe:ht=ve.x+Pe,We.y>ve.y?rt=ve.y+at:rt=ve.y-at,We=Te.allocAt(ht,bt),zc(this,re,fe,Je,z,We,Fe),Te.free(We),Hm(re,ve.x+fe,ve.y+Je,xe+fe,rt+Je),z.h(xe,rt)}else pt.B(z.x,ve.x)&&pt.B(ve.y,We.y)?(Pe=Math.min(ee,Math.abs(ve.y-b.y)/2),Pe=at=Math.min(Pe,Math.abs(We.x-ve.x)/2),pt.B(at,0)?(zc(this,re,fe,Je,z,ve,Fe),z.assign(ve)):(ht=ve.x,bt=ve.y,xe=ht,rt=bt,ve.y>z.y?bt=ve.y-Pe:bt=ve.y+Pe,We.x>ve.x?xe=ve.x+at:xe=ve.x-at,We=Te.allocAt(ht,bt),zc(this,re,fe,Je,z,We,Fe),Te.free(We),Hm(re,ve.x+fe,ve.y+Je,xe+fe,rt+Je),z.h(xe,rt))):(zc(this,re,fe,Je,z,ve,Fe),z.assign(ve));b.assign(ue),fe=se}Te.free(z)}Zm=re}else re=this.i(1).copy(),re.x-=E,re.y-=oe,this.computeShortLength(!0)!==0&&(b=Rc(this,b,!0,z)),this.computeShortLength(!1)!==0&&(re=Rc(this,re,!1,z)),a.type=zn.j,a.startX=b.x,a.startY=b.y,a.endX=re.x,a.endY=re.y;return this.lk=!0,a};function Qm(a,y,x,E){return a=x-a,isNaN(a)||a===1/0||a===-1/0?NaN:(0>a&&(a=-a),y=E-y,isNaN(y)||y===1/0||y===-1/0?NaN:(0>y&&(y=-y),pt.$(a,0)?y:pt.$(y,0)?a:Math.sqrt(a*a+y*y)))}function Rc(a,y,x,E){var b=a.pointsCount;if(2>b)return y;if(x){var z=a.i(1);if(x=z.x-E.x,z=z.y-E.y,E=Qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!0),a>b&&(a=b),b=a*(z-y.y)/E,y.x+=a*(x-y.x)/E,y.y+=b}else{if(z=a.i(b-2),x=z.x-E.x,z=z.y-E.y,E=Qm(y.x,y.y,x,z),E===0)return y;b=b===2?.5*E:E,a=a.computeShortLength(!1),a>b&&(a=b),b=a*(y.y-z)/E,y.x-=a*(y.x-x)/E,y.y-=b}return y}function $v(a,y,x,E){for(var b=a.pointsCount,z=y;pt.$(y.x,z.x)&&pt.$(y.y,z.y);){if(x>=b)return b-1;z=a.i(x++)}if(!pt.$(y.x,z.x)&&!pt.$(y.y,z.y))return x-1;for(var ee=z;pt.$(y.x,z.x)&&pt.$(z.x,ee.x)&&(!E||(y.y>=z.y?z.y>=ee.y:z.y<=ee.y))||pt.$(y.y,z.y)&&pt.$(z.y,ee.y)&&(!E||(y.x>=z.x?z.x>=ee.x:z.x<=ee.x));){if(x>=b)return b-1;ee=a.i(x++)}return x-2}hi.prototype.computeJumpLength=function(){return 10};function zc(a,y,x,E,b,z,ee){if(!ee&&tc(a)){ee=a.computeJumpLength();var re=ee/2,oe=[],se=0;if(a.isVisible()&&(se=Tx(a,b,z,oe)),0<se){if(pt.B(b.y,z.y))if(b.x<z.x)for(var ue=0;ue<se;){var fe=Math.max(b.x,Math.min(oe[ue++]-re,z.x-ee));y.lineTo(fe+x,z.y+E);for(var ve=fe+x,xe=Math.min(fe+ee,z.x);ue<se&&(fe=oe[ue],fe<xe+ee);)ue++,xe=Math.min(fe+re,z.x);fe=z.y-ee+E,xe+=x;var Pe=z.y+E;a.curve===Th?jf(y,xe,Pe,!1):Fh(y,ve,fe,xe,fe,xe,Pe)}else for(--se;0<=se;){for(ue=Math.min(b.x,Math.max(oe[se--]+re,z.x+ee)),y.lineTo(ue+x,z.y+E),ve=ue+x,fe=Math.max(ue-ee,z.x);0<=se&&(ue=oe[se],ue>fe-ee);)se--,fe=Math.max(ue-re,z.x);ue=z.y-ee+E,fe+=x,xe=z.y+E,a.curve===Th?jf(y,fe,xe,!1):Fh(y,ve,ue,fe,ue,fe,xe)}else if(pt.B(b.x,z.x))if(b.y<z.y)for(ue=0;ue<se;){for(fe=Math.max(b.y,Math.min(oe[ue++]-re,z.y-ee)),y.lineTo(z.x+x,fe+E),ve=fe+E,fe=Math.min(fe+ee,z.y);ue<se&&(xe=oe[ue],xe<fe+ee);)ue++,fe=Math.min(xe+re,z.y);xe=z.x-ee+x,Pe=z.x+x,fe+=E,a.curve===Th?jf(y,Pe,fe,!1):Fh(y,xe,ve,xe,fe,Pe,fe)}else for(--se;0<=se;){for(ue=Math.min(b.y,Math.max(oe[se--]+re,z.y+ee)),y.lineTo(z.x+x,ue+E),ve=ue+E,ue=Math.max(ue-ee,z.y);0<=se&&(fe=oe[se],fe>ue-ee);)se--,ue=Math.max(fe-re,z.y);fe=z.x-ee+x,xe=z.x+x,ue+=E,a.curve===Th?jf(y,xe,ue,!1):Fh(y,fe,ve,fe,ue,xe,ue)}}}y.lineTo(z.x+x,z.y+E)}function Tx(a,y,x,E){var b=a.diagram;if(b===null||y.D(x))return 0;for(b=b.layers;b.next();){var z=b.value;if(z!==null&&z.visible){z=z.Pa.s;for(var ee=z.length,re=0;re<ee;re++){var oe=z[re];if(oe instanceof hi){if(oe===a)return 0<E.length&&E.sort(function(ue,fe){return ue-fe}),E.length;if(oe.isVisible()&&tc(oe)){var se=oe.routeBounds;se.w()&&a.routeBounds.Yc(se)&&!a.usesSamePort(oe)&&(se=oe.path,se!==null&&se.Ed()&&Ox(y,x,E,oe))}}}}}return 0<E.length&&E.sort(function(ue,fe){return ue-fe}),E.length}function Ox(a,y,x,E){for(var b=pt.B(a.y,y.y),z=E.pointsCount,ee=E.i(0),re=Te.alloc(),oe=1;oe<z;oe++){var se=E.i(oe);if(oe<z-1){var ue=E.i(oe+1);if(ee.y===se.y&&se.y===ue.y){if(se.x>ee.x&&ue.x>=se.x||se.x<ee.x&&ue.x<=se.x)continue}else if(ee.x===se.x&&se.x===ue.x&&(se.y>ee.y&&ue.y>=se.y||se.y<ee.y&&ue.y<=se.y))continue}e:{ue=a.x;var fe=a.y,ve=y.x,xe=y.y,Pe=ee.x;ee=ee.y;var Fe=se.x,Je=se.y;if(pt.B(ue,ve)){if(!pt.B(fe,xe)&&pt.B(ee,Je)&&Math.min(fe,xe)<ee&&Math.max(fe,xe)>ee&&Math.min(Pe,Fe)<ue&&Math.max(Pe,Fe)>ue&&!pt.B(Pe,Fe)){re.x=ue,re.y=ee,ue=!0;break e}}else if(pt.B(fe,xe)&&pt.B(Pe,Fe)&&Math.min(ue,ve)<Pe&&Math.max(ue,ve)>Pe&&Math.min(ee,Je)<fe&&Math.max(ee,Je)>fe&&!pt.B(ee,Je)){re.x=Pe,re.y=fe,ue=!0;break e}re.x=0,re.y=0,ue=!1}ue&&(b?x.push(re.x):x.push(re.y)),ee=se}Te.free(re)}function tc(a){return a=a.curve,a===Zf||a===Th}function qm(a,y){(y||tc(a))&&(y=a.diagram,y===null||y.animationManager.isTicking||y.Eh.contains(a)||a.ml.width===0&&a.ml.height===0||y.Eh.add(a,a.ml.copy()))}hi.prototype.Xo=function(a){var y=this.layer;if(y!==null&&y.visible&&!y.isTemporary){var x=y.diagram;if(x!==null&&!x.animationManager.isTicking){var E=!1;for(x=x.layers;x.next();){var b=x.value;if(b.visible){if(b===y){E=!0;var z=!1;b=b.Pa.s;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];oe instanceof hi&&(oe===this?z=!0:z&&oS(this,oe,a))}}else if(E)for(z=b.Pa.s,b=z.length,ee=0;ee<b;ee++)re=z[ee],re instanceof hi&&oS(this,re,a)}}}}};function oS(a,y,x){if(y!==null&&y.lk&&y.fd&&tc(y)){var E=y.routeBounds;E.w()&&(a.routeBounds.Yc(E)||x.Yc(E))&&(a.usesSamePort(y)||y.qc())}}hi.prototype.usesSamePort=function(a){var y=this.pointsCount,x=a.pointsCount;if(0<y&&0<x){var E=this.i(0),b=a.i(0);if(E.Xa(b)||(y=this.i(y-1),a=a.i(x-1),y.Xa(a)||E.Xa(a)||y.Xa(b)))return!0}else if(this.fromNode===a.fromNode||this.toNode===a.toNode||this.fromNode===a.toNode||this.toNode===a.fromNode)return!0;return!1},hi.prototype.isVisible=function(){if(!ir.prototype.isVisible.call(this))return!1;var a=this.containingGroup,y=!0,x=this.diagram;if(x!==null&&(y=x.isTreePathToChildren),x=this.fromNode,x!==null){if(this.isTreeLink&&y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(var E=x;E!==null;){if(E.labeledLink===this)return!0;E=E.containingGroup}if(x=x.findVisibleNode(),x===null||x===a)return!1}if(x=this.toNode,x!==null){if(this.isTreeLink&&!y&&!x.isTreeExpanded)return!1;if(x===a)return!0;for(y=x;y!==null;){if(y.labeledLink===this)return!0;y=y.containingGroup}if(y=x.findVisibleNode(),y===null||y===a)return!1}return!0},hi.prototype.Zb=function(a){if(ir.prototype.Zb.call(this,a),a&&qm(this,!1),this.Sf!==null&&this.Sf.Sl(),this.wd!==null)for(var y=this.wd.iterator;y.next();)y.value.Zb(a)},hi.prototype.computeAdjusting=function(){return this.isAvoiding&&this.diagram!==null&&this.diagram.animationManager.defaultAnimation.isAnimating?ap:this.qk};function rp(a){var y=a.ef;if(y!==null){var x=a.uf;if(x!==null&&isNaN(a.curviness)){for(var E=a.ff,b=a.vf,z=a=null,ee=y.jb.s,re=ee.length,oe=0;oe<re;oe++){var se=ee[oe];(se.ef===y&&se.ff===E&&se.uf===x&&se.vf===b||se.ef===x&&se.ff===b&&se.uf===y&&se.vf===E)&&(z===null?z=se:(a===null&&(a=[],a.push(z)),a.push(se)))}if(a!==null){for(z=U1(y,x,E,b),z===null&&(z=new i0(y,E,x,b),Y1(y,z),Y1(x,z)),z.links=a,y=0;y<a.length;y++)a[y].Sf=z;z.Sl()}}}}function op(a){var y=a.Sf;y!==null&&isNaN(a.curviness)&&(a.Sf=null,a=y.links.indexOf(a),0<=a&&(Ei(y.links,a),y.Sl()))}hi.prototype.ph=function(){return!0},Ct.Object.defineProperties(hi.prototype,{fromNode:{get:function(){return this.ef},set:function(a){var y=this.ef;if(y!==a){var x=this.fromPort;y!==null&&(this.uf!==y&&Ym(y,this,x),op(this),this.C(2)),this.ef=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setFromNodeForLink(this,a,y);var b=this.fromPort,z=this.fromPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.uf!==a&&Km(a,this,b),rp(this),this.C(1)),this.g("fromNode",y,a),Wf(this)}}},fromPortId:{get:function(){return this.ff},set:function(a){var y=this.ff;if(y!==a){var x=this.fromPort;x!==null&&tl(x),op(this),this.ff=a;var E=this.fromPort;E!==null&&tl(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.xv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.fromPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),rp(this),this.g("fromPortId",y,a)}}},fromPort:{get:function(){var a=this.ef;return a===null?null:a.ns(this.ff)}},fromPortChanged:{get:function(){return this.gn},set:function(a){var y=this.gn;y!==a&&(this.gn=a,this.g("fromPortChanged",y,a))}},toNode:{get:function(){return this.uf},set:function(a){var y=this.uf;if(y!==a){var x=this.toPort;y!==null&&(this.ef!==y&&Ym(y,this,x),op(this),this.C(2)),this.uf=a,a!==null&&this.Zb(a.isVisible()),this.Wf=null,this.bb();var E=this.diagram;E!==null&&E.aa&&E.partManager.setToNodeForLink(this,a,y);var b=this.toPort,z=this.toPortChanged;if(z!==null){var ee=!0;E!==null&&(ee=E.aa,E.aa=!0),z(this,x,b),E!==null&&(E.aa=ee)}a!==null&&(this.ef!==a&&Km(a,this,b),rp(this),this.C(1)),this.g("toNode",y,a),Wf(this)}}},toPortId:{get:function(){return this.vf},set:function(a){var y=this.vf;if(y!==a){var x=this.toPort;x!==null&&tl(x),op(this),this.vf=a;var E=this.toPort;E!==null&&tl(E);var b=this.diagram;if(b!==null){var z=this.data,ee=b.model;z!==null&&ee.ri()&&ee.Cv(z,a)}x!==E&&(this.Wf=null,this.bb(),z=this.toPortChanged,z!==null&&(ee=!0,b!==null&&(ee=b.aa,b.aa=!0),z(this,x,E),b!==null&&(b.aa=ee))),rp(this),this.g("toPortId",y,a)}}},toPort:{get:function(){var a=this.uf;return a===null?null:a.ns(this.vf)}},toPortChanged:{get:function(){return this.uo},set:function(a){var y=this.uo;y!==a&&(this.uo=a,this.g("toPortChanged",y,a))}},fromSpot:{get:function(){return this.ba!==null?this.ba.Xi:Lo},set:function(a){var y=this.fromSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.Xi=a,this.g("fromSpot",y,a),(y.$c()||a.$c())&&this.fromNode!==null&&tl(this.fromPort),this.bb())}},fromEndSegmentLength:{get:function(){return this.ba!==null?this.ba.Vi:NaN},set:function(a){var y=this.fromEndSegmentLength;y!==a&&(0>a&&Dn(a,">= 0",hi,"fromEndSegmentLength"),this.Xc(),this.ba.Vi=a,this.g("fromEndSegmentLength",y,a),this.bb())}},fromShortLength:{get:function(){return this.ba!==null?this.ba.Wi:NaN},set:function(a){var y=this.fromShortLength;y!==a&&(this.Xc(),this.ba.Wi=a,this.qc(),this.g("fromShortLength",y,a))}},toSpot:{get:function(){return this.ba!==null?this.ba.yj:Lo},set:function(a){var y=this.toSpot;y.D(a)||(a=a.J(),this.Xc(),this.ba.yj=a,this.g("toSpot",y,a),(y.$c()||a.$c())&&this.toNode!==null&&tl(this.toPort),this.bb())}},toEndSegmentLength:{get:function(){return this.ba!==null?this.ba.wj:NaN},set:function(a){var y=this.toEndSegmentLength;y!==a&&(0>a&&Dn(a,">= 0",hi,"toEndSegmentLength"),this.Xc(),this.ba.wj=a,this.g("toEndSegmentLength",y,a),this.bb())}},toShortLength:{get:function(){return this.ba!==null?this.ba.xj:NaN},set:function(a){var y=this.toShortLength;y!==a&&(this.Xc(),this.ba.xj=a,this.qc(),this.g("toShortLength",y,a))}},isLabeledLink:{get:function(){return this.wd===null?!1:0<this.wd.count}},labelNodes:{get:function(){return this.wd===null?br:this.wd.iterator}},relinkableFrom:{get:function(){return(this.Qa&1)!==0},set:function(a){var y=(this.Qa&1)!==0;y!==a&&(this.Qa^=1,this.g("relinkableFrom",y,a),this.Wb())}},relinkableTo:{get:function(){return(this.Qa&2)!==0},set:function(a){var y=(this.Qa&2)!==0;y!==a&&(this.Qa^=2,this.g("relinkableTo",y,a),this.Wb())}},resegmentable:{get:function(){return(this.Qa&4)!==0},set:function(a){var y=(this.Qa&4)!==0;y!==a&&(this.Qa^=4,this.g("resegmentable",y,a),this.Wb())}},isTreeLink:{get:function(){return(this.Qa&8)!==0},set:function(a){var y=(this.Qa&8)!==0;y!==a&&(this.Qa^=8,this.g("isTreeLink",y,a),this.fromNode!==null&&ip(this.fromNode),this.toNode!==null&&ip(this.toNode))}},path:{get:function(){var a=this.Pb();return a instanceof Wr?a:null}},routeBounds:{get:function(){this.vg();var a=this.ml,y=1/0,x=1/0,E=this.pointsCount;if(E===0)a.h(NaN,NaN,0,0);else{if(E===1)E=this.i(0),y=Math.min(E.x,y),x=Math.min(E.y,x),a.h(E.x,E.y,0,0);else if(E===2){E=this.i(0);var b=this.i(1);y=Math.min(E.x,b.x),x=Math.min(E.y,b.y),a.h(E.x,E.y,0,0),a.Ye(b)}else if(this.computeCurve()===cl&&3<=E&&!this.isOrthogonal)if(b=this.i(0),y=b.x,x=b.y,a.h(y,x,0,0),E===3){E=this.i(1),y=Math.min(E.x,y),x=Math.min(E.y,x);var z=this.i(2);y=Math.min(z.x,y),x=Math.min(z.y,x),pt.Dl(b.x,b.y,E.x,E.y,E.x,E.y,z.x,z.y,.5,a)}else for(z=3;z<E;z+=3){var ee=this.i(z-2);z+3>=E&&(z=E-1);var re=this.i(z-1),oe=this.i(z);pt.Dl(b.x,b.y,ee.x,ee.y,re.x,re.y,oe.x,oe.y,.5,a),y=Math.min(oe.x,y),x=Math.min(oe.y,x),b=oe}else for(b=this.i(0),z=this.i(1),y=Math.min(b.x,z.x),x=Math.min(b.y,z.y),a.h(b.x,b.y,0,0),a.Ye(z),b=2;b<E;b++)z=this.i(b),y=Math.min(z.x,y),x=Math.min(z.y,x),a.Ye(z);this.su.h(y-a.x,x-a.y)}return a}},midPoint:{get:function(){return this.vg(),this.computeMidPoint(new Te)}},midAngle:{get:function(){return this.vg(),this.computeMidAngle()}},flattenedLengths:{get:function(){if(this.cq===null){this.fd||Xm(this);for(var a=this.cq=[],y=this.pointsCount,x=0;x<y-1;x++){var E=this.i(x),b=this.i(x+1);pt.$(E.x,b.x)?(E=b.y-E.y,0>E&&(E=-E)):pt.$(E.y,b.y)?(E=b.x-E.x,0>E&&(E=-E)):E=Math.sqrt(E.Bf(b)),a.push(E)}}return this.cq}},flattenedTotalLength:{get:function(){var a=this.vt;if(isNaN(a)){for(var y=this.flattenedLengths,x=y.length,E=a=0;E<x;E++)a+=y[E];this.vt=a}return a}},points:{get:function(){return this.Nb},set:function(a){var y=this.Nb;if(y!==a){var x=null;if(Array.isArray(a)){var E=a.length%2===0;if(E){for(var b=0;b<a.length;b++)if(typeof a[b]!="number"||isNaN(a[b])){E=!1;break}}if(E)for(x=new cn,E=0;E<a.length/2;E++)b=new Te(a[2*E],a[2*E+1]).freeze(),x.add(b);else{for(E=!0,b=0;b<a.length;b++){var z=a[b];if(!Ot(z)||typeof z.x!="number"||isNaN(z.x)||typeof z.y!="number"||isNaN(z.y)){E=!1;break}}if(E)for(x=new cn,E=0;E<a.length;E++)b=a[E],x.add(new Te(b.x,b.y).freeze())}}else if(a instanceof cn)for(x=a.copy(),a=x.iterator;a.next();)a.value.freeze();else Ve("Link.points value is not an instance of List or Array: "+a);x.freeze(),this.Nb=x,this.qc(),Xm(this),a=this.diagram,a!==null&&(a.pi||a.undoManager.isUndoingRedoing||a.As.add(this),a.animationManager.zb&&cf(a.animationManager,this,x)),this.g("points",y,x)}}},pointsCount:{get:function(){return this.Nb.count}},fd:{get:function(){return(this.Qa&16)!==0},set:function(a){(this.Qa&16)!==0!==a&&(this.Qa^=16)}},suspendsRouting:{get:function(){return(this.Qa&32)!==0},set:function(a){(this.Qa&32)!==0!==a&&(this.Qa^=32)}},computingPoints:{get:function(){return(this.Qa&64)!==0},set:function(a){(this.Qa&64)!==0!==a&&(this.Qa^=64)}},defaultFromPoint:{get:function(){return this.o},set:function(a){this.o=a.copy()}},defaultToPoint:{get:function(){return this.u},set:function(a){this.u=a.copy()}},isOrthogonal:{get:function(){return(this.qj.value&2)===2}},isAvoiding:{get:function(){return(this.qj.value&4)===4}},lk:{get:function(){return(this.Qa&128)!==0},set:function(a){(this.Qa&128)!==0!==a&&(this.Qa^=128)}},geometry:{get:function(){if(!this.lk){if(this.vg(),2>this.pointsCount)return this.lk=!0,this.ua;this.ua=this.makeGeometry()}return this.ua}},firstPickIndex:{get:function(){return 2>=this.pointsCount?0:this.isOrthogonal||!Hf(this.computeSpot(!0))?1:0}},lastPickIndex:{get:function(){var a=this.pointsCount;return a===0?0:2>=a?a-1:this.isOrthogonal||!Hf(this.computeSpot(!1))?a-2:a-1}},adjusting:{get:function(){return this.qk},set:function(a){var y=this.qk;y!==a&&(this.qk=a,this.g("adjusting",y,a))}},corner:{get:function(){return this.Om},set:function(a){var y=this.Om;y!==a&&(this.Om=a,this.qc(),this.g("corner",y,a))}},curve:{get:function(){return this.Qm},set:function(a){var y=this.Qm;y!==a&&(this.Qm=a,this.bb(),this.qc(),qm(this,y===Th||y===Zf||a===Th||a===Zf),this.g("curve",y,a))}},curviness:{get:function(){return this.Rm},set:function(a){var y=this.Rm;y!==a&&(this.Rm=a,this.bb(),this.qc(),this.g("curviness",y,a))}},routing:{get:function(){return this.qj},set:function(a){var y=this.qj;y!==a&&(this.qj=a,this.Wf=null,this.bb(),qm(this,(y.value&2)===2||(a.value&2)===2),this.g("routing",y,a))}},smoothness:{get:function(){return this.po},set:function(a){var y=this.po;y!==a&&(this.po=a,this.qc(),this.g("smoothness",y,a))}},key:{get:function(){var a=this.diagram;if(a!==null&&a.model.ri())return a.model.Ac(this.data)}}}),hi.prototype.invalidateOtherJumpOvers=hi.prototype.Xo,hi.prototype.findClosestSegment=hi.prototype.ez,hi.prototype.updateRoute=hi.prototype.vg,hi.prototype.invalidateRoute=hi.prototype.bb,hi.prototype.rollbackRoute=hi.prototype.rv,hi.prototype.commitRoute=hi.prototype.zf,hi.prototype.startRoute=hi.prototype.uh,hi.prototype.clearPoints=hi.prototype.Fj,hi.prototype.removePoint=hi.prototype.pv,hi.prototype.addPointAt=hi.prototype.yf,hi.prototype.addPoint=hi.prototype.ne,hi.prototype.insertPointAt=hi.prototype.m,hi.prototype.insertPoint=hi.prototype.Kz,hi.prototype.setPointAt=hi.prototype.L,hi.prototype.setPoint=hi.prototype.dd,hi.prototype.getPoint=hi.prototype.i,hi.prototype.getOtherPort=hi.prototype.Cz,hi.prototype.getOtherNode=hi.prototype.To;var jc=null,Wc=null,ey=new En(hi,"Normal",1),Ix=new En(hi,"Orthogonal",2),Rx=new En(hi,"AvoidsNodes",6),aS=new En(hi,"AvoidsNodesStraight",7),ks=new En(hi,"None",0),cl=new En(hi,"Bezier",9),Th=new En(hi,"JumpGap",10),Zf=new En(hi,"JumpOver",11),ap=new En(hi,"End",17),$m=new En(hi,"Scale",18),e0=new En(hi,"Stretch",19),sp=new En(hi,"OrientAlong",21),lp=new En(hi,"OrientPlus90",22),up=new En(hi,"OrientMinus90",23),ty=new En(hi,"OrientOpposite",24),t0=new En(hi,"OrientUpright",25),hp=new En(hi,"OrientPlus90Upright",26),dp=new En(hi,"OrientMinus90Upright",27),n0=new En(hi,"OrientUpright45",28),sS=16,lS=14,cp=8;hi.className="Link",hi.Normal=ey,hi.Orthogonal=Ix,hi.AvoidsNodes=Rx,hi.AvoidsNodesStraight=aS,hi.None=ks,hi.Bezier=cl,hi.JumpGap=Th,hi.JumpOver=Zf,hi.End=ap,hi.Scale=$m,hi.Stretch=e0,hi.OrientAlong=sp,hi.OrientPlus90=lp,hi.OrientMinus90=up,hi.OrientOpposite=ty,hi.OrientUpright=t0,hi.OrientPlus90Upright=hp,hi.OrientMinus90Upright=dp,hi.OrientUpright45=n0,hi.EndSegmentStep=8,hi.CurvinessStart=sS,hi.SpacingMin=lS,hi.OrthoShortCut=cp;function i0(a,y,x,E){bi(this),this.Fe=this.qq=!1,this.Ds=a,this.Ox=y,this.cv=x,this.Px=E,this.links=[]}i0.prototype.Sl=function(){if(!this.qq){var a=this.links;0<a.length&&(a=a[0].diagram,a!==null&&(a.ow.add(this),this.Fe=a.undoManager.isUndoingRedoing))}this.qq=!0},i0.prototype.Nv=function(){if(this.qq){this.qq=!1;var a=this.links;if(0<a.length){var y=a[0],x=y.diagram;x=x===null||x.pi&&!this.Fe,this.Fe=!1,y.arrangeBundledLinks(a,x),a.length===1&&(y.Sf=null,a.length=0)}a.length===0&&(a=this.Ds,this!==null&&a.af!==null&&a.af.remove(this),a=this.cv,this!==null&&a.af!==null&&a.af.remove(this))}},i0.className="LinkBundle";function fp(a){bi(this),this.Yx=this.group=null,this.vs=!0,this.abort=!1,this.Od=this.Nd=1,this.Fn=this.En=-1,this.rc=a.width,this.sc=a.height,this.ac=null,this.ei=this.di=0,this.Os=11,this.Ix=this.Hx=22}fp.prototype.initialize=function(a){if(!(0>=a.width||0>=a.height)){var y=a.y,x=a.x+a.width,E=a.y+a.height;if(this.Nd=Math.floor((a.x-this.rc)/this.rc)*this.rc,this.Od=Math.floor((y-this.sc)/this.sc)*this.sc,this.En=Math.ceil((x+2*this.rc)/this.rc)*this.rc,this.Fn=Math.ceil((E+2*this.sc)/this.sc)*this.sc,a=1+(Math.ceil((this.En-this.Nd)/this.rc)|0),y=1+(Math.ceil((this.Fn-this.Od)/this.sc)|0),this.ac===null||this.di<a-1||this.ei<y-1){for(x=[],E=0;E<=a;E++)x[E]=new Uint32Array(y);this.ac=x,this.di=a-1,this.ei=y-1}if(a=ny,this.ac!==null)for(y=0;y<=this.di;y++)if(x=this.ac[y],x.fill)x.fill(a);else for(E=0;E<=this.ei;E++)x[E]=a}};function Vf(a,y,x){return a.Nd<=y&&y<=a.En&&a.Od<=x&&x<=a.Fn}function Zu(a,y,x){return Vf(a,y,x)?(y-=a.Nd,y/=a.rc,x-=a.Od,x/=a.sc,a.ac[y|0][x|0]):ny}function uS(a){if(a.ac!==null)for(var y=0;y<=a.di;y++)for(var x=a.ac[y],E=0;E<=a.ei;E++)x[E]>=nc&&(x[E]=ny)}fp.prototype.Yj=function(a,y,x,E){if(a>this.En||a+x<this.Nd||y>this.Fn||y+E<this.Od)return!0;a=(a-this.Nd)/this.rc|0,y=(y-this.Od)/this.sc|0,x=Math.max(0,x)/this.rc+1|0;var b=Math.max(0,E)/this.sc+1|0;if(0>a&&(x+=a,a=0),0>y&&(b+=y,y=0),0>x||0>b)return!0;for(E=Math.min(a+x-1,this.di)|0,x=Math.min(y+b-1,this.ei)|0;a<=E;a++){b=this.ac[a];for(var z=y;z<=x;z++)if(b[z]===Oh)return!1}return!0};function Vu(a,y,x,E,b,z,ee,re,oe){if(!(y<z||y>ee||x<re||x>oe)){var se=y|0,ue=x|0,fe=a.ac[se][ue];if(fe>=nc&&fe<Gf)for(b?ue+=E:se+=E,fe+=1;z<=se&&se<=ee&&re<=ue&&ue<=oe&&!(fe>=a.ac[se][ue]);)a.ac[se][ue]=fe,fe+=1,b?ue+=E:se+=E;if(se=b?ue:se,b)if(0<E)for(x+=E;x<se;x+=E)Vu(a,y,x,1,!b,z,ee,re,oe),Vu(a,y,x,-1,!b,z,ee,re,oe);else for(x+=E;x>se;x+=E)Vu(a,y,x,1,!b,z,ee,re,oe),Vu(a,y,x,-1,!b,z,ee,re,oe);else if(0<E)for(y+=E;y<se;y+=E)Vu(a,y,x,1,!b,z,ee,re,oe),Vu(a,y,x,-1,!b,z,ee,re,oe);else for(y+=E;y>se;y+=E)Vu(a,y,x,1,!b,z,ee,re,oe),Vu(a,y,x,-1,!b,z,ee,re,oe)}}function r0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var se=Oh,ue=nc;for(a.ac[y][x]=ue;se===Oh&&y>z&&y<ee&&x>re&&x<oe;)ue+=1,a.ac[y][x]=ue,b?x+=E:y+=E,se=a.ac[y][x]}function o0(a,y,x,E,b,z,ee,re,oe){y|=0,x|=0;var se=Oh,ue=Gf;for(a.ac[y][x]=ue;se===Oh&&y>z&&y<ee&&x>re&&x<oe;)a.ac[y][x]=ue,b?x+=E:y+=E,se=a.ac[y][x]}function hS(a,y,x,E,b,z,ee){if(a.ac!==null){a.abort=!1;var re=y.x,oe=y.y;if(Vf(a,re,oe)){re-=a.Nd,re/=a.rc,oe-=a.Od,oe/=a.sc;var se=E.x,ue=E.y;if(Vf(a,se,ue))if(se-=a.Nd,se/=a.rc,ue-=a.Od,ue/=a.sc,1>=Math.abs(re-se)&&1>=Math.abs(oe-ue))a.abort=!0;else{var fe=z.x;E=z.y,y=z.x+z.width;var ve=z.y+z.height;fe-=a.Nd,fe/=a.rc,E-=a.Od,E/=a.sc,y-=a.Nd,y/=a.rc,ve-=a.Od,ve/=a.sc,z=Math.max(0,Math.min(a.di,fe|0)),y=Math.min(a.di,Math.max(0,y|0)),fe=Math.max(0,Math.min(a.ei,E|0)),ve=Math.min(a.ei,Math.max(0,ve|0)),E=a.ac,re|=0,oe|=0,se|=0,ue|=0;var xe=x===0||x===90?1:-1;if(x=x===90||x===270,E[re][oe]===Oh?(r0(a,re,oe,xe,x,z,y,fe,ve),r0(a,re,oe,1,!x,z,y,fe,ve),r0(a,re,oe,-1,!x,z,y,fe,ve)):r0(a,re,oe,xe,x,re,oe,re,oe),E[se][ue]===Oh?(o0(a,se,ue,b===0||b===90?1:-1,b===90||b===270,z,y,fe,ve),o0(a,se,ue,1,!(b===90||b===270),z,y,fe,ve),o0(a,se,ue,-1,!(b===90||b===270),z,y,fe,ve)):o0(a,se,ue,xe,x,se,ue,se,ue),x=si(),ee&&dS(a,se,ue,b,re,oe,x))for((x[0]!==se||x[1]!==ue)&&(x.unshift(ue),x.unshift(se)),(x[x.length-2]!==re||x[x.length-1]!==oe)&&(x.push(re),x.push(oe)),a=nc,b=x[x.length-2],ee=x[x.length-1],E[b][ee]=a++,z=x.length-4;0<=z;z-=2)for(b=x[z+2],ee=x[z+3],y=x[z],se=x[z+1];y>b?b++:y<b?b--:se>ee?ee++:se<ee&&ee--,E[b][ee]=a++,b!==y||ee!==se;);else Vu(a,re,oe,1,!1,z,y,fe,ve),Vu(a,re,oe,-1,!1,z,y,fe,ve),Vu(a,re,oe,1,!0,z,y,fe,ve),Vu(a,re,oe,-1,!0,z,y,fe,ve);Pi(x)}}}}function dS(a,y,x,E,b,z,ee){for(var re=a.ac,oe=y,se=x;;){if(oe===b&&se===z)return!0;var ue=oe,fe=se;if(E===0)if(ue<b)ue++;else break;else if(E===90)if(fe<z)fe++;else break;else if(E===180)if(ue>b)ue--;else break;else if(fe>z)fe--;else break;var ve=re[ue][fe];if(ve===0||ve===iy)break;oe=ue,se=fe}for(;;){if(ue=E,fe=oe,ve=se,E===0?ve<z?(ue=90,ve++):ve>z&&(ue=270,ve--):E===90?fe<b?(ue=0,fe++):fe>b&&(ue=180,fe--):E===180?ve<z?(ue=90,ve++):ve>z&&(ue=270,ve--):fe<b?(ue=0,fe++):fe>b&&(ue=180,fe--),fe=re[fe][ve],ue!==E&&fe!==0&&fe!==iy){if(ee.push(oe),ee.push(se),dS(a,oe,se,ue,b,z,ee))return!0;ee.pop(),ee.pop()}if(re[oe][se]=iy,E===0){if(oe===y)return!1;oe--}else if(E===90){if(se===x)return!1;se--}else if(E===180){if(oe===y)return!1;oe++}else{if(se===x)return!1;se++}}}Ct.Object.defineProperties(fp.prototype,{bounds:{get:function(){return new ut(this.Nd,this.Od,this.En-this.Nd,this.Fn-this.Od)}},Ho:{get:function(){return this.rc},set:function(a){0<a&&a!==this.rc&&(this.rc=a,this.initialize(this.bounds))}},Go:{get:function(){return this.sc},set:function(a){0<a&&a!==this.sc&&(this.sc=a,this.initialize(this.bounds))}}});var Oh=0,nc=1,Gf=999999,ny=Gf+1,iy=Gf+2;fp.className="PositionArray";function Hc(){bi(this),this.port=this.node=null,this.pe=[],this.ap=!1}Hc.prototype.toString=function(){for(var a=this.pe,y=this.node.toString()+" "+a.length.toString()+":",x=0;x<a.length;x++){var E=a[x];E!==null&&(y+=`
|
|
`+E.toString())}return y};function zx(a,y,x,E){switch(y=y.offsetY,y){case 8:return 90;case 2:return 180;case 1:return 270;case 4:return 0}switch(y){case 9:return 180<x?270:90;case 6:return 90<x&&270>=x?180:0}switch(a=180*Math.atan2(a.height,a.width)/Math.PI,y){case 3:return x>a&&x<=180+a?180:270;case 5:return x>180-a&&x<=360-a?270:0;case 12:return x>a&&x<=180+a?90:0;case 10:return x>180-a&&x<=360-a?180:90;case 7:return 90<x&&x<=180+a?180:x>180+a&&x<=360-a?270:0;case 13:return 180<x&&x<=360-a?270:x>a&&180>=x?90:0;case 14:return x>a&&x<=180-a?90:x>180-a&&270>=x?180:0;case 11:return x>180-a&&x<=180+a?180:x>180+a?270:90}return E&&y!==15&&(x-=15,0>x&&(x+=360)),x>a&&x<180-a?90:x>=180-a&&x<=180+a?180:x>180+a&&x<360-a?270:0}Hc.prototype.Sl=function(){this.pe.length=0};function cS(a,y){var x=a.pe;if(x.length===0){e:if(!a.ap){x=a.ap,a.ap=!0;var E=null,b=a.node,z=b instanceof Or?b:null;if(z===null||z.isSubGraphExpanded)var ee=b.isTreeExpanded?b.findLinksConnected(a.port.portId):b.qx();else{if(!z.actualBounds.w()){a.ap=x;break e}E=z,ee=E.Lu()}z=a.pe.length=0;var re=a.port.ga(Ji,Te.alloc()),oe=a.port.ga(Ar,Te.alloc());for(b=ut.allocAt(re.x,re.y,0,0),b.Ye(oe),Te.free(re),Te.free(oe),re=Te.allocAt(b.x+b.width/2,b.y+b.height/2),oe=a.port.li(),ee=ee.iterator;ee.next();){var se=ee.value;if(se.isVisible()&&se.fromPort!==se.toPort){var ue=se.fromPort===a.port||se.fromNode!==null&&se.fromNode.Td(E),fe=se.computeSpot(ue,a.port);if(fe.$c()&&(ue=ue?se.toPort:se.fromPort,ue!==null)){var ve=ue.part;if(ve!==null){var xe=ve.findVisibleNode();xe!==null&&xe!==ve&&(ve=xe,ue=ve.port),ue=se.computeOtherPoint(ve,ue),ve=re.ab(ue),ve-=oe,0>ve?ve+=360:360<=ve&&(ve-=360),fe=zx(b,fe,ve,se.isOrthogonal),fe===0?(fe=4,180<ve&&(ve-=360)):fe===90?(fe=8,270<ve&&(ve-=360)):fe===180?fe=2:(fe=1,90>ve&&(ve+=360)),xe=a.pe[z],xe===void 0?(xe=new ry(se,ve,fe),a.pe[z]=xe):(xe.link=se,xe.angle=ve,xe.Nc=fe),xe.hv.set(ue),z++}}}}for(Te.free(re),a.pe.sort(Hc.prototype.j),oe=a.pe.length,E=-1,z=re=0;z<oe;z++)ee=a.pe[z],ee!==void 0&&(ee.Nc!==E&&(E=ee.Nc,re=0),ee.Uo=re,re++);for(E=-1,re=0,z=oe-1;0<=z;z--)oe=a.pe[z],oe!==void 0&&(oe.Nc!==E&&(E=oe.Nc,re=oe.Uo+1),oe.Gl=re);if(z=a.pe,fe=a.port,E=a.node.portSpreading,re=Te.alloc(),oe=Te.alloc(),ee=Te.alloc(),se=Te.alloc(),fe.ga(Ji,re),fe.ga(Qi,oe),fe.ga(Ar,ee),fe.ga(Yr,se),xe=ve=ue=fe=0,E===Uv)for(var Pe=0;Pe<z.length;Pe++){var Fe=z[Pe];if(Fe!==null){var Je=Fe.link.computeThickness();switch(Fe.Nc){case 8:ve+=Je;break;case 2:xe+=Je;break;case 1:fe+=Je;break;default:case 4:ue+=Je}}}var We=Pe=0,rt=1,at=Fe=0;for(Je=0;Je<z.length;Je++){var ht=z[Je];if(ht!==null){if(Pe!==ht.Nc){switch(Pe=ht.Nc,Pe){case 8:var bt=ee;We=se;break;case 2:bt=se,We=re;break;case 1:bt=re,We=oe;break;default:case 4:bt=oe,We=ee}switch(Fe=We.x-bt.x,at=We.y-bt.y,Pe){case 8:ve>Math.abs(Fe)?(rt=Math.abs(Fe)/ve,ve=Math.abs(Fe)):rt=1;break;case 2:xe>Math.abs(at)?(rt=Math.abs(at)/xe,xe=Math.abs(at)):rt=1;break;case 1:fe>Math.abs(Fe)?(rt=Math.abs(Fe)/fe,fe=Math.abs(Fe)):rt=1;break;default:case 4:ue>Math.abs(at)?(rt=Math.abs(at)/ue,ue=Math.abs(at)):rt=1}We=0}var Jt=ht.Zo;if(E===Uv){switch(ht=ht.link.computeThickness(),ht*=rt,Jt.set(bt),Pe){case 8:Jt.x=bt.x+Fe/2+ve/2-We-ht/2;break;case 2:Jt.y=bt.y+at/2+xe/2-We-ht/2;break;case 1:Jt.x=bt.x+Fe/2-fe/2+We+ht/2;break;default:case 4:Jt.y=bt.y+at/2-ue/2+We+ht/2}We+=ht}else{var Ci=.5;E===Um&&(Ci=(ht.Uo+1)/(ht.Gl+1)),Jt.x=bt.x+Fe*Ci,Jt.y=bt.y+at*Ci}}}for(Te.free(re),Te.free(oe),Te.free(ee),Te.free(se),bt=a.pe,z=0;z<bt.length;z++)E=bt[z],E!==null&&(E.Ju=a.computeEndSegmentLength(E));a.ap=x,ut.free(b)}x=a.pe}for(a=0;a<x.length;a++)if(b=x[a],b!==null&&b.link===y)return b;return null}Hc.prototype.j=function(a,y){return a===y?0:a===null?-1:y===null?1:a.Nc<y.Nc?-1:a.Nc>y.Nc?1:a.angle<y.angle?-1:a.angle>y.angle?1:0},Hc.prototype.computeEndSegmentLength=function(a){var y=a.link,x=y.computeEndSegmentLength(this.node,this.port,Zi,y.fromPort===this.port),E=a.Uo;if(0>E)return x;var b=a.Gl;if(1>=b||!y.isOrthogonal)return x;y=a.hv;var z=a.Zo;return(a.Nc===2||a.Nc===8)&&(E=b-1-E),((a=a.Nc===2||a.Nc===4)?y.y<z.y:y.x<z.x)?x+8*E:(a?y.y===z.y:y.x===z.x)?x:x+8*(b-1-E)},Hc.className="Knot";function ry(a,y,x){this.link=a,this.angle=y,this.Nc=x,this.hv=new Te,this.Gl=this.Uo=0,this.Zo=new Te,this.Ju=0}ry.prototype.toString=function(){return this.link.toString()+" "+this.angle.toString()+" "+this.Nc.toString()+":"+this.Uo.toString()+"/"+this.Gl.toString()+" "+this.Zo.toString()+" "+this.Ju.toString()+" "+this.hv.toString()},ry.className="LinkInfo";function na(a){bi(this),this.o=this.H=null,this.Gh=this.sn=!0,this.yn=!1,this.Am=new Te(0,0).freeze(),this.vn=!0,this.Em=this.un=null,this.xn=!1,this.j=null,a&&Object.assign(this,a)}na.prototype.cloneProtected=function(a){a.sn=this.sn,a.Gh=this.Gh,a.yn=this.yn,a.Am.assign(this.Am),a.vn=this.vn,a.un=this.un,a.Em=this.Em,a.xn=!0},na.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},na.prototype.qb=function(){},na.prototype.toString=function(){var a=yi(this.constructor);return a+="(",this.group!==null&&(a+=" in "+this.group),this.diagram!==null&&(a+=" for "+this.diagram),a+")"},na.prototype.C=function(){if(this.isValidLayout){var a=this.diagram;if(a!==null&&!a.undoManager.isUndoingRedoing){var y=a.animationManager;!y.isTicking&&(y.defaultAnimation.isAnimating&&y.Cc(),this.isOngoing&&a.pi||this.isInitial&&!a.pi)&&(this.isValidLayout=!1,a.$b())}}},na.prototype.createNetwork=function(){return new Wo(this)},na.prototype.makeNetwork=function(a){var y=this.createNetwork();return a instanceof qt?(y.lg(a.nodes,!0),y.lg(a.links,!0)):a instanceof Or?y.lg(a.memberParts):y.lg(a.iterator),y},na.prototype.updateParts=function(){this.isValidLayout=!0;var a=this.diagram;if(a===null&&this.network!==null)for(var y=this.network.vertexes.iterator;y.next();){var x=y.value.node;if(x!==null&&(a=x.diagram,a!==null))break}try{a!==null&&a.Ea("Layout"),this.commitLayout()}finally{a!==null&&a.eb("Layout")}},na.prototype.commitLayout=function(){if(this.network!==null){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();if(this.isRouting)for(a=this.network.edges.iterator;a.next();)a.value.commit()}},na.prototype.doLayout=function(a){var y=new yn;a instanceof qt?(fd(this,y,a.nodes,!0,this.rh,!0,!1,!0),fd(this,y,a.parts,!0,this.rh,!0,!1,!0)):a instanceof Or?fd(this,y,a.memberParts,!1,this.rh,!0,!1,!0):y.addAll(a.iterator),0<y.count&&(a=this.diagram,a!==null&&a.Ea("Layout"),this.doMinimalNoNetworkLayout(y),a!==null&&a.eb("Layout")),this.isValidLayout=!0},na.prototype.doMinimalNoNetworkLayout=function(a){var y=Math.ceil(Math.sqrt(a.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var x=this.arrangementOrigin.x,E=x,b=this.arrangementOrigin.y,z=0,ee=0;for(a=a.iterator;a.next();){var re=a.value;gp(re);var oe=re.measuredBounds,se=oe.width;oe=oe.height,re.moveTo(E,b),re instanceof Or&&(re.rh=!1),E+=Math.max(se,50)+20,ee=Math.max(ee,Math.max(oe,50)),z>=y-1?(z=0,E=x,b+=ee+20,ee=0):z++}},na.prototype.doMinimalNetworkLayout=function(){var a=Math.ceil(Math.sqrt(this.network.vertexes.count));this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);for(var y=this.arrangementOrigin.x,x=y,E=this.arrangementOrigin.y,b=0,z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value.node;if(!(re===null||re instanceof hi)&&(gp(re),this.rh(re))){var oe=re.measuredBounds,se=oe.width;oe=oe.height,re.moveTo(x,E),re instanceof Or&&(re.rh=!1),x+=Math.max(se,50)+20,z=Math.max(z,Math.max(oe,50)),b>=a-1?(b=0,x=y,E+=z+20,z=0):b++}}},na.prototype.rh=function(a){return!!(!a.location.w()||a instanceof Or&&a.rh)};function fd(a,y,x,E,b,z,ee,re){for(x=x.iterator;x.next();){var oe=x.value;E&&!oe.isTopLevel||b!==null&&!b(oe)||!oe.canLayout()||(z&&oe instanceof Li?oe.isLinkLabel||(oe instanceof Or&&oe.layout===null?fd(a,y,oe.memberParts,!1,b,z,ee,re):(gp(oe),y.add(oe))):ee&&oe instanceof hi?y.add(oe):!re||!oe.Zc()||oe instanceof Li||(gp(oe),y.add(oe)))}}function gp(a){var y=a.actualBounds;(y.width===0||y.height===0||isNaN(y.width)||isNaN(y.height))&&a.Va()}na.prototype.ni=function(a,y){var x=this.boundsComputation;return x!==null?(y||(y=new ut),x(a,this,y)):y?(y.set(a.actualBounds),y):a.actualBounds},na.prototype.ex=function(a){var y=new yn;return a instanceof qt?(fd(this,y,a.nodes,!0,null,!0,!0,!0),fd(this,y,a.links,!0,null,!0,!0,!0),fd(this,y,a.parts,!0,null,!0,!0,!0)):a instanceof Or?fd(this,y,a.memberParts,!1,null,!0,!0,!0):fd(this,y,a.iterator,!1,null,!0,!0,!0),y},na.prototype.initialOrigin=function(a){var y=this.group;if(y!==null){var x=y.position.copy();return(isNaN(x.x)||isNaN(x.y))&&x.set(a),y=y.placeholder,y!==null&&(x=y.ga(Ji),(isNaN(x.x)||isNaN(x.y))&&x.set(a),a=y.padding,x.x+=a.left,x.y+=a.top),x}return a},Ct.Object.defineProperties(na.prototype,{diagram:{get:function(){return this.H},set:function(a){this.H=a}},group:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a,a!==null&&(this.H=a.diagram))}},isOngoing:{get:function(){return this.sn},set:function(a){this.sn!==a&&(this.sn=a)}},isInitial:{get:function(){return this.Gh},set:function(a){this.Gh=a,a||(this.xn=!0)}},isViewportSized:{get:function(){return this.yn},set:function(a){this.yn!==a&&(this.yn=a)&&this.C()}},isRouting:{get:function(){return this.vn},set:function(a){this.vn!==a&&(this.vn=a)}},isRealtime:{get:function(){return this.un},set:function(a){this.un!==a&&(this.un=a)}},isValidLayout:{get:function(){return this.xn},set:function(a){this.xn!==a&&(this.xn=a,a||(a=this.diagram,a!==null&&(a.xh=!0)))}},network:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a,a!==null&&(a.layout=this))}},boundsComputation:{get:function(){return this.Em},set:function(a){this.Em!==a&&(this.Em=a,this.C())}},arrangementOrigin:{get:function(){return this.Am},set:function(a){this.Am.D(a)||(this.Am.assign(a),this.C())}}}),na.prototype.collectParts=na.prototype.ex,na.prototype.getLayoutBounds=na.prototype.ni,na.prototype.invalidateLayout=na.prototype.C,na.className="Layout";function Wo(a){bi(this),this.Sc=a,this.wf=new yn,this.ye=new yn,this.Es=new $t,this.zs=new $t}Wo.prototype.clear=function(){if(this.wf)for(var a=this.wf.iterator;a.next();)a.value.clear();if(this.ye)for(a=this.ye.iterator;a.next();)a.value.clear();this.wf=new yn,this.ye=new yn,this.Es=new $t,this.zs=new $t},Wo.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutNetwork"+(this.layout!==null?"("+this.layout.toString()+")":"");if(0>=a)return y;if(y+=" vertexes: "+this.wf.count+" edges: "+this.ye.count,1<a){for(var x=this.wf.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1);for(x=this.ye.iterator;x.next();)y+=`
|
|
`+x.value.toString(a-1)}return y},Wo.prototype.createVertex=function(){return new Ra(this)},Wo.prototype.createEdge=function(){return new nl(this)},Wo.prototype.lg=function(a,y,x){if(a!==null){for(y===void 0&&(y=!1),x===void 0&&(x=null),x===null&&(x=function(ee){if(ee instanceof Li)return!ee.isLinkLabel;if(ee instanceof hi){var re=ee.fromNode;return re===null||re.isLinkLabel?!1:(ee=ee.toNode,!(ee===null||ee.isLinkLabel))}return!1}),a=a.iterator;a.next();){var E=a.value;if(E instanceof Li&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)){if(E instanceof Or&&E.layout===null)this.lg(E.memberParts,!1);else if(this.ki(E)===null){var b=this.createVertex();b.node=E,this.dh(b)}}}for(a.reset();a.next();)if(E=a.value,E instanceof hi&&(!y||E.isTopLevel)&&E.canLayout()&&x(E)&&this.Lo(E)===null){var z=E.fromNode;b=E.toNode,z!==null&&b!==null&&z!==b&&(z=this.findGroupVertex(z),b=this.findGroupVertex(b),z!==null&&b!==null&&this.Zj(z,b,E))}}},Wo.prototype.findGroupVertex=function(a){if(a===null)return null;var y=a.findVisibleNode();if(y===null)return null;if(a=this.ki(y),a!==null)return a;for(y=y.containingGroup;y!==null;){if(a=this.ki(y),a!==null)return a;y=y.containingGroup}return null},Ce=Wo.prototype,Ce.dh=function(a){if(a!==null){this.wf.add(a);var y=a.node;y!==null&&this.Es.add(y,a),a.network=this}},Ce.Bl=function(a){if(a===null)return null;var y=this.ki(a);return y===null&&(y=this.createVertex(),y.node=a,this.dh(y)),y},Ce.Iu=function(a){if(a!==null&&fS(this,a)){for(var y=a.tg,x=y.count-1;0<=x;x--){var E=y.M(x);this.Mj(E)}for(y=a.mg,a=y.count-1;0<=a;a--)x=y.M(a),this.Mj(x)}};function fS(a,y){if(y===null)return!1;var x=a.wf.remove(y);return x&&(y=y.node,y!==null&&a.Es.remove(y)),x}Ce.Zy=function(a){a!==null&&(a=this.ki(a),a!==null&&this.Iu(a))},Ce.ki=function(a){return a===null?null:this.Es.I(a)},Ce.Bo=function(a){if(a!==null){oy(this,a);var y=a.toVertex;y!==null&&y.Cl(a),y=a.fromVertex,y!==null&&y.zl(a)}};function oy(a,y){if(y!==null){a.ye.add(y);var x=y.link;x!==null&&a.Lo(x)===null&&a.zs.add(x,y),y.network=a}}Ce.Dy=function(a){if(a===null)return null;var y=a.fromNode,x=a.toNode,E=this.Lo(a);return E===null?(E=this.createEdge(),E.link=a,y!==null&&(E.fromVertex=this.Bl(y)),x!==null&&(E.toVertex=this.Bl(x)),this.Bo(E)):(y!==null?E.fromVertex=this.Bl(y):E.fromVertex=null,x!==null?E.toVertex=this.Bl(x):E.toVertex=null),E},Ce.Mj=function(a){if(a!==null){var y=a.toVertex;y!==null&&y.Kl(a),y=a.fromVertex,y!==null&&y.Jl(a),ay(this,a)}};function ay(a,y){y!==null&&a.ye.remove(y)&&(y=y.link,y!==null&&a.zs.remove(y))}Ce.Yy=function(a){a!==null&&(a=this.Lo(a),a!==null&&this.Mj(a))},Ce.Lo=function(a){return a===null?null:this.zs.I(a)},Ce.Zj=function(a,y,x){if(a===null||y===null)return null;if(a.network===this&&y.network===this){var E=this.createEdge();return E.link=x,E.fromVertex=a,E.toVertex=y,this.Bo(E),E}return null},Ce.gm=function(a){if(a!==null){var y=a.fromVertex,x=a.toVertex;y!==null&&x!==null&&(y.Jl(a),x.Kl(a),a.gm(),y.Cl(a),x.zl(a))}},Ce.Ko=function(){for(var a=si(),y=this.ye.iterator;y.next();){var x=y.value;x.fromVertex===x.toVertex&&a.push(x)}for(y=a.length,x=0;x<y;x++)this.Mj(a[x]);Pi(a)},Wo.prototype.deleteArtificialVertexes=function(){for(var a=si(),y=this.wf.iterator;y.next();){var x=y.value;x.node===null&&x.data===null&&a.push(x)}for(x=a.length,y=0;y<x;y++)this.Iu(a[y]);for(y=si(),x=this.ye.iterator;x.next();){var E=x.value;E.link===null&&E.data===null&&y.push(E)}for(x=y.length,E=0;E<x;E++)this.Mj(y[E]);Pi(a),Pi(y)};function jx(a){for(var y=si(),x=a.ye.iterator;x.next();){var E=x.value;E.fromVertex!==null&&E.toVertex!==null||y.push(E)}for(x=y.length,E=0;E<x;E++)a.Mj(y[E]);Pi(y)}Wo.prototype.Zx=function(a){a===void 0&&(a=!0),a&&(this.deleteArtificialVertexes(),jx(this),this.Ko()),a=new cn;for(var y=!0;y;){y=!1;for(var x=this.wf.iterator;x.next();){var E=x.value;if(0<E.tg.count||0<E.mg.count){y=this.layout.createNetwork(),a.add(y),sy(this,y,E),y=!0;break}}}return a.sort(function(b,z){return b===null||z===null||b===z?0:z.vertexes.count-b.vertexes.count}),a};function sy(a,y,x){if(x!==null&&x.network!==y){fS(a,x),y.dh(x);for(var E=x.sourceEdges;E.next();){var b=E.value;b.network!==y&&(ay(a,b),oy(y,b),sy(a,y,b.fromVertex))}for(E=x.destinationEdges;E.next();)x=E.value,x.network!==y&&(ay(a,x),oy(y,x),sy(a,y,x.toVertex))}}Wo.prototype.dz=function(){for(var a=new yn,y=this.wf.iterator;y.next();)a.add(y.value.node);for(y=this.ye.iterator;y.next();)a.add(y.value.link);return a},Ct.Object.defineProperties(Wo.prototype,{layout:{get:function(){return this.Sc},set:function(a){a!==null&&(this.Sc=a)}},vertexes:{get:function(){return this.wf}},edges:{get:function(){return this.ye}}}),Wo.prototype.findAllParts=Wo.prototype.dz,Wo.prototype.splitIntoSubNetworks=Wo.prototype.Zx,Wo.prototype.deleteSelfEdges=Wo.prototype.Ko,Wo.prototype.reverseEdge=Wo.prototype.gm,Wo.prototype.linkVertexes=Wo.prototype.Zj,Wo.prototype.findEdge=Wo.prototype.Lo,Wo.prototype.deleteLink=Wo.prototype.Yy,Wo.prototype.deleteEdge=Wo.prototype.Mj,Wo.prototype.addLink=Wo.prototype.Dy,Wo.prototype.addEdge=Wo.prototype.Bo,Wo.prototype.findVertex=Wo.prototype.ki,Wo.prototype.deleteNode=Wo.prototype.Zy,Wo.prototype.deleteVertex=Wo.prototype.Iu,Wo.prototype.addNode=Wo.prototype.Bl,Wo.prototype.addVertex=Wo.prototype.dh,Wo.prototype.addParts=Wo.prototype.lg,Wo.className="LayoutNetwork";function Ra(a){bi(this),this.ob=a,this.j=new ut(0,0,10,10).freeze(),this.o=new Te(5,5).freeze(),this.Sh=this.ub=null,this.tg=new cn,this.mg=new cn}Ra.prototype.clear=function(){this.Sh=this.ub=null,this.tg=new cn,this.mg=new cn},Ra.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutVertex#"+Nr(this);if(0<a&&(y+=this.node!==null?"("+this.node.toString()+")":"",1<a)){a="";for(var x=!0,E=this.tg.iterator;E.next();){var b=E.value;x?x=!1:a+=",",a+=b.toString(0)}for(b="",x=!0,E=this.mg.iterator;E.next();){var z=E.value;x?x=!1:b+=",",b+=z.toString(0)}y+=" sources: "+a+" destinations: "+b}return y},Ra.prototype.commit=function(){var a=this.ub;if(a!==null){var y=this.bounds,x=a.bounds;Ot(x)?(x.x=y.x,x.y=y.y,x.width=y.width,x.height=y.height):a.bounds=y.copy()}else if(a=this.node,a!==null){if(y=this.bounds,!(a instanceof Or)){x=ut.alloc(),a.Va();var E=this.network.layout.ni(a,x),b=a.locationObject.ga(Mi);if(E.w()&&b.w()){a.moveTo(y.x+this.focusX-(b.x-E.x),y.y+this.focusY-(b.y-E.y)),ut.free(x);return}ut.free(x)}a.moveTo(y.x,y.y)}},Ra.prototype.Cl=function(a){a!==null&&(this.tg.contains(a)||this.tg.add(a))},Ra.prototype.Kl=function(a){a!==null&&this.tg.remove(a)},Ra.prototype.zl=function(a){a!==null&&(this.mg.contains(a)||this.mg.add(a))},Ra.prototype.Jl=function(a){a!==null&&this.mg.remove(a)};function ly(a,y){return a=a.Sh,y=y.Sh,a?y?(a=a.text,y=y.text,a<y?-1:a>y?1:0):1:y!==null?-1:0}Ct.Object.defineProperties(Ra.prototype,{sourceEdgesArrayAccess:{get:function(){return this.tg._dataArray}},destinationEdgesArrayAccess:{get:function(){return this.mg._dataArray}},data:{get:function(){return this.ub},set:function(a){if(this.ub=a,a!==null&&a.bounds){var y=a.bounds;a=y.x;var x=y.y,E=y.width;y=y.height,this.o.h(E/2,y/2),this.j.h(a,x,E,y)}}},node:{get:function(){return this.Sh},set:function(a){if(this.Sh!==a){this.Sh=a,a.Va();var y=this.network.layout,x=ut.alloc(),E=y.ni(a,x);y=E.x;var b=E.y,z=E.width;if(E=E.height,isNaN(y)&&(y=0),isNaN(b)&&(b=0),this.j.h(y,b,z,E),ut.free(x),!(a instanceof Or)&&(a=a.locationObject.ga(Mi),a.w())){this.o.h(a.x-y,a.y-b);return}this.o.h(z/2,E/2)}}},bounds:{get:function(){return this.j},set:function(a){this.j.D(a)||this.j.assign(a)}},focus:{get:function(){return this.o},set:function(a){this.o.D(a)||this.o.assign(a)}},centerX:{get:function(){return this.j.x+this.o.x},set:function(a){var y=this.j;y.x+this.o.x!==a&&(y.ka(),y.x=a-this.o.x,y.freeze())}},centerY:{get:function(){return this.j.y+this.o.y},set:function(a){var y=this.j;y.y+this.o.y!==a&&(y.ka(),y.y=a-this.o.y,y.freeze())}},focusX:{get:function(){return this.o.x},set:function(a){var y=this.o;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},focusY:{get:function(){return this.o.y},set:function(a){var y=this.o;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},x:{get:function(){return this.j.x},set:function(a){var y=this.j;y.x!==a&&(y.ka(),y.x=a,y.freeze())}},y:{get:function(){return this.j.y},set:function(a){var y=this.j;y.y!==a&&(y.ka(),y.y=a,y.freeze())}},width:{get:function(){return this.j.width},set:function(a){var y=this.j;y.width!==a&&(y.ka(),y.width=a,y.freeze())}},height:{get:function(){return this.j.height},set:function(a){var y=this.j;y.height!==a&&(y.ka(),y.height=a,y.freeze())}},network:{get:function(){return this.ob},set:function(a){this.ob=a}},sourceVertexes:{get:function(){for(var a=new yn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);return a.iterator}},destinationVertexes:{get:function(){for(var a=new yn,y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},vertexes:{get:function(){for(var a=new yn,y=this.sourceEdges;y.next();)a.add(y.value.fromVertex);for(y=this.destinationEdges;y.next();)a.add(y.value.toVertex);return a.iterator}},sourceEdges:{get:function(){return this.tg.iterator}},destinationEdges:{get:function(){return this.mg.iterator}},edges:{get:function(){for(var a=new cn,y=this.sourceEdges;y.next();)a.add(y.value);for(y=this.destinationEdges;y.next();)a.add(y.value);return a.iterator}},edgesCount:{get:function(){return this.tg.count+this.mg.count}}}),Ra.prototype.deleteDestinationEdge=Ra.prototype.Jl,Ra.prototype.addDestinationEdge=Ra.prototype.zl,Ra.prototype.deleteSourceEdge=Ra.prototype.Kl,Ra.prototype.addSourceEdge=Ra.prototype.Cl,Ra.className="LayoutVertex",Ra.standardComparer=ly,Ra.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.Sh;var x=y.Sh;if(a!==null){if(x!==null){for(y=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),a=x.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),x=0;x<y.length;x++)if(a[x]!==""&&a[x]!==void 0){var E=parseFloat(y[x]),b=parseFloat(a[x]);if(isNaN(E))if(isNaN(b)){if(y[x].localeCompare(a[x])!==0)return y[x].localeCompare(a[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(y[x]!=="")return 1;return a[x]!==""&&a[x]!==void 0?-1:0}return 1}return x!==null?-1:0}return 1}return y!==null?-1:0};function nl(a){bi(this),this.nb=a,this.qd=this.kd=this.$k=this.ub=null}nl.prototype.clear=function(){this.qd=this.kd=this.$k=this.ub=null},nl.prototype.toString=function(a){a===void 0&&(a=0);var y="LayoutEdge#"+Nr(this);return 0<a&&(y+=this.$k!==null?"("+this.$k.toString()+")":"",1<a&&(y+=" "+(this.kd?this.kd.toString():"null")+" --> "+(this.qd?this.qd.toString():"null"))),y},nl.prototype.gm=function(){var a=this.kd;this.kd=this.qd,this.qd=a},nl.prototype.commit=function(){},nl.prototype.Ax=function(a){return this.qd===a?this.kd:this.kd===a?this.qd:null},Ct.Object.defineProperties(nl.prototype,{network:{get:function(){return this.nb},set:function(a){this.nb=a}},data:{get:function(){return this.ub},set:function(a){this.ub!==a&&(this.ub=a)}},link:{get:function(){return this.$k},set:function(a){this.$k!==a&&(this.$k=a)}},fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}}}),nl.prototype.getOtherVertex=nl.prototype.Ax,nl.className="LayoutEdge";function $a(a){na.call(this),this.isViewportSized=!0,this.yo=this.zo=NaN,this.yg=new Re(NaN,NaN).freeze(),this.tf=new Re(10,10).freeze(),this.Jb=pp,this.Rb=s0,this.nd=mp,this.hd=gS,a&&Object.assign(this,a)}xt($a,na),$a.prototype.cloneProtected=function(a){na.prototype.cloneProtected.call(this,a),a.zo=this.zo,a.yo=this.yo,a.yg.assign(this.yg),a.tf.assign(this.tf),a.Jb=this.Jb,a.Rb=this.Rb,a.nd=this.nd,a.hd=this.hd},$a.prototype.qb=function(a){a.classType===$a?a===mp||a===u0||a===uy||a===l0?this.sorting=a:a===s0||a===lu?this.arrangement=a:a===pp||a===a0?this.alignment=a:Ve("Unknown enum value: "+a):na.prototype.qb.call(this,a)},$a.prototype.doLayout=function(a){this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin);var y=this.ex(a);a=this.diagram;for(var x=y.copy().iterator;x.next();){var E=x.value;if(!E.ph()||E.fromNode===null&&E.toNode===null){if(E.Va(),E instanceof Or)for(E=E.memberParts;E.next();)y.remove(E.value)}else y.remove(E)}var b=y.Fa();if(b.length!==0){switch(this.sorting){case l0:b.reverse();break;case mp:b.sort(this.comparer);break;case u0:b.sort(this.comparer),b.reverse()}var z=this.wrappingColumn;isNaN(z)&&(z=0);var ee=this.wrappingWidth;switch(isNaN(ee)&&a!==null?(y=a.padding,ee=Math.max(a.viewportBounds.width-y.left-y.right,0)):ee=Math.max(this.wrappingWidth,0),0>=z&&0>=ee&&(z=1),y=this.spacing.width,isFinite(y)||(y=0),x=this.spacing.height,isFinite(x)||(x=0),a!==null&&a.Ea("Layout"),E=[],this.alignment){case a0:var re=y,oe=x,se=ut.alloc(),ue=Math.max(this.cellSize.width,1);if(!isFinite(ue))for(var fe=ue=0;fe<b.length;fe++){var ve=this.ni(b[fe],se);ue=Math.max(ue,ve.width)}if(ue=Math.max(ue+re,1),fe=Math.max(this.cellSize.height,1),!isFinite(fe))for(ve=fe=0;ve<b.length;ve++){var xe=this.ni(b[ve],se);fe=Math.max(fe,xe.height)}fe=Math.max(fe+oe,1),ve=this.arrangement;for(var Pe=xe=this.arrangementOrigin.x,Fe=this.arrangementOrigin.y,Je=0,We=0,rt=0;rt<b.length;rt++){var at=b[rt],ht=this.ni(at,se),bt=Math.ceil((ht.width+re)/ue)*ue,Jt=Math.ceil((ht.height+oe)/fe)*fe;switch(ve){case lu:var Ci=Math.abs(Pe-ht.width);break;default:Ci=Pe+ht.width}switch((0<z&&Je>z-1||0<ee&&0<Je&&Ci-xe>ee)&&(E.push(new ut(0,Fe,ee+re,We)),Je=0,Pe=xe,Fe+=We,We=0),We=Math.max(We,Jt),ve){case lu:ht=-ht.width;break;default:ht=0}switch(at.moveTo(Pe+ht,Fe),ve){case lu:Pe-=bt;break;default:Pe+=bt}Je++}E.push(new ut(0,Fe,ee+re,We)),ut.free(se);break;case pp:for(oe=ee,ue=z,fe=y,ve=x,ee=ut.alloc(),xe=Math.max(this.cellSize.width,1),z=Fe=se=0,re=Te.alloc(),Pe=0;Pe<b.length;Pe++)We=b[Pe],Je=this.ni(We,ee),We=Dh(We,We.locationObject,We.locationSpot,re),se=Math.max(se,We.x),Fe=Math.max(Fe,Je.width-We.x),z=Math.max(z,We.y);switch(Pe=this.arrangement,Pe){case lu:se+=fe;break;default:Fe+=fe}xe=isFinite(xe)?Math.max(xe+fe,1):Math.max(se+Fe,1);var ji=We=this.arrangementOrigin.x;for(rt=this.arrangementOrigin.y,Fe=0,oe>=se&&(oe-=se),se=at=0,bt=Math.max(this.cellSize.height,1),ht=z=0,Jt=!0,Je=Te.alloc(),Ci=0;Ci<b.length;Ci++){var Ti=b[Ci],ui=this.ni(Ti,ee),In=Dh(Ti,Ti.locationObject,Ti.locationSpot,re);if(0<Fe)switch(Pe){case lu:ji=(ji-We-(ui.width-In.x))/xe,ji=pt.$(Math.round(ji),ji)?Math.round(ji):Math.floor(ji),ji=ji*xe+We;break;default:ji=(ji-We+In.x)/xe,ji=pt.$(Math.round(ji),ji)?Math.round(ji):Math.ceil(ji),ji=ji*xe+We}else switch(Pe){case lu:at=ji+In.x+ui.width;break;default:at=ji-In.x}switch(Pe){case lu:var Tr=-(ji+In.x)+at;break;default:Tr=ji+ui.width-In.x-at}if(0<ue&&Fe>ue-1||0<oe&&0<Fe&&Tr>oe){for(E.push(new ut(0,Jt?rt-z:rt,oe+fe,ht+z+ve)),ji=0;ji<Fe&&Ci!==Fe;ji++){Tr=b[Ci-Fe+ji];var Lr=Dh(Tr,Tr.locationObject,Tr.locationSpot,Je);Tr.moveTo(Tr.position.x,Tr.position.y+z-Lr.y)}ht+=ve,rt=Jt?rt+ht:rt+(ht+z),Fe=ht=z=0,ji=We,Jt=!1}switch(ji===We&&(se=Pe===lu?Math.max(se,ui.width-In.x):Math.min(se,-In.x)),z=Math.max(z,In.y),ht=Math.max(ht,ui.height-In.y),isFinite(bt)&&(ht=Math.max(ht,Math.max(ui.height,bt)-In.y)),Jt?Ti.moveTo(ji-In.x,rt-In.y):Ti.moveTo(ji-In.x,rt),Pe){case lu:ji-=In.x+fe;break;default:ji+=ui.width-In.x+fe}Fe++}if(E.push(new ut(0,rt,oe+fe,(Jt?ht:ht+z)+ve)),b.length!==Fe)for(oe=0;oe<Fe;oe++)ue=b[b.length-Fe+oe],fe=Dh(ue,ue.locationObject,ue.locationSpot,re),ue.moveTo(ue.position.x,ue.position.y+z-fe.y);if(Te.free(re),Te.free(Je),Pe===lu)for(b=0;b<E.length;b++)z=E[b],z.width+=se,z.x-=se;else for(b=0;b<E.length;b++)z=E[b],z.x>se&&(z.width+=z.x-se,z.x=se);ut.free(ee)}for(re=z=ee=b=0;re<E.length;re++)oe=E[re],b=Math.min(b,oe.x),ee=Math.min(ee,oe.y),z=Math.max(z,oe.x+oe.width);this.arrangement===lu?this.commitLayers(E,new Te(b+y/2-(z+b),ee-x/2)):this.commitLayers(E,new Te(b-y/2,ee-x/2)),a!==null&&a.eb("Layout"),this.isValidLayout=!0}},$a.prototype.commitLayers=function(){};function gS(a,y){return a=a.text,y=y.text,a<y?-1:a>y?1:0}Ct.Object.defineProperties($a.prototype,{wrappingWidth:{get:function(){return this.zo},set:function(a){this.zo!==a&&(0<a||isNaN(a))&&(this.zo=a,this.isViewportSized=isNaN(a),this.C())}},wrappingColumn:{get:function(){return this.yo},set:function(a){this.yo!==a&&(0<a||isNaN(a))&&(this.yo=a,this.C())}},cellSize:{get:function(){return this.yg},set:function(a){this.yg.D(a)||(this.yg.assign(a),this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf.D(a)||(this.tf.assign(a),this.C())}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb===a||a!==pp&&a!==a0||(this.Jb=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==s0&&a!==lu||(this.Rb=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==uy&&a!==l0&&a!==mp&&a!==u0||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}}});var a0=new En($a,"Position",0),pp=new En($a,"Location",1),s0=new En($a,"LeftToRight",2),lu=new En($a,"RightToLeft",3),uy=new En($a,"Forward",4),l0=new En($a,"Reverse",5),mp=new En($a,"Ascending",6),u0=new En($a,"Descending",7);$a.className="GridLayout",$a.standardComparer=gS,$a.smartComparer=function(a,y){if(a!==null){if(y!==null){a=a.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/),y=y.text.toLocaleLowerCase().split(/([+-]?[.]?\d+(?:\.\d*)?(?:e[+-]?\d+)?)/);for(var x=0;x<a.length;x++)if(y[x]!==""&&y[x]!==void 0){var E=parseFloat(a[x]),b=parseFloat(y[x]);if(isNaN(E))if(isNaN(b)){if(a[x].localeCompare(y[x])!==0)return a[x].localeCompare(y[x])}else return 1;else{if(isNaN(b))return-1;if(E-b!==0)return E-b}}else if(a[x]!=="")return 1;return y[x]!==""&&y[x]!==void 0?-1:0}return 1}return y!==null?-1:0},$a.Position=a0,$a.Location=pp,$a.LeftToRight=s0,$a.RightToLeft=lu,$a.Forward=uy,$a.Reverse=l0,$a.Ascending=mp,$a.Descending=u0;function Co(){this.On=new yn,this.Dn=new yn,this.Pa=new yn,this.cf=new $t,this.bf=new $t,this.aj=new $t,this.H=null,this.tp=!1}Ce=Co.prototype,Ce.clear=function(){this.On.clear(),this.Dn.clear(),this.Pa.clear(),this.cf.clear(),this.bf.clear(),this.aj.clear()},Ce.Xe=function(a){this.H=a},Ce.oi=function(a){if(a instanceof Li){if(this.On.add(a),a instanceof Or){var y=a.containingGroup;y===null?this.H.ai.add(a):y.gl.add(a),y=a.layout,y!==null&&(y.diagram=this.H)}}else a instanceof hi?this.Dn.add(a):a instanceof uo||this.Pa.add(a);y=a.data,y===null||a instanceof uo||(a instanceof hi?this.bf.add(y,a):this.cf.add(y,a))},Ce.pc=function(a){if(a.Ej(),a instanceof Li){if(this.On.remove(a),a instanceof Or){var y=a.containingGroup;y===null?this.H.ai.remove(a):y.gl.remove(a),y=a.layout,y!==null&&(y.diagram=null)}}else a instanceof hi?this.Dn.remove(a):a instanceof uo||this.Pa.remove(a);y=a.data,y===null||a instanceof uo||(a instanceof hi?this.bf.remove(y):this.cf.remove(y))},Ce.Wd=function(){var a=this.H;if(a!==null){for(var y=a.nodeTemplateMap.iterator;y.next();){var x=y.value,E=y.key;(!x.Zc()||x instanceof Or)&&Ve('Invalid node template in Diagram.nodeTemplateMap: template for "'+E+'" must be a Node or a simple Part, not a Group or Link: '+x)}for(y=a.groupTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof Or||Ve('Invalid group template in Diagram.groupTemplateMap: template for "'+E+'" must be a Group, not a normal Node or Link: '+x);for(y=a.linkTemplateMap.iterator;y.next();)x=y.value,E=y.key,x instanceof hi||Ve('Invalid link template in Diagram.linkTemplateMap: template for "'+E+'" must be a Link, not a normal Node or simple Part: '+x);for(y=si(),x=a.selection.iterator;x.next();)(E=x.value.data)&&y.push(E);for(x=si(),a=a.highlighteds.iterator;a.next();)(E=a.value.data)&&x.push(E);for(a=si(),E=this.nodes.iterator;E.next();){var b=E.value;b.data!==null&&(a.push(b.data),a.push(b.location))}for(E=this.links.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(E=this.parts.iterator;E.next();)b=E.value,b.data!==null&&(a.push(b.data),a.push(b.location));for(this.removeAllModeledParts(),this.addAllModeledParts(),E=0;E<y.length;E++)b=this.Lc(y[E]),b!==null&&(b.isSelected=!0);for(E=0;E<x.length;E++)b=this.Lc(x[E]),b!==null&&(b.isHighlighted=!0);for(E=0;E<a.length;E+=2)b=this.Lc(a[E]),b!==null&&(b.location=a[E+1]);Pi(y),Pi(x),Pi(a)}},Co.prototype.addAllModeledParts=function(){this.addModeledParts(this.diagram.model.nodeDataArray)},Co.prototype.addModeledParts=function(a,y){var x=this,E=this.diagram.model;a.forEach(function(b){E.lb(b)&&pS(x,b,!1)}),a.forEach(function(b){E.lb(b)&&x.resolveReferencesForData(b)}),y!==!1&&Sf(this.diagram,!1)};function pS(a,y,x){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.cf.contains(y)){x===void 0&&(x=!0);e:{if(y!=null&&!a.H.undoManager.isUndoingRedoing&&!a.cf.contains(y)){var E=a.Ro(y),b=mS(a,y,E);if(b!==null&&(jl(b),b=b.copy(),b!==null)){var z=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,b.Tf=E,b.ub=y,a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=z,E=b;break e}}E=null}E!==null&&x&&a.resolveReferencesForData(y)}}Co.prototype.insertLink=function(){return null},Co.prototype.resolveReferencesForData=function(){},Co.prototype.Ro=function(a){return this.H.model.Ro(a)};function mS(a,y,x){a=a.H;var E=a.model;return E.Xj()&&E.Yu(y)?(y=a.groupTemplateMap.I(x),y===null&&(y=a.groupTemplateMap.I(""),y===null&&(SS||(SS=!0,An('No Group template found for category "'+x+'"'),An(" Using default group template")),y=a.ly))):(y=a.nodeTemplateMap.I(x),y===null&&(y=a.nodeTemplateMap.I(""),y===null&&(yS||(yS=!0,An('No Node template found for category "'+x+'"'),An(" Using default node template")),y=a.ny))),y}Co.prototype.getLinkCategoryForData=function(){return""},Co.prototype.setLinkCategoryForData=function(){},Co.prototype.setFromNodeForLink=function(){},Co.prototype.setToNodeForLink=function(){},Co.prototype.findLinkTemplateForCategory=function(a){var y=this.H,x=y.linkTemplateMap.I(a);return x===null&&(x=y.linkTemplateMap.I(""),x===null&&(xS||(xS=!0,An('No Link template found for category "'+a+'"'),An(" Using default link template")),x=y.my)),x},Co.prototype.removeAllModeledParts=function(){this.Gs(this.diagram.model.nodeDataArray)},Co.prototype.Gs=function(a){var y=this;a.forEach(function(x){y.ip(x)})},Co.prototype.ip=function(a){a=this.Lc(a),a!==null&&(Fg(this.diagram,a,!1),this.unresolveReferencesForPart(a))},Co.prototype.unresolveReferencesForPart=function(){},Co.prototype.removeDataForLink=function(){},Co.prototype.findPartForKey=function(a){return a==null?null:(a=this.H.model.hc(a),a!==null?this.cf.I(a):null)},Co.prototype.Vb=function(a){return a==null||(a=this.H.model.hc(a),a===null)?null:(a=this.cf.I(a),a instanceof Li?a:null)},Co.prototype.findLinkForKey=function(){return null},Ce=Co.prototype,Ce.Lc=function(a){if(a===null)return null;var y=this.cf.I(a);return y!==null?y:y=this.bf.I(a)},Ce.ii=function(a){return a===null?null:(a=this.cf.I(a),a instanceof Li?a:null)},Ce.Kc=function(a){return a===null?null:this.bf.I(a)},Ce.ms=function(a){for(var y=0;y<arguments.length;++y);y=new yn;for(var x=this.On.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Ot(ee)&&hy(this,b,ee)){y.add(E);break}}}return y.iterator},Ce.ls=function(a){for(var y=0;y<arguments.length;++y);y=new yn;for(var x=this.Dn.iterator;x.next();){var E=x.value,b=E.data;if(b!==null)for(var z=0;z<arguments.length;z++){var ee=arguments[z];if(Ot(ee)&&hy(this,b,ee)){y.add(E);break}}}return y.iterator};function hy(a,y,x){for(var E in x){var b=y[E],z=x[E];if(Bn(z)){if(!Bn(b)||b.length<z.length)return!1;for(var ee=0;ee<b.length;ee++){var re=z[ee];if(re!==void 0&&!vS(a,b[ee],re))return!1}}else if(!vS(a,b,z))return!1}return!0}function vS(a,y,x){if(typeof x=="function"){if(!x(y))return!1}else if(x instanceof RegExp){if(!y||!x.test(y.toString()))return!1}else if(Ot(y)&&Ot(x)){if(!hy(a,y,x))return!1}else if(y!==x)return!1;return!0}Co.prototype.doModelChanged=function(a){if(this.H){var y=this.H;if(a.model===y.model){var x=a.change;if(y.doModelChanged(a),y.aa){y.aa=!1;try{var E=a.modelChange;if(E!=="")if(x===To){if(E==="nodeCategory"){var b=this.Lc(a.object),z=a.newValue;b!==null&&typeof z=="string"&&(b.category=z)}else E==="nodeDataArray"&&(this.Gs(a.oldValue),this.addModeledParts(a.newValue));y.isModified=!0}else if(x===$o){var ee=a.newValue;E==="nodeDataArray"&&Ot(ee)&&pS(this,ee),y.isModified=!0}else if(x===pa){var re=a.oldValue;E==="nodeDataArray"&&Ot(re)&&this.ip(re),y.isModified=!0}else x===Fa&&(E==="SourceChanged"?a.object!==null?this.updateDataBindings(a.object,a.propertyName):(this.rp(),this.updateAllTargetBindings()):E==="ModelDisplaced"&&this.Wd());else if(x===To){var oe=a.propertyName,se=a.object;se===y.model?(oe==="nodeKeyProperty"||oe==="nodeCategoryProperty")&&(y.undoManager.isUndoingRedoing||this.Wd()):this.updateDataBindings(se,oe),y.isModified=!0}else if(x===$o||x===pa){var ue=a.change===$o,fe=ue?a.newParam:a.oldParam,ve=ue?a.newValue:a.oldValue,xe=this.aj.I(a.object);if(Array.isArray(xe))for(a=0;a<xe.length;a++){var Pe=xe[a];if(ue)Mm(Pe,ve,fe,!0);else if(!(0>fe)){var Fe=fe+Qg(Pe);Pe.pc(Fe,!0),Ev(Pe,Fe,fe)}}y.isModified=!0}}finally{y.aa=!0}}}}},Co.prototype.updateAllTargetBindings=function(a){a===void 0&&(a="");for(var y=this.parts.iterator;y.next();)y.value.La(a);for(y=this.nodes.iterator;y.next();)y.value.La(a);for(y=this.links.iterator;y.next();)y.value.La(a)},Co.prototype.rp=function(){for(var a=this.H.model,y=new yn,x=a.nodeDataArray,E=0;E<x.length;E++)y.add(x[E]);var b=[];for(this.nodes.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),this.parts.each(function(ee){ee.data===null||y.contains(ee.data)||b.push(ee.data)}),b.forEach(function(ee){kS(a,ee,!1)}),E=0;E<x.length;E++){var z=x[E];this.Lc(z)===null&&MS(a,z,!1)}for(this.refreshDataBoundLinks(),x=this.parts.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.nodes.iterator;x.next();)x.value.updateRelationshipsFromData();for(x=this.links.iterator;x.next();)x.value.updateRelationshipsFromData()},Co.prototype.refreshDataBoundLinks=function(){},Co.prototype.updateRelationshipsFromData=function(){},Co.prototype.updateDataBindings=function(a,y){if(typeof y=="string"){var x=this.Lc(a);if(x!==null)x.La(y);else{x=null;for(var E=this.aj.iterator;E.next();){for(var b=E.value,z=0;z<b.length;z++){var ee=b[z].sx(a);ee!==null&&(x===null&&(x=si()),x.push(ee))}if(x!==null)break}if(x!==null){for(E=0;E<x.length;E++)x[E].La(y);Pi(x)}}a===this.diagram.model.modelData&&this.updateAllTargetBindings(y)}};function dy(a,y){var x=y.Hh;if(Bn(x)){var E=a.aj.I(x);if(E===null)E=[],E.push(y),a.aj.add(x,E);else{for(a=0;a<E.length;a++)if(E[a]===y)return;E.push(y)}}}function cy(a,y,x){Qd(y,function(ee){ee=ee.O.s;for(var re=ee.length,oe=0;oe<re;oe++)Og(x,ee[oe])});var E=y.Hh;if(Bn(E)){var b=a.aj.I(E);if(b!==null){for(var z=0;z<b.length;z++)if(b[z]===y){b.splice(z,1),b.length===0&&a.aj.remove(E);break}}}}Co.prototype.Kj=function(a,y,x){x===void 0&&(x=!1);var E=new $t;if(Bn(a))for(var b=0;b<a.length;b++)h0(this,a[b],y,E,x);else for(a=a.iterator;a.next();)h0(this,a.value,y,E,x);if(y!==null){x=y.model,a=y.toolManager.findTool("Dragging"),a=a!==null?a.dragOptions.dragsLink:y.Wm.dragsLink,b=new yn;for(var z=new $t,ee=E.iterator;ee.next();){var re=ee.value;if(re instanceof hi)a||re.fromNode!==null&&re.toNode!==null||b.add(re);else if(re instanceof Li&&re.data!==null&&x.Tl()){var oe=re;re=ee.key;var se=re.pg();se!==null&&(se=E.I(se),se!==null?(x.qe(oe.data,x.wa(se.data)),oe=y.Kc(oe.data),re=re.kh(),re!==null&&oe!==null&&z.add(re,oe)):x.qe(oe.data,void 0))}}if(0<b.count&&y.Is(b,!1),0<z.count)for(x=z.iterator;x.next();)E.add(x.key,x.value)}if(y!==null&&this.H!==null&&(y=y.model,x=y.afterCopyFunction,x!==null)){var ue=new $t;E.each(function(fe){fe.key.data!==null&&ue.add(fe.key.data,fe.value.data)}),x(ue,y,this.H.model)}for(y=E.iterator;y.next();)y.value.La();return E};function h0(a,y,x,E,b){if(y===null||b&&!y.canCopy())return null;if(E.contains(y))return E.I(y);var z=a.copyPartData(y,x);if(!(z instanceof ir))return null;if(z.isSelected=!1,z.isHighlighted=!1,E.add(y,z),y instanceof Li){for(var ee=y.linksConnected;ee.next();){var re=ee.value;if(re.fromNode===y){var oe=E.I(re);oe!==null&&(oe.fromNode=z)}re.toNode===y&&(re=E.I(re),re!==null&&(re.toNode=z))}if(y instanceof Or&&z instanceof Or)for(y=y.memberParts;y.next();)ee=h0(a,y.value,x,E,b),ee instanceof hi||ee===null||(ee.containingGroup=z)}else if(y instanceof hi&&z instanceof hi)for(ee=y.fromNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.fromNode=ee)),ee=y.toNode,ee!==null&&(ee=E.I(ee),ee!==null&&(z.toNode=ee)),y=y.labelNodes;y.next();)ee=h0(a,y.value,x,E,b),ee!==null&&ee instanceof Li&&(ee.labeledLink=z);return z}Co.prototype.copyPartData=function(a,y){var x=null,E=a.data;if(E!==null&&y!==null){var b=y.model;a instanceof hi||(E=b.copyNodeData(E),Ot(E)&&(b.xf(E),x=y.Lc(E)))}else jl(a),x=a.copy(),x!==null&&(b=this.H,y!==null?y.add(x):E!==null&&b!==null&&b.commandHandler!==null&&b.commandHandler.copiesClipboardData&&(y=b.model,b=null,x instanceof hi||(b=y.copyNodeData(E)),Ot(b)&&(x.data=b)));return x},Ct.Object.defineProperties(Co.prototype,{nodes:{get:function(){return this.On}},links:{get:function(){return this.Dn}},parts:{get:function(){return this.Pa}},diagram:{get:function(){return this.H}},addsToTemporaryLayer:{get:function(){return this.tp},set:function(a){this.tp=a}}}),Co.prototype.updateAllRelationshipsFromData=Co.prototype.rp,Co.prototype.findLinksByExample=Co.prototype.ls,Co.prototype.findNodesByExample=Co.prototype.ms,Co.prototype.findLinkForData=Co.prototype.Kc,Co.prototype.findNodeForData=Co.prototype.ii,Co.prototype.findPartForData=Co.prototype.Lc,Co.prototype.findNodeForKey=Co.prototype.Vb,Co.prototype.removeModeledPart=Co.prototype.ip,Co.prototype.removeModeledParts=Co.prototype.Gs,Co.prototype.rebuildParts=Co.prototype.Wd;var yS=!1,SS=!1,xS=!1;Co.className="PartManager";function Ga(a){Co.apply(this,arguments)}xt(Ga,Co),Ga.prototype.addAllModeledParts=function(){var a=this.diagram.model;this.addModeledParts(a.nodeDataArray),wS(this,a.linkDataArray)},Ga.prototype.addModeledParts=function(a){for(Co.prototype.addModeledParts.call(this,a,!1),a=this.links.iterator;a.next();)Wf(a.value);Sf(this.diagram,!1)};function wS(a,y){y.forEach(function(x){PS(a,x)}),Sf(a.diagram,!1)}function PS(a,y){if(y!=null&&!a.diagram.undoManager.isUndoingRedoing&&!a.bf.contains(y)){var x=a.getLinkCategoryForData(y),E=a.findLinkTemplateForCategory(x);if(E!==null){jl(E);var b=E.copy();if(b!==null){E=a.diagram.skipsModelSourceBindings,a.diagram.skipsModelSourceBindings=!0,b.Tf=x,b.ub=y,x=a.diagram.model;var z=g0(x,y,!0);z!==""&&(b.fromPortId=z),z=fl(x,y,!0),z!==void 0&&(z=a.Vb(z),z instanceof Li&&(b.fromNode=z)),z=g0(x,y,!1),z!==""&&(b.toPortId=z),z=fl(x,y,!1),z!==void 0&&(z=a.Vb(z),z instanceof Li&&(b.toNode=z)),x=x.Ef(y),Array.isArray(x)&&x.forEach(function(ee){ee=a.Vb(ee),ee!==null&&(ee.labeledLink=b)}),a.tp&&(b.Jg="Tool"),a.diagram.add(b),b.ub=null,b.data=y,a.diagram.skipsModelSourceBindings=E}}}}Ga.prototype.removeAllModeledParts=function(){var a=this.diagram.model;CS(this,a.linkDataArray),this.Gs(a.nodeDataArray)};function CS(a,y){y.forEach(function(x){a.ip(x)})}Ga.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ps(a)},Ga.prototype.setLinkCategoryForData=function(a,y){return this.diagram.model.lp(a,y)},Ga.prototype.setFromNodeForLink=function(a,y){var x=this.diagram.model;x.wv(a.data,x.wa(y!==null?y.data:null))},Ga.prototype.setToNodeForLink=function(a,y){var x=this.diagram.model;x.Bv(a.data,x.wa(y!==null?y.data:null))},Ga.prototype.removeDataForLink=function(a){this.diagram.model.bm(a.data)},Ga.prototype.findPartForKey=function(a){var y=Co.prototype.findPartForKey.call(this,a);return y===null&&(a=this.diagram.model.jh(a),a!==null)?this.bf.I(a):y},Ga.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.jh(a),a!==null?this.bf.I(a):null)},Ga.prototype.doModelChanged=function(a){var y=this;if(Co.prototype.doModelChanged.call(this,a),this.diagram){var x=this.diagram;if(a.model===x.model){var E=a.change;if(x.aa){x.aa=!1;try{var b=a.modelChange;if(b!==""){if(E===To){if(b==="linkFromKey"){var z=this.Kc(a.object);if(z!==null){var ee=this.Vb(a.newValue);z.fromNode=ee}}else if(b==="linkToKey"){var re=this.Kc(a.object);if(re!==null){var oe=this.Vb(a.newValue);re.toNode=oe}}else if(b==="linkFromPortId"){var se=this.Kc(a.object);if(se!==null){var ue=a.newValue;typeof ue=="string"&&(se.fromPortId=ue)}}else if(b==="linkToPortId"){var fe=this.Kc(a.object);if(fe!==null){var ve=a.newValue;typeof ve=="string"&&(fe.toPortId=ve)}}else if(b==="nodeGroupKey"){var xe=this.Lc(a.object);if(xe!==null){var Pe=a.newValue;if(Pe!==void 0){var Fe=this.Vb(Pe);Fe instanceof Or?xe.containingGroup=Fe:xe.containingGroup=null}else xe.containingGroup=null}}else if(b==="linkLabelKeys"){var Je=this.Kc(a.object);if(Je!==null){var We=a.oldValue,rt=a.newValue;Array.isArray(We)&&We.forEach(function(In){0<=rt.indexOf(In)||(In=y.Vb(In),In!==null&&(In.labeledLink=null))}),Array.isArray(rt)&&rt.forEach(function(In){In=y.Vb(In),In!==null&&(In.labeledLink=Je)})}}else if(b==="linkCategory"){var at=this.Kc(a.object),ht=a.newValue;at!==null&&typeof ht=="string"&&(at.category=ht)}else b==="linkDataArray"&&(CS(this,a.oldValue),wS(this,a.newValue));x.isModified=!0}else if(E===$o){var bt=a.newValue;if(b==="linkDataArray"&&typeof bt=="object"&&bt!==null)PS(this,bt);else if(b==="linkLabelKeys"&&pd(bt)){var Jt=this.Kc(a.object),Ci=this.Vb(bt);Jt!==null&&Ci!==null&&(Ci.labeledLink=Jt)}x.isModified=!0}else if(E===pa){var ji=a.oldValue;if(b==="linkDataArray"&&typeof ji=="object"&&ji!==null)this.ip(ji);else if(b==="linkLabelKeys"&&pd(ji)){var Ti=this.Vb(ji);Ti!==null&&(Ti.labeledLink=null)}x.isModified=!0}}else if(E===To){var ui=a.propertyName;a.object!==x.model||ui!=="linkFromKeyProperty"&&ui!=="linkToKeyProperty"&&ui!=="linkFromPortIdProperty"&&ui!=="linkToPortIdProperty"&&ui!=="linkLabelKeysProperty"&&ui!=="nodeIsGroupProperty"&&ui!=="nodeGroupKeyProperty"&&ui!=="linkCategoryProperty"||x.undoManager.isUndoingRedoing||this.Wd(),x.isModified=!0}}finally{x.aa=!0}}}}},Ga.prototype.refreshDataBoundLinks=function(){var a=this,y=this.diagram.model,x=new yn,E=y.linkDataArray;E.forEach(function(z){x.add(z)});var b=[];this.links.each(function(z){z.data===null||x.contains(z.data)||b.push(z.data)}),b.forEach(function(z){OS(y,z,!1)}),E.forEach(function(z){a.Kc(z)===null&&TS(y,z,!1)})},Ga.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;if(a instanceof hi){var b=fl(E,y,!0);if(b=x.Vb(b),a.fromNode=b,b=fl(E,y,!1),b=x.Vb(b),a.toNode=b,y=E.Ef(y),0<y.length||0<a.labelNodes.count){if(y.length===1&&a.labelNodes.count===1){b=y[0];var z=a.labelNodes.first();if(E.wa(z.data)===b)return}b=new yn().addAll(y);var ee=new yn;a.labelNodes.each(function(re){re.data!==null&&(re=E.wa(re.data),re!==void 0&&ee.add(re))}),y=ee.copy(),y.hp(b),b=b.copy(),b.hp(ee),(0<y.count||0<b.count)&&(y.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink===a&&(re.labeledLink=null)}),b.each(function(re){re=x.Vb(re),re!==null&&re.labeledLink!==a&&(re.labeledLink=a)}))}}else!(a instanceof uo)&&(y=E.lh(y),y=x.findPartForKey(y),y===null||y instanceof Or)&&(a.containingGroup=y)}}},Ga.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=vp(y,x),b=this.Lc(a);if(E!==null&&b!==null){E=E.iterator;for(var z={};E.next();){var ee=E.value;y.lb(ee)?b instanceof Or&&y.lh(ee)===x&&(ee=this.Lc(ee),ee!==null&&(ee.containingGroup=b)):(z.link=this.Kc(ee),z.link!==null&&b instanceof Li&&(fl(y,ee,!0)===x&&(z.link.fromNode=b),fl(y,ee,!1)===x&&(z.link.toNode=b),ee=y.Ef(ee),Array.isArray(ee)&&ee.some(function(re){return function(oe){return oe===x?(b.labeledLink=re.link,!0):!1}}(z)))),z={link:z.link}}hu(y,x)}a=y.lh(a),a!==void 0&&(a=this.Vb(a),a instanceof Or&&(b.containingGroup=a))}},Ga.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Li){var x=y.wa(a.data);if(x!==void 0){for(var E=a.linksConnected;E.next();)uu(y,x,E.value.data);if(a.isLinkLabel&&(E=a.labeledLink,E!==null&&uu(y,x,E.data)),a instanceof Or)for(a=a.memberParts;a.next();)E=a.value.data,y.lb(E)&&uu(y,x,E)}}},Ga.prototype.copyPartData=function(a,y){var x=Co.prototype.copyPartData.call(this,a,y);if(a instanceof hi)if(a=a.data,a!==null&&y!==null){var E=y.model;a=E.Jo(a),typeof a=="object"&&a!==null&&(E.fi(a),x=y.Kc(a))}else x!==null&&(y=this.diagram,a!==null&&y!==null&&y.commandHandler!==null&&y.commandHandler.copiesClipboardData&&(y=y.model.Jo(a),typeof y=="object"&&y!==null&&(x.data=y)));return x},Ga.prototype.insertLink=function(a,y,x,E){var b=this.diagram,z=b.model,ee=b.toolManager.findTool("Linking"),re="";if(a!==null&&(y===null&&(y=a),re=y.portId,re===null&&(re="")),y="",x!==null&&(E===null&&(E=x),y=E.portId,y===null&&(y="")),E=ee.archetypeLinkData,E instanceof hi){if(jl(E),z=E.copy(),z!==null)return z.fromNode=a,z.fromPortId=re,z.toNode=x,z.toPortId=y,b.add(z),a=ee.archetypeLabelNodeData,a instanceof Li&&(jl(a),a=a.copy(),a!==null&&(a.labeledLink=z,b.add(a))),z}else if(E!==null&&(E=z.Jo(E),typeof E=="object"&&E!==null))return a!==null&&Yf(z,E,z.wa(a.data),!0),Uf(z,E,re,!0),x!==null&&Yf(z,E,z.wa(x.data),!1),Uf(z,E,y,!1),z.fi(E),a=ee.archetypeLabelNodeData,a===null||a instanceof Li||(a=z.copyNodeData(a),typeof a=="object"&&a!==null&&(z.xf(a),a=z.wa(a),a!==void 0&&z.Bu(E,a))),b.Kc(E);return null},Ga.prototype.findLinkForKey=Ga.prototype.findLinkForKey,Ga.prototype.findPartForKey=Ga.prototype.findPartForKey,Ga.prototype.removeAllModeledParts=Ga.prototype.removeAllModeledParts,Ga.prototype.addModeledParts=Ga.prototype.addModeledParts,Ga.prototype.addAllModeledParts=Ga.prototype.addAllModeledParts,Ga.className="GraphLinksPartManager";function bl(){Co.apply(this,arguments),this.Sg=null}xt(bl,Co);function d0(a,y,x){if(y!==null&&x!==null&&x.kh()===null){var E=a.diagram.toolManager.findTool("Linking"),b=y,z=x;if(a.diagram.isTreePathToChildren||(b=x,z=y),(E===null||!Mo(E,b,z,null,!0))&&(y=a.getLinkCategoryForData(x.data),E=a.findLinkTemplateForCategory(y),E!==null&&(jl(E),E=E.copy(),E!==null))){var ee=a.diagram.skipsModelSourceBindings;a.diagram.skipsModelSourceBindings=!0,E.Tf=y,E.ub=x.data,E.fromNode=b,E.toNode=z,a.diagram.add(E),E.ub=null,E.data=x.data,a.diagram.skipsModelSourceBindings=ee}}}bl.prototype.getLinkCategoryForData=function(a){return this.diagram.model.ss(a)},bl.prototype.setLinkCategoryForData=function(a,y){this.diagram.model.Ms(a,y)},bl.prototype.setFromNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren)E.qe(a.data,E.wa(y));else{var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.toNode!==null?a.toNode.data:null)),this.Sg=b}},bl.prototype.setToNodeForLink=function(a,y,x){var E=this.diagram.model;if(x===void 0&&(x=null),y=y!==null?y.data:null,this.diagram.isTreePathToChildren){var b=this.Sg;this.Sg=a,x!==null&&E.qe(x.data,void 0),E.qe(y,E.wa(a.fromNode!==null?a.fromNode.data:null)),this.Sg=b}else E.qe(a.data,E.wa(y))},bl.prototype.removeDataForLink=function(a){this.diagram.model.qe(a.data,void 0)},bl.prototype.findLinkForKey=function(a){return a==null?null:(a=this.diagram.model.hc(a),a!==null?this.bf.I(a):null)},bl.prototype.doModelChanged=function(a){if(Co.prototype.doModelChanged.call(this,a),this.diagram){var y=this.diagram;if(a.model===y.model){var x=a.change;if(y.aa){y.aa=!1;try{var E=a.modelChange;if(E!==""){if(x===To){if(E==="nodeParentKey"){var b=a.object,z=this.Vb(a.newValue),ee=this.ii(b);if(this.Sg!==null)z!==null&&(this.Sg.data=b,this.Sg.category=this.getLinkCategoryForData(b));else if(ee!==null){var re=ee.kh();re!==null?z===null?y.remove(re):y.isTreePathToChildren?re.fromNode=z:re.toNode=z:d0(this,z,ee)}}else if(E==="parentLinkCategory"){var oe=this.ii(a.object),se=a.newValue;if(oe!==null&&typeof se=="string"){var ue=oe.kh();ue!==null&&(ue.category=se)}}y.isModified=!0}}else if(x===To){var fe=a.propertyName;a.object===y.model&&fe==="nodeParentKeyProperty"&&(y.undoManager.isUndoingRedoing||this.Wd()),y.isModified=!0}}finally{y.aa=!0}}}}},bl.prototype.updateRelationshipsFromData=function(a){var y=a.data;if(y!==null){var x=a.diagram;if(x!==null){var E=x.model;a instanceof Li&&(y=E.mh(y),y=x.Vb(y),E=a.pg(),y!==E&&(E=a.kh(),y!==null?E!==null?x.isTreePathToChildren?E.fromNode=y:E.toNode=y:d0(this,y,a):E!==null&&Fg(x,E,!1)))}}},bl.prototype.updateDataBindings=function(a,y){Co.prototype.updateDataBindings.call(this,a,y),typeof y=="string"&&this.Lc(a)!==null&&(a=this.Kc(a),a!==null&&a.La(y))},bl.prototype.resolveReferencesForData=function(a){var y=this.diagram.model,x=y.wa(a);if(x!==void 0){var E=vp(y,x),b=this.Lc(a);if(E!==null&&b!==null){for(E=E.iterator;E.next();){var z=E.value;y.lb(z)&&b instanceof Li&&y.mh(z)===x&&d0(this,b,this.ii(z))}hu(y,x)}a=y.mh(a),a!==void 0&&b instanceof Li&&(a=this.Vb(a),d0(this,a,b))}},bl.prototype.unresolveReferencesForPart=function(a){var y=this.diagram.model;if(a instanceof Li){var x=y.wa(a.data),E=this.Kc(a.data);if(E!==null){E.isSelected=!1,E.isHighlighted=!1;var b=E.layer;if(b!==null){var z=b.pc(-1,E,!1);0<=z&&this.diagram.cb(pa,"parts",b,E,null,z,null),z=E.layerChanged,z!==null&&z(E,b,null)}}for(E=this.diagram.isTreePathToChildren,a=a.linksConnected;a.next();)b=a.value,b=(E?b.toNode:b.fromNode).data,y.lb(b)&&uu(y,x,b)}},bl.prototype.insertLink=function(a,y,x){y=this.diagram.model;var E=a,b=x;return this.diagram.isTreePathToChildren||(E=x,b=a),E!==null&&b!==null?(y.qe(b.data,y.wa(E.data)),b.kh()):null},bl.prototype.findLinkForKey=bl.prototype.findLinkForKey,bl.className="TreePartManager";function Ui(a,y){this.kl=new yn,this.il=new yn,this.Wv=`,
|
|
"insertedNodeKeys": `,this.jy=`,
|
|
"modifiedNodeData": `,this.Yv=`,
|
|
"removedNodeKeys": `,this.vh=null,bi(this),this.Sm=this.xa="",this.Gg=!1,this.j={},this.Tc=[],this.kb=new $t,this.Th="key",this.Bk=this.bl=null,this.Jm=this.Km=!1,this.Mm=!0,this.xm=null,this.lj="category",this.Vf=new $t,this.Lt=new cn,this.Wg=!1,this.o=null,this.undoManager=new qo,a!==void 0&&(Bn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}Ui.prototype.cloneProtected=function(a){a.xa=this.xa,a.Sm=this.Sm,a.Gg=this.Gg,a.Th=this.Th,a.bl=this.bl,a.Bk=this.Bk,a.Km=this.Km,a.Jm=this.Jm,a.Mm=this.Mm,a.xm=this.xm,a.lj=this.lj},Ui.prototype.copy=function(){var a=new this.constructor;return this.cloneProtected(a),a},Ui.prototype.clear=function(){this.Tc=[],this.kb.clear(),this.Vf.clear(),this.undoManager.clear()},Ui.prototype.toString=function(a){if(a===void 0&&(a=0),1<a)return this.np();var y=(this.name!==""?this.name:"")+" Model";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+_i(b)}}return y},Ui.prototype.xA=function(a){a.change!==Fa&&Ve("Model.toIncrementalData argument is not a Transaction ChangedEvent:"+a.toString());var y=a.object;return a.isTransactionFinished&&y instanceof xa?(AS(this,y),a=this.Qv(y,a.propertyName==="FinishedUndo"),this.vh=null,a):null},Ui.prototype.Qv=function(a,y){var x=this,E=!1,b=new yn,z=new yn,ee=new yn,re=this.vh;a.changes.each(function(fe){fe.model===x&&(fe.modelChange==="nodeDataArray"?fe.change===$o?b.add(fe.newValue):fe.change===pa&&ee.add(fe.oldValue):x.lb(fe.object)?z.add(fe.object):fe.change!==To||x.modelData!==fe.object&&fe.propertyName!=="modelData"?fe.object!==null&&(re&&re.contains(fe.object)?re.get(fe.object).each(function(ve){x.lb(ve)&&z.add(ve)}):fe.object instanceof Ui||x.ri()&&x.Jc(fe.object)||LS(x,fe.object).each(function(ve){z.add(ve)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(fe){oe.add(x.wa(fe)),y||z.add(fe)});var se=this.kl;se.clear(),ee.each(function(fe){se.add(x.wa(fe)),y&&z.add(fe)}),a=x.cloneDeep(z.Fa());var ue=null;return E&&(ue===null&&(ue={}),ue.modelData=this.cloneDeep(this.modelData)),0<oe.count&&(ue===null&&(ue={}),y?ue.removedNodeKeys=oe.Fa():ue.insertedNodeKeys=oe.Fa()),0<a.length&&(ue===null&&(ue={}),ue.modifiedNodeData=a),0<se.count&&(ue===null&&(ue={}),y?ue.insertedNodeKeys=se.Fa():ue.removedNodeKeys=se.Fa()),se.clear(),oe.clear(),ue},Ui.prototype.cloneDeep=function(a){return Kf(this,a,!0)};function Kf(a,y,x,E,b,z){function ee(fe,ve){re?(fe.__gohashid===void 0&&z.push(fe),E.set(fe,ve)):(fe=to++,E.set(fe,ve),b.set(fe,y))}if(!Ot(y))return y;z||(z=[]);var re=Object.isExtensible(y);if(E||(E=new $t),re){var oe=E.get(y);if(oe)return oe}else for(b||(b=new $t),oe=b.iterator;oe.next();){var se=oe.key;if(oe.value===y&&(se=E.get(se)))return se}if(Array.isArray(y)){oe=[],ee(y,oe);for(var ue=0;ue<y.length;ue++)oe.push(Kf(a,y[ue],!1,E,b,z))}else if(y instanceof Te||y instanceof Re||y instanceof ut||y instanceof Fi||y instanceof ii)oe=y.copy(),ee(y,oe);else{if(y instanceof wo||y instanceof zn||y instanceof En)return y;if(y instanceof cn)oe=new cn().addAll(Kf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof yn)oe=new yn().addAll(Kf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof $t)oe=new $t().addAll(Kf(a,y.Fa(),!1,E,b,z)),ee(y,oe);else if(y instanceof Date)oe=new Date(y.getTime()),ee(y,oe);else if(y instanceof RegExp)oe=new RegExp(y),ee(y,oe),oe.lastIndex=y.lastIndex;else if(typeof y.copy=="function")oe=y.copy(),ee(y,oe);else for(ue in oe={},ee(y,oe),y)ue!=="__gohashid"&&(oe[ue]=Kf(a,y[ue],!1,E,b,z))}return x&&z.forEach(function(fe){delete fe.__gohashid}),oe}Ce=Ui.prototype,Ce.quote=function(a){return JSON.stringify(a).replace(/[\u007F-\uFFFF]/g,function(y){return"\\u"+("0000"+y.charCodeAt(0).toString(16)).substr(-4)})},Ce.rm=function(){var a="";return this.name!==""&&(a+=`,
|
|
"name": `+this.quote(this.name)),this.dataFormat!==""&&(a+=`,
|
|
"dataFormat": `+this.quote(this.dataFormat)),this.isReadOnly&&(a+=`,
|
|
"isReadOnly": `+this.isReadOnly),this.nodeKeyProperty!=="key"&&typeof this.nodeKeyProperty=="string"&&(a+=`,
|
|
"nodeKeyProperty": `+this.quote(this.nodeKeyProperty)),this.copiesArrays&&(a+=`,
|
|
"copiesArrays": true`),this.copiesArrayObjects&&(a+=`,
|
|
"copiesArrayObjects": true`),this.copiesKey||(a+=`,
|
|
"copiesKey": false`),this.nodeCategoryProperty!=="category"&&typeof this.nodeCategoryProperty=="string"&&(a+=`,
|
|
"nodeCategoryProperty": `+this.quote(this.nodeCategoryProperty)),a},Ce.gp=function(a){a.name&&(this.name=a.name),a.dataFormat&&(this.dataFormat=a.dataFormat),a.isReadOnly&&(this.isReadOnly=!0),a.nodeKeyProperty&&(this.nodeKeyProperty=a.nodeKeyProperty),a.copiesArrays&&(this.copiesArrays=!0),a.copiesArrayObjects&&(this.copiesArrayObjects=!0),a.copiesKey===!1&&(this.copiesKey=!1),a.nodeCategoryProperty&&(this.nodeCategoryProperty=a.nodeCategoryProperty)};function ES(a,y){y=y.modelData,Ot(y)&&(a.dm(y),a.modelData=y)}Ce.Rv=function(){var a=this.modelData,y=!1,x;for(x in a)if(!bS(x,a[x])){y=!0;break}return a="",y&&(a=`,
|
|
"modelData": `+fy(this,this.modelData)),a+`,
|
|
"nodeDataArray": `+gd(this,this.nodeDataArray,!0)},Ce.kv=function(a){ES(this,a),a=a.nodeDataArray,Bn(a)&&(this.dm(a),this.nodeDataArray=a)};function AS(a,y){function x(b,z){if((z=z.part)&&(z=z.data,b!==z)){var ee=E.get(b);ee===null?(ee=new yn,ee.add(z),E.add(b,ee)):ee.add(z)}}var E=a.vh;E===null&&(E=new $t,y.changes.each(function(b){if(b.diagram!==null){var z=b.change;z===To?(b=b.object.panel)&&(z=b.data)&&x(z,b):(z===$o||z===pa)&&(b=b.object,(z=b.itemArray)&&x(z,b))}}),a.vh=E)}function LS(a,y){for(var x=new yn,E=0;E<a.nodeDataArray.length;E++){var b=a.nodeDataArray[E];c0(a,y,b,b,x)}return x}function c0(a,y,x,E,b){if(Array.isArray(x))for(var z=0;z<x.length;z++){var ee=x[z];if(ee===y)return b.add(E),!0;if(c0(a,y,ee,E,b))return!0}else if(Ot(x)&&Object.getPrototypeOf(x)===Object.prototype)for(z in x){if(ee=x[z],ee===y)return b.add(E),!0;if(c0(a,y,ee,E,b))return!0}return!1}Ce.Pv=function(a,y){var x=this,E=!1,b=new yn,z=new yn,ee=new yn,re=this.vh;a.changes.each(function(ue){ue.model===x&&(ue.modelChange==="nodeDataArray"?ue.change===$o?b.add(ue.newValue):ue.change===pa&&ee.add(ue.oldValue):x.lb(ue.object)?z.add(ue.object):ue.change!==To||x.modelData!==ue.object&&ue.propertyName!=="modelData"?ue.object!==null&&(re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){x.lb(fe)&&z.add(fe)}):ue.object instanceof Ui||x.ri()&&x.Jc(ue.object)||LS(x,ue.object).each(function(fe){z.add(fe)})):E=!0)});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(x.wa(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(x.wa(ue)),y&&z.add(ue)}),a="",E&&(a+=`,
|
|
"modelData": `+fy(this,this.modelData)),0<oe.count&&(a+=(y?this.Yv:this.Wv)+gd(this,oe.Fa(),!0)),0<z.count&&(a+=this.jy+gd(this,z.Fa(),!0)),0<se.count&&(a+=(y?this.Wv:this.Yv)+gd(this,se.Fa(),!0)),se.clear(),oe.clear(),a},Ce.fp=function(a){(a.name!==void 0&&a.name!==this.name||a.dataFormat!==void 0&&a.dataFormat!==this.dataFormat||a.isReadOnly!==void 0&&a.isReadOnly!==this.isReadOnly||a.nodeKeyProperty!==void 0&&a.nodeKeyProperty!==this.nodeKeyProperty||a.copiesArrays!==void 0&&a.copiesArrays!==this.copiesArrays||a.copiesArrayObjects!==void 0&&a.copiesArrayObjects!==this.copiesArrayObjects||a.copiesKey!==void 0&&a.copiesKey!==this.copiesKey||a.nodeCategoryProperty!==void 0&&a.nodeCategoryProperty!==this.nodeCategoryProperty)&&Ve("applyIncrementalJson cannot change Model properties"),ES(this,a);var y=a.insertedNodeKeys,x=a.modifiedNodeData,E=new $t;if(Array.isArray(x))for(var b=0;b<x.length;b++){var z=x[b],ee=this.wa(z);ee!=null&&E.set(ee,z)}if(Array.isArray(y))for(b=y.length,z=0;z<b;z++){ee=y[z];var re=this.hc(ee);re===null&&(re=(re=E.get(ee))?re:this.copyNodeData({}),this.km(re,ee),this.xf(re))}if(Array.isArray(x)){for(y=x.length,E=0;E<y;E++)if(b=x[E],z=this.wa(b),z=this.hc(z),z!==null){for(var oe in b)oe==="__gohashid"||oe===this.nodeKeyProperty||this.Wj()&&oe===this.nodeIsGroupProperty||this.setDataProperty(z,oe,b[oe]);this.lm(b,z)}}if(a=a.removedNodeKeys,Array.isArray(a))for(x=a.length,oe=0;oe<x;oe++)y=this.hc(a[oe]),y!==null&&this.cm(y)},Ce.$x=function(a,y){a.change!==Fa&&Ve("Model.toIncrementalJson argument is not a Transaction ChangedEvent:"+a.toString());var x=a.object;return a.isTransactionFinished&&x instanceof xa?(y===void 0&&(y=yp(this,this)),AS(this,x),a=this.Pv(x,a.propertyName==="FinishedUndo"),this.vh=null,y==="2"?'{ "incremental": 2'+a+"}":'{ "class": '+this.quote(y)+', "incremental": 1'+this.rm()+a+"}"):'{ "incremental": 0 }'},Ce.yA=function(a,y){return this.$x(a,y)},Ce.np=function(a){return a===void 0&&(a=yp(this,this)),'{ "class": '+this.quote(a)+this.rm()+this.Rv()+"}"},Ce.toJSON=function(a){return this.np(a)},Ce.Zw=function(a){var y=null;if(typeof a=="string")try{y=xn.JSON.parse(a)}catch(E){}else typeof a=="object"?y=a:Ve("Unable to modify a Model from: "+a);var x=y.incremental;typeof x!="number"&&Ve("Unable to apply non-incremental changes to Model: "+a),x!==0&&(this.Ea("applyIncrementalJson"),this.fp(y),this.eb("applyIncrementalJson"))},Ce.Ky=function(a){return this.Zw(a)},Ui.constructGraphLinksModel=function(){return new Ui},Ce=Ui.prototype,Ce.dm=function(a){if(Bn(a))for(var y=a.length,x=0;x<y;x++){var E=a[x];if(Ot(E)){var b=x;E=this.dm(E),Array.isArray(a)?a[b]=E:Ve("Cannot replace an object in an HTMLCollection or NodeList at "+b)}}else if(Ot(a)){for(y in a)if(x=a[y],Ot(x)&&(x=this.dm(x),a[y]=x,y==="points"&&Array.isArray(x))){for(b=x.length%2===0,E=0;E<x.length;E++)if(typeof x[E]!="number"){b=!1;break}if(b){for(b=new cn,E=0;E<x.length/2;E++)b.add(new Te(x[2*E],x[2*E+1]));b.freeze(),a[y]=b}}return Wx(a)}return a},Ce.sm=function(a){return a===void 0?"undefined":a===null?"null":a===!0?"true":a===!1?"false":typeof a=="string"?this.quote(a):typeof a=="number"?a===1/0?"9e9999":a===-1/0?"-9e9999":isNaN(a)?'{"class":"NaN"}':a.toString():a instanceof Date?'{"class":"Date", "value":"'+a.toJSON()+'"}':a instanceof Number?this.sm(a.valueOf()):Bn(a)?gd(this,a):Ot(a)?fy(this,a):typeof a=="function"?"null":a.toString()};function gd(a,y,x){x===void 0&&(x=!1);var E=y.length;if(0>=E)return"[]";var b=new Vi;b.add("["),x&&1<E&&b.add(`
|
|
`);for(var z=0;z<E;z++){var ee=y[z];ee!==void 0&&(0<z&&(b.add(","),x&&b.add(`
|
|
`)),b.add(a.sm(ee)))}return x&&1<E&&b.add(`
|
|
`),b.add("]"),b.toString()}function bS(a,y){return y===void 0||a==="__gohashid"||a[0]==="_"||typeof y=="function"}function Fs(a){return isNaN(a)?"NaN":a===1/0?"9e9999":a===-1/0?"-9e9999":a}function fy(a,y){var x=y;if(x instanceof Te)y={class:"go.Point",x:Fs(x.x),y:Fs(x.y)};else if(x instanceof Re)y={class:"go.Size",width:Fs(x.width),height:Fs(x.height)};else if(x instanceof ut)y={class:"go.Rect",x:Fs(x.x),y:Fs(x.y),width:Fs(x.width),height:Fs(x.height)};else if(x instanceof Fi)y={class:"go.Margin",top:Fs(x.top),right:Fs(x.right),bottom:Fs(x.bottom),left:Fs(x.left)};else if(x instanceof ii)x.sb()?y={class:"go.Spot",x:Fs(x.x),y:Fs(x.y),offsetX:Fs(x.offsetX),offsetY:Fs(x.offsetY)}:y={class:"go.Spot",enum:x.toString()};else if(x instanceof wo){if(y={class:"go.Brush",type:x.type.name},x.type===Mh?y.color=x.color:(x.type===oh||x.type===Al)&&(y.start=x.start,y.end=x.end,x.type===Al&&(x.startRadius!==0&&(y.startRadius=Fs(x.startRadius)),isNaN(x.endRadius)||(y.endRadius=Fs(x.endRadius)))),x.colorStops!==null){var E={};for(x=x.colorStops.iterator;x.next();)E[x.key]=x.value;y.colorStops=E}}else x instanceof zn?(y={class:"go.Geometry",type:x.type.name},x.startX!==0&&(y.startX=Fs(x.startX)),x.startY!==0&&(y.startY=Fs(x.startY)),x.endX!==0&&(y.endX=Fs(x.endX)),x.endY!==0&&(y.endY=Fs(x.endY)),x.spot1.D(Ji)||(y.spot1=x.spot1),x.spot2.D(Ar)||(y.spot2=x.spot2),x.type===zn.o&&(y.path=zn.ia(x))):x instanceof En&&(y={class:"go.EnumValue",classType:yp(a,x.classType),name:x.name});E="{",x=!0;for(var b in y){var z=Ca(y,b);if(!bS(b,z))if(x?x=!1:E+=",",E+=a.quote(b)+":",b==="points"&&z instanceof cn){var ee="[";for(z=z.iterator;z.next();){var re=z.value;1<ee.length&&(ee+=","),ee+=a.sm(re.x),ee+=",",ee+=a.sm(re.y)}ee+="]",E+=ee}else E+=a.sm(z)}return E+"}"}function Ds(a){return typeof a=="number"?a:a==="NaN"?NaN:a==="9e9999"?1/0:a==="-9e9999"?-1/0:parseFloat(a)}function Wx(a){if(typeof a!="object")return a;var y=a.class||"";if(y==="NaN")return NaN;if(y==="Date")return new Date(a.value);if(y.indexOf("go.")!==0)return a;y=y.substr(3);var x=a;if(y==="Point")x=new Te(Ds(a.x),Ds(a.y));else if(y==="Size")x=new Re(Ds(a.width),Ds(a.height));else if(y==="Rect")x=new ut(Ds(a.x),Ds(a.y),Ds(a.width),Ds(a.height));else if(y==="Margin")x=new Fi(Ds(a.top),Ds(a.right),Ds(a.bottom),Ds(a.left));else if(y==="Spot")typeof a.enum=="string"?x=ur(a.enum):x=new ii(Ds(a.x),Ds(a.y),Ds(a.offsetX),Ds(a.offsetY));else if(y==="Brush"){if(x=new wo,x.type=Si(wo,a.type),typeof a.color=="string"&&(x.color=a.color),a.start instanceof ii&&(x.start=a.start),a.end instanceof ii&&(x.end=a.end),typeof a.startRadius=="number"&&(x.startRadius=Ds(a.startRadius)),typeof a.endRadius=="number"&&(x.endRadius=Ds(a.endRadius)),a=a.colorStops,Ot(a))for(var E in a)x.addColorStop(parseFloat(E),a[E])}else y==="Geometry"?(x=null,typeof a.path=="string"?x=zn.parse(a.path):x=new zn,x.type=Si(zn,a.type),typeof a.startX=="number"&&(x.startX=Ds(a.startX)),typeof a.startY=="number"&&(x.startY=Ds(a.startY)),typeof a.endX=="number"&&(x.endX=Ds(a.endX)),typeof a.endY=="number"&&(x.endY=Ds(a.endY)),a.spot1 instanceof ii&&(x.spot1=a.spot1),a.spot2 instanceof ii&&(x.spot2=a.spot2)):y==="EnumValue"&&(E=a.classType,E.indexOf("go.")===0&&(E=E.substr(3)),E=py(E),typeof E=="function"&&(x=Si(E,a.name)));return x}Ce.Pe=function(a){return this.Lt.add(a),this},Ce.ik=function(a){this.Lt.remove(a)},Ce.ds=function(a){this.skipsUndoManager||this.undoManager.Tu(a);for(var y=this.Lt,x=y.length,E=0;E<x;E++)y.M(E)(a)},Ce.cb=function(a,y,x,E,b,z,ee){Ta(this,"",a,y,x,E,b,z,ee)},Ce.g=function(a,y,x,E,b){Ta(this,"",To,a,this,y,x,E,b)},Ce.Fs=function(a,y,x,E,b,z){Ta(this,"",To,y,a,x,E,b,z)};function Ta(a,y,x,E,b,z,ee,re,oe){re===void 0&&(re=null),oe===void 0&&(oe=null);var se=new Ho;se.model=a,se.change=x,se.modelChange=y,se.propertyName=E,se.object=b,se.oldValue=z,se.oldParam=re,se.newValue=ee,se.newParam=oe,a.ds(se)}Ui.prototype.changeState=function(a,y){if(a!==null&&a.model===this)if(a.change===To){var x=a.object,E=a.propertyName,b=a.I(y);E===this.nodeKeyProperty&&this.lb(x)&&(y=a.I(!y),y!==void 0&&this.kb.remove(y),b!==void 0&&this.kb.add(b,x)),ea(x,E,b)}else a.change===$o?(x=a.newParam,a.modelChange==="nodeDataArray"?(a=a.newValue,Ot(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]===a&&Ei(this.Tc,x),E!==void 0&&this.kb.remove(E)):(this.Tc[x]!==a&&_n(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)))):a.modelChange===""?((E=a.object)&&!Bn(E)&&a.propertyName&&(E=Ca(a.object,a.propertyName)),Bn(E)&&typeof x=="number"&&(a=a.newValue,y?Ei(E,x):_n(E,x,a))):Ve("unknown ChangedEvent.Insert modelChange: "+a.toString())):a.change===pa?(x=a.oldParam,a.modelChange==="nodeDataArray"?(a=a.oldValue,Ot(a)&&typeof x=="number"&&(E=this.wa(a),y?(this.Tc[x]!==a&&_n(this.Tc,x,a),E!==void 0&&this.kb.add(E,a)):(this.Tc[x]===a&&Ei(this.Tc,x),E!==void 0&&this.kb.remove(E)))):a.modelChange===""?((E=a.object)&&!Bn(E)&&a.propertyName&&(E=Ca(a.object,a.propertyName)),Bn(E)&&typeof x=="number"&&(a=a.oldValue,y?_n(E,x,a):Ei(E,x))):Ve("unknown ChangedEvent.Remove modelChange: "+a.toString())):a.change!==Fa&&Ve("unknown ChangedEvent: "+a.toString())},Ui.prototype.Ea=function(a){return this.undoManager.Ea(a)},Ui.prototype.eb=function(a){return this.undoManager.eb(a)},Ui.prototype.Kf=function(){return this.undoManager.Kf()},Ui.prototype.commit=function(a,y){y===void 0&&(y="");var x=this.skipsUndoManager;y===null&&(this.skipsUndoManager=!0,y=""),this.undoManager.Ea(y);var E=!1;try{a(this),E=!0}finally{E?this.undoManager.eb(y):this.undoManager.Kf(),this.skipsUndoManager=x}},Ce=Ui.prototype,Ce.La=function(a,y){y===void 0&&(y=""),Ta(this,"SourceChanged",Fa,y,a,null,null)},Ce.wa=function(a){if(a!==null){var y=this.Th;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;Ve("Key value for node data "+a+" is not a number or a string: "+y)}}},Ce.km=function(a,y){if(a!==null){var x=this.Th;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E!==y&&this.hc(y)===null&&(ea(a,x,y),E!==void 0&&this.kb.remove(E),this.kb.add(y,a),Ta(this,"nodeKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x),this.jp(E,y))}else ea(a,x,y)}};function pd(a){return typeof a=="number"||typeof a=="string"}Ce.lb=function(a){var y=this.wa(a);return y===void 0?!1:this.kb.I(y)===a},Ce.hc=function(a){return a===null&&Ve("Model.findNodeDataForKey:key must not be null"),a!==void 0&&pd(a)?this.kb.I(a):null},Ce.$u=function(a){if(a!==null){var y=this.Th;if(y!==""){var x=this.wa(a);if(x===void 0||this.kb.contains(x)){var E=this.bl;if(E!==null&&(x=E(this,a),x!=null&&!this.kb.contains(x))){ea(a,y,x);return}if(typeof x=="string"){for(E=2;this.kb.contains(x+E);)E++;ea(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.kb.count-1;this.kb.contains(x);)x--;ea(a,y,x)}}}}},Ce.xf=function(a){a!==null&&(Cr(a),this.lb(a)||MS(this,a,!0))};function MS(a,y,x){var E=a.wa(y);(E===void 0||a.kb.I(E)!==y)&&(a.$u(y),E=a.wa(y),E===void 0&&Ve("Model.makeNodeDataKeyUnique failed on "+y+". Data not added to Model."),a.kb.add(E,y),E=null,x&&(E=a.Tc.length,_n(a.Tc,E,y)),Ta(a,"nodeDataArray",$o,"nodeDataArray",a,null,y,null,E),a.fm(y),a.em(y))}Ce.Fy=function(a){if(Bn(a))for(var y=a.length,x=0;x<y;x++)this.xf(a[x]);else for(a=a.iterator;a.next();)this.xf(a.value)},Ce.cm=function(a){a!==null&&kS(this,a,!0)};function kS(a,y,x){var E=a.wa(y);if(E!==void 0&&a.kb.remove(E),E=null,x){e:if(x=a.Tc,Array.isArray(x))E=x.indexOf(y);else{E=x.length;for(var b=0;b<E;b++)if(x[b]===y){E=b;break e}E=-1}if(0>E)return;Ei(a.Tc,E)}Ta(a,"nodeDataArray",pa,"nodeDataArray",a,y,null,E,null),a.qp(y)}Ce.nA=function(a){if(Bn(a))for(var y=a.length,x=0;x<y;x++)this.cm(a[x]);else for(a=a.iterator;a.next();)this.cm(a.value)},Ce.$z=function(a){if(a!==this.nodeDataArray&&Bn(a)){var y=this.kl;y.clear(),y.addAll(this.kb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.wa(z);if(ee!==void 0){x.add(ee);var re=this.hc(ee);re!==z&&(re!==null?(this.Do(re,z),this.lm(z,re)):(z=this.cloneDeep(z),this.km(z,ee),this.xf(z)))}else ee=this.cloneDeep(z),this.xf(ee),x.add(this.wa(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.hc(E))&&this.cm(E);y.clear(),x.clear()}},Ce.jp=function(a,y){y!==void 0&&(a=vp(this,a),a instanceof yn&&this.Vf.add(y,a))},Ce.Lv=function(){},Ce.fm=function(){},Ce.em=function(){},Ce.qp=function(){};function uu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E===null&&(E=new yn,a.Vf.add(y,E)),E.add(x)}}function hu(a,y,x){if(y!==void 0){var E=a.Vf.I(y);E instanceof yn&&(x==null?a.Vf.remove(y):(E.remove(x),E.count===0&&a.Vf.remove(y)))}}function vp(a,y){return y===void 0?null:(a=a.Vf.I(y),a instanceof yn?a:null)}Ce.Qy=function(a){a===void 0?this.Vf.clear():this.Vf.remove(a)},Ui.prototype.copyNodeData=function(a){if(a===null)return null;var y=this.Bk;return a=y!==null?y(a,this):f0(this,a,!0),Ot(a)&&bi(a),a};function f0(a,y,x){if(a.copiesArrays&&Array.isArray(y)){var E=[];for(x=0;x<y.length;x++){var b=f0(a,y[x],a.copiesArrayObjects);E.push(b)}return bi(E),E}if(x&&Ot(y)){x=(x=y.constructor)?new x:{},b=a.copiesKey||typeof a.nodeKeyProperty!="string"?null:a.nodeKeyProperty;for(E in y)if(E==="__gohashid")x.__gohashid=void 0;else if(E===b)x[b]=void 0;else{var z=Ca(y,E),ee=yp(a,z);ee==="GraphObject"||ee==="Diagram"||ee==="Layer"||ee==="RowColumnDefinition"||ee==="AnimationManager"||ee==="Tool"||ee==="CommandHandler"||ee==="Layout"||ee==="InputEvent"||ee==="DiagramEvent"||z instanceof Ui||z instanceof qo||z instanceof xa||z instanceof Ho||(z=f0(a,z,!1)),ea(x,E,z)}return bi(x),x}return y instanceof Te||y instanceof Re||y instanceof ut||y instanceof ii||y instanceof Fi?y.copy():y}Ui.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}}else!FS&&a instanceof kt&&(FS=!0,An('Model.setDataProperty is modifying a GraphObject, "'+a.toString()+'"'),An(" Is that really your intent?"));var E=Ca(a,y);E!==x&&(ea(a,y,x),this.Fs(a,y,E,x))},Ce=Ui.prototype,Ce.set=function(a,y,x){this.setDataProperty(a,y,x)},Ce.Do=function(a,y){if(y){var x=this.lb(a),E;for(E in y)E==="__gohashid"||x&&E===this.nodeKeyProperty||this.setDataProperty(a,E,y[E])}},Ce.Ay=function(a,y){this.ts(a,-1,y)},Ce.ts=function(a,y,x){0>y&&(y=a.length),_n(a,y,x),Ta(this,"",$o,"",a,null,x,null,y)},Ce.ov=function(a,y){y===void 0&&(y=-1),a===this.Tc&&Ve("Model.removeArrayItem should not be called on the Model.nodeDataArray"),y===-1&&(y=a.length-1);var x=a[y];Ei(a,y),Ta(this,"",pa,"",a,x,null,y,null)},Ce.Ro=function(a){if(a===null)return"";var y=this.lj;if(y===""||(y=Ca(a,y),y===void 0))return"";if(typeof y=="string")return y;Ve("getCategoryForNodeData found a non-string category for "+a+": "+y)},Ce.jm=function(a,y){if(a!==null){var x=this.lj;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E===void 0&&(E=""),E!==y&&(ea(a,x,y),Ta(this,"nodeCategory",To,x,a,E,y))}else ea(a,x,y)}},Ce.lm=function(a,y){this.jm(y,this.Ro(a))},Ce.Tl=function(){return!1},Ce.Wj=function(){return!1},Ce.ri=function(){return!1},Ce.xs=function(){return!1},Ce.Xj=function(){return!1};function gy(){return new Ui}function yp(a,y){if(typeof y=="function"){if(y.className)return y.className;if(y.name)return y.name}else if(typeof y=="object"&&y!==null&&y.constructor)return yp(a,y.constructor);return typeof y}function py(a){return $l[a]?$l[a]:xn.go!==void 0&&xn.go[a]?xn.go[a]:null}function Ca(a,y){if(!a||!y)return null;try{if(typeof y=="function")var x=y(a);else typeof a.getAttribute=="function"?(x=a.getAttribute(y),x===null&&(x=void 0)):x=a[y]}catch(E){}return x}function ea(a,y,x){if(a&&y)try{typeof y=="function"?y(a,x):typeof a.setAttribute=="function"?a.setAttribute(y,x):a[y]=x}catch(E){}}Ct.Object.defineProperties(Ui.prototype,{name:{get:function(){return this.xa},set:function(a){var y=this.xa;y!==a&&(this.xa=a,this.g("name",y,a))}},dataFormat:{get:function(){return this.Sm},set:function(a){var y=this.Sm;y!==a&&(this.Sm=a,this.g("dataFormat",y,a))}},isReadOnly:{get:function(){return this.Gg},set:function(a){var y=this.Gg;y!==a&&(this.Gg=a,this.g("isReadOnly",y,a))}},modelData:{get:function(){return this.j},set:function(a){var y=this.j;y!==a&&(this.j=a,this.g("modelData",y,a),this.La(a))}},undoManager:{get:function(){return this.o},set:function(a){var y=this.o;y!==a&&(y!==null&&y.Rx(this),this.o=a,a!==null&&a.Xw(this))}},skipsUndoManager:{get:function(){return this.Wg},set:function(a){this.Wg=a}},nodeKeyProperty:{get:function(){return this.Th},set:function(a){var y=this.Th;y!==a&&(a===""&&Ve("Model.nodeKeyProperty may not be the empty string"),0<this.kb.count&&Ve("Cannot set Model.nodeKeyProperty when there is existing node data"),this.Th=a,this.g("nodeKeyProperty",y,a))}},makeUniqueKeyFunction:{get:function(){return this.bl},set:function(a){var y=this.bl;y!==a&&(this.bl=a,this.g("makeUniqueKeyFunction",y,a))}},nodeDataArray:{get:function(){return this.Tc},set:function(a){var y=this.Tc;if(y!==a){this.kb.clear(),this.Lv();for(var x=a.length,E=0;E<x;E++){var b=a[E];Ot(b)||Ve("Model.nodeDataArray must only contain Objects, not: "+b),Cr(b)}for(this.Tc=a,E=new cn,b=0;b<x;b++){var z=a[b],ee=this.wa(z);ee===void 0||this.kb.I(ee)!==null?E.add(z):this.kb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.$u(b),z=this.wa(b),z!==void 0&&this.kb.add(z,b);for(Ta(this,"nodeDataArray",To,"nodeDataArray",this,y,a),y=0;y<x;y++)E=a[y],this.fm(E),this.em(E);Array.isArray(a)||(this.isReadOnly=!0)}}},copyNodeDataFunction:{get:function(){return this.Bk},set:function(a){var y=this.Bk;y!==a&&(this.Bk=a,this.g("copyNodeDataFunction",y,a))}},copiesArrays:{get:function(){return this.Km},set:function(a){var y=this.Km;y!==a&&(this.Km=a,this.g("copiesArrays",y,a))}},copiesArrayObjects:{get:function(){return this.Jm},set:function(a){var y=this.Jm;y!==a&&(this.Jm=a,this.g("copiesArrayObjects",y,a))}},copiesKey:{get:function(){return this.Mm},set:function(a){var y=this.Mm;y!==a&&(this.Mm=a,this.g("copiesKey",y,a))}},afterCopyFunction:{get:function(){return this.xm},set:function(a){var y=this.xm;y!==a&&(this.xm=a,this.g("afterCopyFunction",y,a))}},nodeCategoryProperty:{get:function(){return this.lj},set:function(a){var y=this.lj;y!==a&&(this.lj=a,this.g("nodeCategoryProperty",y,a))}},type:{get:function(){return"Model"}}}),Ui.prototype.setCategoryForNodeData=Ui.prototype.jm,Ui.prototype.getCategoryForNodeData=Ui.prototype.Ro,Ui.prototype.removeArrayItem=Ui.prototype.ov,Ui.prototype.insertArrayItem=Ui.prototype.ts,Ui.prototype.addArrayItem=Ui.prototype.Ay,Ui.prototype.assignAllDataProperties=Ui.prototype.Do,Ui.prototype.set=Ui.prototype.set,Ui.prototype.clearUnresolvedReferences=Ui.prototype.Qy,Ui.prototype.mergeNodeDataArray=Ui.prototype.$z,Ui.prototype.removeNodeDataCollection=Ui.prototype.nA,Ui.prototype.removeNodeData=Ui.prototype.cm,Ui.prototype.addNodeDataCollection=Ui.prototype.Fy,Ui.prototype.addNodeData=Ui.prototype.xf,Ui.prototype.makeNodeDataKeyUnique=Ui.prototype.$u,Ui.prototype.findNodeDataForKey=Ui.prototype.hc,Ui.prototype.containsNodeData=Ui.prototype.lb,Ui.prototype.setKeyForNodeData=Ui.prototype.km,Ui.prototype.getKeyForNodeData=Ui.prototype.wa,Ui.prototype.updateTargetBindings=Ui.prototype.La,Ui.prototype.commit=Ui.prototype.commit,Ui.prototype.rollbackTransaction=Ui.prototype.Kf,Ui.prototype.commitTransaction=Ui.prototype.eb,Ui.prototype.startTransaction=Ui.prototype.Ea,Ui.prototype.raiseDataChanged=Ui.prototype.Fs,Ui.prototype.raiseChanged=Ui.prototype.g,Ui.prototype.raiseChangedEvent=Ui.prototype.cb,Ui.prototype.removeChangedListener=Ui.prototype.ik,Ui.prototype.addChangedListener=Ui.prototype.Pe,Ui.prototype.writeJsonValue=Ui.prototype.sm,Ui.prototype.replaceJsonObjects=Ui.prototype.dm,Ui.prototype.applyIncrementalJSON=Ui.prototype.Ky,Ui.prototype.applyIncrementalJson=Ui.prototype.Zw,Ui.prototype.toJSON=Ui.prototype.toJSON,Ui.prototype.toJson=Ui.prototype.np,Ui.prototype.toIncrementalJSON=Ui.prototype.yA,Ui.prototype.toIncrementalJson=Ui.prototype.$x,Ui.prototype.toIncrementalData=Ui.prototype.xA,Ui.prototype.clear=Ui.prototype.clear;var FS=!1,$l={};Ui.className="Model",Ui.fromJSON=Ui.fromJson=function(a,y){y===void 0&&(y=null);var x=null;if(typeof a=="string")try{x=xn.JSON.parse(a)}catch(z){}else typeof a=="object"?x=a:Ve("Unable to construct a Model from: "+a);if(y===null){a=null;var E=x.class;if(typeof E=="string")try{var b=null;E.indexOf("go.")===0?(E=E.substr(3),b=py(E)):(b=py(E),b===null&&(b=xn[E])),typeof b=="function"&&(a=new b)}catch(z){}a===null||a instanceof Ui?y=a:Ve("Unable to construct a Model of declared class: "+x.class)}return y===null&&(y=Ui.constructGraphLinksModel()),y.gp(x),y.kv(x),y},Ui.safePropertyValue=Ca,Ui.safePropertySet=ea,$l.Brush=wo,$l.ChangedEvent=Ho,$l.Geometry=zn,$l.Margin=Fi,$l.Panel=ni,$l.Point=Te,$l.Rect=ut,$l.Size=Re,$l.Spot=ii,$l.Transaction=xa,$l.UndoManager=qo;function La(a,y,x,E){bi(this),this._isFrozen=!1,a===void 0&&(a=""),y===void 0&&(y=a),x===void 0&&(x=null),this.j=-1,this.xd=null,this.xl=a,this.wl=this.to=0,this.Cr=null,this.wn=!1,this.sl=y,this.Im=x,E===void 0?(this.el=NS,this.wk=null):(this.el=Sp,this.wk=E),this.st=new yn}La.prototype.copy=function(){var a=new La;return a.xl=this.xl,a.to=this.to,a.wl=this.wl,a.Cr=this.Cr,a.wn=this.wn,a.sl=this.sl,a.Im=this.Im,a.el=this.el,a.wk=this.wk,a},Ce=La.prototype,Ce.qb=function(a){a.classType===La&&(this.mode=a)},Ce.toString=function(){return"Binding("+this.targetProperty+":"+this.sourceProperty+(this.Ai!==-1?" "+this.Ai:"")+" "+this.mode.name+")"},Ce.freeze=function(){return this._isFrozen=!0,this},Ce.ka=function(){return this._isFrozen=!1,this},Ce.Kx=function(a){return a===void 0&&(a=null),this.mode=Sp,this.backConverter=a,this},Ce.cp=function(a){return a===void 0&&(a=""),this.sourceName=a,this.isToModel=!1,this},Ce.dA=function(){return this.sourceName=null,this.isToModel=!0,this};function DS(a,y,x){return a=a.sourceName,a===null||a===""?y:a==="/"?x.part:a==="."?x:a===".."?x.panel:y.fb(a)}Ce.Mv=function(a,y,x){var E=this.sl;if(x===void 0||E===""||E===x){x=this.xl;var b=this.Im;if(b===null&&x==="")An("Binding error: target property is the empty string: "+this.toString());else{var z=y;if(E!==""&&(z=Ca(y,E)),z!==void 0)if(b===null)x!==""&&ea(a,x,z);else try{if(x!==""){var ee=b(z,a);ea(a,x,ee)}else b(z,a)}catch(re){}}}},Ce.sp=function(a,y,x,E){if(this.el===Sp){var b=this.xl;if(x===void 0||b===x){x=this.sl;var z=this.wk,ee=a;if(b!==""&&(ee=Ca(a,b)),ee!==void 0&&!this.st.contains(a))try{this.st.add(a);var re=E!==null?E.diagram:null,oe=re!==null?re.model:null;if(z===null){if(x!=="")oe!==null?oe.setDataProperty(y,x,ee):ea(y,x,ee);else if(oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var se=E.itemIndex,ue=E.panel.itemArray;oe.ov(ue,se),oe.ts(ue,se,ee)}}else try{if(x!==""){var fe=z(ee,y,oe);oe!==null?oe.setDataProperty(y,x,fe):ea(y,x,fe)}else{var ve=z(ee,y,oe);if(ve!==void 0&&oe!==null&&E!==null&&0<=E.itemIndex&&E.panel!==null&&Array.isArray(E.panel.itemArray)){var xe=E.itemIndex,Pe=E.panel.itemArray;oe.ov(Pe,xe),oe.ts(Pe,xe,ve)}}}catch(Fe){}}finally{this.st.remove(a)}}}},Ct.Object.defineProperties(La.prototype,{Ai:{get:function(){return this.j},set:function(a){this._isFrozen&&mt(this),this.j=a}},targetProperty:{get:function(){return this.xl},set:function(a){this._isFrozen&&mt(this),this.xl=a}},sourceName:{get:function(){return this.Cr},set:function(a){this._isFrozen&&mt(this),this.Cr=a,a!==null&&(this.wn=!1)}},isToModel:{get:function(){return this.wn},set:function(a){this._isFrozen&&mt(this),this.wn=a}},sourceProperty:{get:function(){return this.sl},set:function(a){this._isFrozen&&mt(this),this.sl=a}},converter:{get:function(){return this.Im},set:function(a){this._isFrozen&&mt(this),this.Im=a}},backConverter:{get:function(){return this.wk},set:function(a){this._isFrozen&&mt(this),this.wk=a}},mode:{get:function(){return this.el},set:function(a){this._isFrozen&&mt(this),this.el=a}}}),La.prototype.updateSource=La.prototype.sp,La.prototype.updateTarget=La.prototype.Mv,La.prototype.ofModel=La.prototype.dA,La.prototype.ofObject=La.prototype.cp,La.prototype.makeTwoWay=La.prototype.Kx;var Hx="Binding",NS=new En(La,"OneWay",1),Sp=new En(La,"TwoWay",2);La.className="Binding",La.parseEnum=function(a,y){return function(x){return x=Si(a,x),x===null?y:x}},La.toString=_i,La.OneWay=NS,La.TwoWay=Sp;function io(a,y,x){Ui.call(this),this.Vv=`,
|
|
"insertedLinkKeys": `,this.iy=`,
|
|
"modifiedLinkData": `,this.Xv=`,
|
|
"removedLinkKeys": `,this.md=[],this.$f=new yn,this.wb=new $t,this.Jh="",this.Ri=this.Ak=this.cl=null,this.lf="from",this.mf="to",this.fj=this.ej="",this.dj="category",this.je="",this.jl="isGroup",this.Je="group",this.Lm=!1,y!==void 0&&(this.linkDataArray=y),a!==void 0&&(Bn(a)?this.nodeDataArray=a:x=a),x&&(Object.assign(this,x),a=x.Changed)&&(delete this.Changed,this.Pe(a))}xt(io,Ui),io.constructGraphLinksModel=Ui.constructGraphLinksModel,io.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Jh=this.Jh,a.cl=this.cl,a.Ak=this.Ak,a.lf=this.lf,a.mf=this.mf,a.ej=this.ej,a.fj=this.fj,a.dj=this.dj,a.je=this.je,a.jl=this.jl,a.Je=this.Je,a.Lm=this.Lm},Ce=io.prototype,Ce.clear=function(){Ui.prototype.clear.call(this),this.md=[],this.wb.clear(),this.$f.clear()},Ce.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" GraphLinksModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;var x=a.length,E;for(E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+_i(b)}for(y+=`
|
|
link data:`,a=this.linkDataArray,x=a.length,E=0;E<x;E++)b=a[E],y+=" "+fl(this,b,!0)+"-->"+fl(this,b,!1)}return y},Ce.Qv=function(a,y){this.linkKeyProperty===""&&Ve("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalData() to succeed.");var x=Ui.prototype.Qv.call(this,a,y),E=this,b=new yn,z=new yn,ee=new yn,re=this.vh;a.changes.each(function(ue){ue.model===E&&(ue.modelChange==="linkDataArray"?ue.change===$o?b.add(ue.newValue):ue.change===pa&&ee.add(ue.oldValue):E.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){E.Jc(fe)&&z.add(fe)}):ue.object instanceof Ui||E.lb(ue.object)||BS(E,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(E.Ac(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(E.Ac(ue)),y&&z.add(ue)}),a=E.cloneDeep(z.Fa()),0<oe.count&&(x===null&&(x={}),y?x.removedLinkKeys=oe.Fa():x.insertedLinkKeys=oe.Fa()),0<a.length&&(x===null&&(x={}),x.modifiedLinkData=a),0<se.count&&(x===null&&(x={}),y?x.insertedLinkKeys=se.Fa():x.removedLinkKeys=se.Fa()),se.clear(),oe.clear(),x},Ce.rm=function(){var a=Ui.prototype.rm.call(this),y="";return this.linkCategoryProperty!=="category"&&typeof this.linkCategoryProperty=="string"&&(y+=`,
|
|
"linkCategoryProperty": `+this.quote(this.linkCategoryProperty)),this.linkKeyProperty!==""&&typeof this.linkKeyProperty=="string"&&(y+=`,
|
|
"linkKeyProperty": `+this.quote(this.linkKeyProperty)),this.linkFromKeyProperty!=="from"&&typeof this.linkFromKeyProperty=="string"&&(y+=`,
|
|
"linkFromKeyProperty": `+this.quote(this.linkFromKeyProperty)),this.linkToKeyProperty!=="to"&&typeof this.linkToKeyProperty=="string"&&(y+=`,
|
|
"linkToKeyProperty": `+this.quote(this.linkToKeyProperty)),this.linkFromPortIdProperty!==""&&typeof this.linkFromPortIdProperty=="string"&&(y+=`,
|
|
"linkFromPortIdProperty": `+this.quote(this.linkFromPortIdProperty)),this.linkToPortIdProperty!==""&&typeof this.linkToPortIdProperty=="string"&&(y+=`,
|
|
"linkToPortIdProperty": `+this.quote(this.linkToPortIdProperty)),this.linkLabelKeysProperty!==""&&typeof this.linkLabelKeysProperty=="string"&&(y+=`,
|
|
"linkLabelKeysProperty": `+this.quote(this.linkLabelKeysProperty)),this.nodeIsGroupProperty!=="isGroup"&&typeof this.nodeIsGroupProperty=="string"&&(y+=`,
|
|
"nodeIsGroupProperty": `+this.quote(this.nodeIsGroupProperty)),this.nodeGroupKeyProperty!=="group"&&typeof this.nodeGroupKeyProperty=="string"&&(y+=`,
|
|
"nodeGroupKeyProperty": `+this.quote(this.nodeGroupKeyProperty)),a+y},Ce.gp=function(a){Ui.prototype.gp.call(this,a),a.linkKeyProperty&&(this.linkKeyProperty=a.linkKeyProperty),a.linkFromKeyProperty&&(this.linkFromKeyProperty=a.linkFromKeyProperty),a.linkToKeyProperty&&(this.linkToKeyProperty=a.linkToKeyProperty),a.linkFromPortIdProperty&&(this.linkFromPortIdProperty=a.linkFromPortIdProperty),a.linkToPortIdProperty&&(this.linkToPortIdProperty=a.linkToPortIdProperty),a.linkCategoryProperty&&(this.linkCategoryProperty=a.linkCategoryProperty),a.linkLabelKeysProperty&&(this.linkLabelKeysProperty=a.linkLabelKeysProperty),a.nodeIsGroupProperty&&(this.nodeIsGroupProperty=a.nodeIsGroupProperty),a.nodeGroupKeyProperty&&(this.nodeGroupKeyProperty=a.nodeGroupKeyProperty)},Ce.Rv=function(){var a=Ui.prototype.Rv.call(this),y=`,
|
|
"linkDataArray": `+gd(this,this.linkDataArray,!0);return a+y},Ce.kv=function(a){Ui.prototype.kv.call(this,a),a=a.linkDataArray,Array.isArray(a)&&(this.dm(a),this.linkDataArray=a)};function BS(a,y){for(var x=new yn,E=0;E<a.linkDataArray.length;E++){var b=a.linkDataArray[E];c0(a,y,b,b,x)}return x}Ce.Pv=function(a,y){this.linkKeyProperty===""&&Ve("GraphLinksModel.linkKeyProperty must not be an empty string for .toIncrementalJson() to succeed.");var x=Ui.prototype.Pv.call(this,a,y),E=this,b=new yn,z=new yn,ee=new yn,re=this.vh;a.changes.each(function(ue){ue.model===E&&(ue.modelChange==="linkDataArray"?ue.change===$o?b.add(ue.newValue):ue.change===pa&&ee.add(ue.oldValue):E.Jc(ue.object)?z.add(ue.object):ue.object!==null&&(ue.object!==null&&re&&re.contains(ue.object)?re.get(ue.object).each(function(fe){E.Jc(fe)&&z.add(fe)}):ue.object instanceof Ui||E.lb(ue.object)||BS(E,ue.object).each(function(fe){z.add(fe)})))});var oe=this.il;oe.clear(),b.each(function(ue){oe.add(E.Ac(ue)),y||z.add(ue)});var se=this.kl;return se.clear(),ee.each(function(ue){se.add(E.Ac(ue)),y&&z.add(ue)}),a=x,0<oe.count&&(a+=(y?this.Xv:this.Vv)+gd(this,oe.Fa(),!0)),0<z.count&&(a+=this.iy+gd(this,z.Fa(),!0)),0<se.count&&(a+=(y?this.Vv:this.Xv)+gd(this,se.Fa(),!0)),se.clear(),oe.clear(),a},Ce.fp=function(a){(a.linkCategoryProperty!==void 0&&a.linkCategoryProperty!==this.linkCategoryProperty||a.linkKeyProperty!==void 0&&a.linkKeyProperty!==this.linkKeyProperty||a.linkFromKeyProperty!==void 0&&a.linkFromKeyProperty!==this.linkFromKeyProperty||a.linkToKeyProperty!==void 0&&a.linkToKeyProperty!==this.linkToKeyProperty||a.linkFromPortIdProperty!==void 0&&a.linkFromPortIdProperty!==this.linkFromPortIdProperty||a.linkToPortIdProperty!==void 0&&a.linkToPortIdProperty!==this.linkToPortIdProperty||a.linkLabelKeysProperty!==void 0&&a.linkLabelKeysProperty!==this.linkLabelKeysProperty||a.nodeIsGroupProperty!==void 0&&a.nodeIsGroupProperty!==this.nodeIsGroupProperty||a.nodeGroupKeyProperty!==void 0&&a.nodeGroupKeyProperty!==this.nodeGroupKeyProperty)&&Ve("applyIncrementalJson cannot change Model properties"),Ui.prototype.fp.call(this,a);var y=a.insertedLinkKeys;if(Array.isArray(y))for(var x=y.length,E=0;E<x;E++){var b=y[E],z=this.jh(b);z===null&&(z=this.Jo({}),this.Ks(z,b),this.fi(z))}if(y=a.modifiedLinkData,Array.isArray(y)){for(x=y.length,E=0;E<x;E++)if(b=y[E],z=this.Ac(b),z=this.jh(z),z!==null){for(var ee in b)ee!=="__gohashid"&&ee!==this.linkKeyProperty&&this.setDataProperty(z,ee,b[ee]);IS(this,b,z)}}if(a=a.removedLinkKeys,Array.isArray(a))for(ee=a.length,y=0;y<ee;y++)x=this.jh(a[y]),x!==null&&this.bm(x)},io.prototype.changeState=function(a,y){if(a!==null&&a.model===this){if(a.change===To){var x=a.object,E=a.propertyName;if(E===this.linkKeyProperty&&this.Jc(x)){var b=a.I(y);y=a.I(!y),y!==void 0&&this.wb.remove(y),b!==void 0&&this.wb.add(b,x),ea(x,E,b);return}}else if(a.change===$o){if(x=a.newParam,a.modelChange==="linkDataArray"){a=a.newValue,Ot(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)):(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)):0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue));return}}else if(a.change===pa){if(x=a.oldParam,a.modelChange==="linkDataArray"){a=a.oldValue,Ot(a)&&typeof x=="number"&&(E=this.Ac(a),y?(this.$f.add(a),this.md[x]!==a&&this.md.splice(x,0,a),E!==void 0&&this.wb.add(E,a)):(this.$f.remove(a),this.md[x]===a&&this.md.splice(x,1),E!==void 0&&this.wb.remove(E)));return}if(a.modelChange==="linkLabelKeys"){E=this.Ef(a.object),Array.isArray(E)&&typeof x=="number"&&(y?0>E.indexOf(a.newValue)&&E.splice(x,0,a.newValue):(x=E.indexOf(a.newValue),0<=x&&E.splice(x,1)));return}}Ui.prototype.changeState.call(this,a,y)}},Ce=io.prototype,Ce.Vl=function(a){if(a!==void 0){var y=this.Ri;if(y!==null){var x=this.hc(a);x===null&&(x=this.copyNodeData(y),ea(x,this.nodeKeyProperty,a),this.xf(x))}return a}},Ce.yx=function(a){return fl(this,a,!0)},Ce.wv=function(a,y){Yf(this,a,y,!0)},Ce.Bx=function(a){return fl(this,a,!1)},Ce.Bv=function(a,y){Yf(this,a,y,!1)};function fl(a,y,x){if(y!==null&&(a=x?a.lf:a.mf,a!==""&&(a=Ca(y,a),a!==void 0))){if(pd(a))return a;Ve((x?"FromKey":"ToKey")+" value for link data "+y+" is not a number or a string: "+a)}}function Yf(a,y,x,E){if(x===null&&(x=void 0),y!==null){var b=E?a.lf:a.mf;if(b!=="")if(x=a.Vl(x),a.Jc(y)){var z=Ca(y,b);z!==x&&(hu(a,z,y),ea(y,b,x),a.hc(x)===null&&uu(a,x,y),Ta(a,E?"linkFromKey":"linkToKey",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ea(y,b,x)}}Ce.zx=function(a){return g0(this,a,!0)},Ce.xv=function(a,y){Uf(this,a,y,!0)},Ce.Cx=function(a){return g0(this,a,!1)},Ce.Cv=function(a,y){Uf(this,a,y,!1)};function g0(a,y,x){return y===null||(a=x?a.ej:a.fj,a==="")?"":(y=Ca(y,a),y===void 0?"":y)}function Uf(a,y,x,E){if(y!==null){var b=E?a.ej:a.fj;if(b!=="")if(a.Jc(y)){var z=Ca(y,b);z===void 0&&(z=""),z!==x&&(ea(y,b,x),Ta(a,E?"linkFromPortId":"linkToPortId",To,b,y,z,x),typeof b=="string"&&a.La(y,b))}else ea(y,b,x)}}Ce.Ef=function(a){if(a===null)return p0;var y=this.je;return y===""?p0:(a=Ca(a,y),a===void 0?p0:a)},Ce.Ls=function(a,y){if(a!==null){var x=this.je;if(x!=="")if(this.Jc(a)){var E=Ca(a,x);if(E===void 0&&(E=p0),E!==y){if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)hu(this,E[z],a);for(ea(a,x,y),b=y.length,z=0;z<b;z++){var ee=y[z];this.hc(ee)===null&&uu(this,ee,a)}Ta(this,"linkLabelKeys",To,x,a,E,y),typeof x=="string"&&this.La(a,x)}}else ea(a,x,y)}},Ce.Bu=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Ca(a,x);if(E===void 0)x=[],x.push(y),this.Ls(a,x);else if(Array.isArray(E)){var b=E.indexOf(y);0<=b||(b=E.length,E.push(y),this.Jc(a)&&(this.hc(y)===null&&uu(this,y,a),Ta(this,"linkLabelKeys",$o,x,a,null,y,null,b)))}else Ve(x+" property is not an Array; cannot addLabelKeyForLinkData: "+a)}}},Ce.Qx=function(a,y){if(y!=null&&a!==null){var x=this.je;if(x!==""){var E=Ca(a,x);if(Array.isArray(E)){var b=E.indexOf(y);0>b||(E.splice(b,1),this.Jc(a)&&(hu(this,y,a),Ta(this,"linkLabelKeys",pa,x,a,y,null,b,null)))}else E!==void 0&&Ve(x+" property is not an Array; cannot removeLabelKeyforLinkData: "+a)}}},Ce.Ac=function(a){if(a!==null){var y=this.Jh;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;Ve("Key value for link data "+a+" is not a number or a string: "+y)}}},Ce.Ks=function(a,y){if(a!==null){var x=this.Jh;if(x!=="")if(this.Jc(a)){var E=Ca(a,x);E!==y&&this.jh(y)===null&&(ea(a,x,y),E!==void 0&&this.wb.remove(E),this.wb.add(y,a),Ta(this,"linkKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ea(a,x,y)}},Ce.jh=function(a){return a===null&&Ve("GraphLinksModel.findLinkDataForKey:key must not be null"),a!==void 0&&pd(a)?this.wb.I(a):null},Ce.Bs=function(a){if(a!==null){var y=this.Jh;if(y!==""){var x=this.Ac(a);if(x===void 0||this.wb.contains(x)){var E=this.cl;if(E!==null&&(x=E(this,a),x!=null&&!this.wb.contains(x))){ea(a,y,x);return}if(typeof x=="string"){for(E=2;this.wb.contains(x+E);)E++;ea(a,y,x+E)}else if(x===void 0||typeof x=="number"){for(x=-this.wb.count-1;this.wb.contains(x);)x--;ea(a,y,x)}}}}},Ce.Jc=function(a){return a===null?!1:this.$f.contains(a)},Ce.fi=function(a){a!==null&&(Cr(a),this.Jc(a)||TS(this,a,!0))};function TS(a,y,x){if(a.linkKeyProperty!==""){var E=a.Ac(y);if(E!==void 0&&a.wb.I(E)===y)return;a.Bs(y),E=a.Ac(y),E===void 0&&Ve("GraphLinksModel.makeLinkDataKeyUnique failed on "+y+". Data not added to model."),a.wb.add(E,y)}a.$f.add(y),E=null,x&&(E=a.md.length,a.md.splice(E,0,y)),Ta(a,"linkDataArray",$o,"linkDataArray",a,null,y,null,E),my(a,y)}Ce.Ey=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.fi(a[x]);else for(a=a.iterator;a.next();)this.fi(a.value)},Ce.bm=function(a){a!==null&&OS(this,a,!0)};function OS(a,y,x){a.$f.remove(y);var E=a.Ac(y);if(E!==void 0&&a.wb.remove(E),E=null,x){if(E=a.md.indexOf(y),0>E)return;a.md.splice(E,1)}if(Ta(a,"linkDataArray",pa,"linkDataArray",a,y,null,E,null),x=fl(a,y,!0),hu(a,x,y),x=fl(a,y,!1),hu(a,x,y),E=a.Ef(y),Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],hu(a,x,y)}Ce.lA=function(a){if(Array.isArray(a))for(var y=a.length,x=0;x<y;x++)this.bm(a[x]);else for(a=a.iterator;a.next();)this.bm(a.value)},Ce.Zz=function(a){if(this.linkKeyProperty===""&&Ve("GraphLinksModel.linkKeyProperty must not be an empty string for .mergeLinkDataArray() to succeed."),a!==this.linkDataArray&&Bn(a)){var y=this.kl;y.clear(),y.addAll(this.wb.iteratorKeys);var x=this.il;x.clear();for(var E=a.length,b=0;b<E;b++){var z=a[b],ee=this.Ac(z);if(ee!==void 0){x.add(ee);var re=this.jh(ee);re!==z&&(re!==null?(this.Do(re,z),IS(this,z,re)):(z=this.cloneDeep(z),this.Ks(z,ee),this.fi(z)))}else ee=this.cloneDeep(z),this.fi(ee),x.add(this.Ac(ee))}for(a=y.iterator;a.next();)E=a.value,x.contains(E)||(E=this.jh(E))&&this.bm(E);y.clear(),x.clear()}};function my(a,y){var x=fl(a,y,!0);x=a.Vl(x),a.hc(x)===null&&uu(a,x,y),x=fl(a,y,!1),x=a.Vl(x),a.hc(x)===null&&uu(a,x,y);var E=a.Ef(y);if(Array.isArray(E))for(var b=E.length,z=0;z<b;z++)x=E[z],a.hc(x)===null&&uu(a,x,y)}Ce.Jo=function(a){if(a===null)return null;var y=this.Ak;return a=y!==null?y(a,this):f0(this,a,!0),Ot(a)&&(bi(a),this.lf!==""&&ea(a,this.lf,void 0),this.mf!==""&&ea(a,this.mf,void 0),this.je!==""&&ea(a,this.je,[])),a},Ce.Yu=function(a){if(a===null)return!1;var y=this.jl;return y===""?!1:!!Ca(a,y)},Ce.lh=function(a){if(a!==null){var y=this.Je;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;Ve("GroupKey value for node data "+a+" is not a number or a string: "+y)}}},Ce.mp=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Je;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E!==y&&(hu(this,E,a),ea(a,x,y),this.hc(y)===null&&uu(this,y,a),Ta(this,"nodeGroupKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ea(a,x,y)}},io.prototype.copyNodeData=function(a){return a===null?null:(a=Ui.prototype.copyNodeData.call(this,a),this.Ij||this.Je===""||Ca(a,this.Je)===void 0||ea(a,this.Je,void 0),a)},io.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeGroupKeyProperty){this.mp(a,x);return}}else if(this.Jc(a)){if(y===this.linkFromKeyProperty){Yf(this,a,x,!0);return}if(y===this.linkToKeyProperty){Yf(this,a,x,!1);return}if(y===this.linkFromPortIdProperty){Uf(this,a,x,!0);return}if(y===this.linkToPortIdProperty){Uf(this,a,x,!1);return}if(y===this.linkKeyProperty){this.Ks(a,x);return}if(y===this.linkCategoryProperty){this.lp(a,x);return}if(y===this.linkLabelKeysProperty){this.Ls(a,x);return}}var E=Ca(a,y);E!==x&&(ea(a,y,x),this.Fs(a,y,E,x))},Ce=io.prototype,Ce.Do=function(a,y){if(y){var x=this.lb(a),E=this.Jc(a),b;for(b in y)b==="__gohashid"||x&&b===this.nodeKeyProperty||x&&b===this.nodeIsGroupProperty&&Ca(a,b)===y[b]||E&&b===this.linkKeyProperty||this.setDataProperty(a,b,y[b])}},Ce.jp=function(a,y){Ui.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y);for(x=this.$f.iterator;x.next();){var E=x.value,b=a,z=y;if(fl(this,E,!0)===b){var ee=this.lf;ea(E,ee,z),Ta(this,"linkFromKey",To,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)}if(fl(this,E,!1)===b&&(ee=this.mf,ea(E,ee,z),Ta(this,"linkToKey",To,ee,E,b,z),typeof ee=="string"&&this.La(E,ee)),ee=this.Ef(E),Array.isArray(ee))for(var re=ee.length,oe=this.je,se=0;se<re;se++)ee[se]===b&&(ee[se]=z,Ta(this,"linkLabelKeys",$o,oe,E,b,z,se,se))}},Ce.qv=function(a,y,x){if(this.lh(a)===y){var E=this.Je;ea(a,E,x),Ta(this,"nodeGroupKey",To,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ce.Lv=function(){Ui.prototype.Lv.call(this);for(var a=this.linkDataArray,y=a.length,x=0;x<y;x++)my(this,a[x])},Ce.fm=function(a){Ui.prototype.fm.call(this,a),a=this.wa(a);var y=vp(this,a);if(y!==null){var x=si();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)){if(this.lh(E)===a){var b=this.Je;Ta(this,"nodeGroupKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}else if(fl(this,E,!0)===a&&(b=this.lf,Ta(this,"linkFromKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),fl(this,E,!1)===a&&(b=this.mf,Ta(this,"linkToKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)),b=this.Ef(E),Array.isArray(b))for(var z=b.length,ee=this.je,re=0;re<z;re++)b[re]===a&&(Ta(this,"linkLabelKeys",$o,ee,E,a,a,re,re),x.push(E))}for(y=0;y<x.length;y++)hu(this,a,x[y]);Pi(x)}},Ce.em=function(a){Ui.prototype.em.call(this,a);var y=this.lh(a);this.hc(y)===null&&uu(this,y,a)},Ce.qp=function(a){Ui.prototype.qp.call(this,a);var y=this.lh(a);hu(this,y,a)},Ce.ps=function(a){if(a===null)return"";var y=this.dj;if(y===""||(y=Ca(a,y),y===void 0))return"";if(typeof y=="string")return y;Ve("getCategoryForLinkData found a non-string category for "+a+": "+y)},io.prototype.getLinkCategoryForData=function(a){return this.ps(a)},io.prototype.lp=function(a,y){if(a!==null){var x=this.dj;if(x!=="")if(this.Jc(a)){var E=Ca(a,x);E===void 0&&(E=""),E!==y&&(ea(a,x,y),Ta(this,"linkCategory",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ea(a,x,y)}},io.prototype.setLinkCategoryForData=function(a,y){this.lp(a,y)},Ce=io.prototype,Ce.lm=function(a,y){Ui.prototype.lm.call(this,a,y),this.mp(y,this.lh(a))};function IS(a,y,x){a.lp(x,a.ps(y)),a.wv(x,a.yx(y)),a.Bv(x,a.Bx(y)),a.Ls(x,a.Ef(y)),a.xv(x,a.zx(y)),a.Cv(x,a.Cx(y))}Ce.Wj=function(){return!0},Ce.ri=function(){return!0},Ce.xs=function(){return!0},Ce.Xj=function(){return!0},Ct.Object.defineProperties(io.prototype,{archetypeNodeData:{get:function(){return this.Ri},set:function(a){var y=this.Ri;y!==a&&(this.Ri=a,this.g("archetypeNodeData",y,a))}},linkFromKeyProperty:{get:function(){return this.lf},set:function(a){var y=this.lf;y!==a&&(this.lf=a,this.g("linkFromKeyProperty",y,a))}},linkToKeyProperty:{get:function(){return this.mf},set:function(a){var y=this.mf;y!==a&&(this.mf=a,this.g("linkToKeyProperty",y,a))}},linkFromPortIdProperty:{get:function(){return this.ej},set:function(a){var y=this.ej;y!==a&&(this.ej=a,this.g("linkFromPortIdProperty",y,a))}},linkToPortIdProperty:{get:function(){return this.fj},set:function(a){var y=this.fj;y!==a&&(this.fj=a,this.g("linkToPortIdProperty",y,a))}},linkLabelKeysProperty:{get:function(){return this.je},set:function(a){var y=this.je;y!==a&&(this.je=a,this.g("linkLabelKeysProperty",y,a))}},linkDataArray:{get:function(){return this.md},set:function(a){var y=this.md;if(y!==a){this.wb.clear();for(var x=a.length,E=0;E<x;E++){var b=a[E];Ot(b)||Ve("GraphLinksModel.linkDataArray must only contain Objects, not: "+b),Cr(b)}if(this.md=a,this.linkKeyProperty!==""){for(E=new cn,b=0;b<x;b++){var z=a[b],ee=this.Ac(z);ee===void 0||this.wb.I(ee)!==null?E.add(z):this.wb.add(ee,z)}for(E=E.iterator;E.next();)b=E.value,this.Bs(b),z=this.Ac(b),z!==void 0&&this.wb.add(z,b)}for(E=new yn,b=0;b<x;b++)E.add(a[b]);for(this.$f=E,Ta(this,"linkDataArray",To,"linkDataArray",this,y,a),y=0;y<x;y++)my(this,a[y])}}},linkKeyProperty:{get:function(){return this.Jh},set:function(a){var y=this.Jh;if(y!==a){this.Jh=a,this.wb.clear();for(var x=this.linkDataArray.length,E=0;E<x;E++){var b=this.linkDataArray[E],z=this.Ac(b);z===void 0&&(this.Bs(b),z=this.Ac(b)),z!==void 0&&this.wb.add(z,b)}this.g("linkKeyProperty",y,a)}}},makeUniqueLinkKeyFunction:{get:function(){return this.cl},set:function(a){var y=this.cl;y!==a&&(this.cl=a,this.g("makeUniqueLinkKeyFunction",y,a))}},copyLinkDataFunction:{get:function(){return this.Ak},set:function(a){var y=this.Ak;y!==a&&(this.Ak=a,this.g("copyLinkDataFunction",y,a))}},nodeIsGroupProperty:{get:function(){return this.jl},set:function(a){var y=this.jl;y!==a&&(this.jl=a,this.g("nodeIsGroupProperty",y,a))}},nodeGroupKeyProperty:{get:function(){return this.Je},set:function(a){var y=this.Je;y!==a&&(this.Je=a,this.g("nodeGroupKeyProperty",y,a))}},Ij:{get:function(){return this.Lm},set:function(a){this.Lm!==a&&(this.Lm=a)}},linkCategoryProperty:{get:function(){return this.dj},set:function(a){var y=this.dj;y!==a&&(this.dj=a,this.g("linkCategoryProperty",y,a))}},type:{get:function(){return"GraphLinksModel"}}}),io.prototype.setCategoryForLinkData=io.prototype.lp,io.prototype.getCategoryForLinkData=io.prototype.ps,io.prototype.assignAllDataProperties=io.prototype.Do,io.prototype.setGroupKeyForNodeData=io.prototype.mp,io.prototype.getGroupKeyForNodeData=io.prototype.lh,io.prototype.isGroupForNodeData=io.prototype.Yu,io.prototype.copyLinkData=io.prototype.Jo,io.prototype.mergeLinkDataArray=io.prototype.Zz,io.prototype.removeLinkDataCollection=io.prototype.lA,io.prototype.removeLinkData=io.prototype.bm,io.prototype.addLinkDataCollection=io.prototype.Ey,io.prototype.addLinkData=io.prototype.fi,io.prototype.containsLinkData=io.prototype.Jc,io.prototype.makeLinkDataKeyUnique=io.prototype.Bs,io.prototype.findLinkDataForKey=io.prototype.jh,io.prototype.setKeyForLinkData=io.prototype.Ks,io.prototype.getKeyForLinkData=io.prototype.Ac,io.prototype.removeLabelKeyForLinkData=io.prototype.Qx,io.prototype.addLabelKeyForLinkData=io.prototype.Bu,io.prototype.setLabelKeysForLinkData=io.prototype.Ls,io.prototype.getLabelKeysForLinkData=io.prototype.Ef,io.prototype.setToPortIdForLinkData=io.prototype.Cv,io.prototype.getToPortIdForLinkData=io.prototype.Cx,io.prototype.setFromPortIdForLinkData=io.prototype.xv,io.prototype.getFromPortIdForLinkData=io.prototype.zx,io.prototype.setToKeyForLinkData=io.prototype.Bv,io.prototype.getToKeyForLinkData=io.prototype.Bx,io.prototype.setFromKeyForLinkData=io.prototype.wv,io.prototype.getFromKeyForLinkData=io.prototype.yx,io.prototype.clear=io.prototype.clear;var p0=Object.freeze([]);io.className="GraphLinksModel",$l.GraphLinksModel=io,Ui.constructGraphLinksModel=Ui.constructGraphLinksModel=function(){return new io},Ui.initDiagramModel=gy=function(){return new io};function Ns(a,y){Ui.call(this),this.Ke="parent",this.Nm=!1,this.nj="parentLinkCategory",a!==void 0&&(Bn(a)?this.nodeDataArray=a:y=a),y&&(Object.assign(this,y),a=y.Changed)&&(delete this.Changed,this.Pe(a))}xt(Ns,Ui),Ns.constructGraphLinksModel=Ui.constructGraphLinksModel,Ns.prototype.cloneProtected=function(a){Ui.prototype.cloneProtected.call(this,a),a.Ke=this.Ke,a.Nm=this.Nm,a.nj=this.nj},Ce=Ns.prototype,Ce.toString=function(a){if(a===void 0&&(a=0),2<=a)return this.np();var y=(this.name!==""?this.name:"")+" TreeModel";if(0<a){y+=`
|
|
node data:`,a=this.nodeDataArray;for(var x=a.length,E=0;E<x;E++){var b=a[E];y+=" "+this.wa(b)+":"+_i(b)}}return y},Ce.rm=function(){var a=Ui.prototype.rm.call(this),y="";return this.nodeParentKeyProperty!=="parent"&&typeof this.nodeParentKeyProperty=="string"&&(y+=`,
|
|
"nodeParentKeyProperty": `+this.quote(this.nodeParentKeyProperty)),a+y},Ce.gp=function(a){Ui.prototype.gp.call(this,a),a.nodeParentKeyProperty&&(this.nodeParentKeyProperty=a.nodeParentKeyProperty)},Ce.fp=function(a){a.nodeParentKeyProperty!==void 0&&a.nodeParentKeyProperty!==this.nodeParentKeyProperty&&Ve("applyIncrementalJson cannot change Model properties"),Ui.prototype.fp.call(this,a)},Ce.Vl=function(a){return a},Ce.mh=function(a){if(a!==null){var y=this.Ke;if(y!==""&&(y=Ca(a,y),y!==void 0)){if(pd(y))return y;Ve("ParentKey value for node data "+a+" is not a number or a string: "+y)}}},Ce.qe=function(a,y){if(y===null&&(y=void 0),a!==null){var x=this.Ke;if(x!=="")if(y=this.Vl(y),this.lb(a)){var E=Ca(a,x);E!==y&&(hu(this,E,a),ea(a,x,y),this.hc(y)===null&&uu(this,y,a),Ta(this,"nodeParentKey",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ea(a,x,y)}},Ce.ss=function(a){if(a===null)return"";var y=this.nj;return y===""||(y=Ca(a,y),y===void 0)?"":typeof y=="string"?y:(Ve("getParentLinkCategoryForNodeData found a non-string category for "+a+": "+y),"")},Ns.prototype.getLinkCategoryForData=function(a){return this.ss(a)},Ns.prototype.Ms=function(a,y){if(a!==null){var x=this.nj;if(x!=="")if(this.lb(a)){var E=Ca(a,x);E===void 0&&(E=""),E!==y&&(ea(a,x,y),Ta(this,"parentLinkCategory",To,x,a,E,y),typeof x=="string"&&this.La(a,x))}else ea(a,x,y)}},Ns.prototype.setLinkCategoryForData=function(a,y){this.Ms(a,y)},Ns.prototype.copyNodeData=function(a){return a===null?null:(a=Ui.prototype.copyNodeData.call(this,a),this.Jj||this.Ke===""||Ca(a,this.Ke)===void 0||ea(a,this.Ke,void 0),a)},Ns.prototype.setDataProperty=function(a,y,x){if(this.lb(a)){if(y===this.nodeKeyProperty){this.km(a,x);return}if(y===this.nodeCategoryProperty){this.jm(a,x);return}if(y===this.nodeParentKeyProperty){this.qe(a,x);return}}var E=Ca(a,y);E!==x&&(ea(a,y,x),this.Fs(a,y,E,x))},Ce=Ns.prototype,Ce.jp=function(a,y){Ui.prototype.jp.call(this,a,y);for(var x=this.kb.iterator;x.next();)this.qv(x.value,a,y)},Ce.qv=function(a,y,x){if(this.mh(a)===y){var E=this.Ke;ea(a,E,x),Ta(this,"nodeParentKey",To,E,a,y,x),typeof E=="string"&&this.La(a,E)}},Ce.fm=function(a){Ui.prototype.fm.call(this,a),a=this.wa(a);var y=vp(this,a);if(y!==null){var x=si();for(y=y.iterator;y.next();){var E=y.value;if(this.lb(E)&&this.mh(E)===a){var b=this.Ke;Ta(this,"nodeParentKey",To,b,E,a,a),typeof b=="string"&&this.La(E,b),x.push(E)}}for(y=0;y<x.length;y++)hu(this,a,x[y]);Pi(x)}},Ce.em=function(a){Ui.prototype.em.call(this,a);var y=this.mh(a);y=this.Vl(y),this.hc(y)===null&&uu(this,y,a)},Ce.qp=function(a){Ui.prototype.qp.call(this,a);var y=this.mh(a);hu(this,y,a)},Ce.lm=function(a,y){Ui.prototype.lm.call(this,a,y),this.Ms(y,this.ss(a)),this.qe(y,this.mh(a))},Ce.Tl=function(){return!0},Ce.xs=function(){return!0},Ct.Object.defineProperties(Ns.prototype,{nodeParentKeyProperty:{get:function(){return this.Ke},set:function(a){var y=this.Ke;y!==a&&(this.Ke=a,this.g("nodeParentKeyProperty",y,a))}},Jj:{get:function(){return this.Nm},set:function(a){this.Nm!==a&&(this.Nm=a)}},parentLinkCategoryProperty:{get:function(){return this.nj},set:function(a){var y=this.nj;y!==a&&(this.nj=a,this.g("parentLinkCategoryProperty",y,a))}},linkCategoryProperty:{get:function(){return this.parentLinkCategoryProperty},set:function(a){this.parentLinkCategoryProperty=a}},type:{get:function(){return"TreeModel"}}}),Ns.prototype.setParentLinkCategoryForNodeData=Ns.prototype.Ms,Ns.prototype.getParentLinkCategoryForNodeData=Ns.prototype.ss,Ns.prototype.setParentKeyForNodeData=Ns.prototype.qe,Ns.prototype.getParentKeyForNodeData=Ns.prototype.mh,Ns.className="TreeModel",$l.TreeModel=Ns;function la(a){na.call(this),this.lw=this.Zm=this.lc=0,this.Wp=360,this.kw=eu,this.Ti=0,this.Zv=new Te,this.Jp=this.me=0,this.Xr=new Cp,this.gt=this.mj=0,this.ty=600,this.eo=NaN,this.Cm=1,this.ro=0,this.ul=360,this.Rb=eu,this.K=Bs,this.nd=_f,this.hd=ly,this.tf=6,this.Nn=P0,a&&Object.assign(this,a)}xt(la,na),la.prototype.cloneProtected=function(a){na.prototype.cloneProtected.call(this,a),a.eo=this.eo,a.Cm=this.Cm,a.ro=this.ro,a.ul=this.ul,a.Rb=this.Rb,a.K=this.K,a.nd=this.nd,a.hd=this.hd,a.tf=this.tf,a.Nn=this.Nn},la.prototype.qb=function(a){a.classType===la?a===x0||a===w0||a===y0||a===S0||a===_f?this.sorting=a:a===ic||a===Xf||a===Bs||a===vd?this.direction=a:a===Ih||a===md||a===eu||a===tu?this.arrangement=a:(a===Zc||a===P0)&&(this.nodeDiameterFormula=a):na.prototype.qb.call(this,a)},la.prototype.createNetwork=function(){return new Jf(this)},la.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),a=this.network.vertexes,1>=a.count)a.count===1&&(a=a.first(),a.centerX=0,a.centerY=0);else{var y=new cn;y.addAll(a.iterator),a=new cn;var x=new cn,E=this.sort(y),b,z,ee=this.Jp,re=this.arrangement,oe=this.nodeDiameterFormula,se=this.radius;(!isFinite(se)||0>=se)&&(se=NaN);var ue=this.aspectRatio;(!isFinite(ue)||0>=ue)&&(ue=1);var fe=this.startAngle;isFinite(fe)||(fe=0);var ve=this.sweepAngle;if((!isFinite(ve)||360<ve||1>ve)&&(ve=360),y=this.spacing,isFinite(y)||(y=NaN),re===tu&&oe===Zc?re=eu:re===tu&&oe!==Zc&&(re=this.arrangement),(this.direction===ic||this.direction===Xf)&&this.sorting!==_f){for(oe=0;!(oe>=E.length)&&(a.add(E.M(oe)),!(oe+1>=E.length));oe+=2)x.add(E.M(oe+1));this.direction===ic?(this.arrangement===tu&&a.reverse(),E=new cn,E.addAll(a),E.addAll(x)):(this.arrangement===tu&&x.reverse(),E=new cn,E.addAll(x),E.addAll(a))}oe=E.length;for(var xe=z=b=0;xe<E.length;xe++){var Pe=fe+ve*z*(this.direction===Bs?1:-1)/oe,Fe=E.M(xe).diameter;isNaN(Fe)&&(Fe=yd(E.M(xe),Pe)),360>ve&&(xe===0||xe===E.length-1)&&(Fe/=2),b+=Fe,z++}if(isNaN(se)||re===tu){if(isNaN(y)&&(y=6),re!==eu&&re!==tu){for(z=-1/0,ee=0;ee<oe;ee++)xe=E.M(ee),b=E.M(ee===oe-1?0:ee+1),isNaN(xe.diameter)&&yd(xe,0),isNaN(b.diameter)&&yd(b,0),z=Math.max(z,(xe.diameter+b.diameter)/2);ee=z+y,re===Ih?se=(z+y)/(2*Math.PI/oe):se=m0(this,ee*(360<=ve?oe:oe-1),ue,fe*Math.PI/180,ve*Math.PI/180)}else se=m0(this,b+(360<=ve?oe:oe-1)*(re!==tu?y:1.6*y),ue,fe*Math.PI/180,ve*Math.PI/180);z=se*ue}else if(z=se*ue,xe=vy(this,se,z,fe*Math.PI/180,ve*Math.PI/180),isNaN(y))(re===eu||re===tu)&&(y=(xe-b)/(360<=ve?oe:oe-1));else if(re===eu||re===tu)xe=(xe-b)/(360<=ve?oe:oe-1),xe<y?(se=m0(this,b+y*(360<=ve?oe:oe-1),ue,fe*Math.PI/180,ve*Math.PI/180),z=se*ue):y=xe;else{for(ee=-1/0,b=0;b<oe;b++)Pe=E.M(b),Fe=E.M(b===oe-1?0:b+1),isNaN(Pe.diameter)&&yd(Pe,0),isNaN(Fe.diameter)&&yd(Fe,0),ee=Math.max(ee,(Pe.diameter+Fe.diameter)/2);ee+=y,b=m0(this,ee*(360<=ve?oe:oe-1),ue,fe*Math.PI/180,ve*Math.PI/180),b>se?(se=b,z=se*ue):ee=xe/(360<=ve?oe:oe-1)}if(this.kw=re,this.lc=se,this.Zm=ue,this.lw=fe,this.Wp=ve,this.Ti=y,this.me=z,this.Jp=ee,y=E,E=this.kw,re=this.lc,se=this.lw,ue=this.Wp,fe=this.Ti,ve=this.me,oe=this.Jp,this.direction!==ic&&this.direction!==Xf||E!==tu)if(this.direction===ic||this.direction===Xf){switch(ee=0,E){case md:ee=180*v0(this,re,ve,se,oe)/Math.PI;break;case eu:oe=y=0,ee=a.first(),ee!==null&&(y=yd(ee,Math.PI/2)),ee=x.first(),ee!==null&&(oe=yd(ee,Math.PI/2)),ee=180*v0(this,re,ve,se,fe+(y+oe)/2)/Math.PI;break;case Ih:ee=ue/y.length}if(this.direction===ic){switch(E){case md:Pp(this,a,se,vd);break;case eu:wp(this,a,se,vd);break;case Ih:xp(this,a,ue/2,se,vd)}switch(E){case md:Pp(this,x,se+ee,Bs);break;case eu:wp(this,x,se+ee,Bs);break;case Ih:xp(this,x,ue/2,se+ee,Bs)}}else{switch(E){case md:Pp(this,x,se,vd);break;case eu:wp(this,x,se,vd);break;case Ih:xp(this,x,ue/2,se,vd)}switch(E){case md:Pp(this,a,se+ee,Bs);break;case eu:wp(this,a,se+ee,Bs);break;case Ih:xp(this,a,ue/2,se+ee,Bs)}}}else switch(E){case md:Pp(this,y,se,this.direction);break;case eu:wp(this,y,se,this.direction);break;case Ih:xp(this,y,ue,se,this.direction);break;case tu:RS(this,y,ue,se,this.direction)}else RS(this,y,ue,se-ue/2,Bs)}this.updateParts(),this.network=null,this.isValidLayout=!0};function xp(a,y,x,E,b){var z=a.Wp,ee=a.lc;a=a.me,E=E*Math.PI/180,x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var se=E+(b===Bs?oe*x/(360<=z?re:re-1):-(oe*x)/re),ue=y.M(oe),fe=ee*Math.tan(se)/a;fe=Math.sqrt((ee*ee+a*a*fe*fe)/(1+fe*fe)),ue.centerX=fe*Math.cos(se),ue.centerY=fe*Math.sin(se),ue.actualAngle=180*se/Math.PI}}function wp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Ti;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var se=y.M(oe),ue=y.M(oe===re-1?0:oe+1),fe=z*Math.sin(x);se.centerX=b*Math.cos(x),se.centerY=fe,se.actualAngle=180*x/Math.PI,isNaN(se.diameter)&&yd(se,0),isNaN(ue.diameter)&&yd(ue,0),se=v0(a,b,z,E===Bs?x:-x,(se.diameter+ue.diameter)/2+ee),x+=E===Bs?se:-se}}function Pp(a,y,x,E){var b=a.lc,z=a.me,ee=a.Jp;x=x*Math.PI/180;for(var re=y.length,oe=0;oe<re;oe++){var se=y.M(oe);se.centerX=b*Math.cos(x),se.centerY=z*Math.sin(x),se.actualAngle=180*x/Math.PI,se=v0(a,b,z,E===Bs?x:-x,ee),x+=E===Bs?se:-se}}function RS(a,y,x,E,b){var z=a.Wp;if(a.mj=0,a.Xr=new Cp,360>x){for(z=E+(b===Bs?z:-z);0>z;)z+=360;z%=360,180<z&&(z-=360),z*=Math.PI/180,a.gt=z,jS(a,y,x,E,b)}else zS(a,y,x,E,b);a.Xr.commit(y)}function zS(a,y,x,E,b){var z=a.lc,ee=a.Ti,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),se=a.me*Math.sin(E*Math.PI/180),ue=y.Fa();if(ue.length===3)ue[0].centerX=z,ue[0].centerY=0,ue[1].centerX=ue[0].centerX-ue[0].width/2-ue[1].width/2-ee,ue[1].y=ue[0].y,ue[2].centerX=(ue[0].centerX+ue[1].centerX)/2,ue[2].y=ue[0].y-ue[2].height-ee;else if(ue.length===4)ue[0].centerX=z,ue[0].centerY=0,ue[2].centerX=-ue[0].centerX,ue[2].centerY=ue[0].centerY,ue[1].centerX=0,ue[1].y=Math.min(ue[0].y,ue[2].y)-ue[1].height-ee,ue[3].centerX=0,ue[3].y=Math.max(ue[0].y+ue[0].height+ee,ue[2].y+ue[2].height+ee);else{z=Te.alloc();for(var fe=0;fe<ue.length&&(ue[fe].centerX=oe,ue[fe].centerY=se,!(fe>=ue.length-1));fe++)WS(a,oe,se,ue,fe,b,z)||HS(a,oe,se,ue,fe,b,z),oe=z.x,se=z.y;if(Te.free(z),a.mj++,!(23<a.mj)){oe=ue[0].centerX,se=ue[0].centerY,z=ue[ue.length-1].centerX,fe=ue[ue.length-1].centerY;var ve=Math.abs(oe-z)-((ue[0].width+ue[ue.length-1].width)/2+ee),xe=Math.abs(se-fe)-((ue[0].height+ue[ue.length-1].height)/2+ee);ee=0,1>Math.abs(xe)?Math.abs(oe-z)<(ue[0].width+ue[ue.length-1].width)/2&&(ee=0):ee=0<xe?xe:1>Math.abs(ve)?0:ve,oe=Math.abs(z)>Math.abs(fe)?0<z!=se>fe:0<fe!=oe<z,(oe=b===Bs?oe:!oe)&&(ee=-Math.abs(ee),ee=Math.min(ee,-ue[ue.length-1].width),ee=Math.min(ee,-ue[ue.length-1].height)),a.Xr.compare(ee,ue),1<Math.abs(ee)&&(a.lc=8>a.mj?a.lc-ee/(2*Math.PI):5>ue.length&&10<ee?a.lc/2:a.lc-(0<ee?1.7:-2.3),a.me=a.lc*re,zS(a,y,x,E,b))}}}function jS(a,y,x,E,b){for(var z=a.lc,ee=a.me,re=a.Zm,oe=z*Math.cos(E*Math.PI/180),se=ee*Math.sin(E*Math.PI/180),ue=Te.alloc(),fe=y.Fa(),ve=0;ve<fe.length&&(fe[ve].centerX=oe,fe[ve].centerY=se,!(ve>=fe.length-1));ve++)WS(a,oe,se,fe,ve,b,ue)||HS(a,oe,se,fe,ve,b,ue),oe=ue.x,se=ue.y;if(Te.free(ue),a.mj++,!(23<a.mj)){if(oe=Math.atan2(se,oe),oe=b===Bs?a.gt-oe:oe-a.gt,oe=Math.abs(oe)<Math.abs(oe-2*Math.PI)?oe:oe-2*Math.PI,z=oe*(z+ee)/2,ee=a.Xr,Math.abs(z)<Math.abs(ee.Pl))for(ee.Pl=z,ee.mk=[],ee.tm=[],oe=0;oe<fe.length;oe++)ee.mk[oe]=fe[oe].bounds.x,ee.tm[oe]=fe[oe].bounds.y;1<Math.abs(z)&&(a.lc=8>a.mj?a.lc-z/(2*Math.PI):a.lc-(0<z?1.7:-2.3),a.me=a.lc*re,jS(a,y,x,E,b))}}function WS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,se=0;a=(E[b].width+E[b+1].width)/2+a.Ti;var ue=!1;if(0<=x!=(z===Bs)){if(z=y+a,z>re){if(z=y-a,z<-re)return ee.x=z,ee.y=se,!1;ue=!0}}else if(z=y-a,z<-re){if(z=y+a,z>re)return ee.x=z,ee.y=se,!1;ue=!0}return se=Math.sqrt(1-Math.min(1,z*z/(re*re)))*oe,0>x!==ue&&(se=-se),Math.abs(x-se)>(E[b].height+E[b+1].height)/2?(ee.x=z,ee.y=se,!1):(ee.x=z,ee.y=se,!0)}function HS(a,y,x,E,b,z,ee){var re=a.lc,oe=a.me,se=0;if(a=(E[b].height+E[b+1].height)/2+a.Ti,E=!1,0<=y!=(z===Bs)){if(z=x-a,z<-oe){if(z=x+a,z>oe){ee.x=se,ee.y=z;return}E=!0}}else if(z=x+a,z>oe){if(z=x-a,z<-oe){ee.x=se,ee.y=z;return}E=!0}se=Math.sqrt(1-Math.min(1,z*z/(oe*oe)))*re,0>y!==E&&(se=-se),ee.x=se,ee.y=z}la.prototype.commitLayout=function(){this.commitNodes(),this.isRouting&&this.commitLinks()},la.prototype.commitNodes=function(){var a=this.group!==null&&this.group.placeholder!==null&&this.group.isSubGraphExpanded,y=a?this.group.location.copy():null,x=this.actualCenter;a?x=new Te(0,0):(x.x=this.arrangementOrigin.x+this.lc,x.y=this.arrangementOrigin.y+this.me);for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;b.x+=x.x,b.y+=x.y,b.commit()}a&&(this.group.Va(),a=this.group.position.copy(),x=this.group.location.copy(),y=y.re(x.re(a)),this.group.move(y),this.Zv=y.re(a))},la.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()};function vy(a,y,x,E,b){var z=a.ty;if(.001>Math.abs(a.Zm-1))return E!==void 0&&b!==void 0?b*y:2*Math.PI*y;a=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x;for(var ee=0,re=E!==void 0&&b!==void 0?b/(z+1):Math.PI/(2*(z+1)),oe=0,se=0;se<=z;se++){E!==void 0&&b!==void 0?oe=E+se*b/z:oe=se*Math.PI/(2*z);var ue=Math.sin(oe);ee+=Math.sqrt(1-a*a*ue*ue)*re}return E!==void 0&&b!==void 0?(y>x?y:x)*ee:4*(y>x?y:x)*ee}function m0(a,y,x,E,b){return y/(E!==void 0&&b!==void 0?vy(a,1,x,E,b):vy(a,1,x))}function v0(a,y,x,E,b){if(.001>Math.abs(a.Zm-1))return b/y;var z=y>x?Math.sqrt(y*y-x*x)/y:Math.sqrt(x*x-y*y)/x,ee=0;a=2*Math.PI/(700*a.network.vertexes.count),y>x&&(E+=Math.PI/2);for(var re=0;;re++){var oe=Math.sin(E+re*a);if(ee+=(y>x?y:x)*Math.sqrt(1-z*z*oe*oe)*a,ee>=b)return re*a}}la.prototype.sort=function(a){switch(this.sorting){case y0:break;case S0:a.reverse();break;case x0:a.sort(this.comparer);break;case w0:a.sort(this.comparer),a.reverse();break;case _f:return this.ak(Zx(a));default:Ve("Invalid sorting type.")}return a};function Zx(a){for(var y=[],x=0;x<a.length;x++)y.push(0);x=new cn;for(var E=0;E<a.length;E++){var b=-1,z=-1;if(E===0)for(var ee=0;ee<a.length;ee++){var re=a.M(ee).edgesCount;re>b&&(b=re,z=ee)}else for(ee=0;ee<a.length;ee++)re=y[ee],re>b&&(b=re,z=ee);for(x.add(a.M(z)),y[z]=-1,z=a.M(z),ee=z.sourceEdges;ee.next();)b=a.indexOf(ee.value.fromVertex),0>b||0<=y[b]&&y[b]++;for(z=z.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),0>b||0<=y[b]&&y[b]++}return x}la.prototype.ak=function(a){for(var y=[],x=0;x<a.length;x++){var E=a.M(x);y[x]=[];for(var b,z=E.destinationEdges;z.next();)b=a.indexOf(z.value.toVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b);for(E=E.sourceEdges;E.next();)b=a.indexOf(E.value.fromVertex),b!==x&&0>y[x].indexOf(b)&&y[x].push(b)}for(z=[],x=0;x<y.length;x++)z[x]=0;x=[];var ee=[],re=[];E=[],b=new cn;for(var oe=0,se=0;se<y.length;se++){var ue=y[se].length;if(ue===1)E.push(se);else if(ue===0)b.add(a.M(se));else{if(oe===0)x.push(se);else{for(var fe=ue=1/0,ve=-1,xe=[],Pe=0;Pe<x.length;Pe++)0>y[x[Pe]].indexOf(x[Pe===x.length-1?0:Pe+1])&&xe.push(Pe===x.length-1?0:Pe+1);if(xe.length===0)for(Pe=0;Pe<x.length;Pe++)xe.push(Pe);for(Pe=0;Pe<xe.length;Pe++){for(var Fe=xe[Pe],Je=y[se],We=0,rt=0;rt<ee.length;rt++){var at=z[ee[rt]],ht=z[re[rt]];if(at<ht){var bt=at;at=ht}else bt=ht;if(bt<Fe&&Fe<=at)for(ht=0;ht<Je.length;ht++){var Jt=Je[ht];0>x.indexOf(Jt)||bt<z[Jt]&&z[Jt]<at||bt===z[Jt]||at===z[Jt]||We++}else for(ht=0;ht<Je.length;ht++)Jt=Je[ht],0>x.indexOf(Jt)||bt<z[Jt]&&z[Jt]<at&&bt!==z[Jt]&&at!==z[Jt]&&We++}for(Je=We,rt=We=0;rt<y[se].length;rt++)bt=x.indexOf(y[se][rt]),0<=bt&&(bt=Math.abs(Fe-(bt>=Fe?bt+1:bt)),We+=bt<x.length+1-bt?bt:x.length+1-bt);for(rt=0;rt<ee.length;rt++)bt=z[ee[rt]],at=z[re[rt]],bt>=Fe&&bt++,at>=Fe&&at++,bt>at&&(ht=at,at=bt,bt=ht),at-bt<(x.length+2)/2==(bt<Fe&&Fe<=at)&&We++;(Je<ue||Je===ue&&We<fe)&&(ue=Je,fe=We,ve=Fe)}for(x.splice(ve,0,se),ue=0;ue<x.length;ue++)z[x[ue]]=ue;for(ue=0;ue<y[se].length;ue++)fe=y[se][ue],0<=x.indexOf(fe)&&(ee.push(se),re.push(fe))}oe++}}for(ee=x.length;;){for(z=!0,re=0;re<E.length;re++)if(oe=E[re],se=y[oe][0],ue=x.indexOf(se),0<=ue){for(ve=fe=0;ve<y[se].length;ve++)xe=x.indexOf(y[se][ve]),0>xe||xe===ue||(Pe=xe>ue?xe-ue:ue-xe,fe+=xe<ue!=Pe>ee-Pe?1:-1);x.splice(0>fe?ue:ue+1,0,oe),E.splice(re,1),re--}else z=!1;if(z)break;x.push(E[0]),E.splice(0,1)}for(y=0;y<x.length;y++)b.add(a.M(x[y]));return b},Ct.Object.defineProperties(la.prototype,{radius:{get:function(){return this.eo},set:function(a){this.eo!==a&&(0<a||isNaN(a))&&(this.eo=a,this.C())}},aspectRatio:{get:function(){return this.Cm},set:function(a){this.Cm!==a&&0<a&&(this.Cm=a,this.C())}},startAngle:{get:function(){return this.ro},set:function(a){this.ro!==a&&(this.ro=a,this.C())}},sweepAngle:{get:function(){return this.ul},set:function(a){this.ul!==a&&(0<a&&360>=a?this.ul=a:this.ul=360,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==tu&&a!==eu&&a!==md&&a!==Ih||(this.Rb=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K===a||a!==Bs&&a!==vd&&a!==ic&&a!==Xf||(this.K=a,this.C())}},sorting:{get:function(){return this.nd},set:function(a){this.nd===a||a!==y0&&a!==S0&&a!==x0&&!w0&&a!==_f||(this.nd=a,this.C())}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a,this.C())}},spacing:{get:function(){return this.tf},set:function(a){this.tf!==a&&(this.tf=a,this.C())}},nodeDiameterFormula:{get:function(){return this.Nn},set:function(a){this.Nn===a||a!==P0&&a!==Zc||(this.Nn=a,this.C())}},actualXRadius:{get:function(){return this.lc}},actualYRadius:{get:function(){return this.me}},actualSpacing:{get:function(){return this.Ti}},actualCenter:{get:function(){return this.Zv}}});var eu=new En(la,"ConstantSpacing",0),md=new En(la,"ConstantDistance",1),Ih=new En(la,"ConstantAngle",2),tu=new En(la,"Packed",3),Bs=new En(la,"Clockwise",4),vd=new En(la,"Counterclockwise",5),ic=new En(la,"BidirectionalLeft",6),Xf=new En(la,"BidirectionalRight",7),y0=new En(la,"Forwards",8),S0=new En(la,"Reverse",9),x0=new En(la,"Ascending",10),w0=new En(la,"Descending",11),_f=new En(la,"Optimized",12),P0=new En(la,"Pythagorean",13),Zc=new En(la,"Circular",14);la.className="CircularLayout",la.ConstantSpacing=eu,la.ConstantDistance=md,la.ConstantAngle=Ih,la.Packed=tu,la.Clockwise=Bs,la.Counterclockwise=vd,la.BidirectionalLeft=ic,la.BidirectionalRight=Xf,la.Forwards=y0,la.Reverse=S0,la.Ascending=x0,la.Descending=w0,la.Optimized=_f,la.Pythagorean=P0,la.Circular=Zc;function Cp(){this.Pl=-1/0,this.tm=this.mk=null}Cp.prototype.compare=function(a,y){if(0<a&&0>this.Pl||Math.abs(a)<Math.abs(this.Pl)&&!(0>a&&0<this.Pl))for(this.Pl=a,this.mk=[],this.tm=[],a=0;a<y.length;a++)this.mk[a]=y[a].bounds.x,this.tm[a]=y[a].bounds.y},Cp.prototype.commit=function(a){if(this.mk!==null&&this.tm!==null)for(var y=0;y<this.mk.length;y++){var x=a.M(y);x.x=this.mk[y],x.y=this.tm[y]}},Cp.className="VertexArrangement";function Jf(a){Wo.call(this,a)}xt(Jf,Wo),Jf.prototype.createVertex=function(){return new Ep(this)},Jf.prototype.createEdge=function(){return new C0(this)},Jf.className="CircularNetwork";function Ep(a){Ra.call(this,a),this.u=this.Si=NaN}xt(Ep,Ra);function yd(a,y){var x=a.network;if(x===null)return NaN;if(x=x.layout,x===null)return NaN;if(x.arrangement===tu)if(x.nodeDiameterFormula===Zc)a.Si=Math.max(a.width,a.height);else{if(x=Math.abs(Math.sin(y)),y=Math.abs(Math.cos(y)),x===0)return a.width;if(y===0)return a.height;a.Si=Math.min(a.height/x,a.width/y)}else a.Si=x.nodeDiameterFormula===Zc?Math.max(a.width,a.height):Math.sqrt(a.width*a.width+a.height*a.height);return a.Si}Ct.Object.defineProperties(Ep.prototype,{diameter:{get:function(){return this.Si},set:function(a){this.Si!==a&&(this.Si=a)}},actualAngle:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}}}),Ep.className="CircularVertex";function C0(a){nl.call(this,a)}xt(C0,nl),C0.className="CircularEdge";function ls(a){na.call(this),this.ah=null,this.An=0,this.$d=new Re(100,100).freeze(),this.Bm=!1,this.sf=!0,this.td=!1,this.dl=100,this.$m=1,this.Zf=1e3,this.In=10,this.fo=Math,this.Hk=.05,this.Gk=50,this.Ek=150,this.Fk=0,this.Vm=10,this.Um=5,a&&Object.assign(this,a)}xt(ls,na),ls.prototype.cloneProtected=function(a){na.prototype.cloneProtected.call(this,a),a.$d.assign(this.$d),a.Bm=this.Bm,a.sf=this.sf,a.td=this.td,a.dl=this.dl,a.$m=this.$m,a.Zf=this.Zf,a.In=this.In,a.fo=this.fo,a.Hk=this.Hk,a.Gk=this.Gk,a.Ek=this.Ek,a.Fk=this.Fk,a.Vm=this.Vm,a.Um=this.Um},ls.prototype.createNetwork=function(){return new Vc(this)},ls.prototype.doLayout=function(a){if(this.network===null&&(this.network=this.makeNetwork(a)),a=this.maxIterations,0<this.network.vertexes.count){this.network.Ko();for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;x.charge=this.electricalCharge(x),x.mass=this.gravitationalMass(x)}for(y=this.network.edges.iterator;y.next();)x=y.value,x.stiffness=this.springStiffness(x),x.length=this.springLength(x);if(this.Cu(),this.An=0,this.needsClusterLayout()){y=this.network,x=y.Zx();for(var E=x.iterator;E.next();){this.network=E.value;for(var b=this.network.vertexes.iterator;b.next();){var z=b.value;z.Vd=z.vertexes.count,z.sh=1,z.Hj=null,z.We=null}ZS(this,0,a)}this.network=y;var ee=E=x.iterator;E=this.arrangementSpacing;var re=ee.count,oe=!0;z=b=0;for(var se=si(),ue=0;ue<re+y.vertexes.count+2;ue++)se[ue]=null;re=0,ee.reset();for(var fe=ut.alloc();ee.next();)if(ue=ee.value,this.computeBounds(ue,fe),oe)oe=!1,b=fe.x+fe.width/2,z=fe.y+fe.height/2,se[0]=new Te(fe.x+fe.width+E.width,fe.y),se[1]=new Te(fe.x,fe.y+fe.height+E.height),re=2;else{var ve=VS(se,re,b,z,fe.width,fe.height,E),xe=se[ve],Pe=new Te(xe.x+fe.width+E.width,xe.y),Fe=new Te(xe.x,xe.y+fe.height+E.height);for(ve+1<re&&se.splice(ve+1,0,null),se[ve]=Pe,se[ve+1]=Fe,re++,ve=xe.x-fe.x,xe=xe.y-fe.y,ue=ue.vertexes.iterator;ue.next();)Pe=ue.value,Pe.centerX+=ve,Pe.centerY+=xe}for(ut.free(fe),ue=y.vertexes.iterator;ue.next();)ee=ue.value,ve=ee.bounds,2>re?(b=ve.x+ve.width/2,z=ve.y+ve.height/2,se[0]=new Te(ve.x+ve.width+E.width,ve.y),se[1]=new Te(ve.x,ve.y+ve.height+E.height),re=2):(oe=VS(se,re,b,z,ve.width,ve.height,E),fe=se[oe],xe=new Te(fe.x+ve.width+E.width,fe.y),ve=new Te(fe.x,fe.y+ve.height+E.height),oe+1<re&&se.splice(oe+1,0,null),se[oe]=xe,se[oe+1]=ve,re++,ee.centerX=fe.x+ee.width/2,ee.centerY=fe.y+ee.height/2);for(Pi(se),E=x.iterator;E.next();){for(x=E.value,b=x.vertexes.iterator;b.next();)y.dh(b.value);for(x=x.edges.iterator;x.next();)y.Bo(x.value)}}KS(this,a),this.updateParts()}this.dl=a,this.network=null,this.isValidLayout=!0},ls.prototype.needsClusterLayout=function(){if(3>this.network.vertexes.count)return!1;for(var a=0,y=0,x=this.network.vertexes.first().bounds,E=this.network.vertexes.iterator;E.next();){if(E.value.bounds.Yc(x)&&(a++,2<a))return!0;if(10<y)break;y++}return!1},ls.prototype.computeBounds=function(a,y){var x=!0;for(a=a.vertexes.iterator;a.next();){var E=a.value;x?(x=!1,y.set(E.bounds)):y.ed(E.bounds)}return y};function ZS(a,y,x){if(Vx(a,y)){var E=a.Zf;a.Zf*=1+1/(y+1);var b=Gx(a,y),z=Math.max(0,Math.max(Math.min(a.network.vertexes.count,x*(y+1)/11),10));for(a.maxIterations+=z,ZS(a,y+1,x),KS(a,z),Kx(a,b),y=b.vertexes.Fa(),y.sort(function(ee,re){return ee===null||re===null||ee===re?0:re.Vd-ee.Vd}),x=0;x<y.length;x++)Yx(a,y[x]);a.Zf=E}}function Vx(a,y){if(10<y||3>a.network.vertexes.count)return!1;for(a.ah=a.network.vertexes.Fa(),a=a.ah,a.sort(function(x,E){return x===null||E===null||x===E?0:E.Vd-x.Vd}),y=a.length-1;0<=y&&1>=a[y].Vd;)y--;return 1<a.length-y}function Gx(a,y){for(var x=a.network,E=new Vc(a),b=0;b<a.ah.length;b++){var z=a.ah[b];if(1<z.Vd){E.dh(z);var ee=new YS;ee.Rs=z.Vd,ee.Ss=z.width,ee.Qs=z.height,ee.Sv=z.focus.x,ee.Tv=z.focus.y,z.We===null&&(z.We=new cn),z.We.add(ee),z.sv=z.We.count-1}else break}for(z=x.edges.iterator;z.next();){var re=z.value;b=re.fromVertex,ee=re.toVertex,b.network===E&&ee.network===E?E.Bo(re):b.network===E?(re=b.Hj,re===null&&(re=new cn,b.Hj=re),re.add(ee),b.Vd--,b.sh+=ee.sh):ee.network===E&&(re=ee.Hj,re===null&&(re=new cn,ee.Hj=re),re.add(b),ee.Vd--,ee.sh+=b.sh)}for(b=E.edges.iterator;b.next();)z=b.value,z.length*=Math.max(1,pt.sqrt((z.fromVertex.sh+z.toVertex.sh)/(4*y+1)));for(y=E.vertexes.iterator;y.next();){b=y.value;var oe=b.Hj;if(oe!==null&&0<oe.count&&(ee=b.We.M(b.We.count-1).Rs-b.Vd,!(0>=ee))){for(var se=re=0,ue=oe.count-ee;ue<oe.count;ue++){var fe=oe.M(ue),ve=null;for(z=fe.edges.iterator;z.next();){var xe=z.value;if(xe.Ax(fe)===b){ve=xe;break}}ve!==null&&(se+=ve.length,re+=fe.width*fe.height)}z=b.centerX,oe=b.centerY,ue=b.width,fe=b.height,ve=b.focus,xe=ue*fe,1>xe&&(xe=1),re=pt.sqrt((re+xe+se*se*4/(ee*ee))/xe),ee=(re-1)*ue/2,re=(re-1)*fe/2,b.bounds=new ut(z-ve.x-ee,oe-ve.y-re,ue+2*ee,fe+2*re),b.focus=new Te(ve.x+ee,ve.y+re)}}return a.network=E,x}function Kx(a,y){for(var x=a.network.vertexes.iterator;x.next();){var E=x.value;if(E.network=y,E.We!==null){var b=E.We.M(E.sv);E.Vd=b.Rs;var z=b.Sv,ee=b.Tv;E.bounds=new ut(E.centerX-z,E.centerY-ee,b.Ss,b.Qs),E.focus=new Te(z,ee),E.sv--}}for(x=a.network.edges.iterator;x.next();)x.value.network=y;a.network=y}function Yx(a,y){var x=y.Hj;if(x!==null&&x.count!==0){var E=y.centerX,b=y.centerY,z=y.width,ee=y.height;y.We!==null&&0<y.We.count&&(ee=y.We.M(0),z=ee.Ss,ee=ee.Qs),z=pt.sqrt(z*z+ee*ee)/2;for(var re=!1,oe=ee=0,se=0,ue=y.vertexes.iterator;ue.next();){var fe=ue.value;1>=fe.Vd?oe++:(re=!0,se++,ee+=Math.atan2(y.centerY-fe.centerY,y.centerX-fe.centerX))}if(oe!==0){for(0<se&&(ee/=se),se=y=0,y=re?2*Math.PI/(oe+1):2*Math.PI/oe,oe%2===0&&(se=y/2),1<x.count&&x.sort(function(xe,Pe){return xe===null||Pe===null||xe===Pe?0:Pe.width*Pe.height-xe.width*xe.height}),re=oe%2===0?0:1,x=x.iterator;x.next();)if(oe=x.value,!(1<oe.Vd||a.isFixed(oe))){for(ue=null,fe=oe.edges.iterator;fe.next();){ue=fe.value;break}fe=oe.width;var ve=oe.height;fe=pt.sqrt(fe*fe+ve*ve)/2,ue=z+ue.length+fe,fe=ee+(y*(re/2>>1)+se)*(re%2===0?1:-1),oe.centerX=E+ue*Math.cos(fe),oe.centerY=b+ue*Math.sin(fe),re++}}}}function VS(a,y,x,E,b,z,ee){var re=9e19,oe=-1,se=0;e:for(;se<y;se++){var ue=a[se],fe=ue.x-x,ve=ue.y-E;if(fe=fe*fe+ve*ve,fe<re){for(ve=se-1;0<=ve;ve--)if(a[ve].y>ue.y&&a[ve].x-ue.x<b+ee.width)continue e;for(ve=se+1;ve<y;ve++)if(a[ve].x>ue.x&&a[ve].y-ue.y<z+ee.height)continue e;oe=se,re=fe}}return oe}ls.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},ls.prototype.addComments=function(a){var y=a.node;if(y!==null)for(y=y.Mu();y.next();){var x=y.value;if(x.category==="Comment"&&x.isVisible()){var E=this.network.ki(x);E===null&&(E=this.network.Bl(x)),E.charge=this.defaultCommentElectricalCharge,x=null;for(var b=E.destinationEdges;b.next();){var z=b.value;if(z.toVertex===a){x=z;break}}if(x===null){for(b=E.sourceEdges;b.next();)if(z=b.value,z.fromVertex===a){x=z;break}}x===null&&(x=this.network.Zj(a,E,null)),x.length=this.defaultCommentSpringLength}}};function GS(a,y){var x=a.bounds,E=x.x;a=x.y;var b=x.width;x=x.height;var z=y.bounds,ee=z.x;y=z.y;var re=z.width;return z=z.height,E+b<ee?a>y+z?(x=E+b-ee,a=a-y-z,pt.sqrt(x*x+a*a)):a+x<y?(E=E+b-ee,a=a+x-y,pt.sqrt(E*E+a*a)):ee-(E+b):E>ee+re?a>y+z?(x=E-ee-re,a=a-y-z,pt.sqrt(x*x+a*a)):a+x<y?(E=E-ee-re,a=a+x-y,pt.sqrt(E*E+a*a)):E-(ee+re):a>y+z?a-(y+z):a+x<y?y-(a+x):.1}function KS(a,y){for(a.ah=null,y=a.An+y;a.An<y&&(a.An++,Ux(a)););a.ah=null}function Ux(a){a.ah===null&&(a.ah=a.network.vertexes.Fa());var y=a.ah;if(0>=y.length)return!1;var x=y[0];x.forceX=0,x.forceY=0;for(var E=x.centerX,b=E,z=x=x.centerY,ee=1;ee<y.length;ee++){var re=y[ee];re.forceX=0,re.forceY=0;var oe=re.centerX;re=re.centerY,E=Math.min(E,oe),b=Math.max(b,oe),x=Math.min(x,re),z=Math.max(z,re)}(b=b-E>z-x)?y.sort(function(Fe,Je){return Fe===null||Je===null||Fe===Je?0:Fe.centerX-Je.centerX}):y.sort(function(Fe,Je){return Fe===null||Je===null||Fe===Je?0:Fe.centerY-Je.centerY}),x=a.Zf;var se=E=re=0;for(z=0;z<y.length;z++){ee=y[z],E=ee.bounds,re=ee.focus,oe=E.x+re.x;var ue=E.y+re.y;E=ee.charge*a.electricalFieldX(oe,ue),se=ee.charge*a.electricalFieldY(oe,ue),E+=ee.mass*a.gravitationalFieldX(oe,ue),se+=ee.mass*a.gravitationalFieldY(oe,ue),ee.forceX+=E,ee.forceY+=se;for(var fe=z+1;fe<y.length;fe++){var ve=y[fe];if(ve!==ee){E=ve.bounds,re=ve.focus,se=E.x+re.x;var xe=E.y+re.y;if(oe-se>x||se-oe>x){if(b)break}else if(ue-xe>x||xe-ue>x){if(!b)break}else{var Pe=GS(ee,ve);1>Pe?(E=a.randomNumberGenerator,E===null&&(a.randomNumberGenerator=E=new E0),Pe=E.random(),re=E.random(),oe>se?(E=Math.abs(ve.bounds.right-ee.bounds.x),E=(1+E)*Pe):oe<se?(E=Math.abs(ve.bounds.x-ee.bounds.right),E=-(1+E)*Pe):(E=Math.max(ve.width,ee.width),E=(1+E)*Pe-E/2),ue>xe?(se=Math.abs(ve.bounds.bottom-ee.bounds.y),se=(1+se)*re):oe<se?(se=Math.abs(ve.bounds.y-ee.bounds.bottom),se=-(1+se)*re):(se=Math.max(ve.height,ee.height),se=(1+se)*re-se/2)):(re=-(ee.charge*ve.charge)/(Pe*Pe),E=(se-oe)/Pe*re,se=(xe-ue)/Pe*re),ee.forceX+=E,ee.forceY+=se,ve.forceX-=E,ve.forceY-=se}}}}for(b=a.network.edges.iterator;b.next();)re=b.value,x=re.fromVertex,z=re.toVertex,ee=x.bounds,oe=x.focus,E=ee.x+oe.x,ee=ee.y+oe.y,ue=z.bounds,fe=z.focus,oe=ue.x+fe.x,ue=ue.y+fe.y,fe=GS(x,z),1>fe?(fe=a.randomNumberGenerator,fe===null&&(a.randomNumberGenerator=fe=new E0),re=fe.random(),fe=fe.random(),E=(E>oe?1:-1)*(1+(z.width>x.width?z.width:x.width))*re,se=(ee>ue?1:-1)*(1+(z.height>x.height?z.height:x.height))*fe):(re=re.stiffness*(fe-re.length),E=(oe-E)/fe*re,se=(ue-ee)/fe*re),x.forceX+=E,x.forceY+=se,z.forceX-=E,z.forceY-=se;for(b=E=0;b<y.length;b++)x=y[b],a.isFixed(x)?a.moveFixedVertex(x):E=Math.max(E,a.moveVertex(x)||0);return E>a.epsilonDistance*a.epsilonDistance}ls.prototype.moveVertex=function(a){var y=a.forceX,x=a.forceY,E=this.moveLimit;return y<-E?y=-E:y>E&&(y=E),x<-E?x=-E:x>E&&(x=E),a.centerX+=y,a.centerY+=x,y*y+x*x},ls.prototype.moveFixedVertex=function(){},ls.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.isRouting&&this.commitLinks()},ls.prototype.yv=function(){if(this.setsPortSpots)for(var a=this.network.edges.iterator;a.next();){var y=a.value.link;y!==null&&(y.fromSpot=Lo,y.toSpot=Lo)}},ls.prototype.commitNodes=function(){var a=0,y=0;if(this.arrangesToOrigin){var x=ut.alloc();this.computeBounds(this.network,x),y=this.arrangementOrigin,a=y.x-x.x,y=y.y-x.y,ut.free(x)}x=ut.alloc();for(var E=this.network.vertexes.iterator;E.next();){var b=E.value;(a!==0||y!==0)&&(x.assign(b.bounds),x.x+=a,x.y+=y,b.bounds=x),b.commit()}ut.free(x)},ls.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},ls.prototype.springStiffness=function(a){return a=a.stiffness,isNaN(a)?this.Hk:a},ls.prototype.springLength=function(a){return a=a.length,isNaN(a)?this.Gk:a},ls.prototype.electricalCharge=function(a){return a=a.charge,isNaN(a)?this.Ek:a},ls.prototype.electricalFieldX=function(){return 0},ls.prototype.electricalFieldY=function(){return 0},ls.prototype.gravitationalMass=function(a){return a=a.mass,isNaN(a)?this.Fk:a},ls.prototype.gravitationalFieldX=function(){return 0},ls.prototype.gravitationalFieldY=function(){return 0},ls.prototype.isFixed=function(a){return a.isFixed},Ct.Object.defineProperties(ls.prototype,{currentIteration:{get:function(){return this.An}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},arrangesToOrigin:{get:function(){return this.Bm},set:function(a){this.Bm!==a&&(this.Bm=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},maxIterations:{get:function(){return this.dl},set:function(a){this.dl!==a&&0<=a&&(this.dl=a,this.C())}},epsilonDistance:{get:function(){return this.$m},set:function(a){this.$m!==a&&0<a&&(this.$m=a,this.C())}},infinityDistance:{get:function(){return this.Zf},set:function(a){this.Zf!==a&&1<a&&(this.Zf=a,this.C())}},moveLimit:{get:function(){return this.In},set:function(a){this.In!==a&&1<a&&(this.In=a,this.C())}},randomNumberGenerator:{get:function(){return this.fo},set:function(a){this.fo!==a&&(a!==null&&typeof a.random!="function"&&Ve('ForceDirectedLayout.randomNumberGenerator must have a "random()" function on it: '+a),this.fo=a)}},defaultSpringStiffness:{get:function(){return this.Hk},set:function(a){this.Hk!==a&&(this.Hk=a,this.C())}},defaultSpringLength:{get:function(){return this.Gk},set:function(a){this.Gk!==a&&(this.Gk=a,this.C())}},defaultElectricalCharge:{get:function(){return this.Ek},set:function(a){this.Ek!==a&&(this.Ek=a,this.C())}},defaultGravitationalMass:{get:function(){return this.Fk},set:function(a){this.Fk!==a&&(this.Fk=a,this.C())}},defaultCommentSpringLength:{get:function(){return this.Vm},set:function(a){this.Vm!==a&&(this.Vm=a,this.C())}},defaultCommentElectricalCharge:{get:function(){return this.Um},set:function(a){this.Um!==a&&(this.Um=a,this.C())}}}),ls.className="ForceDirectedLayout";function YS(){this.Tv=this.Sv=this.Qs=this.Ss=this.Rs=0}YS.className="ForceDirectedSubnet";function Vc(a){Wo.call(this,a)}xt(Vc,Wo),Vc.prototype.createVertex=function(){return new Ap(this)},Vc.prototype.createEdge=function(){return new Lp(this)},Vc.className="ForceDirectedNetwork";function Ap(a){Ra.call(this,a),this.ia=!1,this.Ha=this.u=NaN,this.sh=this.Vd=this.V=this.F=0,this.We=this.Hj=null,this.sv=0}xt(Ap,Ra),Ct.Object.defineProperties(Ap.prototype,{isFixed:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},charge:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},mass:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},forceX:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},forceY:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}}}),Ap.className="ForceDirectedVertex";function Lp(a){nl.call(this,a),this.j=this.o=NaN}xt(Lp,nl),Ct.Object.defineProperties(Lp.prototype,{stiffness:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},length:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}}}),Lp.className="ForceDirectedEdge";function E0(){var a=0;a===void 0&&(a=42),this.seed=a,this.ay=48271,this.ey=2147483647,this.Q=44488.07041494893,this.gy=3399,this.by=1/2147483647,this.random()}E0.prototype.random=function(){var a=this.seed%this.Q*this.ay-this.seed/this.Q*this.gy;return 0<a?this.seed=a:this.seed=a+this.ey,this.seed*this.by},E0.className="RandomNumberGenerator";function Eo(a){na.call(this),this.kc=this.ie=25,this.K=0,this.Dk=k0,this.Zk=F0,this.Qk=D0,this.bj=4,this.rk=N0,this.bg=15,this.sf=!0,this.Cn=4,this.Ra=this.Iq=this.Ia=-1,this.Md=this.Hn=0,this.Ta=this.Kd=this.Ld=this.he=this.tc=null,this.Kn=0,this.Jn=this.kj=null,this.le=0,this.fl=null,this.Rf=new Te,this.He=[],this.He.length=100,this.xw=this.ve=0,a&&Object.assign(this,a)}xt(Eo,na),Eo.prototype.cloneProtected=function(a){na.prototype.cloneProtected.call(this,a),a.ie=this.ie,a.kc=this.kc,a.K=this.K,a.Dk=this.Dk,a.Zk=this.Zk,a.Qk=this.Qk,a.bj=this.bj,a.rk=this.rk,a.bg=this.bg,a.sf=this.sf,a.Cn=this.Cn,a.ve=this.ve},Eo.prototype.qb=function(a){a.classType===Eo?a.name.indexOf("Aggressive")===0?this.aggressiveOption=a:a.name.indexOf("Cycle")===0?this.cycleRemoveOption=a:a.name.indexOf("Init")===0?this.initializeOption=a:a.name.indexOf("Layer")===0?this.layeringOption=a:Ve("Unknown enum value: "+a):na.prototype.qb.call(this,a)},Eo.prototype.createNetwork=function(){return new qf(this)},Eo.prototype.doLayout=function(a){for(this.network===null&&(this.network=this.makeNetwork(a)),this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin),this.Iq=-1,this.Md=this.Hn=0,this.fl=this.Jn=this.kj=null,a=0;a<this.He.length;a++)this.He[a]=null;if(0<this.network.vertexes.count){for(this.network.Ko(),this.cycleRemoveOption!==Mp&&this.removeCycles(),a=this.network.vertexes.iterator;a.next();)a.value.layer=-1;for(this.Ia=-1,this.assignLayers(),a.reset();a.next();)this.Ia=Math.max(this.Ia,a.value.layer);this.cycleRemoveOption===Mp&&this.removeCycles(),a=this.network;for(var y=[],x=a.edges.iterator;x.next();){var E=x.value;E.valid=!1,y.push(E)}for(x=0;x<y.length;x++){E=y[x];var b=E.fromVertex,z=E.toVertex;if(!(E.valid||(b.node===null&&b.data===null||z.node===null&&z.data===null)&&b.layer===z.layer)){var ee=0,re=0,oe=0,se=0;if(E.link!==null){if(re=E.link,re===null)continue;var ue=b.node;if(ee=z.node,ue===null||ee===null)continue;var fe=re.fromNode;oe=re.toNode;for(var ve=re.fromPort;ve!==null&&!ve.Ed();)ve=ve.panel;for(re=re.toPort;re!==null&&!re.Ed();)re=re.panel;if(E.rev){se=fe;var xe=ve;fe=oe,ve=re,oe=se,re=xe}var Pe=b.focus;se=z.focus;var Fe=E.rev?z.bounds:b.bounds;xe=Te.alloc(),ue!==fe?Fe.w()&&fe.isVisible()?fe.actualBounds.w()?(Dh(fe,ve,Mi,xe),xe.x+=fe.actualBounds.x-Fe.x,xe.y+=fe.actualBounds.y-Fe.y):(Dh(fe,ve,Mi,xe),xe.w()||xe.assign(Pe)):xe.assign(Pe):Fe.w()?(Dh(fe,ve,Mi,xe),xe.w()||xe.assign(Pe)):xe.assign(Pe),fe=E.rev?b.bounds:z.bounds,ue=Te.alloc(),ee!==oe?fe.w()&&oe.isVisible()?oe.actualBounds.w()?(Dh(oe,re,Mi,ue),ue.x+=oe.actualBounds.x-fe.x,ue.y+=oe.actualBounds.y-fe.y):(Dh(oe,re,Mi,ue),ue.w()||ue.assign(se)):ue.assign(se):fe.w()?(Dh(oe,re,Mi,ue),ue.w()||ue.assign(se)):ue.assign(se),this.K===90||this.K===270?(ee=Math.round((xe.x-Pe.x)/this.kc),oe=xe.x,re=Math.round((ue.x-se.x)/this.kc),se=ue.x):(ee=Math.round((xe.y-Pe.y)/this.kc),oe=xe.y,re=Math.round((ue.y-se.y)/this.kc),se=ue.y),Te.free(xe),Te.free(ue),E.portFromColOffset=ee,E.portFromPos=oe,E.portToColOffset=re,E.portToPos=se}else E.portFromColOffset=0,E.portFromPos=0,E.portToColOffset=0,E.portToPos=0;if(xe=b.layer,ue=z.layer,fe=0,Fe=E.link,Fe!==null){var Je=Fe.fromPort,We=Fe.toPort;if(Je!==null&&We!==null){var rt=Fe.fromNode;if(ve=Fe.toNode,rt!==null&&ve!==null){var at=M0(this,!0),ht=M0(this,!1),bt=this.setsPortSpots?at:Fe.computeSpot(!0,Je);Pe=this.setsPortSpots?ht:Fe.computeSpot(!1,We);var Jt=Fe.isOrthogonal;bt.$c()&&bt.Hf(ht)&&Pe.$c()&&Pe.Hf(at)?fe=0:(at=Fe.getLinkPoint(rt,Je,bt,!0,Jt,ve,We,Te.alloc()),ht=Fe.getLinkDirection(rt,Je,at,bt,!0,Jt,ve,We),Te.free(at),bt.ys()||ht!==tx(this,E,!0)?this.setsPortSpots&&rt!==null&&rt.ports.count===1&&E.rev&&(fe+=1):fe+=1,bt=Fe.getLinkPoint(ve,We,Pe,!1,Jt,rt,Je,Te.alloc()),Fe=Fe.getLinkDirection(ve,We,bt,Pe,!1,Jt,rt,Je),Te.free(bt),Pe.ys()||Fe!==tx(this,E,!1)?this.setsPortSpots&&ve!==null&&ve.ports.count===1&&E.rev&&(fe+=2):fe+=2)}}}if(ve=fe,fe=ve===1||ve===3,(ve=ve===2||ve===3)&&(Pe=a.createVertex(),Pe.node=null,Pe.Dj=1,Pe.layer=xe,Pe.near=b,a.dh(Pe),b=a.Zj(b,Pe,E.link),b.valid=!1,b.rev=E.rev,b.portFromColOffset=ee,b.portToColOffset=0,b.portFromPos=oe,b.portToPos=0,b=Pe),Fe=1,fe&&Fe--,xe-ue>Fe&&0<xe){for(E.valid=!1,Pe=a.createVertex(),Pe.node=null,Pe.Dj=2,Pe.layer=xe-1,a.dh(Pe),b=a.Zj(b,Pe,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=ve?0:ee,b.portToColOffset=0,b.portFromPos=ve?0:oe,b.portToPos=0,b=Pe,xe--;xe-ue>Fe&&0<xe;)Pe=a.createVertex(),Pe.node=null,Pe.Dj=3,Pe.layer=xe-1,a.dh(Pe),b=a.Zj(b,Pe,E.link),b.valid=!0,b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=0,b.portFromPos=0,b.portToPos=0,b=Pe,xe--;b=a.Zj(Pe,z,E.link),b.valid=!fe,fe&&(Pe.near=z),b.rev=E.rev,b.portFromColOffset=0,b.portToColOffset=re,b.portFromPos=0,b.portToPos=se}else E.valid=!0}}for(a=this.tc=[],y=0;y<=this.Ia;y++)a[y]=0;for(y=this.network.vertexes.iterator;y.next();)y.value.index=-1;for(this.initializeIndices(),this.Iq=-1,x=this.Md=this.Hn=0;x<=this.Ia;x++)a[x]>a[this.Md]&&(this.Iq=a[x]-1,this.Md=x),a[x]<a[this.Hn]&&(this.Hn=x);for(this.fl=[],x=0;x<a.length;x++)this.fl[x]=[];for(y.reset();y.next();)a=y.value,this.fl[a.layer][a.index]=a;for(this.Ra=-1,a=0;a<=this.Ia;a++){for(y=Sd(this,a),x=0,E=this.tc[a],z=0;z<E;z++)b=y[z],x+=this.nodeMinColumnSpace(b,!0),b.column=x,x+=1,x+=this.nodeMinColumnSpace(b,!1);this.Ra=Math.max(this.Ra,x-1),xd(this,a,y)}this.reduceCrossings(),this.straightenAndPack(),this.updateParts()}this.network=null,this.isValidLayout=!0},Eo.prototype.linkMinLength=function(){return 1};function yy(a){var y=a.fromVertex.node||a.fromVertex.data;return a=a.toVertex.node||a.toVertex.data,y===null&&a===null?8:y===null||a===null?4:1}Eo.prototype.nodeMinLayerSpace=function(a,y){return a.node===null&&a.data===null?0:this.K===90||this.K===270?y?a.focus.y+10:a.bounds.height-a.focus.y+10:y?a.focus.x+10:a.bounds.width-a.focus.x+10},Eo.prototype.nodeMinColumnSpace=function(a,y){if(a.node===null&&a.data===null)return 0;var x=y?a.ev:a.dv;return x!==null?x:(x=this.K,x===90||x===270?y?a.ev=a.focus.x/this.kc+1|0:a.dv=(a.bounds.width-a.focus.x)/this.kc+1|0:y?a.ev=a.focus.y/this.kc+1|0:a.dv=(a.bounds.height-a.focus.y)/this.kc+1|0)};function Zs(a){a.kj===null&&(a.kj=[]);for(var y=0,x=a.network.vertexes.iterator;x.next();){var E=x.value;a.kj[y]=E.layer,y++,a.kj[y]=E.column,y++,a.kj[y]=E.index,y++}return a.kj}function Ml(a,y){var x=0;for(a=a.network.vertexes.iterator;a.next();){var E=a.value;E.layer=y[x],x++,E.column=y[x],x++,E.index=y[x],x++}}function US(a,y,x){var E=Sd(a,y),b=a.tc[y];(a.Jn===null||a.Jn.length<b*b)&&(a.Jn=[]);for(var z=a.Jn,ee=0;ee<b;ee++){var re=0,oe=E[ee],se=oe.near;if(se!==null&&se.layer===oe.layer)if(oe=se.index,oe>ee)for(var ue=ee+1;ue<oe;ue++){var fe=E[ue];fe.near===se&&fe.Dj===se.Dj||re++}else for(ue=ee-1;ue>oe;ue--)fe=E[ue],fe.near===se&&fe.Dj===se.Dj||re++;var ve;if(0<=x)for(oe=E[ee].sourceEdgesArrayAccess,se=0;se<oe.length;se++){var xe=oe[se];if(xe.valid&&xe.fromVertex.layer!==y)for(fe=xe.fromVertex.index,ue=xe.portToPos,xe=xe.portFromPos,ve=se+1;ve<oe.length;ve++){var Pe=oe[ve];if(Pe.valid&&Pe.fromVertex.layer!==y){var Fe=Pe.fromVertex.index,Je=Pe.portToPos;Pe=Pe.portFromPos,ue<Je&&(fe>Fe||fe===Fe&&xe>Pe)&&re++,Je<ue&&(Fe>fe||Fe===fe&&Pe>xe)&&re++}}}if(0>=x){for(oe=E[ee].destinationEdgesArrayAccess,se=0;se<oe.length;se++)if(xe=oe[se],xe.valid&&xe.toVertex.layer!==y)for(fe=xe.toVertex.index,ue=xe.portToPos,xe=xe.portFromPos,ve=se+1;ve<oe.length;ve++)Pe=oe[ve],Pe.valid&&Pe.toVertex.layer!==y&&(Fe=Pe.toVertex.index,Je=Pe.portToPos,Pe=Pe.portFromPos,xe<Pe&&(fe>Fe||fe===Fe&&ue>Je)&&re++,Pe<xe&&(Fe>fe||Fe===fe&&Je>ue)&&re++)}for(z[ee*b+ee]=re,oe=ee+1;oe<b;oe++){var We=0,rt=0;if(0<=x){re=E[ee].sourceEdgesArrayAccess;var at=E[oe].sourceEdgesArrayAccess;for(se=0;se<re.length;se++)if(xe=re[se],xe.valid&&xe.fromVertex.layer!==y)for(fe=xe.fromVertex.index,xe=xe.portFromPos,ve=0;ve<at.length;ve++)Pe=at[ve],Pe.valid&&Pe.fromVertex.layer!==y&&(Fe=Pe.fromVertex.index,Pe=Pe.portFromPos,(fe<Fe||fe===Fe&&xe<Pe)&&rt++,(Fe<fe||Fe===fe&&Pe<xe)&&We++)}if(0>=x){for(re=E[ee].destinationEdgesArrayAccess,at=E[oe].destinationEdgesArrayAccess,se=0;se<re.length;se++)if(xe=re[se],xe.valid&&xe.toVertex.layer!==y)for(fe=xe.toVertex.index,ue=xe.portToPos,ve=0;ve<at.length;ve++)Pe=at[ve],Pe.valid&&Pe.toVertex.layer!==y&&(Fe=Pe.toVertex.index,Je=Pe.portToPos,(fe<Fe||fe===Fe&&ue<Je)&&rt++,(Fe<fe||Fe===fe&&Je<ue)&&We++)}z[ee*b+oe]=We,z[oe*b+ee]=rt}}return xd(a,y,E),z}Eo.prototype.countCrossings=function(){for(var a=0,y=0;y<=this.Ia;y++)for(var x=US(this,y,1),E=this.tc[y],b=0;b<E;b++)for(var z=b;z<E;z++)a+=x[b*E+z];return a};function A0(a){for(var y=0,x=0;x<=a.Ia;x++){for(var E=a,b=x,z=Sd(E,b),ee=E.tc[b],re=0,oe=0;oe<ee;oe++){var se=z[oe].destinationEdgesArrayAccess;if(se!==null)for(var ue=0;ue<se.length;ue++){var fe=se[ue];if(fe.valid&&fe.toVertex.layer!==b){var ve=fe.fromVertex.column+fe.portFromColOffset,xe=fe.toVertex.column+fe.portToColOffset;re+=(Math.abs(ve-xe)+1)*yy(fe)}}}xd(E,b,z),y+=re}return y}Eo.prototype.normalize=function(){var a=1/0;this.Ra=-1;for(var y=this.network.vertexes.iterator;y.next();){var x=y.value;a=Math.min(a,x.column-this.nodeMinColumnSpace(x,!0)),this.Ra=Math.max(this.Ra,x.column+this.nodeMinColumnSpace(x,!1))}for(y.reset();y.next();)y.value.column-=a;this.Ra-=a};function Sy(a,y,x){for(var E=Sd(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var se=null;0<=x&&(se=re.destinationEdgesArrayAccess);var ue=0,fe=0,ve=re.near;if(ve!==null&&ve.layer===re.layer&&(ue+=ve.column-1,fe++),oe!==null)for(ve=0;ve<oe.length;ve++){re=oe[ve];var xe=re.fromVertex;re.valid&&!re.rev&&xe.layer!==y&&(ue+=xe.column,fe++)}if(se!==null)for(oe=0;oe<se.length;oe++)re=se[oe],ve=re.toVertex,re.valid&&!re.rev&&ve.layer!==y&&(ue+=ve.column,fe++);z[ee]=fe===0?-1:ue/fe}return xd(a,y,E),z}function XS(a,y,x){for(var E=Sd(a,y),b=a.tc[y],z=[],ee=0;ee<b;ee++){var re=E[ee],oe=null;0>=x&&(oe=re.sourceEdgesArrayAccess);var se=null;0<=x&&(se=re.destinationEdgesArrayAccess);var ue=0,fe=[],ve=re.near;if(ve!==null&&ve.layer===re.layer&&(fe[ue]=ve.column-1,ue++),re=void 0,oe!==null)for(ve=0;ve<oe.length;ve++){re=oe[ve];var xe=re.fromVertex;re.valid&&!re.rev&&xe.layer!==y&&(fe[ue]=xe.column+re.portFromColOffset,ue++)}if(se!==null)for(oe=0;oe<se.length;oe++)re=se[oe],ve=re.toVertex,re.valid&&!re.rev&&ve.layer!==y&&(fe[ue]=ve.column+re.portToColOffset,ue++);ue===0?z[ee]=-1:(fe.sort(function(Pe,Fe){return Pe-Fe}),se=ue>>1,z[ee]=ue&1?fe[se]:fe[se-1]+fe[se]>>1)}return xd(a,y,E),z}function bp(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();){var re=ee.value,oe=re.toVertex,se=y.layer-oe.layer;re=a.linkMinLength(re),se===re&&bp(a,oe,x,E,b,z)}if(z)for(ee=y.sourceEdges;ee.next();)re=ee.value,oe=re.fromVertex,se=oe.layer-y.layer,re=a.linkMinLength(re),se===re&&bp(a,oe,x,E,b,z)}}function xy(a,y,x,E,b,z){if(y.component===E){if(y.component=x,b)for(var ee=y.destinationEdges;ee.next();)xy(a,ee.value.toVertex,x,E,b,z);if(z)for(y=y.sourceEdges;y.next();)xy(a,y.value.fromVertex,x,E,b,z)}}Eo.prototype.removeCycles=function(){for(var a=this.network.edges.iterator;a.next();)a.value.rev=!1;switch(this.Dk){default:case Cy:a=this.network;var y=0,x=a.vertexes.count-1,E=[];E.length=x+1;for(var b=a.vertexes.iterator;b.next();)b.value.valid=!0;for(;Xx(a)!==null;){for(b=_S(a);b!==null;)E[x]=b,x--,b.valid=!1,b=_S(a);for(b=JS(a);b!==null;)E[y]=b,y++,b.valid=!1,b=JS(a);b=null;for(var z=0,ee=this.network.vertexes.iterator;ee.next();){var re=ee.value;if(re.valid){for(var oe=0,se=re.destinationEdges;se.next();)se.value.toVertex.valid&&oe++;se=0;for(var ue=re.sourceEdges;ue.next();)ue.value.fromVertex.valid&&se++;(b===null||z<oe-se)&&(b=re,z=oe-se)}}b!==null&&(E[y]=b,y++,b.valid=!1)}for(y=0;y<a.vertexes.count;y++)E[y].index=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.index>y.toVertex.index&&(a.gm(y),y.rev=!0);break;case k0:for(E=this.network.vertexes.iterator;E.next();)a=E.value,a.Ll=-1,a.finish=-1;for(a=this.network.edges.iterator;a.next();)a.value.forest=!1;for(this.Kn=0,E.reset();E.next();)y=E.value,y.sourceEdges.count===0&&wy(this,y);for(E.reset();E.next();)y=E.value,y.Ll===-1&&wy(this,y);for(a.reset();a.next();)E=a.value,E.forest||(y=E.fromVertex,x=y.finish,b=E.toVertex,z=b.finish,b.Ll<y.Ll&&x<z&&(this.network.gm(E),E.rev=!0));break;case Mp:for(a=this.network,y=a.vertexes.iterator,E=1/0;y.next();)E=Math.min(E,y.value.layer);if(1/0>E){if(0>E)for(y.reset();y.next();)y.value.layer-=E;for(E=[],y.reset();y.next();)x=y.value,b=E[x.layer],b===void 0?E[x.layer]=[x]:b.push(x);for(x=y=0;x<E.length;x++)if(b=E[x],!b||b.length===0)y++;else if(0<x)for(z=0;z<b.length;z++)b[z].layer-=y;for(E=a.edges.iterator;E.next();)y=E.value,y.fromVertex.layer<y.toVertex.layer&&(a.gm(y),y.rev=!0)}}};function Xx(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid)return y}return null}function _S(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.destinationEdges;E.next();)if(E.value.toVertex.valid){x=!1;break}if(x)return y}}return null}function JS(a){for(a=a.vertexes.iterator;a.next();){var y=a.value;if(y.valid){for(var x=!0,E=y.sourceEdges;E.next();)if(E.value.fromVertex.valid){x=!1;break}if(x)return y}}return null}function wy(a,y){y.Ll=a.Kn,a.Kn++;for(var x=y.destinationEdges;x.next();){var E=x.value,b=E.toVertex;b.Ll===-1&&(E.forest=!0,wy(a,b))}y.finish=a.Kn,a.Kn++}Eo.prototype.assignLayers=function(){switch(this.Zk){case Ey:QS(this);break;case Ay:for(var a,y=this.network.vertexes.iterator;y.next();)a=$S(this,y.value),this.Ia=Math.max(a,this.Ia);for(y.reset();y.next();)a=y.value,a.layer=this.Ia-a.layer;break;default:case F0:for(QS(this),y=this.network.vertexes.iterator;y.next();)y.value.valid=!1;for(y.reset();y.next();)a=y.value,a.sourceEdges.count===0&&ex(this,a);for(a=1/0,y.reset();y.next();)a=Math.min(a,y.value.layer);for(this.Ia=-1,y.reset();y.next();){var x=y.value;x.layer-=a,this.Ia=Math.max(this.Ia,x.layer)}}};function QS(a){for(var y=a.network.vertexes.iterator;y.next();){var x=qS(a,y.value);a.Ia=Math.max(x,a.Ia)}}function qS(a,y){var x=0;if(y.layer===-1){for(var E=y.destinationEdges;E.next();){var b=E.value,z=b.toVertex;b=a.linkMinLength(b),x=Math.max(x,qS(a,z)+b)}y.layer=x}else x=y.layer;return x}function $S(a,y){var x=0;if(y.layer===-1){for(var E=y.sourceEdges;E.next();){var b=E.value,z=b.fromVertex;b=a.linkMinLength(b),x=Math.max(x,$S(a,z)+b)}y.layer=x}else x=y.layer;return x}function ex(a,y){if(!y.valid){y.valid=!0;for(var x=y.destinationEdges;x.next();)ex(a,x.value.toVertex);for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(var E=y.sourceEdgesArrayAccess,b=E.length,z=0;z<b;z++){var ee=E[z],re=ee.fromVertex,oe=ee.toVertex;ee=a.linkMinLength(ee),re.layer-oe.layer>ee&&bp(a,re,0,-1,!0,!1)}for(bp(a,y,1,-1,!0,!0);y.component!==0;){for(z=0,E=1/0,re=0,oe=null,ee=a.network.vertexes.iterator;ee.next();){var se=ee.value;if(se.component===1){var ue=0,fe=!1,ve=se.sourceEdgesArrayAccess;b=ve.length;for(var xe=0;xe<b;xe++){var Pe=ve[xe],Fe=Pe.fromVertex;ue+=1,Fe.component!==1&&(z+=1,Fe=Fe.layer-se.layer,Pe=a.linkMinLength(Pe),E=Math.min(E,Fe-Pe))}for(ve=se.destinationEdgesArrayAccess,b=ve.length,xe=0;xe<b;xe++)Pe=ve[xe].toVertex,--ue,Pe.component!==1?--z:fe=!0;(oe===null||ue<re)&&!fe&&(oe=se,re=ue)}}if(0<z){for(x.reset();x.next();)b=x.value,b.component===1&&(b.layer+=E);y.component=0}else oe.component=0}for(x=a.network.vertexes.iterator;x.next();)x.value.component=-1;for(bp(a,y,1,-1,!0,!1);y.component!==0;){for(E=0,b=1/0,z=0,re=null,oe=a.network.vertexes.iterator;oe.next();)if(ee=oe.value,ee.component===1){for(se=0,ue=!1,ve=ee.sourceEdgesArrayAccess,fe=ve.length,xe=0;xe<fe;xe++)Pe=ve[xe].fromVertex,se+=1,Pe.component!==1?E+=1:ue=!0;for(ve=ee.destinationEdgesArrayAccess,fe=ve.length,xe=0;xe<fe;xe++)Pe=ve[xe],Fe=Pe.toVertex,--se,Fe.component!==1&&(--E,Fe=ee.layer-Fe.layer,Pe=a.linkMinLength(Pe),b=Math.min(b,Fe-Pe));(re===null||se>z)&&!ue&&(re=ee,z=se)}if(0>E){for(x.reset();x.next();)E=x.value,E.component===1&&(E.layer-=b);y.component=0}else re.component=0}}}function tx(a,y,x){return a.K===90?x&&!y.rev||!x&&y.rev?270:90:a.K===180?x&&!y.rev||!x&&y.rev?0:180:a.K===270?x&&!y.rev||!x&&y.rev?90:270:x&&!y.rev||!x&&y.rev?180:0}Eo.prototype.initializeIndices=function(){switch(this.Qk){default:case by:for(var a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;y.index=this.tc[x],this.tc[x]++}break;case D0:for(a=this.network.vertexes.iterator,y=this.Ia;0<=y;y--)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&nx(this,x);break;case Ly:for(a=this.network.vertexes.iterator,y=0;y<=this.Ia;y++)for(a.reset();a.next();)x=a.value,x.layer===y&&x.index===-1&&ix(this,x)}};function nx(a,y){var x=y.layer;for(y.index=a.tc[x],a.tc[x]++,y=y.destinationEdgesArrayAccess,x=!0;x;){x=!1;for(var E=0;E<y.length-1;E++){var b=y[E],z=y[E+1];b.portFromColOffset>z.portFromColOffset&&(x=!0,y[E]=z,y[E+1]=b)}}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.toVertex,E.index===-1&&nx(a,E))}function ix(a,y){var x=y.layer;y.index=a.tc[x],a.tc[x]++,y=y.sourceEdgesArrayAccess;for(var E=!0;E;)for(E=!1,x=0;x<y.length-1;x++){var b=y[x],z=y[x+1];b.portToColOffset>z.portToColOffset&&(E=!0,y[x]=z,y[x+1]=b)}for(x=0;x<y.length;x++)E=y[x],E.valid&&(E=E.fromVertex,E.index===-1&&ix(a,E))}Eo.prototype.reduceCrossings=function(){var a=this.countCrossings(),y=Zs(this),x,E;for(x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)L0(this,E,1),Wl(this,E,1);var b=this.countCrossings();for(b<a&&(a=b,y=Zs(this)),E=this.Ia;0<=E;E--)L0(this,E,-1),Wl(this,E,-1);b=this.countCrossings(),b<a&&(a=b,y=Zs(this))}for(Ml(this,y),x=0;x<this.bj;x++){for(E=0;E<=this.Ia;E++)L0(this,E,0),Wl(this,E,0);for(b=this.countCrossings(),b<a&&(a=b,y=Zs(this)),E=this.Ia;0<=E;E--)L0(this,E,0),Wl(this,E,0);b=this.countCrossings(),b<a&&(a=b,y=Zs(this))}Ml(this,y);var z,ee,re;switch(this.rk){case My:break;case ky:for(re=a+1;(E=this.countCrossings())<re;)for(re=E,x=this.Ia;0<=x;x--)for(ee=0;ee<=x;ee++){for(z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Wl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Wl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Wl(this,E,1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Wl(this,E,-1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Wl(this,E,0)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Wl(this,E,0)||z;b>=a?Ml(this,y):(a=b,y=Zs(this))}break;default:case N0:for(x=this.Ia,ee=0,re=a+1;(E=this.countCrossings())<re;){for(re=E,z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Wl(this,E,-1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Wl(this,E,1)||z;for(b=this.countCrossings(),b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Wl(this,E,1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Wl(this,E,-1)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=x;E>=ee;E--)z=Wl(this,E,0)||z;for(b>=a?Ml(this,y):(a=b,y=Zs(this)),z=!0;z;)for(z=!1,E=ee;E<=x;E++)z=Wl(this,E,0)||z;b>=a?Ml(this,y):(a=b,y=Zs(this))}}Ml(this,y)};function L0(a,y,x){var E=Sd(a,y),b=a.tc[y],z=XS(a,y,x),ee=Sy(a,y,x);for(x=0;x<b;x++)ee[x]===-1&&(ee[x]=E[x].column),z[x]===-1&&(z[x]=E[x].column);for(var re=!0,oe;re;)for(re=!1,x=0;x<b-1;x++)(z[x+1]<z[x]||z[x+1]===z[x]&&ee[x+1]<ee[x])&&(re=!0,oe=z[x],z[x]=z[x+1],z[x+1]=oe,oe=ee[x],ee[x]=ee[x+1],ee[x+1]=oe,oe=E[x],E[x]=E[x+1],E[x+1]=oe);for(x=z=0;x<b;x++)oe=E[x],oe.index=x,z+=a.nodeMinColumnSpace(oe,!0),oe.column=z,z+=1,z+=a.nodeMinColumnSpace(oe,!1);xd(a,y,E)}function Wl(a,y,x){var E=Sd(a,y),b=a.tc[y];x=US(a,y,x);var z,ee=[];for(z=0;z<b;z++)ee[z]=-1;var re=[];for(z=0;z<b;z++)re[z]=-1;for(var oe=!1,se=!0;se;)for(se=!1,z=0;z<b-1;z++){var ue=x[E[z].index*b+E[z+1].index],fe=x[E[z+1].index*b+E[z].index],ve=0,xe=0,Pe=E[z].column,Fe=E[z+1].column,Je=a.nodeMinColumnSpace(E[z],!0),We=a.nodeMinColumnSpace(E[z],!1),rt=a.nodeMinColumnSpace(E[z+1],!0),at=a.nodeMinColumnSpace(E[z+1],!1);Je=Pe-Je+rt,We=Fe-We+at;var ht=E[z].sourceEdges.iterator;for(ht.reset();ht.next();)if(rt=ht.value,at=rt.fromVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt<z&&(ve+=2*(z-rt),xe+=2*(z+1-rt)),rt===z+1&&(ve+=1),rt>z+1&&(ve+=4*(rt-z),xe+=4*(rt-(z+1)))}for(ht=E[z].destinationEdges.iterator,ht.reset();ht.next();)if(rt=ht.value,at=rt.toVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt===z+1&&(xe+=1)}for(ht=E[z+1].sourceEdges.iterator,ht.reset();ht.next();)if(rt=ht.value,at=rt.fromVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt<z&&(ve+=2*(z+1-rt),xe+=2*(z-rt)),rt===z&&(xe+=1),rt>z+1&&(ve+=4*(rt-(z+1)),xe+=4*(rt-z))}for(ht=E[z+1].destinationEdges.iterator,ht.reset();ht.next();)if(rt=ht.value,at=rt.toVertex,rt.valid&&at.layer===y){for(rt=0;E[rt]!==at;)rt++;rt===z&&(ve+=1)}rt=at=0,ht=ee[E[z].index];var bt=re[E[z].index],Jt=ee[E[z+1].index],Ci=re[E[z+1].index];ht!==-1&&(at+=Math.abs(ht-Pe),rt+=Math.abs(ht-We)),bt!==-1&&(at+=Math.abs(bt-Pe),rt+=Math.abs(bt-We)),Jt!==-1&&(at+=Math.abs(Jt-Fe),rt+=Math.abs(Jt-Je)),Ci!==-1&&(at+=Math.abs(Ci-Fe),rt+=Math.abs(Ci-Je)),(xe<ve-.5||xe===ve&&fe<ue-.5||xe===ve&&fe===ue&&rt<at-.5)&&(se=oe=!0,E[z].column=We,E[z+1].column=Je,ue=E[z],E[z]=E[z+1],E[z+1]=ue)}for(z=0;z<b;z++)E[z].index=z;return xd(a,y,E),oe}Eo.prototype.straightenAndPack=function(){if(this.ve===0){var a=(this.bg&1)!==0,y=(this.bg&nw)!==0;if(1e3<this.network.edges.count&&y&&(a=!1),a){var x=[];for(y=0;y<=this.Ia;y++)x[y]=0;for(var E,b=this.network.vertexes.iterator;b.next();){var z=b.value;y=z.layer,E=z.column,z=this.nodeMinColumnSpace(z,!1),x[y]=Math.max(x[y],E+z)}for(b.reset();b.next();)z=b.value,y=z.layer,E=z.column,z.column=(8*(this.Ra-x[y])>>1)+8*E;this.Ra*=8}if(this.bg&2)for(x=!0;x;){for(x=!1,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,1)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,-1)||x;x=Qf(this,this.Md,0)||x}if(this.bg&4){for(y=this.Md+1;y<=this.Ia;y++)Py(this,y,1);for(y=this.Md-1;0<=y;y--)Py(this,y,-1);Py(this,this.Md,0)}if(a&&(rx(this,-1),rx(this,1)),this.bg&2)for(x=!0;x;){for(x=!1,x=Qf(this,this.Md,0)||x,y=this.Md+1;y<=this.Ia;y++)x=Qf(this,y,0)||x;for(y=this.Md-1;0<=y;y--)x=Qf(this,y,0)||x}}else qx(this)};function Qf(a,y,x){for(var E=!1;_x(a,y,x);)E=!0;return E}function _x(a,y,x){var E,b=Sd(a,y),z=a.tc[y],ee=Sy(a,y,-1);if(0<x)for(E=0;E<z;E++)ee[E]=-1;var re=Sy(a,y,1);if(0>x)for(E=0;E<z;E++)re[E]=-1;for(var oe=!1,se=!0;se;)for(se=!1,E=0;E<z;E++){var ue=b[E].column,fe=a.nodeMinColumnSpace(b[E],!0),ve=a.nodeMinColumnSpace(b[E],!1),xe=0;0>E-1||ue-b[E-1].column-1>fe+a.nodeMinColumnSpace(b[E-1],!1)?xe=ue-1:xe=ue,fe=E+1>=z||b[E+1].column-ue-1>ve+a.nodeMinColumnSpace(b[E+1],!0)?ue+1:ue;var Pe=ve=0,Fe=0;if(0>=x)for(var Je=b[E].sourceEdges.iterator;Je.next();){var We=Je.value,rt=We.fromVertex;if(We.valid&&rt.layer!==y){var at=yy(We),ht=We.portFromColOffset;We=We.portToColOffset,rt=rt.column,ve+=(Math.abs(ue+We-(rt+ht))+1)*at,Pe+=(Math.abs(xe+We-(rt+ht))+1)*at,Fe+=(Math.abs(fe+We-(rt+ht))+1)*at}}if(0<=x)for(Je=b[E].destinationEdges.iterator;Je.next();)We=Je.value,rt=We.toVertex,We.valid&&rt.layer!==y&&(at=yy(We),ht=We.portFromColOffset,We=We.portToColOffset,rt=rt.column,ve+=(Math.abs(ue+ht-(rt+We))+1)*at,Pe+=(Math.abs(xe+ht-(rt+We))+1)*at,Fe+=(Math.abs(fe+ht-(rt+We))+1)*at);We=ht=at=0,Je=ee[b[E].index],rt=re[b[E].index],Je!==-1&&(at+=Math.abs(Je-ue),ht+=Math.abs(Je-xe),We+=Math.abs(Je-fe)),rt!==-1&&(at+=Math.abs(rt-ue),ht+=Math.abs(rt-xe),We+=Math.abs(rt-fe)),Pe<ve||Pe===ve&&ht<at?(se=oe=!0,b[E].column=xe):(Fe<ve||Fe===ve&&We<at)&&(se=oe=!0,b[E].column=fe)}return xd(a,y,b),a.normalize(),oe}function Py(a,y,x){var E=Sd(a,y),b=a.tc[y],z=XS(a,y,x),ee=[];for(x=0;x<b;x++)ee[x]=z[x];for(z=!0;z;)for(z=!1,x=0;x<b;x++){var re=E[x].column,oe=a.nodeMinColumnSpace(E[x],!0),se=a.nodeMinColumnSpace(E[x],!1),ue=0;if(ee[x]===-1)if(x===0&&x===b-1)ue=re;else if(x===0){var fe=E[x+1].column;fe-re===se+a.nodeMinColumnSpace(E[x+1],!0)?ue=re-1:ue=re}else x===b-1?(fe=E[x-1].column,ue=re-fe===oe+a.nodeMinColumnSpace(E[x-1],!1)?re+1:re):(fe=E[x-1].column,oe=fe+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,fe=E[x+1].column,se=fe-a.nodeMinColumnSpace(E[x+1],!0)-se-1,ue=(oe+se)/2|0);else x===0&&x===b-1?ue=ee[x]:x===0?(fe=E[x+1].column,se=fe-a.nodeMinColumnSpace(E[x+1],!0)-se-1,ue=Math.min(ee[x],se)):x===b-1?(fe=E[x-1].column,oe=fe+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,ue=Math.max(ee[x],oe)):(fe=E[x-1].column,oe=fe+a.nodeMinColumnSpace(E[x-1],!1)+oe+1,fe=E[x+1].column,se=fe-a.nodeMinColumnSpace(E[x+1],!0)-se-1,oe<ee[x]&&ee[x]<se?ue=ee[x]:oe>=ee[x]?ue=oe:se<=ee[x]&&(ue=se));ue!==re&&(z=!0,E[x].column=ue)}xd(a,y,E),a.normalize()}function Jx(a,y){for(var x=!0,E=a.network.vertexes.iterator;E.next();){var b=E.value,z=a.nodeMinColumnSpace(b,!0),ee=a.nodeMinColumnSpace(b,!1);if(b.column-z<=y&&b.column+ee>=y){x=!1;break}}if(a=!1,x)for(E.reset();E.next();)x=E.value,x.column>y&&(--x.column,a=!0);return a}function Qx(a,y){var x=y+1,E,b=[],z=[];for(E=0;E<=a.Ia;E++)b[E]=!1,z[E]=!1;for(var ee=a.network.vertexes.iterator;ee.next();){E=ee.value;var re=E.column-a.nodeMinColumnSpace(E,!0),oe=E.column+a.nodeMinColumnSpace(E,!1);re<=y&&oe>=y&&(b[E.layer]=!0),re<=x&&oe>=x&&(z[E.layer]=!0)}for(re=!0,x=!1,E=0;E<=a.Ia;E++)re=re&&!(b[E]&&z[E]);if(re)for(ee.reset();ee.next();)a=ee.value,a.column>y&&(--a.column,x=!0);return x}function rx(a,y){for(var x=0;x<=a.Ra;x++)for(;Jx(a,x););for(a.normalize(),x=0;x<a.Ra;x++)for(;Qx(a,x););a.normalize();var E;if(0<y)for(x=0;x<=a.Ra;x++){var b=Zs(a),z=A0(a);for(E=z+1;z<E;){E=z,ox(a,x,1);var ee=A0(a);ee>z?Ml(a,b):ee<z&&(z=ee,b=Zs(a))}}if(0>y)for(x=a.Ra;0<=x;x--)for(b=Zs(a),z=A0(a),E=z+1;z<E;)E=z,ox(a,x,-1),ee=A0(a),ee>z?Ml(a,b):ee<z&&(z=ee,b=Zs(a));a.normalize()}function ox(a,y,x){a.le=0;for(var E=a.network.vertexes.iterator;E.next();)E.value.component=-1;if(0<x)for(E.reset();E.next();){var b=E.value;b.column-a.nodeMinColumnSpace(b,!0)<=y&&(b.component=a.le)}if(0>x)for(E.reset();E.next();)b=E.value,b.column+a.nodeMinColumnSpace(b,!1)>=y&&(b.component=a.le);for(a.le++,E.reset();E.next();)y=E.value,y.component===-1&&(xy(a,y,a.le,-1,!0,!0),a.le++);var z;for(y=[],z=0;z<a.le*a.le;z++)y[z]=!1;for(b=[],z=0;z<(a.Ia+1)*(a.Ra+1);z++)b[z]=-1;for(E.reset();E.next();){z=E.value;for(var ee=z.layer,re=Math.max(0,z.column-a.nodeMinColumnSpace(z,!0)),oe=Math.min(a.Ra,z.column+a.nodeMinColumnSpace(z,!1));re<=oe;re++)b[ee*(a.Ra+1)+re]=z.component}for(z=0;z<=a.Ia;z++){if(0<x)for(ee=0;ee<a.Ra;ee++)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee+1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee+1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee+1]]=!0);if(0>x)for(ee=a.Ra;0<ee;ee--)b[z*(a.Ra+1)+ee]!==-1&&b[z*(a.Ra+1)+ee-1]!==-1&&b[z*(a.Ra+1)+ee]!==b[z*(a.Ra+1)+ee-1]&&(y[b[z*(a.Ra+1)+ee]*a.le+b[z*(a.Ra+1)+ee-1]]=!0)}for(b=[],z=0;z<a.le;z++)b[z]=!0;for(ee=[],ee.push(0);ee.length!==0;)if(oe=ee[ee.length-1],ee.pop(),b[oe])for(b[oe]=!1,z=0;z<a.le;z++)y[oe*a.le+z]&&ee.splice(0,0,z);if(0<x)for(E.reset();E.next();)a=E.value,b[a.component]&&--a.column;if(0>x)for(E.reset();E.next();)x=E.value,b[x.component]&&(x.column+=1)}function qx(a){for(var y=si(),x=a.fl.length,E=0;E<=x;E++)y[E]=[];for(E=a.network.vertexes.iterator;E.next();){var b=E.value;y[x-b.layer][b.index]=b}x=new yn,$x(y,x);var z=null,ee=null,re=null,oe=null,se=(a.ve&1)!==0,ue=(a.ve&2)!==0,fe=(a.ve&4)!==0,ve=(a.ve&8)!==0;for(se&&(a.verticalAlignment(y,x,!0),z=b0(a,y,!0,!1)),y.reverse(),fe&&(a.verticalAlignment(y,x,!1),re=b0(a,y,!1,!1)),E=Gn(y),b=E.next();!b.done;b=E.next())b.value.reverse();ve&&(a.verticalAlignment(y,x,!1),oe=b0(a,y,!1,!0)),y.reverse(),ue&&(a.verticalAlignment(y,x,!0),ee=b0(a,y,!0,!0)),Pi(y),a.u(z,ee,re,oe),a.network.vertexes.each(function(xe){var Pe=si();se&&Pe.push(z.get(xe)),ue&&Pe.push(ee.get(xe)),fe&&Pe.push(re.get(xe)),ve&&Pe.push(oe.get(xe)),Pe.sort(function(Je,We){return Je-We});var Fe=Pe.length;Fe=(Pe[Math.floor((Fe-1)/2)]+Pe[Math.ceil((Fe-1)/2)])/2,Pi(Pe),xe.zc=Fe})}function $x(a,y){for(var x=a.length,E=1;E<x-1;E++)for(var b=0,z=0,ee=a[E],re=a[E+1],oe=0;z<re.length;oe++){var se=re[oe];e:{if(se.node===null){var ue=Fy(se);if(0<ue.length){ue=ue[0].node===null;break e}}ue=!1}var fe=ue;if(oe===re.length-1||fe){for(ue=ee.length-1,fe&&(ue=Fy(se)[0].index);z<=oe;){if(se=re[z],!se.bo){fe=[];for(var ve=Gn(se.sourceEdgesArrayAccess),xe=ve.next();!xe.done;xe=ve.next())xe=xe.value,xe.valid&&fe.push(xe);se.bo=fe}for(se=Gn(se.bo),fe=se.next();!fe.done;fe=se.next())fe=fe.value,ve=fe.fromVertex.index,(ve<b||ve>ue)&&y.add(fe);z++}b=ue}}}Eo.prototype.verticalAlignment=function(a,y,x){ew(a),a=Gn(a);for(var E=a.next();!E.done;E=a.next()){var b=-1;E=Gn(E.value);for(var z=E.next();!z.done;z=E.next()){z=z.value;var ee=x?Fy(z):iw(z),re=ee.length;if(0<re){ee.sort(function(fe,ve){return fe.vi-ve.vi});var oe=(re-1)/2;for(re=Math.floor(oe),oe=Math.ceil(oe);re<=oe;re++)if(z.align===z){var se=ee[re],ue=void 0;ue=x?B0(se,z):B0(z,se),!y.contains(ue)&&b<se.vi&&(se.align=z,z.root=se.root,z.align=se.root,b=se.vi)}}}}};function ew(a){for(var y=0;y<a.length;y++)for(var x=a[y],E=0;E<x.length;E++){var b=x[E];b.root=b,b.align=b,b.Tz=y,b.vi=E}}function b0(a,y,x,E){for(var b=a.K===90||a.K===270,z=Gn(y),ee=z.next();!ee.done;ee=z.next()){var re=Gn(ee.value);for(ee=re.next();!ee.done;ee=re.next())ee=ee.value,ee.sd=ee,ee.shift=1/0,ee.zc=NaN,ee.qg=0}for(ee=a.K===90||a.K===270,z=Gn(y),re=z.next();!re.done;re=z.next()){re=Gn(re.value);for(var oe=re.next();!oe.done;oe=re.next())if(oe=oe.value,oe.root===oe){for(var se=0,ue=oe;ue.align!==oe;){var fe=ue.align,ve=ee?ue.width:ue.height,xe=ee?fe.width:fe.height;if(x){var Pe=B0(ue,fe),Fe=Pe.portFromPos,Je=Pe.portToPos;Pe.link!==null&&(ue.node&&ue.node!==Pe.link.fromNode&&(Fe=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Pe.link.toNode&&(Je=ee?fe.focusX:fe.focusY))}else Pe=B0(fe,ue),Fe=Pe.portToPos,Je=Pe.portFromPos,Pe.link!==null&&(ue.node&&ue.node!==Pe.link.toNode&&(Fe=ee?ue.focusX:ue.focusY),fe.node&&fe.node!==Pe.link.fromNode&&(Je=ee?fe.focusX:fe.focusY));ve=E?ue.qg+(ve-Fe)-(xe-Je):ue.qg+Fe-Je,fe.qg=ve,se=Math.min(se,ve),ue=ue.align}ue=oe;do ue.qg=ue.qg-se,ue=ue.align;while(ue!==oe)}}for(x=Gn(y),ee=x.next();!ee.done;ee=x.next())for(z=Gn(ee.value),ee=z.next();!ee.done;ee=z.next())ee=ee.value,ee.root===ee&&ax(a,ee,y);for(x=0;x<y.length;x++)if(!(0>=y[x].length)&&(ee=y[x][0],ee.sd===ee)){ee.sd.shift===1/0&&(ee.sd.shift=0),ee=x,re=0;do{for(z=y[ee][re];z.align!==z.root;)z=z.align,ee++,0<z.vi&&(re=sx(z,y),re.sd.shift=Math.min(re.sd.shift,z.sd.shift+z.zc+z.qg-(re.zc+re.qg+(b?re.width:re.height)+a.columnSpacing)));re=z.vi+1}while(ee<y.length&&re<y[ee].length&&z.sd===y[ee][re].sd)}for(a=new $t,y=Gn(y),ee=y.next();!ee.done;ee=y.next())for(x=Gn(ee.value),ee=x.next();!ee.done;ee=x.next())ee=ee.value,ee.zc=ee.zc+ee.sd.shift+ee.qg,z=b?ee.width:ee.height,a.add(ee,E?-ee.zc-z:ee.zc);return a}function ax(a,y,x){if(isNaN(y.zc)){y.zc=0;var E=y;do{if(0<E.vi){var b=sx(E,x),z=b.root;ax(a,z,x),y.sd===y&&(y.sd=z.sd);var ee=a.K===90||a.K===270?b.width:b.height;y.sd===z.sd&&(y.zc=Math.max(y.zc,z.zc+b.qg+ee-E.qg+a.columnSpacing))}E=E.align}while(E!==y);for(;E.align!==y;)E=E.align,E.zc=y.zc,E.sd=y.sd}}function sx(a,y){var x=a.Tz;return a=a.vi,1>a&&Ve("Could not determine previous vertex in layer"),y[x][a-1]}Eo.prototype.u=function(a){for(var y=[],x=0;x<arguments.length;++x)y[x]=arguments[x];x=-1;for(var E=si(),b=si(),z=1/0,ee=0;4>ee;ee++)if(y[ee]){var re=tw(this,y[ee],E,b,ee);re<z&&(x=ee,z=re)}for(z={},ee=0;4>ee;z={delta:z.delta},ee++)y[ee]&&(z.delta=ee===0||ee===2?E[x]-E[ee]:b[x]-b[ee],z.delta!==0&&y[ee].each(function(oe){return function(se){se.value+=oe.delta}}(z)));Pi(E),Pi(b)};function tw(a,y,x,E,b){if(!y||y.count===0)return x[b]=0,E[b]=0,1/0;var z=1/0,ee=-1/0;return y.each(function(re){var oe=re.key;re=re.value,oe=a.K===90||a.K===270?oe.width:oe.height,re<z&&(z=re),re+oe>ee&&(ee=re+oe)}),x[b]=z,E[b]=ee,ee-z}Eo.prototype.commitLayout=function(){if(this.setsPortSpots)for(var a=M0(this,!0),y=M0(this,!1),x=this.network.edges.iterator;x.next();){var E=x.value.link;E!==null&&(E.fromSpot=a,E.toSpot=y)}this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()};function M0(a,y){return a.K===270?y?bo:Qo:a.K===90?y?Qo:bo:a.K===180?y?yo:vo:y?vo:yo}Eo.prototype.commitNodes=function(){this.he=[],this.Ld=[],this.Kd=[],this.Ta=[];for(var a=0;a<=this.Ia;a++)this.he[a]=0,this.Ld[a]=0,this.Kd[a]=0,this.Ta[a]=0;for(a=this.network.vertexes.iterator;a.next();){var y=a.value,x=y.layer;this.he[x]=Math.max(this.he[x],this.nodeMinLayerSpace(y,!0)),this.Ld[x]=Math.max(this.Ld[x],this.nodeMinLayerSpace(y,!1))}y=0,x=this.ie;for(var E=0;E<=this.Ia;E++){var b=x;0>=this.he[E]+this.Ld[E]&&(b=0),0<E&&(y+=b/2),this.K===90||this.K===0?(y+=this.Ld[E],this.Kd[E]=y,y+=this.he[E]):(y+=this.he[E],this.Kd[E]=y,y+=this.Ld[E]),E<this.Ia&&(y+=b/2),this.Ta[E]=y}for(x=y,y=this.arrangementOrigin,E=0;E<=this.Ia;E++)this.K===270?this.Kd[E]=y.y+this.Kd[E]:this.K===90?(this.Kd[E]=y.y+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]):this.K===180?this.Kd[E]=y.x+this.Kd[E]:(this.Kd[E]=y.x+x-this.Kd[E],this.Ta[E]=x-this.Ta[E]);x=this.ve!==0,a.reset(),E=this.K===270||this.K===90;for(var z=1/0,ee=b=1/0,re=-1/0;a.next();){var oe=a.value,se=oe.layer,ue=oe.column|0;E?(ee=y.x+this.kc*ue,se=this.Kd[se]):(ee=this.Kd[se],se=y.y+this.kc*ue),oe.centerX=ee,oe.centerY=se,x&&isFinite(oe.zc)&&(E?oe.node?oe.x=y.x+oe.zc:oe.centerX=y.x+oe.zc:oe.node?oe.y=y.y+oe.zc:oe.centerY=y.y+oe.zc),z=Math.min(oe.x,z),b=Math.min(oe.y,b),E?(ee=z,re=Math.max(re,oe.bounds.right)):(ee=b,re=Math.max(re,oe.bounds.bottom))}for(this.xw=re-ee,z=y.x-z,y=y.y-b,this.Rf=new Te(x&&E?0:z,x&&!E?0:y),a.reset();a.next();)x=a.value,x.x+=z,x.y+=y,x.commit()},Eo.prototype.Gu=function(){for(var a=0,y=this.ie,x=0;x<=this.Ia;x++)a+=this.he[x],a+=this.Ld[x];a+=this.Ia*y,y=[],x=this.ve!==0?this.xw:this.kc*this.Ra;for(var E=this.maxLayer;0<=E;E--)this.K===270?E===0?y.push(new ut(0,0,x,Math.abs(this.Ta[0]))):y.push(new ut(0,this.Ta[E-1],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===90?E===0?y.push(new ut(0,this.Ta[0],x,Math.abs(this.Ta[0]-a))):y.push(new ut(0,this.Ta[E],x,Math.abs(this.Ta[E-1]-this.Ta[E]))):this.K===180?E===0?y.push(new ut(0,0,Math.abs(this.Ta[0]),x)):y.push(new ut(this.Ta[E-1],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x)):E===0?y.push(new ut(this.Ta[0],0,Math.abs(this.Ta[0]-a),x)):y.push(new ut(this.Ta[E],0,Math.abs(this.Ta[E-1]-this.Ta[E]),x));this.commitLayers(y,this.Rf)},Eo.prototype.commitLayers=function(){},Eo.prototype.commitLinks=function(){for(var a=this.network.edges.iterator,y;a.next();)y=a.value.link,y!==null&&(y.uh(),y.Fj(),y.zf());for(a.reset();a.next();)y=a.value.link,y!==null&&y.vg();for(a.reset();a.next();){var x=a.value;if(y=x.link,y!==null){y.uh();var E=y,b=E.fromNode,z=E.toNode,ee=E.fromPort,re=E.toPort;if(b!==null){var oe=b.findVisibleNode();oe!==null&&oe!==b&&(b=oe,ee=oe.port)}z!==null&&(oe=z.findVisibleNode(),oe!==null&&oe!==z&&(z=oe,re=oe.port));var se=y.computeSpot(!0,ee);oe=y.computeSpot(!1,re);var ue=x.fromVertex,fe=x.toVertex;if(x.valid)y.curve===cl&&y.pointsCount===4&&(ue.column===fe.column&&this.alignOption===0?(x=y.getLinkPoint(b,ee,se,!0,!1,z,re),re=y.getLinkPoint(z,re,oe,!1,!1,b,ee),x.w()||x.set(b.actualBounds.center),re.w()||re.set(z.actualBounds.center),y.Fj(),y.yf(x.x,x.y),y.yf((2*x.x+re.x)/3,(2*x.y+re.y)/3),y.yf((x.x+2*re.x)/3,(x.y+2*re.y)/3),y.yf(re.x,re.y)):(x=E=!1,ee!==null&&se===Zi&&(E=!0),re!==null&&oe===Zi&&(x=!0),(E||x)&&(oe=null,E&&(oe=y.getLinkPointFromPoint(b,ee,ee.ga(Mi),y.i(3),!0),oe.w()||oe.set(b.actualBounds.center),y.L(0,oe.x,oe.y)),b=null,x&&(b=y.getLinkPointFromPoint(z,re,re.ga(Mi),y.i(0),!1),b.w()||b.set(z.actualBounds.center),y.L(3,b.x,b.y)),oe&&(z=y.i(2),y.L(1,(2*oe.x+z.x)/3,(2*oe.y+z.y)/3)),b&&(z=y.i(1),y.L(2,(2*b.x+z.x)/3,(2*b.y+z.y)/3))))),y.zf();else if(ue.layer===fe.layer)y.zf();else{var ve=!1,xe=!1,Pe=this.ie,Fe=y.firstPickIndex+1;if(y.isOrthogonal){xe=!0;var Je=y.pointsCount;4<Je&&y.points.removeRange(2,Je-3)}else if(y.curve===cl)ve=!0,Je=y.pointsCount,4<Je&&y.points.removeRange(2,Je-3),Je===4&&(Fe=2);else{Je=y.pointsCount;var We=se===Zi,rt=oe===Zi;2<Je&&We&&rt?y.points.removeRange(1,Je-2):3<Je&&We&&!rt?y.points.removeRange(1,Je-3):3<Je&&!We&&rt?y.points.removeRange(2,Je-2):4<Je&&!We&&!rt&&y.points.removeRange(2,Je-3)}if(x.rev){for(;fe!==null&&ue!==fe;){var at=Je=null;for(We=fe.sourceEdges.iterator;We.next()&&(rt=We.value,rt.link!==x.link||(Je=rt.fromVertex,at=rt.toVertex,Je.node!==null)););if(Je===null)break;if(Je!==ue){We=y.i(Fe-1).x,rt=y.i(Fe-1).y;var ht=Je.centerX,bt=Je.centerY;if(xe)this.K===180||this.K===0?Fe===y.firstPickIndex+1?(y.m(Fe++,We,rt),y.m(Fe++,We,bt)):(at!==null?at.centerY:rt)!==bt&&(at=this.Ta[Je.layer-1]+this.Rf.x,y.m(Fe++,at,rt),y.m(Fe++,at,bt)):Fe===y.firstPickIndex+1?(y.m(Fe++,We,rt),y.m(Fe++,ht,rt)):(at!==null?at.centerX:We)!==ht&&(at=this.Ta[Je.layer-1]+this.Rf.y,y.m(Fe++,We,at),y.m(Fe++,ht,at));else if(Fe===y.firstPickIndex+1){at=Math.max(10,this.he[fe.layer]);var Jt=Math.max(10,this.Ld[fe.layer]);if(ve)this.K===180?ht<=fe.bounds.x?(fe=fe.bounds.x,y.m(Fe++,fe-at,bt),y.m(Fe++,fe,bt),y.m(Fe++,fe+Jt,bt)):(y.m(Fe++,ht-at,bt),y.m(Fe++,ht,bt),y.m(Fe++,ht+Jt,bt)):this.K===90?bt>=fe.bounds.bottom?(fe=fe.bounds.y+fe.bounds.height,y.m(Fe++,ht,fe+Jt),y.m(Fe++,ht,fe),y.m(Fe++,ht,fe-at)):(y.m(Fe++,ht,bt+Jt),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt-at)):this.K===270?bt<=fe.bounds.y?(fe=fe.bounds.y,y.m(Fe++,ht,fe-at),y.m(Fe++,ht,fe),y.m(Fe++,ht,fe+Jt)):(y.m(Fe++,ht,bt-at),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt+Jt)):this.K===0&&(ht>=fe.bounds.right?(fe=fe.bounds.x+fe.bounds.width,y.m(Fe++,fe+Jt,bt),y.m(Fe++,fe,bt),y.m(Fe++,fe-at,bt)):(y.m(Fe++,ht+Jt,bt),y.m(Fe++,ht,bt),y.m(Fe++,ht-at,bt)));else{y.m(Fe++,We,rt);var Ci=0;this.K===180||this.K===0?((this.K===180?ht>=fe.bounds.right:ht<=fe.bounds.x)&&(Ci=(this.K===0?-at:Jt)/2),y.m(Fe++,We+Ci,bt)):((this.K===270?bt>=fe.bounds.bottom:bt<=fe.bounds.y)&&(Ci=(this.K===90?-at:Jt)/2),y.m(Fe++,ht,rt+Ci)),y.m(Fe++,ht,bt)}}else at=Math.max(10,this.he[Je.layer]),Jt=Math.max(10,this.Ld[Je.layer]),ve?this.K===180?(y.m(Fe++,ht-at-Pe,bt),y.m(Fe++,Math.min(ht-at+Pe/2,ht),bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,Math.max(ht+Jt-Pe/2,ht),bt),y.m(Fe++,ht+Jt+Pe,bt)):this.K===90?(y.m(Fe++,ht,bt+Jt+Pe),y.m(Fe++,ht,Math.max(bt+Jt-Pe/2,bt)),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,Math.min(bt-at+Pe/2,bt)),y.m(Fe++,ht,bt-at-Pe)):this.K===270?(y.m(Fe++,ht,bt-at-Pe),y.m(Fe++,ht,Math.min(bt-at+Pe/2,bt)),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,Math.max(bt+Jt-Pe/2,bt)),y.m(Fe++,ht,bt+Jt+Pe)):(y.m(Fe++,ht+Jt+Pe,bt),y.m(Fe++,Math.max(ht+Jt-Pe/2,ht),bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,Math.min(ht-at+Pe/2,ht),bt),y.m(Fe++,ht-at-Pe,bt)):y.m(Fe++,ht,bt)}fe=Je}(re===null||se!==Zi||xe)&&(We=y.i(Fe-1).x,rt=y.i(Fe-1).y,ht=y.i(Fe).x,bt=y.i(Fe).y,xe?(Pe=this.Ld[ue.layer],this.K===180||this.K===0?(xe=rt,xe>=ue.bounds.y&&xe<=ue.bounds.bottom&&(this.K===180?ht>=ue.bounds.x:ht<=ue.bounds.right)&&(fe=ue.centerX+(this.K===180?-Pe:Pe),xe<ue.bounds.y+ue.bounds.height/2?xe=ue.bounds.y-this.kc/2:xe=ue.bounds.bottom+this.kc/2,y.m(Fe++,fe,rt),y.m(Fe++,fe,xe)),y.m(Fe++,ht,xe)):(xe=We,xe>=ue.bounds.x&&xe<=ue.bounds.right&&(this.K===270?bt>=ue.bounds.y:bt<=ue.bounds.bottom)&&(fe=ue.centerY+(this.K===270?-Pe:Pe),xe<ue.bounds.x+ue.bounds.width/2?xe=ue.bounds.x-this.kc/2:xe=ue.bounds.right+this.kc/2,y.m(Fe++,We,fe),y.m(Fe++,xe,fe)),y.m(Fe++,xe,bt)),y.m(Fe++,ht,bt)):ve?(at=Math.max(10,this.he[ue.layer]),Jt=Math.max(10,this.Ld[ue.layer]),this.K===180&&ht>=ue.bounds.x?(fe=ue.bounds.x+ue.bounds.width,y.L(Fe-2,fe,rt),y.L(Fe-1,fe+Jt,rt)):this.K===90&&bt<=ue.bounds.bottom?(fe=ue.bounds.y,y.L(Fe-2,We,fe),y.L(Fe-1,We,fe-at)):this.K===270&&bt>=ue.bounds.y?(fe=ue.bounds.y+ue.bounds.height,y.L(Fe-2,We,fe),y.L(Fe-1,We,fe+Jt)):this.K===0&&ht<=ue.bounds.right&&(fe=ue.bounds.x,y.L(Fe-2,fe,rt),y.L(Fe-1,fe-at,rt))):(at=Math.max(10,this.he[ue.layer]),Jt=Math.max(10,this.Ld[ue.layer]),xe=0,this.K===180||this.K===0?((this.K===180?ht<=ue.bounds.x:ht>=ue.bounds.right)&&(xe=(this.K===0?Jt:-at)/2),y.m(Fe++,ht+xe,rt)):((this.K===270?bt<=ue.bounds.y:bt>=ue.bounds.bottom)&&(xe=(this.K===90?Jt:-at)/2),y.m(Fe++,We,bt+xe)),y.m(Fe++,ht,bt)))}else{for(;ue!==null&&ue!==fe;){for(at=Je=null,ue=ue.destinationEdges.iterator;ue.next()&&(We=ue.value,We.link!==x.link||(Je=We.toVertex,at=We.fromVertex,at.node!==null&&(at=null),Je.node!==null)););if(Je===null)break;Je!==fe&&(We=y.i(Fe-1).x,rt=y.i(Fe-1).y,ht=Je.centerX,bt=Je.centerY,xe?this.K===180||this.K===0?(at!==null?at.centerY:rt)!==bt&&(at=this.Ta[Je.layer]+this.Rf.x,Fe===y.firstPickIndex+1&&(at=this.K===0?Math.max(at,We):Math.min(at,We)),y.m(Fe++,at,rt),y.m(Fe++,at,bt)):(at!==null?at.centerX:We)!==ht&&(at=this.Ta[Je.layer]+this.Rf.y,Fe===y.firstPickIndex+1&&(at=this.K===90?Math.max(at,rt):Math.min(at,rt)),y.m(Fe++,We,at),y.m(Fe++,ht,at)):(at=Math.max(10,this.he[Je.layer]),Jt=Math.max(10,this.Ld[Je.layer]),ve?this.K===180?(y.m(Fe++,ht+Jt+Pe,bt),y.m(Fe++,Math.max(ht+Jt-Pe/2,ht),bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,Math.min(ht-at+Pe/2,ht),bt),y.m(Fe++,ht-at-Pe,bt)):this.K===90?(y.m(Fe++,ht,bt-at-Pe),y.m(Fe++,ht,Math.min(bt-at+Pe/2,bt)),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,Math.max(bt+Jt-Pe/2,bt)),y.m(Fe++,ht,bt+Jt+Pe)):this.K===270?(y.m(Fe++,ht,bt+Jt+Pe),y.m(Fe++,ht,Math.max(bt+Jt-Pe/2,bt)),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,Math.min(bt-at+Pe/2,bt)),y.m(Fe++,ht,bt-at-Pe)):(y.m(Fe++,ht-at-Pe,bt),y.m(Fe++,Math.min(ht-at+Pe/2,ht),bt),y.m(Fe++,ht,bt),y.m(Fe++,ht,bt),y.m(Fe++,Math.max(ht+Jt-Pe/2,ht),bt),y.m(Fe++,ht+Jt+Pe,bt)):this.K===180?(y.m(Fe++,ht+Jt,bt),y.m(Fe++,ht-at,bt)):this.K===90?(y.m(Fe++,ht,bt-at),y.m(Fe++,ht,bt+Jt)):this.K===270?(y.m(Fe++,ht,bt+Jt),y.m(Fe++,ht,bt-at)):(y.m(Fe++,ht-at,bt),y.m(Fe++,ht+Jt,bt)))),ue=Je}xe&&(We=y.i(Fe-1).x,rt=y.i(Fe-1).y,ht=y.i(Fe).x,bt=y.i(Fe).y,this.K===180||this.K===0?rt!==bt&&(at=this.K===0?Math.min(Math.max((ht+We)/2,this.Ta[fe.layer]+this.Rf.x),ht):Math.max(Math.min((ht+We)/2,this.Ta[fe.layer]+this.Rf.x),ht),y.m(Fe++,at,rt),y.m(Fe++,at,bt)):We!==ht&&(at=this.K===90?Math.min(Math.max((bt+rt)/2,this.Ta[fe.layer]+this.Rf.y),bt):Math.max(Math.min((bt+rt)/2,this.Ta[fe.layer]+this.Rf.y),bt),y.m(Fe++,We,at),y.m(Fe++,ht,at)))}E!==null&&ve&&4<=y.pointsCount&&(ee!==null&&(ee=se===Zi?y.getLinkPointFromPoint(b,ee,ee.ga(Mi),y.i(3),!0):y.i(0),se===Zi&&(se=y.i(2),E=y.i(3),this.direction===90||this.direction===270?(y.L(1,(ee.x+se.x)/2,se.y),y.L(2,E.x,(se.y+E.y)/2)):(y.L(1,se.x,(ee.y+se.y)/2),y.L(2,(se.x+E.x)/2,E.y))),ee.w()||ee.set(b.actualBounds.center),y.L(0,ee.x,ee.y)),re!==null&&(b=oe===Zi?y.getLinkPointFromPoint(z,re,re.ga(Mi),y.i(y.pointsCount-4),!1):y.i(y.pointsCount-1),oe===Zi&&(re=y.i(y.pointsCount-3),oe=y.i(y.pointsCount-4),this.direction===90||this.direction===270?(y.L(y.pointsCount-2,(b.x+re.x)/2,re.y),y.L(y.pointsCount-2,oe.x,(re.y+oe.y)/2)):(y.L(y.pointsCount-2,re.x,(b.y+re.y)/2),y.L(y.pointsCount-3,(re.x+oe.x)/2,oe.y))),b.w()||b.set(z.actualBounds.center),y.L(y.pointsCount-1,b.x,b.y))),y.zf(),x.commit()}}}this.avoidOrthogonalOverlaps()},Eo.prototype.avoidOrthogonalOverlaps=function(){if(!(0>=this.linkSpacing)){for(var a=new cn,y=this.network.edges.iterator;y.next();){var x=y.value.link;x!==null&&x.isOrthogonal&&!a.contains(x)&&a.add(x)}if(0<a.count)if(this.K===90||this.K===270){for(y=0,x=[],a=a.iterator;a.next();){var E=a.value;if(E!==null&&E.isOrthogonal)for(var b=2;b<E.pointsCount-3;b++){var z=E.i(b),ee=E.i(b+1);if(this.B(z.y,ee.y)&&!this.B(z.x,ee.x)){var re=new wd;re.layer=Math.floor(z.y/2);var oe=E.i(0),se=E.i(E.pointsCount-1);if(re.first=oe.x*oe.x+oe.y,re.jc=se.x*se.x+se.y,re.rd=Math.min(z.x,ee.x),re.Ic=Math.max(z.x,ee.x),re.index=b,re.link=E,b+2<E.pointsCount){oe=E.i(b-1),se=E.i(b+2);var ue=0;oe.y<z.y?ue=se.y<z.y?3:z.x<ee.x?2:1:oe.y>z.y&&(ue=se.y>z.y?0:ee.x<z.x?2:1),re.j=ue}x.push(re)}}}if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<b;oe++)se=x[oe],se.jc!==re&&(ue++,re=se.jc);this.zi(x,this.Ux,z,z+ee);var fe=1;for(re=x[z].first,oe=z;oe<b;oe++)se=x[oe],se.first!==re&&(fe++,re=se.first);for(oe=!0,se=fe,ue<fe?(oe=!1,se=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<b;fe++){var ve=x[fe];(oe?ve.first:ve.jc)!==re&&(ue++,re=oe?ve.first:ve.jc);var xe=ve.link;z=xe.i(ve.index),ee=xe.i(ve.index+1);var Pe=this.linkSpacing*(ue-(se-1)/2);y++,xe.uh(),xe.L(ve.index,z.x,z.y+Pe),xe.L(ve.index+1,ee.x,ee.y+Pe),xe.zf()}}z=b}a=E}}else{for(y=0,x=[],a=a.iterator;a.next();)if(E=a.value,E!==null&&E.isOrthogonal)for(b=2;b<E.pointsCount-3;b++)z=E.i(b),ee=E.i(b+1),this.B(z.x,ee.x)&&!this.B(z.y,ee.y)&&(re=new wd,re.layer=Math.floor(z.x/2),oe=E.i(0),se=E.i(E.pointsCount-1),re.first=oe.x+oe.y*oe.y,re.jc=se.x+se.y*se.y,re.rd=Math.min(z.y,ee.y),re.Ic=Math.max(z.y,ee.y),re.index=b,re.link=E,b+2<E.pointsCount&&(oe=E.i(b-1),se=E.i(b+2),ue=0,oe.x<z.x?ue=se.x<z.x?3:z.y<ee.y?2:1:oe.x>z.x&&(ue=se.x>z.x?0:ee.y<z.y?2:1),re.j=ue),x.push(re));if(1<x.length)for(x.sort(this.Vx),a=0;a<x.length;){for(z=x[a].layer,E=a+1;E<x.length&&x[E].layer===z;)E++;if(1<E-a)for(z=a;z<E;){for(ee=x[z].Ic,b=a+1;b<E&&x[b].rd<ee;)ee=Math.max(ee,x[b].Ic),b++;if(ee=b-z,1<ee){for(this.zi(x,this.Js,z,z+ee),ue=1,re=x[z].jc,oe=z;oe<b;oe++)se=x[oe],se.jc!==re&&(ue++,re=se.jc);for(this.zi(x,this.Ux,z,z+ee),fe=1,re=x[z].first,oe=z;oe<b;oe++)se=x[oe],se.first!==re&&(fe++,re=se.first);for(oe=!0,se=fe,ue<fe?(oe=!1,se=ue,re=x[z].jc,this.zi(x,this.Js,z,z+ee)):re=x[z].first,ue=0,fe=z;fe<b;fe++)ve=x[fe],(oe?ve.first:ve.jc)!==re&&(ue++,re=oe?ve.first:ve.jc),xe=ve.link,z=xe.i(ve.index),ee=xe.i(ve.index+1),Pe=this.linkSpacing*(ue-(se-1)/2),y++,xe.uh(),xe.L(ve.index,z.x+Pe,z.y),xe.L(ve.index+1,ee.x+Pe,ee.y),xe.zf()}z=b}a=E}}}},Ce=Eo.prototype,Ce.Vx=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.layer<y.layer?-1:a.layer>y.layer?1:a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ce.Ux=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.first<y.first?-1:a.first>y.first||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ce.Js=function(a,y){return a instanceof wd&&y instanceof wd&&a!==y?a.jc<y.jc?-1:a.jc>y.jc||a.j<y.j?1:a.j>y.j||a.rd<y.rd?-1:a.rd>y.rd?1:a.Ic<y.Ic?-1:a.Ic>y.Ic?1:0:0},Ce.B=function(a,y){return a-=y,-1<a&&1>a},Ce.zi=function(a,y,x,E){var b=a.length,z=E-x;if(!(1>=z))if((0>x||x>=b-1)&&Ve("not in range 0 <= from < length: "+x),z===2)E=a[x],b=a[x+1],0<y(E,b)&&(a[x]=b,a[x+1]=E);else if(x===0)if(E>=b)a.sort(y);else for(x=a.slice(0,E),x.sort(y),y=0;y<E;y++)a[y]=x[y];else if(E>=b)for(E=a.slice(x),E.sort(y),y=x;y<b;y++)a[y]=E[y-x];else for(b=a.slice(x,E),b.sort(y),y=x;y<E;y++)a[y]=b[y-x]};function Sd(a,y){var x=a.tc[y];if(x>=a.He.length){for(var E=[],b=0;b<a.He.length;b++)E[b]=a.He[b];a.He=E}for(a.He[x]===void 0||a.He[x]===null?E=[]:(E=a.He[x],a.He[x]=null),a=a.fl[y],y=0;y<a.length;y++)x=a[y],E[x.index]=x;return E}function xd(a,y,x){a.He[a.tc[y]]=x}Ct.Object.defineProperties(Eo.prototype,{layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&0<=a&&(this.ie=a,this.C())}},columnSpacing:{get:function(){return this.kc},set:function(a){this.kc!==a&&0<a&&(this.kc=a,this.C())}},direction:{get:function(){return this.K},set:function(a){this.K!==a&&(a===0||a===90||a===180||a===270?(this.K=a,this.C()):Ve("LayeredDigraphLayout.direction must be 0, 90, 180, or 270"))}},cycleRemoveOption:{get:function(){return this.Dk},set:function(a){this.Dk===a||a!==Cy&&a!==k0&&a!==Mp||(this.Dk=a,this.C())}},layeringOption:{get:function(){return this.Zk},set:function(a){this.Zk===a||a!==F0&&a!==Ey&&a!==Ay||(this.Zk=a,this.C())}},initializeOption:{get:function(){return this.Qk},set:function(a){this.Qk===a||a!==D0&&a!==Ly&&a!==by||(this.Qk=a,this.C())}},iterations:{get:function(){return this.bj},set:function(a){this.bj!==a&&0<=a&&(this.bj=a,this.C())}},aggressiveOption:{get:function(){return this.rk},set:function(a){this.rk===a||a!==My&&a!==N0&&a!==ky||(this.rk=a,this.C())}},packOption:{get:function(){return this.bg},set:function(a){this.bg!==a&&0<=a&&8>a&&(this.bg=a,this.C())}},alignOption:{get:function(){return this.ve},set:function(a){this.ve!==a&&0<=a&&16>a&&(this.ve=a,this.C())}},setsPortSpots:{get:function(){return this.sf},set:function(a){this.sf!==a&&(this.sf=a,this.C())}},linkSpacing:{get:function(){return this.Cn},set:function(a){this.Cn!==a&&0<=a&&(this.Cn=a,this.C())}},maxLayer:{get:function(){return this.Ia}},maxIndex:{get:function(){return this.Iq}},maxColumn:{get:function(){return this.Ra}},minIndexLayer:{get:function(){return this.Hn}},maxIndexLayer:{get:function(){return this.Md}}});var k0=new En(Eo,"CycleDepthFirst",0),Cy=new En(Eo,"CycleGreedy",1),Mp=new En(Eo,"CycleFromLayers",2),F0=new En(Eo,"LayerOptimalLinkLength",0),Ey=new En(Eo,"LayerLongestPathSink",1),Ay=new En(Eo,"LayerLongestPathSource",2),D0=new En(Eo,"InitDepthFirstOut",0),Ly=new En(Eo,"InitDepthFirstIn",1),by=new En(Eo,"InitNaive",2),My=new En(Eo,"AggressiveNone",0),N0=new En(Eo,"AggressiveLess",1),ky=new En(Eo,"AggressiveMore",2),nw=8;Eo.className="LayeredDigraphLayout",Eo.CycleDepthFirst=k0,Eo.CycleGreedy=Cy,Eo.CycleFromLayers=Mp,Eo.LayerOptimalLinkLength=F0,Eo.LayerLongestPathSink=Ey,Eo.LayerLongestPathSource=Ay,Eo.InitDepthFirstOut=D0,Eo.InitDepthFirstIn=Ly,Eo.InitNaive=by,Eo.AggressiveNone=My,Eo.AggressiveLess=N0,Eo.AggressiveMore=ky,Eo.PackNone=0,Eo.PackExpand=1,Eo.PackStraighten=2,Eo.PackMedian=4,Eo.PackAll=15,Eo.AlignNone=0,Eo.AlignUpperLeft=1,Eo.AlignUpperRight=2,Eo.AlignLowerLeft=4,Eo.AlignLowerRight=8,Eo.AlignAll=15;function wd(){this.index=this.Ic=this.rd=this.jc=this.first=this.layer=0,this.link=null,this.j=0}wd.className="SegInfo";function qf(a){Wo.call(this,a)}xt(qf,Wo),qf.prototype.createVertex=function(){return new kl(this)},qf.prototype.createEdge=function(){return new kp(this)},qf.className="LayeredDigraphNetwork";function kl(a){Ra.call(this,a),this.$n=this.bo=this.ao=this.co=null,this.Za=this.Ag=this.Ig=-1,this.u=NaN,this.F=null,this.valid=!1,this.finish=this.Ll=NaN,this.Dj=0,this.dv=this.ev=null}xt(kl,Ra);function lx(a,y){return a.index-y.index}function B0(a,y){if(!a.$n){for(var x=[],E=Gn(a.destinationEdgesArrayAccess),b=E.next();!b.done;b=E.next())b=b.value,b.valid&&x.push(b);a.$n=x}for(a=Gn(a.$n),x=a.next();!x.done;x=a.next())if(x=x.value,x.toVertex===y)return x;Ve("Unable to find destination edge to given vertex")}function Fy(a){if(!a.co){for(var y=[],x=Gn(a.sourceEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.fromVertex);y.sort(lx),a.co=y}return a.co}function iw(a){if(!a.ao){for(var y=[],x=Gn(a.destinationEdgesArrayAccess),E=x.next();!E.done;E=x.next())E=E.value,E.valid&&y.push(E.toVertex);y.sort(lx),a.ao=y}return a.ao}kl.prototype.Cl=function(a){Ra.prototype.Cl.call(this,a),this.bo=this.co=null},kl.prototype.Kl=function(a){Ra.prototype.Kl.call(this,a),this.bo=this.co=null},kl.prototype.zl=function(a){Ra.prototype.zl.call(this,a),this.$n=this.ao=null},kl.prototype.Jl=function(a){Ra.prototype.Jl.call(this,a),this.$n=this.ao=null},Ct.Object.defineProperties(kl.prototype,{layer:{get:function(){return this.Ig},set:function(a){this.Ig!==a&&(this.Ig=a)}},column:{get:function(){return this.Ag},set:function(a){this.Ag!==a&&(this.Ag=a)}},index:{get:function(){return this.Za},set:function(a){this.Za!==a&&(this.Za=a)}},component:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},near:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),kl.prototype.deleteDestinationEdge=kl.prototype.Jl,kl.prototype.addDestinationEdge=kl.prototype.zl,kl.prototype.deleteSourceEdge=kl.prototype.Kl,kl.prototype.addSourceEdge=kl.prototype.Cl,kl.className="LayeredDigraphVertex";function kp(a){nl.call(this,a),this.j=this.ia=this.Ha=!1,this.V=this.u=NaN,this.F=this.o=0}xt(kp,nl),Ct.Object.defineProperties(kp.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},valid:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},rev:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},forest:{get:function(){return this.j},set:function(a){this.j!==a&&(this.j=a)}},portFromPos:{get:function(){return this.u},set:function(a){this.u!==a&&(this.u=a)}},portToPos:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},portFromColOffset:{get:function(){return this.o},set:function(a){this.o!==a&&(this.o=a)}},portToColOffset:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}}}),kp.className="LayeredDigraphEdge";function Jr(a){na.call(this),this.Ub=new yn,this.Wn=R0,this.ud=Gu,this.vo=j0,this.Bq=Hy,this.$v=[],this.td=!0,this.Rb=W0,this.$d=new Re(10,10).freeze();var y=new Uc(this);this.W=new Hl(y),this.Y=new Hl(y),this.ru=[],a&&Object.assign(this,a)}xt(Jr,na),Jr.prototype.cloneProtected=function(a){na.prototype.cloneProtected.call(this,a),a.Wn=this.Wn,a.vo=this.vo,a.Bq=this.Bq,a.td=this.td,a.Rb=this.Rb,a.$d.assign(this.$d),a.W.copyInheritedPropertiesFrom(this.W),a.Y.copyInheritedPropertiesFrom(this.Y)},Jr.prototype.qb=function(a){a.classType===Jr?a.name.indexOf("Alignment")===0?this.alignment=a:a.name.indexOf("Arrangement")===0?this.arrangement=a:a.name.indexOf("Compaction")===0?this.compaction=a:a.name.indexOf("Path")===0?this.path=a:a.name.indexOf("Sorting")===0?this.sorting=a:a.name.indexOf("Style")===0?this.treeStyle=a:Ve("Unknown enum value: "+a):na.prototype.qb.call(this,a)},Jr.prototype.createNetwork=function(){return new Uc(this)},Jr.prototype.makeNetwork=function(a){function y(E){if(E instanceof Li)return!E.isLinkLabel&&E.category!=="Comment";if(E instanceof hi){var b=E.fromNode;return b===null||b.isLinkLabel||b.category==="Comment"?!1:(E=E.toNode,!(E===null||E.isLinkLabel||E.category==="Comment"))}return!1}var x=this.createNetwork();return a instanceof qt?(x.lg(a.nodes,!0,y),x.lg(a.links,!0,y)):a instanceof Or?x.lg(a.memberParts,!1,y):x.lg(a.iterator,!1,y),x},Jr.prototype.doLayout=function(a){this.network===null&&(this.network=this.makeNetwork(a)),this.arrangement!==H0&&(this.arrangementOrigin=this.initialOrigin(this.arrangementOrigin));var y=this.diagram;if(y===null&&a instanceof qt&&(y=a),this.path===R0&&y!==null?this.ud=y.isTreePathToChildren?Gu:Kc:this.ud=this.path===R0?Gu:this.path,0<this.network.vertexes.count){for(this.network.Ko(),a=this.network.vertexes.iterator;a.next();)y=a.value,y.initialized=!1,y.level=0,y.parent=null,y.children=[];if(0<this.Ub.count){for(a=new yn,y=this.Ub.iterator;y.next();){var x=y.value;x instanceof Li?(x=this.network.ki(x),x!==null&&a.add(x)):x instanceof Hl&&a.add(x)}this.Ub=a}for(this.Ub.count===0&&this.findRoots(),a=this.Ub.copy().iterator;a.next();)y=a.value,y.initialized||(y.initialized=!0,Dy(this,y));for(y=this.network.vertexes,a=null;a=rw(y),0<a.count;)y=ux(this,a),y!==null&&this.Ub.add(y),y.initialized=!0,Dy(this,y),y=a;for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&dx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&cx(this,y);for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&fx(this,y);if(this.Cu(),this.layerStyle===Z0){for(a=[],y=this.network.vertexes.iterator;y.next();){x=y.value;var E=x.parent;E===null&&(E=x),E=E.angle===0||E.angle===180;var b=a[x.level];b===void 0&&(b=0),a[x.level]=Math.max(b,E?x.width:x.height)}for(y=0;y<a.length;y++)a[y]===void 0&&(a[y]=0);for(this.$v=a,y=this.network.vertexes.iterator;y.next();)x=y.value,E=x.parent,E===null&&(E=x),E.angle===0||E.angle===180?(E.angle===180&&(x.focusX+=a[x.level]-x.width),x.width=a[x.level]):(E.angle===270&&(x.focusY+=a[x.level]-x.height),x.height=a[x.level])}else if(this.layerStyle===Zy)for(a=this.network.vertexes.iterator;a.next();){for(y=a.value,x=y.angle===0||y.angle===180,E=-1,b=0;b<y.children.length;b++){var z=y.children[b];E=Math.max(E,x?z.width:z.height)}if(0<=E)for(b=0;b<y.children.length;b++)z=y.children[b],x?(y.angle===180&&(z.focusX+=E-z.width),z.width=E):(y.angle===270&&(z.focusY+=E-z.height),z.height=E)}for(a=this.Ub.iterator;a.next();)y=a.value,y instanceof Hl&&this.layoutTree(y);this.arrangeTrees(),this.updateParts()}this.network=null,this.Ub=new yn,this.isValidLayout=!0};function rw(a){var y=new yn;for(a=a.iterator;a.next();){var x=a.value;x.initialized||y.add(x)}return y}Jr.prototype.findRoots=function(){for(var a=this.network.vertexes,y=a.iterator;y.next();){var x=y.value;switch(this.ud){case Gu:x.sourceEdges.count===0&&this.Ub.add(x);break;case Kc:x.destinationEdges.count===0&&this.Ub.add(x);break;default:Ve("Unhandled path value "+this.ud.toString())}}this.Ub.count===0&&(a=ux(this,a),a!==null&&this.Ub.add(a))};function ux(a,y){var x=999999,E=null;for(y=y.iterator;y.next();){var b=y.value;switch(a.ud){case Gu:b.sourceEdges.count<x&&(x=b.sourceEdges.count,E=b);break;case Kc:b.destinationEdges.count<x&&(x=b.destinationEdges.count,E=b);break;default:Ve("Unhandled path value "+a.ud.toString())}}return E}function Dy(a,y){if(y!==null){switch(a.ud){case Gu:if(0<y.destinationEdges.count){for(var x=new cn,E=y.destinationVertexes;E.next();){var b=E.value;hx(a,y,b)&&x.add(b)}0<x.count&&(y.children=x.Fa())}break;case Kc:if(0<y.sourceEdges.count){for(x=new cn,E=y.sourceVertexes;E.next();)b=E.value,hx(a,y,b)&&x.add(b);0<x.count&&(y.children=x.Fa())}break;default:Ve("Unhandled path value"+a.ud.toString())}for(x=y.children,E=x.length,b=0;b<E;b++){var z=x[b];z.initialized=!0,z.level=y.level+1,z.parent=y,a.Ub.remove(z)}for(y=0;y<E;y++)Dy(a,x[y])}}function hx(a,y,x){if(x.initialized){if(y===null)var E=!1;else{for(E=y.parent;E!==null&&E!==x;)E=E.parent;E=E===x}if(E||x.level>y.level)return!1;a.removeChild(x.parent,x)}return!0}Jr.prototype.removeChild=function(a,y){if(a!==null&&y!==null){for(var x=a.children,E=0,b=0;b<x.length;b++)x[b]===y&&E++;if(0<E){E=Array(x.length-E);for(var z=b=0;z<x.length;z++)x[z]!==y&&(E[b++]=x[z]);a.children=E}}};function dx(a,y){if(y!==null){a.initializeTreeVertexValues(y),y.alignment===Uu&&a.sortTreeVertexChildren(y);for(var x=0,E=y.childrenCount,b=0,z=y.children,ee=z.length,re=0;re<ee;re++){var oe=z[re];dx(a,oe),x+=oe.descendantCount+1,E=Math.max(E,oe.maxChildrenCount),b=Math.max(b,oe.maxGenerationCount)}y.descendantCount=x,y.maxChildrenCount=E,y.maxGenerationCount=0<E?b+1:0}}function ow(a,y){switch(a.vo){default:case j0:return y.parent!==null?y.parent:a.W;case jy:return y.parent===null?a.W:y.parent.parent===null?a.Y:y.parent;case zy:return y.parent!==null?y.parent.parent!==null?y.parent.parent:a.Y:a.W;case Ry:var x=!0;if(y.childrenCount===0)x=!1;else for(var E=y.children,b=E.length,z=0;z<b;z++)if(0<E[z].childrenCount){x=!1;break}return x&&y.parent!==null?a.Y:y.parent!==null?y.parent:a.W}}Jr.prototype.initializeTreeVertexValues=function(a){if(a.copyInheritedPropertiesFrom(ow(this,a)),a.parent!==null&&a.parent.alignment===Uu){for(var y=a.angle,x=a.parent.children,E=0;E<x.length&&a!==x[E];)E++;E%2===0?E!==x.length-1&&(y=y===90?180:y===180?270:y===270?180:270):y=y===90?0:y===180?90:y===270?0:90,a.angle=y}a.initialized=!0};function cx(a,y){if(y!==null){a.assignTreeVertexValues(y),y=y.children;for(var x=y.length,E=0;E<x;E++)cx(a,y[E])}}Jr.prototype.assignTreeVertexValues=function(){};function fx(a,y){if(y!==null){y.alignment!==Uu&&a.sortTreeVertexChildren(y),y=y.children;for(var x=y.length,E=0;E<x;E++)fx(a,y[E])}}Jr.prototype.sortTreeVertexChildren=function(a){switch(a.sorting){case $f:break;case Dp:a.children.reverse();break;case Np:a.children.sort(a.comparer);break;case Bp:a.children.sort(a.comparer),a.children.reverse();break;default:Ve("Unhandled sorting value "+a.sorting.toString())}},Jr.prototype.Cu=function(){if(this.comments)for(var a=this.network.vertexes.iterator;a.next();)this.addComments(a.value)},Jr.prototype.addComments=function(a){var y=a.angle,x=a.parent,E=0,b=!1;x!==null&&(E=x.angle,b=x.alignment,b=Pd(b)),y=y===90||y===270,E=E===90||E===270,x=a.childrenCount===0;var z=0,ee=0,re=0,oe=a.commentSpacing;if(a.node!==null)for(var se=a.node.Mu();se.next();){var ue=se.value;ue.category==="Comment"&&ue.canLayout()&&(a.comments===null&&(a.comments=[]),a.comments.push(ue),ue.Va(),ue=ue.measuredBounds,y&&!x||!b&&!E&&x||b&&E&&x?(z=Math.max(z,ue.width),ee+=ue.height+Math.abs(re)):(z+=ue.width+Math.abs(re),ee=Math.max(ee,ue.height)),re=oe)}a.comments!==null&&(y&&!x||!b&&!E&&x||b&&E&&x?(z+=Math.abs(a.commentMargin),ee=Math.max(0,ee-a.height)):(ee+=Math.abs(a.commentMargin),z=Math.max(0,z-a.width)),b=ut.allocAt(0,0,a.bounds.width+z,a.bounds.height+ee),a.bounds=b,ut.free(b))};function Pd(a){return a===Rh||a===Uu||a===zh||a===lh}function Fp(a){return a===Rh||a===Uu}function Ny(a){var y=a.parent;if(y!==null){var x=y.alignment;if(Pd(x)){if(Fp(x)){for(y=y.children,x=0;x<y.length&&a!==y[x];)x++;return x%2===0}if(x===zh)return!0}}return!1}Jr.prototype.layoutComments=function(a){if(a.comments!==null){var y=a.node.measuredBounds,x=a.parent,E=a.angle,b=0,z=!1;x!==null&&(b=x.angle,z=x.alignment,z=Pd(z)),E=E===90||E===270,x=b===90||b===270;for(var ee=a.childrenCount===0,re=Ny(a),oe=0,se=a.comments,ue=se.length,fe=Te.alloc(),ve=0;ve<ue;ve++){var xe=se[ve],Pe=xe.measuredBounds;if(E&&!ee||!z&&!x&&ee||z&&x&&ee){if(135<b&&!z||x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x-a.commentMargin-Pe.width,a.bounds.y+oe),xe.move(fe),xe=xe.Sd();xe.next();){var Fe=xe.value;Fe.fromSpot=yo,Fe.toSpot=vo}else for(fe.h(a.bounds.x+2*a.focus.x-a.commentMargin,a.bounds.y+oe),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=vo,Fe.toSpot=yo;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+2*a.focus.x+a.commentMargin,a.bounds.y+oe),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=vo,Fe.toSpot=yo;else for(fe.h(a.bounds.x+a.commentMargin-Pe.width,a.bounds.y+oe),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=yo,Fe.toSpot=vo;oe=0<=a.commentSpacing?oe+(Pe.height+a.commentSpacing):oe+(a.commentSpacing-Pe.height)}else{if(135<b&&!z||!x&&re)if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y-a.commentMargin-Pe.height),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=bo,Fe.toSpot=Qo;else for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y-a.commentMargin),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=Qo,Fe.toSpot=bo;else if(0<=a.commentMargin)for(fe.h(a.bounds.x+oe,a.bounds.y+2*a.focus.y+a.commentMargin),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=Qo,Fe.toSpot=bo;else for(fe.h(a.bounds.x+oe,a.bounds.y+a.commentMargin-Pe.height),xe.move(fe),xe=xe.Sd();xe.next();)Fe=xe.value,Fe.fromSpot=bo,Fe.toSpot=Qo;oe=0<=a.commentSpacing?oe+(Pe.width+a.commentSpacing):oe+(a.commentSpacing-Pe.width)}}if(Te.free(fe),y=oe-a.commentSpacing-(E?y.height:y.width),this.ud===Gu)for(a=a.destinationEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.fromEndSegmentLength=0<y?y:NaN);else for(a=a.sourceEdges;a.next();)b=a.value.link,b===null||b.isAvoiding||(b.toEndSegmentLength=0<y?y:NaN)}},Jr.prototype.layoutTree=function(a){if(a!==null){for(var y=a.children,x=y.length,E=0;E<x;E++)this.layoutTree(y[E]);switch(a.compaction){case z0:gx(this,a);break;case Tp:if(a.alignment===Uu)gx(this,a);else if(a.childrenCount===0)E=a.parent,x=!1,y=0,E!==null&&(y=E.angle,x=E.alignment,x=Pd(x)),E=Ny(a),a.S.h(0,0),a.Da.h(a.width,a.height),a.parent===null||a.comments===null||(y!==180&&y!==270||x)&&!E?a.la.h(0,0):y===180&&!x||(y===90||y===270)&&E?a.la.h(a.width-2*a.focus.x,0):a.la.h(0,a.height-2*a.focus.y),a.Yo=null,a.kp=null;else{var b=nu(a);y=b===90||b===270;var z=0,ee=a.children,re=ee.length;for(x=0;x<re;x++)E=ee[x],z=Math.max(z,y?E.Da.width:E.Da.height);var oe=a.alignment;E=oe===Ku;var se=oe===Yu,ue=Pd(oe),fe=Math.max(0,a.breadthLimit);x=this.computeLayerSpacing(a);var ve=a.nodeSpacing,xe=this.computeNodeIndent(a),Pe=a.rowSpacing,Fe=0;(E||se||a.hm||a.im&&a.maxGenerationCount===1)&&(Fe=Math.max(0,a.rowIndent)),E=a.width;var Je=a.height,We=0,rt=0,at=0,ht=null,bt=null,Jt=0,Ci=0,ji=0,Ti=0,ui=0,In=0,Tr=0,Lr=0;if(ue&&!Fp(oe)&&135<b&&ee.reverse(),Fp(oe))if(1<re)for(var ho=0;ho<re;ho++)ho%2===0&&ho!==re-1&&(Lr=Math.max(Lr,y?ee[ho].Da.width:ee[ho].Da.height));else re===1&&(Lr=y?ee[0].Da.width:ee[0].Da.height);if(ue){switch(oe){case Rh:rt=135>b?px(this,a,ee,Lr,We,rt):mx(this,a,ee,Lr,We,rt),Lr=rt.x,We=rt.width,rt=rt.height;break;case zh:for(ht=0;ht<re;ht++)bt=ee[ht],fe=bt.Da,at=In===0?0:Pe,y?(bt.S.h(z-fe.width,Ti+at),We=Math.max(We,fe.width),rt=Math.max(rt,Ti+at+fe.height),Ti+=at+fe.height):(bt.S.h(ji+at,z-fe.height),We=Math.max(We,ji+at+fe.width),rt=Math.max(rt,fe.height),ji+=at+fe.width),In++;break;case lh:for(ht=0;ht<re;ht++)bt=ee[ht],z=bt.Da,fe=In===0?0:Pe,y?(bt.S.h(ve/2+a.focus.x,Ti+fe),We=Math.max(We,z.width),rt=Math.max(rt,Ti+fe+z.height),Ti+=fe+z.height):(bt.S.h(ji+fe,ve/2+a.focus.y),We=Math.max(We,ji+fe+z.width),rt=Math.max(rt,z.height),ji+=fe+z.width),In++}ht=Us(this,2),bt=Us(this,2),y?(ht[0].h(0,0),ht[1].h(0,rt),bt[0].h(We,0)):(ht[0].h(0,0),ht[1].h(We,0),bt[0].h(0,rt)),bt[1].h(We,rt)}else for(ho=0;ho<re;ho++){var Io=ee[ho],Wa=Io.Da;if(y){0<fe&&0<In&&ji+ve+Wa.width>fe&&(ji<z&&rc(a,oe,z-ji,0,Tr,ho-1),ui++,In=0,Tr=ho,at=rt,ji=0,Ti=135<b?-rt-Pe:rt+Pe),O0(this,Io,0,Ti);var Ka=0;if(In===0)ht=Io.Yo,bt=Io.kp,Jt=Wa.width,Ci=Wa.height,(ht===null||bt===null||b!==nu(Io))&&(ht=Us(this,2),bt=Us(this,2),ht[0].h(0,0),ht[1].h(0,Ci),bt[0].h(Jt,0),bt[1].h(Jt,Ci));else{var xs=si();Ci=vx(this,a,Io,ht,bt,Jt,Ci,xs),Ka=Ci.x,ht=xs[0],bt=xs[1],Jt=Ci.width,Ci=Ci.height,Pi(xs),ji<Wa.width&&0>Ka&&(Gc(a,-Ka,0,Tr,ho-1),I0(ht,-Ka,0),I0(bt,-Ka,0),Ka=0)}Io.S.h(Ka,Ti),We=Math.max(We,Jt),rt=Math.max(rt,at+(ui===0?0:Pe)+Wa.height),ji=Jt}else 0<fe&&0<In&&Ti+ve+Wa.height>fe&&(Ti<z&&rc(a,oe,0,z-Ti,Tr,ho-1),ui++,In=0,Tr=ho,at=We,Ti=0,ji=135<b?-We-Pe:We+Pe),O0(this,Io,ji,0),Ka=0,In===0?(ht=Io.Yo,bt=Io.kp,Jt=Wa.width,Ci=Wa.height,(ht===null||bt===null||b!==nu(Io))&&(ht=Us(this,2),bt=Us(this,2),ht[0].h(0,0),ht[1].h(Jt,0),bt[0].h(0,Ci),bt[1].h(Jt,Ci))):(xs=si(),Ci=vx(this,a,Io,ht,bt,Jt,Ci,xs),Ka=Ci.x,ht=xs[0],bt=xs[1],Jt=Ci.width,Ci=Ci.height,Pi(xs),Ti<Wa.height&&0>Ka&&(Gc(a,0,-Ka,Tr,ho-1),I0(ht,0,-Ka),I0(bt,0,-Ka),Ka=0)),Io.S.h(ji,Ka),rt=Math.max(rt,Ci),We=Math.max(We,at+(ui===0?0:Pe)+Wa.width),Ti=Ci;In++}switch(0<ui&&(y?(rt+=Math.max(0,x),ji<We&&rc(a,oe,We-ji,0,Tr,re-1),0<Fe&&(se||Gc(a,Fe,0,0,re-1),We+=Fe)):(We+=Math.max(0,x),Ti<rt&&rc(a,oe,0,rt-Ti,Tr,re-1),0<Fe&&(se||Gc(a,0,Fe,0,re-1),rt+=Fe))),Fe=se=0,oe){case eg:y?se+=We/2-a.focus.x-xe/2:Fe+=rt/2-a.focus.y-xe/2;break;case Yc:0<ui?y?se+=We/2-a.focus.x-xe/2:Fe+=rt/2-a.focus.y-xe/2:y?(Lr=ee[0].S.x+ee[0].la.x,se+=Lr+(ee[re-1].S.x+ee[re-1].la.x+2*ee[re-1].focus.x-Lr)/2-a.focus.x-xe/2):(Lr=ee[0].S.y+ee[0].la.y,Fe+=Lr+(ee[re-1].S.y+ee[re-1].la.y+2*ee[re-1].focus.y-Lr)/2-a.focus.y-xe/2);break;case Ku:y?(se-=xe,We+=xe):(Fe-=xe,rt+=xe);break;case Yu:y?(se+=We-a.width+xe,We+=xe):(Fe+=rt-a.height+xe,rt+=xe);break;case Rh:y?1<re?se+=Lr+ve/2-a.focus.x:se+=ee[0].focus.x-a.focus.x+ee[0].la.x:1<re?Fe+=Lr+ve/2-a.focus.y:Fe+=ee[0].focus.y-a.focus.y+ee[0].la.y;break;case zh:y?se+=We+ve/2-a.focus.x:Fe+=rt+ve/2-a.focus.y;break;case lh:break;default:rt=this.customAlignment(a,se,Fe,We,rt),se=rt[0],Fe=rt[1],We=rt[2],rt=rt[3]}for(xe=0;xe<re;xe++)Lr=ee[xe],y?Lr.S.h(Lr.S.x+Lr.la.x-se,Lr.S.y+(135<b?(ue?-rt:-Lr.Da.height)+Lr.la.y-x:Je+x+Lr.la.y)):Lr.S.h(Lr.S.x+(135<b?(ue?-We:-Lr.Da.width)+Lr.la.x-x:E+x+Lr.la.x),Lr.S.y+Lr.la.y-Fe);if(re=ee=0,ue?y?(We=By(a,We,se),0>se&&(se=0),135<b&&(Fe+=rt+x),rt+=Je+x,oe===lh&&(ee+=ve/2+a.focus.x),re+=Je+x):(135<b&&(se+=We+x),We+=E+x,rt=Ty(a,rt,Fe),0>Fe&&(Fe=0),oe===lh&&(re+=ve/2+a.focus.y),ee+=E+x):y?(a.comments===null?E>We&&(We=Oy(oe,E-We,0),ee=We.x,re=We.y,We=E,se=0):We=By(a,We,se),0>se&&(ee-=se,se=0),135<b&&(Fe+=rt+x),rt=Math.max(Math.max(rt,Je),rt+Je+x),re+=Je+x):(135<b&&(se+=We+x),We=Math.max(Math.max(We,E),We+E+x),a.comments===null?Je>rt&&(rt=Oy(oe,0,Je-rt),ee=rt.x,re=rt.y,rt=Je,Fe=0):rt=Ty(a,rt,Fe),0>Fe&&(re-=Fe,Fe=0),ee+=E+x),0<ui)b=Us(this,4),ui=Us(this,4),y?(b[2].h(0,Je+x),b[3].h(b[2].x,rt),ui[2].h(We,b[2].y),ui[3].h(ui[2].x,b[3].y)):(b[2].h(E+x,0),b[3].h(We,b[2].y),ui[2].h(b[2].x,rt),ui[3].h(b[3].x,ui[2].y));else{for(b=Us(this,ht.length+2),ui=Us(this,bt.length+2),oe=0;oe<ht.length;oe++)ue=ht[oe],b[oe+2].h(ue.x+ee,ue.y+re);for(oe=0;oe<bt.length;oe++)ue=bt[oe],ui[oe+2].h(ue.x+ee,ue.y+re)}y?(b[0].h(se,0),b[1].h(b[0].x,Je),b[2].y<b[1].y&&(b[2].x>b[0].x?b[2].assign(b[1]):b[1].assign(b[2])),b[3].y<b[2].y&&(b[3].x>b[0].x?b[3].assign(b[2]):b[2].assign(b[3])),ui[0].h(se+E,0),ui[1].h(ui[0].x,Je),ui[2].y<ui[1].y&&(ui[2].x<ui[0].x?ui[2].assign(ui[1]):ui[1].assign(ui[2])),ui[3].y<ui[2].y&&(ui[3].x<ui[0].x?ui[3].assign(ui[2]):ui[2].assign(ui[3])),b[2].y-=x/2,ui[2].y-=x/2):(b[0].h(0,Fe),b[1].h(E,b[0].y),b[2].x<b[1].x&&(b[2].y>b[0].y?b[2].assign(b[1]):b[1].assign(b[2])),b[3].x<b[2].x&&(b[3].y>b[0].y?b[3].assign(b[2]):b[2].assign(b[3])),ui[0].h(0,Fe+Je),ui[1].h(E,ui[0].y),ui[2].x<ui[1].x&&(ui[2].y<ui[0].y?ui[2].assign(ui[1]):ui[1].assign(ui[2])),ui[3].x<ui[2].x&&(ui[3].y<ui[0].y?ui[3].assign(ui[2]):ui[2].assign(ui[3])),b[2].x-=x/2,ui[2].x-=x/2),du(this,ht),du(this,bt),a.Yo=b,a.kp=ui,a.la.h(se,Fe),a.Da.h(We,rt)}break;default:Ve("Unhandled compaction value "+a.compaction.toString())}}};function gx(a,y){if(y.childrenCount===0){var x=!1,E=0;y.parent!==null&&(E=y.parent.angle,x=y.parent.alignment,x=Pd(x));var b=Ny(y);y.S.h(0,0),y.Da.h(y.width,y.height),y.parent===null||y.comments===null||(E!==180&&E!==270||x)&&!b?y.la.h(0,0):E===180&&!x||(E===90||E===270)&&b?y.la.h(y.width-2*y.focus.x,0):y.la.h(0,y.height-2*y.focus.y)}else{E=nu(y),x=E===90||E===270;var z=0;b=y.children;for(var ee=b.length,re=0;re<ee;re++){var oe=b[re];z=Math.max(z,x?oe.Da.width:oe.Da.height)}var se=y.alignment,ue=se===Ku,fe=se===Yu;re=Pd(se);var ve=Math.max(0,y.breadthLimit);oe=a.computeLayerSpacing(y);var xe=y.nodeSpacing,Pe=a.computeNodeIndent(y),Fe=ue||fe?0:Pe/2,Je=y.rowSpacing,We=0;(ue||fe||y.hm||y.im&&y.maxGenerationCount===1)&&(We=Math.max(0,y.rowIndent)),ue=y.width;var rt=y.height,at=0,ht=0,bt=0,Jt=0,Ci=0,ji=0,Ti=0,ui=0,In=0,Tr=0;if(re&&!Fp(se)&&135<E&&b.reverse(),Fp(se))if(1<ee)for(var Lr=0;Lr<ee;Lr++){var ho=b[Lr],Io=ho.Da;Lr%2===0&&Lr!==ee-1?In=Math.max(In,(x?Io.width:Io.height)+a.computeBusNodeSpacing(ho)-xe):Lr%2!==0&&(Tr=Math.max(Tr,(x?Io.width:Io.height)+a.computeBusNodeSpacing(ho)-xe))}else ee===1&&(In=x?b[0].Da.width:b[0].Da.height);if(re)switch(se){case Rh:case Uu:ht=135>E?px(a,y,b,In,at,ht):mx(a,y,b,In,at,ht),In=ht.x,at=ht.width,ht=ht.height;break;case zh:for(ve=0;ve<ee;ve++)Fe=b[ve],bt=Fe.Da,Tr=Ti===0?0:Je,x?(Fe.S.h(z-bt.width,Ci+Tr),at=Math.max(at,bt.width),ht=Math.max(ht,Ci+Tr+bt.height),Ci+=Tr+bt.height):(Fe.S.h(Jt+Tr,z-bt.height),at=Math.max(at,Jt+Tr+bt.width),ht=Math.max(ht,bt.height),Jt+=Tr+bt.width),Ti++;break;case lh:for(z=0;z<ee;z++)ve=b[z],Fe=ve.Da,bt=Ti===0?0:Je,x?(ve.S.h(xe/2+y.focus.x,Ci+bt),at=Math.max(at,Fe.width),ht=Math.max(ht,Ci+bt+Fe.height),Ci+=bt+Fe.height):(ve.S.h(Jt+bt,xe/2+y.focus.y),at=Math.max(at,Jt+bt+Fe.width),ht=Math.max(ht,Fe.height),Jt+=bt+Fe.width),Ti++}else for(Tr=0;Tr<ee;Tr++)Lr=b[Tr],ho=Lr.Da,x?(0<ve&&0<Ti&&Jt+xe+ho.width>ve&&(Jt<z&&rc(y,se,z-Jt,0,ui,Tr-1),ji++,Ti=0,ui=Tr,bt=ht,Jt=0,Ci=135<E?-ht-Je:ht+Je),Io=Ti===0?Fe:xe,O0(a,Lr,0,Ci),Lr.S.h(Jt+Io,Ci),at=Math.max(at,Jt+Io+ho.width),ht=Math.max(ht,bt+(ji===0?0:Je)+ho.height),Jt+=Io+ho.width):(0<ve&&0<Ti&&Ci+xe+ho.height>ve&&(Ci<z&&rc(y,se,0,z-Ci,ui,Tr-1),ji++,Ti=0,ui=Tr,bt=at,Ci=0,Jt=135<E?-at-Je:at+Je),Io=Ti===0?Fe:xe,O0(a,Lr,Jt,0),Lr.S.h(Jt,Ci+Io),ht=Math.max(ht,Ci+Io+ho.height),at=Math.max(at,bt+(ji===0?0:Je)+ho.width),Ci+=Io+ho.height),Ti++;switch(0<ji&&(x?(ht+=Math.max(0,oe),Jt<at&&rc(y,se,at-Jt,0,ui,ee-1),0<We&&(fe||Gc(y,We,0,0,ee-1),at+=We)):(at+=Math.max(0,oe),Ci<ht&&rc(y,se,0,ht-Ci,ui,ee-1),0<We&&(fe||Gc(y,0,We,0,ee-1),ht+=We))),We=fe=0,se){case eg:x?fe+=at/2-y.focus.x-Pe/2:We+=ht/2-y.focus.y-Pe/2;break;case Yc:0<ji?x?fe+=at/2-y.focus.x-Pe/2:We+=ht/2-y.focus.y-Pe/2:x?(a=b[0].S.x+b[0].la.x,fe+=a+(b[ee-1].S.x+b[ee-1].la.x+2*b[ee-1].focus.x-a)/2-y.focus.x-Pe/2):(a=b[0].S.y+b[0].la.y,We+=a+(b[ee-1].S.y+b[ee-1].la.y+2*b[ee-1].focus.y-a)/2-y.focus.y-Pe/2);break;case Ku:x?(fe-=Pe,at+=Pe):(We-=Pe,ht+=Pe);break;case Yu:x?(fe+=at-y.width+Pe,at+=Pe):(We+=ht-y.height+Pe,ht+=Pe);break;case Rh:case Uu:x?1<ee?fe+=In+xe/2-y.focus.x:fe+=b[0].focus.x-y.focus.x+b[0].la.x:1<ee?We+=In+xe/2-y.focus.y:We+=b[0].focus.y-y.focus.y+b[0].la.y;break;case zh:x?fe+=at+xe/2-y.focus.x:We+=ht+xe/2-y.focus.y;break;case lh:break;default:a=a.customAlignment(y,fe,We,at,ht),fe=a[0],We=a[1],at=a[2],ht=a[3]}for(a=0;a<ee;a++)Pe=b[a],x?Pe.S.h(Pe.S.x+Pe.la.x-fe,Pe.S.y+(135<E?(re?-ht:-Pe.Da.height)+Pe.la.y-oe:rt+oe+Pe.la.y)):Pe.S.h(Pe.S.x+(135<E?(re?-at:-Pe.Da.width)+Pe.la.x-oe:ue+oe+Pe.la.x),Pe.S.y+Pe.la.y-We);x?(at=By(y,at,fe),0>fe&&(fe=0),135<E&&(We+=ht+oe),ht=Math.max(Math.max(ht,rt),ht+rt+oe)):(135<E&&(fe+=at+oe),at=Math.max(Math.max(at,ue),at+ue+oe),ht=Ty(y,ht,We),0>We&&(We=0)),y.la.h(fe,We),y.Da.h(at,ht)}}Jr.prototype.customAlignment=function(a,y,x,E,b){return[y,x,E,b]};function px(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new ut(E,0,b,z);if(ee===1)return y=x[0],b=y.Da.width,z=y.Da.height,new ut(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=nu(y)===90,ue=0,fe=0,ve=0,xe=0;xe<ee;xe++)if(!(xe%2!==0||1<ee&&xe===ee-1)){var Pe=x[xe],Fe=Pe.Da,Je=ue===0?0:oe;if(se){var We=a.computeBusNodeSpacing(Pe)-re;Pe.S.h(E-(Fe.width+We),ve+Je),b=Math.max(b,Fe.width+We),z=Math.max(z,ve+Je+Fe.height),ve+=Je+Fe.height}else We=a.computeBusNodeSpacing(Pe)-re,Pe.S.h(fe+Je,E-(Fe.height+We)),z=Math.max(z,Fe.height+We),b=Math.max(b,fe+Je+Fe.width),fe+=Je+Fe.width;ue++}for(ue=0,Pe=fe,xe=ve,se?(fe=E+re,ve=0):(fe=0,ve=E+re),Fe=0;Fe<ee;Fe++)if(Fe%2!==0){Je=x[Fe],We=Je.Da;var rt=ue===0?0:oe;if(se){var at=a.computeBusNodeSpacing(Je)-re;Je.S.h(fe+at,ve+rt),b=Math.max(b,fe+We.width+at),z=Math.max(z,ve+rt+We.height),ve+=rt+We.height}else at=a.computeBusNodeSpacing(Je)-re,Je.S.h(fe+rt,ve+at),b=Math.max(b,fe+rt+We.width),z=Math.max(z,ve+We.height+at),fe+=rt+We.width;ue++}return 1<ee&&ee%2===1&&(x=x[ee-1],ee=x.Da,a=a.computeBusLastRowSpacing(x,se?Math.max(Math.abs(xe),Math.abs(ve)):Math.max(Math.abs(Pe),Math.abs(fe))),se?(x.S.h(E+re/2-x.focus.x-x.la.x,z+a),se=E+re/2-x.focus.x-x.la.x,b=Math.max(b,se+ee.width),0>se&&(b-=se),z=Math.max(z,Math.max(xe,ve)+a+ee.height),0>x.S.x&&(E=T0(y,x.S.x,!1,E,re))):(x.S.h(b+a,E+re/2-x.focus.y-x.la.y),b=Math.max(b,Math.max(Pe,fe)+a+ee.width),ve=E+re/2-x.focus.y-x.la.y,z=Math.max(z,ve+ee.height),0>ve&&(z-=ve),0>x.S.y&&(E=T0(y,x.S.y,!0,E,re)))),new ut(E,0,b,z)}function mx(a,y,x,E,b,z){var ee=x.length;if(ee===0)return new ut(E,0,b,z);if(ee===1)return x=x[0],b=x.Da.width,z=x.Da.height,new ut(E,0,b,z);for(var re=y.nodeSpacing,oe=y.rowSpacing,se=nu(y)===270,ue=0,fe=0,ve=0,xe=0;xe<ee;xe++)if(!(xe%2!==0||1<ee&&xe===ee-1)){var Pe=x[xe],Fe=Pe.Da,Je=ue===0?0:oe;if(se){var We=a.computeBusNodeSpacing(Pe)-re;ve-=Je+Fe.height,Pe.S.h(E-(Fe.width+We),ve),b=Math.max(b,Fe.width+We),z=Math.max(z,Math.abs(ve))}else We=a.computeBusNodeSpacing(Pe)-re,fe-=Je+Fe.width,Pe.S.h(fe,E-(Fe.height+We)),z=Math.max(z,Fe.height+We),b=Math.max(b,Math.abs(fe));ue++}for(ue=0,Pe=fe,xe=ve,se?(fe=E+re,ve=0):(fe=0,ve=E+re),Fe=0;Fe<ee;Fe++)if(Fe%2!==0){Je=x[Fe],We=Je.Da;var rt=ue===0?0:oe;if(se){var at=a.computeBusNodeSpacing(Je)-re;ve-=rt+We.height,Je.S.h(fe+at,ve),b=Math.max(b,fe+We.width+at),z=Math.max(z,Math.abs(ve))}else at=a.computeBusNodeSpacing(Je)-re,fe-=rt+We.width,Je.S.h(fe,ve+at),z=Math.max(z,ve+We.height+at),b=Math.max(b,Math.abs(fe));ue++}for(1<ee&&ee%2===1&&(oe=x[ee-1],ue=oe.Da,a=a.computeBusLastRowSpacing(oe,se?Math.max(Math.abs(xe),Math.abs(ve)):Math.max(Math.abs(Pe),Math.abs(fe))),se?(oe.S.h(E+re/2-oe.focus.x-oe.la.x,-z-ue.height-a),fe=E+re/2-oe.focus.x-oe.la.x,b=Math.max(b,fe+ue.width),0>fe&&(b-=fe),z=Math.max(z,Math.abs(Math.min(xe,ve))+a+ue.height),0>oe.S.x&&(E=T0(y,oe.S.x,!1,E,re))):(oe.S.h(-b-ue.width-a,E+re/2-oe.focus.y-oe.la.y),b=Math.max(b,Math.abs(Math.min(Pe,fe))+a+ue.width),ve=E+re/2-oe.focus.y-oe.la.y,z=Math.max(z,ve+ue.height),0>ve&&(z-=ve),0>oe.S.y&&(E=T0(y,oe.S.y,!0,E,re)))),y=0;y<ee;y++)re=x[y],se?re.S.h(re.S.x,re.S.y+z):re.S.h(re.S.x+b,re.S.y);return new ut(E,0,b,z)}Jr.prototype.computeBusNodeSpacing=function(a){return a.parent===null?0:a.parent.nodeSpacing},Jr.prototype.computeBusLastRowSpacing=function(a){return a.parent===null?0:a.parent.rowSpacing};function T0(a,y,x,E,b){a=a.children;for(var z=a.length,ee=0;ee<z;ee++)x?a[ee].S.h(a[ee].S.x,a[ee].S.y-y):a[ee].S.h(a[ee].S.x-y,a[ee].S.y);return y=a[z-1],Math.max(E,x?y.la.y+y.focus.y-b/2:y.la.x+y.focus.x-b/2)}function By(a,y,x){switch(a.alignment){case Yc:case eg:return x+a.width>y&&(y=x+a.width),0>x&&(y-=x),y;case Ku:return a.width>y?a.width:y;case Yu:return 2*a.focus.x>y?a.width:y+a.width-2*a.focus.x;case Rh:case Uu:return Math.max(a.width,Math.max(y,x+a.width)-Math.min(0,x));case zh:return a.width-a.focus.x+a.nodeSpacing/2+y;case lh:return Math.max(a.width,a.focus.x+a.nodeSpacing/2+y);default:return y}}function Ty(a,y,x){switch(a.alignment){case Yc:case eg:return x+a.height>y&&(y=x+a.height),0>x&&(y-=x),y;case Ku:return a.height>y?a.height:y;case Yu:return 2*a.focus.y>y?a.height:y+a.height-2*a.focus.y;case Rh:case Uu:return Math.max(a.height,Math.max(y,x+a.height)-Math.min(0,x));case zh:return a.height-a.focus.y+a.nodeSpacing/2+y;case lh:return Math.max(a.height,a.focus.y+a.nodeSpacing/2+y);default:return y}}function Oy(a,y,x){switch(a){case eg:y/=2,x/=2;break;case Yc:y/=2,x/=2;break;case Ku:x=y=0;break;case Yu:break;default:Ve("Unhandled alignment value "+a.toString())}return new Te(y,x)}function rc(a,y,x,E,b,z){y=Oy(y,x,E),Gc(a,y.x,y.y,b,z)}function Gc(a,y,x,E,b){if(y!==0||x!==0)for(a=a.children;E<=b;E++){var z=a[E].S;z.x+=y,z.y+=x}}function O0(a,y,x,E){var b=y.parent;switch(a.ud){case Gu:for(a=y.sourceEdges;a.next();)y=a.value,y.fromVertex===b&&y.relativePoint.h(x,E);break;case Kc:for(a=y.destinationEdges;a.next();)y=a.value,y.toVertex===b&&y.relativePoint.h(x,E);break;default:Ve("Unhandled path value "+a.ud.toString())}}function I0(a,y,x){for(var E=0;E<a.length;E++){var b=a[E];b.x+=y,b.y+=x}}function vx(a,y,x,E,b,z,ee,re){var oe=nu(y),se=oe===90||oe===270,ue=y.nodeSpacing;y=E;var fe=b;E=z;var ve=ee,xe=x.Yo,Pe=x.kp;ee=x.Da;var Fe=se?Math.max(ve,ee.height):Math.max(E,ee.width);if((xe===null||oe!==nu(x))&&(xe=Us(a,2),Pe=Us(a,2),se?(xe[0].h(0,0),xe[1].h(0,ee.height),Pe[0].h(ee.width,0),Pe[1].h(Pe[0].x,xe[1].y)):(xe[0].h(0,0),xe[1].h(ee.width,0),Pe[0].h(0,ee.height),Pe[1].h(xe[1].x,Pe[0].y))),se){if(ve=9999999,!(fe===null||2>fe.length||xe===null||2>xe.length))for(b=x=0;x<fe.length&&b<xe.length;){z=fe[x];var Je=xe[b];oe=Je.x,se=Je.y,oe+=E;var We=z;x+1<fe.length&&(We=fe[x+1]);var rt=Je;Je=rt.x,rt=rt.y,b+1<xe.length&&(rt=xe[b+1],Je=rt.x,rt=rt.y,Je+=E);var at=ve;z.y===se?at=oe-z.x:z.y>se&&z.y<rt?at=oe+(z.y-se)/(rt-se)*(Je-oe)-z.x:se>z.y&&se<We.y&&(at=oe-(z.x+(se-z.y)/(We.y-z.y)*(We.x-z.x))),at<ve&&(ve=at),We.y<=z.y?x++:rt<=se?b++:(We.y<=rt&&x++,rt<=We.y&&b++)}if(ve=E-ve,ve+=ue,x=xe,b=ve,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ue=Us(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].y<y[0].y;)se=x[z++],ue[E++].h(se.x+b,se.y);for(;oe<y.length;)se=y[oe++],ue[E++].h(se.x,se.y);for(oe=y[y.length-1].y;z<x.length&&x[z].y<=oe;)z++;for(;z<x.length&&x[z].y>oe;)se=x[z++],ue[E++].h(se.x+b,se.y);for(x=Us(a,E),oe=0;oe<E;oe++)x[oe].assign(ue[oe]);du(a,ue),E=x}if(z=Pe,oe=ve,fe===null||2>fe.length||z===null||2>z.length)b=null;else{for(ue=Us(a,fe.length+z.length),b=se=x=0;x<fe.length&&fe[x].y<z[0].y;)We=fe[x++],ue[b++].h(We.x,We.y);for(;se<z.length;)We=z[se++],ue[b++].h(We.x+oe,We.y);for(z=z[z.length-1].y;x<fe.length&&fe[x].y<=z;)x++;for(;x<fe.length&&fe[x].y>z;)oe=fe[x++],ue[b++].h(oe.x,oe.y);for(z=Us(a,b),x=0;x<b;x++)z[x].assign(ue[x]);du(a,ue),b=z}return z=Math.max(0,ve)+ee.width,ee=Fe,du(a,y),du(a,xe),du(a,fe),du(a,Pe),re[0]=E,re[1]=b,new ut(ve,0,z,ee)}if(E=9999999,!(fe===null||2>fe.length||xe===null||2>xe.length))for(b=x=0;x<fe.length&&b<xe.length;)z=fe[x],Je=xe[b],oe=Je.x,se=Je.y,se+=ve,We=z,x+1<fe.length&&(We=fe[x+1]),rt=Je,Je=rt.x,rt=rt.y,b+1<xe.length&&(rt=xe[b+1],Je=rt.x,rt=rt.y,rt+=ve),at=E,z.x===oe?at=se-z.y:z.x>oe&&z.x<Je?at=se+(z.x-oe)/(Je-oe)*(rt-se)-z.y:oe>z.x&&oe<We.x&&(at=se-(z.y+(oe-z.x)/(We.x-z.x)*(We.y-z.y))),at<E&&(E=at),We.x<=z.x?x++:Je<=oe?b++:(We.x<=Je&&x++,Je<=We.x&&b++);if(ve-=E,ve+=ue,x=xe,b=ve,y===null||2>y.length||x===null||2>x.length)E=null;else{for(ue=Us(a,y.length+x.length),E=z=oe=0;z<x.length&&x[z].x<y[0].x;)se=x[z++],ue[E++].h(se.x,se.y+b);for(;oe<y.length;)se=y[oe++],ue[E++].h(se.x,se.y);for(oe=y[y.length-1].x;z<x.length&&x[z].x<=oe;)z++;for(;z<x.length&&x[z].x>oe;)se=x[z++],ue[E++].h(se.x,se.y+b);for(x=Us(a,E),oe=0;oe<E;oe++)x[oe].assign(ue[oe]);du(a,ue),E=x}if(z=Pe,oe=ve,fe===null||2>fe.length||z===null||2>z.length)b=null;else{for(ue=Us(a,fe.length+z.length),b=se=x=0;x<fe.length&&fe[x].x<z[0].x;)We=fe[x++],ue[b++].h(We.x,We.y);for(;se<z.length;)We=z[se++],ue[b++].h(We.x,We.y+oe);for(z=z[z.length-1].x;x<fe.length&&fe[x].x<=z;)x++;for(;x<fe.length&&fe[x].x>z;)oe=fe[x++],ue[b++].h(oe.x,oe.y);for(z=Us(a,b),x=0;x<b;x++)z[x].assign(ue[x]);du(a,ue),b=z}return z=Fe,ee=Math.max(0,ve)+ee.height,du(a,y),du(a,xe),du(a,fe),du(a,Pe),re[0]=E,re[1]=b,new ut(ve,0,z,ee)}function Us(a,y){if(a=a.ru[y],a!==void 0&&(a=a.pop(),a!==void 0))return a;a=[];for(var x=0;x<y;x++)a[x]=new Te;return a}function du(a,y){var x=y.length,E=a.ru[x];E===void 0&&(E=[],a.ru[x]=E),E.push(y)}Jr.prototype.arrangeTrees=function(){if(this.Rb===H0)for(var a=this.Ub.iterator;a.next();){var y=a.value;if(y instanceof Hl){var x=y.node;if(x!==null){var E=x.position;x=E.x,E=E.y,isFinite(x)||(x=0),isFinite(E)||(E=0),Iy(this,y,x,E)}}}else{for(a=[],y=this.Ub.iterator;y.next();)x=y.value,x instanceof Hl&&a.push(x);switch(this.sorting){case $f:break;case Dp:a.reverse();break;case Np:a.sort(this.comparer);break;case Bp:a.sort(this.comparer),a.reverse();break;default:Ve("Unhandled sorting value "+this.sorting.toString())}for(x=this.arrangementOrigin,y=x.x,x=x.y,E=0;E<a.length;E++){var b=a[E];switch(Iy(this,b,y+b.la.x,x+b.la.y),this.Rb){case W0:x+=b.Da.height+this.$d.height;break;case Wy:y+=b.Da.width+this.$d.width;break;default:Ve("Unhandled arrangement value "+this.Rb.toString())}}}};function Iy(a,y,x,E){if(y!==null){y.x=x,y.y=E,y=y.children;for(var b=y.length,z=0;z<b;z++){var ee=y[z];Iy(a,ee,x+ee.S.x,E+ee.S.y)}}}Jr.prototype.commitLayout=function(){this.yv(),this.commitNodes(),this.Gu(),this.isRouting&&this.commitLinks()},Jr.prototype.commitNodes=function(){for(var a=this.network.vertexes.iterator;a.next();)a.value.commit();for(a.reset();a.next();)this.layoutComments(a.value)},Jr.prototype.Gu=function(){if(this.layerStyle===Z0){for(var a=this.$v,y=[],x=null,E=this.network.vertexes.iterator;E.next();){var b=E.value;x===null?x=b.bounds.copy():x.ed(b.bounds);var z=y[b.level];z===void 0?z=this.computeLayerSpacing(b):z=Math.max(z,this.computeLayerSpacing(b)),y[b.level]=z}for(E=0;E<y.length;E++)y[E]===void 0&&(y[E]=0);if(this.angle===90||this.angle===270?(x.Bc(this.nodeSpacing/2,this.layerSpacing),E=new Te(-this.nodeSpacing/2,-this.layerSpacing/2)):(x.Bc(this.layerSpacing,this.nodeSpacing/2),E=new Te(-this.layerSpacing/2,-this.nodeSpacing/2)),b=[],x=this.angle===90||this.angle===270?x.width:x.height,z=0,this.angle===180||this.angle===270)for(var ee=0;ee<a.length;ee++)z+=a[ee]+y[ee];for(ee=0;ee<a.length;ee++){var re=a[ee]+y[ee];this.angle===270?(z-=re,b.push(new ut(0,z,x,re))):this.angle===90?(b.push(new ut(0,z,x,re)),z+=re):this.angle===180?(z-=re,b.push(new ut(z,0,re,x))):(b.push(new ut(z,0,re,x)),z+=re)}this.commitLayers(b,E)}},Jr.prototype.commitLayers=function(){},Jr.prototype.commitLinks=function(){for(var a=this.network.edges.iterator;a.next();)a.value.commit()},Jr.prototype.yv=function(){for(var a=this.Ub.iterator;a.next();){var y=a.value;y instanceof Hl&&yx(this,y)}};function yx(a,y){if(y!==null){a.setPortSpots(y),y=y.children;for(var x=y.length,E=0;E<x;E++)yx(a,y[E])}}Jr.prototype.setPortSpots=function(a){var y=a.alignment;if(Pd(y)){var x=this.ud===Gu,E=nu(a);switch(E){case 0:var b=vo;break;case 90:b=Qo;break;case 180:b=yo;break;default:b=bo}var z=a.children,ee=z.length;switch(y){case Rh:case Uu:for(y=0;y<ee;y++){var re=z[y];if(re=(x?re.sourceEdges:re.destinationEdges).first(),re!==null&&(re=re.link,re!==null)){var oe=E===90||E===270?yo:bo;if(ee===1||y===ee-1&&ee%2===1)switch(E){case 0:oe=yo;break;case 90:oe=bo;break;case 180:oe=vo;break;default:oe=Qo}else y%2===0&&(oe=E===90||E===270?vo:Qo);x?(a.setsPortSpot&&(re.fromSpot=b),a.setsChildPortSpot&&(re.toSpot=oe)):(a.setsPortSpot&&(re.fromSpot=oe),a.setsChildPortSpot&&(re.toSpot=b))}}break;case zh:for(E=E===90||E===270?vo:Qo,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)));break;case lh:for(E=E===90||E===270?yo:bo,z=x?a.destinationEdges:a.sourceEdges;z.next();)ee=z.value.link,ee!==null&&(x?(a.setsPortSpot&&(ee.fromSpot=b),a.setsChildPortSpot&&(ee.toSpot=E)):(a.setsPortSpot&&(ee.fromSpot=E),a.setsChildPortSpot&&(ee.toSpot=b)))}}else if(x=nu(a),this.ud===Gu){for(b=a.destinationEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.fromSpot=vo;break;case 90:E.fromSpot=Qo;break;case 180:E.fromSpot=yo;break;default:E.fromSpot=bo}else E.fromSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.toSpot=yo;break;case 90:E.toSpot=bo;break;case 180:E.toSpot=vo;break;default:E.toSpot=Qo}else E.toSpot=a.childPortSpot}}else for(b=a.sourceEdges;b.next();)if(E=b.value.link,E!==null){if(a.setsPortSpot)if(a.portSpot.Xb())switch(x){case 0:E.toSpot=vo;break;case 90:E.toSpot=Qo;break;case 180:E.toSpot=yo;break;default:E.toSpot=bo}else E.toSpot=a.portSpot;if(a.setsChildPortSpot)if(a.childPortSpot.Xb())switch(x){case 0:E.fromSpot=yo;break;case 90:E.fromSpot=bo;break;case 180:E.fromSpot=vo;break;default:E.fromSpot=Qo}else E.fromSpot=a.childPortSpot}};function nu(a){return a=a.angle,45>=a?0:135>=a?90:225>=a?180:315>=a?270:0}Jr.prototype.computeLayerSpacing=function(a){var y=nu(a);y=y===90||y===270;var x=a.layerSpacing;if(0<a.layerSpacingParentOverlap){var E=Math.min(1,a.layerSpacingParentOverlap);x-=y?a.height*E:a.width*E}return x<(y?-a.height:-a.width)&&(x=y?-a.height:-a.width),x},Jr.prototype.computeNodeIndent=function(a){var y=nu(a),x=a.nodeIndent;if(0<a.nodeIndentPastParent){var E=Math.min(1,a.nodeIndentPastParent);x+=y===90||y===270?a.width*E:a.height*E}return x=Math.max(0,x)},Ct.Object.defineProperties(Jr.prototype,{roots:{get:function(){return this.Ub},set:function(a){this.Ub!==a&&(this.Ub=a,this.C())}},path:{get:function(){return this.Wn},set:function(a){this.Wn!==a&&(this.Wn=a,this.C())}},treeStyle:{get:function(){return this.vo},set:function(a){this.Rb===a||a!==j0&&a!==zy&&a!==Ry&&a!==jy||(this.vo=a,this.C())}},layerStyle:{get:function(){return this.Bq},set:function(a){this.Rb===a||a!==Hy&&a!==Zy&&a!==Z0||(this.Bq=a,this.C())}},comments:{get:function(){return this.td},set:function(a){this.td!==a&&(this.td=a,this.C())}},arrangement:{get:function(){return this.Rb},set:function(a){this.Rb===a||a!==W0&&a!==Wy&&a!==H0||(this.Rb=a,this.C())}},arrangementSpacing:{get:function(){return this.$d},set:function(a){this.$d.D(a)||(this.$d.assign(a),this.C())}},rootDefaults:{get:function(){return this.W},set:function(a){this.W!==a&&(this.W=a,this.C())}},alternateDefaults:{get:function(){return this.Y},set:function(a){this.Y!==a&&(this.Y=a,this.C())}},sorting:{get:function(){return this.W.sorting},set:function(a){this.W.sorting===a||a!==$f&&a!==Dp&&a!==Np&&!Bp||(this.W.sorting=a,this.C())}},comparer:{get:function(){return this.W.comparer},set:function(a){this.W.comparer!==a&&(this.W.comparer=a,this.C())}},angle:{get:function(){return this.W.angle},set:function(a){this.W.angle!==a&&(a===0||a===90||a===180||a===270?(this.W.angle=a,this.C()):Ve("TreeLayout.angle must be 0, 90, 180, or 270"))}},alignment:{get:function(){return this.W.alignment},set:function(a){this.W.alignment!==a&&(this.W.alignment=a,this.C())}},nodeIndent:{get:function(){return this.W.nodeIndent},set:function(a){this.W.nodeIndent!==a&&0<=a&&(this.W.nodeIndent=a,this.C())}},nodeIndentPastParent:{get:function(){return this.W.nodeIndentPastParent},set:function(a){this.W.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.W.nodeIndentPastParent=a,this.C())}},nodeSpacing:{get:function(){return this.W.nodeSpacing},set:function(a){this.W.nodeSpacing!==a&&(this.W.nodeSpacing=a,this.C())}},layerSpacing:{get:function(){return this.W.layerSpacing},set:function(a){this.W.layerSpacing!==a&&(this.W.layerSpacing=a,this.C())}},layerSpacingParentOverlap:{get:function(){return this.W.layerSpacingParentOverlap},set:function(a){this.W.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.W.layerSpacingParentOverlap=a,this.C())}},compaction:{get:function(){return this.W.compaction},set:function(a){this.W.compaction===a||a!==z0&&a!==Tp||(this.W.compaction=a,this.C())}},breadthLimit:{get:function(){return this.W.breadthLimit},set:function(a){this.W.breadthLimit!==a&&0<=a&&(this.W.breadthLimit=a,this.C())}},rowSpacing:{get:function(){return this.W.rowSpacing},set:function(a){this.W.rowSpacing!==a&&(this.W.rowSpacing=a,this.C())}},rowIndent:{get:function(){return this.W.rowIndent},set:function(a){this.W.rowIndent!==a&&0<=a&&(this.W.rowIndent=a,this.C())}},commentSpacing:{get:function(){return this.W.commentSpacing},set:function(a){this.W.commentSpacing!==a&&(this.W.commentSpacing=a,this.C())}},commentMargin:{get:function(){return this.W.commentMargin},set:function(a){this.W.commentMargin!==a&&(this.W.commentMargin=a,this.C())}},setsPortSpot:{get:function(){return this.W.setsPortSpot},set:function(a){this.W.setsPortSpot!==a&&(this.W.setsPortSpot=a,this.C())}},portSpot:{get:function(){return this.W.portSpot},set:function(a){this.W.portSpot.D(a)||(this.W.portSpot=a,this.C())}},setsChildPortSpot:{get:function(){return this.W.setsChildPortSpot},set:function(a){this.W.setsChildPortSpot!==a&&(this.W.setsChildPortSpot=a,this.C())}},childPortSpot:{get:function(){return this.W.childPortSpot},set:function(a){this.W.childPortSpot.D(a)||(this.W.childPortSpot=a,this.C())}},alternateSorting:{get:function(){return this.Y.sorting},set:function(a){this.Y.sorting===a||a!==$f&&a!==Dp&&a!==Np&&!Bp||(this.Y.sorting=a,this.C())}},alternateComparer:{get:function(){return this.Y.comparer},set:function(a){this.Y.comparer!==a&&(this.Y.comparer=a,this.C())}},alternateAngle:{get:function(){return this.Y.angle},set:function(a){this.Y.angle===a||a!==0&&a!==90&&a!==180&&a!==270||(this.Y.angle=a,this.C())}},alternateAlignment:{get:function(){return this.Y.alignment},set:function(a){this.Y.alignment!==a&&(this.Y.alignment=a,this.C())}},alternateNodeIndent:{get:function(){return this.Y.nodeIndent},set:function(a){this.Y.nodeIndent!==a&&0<=a&&(this.Y.nodeIndent=a,this.C())}},alternateNodeIndentPastParent:{get:function(){return this.Y.nodeIndentPastParent},set:function(a){this.Y.nodeIndentPastParent!==a&&0<=a&&1>=a&&(this.Y.nodeIndentPastParent=a,this.C())}},alternateNodeSpacing:{get:function(){return this.Y.nodeSpacing},set:function(a){this.Y.nodeSpacing!==a&&(this.Y.nodeSpacing=a,this.C())}},alternateLayerSpacing:{get:function(){return this.Y.layerSpacing},set:function(a){this.Y.layerSpacing!==a&&(this.Y.layerSpacing=a,this.C())}},alternateLayerSpacingParentOverlap:{get:function(){return this.Y.layerSpacingParentOverlap},set:function(a){this.Y.layerSpacingParentOverlap!==a&&0<=a&&1>=a&&(this.Y.layerSpacingParentOverlap=a,this.C())}},alternateCompaction:{get:function(){return this.Y.compaction},set:function(a){this.Y.compaction===a||a!==z0&&a!==Tp||(this.Y.compaction=a,this.C())}},alternateBreadthLimit:{get:function(){return this.Y.breadthLimit},set:function(a){this.Y.breadthLimit!==a&&0<=a&&(this.Y.breadthLimit=a,this.C())}},alternateRowSpacing:{get:function(){return this.Y.rowSpacing},set:function(a){this.Y.rowSpacing!==a&&(this.Y.rowSpacing=a,this.C())}},alternateRowIndent:{get:function(){return this.Y.rowIndent},set:function(a){this.Y.rowIndent!==a&&0<=a&&(this.Y.rowIndent=a,this.C())}},alternateCommentSpacing:{get:function(){return this.Y.commentSpacing},set:function(a){this.Y.commentSpacing!==a&&(this.Y.commentSpacing=a,this.C())}},alternateCommentMargin:{get:function(){return this.Y.commentMargin},set:function(a){this.Y.commentMargin!==a&&(this.Y.commentMargin=a,this.C())}},alternateSetsPortSpot:{get:function(){return this.Y.setsPortSpot},set:function(a){this.Y.setsPortSpot!==a&&(this.Y.setsPortSpot=a,this.C())}},alternatePortSpot:{get:function(){return this.Y.portSpot},set:function(a){this.Y.portSpot.D(a)||(this.Y.portSpot=a,this.C())}},alternateSetsChildPortSpot:{get:function(){return this.Y.setsChildPortSpot},set:function(a){this.Y.setsChildPortSpot!==a&&(this.Y.setsChildPortSpot=a,this.C())}},alternateChildPortSpot:{get:function(){return this.Y.childPortSpot},set:function(a){this.Y.childPortSpot.D(a)||(this.Y.childPortSpot=a,this.C())}}});var R0=new En(Jr,"PathDefault",-1),Gu=new En(Jr,"PathDestination",0),Kc=new En(Jr,"PathSource",1),$f=new En(Jr,"SortingForwards",10),Dp=new En(Jr,"SortingReverse",11),Np=new En(Jr,"SortingAscending",12),Bp=new En(Jr,"SortingDescending",13),eg=new En(Jr,"AlignmentCenterSubtrees",20),Yc=new En(Jr,"AlignmentCenterChildren",21),Ku=new En(Jr,"AlignmentStart",22),Yu=new En(Jr,"AlignmentEnd",23),Rh=new En(Jr,"AlignmentBus",24),Uu=new En(Jr,"AlignmentBusBranching",25),zh=new En(Jr,"AlignmentTopLeftBus",26),lh=new En(Jr,"AlignmentBottomRightBus",27),z0=new En(Jr,"CompactionNone",30),Tp=new En(Jr,"CompactionBlock",31),j0=new En(Jr,"StyleLayered",40),Ry=new En(Jr,"StyleLastParents",41),zy=new En(Jr,"StyleAlternating",42),jy=new En(Jr,"StyleRootOnly",43),W0=new En(Jr,"ArrangementVertical",50),Wy=new En(Jr,"ArrangementHorizontal",51),H0=new En(Jr,"ArrangementFixedRoots",52),Hy=new En(Jr,"LayerIndividual",60),Zy=new En(Jr,"LayerSiblings",61),Z0=new En(Jr,"LayerUniform",62);Jr.className="TreeLayout",Jr.PathDefault=R0,Jr.PathDestination=Gu,Jr.PathSource=Kc,Jr.SortingForwards=$f,Jr.SortingReverse=Dp,Jr.SortingAscending=Np,Jr.SortingDescending=Bp,Jr.AlignmentCenterSubtrees=eg,Jr.AlignmentCenterChildren=Yc,Jr.AlignmentStart=Ku,Jr.AlignmentEnd=Yu,Jr.AlignmentBus=Rh,Jr.AlignmentBusBranching=Uu,Jr.AlignmentTopLeftBus=zh,Jr.AlignmentBottomRightBus=lh,Jr.CompactionNone=z0,Jr.CompactionBlock=Tp,Jr.StyleLayered=j0,Jr.StyleLastParents=Ry,Jr.StyleAlternating=zy,Jr.StyleRootOnly=jy,Jr.ArrangementVertical=W0,Jr.ArrangementHorizontal=Wy,Jr.ArrangementFixedRoots=H0,Jr.LayerIndividual=Hy,Jr.LayerSiblings=Zy,Jr.LayerUniform=Z0;function Uc(a){Wo.call(this,a)}xt(Uc,Wo),Uc.prototype.createVertex=function(){return new Hl(this)},Uc.prototype.createEdge=function(){return new tg(this)},Uc.className="TreeNetwork";function Hl(a){Ra.call(this,a),this.V=!1,this.hb=null,this.u=[],this.nb=this.Ha=this.F=this.ia=0,this.td=null,this.S=new Te(0,0),this.Da=new Re(0,0),this.la=new Te(0,0),this.im=this.hm=this.qA=!1,this.kp=this.Yo=null,this.nd=$f,this.hd=ly,this.Kb=0,this.Jb=Yc,this.Vq=this.Uq=0,this.Wq=20,this.ie=50,this.Aq=0,this.Hp=Tp,this.Ap=0,this.nr=25,this.Gp=this.mr=10,this.Fp=20,this.xr=!0,this.dr=Lo,this.wr=!0,this.Dp=Lo}xt(Hl,Ra),Hl.prototype.copyInheritedPropertiesFrom=function(a){a!==null&&(this.nd=a.sorting,this.hd=a.comparer,this.Kb=a.angle,this.Jb=a.alignment,this.Uq=a.nodeIndent,this.Vq=a.nodeIndentPastParent,this.Wq=a.nodeSpacing,this.ie=a.layerSpacing,this.Aq=a.layerSpacingParentOverlap,this.Hp=a.compaction,this.Ap=a.breadthLimit,this.nr=a.rowSpacing,this.mr=a.rowIndent,this.Gp=a.commentSpacing,this.Fp=a.commentMargin,this.xr=a.setsPortSpot,this.dr=a.portSpot,this.wr=a.setsChildPortSpot,this.Dp=a.childPortSpot)},Ct.Object.defineProperties(Hl.prototype,{initialized:{get:function(){return this.V},set:function(a){this.V!==a&&(this.V=a)}},parent:{get:function(){return this.hb},set:function(a){this.hb!==a&&(this.hb=a)}},children:{get:function(){return this.u},set:function(a){if(this.u!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.u=a}}},level:{get:function(){return this.ia},set:function(a){this.ia!==a&&(this.ia=a)}},descendantCount:{get:function(){return this.F},set:function(a){this.F!==a&&(this.F=a)}},maxChildrenCount:{get:function(){return this.Ha},set:function(a){this.Ha!==a&&(this.Ha=a)}},maxGenerationCount:{get:function(){return this.nb},set:function(a){this.nb!==a&&(this.nb=a)}},comments:{get:function(){return this.td},set:function(a){if(this.td!==a){if(a!==null)for(var y=a.length,x=0;x<y;x++);this.td=a}}},sorting:{get:function(){return this.nd},set:function(a){this.nd!==a&&(this.nd=a)}},comparer:{get:function(){return this.hd},set:function(a){this.hd!==a&&(this.hd=a)}},angle:{get:function(){return this.Kb},set:function(a){this.Kb!==a&&(this.Kb=a)}},alignment:{get:function(){return this.Jb},set:function(a){this.Jb!==a&&(this.Jb=a)}},nodeIndent:{get:function(){return this.Uq},set:function(a){this.Uq!==a&&(this.Uq=a)}},nodeIndentPastParent:{get:function(){return this.Vq},set:function(a){this.Vq!==a&&(this.Vq=a)}},nodeSpacing:{get:function(){return this.Wq},set:function(a){this.Wq!==a&&(this.Wq=a)}},layerSpacing:{get:function(){return this.ie},set:function(a){this.ie!==a&&(this.ie=a)}},layerSpacingParentOverlap:{get:function(){return this.Aq},set:function(a){this.Aq!==a&&(this.Aq=a)}},compaction:{get:function(){return this.Hp},set:function(a){this.Hp!==a&&(this.Hp=a)}},breadthLimit:{get:function(){return this.Ap},set:function(a){this.Ap!==a&&(this.Ap=a)}},rowSpacing:{get:function(){return this.nr},set:function(a){this.nr!==a&&(this.nr=a)}},rowIndent:{get:function(){return this.mr},set:function(a){this.mr!==a&&(this.mr=a)}},commentSpacing:{get:function(){return this.Gp},set:function(a){this.Gp!==a&&(this.Gp=a)}},commentMargin:{get:function(){return this.Fp},set:function(a){this.Fp!==a&&(this.Fp=a)}},setsPortSpot:{get:function(){return this.xr},set:function(a){this.xr!==a&&(this.xr=a)}},portSpot:{get:function(){return this.dr},set:function(a){this.dr.D(a)||(this.dr=a)}},setsChildPortSpot:{get:function(){return this.wr},set:function(a){this.wr!==a&&(this.wr=a)}},childPortSpot:{get:function(){return this.Dp},set:function(a){this.Dp.D(a)||(this.Dp=a)}},childrenCount:{get:function(){return this.children.length}},relativePosition:{get:function(){return this.S},set:function(a){this.S.set(a)}},subtreeSize:{get:function(){return this.Da},set:function(a){this.Da.set(a)}},subtreeOffset:{get:function(){return this.la},set:function(a){this.la.set(a)}}}),Hl.className="TreeVertex";function tg(a){nl.call(this,a),this.$t=new Te(0,0)}xt(tg,nl),tg.prototype.commit=function(){var a=this.link;if(a!==null&&!a.isAvoiding){var y=this.network.layout,x=null,E=null;switch(y.ud){case Gu:x=this.fromVertex,E=this.toVertex;break;case Kc:x=this.toVertex,E=this.fromVertex;break;default:Ve("Unhandled path value "+y.ud.toString())}if(x!==null&&E!==null){var b=this.$t;if(b.x!==0||b.y!==0||x.qA){E=x.bounds;var z=nu(x),ee=y.computeLayerSpacing(x),re=x.rowSpacing;a.vg();var oe=a.curve===cl,se=a.isOrthogonal,ue;if(a.uh(),se||oe){for(ue=2;4<a.pointsCount;)a.pv(2);var fe=a.i(1),ve=a.i(2)}else{for(ue=1;3<a.pointsCount;)a.pv(1);fe=a.i(0),ve=a.i(a.pointsCount-1)}var xe=a.i(a.pointsCount-1);z===0?(x.alignment===Yu?(z=E.bottom+b.y,b.y===0&&fe.y>xe.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.top+b.y,b.y===0&&fe.y<xe.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,E.right+ee,z),ue++,a.m(ue,E.right+ee+(b.x-re)/3,z),ue++,a.m(ue,E.right+ee+2*(b.x-re)/3,z),ue++,a.m(ue,E.right+ee+(b.x-re),z),ue++,a.m(ue,ve.x,z)):(se&&(a.m(ue,E.right+ee/2,fe.y),ue++),a.m(ue,E.right+ee/2,z),ue++,a.m(ue,E.right+ee+b.x-(se?re/2:re),z),ue++,se&&a.m(ue,a.i(ue-1).x,ve.y))):z===90?(x.alignment===Yu?(z=E.right+b.x,b.x===0&&fe.x>xe.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.left+b.x,b.x===0&&fe.x<xe.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,E.bottom+ee),ue++,a.m(ue,z,E.bottom+ee+(b.y-re)/3),ue++,a.m(ue,z,E.bottom+ee+2*(b.y-re)/3),ue++,a.m(ue,z,E.bottom+ee+(b.y-re)),ue++,a.m(ue,z,ve.y)):(se&&(a.m(ue,fe.x,E.bottom+ee/2),ue++),a.m(ue,z,E.bottom+ee/2),ue++,a.m(ue,z,E.bottom+ee+b.y-(se?re/2:re)),ue++,se&&a.m(ue,ve.x,a.i(ue-1).y))):z===180?(x.alignment===Yu?(z=E.bottom+b.y,b.y===0&&fe.y>xe.y+x.rowIndent&&(z=Math.min(z,Math.max(fe.y,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.top+b.y,b.y===0&&fe.y<xe.y-x.rowIndent&&(z=Math.max(z,Math.min(fe.y,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.top-x.la.y+b.y:E.y+E.height/2+b.y,oe?(a.m(ue,fe.x,z),ue++,a.m(ue,E.left-ee,z),ue++,a.m(ue,E.left-ee+(b.x+re)/3,z),ue++,a.m(ue,E.left-ee+2*(b.x+re)/3,z),ue++,a.m(ue,E.left-ee+(b.x+re),z),ue++,a.m(ue,ve.x,z)):(se&&(a.m(ue,E.left-ee/2,fe.y),ue++),a.m(ue,E.left-ee/2,z),ue++,a.m(ue,E.left-ee+b.x+(se?re/2:re),z),ue++,se&&a.m(ue,a.i(ue-1).x,ve.y))):z===270?(x.alignment===Yu?(z=E.right+b.x,b.x===0&&fe.x>xe.x+x.rowIndent&&(z=Math.min(z,Math.max(fe.x,z-y.computeNodeIndent(x))))):x.alignment===Ku?(z=E.left+b.x,b.x===0&&fe.x<xe.x-x.rowIndent&&(z=Math.max(z,Math.min(fe.x,z+y.computeNodeIndent(x))))):z=x.hm||x.im&&x.maxGenerationCount===1?E.left-x.la.x+b.x:E.x+E.width/2+b.x,oe?(a.m(ue,z,fe.y),ue++,a.m(ue,z,E.top-ee),ue++,a.m(ue,z,E.top-ee+(b.y+re)/3),ue++,a.m(ue,z,E.top-ee+2*(b.y+re)/3),ue++,a.m(ue,z,E.top-ee+(b.y+re)),ue++,a.m(ue,z,ve.y)):(se&&(a.m(ue,fe.x,E.top-ee/2),ue++),a.m(ue,z,E.top-ee/2),ue++,a.m(ue,z,E.top-ee+b.y+(se?re/2:re)),ue++,se&&a.m(ue,ve.x,a.i(ue-1).y))):Ve("Invalid angle "+z),a.zf()}else b=E,a=this.link,E=this.network.layout,y=nu(x),y!==nu(b)&&(ee=E.computeLayerSpacing(x),re=x.bounds,x=b.bounds,y===0&&x.left-re.right<ee+1||y===90&&x.top-re.bottom<ee+1||y===180&&re.left-x.right<ee+1||y===270&&re.top-x.bottom<ee+1||(a.vg(),x=a.curve===cl,b=a.isOrthogonal,E=Pd(this.fromVertex.alignment),a.uh(),y===0?(y=re.right+ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y-20,a.i(1).y),a.m(2,y-20,x),a.m(3,y,x),a.m(4,y+20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===90?(y=re.bottom+ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y-20),a.m(2,x,y-20),a.m(3,x,y),a.m(4,x,y+20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)):y===180?(y=re.left-ee/2,x?a.pointsCount===4&&(x=a.i(3).y,a.L(1,y+20,a.i(1).y),a.m(2,y+20,x),a.m(3,y,x),a.m(4,y-20,x),a.L(5,a.i(5).x,x)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,y,a.i(2).y),a.L(3,y,a.i(3).y)):a.pointsCount===4?a.m(2,y,a.i(2).y):a.pointsCount===3?a.L(1,y,a.i(2).y):a.pointsCount===2&&a.m(1,y,a.i(1).y)):y===270&&(y=re.top-ee/2,x?a.pointsCount===4&&(x=a.i(3).x,a.L(1,a.i(1).x,y+20),a.m(2,x,y+20),a.m(3,x,y),a.m(4,x,y-20),a.L(5,x,a.i(5).y)):b?E?a.L(3,a.i(2).x,a.i(4).y):a.pointsCount===6&&(a.L(2,a.i(2).x,y),a.L(3,a.i(3).x,y)):a.pointsCount===4?a.m(2,a.i(2).x,y):a.pointsCount===3?a.L(1,a.i(2).x,y):a.pointsCount===2&&a.m(1,a.i(1).x,y)),a.zf()))}}},Ct.Object.defineProperties(tg.prototype,{fromVertex:{get:function(){return this.kd},set:function(a){this.kd!==a&&(this.kd=a)}},toVertex:{get:function(){return this.qd},set:function(a){this.qd!==a&&(this.qd=a)}},relativePoint:{get:function(){return this.$t},set:function(a){this.$t.set(a)}}}),tg.className="TreeEdge",Ao.prototype.initializeStandardTools=function(){this.gb("Action",new Tl,this.mouseDownTools),this.gb("Relinking",new sl,this.mouseDownTools),this.gb("LinkReshaping",new Ea,this.mouseDownTools),this.gb("Rotating",new Cs,this.mouseDownTools),this.gb("Resizing",new us,this.mouseDownTools),this.gb("Linking",new fs,this.mouseMoveTools),this.gb("Dragging",new Uo,this.mouseMoveTools),this.gb("DragSelecting",new Sl,this.mouseMoveTools),this.gb("Panning",new os,this.mouseMoveTools),this.gb("ContextMenu",new Es,this.mouseUpTools),this.gb("TextEditing",new Xo,this.mouseUpTools),this.gb("ClickCreating",new yh,this.mouseUpTools),this.gb("ClickSelecting",new _h,this.mouseUpTools)},Lu("Horizontal",new vm),Lu("Spot",new Sm),Lu("Table",new wm),Lu("Viewbox",new Em),Lu("TableRow",new Pm),Lu("TableColumn",new Cm),Lu("Graduated",new Jg),Lu("Grid",new _g),Ef.add("GraphLinksModel",Ga),Ef.add("TreeModel",bl);var V0=xn.go,Vy={get licenseKey(){return qt.licenseKey},set licenseKey(a){qt.licenseKey=a},get version(){return qt.version},Group:Or,EnumValue:En,List:cn,Set:yn,Map:$t,Point:Te,Size:Re,Rect:ut,Margin:Fi,Spot:ii,Geometry:zn,PathFigure:da,PathSegment:qr,InputEvent:za,DiagramEvent:Dl,ChangedEvent:Ho,Model:Ui,GraphLinksModel:io,TreeModel:Ns,Binding:La,Transaction:xa,UndoManager:qo,CommandHandler:_e,Tool:no,DraggingTool:Uo,DraggingInfo:nh,DraggingOptions:ae,LinkingBaseTool:lo,LinkingTool:fs,RelinkingTool:sl,LinkReshapingTool:Ea,ResizingTool:us,RotatingTool:Cs,ClickSelectingTool:_h,ActionTool:Tl,ClickCreatingTool:yh,HTMLInfo:wu,ContextMenuTool:Es,DragSelectingTool:Sl,PanningTool:os,TextEditingTool:Xo,ToolManager:Ao,Animation:as,AnimationManager:$s,AnimationTrigger:Xl,Layer:Xa,Diagram:qt,Palette:ce,Overview:pe,Brush:wo,GraphObject:kt,Panel:ni,RowColumnDefinition:Ba,Shape:Wr,TextBlock:jo,Picture:Ws,Part:ir,Adornment:uo,Node:Li,Link:hi,Placeholder:Ms,Layout:na,LayoutNetwork:Wo,LayoutVertex:Ra,LayoutEdge:nl,GridLayout:$a,PanelLayout:Ia,CircularLayout:la,CircularNetwork:Jf,CircularVertex:Ep,CircularEdge:C0,ForceDirectedLayout:ls,ForceDirectedNetwork:Vc,ForceDirectedVertex:Ap,ForceDirectedEdge:Lp,LayeredDigraphLayout:Eo,LayeredDigraphNetwork:qf,LayeredDigraphVertex:kl,LayeredDigraphEdge:kp,TreeLayout:Jr,TreeNetwork:Uc,TreeVertex:Hl,TreeEdge:tg};typeof V0=="object"&&V0.version&&An("WARNING: a `go` object on the root object is already defined. "+("Debug"in V0?"debug ":"")+"version: "+V0.version+", replaced with version: "+Vy.version),qt.prototype.go=Vy,xn.go=Vy,typeof Jn.exports=="object"&&(Jn.exports=typeof De.g!="undefined"?De.g.go:self.go)}();var ye=typeof De.g!="undefined"?De.g.go:self.go;const nt=typeof De.g!="undefined"?De.g.go:self.go,it=nt.Group,Dt=nt.EnumValue,Mt=nt.List,ze=nt.Set,dt=nt.Map,Kt=nt.Point,Et=nt.Size,Me=nt.Rect,zt=nt.Margin,Ke=nt.Spot,Ht=nt.Geometry,Ne=nt.PathFigure,ne=nt.PathSegment,te=nt.InputEvent,de=nt.DiagramEvent,le=nt.ChangedEvent,ge=nt.Model,me=nt.GraphLinksModel,Se=nt.TreeModel,be=nt.Binding,Ie=nt.Transaction,Ze=nt.UndoManager,st=nt.CommandHandler,Ye=nt.Tool,Xe=nt.DraggingTool,At=nt.DraggingInfo,ft=nt.LinkingBaseTool,Nt=nt.LinkingTool,Lt=nt.RelinkingTool,ln=nt.LinkReshapingTool,kn=nt.ResizingTool,un=nt.RotatingTool,_t=nt.ClickSelectingTool,hn=nt.ActionTool,vt=nt.ClickCreatingTool,$e=nt.HTMLInfo,gn=nt.ContextMenuTool,ci=nt.DragSelectingTool,Fn=nt.PanningTool,rn=nt.TextEditingTool,Xn=nt.ToolManager,Nn=nt.Animation,mi=nt.AnimationManager,Zt=nt.AnimationTrigger,Rn=nt.Layer,wt=nt.Diagram,Ai=nt.Palette,Kn=nt.Overview,je=nt.Brush,Le=nt.GraphObject,we=nt.Panel,Be=nt.RowColumnDefinition,Ge=nt.Shape,ke=nt.TextBlock,et=nt.TextBlockMetrics,an=nt.Picture,Bt=nt.Part,Ut=nt.Adornment,gt=nt.Node,Pt=nt.Link,Tt=nt.Placeholder,Yt=nt.Layout,dn=nt.LayoutNetwork,On=nt.LayoutVertex,wn=nt.LayoutEdge,nn=nt.GridLayout,jt=nt.PanelLayout,Xt=nt.CircularLayout,pn=nt.CircularNetwork,bn=nt.CircularVertex,Un=nt.CircularEdge,ti=nt.ForceDirectedLayout,pi=nt.ForceDirectedNetwork,vn=nt.ForceDirectedVertex,wi=nt.ForceDirectedEdge,Yi=nt.LayeredDigraphLayout,gr=nt.LayeredDigraphNetwork,rr=nt.LayeredDigraphVertex,tr=nt.LayeredDigraphEdge,vr=nt.TreeLayout,hr=nt.TreeNetwork,ar=nt.TreeVertex,Xi=nt.TreeEdge,yr=nt.version},24334:function(Jn,gi,De){var ye,nt;(function(it,Dt){Jn.exports=Dt(it)})(typeof self!="undefined"?self:typeof window!="undefined"?window:typeof De.g!="undefined"?De.g:this,function(it){"use strict";it=it||{};var Dt=it.Base64,Mt="2.6.4",ze="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",dt=function(Lt){for(var ln={},kn=0,un=Lt.length;kn<un;kn++)ln[Lt.charAt(kn)]=kn;return ln}(ze),Kt=String.fromCharCode,Et=function(Lt){if(Lt.length<2){var ln=Lt.charCodeAt(0);return ln<128?Lt:ln<2048?Kt(192|ln>>>6)+Kt(128|ln&63):Kt(224|ln>>>12&15)+Kt(128|ln>>>6&63)+Kt(128|ln&63)}else{var ln=65536+(Lt.charCodeAt(0)-55296)*1024+(Lt.charCodeAt(1)-56320);return Kt(240|ln>>>18&7)+Kt(128|ln>>>12&63)+Kt(128|ln>>>6&63)+Kt(128|ln&63)}},Me=/[\uD800-\uDBFF][\uDC00-\uDFFFF]|[^\x00-\x7F]/g,zt=function(Lt){return Lt.replace(Me,Et)},Ke=function(Lt){var ln=[0,2,1][Lt.length%3],kn=Lt.charCodeAt(0)<<16|(Lt.length>1?Lt.charCodeAt(1):0)<<8|(Lt.length>2?Lt.charCodeAt(2):0),un=[ze.charAt(kn>>>18),ze.charAt(kn>>>12&63),ln>=2?"=":ze.charAt(kn>>>6&63),ln>=1?"=":ze.charAt(kn&63)];return un.join("")},Ht=it.btoa&&typeof it.btoa=="function"?function(Lt){return it.btoa(Lt)}:function(Lt){if(Lt.match(/[^\x00-\xFF]/))throw new RangeError("The string contains invalid characters.");return Lt.replace(/[\s\S]{1,3}/g,Ke)},Ne=function(Lt){return Ht(zt(String(Lt)))},ne=function(Lt){return Lt.replace(/[+\/]/g,function(ln){return ln=="+"?"-":"_"}).replace(/=/g,"")},te=function(Lt,ln){return ln?ne(Ne(Lt)):Ne(Lt)},de=function(Lt){return te(Lt,!0)},le;it.Uint8Array&&(le=function(Lt,ln){for(var kn="",un=0,_t=Lt.length;un<_t;un+=3){var hn=Lt[un],vt=Lt[un+1],$e=Lt[un+2],gn=hn<<16|vt<<8|$e;kn+=ze.charAt(gn>>>18)+ze.charAt(gn>>>12&63)+(typeof vt!="undefined"?ze.charAt(gn>>>6&63):"=")+(typeof $e!="undefined"?ze.charAt(gn&63):"=")}return ln?ne(kn):kn});var ge=/[\xC0-\xDF][\x80-\xBF]|[\xE0-\xEF][\x80-\xBF]{2}|[\xF0-\xF7][\x80-\xBF]{3}/g,me=function(Lt){switch(Lt.length){case 4:var ln=(7&Lt.charCodeAt(0))<<18|(63&Lt.charCodeAt(1))<<12|(63&Lt.charCodeAt(2))<<6|63&Lt.charCodeAt(3),kn=ln-65536;return Kt((kn>>>10)+55296)+Kt((kn&1023)+56320);case 3:return Kt((15&Lt.charCodeAt(0))<<12|(63&Lt.charCodeAt(1))<<6|63&Lt.charCodeAt(2));default:return Kt((31&Lt.charCodeAt(0))<<6|63&Lt.charCodeAt(1))}},Se=function(Lt){return Lt.replace(ge,me)},be=function(Lt){var ln=Lt.length,kn=ln%4,un=(ln>0?dt[Lt.charAt(0)]<<18:0)|(ln>1?dt[Lt.charAt(1)]<<12:0)|(ln>2?dt[Lt.charAt(2)]<<6:0)|(ln>3?dt[Lt.charAt(3)]:0),_t=[Kt(un>>>16),Kt(un>>>8&255),Kt(un&255)];return _t.length-=[0,0,2,1][kn],_t.join("")},Ie=it.atob&&typeof it.atob=="function"?function(Lt){return it.atob(Lt)}:function(Lt){return Lt.replace(/\S{1,4}/g,be)},Ze=function(Lt){return Ie(String(Lt).replace(/[^A-Za-z0-9\+\/]/g,""))},st=function(Lt){return Se(Ie(Lt))},Ye=function(Lt){return String(Lt).replace(/[-_]/g,function(ln){return ln=="-"?"+":"/"}).replace(/[^A-Za-z0-9\+\/]/g,"")},Xe=function(Lt){return st(Ye(Lt))},At;it.Uint8Array&&(At=function(Lt){return Uint8Array.from(Ze(Ye(Lt)),function(ln){return ln.charCodeAt(0)})});var ft=function(){var Lt=it.Base64;return it.Base64=Dt,Lt};if(it.Base64={VERSION:Mt,atob:Ze,btoa:Ht,fromBase64:Xe,toBase64:te,utob:zt,encode:te,encodeURI:de,btou:Se,decode:Xe,noConflict:ft,fromUint8Array:le,toUint8Array:At},typeof Object.defineProperty=="function"){var Nt=function(Lt){return{value:Lt,enumerable:!1,writable:!0,configurable:!0}};it.Base64.extendString=function(){Object.defineProperty(String.prototype,"fromBase64",Nt(function(){return Xe(this)})),Object.defineProperty(String.prototype,"toBase64",Nt(function(Lt){return te(this,Lt)})),Object.defineProperty(String.prototype,"toBase64URI",Nt(function(){return te(this,!0)}))}}return it.Meteor&&(Base64=it.Base64),Jn.exports?Jn.exports.Base64=it.Base64:(ye=[],nt=function(){return it.Base64}.apply(gi,ye),nt!==void 0&&(Jn.exports=nt)),{Base64:it.Base64}})},2859:function(Jn,gi,De){"use strict";De.d(gi,{hP:function(){return Kn}});var ye=function(je,Le){return(ye=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(we,Be){we.__proto__=Be}||function(we,Be){for(var Ge in Be)Object.prototype.hasOwnProperty.call(Be,Ge)&&(we[Ge]=Be[Ge])})(je,Le)};function nt(je,Le){function we(){this.constructor=je}ye(je,Le),je.prototype=Le===null?Object.create(Le):(we.prototype=Le.prototype,new we)}function it(je,Le,we,Be){return new(we||(we=Promise))(function(Ge,ke){function et(Ut){try{Bt(Be.next(Ut))}catch(gt){ke(gt)}}function an(Ut){try{Bt(Be.throw(Ut))}catch(gt){ke(gt)}}function Bt(Ut){var gt;Ut.done?Ge(Ut.value):(gt=Ut.value,gt instanceof we?gt:new we(function(Pt){Pt(gt)})).then(et,an)}Bt((Be=Be.apply(je,Le||[])).next())})}function Dt(je,Le){var we,Be,Ge,ke,et={label:0,sent:function(){if(1&Ge[0])throw Ge[1];return Ge[1]},trys:[],ops:[]};return ke={next:an(0),throw:an(1),return:an(2)},typeof Symbol=="function"&&(ke[Symbol.iterator]=function(){return this}),ke;function an(Bt){return function(Ut){return function(gt){if(we)throw new TypeError("Generator is already executing.");for(;et;)try{if(we=1,Be&&(Ge=2>[0]?Be.return:gt[0]?Be.throw||((Ge=Be.return)&&Ge.call(Be),0):Be.next)&&!(Ge=Ge.call(Be,gt[1])).done)return Ge;switch(Be=0,Ge&&(gt=[2>[0],Ge.value]),gt[0]){case 0:case 1:Ge=gt;break;case 4:return et.label++,{value:gt[1],done:!1};case 5:et.label++,Be=gt[1],gt=[0];continue;case 7:gt=et.ops.pop(),et.trys.pop();continue;default:if(Ge=et.trys,!((Ge=Ge.length>0&&Ge[Ge.length-1])||gt[0]!==6&>[0]!==2)){et=0;continue}if(gt[0]===3&&(!Ge||gt[1]>Ge[0]&>[1]<Ge[3])){et.label=gt[1];break}if(gt[0]===6&&et.label<Ge[1]){et.label=Ge[1],Ge=gt;break}if(Ge&&et.label<Ge[2]){et.label=Ge[2],et.ops.push(gt);break}Ge[2]&&et.ops.pop(),et.trys.pop();continue}gt=Le.call(je,et)}catch(Pt){gt=[6,Pt],Be=0}finally{we=Ge=0}if(5>[0])throw gt[1];return{value:gt[0]?gt[1]:void 0,done:!0}}([Bt,Ut])}}}function Mt(){for(var je=0,Le=0,we=arguments.length;Le<we;Le++)je+=arguments[Le].length;var Be=Array(je),Ge=0;for(Le=0;Le<we;Le++)for(var ke=arguments[Le],et=0,an=ke.length;et<an;et++,Ge++)Be[Ge]=ke[et];return Be}var ze=function(){function je(){}return je.createDefs=function(){return document.createElementNS("http://www.w3.org/2000/svg","defs")},je.setAttributes=function(Le,we){for(var Be=0,Ge=we;Be<Ge.length;Be++){var ke=Ge[Be],et=ke[0],an=ke[1];Le.setAttribute(et,an)}},je.createRect=function(Le,we,Be){var Ge=document.createElementNS("http://www.w3.org/2000/svg","rect");return Ge.setAttribute("width",Le.toString()),Ge.setAttribute("height",we.toString()),Be&&je.setAttributes(Ge,Be),Ge},je.createLine=function(Le,we,Be,Ge,ke){var et=document.createElementNS("http://www.w3.org/2000/svg","line");return et.setAttribute("x1",Le.toString()),et.setAttribute("y1",we.toString()),et.setAttribute("x2",Be.toString()),et.setAttribute("y2",Ge.toString()),ke&&je.setAttributes(et,ke),et},je.createPolygon=function(Le,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","polygon");return Be.setAttribute("points",Le),we&&je.setAttributes(Be,we),Be},je.createCircle=function(Le,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","circle");return Be.setAttribute("cx",(Le/2).toString()),Be.setAttribute("cy",(Le/2).toString()),Be.setAttribute("r",Le.toString()),we&&je.setAttributes(Be,we),Be},je.createEllipse=function(Le,we,Be){var Ge=document.createElementNS("http://www.w3.org/2000/svg","ellipse");return Ge.setAttribute("cx",(Le/2).toString()),Ge.setAttribute("cy",(we/2).toString()),Ge.setAttribute("rx",(Le/2).toString()),Ge.setAttribute("ry",(we/2).toString()),Be&&je.setAttributes(Ge,Be),Ge},je.createGroup=function(Le){var we=document.createElementNS("http://www.w3.org/2000/svg","g");return Le&&je.setAttributes(we,Le),we},je.createTransform=function(){return document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGTransform()},je.createMarker=function(Le,we,Be,Ge,ke,et,an){var Bt=document.createElementNS("http://www.w3.org/2000/svg","marker");return je.setAttributes(Bt,[["id",Le],["orient",we],["markerWidth",Be.toString()],["markerHeight",Ge.toString()],["refX",ke.toString()],["refY",et.toString()]]),Bt.appendChild(an),Bt},je.createText=function(Le){var we=document.createElementNS("http://www.w3.org/2000/svg","text");return we.setAttribute("x","0"),we.setAttribute("y","0"),Le&&je.setAttributes(we,Le),we},je.createTSpan=function(Le,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","tspan");return Be.textContent=Le,we&&je.setAttributes(Be,we),Be},je.createImage=function(Le){var we=document.createElementNS("http://www.w3.org/2000/svg","image");return Le&&je.setAttributes(we,Le),we},je.createPoint=function(Le,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","svg").createSVGPoint();return Be.x=Le,Be.y=we,Be},je.createPath=function(Le,we){var Be=document.createElementNS("http://www.w3.org/2000/svg","path");return Be.setAttribute("d",Le),we&&je.setAttributes(Be,we),Be},je}(),dt=function(){function je(){}return je.addKey=function(Le){je.key=Le},Object.defineProperty(je,"isLicensed",{get:function(){return!!je.key&&new RegExp(/^MJS2-[A-Z][0-9]{3}-[A-Z][0-9]{3}-[0-9]{4}$/,"i").test(je.key)},enumerable:!1,configurable:!0}),je}(),Kt=function(){function je(){this.naturalSize=!1,this.imageType="image/png",this.markersOnly=!1}return je.prototype.rasterize=function(Le,we,Be){var Ge=this;return new Promise(function(ke){var et=Be!==void 0?Be:document.createElement("canvas");Le===null&&(Ge.markersOnly=!0,Ge.naturalSize=!1);var an=document.createElementNS("http://www.w3.org/2000/svg","svg");an.setAttribute("xmlns","http://www.w3.org/2000/svg"),an.setAttribute("width",we.width.baseVal.valueAsString),an.setAttribute("height",we.height.baseVal.valueAsString),an.setAttribute("viewBox","0 0 "+we.viewBox.baseVal.width.toString()+" "+we.viewBox.baseVal.height.toString()),an.innerHTML=we.innerHTML,Ge.naturalSize===!0?(an.width.baseVal.value=Le.naturalWidth,an.height.baseVal.value=Le.naturalHeight):Ge.width!==void 0&&Ge.height!==void 0&&(an.width.baseVal.value=Ge.width,an.height.baseVal.value=Ge.height),et.width=an.width.baseVal.value,et.height=an.height.baseVal.value;var Bt=an.outerHTML,Ut=et.getContext("2d");Ge.markersOnly!==!0&&Ut.drawImage(Le,0,0,et.width,et.height);var gt=window.URL,Pt=new Image(et.width,et.height);Pt.setAttribute("crossOrigin","anonymous");var Tt=new Blob([Bt],{type:"image/svg+xml"}),Yt=gt.createObjectURL(Tt);Pt.onload=function(){Ut.drawImage(Pt,0,0),gt.revokeObjectURL(Yt);var dn=et.toDataURL(Ge.imageType,Ge.imageQuality);ke(dn)},Pt.src=Yt})},je}(),Et=function(){},Me=function(){function je(Le){this._classNamePrefixBase="__markerjs2_",this.classes=[],this.rules=[],this.settings=this.defaultSettings,this._classNamePrefix=this._classNamePrefixBase+"_"+Le+"_"}return Object.defineProperty(je.prototype,"classNamePrefixBase",{get:function(){return this._classNamePrefixBase},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"classNamePrefix",{get:function(){return this._classNamePrefix},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"defaultSettings",{get:function(){return{canvasBackgroundColor:"#ffffff",toolbarBackgroundColor:"#111111",toolbarBackgroundHoverColor:"#333333",toolbarColor:"#eeeeee",toolbarHeight:40,toolboxColor:"#eeeeee",toolboxAccentColor:"#3080c3",undoButtonVisible:!0,redoButtonVisible:!1,zoomButtonVisible:!1,zoomOutButtonVisible:!1,clearButtonVisible:!1,resultButtonBlockVisible:!0,logoPosition:"left"}},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"fadeInAnimationClassName",{get:function(){return this.classNamePrefix+"fade_in"},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"fadeOutAnimationClassName",{get:function(){return this.classNamePrefix+"fade_out"},enumerable:!1,configurable:!0}),je.prototype.addClass=function(Le){return this.styleSheet===void 0&&this.addStyleSheet(),Le.name=""+this.classNamePrefix+Le.localName,this.classes.push(Le),this.styleSheet.sheet.insertRule("."+Le.name+" {"+Le.style+"}",this.styleSheet.sheet.cssRules.length),Le},je.prototype.addRule=function(Le){this.styleSheet===void 0&&this.addStyleSheet(),this.rules.push(Le),this.styleSheet.sheet.insertRule(Le.selector+" {"+Le.style+"}",this.styleSheet.sheet.cssRules.length)},je.prototype.addStyleSheet=function(){var Le;this.styleSheet=document.createElement("style"),((Le=this.styleSheetRoot)!==null&&Le!==void 0?Le:document.head).appendChild(this.styleSheet),this.addRule(new zt("."+this.classNamePrefix+" h3","font-family: sans-serif")),this.addRule(new zt("@keyframes "+this.classNamePrefix+"_fade_in_animation_frames",`
|
|
from {
|
|
opacity: 0;
|
|
}
|
|
to {
|
|
opacity: 1;
|
|
}
|
|
`)),this.addRule(new zt("@keyframes "+this.classNamePrefix+"_fade_out_animation_frames",`
|
|
from {
|
|
opacity: 1;
|
|
}
|
|
to {
|
|
opacity: 0;
|
|
}
|
|
`)),this.addClass(new Ke("fade_in",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_in_animation_frames;
|
|
`)),this.addClass(new Ke("fade_out",`
|
|
animation-duration: 0.3s;
|
|
animation-name: `+this.classNamePrefix+`_fade_out_animation_frames;
|
|
`))},je.prototype.removeStyleSheet=function(){var Le;this.styleSheet&&(((Le=this.styleSheetRoot)!==null&&Le!==void 0?Le:document.head).removeChild(this.styleSheet),this.styleSheet=void 0)},je}(),zt=function(je,Le){this.selector=je,this.style=Le},Ke=function(je,Le){this.localName=je,this.style=Le},Ht=function(){function je(Le,we,Be,Ge,ke){this.buttons=[],this.markerButtons=[],this.buttonClickListeners=[],this.markerjsContainer=Le,this.displayMode=we,this.markerItems=Be,this.uiStyleSettings=Ge,this.styles=ke,this.addStyles(),this.adjustLayout=this.adjustLayout.bind(this),this.overflowButtonClicked=this.overflowButtonClicked.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this)}return je.prototype.show=function(Le){var we=this;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Le,this.uiContainer.className=this.toolbarStyleClass.name+" "+this.styles.fadeInAnimationClassName+" "+(this.uiStyleSettings.toolbarStyleColorsClassName?this.uiStyleSettings.toolbarStyleColorsClassName:this.toolbarStyleColorsClass.name);var Be=document.createElement("div");Be.className=this.toolbarBlockStyleClass.name,Be.style.whiteSpace="nowrap",this.uiContainer.appendChild(Be),this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M10.07 14.27a.997.997 0 011.33.48l2.3 4.99 1.8-.85-2.31-4.98c-.24-.5-.02-1.1.48-1.33l.28-.08 2.3-.45L8 5.12V15.9l1.82-1.47.25-.16m3.57 7.7a.99.99 0 01-1.33-.47l-2.18-4.74-2.51 2.02c-.17.14-.38.22-.62.22a1 1 0 01-1-1V3a1 1 0 011-1c.24 0 .47.09.64.23l.01-.01 11.49 9.64a1.001 1.001 0 01-.44 1.75l-3.16.62 2.2 4.73c.26.5.02 1.09-.48 1.32l-3.62 1.69z"/></svg>',"select"),this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M9 3v1H4v2h1v13a2 2 0 002 2h10a2 2 0 002-2V6h1V4h-5V3H9M7 6h10v13H7V6m2 2v9h2V8H9m4 0v9h2V8h-2z"/></svg>',"delete"),this.uiStyleSettings.clearButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M19.36 2.72l1.42 1.42-5.72 5.71c1.07 1.54 1.22 3.39.32 4.59L9.06 8.12c1.2-.9 3.05-.75 4.59.32l5.71-5.72M5.93 17.57c-2.01-2.01-3.24-4.41-3.58-6.65l4.88-2.09 7.44 7.44-2.09 4.88c-2.24-.34-4.64-1.57-6.65-3.58z"/></svg>',"clear"),this.uiStyleSettings.undoButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M12.5 8c-2.65 0-5.05 1-6.9 2.6L2 7v9h9l-3.62-3.62c1.39-1.16 3.16-1.88 5.12-1.88 3.54 0 6.55 2.31 7.6 5.5l2.37-.78C21.08 11.03 17.15 8 12.5 8z"/></svg>',"undo"),this.uiStyleSettings.redoButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M18.4 10.6C16.55 9 14.15 8 11.5 8c-4.65 0-8.58 3.03-9.96 7.22L3.9 16a8.002 8.002 0 017.6-5.5c1.95 0 3.73.72 5.12 1.88L13 16h9V7l-3.6 3.6z"/></svg>',"redo"),this.uiStyleSettings.zoomButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M15.5 14l5 5-1.5 1.5-5-5v-.79l-.27-.28A6.471 6.471 0 019.5 16 6.5 6.5 0 013 9.5 6.5 6.5 0 019.5 3 6.5 6.5 0 0116 9.5c0 1.61-.59 3.09-1.57 4.23l.28.27h.79m-6 0C12 14 14 12 14 9.5S12 5 9.5 5 5 7 5 9.5 7 14 9.5 14m2.5-4h-2v2H9v-2H7V9h2V7h1v2h2v1z"/></svg>',"zoom"),this.uiStyleSettings.zoomButtonVisible&&this.uiStyleSettings.zoomOutButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M15.5 14h-.79l-.28-.27A6.471 6.471 0 0016 9.5 6.5 6.5 0 009.5 3 6.5 6.5 0 003 9.5 6.5 6.5 0 009.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 5 1.5-1.5-5-5m-6 0C7 14 5 12 5 9.5S7 5 9.5 5 14 7 14 9.5 12 14 9.5 14M7 9h5v1H7V9z"/></svg>',"zoom-out"),this.uiStyleSettings.notesButtonVisible&&this.addActionButton(Be,'<svg viewBox="0 0 24 24"><path d="M18.13 12l1.26-1.26c.44-.44 1-.68 1.61-.74V9l-6-6H5c-1.11 0-2 .89-2 2v14a2 2 0 002 2h6v-1.87l.13-.13H5V5h7v7h6.13M14 4.5l5.5 5.5H14V4.5m5.13 9.33l2.04 2.04L15.04 22H13v-2.04l6.13-6.13m3.72.36l-.98.98-2.04-2.04.98-.98c.19-.2.52-.2.72 0l1.32 1.32c.2.2.2.53 0 .72z"/></svg>',"notes"),this.markerButtonBlock=document.createElement("div"),this.markerButtonBlock.className=this.toolbarBlockStyleClass.name,this.markerButtonBlock.style.flexGrow="2",this.markerButtonBlock.style.textAlign="center",this.uiContainer.appendChild(this.markerButtonBlock),this.markerButtonOverflowBlock=document.createElement("div"),this.markerButtonOverflowBlock.className=this.toolbarOverflowBlockStyleClass.name+" "+(this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName?this.uiStyleSettings.toolbarOverflowBlockStyleColorsClassName:this.toolbarOverflowBlockStyleColorsClass.name),this.markerButtonOverflowBlock.style.display="none",this.uiContainer.appendChild(this.markerButtonOverflowBlock),this.markerItems&&(this.markerItems.forEach(function(ke){var et=document.createElement("div");et.className=""+we.toolbarButtonStyleClass.name,et.setAttribute("data-type-name",ke.typeName),et.innerHTML=ke.icon,et.addEventListener("click",function(){we.markerToolbarButtonClicked(et,ke)}),we.buttons.push(et),we.markerButtons.push(et)}),this.overflowButton=document.createElement("div"),this.overflowButton.className=this.toolbarButtonStyleClass.name+" "+(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name),this.overflowButton.innerHTML='<svg viewBox="0 0 24 24"><path d="M12 16a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2m0-6a2 2 0 012 2 2 2 0 01-2 2 2 2 0 01-2-2 2 2 0 012-2z"/></svg>',this.overflowButton.addEventListener("click",this.overflowButtonClicked),this.markerButtonBlock.appendChild(this.overflowButton));var Ge=document.createElement("div");Ge.className=this.toolbarBlockStyleClass.name,Ge.style.whiteSpace="nowrap",Ge.style.display=this.uiStyleSettings.resultButtonBlockVisible!==!1?"":"none",this.uiContainer.appendChild(Ge),this.addActionButton(Ge,'<svg viewBox="0 0 24 24"><path d="M9 20.42l-6.21-6.21 2.83-2.83L9 14.77l9.88-9.89 2.83 2.83L9 20.42z"/></svg>',"render"),this.addActionButton(Ge,'<svg viewBox="0 0 24 24"><path d="M20 6.91L17.09 4 12 9.09 6.91 4 4 6.91 9.09 12 4 17.09 6.91 20 12 14.91 17.09 20 20 17.09 14.91 12 20 6.91z"/></svg>',"close"),this.markerjsContainer.appendChild(this.uiContainer),this.setSelectMode(),this.setCurrentMarker(),this.adjustLayout()},je.prototype.addButtonClickListener=function(Le){this.buttonClickListeners.push(Le)},je.prototype.removeButtonClickListener=function(Le){this.buttonClickListeners.indexOf(Le)>-1&&this.buttonClickListeners.splice(this.buttonClickListeners.indexOf(Le),1)},je.prototype.setSelectMode=function(){this.resetButtonStyles(),this.setActiveButton(this.buttons[0])},je.prototype.adjustLayout=function(){if(this.markerButtons&&this.markerButtons.length>0){var Le=Math.floor(this.markerButtonBlock.clientWidth/this.uiStyleSettings.toolbarHeight)-1;this.markerButtonBlock.innerHTML="",this.markerButtonOverflowBlock.innerHTML="";for(var we=0;we<this.markerButtons.length;we++)we<Le||we===Le&&this.markerButtons.length-1===Le?this.markerButtonBlock.appendChild(this.markerButtons[we]):(we===Le&&this.markerButtonBlock.appendChild(this.overflowButton),this.markerButtonOverflowBlock.appendChild(this.markerButtons[we]))}},je.prototype.overflowButtonClicked=function(){this.markerButtonOverflowBlock.style.display!=="none"?(this.markerButtonOverflowBlock.className=this.markerButtonOverflowBlock.className.replace(this.styles.fadeInAnimationClassName,""),this.markerButtonOverflowBlock.style.display="none"):(this.markerButtonOverflowBlock.className+=" "+this.styles.fadeInAnimationClassName,this.markerButtonOverflowBlock.style.top=this.uiContainer.offsetTop+this.overflowButton.offsetHeight+"px",this.markerButtonOverflowBlock.style.right=this.uiContainer.offsetWidth-this.overflowButton.offsetLeft-this.overflowButton.offsetWidth+2*this.uiContainer.offsetLeft+"px",this.markerButtonOverflowBlock.style.display="inline-block")},je.prototype.resetButtonStyles=function(){var Le=this;this.buttons.forEach(function(we){we.className=we.className.replace(Le.uiStyleSettings.toolbarButtonStyleColorsClassName?Le.uiStyleSettings.toolbarButtonStyleColorsClassName:Le.toolbarButtonStyleColorsClass.name,"").trim(),we.className=we.className.replace(Le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?Le.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:Le.toolbarActiveButtonStyleColorsClass.name,"").trim(),we.className+=" "+(Le.uiStyleSettings.toolbarButtonStyleColorsClassName?Le.uiStyleSettings.toolbarButtonStyleColorsClassName:Le.toolbarButtonStyleColorsClass.name)})},je.prototype.addActionButton=function(Le,we,Be){var Ge=this,ke=document.createElement("div");switch(ke.className=""+this.toolbarButtonStyleClass.name,ke.innerHTML=we,ke.setAttribute("data-action",Be),ke.addEventListener("click",function(){Ge.actionToolbarButtonClicked(ke,Be)}),Be){case"select":ke.style.fill=this.uiStyleSettings.selectButtonColor;break;case"delete":case"clear":ke.style.fill=this.uiStyleSettings.deleteButtonColor;break;case"undo":case"redo":ke.style.fill=this.uiStyleSettings.selectButtonColor;break;case"render":ke.style.fill=this.uiStyleSettings.okButtonColor;break;case"close":ke.style.fill=this.uiStyleSettings.closeButtonColor}Le.appendChild(ke),this.buttons.push(ke)},je.prototype.addStyles=function(){this.toolbarStyleClass=this.styles.addClass(new Ke("toolbar",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: row;
|
|
justify-content: space-between;
|
|
height: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="inline"?"border-top-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-top-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolbarStyleColorsClass=this.styles.addClass(new Ke("toolbar_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
box-shadow: 0px 3px rgba(33, 33, 33, 0.1);
|
|
`)),this.toolbarBlockStyleClass=this.styles.addClass(new Ke("toolbar-block",`
|
|
display: inline-block;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleClass=this.styles.addClass(new Ke("toolbar-overflow-block",`
|
|
position: absolute;
|
|
top: `+this.uiStyleSettings.toolbarHeight+`px;
|
|
max-width: `+2*this.uiStyleSettings.toolbarHeight+`px;
|
|
z-index: 10;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarOverflowBlockStyleColorsClass=this.styles.addClass(new Ke("toolbar-overflow-block_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`));var Le=this.uiStyleSettings.toolbarHeight/4;this.toolbarButtonStyleClass=this.styles.addClass(new Ke("toolbar_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*Le)+`px;
|
|
padding: `+Le+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolbarButtonStyleColorsClass=this.styles.addClass(new Ke("toolbar_button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolbarActiveButtonStyleColorsClass=this.styles.addClass(new Ke("toolbar_active_button",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new zt("."+this.toolbarButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`)),this.styles.addRule(new zt("."+this.toolbarButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`))},je.prototype.markerToolbarButtonClicked=function(Le,we){this.setActiveButton(Le),this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("marker",we)}),this.markerButtonOverflowBlock.style.display="none"},je.prototype.actionToolbarButtonClicked=function(Le,we){this.buttonClickListeners&&this.buttonClickListeners.length>0&&this.buttonClickListeners.forEach(function(Be){return Be("action",we)}),this.markerButtonOverflowBlock.style.display="none",this.setActiveButton(this.buttons[0])},je.prototype.setActiveButton=function(Le){this.resetButtonStyles(),Le.className=Le.className.replace(this.uiStyleSettings.toolbarButtonStyleColorsClassName?this.uiStyleSettings.toolbarButtonStyleColorsClassName:this.toolbarButtonStyleColorsClass.name,"").trim(),Le.className+=" "+(this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName?this.uiStyleSettings.toolbarActiveButtonStyleColorsClassName:this.toolbarActiveButtonStyleColorsClass.name)},je.prototype.setActiveMarkerButton=function(Le){var we=this.markerButtons.find(function(Be){return Be.getAttribute("data-type-name")===Le});we&&this.setActiveButton(we)},je.prototype.setCurrentMarker=function(Le){var we=this;this.currentMarker=Le,this.buttons.filter(function(Be){return/delete|notes/.test(Be.getAttribute("data-action"))}).forEach(function(Be){we.currentMarker===void 0?(Be.style.fillOpacity="0.4",Be.style.pointerEvents="none"):(Be.style.fillOpacity="1",Be.style.pointerEvents="all")})},je}(),Ne=function(){function je(Le,we,Be,Ge){this.panels=[],this.panelButtons=[],this.markerjsContainer=Le,this.displayMode=we,this.uiStyleSettings=Be,this.styles=Ge,this.panelButtonClick=this.panelButtonClick.bind(this),this.addStyles()}return je.prototype.addStyles=function(){var Le;this.toolboxStyleClass=this.styles.addClass(new Ke("toolbox",`
|
|
width: 100%;
|
|
flex-shrink: 0;
|
|
display: flex;
|
|
flex-direction: column;
|
|
font-family: sans-serif;
|
|
`+(this.displayMode==="popup"?"height:"+2.5*this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
box-sizing: content-box;
|
|
`+(this.displayMode==="popup"?"background-color: "+this.uiStyleSettings.canvasBackgroundColor+";":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-left-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
`+(this.displayMode==="inline"?"border-bottom-right-radius: "+Math.round(this.uiStyleSettings.toolbarHeight/10)+"px;":"")+`
|
|
overflow: hidden;
|
|
`)),this.toolboxStyleColorsClass=this.styles.addClass(new Ke("toolbox_colors",`
|
|
color: `+this.uiStyleSettings.toolboxColor+`;
|
|
`));var we=this.uiStyleSettings.toolbarHeight/4;this.toolboxButtonRowStyleClass=this.styles.addClass(new Ke("toolbox-button-row",`
|
|
display: flex;
|
|
cursor: default;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonRowStyleColorsClass=this.styles.addClass(new Ke("toolbox-button-row_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundColor+`;
|
|
`)),this.toolboxPanelRowStyleClass=this.styles.addClass(new Ke("toolbox-panel-row",`
|
|
display: flex;
|
|
`+(this.displayMode==="inline"?"position: absolute;":"")+`
|
|
`+(this.displayMode==="inline"?"bottom: "+this.uiStyleSettings.toolbarHeight+"px;":"")+`
|
|
cursor: default;
|
|
height: `+1.5*this.uiStyleSettings.toolbarHeight+`px;
|
|
`+(this.displayMode==="inline"?"width: 100%;":"")+`
|
|
box-sizing: content-box;
|
|
`)),this.toolboxPanelRowStyleColorsClass=this.styles.addClass(new Ke("toolbox-panel-row_colors",`
|
|
background-color: `+((Le=this.uiStyleSettings.toolboxBackgroundColor)!==null&&Le!==void 0?Le:this.uiStyleSettings.toolbarBackgroundHoverColor)+`;
|
|
`)),this.toolboxButtonStyleClass=this.styles.addClass(new Ke("toolbox_button",`
|
|
display: inline-block;
|
|
width: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
height: `+(this.uiStyleSettings.toolbarHeight-2*we)+`px;
|
|
padding: `+we+`px;
|
|
box-sizing: content-box;
|
|
`)),this.toolboxButtonStyleColorsClass=this.styles.addClass(new Ke("toolbox-button_colors",`
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.toolboxActiveButtonStyleColorsClass=this.styles.addClass(new Ke("toolbox-active-button_colors",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`;
|
|
fill: `+this.uiStyleSettings.toolbarColor+`;
|
|
`)),this.styles.addRule(new zt("."+this.toolboxButtonStyleColorsClass.name+":hover",`
|
|
background-color: `+this.uiStyleSettings.toolbarBackgroundHoverColor+`
|
|
`)),this.styles.addRule(new zt("."+this.toolboxButtonStyleClass.name+" svg",`
|
|
height: `+this.uiStyleSettings.toolbarHeight/2+`px;
|
|
`))},je.prototype.show=function(Le){var we;this.uiContainer=document.createElement("div"),this.uiContainer.style.visibility=Le,this.uiContainer.className=this.toolboxStyleClass.name+" "+((we=this.uiStyleSettings.toolboxStyleColorsClassName)!==null&&we!==void 0?we:this.toolboxStyleColorsClass.name),this.markerjsContainer.appendChild(this.uiContainer)},je.prototype.setPanelButtons=function(Le){var we,Be,Ge=this;this.panels=Le,this.uiContainer!==void 0&&(this.uiContainer.innerHTML="",this.panelRow=document.createElement("div"),this.panelRow.className=this.toolboxPanelRowStyleClass.name+" "+((we=this.uiStyleSettings.toolboxPanelRowStyleColorsClassName)!==null&&we!==void 0?we:this.toolboxPanelRowStyleColorsClass.name),this.uiContainer.appendChild(this.panelRow),this.buttonRow=document.createElement("div"),this.buttonRow.className=this.toolboxButtonRowStyleClass.name+" "+((Be=this.uiStyleSettings.toolboxButtonRowStyleColorsClassName)!==null&&Be!==void 0?Be:this.toolboxButtonRowStyleColorsClass.name)+" ",this.uiContainer.appendChild(this.buttonRow),this.panelButtons.splice(0),this.panels.forEach(function(ke){var et;ke.uiStyleSettings=Ge.uiStyleSettings;var an=document.createElement("div");an.className=Ge.toolboxButtonStyleClass.name+" "+((et=Ge.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&et!==void 0?et:Ge.toolboxButtonStyleColorsClass.name),an.innerHTML=ke.icon,an.title=ke.title,an.addEventListener("click",function(){Ge.panelButtonClick(ke)}),Ge.panelButtons.push(an),Ge.buttonRow.appendChild(an)}),this.displayMode==="inline"?this.panelRow.style.display="none":this.panelRow.style.visibility="hidden")},je.prototype.panelButtonClick=function(Le){var we=this,Be=-1;if(Le!==this.activePanel){Be=this.panels.indexOf(Le),this.panelRow.innerHTML="";var Ge=Le.getUi();Ge.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.panelRow.appendChild(Ge),this.panelRow.style.display="flex",this.panelRow.style.visibility="visible",this.panelRow.className=this.panelRow.className.replace(this.styles.fadeOutAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeInAnimationClassName,this.activePanel=Le}else this.activePanel=void 0,this.panelRow.className=this.panelRow.className.replace(this.styles.fadeInAnimationClassName,""),this.panelRow.className+=" "+this.styles.fadeOutAnimationClassName,setTimeout(function(){we.displayMode==="inline"?we.panelRow.style.display="none":we.panelRow.style.visibility="hidden"},200);this.panelButtons.forEach(function(ke,et){var an,Bt;ke.className=we.toolboxButtonStyleClass.name+" "+(et===Be?""+((an=we.uiStyleSettings.toolboxActiveButtonStyleColorsClassName)!==null&&an!==void 0?an:we.toolboxActiveButtonStyleColorsClass.name):""+((Bt=we.uiStyleSettings.toolboxButtonStyleColorsClassName)!==null&&Bt!==void 0?Bt:we.toolboxButtonStyleColorsClass.name))})},je}(),ne=function(je,Le){this.title=je,this.icon=Le},te=function(je){function Le(we,Be,Ge,ke){var et=je.call(this,we,ke||'<svg viewBox="0 0 24 24"><path d="M17.5 12a1.5 1.5 0 01-1.5-1.5A1.5 1.5 0 0117.5 9a1.5 1.5 0 011.5 1.5 1.5 1.5 0 01-1.5 1.5m-3-4A1.5 1.5 0 0113 6.5 1.5 1.5 0 0114.5 5 1.5 1.5 0 0116 6.5 1.5 1.5 0 0114.5 8m-5 0A1.5 1.5 0 018 6.5 1.5 1.5 0 019.5 5 1.5 1.5 0 0111 6.5 1.5 1.5 0 019.5 8m-3 4A1.5 1.5 0 015 10.5 1.5 1.5 0 016.5 9 1.5 1.5 0 018 10.5 1.5 1.5 0 016.5 12M12 3a9 9 0 00-9 9 9 9 0 009 9 1.5 1.5 0 001.5-1.5c0-.39-.15-.74-.39-1-.23-.27-.38-.62-.38-1a1.5 1.5 0 011.5-1.5H16a5 5 0 005-5c0-4.42-4.03-8-9-8z"/></svg>')||this;return et.colors=[],et.addTransparent=!1,et.colorBoxes=[],et.colors=Be,et.currentColor=Ge,et.setCurrentColor=et.setCurrentColor.bind(et),et.getColorBox=et.getColorBox.bind(et),et}return nt(Le,je),Le.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.whiteSpace="nowrap",this.colors.forEach(function(Ge){var ke=we.getColorBox(Ge);Be.appendChild(ke),we.colorBoxes.push(ke)}),Be},Le.prototype.getColorBox=function(we){var Be=this,Ge=this.uiStyleSettings.toolbarHeight/4,ke=this.uiStyleSettings.toolbarHeight-Ge,et=document.createElement("div");et.style.display="inline-block",et.style.boxSizing="content-box",et.style.width=ke-2+"px",et.style.height=ke-2+"px",et.style.padding="1px",et.style.marginRight="2px",et.style.marginBottom="2px",et.style.borderWidth="2px",et.style.borderStyle="solid",et.style.borderRadius=(ke+2)/2+"px",et.style.borderColor=we===this.currentColor?this.uiStyleSettings.toolboxAccentColor:"transparent",et.addEventListener("click",function(){Be.setCurrentColor(we,et)});var an=document.createElement("div");return an.style.display="inline-block",an.style.width=ke-2+"px",an.style.height=ke-2+"px",an.style.backgroundColor=we,an.style.borderRadius=ke/2+"px",we==="transparent"&&(an.style.fill=this.uiStyleSettings.toolboxAccentColor,an.innerHTML=`<svg viewBox="0 0 24 24">
|
|
<path d="M2,5.27L3.28,4L20,20.72L18.73,22L15.65,18.92C14.5,19.3 13.28,19.5 12,19.5C7,19.5 2.73,16.39 1,12C1.69,10.24 2.79,8.69 4.19,7.46L2,5.27M12,9A3,3 0 0,1 15,12C15,12.35 14.94,12.69 14.83,13L11,9.17C11.31,9.06 11.65,9 12,9M12,4.5C17,4.5 21.27,7.61 23,12C22.18,14.08 20.79,15.88 19,17.19L17.58,15.76C18.94,14.82 20.06,13.54 20.82,12C19.17,8.64 15.76,6.5 12,6.5C10.91,6.5 9.84,6.68 8.84,7L7.3,5.47C8.74,4.85 10.33,4.5 12,4.5M3.18,12C4.83,15.36 8.24,17.5 12,17.5C12.69,17.5 13.37,17.43 14,17.29L11.72,15C10.29,14.85 9.15,13.71 9,12.28L5.6,8.87C4.61,9.72 3.78,10.78 3.18,12Z" />
|
|
</svg>`),et.appendChild(an),et},Le.prototype.setCurrentColor=function(we,Be){var Ge=this;this.currentColor=we,this.colorBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onColorChanged&&this.onColorChanged(we)},Le}(ne),de=function(){function je(Le,we,Be){this._state="new",this._isSelected=!1,this._container=Le,this._overlayContainer=we,this.globalSettings=Be,this.stateChanged=this.stateChanged.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this)}return Object.defineProperty(je.prototype,"typeName",{get:function(){return Object.getPrototypeOf(this).constructor.typeName},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"container",{get:function(){return this._container},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"overlayContainer",{get:function(){return this._overlayContainer},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"state",{get:function(){return this._state},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"toolboxPanels",{get:function(){return[]},enumerable:!1,configurable:!0}),je.prototype.ownsTarget=function(Le){return!1},Object.defineProperty(je.prototype,"isSelected",{get:function(){return this._isSelected},enumerable:!1,configurable:!0}),je.prototype.select=function(){this.container.style.cursor="move",this._isSelected=!0,this.manipulationStartState=this.getState()},je.prototype.deselect=function(){this.container.style.cursor="default",this._isSelected=!1,this.stateChanged()},je.prototype.pointerDown=function(Le,we){},je.prototype.dblClick=function(Le,we){},je.prototype.manipulate=function(Le){},je.prototype.pointerUp=function(Le){this.stateChanged()},je.prototype.dispose=function(){},je.prototype.addMarkerVisualToContainer=function(Le){this.container.childNodes.length>0?this.container.insertBefore(Le,this.container.childNodes[0]):this.container.appendChild(Le)},je.prototype.getState=function(){return{typeName:je.typeName,state:this.state,notes:this.notes}},je.prototype.restoreState=function(Le){this._state=Le.state,this.notes=Le.notes},je.prototype.scale=function(Le,we){},je.prototype.colorChanged=function(Le){this.onColorChanged&&this.onColorChanged(Le),this.stateChanged()},je.prototype.fillColorChanged=function(Le){this.onFillColorChanged&&this.onFillColorChanged(Le),this.stateChanged()},je.prototype.stateChanged=function(){if(this.onStateChanged&&this.state!=="creating"&&this.state!=="new"){var Le=this.getState();this.manipulationStartState!==void 0&&(this.manipulationStartState.state="select"),Le.state="select",JSON.stringify(this.manipulationStartState)!=JSON.stringify(Le)&&this.onStateChanged(this)}},je.typeName="MarkerBase",je}(),le=function(){function je(){this.findGripByVisual=this.findGripByVisual.bind(this)}return je.prototype.findGripByVisual=function(Le){return this.topLeft.ownsTarget(Le)?this.topLeft:this.topCenter.ownsTarget(Le)?this.topCenter:this.topRight.ownsTarget(Le)?this.topRight:this.centerLeft.ownsTarget(Le)?this.centerLeft:this.centerRight.ownsTarget(Le)?this.centerRight:this.bottomLeft.ownsTarget(Le)?this.bottomLeft:this.bottomCenter.ownsTarget(Le)?this.bottomCenter:this.bottomRight.ownsTarget(Le)?this.bottomRight:void 0},je}(),ge=function(){function je(){this.GRIP_SIZE=10,this.visual=ze.createGroup(),this.visual.appendChild(ze.createCircle(1.5*this.GRIP_SIZE,[["fill","transparent"]])),this.visual.appendChild(ze.createCircle(this.GRIP_SIZE,[["fill","#cccccc"],["fill-opacity","0.7"],["stroke","#333333"],["stroke-width","2"],["stroke-opacity","0.7"]]))}return je.prototype.ownsTarget=function(Le){return Le===this.visual||Le===this.visual.childNodes[0]||Le===this.visual.childNodes[1]},je}(),me=function(){function je(){}return je.toITransformMatrix=function(Le){return{a:Le.a,b:Le.b,c:Le.c,d:Le.d,e:Le.e,f:Le.f}},je.toSVGMatrix=function(Le,we){return Le.a=we.a,Le.b=we.b,Le.c=we.c,Le.d=we.d,Le.e=we.e,Le.f=we.f,Le},je}(),Se=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.left=0,ke.top=0,ke.width=0,ke.height=0,ke.defaultSize={x:50,y:20},ke.offsetX=0,ke.offsetY=0,ke.rotationAngle=0,ke.CB_DISTANCE=10,ke._suppressMarkerCreateEvent=!1,ke.container.transform.baseVal.appendItem(ze.createTransform()),ke.setupControlBox(),ke}return nt(Le,je),Object.defineProperty(Le.prototype,"centerX",{get:function(){return this.left+this.width/2},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"centerY",{get:function(){return this.top+this.height/2},enumerable:!1,configurable:!0}),Object.defineProperty(Le.prototype,"visual",{get:function(){return this._visual},set:function(we){this._visual=we;var Be=ze.createTransform();this._visual.transform.baseVal.appendItem(Be)},enumerable:!1,configurable:!0}),Le.prototype.ownsTarget=function(we){return!!je.prototype.ownsTarget.call(this,we)||!!(this.controlGrips.findGripByVisual(we)!==void 0||this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(we))},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.left=we.x,this.top=we.y),this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.manipulationStartWidth=this.width,this.manipulationStartHeight=this.height;var Ge=this.unrotatePoint(we);if(this.manipulationStartX=Ge.x,this.manipulationStartY=Ge.y,this.offsetX=Ge.x-this.left,this.offsetY=Ge.y-this.top,this.state!=="new")if(this.select(),this.activeGrip=this.controlGrips.findGripByVisual(Be),this.activeGrip!==void 0)this._state="resize";else if(this.rotatorGrip!==void 0&&this.rotatorGrip.ownsTarget(Be)){this.activeGrip=this.rotatorGrip;var ke=this.rotatePoint({x:this.centerX,y:this.centerY});this.left=ke.x-this.width/2,this.top=ke.y-this.height/2,this.moveVisual({x:this.left,y:this.top});var et=this.container.transform.baseVal.getItem(0);et.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(et,0),this.adjustControlBox(),this._state="rotate"}else this._state="move"},Le.prototype.pointerUp=function(we){var Be=this.state;je.prototype.pointerUp.call(this,we),this.state==="creating"&&this.width<10&&this.height<10?(this.width=this.defaultSize.x,this.height=this.defaultSize.y):this.manipulate(we),this._state="select",Be==="creating"&&this.onMarkerCreated&&this._suppressMarkerCreateEvent===!1&&this.onMarkerCreated(this)},Le.prototype.moveVisual=function(we){this.visual.style.transform="translate("+we.x+"px, "+we.y+"px)"},Le.prototype.manipulate=function(we){var Be=this.unrotatePoint(we);this.state==="creating"?this.resize(we):this.state==="move"?(this.left=this.manipulationStartLeft+(Be.x-this.manipulationStartLeft)-this.offsetX,this.top=this.manipulationStartTop+(Be.y-this.manipulationStartTop)-this.offsetY,this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()):this.state==="resize"?this.resize(Be):this.state==="rotate"&&this.rotate(we)},Le.prototype.resize=function(we){var Be=this.manipulationStartLeft,Ge=this.manipulationStartWidth,ke=this.manipulationStartTop,et=this.manipulationStartHeight;switch(this.activeGrip){case this.controlGrips.bottomLeft:case this.controlGrips.centerLeft:case this.controlGrips.topLeft:Be=this.manipulationStartLeft+we.x-this.manipulationStartX,Ge=this.manipulationStartWidth+this.manipulationStartLeft-Be;break;case this.controlGrips.bottomRight:case this.controlGrips.centerRight:case this.controlGrips.topRight:case void 0:Ge=this.manipulationStartWidth+we.x-this.manipulationStartX}switch(this.activeGrip){case this.controlGrips.topCenter:case this.controlGrips.topLeft:case this.controlGrips.topRight:ke=this.manipulationStartTop+we.y-this.manipulationStartY,et=this.manipulationStartHeight+this.manipulationStartTop-ke;break;case this.controlGrips.bottomCenter:case this.controlGrips.bottomLeft:case this.controlGrips.bottomRight:case void 0:et=this.manipulationStartHeight+we.y-this.manipulationStartY}Ge>=0?(this.left=Be,this.width=Ge):(this.left=Be+Ge,this.width=-Ge),et>=0?(this.top=ke,this.height=et):(this.top=ke+et,this.height=-et),this.setSize()},Le.prototype.setSize=function(){this.moveVisual({x:this.left,y:this.top}),this.adjustControlBox()},Le.prototype.rotate=function(we){if(Math.abs(we.x-this.centerX)>.1){var Be=Math.sign(we.x-this.centerX);this.rotationAngle=180*Math.atan((we.y-this.centerY)/(we.x-this.centerX))/Math.PI+90*Be,this.applyRotation()}},Le.prototype.applyRotation=function(){var we=this.container.transform.baseVal.getItem(0);we.setRotate(this.rotationAngle,this.centerX,this.centerY),this.container.transform.baseVal.replaceItem(we,0)},Le.prototype.rotatePoint=function(we){if(this.rotationAngle===0)return we;var Be=this.container.getCTM(),Ge=ze.createPoint(we.x,we.y);return{x:(Ge=Ge.matrixTransform(Be)).x,y:Ge.y}},Le.prototype.unrotatePoint=function(we){if(this.rotationAngle===0)return we;var Be=this.container.getCTM();Be=Be.inverse();var Ge=ze.createPoint(we.x,we.y);return{x:(Ge=Ge.matrixTransform(Be)).x,y:Ge.y}},Le.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Le.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},Le.prototype.setupControlBox=function(){this.controlBox=ze.createGroup();var we=ze.createTransform();we.setTranslate(-this.CB_DISTANCE/2,-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.appendItem(we),this.container.appendChild(this.controlBox),this.controlRect=ze.createRect(this.width+this.CB_DISTANCE,this.height+this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"],["fill","transparent"],["pointer-events","none"]]),this.controlBox.appendChild(this.controlRect),this.globalSettings.disableRotation!==!0&&(this.rotatorGripLine=ze.createLine((this.width+2*this.CB_DISTANCE)/2,this.top-this.CB_DISTANCE,(this.width+2*this.CB_DISTANCE)/2,this.top-3*this.CB_DISTANCE,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.appendChild(this.rotatorGripLine)),this.controlGrips=new le,this.addControlGrips(),this.controlBox.style.display="none"},Le.prototype.adjustControlBox=function(){var we=this.controlBox.transform.baseVal.getItem(0);we.setTranslate(this.left-this.CB_DISTANCE/2,this.top-this.CB_DISTANCE/2),this.controlBox.transform.baseVal.replaceItem(we,0),this.controlRect.setAttribute("width",(this.width+this.CB_DISTANCE).toString()),this.controlRect.setAttribute("height",(this.height+this.CB_DISTANCE).toString()),this.rotatorGripLine!==void 0&&(this.rotatorGripLine.setAttribute("x1",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y1",(-this.CB_DISTANCE/2).toString()),this.rotatorGripLine.setAttribute("x2",((this.width+this.CB_DISTANCE)/2).toString()),this.rotatorGripLine.setAttribute("y2",(3*-this.CB_DISTANCE).toString())),this.positionGrips()},Le.prototype.addControlGrips=function(){this.controlGrips.topLeft=this.createGrip(),this.controlGrips.topCenter=this.createGrip(),this.controlGrips.topRight=this.createGrip(),this.controlGrips.centerLeft=this.createGrip(),this.controlGrips.centerRight=this.createGrip(),this.controlGrips.bottomLeft=this.createGrip(),this.controlGrips.bottomCenter=this.createGrip(),this.controlGrips.bottomRight=this.createGrip(),this.globalSettings.disableRotation!==!0&&(this.rotatorGrip=this.createGrip()),this.positionGrips()},Le.prototype.createGrip=function(){var we=new ge;return we.visual.transform.baseVal.appendItem(ze.createTransform()),this.controlBox.appendChild(we.visual),we},Le.prototype.positionGrips=function(){var we=this.controlGrips.topLeft.GRIP_SIZE,Be=-we/2,Ge=Be,ke=(this.width+this.CB_DISTANCE)/2-we/2,et=(this.height+this.CB_DISTANCE)/2-we/2,an=this.height+this.CB_DISTANCE-we/2,Bt=this.width+this.CB_DISTANCE-we/2;this.positionGrip(this.controlGrips.topLeft.visual,Be,Ge),this.positionGrip(this.controlGrips.topCenter.visual,ke,Ge),this.positionGrip(this.controlGrips.topRight.visual,Bt,Ge),this.positionGrip(this.controlGrips.centerLeft.visual,Be,et),this.positionGrip(this.controlGrips.centerRight.visual,Bt,et),this.positionGrip(this.controlGrips.bottomLeft.visual,Be,an),this.positionGrip(this.controlGrips.bottomCenter.visual,ke,an),this.positionGrip(this.controlGrips.bottomRight.visual,Bt,an),this.rotatorGrip!==void 0&&this.positionGrip(this.rotatorGrip.visual,ke,Ge-3*this.CB_DISTANCE)},Le.prototype.positionGrip=function(we,Be,Ge){var ke=we.transform.baseVal.getItem(0);ke.setTranslate(Be,Ge),we.transform.baseVal.replaceItem(ke,0)},Le.prototype.hideControlBox=function(){this.controlBox.style.display="none"},Le.prototype.showControlBox=function(){this.controlBox.style.display=""},Le.prototype.getState=function(){return Object.assign({left:this.left,top:this.top,width:this.width,height:this.height,rotationAngle:this.rotationAngle,visualTransformMatrix:me.toITransformMatrix(this.visual.transform.baseVal.getItem(0).matrix),containerTransformMatrix:me.toITransformMatrix(this.container.transform.baseVal.getItem(0).matrix)},je.prototype.getState.call(this))},Le.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.left=Be.left,this.top=Be.top,this.width=Be.width,this.height=Be.height,this.rotationAngle=Be.rotationAngle,this.visual.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.visual.transform.baseVal.getItem(0).matrix,Be.visualTransformMatrix)),this.container.transform.baseVal.getItem(0).setMatrix(me.toSVGMatrix(this.container.transform.baseVal.getItem(0).matrix,Be.containerTransformMatrix))},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be);var Ge=this.rotatePoint({x:this.left,y:this.top}),ke=this.unrotatePoint({x:Ge.x*we,y:Ge.y*Be});this.left=ke.x,this.top=ke.y,this.width=this.width*we,this.height=this.height*Be,this.adjustControlBox()},Le}(de),be=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.opacity=1,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual)},Le.prototype.createVisual=function(){this.visual=ze.createRect(1,1,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Le.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we)},Le.prototype.resize=function(we){je.prototype.resize.call(this,we),this.setSize()},Le.prototype.setSize=function(){je.prototype.setSize.call(this),ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]])},Le.prototype.pointerUp=function(we){je.prototype.pointerUp.call(this,we),this.setSize()},Le.prototype.setStrokeColor=function(we){this.strokeColor=we,this.visual&&ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},Le.prototype.setFillColor=function(we){this.fillColor=we,this.visual&&ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.stateChanged()},Le.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.visual&&ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.visual&&ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Le.prototype.getState=function(){return Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this))},Le.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize()},Le.title="Rectangle marker",Le}(Se),Ie=function(je){function Le(we,Be,Ge,ke){var et=je.call(this,we,ke||'<svg viewBox="0 0 24 24"><path d="M3 17h18v-2H3v2m0 3h18v-1H3v1m0-7h18v-3H3v3m0-9v4h18V4H3z"/></svg>')||this;return et.widths=[],et.widthBoxes=[],et.widths=Be,et.currentWidth=Ge,et.setCurrentWidth=et.setCurrentWidth.bind(et),et}return nt(Le,je),Le.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.widths.forEach(function(Ge){var ke=document.createElement("div");ke.style.display="flex",ke.style.flexGrow="2",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=Ge===we.currentWidth?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentWidth(Ge,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.innerText=Ge.toString(),et.style.marginRight="5px",ke.appendChild(et);var an=document.createElement("div");an.style.minHeight="20px",an.style.flexGrow="2",an.style.display="flex",an.style.alignItems="center";var Bt=document.createElement("hr");Bt.style.minWidth="20px",Bt.style.border="0px",Bt.style.borderTop=Ge+"px solid "+we.uiStyleSettings.toolboxColor,Bt.style.flexGrow="2",an.appendChild(Bt),ke.appendChild(an),we.widthBoxes.push(ke)}),Be},Le.prototype.setCurrentWidth=function(we,Be){var Ge=this;this.currentWidth=we,this.widthBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onWidthChanged&&this.onWidthChanged(this.currentWidth)},Le}(ne),Ze=function(je){function Le(we,Be,Ge,ke){var et=je.call(this,we,ke||'<svg viewBox="0 0 24 24"><path d="M3 16h5v-2H3v2m6.5 0h5v-2h-5v2m6.5 0h5v-2h-5v2M3 20h2v-2H3v2m4 0h2v-2H7v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2m4 0h2v-2h-2v2M3 12h8v-2H3v2m10 0h8v-2h-8v2M3 4v4h18V4H3z"/></svg>')||this;return et.styles=[],et.styleBoxes=[],et.styles=Be,et.currentStyle=Ge,et.setCurrentStyle=et.setCurrentStyle.bind(et),et}return nt(Le,je),Le.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",this.styles.forEach(function(Ge){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.overflow="hidden",ke.style.maxWidth=100/we.styles.length-5+"%",ke.style.borderColor=Ge===we.currentStyle?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentStyle(Ge,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.style.minHeight="20px",et.style.flexGrow="2",et.style.overflow="hidden";var an=`<svg width="100" height="20">
|
|
<line x1="0" y1="10" x2="100" y2="10" stroke="`+we.uiStyleSettings.toolboxColor+'" stroke-width="3" '+(Ge!==""?'stroke-dasharray="'+Ge+'"':"")+` />
|
|
</svg>`;et.innerHTML=an,ke.appendChild(et),we.styleBoxes.push(ke)}),Be},Le.prototype.setCurrentStyle=function(we,Be){var Ge=this;this.currentStyle=we,this.styleBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onStyleChanged&&this.onStyleChanged(this.currentStyle)},Le}(ne),st=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.strokeColor=Ge.defaultColor,ke.strokeWidth=Ge.defaultStrokeWidth,ke.strokeDasharray=Ge.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ge.defaultColorSet,Ge.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new Ie("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return nt(Le,je),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=Le.typeName,we},Le.typeName="FrameMarker",Le.title="Frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4m14 11H6V8h12v9z"/></svg>',Le}(be),Ye=function(){this.defaultColorSet=["#EF4444","#10B981","#2563EB","#FFFF00","#7C3AED","#F472B6","#000000","#FFFFFF"],this.defaultColor=this.defaultColorSet[0],this.defaultFillColor=this.defaultColorSet[0],this.defaultStrokeColor=this.defaultColorSet[7],this.defaultHighlightColor=this.defaultColorSet[3],this.defaultStrokeWidth=3,this.defaultStrokeDasharray="",this.defaultHighlightOpacity=.5,this.defaultFontFamily="Helvetica, Arial, sans-serif",this.defaultStrokeWidths=[1,2,3,5,10],this.defaultStrokeDasharrays=["","3","12 3","9 6 3 6"],this.defaultOpacitySteps=[.1,.25,.5,.75,1],this.displayMode="inline",this.defaultFontFamilies=['Times, "Times New Roman", serif',"Helvetica, Arial, sans-serif",'Courier, "Courier New", monospace',"cursive","fantasy"],this.popupMargin=30,this.newFreehandMarkerOnPointerUp=!1,this.defaultColorsFollowCurrentColors=!1,this.freehandPixelRatio=1,this.disableRotation=!1,this.defaultCaptionFontSize="1rem",this.defaultCaptionText="Text"},Xe=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.x1=0,ke.y1=0,ke.x2=0,ke.y2=0,ke.defaultLength=50,ke.manipulationStartX=0,ke.manipulationStartY=0,ke.manipulationStartX1=0,ke.manipulationStartY1=0,ke.manipulationStartX2=0,ke.manipulationStartY2=0,ke.setupControlBox(),ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!!je.prototype.ownsTarget.call(this,we)||!(!this.grip1.ownsTarget(we)&&!this.grip2.ownsTarget(we))},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.manipulationStartX=we.x,this.manipulationStartY=we.y,this.state==="new"&&(this.x1=we.x,this.y1=we.y,this.x2=we.x,this.y2=we.y),this.manipulationStartX1=this.x1,this.manipulationStartY1=this.y1,this.manipulationStartX2=this.x2,this.manipulationStartY2=this.y2,this.state!=="new"&&(this.select(),this.grip1.ownsTarget(Be)?this.activeGrip=this.grip1:this.grip2.ownsTarget(Be)?this.activeGrip=this.grip2:this.activeGrip=void 0,this.activeGrip?this._state="resize":this._state="move")},Le.prototype.pointerUp=function(we){var Be=this.state;je.prototype.pointerUp.call(this,we),this.state==="creating"&&Math.abs(this.x1-this.x2)<10&&Math.abs(this.y1-this.y2)<10?(this.x2=this.x1+this.defaultLength,this.adjustVisual(),this.adjustControlBox()):this.manipulate(we),this._state="select",Be==="creating"&&this.onMarkerCreated&&this.onMarkerCreated(this)},Le.prototype.adjustVisual=function(){},Le.prototype.manipulate=function(we){this.state==="creating"?this.resize(we):this.state==="move"?(this.x1=this.manipulationStartX1+we.x-this.manipulationStartX,this.y1=this.manipulationStartY1+we.y-this.manipulationStartY,this.x2=this.manipulationStartX2+we.x-this.manipulationStartX,this.y2=this.manipulationStartY2+we.y-this.manipulationStartY,this.adjustVisual(),this.adjustControlBox()):this.state==="resize"&&this.resize(we)},Le.prototype.resize=function(we){switch(this.activeGrip){case this.grip1:this.x1=we.x,this.y1=we.y;break;case this.grip2:case void 0:this.x2=we.x,this.y2=we.y}this.adjustVisual(),this.adjustControlBox()},Le.prototype.select=function(){je.prototype.select.call(this),this.adjustControlBox(),this.controlBox.style.display=""},Le.prototype.deselect=function(){je.prototype.deselect.call(this),this.controlBox.style.display="none"},Le.prototype.setupControlBox=function(){this.controlBox=ze.createGroup(),this.container.appendChild(this.controlBox),this.addControlGrips(),this.controlBox.style.display="none"},Le.prototype.adjustControlBox=function(){this.positionGrips()},Le.prototype.addControlGrips=function(){this.grip1=this.createGrip(),this.grip2=this.createGrip(),this.positionGrips()},Le.prototype.createGrip=function(){var we=new ge;return we.visual.transform.baseVal.appendItem(ze.createTransform()),this.controlBox.appendChild(we.visual),we},Le.prototype.positionGrips=function(){var we=this.grip1.GRIP_SIZE;this.positionGrip(this.grip1.visual,this.x1-we/2,this.y1-we/2),this.positionGrip(this.grip2.visual,this.x2-we/2,this.y2-we/2)},Le.prototype.positionGrip=function(we,Be,Ge){var ke=we.transform.baseVal.getItem(0);ke.setTranslate(Be,Ge),we.transform.baseVal.replaceItem(ke,0)},Le.prototype.getState=function(){return Object.assign({x1:this.x1,y1:this.y1,x2:this.x2,y2:this.y2},je.prototype.getState.call(this))},Le.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.x1=Be.x1,this.y1=Be.y1,this.x2=Be.x2,this.y2=Be.y2},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.x1=this.x1*we,this.y1=this.y1*Be,this.x2=this.x2*we,this.y2=this.y2*Be,this.adjustVisual(),this.adjustControlBox()},Le}(de),At=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.strokeColor=Ge.defaultColor,ke.strokeWidth=Ge.defaultStrokeWidth,ke.strokeDasharray=Ge.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ge.defaultColorSet,Ge.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new Ie("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.selectorLine&&we!==this.visibleLine)},Le.prototype.createVisual=function(){this.visual=ze.createGroup(),this.selectorLine=ze.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()]]),this.visibleLine=ze.createLine(this.x1,this.y1,this.x2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.visual.appendChild(this.selectorLine),this.visual.appendChild(this.visibleLine),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.adjustVisual(),this._state="creating")},Le.prototype.adjustVisual=function(){this.selectorLine&&this.visibleLine&&(this.selectorLine.setAttribute("x1",this.x1.toString()),this.selectorLine.setAttribute("y1",this.y1.toString()),this.selectorLine.setAttribute("x2",this.x2.toString()),this.selectorLine.setAttribute("y2",this.y2.toString()),this.visibleLine.setAttribute("x1",this.x1.toString()),this.visibleLine.setAttribute("y1",this.y1.toString()),this.visibleLine.setAttribute("x2",this.x2.toString()),this.visibleLine.setAttribute("y2",this.y2.toString()),ze.setAttributes(this.visibleLine,[["stroke",this.strokeColor]]),ze.setAttributes(this.visibleLine,[["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.visibleLine,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Le.prototype.setStrokeColor=function(we){this.strokeColor=we,this.adjustVisual(),this.colorChanged(we)},Le.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.adjustVisual()},Le.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.createVisual(),this.adjustVisual()},Le.typeName="LineMarker",Le.title="Line marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M19 13H5v-2h14v2z"/></svg>',Le}(Xe),ft=function(je){function Le(we,Be,Ge,ke){var et=je.call(this,we,ke||'<svg viewBox="0 0 24 24"><path d="M17 8h3v12h1v1h-4v-1h1v-3h-4l-1.5 3H14v1h-4v-1h1l6-12m1 1l-3.5 7H18V9M5 3h5c1.11 0 2 .89 2 2v11H9v-5H6v5H3V5c0-1.11.89-2 2-2m1 2v4h3V5H6z"/></svg>')||this;return et.fonts=[],et.fontBoxes=[],et.fonts=Be,et.currentFont=Ge,et.setCurrentFont=et.setCurrentFont.bind(et),et}return nt(Le,je),Le.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.overflow="hidden",Be.style.flexGrow="2",this.fonts.forEach(function(Ge){var ke=document.createElement("div");ke.style.display="inline-block",ke.style.alignItems="center",ke.style.justifyContent="space-between",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.overflow="hidden",ke.style.maxWidth=100/we.fonts.length-5+"%",ke.style.borderColor=Ge===we.currentFont?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentFont(Ge,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.style.display="flex",et.style.minHeight="20px",et.style.flexGrow="2",et.style.fontFamily=Ge,et.style.overflow="hidden";var an=document.createElement("div");an.style.whiteSpace="nowrap",an.style.overflow="hidden",an.style.textOverflow="ellipsis",an.innerHTML="The quick brown fox jumps over the lazy dog",et.appendChild(an),ke.appendChild(et),we.fontBoxes.push(ke)}),Be},Le.prototype.setCurrentFont=function(we,Be){var Ge=this;this.currentFont=we,this.fontBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onFontChanged&&this.onFontChanged(this.currentFont)},Le}(ne),Nt=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.color="transparent",ke.padding=5,ke.DEFAULT_TEXT="\u8BF7\u8F93\u5165\u6587\u672C",ke.text=ke.DEFAULT_TEXT,ke.isMoved=!1,ke.color=Ge.defaultColor,ke.fontFamily=Ge.defaultFontFamily,ke.defaultSize={x:100,y:30},ke.setColor=ke.setColor.bind(ke),ke.setFont=ke.setFont.bind(ke),ke.renderText=ke.renderText.bind(ke),ke.sizeText=ke.sizeText.bind(ke),ke.textEditDivClicked=ke.textEditDivClicked.bind(ke),ke.showTextEditor=ke.showTextEditor.bind(ke),ke.setSize=ke.setSize.bind(ke),ke.positionTextEditor=ke.positionTextEditor.bind(ke),ke.colorPanel=new te("Color",Ge.defaultColorSet,Ge.defaultColor),ke.colorPanel.onColorChanged=ke.setColor,ke.fontFamilyPanel=new ft("Font",Ge.defaultFontFamilies,Ge.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){if(je.prototype.ownsTarget.call(this,we)||we===this.visual||we===this.textElement||we===this.bgRectangle)return!0;var Be=!1;return this.textElement.childNodes.forEach(function(Ge){Ge===we&&(Be=!0)}),Be},Le.prototype.createVisual=function(){this.visual=ze.createGroup(),this.bgRectangle=ze.createRect(1,1,[["fill","transparent"]]),this.visual.appendChild(this.bgRectangle),this.textElement=ze.createText([["fill",this.color],["font-family",this.fontFamily],["font-size","16px"],["x","0"],["y","0"]]),this.textElement.transform.baseVal.appendItem(ze.createTransform()),this.textElement.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.textElement),this.addMarkerVisualToContainer(this.visual),this.renderText()},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.isMoved=!1,this.pointerDownPoint=we,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Le.prototype.renderText=function(){var we=this;if(this.textElement){for(;this.textElement.lastChild;)this.textElement.removeChild(this.textElement.lastChild);this.text.split(/\r\n|[\n\v\f\r\x85\u2028\u2029]/).forEach(function(Be){we.textElement.appendChild(ze.createTSpan(Be.trim()===""?" ":Be.trim(),[["x","0"],["dy","1.2em"]]))}),setTimeout(this.sizeText,10)}},Le.prototype.getTextScale=function(){var we=this.textElement.getBBox(),Be=1;if(we.width>0&&we.height>0){var Ge=(1*this.width-this.width*this.padding*2/100)/we.width,ke=(1*this.height-this.height*this.padding*2/100)/we.height;Be=Math.min(Ge,ke)}return Be},Le.prototype.getTextPosition=function(we){var Be=this.textElement.getBBox(),Ge=0,ke=0;return Be.width>0&&Be.height>0&&(Ge=(this.width-Be.width*we)/2,ke=this.height/2-Be.height*we/2),{x:Ge,y:ke}},Le.prototype.sizeText=function(){var we=this.textElement.getBBox(),Be=this.getTextScale(),Ge=this.getTextPosition(Be);Ge.y-=we.y*Be,navigator.userAgent.indexOf("Edge/")>-1?this.textElement.style.transform="translate("+Ge.x+"px, "+Ge.y+"px) scale("+Be+", "+Be+")":(this.textElement.transform.baseVal.getItem(0).setTranslate(Ge.x,Ge.y),this.textElement.transform.baseVal.getItem(1).setScale(Be,Be))},Le.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(we.x-this.pointerDownPoint.x)>5||Math.abs(we.y-this.pointerDownPoint.y)>5)},Le.prototype.resize=function(we){je.prototype.resize.call(this,we),this.isMoved=!0,this.setSize(),this.sizeText()},Le.prototype.setSize=function(){je.prototype.setSize.call(this),this.visual&&this.bgRectangle&&(ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.bgRectangle,[["width",this.width.toString()],["height",this.height.toString()]]))},Le.prototype.pointerUp=function(we){var Be=this.state;Be==="creating"&&(this._suppressMarkerCreateEvent=!0),je.prototype.pointerUp.call(this,we),this.setSize(),(Be==="creating"||!this.isMoved&&Date.now()-this.pointerDownTimestamp>500)&&this.showTextEditor(),this.pointerDownPoint=void 0},Le.prototype.showTextEditor=function(){var we=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditor=document.createElement("div"),this.textEditor.style.position="absolute",this.textEditor.style.fontFamily=this.fontFamily,this.textEditor.style.lineHeight="1em",this.textEditor.innerText=this.text,this.textEditor.contentEditable="true",this.textEditor.style.color=this.color,this.textEditor.style.whiteSpace="pre",this.positionTextEditor(),this.textEditor.addEventListener("pointerup",function(Be){Be.stopPropagation()}),this.textEditor.addEventListener("input",function(){for(var Be=Number.parseFloat(we.textEditor.style.fontSize);we.textEditor.clientWidth>=Number.parseInt(we.textEditor.style.maxWidth)&&Be>.9;)Be-=.1,we.textEditor.style.fontSize=Math.max(Be,.9)+"em"}),this.textEditor.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditor.addEventListener("paste",function(Be){if(Be.clipboardData){var Ge=Be.clipboardData.getData("text"),ke=window.getSelection();if(!ke.rangeCount)return!1;ke.deleteFromDocument(),ke.getRangeAt(0).insertNode(document.createTextNode(Ge)),Be.preventDefault()}}),this.textEditDiv.addEventListener("pointerup",function(){we.textEditDivClicked(we.textEditor.innerText)}),this.textEditDiv.appendChild(this.textEditor),this.overlayContainer.appendChild(this.textEditDiv),this.hideVisual(),this.textEditor.focus(),document.execCommand("selectAll")},Le.prototype.positionTextEditor=function(){if(this.state==="edit")if(this.textEditor===void 0)this.showTextEditor();else{this.textElement.style.display="";var we=this.getTextScale(),Be=this.rotatePoint({x:this.left+this.width/2,y:this.top+this.height/2}),Ge=this.textElement.getBBox(),ke={x:Ge.width*we,y:Ge.height*we};Be.x-=ke.x/2,Be.y-=ke.y/2,this.textEditor.style.top=Be.y+"px",this.textEditor.style.left=Be.x+"px",this.textEditor.style.maxWidth=this.overlayContainer.offsetWidth-Be.x+"px",this.textEditor.style.fontSize=Math.max(16*we,12)+"px",this.textElement.style.display="none"}},Le.prototype.textEditDivClicked=function(we){this.text=we.trim(),this.overlayContainer.innerHTML="",this.renderText(),this.showVisual(),this._suppressMarkerCreateEvent&&(this._suppressMarkerCreateEvent=!1,this.onMarkerCreated&&this.onMarkerCreated(this)),this.stateChanged()},Le.prototype.select=function(){je.prototype.select.call(this),this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText)},Le.prototype.deselect=function(){this.state==="edit"&&this.textEditDivClicked(this.textEditor.innerText),je.prototype.deselect.call(this)},Le.prototype.dblClick=function(we,Be){je.prototype.dblClick.call(this,we,Be),this.showTextEditor()},Le.prototype.setColor=function(we){this.textElement&&ze.setAttributes(this.textElement,[["fill",we]]),this.color=we,this.textEditor&&(this.textEditor.style.color=this.color),this.colorChanged(we)},Le.prototype.setFont=function(we){this.textElement&&ze.setAttributes(this.textElement,[["font-family",we]]),this.fontFamily=we,this.textEditor&&(this.textEditor.style.fontFamily=this.fontFamily),this.renderText(),this.stateChanged()},Le.prototype.hideVisual=function(){this.textElement.style.display="none",this.hideControlBox()},Le.prototype.showVisual=function(){this.state==="edit"&&(this._state="select"),this.textElement.style.display="",this.showControlBox()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({color:this.color,fontFamily:this.fontFamily,padding:this.padding,text:this.text},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){var Be=we;this.color=Be.color,this.fontFamily=Be.fontFamily,this.padding=Be.padding,this.text=Be.text,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize(),this.sizeText(),this.positionTextEditor()},Le.typeName="TextMarker",Le.title="Text marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M9.6 14L12 7.7l2.4 6.3M11 5L5.5 19h2.2l1.1-3H15l1.1 3h2.2L13 5h-2z"/></svg>',Le}(Se),Lt=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.color="transparent",ke.lineWidth=3,ke.drawing=!1,ke.pixelRatio=1,ke.color=Ge.defaultColor,ke.lineWidth=Ge.defaultStrokeWidth,ke.pixelRatio=Ge.freehandPixelRatio,ke.setColor=ke.setColor.bind(ke),ke.addCanvas=ke.addCanvas.bind(ke),ke.finishCreation=ke.finishCreation.bind(ke),ke.setLineWidth=ke.setLineWidth.bind(ke),ke.colorPanel=new te("Color",Ge.defaultColorSet,Ge.defaultColor),ke.colorPanel.onColorChanged=ke.setColor,ke.lineWidthPanel=new Ie("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),ke.lineWidthPanel.onWidthChanged=ke.setLineWidth,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.drawingImage)},Le.prototype.createVisual=function(){this.visual=ze.createGroup(),this.drawingImage=ze.createImage(),this.visual.appendChild(this.drawingImage);var we=ze.createTransform();this.visual.transform.baseVal.appendItem(we),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(we,Be){this.state==="new"&&(this.addCanvas(),this.createVisual(),this._state="creating"),this.state==="creating"?(this.canvasContext.strokeStyle=this.color,this.canvasContext.lineWidth=this.lineWidth,this.canvasContext.beginPath(),this.canvasContext.moveTo(we.x,we.y),this.drawing=!0):je.prototype.pointerDown.call(this,we,Be)},Le.prototype.manipulate=function(we){this.state==="creating"?this.drawing&&(this.canvasContext.lineTo(we.x,we.y),this.canvasContext.stroke()):je.prototype.manipulate.call(this,we)},Le.prototype.resize=function(we){je.prototype.resize.call(this,we),ze.setAttributes(this.visual,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]])},Le.prototype.pointerUp=function(we){this._state==="creating"?this.drawing&&(this.canvasContext.closePath(),this.drawing=!1,this.globalSettings.newFreehandMarkerOnPointerUp&&this.finishCreation()):je.prototype.pointerUp.call(this,we)},Le.prototype.addCanvas=function(){this.overlayContainer.innerHTML="",this.canvasElement=document.createElement("canvas"),this.canvasElement.width=this.overlayContainer.clientWidth*this.pixelRatio,this.canvasElement.height=this.overlayContainer.clientHeight*this.pixelRatio,this.canvasContext=this.canvasElement.getContext("2d"),this.canvasContext.scale(this.pixelRatio,this.pixelRatio),this.overlayContainer.appendChild(this.canvasElement)},Le.prototype.select=function(){this.state==="creating"&&this.finishCreation(),je.prototype.select.call(this)},Le.prototype.deselect=function(){this.state==="creating"&&this.finishCreation(),je.prototype.deselect.call(this)},Le.prototype.finishCreation=function(){for(var we=this.canvasContext.getImageData(0,0,this.canvasElement.width,this.canvasElement.height),Be=[this.canvasElement.width+1,this.canvasElement.height+1,-1,-1],Ge=Be[0],ke=Be[1],et=Be[2],an=Be[3],Bt=!1,Ut=0;Ut<this.canvasElement.height;Ut++)for(var gt=0;gt<this.canvasElement.width;gt++)we.data[Ut*this.canvasElement.width*4+4*gt+3]>0&&(Bt=!0,Ut<ke&&(ke=Ut),gt<Ge&&(Ge=gt),Ut>an&&(an=Ut),gt>et&&(et=gt));if(Bt){this.left=Ge/this.pixelRatio,this.top=ke/this.pixelRatio,this.width=(et-Ge)/this.pixelRatio,this.height=(an-ke)/this.pixelRatio;var Pt=document.createElement("canvas");Pt.width=et-Ge,Pt.height=an-ke,Pt.getContext("2d").putImageData(this.canvasContext.getImageData(Ge,ke,et-Ge,an-ke),0,0),this.drawingImgUrl=Pt.toDataURL("image/png"),this.setDrawingImage(),this._state="select",this.onMarkerCreated&&this.onMarkerCreated(this)}this.overlayContainer.innerHTML=""},Le.prototype.setDrawingImage=function(){ze.setAttributes(this.drawingImage,[["width",this.width.toString()],["height",this.height.toString()]]),ze.setAttributes(this.drawingImage,[["href",this.drawingImgUrl]]),this.moveVisual({x:this.left,y:this.top})},Le.prototype.setColor=function(we){this.color=we,this.colorChanged(we)},Le.prototype.setLineWidth=function(we){this.lineWidth=we},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return this.state==="new"||this.state==="creating"?[this.colorPanel,this.lineWidthPanel]:[]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({drawingImgUrl:this.drawingImgUrl},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){this.createVisual(),je.prototype.restoreState.call(this,we),this.drawingImgUrl=we.drawingImgUrl,this.setDrawingImage()},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setDrawingImage()},Le.typeName="FreehandMarker",Le.title="Freehand marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M9.75 20.85c1.78-.7 1.39-2.63.49-3.85-.89-1.25-2.12-2.11-3.36-2.94A9.817 9.817 0 014.54 12c-.28-.33-.85-.94-.27-1.06.59-.12 1.61.46 2.13.68.91.38 1.81.82 2.65 1.34l1.01-1.7C8.5 10.23 6.5 9.32 4.64 9.05c-1.06-.16-2.18.06-2.54 1.21-.32.99.19 1.99.77 2.77 1.37 1.83 3.5 2.71 5.09 4.29.34.33.75.72.95 1.18.21.44.16.47-.31.47-1.24 0-2.79-.97-3.8-1.61l-1.01 1.7c1.53.94 4.09 2.41 5.96 1.79m11.09-15.6c.22-.22.22-.58 0-.79l-1.3-1.3a.562.562 0 00-.78 0l-1.02 1.02 2.08 2.08M11 10.92V13h2.08l6.15-6.15-2.08-2.08L11 10.92z"/></svg>',Le}(Se),ln=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Ge||'<svg viewBox="0 0 24 24"><path d="M8 14v4l-6-6 6-6v4h8V6l6 6-6 6v-4H8z"/></svg>')||this;return ke.typeBoxes=[],ke.currentType=Be,ke.setCurrentType=ke.setCurrentType.bind(ke),ke}return nt(Le,je),Le.prototype.getUi=function(){var we=this,Be=document.createElement("div");Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2";for(var Ge=function(an){var Bt="both";switch(an){case 0:Bt="both";break;case 1:Bt="start";break;case 2:Bt="end";break;case 3:Bt="none"}var Ut=document.createElement("div");if(Ut.style.display="flex",Ut.style.flexGrow="2",Ut.style.alignItems="center",Ut.style.justifyContent="space-between",Ut.style.padding="5px",Ut.style.borderWidth="2px",Ut.style.borderStyle="solid",Ut.style.borderColor=Bt===ke.currentType?ke.uiStyleSettings.toolboxAccentColor:"transparent",Ut.addEventListener("click",function(){we.setCurrentType(Bt,Ut)}),Be.appendChild(Ut),Bt==="both"||Bt==="start"){var gt=document.createElement("div");gt.style.display="flex",gt.style.alignItems="center",gt.style.minHeight="20px",gt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,5 10,0 10,10" fill="`+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,gt.style.marginLeft="5px",Ut.appendChild(gt)}var Pt=document.createElement("div");Pt.style.display="flex",Pt.style.alignItems="center",Pt.style.minHeight="20px",Pt.style.flexGrow="2";var Tt=document.createElement("hr");if(Tt.style.minWidth="20px",Tt.style.border="0px",Tt.style.borderTop="3px solid "+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee"),Tt.style.flexGrow="2",Pt.appendChild(Tt),Ut.appendChild(Pt),Bt==="both"||Bt==="end"){var Yt=document.createElement("div");Yt.style.display="flex",Yt.style.alignItems="center",Yt.style.minHeight="20px",Yt.innerHTML=`<svg viewBox="0 0 10 10" width="10" height="10" xmlns="http://www.w3.org/2000/svg">
|
|
<polygon points="0,0 10,5 0,10" fill="`+(ke.uiStyleSettings!==void 0?ke.uiStyleSettings.toolboxColor:"#eeeeee")+`" />
|
|
</svg>`,Yt.style.marginRight="5px",Ut.appendChild(Yt)}ke.typeBoxes.push(Ut)},ke=this,et=0;et<4;et++)Ge(et);return Be},Le.prototype.setCurrentType=function(we,Be){var Ge=this;this.currentType=we,this.typeBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ge.uiStyleSettings!==void 0?Ge.uiStyleSettings.toolboxAccentColor:"#3080c3":"transparent"}),this.onArrowTypeChanged&&this.onArrowTypeChanged(this.currentType)},Le}(ne),kn=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.arrowType="end",ke.arrowBaseHeight=10,ke.arrowBaseWidth=10,ke.getArrowPoints=ke.getArrowPoints.bind(ke),ke.setArrowType=ke.setArrowType.bind(ke),ke.arrowTypePanel=new ln("Arrow type","end"),ke.arrowTypePanel.onArrowTypeChanged=ke.setArrowType,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.arrow1&&we!==this.arrow2)},Le.prototype.getArrowPoints=function(we,Be){var Ge=this.arrowBaseWidth+2*this.strokeWidth,ke=this.arrowBaseHeight+2*this.strokeWidth;return we-Ge/2+","+(Be+ke/2)+" "+we+","+(Be-ke/2)+" "+(we+Ge/2)+","+(Be+ke/2)},Le.prototype.createTips=function(){this.arrow1=ze.createPolygon(this.getArrowPoints(this.x1,this.y1),[["fill",this.strokeColor]]),this.arrow1.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.arrow1),this.arrow2=ze.createPolygon(this.getArrowPoints(this.x2,this.y2),[["fill",this.strokeColor]]),this.arrow2.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.arrow2)},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="creating"&&this.createTips()},Le.prototype.adjustVisual=function(){if(je.prototype.adjustVisual.call(this),this.arrow1&&this.arrow2){this.arrow1.style.display=this.arrowType==="both"||this.arrowType==="start"?"":"none",this.arrow2.style.display=this.arrowType==="both"||this.arrowType==="end"?"":"none",ze.setAttributes(this.arrow1,[["points",this.getArrowPoints(this.x1,this.y1)],["fill",this.strokeColor]]),ze.setAttributes(this.arrow2,[["points",this.getArrowPoints(this.x2,this.y2)],["fill",this.strokeColor]]);var we=0;Math.abs(this.x1-this.x2)>.1&&(we=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2));var Be=this.arrow1.transform.baseVal.getItem(0);Be.setRotate(we,this.x1,this.y1),this.arrow1.transform.baseVal.replaceItem(Be,0);var Ge=this.arrow2.transform.baseVal.getItem(0);Ge.setRotate(we+180,this.x2,this.y2),this.arrow2.transform.baseVal.replaceItem(Ge,0)}},Le.prototype.setArrowType=function(we){this.arrowType=we,this.adjustVisual(),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel,this.arrowTypePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({arrowType:this.arrowType},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.arrowType=Be.arrowType,this.createTips(),this.adjustVisual()},Le.typeName="ArrowMarker",Le.title="Arrow marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M19 6.41L17.59 5 7 15.59V9H5v10h10v-2H8.41L19 6.41z"/></svg>',Le}(At),un=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.fillColor=Ge.defaultFillColor,ke.strokeWidth=0,ke.fillPanel=new te("Color",Ge.defaultColorSet,Ge.defaultFillColor),ke.fillPanel.onColorChanged=ke.setFillColor,ke}return nt(Le,je),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=Le.typeName,we},Le.typeName="CoverMarker",Le.title="Cover marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 6v13h16V6H4z"/></svg>',Le}(be),_t=function(je){function Le(we,Be,Ge,ke){var et=je.call(this,we,ke||'<svg viewBox="0 0 24 24"><path d="M17.66 8L12 2.35 6.34 8A8.02 8.02 0 004 13.64c0 2 .78 4.11 2.34 5.67a7.99 7.99 0 0011.32 0c1.56-1.56 2.34-3.67 2.34-5.67S19.22 9.56 17.66 8M6 14c0-2 .62-3.27 1.76-4.4L12 5.27l4.24 4.38C17.38 10.77 18 12 18 14H6z"/></svg>')||this;return et.opacities=[],et.opacityBoxes=[],et.opacities=Be,et.currentOpacity=Ge,et.setCurrentOpacity=et.setCurrentOpacity.bind(et),et}return nt(Le,je),Le.prototype.getUi=function(){var we=this,Be=document.createElement("div");return Be.style.display="flex",Be.style.overflow="hidden",Be.style.flexGrow="2",Be.style.justifyContent="space-between",this.opacities.forEach(function(Ge){var ke=document.createElement("div");ke.style.display="flex",ke.style.alignItems="center",ke.style.justifyContent="center",ke.style.padding="5px",ke.style.borderWidth="2px",ke.style.borderStyle="solid",ke.style.borderColor=Ge===we.currentOpacity?we.uiStyleSettings.toolboxAccentColor:"transparent",ke.addEventListener("click",function(){we.setCurrentOpacity(Ge,ke)}),Be.appendChild(ke);var et=document.createElement("div");et.innerText=100*Ge+"%",ke.appendChild(et),we.opacityBoxes.push(ke)}),Be},Le.prototype.setCurrentOpacity=function(we,Be){var Ge=this;this.currentOpacity=we,this.opacityBoxes.forEach(function(ke){ke.style.borderColor=ke===Be?Ge.uiStyleSettings.toolboxAccentColor:"transparent"}),this.onOpacityChanged&&this.onOpacityChanged(this.currentOpacity)},Le}(ne),hn=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.setOpacity=ke.setOpacity.bind(ke),ke.fillColor=Ge.defaultHighlightColor,ke.strokeWidth=0,ke.opacity=Ge.defaultHighlightOpacity,ke.fillPanel=new te("Color",Ge.defaultColorSet,ke.fillColor),ke.fillPanel.onColorChanged=ke.setFillColor,ke.opacityPanel=new _t("Opacity",Ge.defaultOpacitySteps,ke.opacity),ke.opacityPanel.onOpacityChanged=ke.setOpacity,ke}return nt(Le,je),Le.prototype.setOpacity=function(we){this.opacity=we,this.visual&&ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.fillPanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=Le.typeName,we},Le.typeName="HighlightMarker",Le.title="Highlight marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M18.5 1.15c-.53 0-1.04.19-1.43.58l-5.81 5.82 5.65 5.65 5.82-5.81c.77-.78.77-2.04 0-2.83l-2.84-2.83c-.39-.39-.89-.58-1.39-.58M10.3 8.5l-5.96 5.96c-.78.78-.78 2.04.02 2.85C3.14 18.54 1.9 19.77.67 21h5.66l.86-.86c.78.76 2.03.75 2.81-.02l5.95-5.96"/></svg>',Le}(un),vt='<svg viewBox="0 0 24 24"><path d="M9.62 12L12 5.67 14.37 12M11 3L5.5 17h2.25l1.12-3h6.25l1.13 3h2.25L13 3h-2z"/></svg>',$e='<svg viewBox="0 0 24 24"><path d="M19 11.5s-2 2.17-2 3.5a2 2 0 002 2 2 2 0 002-2c0-1.33-2-3.5-2-3.5M5.21 10L10 5.21 14.79 10m1.77-1.06L7.62 0 6.21 1.41l2.38 2.38-5.15 5.15c-.59.56-.59 1.53 0 2.12l5.5 5.5c.29.29.68.44 1.06.44s.77-.15 1.06-.44l5.5-5.5c.59-.59.59-1.56 0-2.12z"/></svg>',gn=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.bgColor="transparent",ke.tipPosition={x:0,y:0},ke.tipBase1Position={x:0,y:0},ke.tipBase2Position={x:0,y:0},ke.tipMoving=!1,ke.color=Ge.defaultStrokeColor,ke.bgColor=Ge.defaultFillColor,ke.fontFamily=Ge.defaultFontFamily,ke.defaultSize={x:100,y:30},ke.setBgColor=ke.setBgColor.bind(ke),ke.getTipPoints=ke.getTipPoints.bind(ke),ke.positionTip=ke.positionTip.bind(ke),ke.setTipPoints=ke.setTipPoints.bind(ke),ke.colorPanel=new te("Text color",Ge.defaultColorSet,ke.color,vt),ke.colorPanel.onColorChanged=ke.setColor,ke.bgColorPanel=new te("Fill color",Ge.defaultColorSet,ke.bgColor,$e),ke.bgColorPanel.onColorChanged=ke.setBgColor,ke.fontFamilyPanel=new ft("Font",Ge.defaultFontFamilies,Ge.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke.tipGrip=new ge,ke.tipGrip.visual.transform.baseVal.appendItem(ze.createTransform()),ke.controlBox.appendChild(ke.tipGrip.visual),ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return je.prototype.ownsTarget.call(this,we)||this.tipGrip.ownsTarget(we)||this.tip===we},Le.prototype.createTip=function(){ze.setAttributes(this.bgRectangle,[["fill",this.bgColor],["rx","10px"]]),this.tip=ze.createPolygon(this.getTipPoints(),[["fill",this.bgColor]]),this.visual.appendChild(this.tip)},Le.prototype.pointerDown=function(we,Be){this.state==="new"&&je.prototype.pointerDown.call(this,we,Be),this.state==="creating"?this.createTip():this.tipGrip.ownsTarget(Be)?(this.manipulationStartLeft=this.left,this.manipulationStartTop=this.top,this.tipMoving=!0):je.prototype.pointerDown.call(this,we,Be)},Le.prototype.pointerUp=function(we){if(this.tipMoving)this.tipMoving=!1,this.isMoved=!0,je.prototype.pointerUp.call(this,we);else{var Be=this.state==="creating";je.prototype.pointerUp.call(this,we),this.setTipPoints(Be),this.positionTip()}},Le.prototype.manipulate=function(we){if(this.tipMoving){var Be=this.unrotatePoint(we);this.tipPosition={x:Be.x-this.manipulationStartLeft,y:Be.y-this.manipulationStartTop},this.positionTip()}else je.prototype.manipulate.call(this,we)},Le.prototype.setBgColor=function(we){this.bgRectangle&&this.tip&&(ze.setAttributes(this.bgRectangle,[["fill",we]]),ze.setAttributes(this.tip,[["fill",we]])),this.bgColor=we,this.fillColorChanged(we)},Le.prototype.getTipPoints=function(){return this.setTipPoints(this.state==="creating"),this.tipBase1Position.x+","+this.tipBase1Position.y+" "+this.tipBase2Position.x+","+this.tipBase2Position.y+" "+this.tipPosition.x+","+this.tipPosition.y},Le.prototype.setTipPoints=function(we){we===void 0&&(we=!1);var Be=Math.min(this.height/2,15),Ge=this.height/5;we&&(this.tipPosition={x:Be+Ge/2,y:this.height+20});var ke=Math.atan(this.height/2/(this.width/2));this.tipPosition.x<this.width/2&&this.tipPosition.y<this.height/2?ke<Math.atan((this.height/2-this.tipPosition.y)/(this.width/2-this.tipPosition.x))?(Ge=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:0},this.tipBase2Position={x:Be+Ge,y:0}):(this.tipBase1Position={x:0,y:Be},this.tipBase2Position={x:0,y:Be+Ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y<this.height/2?ke<Math.atan((this.height/2-this.tipPosition.y)/(this.tipPosition.x-this.width/2))?(Ge=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-Ge,y:0},this.tipBase2Position={x:this.width-Be,y:0}):(this.tipBase1Position={x:this.width,y:Be},this.tipBase2Position={x:this.width,y:Be+Ge}):this.tipPosition.x>=this.width/2&&this.tipPosition.y>=this.height/2?ke<Math.atan((this.tipPosition.y-this.height/2)/(this.tipPosition.x-this.width/2))?(Ge=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:this.width-Be-Ge,y:this.height},this.tipBase2Position={x:this.width-Be,y:this.height}):(this.tipBase1Position={x:this.width,y:this.height-Be-Ge},this.tipBase2Position={x:this.width,y:this.height-Be}):ke<Math.atan((this.tipPosition.y-this.height/2)/(this.width/2-this.tipPosition.x))?(Ge=this.width/5,Be=Math.min(this.width/2,15),this.tipBase1Position={x:Be,y:this.height},this.tipBase2Position={x:Be+Ge,y:this.height}):(this.tipBase1Position={x:0,y:this.height-Be},this.tipBase2Position={x:0,y:this.height-Be-Ge})},Le.prototype.resize=function(we){je.prototype.resize.call(this,we),this.positionTip()},Le.prototype.positionTip=function(){ze.setAttributes(this.tip,[["points",this.getTipPoints()]]);var we=this.tipGrip.visual.transform.baseVal.getItem(0);we.setTranslate(this.tipPosition.x,this.tipPosition.y),this.tipGrip.visual.transform.baseVal.replaceItem(we,0)},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.colorPanel,this.bgColorPanel,this.fontFamilyPanel]},enumerable:!1,configurable:!0}),Le.prototype.select=function(){this.positionTip(),je.prototype.select.call(this)},Le.prototype.getState=function(){var we=Object.assign({bgColor:this.bgColor,tipPosition:this.tipPosition},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){var Be=we;this.bgColor=Be.bgColor,this.tipPosition=Be.tipPosition,je.prototype.restoreState.call(this,we),this.createTip(),this.setTipPoints()},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.tipPosition={x:this.tipPosition.x*we,y:this.tipPosition.y*Be},this.positionTip()},Le.typeName="CalloutMarker",Le.title="Callout marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M4 2h16a2 2 0 012 2v12a2 2 0 01-2 2h-4l-4 4-4-4H4a2 2 0 01-2-2V4a2 2 0 012-2m0 2v12h4.83L12 19.17 15.17 16H20V4H4m2 3h12v2H6V7m0 4h10v2H6v-2z"/></svg>',Le}(Nt),ci=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.opacity=1,ke.strokeColor=Ge.defaultColor,ke.strokeWidth=Ge.defaultStrokeWidth,ke.strokeDasharray=Ge.defaultStrokeDasharray,ke.fillColor=Ge.defaultFillColor,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.setOpacity=ke.setOpacity.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke.strokePanel=new te("Line color",Mt(Ge.defaultColorSet,["transparent"]),Ge.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.fillPanel=new te("Fill color",Mt(Ge.defaultColorSet,["transparent"]),ke.fillColor,$e),ke.fillPanel.onColorChanged=ke.setFillColor,ke.strokeWidthPanel=new Ie("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke.opacityPanel=new _t("Opacity",Ge.defaultOpacitySteps,ke.opacity),ke.opacityPanel.onOpacityChanged=ke.setOpacity,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual)},Le.prototype.createVisual=function(){this.visual=ze.createEllipse(this.width/2,this.height/2,[["fill",this.fillColor],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray],["opacity",this.opacity.toString()]]),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Le.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we)},Le.prototype.resize=function(we){je.prototype.resize.call(this,we),this.setSize()},Le.prototype.setSize=function(){je.prototype.setSize.call(this),ze.setAttributes(this.visual,[["cx",(this.width/2).toString()],["cy",(this.height/2).toString()],["rx",(this.width/2).toString()],["ry",(this.height/2).toString()]])},Le.prototype.pointerUp=function(we){je.prototype.pointerUp.call(this,we),this.setSize()},Le.prototype.setStrokeColor=function(we){this.strokeColor=we,this.visual&&ze.setAttributes(this.visual,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},Le.prototype.setFillColor=function(we){this.fillColor=we,this.visual&&ze.setAttributes(this.visual,[["fill",this.fillColor]]),this.fillColorChanged(we),this.stateChanged()},Le.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.visual&&ze.setAttributes(this.visual,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.visual&&ze.setAttributes(this.visual,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Le.prototype.setOpacity=function(we){this.opacity=we,this.visual&&ze.setAttributes(this.visual,[["opacity",this.opacity.toString()]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.opacityPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:this.opacity},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.opacity=Be.opacity,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize()},Le.typeName="EllipseMarker",Le.title="Ellipse marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M12 4C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Le}(Se),Fn=function(je){function Le(we,Be,Ge){return je.call(this,we,Be,Ge)||this}return nt(Le,je),Object.defineProperty(Le.prototype,"tipLength",{get:function(){return 10+3*this.strokeWidth},enumerable:!1,configurable:!0}),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.tip1&&we!==this.tip2)},Le.prototype.createTips=function(){this.tip1=ze.createLine(this.x1-this.tipLength/2,this.y1,this.x1+this.tipLength/2,this.y1,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip1.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.tip1),this.tip2=ze.createLine(this.x2-this.tipLength/2,this.y2,this.x2+this.tipLength/2,this.y2,[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),this.tip2.transform.baseVal.appendItem(ze.createTransform()),this.visual.appendChild(this.tip2)},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.state==="creating"&&this.createTips()},Le.prototype.adjustVisual=function(){if(je.prototype.adjustVisual.call(this),this.tip1&&this.tip2&&(ze.setAttributes(this.tip1,[["x1",(this.x1-this.tipLength/2).toString()],["y1",this.y1.toString()],["x2",(this.x1+this.tipLength/2).toString()],["y2",this.y1.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.tip2,[["x1",(this.x2-this.tipLength/2).toString()],["y1",this.y2.toString()],["x2",(this.x2+this.tipLength/2).toString()],["y2",this.y2.toString()],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()]]),Math.abs(this.x1-this.x2)>.1)){var we=180*Math.atan((this.y2-this.y1)/(this.x2-this.x1))/Math.PI+90*Math.sign(this.x1-this.x2),Be=this.tip1.transform.baseVal.getItem(0);Be.setRotate(we,this.x1,this.y1),this.tip1.transform.baseVal.replaceItem(Be,0);var Ge=this.tip2.transform.baseVal.getItem(0);Ge.setRotate(we+180,this.x2,this.y2),this.tip2.transform.baseVal.replaceItem(Ge,0)}},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we),this.createTips(),this.adjustVisual()},Le.typeName="MeasurementMarker",Le.title="Measurement marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M1.39 18.36l1.77-1.76L4.58 18l1.06-1.05-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.42 1.41L10.59 12l-1.42-1.41 1.42-1.42 2.47 2.48 1.06-1.06-2.47-2.48 1.41-1.41 1.41 1.41 1.07-1.06-1.42-1.41 1.42-1.42L18 6.7l1.07-1.06-2.47-2.48 1.76-1.77 4.25 4.25L5.64 22.61l-4.25-4.25z"/></svg>',Le}(At),rn=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.strokePanel.colors=Ge.defaultColorSet,ke.fillColor="transparent",ke}return nt(Le,je),Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=je.prototype.getState.call(this);return we.typeName=Le.typeName,we},Le.typeName="EllipseFrameMarker",Le.title="Ellipse frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M12 6c4.41 0 8 2.69 8 6s-3.59 6-8 6-8-2.69-8-6 3.59-6 8-6m0-2C6.5 4 2 7.58 2 12s4.5 8 10 8 10-3.58 10-8-4.5-8-10-8z"/></svg>',Le}(ci),Xn=function(){function je(){this.undoStack=[],this.redoStack=[]}return Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return this.undoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return this.redoStack.length>0},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"undoStepCount",{get:function(){return this.undoStack.length},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"redoStepCount",{get:function(){return this.redoStack.length},enumerable:!1,configurable:!0}),je.prototype.addUndoStep=function(Le){this.undoStack.length!==0&&JSON.stringify(this.undoStack[this.undoStack.length-1])===JSON.stringify(Le)||(this.undoStack.push(Le),JSON.stringify(this.lastRedoStep)!==JSON.stringify(Le)&&this.redoStack.splice(0,this.redoStack.length))},je.prototype.replaceLastUndoStep=function(Le){this.undoStack.length>0&&(this.undoStack[this.undoStack.length-1]=Le)},je.prototype.getLastUndoStep=function(){return this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0},je.prototype.undo=function(){if(this.undoStack.length>1){var Le=this.undoStack.pop();return Le!==void 0&&this.redoStack.push(Le),this.undoStack.length>0?this.undoStack[this.undoStack.length-1]:void 0}},je.prototype.redo=function(){return this.lastRedoStep=this.redoStack.pop(),this.lastRedoStep},je}(),Nn=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.curveX=0,ke.curveY=0,ke.manipulationStartCurveX=0,ke.manipulationStartCurveY=0,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.positionGrips=ke.positionGrips.bind(ke),ke.addControlGrips=ke.addControlGrips.bind(ke),ke.adjustVisual=ke.adjustVisual.bind(ke),ke.setupControlBox=ke.setupControlBox.bind(ke),ke.resize=ke.resize.bind(ke),ke.strokeColor=Ge.defaultColor,ke.strokeWidth=Ge.defaultStrokeWidth,ke.strokeDasharray=Ge.defaultStrokeDasharray,ke.strokePanel=new te("Line color",Ge.defaultColorSet,Ge.defaultColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.strokeWidthPanel=new Ie("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.selectorCurve&&we!==this.visibleCurve&&!this.curveGrip.ownsTarget(we))},Le.prototype.getPathD=function(){return"M "+this.x1+" "+this.y1+" Q "+this.curveX+" "+this.curveY+", "+this.x2+" "+this.y2},Le.prototype.createVisual=function(){this.visual=ze.createGroup(),this.selectorCurve=ze.createPath(this.getPathD(),[["stroke","transparent"],["stroke-width",(this.strokeWidth+10).toString()],["fill","transparent"]]),this.visibleCurve=ze.createPath(this.getPathD(),[["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["fill","transparent"]]),this.visual.appendChild(this.selectorCurve),this.visual.appendChild(this.visibleCurve),this.addMarkerVisualToContainer(this.visual)},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.manipulationStartCurveX=this.curveX,this.manipulationStartCurveY=this.curveY,this.state==="new"&&(this.curveX=we.x,this.curveY=we.y),this.state==="new"?(this.createVisual(),this.adjustVisual(),this._state="creating"):this.curveGrip.ownsTarget(Be)&&(this.activeGrip=this.curveGrip,this._state="resize")},Le.prototype.adjustVisual=function(){this.selectorCurve&&this.visibleCurve&&(this.selectorCurve.setAttribute("d",this.getPathD()),this.visibleCurve.setAttribute("d",this.getPathD()),ze.setAttributes(this.visibleCurve,[["stroke",this.strokeColor]]),ze.setAttributes(this.visibleCurve,[["stroke-width",this.strokeWidth.toString()]]),ze.setAttributes(this.visibleCurve,[["stroke-dasharray",this.strokeDasharray.toString()]]))},Le.prototype.setupControlBox=function(){je.prototype.setupControlBox.call(this),this.curveControlLine1=ze.createLine(this.x1,this.y1,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.curveControlLine2=ze.createLine(this.x2,this.y2,this.curveX,this.curveY,[["stroke","black"],["stroke-width","1"],["stroke-opacity","0.5"],["stroke-dasharray","3, 2"]]),this.controlBox.insertBefore(this.curveControlLine1,this.controlBox.firstChild),this.controlBox.insertBefore(this.curveControlLine2,this.controlBox.firstChild)},Le.prototype.addControlGrips=function(){this.curveGrip=this.createGrip(),this.curveX=0,this.curveY=0,je.prototype.addControlGrips.call(this)},Le.prototype.positionGrips=function(){je.prototype.positionGrips.call(this);var we=this.curveGrip.GRIP_SIZE;this.positionGrip(this.curveGrip.visual,this.curveX-we/2,this.curveY-we/2),this.curveControlLine1&&this.curveControlLine2&&(this.curveControlLine1.setAttribute("x1",this.x1.toString()),this.curveControlLine1.setAttribute("y1",this.y1.toString()),this.curveControlLine1.setAttribute("x2",this.curveX.toString()),this.curveControlLine1.setAttribute("y2",this.curveY.toString()),this.curveControlLine2.setAttribute("x1",this.x2.toString()),this.curveControlLine2.setAttribute("y1",this.y2.toString()),this.curveControlLine2.setAttribute("x2",this.curveX.toString()),this.curveControlLine2.setAttribute("y2",this.curveY.toString()))},Le.prototype.manipulate=function(we){this.state==="move"&&(this.curveX=this.manipulationStartCurveX+we.x-this.manipulationStartX,this.curveY=this.manipulationStartCurveY+we.y-this.manipulationStartY),je.prototype.manipulate.call(this,we)},Le.prototype.resize=function(we){this.activeGrip===this.curveGrip&&(this.curveX=we.x,this.curveY=we.y),je.prototype.resize.call(this,we),this.state==="creating"&&(this.curveX=this.x1+(this.x2-this.x1)/2,this.curveY=this.y1+(this.y2-this.y1)/2)},Le.prototype.setStrokeColor=function(we){this.strokeColor=we,this.adjustVisual(),this.colorChanged(we)},Le.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.adjustVisual()},Le.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.adjustVisual()},Le.prototype.scale=function(we,Be){this.curveX=this.curveX*we,this.curveY=this.curveY*Be,je.prototype.scale.call(this,we,Be)},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.strokeWidthPanel,this.strokeStylePanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,curveX:this.curveX,curveY:this.curveY},je.prototype.getState.call(this));return we.typeName=Le.typeName,we},Le.prototype.restoreState=function(we){je.prototype.restoreState.call(this,we);var Be=we;this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.curveX=Be.curveX,this.curveY=Be.curveY,this.createVisual(),this.adjustVisual()},Le.typeName="CurveMarker",Le.title="Curve marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M18.5 2A1.5 1.5 0 0120 3.5 1.5 1.5 0 0118.5 5c-.23 0-.45-.05-.65-.15l-3.69 3.7.34.45c2.19-1.26 4.76-2 7.5-2l1 .03v2.01L22 9c-2.58 0-5 .75-7 2.04A3.96 3.96 0 0111.04 15C9.75 17 9 19.42 9 22l.04 1H7.03L7 22c0-2.74.74-5.31 2-7.5l-.45-.34-3.7 3.69c.1.2.15.42.15.65A1.5 1.5 0 013.5 20 1.5 1.5 0 012 18.5 1.5 1.5 0 013.5 17c.23 0 .45.05.65.15l3.69-3.7C7.31 12.78 7 11.92 7 11a4 4 0 014-4c.92 0 1.78.31 2.45.84l3.7-3.69c-.1-.2-.15-.42-.15-.65A1.5 1.5 0 0118.5 2M11 9a2 2 0 00-2 2 2 2 0 002 2 2 2 0 002-2 2 2 0 00-2-2z"/></svg>',Le}(Xe),mi=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,Be,Ge)||this;return ke.fillColor="transparent",ke.strokeColor="transparent",ke.strokeWidth=0,ke.strokeDasharray="",ke.textColor="transparent",ke.fontSize="1rem",ke.isMoved=!1,ke.captionText="Caption",ke.PADDING=5,ke.captionBoxWidth=0,ke.captionBoxHeight=0,ke.strokeColor=Ge.defaultColor,ke.strokeWidth=Ge.defaultStrokeWidth,ke.strokeDasharray=Ge.defaultStrokeDasharray,ke.fillColor=Ge.defaultFillColor,ke.textColor=Ge.defaultStrokeColor,ke.fontFamily=Ge.defaultFontFamily,ke.fontSize=Ge.defaultCaptionFontSize,ke.captionText=Ge.defaultCaptionText,ke.setStrokeColor=ke.setStrokeColor.bind(ke),ke.setFillColor=ke.setFillColor.bind(ke),ke.setStrokeWidth=ke.setStrokeWidth.bind(ke),ke.setStrokeDasharray=ke.setStrokeDasharray.bind(ke),ke.createVisual=ke.createVisual.bind(ke),ke.sizeCaption=ke.sizeCaption.bind(ke),ke.setCaptionText=ke.setCaptionText.bind(ke),ke.showTextEditor=ke.showTextEditor.bind(ke),ke.positionTextEditor=ke.positionTextEditor.bind(ke),ke.finishTextEditing=ke.finishTextEditing.bind(ke),ke.setFont=ke.setFont.bind(ke),ke.setTextColor=ke.setTextColor.bind(ke),ke.strokePanel=new te("Line color",Mt(Ge.defaultColorSet,["transparent"]),ke.strokeColor),ke.strokePanel.onColorChanged=ke.setStrokeColor,ke.fillPanel=new te("Fill color",Mt(Ge.defaultColorSet,["transparent"]),ke.fillColor,$e),ke.fillPanel.onColorChanged=ke.setFillColor,ke.strokeWidthPanel=new Ie("Line width",Ge.defaultStrokeWidths,Ge.defaultStrokeWidth),ke.strokeWidthPanel.onWidthChanged=ke.setStrokeWidth,ke.strokeStylePanel=new Ze("Line style",Ge.defaultStrokeDasharrays,Ge.defaultStrokeDasharray),ke.strokeStylePanel.onStyleChanged=ke.setStrokeDasharray,ke.fontFamilyPanel=new ft("Font",Ge.defaultFontFamilies,Ge.defaultFontFamily),ke.fontFamilyPanel.onFontChanged=ke.setFont,ke.textColorPanel=new te("Text color",Ge.defaultColorSet,ke.textColor,vt),ke.textColorPanel.onColorChanged=ke.setTextColor,ke}return nt(Le,je),Le.prototype.ownsTarget=function(we){return!(!je.prototype.ownsTarget.call(this,we)&&we!==this.visual&&we!==this.frame&&we!==this.captionBg&&we!==this.captionElement)},Le.prototype.createVisual=function(){this.visual=ze.createGroup(),this.addMarkerVisualToContainer(this.visual),this.captionBg=ze.createRect(1,1,[["fill",this.fillColor]]),this.visual.appendChild(this.captionBg),this.captionElement=ze.createText([["fill",this.textColor],["font-family",this.fontFamily]]),this.captionElement.style.fontSize=this.fontSize,this.captionElement.style.textAnchor="start",this.captionElement.style.dominantBaseline="text-before-edge",this.captionElement.textContent=this.captionText,this.visual.appendChild(this.captionElement),this.frame=ze.createRect(this.width,this.height,[["fill","transparent"],["stroke",this.strokeColor],["stroke-width",this.strokeWidth.toString()],["stroke-dasharray",this.strokeDasharray]]),this.visual.appendChild(this.frame),this.sizeCaption()},Le.prototype.setCaptionText=function(we){this.captionText=we,this.captionElement.textContent=this.captionText,this.sizeCaption()},Le.prototype.pointerDown=function(we,Be){je.prototype.pointerDown.call(this,we,Be),this.isMoved=!1,this.pointerDownPoint=we,this.pointerDownTimestamp=Date.now(),this.state==="new"&&(this.createVisual(),this.moveVisual(we),this._state="creating")},Le.prototype.manipulate=function(we){je.prototype.manipulate.call(this,we),this.pointerDownPoint!==void 0&&(this.isMoved=Math.abs(we.x-this.pointerDownPoint.x)>5||Math.abs(we.y-this.pointerDownPoint.y)>5)},Le.prototype.resize=function(we){je.prototype.resize.call(this,we),this.setSize()},Le.prototype.sizeCaption=function(){var we=this.captionElement.getBBox();this.captionText.trim()!==""?(this.captionBoxWidth=we.width+2*this.PADDING,this.captionBoxHeight=we.height+2*this.PADDING):(this.captionBoxWidth=0,this.captionBoxHeight=0),ze.setAttributes(this.captionBg,[["width",this.captionBoxWidth.toString()],["height",this.captionBoxHeight.toString()],["clip-path","path('M0,0 H"+this.width+" V"+this.height+" H"+-this.width+" Z')"]]),ze.setAttributes(this.captionElement,[["x",this.PADDING.toString()],["y",this.PADDING.toString()],["clip-path","path('M0,0 H"+(this.width-this.PADDING)+" V"+this.height+" H"+(-this.width-this.PADDING)+" Z')"]])},Le.prototype.showTextEditor=function(){var we=this;this._state="edit",this.overlayContainer.innerHTML="",this.textEditDiv=document.createElement("div"),this.textEditDiv.style.flexGrow="2",this.textEditDiv.style.alignItems="center",this.textEditDiv.style.justifyContent="center",this.textEditDiv.style.pointerEvents="auto",this.textEditDiv.style.overflow="hidden",this.textEditBox=document.createElement("input"),this.textEditBox.style.position="absolute",this.textEditBox.style.width=this.width+"px",this.captionBoxHeight>0&&(this.textEditBox.style.height=this.captionBoxHeight+"px"),this.textEditBox.style.fontSize=this.fontSize,this.textEditBox.style.fontFamily=this.fontFamily,this.textEditBox.style.backgroundColor=this.fillColor,this.textEditBox.style.color=this.textColor,this.textEditBox.style.borderWidth="0",this.textEditBox.setAttribute("value",this.captionText),this.textEditBox.select(),this.textEditDiv.appendChild(this.textEditBox),this.overlayContainer.appendChild(this.textEditDiv),this.textEditBox.addEventListener("pointerup",function(Be){Be.stopPropagation()}),this.textEditBox.addEventListener("keypress",function(Be){Be.key==="Enter"&&we.finishTextEditing(we.textEditBox.value)}),this.textEditBox.addEventListener("keyup",function(Be){Be.cancelBubble=!0}),this.textEditBox.addEventListener("blur",function(){we.finishTextEditing(we.textEditBox.value)}),this.textEditDiv.addEventListener("pointerup",function(){we.finishTextEditing(we.textEditBox.value)}),this.positionTextEditor(),this.textEditBox.focus()},Le.prototype.positionTextEditor=function(){this.state==="edit"&&(this.textEditBox===void 0?this.showTextEditor():(this.textEditBox.style.left=this.left+"px",this.textEditBox.style.top=this.top+"px",this.textEditBox.style.transform="rotate("+this.rotationAngle+"deg)",this.textEditBox.style.transformOrigin=this.width/2+"px "+this.height/2+"px"))},Le.prototype.finishTextEditing=function(we){this.setCaptionText(we.trim()),this.overlayContainer.innerHTML="",this.stateChanged()},Le.prototype.setFont=function(we){this.captionElement&&ze.setAttributes(this.captionElement,[["font-family",we]]),this.fontFamily=we,this.textEditBox&&(this.textEditBox.style.fontFamily=this.fontFamily),this.sizeCaption(),this.stateChanged()},Le.prototype.setTextColor=function(we){this.captionElement&&ze.setAttributes(this.captionElement,[["fill",we]]),this.textColor=we,this.textEditBox&&(this.textEditBox.style.color=this.textColor),this.stateChanged()},Le.prototype.setSize=function(){je.prototype.setSize.call(this),ze.setAttributes(this.frame,[["width",this.width.toString()],["height",this.height.toString()]]),this.sizeCaption()},Le.prototype.pointerUp=function(we){je.prototype.pointerUp.call(this,we),this.setSize(),!this.isMoved&&Date.now()-this.pointerDownTimestamp>500&&this.showTextEditor(),this.pointerDownPoint=void 0},Le.prototype.dblClick=function(we,Be){je.prototype.dblClick.call(this,we,Be),this.showTextEditor()},Le.prototype.setStrokeColor=function(we){this.strokeColor=we,this.frame&&ze.setAttributes(this.frame,[["stroke",this.strokeColor]]),this.colorChanged(we),this.stateChanged()},Le.prototype.setFillColor=function(we){this.fillColor=we,this.captionBg&&ze.setAttributes(this.captionBg,[["fill",this.fillColor]]),this.fillColorChanged(we),this.stateChanged()},Le.prototype.setStrokeWidth=function(we){this.strokeWidth=we,this.frame&&ze.setAttributes(this.frame,[["stroke-width",this.strokeWidth.toString()]]),this.stateChanged()},Le.prototype.setStrokeDasharray=function(we){this.strokeDasharray=we,this.frame&&ze.setAttributes(this.frame,[["stroke-dasharray",this.strokeDasharray]]),this.stateChanged()},Object.defineProperty(Le.prototype,"toolboxPanels",{get:function(){return[this.strokePanel,this.fillPanel,this.strokeWidthPanel,this.strokeStylePanel,this.fontFamilyPanel,this.textColorPanel]},enumerable:!1,configurable:!0}),Le.prototype.getState=function(){var we=Object.assign({fillColor:this.fillColor,strokeColor:this.strokeColor,strokeWidth:this.strokeWidth,strokeDasharray:this.strokeDasharray,opacity:1,textColor:this.textColor,fontFamily:this.fontFamily,fontSize:this.fontSize,captionText:this.captionText},je.prototype.getState.call(this));return we.typeName=this.typeName,we},Le.prototype.restoreState=function(we){var Be=we;this.fillColor=Be.fillColor,this.strokeColor=Be.strokeColor,this.strokeWidth=Be.strokeWidth,this.strokeDasharray=Be.strokeDasharray,this.textColor=Be.textColor,this.fontFamily=Be.fontFamily,this.captionText=Be.captionText,this.fontSize=Be.fontSize,this.createVisual(),je.prototype.restoreState.call(this,we),this.setSize()},Le.prototype.scale=function(we,Be){je.prototype.scale.call(this,we,Be),this.setSize()},Le.typeName="CaptionFrameMarker",Le.title="Caption frame marker",Le.icon='<svg viewBox="0 0 24 24"><path d="M5 3c-1.11 0-2 .89-2 2v14c0 1.11.89 2 2 2h14c1.11 0 2-.89 2-2V5c0-1.11-.89-2-2-2H5m0 2h14v14H5V5m2 2v2h10V7H7z"/></svg>',Le}(Se),Zt=function(){function je(Le,we){we===void 0&&(we=!1),this.cancelable=!1,this._defaultPrevented=!1,this.markerArea=Le,this.cancelable=we}return Object.defineProperty(je.prototype,"defaultPrevented",{get:function(){return this._defaultPrevented},enumerable:!1,configurable:!0}),je.prototype.preventDefault=function(){this._defaultPrevented=!0},je}(),Rn=function(je){function Le(we,Be,Ge){var ke=je.call(this,we,!1)||this;return ke.dataUrl=Be,ke.state=Ge,ke}return nt(Le,je),Le}(Zt),wt=function(je){function Le(we,Be,Ge){Ge===void 0&&(Ge=!1);var ke=je.call(this,we,Ge)||this;return ke.marker=Be,ke}return nt(Le,je),Le}(Zt),Ai=function(){function je(){this.render=[],this.beforeclose=[],this.close=[],this.show=[],this.restorestate=[],this.statechange=[],this.markerselect=[],this.markerdeselect=[],this.markercreating=[],this.markercreate=[],this.markerbeforedelete=[],this.markerdelete=[],this.markerchange=[],this.focus=[],this.blur=[]}return je.prototype.addEventListener=function(Le,we){this[Le].push(we)},je.prototype.removeEventListener=function(Le,we){var Be=this[Le].indexOf(we);Be>-1&&this[Le].splice(Be,1)},je}(),Kn=function(){function je(Le){this.touchPoints=0,this._availableMarkerTypes=this.DEFAULT_MARKER_TYPES,this.mode="select",this.markers=[],this.isDragging=!1,this.renderEventListeners=[],this.closeEventListeners=[],this.settings=new Ye,this._isOpen=!1,this.undoRedoManager=new Xn,this.renderAtNaturalSize=!1,this.renderImageType="image/png",this.renderMarkersOnly=!1,this.zoomSteps=[1,1.5,2,4],this._zoomLevel=1,this._isResizing=!1,this.prevPanPoint={x:0,y:0},this.eventListeners=new Ai,this._silentRenderMode=!1,this._isFocused=!1,this._instanceNo=je.instanceCounter++,this.styles=new Me(this.instanceNo),this.uiStyleSettings=this.styles.settings,this.target=Le,this.targetRoot=document.body,this.width=Le.clientWidth,this.height=Le.clientHeight,this.styles.removeStyleSheet(),this.open=this.open.bind(this),this.setTopLeft=this.setTopLeft.bind(this),this.toolbarButtonClicked=this.toolbarButtonClicked.bind(this),this.createNewMarker=this.createNewMarker.bind(this),this.addNewMarker=this.addNewMarker.bind(this),this.markerCreated=this.markerCreated.bind(this),this.setCurrentMarker=this.setCurrentMarker.bind(this),this.onPointerDown=this.onPointerDown.bind(this),this.onDblClick=this.onDblClick.bind(this),this.onPointerMove=this.onPointerMove.bind(this),this.onPointerUp=this.onPointerUp.bind(this),this.onPointerOut=this.onPointerOut.bind(this),this.onKeyUp=this.onKeyUp.bind(this),this.overrideOverflow=this.overrideOverflow.bind(this),this.restoreOverflow=this.restoreOverflow.bind(this),this.close=this.close.bind(this),this.closeUI=this.closeUI.bind(this),this.addCloseEventListener=this.addCloseEventListener.bind(this),this.removeCloseEventListener=this.removeCloseEventListener.bind(this),this.addRenderEventListener=this.addRenderEventListener.bind(this),this.removeRenderEventListener=this.removeRenderEventListener.bind(this),this.clientToLocalCoordinates=this.clientToLocalCoordinates.bind(this),this.onWindowResize=this.onWindowResize.bind(this),this.deleteSelectedMarker=this.deleteSelectedMarker.bind(this),this.setWindowHeight=this.setWindowHeight.bind(this),this.removeMarker=this.removeMarker.bind(this),this.colorChanged=this.colorChanged.bind(this),this.fillColorChanged=this.fillColorChanged.bind(this),this.onPopupTargetResize=this.onPopupTargetResize.bind(this),this.showNotesEditor=this.showNotesEditor.bind(this),this.hideNotesEditor=this.hideNotesEditor.bind(this),this.stepZoom=this.stepZoom.bind(this),this.focus=this.focus.bind(this),this.blur=this.blur.bind(this),this.markerStateChanged=this.markerStateChanged.bind(this),this.switchToSelectMode=this.switchToSelectMode.bind(this),this.addDefs=this.addDefs.bind(this),this.addDefsToImage=this.addDefsToImage.bind(this)}return Object.defineProperty(je.prototype,"ALL_MARKER_TYPES",{get:function(){return[st,Lt,kn,Nt,rn,ci,hn,gn,Fn,un,At,Nn,mi]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"DEFAULT_MARKER_TYPES",{get:function(){return[st,Lt,kn,Nt,ci,hn,gn]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"BASIC_MARKER_TYPES",{get:function(){return[st,Lt,kn,Nt,hn]},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"availableMarkerTypes",{get:function(){return this._availableMarkerTypes},set:function(Le){var we=this;this._availableMarkerTypes.splice(0),Le.forEach(function(Be){if(typeof Be=="string"){var Ge=we.ALL_MARKER_TYPES.find(function(ke){return ke.typeName===Be});Ge!==void 0&&we._availableMarkerTypes.push(Ge)}else we._availableMarkerTypes.push(Be)})},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"currentMarker",{get:function(){return this._currentMarker},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isOpen",{get:function(){return this._isOpen},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isUndoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isUndoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"isRedoPossible",{get:function(){return!(!this.undoRedoManager||!this.undoRedoManager.isRedoPossible)},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"zoomLevel",{get:function(){return this._zoomLevel},set:function(Le){this._zoomLevel=Le,this.editorCanvas&&this.contentDiv&&(this.editorCanvas.style.transform="scale("+this._zoomLevel+")",this.contentDiv.scrollTo({left:(this.editorCanvas.clientWidth*this._zoomLevel-this.contentDiv.clientWidth)/2,top:(this.editorCanvas.clientHeight*this._zoomLevel-this.contentDiv.clientHeight)/2}))},enumerable:!1,configurable:!0}),Object.defineProperty(je.prototype,"instanceNo",{get:function(){return this._instanceNo},enumerable:!1,configurable:!0}),je.prototype.open=function(){this.setupResizeObserver(),this.setEditingTarget(),this.setTopLeft(),this.initMarkerCanvas(),this.initOverlay(),this.attachEvents(),this.settings.displayMode==="popup"&&this.onPopupTargetResize(),dt.isLicensed||this.addLogo(),this._isOpen=!0,this._isFocused=!0},je.prototype.show=function(){var Le=this;this.styles.styleSheetRoot===void 0&&Et.styleSheetRoot!==void 0&&(this.styles.styleSheetRoot=Et.styleSheetRoot),this.setWindowHeight(),this.showUI(),this.open(),this.eventListeners.show.forEach(function(we){return we(new Zt(Le))})},je.prototype.render=function(){return it(this,void 0,void 0,function(){var Le;return Dt(this,function(we){switch(we.label){case 0:return this.setCurrentMarker(),(Le=new Kt).naturalSize=this.renderAtNaturalSize,Le.imageType=this.renderImageType,Le.imageQuality=this.renderImageQuality,Le.markersOnly=this.renderMarkersOnly,Le.width=this.renderWidth,Le.height=this.renderHeight,[4,Le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 1:return we.sent(),[4,Le.rasterize(this.target instanceof HTMLImageElement?this.target:null,this.markerImage,this.renderTarget)];case 2:return[2,we.sent()]}})})},je.prototype.close=function(Le){var we=this;if(Le===void 0&&(Le=!1),this.isOpen){var Be=!1;Le||this.eventListeners.beforeclose.forEach(function(Ge){var ke=new Zt(we,!0);Ge(ke),ke.defaultPrevented&&(Be=!0)}),Be||(this.coverDiv&&this.closeUI(),this.targetObserver&&(this.targetObserver.unobserve(this.target),this.targetObserver.unobserve(this.editorCanvas)),this.settings.displayMode==="popup"&&window.removeEventListener("resize",this.setWindowHeight),this.eventListeners.close.forEach(function(Ge){return Ge(new Zt(we))}),this.detachEvents(),this._isOpen=!1)}},je.prototype.addMarkersToToolbar=function(){for(var Le,we=[],Be=0;Be<arguments.length;Be++)we[Be]=arguments[Be];(Le=this._availableMarkerTypes).push.apply(Le,we)},je.prototype.addRenderEventListener=function(Le){this.addEventListener("render",function(we){Le(we.dataUrl,we.state)})},je.prototype.removeRenderEventListener=function(Le){},je.prototype.addCloseEventListener=function(Le){this.addEventListener("close",function(){Le()})},je.prototype.removeCloseEventListener=function(Le){},je.prototype.setupResizeObserver=function(){var Le=this;this.settings.displayMode==="inline"?window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){Le.resize(Le.target.clientWidth,Le.target.clientHeight)}),this.targetObserver.observe(this.target)):this.settings.displayMode==="popup"&&(window.ResizeObserver&&(this.targetObserver=new ResizeObserver(function(){return Le.onPopupTargetResize()}),this.targetObserver.observe(this.editorCanvas)),window.addEventListener("resize",this.setWindowHeight))},je.prototype.onPopupTargetResize=function(){var Le=1*this.target.clientWidth/this.target.clientHeight,we=this.editorCanvas.clientWidth/Le>this.editorCanvas.clientHeight?this.editorCanvas.clientHeight*Le:this.editorCanvas.clientWidth,Be=we<this.editorCanvas.clientWidth?this.editorCanvas.clientHeight:this.editorCanvas.clientWidth/Le;this.resize(we,Be)},je.prototype.setWindowHeight=function(){this.windowHeight=window.innerHeight},je.prototype.resize=function(Le,we){this._isResizing=!0;var Be=Le/this.imageWidth,Ge=we/this.imageHeight;this.imageWidth=Math.round(Le),this.imageHeight=Math.round(we),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px",this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.settings.displayMode!=="popup"?this.coverDiv.style.width=this.imageWidth.toString()+"px":(this.setTopLeft(),this.positionMarkerImage()),this.toolbar!==void 0&&this.toolbar.adjustLayout(),this.positionLogo(),this.scaleMarkers(Be,Ge),this._isResizing=!1},je.prototype.scaleMarkers=function(Le,we){var Be,Ge=this;this._currentMarker&&this._currentMarker instanceof Nt?this._currentMarker.scale(Le,we):(Be=this._currentMarker,this.setCurrentMarker()),this.markers.forEach(function(ke){ke!==Ge._currentMarker&&ke.scale(Le,we)}),Be!==void 0&&this.setCurrentMarker(Be)},je.prototype.setEditingTarget=function(){this.imageWidth=Math.round(this.target.clientWidth),this.imageHeight=Math.round(this.target.clientHeight),this.target instanceof HTMLImageElement&&this.editingTarget instanceof HTMLImageElement&&(this.editingTarget.src=this.target.src),this.editingTarget.width=this.imageWidth,this.editingTarget.height=this.imageHeight,this.editingTarget.style.width=this.imageWidth+"px",this.editingTarget.style.height=this.imageHeight+"px"},je.prototype.setTopLeft=function(){var Le=this.editingTarget.getBoundingClientRect(),we=this.editorCanvas.getBoundingClientRect();this.left=Le.left-we.left,this.top=Le.top-we.top},je.prototype.initMarkerCanvas=function(){this.markerImageHolder=document.createElement("div"),this.markerImageHolder.style.setProperty("touch-action","pinch-zoom"),this.markerImage=document.createElementNS("http://www.w3.org/2000/svg","svg"),this.markerImage.setAttribute("xmlns","http://www.w3.org/2000/svg"),this.markerImage.setAttribute("width",this.imageWidth.toString()),this.markerImage.setAttribute("height",this.imageHeight.toString()),this.markerImage.setAttribute("viewBox","0 0 "+this.imageWidth.toString()+" "+this.imageHeight.toString()),this.markerImage.style.pointerEvents="auto",this.markerImageHolder.style.position="absolute",this.markerImageHolder.style.width=this.imageWidth+"px",this.markerImageHolder.style.height=this.imageHeight+"px",this.markerImageHolder.style.transformOrigin="top left",this.positionMarkerImage(),this.markerImageHolder.appendChild(this.markerImage),this.editorCanvas.appendChild(this.markerImageHolder)},je.prototype.addDefs=function(){for(var Le,we=[],Be=0;Be<arguments.length;Be++)we[Be]=arguments[Be];this.defs=ze.createDefs(),this.addDefsToImage(),(Le=this.defs).append.apply(Le,we)},je.prototype.addDefsToImage=function(){this.defs&&this.markerImage.insertBefore(this.defs,this.markerImage.firstChild)},je.prototype.initOverlay=function(){this.overlayContainer=document.createElement("div"),this.overlayContainer.style.position="absolute",this.overlayContainer.style.left="0px",this.overlayContainer.style.top="0px",this.overlayContainer.style.width=this.imageWidth+"px",this.overlayContainer.style.height=this.imageHeight+"px",this.overlayContainer.style.display="flex",this.markerImageHolder.appendChild(this.overlayContainer)},je.prototype.positionMarkerImage=function(){this.markerImageHolder.style.top=this.top/this.zoomLevel+"px",this.markerImageHolder.style.left=this.left/this.zoomLevel+"px"},je.prototype.attachEvents=function(){this.markerImage.addEventListener("pointerdown",this.onPointerDown),this.markerImage.addEventListener("dblclick",this.onDblClick),this.attachWindowEvents()},je.prototype.attachWindowEvents=function(){window.addEventListener("pointermove",this.onPointerMove),window.addEventListener("pointerup",this.onPointerUp),window.addEventListener("pointercancel",this.onPointerOut),window.addEventListener("pointerout",this.onPointerOut),window.addEventListener("pointerleave",this.onPointerUp),window.addEventListener("resize",this.onWindowResize),window.addEventListener("keyup",this.onKeyUp)},je.prototype.detachEvents=function(){this.markerImage.removeEventListener("pointerdown",this.onPointerDown),this.markerImage.removeEventListener("dblclick",this.onDblClick),this.detachWindowEvents()},je.prototype.detachWindowEvents=function(){window.removeEventListener("pointermove",this.onPointerMove),window.removeEventListener("pointerup",this.onPointerUp),window.removeEventListener("pointercancel",this.onPointerOut),window.removeEventListener("pointerout",this.onPointerOut),window.removeEventListener("pointerleave",this.onPointerUp),window.removeEventListener("resize",this.onWindowResize),window.removeEventListener("keyup",this.onKeyUp)},je.prototype.addLogo=function(){this.logoUI=document.createElement("div"),this.logoUI.style.display="inline-block",this.logoUI.style.margin="0px",this.logoUI.style.padding="0px",this.logoUI.style.fill="#333333";var Le=document.createElement("a");Le.href="https://markerjs.com/",Le.target="_blank",Le.innerHTML='<svg viewBox="0 0 112 96" xmlns="http://www.w3.org/2000/svg" fill-rule="evenodd" clip-rule="evenodd" stroke-linejoin="round" stroke-miterlimit="1.414"><path fill="#e5f20d" fill-opacity=".647" d="M0 40.386h111.96V95.62H0z"/><path d="M93.61 61.452c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.591 1.048-1.481 0-2.222-.74-2.222-2.22 0-16.617-.533-29.347-1.604-38.192-1.068-8.842-2.92-13.265-5.552-13.265-4.443 0-10.94 15.509-19.497 46.52v.124c0 .987-.328 1.831-.987 2.53-.657.7-1.52 1.048-2.592 1.048-1.48 0-2.22-.74-2.22-2.22 0-3.29.165-8.392.493-15.302.33-7.732.494-13.82.494-18.262 0-6.17-.186-10.55-.556-13.142-.37-2.591-1.172-3.887-2.406-3.887-2.796 0-6.333 5.12-10.612 15.363C38.494 34.367 34.01 46.44 29.32 60.34l-1.11 3.209a5.714 5.714 0 01-1.42 2.097c-.617.578-1.295.864-2.036.864-.987 0-1.644-.081-1.974-.247-.328-.162-.533-.656-.617-1.48-.41-4.03-.74-9.418-.987-16.165-.163-1.728-.329-4.566-.494-8.515-.822-13.901-1.562-23.3-2.221-28.196-.657-4.893-.987-7.628-.987-8.205 0-.657.33-1.44.987-2.345.659-.903 1.276-1.357 1.85-1.357 1.319 0 2.387.947 3.21 2.838.411.906.863 4.526 1.357 10.859.493 6.335.905 14.19 1.233 23.568l.617 18.88c4.527-13.983 9.216-26.673 14.068-38.068C45.65 6.686 50.093.988 54.123.988c2.715 0 4.566 1.974 5.553 5.923.987 3.949 1.481 9.667 1.481 17.152 0 3.949-.081 9.625-.247 17.029l-.123 5.676c3.373-11.762 6.725-21.634 10.057-29.615 3.331-7.979 6.685-11.97 10.056-11.97 8.475 0 12.71 18.757 12.71 56.269z" fill-rule="nonzero"/></svg>',Le.title="Powered by marker.js",Le.style.display="grid",Le.style.alignItems="center",Le.style.justifyItems="center",Le.style.padding="3px",Le.style.width="20px",Le.style.height="20px",this.logoUI.appendChild(Le),this.editorCanvas.appendChild(this.logoUI),this.logoUI.style.position="absolute",this.logoUI.style.pointerEvents="all",this.positionLogo()},je.prototype.positionLogo=function(){this.logoUI&&(this.uiStyleSettings.logoPosition!=="right"?this.logoUI.style.left=this.markerImageHolder.offsetLeft+10+"px":this.logoUI.style.left=this.markerImageHolder.offsetLeft+this.markerImageHolder.offsetWidth-this.logoUI.clientWidth-10+"px",this.logoUI.style.top=this.markerImageHolder.offsetTop+this.markerImageHolder.offsetHeight-this.logoUI.clientHeight-10+"px")},je.prototype.overrideOverflow=function(){this.scrollXState=window.scrollX,this.scrollYState=window.scrollY,this.bodyOverflowState=document.body.style.overflow,window.scroll({top:0,left:0}),document.body.style.overflow="hidden"},je.prototype.restoreOverflow=function(){document.body.style.overflow=this.bodyOverflowState,window.scroll({top:this.scrollYState,left:this.scrollXState})},je.prototype.showUI=function(){switch(this.settings.displayMode==="popup"&&this.overrideOverflow(),this.coverDiv=document.createElement("div"),this.coverDiv.style.visibility=this._silentRenderMode?"hidden":"visible",this.coverDiv.className=this.styles.classNamePrefixBase+" "+this.styles.classNamePrefix,this.coverDiv.style.fontSize="16px",this.coverDiv.style.userSelect="none",this.settings.displayMode){case"inline":this.coverDiv.style.position="absolute";var Le=this.settings.uiOffsetTop!==void 0?this.target.offsetTop+this.settings.uiOffsetTop:this.target.offsetTop>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Le+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px",this.coverDiv.style.width=this.target.offsetWidth.toString()+"px",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"5";break;case"popup":this.coverDiv.style.position="absolute",this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=window.innerHeight+"px",this.coverDiv.style.backgroundColor="rgba(0, 0, 0, 0.75)",this.coverDiv.style.zIndex=this.uiStyleSettings.zIndex!==void 0?this.uiStyleSettings.zIndex:"1000",this.coverDiv.style.display="flex"}this.targetRoot.appendChild(this.coverDiv),this.uiDiv=document.createElement("div"),this.uiDiv.style.display="flex",this.uiDiv.style.flexDirection="column",this.uiDiv.style.flexGrow="2",this.uiDiv.style.margin=this.settings.displayMode==="popup"?this.settings.popupMargin+"px":"0px",this.uiDiv.style.border="0px",this.coverDiv.appendChild(this.uiDiv),this.toolbar=new Ht(this.uiDiv,this.settings.displayMode,this._availableMarkerTypes,this.uiStyleSettings,this.styles),this.toolbar.addButtonClickListener(this.toolbarButtonClicked),this.toolbar.show(this._silentRenderMode||this.uiStyleSettings.hideToolbar?"hidden":"visible"),this.contentDiv=document.createElement("div"),this.contentDiv.style.display="flex",this.contentDiv.style.flexDirection="row",this.contentDiv.style.flexGrow="2",this.contentDiv.style.flexShrink="1",this.settings.displayMode==="popup"&&(this.contentDiv.style.backgroundColor=this.uiStyleSettings.canvasBackgroundColor,this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.uiStyleSettings.toolbarHeight+"px",this.contentDiv.style.maxWidth="calc(100vw - "+2*this.settings.popupMargin+"px)"),this.contentDiv.style.overflow="auto",this.uiDiv.appendChild(this.contentDiv),this.editorCanvas=document.createElement("div"),this.editorCanvas.style.flexGrow="2",this.editorCanvas.style.flexShrink="1",this.editorCanvas.style.position="relative",this.editorCanvas.style.overflow="hidden",this.editorCanvas.style.display="flex",this.settings.displayMode==="popup"&&(this.editorCanvas.style.alignItems="center",this.editorCanvas.style.justifyContent="center"),this.editorCanvas.style.pointerEvents="none",this.editorCanvas.style.transformOrigin="left top",this.editorCanvas.style.transform="scale("+this.zoomLevel+")",this.contentDiv.appendChild(this.editorCanvas),this.editingTarget=this.target instanceof HTMLImageElement?document.createElement("img"):document.createElement("canvas"),this.settings.uiOffsetTop===void 0&&this.target.offsetTop<this.styles.settings.toolbarHeight&&(this.editingTarget.style.marginTop=this.target.offsetTop-this.styles.settings.toolbarHeight+"px"),this.editorCanvas.appendChild(this.editingTarget),this.toolbox=new Ne(this.uiDiv,this.settings.displayMode,this.uiStyleSettings,this.styles),this.toolbox.show(this._silentRenderMode||this.uiStyleSettings.hideToolbox?"hidden":"visible")},je.prototype.closeUI=function(){this.settings.displayMode==="popup"&&this.restoreOverflow(),this.targetRoot.removeChild(this.coverDiv)},je.prototype.removeMarker=function(Le){this.markerImage.removeChild(Le.container),this.markers.indexOf(Le)>-1&&this.markers.splice(this.markers.indexOf(Le),1),Le.dispose()},je.prototype.switchToSelectMode=function(){this.mode="select",this.hideNotesEditor(),this._currentMarker!==void 0&&(this._currentMarker.state!=="new"?this._currentMarker.select():(this.removeMarker(this._currentMarker),this.setCurrentMarker(),this.markerImage.style.cursor="default"),this.addUndoStep())},je.prototype.toolbarButtonClicked=function(Le,we){if(Le==="marker"&&we!==void 0)this.createNewMarker(we);else if(Le==="action")switch(we){case"select":this.switchToSelectMode(),this.switchToSelectMode();break;case"delete":this.deleteSelectedMarker();break;case"clear":this.clear();break;case"undo":this.undo();break;case"redo":this.redo();break;case"zoom":this.stepZoom();break;case"zoom-out":this.zoomLevel=1;break;case"notes":this.notesArea===void 0?(this.switchToSelectMode(),this.zoomLevel=1,this.showNotesEditor()):this.switchToSelectMode();break;case"close":this.close();break;case"render":this.switchToSelectMode(),this.startRenderAndClose()}},je.prototype.deleteSelectedMarker=function(){var Le=this;if(this._currentMarker!==void 0){var we=!1;if(this.eventListeners.markerbeforedelete.forEach(function(Ge){var ke=new wt(Le,Le._currentMarker,!0);Ge(ke),ke.defaultPrevented&&(we=!0)}),!we){var Be=this._currentMarker;this._currentMarker.dispose(),this.markerImage.removeChild(this._currentMarker.container),this.markers.splice(this.markers.indexOf(this._currentMarker),1),this.setCurrentMarker(),this.addUndoStep(),this.eventListeners.markerdelete.forEach(function(Ge){return Ge(new wt(Le,Be))})}}},je.prototype.clear=function(){var Le=this,we=!1;if(this.markers.length>0&&(this.eventListeners.markerbeforedelete.forEach(function(et){var an=new wt(Le,void 0,!0);et(an),an.defaultPrevented&&(we=!0)}),!we)){this.setCurrentMarker();for(var Be=function(et){var an=Ge.markers[et];Ge.setCurrentMarker(Ge.markers[et]),Ge._currentMarker.dispose(),Ge.markerImage.removeChild(Ge._currentMarker.container),Ge.markers.splice(Ge.markers.indexOf(Ge._currentMarker),1),Ge.eventListeners.markerdelete.forEach(function(Bt){return Bt(new wt(Le,an))})},Ge=this,ke=this.markers.length-1;ke>=0;ke--)Be(ke);this.addUndoStep()}},Object.defineProperty(je.prototype,"isNotesAreaOpen",{get:function(){return this.notesArea!==void 0},enumerable:!1,configurable:!0}),je.prototype.showNotesEditor=function(){var Le;this._currentMarker!==void 0&&(this.overlayContainer.innerHTML="",this.notesArea=document.createElement("textarea"),this.notesArea.className=this.uiStyleSettings.notesAreaStyleClassName,this.notesArea.style.pointerEvents="auto",this.notesArea.style.alignSelf="stretch",this.notesArea.style.width="100%",this.notesArea.style.margin=this.uiStyleSettings.toolbarHeight/4+"px",this.notesArea.value=(Le=this._currentMarker.notes)!==null&&Le!==void 0?Le:"",this.overlayContainer.appendChild(this.notesArea))},je.prototype.hideNotesEditor=function(){this.isNotesAreaOpen&&(this._currentMarker!==void 0&&(this._currentMarker.notes=this.notesArea.value.trim()!==""?this.notesArea.value:void 0),this.overlayContainer.removeChild(this.notesArea),this.notesArea=void 0)},je.prototype.selectLastMarker=function(){this.markers.length>0?this.setCurrentMarker(this.markers[this.markers.length-1]):this.setCurrentMarker()},je.prototype.addUndoStep=function(){var Le=this;if(this._currentMarker===void 0||this._currentMarker.state!=="edit"){var we=this.getState(),Be=this.undoRedoManager.getLastUndoStep();if(!Be||Be.width===we.width&&Be.height===we.height){var Ge=this.undoRedoManager.undoStepCount;this.undoRedoManager.addUndoStep(we),Ge<this.undoRedoManager.undoStepCount&&this.eventListeners.statechange.forEach(function(ke){return ke(new Zt(Le))})}else this.undoRedoManager.replaceLastUndoStep(we),this.eventListeners.statechange.forEach(function(ke){return ke(new Zt(Le))})}},je.prototype.undo=function(){this.switchToSelectMode(),this.addUndoStep(),this.undoStep()},je.prototype.undoStep=function(){var Le=this,we=this.undoRedoManager.undo();we!==void 0&&(this.restoreState(we),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new Zt(Le))}))},je.prototype.redo=function(){this.switchToSelectMode(),this.redoStep()},je.prototype.redoStep=function(){var Le=this,we=this.undoRedoManager.redo();we!==void 0&&(this.restoreState(we),this.addDefsToImage(),this.selectLastMarker(),this.eventListeners.statechange.forEach(function(Be){return Be(new Zt(Le))}))},je.prototype.stepZoom=function(){var Le=this.zoomSteps.indexOf(this.zoomLevel);this.zoomLevel=Le<this.zoomSteps.length-1?this.zoomSteps[Le+1]:this.zoomSteps[0]},je.prototype.panTo=function(Le){this.contentDiv.scrollBy({left:this.prevPanPoint.x-Le.x,top:this.prevPanPoint.y-Le.y}),this.prevPanPoint=Le},je.prototype.startRenderAndClose=function(){return it(this,void 0,void 0,function(){var Le,we,Be=this;return Dt(this,function(Ge){switch(Ge.label){case 0:return[4,this.render()];case 1:return Le=Ge.sent(),we=this.getState(),this.eventListeners.render.forEach(function(ke){return ke(new Rn(Be,Le,we))}),this.close(!0),[2]}})})},je.prototype.getState=function(Le){Le===!0&&this.setCurrentMarker();var we={width:this.imageWidth,height:this.imageHeight,markers:[]};return this.markers.forEach(function(Be){return we.markers.push(Be.getState())}),we},je.prototype.restoreState=function(Le){var we=this;for(this.markers.splice(0);this.markerImage.lastChild;)this.markerImage.removeChild(this.markerImage.lastChild);Le.markers.forEach(function(Be){var Ge=we._availableMarkerTypes.find(function(et){return et.typeName===Be.typeName});if(Ge!==void 0){var ke=we.addNewMarker(Ge);ke.restoreState(Be),we.markers.push(ke)}}),Le.width&&Le.height&&(Le.width!==this.imageWidth||Le.height!==this.imageHeight)&&this.scaleMarkers(this.imageWidth/Le.width,this.imageHeight/Le.height),this.eventListeners.restorestate.forEach(function(Be){return Be(new Zt(we))})},je.prototype.addNewMarker=function(Le){var we=ze.createGroup();return this.markerImage.appendChild(we),new Le(we,this.overlayContainer,this.settings)},je.prototype.createNewMarker=function(Le){var we,Be=this;(we=typeof Le=="string"?this._availableMarkerTypes.find(function(Ge){return Ge.typeName===Le}):Le)&&(this.setCurrentMarker(),this.addUndoStep(),this._currentMarker=this.addNewMarker(we),this._currentMarker.onMarkerCreated=this.markerCreated,this._currentMarker.onColorChanged=this.colorChanged,this._currentMarker.onFillColorChanged=this.fillColorChanged,this._currentMarker.onStateChanged=this.markerStateChanged,this.markerImage.style.cursor="crosshair",this.toolbar.setActiveMarkerButton(we.typeName),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this.eventListeners.markercreating.forEach(function(Ge){return Ge(new wt(Be,Be._currentMarker))}))},je.prototype.markerCreated=function(Le){var we=this;this.mode="select",this.markerImage.style.cursor="default",this.markers.push(Le),this.setCurrentMarker(Le),Le instanceof Lt&&this.settings.newFreehandMarkerOnPointerUp?this.createNewMarker(Lt):this.toolbar.setSelectMode(),this.addUndoStep(),this.eventListeners.markercreate.forEach(function(Be){return Be(new wt(we,we._currentMarker))})},je.prototype.colorChanged=function(Le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultColor=Le,this.settings.defaultStrokeColor=Le)},je.prototype.fillColorChanged=function(Le){this.settings.defaultColorsFollowCurrentColors&&(this.settings.defaultFillColor=Le)},je.prototype.markerStateChanged=function(Le){var we=this;this.eventListeners.markerchange.forEach(function(Be){return Be(new wt(we,Le))})},je.prototype.setCurrentMarker=function(Le){var we=this;this._currentMarker!==Le&&this._currentMarker!==void 0&&(this._currentMarker.deselect(),this.toolbar.setCurrentMarker(),this.toolbox.setPanelButtons([]),this._isResizing||this.eventListeners.markerdeselect.forEach(function(Be){return Be(new wt(we,we._currentMarker))})),this._currentMarker=Le,this._currentMarker===void 0||this._currentMarker.isSelected||(this._currentMarker.state!=="new"&&this._currentMarker.select(),this.toolbar.setCurrentMarker(this._currentMarker),this.toolbox.setPanelButtons(this._currentMarker.toolboxPanels),this._isResizing||this.eventListeners.markerselect.forEach(function(Be){return Be(new wt(we,we._currentMarker))}))},je.prototype.onPointerDown=function(Le){if(this._isFocused||this.focus(),this.touchPoints++,this.touchPoints===1||Le.pointerType!=="touch")if(this._currentMarker===void 0||this._currentMarker.state!=="new"&&this._currentMarker.state!=="creating"){if(this.mode==="select"){var we=this.markers.find(function(Be){return Be.ownsTarget(Le.target)});we!==void 0?(this.setCurrentMarker(we),this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Le.clientX,Le.clientY),Le.target)):(this.setCurrentMarker(),this.isDragging=!0,this.prevPanPoint={x:Le.clientX,y:Le.clientY})}}else this.isDragging=!0,this._currentMarker.pointerDown(this.clientToLocalCoordinates(Le.clientX,Le.clientY))},je.prototype.onDblClick=function(Le){if(this._isFocused||this.focus(),this.mode==="select"){var we=this.markers.find(function(Be){return Be.ownsTarget(Le.target)});we!==void 0&&we!==this._currentMarker&&this.setCurrentMarker(we),this._currentMarker!==void 0?this._currentMarker.dblClick(this.clientToLocalCoordinates(Le.clientX,Le.clientY),Le.target):this.setCurrentMarker()}},je.prototype.onPointerMove=function(Le){this.touchPoints!==1&&Le.pointerType==="touch"||(this._currentMarker!==void 0||this.isDragging)&&(this._currentMarker!==void 0&&this._currentMarker.state==="edit"||Le.preventDefault(),this._currentMarker!==void 0?this._currentMarker.manipulate(this.clientToLocalCoordinates(Le.clientX,Le.clientY)):this.zoomLevel>1&&this.panTo({x:Le.clientX,y:Le.clientY}))},je.prototype.onPointerUp=function(Le){this.touchPoints>0&&this.touchPoints--,this.touchPoints===0&&this.isDragging&&this._currentMarker!==void 0&&this._currentMarker.pointerUp(this.clientToLocalCoordinates(Le.clientX,Le.clientY)),this.isDragging=!1,this.addUndoStep()},je.prototype.onPointerOut=function(){this.touchPoints>0&&this.touchPoints--},je.prototype.onKeyUp=function(Le){this._currentMarker===void 0||this.notesArea!==void 0||Le.key!=="Delete"&&Le.key!=="Backspace"||this.deleteSelectedMarker()},je.prototype.clientToLocalCoordinates=function(Le,we){var Be=this.markerImage.getBoundingClientRect();return{x:(Le-Be.left)/this.zoomLevel,y:(we-Be.top)/this.zoomLevel}},je.prototype.onWindowResize=function(){this.positionUI()},je.prototype.positionUI=function(){switch(this.setTopLeft(),this.settings.displayMode){case"inline":var Le=this.target.getClientRects().item(0).y>this.styles.settings.toolbarHeight?this.target.offsetTop-this.styles.settings.toolbarHeight:0;this.coverDiv.style.top=Le+"px",this.coverDiv.style.left=this.target.offsetLeft.toString()+"px";break;case"popup":this.coverDiv.style.top="0px",this.coverDiv.style.left="0px",this.coverDiv.style.width="100vw",this.coverDiv.style.height=this.windowHeight+"px",this.contentDiv.style.maxHeight=this.windowHeight-2*this.settings.popupMargin-3.5*this.styles.settings.toolbarHeight+"px"}this.positionMarkerImage(),this.positionLogo()},je.prototype.addLicenseKey=function(Le){dt.addKey(Le)},je.prototype.addEventListener=function(Le,we){this.eventListeners.addEventListener(Le,we)},je.prototype.removeEventListener=function(Le,we){this.eventListeners.removeEventListener(Le,we)},je.prototype.renderState=function(Le){this._silentRenderMode=!0,this.settings.displayMode="inline",this.isOpen||this.show(),this.restoreState(Le),this.startRenderAndClose(),this._silentRenderMode=!1},Object.defineProperty(je.prototype,"isFocused",{get:function(){return this._isFocused},enumerable:!1,configurable:!0}),je.prototype.focus=function(){var Le=this;this._isFocused||(this.attachWindowEvents(),this._isFocused=!0,this._previousCurrentMarker!==void 0&&this.setCurrentMarker(this._previousCurrentMarker),this.eventListeners.focus.forEach(function(we){return we(new Zt(Le))}))},je.prototype.blur=function(){var Le=this;this._isFocused&&(this.detachWindowEvents(),this._isFocused=!1,this._previousCurrentMarker=this._currentMarker,this.setCurrentMarker(),this.eventListeners.blur.forEach(function(we){return we(new Zt(Le))}))},je.instanceCounter=0,je}()},63727:function(Jn,gi,De){"use strict";De.d(gi,{s:function(){return gt},default:function(){return nn}});var ye=De(5016),nt=De(20049),it=De(92393),Dt=De(52456),Mt=De(5883),ze=De(37463),dt=De(6551),Kt=De(6089),Et=De(18929),Me=De(59301),zt=Me.createContext({}),Ke=zt,Ht=De(10928),Ne=De(18082),ne="__rc_cascader_search_mark__",te=function(Xt,pn,bn){var Un=bn.label,ti=Un===void 0?"":Un;return pn.some(function(pi){return String(pi[ti]).toLowerCase().includes(Xt.toLowerCase())})},de=function(Xt,pn,bn,Un){return pn.map(function(ti){return ti[Un.label]}).join(" / ")},le=function(Xt,pn,bn,Un,ti,pi){var vn=ti.filter,wi=vn===void 0?te:vn,Yi=ti.render,gr=Yi===void 0?de:Yi,rr=ti.limit,tr=rr===void 0?50:rr,vr=ti.sort;return Me.useMemo(function(){var hr=[];if(!Xt)return[];function ar(Xi,yr){var Ce=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;Xi.forEach(function(Sn){if(!(!vr&&tr!==!1&&tr>0&&hr.length>=tr)){var Gn=[].concat((0,it.Z)(yr),[Sn]),dr=Sn[bn.children],or=Ce||Sn.disabled;if((!dr||dr.length===0||pi)&&wi(Xt,Gn,{label:bn.label})){var Ii;hr.push((0,nt.Z)((0,nt.Z)({},Sn),{},(Ii={disabled:or},(0,Ne.Z)(Ii,bn.label,gr(Xt,Gn,Un,bn)),(0,Ne.Z)(Ii,ne,Gn),(0,Ne.Z)(Ii,bn.children,void 0),Ii)))}dr&&ar(Sn[bn.children],Gn,or)}})}return ar(pn,[]),vr&&hr.sort(function(Xi,yr){return vr(Xi[ne],yr[ne],Xt,bn)}),tr!==!1&&tr>0?hr.slice(0,tr):hr},[Xt,pn,bn,Un,gr,pi,wi,vr,tr])},ge=le,me="__RC_CASCADER_SPLIT__",Se="SHOW_PARENT",be="SHOW_CHILD";function Ie(jt){return jt.join(me)}function Ze(jt){return jt.map(Ie)}function st(jt){return jt.split(me)}function Ye(jt){var Xt=jt||{},pn=Xt.label,bn=Xt.value,Un=Xt.children,ti=bn||"value";return{label:pn||"label",value:ti,key:ti,children:Un||"children"}}function Xe(jt,Xt){var pn,bn;return(pn=jt.isLeaf)!==null&&pn!==void 0?pn:!((bn=jt[Xt.children])!==null&&bn!==void 0&&bn.length)}function At(jt){var Xt=jt.parentElement;if(Xt){var pn=jt.offsetTop-Xt.offsetTop;pn-Xt.scrollTop<0?Xt.scrollTo({top:pn}):pn+jt.offsetHeight-Xt.scrollTop>Xt.offsetHeight&&Xt.scrollTo({top:pn+jt.offsetHeight-Xt.offsetHeight})}}function ft(jt,Xt){return jt.map(function(pn){var bn;return(bn=pn[ne])===null||bn===void 0?void 0:bn.map(function(Un){return Un[Xt.value]})})}function Nt(jt){return Array.isArray(jt)&&Array.isArray(jt[0])}function Lt(jt){return jt?Nt(jt)?jt:(jt.length===0?[]:[jt]).map(function(Xt){return Array.isArray(Xt)?Xt:[Xt]}):[]}function ln(jt,Xt,pn){var bn=new Set(jt),Un=Xt();return jt.filter(function(ti){var pi=Un[ti],vn=pi?pi.parent:null,wi=pi?pi.children:null;return pi&&pi.node.disabled?!0:pn===be?!(wi&&wi.some(function(Yi){return Yi.key&&bn.has(Yi.key)})):!(vn&&!vn.node.disabled&&bn.has(vn.key))})}function kn(jt,Xt,pn){for(var bn=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,Un=Xt,ti=[],pi=function(){var Yi,gr,rr,tr=jt[vn],vr=(Yi=Un)===null||Yi===void 0?void 0:Yi.findIndex(function(ar){var Xi=ar[pn.value];return bn?String(Xi)===String(tr):Xi===tr}),hr=vr!==-1?(gr=Un)===null||gr===void 0?void 0:gr[vr]:null;ti.push({value:(rr=hr==null?void 0:hr[pn.value])!==null&&rr!==void 0?rr:tr,index:vr,option:hr}),Un=hr==null?void 0:hr[pn.children]},vn=0;vn<jt.length;vn+=1)pi();return ti}var un=function(jt,Xt,pn,bn,Un){return Me.useMemo(function(){var ti=Un||function(pi){var vn=bn?pi.slice(-1):pi,wi=" / ";return vn.every(function(Yi){return["string","number"].includes((0,Ht.Z)(Yi))})?vn.join(wi):vn.reduce(function(Yi,gr,rr){var tr=Me.isValidElement(gr)?Me.cloneElement(gr,{key:rr}):gr;return rr===0?[tr]:[].concat((0,it.Z)(Yi),[wi,tr])},[])};return jt.map(function(pi){var vn,wi=kn(pi,Xt,pn),Yi=ti(wi.map(function(rr){var tr,vr=rr.option,hr=rr.value;return(tr=vr==null?void 0:vr[pn.label])!==null&&tr!==void 0?tr:hr}),wi.map(function(rr){var tr=rr.option;return tr})),gr=Ie(pi);return{label:Yi,value:gr,key:gr,valueCells:pi,disabled:(vn=wi[wi.length-1])===null||vn===void 0||(vn=vn.option)===null||vn===void 0?void 0:vn.disabled}})},[jt,Xt,pn,Un,bn])};function _t(jt,Xt){return Me.useCallback(function(pn){var bn=[],Un=[];return pn.forEach(function(ti){var pi=kn(ti,jt,Xt);pi.every(function(vn){return vn.option})?Un.push(ti):bn.push(ti)}),[Un,bn]},[jt,Xt])}var hn=De(34061),vt=function(jt,Xt){var pn=Me.useRef({options:[],info:{keyEntities:{},pathKeyEntities:{}}}),bn=Me.useCallback(function(){return pn.current.options!==jt&&(pn.current.options=jt,pn.current.info=(0,hn.I8)(jt,{fieldNames:Xt,initWrapper:function(ti){return(0,nt.Z)((0,nt.Z)({},ti),{},{pathKeyEntities:{}})},processEntity:function(ti,pi){var vn=ti.nodes.map(function(wi){return wi[Xt.value]}).join(me);pi.pathKeyEntities[vn]=ti,ti.key=vn}})),pn.current.info.pathKeyEntities},[Xt,jt]);return bn};function $e(jt,Xt){var pn=Me.useMemo(function(){return Xt||[]},[Xt]),bn=vt(pn,jt),Un=Me.useCallback(function(ti){var pi=bn();return ti.map(function(vn){var wi=pi[vn].nodes;return wi.map(function(Yi){return Yi[jt.value]})})},[bn,jt]);return[pn,bn,Un]}var gn=De(48736);function ci(jt){return Me.useMemo(function(){if(!jt)return[!1,{}];var Xt={matchInputWidth:!0,limit:50};return jt&&(0,Ht.Z)(jt)==="object"&&(Xt=(0,nt.Z)((0,nt.Z)({},Xt),jt)),Xt.limit<=0&&(Xt.limit=!1),[!0,Xt]},[jt])}var Fn=De(34643);function rn(jt,Xt,pn,bn,Un,ti,pi,vn){return function(wi){if(!jt)Xt(wi);else{var Yi=Ie(wi),gr=Ze(pn),rr=Ze(bn),tr=gr.includes(Yi),vr=Un.some(function(or){return Ie(or)===Yi}),hr=pn,ar=Un;if(vr&&!tr)ar=Un.filter(function(or){return Ie(or)!==Yi});else{var Xi=tr?gr.filter(function(or){return or!==Yi}):[].concat((0,it.Z)(gr),[Yi]),yr=ti(),Ce;if(tr){var Sn=(0,Fn.S)(Xi,{checked:!1,halfCheckedKeys:rr},yr);Ce=Sn.checkedKeys}else{var Gn=(0,Fn.S)(Xi,!0,yr);Ce=Gn.checkedKeys}var dr=ln(Ce,ti,vn);hr=pi(dr)}Xt([].concat((0,it.Z)(ar),(0,it.Z)(hr)))}}}function Xn(jt,Xt,pn,bn,Un){return Me.useMemo(function(){var ti=Un(Xt),pi=(0,Dt.Z)(ti,2),vn=pi[0],wi=pi[1];if(!jt||!Xt.length)return[vn,[],wi];var Yi=Ze(vn),gr=pn(),rr=(0,Fn.S)(Yi,!0,gr),tr=rr.checkedKeys,vr=rr.halfCheckedKeys;return[bn(tr),bn(vr),wi]},[jt,Xt,pn,bn,Un])}var Nn=De(92310),mi=De.n(Nn),Zt=Me.memo(function(jt){var Xt=jt.children;return Xt},function(jt,Xt){return!Xt.open}),Rn=Zt;function wt(jt){var Xt,pn=jt.prefixCls,bn=jt.checked,Un=jt.halfChecked,ti=jt.disabled,pi=jt.onClick,vn=jt.disableCheckbox,wi=Me.useContext(Ke),Yi=wi.checkable,gr=typeof Yi!="boolean"?Yi:null;return Me.createElement("span",{className:mi()("".concat(pn),(Xt={},(0,Ne.Z)(Xt,"".concat(pn,"-checked"),bn),(0,Ne.Z)(Xt,"".concat(pn,"-indeterminate"),!bn&&Un),(0,Ne.Z)(Xt,"".concat(pn,"-disabled"),ti||vn),Xt)),onClick:pi},gr)}var Ai="__cascader_fix_label__";function Kn(jt){var Xt=jt.prefixCls,pn=jt.multiple,bn=jt.options,Un=jt.activeValue,ti=jt.prevValuePath,pi=jt.onToggleOpen,vn=jt.onSelect,wi=jt.onActive,Yi=jt.checkedSet,gr=jt.halfCheckedSet,rr=jt.loadingKeys,tr=jt.isSelectable,vr=jt.disabled,hr="".concat(Xt,"-menu"),ar="".concat(Xt,"-menu-item"),Xi=Me.useContext(Ke),yr=Xi.fieldNames,Ce=Xi.changeOnSelect,Sn=Xi.expandTrigger,Gn=Xi.expandIcon,dr=Xi.loadingIcon,or=Xi.dropdownMenuColumnStyle,Ii=Xi.optionRender,Tn=Sn==="hover",Cn=function(xt){return vr||xt},Mn=Me.useMemo(function(){return bn.map(function(yt){var xt,Ct=yt.disabled,Yn=yt.disableCheckbox,$n=yt[ne],di=(xt=yt[Ai])!==null&&xt!==void 0?xt:yt[yr.label],xn=yt[yr.value],ai=Xe(yt,yr),Pn=$n?$n.map(function(Dn){return Dn[yr.value]}):[].concat((0,it.Z)(ti),[xn]),zi=Ie(Pn),fr=rr.includes(zi),Ve=Yi.has(zi),mt=gr.has(zi);return{disabled:Ct,label:di,value:xn,isLeaf:ai,isLoading:fr,checked:Ve,halfChecked:mt,option:yt,disableCheckbox:Yn,fullPath:Pn,fullPathKey:zi}})},[bn,Yi,yr,gr,rr,ti]);return Me.createElement("ul",{className:hr,role:"menu"},Mn.map(function(yt){var xt,Ct=yt.disabled,Yn=yt.label,$n=yt.value,di=yt.isLeaf,xn=yt.isLoading,ai=yt.checked,Pn=yt.halfChecked,zi=yt.option,fr=yt.fullPath,Ve=yt.fullPathKey,mt=yt.disableCheckbox,Dn=function(){if(!Cn(Ct)){var Hn=(0,it.Z)(fr);Tn&&di&&Hn.pop(),wi(Hn)}},An=function(){tr(zi)&&!Cn(Ct)&&vn(fr,di)},Ot;return typeof zi.title=="string"?Ot=zi.title:typeof Yn=="string"&&(Ot=Yn),Me.createElement("li",{key:Ve,className:mi()(ar,(xt={},(0,Ne.Z)(xt,"".concat(ar,"-expand"),!di),(0,Ne.Z)(xt,"".concat(ar,"-active"),Un===$n||Un===Ve),(0,Ne.Z)(xt,"".concat(ar,"-disabled"),Cn(Ct)),(0,Ne.Z)(xt,"".concat(ar,"-loading"),xn),xt)),style:or,role:"menuitemcheckbox",title:Ot,"aria-checked":ai,"data-path-key":Ve,onClick:function(){Dn(),!mt&&(!pn||di)&&An()},onDoubleClick:function(){Ce&&pi(!1)},onMouseEnter:function(){Tn&&Dn()},onMouseDown:function(Hn){Hn.preventDefault()}},pn&&Me.createElement(wt,{prefixCls:"".concat(Xt,"-checkbox"),checked:ai,halfChecked:Pn,disabled:Cn(Ct)||mt,disableCheckbox:mt,onClick:function(Hn){mt||(Hn.stopPropagation(),An())}}),Me.createElement("div",{className:"".concat(ar,"-content")},Ii?Ii(zi):Yn),!xn&&Gn&&!di&&Me.createElement("div",{className:"".concat(ar,"-expand-icon")},Gn),xn&&dr&&Me.createElement("div",{className:"".concat(ar,"-loading-icon")},dr))}))}var je=function(Xt,pn){var bn=Me.useContext(Ke),Un=bn.values,ti=Un[0],pi=Me.useState([]),vn=(0,Dt.Z)(pi,2),wi=vn[0],Yi=vn[1];return Me.useEffect(function(){Xt||Yi(ti||[])},[pn,ti]),[wi,Yi]},Le=je,we=De(10228),Be=function(jt,Xt,pn,bn,Un,ti,pi){var vn=pi.direction,wi=pi.searchValue,Yi=pi.toggleOpen,gr=pi.open,rr=vn==="rtl",tr=Me.useMemo(function(){for(var or=-1,Ii=Xt,Tn=[],Cn=[],Mn=bn.length,yt=ft(Xt,pn),xt=function(xn){var ai=Ii.findIndex(function(Pn,zi){return(yt[zi]?Ie(yt[zi]):Pn[pn.value])===bn[xn]});if(ai===-1)return 1;or=ai,Tn.push(or),Cn.push(bn[xn]),Ii=Ii[or][pn.children]},Ct=0;Ct<Mn&&Ii&&!xt(Ct);Ct+=1);for(var Yn=Xt,$n=0;$n<Tn.length-1;$n+=1)Yn=Yn[Tn[$n]][pn.children];return[Cn,or,Yn,yt]},[bn,pn,Xt]),vr=(0,Dt.Z)(tr,4),hr=vr[0],ar=vr[1],Xi=vr[2],yr=vr[3],Ce=function(Ii){Un(Ii)},Sn=function(Ii){var Tn=Xi.length,Cn=ar;Cn===-1&&Ii<0&&(Cn=Tn);for(var Mn=0;Mn<Tn;Mn+=1){Cn=(Cn+Ii+Tn)%Tn;var yt=Xi[Cn];if(yt&&!yt.disabled){var xt=hr.slice(0,-1).concat(yr[Cn]?Ie(yr[Cn]):yt[pn.value]);Ce(xt);return}}},Gn=function(){if(hr.length>1){var Ii=hr.slice(0,-1);Ce(Ii)}else Yi(!1)},dr=function(){var Ii,Tn=((Ii=Xi[ar])===null||Ii===void 0?void 0:Ii[pn.children])||[],Cn=Tn.find(function(yt){return!yt.disabled});if(Cn){var Mn=[].concat((0,it.Z)(hr),[Cn[pn.value]]);Ce(Mn)}};Me.useImperativeHandle(jt,function(){return{onKeyDown:function(Ii){var Tn=Ii.which;switch(Tn){case we.Z.UP:case we.Z.DOWN:{var Cn=0;Tn===we.Z.UP?Cn=-1:Tn===we.Z.DOWN&&(Cn=1),Cn!==0&&Sn(Cn);break}case we.Z.LEFT:{if(wi)break;rr?dr():Gn();break}case we.Z.RIGHT:{if(wi)break;rr?Gn():dr();break}case we.Z.BACKSPACE:{wi||Gn();break}case we.Z.ENTER:{if(hr.length){var Mn=Xi[ar],yt=(Mn==null?void 0:Mn[ne])||[];yt.length?ti(yt.map(function(xt){return xt[pn.value]}),yt[yt.length-1]):ti(hr,Xi[ar])}break}case we.Z.ESC:Yi(!1),gr&&Ii.stopPropagation()}},onKeyUp:function(){}}})},Ge=Me.forwardRef(function(jt,Xt){var pn,bn,Un,ti=jt.prefixCls,pi=jt.multiple,vn=jt.searchValue,wi=jt.toggleOpen,Yi=jt.notFoundContent,gr=jt.direction,rr=jt.open,tr=jt.disabled,vr=Me.useRef(null),hr=gr==="rtl",ar=Me.useContext(Ke),Xi=ar.options,yr=ar.values,Ce=ar.halfValues,Sn=ar.fieldNames,Gn=ar.changeOnSelect,dr=ar.onSelect,or=ar.searchOptions,Ii=ar.dropdownPrefixCls,Tn=ar.loadData,Cn=ar.expandTrigger,Mn=Ii||ti,yt=Me.useState([]),xt=(0,Dt.Z)(yt,2),Ct=xt[0],Yn=xt[1],$n=function(_i){if(!(!Tn||vn)){var Ri=kn(_i,Xi,Sn),Di=Ri.map(function(Mr){var Kr=Mr.option;return Kr}),sn=Di[Di.length-1];if(sn&&!Xe(sn,Sn)){var pr=Ie(_i);Yn(function(Mr){return[].concat((0,it.Z)(Mr),[pr])}),Tn(Di)}}};Me.useEffect(function(){Ct.length&&Ct.forEach(function(yi){var _i=st(yi),Ri=kn(_i,Xi,Sn,!0).map(function(sn){var pr=sn.option;return pr}),Di=Ri[Ri.length-1];(!Di||Di[Sn.children]||Xe(Di,Sn))&&Yn(function(sn){return sn.filter(function(pr){return pr!==yi})})})},[Xi,Ct,Sn]);var di=Me.useMemo(function(){return new Set(Ze(yr))},[yr]),xn=Me.useMemo(function(){return new Set(Ze(Ce))},[Ce]),ai=Le(pi,rr),Pn=(0,Dt.Z)(ai,2),zi=Pn[0],fr=Pn[1],Ve=function(_i){fr(_i),$n(_i)},mt=function(_i){if(tr)return!1;var Ri=_i.disabled,Di=Xe(_i,Sn);return!Ri&&(Di||Gn||pi)},Dn=function(_i,Ri){var Di=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;dr(_i),!pi&&(Ri||Gn&&(Cn==="hover"||Di))&&wi(!1)},An=Me.useMemo(function(){return vn?or:Xi},[vn,or,Xi]),Ot=Me.useMemo(function(){for(var yi=[{options:An}],_i=An,Ri=ft(_i,Sn),Di=function(){var Mr=zi[sn],Kr=_i.find(function(Si,Vi){return(Ri[Vi]?Ie(Ri[Vi]):Si[Sn.value])===Mr}),En=Kr==null?void 0:Kr[Sn.children];if(!(En!=null&&En.length))return 1;_i=En,yi.push({options:En})},sn=0;sn<zi.length&&!Di();sn+=1);return yi},[An,zi,Sn]),Bn=function(_i,Ri){mt(Ri)&&Dn(_i,Xe(Ri,Sn),!0)};Be(Xt,An,Sn,zi,Ve,Bn,{direction:gr,searchValue:vn,toggleOpen:wi,open:rr}),Me.useEffect(function(){if(!vn)for(var yi=0;yi<zi.length;yi+=1){var _i,Ri=zi.slice(0,yi+1),Di=Ie(Ri),sn=(_i=vr.current)===null||_i===void 0?void 0:_i.querySelector('li[data-path-key="'.concat(Di.replace(/\\{0,2}"/g,'\\"'),'"]'));sn&&At(sn)}},[zi,vn]);var Hn=!((pn=Ot[0])!==null&&pn!==void 0&&(pn=pn.options)!==null&&pn!==void 0&&pn.length),_n=[(bn={},(0,Ne.Z)(bn,Sn.value,"__EMPTY__"),(0,Ne.Z)(bn,Ai,Yi),(0,Ne.Z)(bn,"disabled",!0),bn)],Ei=(0,nt.Z)((0,nt.Z)({},jt),{},{multiple:!Hn&&pi,onSelect:Dn,onActive:Ve,onToggleOpen:wi,checkedSet:di,halfCheckedSet:xn,loadingKeys:Ct,isSelectable:mt}),si=Hn?[{options:_n}]:Ot,Pi=si.map(function(yi,_i){var Ri=zi.slice(0,_i),Di=zi[_i];return Me.createElement(Kn,(0,ye.Z)({key:_i},Ei,{prefixCls:Mn,options:yi.options,prevValuePath:Ri,activeValue:Di}))});return Me.createElement(Rn,{open:rr},Me.createElement("div",{className:mi()("".concat(Mn,"-menus"),(Un={},(0,Ne.Z)(Un,"".concat(Mn,"-menu-empty"),Hn),(0,Ne.Z)(Un,"".concat(Mn,"-rtl"),hr),Un)),ref:vr},Pi))}),ke=Ge,et=Me.forwardRef(function(jt,Xt){var pn=(0,ze.lk)();return Me.createElement(ke,(0,ye.Z)({},jt,pn,{ref:Xt}))}),an=et,Bt=De(70425);function Ut(){}function gt(jt){var Xt,pn=jt,bn=pn.prefixCls,Un=bn===void 0?"rc-cascader":bn,ti=pn.style,pi=pn.className,vn=pn.options,wi=pn.checkable,Yi=pn.defaultValue,gr=pn.value,rr=pn.fieldNames,tr=pn.changeOnSelect,vr=pn.onChange,hr=pn.showCheckedStrategy,ar=pn.loadData,Xi=pn.expandTrigger,yr=pn.expandIcon,Ce=yr===void 0?">":yr,Sn=pn.loadingIcon,Gn=pn.direction,dr=pn.notFoundContent,or=dr===void 0?"Not Found":dr,Ii=pn.disabled,Tn=!!wi,Cn=(0,Bt.C8)(Yi,{value:gr,postState:Lt}),Mn=(0,Dt.Z)(Cn,2),yt=Mn[0],xt=Mn[1],Ct=Me.useMemo(function(){return Ye(rr)},[JSON.stringify(rr)]),Yn=$e(Ct,vn),$n=(0,Dt.Z)(Yn,3),di=$n[0],xn=$n[1],ai=$n[2],Pn=_t(di,Ct),zi=Xn(Tn,yt,xn,ai,Pn),fr=(0,Dt.Z)(zi,3),Ve=fr[0],mt=fr[1],Dn=fr[2],An=(0,Bt.zX)(function(si){if(xt(si),vr){var Pi=Lt(si),yi=Pi.map(function(Di){return kn(Di,di,Ct).map(function(sn){return sn.option})}),_i=Tn?Pi:Pi[0],Ri=Tn?yi:yi[0];vr(_i,Ri)}}),Ot=rn(Tn,An,Ve,mt,Dn,xn,ai,hr),Bn=(0,Bt.zX)(function(si){Ot(si)}),Hn=Me.useMemo(function(){return{options:di,fieldNames:Ct,values:Ve,halfValues:mt,changeOnSelect:tr,onSelect:Bn,checkable:wi,searchOptions:[],dropdownPrefixCls:void 0,loadData:ar,expandTrigger:Xi,expandIcon:Ce,loadingIcon:Sn,dropdownMenuColumnStyle:void 0}},[di,Ct,Ve,mt,tr,Bn,wi,ar,Xi,Ce,Sn]),_n="".concat(Un,"-panel"),Ei=!di.length;return Me.createElement(Ke.Provider,{value:Hn},Me.createElement("div",{className:mi()(_n,(Xt={},(0,Ne.Z)(Xt,"".concat(_n,"-rtl"),Gn==="rtl"),(0,Ne.Z)(Xt,"".concat(_n,"-empty"),Ei),Xt),pi),style:ti},Ei?or:Me.createElement(ke,{prefixCls:Un,searchValue:"",multiple:Tn,toggleOpen:Ut,open:!0,direction:Gn,disabled:Ii})))}function Pt(jt){var Xt=jt.onPopupVisibleChange,pn=jt.popupVisible,bn=jt.popupClassName,Un=jt.popupPlacement;warning(!Xt,"`onPopupVisibleChange` is deprecated. Please use `onDropdownVisibleChange` instead."),warning(pn===void 0,"`popupVisible` is deprecated. Please use `open` instead."),warning(bn===void 0,"`popupClassName` is deprecated. Please use `dropdownClassName` instead."),warning(Un===void 0,"`popupPlacement` is deprecated. Please use `placement` instead.")}function Tt(jt,Xt){if(jt){var pn=function bn(Un){for(var ti=0;ti<Un.length;ti++){var pi=Un[ti];if(pi[Xt==null?void 0:Xt.value]===null)return warning(!1,"`value` in Cascader options should not be `null`."),!0;if(Array.isArray(pi[Xt==null?void 0:Xt.children])&&bn(pi[Xt==null?void 0:Xt.children]))return!0}};pn(jt)}}var Yt=null,dn=["id","prefixCls","fieldNames","defaultValue","value","changeOnSelect","onChange","displayRender","checkable","autoClearSearchValue","searchValue","onSearch","showSearch","expandTrigger","options","dropdownPrefixCls","loadData","popupVisible","open","popupClassName","dropdownClassName","dropdownMenuColumnStyle","dropdownStyle","popupPlacement","placement","onDropdownVisibleChange","onPopupVisibleChange","expandIcon","loadingIcon","children","dropdownMatchSelectWidth","showCheckedStrategy","optionRender"],On=Me.forwardRef(function(jt,Xt){var pn=jt.id,bn=jt.prefixCls,Un=bn===void 0?"rc-cascader":bn,ti=jt.fieldNames,pi=jt.defaultValue,vn=jt.value,wi=jt.changeOnSelect,Yi=jt.onChange,gr=jt.displayRender,rr=jt.checkable,tr=jt.autoClearSearchValue,vr=tr===void 0?!0:tr,hr=jt.searchValue,ar=jt.onSearch,Xi=jt.showSearch,yr=jt.expandTrigger,Ce=jt.options,Sn=jt.dropdownPrefixCls,Gn=jt.loadData,dr=jt.popupVisible,or=jt.open,Ii=jt.popupClassName,Tn=jt.dropdownClassName,Cn=jt.dropdownMenuColumnStyle,Mn=jt.dropdownStyle,yt=jt.popupPlacement,xt=jt.placement,Ct=jt.onDropdownVisibleChange,Yn=jt.onPopupVisibleChange,$n=jt.expandIcon,di=$n===void 0?">":$n,xn=jt.loadingIcon,ai=jt.children,Pn=jt.dropdownMatchSelectWidth,zi=Pn===void 0?!1:Pn,fr=jt.showCheckedStrategy,Ve=fr===void 0?Se:fr,mt=jt.optionRender,Dn=(0,Mt.Z)(jt,dn),An=(0,dt.ZP)(pn),Ot=!!rr,Bn=(0,Et.Z)(pi,{value:vn,postState:Lt}),Hn=(0,Dt.Z)(Bn,2),_n=Hn[0],Ei=Hn[1],si=Me.useMemo(function(){return Ye(ti)},[JSON.stringify(ti)]),Pi=$e(si,Ce),yi=(0,Dt.Z)(Pi,3),_i=yi[0],Ri=yi[1],Di=yi[2],sn=(0,Et.Z)("",{value:hr,postState:function(St){return St||""}}),pr=(0,Dt.Z)(sn,2),Mr=pr[0],Kr=pr[1],En=function(St,It){Kr(St),It.source!=="blur"&&ar&&ar(St)},Si=ci(Xi),Vi=(0,Dt.Z)(Si,2),Wi=Vi[0],$i=Vi[1],Pr=ge(Mr,_i,si,Sn||Un,$i,wi||Ot),br=_t(_i,si),Hi=Xn(Ot,_n,Ri,Di,br),er=(0,Dt.Z)(Hi,3),Gi=er[0],cn=er[1],sr=er[2],yn=Me.useMemo(function(){var qe=Ze(Gi),St=ln(qe,Ri,Ve);return[].concat((0,it.Z)(sr),(0,it.Z)(Di(St)))},[Gi,Ri,Di,sr,Ve]),bi=un(yn,_i,si,Ot,gr),Cr=(0,Kt.Z)(function(qe){if(Ei(qe),Yi){var St=Lt(qe),It=St.map(function(Ft){return kn(Ft,_i,si).map(function(Gt){return Gt.option})}),en=Ot?St:St[0],tt=Ot?It:It[0];Yi(en,tt)}}),Nr=rn(Ot,Cr,Gi,cn,sr,Ri,Di,Ve),to=(0,Kt.Z)(function(qe){(!Ot||vr)&&Kr(""),Nr(qe)}),Ur=function(St,It){if(It.type==="clear"){Cr([]);return}var en=It.values[0],tt=en.valueCells;to(tt)},Br=or!==void 0?or:dr,ao=Tn||Ii,Qt=xt||yt,Vn=function(St){Ct==null||Ct(St),Yn==null||Yn(St)},$t=Me.useMemo(function(){return{options:_i,fieldNames:si,values:Gi,halfValues:cn,changeOnSelect:wi,onSelect:to,checkable:rr,searchOptions:Pr,dropdownPrefixCls:Sn,loadData:Gn,expandTrigger:yr,expandIcon:di,loadingIcon:xn,dropdownMenuColumnStyle:Cn,optionRender:mt}},[_i,si,Gi,cn,wi,to,rr,Pr,Sn,Gn,yr,di,xn,Cn,mt]),Te=!(Mr?Pr:_i).length,He=Mr&&$i.matchInputWidth||Te?{}:{minWidth:"auto"};return Me.createElement(Ke.Provider,{value:$t},Me.createElement(ze.Ac,(0,ye.Z)({},Dn,{ref:Xt,id:An,prefixCls:Un,autoClearSearchValue:vr,dropdownMatchSelectWidth:zi,dropdownStyle:(0,nt.Z)((0,nt.Z)({},He),Mn),displayValues:bi,onDisplayValuesChange:Ur,mode:Ot?"multiple":void 0,searchValue:Mr,onSearch:En,showSearch:Wi,OptionList:an,emptyOptions:Te,open:Br,dropdownClassName:ao,placement:Qt,onDropdownVisibleChange:Vn,getRawInputElement:function(){return ai}})))});On.SHOW_PARENT=Se,On.SHOW_CHILD=be,On.Panel=gt;var wn=On,nn=wn},23425:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Ze}});var ye=De(18082),nt=De(5016),it=De(10928),Dt=De(20049),Mt=De(52456),ze=De(92310),dt=De.n(ze),Kt=De(18929),Et=De(10228),Me=De(26112),zt=De(48736),Ke=De(59301),Ht=De(17119),Ne=[10,20,50,100],ne=function(Ye){var Xe=Ye.pageSizeOptions,At=Xe===void 0?Ne:Xe,ft=Ye.locale,Nt=Ye.changeSize,Lt=Ye.pageSize,ln=Ye.goButton,kn=Ye.quickGo,un=Ye.rootPrefixCls,_t=Ye.disabled,hn=Ye.buildOptionText,vt=Ye.showSizeChanger,$e=Ye.sizeChangerRender,gn=Ke.useState(""),ci=(0,Mt.Z)(gn,2),Fn=ci[0],rn=ci[1],Xn=function(){return!Fn||Number.isNaN(Fn)?void 0:Number(Fn)},Nn=typeof hn=="function"?hn:function(we){return"".concat(we," ").concat(ft.items_per_page)},mi=function(Be){rn(Be.target.value)},Zt=function(Be){ln||Fn===""||(rn(""),!(Be.relatedTarget&&(Be.relatedTarget.className.indexOf("".concat(un,"-item-link"))>=0||Be.relatedTarget.className.indexOf("".concat(un,"-item"))>=0))&&(kn==null||kn(Xn())))},Rn=function(Be){Fn!==""&&(Be.keyCode===Et.Z.ENTER||Be.type==="click")&&(rn(""),kn==null||kn(Xn()))},wt=function(){return At.some(function(Be){return Be.toString()===Lt.toString()})?At:At.concat([Lt]).sort(function(Be,Ge){var ke=Number.isNaN(Number(Be))?0:Number(Be),et=Number.isNaN(Number(Ge))?0:Number(Ge);return ke-et})},Ai="".concat(un,"-options");if(!vt&&!kn)return null;var Kn=null,je=null,Le=null;return vt&&$e&&(Kn=$e({disabled:_t,size:Lt,onSizeChange:function(Be){Nt==null||Nt(Number(Be))},"aria-label":ft.page_size,className:"".concat(Ai,"-size-changer"),options:wt().map(function(we){return{label:Nn(we),value:we}})})),kn&&(ln&&(Le=typeof ln=="boolean"?Ke.createElement("button",{type:"button",onClick:Rn,onKeyUp:Rn,disabled:_t,className:"".concat(Ai,"-quick-jumper-button")},ft.jump_to_confirm):Ke.createElement("span",{onClick:Rn,onKeyUp:Rn},ln)),je=Ke.createElement("div",{className:"".concat(Ai,"-quick-jumper")},ft.jump_to,Ke.createElement("input",{disabled:_t,type:"text",value:Fn,onChange:mi,onKeyUp:Rn,onBlur:Zt,"aria-label":ft.page}),ft.page,Le)),Ke.createElement("li",{className:Ai},Kn,je)},te=ne,de=function(Ye){var Xe=Ye.rootPrefixCls,At=Ye.page,ft=Ye.active,Nt=Ye.className,Lt=Ye.showTitle,ln=Ye.onClick,kn=Ye.onKeyPress,un=Ye.itemRender,_t="".concat(Xe,"-item"),hn=dt()(_t,"".concat(_t,"-").concat(At),(0,ye.Z)((0,ye.Z)({},"".concat(_t,"-active"),ft),"".concat(_t,"-disabled"),!At),Nt),vt=function(){ln(At)},$e=function(Fn){kn(Fn,ln,At)},gn=un(At,"page",Ke.createElement("a",{rel:"nofollow"},At));return gn?Ke.createElement("li",{title:Lt?String(At):null,className:hn,onClick:vt,onKeyDown:$e,tabIndex:0},gn):null},le=de,ge=function(Ye,Xe,At){return At};function me(){}function Se(st){var Ye=Number(st);return typeof Ye=="number"&&!Number.isNaN(Ye)&&isFinite(Ye)&&Math.floor(Ye)===Ye}function be(st,Ye,Xe){var At=typeof st=="undefined"?Ye:st;return Math.floor((Xe-1)/At)+1}var Ie=function(Ye){var Xe=Ye.prefixCls,At=Xe===void 0?"rc-pagination":Xe,ft=Ye.selectPrefixCls,Nt=ft===void 0?"rc-select":ft,Lt=Ye.className,ln=Ye.current,kn=Ye.defaultCurrent,un=kn===void 0?1:kn,_t=Ye.total,hn=_t===void 0?0:_t,vt=Ye.pageSize,$e=Ye.defaultPageSize,gn=$e===void 0?10:$e,ci=Ye.onChange,Fn=ci===void 0?me:ci,rn=Ye.hideOnSinglePage,Xn=Ye.align,Nn=Ye.showPrevNextJumpers,mi=Nn===void 0?!0:Nn,Zt=Ye.showQuickJumper,Rn=Ye.showLessItems,wt=Ye.showTitle,Ai=wt===void 0?!0:wt,Kn=Ye.onShowSizeChange,je=Kn===void 0?me:Kn,Le=Ye.locale,we=Le===void 0?Ht.Z:Le,Be=Ye.style,Ge=Ye.totalBoundaryShowSizeChanger,ke=Ge===void 0?50:Ge,et=Ye.disabled,an=Ye.simple,Bt=Ye.showTotal,Ut=Ye.showSizeChanger,gt=Ut===void 0?hn>ke:Ut,Pt=Ye.sizeChangerRender,Tt=Ye.pageSizeOptions,Yt=Ye.itemRender,dn=Yt===void 0?ge:Yt,On=Ye.jumpPrevIcon,wn=Ye.jumpNextIcon,nn=Ye.prevIcon,jt=Ye.nextIcon,Xt=Ke.useRef(null),pn=(0,Kt.Z)(10,{value:vt,defaultValue:gn}),bn=(0,Mt.Z)(pn,2),Un=bn[0],ti=bn[1],pi=(0,Kt.Z)(1,{value:ln,defaultValue:un,postState:function(Cr){return Math.max(1,Math.min(Cr,be(void 0,Un,hn)))}}),vn=(0,Mt.Z)(pi,2),wi=vn[0],Yi=vn[1],gr=Ke.useState(wi),rr=(0,Mt.Z)(gr,2),tr=rr[0],vr=rr[1];(0,Ke.useEffect)(function(){vr(wi)},[wi]);var hr=Fn!==me,ar="current"in Ye,Xi=Math.max(1,wi-(Rn?3:5)),yr=Math.min(be(void 0,Un,hn),wi+(Rn?3:5));function Ce(bi,Cr){var Nr=bi||Ke.createElement("button",{type:"button","aria-label":Cr,className:"".concat(At,"-item-link")});return typeof bi=="function"&&(Nr=Ke.createElement(bi,(0,Dt.Z)({},Ye))),Nr}function Sn(bi){var Cr=bi.target.value,Nr=be(void 0,Un,hn),to;return Cr===""?to=Cr:Number.isNaN(Number(Cr))?to=tr:Cr>=Nr?to=Nr:to=Number(Cr),to}function Gn(bi){return Se(bi)&&bi!==wi&&Se(hn)&&hn>0}var dr=hn>Un?Zt:!1;function or(bi){(bi.keyCode===Et.Z.UP||bi.keyCode===Et.Z.DOWN)&&bi.preventDefault()}function Ii(bi){var Cr=Sn(bi);switch(Cr!==tr&&vr(Cr),bi.keyCode){case Et.Z.ENTER:Mn(Cr);break;case Et.Z.UP:Mn(Cr-1);break;case Et.Z.DOWN:Mn(Cr+1);break;default:break}}function Tn(bi){Mn(Sn(bi))}function Cn(bi){var Cr=be(bi,Un,hn),Nr=wi>Cr&&Cr!==0?Cr:wi;ti(bi),vr(Nr),je==null||je(wi,bi),Yi(Nr),Fn==null||Fn(Nr,bi)}function Mn(bi){if(Gn(bi)&&!et){var Cr=be(void 0,Un,hn),Nr=bi;return bi>Cr?Nr=Cr:bi<1&&(Nr=1),Nr!==tr&&vr(Nr),Yi(Nr),Fn==null||Fn(Nr,Un),Nr}return wi}var yt=wi>1,xt=wi<be(void 0,Un,hn);function Ct(){yt&&Mn(wi-1)}function Yn(){xt&&Mn(wi+1)}function $n(){Mn(Xi)}function di(){Mn(yr)}function xn(bi,Cr){if(bi.key==="Enter"||bi.charCode===Et.Z.ENTER||bi.keyCode===Et.Z.ENTER){for(var Nr=arguments.length,to=new Array(Nr>2?Nr-2:0),Ur=2;Ur<Nr;Ur++)to[Ur-2]=arguments[Ur];Cr.apply(void 0,to)}}function ai(bi){xn(bi,Ct)}function Pn(bi){xn(bi,Yn)}function zi(bi){xn(bi,$n)}function fr(bi){xn(bi,di)}function Ve(bi){var Cr=dn(bi,"prev",Ce(nn,"prev page"));return Ke.isValidElement(Cr)?Ke.cloneElement(Cr,{disabled:!yt}):Cr}function mt(bi){var Cr=dn(bi,"next",Ce(jt,"next page"));return Ke.isValidElement(Cr)?Ke.cloneElement(Cr,{disabled:!xt}):Cr}function Dn(bi){(bi.type==="click"||bi.keyCode===Et.Z.ENTER)&&Mn(tr)}var An=null,Ot=(0,Me.Z)(Ye,{aria:!0,data:!0}),Bn=Bt&&Ke.createElement("li",{className:"".concat(At,"-total-text")},Bt(hn,[hn===0?0:(wi-1)*Un+1,wi*Un>hn?hn:wi*Un])),Hn=null,_n=be(void 0,Un,hn);if(rn&&hn<=Un)return null;var Ei=[],si={rootPrefixCls:At,onClick:Mn,onKeyPress:xn,showTitle:Ai,itemRender:dn,page:-1},Pi=wi-1>0?wi-1:0,yi=wi+1<_n?wi+1:_n,_i=Zt&&Zt.goButton,Ri=(0,it.Z)(an)==="object"?an.readOnly:!an,Di=_i,sn=null;an&&(_i&&(typeof _i=="boolean"?Di=Ke.createElement("button",{type:"button",onClick:Dn,onKeyUp:Dn},we.jump_to_confirm):Di=Ke.createElement("span",{onClick:Dn,onKeyUp:Dn},_i),Di=Ke.createElement("li",{title:Ai?"".concat(we.jump_to).concat(wi,"/").concat(_n):null,className:"".concat(At,"-simple-pager")},Di)),sn=Ke.createElement("li",{title:Ai?"".concat(wi,"/").concat(_n):null,className:"".concat(At,"-simple-pager")},Ri?tr:Ke.createElement("input",{type:"text","aria-label":we.jump_to,value:tr,disabled:et,onKeyDown:or,onKeyUp:Ii,onChange:Ii,onBlur:Tn,size:3}),Ke.createElement("span",{className:"".concat(At,"-slash")},"/"),_n));var pr=Rn?1:2;if(_n<=3+pr*2){_n||Ei.push(Ke.createElement(le,(0,nt.Z)({},si,{key:"noPager",page:1,className:"".concat(At,"-item-disabled")})));for(var Mr=1;Mr<=_n;Mr+=1)Ei.push(Ke.createElement(le,(0,nt.Z)({},si,{key:Mr,page:Mr,active:wi===Mr})))}else{var Kr=Rn?we.prev_3:we.prev_5,En=Rn?we.next_3:we.next_5,Si=dn(Xi,"jump-prev",Ce(On,"prev page")),Vi=dn(yr,"jump-next",Ce(wn,"next page"));mi&&(An=Si?Ke.createElement("li",{title:Ai?Kr:null,key:"prev",onClick:$n,tabIndex:0,onKeyDown:zi,className:dt()("".concat(At,"-jump-prev"),(0,ye.Z)({},"".concat(At,"-jump-prev-custom-icon"),!!On))},Si):null,Hn=Vi?Ke.createElement("li",{title:Ai?En:null,key:"next",onClick:di,tabIndex:0,onKeyDown:fr,className:dt()("".concat(At,"-jump-next"),(0,ye.Z)({},"".concat(At,"-jump-next-custom-icon"),!!wn))},Vi):null);var Wi=Math.max(1,wi-pr),$i=Math.min(wi+pr,_n);wi-1<=pr&&($i=1+pr*2),_n-wi<=pr&&(Wi=_n-pr*2);for(var Pr=Wi;Pr<=$i;Pr+=1)Ei.push(Ke.createElement(le,(0,nt.Z)({},si,{key:Pr,page:Pr,active:wi===Pr})));if(wi-1>=pr*2&&wi!==3&&(Ei[0]=Ke.cloneElement(Ei[0],{className:dt()("".concat(At,"-item-after-jump-prev"),Ei[0].props.className)}),Ei.unshift(An)),_n-wi>=pr*2&&wi!==_n-2){var br=Ei[Ei.length-1];Ei[Ei.length-1]=Ke.cloneElement(br,{className:dt()("".concat(At,"-item-before-jump-next"),br.props.className)}),Ei.push(Hn)}Wi!==1&&Ei.unshift(Ke.createElement(le,(0,nt.Z)({},si,{key:1,page:1}))),$i!==_n&&Ei.push(Ke.createElement(le,(0,nt.Z)({},si,{key:_n,page:_n})))}var Hi=Ve(Pi);if(Hi){var er=!yt||!_n;Hi=Ke.createElement("li",{title:Ai?we.prev_page:null,onClick:Ct,tabIndex:er?null:0,onKeyDown:ai,className:dt()("".concat(At,"-prev"),(0,ye.Z)({},"".concat(At,"-disabled"),er)),"aria-disabled":er},Hi)}var Gi=mt(yi);if(Gi){var cn,sr;an?(cn=!xt,sr=yt?0:null):(cn=!xt||!_n,sr=cn?null:0),Gi=Ke.createElement("li",{title:Ai?we.next_page:null,onClick:Yn,tabIndex:sr,onKeyDown:Pn,className:dt()("".concat(At,"-next"),(0,ye.Z)({},"".concat(At,"-disabled"),cn)),"aria-disabled":cn},Gi)}var yn=dt()(At,Lt,(0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)((0,ye.Z)({},"".concat(At,"-start"),Xn==="start"),"".concat(At,"-center"),Xn==="center"),"".concat(At,"-end"),Xn==="end"),"".concat(At,"-simple"),an),"".concat(At,"-disabled"),et));return Ke.createElement("ul",(0,nt.Z)({className:yn,style:Be,ref:Xt},Ot),Bn,Hi,an?sn:Ei,Gi,Ke.createElement(te,{locale:we,rootPrefixCls:At,disabled:et,selectPrefixCls:Nt,changeSize:Cn,pageSize:Un,pageSizeOptions:Tt,quickGo:dr?Mn:null,goButton:Di,showSizeChanger:gt,sizeChangerRender:Pt}))},Ze=Ie},48365:function(Jn,gi,De){"use strict";var ye=De(61186),nt=De.n(ye),it=De(90111),Dt=De.n(it),Mt=De(58319),ze=De.n(Mt),dt=De(23250),Kt=De.n(dt),Et=De(74959),Me=De.n(Et),zt=De(10238),Ke=De.n(zt),Ht=De(33656),Ne=De.n(Ht);nt().extend(Ne()),nt().extend(Ke()),nt().extend(Dt()),nt().extend(ze()),nt().extend(Kt()),nt().extend(Me()),nt().extend(function(ge,me){var Se=me.prototype,be=Se.format;Se.format=function(Ze){var st=(Ze||"").replace("Wo","wo");return be.bind(this)(st)}});var ne={bn_BD:"bn-bd",by_BY:"be",en_GB:"en-gb",en_US:"en",fr_BE:"fr",fr_CA:"fr-ca",hy_AM:"hy-am",kmr_IQ:"ku",nl_BE:"nl-be",pt_BR:"pt-br",zh_CN:"zh-cn",zh_HK:"zh-hk",zh_TW:"zh-tw"},te=function(me){var Se=ne[me];return Se||me.split("_")[0]},de=function(){},le={getNow:function(){var me=nt()();return typeof me.tz=="function"?me.tz():me},getFixedDate:function(me){return nt()(me,["YYYY-M-DD","YYYY-MM-DD"])},getEndDate:function(me){return me.endOf("month")},getWeekDay:function(me){var Se=me.locale("en");return Se.weekday()+Se.localeData().firstDayOfWeek()},getYear:function(me){return me.year()},getMonth:function(me){return me.month()},getDate:function(me){return me.date()},getHour:function(me){return me.hour()},getMinute:function(me){return me.minute()},getSecond:function(me){return me.second()},getMillisecond:function(me){return me.millisecond()},addYear:function(me,Se){return me.add(Se,"year")},addMonth:function(me,Se){return me.add(Se,"month")},addDate:function(me,Se){return me.add(Se,"day")},setYear:function(me,Se){return me.year(Se)},setMonth:function(me,Se){return me.month(Se)},setDate:function(me,Se){return me.date(Se)},setHour:function(me,Se){return me.hour(Se)},setMinute:function(me,Se){return me.minute(Se)},setSecond:function(me,Se){return me.second(Se)},setMillisecond:function(me,Se){return me.millisecond(Se)},isAfter:function(me,Se){return me.isAfter(Se)},isValidate:function(me){return me.isValid()},locale:{getWeekFirstDay:function(me){return nt()().locale(te(me)).localeData().firstDayOfWeek()},getWeekFirstDate:function(me,Se){return Se.locale(te(me)).weekday(0)},getWeek:function(me,Se){return Se.locale(te(me)).week()},getShortWeekDays:function(me){return nt()().locale(te(me)).localeData().weekdaysMin()},getShortMonths:function(me){return nt()().locale(te(me)).localeData().monthsShort()},format:function(me,Se,be){return Se.locale(te(me)).format(be)},parse:function(me,Se,be){for(var Ie=te(me),Ze=0;Ze<be.length;Ze+=1){var st=be[Ze],Ye=Se;if(st.includes("wo")||st.includes("Wo")){for(var Xe=Ye.split("-")[0],At=Ye.split("-")[1],ft=nt()(Xe,"YYYY").startOf("year").locale(Ie),Nt=0;Nt<=52;Nt+=1){var Lt=ft.add(Nt,"week");if(Lt.format("Wo")===At)return Lt}return de(),null}var ln=nt()(Ye,st,!0).locale(Ie);if(ln.isValid())return ln}return Se&&de(),null}}};gi.Z=le},8571:function(Jn,gi,De){"use strict";De.d(gi,{Sq:function(){return He},ZP:function(){return li}});var ye=De(5016),nt=De(92393),it=De(20049),Dt=De(52456),Mt=De(70425),ze=De(34280),dt=De(2738),Kt=De(26112),Et=De(48736),Me=De(59301),zt=De(18082),Ke=De(65352),Ht=De(92310),Ne=De.n(Ht);function ne(Ee,Ue){return Ee!==void 0?Ee:Ue?"bottomRight":"bottomLeft"}var te=Me.createContext(null),de=te,le={bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:1,adjustY:1}},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:0,adjustY:1}}};function ge(Ee){var Ue=Ee.popupElement,Re=Ee.popupStyle,ot=Ee.popupClassName,lt=Ee.popupAlign,Wt=Ee.transitionName,Vt=Ee.getPopupContainer,tn=Ee.children,Ln=Ee.range,Wn=Ee.placement,mn=Ee.builtinPlacements,ei=mn===void 0?le:mn,fi=Ee.direction,ut=Ee.visible,Qn=Ee.onClose,ri=Me.useContext(de),jn=ri.prefixCls,oi="".concat(jn,"-dropdown"),xi=ne(Wn,fi==="rtl");return Me.createElement(Ke.Z,{showAction:[],hideAction:["click"],popupPlacement:xi,builtinPlacements:ei,prefixCls:oi,popupTransitionName:Wt,popup:Ue,popupAlign:lt,popupVisible:ut,popupClassName:Ne()(ot,(0,zt.Z)((0,zt.Z)({},"".concat(oi,"-range"),Ln),"".concat(oi,"-rtl"),fi==="rtl")),popupStyle:Re,stretch:"minWidth",getPopupContainer:Vt,onPopupVisibleChange:function(ki){ki||Qn()}},tn)}var me=ge;function Se(Ee,Ue){for(var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:"0",ot=String(Ee);ot.length<Ue;)ot="".concat(Re).concat(ot);return ot}function be(Ee){return Ee==null?[]:Array.isArray(Ee)?Ee:[Ee]}function Ie(Ee,Ue,Re){var ot=(0,nt.Z)(Ee);return ot[Ue]=Re,ot}function Ze(Ee,Ue){var Re={},ot=Ue||Object.keys(Ee);return ot.forEach(function(lt){Ee[lt]!==void 0&&(Re[lt]=Ee[lt])}),Re}function st(Ee,Ue,Re){if(Re)return Re;switch(Ee){case"time":return Ue.fieldTimeFormat;case"datetime":return Ue.fieldDateTimeFormat;case"month":return Ue.fieldMonthFormat;case"year":return Ue.fieldYearFormat;case"quarter":return Ue.fieldQuarterFormat;case"week":return Ue.fieldWeekFormat;default:return Ue.fieldDateFormat}}function Ye(Ee,Ue,Re){var ot=Re!==void 0?Re:Ue[Ue.length-1],lt=Ue.find(function(Wt){return Ee[Wt]});return ot!==lt?Ee[lt]:void 0}function Xe(Ee){return Ze(Ee,["placement","builtinPlacements","popupAlign","getPopupContainer","transitionName","direction"])}function At(Ee,Ue,Re,ot){var lt=Me.useMemo(function(){return Ee||function(Vt,tn){var Ln=Vt;return Ue&&tn.type==="date"?Ue(Ln,tn.today):Re&&tn.type==="month"?Re(Ln,tn.locale):tn.originNode}},[Ee,Re,Ue]),Wt=Me.useCallback(function(Vt,tn){return lt(Vt,(0,it.Z)((0,it.Z)({},tn),{},{range:ot}))},[lt,ot]);return Wt}function ft(Ee,Ue){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ot=Me.useState([!1,!1]),lt=(0,Dt.Z)(ot,2),Wt=lt[0],Vt=lt[1],tn=function(mn,ei){Vt(function(fi){return Ie(fi,ei,mn)})},Ln=Me.useMemo(function(){return Wt.map(function(Wn,mn){if(Wn)return!0;var ei=Ee[mn];return ei?!!(!Re[mn]&&!ei||ei&&Ue(ei,{activeIndex:mn})):!1})},[Ee,Wt,Ue,Re]);return[Ln,tn]}function Nt(Ee,Ue,Re,ot,lt){var Wt="",Vt=[];return Ee&&Vt.push(lt?"hh":"HH"),Ue&&Vt.push("mm"),Re&&Vt.push("ss"),Wt=Vt.join(":"),ot&&(Wt+=".SSS"),lt&&(Wt+=" A"),Wt}function Lt(Ee,Ue,Re,ot,lt,Wt){var Vt=Ee.fieldDateTimeFormat,tn=Ee.fieldDateFormat,Ln=Ee.fieldTimeFormat,Wn=Ee.fieldMonthFormat,mn=Ee.fieldYearFormat,ei=Ee.fieldWeekFormat,fi=Ee.fieldQuarterFormat,ut=Ee.yearFormat,Qn=Ee.cellYearFormat,ri=Ee.cellQuarterFormat,jn=Ee.dayFormat,oi=Ee.cellDateFormat,xi=Nt(Ue,Re,ot,lt,Wt);return(0,it.Z)((0,it.Z)({},Ee),{},{fieldDateTimeFormat:Vt||"YYYY-MM-DD ".concat(xi),fieldDateFormat:tn||"YYYY-MM-DD",fieldTimeFormat:Ln||xi,fieldMonthFormat:Wn||"YYYY-MM",fieldYearFormat:mn||"YYYY",fieldWeekFormat:ei||"gggg-wo",fieldQuarterFormat:fi||"YYYY-[Q]Q",yearFormat:ut||"YYYY",cellYearFormat:Qn||"YYYY",cellQuarterFormat:ri||"[Q]Q",cellDateFormat:oi||jn||"D"})}function ln(Ee,Ue){var Re=Ue.showHour,ot=Ue.showMinute,lt=Ue.showSecond,Wt=Ue.showMillisecond,Vt=Ue.use12Hours;return Me.useMemo(function(){return Lt(Ee,Re,ot,lt,Wt,Vt)},[Ee,Re,ot,lt,Wt,Vt])}var kn=De(10928);function un(Ee,Ue,Re){return Re!=null?Re:Ue.some(function(ot){return Ee.includes(ot)})}var _t=["showNow","showHour","showMinute","showSecond","showMillisecond","use12Hours","hourStep","minuteStep","secondStep","millisecondStep","hideDisabledOptions","defaultValue","disabledHours","disabledMinutes","disabledSeconds","disabledMilliseconds","disabledTime","changeOnScroll","defaultOpenValue"];function hn(Ee){var Ue=Ze(Ee,_t),Re=Ee.format,ot=Ee.picker,lt=null;return Re&&(lt=Re,Array.isArray(lt)&&(lt=lt[0]),lt=(0,kn.Z)(lt)==="object"?lt.format:lt),ot==="time"&&(Ue.format=lt),[Ue,lt]}function vt(Ee){return Ee&&typeof Ee=="string"}function $e(Ee,Ue,Re,ot){return[Ee,Ue,Re,ot].some(function(lt){return lt!==void 0})}function gn(Ee,Ue,Re,ot,lt){var Wt=Ue,Vt=Re,tn=ot;if(!Ee&&!Wt&&!Vt&&!tn&&!lt)Wt=!0,Vt=!0,tn=!0;else if(Ee){var Ln,Wn,mn,ei=[Wt,Vt,tn].some(function(Qn){return Qn===!1}),fi=[Wt,Vt,tn].some(function(Qn){return Qn===!0}),ut=ei?!0:!fi;Wt=(Ln=Wt)!==null&&Ln!==void 0?Ln:ut,Vt=(Wn=Vt)!==null&&Wn!==void 0?Wn:ut,tn=(mn=tn)!==null&&mn!==void 0?mn:ut}return[Wt,Vt,tn,lt]}function ci(Ee){var Ue=Ee.showTime,Re=hn(Ee),ot=(0,Dt.Z)(Re,2),lt=ot[0],Wt=ot[1],Vt=Ue&&(0,kn.Z)(Ue)==="object"?Ue:{},tn=(0,it.Z)((0,it.Z)({defaultOpenValue:Vt.defaultOpenValue||Vt.defaultValue},lt),Vt),Ln=tn.showMillisecond,Wn=tn.showHour,mn=tn.showMinute,ei=tn.showSecond,fi=$e(Wn,mn,ei,Ln),ut=gn(fi,Wn,mn,ei,Ln),Qn=(0,Dt.Z)(ut,3);return Wn=Qn[0],mn=Qn[1],ei=Qn[2],[tn,(0,it.Z)((0,it.Z)({},tn),{},{showHour:Wn,showMinute:mn,showSecond:ei,showMillisecond:Ln}),tn.format,Wt]}function Fn(Ee,Ue,Re,ot,lt){var Wt=Ee==="time";if(Ee==="datetime"||Wt){for(var Vt=ot,tn=st(Ee,lt,null),Ln=tn,Wn=[Ue,Re],mn=0;mn<Wn.length;mn+=1){var ei=be(Wn[mn])[0];if(vt(ei)){Ln=ei;break}}var fi=Vt.showHour,ut=Vt.showMinute,Qn=Vt.showSecond,ri=Vt.showMillisecond,jn=Vt.use12Hours,oi=un(Ln,["a","A","LT","LLL","LTS"],jn),xi=$e(fi,ut,Qn,ri);xi||(fi=un(Ln,["H","h","k","LT","LLL"]),ut=un(Ln,["m","LT","LLL"]),Qn=un(Ln,["s","LTS"]),ri=un(Ln,["SSS"]));var Ni=gn(xi,fi,ut,Qn,ri),ki=(0,Dt.Z)(Ni,3);fi=ki[0],ut=ki[1],Qn=ki[2];var Bi=Ue||Nt(fi,ut,Qn,ri,oi);return(0,it.Z)((0,it.Z)({},Vt),{},{format:Bi,showHour:fi,showMinute:ut,showSecond:Qn,showMillisecond:ri,use12Hours:oi})}return null}function rn(Ee,Ue,Re){if(Ue===!1)return null;var ot=Ue&&(0,kn.Z)(Ue)==="object"?Ue:{};return ot.clearIcon||Re||Me.createElement("span",{className:"".concat(Ee,"-clear-btn")})}var Xn=7;function Nn(Ee,Ue,Re){return!Ee&&!Ue||Ee===Ue?!0:!Ee||!Ue?!1:Re()}function mi(Ee,Ue,Re){return Nn(Ue,Re,function(){var ot=Math.floor(Ee.getYear(Ue)/10),lt=Math.floor(Ee.getYear(Re)/10);return ot===lt})}function Zt(Ee,Ue,Re){return Nn(Ue,Re,function(){return Ee.getYear(Ue)===Ee.getYear(Re)})}function Rn(Ee,Ue){var Re=Math.floor(Ee.getMonth(Ue)/3);return Re+1}function wt(Ee,Ue,Re){return Nn(Ue,Re,function(){return Zt(Ee,Ue,Re)&&Rn(Ee,Ue)===Rn(Ee,Re)})}function Ai(Ee,Ue,Re){return Nn(Ue,Re,function(){return Zt(Ee,Ue,Re)&&Ee.getMonth(Ue)===Ee.getMonth(Re)})}function Kn(Ee,Ue,Re){return Nn(Ue,Re,function(){return Zt(Ee,Ue,Re)&&Ai(Ee,Ue,Re)&&Ee.getDate(Ue)===Ee.getDate(Re)})}function je(Ee,Ue,Re){return Nn(Ue,Re,function(){return Ee.getHour(Ue)===Ee.getHour(Re)&&Ee.getMinute(Ue)===Ee.getMinute(Re)&&Ee.getSecond(Ue)===Ee.getSecond(Re)})}function Le(Ee,Ue,Re){return Nn(Ue,Re,function(){return Kn(Ee,Ue,Re)&&je(Ee,Ue,Re)&&Ee.getMillisecond(Ue)===Ee.getMillisecond(Re)})}function we(Ee,Ue,Re,ot){return Nn(Re,ot,function(){var lt=Ee.locale.getWeekFirstDate(Ue,Re),Wt=Ee.locale.getWeekFirstDate(Ue,ot);return Zt(Ee,lt,Wt)&&Ee.locale.getWeek(Ue,Re)===Ee.locale.getWeek(Ue,ot)})}function Be(Ee,Ue,Re,ot,lt){switch(lt){case"date":return Kn(Ee,Re,ot);case"week":return we(Ee,Ue.locale,Re,ot);case"month":return Ai(Ee,Re,ot);case"quarter":return wt(Ee,Re,ot);case"year":return Zt(Ee,Re,ot);case"decade":return mi(Ee,Re,ot);case"time":return je(Ee,Re,ot);default:return Le(Ee,Re,ot)}}function Ge(Ee,Ue,Re,ot){return!Ue||!Re||!ot?!1:Ee.isAfter(ot,Ue)&&Ee.isAfter(Re,ot)}function ke(Ee,Ue,Re,ot,lt){return Be(Ee,Ue,Re,ot,lt)?!0:Ee.isAfter(Re,ot)}function et(Ee,Ue,Re){var ot=Ue.locale.getWeekFirstDay(Ee),lt=Ue.setDate(Re,1),Wt=Ue.getWeekDay(lt),Vt=Ue.addDate(lt,ot-Wt);return Ue.getMonth(Vt)===Ue.getMonth(Re)&&Ue.getDate(Vt)>1&&(Vt=Ue.addDate(Vt,-7)),Vt}function an(Ee,Ue){var Re=Ue.generateConfig,ot=Ue.locale,lt=Ue.format;return Ee?typeof lt=="function"?lt(Ee):Re.locale.format(ot.locale,Ee,lt):""}function Bt(Ee,Ue,Re){var ot=Ue,lt=["getHour","getMinute","getSecond","getMillisecond"],Wt=["setHour","setMinute","setSecond","setMillisecond"];return Wt.forEach(function(Vt,tn){Re?ot=Ee[Vt](ot,Ee[lt[tn]](Re)):ot=Ee[Vt](ot,0)}),ot}function Ut(Ee,Ue,Re,ot,lt){var Wt=(0,Mt.zX)(function(Vt,tn){return!!(Re&&Re(Vt,tn)||ot&&Ee.isAfter(ot,Vt)&&!Be(Ee,Ue,ot,Vt,tn.type)||lt&&Ee.isAfter(Vt,lt)&&!Be(Ee,Ue,lt,Vt,tn.type))});return Wt}function gt(Ee,Ue,Re){return Me.useMemo(function(){var ot=st(Ee,Ue,Re),lt=be(ot),Wt=lt[0],Vt=(0,kn.Z)(Wt)==="object"&&Wt.type==="mask"?Wt.format:null;return[lt.map(function(tn){return typeof tn=="string"||typeof tn=="function"?tn:tn.format}),Vt]},[Ee,Ue,Re])}function Pt(Ee,Ue,Re){return typeof Ee[0]=="function"||Re?!0:Ue}function Tt(Ee,Ue,Re,ot){var lt=(0,Mt.zX)(function(Wt,Vt){var tn=(0,it.Z)({type:Ue},Vt);if(delete tn.activeIndex,!Ee.isValidate(Wt)||Re&&Re(Wt,tn))return!0;if((Ue==="date"||Ue==="time")&&ot){var Ln,Wn=Vt&&Vt.activeIndex===1?"end":"start",mn=((Ln=ot.disabledTime)===null||Ln===void 0?void 0:Ln.call(ot,Wt,Wn,{from:tn.from}))||{},ei=mn.disabledHours,fi=mn.disabledMinutes,ut=mn.disabledSeconds,Qn=mn.disabledMilliseconds,ri=ot.disabledHours,jn=ot.disabledMinutes,oi=ot.disabledSeconds,xi=ei||ri,Ni=fi||jn,ki=ut||oi,Bi=Ee.getHour(Wt),Oi=Ee.getMinute(Wt),cr=Ee.getSecond(Wt),kr=Ee.getMillisecond(Wt);if(xi&&xi().includes(Bi)||Ni&&Ni(Bi).includes(Oi)||ki&&ki(Bi,Oi).includes(cr)||Qn&&Qn(Bi,Oi,cr).includes(kr))return!0}return!1});return lt}function Yt(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Re=Me.useMemo(function(){var ot=Ee&&be(Ee);return Ue&&ot&&(ot[1]=ot[1]||ot[0]),ot},[Ee,Ue]);return Re}function dn(Ee,Ue){var Re=Ee.generateConfig,ot=Ee.locale,lt=Ee.picker,Wt=lt===void 0?"date":lt,Vt=Ee.prefixCls,tn=Vt===void 0?"rc-picker":Vt,Ln=Ee.styles,Wn=Ln===void 0?{}:Ln,mn=Ee.classNames,ei=mn===void 0?{}:mn,fi=Ee.order,ut=fi===void 0?!0:fi,Qn=Ee.components,ri=Qn===void 0?{}:Qn,jn=Ee.inputRender,oi=Ee.allowClear,xi=Ee.clearIcon,Ni=Ee.needConfirm,ki=Ee.multiple,Bi=Ee.format,Oi=Ee.inputReadOnly,cr=Ee.disabledDate,kr=Ee.minDate,Hr=Ee.maxDate,Zr=Ee.showTime,Fi=Ee.value,Fr=Ee.defaultValue,Er=Ee.pickerValue,Rr=Ee.defaultPickerValue,xr=Yt(Fi),jr=Yt(Fr),ii=Yt(Er),Zi=Yt(Rr),Ji=Wt==="date"&&Zr?"datetime":Wt,lr=Ji==="time"||Ji==="datetime",Qi=lr||ki,nr=Ni!=null?Ni:lr,Mi=ci(Ee),zr=(0,Dt.Z)(Mi,4),Yr=zr[0],Qr=zr[1],Ar=zr[2],eo=zr[3],Xr=ln(ot,Qr),_r=Me.useMemo(function(){return Fn(Ji,Ar,eo,Yr,Xr)},[Ji,Ar,eo,Yr,Xr]),fo=Me.useMemo(function(){return(0,it.Z)((0,it.Z)({},Ee),{},{prefixCls:tn,locale:Xr,picker:Wt,styles:Wn,classNames:ei,order:ut,components:(0,it.Z)({input:jn},ri),clearIcon:rn(tn,oi,xi),showTime:_r,value:xr,defaultValue:jr,pickerValue:ii,defaultPickerValue:Zi},Ue==null?void 0:Ue())},[Ee]),mo=gt(Ji,Xr,Bi),Bo=(0,Dt.Z)(mo,2),so=Bo[0],ia=Bo[1],po=Pt(so,Oi,ki),Jo=Ut(Re,ot,cr,kr,Hr),Po=Tt(Re,Wt,Jo,_r),Vo=Me.useMemo(function(){return(0,it.Z)((0,it.Z)({},fo),{},{needConfirm:nr,inputReadOnly:po,disabledDate:Jo})},[fo,nr,po,Jo]);return[Vo,Ji,Qi,so,ia,Po]}var On=De(16089);function wn(Ee,Ue,Re){var ot=(0,Mt.C8)(Ue,{value:Ee}),lt=(0,Dt.Z)(ot,2),Wt=lt[0],Vt=lt[1],tn=Me.useRef(Ee),Ln=Me.useRef(),Wn=function(){On.Z.cancel(Ln.current)},mn=(0,Mt.zX)(function(){Vt(tn.current),Re&&Wt!==tn.current&&Re(tn.current)}),ei=(0,Mt.zX)(function(fi,ut){Wn(),tn.current=fi,fi||ut?mn():Ln.current=(0,On.Z)(mn)});return Me.useEffect(function(){return Wn},[]),[Wt,ei]}function nn(Ee,Ue){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:[],ot=arguments.length>3?arguments[3]:void 0,lt=Re.every(function(mn){return mn})?!1:Ee,Wt=wn(lt,Ue||!1,ot),Vt=(0,Dt.Z)(Wt,2),tn=Vt[0],Ln=Vt[1];function Wn(mn){var ei=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};(!ei.inherit||tn)&&Ln(mn,ei.force)}return[tn,Wn]}function jt(Ee){var Ue=Me.useRef();return Me.useImperativeHandle(Ee,function(){var Re;return{nativeElement:(Re=Ue.current)===null||Re===void 0?void 0:Re.nativeElement,focus:function(lt){var Wt;(Wt=Ue.current)===null||Wt===void 0||Wt.focus(lt)},blur:function(){var lt;(lt=Ue.current)===null||lt===void 0||lt.blur()}}}),Ue}function Xt(Ee,Ue){return Me.useMemo(function(){return Ee||(Ue?((0,Et.ZP)(!1,"`ranges` is deprecated. Please use `presets` instead."),Object.entries(Ue).map(function(Re){var ot=(0,Dt.Z)(Re,2),lt=ot[0],Wt=ot[1];return{label:lt,value:Wt}})):[])},[Ee,Ue])}function pn(Ee,Ue){var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ot=Me.useRef(Ue);ot.current=Ue,(0,ze.o)(function(){if(Ee)ot.current(Ee);else{var lt=(0,On.Z)(function(){ot.current(Ee)},Re);return function(){On.Z.cancel(lt)}}},[Ee])}function bn(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,ot=Me.useState(0),lt=(0,Dt.Z)(ot,2),Wt=lt[0],Vt=lt[1],tn=Me.useState(!1),Ln=(0,Dt.Z)(tn,2),Wn=Ln[0],mn=Ln[1],ei=Me.useRef([]),fi=Me.useRef(null),ut=Me.useRef(null),Qn=function(ki){fi.current=ki},ri=function(ki){return fi.current===ki},jn=function(ki){mn(ki)},oi=function(ki){return ki&&(ut.current=ki),ut.current},xi=function(ki){var Bi=ei.current,Oi=new Set(Bi.filter(function(kr){return ki[kr]||Ue[kr]})),cr=Bi[Bi.length-1]===0?1:0;return Oi.size>=2||Ee[cr]?null:cr};return pn(Wn||Re,function(){Wn||(ei.current=[],Qn(null))}),Me.useEffect(function(){Wn&&ei.current.push(Wt)},[Wn,Wt]),[Wn,jn,oi,Wt,Vt,xi,ei.current,Qn,ri]}function Un(Ee,Ue,Re,ot,lt,Wt){var Vt=Re[Re.length-1],tn=function(Wn,mn){var ei=(0,Dt.Z)(Ee,2),fi=ei[0],ut=ei[1],Qn=(0,it.Z)((0,it.Z)({},mn),{},{from:Ye(Ee,Re)});return Vt===1&&Ue[0]&&fi&&!Be(ot,lt,fi,Wn,Qn.type)&&ot.isAfter(fi,Wn)||Vt===0&&Ue[1]&&ut&&!Be(ot,lt,ut,Wn,Qn.type)&&ot.isAfter(Wn,ut)?!0:Wt==null?void 0:Wt(Wn,Qn)};return tn}function ti(Ee,Ue,Re,ot){switch(Ue){case"date":case"week":return Ee.addMonth(Re,ot);case"month":case"quarter":return Ee.addYear(Re,ot);case"year":return Ee.addYear(Re,ot*10);case"decade":return Ee.addYear(Re,ot*100);default:return Re}}var pi=[];function vn(Ee,Ue,Re,ot,lt,Wt,Vt,tn){var Ln=arguments.length>8&&arguments[8]!==void 0?arguments[8]:pi,Wn=arguments.length>9&&arguments[9]!==void 0?arguments[9]:pi,mn=arguments.length>10&&arguments[10]!==void 0?arguments[10]:pi,ei=arguments.length>11?arguments[11]:void 0,fi=arguments.length>12?arguments[12]:void 0,ut=arguments.length>13?arguments[13]:void 0,Qn=Vt==="time",ri=Wt||0,jn=function(ii){var Zi=Ee.getNow();return Qn&&(Zi=Bt(Ee,Zi)),Ln[ii]||Re[ii]||Zi},oi=(0,Dt.Z)(Wn,2),xi=oi[0],Ni=oi[1],ki=(0,Mt.C8)(function(){return jn(0)},{value:xi}),Bi=(0,Dt.Z)(ki,2),Oi=Bi[0],cr=Bi[1],kr=(0,Mt.C8)(function(){return jn(1)},{value:Ni}),Hr=(0,Dt.Z)(kr,2),Zr=Hr[0],Fi=Hr[1],Fr=Me.useMemo(function(){var jr=[Oi,Zr][ri];return Qn?jr:Bt(Ee,jr,mn[ri])},[Qn,Oi,Zr,ri,Ee,mn]),Er=function(ii){var Zi=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"panel",Ji=[cr,Fi][ri];Ji(ii);var lr=[Oi,Zr];lr[ri]=ii,ei&&(!Be(Ee,Ue,Oi,lr[0],Vt)||!Be(Ee,Ue,Zr,lr[1],Vt))&&ei(lr,{source:Zi,range:ri===1?"end":"start",mode:ot})},Rr=function(ii,Zi){if(tn){var Ji={date:"month",week:"month",month:"year",quarter:"year"},lr=Ji[Vt];if(lr&&!Be(Ee,Ue,ii,Zi,lr))return ti(Ee,Vt,Zi,-1);if(Vt==="year"&&ii){var Qi=Math.floor(Ee.getYear(ii)/10),nr=Math.floor(Ee.getYear(Zi)/10);if(Qi!==nr)return ti(Ee,Vt,Zi,-1)}}return Zi},xr=Me.useRef(null);return(0,ze.Z)(function(){if(lt&&!Ln[ri]){var jr=Qn?null:Ee.getNow();if(xr.current!==null&&xr.current!==ri?jr=[Oi,Zr][ri^1]:Re[ri]?jr=ri===0?Re[0]:Rr(Re[0],Re[1]):Re[ri^1]&&(jr=Re[ri^1]),jr){fi&&Ee.isAfter(fi,jr)&&(jr=fi);var ii=tn?ti(Ee,Vt,jr,1):jr;ut&&Ee.isAfter(ii,ut)&&(jr=tn?ti(Ee,Vt,ut,-1):ut),Er(jr,"reset")}}},[lt,ri,Re[ri]]),Me.useEffect(function(){lt?xr.current=ri:xr.current=null},[lt,ri]),(0,ze.Z)(function(){lt&&Ln&&Ln[ri]&&Er(Ln[ri],"reset")},[lt,ri]),[Fr,Er]}function wi(Ee,Ue){var Re=Me.useRef(Ee),ot=Me.useState({}),lt=(0,Dt.Z)(ot,2),Wt=lt[1],Vt=function(Wn){return Wn&&Ue!==void 0?Ue:Re.current},tn=function(Wn){Re.current=Wn,Wt({})};return[Vt,tn,Vt(!0)]}var Yi=[];function gr(Ee,Ue,Re){var ot=function(Vt){return Vt.map(function(tn){return an(tn,{generateConfig:Ee,locale:Ue,format:Re[0]})})},lt=function(Vt,tn){for(var Ln=Math.max(Vt.length,tn.length),Wn=-1,mn=0;mn<Ln;mn+=1){var ei=Vt[mn]||null,fi=tn[mn]||null;if(ei!==fi&&!Le(Ee,ei,fi)){Wn=mn;break}}return[Wn<0,Wn!==0]};return[ot,lt]}function rr(Ee,Ue){return(0,nt.Z)(Ee).sort(function(Re,ot){return Ue.isAfter(Re,ot)?1:-1})}function tr(Ee){var Ue=wi(Ee),Re=(0,Dt.Z)(Ue,2),ot=Re[0],lt=Re[1],Wt=(0,Mt.zX)(function(){lt(Ee)});return Me.useEffect(function(){Wt()},[Ee]),[ot,lt]}function vr(Ee,Ue,Re,ot,lt,Wt,Vt,tn,Ln){var Wn=(0,Mt.C8)(Wt,{value:Vt}),mn=(0,Dt.Z)(Wn,2),ei=mn[0],fi=mn[1],ut=ei||Yi,Qn=tr(ut),ri=(0,Dt.Z)(Qn,2),jn=ri[0],oi=ri[1],xi=gr(Ee,Ue,Re),Ni=(0,Dt.Z)(xi,2),ki=Ni[0],Bi=Ni[1],Oi=(0,Mt.zX)(function(kr){var Hr=(0,nt.Z)(kr);if(ot)for(var Zr=0;Zr<2;Zr+=1)Hr[Zr]=Hr[Zr]||null;else lt&&(Hr=rr(Hr.filter(function(jr){return jr}),Ee));var Fi=Bi(jn(),Hr),Fr=(0,Dt.Z)(Fi,2),Er=Fr[0],Rr=Fr[1];if(!Er&&(oi(Hr),tn)){var xr=ki(Hr);tn(Hr,xr,{range:Rr?"end":"start"})}}),cr=function(){Ln&&Ln(jn())};return[ut,fi,jn,Oi,cr]}function hr(Ee,Ue,Re,ot,lt,Wt,Vt,tn,Ln,Wn){var mn=Ee.generateConfig,ei=Ee.locale,fi=Ee.picker,ut=Ee.onChange,Qn=Ee.allowEmpty,ri=Ee.order,jn=Wt.some(function(Er){return Er})?!1:ri,oi=gr(mn,ei,Vt),xi=(0,Dt.Z)(oi,2),Ni=xi[0],ki=xi[1],Bi=wi(Ue),Oi=(0,Dt.Z)(Bi,2),cr=Oi[0],kr=Oi[1],Hr=(0,Mt.zX)(function(){kr(Ue)});Me.useEffect(function(){Hr()},[Ue]);var Zr=(0,Mt.zX)(function(Er){var Rr=Er===null,xr=(0,nt.Z)(Er||cr());if(Rr)for(var jr=Math.max(Wt.length,xr.length),ii=0;ii<jr;ii+=1)Wt[ii]||(xr[ii]=null);jn&&xr[0]&&xr[1]&&(xr=rr(xr,mn)),lt(xr);var Zi=xr,Ji=(0,Dt.Z)(Zi,2),lr=Ji[0],Qi=Ji[1],nr=!lr,Mi=!Qi,zr=Qn?(!nr||Qn[0])&&(!Mi||Qn[1]):!0,Yr=!ri||nr||Mi||Be(mn,ei,lr,Qi,fi)||mn.isAfter(Qi,lr),Qr=(Wt[0]||!lr||!Wn(lr,{activeIndex:0}))&&(Wt[1]||!Qi||!Wn(Qi,{from:lr,activeIndex:1})),Ar=Rr||zr&&Yr&&Qr;if(Ar){Re(xr);var eo=ki(xr,Ue),Xr=(0,Dt.Z)(eo,1),_r=Xr[0];ut&&!_r&&ut(Rr&&xr.every(function(fo){return!fo})?null:xr,Ni(xr))}return Ar}),Fi=(0,Mt.zX)(function(Er,Rr){var xr=Ie(cr(),Er,ot()[Er]);kr(xr),Rr&&Zr()}),Fr=!tn&&!Ln;return pn(!Fr,function(){Fr&&(Zr(),lt(Ue),Hr())},2),[Fi,Zr]}function ar(Ee,Ue,Re,ot,lt){return Ue!=="date"&&Ue!=="time"?!1:Re!==void 0?Re:ot!==void 0?ot:!lt&&(Ee==="date"||Ee==="time")}var Xi=De(29301);function yr(Ee,Ue,Re,ot,lt,Wt){var Vt=Ee;function tn(ei,fi,ut){var Qn=Wt[ei](Vt),ri=ut.find(function(Ni){return Ni.value===Qn});if(!ri||ri.disabled){var jn=ut.filter(function(Ni){return!Ni.disabled}),oi=(0,nt.Z)(jn).reverse(),xi=oi.find(function(Ni){return Ni.value<=Qn})||jn[0];xi&&(Qn=xi.value,Vt=Wt[fi](Vt,Qn))}return Qn}var Ln=tn("getHour","setHour",Ue()),Wn=tn("getMinute","setMinute",Re(Ln)),mn=tn("getSecond","setSecond",ot(Ln,Wn));return tn("getMillisecond","setMillisecond",lt(Ln,Wn,mn)),Vt}function Ce(){return[]}function Sn(Ee,Ue){for(var Re=arguments.length>2&&arguments[2]!==void 0?arguments[2]:1,ot=arguments.length>3&&arguments[3]!==void 0?arguments[3]:!1,lt=arguments.length>4&&arguments[4]!==void 0?arguments[4]:[],Wt=arguments.length>5&&arguments[5]!==void 0?arguments[5]:2,Vt=[],tn=Re>=1?Re|0:1,Ln=Ee;Ln<=Ue;Ln+=tn){var Wn=lt.includes(Ln);(!Wn||!ot)&&Vt.push({label:Se(Ln,Wt),value:Ln,disabled:Wn})}return Vt}function Gn(Ee){var Ue=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Re=arguments.length>2?arguments[2]:void 0,ot=Ue||{},lt=ot.use12Hours,Wt=ot.hourStep,Vt=Wt===void 0?1:Wt,tn=ot.minuteStep,Ln=tn===void 0?1:tn,Wn=ot.secondStep,mn=Wn===void 0?1:Wn,ei=ot.millisecondStep,fi=ei===void 0?100:ei,ut=ot.hideDisabledOptions,Qn=ot.disabledTime,ri=ot.disabledHours,jn=ot.disabledMinutes,oi=ot.disabledSeconds,xi=Me.useMemo(function(){return Re||Ee.getNow()},[Re,Ee]);if(0)var Ni,ki,Bi;var Oi=Me.useCallback(function(Qi){var nr=(Qn==null?void 0:Qn(Qi))||{};return[nr.disabledHours||ri||Ce,nr.disabledMinutes||jn||Ce,nr.disabledSeconds||oi||Ce,nr.disabledMilliseconds||Ce]},[Qn,ri,jn,oi]),cr=Me.useMemo(function(){return Oi(xi)},[xi,Oi]),kr=(0,Dt.Z)(cr,4),Hr=kr[0],Zr=kr[1],Fi=kr[2],Fr=kr[3],Er=Me.useCallback(function(Qi,nr,Mi,zr){var Yr=Sn(0,23,Vt,ut,Qi()),Qr=lt?Yr.map(function(_r){return(0,it.Z)((0,it.Z)({},_r),{},{label:Se(_r.value%12||12,2)})}):Yr,Ar=function(fo){return Sn(0,59,Ln,ut,nr(fo))},eo=function(fo,mo){return Sn(0,59,mn,ut,Mi(fo,mo))},Xr=function(fo,mo,Bo){return Sn(0,999,fi,ut,zr(fo,mo,Bo),3)};return[Qr,Ar,eo,Xr]},[ut,Vt,lt,fi,Ln,mn]),Rr=Me.useMemo(function(){return Er(Hr,Zr,Fi,Fr)},[Er,Hr,Zr,Fi,Fr]),xr=(0,Dt.Z)(Rr,4),jr=xr[0],ii=xr[1],Zi=xr[2],Ji=xr[3],lr=function(nr,Mi){var zr=function(){return jr},Yr=ii,Qr=Zi,Ar=Ji;if(Mi){var eo=Oi(Mi),Xr=(0,Dt.Z)(eo,4),_r=Xr[0],fo=Xr[1],mo=Xr[2],Bo=Xr[3],so=Er(_r,fo,mo,Bo),ia=(0,Dt.Z)(so,4),po=ia[0],Jo=ia[1],Po=ia[2],Vo=ia[3];zr=function(){return po},Yr=Jo,Qr=Po,Ar=Vo}var Go=yr(nr,zr,Yr,Qr,Ar,Ee);return Go};return[lr,jr,ii,Zi,Ji]}function dr(Ee){var Ue=Ee.mode,Re=Ee.internalMode,ot=Ee.renderExtraFooter,lt=Ee.showNow,Wt=Ee.showTime,Vt=Ee.onSubmit,tn=Ee.onNow,Ln=Ee.invalid,Wn=Ee.needConfirm,mn=Ee.generateConfig,ei=Ee.disabledDate,fi=Me.useContext(de),ut=fi.prefixCls,Qn=fi.locale,ri=fi.button,jn=ri===void 0?"button":ri,oi=mn.getNow(),xi=Gn(mn,Wt,oi),Ni=(0,Dt.Z)(xi,1),ki=Ni[0],Bi=ot==null?void 0:ot(Ue),Oi=ei(oi,{type:Ue}),cr=function(){if(!Oi){var Rr=ki(oi);tn(Rr)}},kr="".concat(ut,"-now"),Hr="".concat(kr,"-btn"),Zr=lt&&Me.createElement("li",{className:kr},Me.createElement("a",{className:Ne()(Hr,Oi&&"".concat(Hr,"-disabled")),"aria-disabled":Oi,onClick:cr},Re==="date"?Qn.today:Qn.now)),Fi=Wn&&Me.createElement("li",{className:"".concat(ut,"-ok")},Me.createElement(jn,{disabled:Ln,onClick:Vt},Qn.ok)),Fr=(Zr||Fi)&&Me.createElement("ul",{className:"".concat(ut,"-ranges")},Zr,Fi);return!Bi&&!Fr?null:Me.createElement("div",{className:"".concat(ut,"-footer")},Bi&&Me.createElement("div",{className:"".concat(ut,"-footer-extra")},Bi),Fr)}function or(Ee,Ue,Re){function ot(lt,Wt){var Vt=lt.findIndex(function(Ln){return Be(Ee,Ue,Ln,Wt,Re)});if(Vt===-1)return[].concat((0,nt.Z)(lt),[Wt]);var tn=(0,nt.Z)(lt);return tn.splice(Vt,1),tn}return ot}var Ii=Me.createContext(null);function Tn(){return Me.useContext(Ii)}function Cn(Ee,Ue){var Re=Ee.prefixCls,ot=Ee.generateConfig,lt=Ee.locale,Wt=Ee.disabledDate,Vt=Ee.minDate,tn=Ee.maxDate,Ln=Ee.cellRender,Wn=Ee.hoverValue,mn=Ee.hoverRangeValue,ei=Ee.onHover,fi=Ee.values,ut=Ee.pickerValue,Qn=Ee.onSelect,ri=Ee.prevIcon,jn=Ee.nextIcon,oi=Ee.superPrevIcon,xi=Ee.superNextIcon,Ni=ot.getNow(),ki={now:Ni,values:fi,pickerValue:ut,prefixCls:Re,disabledDate:Wt,minDate:Vt,maxDate:tn,cellRender:Ln,hoverValue:Wn,hoverRangeValue:mn,onHover:ei,locale:lt,generateConfig:ot,onSelect:Qn,panelType:Ue,prevIcon:ri,nextIcon:jn,superPrevIcon:oi,superNextIcon:xi};return[ki,Ni]}var Mn=Me.createContext({});function yt(Ee){for(var Ue=Ee.rowNum,Re=Ee.colNum,ot=Ee.baseDate,lt=Ee.getCellDate,Wt=Ee.prefixColumn,Vt=Ee.rowClassName,tn=Ee.titleFormat,Ln=Ee.getCellText,Wn=Ee.getCellClassName,mn=Ee.headerCells,ei=Ee.cellSelection,fi=ei===void 0?!0:ei,ut=Ee.disabledDate,Qn=Tn(),ri=Qn.prefixCls,jn=Qn.panelType,oi=Qn.now,xi=Qn.disabledDate,Ni=Qn.cellRender,ki=Qn.onHover,Bi=Qn.hoverValue,Oi=Qn.hoverRangeValue,cr=Qn.generateConfig,kr=Qn.values,Hr=Qn.locale,Zr=Qn.onSelect,Fi=ut||xi,Fr="".concat(ri,"-cell"),Er=Me.useContext(Mn),Rr=Er.onCellDblClick,xr=function(Mi){return kr.some(function(zr){return zr&&Be(cr,Hr,Mi,zr,jn)})},jr=[],ii=0;ii<Ue;ii+=1){for(var Zi=[],Ji=void 0,lr=function(){var Mi=ii*Re+Qi,zr=lt(ot,Mi),Yr=Fi==null?void 0:Fi(zr,{type:jn});Qi===0&&(Ji=zr,Wt&&Zi.push(Wt(Ji)));var Qr=!1,Ar=!1,eo=!1;if(fi&&Oi){var Xr=(0,Dt.Z)(Oi,2),_r=Xr[0],fo=Xr[1];Qr=Ge(cr,_r,fo,zr),Ar=Be(cr,Hr,zr,_r,jn),eo=Be(cr,Hr,zr,fo,jn)}var mo=tn?an(zr,{locale:Hr,format:tn,generateConfig:cr}):void 0,Bo=Me.createElement("div",{className:"".concat(Fr,"-inner")},Ln(zr));Zi.push(Me.createElement("td",{key:Qi,title:mo,className:Ne()(Fr,(0,it.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)({},"".concat(Fr,"-disabled"),Yr),"".concat(Fr,"-hover"),(Bi||[]).some(function(so){return Be(cr,Hr,zr,so,jn)})),"".concat(Fr,"-in-range"),Qr&&!Ar&&!eo),"".concat(Fr,"-range-start"),Ar),"".concat(Fr,"-range-end"),eo),"".concat(ri,"-cell-selected"),!Oi&&jn!=="week"&&xr(zr)),Wn(zr))),onClick:function(){Yr||Zr(zr)},onDoubleClick:function(){!Yr&&Rr&&Rr()},onMouseEnter:function(){Yr||ki==null||ki(zr)},onMouseLeave:function(){Yr||ki==null||ki(null)}},Ni?Ni(zr,{prefixCls:ri,originNode:Bo,today:oi,type:jn,locale:Hr}):Bo))},Qi=0;Qi<Re;Qi+=1)lr();jr.push(Me.createElement("tr",{key:ii,className:Vt==null?void 0:Vt(Ji)},Zi))}return Me.createElement("div",{className:"".concat(ri,"-body")},Me.createElement("table",{className:"".concat(ri,"-content")},mn&&Me.createElement("thead",null,Me.createElement("tr",null,mn)),Me.createElement("tbody",null,jr)))}var xt={visibility:"hidden"};function Ct(Ee){var Ue=Ee.offset,Re=Ee.superOffset,ot=Ee.onChange,lt=Ee.getStart,Wt=Ee.getEnd,Vt=Ee.children,tn=Tn(),Ln=tn.prefixCls,Wn=tn.prevIcon,mn=Wn===void 0?"\u2039":Wn,ei=tn.nextIcon,fi=ei===void 0?"\u203A":ei,ut=tn.superPrevIcon,Qn=ut===void 0?"\xAB":ut,ri=tn.superNextIcon,jn=ri===void 0?"\xBB":ri,oi=tn.minDate,xi=tn.maxDate,Ni=tn.generateConfig,ki=tn.locale,Bi=tn.pickerValue,Oi=tn.panelType,cr="".concat(Ln,"-header"),kr=Me.useContext(Mn),Hr=kr.hidePrev,Zr=kr.hideNext,Fi=kr.hideHeader,Fr=Me.useMemo(function(){if(!oi||!Ue||!Wt)return!1;var nr=Wt(Ue(-1,Bi));return!ke(Ni,ki,nr,oi,Oi)},[oi,Ue,Bi,Wt,Ni,ki,Oi]),Er=Me.useMemo(function(){if(!oi||!Re||!Wt)return!1;var nr=Wt(Re(-1,Bi));return!ke(Ni,ki,nr,oi,Oi)},[oi,Re,Bi,Wt,Ni,ki,Oi]),Rr=Me.useMemo(function(){if(!xi||!Ue||!lt)return!1;var nr=lt(Ue(1,Bi));return!ke(Ni,ki,xi,nr,Oi)},[xi,Ue,Bi,lt,Ni,ki,Oi]),xr=Me.useMemo(function(){if(!xi||!Re||!lt)return!1;var nr=lt(Re(1,Bi));return!ke(Ni,ki,xi,nr,Oi)},[xi,Re,Bi,lt,Ni,ki,Oi]),jr=function(Mi){Ue&&ot(Ue(Mi,Bi))},ii=function(Mi){Re&&ot(Re(Mi,Bi))};if(Fi)return null;var Zi="".concat(cr,"-prev-btn"),Ji="".concat(cr,"-next-btn"),lr="".concat(cr,"-super-prev-btn"),Qi="".concat(cr,"-super-next-btn");return Me.createElement("div",{className:cr},Re&&Me.createElement("button",{type:"button","aria-label":ki.previousYear,onClick:function(){return ii(-1)},tabIndex:-1,className:Ne()(lr,Er&&"".concat(lr,"-disabled")),disabled:Er,style:Hr?xt:{}},Qn),Ue&&Me.createElement("button",{type:"button","aria-label":ki.previousMonth,onClick:function(){return jr(-1)},tabIndex:-1,className:Ne()(Zi,Fr&&"".concat(Zi,"-disabled")),disabled:Fr,style:Hr?xt:{}},mn),Me.createElement("div",{className:"".concat(cr,"-view")},Vt),Ue&&Me.createElement("button",{type:"button","aria-label":ki.nextMonth,onClick:function(){return jr(1)},tabIndex:-1,className:Ne()(Ji,Rr&&"".concat(Ji,"-disabled")),disabled:Rr,style:Zr?xt:{}},fi),Re&&Me.createElement("button",{type:"button","aria-label":ki.nextYear,onClick:function(){return ii(1)},tabIndex:-1,className:Ne()(Qi,xr&&"".concat(Qi,"-disabled")),disabled:xr,style:Zr?xt:{}},jn))}var Yn=Ct;function $n(Ee){var Ue=Ee.prefixCls,Re=Ee.panelName,ot=Re===void 0?"date":Re,lt=Ee.locale,Wt=Ee.generateConfig,Vt=Ee.pickerValue,tn=Ee.onPickerValueChange,Ln=Ee.onModeChange,Wn=Ee.mode,mn=Wn===void 0?"date":Wn,ei=Ee.disabledDate,fi=Ee.onSelect,ut=Ee.onHover,Qn=Ee.showWeek,ri="".concat(Ue,"-").concat(ot,"-panel"),jn="".concat(Ue,"-cell"),oi=mn==="week",xi=Cn(Ee,mn),Ni=(0,Dt.Z)(xi,2),ki=Ni[0],Bi=Ni[1],Oi=Wt.locale.getWeekFirstDay(lt.locale),cr=Wt.setDate(Vt,1),kr=et(lt.locale,Wt,cr),Hr=Wt.getMonth(Vt),Zr=Qn===void 0?oi:Qn,Fi=Zr?function(nr){var Mi=ei==null?void 0:ei(nr,{type:"week"});return Me.createElement("td",{key:"week",className:Ne()(jn,"".concat(jn,"-week"),(0,zt.Z)({},"".concat(jn,"-disabled"),Mi)),onClick:function(){Mi||fi(nr)},onMouseEnter:function(){Mi||ut==null||ut(nr)},onMouseLeave:function(){Mi||ut==null||ut(null)}},Me.createElement("div",{className:"".concat(jn,"-inner")},Wt.locale.getWeek(lt.locale,nr)))}:null,Fr=[],Er=lt.shortWeekDays||(Wt.locale.getShortWeekDays?Wt.locale.getShortWeekDays(lt.locale):[]);Fi&&Fr.push(Me.createElement("th",{key:"empty"},Me.createElement("span",{style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},lt.week)));for(var Rr=0;Rr<Xn;Rr+=1)Fr.push(Me.createElement("th",{key:Rr},Er[(Rr+Oi)%Xn]));var xr=function(Mi,zr){return Wt.addDate(Mi,zr)},jr=function(Mi){return an(Mi,{locale:lt,format:lt.cellDateFormat,generateConfig:Wt})},ii=function(Mi){var zr=(0,zt.Z)((0,zt.Z)({},"".concat(Ue,"-cell-in-view"),Ai(Wt,Mi,Vt)),"".concat(Ue,"-cell-today"),Kn(Wt,Mi,Bi));return zr},Zi=lt.shortMonths||(Wt.locale.getShortMonths?Wt.locale.getShortMonths(lt.locale):[]),Ji=Me.createElement("button",{type:"button","aria-label":lt.yearSelect,key:"year",onClick:function(){Ln("year",Vt)},tabIndex:-1,className:"".concat(Ue,"-year-btn")},an(Vt,{locale:lt,format:lt.yearFormat,generateConfig:Wt})),lr=Me.createElement("button",{type:"button","aria-label":lt.monthSelect,key:"month",onClick:function(){Ln("month",Vt)},tabIndex:-1,className:"".concat(Ue,"-month-btn")},lt.monthFormat?an(Vt,{locale:lt,format:lt.monthFormat,generateConfig:Wt}):Zi[Hr]),Qi=lt.monthBeforeYear?[lr,Ji]:[Ji,lr];return Me.createElement(Ii.Provider,{value:ki},Me.createElement("div",{className:Ne()(ri,Qn&&"".concat(ri,"-show-week"))},Me.createElement(Yn,{offset:function(Mi){return Wt.addMonth(Vt,Mi)},superOffset:function(Mi){return Wt.addYear(Vt,Mi)},onChange:tn,getStart:function(Mi){return Wt.setDate(Mi,1)},getEnd:function(Mi){var zr=Wt.setDate(Mi,1);return zr=Wt.addMonth(zr,1),Wt.addDate(zr,-1)}},Qi),Me.createElement(yt,(0,ye.Z)({titleFormat:lt.fieldDateFormat},Ee,{colNum:Xn,rowNum:6,baseDate:kr,headerCells:Fr,getCellDate:xr,getCellText:jr,getCellClassName:ii,prefixColumn:Fi,cellSelection:!oi}))))}var di=De(29194),xn=1/3;function ai(Ee,Ue){var Re=Me.useRef(!1),ot=Me.useRef(null),lt=Me.useRef(null),Wt=function(){return Re.current},Vt=function(){On.Z.cancel(ot.current),Re.current=!1},tn=Me.useRef(),Ln=function(){var ei=Ee.current;if(lt.current=null,tn.current=0,ei){var fi=ei.querySelector('[data-value="'.concat(Ue,'"]')),ut=ei.querySelector("li"),Qn=function ri(){Vt(),Re.current=!0,tn.current+=1;var jn=ei.scrollTop,oi=ut.offsetTop,xi=fi.offsetTop,Ni=xi-oi;if(xi===0&&fi!==ut||!(0,di.Z)(ei)){tn.current<=5&&(ot.current=(0,On.Z)(ri));return}var ki=jn+(Ni-jn)*xn,Bi=Math.abs(Ni-ki);if(lt.current!==null&<.current<Bi){Vt();return}if(lt.current=Bi,Bi<=1){ei.scrollTop=Ni,Vt();return}ei.scrollTop=ki,ot.current=(0,On.Z)(ri)};fi&&ut&&Qn()}},Wn=(0,Mt.zX)(Ln);return[Wn,Vt,Wt]}var Pn=300;function zi(Ee){return Ee.map(function(Ue){var Re=Ue.value,ot=Ue.label,lt=Ue.disabled;return[Re,ot,lt].join(",")}).join(";")}function fr(Ee){var Ue=Ee.units,Re=Ee.value,ot=Ee.optionalValue,lt=Ee.type,Wt=Ee.onChange,Vt=Ee.onHover,tn=Ee.onDblClick,Ln=Ee.changeOnScroll,Wn=Tn(),mn=Wn.prefixCls,ei=Wn.cellRender,fi=Wn.now,ut=Wn.locale,Qn="".concat(mn,"-time-panel"),ri="".concat(mn,"-time-panel-cell"),jn=Me.useRef(null),oi=Me.useRef(),xi=function(){clearTimeout(oi.current)},Ni=ai(jn,Re!=null?Re:ot),ki=(0,Dt.Z)(Ni,3),Bi=ki[0],Oi=ki[1],cr=ki[2];(0,ze.Z)(function(){return Bi(),xi(),function(){Oi(),xi()}},[Re,ot,zi(Ue)]);var kr=function(Fi){xi();var Fr=Fi.target;!cr()&&Ln&&(oi.current=setTimeout(function(){var Er=jn.current,Rr=Er.querySelector("li").offsetTop,xr=Array.from(Er.querySelectorAll("li")),jr=xr.map(function(Qi){return Qi.offsetTop-Rr}),ii=jr.map(function(Qi,nr){return Ue[nr].disabled?Number.MAX_SAFE_INTEGER:Math.abs(Qi-Fr.scrollTop)}),Zi=Math.min.apply(Math,(0,nt.Z)(ii)),Ji=ii.findIndex(function(Qi){return Qi===Zi}),lr=Ue[Ji];lr&&!lr.disabled&&Wt(lr.value)},Pn))},Hr="".concat(Qn,"-column");return Me.createElement("ul",{className:Hr,ref:jn,"data-type":lt,onScroll:kr},Ue.map(function(Zr){var Fi=Zr.label,Fr=Zr.value,Er=Zr.disabled,Rr=Me.createElement("div",{className:"".concat(ri,"-inner")},Fi);return Me.createElement("li",{key:Fr,className:Ne()(ri,(0,zt.Z)((0,zt.Z)({},"".concat(ri,"-selected"),Re===Fr),"".concat(ri,"-disabled"),Er)),onClick:function(){Er||Wt(Fr)},onDoubleClick:function(){!Er&&tn&&tn()},onMouseEnter:function(){Vt(Fr)},onMouseLeave:function(){Vt(null)},"data-value":Fr},ei?ei(Fr,{prefixCls:mn,originNode:Rr,today:fi,type:"time",subType:lt,locale:ut}):Rr)}))}function Ve(Ee){return Ee<12}function mt(Ee){var Ue=Ee.showHour,Re=Ee.showMinute,ot=Ee.showSecond,lt=Ee.showMillisecond,Wt=Ee.use12Hours,Vt=Ee.changeOnScroll,tn=Tn(),Ln=tn.prefixCls,Wn=tn.values,mn=tn.generateConfig,ei=tn.locale,fi=tn.onSelect,ut=tn.onHover,Qn=ut===void 0?function(){}:ut,ri=tn.pickerValue,jn=(Wn==null?void 0:Wn[0])||null,oi=Me.useContext(Mn),xi=oi.onCellDblClick,Ni=Gn(mn,Ee,jn),ki=(0,Dt.Z)(Ni,5),Bi=ki[0],Oi=ki[1],cr=ki[2],kr=ki[3],Hr=ki[4],Zr=function(vi){var Do=jn&&mn[vi](jn),pt=ri&&mn[vi](ri);return[Do,pt]},Fi=Zr("getHour"),Fr=(0,Dt.Z)(Fi,2),Er=Fr[0],Rr=Fr[1],xr=Zr("getMinute"),jr=(0,Dt.Z)(xr,2),ii=jr[0],Zi=jr[1],Ji=Zr("getSecond"),lr=(0,Dt.Z)(Ji,2),Qi=lr[0],nr=lr[1],Mi=Zr("getMillisecond"),zr=(0,Dt.Z)(Mi,2),Yr=zr[0],Qr=zr[1],Ar=Er===null?null:Ve(Er)?"am":"pm",eo=Me.useMemo(function(){return Wt?Ve(Er)?Oi.filter(function(Sr){return Ve(Sr.value)}):Oi.filter(function(Sr){return!Ve(Sr.value)}):Oi},[Er,Oi,Wt]),Xr=function(vi,Do){var pt,zn=vi.filter(function(ha){return!ha.disabled});return Do!=null?Do:zn==null||(pt=zn[0])===null||pt===void 0?void 0:pt.value},_r=Xr(Oi,Er),fo=Me.useMemo(function(){return cr(_r)},[cr,_r]),mo=Xr(fo,ii),Bo=Me.useMemo(function(){return kr(_r,mo)},[kr,_r,mo]),so=Xr(Bo,Qi),ia=Me.useMemo(function(){return Hr(_r,mo,so)},[Hr,_r,mo,so]),po=Xr(ia,Yr),Jo=Me.useMemo(function(){if(!Wt)return[];var Sr=mn.getNow(),vi=mn.setHour(Sr,6),Do=mn.setHour(Sr,18),pt=function(ha,ga){var aa=ei.cellMeridiemFormat;return aa?an(ha,{generateConfig:mn,locale:ei,format:aa}):ga};return[{label:pt(vi,"AM"),value:"am",disabled:Oi.every(function(zn){return zn.disabled||!Ve(zn.value)})},{label:pt(Do,"PM"),value:"pm",disabled:Oi.every(function(zn){return zn.disabled||Ve(zn.value)})}]},[Oi,Wt,mn,ei]),Po=function(vi){var Do=Bi(vi);fi(Do)},Vo=Me.useMemo(function(){var Sr=jn||ri||mn.getNow(),vi=function(pt){return pt!=null};return vi(Er)?(Sr=mn.setHour(Sr,Er),Sr=mn.setMinute(Sr,ii),Sr=mn.setSecond(Sr,Qi),Sr=mn.setMillisecond(Sr,Yr)):vi(Rr)?(Sr=mn.setHour(Sr,Rr),Sr=mn.setMinute(Sr,Zi),Sr=mn.setSecond(Sr,nr),Sr=mn.setMillisecond(Sr,Qr)):vi(_r)&&(Sr=mn.setHour(Sr,_r),Sr=mn.setMinute(Sr,mo),Sr=mn.setSecond(Sr,so),Sr=mn.setMillisecond(Sr,po)),Sr},[jn,ri,Er,ii,Qi,Yr,_r,mo,so,po,Rr,Zi,nr,Qr,mn]),Go=function(vi,Do){return vi===null?null:mn[Do](Vo,vi)},Yo=function(vi){return Go(vi,"setHour")},Ro=function(vi){return Go(vi,"setMinute")},Lo=function(vi){return Go(vi,"setSecond")},oa=function(vi){return Go(vi,"setMillisecond")},wa=function(vi){return vi===null?null:vi==="am"&&!Ve(Er)?mn.setHour(Vo,Er-12):vi==="pm"&&Ve(Er)?mn.setHour(Vo,Er+12):Vo},zo=function(vi){Po(Yo(vi))},Oa=function(vi){Po(Ro(vi))},bo=function(vi){Po(Lo(vi))},yo=function(vi){Po(oa(vi))},vo=function(vi){Po(wa(vi))},Qo=function(vi){Qn(Yo(vi))},ro=function(vi){Qn(Ro(vi))},ta=function(vi){Qn(Lo(vi))},wr=function(vi){Qn(oa(vi))},ur=function(vi){Qn(wa(vi))},Dr={onDblClick:xi,changeOnScroll:Vt};return Me.createElement("div",{className:"".concat(Ln,"-content")},Ue&&Me.createElement(fr,(0,ye.Z)({units:eo,value:Er,optionalValue:Rr,type:"hour",onChange:zo,onHover:Qo},Dr)),Re&&Me.createElement(fr,(0,ye.Z)({units:fo,value:ii,optionalValue:Zi,type:"minute",onChange:Oa,onHover:ro},Dr)),ot&&Me.createElement(fr,(0,ye.Z)({units:Bo,value:Qi,optionalValue:nr,type:"second",onChange:bo,onHover:ta},Dr)),lt&&Me.createElement(fr,(0,ye.Z)({units:ia,value:Yr,optionalValue:Qr,type:"millisecond",onChange:yo,onHover:wr},Dr)),Wt&&Me.createElement(fr,(0,ye.Z)({units:Jo,value:Ar,type:"meridiem",onChange:vo,onHover:ur},Dr)))}function Dn(Ee){var Ue=Ee.prefixCls,Re=Ee.value,ot=Ee.locale,lt=Ee.generateConfig,Wt=Ee.showTime,Vt=Wt||{},tn=Vt.format,Ln="".concat(Ue,"-time-panel"),Wn=Cn(Ee,"time"),mn=(0,Dt.Z)(Wn,1),ei=mn[0];return Me.createElement(Ii.Provider,{value:ei},Me.createElement("div",{className:Ne()(Ln)},Me.createElement(Yn,null,Re?an(Re,{locale:ot,format:tn,generateConfig:lt}):"\xA0"),Me.createElement(mt,Wt)))}function An(Ee){var Ue=Ee.prefixCls,Re=Ee.generateConfig,ot=Ee.showTime,lt=Ee.onSelect,Wt=Ee.value,Vt=Ee.pickerValue,tn=Ee.onHover,Ln="".concat(Ue,"-datetime-panel"),Wn=Gn(Re,ot),mn=(0,Dt.Z)(Wn,1),ei=mn[0],fi=function(jn){return Wt?Bt(Re,jn,Wt):Bt(Re,jn,Vt)},ut=function(jn){tn==null||tn(jn&&fi(jn))},Qn=function(jn){var oi=fi(jn);lt(ei(oi,oi))};return Me.createElement("div",{className:Ln},Me.createElement($n,(0,ye.Z)({},Ee,{onSelect:Qn,onHover:ut})),Me.createElement(Dn,Ee))}function Ot(Ee){var Ue=Ee.prefixCls,Re=Ee.locale,ot=Ee.generateConfig,lt=Ee.pickerValue,Wt=Ee.disabledDate,Vt=Ee.onPickerValueChange,tn="".concat(Ue,"-decade-panel"),Ln=Cn(Ee,"decade"),Wn=(0,Dt.Z)(Ln,1),mn=Wn[0],ei=function(Oi){var cr=Math.floor(ot.getYear(Oi)/100)*100;return ot.setYear(Oi,cr)},fi=function(Oi){var cr=ei(Oi);return ot.addYear(cr,99)},ut=ei(lt),Qn=fi(lt),ri=ot.addYear(ut,-10),jn=function(Oi,cr){return ot.addYear(Oi,cr*10)},oi=function(Oi){var cr=Re.cellYearFormat,kr=an(Oi,{locale:Re,format:cr,generateConfig:ot}),Hr=an(ot.addYear(Oi,9),{locale:Re,format:cr,generateConfig:ot});return"".concat(kr,"-").concat(Hr)},xi=function(Oi){return(0,zt.Z)({},"".concat(Ue,"-cell-in-view"),mi(ot,Oi,ut)||mi(ot,Oi,Qn)||Ge(ot,ut,Qn,Oi))},Ni=Wt?function(Bi,Oi){var cr=ot.setDate(Bi,1),kr=ot.setMonth(cr,0),Hr=ot.setYear(kr,Math.floor(ot.getYear(kr)/10)*10),Zr=ot.addYear(Hr,10),Fi=ot.addDate(Zr,-1);return Wt(Hr,Oi)&&Wt(Fi,Oi)}:null,ki="".concat(an(ut,{locale:Re,format:Re.yearFormat,generateConfig:ot}),"-").concat(an(Qn,{locale:Re,format:Re.yearFormat,generateConfig:ot}));return Me.createElement(Ii.Provider,{value:mn},Me.createElement("div",{className:tn},Me.createElement(Yn,{superOffset:function(Oi){return ot.addYear(lt,Oi*100)},onChange:Vt,getStart:ei,getEnd:fi},ki),Me.createElement(yt,(0,ye.Z)({},Ee,{disabledDate:Ni,colNum:3,rowNum:4,baseDate:ri,getCellDate:jn,getCellText:oi,getCellClassName:xi}))))}function Bn(Ee){var Ue=Ee.prefixCls,Re=Ee.locale,ot=Ee.generateConfig,lt=Ee.pickerValue,Wt=Ee.disabledDate,Vt=Ee.onPickerValueChange,tn=Ee.onModeChange,Ln="".concat(Ue,"-month-panel"),Wn=Cn(Ee,"month"),mn=(0,Dt.Z)(Wn,1),ei=mn[0],fi=ot.setMonth(lt,0),ut=Re.shortMonths||(ot.locale.getShortMonths?ot.locale.getShortMonths(Re.locale):[]),Qn=function(ki,Bi){return ot.addMonth(ki,Bi)},ri=function(ki){var Bi=ot.getMonth(ki);return Re.monthFormat?an(ki,{locale:Re,format:Re.monthFormat,generateConfig:ot}):ut[Bi]},jn=function(){return(0,zt.Z)({},"".concat(Ue,"-cell-in-view"),!0)},oi=Wt?function(Ni,ki){var Bi=ot.setDate(Ni,1),Oi=ot.setMonth(Bi,ot.getMonth(Bi)+1),cr=ot.addDate(Oi,-1);return Wt(Bi,ki)&&Wt(cr,ki)}:null,xi=Me.createElement("button",{type:"button",key:"year","aria-label":Re.yearSelect,onClick:function(){tn("year")},tabIndex:-1,className:"".concat(Ue,"-year-btn")},an(lt,{locale:Re,format:Re.yearFormat,generateConfig:ot}));return Me.createElement(Ii.Provider,{value:ei},Me.createElement("div",{className:Ln},Me.createElement(Yn,{superOffset:function(ki){return ot.addYear(lt,ki)},onChange:Vt,getStart:function(ki){return ot.setMonth(ki,0)},getEnd:function(ki){return ot.setMonth(ki,11)}},xi),Me.createElement(yt,(0,ye.Z)({},Ee,{disabledDate:oi,titleFormat:Re.fieldMonthFormat,colNum:3,rowNum:4,baseDate:fi,getCellDate:Qn,getCellText:ri,getCellClassName:jn}))))}function Hn(Ee){var Ue=Ee.prefixCls,Re=Ee.locale,ot=Ee.generateConfig,lt=Ee.pickerValue,Wt=Ee.onPickerValueChange,Vt=Ee.onModeChange,tn="".concat(Ue,"-quarter-panel"),Ln=Cn(Ee,"quarter"),Wn=(0,Dt.Z)(Ln,1),mn=Wn[0],ei=ot.setMonth(lt,0),fi=function(oi,xi){return ot.addMonth(oi,xi*3)},ut=function(oi){return an(oi,{locale:Re,format:Re.cellQuarterFormat,generateConfig:ot})},Qn=function(){return(0,zt.Z)({},"".concat(Ue,"-cell-in-view"),!0)},ri=Me.createElement("button",{type:"button",key:"year","aria-label":Re.yearSelect,onClick:function(){Vt("year")},tabIndex:-1,className:"".concat(Ue,"-year-btn")},an(lt,{locale:Re,format:Re.yearFormat,generateConfig:ot}));return Me.createElement(Ii.Provider,{value:mn},Me.createElement("div",{className:tn},Me.createElement(Yn,{superOffset:function(oi){return ot.addYear(lt,oi)},onChange:Wt,getStart:function(oi){return ot.setMonth(oi,0)},getEnd:function(oi){return ot.setMonth(oi,11)}},ri),Me.createElement(yt,(0,ye.Z)({},Ee,{titleFormat:Re.fieldQuarterFormat,colNum:4,rowNum:1,baseDate:ei,getCellDate:fi,getCellText:ut,getCellClassName:Qn}))))}function _n(Ee){var Ue=Ee.prefixCls,Re=Ee.generateConfig,ot=Ee.locale,lt=Ee.value,Wt=Ee.hoverValue,Vt=Ee.hoverRangeValue,tn=ot.locale,Ln="".concat(Ue,"-week-panel-row"),Wn=function(ei){var fi={};if(Vt){var ut=(0,Dt.Z)(Vt,2),Qn=ut[0],ri=ut[1],jn=we(Re,tn,Qn,ei),oi=we(Re,tn,ri,ei);fi["".concat(Ln,"-range-start")]=jn,fi["".concat(Ln,"-range-end")]=oi,fi["".concat(Ln,"-range-hover")]=!jn&&!oi&&Ge(Re,Qn,ri,ei)}return Wt&&(fi["".concat(Ln,"-hover")]=Wt.some(function(xi){return we(Re,tn,ei,xi)})),Ne()(Ln,(0,zt.Z)({},"".concat(Ln,"-selected"),!Vt&&we(Re,tn,lt,ei)),fi)};return Me.createElement($n,(0,ye.Z)({},Ee,{mode:"week",panelName:"week",rowClassName:Wn}))}function Ei(Ee){var Ue=Ee.prefixCls,Re=Ee.locale,ot=Ee.generateConfig,lt=Ee.pickerValue,Wt=Ee.disabledDate,Vt=Ee.onPickerValueChange,tn=Ee.onModeChange,Ln="".concat(Ue,"-year-panel"),Wn=Cn(Ee,"year"),mn=(0,Dt.Z)(Wn,1),ei=mn[0],fi=function(cr){var kr=Math.floor(ot.getYear(cr)/10)*10;return ot.setYear(cr,kr)},ut=function(cr){var kr=fi(cr);return ot.addYear(kr,9)},Qn=fi(lt),ri=ut(lt),jn=ot.addYear(Qn,-1),oi=function(cr,kr){return ot.addYear(cr,kr)},xi=function(cr){return an(cr,{locale:Re,format:Re.cellYearFormat,generateConfig:ot})},Ni=function(cr){return(0,zt.Z)({},"".concat(Ue,"-cell-in-view"),Zt(ot,cr,Qn)||Zt(ot,cr,ri)||Ge(ot,Qn,ri,cr))},ki=Wt?function(Oi,cr){var kr=ot.setMonth(Oi,0),Hr=ot.setDate(kr,1),Zr=ot.addYear(Hr,1),Fi=ot.addDate(Zr,-1);return Wt(Hr,cr)&&Wt(Fi,cr)}:null,Bi=Me.createElement("button",{type:"button",key:"decade","aria-label":Re.decadeSelect,onClick:function(){tn("decade")},tabIndex:-1,className:"".concat(Ue,"-decade-btn")},an(Qn,{locale:Re,format:Re.yearFormat,generateConfig:ot}),"-",an(ri,{locale:Re,format:Re.yearFormat,generateConfig:ot}));return Me.createElement(Ii.Provider,{value:ei},Me.createElement("div",{className:Ln},Me.createElement(Yn,{superOffset:function(cr){return ot.addYear(lt,cr*10)},onChange:Vt,getStart:fi,getEnd:ut},Bi),Me.createElement(yt,(0,ye.Z)({},Ee,{disabledDate:ki,titleFormat:Re.fieldYearFormat,colNum:3,rowNum:4,baseDate:jn,getCellDate:oi,getCellText:xi,getCellClassName:Ni}))))}var si={date:$n,datetime:An,week:_n,month:Bn,quarter:Hn,year:Ei,decade:Ot,time:Dn};function Pi(Ee,Ue){var Re,ot=Ee.locale,lt=Ee.generateConfig,Wt=Ee.direction,Vt=Ee.prefixCls,tn=Ee.tabIndex,Ln=tn===void 0?0:tn,Wn=Ee.multiple,mn=Ee.defaultValue,ei=Ee.value,fi=Ee.onChange,ut=Ee.onSelect,Qn=Ee.defaultPickerValue,ri=Ee.pickerValue,jn=Ee.onPickerValueChange,oi=Ee.mode,xi=Ee.onPanelChange,Ni=Ee.picker,ki=Ni===void 0?"date":Ni,Bi=Ee.showTime,Oi=Ee.hoverValue,cr=Ee.hoverRangeValue,kr=Ee.cellRender,Hr=Ee.dateRender,Zr=Ee.monthCellRender,Fi=Ee.components,Fr=Fi===void 0?{}:Fi,Er=Ee.hideHeader,Rr=((Re=Me.useContext(de))===null||Re===void 0?void 0:Re.prefixCls)||Vt||"rc-picker",xr=Me.useRef();Me.useImperativeHandle(Ue,function(){return{nativeElement:xr.current}});var jr=ci(Ee),ii=(0,Dt.Z)(jr,4),Zi=ii[0],Ji=ii[1],lr=ii[2],Qi=ii[3],nr=ln(ot,Ji),Mi=ki==="date"&&Bi?"datetime":ki,zr=Me.useMemo(function(){return Fn(Mi,lr,Qi,Zi,nr)},[Mi,lr,Qi,Zi,nr]),Yr=lt.getNow(),Qr=(0,Mt.C8)(ki,{value:oi,postState:function(ur){return ur||"date"}}),Ar=(0,Dt.Z)(Qr,2),eo=Ar[0],Xr=Ar[1],_r=eo==="date"&&zr?"datetime":eo,fo=or(lt,ot,Mi),mo=(0,Mt.C8)(mn,{value:ei}),Bo=(0,Dt.Z)(mo,2),so=Bo[0],ia=Bo[1],po=Me.useMemo(function(){var wr=be(so).filter(function(ur){return ur});return Wn?wr:wr.slice(0,1)},[so,Wn]),Jo=(0,Mt.zX)(function(wr){ia(wr),fi&&(wr===null||po.length!==wr.length||po.some(function(ur,Dr){return!Be(lt,ot,ur,wr[Dr],Mi)}))&&(fi==null||fi(Wn?wr:wr[0]))}),Po=(0,Mt.zX)(function(wr){if(ut==null||ut(wr),eo===ki){var ur=Wn?fo(po,wr):[wr];Jo(ur)}}),Vo=(0,Mt.C8)(Qn||po[0]||Yr,{value:ri}),Go=(0,Dt.Z)(Vo,2),Yo=Go[0],Ro=Go[1];Me.useEffect(function(){po[0]&&!ri&&Ro(po[0])},[po[0]]);var Lo=function(ur,Dr){xi==null||xi(ur||ri,Dr||eo)},oa=function(ur){var Dr=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;Ro(ur),jn==null||jn(ur),Dr&&Lo(ur)},wa=function(ur,Dr){Xr(ur),Dr&&oa(Dr),Lo(Dr,ur)},zo=function(ur){if(Po(ur),oa(ur),eo!==ki){var Dr=["decade","year"],Sr=[].concat(Dr,["month"]),vi={quarter:[].concat(Dr,["quarter"]),week:[].concat((0,nt.Z)(Sr),["week"]),date:[].concat((0,nt.Z)(Sr),["date"])},Do=vi[ki]||Sr,pt=Do.indexOf(eo),zn=Do[pt+1];zn&&wa(zn,ur)}},Oa=Me.useMemo(function(){var wr,ur;if(Array.isArray(cr)){var Dr=(0,Dt.Z)(cr,2);wr=Dr[0],ur=Dr[1]}else wr=cr;return!wr&&!ur?null:(wr=wr||ur,ur=ur||wr,lt.isAfter(wr,ur)?[ur,wr]:[wr,ur])},[cr,lt]),bo=At(kr,Hr,Zr),yo=Fr[_r]||si[_r]||$n,vo=Me.useContext(Mn),Qo=Me.useMemo(function(){return(0,it.Z)((0,it.Z)({},vo),{},{hideHeader:Er})},[vo,Er]),ro="".concat(Rr,"-panel"),ta=Ze(Ee,["showWeek","prevIcon","nextIcon","superPrevIcon","superNextIcon","disabledDate","minDate","maxDate","onHover"]);return Me.createElement(Mn.Provider,{value:Qo},Me.createElement("div",{ref:xr,tabIndex:Ln,className:Ne()(ro,(0,zt.Z)({},"".concat(ro,"-rtl"),Wt==="rtl"))},Me.createElement(yo,(0,ye.Z)({},ta,{showTime:zr,prefixCls:Rr,locale:nr,generateConfig:lt,onModeChange:wa,pickerValue:Yo,onPickerValueChange:function(ur){oa(ur,!0)},value:po[0],onSelect:zo,values:po,cellRender:bo,hoverRangeValue:Oa,hoverValue:Oi}))))}var yi=Me.memo(Me.forwardRef(Pi)),_i=yi;function Ri(Ee){var Ue=Ee.picker,Re=Ee.multiplePanel,ot=Ee.pickerValue,lt=Ee.onPickerValueChange,Wt=Ee.needConfirm,Vt=Ee.onSubmit,tn=Ee.range,Ln=Ee.hoverValue,Wn=Me.useContext(de),mn=Wn.prefixCls,ei=Wn.generateConfig,fi=Me.useCallback(function(xi,Ni){return ti(ei,Ue,xi,Ni)},[ei,Ue]),ut=Me.useMemo(function(){return fi(ot,1)},[ot,fi]),Qn=function(Ni){lt(fi(Ni,-1))},ri={onCellDblClick:function(){Wt&&Vt()}},jn=Ue==="time",oi=(0,it.Z)((0,it.Z)({},Ee),{},{hoverValue:null,hoverRangeValue:null,hideHeader:jn});return tn?oi.hoverRangeValue=Ln:oi.hoverValue=Ln,Re?Me.createElement("div",{className:"".concat(mn,"-panels")},Me.createElement(Mn.Provider,{value:(0,it.Z)((0,it.Z)({},ri),{},{hideNext:!0})},Me.createElement(_i,oi)),Me.createElement(Mn.Provider,{value:(0,it.Z)((0,it.Z)({},ri),{},{hidePrev:!0})},Me.createElement(_i,(0,ye.Z)({},oi,{pickerValue:ut,onPickerValueChange:Qn})))):Me.createElement(Mn.Provider,{value:(0,it.Z)({},ri)},Me.createElement(_i,oi))}function Di(Ee){return typeof Ee=="function"?Ee():Ee}function sn(Ee){var Ue=Ee.prefixCls,Re=Ee.presets,ot=Ee.onClick,lt=Ee.onHover;return Re.length?Me.createElement("div",{className:"".concat(Ue,"-presets")},Me.createElement("ul",null,Re.map(function(Wt,Vt){var tn=Wt.label,Ln=Wt.value;return Me.createElement("li",{key:Vt,onClick:function(){ot(Di(Ln))},onMouseEnter:function(){lt(Di(Ln))},onMouseLeave:function(){lt(null)}},tn)}))):null}function pr(Ee){var Ue=Ee.panelRender,Re=Ee.internalMode,ot=Ee.picker,lt=Ee.showNow,Wt=Ee.range,Vt=Ee.multiple,tn=Ee.activeInfo,Ln=tn===void 0?[0,0,0]:tn,Wn=Ee.presets,mn=Ee.onPresetHover,ei=Ee.onPresetSubmit,fi=Ee.onFocus,ut=Ee.onBlur,Qn=Ee.onPanelMouseDown,ri=Ee.direction,jn=Ee.value,oi=Ee.onSelect,xi=Ee.isInvalid,Ni=Ee.defaultOpenValue,ki=Ee.onOk,Bi=Ee.onSubmit,Oi=Me.useContext(de),cr=Oi.prefixCls,kr="".concat(cr,"-panel"),Hr=ri==="rtl",Zr=Me.useRef(null),Fi=Me.useRef(null),Fr=Me.useState(0),Er=(0,Dt.Z)(Fr,2),Rr=Er[0],xr=Er[1],jr=Me.useState(0),ii=(0,Dt.Z)(jr,2),Zi=ii[0],Ji=ii[1],lr=Me.useState(0),Qi=(0,Dt.Z)(lr,2),nr=Qi[0],Mi=Qi[1],zr=function(zo){zo.width&&xr(zo.width)},Yr=(0,Dt.Z)(Ln,3),Qr=Yr[0],Ar=Yr[1],eo=Yr[2],Xr=Me.useState(0),_r=(0,Dt.Z)(Xr,2),fo=_r[0],mo=_r[1];Me.useEffect(function(){mo(10)},[Qr]),Me.useEffect(function(){if(Wt&&Fi.current){var wa,zo=((wa=Zr.current)===null||wa===void 0?void 0:wa.offsetWidth)||0,Oa=Fi.current.getBoundingClientRect();if(!Oa.height||Oa.right<0){mo(function(Qo){return Math.max(0,Qo-1)});return}var bo=(Hr?Ar-zo:Qr)-Oa.left;if(Mi(bo),Rr&&Rr<eo){var yo=Hr?Oa.right-(Ar-zo+Rr):Qr+zo-Oa.left-Rr,vo=Math.max(0,yo);Ji(vo)}else Ji(0)}},[fo,Hr,Rr,Qr,Ar,eo,Wt]);function Bo(wa){return wa.filter(function(zo){return zo})}var so=Me.useMemo(function(){return Bo(be(jn))},[jn]),ia=ot==="time"&&!so.length,po=Me.useMemo(function(){return ia?Bo([Ni]):so},[ia,so,Ni]),Jo=ia?Ni:so,Po=Me.useMemo(function(){return po.length?po.some(function(wa){return xi(wa)}):!0},[po,xi]),Vo=function(){ia&&oi(Ni),ki(),Bi()},Go=Me.createElement("div",{className:"".concat(cr,"-panel-layout")},Me.createElement(sn,{prefixCls:cr,presets:Wn,onClick:ei,onHover:mn}),Me.createElement("div",null,Me.createElement(Ri,(0,ye.Z)({},Ee,{value:Jo})),Me.createElement(dr,(0,ye.Z)({},Ee,{showNow:Vt?!1:lt,invalid:Po,onSubmit:Vo}))));Ue&&(Go=Ue(Go));var Yo="".concat(kr,"-container"),Ro="marginLeft",Lo="marginRight",oa=Me.createElement("div",{onMouseDown:Qn,tabIndex:-1,className:Ne()(Yo,"".concat(cr,"-").concat(Re,"-panel-container")),style:(0,zt.Z)((0,zt.Z)({},Hr?Lo:Ro,Zi),Hr?Ro:Lo,"auto"),onFocus:fi,onBlur:ut},Go);return Wt&&(oa=Me.createElement("div",{onMouseDown:Qn,ref:Fi,className:Ne()("".concat(cr,"-range-wrapper"),"".concat(cr,"-").concat(ot,"-range-wrapper"))},Me.createElement("div",{ref:Zr,className:"".concat(cr,"-range-arrow"),style:{left:nr}}),Me.createElement(Xi.Z,{onResize:zr},oa))),oa}var Mr=De(5883);function Kr(Ee,Ue){var Re=Ee.format,ot=Ee.maskFormat,lt=Ee.generateConfig,Wt=Ee.locale,Vt=Ee.preserveInvalidOnBlur,tn=Ee.inputReadOnly,Ln=Ee.required,Wn=Ee["aria-required"],mn=Ee.onSubmit,ei=Ee.onFocus,fi=Ee.onBlur,ut=Ee.onInputChange,Qn=Ee.onInvalid,ri=Ee.open,jn=Ee.onOpenChange,oi=Ee.onKeyDown,xi=Ee.onChange,Ni=Ee.activeHelp,ki=Ee.name,Bi=Ee.autoComplete,Oi=Ee.id,cr=Ee.value,kr=Ee.invalid,Hr=Ee.placeholder,Zr=Ee.disabled,Fi=Ee.activeIndex,Fr=Ee.allHelp,Er=Ee.picker,Rr=function(nr,Mi){var zr=lt.locale.parse(Wt.locale,nr,[Mi]);return zr&<.isValidate(zr)?zr:null},xr=Re[0],jr=Me.useCallback(function(Qi){return an(Qi,{locale:Wt,format:xr,generateConfig:lt})},[Wt,lt,xr]),ii=Me.useMemo(function(){return cr.map(jr)},[cr,jr]),Zi=Me.useMemo(function(){var Qi=Er==="time"?8:10,nr=typeof xr=="function"?xr(lt.getNow()).length:xr.length;return Math.max(Qi,nr)+2},[xr,Er,lt]),Ji=function(nr){for(var Mi=0;Mi<Re.length;Mi+=1){var zr=Re[Mi];if(typeof zr=="string"){var Yr=Rr(nr,zr);if(Yr)return Yr}}return!1},lr=function(nr){function Mi(Qr){return nr!==void 0?Qr[nr]:Qr}var zr=(0,Kt.Z)(Ee,{aria:!0,data:!0}),Yr=(0,it.Z)((0,it.Z)({},zr),{},{format:ot,validateFormat:function(Ar){return!!Ji(Ar)},preserveInvalidOnBlur:Vt,readOnly:tn,required:Ln,"aria-required":Wn,name:ki,autoComplete:Bi,size:Zi,id:Mi(Oi),value:Mi(ii)||"",invalid:Mi(kr),placeholder:Mi(Hr),active:Fi===nr,helped:Fr||Ni&&Fi===nr,disabled:Mi(Zr),onFocus:function(Ar){ei(Ar,nr)},onBlur:function(Ar){fi(Ar,nr)},onSubmit:mn,onChange:function(Ar){ut();var eo=Ji(Ar);if(eo){Qn(!1,nr),xi(eo,nr);return}Qn(!!Ar,nr)},onHelp:function(){jn(!0,{index:nr})},onKeyDown:function(Ar){var eo=!1;if(oi==null||oi(Ar,function(){eo=!0}),!Ar.defaultPrevented&&!eo)switch(Ar.key){case"Escape":jn(!1,{index:nr});break;case"Enter":ri||jn(!0);break}}},Ue==null?void 0:Ue({valueTexts:ii}));return Object.keys(Yr).forEach(function(Qr){Yr[Qr]===void 0&&delete Yr[Qr]}),Yr};return[lr,jr]}var En=["onMouseEnter","onMouseLeave"];function Si(Ee){return Me.useMemo(function(){return Ze(Ee,En)},[Ee])}var Vi=["icon","type"],Wi=["onClear"];function $i(Ee){var Ue=Ee.icon,Re=Ee.type,ot=(0,Mr.Z)(Ee,Vi),lt=Me.useContext(de),Wt=lt.prefixCls;return Ue?Me.createElement("span",(0,ye.Z)({className:"".concat(Wt,"-").concat(Re)},ot),Ue):null}function Pr(Ee){var Ue=Ee.onClear,Re=(0,Mr.Z)(Ee,Wi);return Me.createElement($i,(0,ye.Z)({},Re,{type:"clear",role:"button",onMouseDown:function(lt){lt.preventDefault()},onClick:function(lt){lt.stopPropagation(),Ue()}}))}var br=De(6487),Hi=De(56789),er=["YYYY","MM","DD","HH","mm","ss","SSS"],Gi="\u9867",cn=function(){function Ee(Ue){(0,br.Z)(this,Ee),(0,zt.Z)(this,"format",void 0),(0,zt.Z)(this,"maskFormat",void 0),(0,zt.Z)(this,"cells",void 0),(0,zt.Z)(this,"maskCells",void 0),this.format=Ue;var Re=er.map(function(tn){return"(".concat(tn,")")}).join("|"),ot=new RegExp(Re,"g");this.maskFormat=Ue.replace(ot,function(tn){return Gi.repeat(tn.length)});var lt=new RegExp("(".concat(er.join("|"),")")),Wt=(Ue.split(lt)||[]).filter(function(tn){return tn}),Vt=0;this.cells=Wt.map(function(tn){var Ln=er.includes(tn),Wn=Vt,mn=Vt+tn.length;return Vt=mn,{text:tn,mask:Ln,start:Wn,end:mn}}),this.maskCells=this.cells.filter(function(tn){return tn.mask})}return(0,Hi.Z)(Ee,[{key:"getSelection",value:function(Re){var ot=this.maskCells[Re]||{},lt=ot.start,Wt=ot.end;return[lt||0,Wt||0]}},{key:"match",value:function(Re){for(var ot=0;ot<this.maskFormat.length;ot+=1){var lt=this.maskFormat[ot],Wt=Re[ot];if(!Wt||lt!==Gi&<!==Wt)return!1}return!0}},{key:"size",value:function(){return this.maskCells.length}},{key:"getMaskCellIndex",value:function(Re){for(var ot=Number.MAX_SAFE_INTEGER,lt=0,Wt=0;Wt<this.maskCells.length;Wt+=1){var Vt=this.maskCells[Wt],tn=Vt.start,Ln=Vt.end;if(Re>=tn&&Re<=Ln)return Wt;var Wn=Math.min(Math.abs(Re-tn),Math.abs(Re-Ln));Wn<ot&&(ot=Wn,lt=Wt)}return lt}}]),Ee}();function sr(Ee){var Ue={YYYY:[0,9999,new Date().getFullYear()],MM:[1,12],DD:[1,31],HH:[0,23],mm:[0,59],ss:[0,59],SSS:[0,999]};return Ue[Ee]}var yn=["active","showActiveCls","suffixIcon","format","validateFormat","onChange","onInput","helped","onHelp","onSubmit","onKeyDown","preserveInvalidOnBlur","invalid","clearIcon"],bi=Me.forwardRef(function(Ee,Ue){var Re=Ee.active,ot=Ee.showActiveCls,lt=ot===void 0?!0:ot,Wt=Ee.suffixIcon,Vt=Ee.format,tn=Ee.validateFormat,Ln=Ee.onChange,Wn=Ee.onInput,mn=Ee.helped,ei=Ee.onHelp,fi=Ee.onSubmit,ut=Ee.onKeyDown,Qn=Ee.preserveInvalidOnBlur,ri=Qn===void 0?!1:Qn,jn=Ee.invalid,oi=Ee.clearIcon,xi=(0,Mr.Z)(Ee,yn),Ni=Ee.value,ki=Ee.onFocus,Bi=Ee.onBlur,Oi=Ee.onMouseUp,cr=Me.useContext(de),kr=cr.prefixCls,Hr=cr.input,Zr=Hr===void 0?"input":Hr,Fi="".concat(kr,"-input"),Fr=Me.useState(!1),Er=(0,Dt.Z)(Fr,2),Rr=Er[0],xr=Er[1],jr=Me.useState(Ni),ii=(0,Dt.Z)(jr,2),Zi=ii[0],Ji=ii[1],lr=Me.useState(""),Qi=(0,Dt.Z)(lr,2),nr=Qi[0],Mi=Qi[1],zr=Me.useState(null),Yr=(0,Dt.Z)(zr,2),Qr=Yr[0],Ar=Yr[1],eo=Me.useState(null),Xr=(0,Dt.Z)(eo,2),_r=Xr[0],fo=Xr[1],mo=Zi||"";Me.useEffect(function(){Ji(Ni)},[Ni]);var Bo=Me.useRef(),so=Me.useRef();Me.useImperativeHandle(Ue,function(){return{nativeElement:Bo.current,inputElement:so.current,focus:function(ur){so.current.focus(ur)},blur:function(){so.current.blur()}}});var ia=Me.useMemo(function(){return new cn(Vt||"")},[Vt]),po=Me.useMemo(function(){return mn?[0,0]:ia.getSelection(Qr)},[ia,Qr,mn]),Jo=(0,Dt.Z)(po,2),Po=Jo[0],Vo=Jo[1],Go=function(ur){ur&&ur!==Vt&&ur!==Ni&&ei()},Yo=(0,Mt.zX)(function(wr){tn(wr)&&Ln(wr),Ji(wr),Go(wr)}),Ro=function(ur){if(!Vt){var Dr=ur.target.value;Go(Dr),Ji(Dr),Ln(Dr)}},Lo=function(ur){var Dr=ur.clipboardData.getData("text");tn(Dr)&&Yo(Dr)},oa=Me.useRef(!1),wa=function(){oa.current=!0},zo=function(ur){var Dr=ur.target,Sr=Dr.selectionStart,vi=ia.getMaskCellIndex(Sr);Ar(vi),fo({}),Oi==null||Oi(ur),oa.current=!1},Oa=function(ur){xr(!0),Ar(0),Mi(""),ki(ur)},bo=function(ur){Bi(ur)},yo=function(ur){xr(!1),bo(ur)};pn(Re,function(){!Re&&!ri&&Ji(Ni)});var vo=function(ur){ur.key==="Enter"&&tn(mo)&&fi(),ut==null||ut(ur)},Qo=function(ur){vo(ur);var Dr=ur.key,Sr=null,vi=null,Do=Vo-Po,pt=Vt.slice(Po,Vo),zn=function(sa){Ar(function(ya){var Pa=ya+sa;return Pa=Math.max(Pa,0),Pa=Math.min(Pa,ia.size()-1),Pa})},ha=function(sa){var ya=sr(pt),Pa=(0,Dt.Z)(ya,3),hs=Pa[0],da=Pa[1],qr=Pa[2],Ya=mo.slice(Po,Vo),ts=Number(Ya);if(isNaN(ts))return String(qr||(sa>0?hs:da));var ca=ts+sa,So=da-hs+1;return String(hs+(So+ca-hs)%So)};switch(Dr){case"Backspace":case"Delete":Sr="",vi=pt;break;case"ArrowLeft":Sr="",zn(-1);break;case"ArrowRight":Sr="",zn(1);break;case"ArrowUp":Sr="",vi=ha(1);break;case"ArrowDown":Sr="",vi=ha(-1);break;default:isNaN(Number(Dr))||(Sr=nr+Dr,vi=Sr);break}if(Sr!==null&&(Mi(Sr),Sr.length>=Do&&(zn(1),Mi(""))),vi!==null){var ga=mo.slice(0,Po)+Se(vi,Do)+mo.slice(Vo);Yo(ga.slice(0,Vt.length))}fo({})},ro=Me.useRef();(0,ze.Z)(function(){if(!(!Rr||!Vt||oa.current)){if(!ia.match(mo)){Yo(Vt);return}return so.current.setSelectionRange(Po,Vo),ro.current=(0,On.Z)(function(){so.current.setSelectionRange(Po,Vo)}),function(){On.Z.cancel(ro.current)}}},[ia,Vt,Rr,mo,Qr,Po,Vo,_r,Yo]);var ta=Vt?{onFocus:Oa,onBlur:yo,onKeyDown:Qo,onMouseDown:wa,onMouseUp:zo,onPaste:Lo}:{};return Me.createElement("div",{ref:Bo,className:Ne()(Fi,(0,zt.Z)((0,zt.Z)({},"".concat(Fi,"-active"),Re&<),"".concat(Fi,"-placeholder"),mn))},Me.createElement(Zr,(0,ye.Z)({ref:so,"aria-invalid":jn,autoComplete:"off"},xi,{onKeyDown:vo,onBlur:bo},ta,{value:mo,onChange:Ro})),Me.createElement($i,{type:"suffix",icon:Wt}),oi)}),Cr=bi,Nr=["id","prefix","clearIcon","suffixIcon","separator","activeIndex","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","value","onChange","onSubmit","onInputChange","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onActiveInfo","placement","onMouseDown","required","aria-required","autoFocus","tabIndex"],to=["index"];function Ur(Ee,Ue){var Re=Ee.id,ot=Ee.prefix,lt=Ee.clearIcon,Wt=Ee.suffixIcon,Vt=Ee.separator,tn=Vt===void 0?"~":Vt,Ln=Ee.activeIndex,Wn=Ee.activeHelp,mn=Ee.allHelp,ei=Ee.focused,fi=Ee.onFocus,ut=Ee.onBlur,Qn=Ee.onKeyDown,ri=Ee.locale,jn=Ee.generateConfig,oi=Ee.placeholder,xi=Ee.className,Ni=Ee.style,ki=Ee.onClick,Bi=Ee.onClear,Oi=Ee.value,cr=Ee.onChange,kr=Ee.onSubmit,Hr=Ee.onInputChange,Zr=Ee.format,Fi=Ee.maskFormat,Fr=Ee.preserveInvalidOnBlur,Er=Ee.onInvalid,Rr=Ee.disabled,xr=Ee.invalid,jr=Ee.inputReadOnly,ii=Ee.direction,Zi=Ee.onOpenChange,Ji=Ee.onActiveInfo,lr=Ee.placement,Qi=Ee.onMouseDown,nr=Ee.required,Mi=Ee["aria-required"],zr=Ee.autoFocus,Yr=Ee.tabIndex,Qr=(0,Mr.Z)(Ee,Nr),Ar=ii==="rtl",eo=Me.useContext(de),Xr=eo.prefixCls,_r=Me.useMemo(function(){if(typeof Re=="string")return[Re];var bo=Re||{};return[bo.start,bo.end]},[Re]),fo=Me.useRef(),mo=Me.useRef(),Bo=Me.useRef(),so=function(yo){var vo;return(vo=[mo,Bo][yo])===null||vo===void 0?void 0:vo.current};Me.useImperativeHandle(Ue,function(){return{nativeElement:fo.current,focus:function(yo){if((0,kn.Z)(yo)==="object"){var vo,Qo=yo||{},ro=Qo.index,ta=ro===void 0?0:ro,wr=(0,Mr.Z)(Qo,to);(vo=so(ta))===null||vo===void 0||vo.focus(wr)}else{var ur;(ur=so(yo!=null?yo:0))===null||ur===void 0||ur.focus()}},blur:function(){var yo,vo;(yo=so(0))===null||yo===void 0||yo.blur(),(vo=so(1))===null||vo===void 0||vo.blur()}}});var ia=Si(Qr),po=Me.useMemo(function(){return Array.isArray(oi)?oi:[oi,oi]},[oi]),Jo=Kr((0,it.Z)((0,it.Z)({},Ee),{},{id:_r,placeholder:po})),Po=(0,Dt.Z)(Jo,1),Vo=Po[0],Go=Me.useState({position:"absolute",width:0}),Yo=(0,Dt.Z)(Go,2),Ro=Yo[0],Lo=Yo[1],oa=(0,Mt.zX)(function(){var bo=so(Ln);if(bo){var yo=bo.nativeElement.getBoundingClientRect(),vo=fo.current.getBoundingClientRect(),Qo=yo.left-vo.left;Lo(function(ro){return(0,it.Z)((0,it.Z)({},ro),{},{width:yo.width,left:Qo})}),Ji([yo.left,yo.right,vo.width])}});Me.useEffect(function(){oa()},[Ln]);var wa=lt&&(Oi[0]&&!Rr[0]||Oi[1]&&!Rr[1]),zo=zr&&!Rr[0],Oa=zr&&!zo&&!Rr[1];return Me.createElement(Xi.Z,{onResize:oa},Me.createElement("div",(0,ye.Z)({},ia,{className:Ne()(Xr,"".concat(Xr,"-range"),(0,zt.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)({},"".concat(Xr,"-focused"),ei),"".concat(Xr,"-disabled"),Rr.every(function(bo){return bo})),"".concat(Xr,"-invalid"),xr.some(function(bo){return bo})),"".concat(Xr,"-rtl"),Ar),xi),style:Ni,ref:fo,onClick:ki,onMouseDown:function(yo){var vo=yo.target;vo!==mo.current.inputElement&&vo!==Bo.current.inputElement&&yo.preventDefault(),Qi==null||Qi(yo)}}),ot&&Me.createElement("div",{className:"".concat(Xr,"-prefix")},ot),Me.createElement(Cr,(0,ye.Z)({ref:mo},Vo(0),{autoFocus:zo,tabIndex:Yr,"date-range":"start"})),Me.createElement("div",{className:"".concat(Xr,"-range-separator")},tn),Me.createElement(Cr,(0,ye.Z)({ref:Bo},Vo(1),{autoFocus:Oa,tabIndex:Yr,"date-range":"end"})),Me.createElement("div",{className:"".concat(Xr,"-active-bar"),style:Ro}),Me.createElement($i,{type:"suffix",icon:Wt}),wa&&Me.createElement(Pr,{icon:lt,onClear:Bi})))}var Br=Me.forwardRef(Ur),ao=Br;function Qt(Ee,Ue){var Re=Ee!=null?Ee:Ue;return Array.isArray(Re)?Re:[Re,Re]}function Vn(Ee){return Ee===1?"end":"start"}function $t(Ee,Ue){var Re=dn(Ee,function(){var lo=Ee.disabled,co=Ee.allowEmpty,Mo=Qt(lo,!1),ra=Qt(co,!1);return{disabled:Mo,allowEmpty:ra}}),ot=(0,Dt.Z)(Re,6),lt=ot[0],Wt=ot[1],Vt=ot[2],tn=ot[3],Ln=ot[4],Wn=ot[5],mn=lt.prefixCls,ei=lt.styles,fi=lt.classNames,ut=lt.defaultValue,Qn=lt.value,ri=lt.needConfirm,jn=lt.onKeyDown,oi=lt.disabled,xi=lt.allowEmpty,Ni=lt.disabledDate,ki=lt.minDate,Bi=lt.maxDate,Oi=lt.defaultOpen,cr=lt.open,kr=lt.onOpenChange,Hr=lt.locale,Zr=lt.generateConfig,Fi=lt.picker,Fr=lt.showNow,Er=lt.showToday,Rr=lt.showTime,xr=lt.mode,jr=lt.onPanelChange,ii=lt.onCalendarChange,Zi=lt.onOk,Ji=lt.defaultPickerValue,lr=lt.pickerValue,Qi=lt.onPickerValueChange,nr=lt.inputReadOnly,Mi=lt.suffixIcon,zr=lt.onFocus,Yr=lt.onBlur,Qr=lt.presets,Ar=lt.ranges,eo=lt.components,Xr=lt.cellRender,_r=lt.dateRender,fo=lt.monthCellRender,mo=lt.onClick,Bo=jt(Ue),so=nn(cr,Oi,oi,kr),ia=(0,Dt.Z)(so,2),po=ia[0],Jo=ia[1],Po=function(co,Mo){(oi.some(function(ra){return!ra})||!co)&&Jo(co,Mo)},Vo=vr(Zr,Hr,tn,!0,!1,ut,Qn,ii,Zi),Go=(0,Dt.Z)(Vo,5),Yo=Go[0],Ro=Go[1],Lo=Go[2],oa=Go[3],wa=Go[4],zo=Lo(),Oa=bn(oi,xi,po),bo=(0,Dt.Z)(Oa,9),yo=bo[0],vo=bo[1],Qo=bo[2],ro=bo[3],ta=bo[4],wr=bo[5],ur=bo[6],Dr=bo[7],Sr=bo[8],vi=function(co,Mo){vo(!0),zr==null||zr(co,{range:Vn(Mo!=null?Mo:ro)})},Do=function(co,Mo){vo(!1),Yr==null||Yr(co,{range:Vn(Mo!=null?Mo:ro)})},pt=Me.useMemo(function(){if(!Rr)return null;var lo=Rr.disabledTime,co=lo?function(Mo){var ra=Vn(ro),rs=Ye(zo,ur,ro);return lo(Mo,ra,{from:rs})}:void 0;return(0,it.Z)((0,it.Z)({},Rr),{},{disabledTime:co})},[Rr,ro,zo,ur]),zn=(0,Mt.C8)([Fi,Fi],{value:xr}),ha=(0,Dt.Z)(zn,2),ga=ha[0],aa=ha[1],sa=ga[ro]||Fi,ya=sa==="date"&&pt?"datetime":sa,Pa=ya===Fi&&ya!=="time",hs=ar(Fi,sa,Fr,Er,!0),da=hr(lt,Yo,Ro,Lo,oa,oi,tn,yo,po,Wn),qr=(0,Dt.Z)(da,2),Ya=qr[0],ts=qr[1],ca=Un(zo,oi,ur,Zr,Hr,Ni),So=ft(zo,Wn,xi),Sa=(0,Dt.Z)(So,2),ds=Sa[0],ua=Sa[1],cs=vn(Zr,Hr,zo,ga,po,ro,Wt,Pa,Ji,lr,pt==null?void 0:pt.defaultOpenValue,Qi,ki,Bi),za=(0,Dt.Z)(cs,2),Dl=za[0],Ho=za[1],Fa=(0,Mt.zX)(function(lo,co,Mo){var ra=Ie(ga,ro,co);if((ra[0]!==ga[0]||ra[1]!==ga[1])&&aa(ra),jr&&Mo!==!1){var rs=(0,nt.Z)(zo);lo&&(rs[ro]=lo),jr(rs,ra)}}),To=function(co,Mo){return Ie(zo,Mo,co)},$o=function(co,Mo){var ra=zo;co&&(ra=To(co,ro)),Dr(ro);var rs=wr(ra);oa(ra),Ya(ro,rs===null),rs===null?Po(!1,{force:!0}):Mo||Bo.current.focus({index:rs})},pa=function(co){var Mo,ra=co.target.getRootNode();if(!Bo.current.nativeElement.contains((Mo=ra.activeElement)!==null&&Mo!==void 0?Mo:document.activeElement)){var rs=oi.findIndex(function(fs){return!fs});rs>=0&&Bo.current.focus({index:rs})}Po(!0),mo==null||mo(co)},xa=function(){ts(null),Po(!1,{force:!0})},qo=Me.useState(null),pl=(0,Dt.Z)(qo,2),no=pl[0],vu=pl[1],Ao=Me.useState(null),Kl=(0,Dt.Z)(Ao,2),qs=Kl[0],Nl=Kl[1],yu=Me.useMemo(function(){return qs||zo},[zo,qs]);Me.useEffect(function(){po||Nl(null)},[po]);var Su=Me.useState([0,0,0]),Vs=(0,Dt.Z)(Su,2),Yl=Vs[0],Uo=Vs[1],Gs=Xt(Qr,Ar),xu=function(co){Nl(co),vu("preset")},ml=function(co){var Mo=ts(co);Mo&&Po(!1,{force:!0})},Nu=function(co){$o(co)},vl=function(co){Nl(co?To(co,ro):null),vu("cell")},No=function(co){Po(!0),vi(co)},Ko=function(){Qo("panel")},ka=function(co){var Mo=Ie(zo,ro,co);oa(Mo),!ri&&!Vt&&Wt===ya&&$o(co)},ns=function(){Po(!1)},Qa=At(Xr,_r,fo,Vn(ro)),Bl=zo[ro]||null,yl=(0,Mt.zX)(function(lo){return Wn(lo,{activeIndex:ro})}),Oo=Me.useMemo(function(){var lo=(0,Kt.Z)(lt,!1),co=(0,dt.Z)(lt,[].concat((0,nt.Z)(Object.keys(lo)),["onChange","onCalendarChange","style","className","onPanelChange","disabledTime"]));return co},[lt]),xo=Me.createElement(pr,(0,ye.Z)({},Oo,{showNow:hs,showTime:pt,range:!0,multiplePanel:Pa,activeInfo:Yl,disabledDate:ca,onFocus:No,onBlur:Do,onPanelMouseDown:Ko,picker:Fi,mode:sa,internalMode:ya,onPanelChange:Fa,format:Ln,value:Bl,isInvalid:yl,onChange:null,onSelect:ka,pickerValue:Dl,defaultOpenValue:be(Rr==null?void 0:Rr.defaultOpenValue)[ro],onPickerValueChange:Ho,hoverValue:yu,onHover:vl,needConfirm:ri,onSubmit:$o,onOk:wa,presets:Gs,onPresetHover:xu,onPresetSubmit:ml,onNow:Nu,cellRender:Qa})),Ua=function(co,Mo){var ra=To(co,Mo);oa(ra)},ou=function(){Qo("input")},Dd=function(co,Mo){var ra=ur.length,rs=ur[ra-1];if(ra&&rs!==Mo&&ri&&!xi[rs]&&!Sr(rs)&&zo[rs]){Bo.current.focus({index:rs});return}Qo("input"),Po(!0,{inherit:!0}),ro!==Mo&&po&&!ri&&Vt&&$o(null,!0),ta(Mo),vi(co,Mo)},cg=function(co,Mo){if(Po(!1),!ri&&Qo()==="input"){var ra=wr(zo);Ya(ro,ra===null)}Do(co,Mo)},nf=function(co,Mo){co.key==="Tab"&&$o(null,!0),jn==null||jn(co,Mo)},Va=Me.useMemo(function(){return{prefixCls:mn,locale:Hr,generateConfig:Zr,button:eo.button,input:eo.input}},[mn,Hr,Zr,eo.button,eo.input]);if((0,ze.Z)(function(){po&&ro!==void 0&&Fa(null,Fi,!1)},[po,ro,Fi]),(0,ze.Z)(function(){var lo=Qo();!po&&lo==="input"&&(Po(!1),$o(null,!0)),!po&&Vt&&!ri&&lo==="panel"&&(Po(!0),$o())},[po]),0)var Qu;return Me.createElement(de.Provider,{value:Va},Me.createElement(me,(0,ye.Z)({},Xe(lt),{popupElement:xo,popupStyle:ei.popup,popupClassName:fi.popup,visible:po,onClose:ns,range:!0}),Me.createElement(ao,(0,ye.Z)({},lt,{ref:Bo,suffixIcon:Mi,activeIndex:yo||po?ro:null,activeHelp:!!qs,allHelp:!!qs&&no==="preset",focused:yo,onFocus:Dd,onBlur:cg,onKeyDown:nf,onSubmit:$o,value:yu,maskFormat:Ln,onChange:Ua,onInputChange:ou,format:tn,inputReadOnly:nr,disabled:oi,open:po,onOpenChange:Po,onClick:pa,onClear:xa,invalid:ds,onInvalid:ua,onActiveInfo:Uo}))))}var Te=Me.forwardRef($t),He=Te,qe=De(11780);function St(Ee){var Ue=Ee.prefixCls,Re=Ee.value,ot=Ee.onRemove,lt=Ee.removeIcon,Wt=lt===void 0?"\xD7":lt,Vt=Ee.formatDate,tn=Ee.disabled,Ln=Ee.maxTagCount,Wn=Ee.placeholder,mn="".concat(Ue,"-selector"),ei="".concat(Ue,"-selection"),fi="".concat(ei,"-overflow");function ut(jn,oi){return Me.createElement("span",{className:Ne()("".concat(ei,"-item")),title:typeof jn=="string"?jn:null},Me.createElement("span",{className:"".concat(ei,"-item-content")},jn),!tn&&oi&&Me.createElement("span",{onMouseDown:function(Ni){Ni.preventDefault()},onClick:oi,className:"".concat(ei,"-item-remove")},Wt))}function Qn(jn){var oi=Vt(jn),xi=function(ki){ki&&ki.stopPropagation(),ot(jn)};return ut(oi,xi)}function ri(jn){var oi="+ ".concat(jn.length," ...");return ut(oi)}return Me.createElement("div",{className:mn},Me.createElement(qe.Z,{prefixCls:fi,data:Re,renderItem:Qn,renderRest:ri,itemKey:function(oi){return Vt(oi)},maxCount:Ln}),!Re.length&&Me.createElement("span",{className:"".concat(Ue,"-selection-placeholder")},Wn))}var It=["id","open","prefix","clearIcon","suffixIcon","activeHelp","allHelp","focused","onFocus","onBlur","onKeyDown","locale","generateConfig","placeholder","className","style","onClick","onClear","internalPicker","value","onChange","onSubmit","onInputChange","multiple","maxTagCount","format","maskFormat","preserveInvalidOnBlur","onInvalid","disabled","invalid","inputReadOnly","direction","onOpenChange","onMouseDown","required","aria-required","autoFocus","tabIndex","removeIcon"];function en(Ee,Ue){var Re=Ee.id,ot=Ee.open,lt=Ee.prefix,Wt=Ee.clearIcon,Vt=Ee.suffixIcon,tn=Ee.activeHelp,Ln=Ee.allHelp,Wn=Ee.focused,mn=Ee.onFocus,ei=Ee.onBlur,fi=Ee.onKeyDown,ut=Ee.locale,Qn=Ee.generateConfig,ri=Ee.placeholder,jn=Ee.className,oi=Ee.style,xi=Ee.onClick,Ni=Ee.onClear,ki=Ee.internalPicker,Bi=Ee.value,Oi=Ee.onChange,cr=Ee.onSubmit,kr=Ee.onInputChange,Hr=Ee.multiple,Zr=Ee.maxTagCount,Fi=Ee.format,Fr=Ee.maskFormat,Er=Ee.preserveInvalidOnBlur,Rr=Ee.onInvalid,xr=Ee.disabled,jr=Ee.invalid,ii=Ee.inputReadOnly,Zi=Ee.direction,Ji=Ee.onOpenChange,lr=Ee.onMouseDown,Qi=Ee.required,nr=Ee["aria-required"],Mi=Ee.autoFocus,zr=Ee.tabIndex,Yr=Ee.removeIcon,Qr=(0,Mr.Z)(Ee,It),Ar=Zi==="rtl",eo=Me.useContext(de),Xr=eo.prefixCls,_r=Me.useRef(),fo=Me.useRef();Me.useImperativeHandle(Ue,function(){return{nativeElement:_r.current,focus:function(Ro){var Lo;(Lo=fo.current)===null||Lo===void 0||Lo.focus(Ro)},blur:function(){var Ro;(Ro=fo.current)===null||Ro===void 0||Ro.blur()}}});var mo=Si(Qr),Bo=function(Ro){Oi([Ro])},so=function(Ro){var Lo=Bi.filter(function(oa){return oa&&!Be(Qn,ut,oa,Ro,ki)});Oi(Lo),ot||cr()},ia=Kr((0,it.Z)((0,it.Z)({},Ee),{},{onChange:Bo}),function(Yo){var Ro=Yo.valueTexts;return{value:Ro[0]||"",active:Wn}}),po=(0,Dt.Z)(ia,2),Jo=po[0],Po=po[1],Vo=!!(Wt&&Bi.length&&!xr),Go=Hr?Me.createElement(Me.Fragment,null,Me.createElement(St,{prefixCls:Xr,value:Bi,onRemove:so,formatDate:Po,maxTagCount:Zr,disabled:xr,removeIcon:Yr,placeholder:ri}),Me.createElement("input",{className:"".concat(Xr,"-multiple-input"),value:Bi.map(Po).join(","),ref:fo,readOnly:!0,autoFocus:Mi,tabIndex:zr}),Me.createElement($i,{type:"suffix",icon:Vt}),Vo&&Me.createElement(Pr,{icon:Wt,onClear:Ni})):Me.createElement(Cr,(0,ye.Z)({ref:fo},Jo(),{autoFocus:Mi,tabIndex:zr,suffixIcon:Vt,clearIcon:Vo&&Me.createElement(Pr,{icon:Wt,onClear:Ni}),showActiveCls:!1}));return Me.createElement("div",(0,ye.Z)({},mo,{className:Ne()(Xr,(0,zt.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)((0,zt.Z)({},"".concat(Xr,"-multiple"),Hr),"".concat(Xr,"-focused"),Wn),"".concat(Xr,"-disabled"),xr),"".concat(Xr,"-invalid"),jr),"".concat(Xr,"-rtl"),Ar),jn),style:oi,ref:_r,onClick:xi,onMouseDown:function(Ro){var Lo,oa=Ro.target;oa!==((Lo=fo.current)===null||Lo===void 0?void 0:Lo.inputElement)&&Ro.preventDefault(),lr==null||lr(Ro)}}),lt&&Me.createElement("div",{className:"".concat(Xr,"-prefix")},lt),Go)}var tt=Me.forwardRef(en),Ft=tt;function Gt(Ee,Ue){var Re=dn(Ee),ot=(0,Dt.Z)(Re,6),lt=ot[0],Wt=ot[1],Vt=ot[2],tn=ot[3],Ln=ot[4],Wn=ot[5],mn=lt,ei=mn.prefixCls,fi=mn.styles,ut=mn.classNames,Qn=mn.order,ri=mn.defaultValue,jn=mn.value,oi=mn.needConfirm,xi=mn.onChange,Ni=mn.onKeyDown,ki=mn.disabled,Bi=mn.disabledDate,Oi=mn.minDate,cr=mn.maxDate,kr=mn.defaultOpen,Hr=mn.open,Zr=mn.onOpenChange,Fi=mn.locale,Fr=mn.generateConfig,Er=mn.picker,Rr=mn.showNow,xr=mn.showToday,jr=mn.showTime,ii=mn.mode,Zi=mn.onPanelChange,Ji=mn.onCalendarChange,lr=mn.onOk,Qi=mn.multiple,nr=mn.defaultPickerValue,Mi=mn.pickerValue,zr=mn.onPickerValueChange,Yr=mn.inputReadOnly,Qr=mn.suffixIcon,Ar=mn.removeIcon,eo=mn.onFocus,Xr=mn.onBlur,_r=mn.presets,fo=mn.components,mo=mn.cellRender,Bo=mn.dateRender,so=mn.monthCellRender,ia=mn.onClick,po=jt(Ue);function Jo(Oo){return Oo===null?null:Qi?Oo:Oo[0]}var Po=or(Fr,Fi,Wt),Vo=nn(Hr,kr,[ki],Zr),Go=(0,Dt.Z)(Vo,2),Yo=Go[0],Ro=Go[1],Lo=function(xo,Ua,ou){if(Ji){var Dd=(0,it.Z)({},ou);delete Dd.range,Ji(Jo(xo),Jo(Ua),Dd)}},oa=function(xo){lr==null||lr(Jo(xo))},wa=vr(Fr,Fi,tn,!1,Qn,ri,jn,Lo,oa),zo=(0,Dt.Z)(wa,5),Oa=zo[0],bo=zo[1],yo=zo[2],vo=zo[3],Qo=zo[4],ro=yo(),ta=bn([ki]),wr=(0,Dt.Z)(ta,4),ur=wr[0],Dr=wr[1],Sr=wr[2],vi=wr[3],Do=function(xo){Dr(!0),eo==null||eo(xo,{})},pt=function(xo){Dr(!1),Xr==null||Xr(xo,{})},zn=(0,Mt.C8)(Er,{value:ii}),ha=(0,Dt.Z)(zn,2),ga=ha[0],aa=ha[1],sa=ga==="date"&&jr?"datetime":ga,ya=ar(Er,ga,Rr,xr),Pa=xi&&function(Oo,xo){xi(Jo(Oo),Jo(xo))},hs=hr((0,it.Z)((0,it.Z)({},lt),{},{onChange:Pa}),Oa,bo,yo,vo,[],tn,ur,Yo,Wn),da=(0,Dt.Z)(hs,2),qr=da[1],Ya=ft(ro,Wn),ts=(0,Dt.Z)(Ya,2),ca=ts[0],So=ts[1],Sa=Me.useMemo(function(){return ca.some(function(Oo){return Oo})},[ca]),ds=function(xo,Ua){if(zr){var ou=(0,it.Z)((0,it.Z)({},Ua),{},{mode:Ua.mode[0]});delete ou.range,zr(xo[0],ou)}},ua=vn(Fr,Fi,ro,[ga],Yo,vi,Wt,!1,nr,Mi,be(jr==null?void 0:jr.defaultOpenValue),ds,Oi,cr),cs=(0,Dt.Z)(ua,2),za=cs[0],Dl=cs[1],Ho=(0,Mt.zX)(function(Oo,xo,Ua){if(aa(xo),Zi&&Ua!==!1){var ou=Oo||ro[ro.length-1];Zi(ou,xo)}}),Fa=function(){qr(yo()),Ro(!1,{force:!0})},To=function(xo){!ki&&!po.current.nativeElement.contains(document.activeElement)&&po.current.focus(),Ro(!0),ia==null||ia(xo)},$o=function(){qr(null),Ro(!1,{force:!0})},pa=Me.useState(null),xa=(0,Dt.Z)(pa,2),qo=xa[0],pl=xa[1],no=Me.useState(null),vu=(0,Dt.Z)(no,2),Ao=vu[0],Kl=vu[1],qs=Me.useMemo(function(){var Oo=[Ao].concat((0,nt.Z)(ro)).filter(function(xo){return xo});return Qi?Oo:Oo.slice(0,1)},[ro,Ao,Qi]),Nl=Me.useMemo(function(){return!Qi&&Ao?[Ao]:ro.filter(function(Oo){return Oo})},[ro,Ao,Qi]);Me.useEffect(function(){Yo||Kl(null)},[Yo]);var yu=Xt(_r),Su=function(xo){Kl(xo),pl("preset")},Vs=function(xo){var Ua=Qi?Po(yo(),xo):[xo],ou=qr(Ua);ou&&!Qi&&Ro(!1,{force:!0})},Yl=function(xo){Vs(xo)},Uo=function(xo){Kl(xo),pl("cell")},Gs=function(xo){Ro(!0),Do(xo)},xu=function(xo){if(Sr("panel"),!(Qi&&sa!==Er)){var Ua=Qi?Po(yo(),xo):[xo];vo(Ua),!oi&&!Vt&&Wt===sa&&Fa()}},ml=function(){Ro(!1)},Nu=At(mo,Bo,so),vl=Me.useMemo(function(){var Oo=(0,Kt.Z)(lt,!1),xo=(0,dt.Z)(lt,[].concat((0,nt.Z)(Object.keys(Oo)),["onChange","onCalendarChange","style","className","onPanelChange"]));return(0,it.Z)((0,it.Z)({},xo),{},{multiple:lt.multiple})},[lt]),No=Me.createElement(pr,(0,ye.Z)({},vl,{showNow:ya,showTime:jr,disabledDate:Bi,onFocus:Gs,onBlur:pt,picker:Er,mode:ga,internalMode:sa,onPanelChange:Ho,format:Ln,value:ro,isInvalid:Wn,onChange:null,onSelect:xu,pickerValue:za,defaultOpenValue:jr==null?void 0:jr.defaultOpenValue,onPickerValueChange:Dl,hoverValue:qs,onHover:Uo,needConfirm:oi,onSubmit:Fa,onOk:Qo,presets:yu,onPresetHover:Su,onPresetSubmit:Vs,onNow:Yl,cellRender:Nu})),Ko=function(xo){vo(xo)},ka=function(){Sr("input")},ns=function(xo){Sr("input"),Ro(!0,{inherit:!0}),Do(xo)},Qa=function(xo){Ro(!1),pt(xo)},Bl=function(xo,Ua){xo.key==="Tab"&&Fa(),Ni==null||Ni(xo,Ua)},yl=Me.useMemo(function(){return{prefixCls:ei,locale:Fi,generateConfig:Fr,button:fo.button,input:fo.input}},[ei,Fi,Fr,fo.button,fo.input]);return(0,ze.Z)(function(){Yo&&vi!==void 0&&Ho(null,Er,!1)},[Yo,vi,Er]),(0,ze.Z)(function(){var Oo=Sr();!Yo&&Oo==="input"&&(Ro(!1),Fa()),!Yo&&Vt&&!oi&&Oo==="panel"&&Fa()},[Yo]),Me.createElement(de.Provider,{value:yl},Me.createElement(me,(0,ye.Z)({},Xe(lt),{popupElement:No,popupStyle:fi.popup,popupClassName:ut.popup,visible:Yo,onClose:ml}),Me.createElement(Ft,(0,ye.Z)({},lt,{ref:po,suffixIcon:Qr,removeIcon:Ar,activeHelp:!!Ao,allHelp:!!Ao&&qo==="preset",focused:ur,onFocus:ns,onBlur:Qa,onKeyDown:Bl,onSubmit:Fa,value:Nl,maskFormat:Ln,onChange:Ko,onInputChange:ka,internalPicker:Wt,format:tn,inputReadOnly:Yr,disabled:ki,open:Yo,onOpenChange:Ro,onClick:To,onClear:$o,invalid:Sa,onInvalid:function(xo){So(xo,0)}}))))}var Rt=Me.forwardRef(Gt),on=Rt,li=on},738:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return me}});var ye=De(5016),nt=De(18082),it=De(52456),Dt=De(5883),Mt=De(92310),ze=De.n(Mt),dt=De(18929),Kt=De(10228),Et=De(26112),Me=De(59301);function zt(Se,be){var Ie=Se.disabled,Ze=Se.prefixCls,st=Se.character,Ye=Se.characterRender,Xe=Se.index,At=Se.count,ft=Se.value,Nt=Se.allowHalf,Lt=Se.focused,ln=Se.onHover,kn=Se.onClick,un=function(rn){ln(rn,Xe)},_t=function(rn){kn(rn,Xe)},hn=function(rn){rn.keyCode===Kt.Z.ENTER&&kn(rn,Xe)},vt=Xe+1,$e=new Set([Ze]);ft===0&&Xe===0&&Lt?$e.add("".concat(Ze,"-focused")):Nt&&ft+.5>=vt&&ft<vt?($e.add("".concat(Ze,"-half")),$e.add("".concat(Ze,"-active")),Lt&&$e.add("".concat(Ze,"-focused"))):(vt<=ft?$e.add("".concat(Ze,"-full")):$e.add("".concat(Ze,"-zero")),vt===ft&&Lt&&$e.add("".concat(Ze,"-focused")));var gn=typeof st=="function"?st(Se):st,ci=Me.createElement("li",{className:ze()(Array.from($e)),ref:be},Me.createElement("div",{onClick:Ie?null:_t,onKeyDown:Ie?null:hn,onMouseMove:Ie?null:un,role:"radio","aria-checked":ft>Xe?"true":"false","aria-posinset":Xe+1,"aria-setsize":At,tabIndex:Ie?-1:0},Me.createElement("div",{className:"".concat(Ze,"-first")},gn),Me.createElement("div",{className:"".concat(Ze,"-second")},gn)));return Ye&&(ci=Ye(ci,Se)),ci}var Ke=Me.forwardRef(zt);function Ht(){var Se=Me.useRef({});function be(Ze){return Se.current[Ze]}function Ie(Ze){return function(st){Se.current[Ze]=st}}return[be,Ie]}function Ne(Se){var be=Se.pageXOffset,Ie="scrollLeft";if(typeof be!="number"){var Ze=Se.document;be=Ze.documentElement[Ie],typeof be!="number"&&(be=Ze.body[Ie])}return be}function ne(Se){var be,Ie,Ze=Se.ownerDocument,st=Ze.body,Ye=Ze&&Ze.documentElement,Xe=Se.getBoundingClientRect();return be=Xe.left,Ie=Xe.top,be-=Ye.clientLeft||st.clientLeft||0,Ie-=Ye.clientTop||st.clientTop||0,{left:be,top:Ie}}function te(Se){var be=ne(Se),Ie=Se.ownerDocument,Ze=Ie.defaultView||Ie.parentWindow;return be.left+=Ne(Ze),be.left}var de=["prefixCls","className","defaultValue","value","count","allowHalf","allowClear","keyboard","character","characterRender","disabled","direction","tabIndex","autoFocus","onHoverChange","onChange","onFocus","onBlur","onKeyDown","onMouseLeave"];function le(Se,be){var Ie=Se.prefixCls,Ze=Ie===void 0?"rc-rate":Ie,st=Se.className,Ye=Se.defaultValue,Xe=Se.value,At=Se.count,ft=At===void 0?5:At,Nt=Se.allowHalf,Lt=Nt===void 0?!1:Nt,ln=Se.allowClear,kn=ln===void 0?!0:ln,un=Se.keyboard,_t=un===void 0?!0:un,hn=Se.character,vt=hn===void 0?"\u2605":hn,$e=Se.characterRender,gn=Se.disabled,ci=Se.direction,Fn=ci===void 0?"ltr":ci,rn=Se.tabIndex,Xn=rn===void 0?0:rn,Nn=Se.autoFocus,mi=Se.onHoverChange,Zt=Se.onChange,Rn=Se.onFocus,wt=Se.onBlur,Ai=Se.onKeyDown,Kn=Se.onMouseLeave,je=(0,Dt.Z)(Se,de),Le=Ht(),we=(0,it.Z)(Le,2),Be=we[0],Ge=we[1],ke=Me.useRef(null),et=function(){if(!gn){var Xi;(Xi=ke.current)===null||Xi===void 0||Xi.focus()}};Me.useImperativeHandle(be,function(){return{focus:et,blur:function(){if(!gn){var Xi;(Xi=ke.current)===null||Xi===void 0||Xi.blur()}}}});var an=(0,dt.Z)(Ye||0,{value:Xe}),Bt=(0,it.Z)(an,2),Ut=Bt[0],gt=Bt[1],Pt=(0,dt.Z)(null),Tt=(0,it.Z)(Pt,2),Yt=Tt[0],dn=Tt[1],On=function(Xi,yr){var Ce=Fn==="rtl",Sn=Xi+1;if(Lt){var Gn=Be(Xi),dr=te(Gn),or=Gn.clientWidth;(Ce&&yr-dr>or/2||!Ce&&yr-dr<or/2)&&(Sn-=.5)}return Sn},wn=function(Xi){gt(Xi),Zt==null||Zt(Xi)},nn=Me.useState(!1),jt=(0,it.Z)(nn,2),Xt=jt[0],pn=jt[1],bn=function(){pn(!0),Rn==null||Rn()},Un=function(){pn(!1),wt==null||wt()},ti=Me.useState(null),pi=(0,it.Z)(ti,2),vn=pi[0],wi=pi[1],Yi=function(Xi,yr){var Ce=On(yr,Xi.pageX);Ce!==Yt&&(wi(Ce),dn(null)),mi==null||mi(Ce)},gr=function(Xi){gn||(wi(null),dn(null),mi==null||mi(void 0)),Xi&&(Kn==null||Kn(Xi))},rr=function(Xi,yr){var Ce=On(yr,Xi.pageX),Sn=!1;kn&&(Sn=Ce===Ut),gr(),wn(Sn?0:Ce),dn(Sn?Ce:null)},tr=function(Xi){var yr=Xi.keyCode,Ce=Fn==="rtl",Sn=Lt?.5:1;_t&&(yr===Kt.Z.RIGHT&&Ut<ft&&!Ce?(wn(Ut+Sn),Xi.preventDefault()):yr===Kt.Z.LEFT&&Ut>0&&!Ce||yr===Kt.Z.RIGHT&&Ut>0&&Ce?(wn(Ut-Sn),Xi.preventDefault()):yr===Kt.Z.LEFT&&Ut<ft&&Ce&&(wn(Ut+Sn),Xi.preventDefault())),Ai==null||Ai(Xi)};Me.useEffect(function(){Nn&&!gn&&et()},[]);var vr=new Array(ft).fill(0).map(function(ar,Xi){return Me.createElement(Ke,{ref:Ge(Xi),index:Xi,count:ft,disabled:gn,prefixCls:"".concat(Ze,"-star"),allowHalf:Lt,value:vn===null?Ut:vn,onClick:rr,onHover:Yi,key:ar||Xi,character:vt,characterRender:$e,focused:Xt})}),hr=ze()(Ze,st,(0,nt.Z)((0,nt.Z)({},"".concat(Ze,"-disabled"),gn),"".concat(Ze,"-rtl"),Fn==="rtl"));return Me.createElement("ul",(0,ye.Z)({className:hr,onMouseLeave:gr,tabIndex:gn?-1:Xn,onFocus:gn?null:bn,onBlur:gn?null:Un,onKeyDown:gn?null:tr,ref:ke},(0,Et.Z)(je,{aria:!0,data:!0,attr:!0})),vr)}var ge=Me.forwardRef(le),me=ge},6551:function(Jn,gi,De){"use strict";De.d(gi,{ZP:function(){return dt}});var ye=De(52456),nt=De(59301),it=De(47273),Dt=0,Mt=(0,it.Z)();function ze(){var Kt;return Mt?(Kt=Dt,Dt+=1):Kt="TEST_OR_SSR",Kt}function dt(Kt){var Et=nt.useState(),Me=(0,ye.Z)(Et,2),zt=Me[0],Ke=Me[1];return nt.useEffect(function(){Ke("rc_select_".concat(ze()))},[]),Kt||zt}},37463:function(Jn,gi,De){"use strict";De.d(gi,{Ac:function(){return pn},Xo:function(){return Un},Wx:function(){return pi},ZP:function(){return fr},lk:function(){return me}});var ye=De(5016),nt=De(92393),it=De(18082),Dt=De(20049),Mt=De(52456),ze=De(5883),dt=De(10928),Kt=De(18929),Et=De(48736),Me=De(59301),zt=De(92310),Ke=De.n(zt),Ht=De(34280),Ne=De(49658),ne=De(8654),te=function(mt){var Dn=mt.className,An=mt.customizeIcon,Ot=mt.customizeIconProps,Bn=mt.children,Hn=mt.onMouseDown,_n=mt.onClick,Ei=typeof An=="function"?An(Ot):An;return Me.createElement("span",{className:Dn,onMouseDown:function(Pi){Pi.preventDefault(),Hn==null||Hn(Pi)},style:{userSelect:"none",WebkitUserSelect:"none"},unselectable:"on",onClick:_n,"aria-hidden":!0},Ei!==void 0?Ei:Me.createElement("span",{className:Ke()(Dn.split(/\s+/).map(function(si){return"".concat(si,"-icon")}))},Bn))},de=te,le=function(mt,Dn,An,Ot,Bn){var Hn=arguments.length>5&&arguments[5]!==void 0?arguments[5]:!1,_n=arguments.length>6?arguments[6]:void 0,Ei=arguments.length>7?arguments[7]:void 0,si=Me.useMemo(function(){if((0,dt.Z)(Ot)==="object")return Ot.clearIcon;if(Bn)return Bn},[Ot,Bn]),Pi=Me.useMemo(function(){return!!(!Hn&&Ot&&(An.length||_n)&&!(Ei==="combobox"&&_n===""))},[Ot,Hn,An.length,_n,Ei]);return{allowClear:Pi,clearIcon:Me.createElement(de,{className:"".concat(mt,"-clear"),onMouseDown:Dn,customizeIcon:si},"\xD7")}},ge=Me.createContext(null);function me(){return Me.useContext(ge)}function Se(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:10,mt=Me.useState(!1),Dn=(0,Mt.Z)(mt,2),An=Dn[0],Ot=Dn[1],Bn=Me.useRef(null),Hn=function(){window.clearTimeout(Bn.current)};Me.useEffect(function(){return Hn},[]);var _n=function(si,Pi){Hn(),Bn.current=window.setTimeout(function(){Ot(si),Pi&&Pi()},Ve)};return[An,_n,Hn]}function be(){var Ve=arguments.length>0&&arguments[0]!==void 0?arguments[0]:250,mt=Me.useRef(null),Dn=Me.useRef(null);Me.useEffect(function(){return function(){window.clearTimeout(Dn.current)}},[]);function An(Ot){(Ot||mt.current===null)&&(mt.current=Ot),window.clearTimeout(Dn.current),Dn.current=window.setTimeout(function(){mt.current=null},Ve)}return[function(){return mt.current},An]}function Ie(Ve,mt,Dn,An){var Ot=Me.useRef(null);Ot.current={open:mt,triggerOpen:Dn,customizedTrigger:An},Me.useEffect(function(){function Bn(Hn){var _n;if(!((_n=Ot.current)!==null&&_n!==void 0&&_n.customizedTrigger)){var Ei=Hn.target;Ei.shadowRoot&&Hn.composed&&(Ei=Hn.composedPath()[0]||Ei),Ot.current.open&&Ve().filter(function(si){return si}).every(function(si){return!si.contains(Ei)&&si!==Ei})&&Ot.current.triggerOpen(!1)}}return window.addEventListener("mousedown",Bn),function(){return window.removeEventListener("mousedown",Bn)}},[])}var Ze=De(10228);function st(Ve){return Ve&&![Ze.Z.ESC,Ze.Z.SHIFT,Ze.Z.BACKSPACE,Ze.Z.TAB,Ze.Z.WIN_KEY,Ze.Z.ALT,Ze.Z.META,Ze.Z.WIN_KEY_RIGHT,Ze.Z.CTRL,Ze.Z.SEMICOLON,Ze.Z.EQUALS,Ze.Z.CAPS_LOCK,Ze.Z.CONTEXT_MENU,Ze.Z.F1,Ze.Z.F2,Ze.Z.F3,Ze.Z.F4,Ze.Z.F5,Ze.Z.F6,Ze.Z.F7,Ze.Z.F8,Ze.Z.F9,Ze.Z.F10,Ze.Z.F11,Ze.Z.F12].includes(Ve)}var Ye=De(26112),Xe=De(11780);function At(Ve,mt,Dn){var An=(0,Dt.Z)((0,Dt.Z)({},Ve),Dn?mt:{});return Object.keys(mt).forEach(function(Ot){var Bn=mt[Ot];typeof Bn=="function"&&(An[Ot]=function(){for(var Hn,_n=arguments.length,Ei=new Array(_n),si=0;si<_n;si++)Ei[si]=arguments[si];return Bn.apply(void 0,Ei),(Hn=Ve[Ot])===null||Hn===void 0?void 0:Hn.call.apply(Hn,[Ve].concat(Ei))})}),An}var ft=At,Nt=["prefixCls","id","inputElement","autoFocus","autoComplete","editable","activeDescendantId","value","open","attrs"],Lt=function(mt,Dn){var An=mt.prefixCls,Ot=mt.id,Bn=mt.inputElement,Hn=mt.autoFocus,_n=mt.autoComplete,Ei=mt.editable,si=mt.activeDescendantId,Pi=mt.value,yi=mt.open,_i=mt.attrs,Ri=(0,ze.Z)(mt,Nt),Di=Bn||Me.createElement("input",null),sn=Di,pr=sn.ref,Mr=sn.props;return(0,Et.Kp)(!("maxLength"in Di.props),"Passing 'maxLength' to input element directly may not work because input in BaseSelect is controlled."),Di=Me.cloneElement(Di,(0,Dt.Z)((0,Dt.Z)((0,Dt.Z)({type:"search"},ft(Ri,Mr,!0)),{},{id:Ot,ref:(0,ne.sQ)(Dn,pr),autoComplete:_n||"off",autoFocus:Hn,className:Ke()("".concat(An,"-selection-search-input"),Mr==null?void 0:Mr.className),role:"combobox","aria-expanded":yi||!1,"aria-haspopup":"listbox","aria-owns":"".concat(Ot,"_list"),"aria-autocomplete":"list","aria-controls":"".concat(Ot,"_list"),"aria-activedescendant":yi?si:void 0},_i),{},{value:Ei?Pi:"",readOnly:!Ei,unselectable:Ei?null:"on",style:(0,Dt.Z)((0,Dt.Z)({},Mr.style),{},{opacity:Ei?null:0})})),Di},ln=Me.forwardRef(Lt),kn=ln;function un(Ve){return Array.isArray(Ve)?Ve:Ve!==void 0?[Ve]:[]}var _t=typeof window!="undefined"&&window.document&&window.document.documentElement,hn=_t;function vt(Ve){return Ve!=null}function $e(Ve){return!Ve&&Ve!==0}function gn(Ve){return["string","number"].includes((0,dt.Z)(Ve))}function ci(Ve){var mt=void 0;return Ve&&(gn(Ve.title)?mt=Ve.title.toString():gn(Ve.label)&&(mt=Ve.label.toString())),mt}function Fn(Ve,mt){hn?Me.useLayoutEffect(Ve,mt):Me.useEffect(Ve,mt)}function rn(Ve){var mt;return(mt=Ve.key)!==null&&mt!==void 0?mt:Ve.value}var Xn=function(mt){mt.preventDefault(),mt.stopPropagation()},Nn=function(mt){var Dn=mt.id,An=mt.prefixCls,Ot=mt.values,Bn=mt.open,Hn=mt.searchValue,_n=mt.autoClearSearchValue,Ei=mt.inputRef,si=mt.placeholder,Pi=mt.disabled,yi=mt.mode,_i=mt.showSearch,Ri=mt.autoFocus,Di=mt.autoComplete,sn=mt.activeDescendantId,pr=mt.tabIndex,Mr=mt.removeIcon,Kr=mt.maxTagCount,En=mt.maxTagTextLength,Si=mt.maxTagPlaceholder,Vi=Si===void 0?function(Gt){return"+ ".concat(Gt.length," ...")}:Si,Wi=mt.tagRender,$i=mt.onToggleOpen,Pr=mt.onRemove,br=mt.onInputChange,Hi=mt.onInputPaste,er=mt.onInputKeyDown,Gi=mt.onInputMouseDown,cn=mt.onInputCompositionStart,sr=mt.onInputCompositionEnd,yn=mt.onInputBlur,bi=Me.useRef(null),Cr=(0,Me.useState)(0),Nr=(0,Mt.Z)(Cr,2),to=Nr[0],Ur=Nr[1],Br=(0,Me.useState)(!1),ao=(0,Mt.Z)(Br,2),Qt=ao[0],Vn=ao[1],$t="".concat(An,"-selection"),Te=Bn||yi==="multiple"&&_n===!1||yi==="tags"?Hn:"",He=yi==="tags"||yi==="multiple"&&_n===!1||_i&&(Bn||Qt);Fn(function(){Ur(bi.current.scrollWidth)},[Te]);var qe=function(Rt,on,li,Ee,Ue){return Me.createElement("span",{title:ci(Rt),className:Ke()("".concat($t,"-item"),(0,it.Z)({},"".concat($t,"-item-disabled"),li))},Me.createElement("span",{className:"".concat($t,"-item-content")},on),Ee&&Me.createElement(de,{className:"".concat($t,"-item-remove"),onMouseDown:Xn,onClick:Ue,customizeIcon:Mr},"\xD7"))},St=function(Rt,on,li,Ee,Ue,Re){var ot=function(Wt){Xn(Wt),$i(!Bn)};return Me.createElement("span",{onMouseDown:ot},Wi({label:on,value:Rt,disabled:li,closable:Ee,onClose:Ue,isMaxTag:!!Re}))},It=function(Rt){var on=Rt.disabled,li=Rt.label,Ee=Rt.value,Ue=!Pi&&!on,Re=li;if(typeof En=="number"&&(typeof li=="string"||typeof li=="number")){var ot=String(Re);ot.length>En&&(Re="".concat(ot.slice(0,En),"..."))}var lt=function(Vt){Vt&&Vt.stopPropagation(),Pr(Rt)};return typeof Wi=="function"?St(Ee,Re,on,Ue,lt):qe(Rt,Re,on,Ue,lt)},en=function(Rt){if(!Ot.length)return null;var on=typeof Vi=="function"?Vi(Rt):Vi;return typeof Wi=="function"?St(void 0,on,!1,!1,void 0,!0):qe({title:on},on,!1)},tt=Me.createElement("div",{className:"".concat($t,"-search"),style:{width:to},onFocus:function(){Vn(!0)},onBlur:function(){Vn(!1)}},Me.createElement(kn,{ref:Ei,open:Bn,prefixCls:An,id:Dn,inputElement:null,disabled:Pi,autoFocus:Ri,autoComplete:Di,editable:He,activeDescendantId:sn,value:Te,onKeyDown:er,onMouseDown:Gi,onChange:br,onPaste:Hi,onCompositionStart:cn,onCompositionEnd:sr,onBlur:yn,tabIndex:pr,attrs:(0,Ye.Z)(mt,!0)}),Me.createElement("span",{ref:bi,className:"".concat($t,"-search-mirror"),"aria-hidden":!0},Te,"\xA0")),Ft=Me.createElement(Xe.Z,{prefixCls:"".concat($t,"-overflow"),data:Ot,renderItem:It,renderRest:en,suffix:tt,itemKey:rn,maxCount:Kr});return Me.createElement("span",{className:"".concat($t,"-wrap")},Ft,!Ot.length&&!Te&&Me.createElement("span",{className:"".concat($t,"-placeholder")},si))},mi=Nn,Zt=function(mt){var Dn=mt.inputElement,An=mt.prefixCls,Ot=mt.id,Bn=mt.inputRef,Hn=mt.disabled,_n=mt.autoFocus,Ei=mt.autoComplete,si=mt.activeDescendantId,Pi=mt.mode,yi=mt.open,_i=mt.values,Ri=mt.placeholder,Di=mt.tabIndex,sn=mt.showSearch,pr=mt.searchValue,Mr=mt.activeValue,Kr=mt.maxLength,En=mt.onInputKeyDown,Si=mt.onInputMouseDown,Vi=mt.onInputChange,Wi=mt.onInputPaste,$i=mt.onInputCompositionStart,Pr=mt.onInputCompositionEnd,br=mt.onInputBlur,Hi=mt.title,er=Me.useState(!1),Gi=(0,Mt.Z)(er,2),cn=Gi[0],sr=Gi[1],yn=Pi==="combobox",bi=yn||sn,Cr=_i[0],Nr=pr||"";yn&&Mr&&!cn&&(Nr=Mr),Me.useEffect(function(){yn&&sr(!1)},[yn,Mr]);var to=Pi!=="combobox"&&!yi&&!sn?!1:!!Nr,Ur=Hi===void 0?ci(Cr):Hi,Br=Me.useMemo(function(){return Cr?null:Me.createElement("span",{className:"".concat(An,"-selection-placeholder"),style:to?{visibility:"hidden"}:void 0},Ri)},[Cr,to,Ri,An]);return Me.createElement("span",{className:"".concat(An,"-selection-wrap")},Me.createElement("span",{className:"".concat(An,"-selection-search")},Me.createElement(kn,{ref:Bn,prefixCls:An,id:Ot,open:yi,inputElement:Dn,disabled:Hn,autoFocus:_n,autoComplete:Ei,editable:bi,activeDescendantId:si,value:Nr,onKeyDown:En,onMouseDown:Si,onChange:function(Qt){sr(!0),Vi(Qt)},onPaste:Wi,onCompositionStart:$i,onCompositionEnd:Pr,onBlur:br,tabIndex:Di,attrs:(0,Ye.Z)(mt,!0),maxLength:yn?Kr:void 0})),!yn&&Cr?Me.createElement("span",{className:"".concat(An,"-selection-item"),title:Ur,style:to?{visibility:"hidden"}:void 0},Cr.label):null,Br)},Rn=Zt,wt=function(mt,Dn){var An=(0,Me.useRef)(null),Ot=(0,Me.useRef)(!1),Bn=mt.prefixCls,Hn=mt.open,_n=mt.mode,Ei=mt.showSearch,si=mt.tokenWithEnter,Pi=mt.disabled,yi=mt.prefix,_i=mt.autoClearSearchValue,Ri=mt.onSearch,Di=mt.onSearchSubmit,sn=mt.onToggleOpen,pr=mt.onInputKeyDown,Mr=mt.onInputBlur,Kr=mt.domRef;Me.useImperativeHandle(Dn,function(){return{focus:function(Ur){An.current.focus(Ur)},blur:function(){An.current.blur()}}});var En=be(0),Si=(0,Mt.Z)(En,2),Vi=Si[0],Wi=Si[1],$i=function(Ur){var Br=Ur.which,ao=An.current instanceof HTMLTextAreaElement;!ao&&Hn&&(Br===Ze.Z.UP||Br===Ze.Z.DOWN)&&Ur.preventDefault(),pr&&pr(Ur),Br===Ze.Z.ENTER&&_n==="tags"&&!Ot.current&&!Hn&&(Di==null||Di(Ur.target.value)),!(ao&&!Hn&&~[Ze.Z.UP,Ze.Z.DOWN,Ze.Z.LEFT,Ze.Z.RIGHT].indexOf(Br))&&st(Br)&&sn(!0)},Pr=function(){Wi(!0)},br=(0,Me.useRef)(null),Hi=function(Ur){Ri(Ur,!0,Ot.current)!==!1&&sn(!0)},er=function(){Ot.current=!0},Gi=function(Ur){Ot.current=!1,_n!=="combobox"&&Hi(Ur.target.value)},cn=function(Ur){var Br=Ur.target.value;if(si&&br.current&&/[\r\n]/.test(br.current)){var ao=br.current.replace(/[\r\n]+$/,"").replace(/\r\n/g," ").replace(/[\r\n]/g," ");Br=Br.replace(ao,br.current)}br.current=null,Hi(Br)},sr=function(Ur){var Br=Ur.clipboardData,ao=Br==null?void 0:Br.getData("text");br.current=ao||""},yn=function(Ur){var Br=Ur.target;if(Br!==An.current){var ao=document.body.style.msTouchAction!==void 0;ao?setTimeout(function(){An.current.focus()}):An.current.focus()}},bi=function(Ur){var Br=Vi();Ur.target!==An.current&&!Br&&!(_n==="combobox"&&Pi)&&Ur.preventDefault(),(_n!=="combobox"&&(!Ei||!Br)||!Hn)&&(Hn&&_i!==!1&&Ri("",!0,!1),sn())},Cr={inputRef:An,onInputKeyDown:$i,onInputMouseDown:Pr,onInputChange:cn,onInputPaste:sr,onInputCompositionStart:er,onInputCompositionEnd:Gi,onInputBlur:Mr},Nr=_n==="multiple"||_n==="tags"?Me.createElement(mi,(0,ye.Z)({},mt,Cr)):Me.createElement(Rn,(0,ye.Z)({},mt,Cr));return Me.createElement("div",{ref:Kr,className:"".concat(Bn,"-selector"),onClick:yn,onMouseDown:bi},yi&&Me.createElement("div",{className:"".concat(Bn,"-prefix")},yi),Nr)},Ai=Me.forwardRef(wt),Kn=Ai,je=De(65352),Le=["prefixCls","disabled","visible","children","popupElement","animation","transitionName","dropdownStyle","dropdownClassName","direction","placement","builtinPlacements","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","getPopupContainer","empty","getTriggerDOMNode","onPopupVisibleChange","onPopupMouseEnter"],we=function(mt){var Dn=mt===!0?0:1;return{bottomLeft:{points:["tl","bl"],offset:[0,4],overflow:{adjustX:Dn,adjustY:1},htmlRegion:"scroll"},bottomRight:{points:["tr","br"],offset:[0,4],overflow:{adjustX:Dn,adjustY:1},htmlRegion:"scroll"},topLeft:{points:["bl","tl"],offset:[0,-4],overflow:{adjustX:Dn,adjustY:1},htmlRegion:"scroll"},topRight:{points:["br","tr"],offset:[0,-4],overflow:{adjustX:Dn,adjustY:1},htmlRegion:"scroll"}}},Be=function(mt,Dn){var An=mt.prefixCls,Ot=mt.disabled,Bn=mt.visible,Hn=mt.children,_n=mt.popupElement,Ei=mt.animation,si=mt.transitionName,Pi=mt.dropdownStyle,yi=mt.dropdownClassName,_i=mt.direction,Ri=_i===void 0?"ltr":_i,Di=mt.placement,sn=mt.builtinPlacements,pr=mt.dropdownMatchSelectWidth,Mr=mt.dropdownRender,Kr=mt.dropdownAlign,En=mt.getPopupContainer,Si=mt.empty,Vi=mt.getTriggerDOMNode,Wi=mt.onPopupVisibleChange,$i=mt.onPopupMouseEnter,Pr=(0,ze.Z)(mt,Le),br="".concat(An,"-dropdown"),Hi=_n;Mr&&(Hi=Mr(_n));var er=Me.useMemo(function(){return sn||we(pr)},[sn,pr]),Gi=Ei?"".concat(br,"-").concat(Ei):si,cn=typeof pr=="number",sr=Me.useMemo(function(){return cn?null:pr===!1?"minWidth":"width"},[pr,cn]),yn=Pi;cn&&(yn=(0,Dt.Z)((0,Dt.Z)({},yn),{},{width:pr}));var bi=Me.useRef(null);return Me.useImperativeHandle(Dn,function(){return{getPopupElement:function(){var Nr;return(Nr=bi.current)===null||Nr===void 0?void 0:Nr.popupElement}}}),Me.createElement(je.Z,(0,ye.Z)({},Pr,{showAction:Wi?["click"]:[],hideAction:Wi?["click"]:[],popupPlacement:Di||(Ri==="rtl"?"bottomRight":"bottomLeft"),builtinPlacements:er,prefixCls:br,popupTransitionName:Gi,popup:Me.createElement("div",{onMouseEnter:$i},Hi),ref:bi,stretch:sr,popupAlign:Kr,popupVisible:Bn,getPopupContainer:En,popupClassName:Ke()(yi,(0,it.Z)({},"".concat(br,"-empty"),Si)),popupStyle:yn,getTriggerDOMNode:Vi,onPopupVisibleChange:Wi}),Hn)},Ge=Me.forwardRef(Be),ke=Ge,et=De(74604);function an(Ve,mt){var Dn=Ve.key,An;return"value"in Ve&&(An=Ve.value),Dn!=null?Dn:An!==void 0?An:"rc-index-key-".concat(mt)}function Bt(Ve){return typeof Ve!="undefined"&&!Number.isNaN(Ve)}function Ut(Ve,mt){var Dn=Ve||{},An=Dn.label,Ot=Dn.value,Bn=Dn.options,Hn=Dn.groupLabel,_n=An||(mt?"children":"label");return{label:_n,value:Ot||"value",options:Bn||"options",groupLabel:Hn||_n}}function gt(Ve){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Dn=mt.fieldNames,An=mt.childrenAsData,Ot=[],Bn=Ut(Dn,!1),Hn=Bn.label,_n=Bn.value,Ei=Bn.options,si=Bn.groupLabel;function Pi(yi,_i){Array.isArray(yi)&&yi.forEach(function(Ri){if(_i||!(Ei in Ri)){var Di=Ri[_n];Ot.push({key:an(Ri,Ot.length),groupOption:_i,data:Ri,label:Ri[Hn],value:Di})}else{var sn=Ri[si];sn===void 0&&An&&(sn=Ri.label),Ot.push({key:an(Ri,Ot.length),group:!0,data:Ri,label:sn}),Pi(Ri[Ei],!0)}})}return Pi(Ve,!1),Ot}function Pt(Ve){var mt=(0,Dt.Z)({},Ve);return"props"in mt||Object.defineProperty(mt,"props",{get:function(){return(0,Et.ZP)(!1,"Return type is option instead of Option instance. Please read value directly instead of reading from `props`."),mt}}),mt}var Tt=function(mt,Dn,An){if(!Dn||!Dn.length)return null;var Ot=!1,Bn=function _n(Ei,si){var Pi=(0,et.Z)(si),yi=Pi[0],_i=Pi.slice(1);if(!yi)return[Ei];var Ri=Ei.split(yi);return Ot=Ot||Ri.length>1,Ri.reduce(function(Di,sn){return[].concat((0,nt.Z)(Di),(0,nt.Z)(_n(sn,_i)))},[]).filter(Boolean)},Hn=Bn(mt,Dn);return Ot?typeof An!="undefined"?Hn.slice(0,An):Hn:null},Yt=Me.createContext(null),dn=Yt;function On(Ve){var mt=Ve.visible,Dn=Ve.values;if(!mt)return null;var An=50;return Me.createElement("span",{"aria-live":"polite",style:{width:0,height:0,position:"absolute",overflow:"hidden",opacity:0}},"".concat(Dn.slice(0,An).map(function(Ot){var Bn=Ot.label,Hn=Ot.value;return["number","string"].includes((0,dt.Z)(Bn))?Bn:Hn}).join(", ")),Dn.length>An?", ...":null)}var wn=["id","prefixCls","className","showSearch","tagRender","direction","omitDomProps","displayValues","onDisplayValuesChange","emptyOptions","notFoundContent","onClear","mode","disabled","loading","getInputElement","getRawInputElement","open","defaultOpen","onDropdownVisibleChange","activeValue","onActiveValueChange","activeDescendantId","searchValue","autoClearSearchValue","onSearch","onSearchSplit","tokenSeparators","allowClear","prefix","suffixIcon","clearIcon","OptionList","animation","transitionName","dropdownStyle","dropdownClassName","dropdownMatchSelectWidth","dropdownRender","dropdownAlign","placement","builtinPlacements","getPopupContainer","showAction","onFocus","onBlur","onKeyUp","onKeyDown","onMouseDown"],nn=["value","onChange","removeIcon","placeholder","autoFocus","maxTagCount","maxTagTextLength","maxTagPlaceholder","choiceTransitionName","onInputKeyDown","onPopupScroll","tabIndex"],jt=function(mt){return mt==="tags"||mt==="multiple"},Xt=Me.forwardRef(function(Ve,mt){var Dn,An=Ve.id,Ot=Ve.prefixCls,Bn=Ve.className,Hn=Ve.showSearch,_n=Ve.tagRender,Ei=Ve.direction,si=Ve.omitDomProps,Pi=Ve.displayValues,yi=Ve.onDisplayValuesChange,_i=Ve.emptyOptions,Ri=Ve.notFoundContent,Di=Ri===void 0?"Not Found":Ri,sn=Ve.onClear,pr=Ve.mode,Mr=Ve.disabled,Kr=Ve.loading,En=Ve.getInputElement,Si=Ve.getRawInputElement,Vi=Ve.open,Wi=Ve.defaultOpen,$i=Ve.onDropdownVisibleChange,Pr=Ve.activeValue,br=Ve.onActiveValueChange,Hi=Ve.activeDescendantId,er=Ve.searchValue,Gi=Ve.autoClearSearchValue,cn=Ve.onSearch,sr=Ve.onSearchSplit,yn=Ve.tokenSeparators,bi=Ve.allowClear,Cr=Ve.prefix,Nr=Ve.suffixIcon,to=Ve.clearIcon,Ur=Ve.OptionList,Br=Ve.animation,ao=Ve.transitionName,Qt=Ve.dropdownStyle,Vn=Ve.dropdownClassName,$t=Ve.dropdownMatchSelectWidth,Te=Ve.dropdownRender,He=Ve.dropdownAlign,qe=Ve.placement,St=Ve.builtinPlacements,It=Ve.getPopupContainer,en=Ve.showAction,tt=en===void 0?[]:en,Ft=Ve.onFocus,Gt=Ve.onBlur,Rt=Ve.onKeyUp,on=Ve.onKeyDown,li=Ve.onMouseDown,Ee=(0,ze.Z)(Ve,wn),Ue=jt(pr),Re=(Hn!==void 0?Hn:Ue)||pr==="combobox",ot=(0,Dt.Z)({},Ee);nn.forEach(function(ur){delete ot[ur]}),si==null||si.forEach(function(ur){delete ot[ur]});var lt=Me.useState(!1),Wt=(0,Mt.Z)(lt,2),Vt=Wt[0],tn=Wt[1];Me.useEffect(function(){tn((0,Ne.Z)())},[]);var Ln=Me.useRef(null),Wn=Me.useRef(null),mn=Me.useRef(null),ei=Me.useRef(null),fi=Me.useRef(null),ut=Me.useRef(!1),Qn=Se(),ri=(0,Mt.Z)(Qn,3),jn=ri[0],oi=ri[1],xi=ri[2];Me.useImperativeHandle(mt,function(){var ur,Dr;return{focus:(ur=ei.current)===null||ur===void 0?void 0:ur.focus,blur:(Dr=ei.current)===null||Dr===void 0?void 0:Dr.blur,scrollTo:function(vi){var Do;return(Do=fi.current)===null||Do===void 0?void 0:Do.scrollTo(vi)},nativeElement:Ln.current||Wn.current}});var Ni=Me.useMemo(function(){var ur;if(pr!=="combobox")return er;var Dr=(ur=Pi[0])===null||ur===void 0?void 0:ur.value;return typeof Dr=="string"||typeof Dr=="number"?String(Dr):""},[er,pr,Pi]),ki=pr==="combobox"&&typeof En=="function"&&En()||null,Bi=typeof Si=="function"&&Si(),Oi=(0,ne.x1)(Wn,Bi==null||(Dn=Bi.props)===null||Dn===void 0?void 0:Dn.ref),cr=Me.useState(!1),kr=(0,Mt.Z)(cr,2),Hr=kr[0],Zr=kr[1];(0,Ht.Z)(function(){Zr(!0)},[]);var Fi=(0,Kt.Z)(!1,{defaultValue:Wi,value:Vi}),Fr=(0,Mt.Z)(Fi,2),Er=Fr[0],Rr=Fr[1],xr=Hr?Er:!1,jr=!Di&&_i;(Mr||jr&&xr&&pr==="combobox")&&(xr=!1);var ii=jr?!1:xr,Zi=Me.useCallback(function(ur){var Dr=ur!==void 0?ur:!xr;Mr||(Rr(Dr),xr!==Dr&&($i==null||$i(Dr)))},[Mr,xr,Rr,$i]),Ji=Me.useMemo(function(){return(yn||[]).some(function(ur){return[`
|
|
`,`\r
|
|
`].includes(ur)})},[yn]),lr=Me.useContext(dn)||{},Qi=lr.maxCount,nr=lr.rawValues,Mi=function(Dr,Sr,vi){if(!(Ue&&Bt(Qi)&&(nr==null?void 0:nr.size)>=Qi)){var Do=!0,pt=Dr;br==null||br(null);var zn=Tt(Dr,yn,Bt(Qi)?Qi-nr.size:void 0),ha=vi?null:zn;return pr!=="combobox"&&ha&&(pt="",sr==null||sr(ha),Zi(!1),Do=!1),cn&&Ni!==pt&&cn(pt,{source:Sr?"typing":"effect"}),Do}},zr=function(Dr){!Dr||!Dr.trim()||cn(Dr,{source:"submit"})};Me.useEffect(function(){!xr&&!Ue&&pr!=="combobox"&&Mi("",!1,!1)},[xr]),Me.useEffect(function(){Er&&Mr&&Rr(!1),Mr&&!ut.current&&oi(!1)},[Mr]);var Yr=be(),Qr=(0,Mt.Z)(Yr,2),Ar=Qr[0],eo=Qr[1],Xr=Me.useRef(!1),_r=function(Dr){var Sr=Ar(),vi=Dr.key,Do=vi==="Enter";if(Do&&(pr!=="combobox"&&Dr.preventDefault(),xr||Zi(!0)),eo(!!Ni),vi==="Backspace"&&!Sr&&Ue&&!Ni&&Pi.length){for(var pt=(0,nt.Z)(Pi),zn=null,ha=pt.length-1;ha>=0;ha-=1){var ga=pt[ha];if(!ga.disabled){pt.splice(ha,1),zn=ga;break}}zn&&yi(pt,{type:"remove",values:[zn]})}for(var aa=arguments.length,sa=new Array(aa>1?aa-1:0),ya=1;ya<aa;ya++)sa[ya-1]=arguments[ya];if(xr&&(!Do||!Xr.current)){var Pa;Do&&(Xr.current=!0),(Pa=fi.current)===null||Pa===void 0||Pa.onKeyDown.apply(Pa,[Dr].concat(sa))}on==null||on.apply(void 0,[Dr].concat(sa))},fo=function(Dr){for(var Sr=arguments.length,vi=new Array(Sr>1?Sr-1:0),Do=1;Do<Sr;Do++)vi[Do-1]=arguments[Do];if(xr){var pt;(pt=fi.current)===null||pt===void 0||pt.onKeyUp.apply(pt,[Dr].concat(vi))}Dr.key==="Enter"&&(Xr.current=!1),Rt==null||Rt.apply(void 0,[Dr].concat(vi))},mo=function(Dr){var Sr=Pi.filter(function(vi){return vi!==Dr});yi(Sr,{type:"remove",values:[Dr]})},Bo=function(){Xr.current=!1},so=Me.useRef(!1),ia=function(){oi(!0),Mr||(Ft&&!so.current&&Ft.apply(void 0,arguments),tt.includes("focus")&&Zi(!0)),so.current=!0},po=function(){ut.current=!0,oi(!1,function(){so.current=!1,ut.current=!1,Zi(!1)}),!Mr&&(Ni&&(pr==="tags"?cn(Ni,{source:"submit"}):pr==="multiple"&&cn("",{source:"blur"})),Gt&&Gt.apply(void 0,arguments))},Jo=[];Me.useEffect(function(){return function(){Jo.forEach(function(ur){return clearTimeout(ur)}),Jo.splice(0,Jo.length)}},[]);var Po=function(Dr){var Sr,vi=Dr.target,Do=(Sr=mn.current)===null||Sr===void 0?void 0:Sr.getPopupElement();if(Do&&Do.contains(vi)){var pt=setTimeout(function(){var aa=Jo.indexOf(pt);if(aa!==-1&&Jo.splice(aa,1),xi(),!Vt&&!Do.contains(document.activeElement)){var sa;(sa=ei.current)===null||sa===void 0||sa.focus()}});Jo.push(pt)}for(var zn=arguments.length,ha=new Array(zn>1?zn-1:0),ga=1;ga<zn;ga++)ha[ga-1]=arguments[ga];li==null||li.apply(void 0,[Dr].concat(ha))},Vo=Me.useState({}),Go=(0,Mt.Z)(Vo,2),Yo=Go[1];function Ro(){Yo({})}var Lo;Bi&&(Lo=function(Dr){Zi(Dr)}),Ie(function(){var ur;return[Ln.current,(ur=mn.current)===null||ur===void 0?void 0:ur.getPopupElement()]},ii,Zi,!!Bi);var oa=Me.useMemo(function(){return(0,Dt.Z)((0,Dt.Z)({},Ve),{},{notFoundContent:Di,open:xr,triggerOpen:ii,id:An,showSearch:Re,multiple:Ue,toggleOpen:Zi})},[Ve,Di,ii,xr,An,Re,Ue,Zi]),wa=!!Nr||Kr,zo;wa&&(zo=Me.createElement(de,{className:Ke()("".concat(Ot,"-arrow"),(0,it.Z)({},"".concat(Ot,"-arrow-loading"),Kr)),customizeIcon:Nr,customizeIconProps:{loading:Kr,searchValue:Ni,open:xr,focused:jn,showSearch:Re}}));var Oa=function(){var Dr;sn==null||sn(),(Dr=ei.current)===null||Dr===void 0||Dr.focus(),yi([],{type:"clear",values:Pi}),Mi("",!1,!1)},bo=le(Ot,Oa,Pi,bi,to,Mr,Ni,pr),yo=bo.allowClear,vo=bo.clearIcon,Qo=Me.createElement(Ur,{ref:fi}),ro=Ke()(Ot,Bn,(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(Ot,"-focused"),jn),"".concat(Ot,"-multiple"),Ue),"".concat(Ot,"-single"),!Ue),"".concat(Ot,"-allow-clear"),bi),"".concat(Ot,"-show-arrow"),wa),"".concat(Ot,"-disabled"),Mr),"".concat(Ot,"-loading"),Kr),"".concat(Ot,"-open"),xr),"".concat(Ot,"-customize-input"),ki),"".concat(Ot,"-show-search"),Re)),ta=Me.createElement(ke,{ref:mn,disabled:Mr,prefixCls:Ot,visible:ii,popupElement:Qo,animation:Br,transitionName:ao,dropdownStyle:Qt,dropdownClassName:Vn,direction:Ei,dropdownMatchSelectWidth:$t,dropdownRender:Te,dropdownAlign:He,placement:qe,builtinPlacements:St,getPopupContainer:It,empty:_i,getTriggerDOMNode:function(Dr){return Wn.current||Dr},onPopupVisibleChange:Lo,onPopupMouseEnter:Ro},Bi?Me.cloneElement(Bi,{ref:Oi}):Me.createElement(Kn,(0,ye.Z)({},Ve,{domRef:Wn,prefixCls:Ot,inputElement:ki,ref:ei,id:An,prefix:Cr,showSearch:Re,autoClearSearchValue:Gi,mode:pr,activeDescendantId:Hi,tagRender:_n,values:Pi,open:xr,onToggleOpen:Zi,activeValue:Pr,searchValue:Ni,onSearch:Mi,onSearchSubmit:zr,onRemove:mo,tokenWithEnter:Ji,onInputBlur:Bo}))),wr;return Bi?wr=ta:wr=Me.createElement("div",(0,ye.Z)({className:ro},ot,{ref:Ln,onMouseDown:Po,onKeyDown:_r,onKeyUp:fo,onFocus:ia,onBlur:po}),Me.createElement(On,{visible:jn&&!xr,values:Pi}),ta,zo,yo&&vo),Me.createElement(ge.Provider,{value:oa},wr)}),pn=Xt,bn=function(){return null};bn.isSelectOptGroup=!0;var Un=bn,ti=function(){return null};ti.isSelectOption=!0;var pi=ti,vn=De(80547),wi=De(2738),Yi=De(65283);function gr(){return/(mac\sos|macintosh)/i.test(navigator.appVersion)}var rr=["disabled","title","children","style","className"];function tr(Ve){return typeof Ve=="string"||typeof Ve=="number"}var vr=function(mt,Dn){var An=me(),Ot=An.prefixCls,Bn=An.id,Hn=An.open,_n=An.multiple,Ei=An.mode,si=An.searchValue,Pi=An.toggleOpen,yi=An.notFoundContent,_i=An.onPopupScroll,Ri=Me.useContext(dn),Di=Ri.maxCount,sn=Ri.flattenOptions,pr=Ri.onActiveValue,Mr=Ri.defaultActiveFirstOption,Kr=Ri.onSelect,En=Ri.menuItemSelectedIcon,Si=Ri.rawValues,Vi=Ri.fieldNames,Wi=Ri.virtual,$i=Ri.direction,Pr=Ri.listHeight,br=Ri.listItemHeight,Hi=Ri.optionRender,er="".concat(Ot,"-item"),Gi=(0,vn.Z)(function(){return sn},[Hn,sn],function(en,tt){return tt[0]&&en[1]!==tt[1]}),cn=Me.useRef(null),sr=Me.useMemo(function(){return _n&&Bt(Di)&&(Si==null?void 0:Si.size)>=Di},[_n,Di,Si==null?void 0:Si.size]),yn=function(tt){tt.preventDefault()},bi=function(tt){var Ft;(Ft=cn.current)===null||Ft===void 0||Ft.scrollTo(typeof tt=="number"?{index:tt}:tt)},Cr=Me.useCallback(function(en){return Ei==="combobox"?!1:Si.has(en)},[Ei,(0,nt.Z)(Si).toString(),Si.size]),Nr=function(tt){for(var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:1,Gt=Gi.length,Rt=0;Rt<Gt;Rt+=1){var on=(tt+Rt*Ft+Gt)%Gt,li=Gi[on]||{},Ee=li.group,Ue=li.data;if(!Ee&&!(Ue!=null&&Ue.disabled)&&(Cr(Ue.value)||!sr))return on}return-1},to=Me.useState(function(){return Nr(0)}),Ur=(0,Mt.Z)(to,2),Br=Ur[0],ao=Ur[1],Qt=function(tt){var Ft=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;ao(tt);var Gt={source:Ft?"keyboard":"mouse"},Rt=Gi[tt];if(!Rt){pr(null,-1,Gt);return}pr(Rt.value,tt,Gt)};(0,Me.useEffect)(function(){Qt(Mr!==!1?Nr(0):-1)},[Gi.length,si]);var Vn=Me.useCallback(function(en){return Ei==="combobox"?String(en).toLowerCase()===si.toLowerCase():Si.has(en)},[Ei,si,(0,nt.Z)(Si).toString(),Si.size]);(0,Me.useEffect)(function(){var en=setTimeout(function(){if(!_n&&Hn&&Si.size===1){var Ft=Array.from(Si)[0],Gt=Gi.findIndex(function(Rt){var on=Rt.data;return si?String(on.value).startsWith(si):on.value===Ft});Gt!==-1&&(Qt(Gt),bi(Gt))}});if(Hn){var tt;(tt=cn.current)===null||tt===void 0||tt.scrollTo(void 0)}return function(){return clearTimeout(en)}},[Hn,si]);var $t=function(tt){tt!==void 0&&Kr(tt,{selected:!Si.has(tt)}),_n||Pi(!1)};if(Me.useImperativeHandle(Dn,function(){return{onKeyDown:function(tt){var Ft=tt.which,Gt=tt.ctrlKey;switch(Ft){case Ze.Z.N:case Ze.Z.P:case Ze.Z.UP:case Ze.Z.DOWN:{var Rt=0;if(Ft===Ze.Z.UP?Rt=-1:Ft===Ze.Z.DOWN?Rt=1:gr()&&Gt&&(Ft===Ze.Z.N?Rt=1:Ft===Ze.Z.P&&(Rt=-1)),Rt!==0){var on=Nr(Br+Rt,Rt);bi(on),Qt(on,!0)}break}case Ze.Z.TAB:case Ze.Z.ENTER:{var li,Ee=Gi[Br];Ee&&!(Ee!=null&&(li=Ee.data)!==null&&li!==void 0&&li.disabled)&&!sr?$t(Ee.value):$t(void 0),Hn&&tt.preventDefault();break}case Ze.Z.ESC:Pi(!1),Hn&&tt.stopPropagation()}},onKeyUp:function(){},scrollTo:function(tt){bi(tt)}}}),Gi.length===0)return Me.createElement("div",{role:"listbox",id:"".concat(Bn,"_list"),className:"".concat(er,"-empty"),onMouseDown:yn},yi);var Te=Object.keys(Vi).map(function(en){return Vi[en]}),He=function(tt){return tt.label};function qe(en,tt){var Ft=en.group;return{role:Ft?"presentation":"option",id:"".concat(Bn,"_list_").concat(tt)}}var St=function(tt){var Ft=Gi[tt];if(!Ft)return null;var Gt=Ft.data||{},Rt=Gt.value,on=Ft.group,li=(0,Ye.Z)(Gt,!0),Ee=He(Ft);return Ft?Me.createElement("div",(0,ye.Z)({"aria-label":typeof Ee=="string"&&!on?Ee:null},li,{key:tt},qe(Ft,tt),{"aria-selected":Vn(Rt)}),Rt):null},It={role:"listbox",id:"".concat(Bn,"_list")};return Me.createElement(Me.Fragment,null,Wi&&Me.createElement("div",(0,ye.Z)({},It,{style:{height:0,width:0,overflow:"hidden"}}),St(Br-1),St(Br),St(Br+1)),Me.createElement(Yi.Z,{itemKey:"key",ref:cn,data:Gi,height:Pr,itemHeight:br,fullHeight:!1,onMouseDown:yn,onScroll:_i,virtual:Wi,direction:$i,innerProps:Wi?null:It},function(en,tt){var Ft=en.group,Gt=en.groupOption,Rt=en.data,on=en.label,li=en.value,Ee=Rt.key;if(Ft){var Ue,Re=(Ue=Rt.title)!==null&&Ue!==void 0?Ue:tr(on)?on.toString():void 0;return Me.createElement("div",{className:Ke()(er,"".concat(er,"-group"),Rt.className),title:Re},on!==void 0?on:Ee)}var ot=Rt.disabled,lt=Rt.title,Wt=Rt.children,Vt=Rt.style,tn=Rt.className,Ln=(0,ze.Z)(Rt,rr),Wn=(0,wi.Z)(Ln,Te),mn=Cr(li),ei=ot||!mn&&sr,fi="".concat(er,"-option"),ut=Ke()(er,fi,tn,(0,it.Z)((0,it.Z)((0,it.Z)((0,it.Z)({},"".concat(fi,"-grouped"),Gt),"".concat(fi,"-active"),Br===tt&&!ei),"".concat(fi,"-disabled"),ei),"".concat(fi,"-selected"),mn)),Qn=He(en),ri=!En||typeof En=="function"||mn,jn=typeof Qn=="number"?Qn:Qn||li,oi=tr(jn)?jn.toString():void 0;return lt!==void 0&&(oi=lt),Me.createElement("div",(0,ye.Z)({},(0,Ye.Z)(Wn),Wi?{}:qe(en,tt),{"aria-selected":Vn(li),className:ut,title:oi,onMouseMove:function(){Br===tt||ei||Qt(tt)},onClick:function(){ei||$t(li)},style:Vt}),Me.createElement("div",{className:"".concat(fi,"-content")},typeof Hi=="function"?Hi(en,{index:tt}):jn),Me.isValidElement(En)||mn,ri&&Me.createElement(de,{className:"".concat(er,"-option-state"),customizeIcon:En,customizeIconProps:{value:li,disabled:ei,isSelected:mn}},mn?"\u2713":null))}))},hr=Me.forwardRef(vr),ar=hr,Xi=function(Ve,mt){var Dn=Me.useRef({values:new Map,options:new Map}),An=Me.useMemo(function(){var Bn=Dn.current,Hn=Bn.values,_n=Bn.options,Ei=Ve.map(function(yi){if(yi.label===void 0){var _i;return(0,Dt.Z)((0,Dt.Z)({},yi),{},{label:(_i=Hn.get(yi.value))===null||_i===void 0?void 0:_i.label})}return yi}),si=new Map,Pi=new Map;return Ei.forEach(function(yi){si.set(yi.value,yi),Pi.set(yi.value,mt.get(yi.value)||_n.get(yi.value))}),Dn.current.values=si,Dn.current.options=Pi,Ei},[Ve,mt]),Ot=Me.useCallback(function(Bn){return mt.get(Bn)||Dn.current.options.get(Bn)},[mt]);return[An,Ot]};function yr(Ve,mt){return un(Ve).join("").toUpperCase().includes(mt)}var Ce=function(Ve,mt,Dn,An,Ot){return Me.useMemo(function(){if(!Dn||An===!1)return Ve;var Bn=mt.options,Hn=mt.label,_n=mt.value,Ei=[],si=typeof An=="function",Pi=Dn.toUpperCase(),yi=si?An:function(Ri,Di){return Ot?yr(Di[Ot],Pi):Di[Bn]?yr(Di[Hn!=="children"?Hn:"label"],Pi):yr(Di[_n],Pi)},_i=si?function(Ri){return Pt(Ri)}:function(Ri){return Ri};return Ve.forEach(function(Ri){if(Ri[Bn]){var Di=yi(Dn,_i(Ri));if(Di)Ei.push(Ri);else{var sn=Ri[Bn].filter(function(pr){return yi(Dn,_i(pr))});sn.length&&Ei.push((0,Dt.Z)((0,Dt.Z)({},Ri),{},(0,it.Z)({},Bn,sn)))}return}yi(Dn,_i(Ri))&&Ei.push(Ri)}),Ei},[Ve,An,Ot,Dn,mt])},Sn=De(6551),Gn=De(11592),dr=["children","value"],or=["children"];function Ii(Ve){var mt=Ve,Dn=mt.key,An=mt.props,Ot=An.children,Bn=An.value,Hn=(0,ze.Z)(An,dr);return(0,Dt.Z)({key:Dn,value:Bn!==void 0?Bn:Dn,children:Ot},Hn)}function Tn(Ve){var mt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return(0,Gn.Z)(Ve).map(function(Dn,An){if(!Me.isValidElement(Dn)||!Dn.type)return null;var Ot=Dn,Bn=Ot.type.isSelectOptGroup,Hn=Ot.key,_n=Ot.props,Ei=_n.children,si=(0,ze.Z)(_n,or);return mt||!Bn?Ii(Dn):(0,Dt.Z)((0,Dt.Z)({key:"__RC_SELECT_GRP__".concat(Hn===null?An:Hn,"__"),label:Hn},si),{},{options:Tn(Ei)})}).filter(function(Dn){return Dn})}var Cn=function(mt,Dn,An,Ot,Bn){return Me.useMemo(function(){var Hn=mt,_n=!mt;_n&&(Hn=Tn(Dn));var Ei=new Map,si=new Map,Pi=function(Ri,Di,sn){sn&&typeof sn=="string"&&Ri.set(Di[sn],Di)},yi=function _i(Ri){for(var Di=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,sn=0;sn<Ri.length;sn+=1){var pr=Ri[sn];!pr[An.options]||Di?(Ei.set(pr[An.value],pr),Pi(si,pr,An.label),Pi(si,pr,Ot),Pi(si,pr,Bn)):_i(pr[An.options],!0)}};return yi(Hn),{options:Hn,valueOptions:Ei,labelOptions:si}},[mt,Dn,An,Ot,Bn])},Mn=Cn;function yt(Ve){var mt=Me.useRef();mt.current=Ve;var Dn=Me.useCallback(function(){return mt.current.apply(mt,arguments)},[]);return Dn}function xt(Ve){var mt=Ve.mode,Dn=Ve.options,An=Ve.children,Ot=Ve.backfill,Bn=Ve.allowClear,Hn=Ve.placeholder,_n=Ve.getInputElement,Ei=Ve.showSearch,si=Ve.onSearch,Pi=Ve.defaultOpen,yi=Ve.autoFocus,_i=Ve.labelInValue,Ri=Ve.value,Di=Ve.inputValue,sn=Ve.optionLabelProp,pr=isMultiple(mt),Mr=Ei!==void 0?Ei:pr||mt==="combobox",Kr=Dn||convertChildrenToData(An);if(warning(mt!=="tags"||Kr.every(function(Wi){return!Wi.disabled}),"Please avoid setting option to disabled in tags mode since user can always type text as tag."),mt==="tags"||mt==="combobox"){var En=Kr.some(function(Wi){return Wi.options?Wi.options.some(function($i){return typeof("value"in $i?$i.value:$i.key)=="number"}):typeof("value"in Wi?Wi.value:Wi.key)=="number"});warning(!En,"`value` of Option should not use number type when `mode` is `tags` or `combobox`.")}if(warning(mt!=="combobox"||!sn,"`combobox` mode not support `optionLabelProp`. Please set `value` on Option directly."),warning(mt==="combobox"||!Ot,"`backfill` only works with `combobox` mode."),warning(mt==="combobox"||!_n,"`getInputElement` only work with `combobox` mode."),noteOnce(mt!=="combobox"||!_n||!Bn||!Hn,"Customize `getInputElement` should customize clear and placeholder logic instead of configuring `allowClear` and `placeholder`."),si&&!Mr&&mt!=="combobox"&&mt!=="tags"&&warning(!1,"`onSearch` should work with `showSearch` instead of use alone."),noteOnce(!Pi||yi,"`defaultOpen` makes Select open without focus which means it will not close by click outside. You can set `autoFocus` if needed."),Ri!=null){var Si=toArray(Ri);warning(!_i||Si.every(function(Wi){return _typeof(Wi)==="object"&&("key"in Wi||"value"in Wi)}),"`value` should in shape of `{ value: string | number, label?: ReactNode }` when you set `labelInValue` to `true`"),warning(!pr||Array.isArray(Ri),"`value` should be array when `mode` is `multiple` or `tags`")}if(An){var Vi=null;toNodeArray(An).some(function(Wi){if(!React.isValidElement(Wi)||!Wi.type)return!1;var $i=Wi,Pr=$i.type;if(Pr.isSelectOption)return!1;if(Pr.isSelectOptGroup){var br=toNodeArray(Wi.props.children).every(function(Hi){return!React.isValidElement(Hi)||!Wi.type||Hi.type.isSelectOption?!0:(Vi=Hi.type,!1)});return!br}return Vi=Pr,!0}),Vi&&warning(!1,"`children` should be `Select.Option` or `Select.OptGroup` instead of `".concat(Vi.displayName||Vi.name||Vi,"`.")),warning(Di===void 0,"`inputValue` is deprecated, please use `searchValue` instead.")}}function Ct(Ve,mt){if(Ve){var Dn=function An(Ot){for(var Bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Hn=0;Hn<Ot.length;Hn++){var _n=Ot[Hn];if(_n[mt==null?void 0:mt.value]===null)return warning(!1,"`value` in Select options should not be `null`."),!0;if(!Bn&&Array.isArray(_n[mt==null?void 0:mt.options])&&An(_n[mt==null?void 0:mt.options],!0))break}};Dn(Ve)}}var Yn=null,$n=["id","mode","prefixCls","backfill","fieldNames","inputValue","searchValue","onSearch","autoClearSearchValue","onSelect","onDeselect","dropdownMatchSelectWidth","filterOption","filterSort","optionFilterProp","optionLabelProp","options","optionRender","children","defaultActiveFirstOption","menuItemSelectedIcon","virtual","direction","listHeight","listItemHeight","labelRender","value","defaultValue","labelInValue","onChange","maxCount"],di=["inputValue"];function xn(Ve){return!Ve||(0,dt.Z)(Ve)!=="object"}var ai=Me.forwardRef(function(Ve,mt){var Dn=Ve.id,An=Ve.mode,Ot=Ve.prefixCls,Bn=Ot===void 0?"rc-select":Ot,Hn=Ve.backfill,_n=Ve.fieldNames,Ei=Ve.inputValue,si=Ve.searchValue,Pi=Ve.onSearch,yi=Ve.autoClearSearchValue,_i=yi===void 0?!0:yi,Ri=Ve.onSelect,Di=Ve.onDeselect,sn=Ve.dropdownMatchSelectWidth,pr=sn===void 0?!0:sn,Mr=Ve.filterOption,Kr=Ve.filterSort,En=Ve.optionFilterProp,Si=Ve.optionLabelProp,Vi=Ve.options,Wi=Ve.optionRender,$i=Ve.children,Pr=Ve.defaultActiveFirstOption,br=Ve.menuItemSelectedIcon,Hi=Ve.virtual,er=Ve.direction,Gi=Ve.listHeight,cn=Gi===void 0?200:Gi,sr=Ve.listItemHeight,yn=sr===void 0?20:sr,bi=Ve.labelRender,Cr=Ve.value,Nr=Ve.defaultValue,to=Ve.labelInValue,Ur=Ve.onChange,Br=Ve.maxCount,ao=(0,ze.Z)(Ve,$n),Qt=(0,Sn.ZP)(Dn),Vn=jt(An),$t=!!(!Vi&&$i),Te=Me.useMemo(function(){return Mr===void 0&&An==="combobox"?!1:Mr},[Mr,An]),He=Me.useMemo(function(){return Ut(_n,$t)},[JSON.stringify(_n),$t]),qe=(0,Kt.Z)("",{value:si!==void 0?si:Ei,postState:function(Ji){return Ji||""}}),St=(0,Mt.Z)(qe,2),It=St[0],en=St[1],tt=Mn(Vi,$i,He,En,Si),Ft=tt.valueOptions,Gt=tt.labelOptions,Rt=tt.options,on=Me.useCallback(function(Zi){var Ji=un(Zi);return Ji.map(function(lr){var Qi,nr,Mi,zr,Yr;if(xn(lr))Qi=lr;else{var Qr;Mi=lr.key,nr=lr.label,Qi=(Qr=lr.value)!==null&&Qr!==void 0?Qr:Mi}var Ar=Ft.get(Qi);if(Ar){var eo;if(nr===void 0&&(nr=Ar==null?void 0:Ar[Si||He.label]),Mi===void 0&&(Mi=(eo=Ar==null?void 0:Ar.key)!==null&&eo!==void 0?eo:Qi),zr=Ar==null?void 0:Ar.disabled,Yr=Ar==null?void 0:Ar.title,0)var Xr}return{label:nr,value:Qi,key:Mi,disabled:zr,title:Yr}})},[He,Si,Ft]),li=(0,Kt.Z)(Nr,{value:Cr}),Ee=(0,Mt.Z)(li,2),Ue=Ee[0],Re=Ee[1],ot=Me.useMemo(function(){var Zi,Ji=Vn&&Ue===null?[]:Ue,lr=on(Ji);return An==="combobox"&&$e((Zi=lr[0])===null||Zi===void 0?void 0:Zi.value)?[]:lr},[Ue,on,An,Vn]),lt=Xi(ot,Ft),Wt=(0,Mt.Z)(lt,2),Vt=Wt[0],tn=Wt[1],Ln=Me.useMemo(function(){if(!An&&Vt.length===1){var Zi=Vt[0];if(Zi.value===null&&(Zi.label===null||Zi.label===void 0))return[]}return Vt.map(function(Ji){var lr;return(0,Dt.Z)((0,Dt.Z)({},Ji),{},{label:(lr=typeof bi=="function"?bi(Ji):Ji.label)!==null&&lr!==void 0?lr:Ji.value})})},[An,Vt,bi]),Wn=Me.useMemo(function(){return new Set(Vt.map(function(Zi){return Zi.value}))},[Vt]);Me.useEffect(function(){if(An==="combobox"){var Zi,Ji=(Zi=Vt[0])===null||Zi===void 0?void 0:Zi.value;en(vt(Ji)?String(Ji):"")}},[Vt]);var mn=yt(function(Zi,Ji){var lr=Ji!=null?Ji:Zi;return(0,it.Z)((0,it.Z)({},He.value,Zi),He.label,lr)}),ei=Me.useMemo(function(){if(An!=="tags")return Rt;var Zi=(0,nt.Z)(Rt),Ji=function(Qi){return Ft.has(Qi)};return(0,nt.Z)(Vt).sort(function(lr,Qi){return lr.value<Qi.value?-1:1}).forEach(function(lr){var Qi=lr.value;Ji(Qi)||Zi.push(mn(Qi,lr.label))}),Zi},[mn,Rt,Ft,Vt,An]),fi=Ce(ei,He,It,Te,En),ut=Me.useMemo(function(){return An!=="tags"||!It||fi.some(function(Zi){return Zi[En||"value"]===It})||fi.some(function(Zi){return Zi[He.value]===It})?fi:[mn(It)].concat((0,nt.Z)(fi))},[mn,En,An,fi,It,He]),Qn=function Zi(Ji){var lr=(0,nt.Z)(Ji).sort(function(Qi,nr){return Kr(Qi,nr,{searchValue:It})});return lr.map(function(Qi){return Array.isArray(Qi.options)?(0,Dt.Z)((0,Dt.Z)({},Qi),{},{options:Qi.options.length>0?Zi(Qi.options):Qi.options}):Qi})},ri=Me.useMemo(function(){return Kr?Qn(ut):ut},[ut,Kr,It]),jn=Me.useMemo(function(){return gt(ri,{fieldNames:He,childrenAsData:$t})},[ri,He,$t]),oi=function(Ji){var lr=on(Ji);if(Re(lr),Ur&&(lr.length!==Vt.length||lr.some(function(Mi,zr){var Yr;return((Yr=Vt[zr])===null||Yr===void 0?void 0:Yr.value)!==(Mi==null?void 0:Mi.value)}))){var Qi=to?lr:lr.map(function(Mi){return Mi.value}),nr=lr.map(function(Mi){return Pt(tn(Mi.value))});Ur(Vn?Qi:Qi[0],Vn?nr:nr[0])}},xi=Me.useState(null),Ni=(0,Mt.Z)(xi,2),ki=Ni[0],Bi=Ni[1],Oi=Me.useState(0),cr=(0,Mt.Z)(Oi,2),kr=cr[0],Hr=cr[1],Zr=Pr!==void 0?Pr:An!=="combobox",Fi=Me.useCallback(function(Zi,Ji){var lr=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},Qi=lr.source,nr=Qi===void 0?"keyboard":Qi;Hr(Ji),Hn&&An==="combobox"&&Zi!==null&&nr==="keyboard"&&Bi(String(Zi))},[Hn,An]),Fr=function(Ji,lr,Qi){var nr=function(){var mo,Bo=tn(Ji);return[to?{label:Bo==null?void 0:Bo[He.label],value:Ji,key:(mo=Bo==null?void 0:Bo.key)!==null&&mo!==void 0?mo:Ji}:Ji,Pt(Bo)]};if(lr&&Ri){var Mi=nr(),zr=(0,Mt.Z)(Mi,2),Yr=zr[0],Qr=zr[1];Ri(Yr,Qr)}else if(!lr&&Di&&Qi!=="clear"){var Ar=nr(),eo=(0,Mt.Z)(Ar,2),Xr=eo[0],_r=eo[1];Di(Xr,_r)}},Er=yt(function(Zi,Ji){var lr,Qi=Vn?Ji.selected:!0;Qi?lr=Vn?[].concat((0,nt.Z)(Vt),[Zi]):[Zi]:lr=Vt.filter(function(nr){return nr.value!==Zi}),oi(lr),Fr(Zi,Qi),An==="combobox"?Bi(""):(!jt||_i)&&(en(""),Bi(""))}),Rr=function(Ji,lr){oi(Ji);var Qi=lr.type,nr=lr.values;(Qi==="remove"||Qi==="clear")&&nr.forEach(function(Mi){Fr(Mi.value,!1,Qi)})},xr=function(Ji,lr){if(en(Ji),Bi(null),lr.source==="submit"){var Qi=(Ji||"").trim();if(Qi){var nr=Array.from(new Set([].concat((0,nt.Z)(Wn),[Qi])));oi(nr),Fr(Qi,!0),en("")}return}lr.source!=="blur"&&(An==="combobox"&&oi(Ji),Pi==null||Pi(Ji))},jr=function(Ji){var lr=Ji;An!=="tags"&&(lr=Ji.map(function(nr){var Mi=Gt.get(nr);return Mi==null?void 0:Mi.value}).filter(function(nr){return nr!==void 0}));var Qi=Array.from(new Set([].concat((0,nt.Z)(Wn),(0,nt.Z)(lr))));oi(Qi),Qi.forEach(function(nr){Fr(nr,!0)})},ii=Me.useMemo(function(){var Zi=Hi!==!1&&pr!==!1;return(0,Dt.Z)((0,Dt.Z)({},tt),{},{flattenOptions:jn,onActiveValue:Fi,defaultActiveFirstOption:Zr,onSelect:Er,menuItemSelectedIcon:br,rawValues:Wn,fieldNames:He,virtual:Zi,direction:er,listHeight:cn,listItemHeight:yn,childrenAsData:$t,maxCount:Br,optionRender:Wi})},[Br,tt,jn,Fi,Zr,Er,br,Wn,He,Hi,pr,er,cn,yn,$t,Wi]);return Me.createElement(dn.Provider,{value:ii},Me.createElement(pn,(0,ye.Z)({},ao,{id:Qt,prefixCls:Bn,ref:mt,omitDomProps:di,mode:An,displayValues:Ln,onDisplayValuesChange:Rr,direction:er,searchValue:It,onSearch:xr,autoClearSearchValue:_i,onSearchSplit:jr,dropdownMatchSelectWidth:pr,OptionList:ar,emptyOptions:!jn.length,activeValue:ki,activeDescendantId:"".concat(Qt,"_list_").concat(kr)})))}),Pn=ai;Pn.Option=pi,Pn.OptGroup=Un;var zi=Pn,fr=zi},63158:function(Jn,gi,De){"use strict";var ye=De(5016),nt=De(18082),it=De(52456),Dt=De(5883),Mt=De(59301),ze=De(92310),dt=De.n(ze),Kt=De(18929),Et=De(10228),Me=["prefixCls","className","checked","defaultChecked","disabled","loadingIcon","checkedChildren","unCheckedChildren","onClick","onChange","onKeyDown"],zt=Mt.forwardRef(function(Ke,Ht){var Ne,ne=Ke.prefixCls,te=ne===void 0?"rc-switch":ne,de=Ke.className,le=Ke.checked,ge=Ke.defaultChecked,me=Ke.disabled,Se=Ke.loadingIcon,be=Ke.checkedChildren,Ie=Ke.unCheckedChildren,Ze=Ke.onClick,st=Ke.onChange,Ye=Ke.onKeyDown,Xe=(0,Dt.Z)(Ke,Me),At=(0,Kt.Z)(!1,{value:le,defaultValue:ge}),ft=(0,it.Z)(At,2),Nt=ft[0],Lt=ft[1];function ln(hn,vt){var $e=Nt;return me||($e=hn,Lt($e),st==null||st($e,vt)),$e}function kn(hn){hn.which===Et.Z.LEFT?ln(!1,hn):hn.which===Et.Z.RIGHT&&ln(!0,hn),Ye==null||Ye(hn)}function un(hn){var vt=ln(!Nt,hn);Ze==null||Ze(vt,hn)}var _t=dt()(te,de,(Ne={},(0,nt.Z)(Ne,"".concat(te,"-checked"),Nt),(0,nt.Z)(Ne,"".concat(te,"-disabled"),me),Ne));return Mt.createElement("button",(0,ye.Z)({},Xe,{type:"button",role:"switch","aria-checked":Nt,disabled:me,className:_t,ref:Ht,onKeyDown:kn,onClick:un}),Se,Mt.createElement("span",{className:"".concat(te,"-inner")},Mt.createElement("span",{className:"".concat(te,"-inner-checked")},be),Mt.createElement("span",{className:"".concat(te,"-inner-unchecked")},Ie)))});zt.displayName="Switch",gi.Z=zt},86351:function(Jn,gi,De){"use strict";De.d(gi,{R:function(){return nt},w:function(){return ye}});var ye={},nt="rc-table-internal-hook"},97347:function(Jn,gi,De){"use strict";De.d(gi,{L:function(){return te},Z:function(){return Se}});var ye=De(52456),nt=De(18082),it=De(92393),Dt=De(10928),Mt=De(20049),ze=De(5883),dt=De(11592),Kt=De(48736),Et=De(59301),Me=De(86351),zt=De(54451);function Ke(be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";return typeof Ie=="number"?Ie:Ie.endsWith("%")?be*parseFloat(Ie)/100:null}function Ht(be,Ie,Ze){return Et.useMemo(function(){if(Ie&&Ie>0){var st=0,Ye=0;be.forEach(function(un){var _t=Ke(Ie,un.width);_t?st+=_t:Ye+=1});var Xe=Math.max(Ie,Ze),At=Math.max(Xe-st,Ye),ft=Ye,Nt=At/Ye,Lt=0,ln=be.map(function(un){var _t=(0,Mt.Z)({},un),hn=Ke(Ie,_t.width);if(hn)_t.width=hn;else{var vt=Math.floor(Nt);_t.width=ft===1?At:vt,At-=vt,ft-=1}return Lt+=_t.width,_t});if(Lt<Xe){var kn=Xe/Lt;At=Xe,ln.forEach(function(un,_t){var hn=Math.floor(un.width*kn);un.width=_t===ln.length-1?At:hn,At-=hn})}return[ln,Math.max(Lt,Xe)]}return[be,Ie]},[be,Ie,Ze])}var Ne=["children"],ne=["fixed"];function te(be){return(0,dt.Z)(be).filter(function(Ie){return Et.isValidElement(Ie)}).map(function(Ie){var Ze=Ie.key,st=Ie.props,Ye=st.children,Xe=(0,ze.Z)(st,Ne),At=(0,Mt.Z)({key:Ze},Xe);return Ye&&(At.children=te(Ye)),At})}function de(be){return be.filter(function(Ie){return Ie&&(0,Dt.Z)(Ie)==="object"&&!Ie.hidden}).map(function(Ie){var Ze=Ie.children;return Ze&&Ze.length>0?(0,Mt.Z)((0,Mt.Z)({},Ie),{},{children:de(Ze)}):Ie})}function le(be){var Ie=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"key";return be.filter(function(Ze){return Ze&&(0,Dt.Z)(Ze)==="object"}).reduce(function(Ze,st,Ye){var Xe=st.fixed,At=Xe===!0?"left":Xe,ft="".concat(Ie,"-").concat(Ye),Nt=st.children;return Nt&&Nt.length>0?[].concat((0,it.Z)(Ze),(0,it.Z)(le(Nt,ft).map(function(Lt){return(0,Mt.Z)({fixed:At},Lt)}))):[].concat((0,it.Z)(Ze),[(0,Mt.Z)((0,Mt.Z)({key:ft},st),{},{fixed:At})])},[])}function ge(be){return be.map(function(Ie){var Ze=Ie.fixed,st=(0,ze.Z)(Ie,ne),Ye=Ze;return Ze==="left"?Ye="right":Ze==="right"&&(Ye="left"),(0,Mt.Z)({fixed:Ye},st)})}function me(be,Ie){var Ze=be.prefixCls,st=be.columns,Ye=be.children,Xe=be.expandable,At=be.expandedKeys,ft=be.columnTitle,Nt=be.getRowKey,Lt=be.onTriggerExpand,ln=be.expandIcon,kn=be.rowExpandable,un=be.expandIconColumnIndex,_t=be.direction,hn=be.expandRowByClick,vt=be.columnWidth,$e=be.fixed,gn=be.scrollWidth,ci=be.clientWidth,Fn=Et.useMemo(function(){var Kn=st||te(Ye)||[];return de(Kn.slice())},[st,Ye]),rn=Et.useMemo(function(){if(Xe){var Kn=Fn.slice();if(!Kn.includes(Me.w)){var je=un||0;je>=0&&(je||$e==="left"||!$e)&&Kn.splice(je,0,Me.w),$e==="right"&&Kn.splice(Fn.length,0,Me.w)}var Le=Kn.indexOf(Me.w);Kn=Kn.filter(function(ke,et){return ke!==Me.w||et===Le});var we=Fn[Le],Be;$e?Be=$e:Be=we?we.fixed:null;var Ge=(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)({},zt.v,{className:"".concat(Ze,"-expand-icon-col"),columnType:"EXPAND_COLUMN"}),"title",ft),"fixed",Be),"className","".concat(Ze,"-row-expand-icon-cell")),"width",vt),"render",function(et,an,Bt){var Ut=Nt(an,Bt),gt=At.has(Ut),Pt=kn?kn(an):!0,Tt=ln({prefixCls:Ze,expanded:gt,expandable:Pt,record:an,onExpand:Lt});return hn?Et.createElement("span",{onClick:function(dn){return dn.stopPropagation()}},Tt):Tt});return Kn.map(function(ke){return ke===Me.w?Ge:ke})}return Fn.filter(function(ke){return ke!==Me.w})},[Xe,Fn,Nt,At,ln,_t]),Xn=Et.useMemo(function(){var Kn=rn;return Ie&&(Kn=Ie(Kn)),Kn.length||(Kn=[{render:function(){return null}}]),Kn},[Ie,rn,_t]),Nn=Et.useMemo(function(){return _t==="rtl"?ge(le(Xn)):le(Xn)},[Xn,_t,gn]),mi=Et.useMemo(function(){for(var Kn=-1,je=Nn.length-1;je>=0;je-=1){var Le=Nn[je].fixed;if(Le==="left"||Le===!0){Kn=je;break}}if(Kn>=0)for(var we=0;we<=Kn;we+=1){var Be=Nn[we].fixed;if(Be!=="left"&&Be!==!0)return!0}var Ge=Nn.findIndex(function(an){var Bt=an.fixed;return Bt==="right"});if(Ge>=0)for(var ke=Ge;ke<Nn.length;ke+=1){var et=Nn[ke].fixed;if(et!=="right")return!0}return!1},[Nn]),Zt=Ht(Nn,gn,ci),Rn=(0,ye.Z)(Zt,2),wt=Rn[0],Ai=Rn[1];return[Xn,wt,Ai,mi]}var Se=me},4030:function(Jn,gi,De){"use strict";De.d(gi,{w2:function(){return ye.w},vP:function(){return tr.v},RQ:function(){return ye.R},ER:function(){return Ut},Q$:function(){return Mr},TN:function(){return Ur}});var ye=De(86351),nt=De(52456),it=De(6089),Dt=De(34280),Mt=De(13697),ze=De(59301),dt=De(4676);function Kt(Qt){var Vn=ze.createContext(void 0),$t=function(He){var qe=He.value,St=He.children,It=ze.useRef(qe);It.current=qe;var en=ze.useState(function(){return{getValue:function(){return It.current},listeners:new Set}}),tt=(0,nt.Z)(en,1),Ft=tt[0];return(0,Dt.Z)(function(){(0,dt.unstable_batchedUpdates)(function(){Ft.listeners.forEach(function(Gt){Gt(qe)})})},[qe]),ze.createElement(Vn.Provider,{value:Ft},St)};return{Context:Vn,Provider:$t,defaultValue:Qt}}function Et(Qt,Vn){var $t=(0,it.Z)(typeof Vn=="function"?Vn:function(Gt){if(Vn===void 0)return Gt;if(!Array.isArray(Vn))return Gt[Vn];var Rt={};return Vn.forEach(function(on){Rt[on]=Gt[on]}),Rt}),Te=ze.useContext(Qt==null?void 0:Qt.Context),He=Te||{},qe=He.listeners,St=He.getValue,It=ze.useRef();It.current=$t(Te?St():Qt==null?void 0:Qt.defaultValue);var en=ze.useState({}),tt=(0,nt.Z)(en,2),Ft=tt[1];return(0,Dt.Z)(function(){if(!Te)return;function Gt(Rt){var on=$t(Rt);(0,Mt.Z)(It.current,on,!0)||Ft({})}return qe.add(Gt),function(){qe.delete(Gt)}},[Te]),It.current}var Me=De(5016),zt=De(8654);function Ke(){var Qt=ze.createContext(null);function Vn(){return ze.useContext(Qt)}function $t(He,qe){var St=(0,zt.Yr)(He),It=function(tt,Ft){var Gt=St?{ref:Ft}:{},Rt=ze.useRef(0),on=ze.useRef(tt),li=Vn();return li!==null?ze.createElement(He,(0,Me.Z)({},tt,Gt)):((!qe||qe(on.current,tt))&&(Rt.current+=1),on.current=tt,ze.createElement(Qt.Provider,{value:Rt.current},ze.createElement(He,(0,Me.Z)({},tt,Gt))))};return St?ze.forwardRef(It):It}function Te(He,qe){var St=(0,zt.Yr)(He),It=function(tt,Ft){var Gt=St?{ref:Ft}:{};return Vn(),ze.createElement(He,(0,Me.Z)({},tt,Gt))};return St?ze.memo(ze.forwardRef(It),qe):ze.memo(It,qe)}return{makeImmutable:$t,responseImmutable:Te,useImmutableMark:Vn}}var Ht=Ke(),Ne=Ht.makeImmutable,ne=Ht.responseImmutable,te=Ht.useImmutableMark,de=Ke(),le=de.makeImmutable,ge=de.responseImmutable,me=de.useImmutableMark,Se=Kt(),be=Se;function Ie(Qt,Vn){var $t=React.useRef(0);$t.current+=1;var Te=React.useRef(Qt),He=[];Object.keys(Qt||{}).map(function(St){var It;(Qt==null?void 0:Qt[St])!==((It=Te.current)===null||It===void 0?void 0:It[St])&&He.push(St)}),Te.current=Qt;var qe=React.useRef([]);return He.length&&(qe.current=He),React.useDebugValue($t.current),React.useDebugValue(qe.current.join(", ")),Vn&&console.log("".concat(Vn,":"),$t.current,qe.current),$t.current}var Ze=null,st=null,Ye=De(10928),Xe=De(20049),At=De(18082),ft=De(92310),Nt=De.n(ft),Lt=De(80547),ln=De(97938),kn=De(48736),un=ze.createContext({renderWithProps:!1}),_t=un,hn="RC_TABLE_KEY";function vt(Qt){return Qt==null?[]:Array.isArray(Qt)?Qt:[Qt]}function $e(Qt){var Vn=[],$t={};return Qt.forEach(function(Te){for(var He=Te||{},qe=He.key,St=He.dataIndex,It=qe||vt(St).join("-")||hn;$t[It];)It="".concat(It,"_next");$t[It]=!0,Vn.push(It)}),Vn}function gn(Qt){return Qt!=null}function ci(Qt){return typeof Qt=="number"&&!Number.isNaN(Qt)}function Fn(Qt){return Qt&&(0,Ye.Z)(Qt)==="object"&&!Array.isArray(Qt)&&!ze.isValidElement(Qt)}function rn(Qt,Vn,$t,Te,He,qe){var St=ze.useContext(_t),It=me(),en=(0,Lt.Z)(function(){if(gn(Te))return[Te];var tt=Vn==null||Vn===""?[]:Array.isArray(Vn)?Vn:[Vn],Ft=(0,ln.Z)(Qt,tt),Gt=Ft,Rt=void 0;if(He){var on=He(Ft,Qt,$t);Fn(on)?(Gt=on.children,Rt=on.props,St.renderWithProps=!0):Gt=on}return[Gt,Rt]},[It,Qt,Te,Vn,He,$t],function(tt,Ft){if(qe){var Gt=(0,nt.Z)(tt,2),Rt=Gt[1],on=(0,nt.Z)(Ft,2),li=on[1];return qe(li,Rt)}return St.renderWithProps?!0:!(0,Mt.Z)(tt,Ft,!0)});return en}function Xn(Qt,Vn,$t,Te){var He=Qt+Vn-1;return Qt<=Te&&He>=$t}function Nn(Qt,Vn){return Et(be,function($t){var Te=Xn(Qt,Vn||1,$t.hoverStartRow,$t.hoverEndRow);return[Te,$t.onHover]})}var mi=De(70425),Zt=function(Vn){var $t=Vn.ellipsis,Te=Vn.rowType,He=Vn.children,qe,St=$t===!0?{showTitle:!0}:$t;return St&&(St.showTitle||Te==="header")&&(typeof He=="string"||typeof He=="number"?qe=He.toString():ze.isValidElement(He)&&typeof He.props.children=="string"&&(qe=He.props.children)),qe};function Rn(Qt){var Vn,$t,Te,He,qe,St,It,en,tt=Qt.component,Ft=Qt.children,Gt=Qt.ellipsis,Rt=Qt.scope,on=Qt.prefixCls,li=Qt.className,Ee=Qt.align,Ue=Qt.record,Re=Qt.render,ot=Qt.dataIndex,lt=Qt.renderIndex,Wt=Qt.shouldCellUpdate,Vt=Qt.index,tn=Qt.rowType,Ln=Qt.colSpan,Wn=Qt.rowSpan,mn=Qt.fixLeft,ei=Qt.fixRight,fi=Qt.firstFixLeft,ut=Qt.lastFixLeft,Qn=Qt.firstFixRight,ri=Qt.lastFixRight,jn=Qt.appendNode,oi=Qt.additionalProps,xi=oi===void 0?{}:oi,Ni=Qt.isSticky,ki="".concat(on,"-cell"),Bi=Et(be,["supportSticky","allColumnsFixedLeft","rowHoverable"]),Oi=Bi.supportSticky,cr=Bi.allColumnsFixedLeft,kr=Bi.rowHoverable,Hr=rn(Ue,ot,lt,Ft,Re,Wt),Zr=(0,nt.Z)(Hr,2),Fi=Zr[0],Fr=Zr[1],Er={},Rr=typeof mn=="number"&&Oi,xr=typeof ei=="number"&&Oi;Rr&&(Er.position="sticky",Er.left=mn),xr&&(Er.position="sticky",Er.right=ei);var jr=(Vn=($t=(Te=Fr==null?void 0:Fr.colSpan)!==null&&Te!==void 0?Te:xi.colSpan)!==null&&$t!==void 0?$t:Ln)!==null&&Vn!==void 0?Vn:1,ii=(He=(qe=(St=Fr==null?void 0:Fr.rowSpan)!==null&&St!==void 0?St:xi.rowSpan)!==null&&qe!==void 0?qe:Wn)!==null&&He!==void 0?He:1,Zi=Nn(Vt,ii),Ji=(0,nt.Z)(Zi,2),lr=Ji[0],Qi=Ji[1],nr=(0,mi.zX)(function(Xr){var _r;Ue&&Qi(Vt,Vt+ii-1),xi==null||(_r=xi.onMouseEnter)===null||_r===void 0||_r.call(xi,Xr)}),Mi=(0,mi.zX)(function(Xr){var _r;Ue&&Qi(-1,-1),xi==null||(_r=xi.onMouseLeave)===null||_r===void 0||_r.call(xi,Xr)});if(jr===0||ii===0)return null;var zr=(It=xi.title)!==null&&It!==void 0?It:Zt({rowType:tn,ellipsis:Gt,children:Fi}),Yr=Nt()(ki,li,(en={},(0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)(en,"".concat(ki,"-fix-left"),Rr&&Oi),"".concat(ki,"-fix-left-first"),fi&&Oi),"".concat(ki,"-fix-left-last"),ut&&Oi),"".concat(ki,"-fix-left-all"),ut&&cr&&Oi),"".concat(ki,"-fix-right"),xr&&Oi),"".concat(ki,"-fix-right-first"),Qn&&Oi),"".concat(ki,"-fix-right-last"),ri&&Oi),"".concat(ki,"-ellipsis"),Gt),"".concat(ki,"-with-append"),jn),"".concat(ki,"-fix-sticky"),(Rr||xr)&&Ni&&Oi),(0,At.Z)(en,"".concat(ki,"-row-hover"),!Fr&&lr)),xi.className,Fr==null?void 0:Fr.className),Qr={};Ee&&(Qr.textAlign=Ee);var Ar=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Fr==null?void 0:Fr.style),Er),Qr),xi.style),eo=Fi;return(0,Ye.Z)(eo)==="object"&&!Array.isArray(eo)&&!ze.isValidElement(eo)&&(eo=null),Gt&&(ut||Qn)&&(eo=ze.createElement("span",{className:"".concat(ki,"-content")},eo)),ze.createElement(tt,(0,Me.Z)({},Fr,xi,{className:Yr,style:Ar,title:zr,scope:Rt,onMouseEnter:kr?nr:void 0,onMouseLeave:kr?Mi:void 0,colSpan:jr!==1?jr:null,rowSpan:ii!==1?ii:null}),jn,eo)}var wt=ze.memo(Rn);function Ai(Qt,Vn,$t,Te,He){var qe=$t[Qt]||{},St=$t[Vn]||{},It,en;qe.fixed==="left"?It=Te.left[He==="rtl"?Vn:Qt]:St.fixed==="right"&&(en=Te.right[He==="rtl"?Qt:Vn]);var tt=!1,Ft=!1,Gt=!1,Rt=!1,on=$t[Vn+1],li=$t[Qt-1],Ee=on&&!on.fixed||li&&!li.fixed||$t.every(function(Wt){return Wt.fixed==="left"});if(He==="rtl"){if(It!==void 0){var Ue=li&&li.fixed==="left";Rt=!Ue&&Ee}else if(en!==void 0){var Re=on&&on.fixed==="right";Gt=!Re&&Ee}}else if(It!==void 0){var ot=on&&on.fixed==="left";tt=!ot&&Ee}else if(en!==void 0){var lt=li&&li.fixed==="right";Ft=!lt&&Ee}return{fixLeft:It,fixRight:en,lastFixLeft:tt,firstFixRight:Ft,lastFixRight:Gt,firstFixLeft:Rt,isSticky:Te.isSticky}}var Kn=ze.createContext({}),je=Kn;function Le(Qt){var Vn=Qt.className,$t=Qt.index,Te=Qt.children,He=Qt.colSpan,qe=He===void 0?1:He,St=Qt.rowSpan,It=Qt.align,en=Et(be,["prefixCls","direction"]),tt=en.prefixCls,Ft=en.direction,Gt=ze.useContext(je),Rt=Gt.scrollColumnIndex,on=Gt.stickyOffsets,li=Gt.flattenColumns,Ee=$t+qe-1,Ue=Ee+1===Rt?qe+1:qe,Re=Ai($t,$t+Ue-1,li,on,Ft);return ze.createElement(wt,(0,Me.Z)({className:Vn,index:$t,component:"td",prefixCls:tt,record:null,dataIndex:null,align:It,colSpan:Ue,rowSpan:St,render:function(){return Te}},Re))}var we=De(5883),Be=["children"];function Ge(Qt){var Vn=Qt.children,$t=(0,we.Z)(Qt,Be);return ze.createElement("tr",$t,Vn)}function ke(Qt){var Vn=Qt.children;return Vn}ke.Row=Ge,ke.Cell=Le;var et=ke;function an(Qt){var Vn=Qt.children,$t=Qt.stickyOffsets,Te=Qt.flattenColumns,He=Et(be,"prefixCls"),qe=Te.length-1,St=Te[qe],It=ze.useMemo(function(){return{stickyOffsets:$t,flattenColumns:Te,scrollColumnIndex:St!=null&&St.scrollbar?qe:null}},[St,Te,qe,$t]);return ze.createElement(je.Provider,{value:It},ze.createElement("tfoot",{className:"".concat(He,"-summary")},Vn))}var Bt=ge(an),Ut=et,gt=De(29301),Pt=De(24514),Tt=De(75152),Yt=De(26112);function dn(Qt,Vn,$t,Te,He,qe,St){Qt.push({record:Vn,indent:$t,index:St});var It=qe(Vn),en=He==null?void 0:He.has(It);if(Vn&&Array.isArray(Vn[Te])&&en)for(var tt=0;tt<Vn[Te].length;tt+=1)dn(Qt,Vn[Te][tt],$t+1,Te,He,qe,tt)}function On(Qt,Vn,$t,Te){var He=ze.useMemo(function(){if($t!=null&&$t.size){for(var qe=[],St=0;St<(Qt==null?void 0:Qt.length);St+=1){var It=Qt[St];dn(qe,It,0,Vn,$t,Te,St)}return qe}return Qt==null?void 0:Qt.map(function(en,tt){return{record:en,indent:0,index:tt}})},[Qt,Vn,$t,Te]);return He}function wn(Qt,Vn,$t,Te){var He=Et(be,["prefixCls","fixedInfoList","flattenColumns","expandableType","expandRowByClick","onTriggerExpand","rowClassName","expandedRowClassName","indentSize","expandIcon","expandedRowRender","expandIconColumnIndex","expandedKeys","childrenColumnName","rowExpandable","onRow"]),qe=He.flattenColumns,St=He.expandableType,It=He.expandedKeys,en=He.childrenColumnName,tt=He.onTriggerExpand,Ft=He.rowExpandable,Gt=He.onRow,Rt=He.expandRowByClick,on=He.rowClassName,li=St==="nest",Ee=St==="row"&&(!Ft||Ft(Qt)),Ue=Ee||li,Re=It&&It.has(Vn),ot=en&&Qt&&Qt[en],lt=(0,mi.zX)(tt),Wt=Gt==null?void 0:Gt(Qt,$t),Vt=Wt==null?void 0:Wt.onClick,tn=function(ei){Rt&&Ue&&tt(Qt,ei);for(var fi=arguments.length,ut=new Array(fi>1?fi-1:0),Qn=1;Qn<fi;Qn++)ut[Qn-1]=arguments[Qn];Vt==null||Vt.apply(void 0,[ei].concat(ut))},Ln;typeof on=="string"?Ln=on:typeof on=="function"&&(Ln=on(Qt,$t,Te));var Wn=$e(qe);return(0,Xe.Z)((0,Xe.Z)({},He),{},{columnsKey:Wn,nestExpandable:li,expanded:Re,hasNestChildren:ot,record:Qt,onTriggerExpand:lt,rowSupportExpand:Ee,expandable:Ue,rowProps:(0,Xe.Z)((0,Xe.Z)({},Wt),{},{className:Nt()(Ln,Wt==null?void 0:Wt.className),onClick:tn})})}function nn(Qt){var Vn=Qt.prefixCls,$t=Qt.children,Te=Qt.component,He=Qt.cellComponent,qe=Qt.className,St=Qt.expanded,It=Qt.colSpan,en=Qt.isEmpty,tt=Et(be,["scrollbarSize","fixHeader","fixColumn","componentWidth","horizonScroll"]),Ft=tt.scrollbarSize,Gt=tt.fixHeader,Rt=tt.fixColumn,on=tt.componentWidth,li=tt.horizonScroll,Ee=$t;return(en?li&&on:Rt)&&(Ee=ze.createElement("div",{style:{width:on-(Gt&&!en?Ft:0),position:"sticky",left:0,overflow:"hidden"},className:"".concat(Vn,"-expanded-row-fixed")},Ee)),ze.createElement(Te,{className:qe,style:{display:St?null:"none"}},ze.createElement(wt,{component:He,prefixCls:Vn,colSpan:It},Ee))}var jt=nn;function Xt(Qt){var Vn=Qt.prefixCls,$t=Qt.record,Te=Qt.onExpand,He=Qt.expanded,qe=Qt.expandable,St="".concat(Vn,"-row-expand-icon");if(!qe)return ze.createElement("span",{className:Nt()(St,"".concat(Vn,"-row-spaced"))});var It=function(tt){Te($t,tt),tt.stopPropagation()};return ze.createElement("span",{className:Nt()(St,(0,At.Z)((0,At.Z)({},"".concat(Vn,"-row-expanded"),He),"".concat(Vn,"-row-collapsed"),!He)),onClick:It})}function pn(Qt,Vn,$t){var Te=[];function He(qe){(qe||[]).forEach(function(St,It){Te.push(Vn(St,It)),He(St[$t])})}return He(Qt),Te}function bn(Qt,Vn,$t,Te){return typeof Qt=="string"?Qt:typeof Qt=="function"?Qt(Vn,$t,Te):""}function Un(Qt,Vn,$t,Te,He){var qe=Qt.record,St=Qt.prefixCls,It=Qt.columnsKey,en=Qt.fixedInfoList,tt=Qt.expandIconColumnIndex,Ft=Qt.nestExpandable,Gt=Qt.indentSize,Rt=Qt.expandIcon,on=Qt.expanded,li=Qt.hasNestChildren,Ee=Qt.onTriggerExpand,Ue=It[$t],Re=en[$t],ot;$t===(tt||0)&&Ft&&(ot=ze.createElement(ze.Fragment,null,ze.createElement("span",{style:{paddingLeft:"".concat(Gt*Te,"px")},className:"".concat(St,"-row-indent indent-level-").concat(Te)}),Rt({prefixCls:St,expanded:on,expandable:li,record:qe,onExpand:Ee})));var lt;return Vn.onCell&&(lt=Vn.onCell(qe,He)),{key:Ue,fixedInfo:Re,appendCellNode:ot,additionalCellProps:lt||{}}}function ti(Qt){var Vn=Qt.className,$t=Qt.style,Te=Qt.record,He=Qt.index,qe=Qt.renderIndex,St=Qt.rowKey,It=Qt.indent,en=It===void 0?0:It,tt=Qt.rowComponent,Ft=Qt.cellComponent,Gt=Qt.scopeCellComponent,Rt=wn(Te,St,He,en),on=Rt.prefixCls,li=Rt.flattenColumns,Ee=Rt.expandedRowClassName,Ue=Rt.expandedRowRender,Re=Rt.rowProps,ot=Rt.expanded,lt=Rt.rowSupportExpand,Wt=ze.useRef(!1);Wt.current||(Wt.current=ot);var Vt=bn(Ee,Te,He,en),tn=ze.createElement(tt,(0,Me.Z)({},Re,{"data-row-key":St,className:Nt()(Vn,"".concat(on,"-row"),"".concat(on,"-row-level-").concat(en),Re==null?void 0:Re.className,(0,At.Z)({},Vt,en>=1)),style:(0,Xe.Z)((0,Xe.Z)({},$t),Re==null?void 0:Re.style)}),li.map(function(mn,ei){var fi=mn.render,ut=mn.dataIndex,Qn=mn.className,ri=Un(Rt,mn,ei,en,He),jn=ri.key,oi=ri.fixedInfo,xi=ri.appendCellNode,Ni=ri.additionalCellProps;return ze.createElement(wt,(0,Me.Z)({className:Qn,ellipsis:mn.ellipsis,align:mn.align,scope:mn.rowScope,component:mn.rowScope?Gt:Ft,prefixCls:on,key:jn,record:Te,index:He,renderIndex:qe,dataIndex:ut,render:fi,shouldCellUpdate:mn.shouldCellUpdate},oi,{appendNode:xi,additionalProps:Ni}))})),Ln;if(lt&&(Wt.current||ot)){var Wn=Ue(Te,He,en+1,ot);Ln=ze.createElement(jt,{expanded:ot,className:Nt()("".concat(on,"-expanded-row"),"".concat(on,"-expanded-row-level-").concat(en+1),Vt),prefixCls:on,component:tt,cellComponent:Ft,colSpan:li.length,isEmpty:!1},Wn)}return ze.createElement(ze.Fragment,null,tn,Ln)}var pi=ge(ti);function vn(Qt){var Vn=Qt.columnKey,$t=Qt.onColumnResize,Te=ze.useRef();return(0,Dt.Z)(function(){Te.current&&$t(Vn,Te.current.offsetWidth)},[]),ze.createElement(gt.Z,{data:Vn},ze.createElement("td",{ref:Te,style:{padding:0,border:0,height:0}},ze.createElement("div",{style:{height:0,overflow:"hidden"}},"\xA0")))}var wi=De(29194);function Yi(Qt){var Vn=Qt.prefixCls,$t=Qt.columnsKey,Te=Qt.onColumnResize,He=ze.useRef(null);return ze.createElement("tr",{"aria-hidden":"true",className:"".concat(Vn,"-measure-row"),style:{height:0,fontSize:0},ref:He},ze.createElement(gt.Z.Collection,{onBatchResize:function(St){(0,wi.Z)(He.current)&&St.forEach(function(It){var en=It.data,tt=It.size;Te(en,tt.offsetWidth)})}},$t.map(function(qe){return ze.createElement(vn,{key:qe,columnKey:qe,onColumnResize:Te})})))}function gr(Qt){var Vn=Qt.data,$t=Qt.measureColumnWidth,Te=Et(be,["prefixCls","getComponent","onColumnResize","flattenColumns","getRowKey","expandedKeys","childrenColumnName","emptyNode"]),He=Te.prefixCls,qe=Te.getComponent,St=Te.onColumnResize,It=Te.flattenColumns,en=Te.getRowKey,tt=Te.expandedKeys,Ft=Te.childrenColumnName,Gt=Te.emptyNode,Rt=On(Vn,Ft,tt,en),on=ze.useRef({renderWithProps:!1}),li=qe(["body","wrapper"],"tbody"),Ee=qe(["body","row"],"tr"),Ue=qe(["body","cell"],"td"),Re=qe(["body","cell"],"th"),ot;Vn.length?ot=Rt.map(function(Wt,Vt){var tn=Wt.record,Ln=Wt.indent,Wn=Wt.index,mn=en(tn,Vt);return ze.createElement(pi,{key:mn,rowKey:mn,record:tn,index:Vt,renderIndex:Wn,rowComponent:Ee,cellComponent:Ue,scopeCellComponent:Re,indent:Ln})}):ot=ze.createElement(jt,{expanded:!0,className:"".concat(He,"-placeholder"),prefixCls:He,component:Ee,cellComponent:Ue,colSpan:It.length,isEmpty:!0},Gt);var lt=$e(It);return ze.createElement(_t.Provider,{value:on.current},ze.createElement(li,{className:"".concat(He,"-tbody")},$t&&ze.createElement(Yi,{prefixCls:He,columnsKey:lt,onColumnResize:St}),ot))}var rr=ge(gr),tr=De(54451),vr=["columnType"];function hr(Qt){for(var Vn=Qt.colWidths,$t=Qt.columns,Te=Qt.columCount,He=Et(be,["tableLayout"]),qe=He.tableLayout,St=[],It=Te||$t.length,en=!1,tt=It-1;tt>=0;tt-=1){var Ft=Vn[tt],Gt=$t&&$t[tt],Rt=void 0,on=void 0;if(Gt&&(Rt=Gt[tr.v],qe==="auto"&&(on=Gt.minWidth)),Ft||on||Rt||en){var li=Rt||{},Ee=li.columnType,Ue=(0,we.Z)(li,vr);St.unshift(ze.createElement("col",(0,Me.Z)({key:tt,style:{width:Ft,minWidth:on}},Ue))),en=!0}}return ze.createElement("colgroup",null,St)}var ar=hr,Xi=De(92393),yr=["className","noData","columns","flattenColumns","colWidths","columCount","stickyOffsets","direction","fixHeader","stickyTopOffset","stickyBottomOffset","stickyClassName","onScroll","maxContentScroll","children"];function Ce(Qt,Vn){return(0,ze.useMemo)(function(){for(var $t=[],Te=0;Te<Vn;Te+=1){var He=Qt[Te];if(He!==void 0)$t[Te]=He;else return null}return $t},[Qt.join("_"),Vn])}var Sn=ze.forwardRef(function(Qt,Vn){var $t=Qt.className,Te=Qt.noData,He=Qt.columns,qe=Qt.flattenColumns,St=Qt.colWidths,It=Qt.columCount,en=Qt.stickyOffsets,tt=Qt.direction,Ft=Qt.fixHeader,Gt=Qt.stickyTopOffset,Rt=Qt.stickyBottomOffset,on=Qt.stickyClassName,li=Qt.onScroll,Ee=Qt.maxContentScroll,Ue=Qt.children,Re=(0,we.Z)(Qt,yr),ot=Et(be,["prefixCls","scrollbarSize","isSticky","getComponent"]),lt=ot.prefixCls,Wt=ot.scrollbarSize,Vt=ot.isSticky,tn=ot.getComponent,Ln=tn(["header","table"],"table"),Wn=Vt&&!Ft?0:Wt,mn=ze.useRef(null),ei=ze.useCallback(function(Ni){(0,zt.mH)(Vn,Ni),(0,zt.mH)(mn,Ni)},[]);ze.useEffect(function(){var Ni;function ki(Bi){var Oi=Bi,cr=Oi.currentTarget,kr=Oi.deltaX;kr&&(li({currentTarget:cr,scrollLeft:cr.scrollLeft+kr}),Bi.preventDefault())}return(Ni=mn.current)===null||Ni===void 0||Ni.addEventListener("wheel",ki,{passive:!1}),function(){var Bi;(Bi=mn.current)===null||Bi===void 0||Bi.removeEventListener("wheel",ki)}},[]);var fi=ze.useMemo(function(){return qe.every(function(Ni){return Ni.width})},[qe]),ut=qe[qe.length-1],Qn={fixed:ut?ut.fixed:null,scrollbar:!0,onHeaderCell:function(){return{className:"".concat(lt,"-cell-scrollbar")}}},ri=(0,ze.useMemo)(function(){return Wn?[].concat((0,Xi.Z)(He),[Qn]):He},[Wn,He]),jn=(0,ze.useMemo)(function(){return Wn?[].concat((0,Xi.Z)(qe),[Qn]):qe},[Wn,qe]),oi=(0,ze.useMemo)(function(){var Ni=en.right,ki=en.left;return(0,Xe.Z)((0,Xe.Z)({},en),{},{left:tt==="rtl"?[].concat((0,Xi.Z)(ki.map(function(Bi){return Bi+Wn})),[0]):ki,right:tt==="rtl"?Ni:[].concat((0,Xi.Z)(Ni.map(function(Bi){return Bi+Wn})),[0]),isSticky:Vt})},[Wn,en,Vt]),xi=Ce(St,It);return ze.createElement("div",{style:(0,Xe.Z)({overflow:"hidden"},Vt?{top:Gt,bottom:Rt}:{}),ref:ei,className:Nt()($t,(0,At.Z)({},on,!!on))},ze.createElement(Ln,{style:{tableLayout:"fixed",visibility:Te||xi?null:"hidden"}},(!Te||!Ee||fi)&&ze.createElement(ar,{colWidths:xi?[].concat((0,Xi.Z)(xi),[Wn]):[],columCount:It+1,columns:jn}),Ue((0,Xe.Z)((0,Xe.Z)({},Re),{},{stickyOffsets:oi,columns:ri,flattenColumns:jn}))))}),Gn=ze.memo(Sn),dr=function(Vn){var $t=Vn.cells,Te=Vn.stickyOffsets,He=Vn.flattenColumns,qe=Vn.rowComponent,St=Vn.cellComponent,It=Vn.onHeaderRow,en=Vn.index,tt=Et(be,["prefixCls","direction"]),Ft=tt.prefixCls,Gt=tt.direction,Rt;It&&(Rt=It($t.map(function(li){return li.column}),en));var on=$e($t.map(function(li){return li.column}));return ze.createElement(qe,Rt,$t.map(function(li,Ee){var Ue=li.column,Re=Ai(li.colStart,li.colEnd,He,Te,Gt),ot;return Ue&&Ue.onHeaderCell&&(ot=li.column.onHeaderCell(Ue)),ze.createElement(wt,(0,Me.Z)({},li,{scope:Ue.title?li.colSpan>1?"colgroup":"col":null,ellipsis:Ue.ellipsis,align:Ue.align,component:St,prefixCls:Ft,key:on[Ee]},Re,{additionalProps:ot,rowType:"header"}))}))},or=dr;function Ii(Qt){var Vn=[];function $t(St,It){var en=arguments.length>2&&arguments[2]!==void 0?arguments[2]:0;Vn[en]=Vn[en]||[];var tt=It,Ft=St.filter(Boolean).map(function(Gt){var Rt={key:Gt.key,className:Gt.className||"",children:Gt.title,column:Gt,colStart:tt},on=1,li=Gt.children;return li&&li.length>0&&(on=$t(li,tt,en+1).reduce(function(Ee,Ue){return Ee+Ue},0),Rt.hasSubColumns=!0),"colSpan"in Gt&&(on=Gt.colSpan),"rowSpan"in Gt&&(Rt.rowSpan=Gt.rowSpan),Rt.colSpan=on,Rt.colEnd=Rt.colStart+on-1,Vn[en].push(Rt),tt+=on,on});return Ft}$t(Qt,0);for(var Te=Vn.length,He=function(It){Vn[It].forEach(function(en){!("rowSpan"in en)&&!en.hasSubColumns&&(en.rowSpan=Te-It)})},qe=0;qe<Te;qe+=1)He(qe);return Vn}var Tn=function(Vn){var $t=Vn.stickyOffsets,Te=Vn.columns,He=Vn.flattenColumns,qe=Vn.onHeaderRow,St=Et(be,["prefixCls","getComponent"]),It=St.prefixCls,en=St.getComponent,tt=ze.useMemo(function(){return Ii(Te)},[Te]),Ft=en(["header","wrapper"],"thead"),Gt=en(["header","row"],"tr"),Rt=en(["header","cell"],"th");return ze.createElement(Ft,{className:"".concat(It,"-thead")},tt.map(function(on,li){var Ee=ze.createElement(or,{key:li,flattenColumns:He,cells:on,stickyOffsets:$t,rowComponent:Gt,cellComponent:Rt,onHeaderRow:qe,index:li});return Ee}))},Cn=ge(Tn),Mn=De(97347);function yt(Qt,Vn,$t){var Te=(0,tr.g)(Qt),He=Te.expandIcon,qe=Te.expandedRowKeys,St=Te.defaultExpandedRowKeys,It=Te.defaultExpandAllRows,en=Te.expandedRowRender,tt=Te.onExpand,Ft=Te.onExpandedRowsChange,Gt=Te.childrenColumnName,Rt=He||Xt,on=Gt||"children",li=ze.useMemo(function(){return en?"row":Qt.expandable&&Qt.internalHooks===ye.R&&Qt.expandable.__PARENT_RENDER_ICON__||Vn.some(function(Vt){return Vt&&(0,Ye.Z)(Vt)==="object"&&Vt[on]})?"nest":!1},[!!en,Vn]),Ee=ze.useState(function(){return St||(It?pn(Vn,$t,on):[])}),Ue=(0,nt.Z)(Ee,2),Re=Ue[0],ot=Ue[1],lt=ze.useMemo(function(){return new Set(qe||Re||[])},[qe,Re]),Wt=ze.useCallback(function(Vt){var tn=$t(Vt,Vn.indexOf(Vt)),Ln,Wn=lt.has(tn);Wn?(lt.delete(tn),Ln=(0,Xi.Z)(lt)):Ln=[].concat((0,Xi.Z)(lt),[tn]),ot(Ln),tt&&tt(!Wn,Vt),Ft&&Ft(Ln)},[$t,lt,Vn,tt,Ft]);return[Te,li,lt,Rt,on,Wt]}function xt(Qt,Vn,$t){var Te=Qt.map(function(He,qe){return Ai(qe,qe,Qt,Vn,$t)});return(0,Lt.Z)(function(){return Te},[Te],function(He,qe){return!(0,Mt.Z)(He,qe)})}function Ct(Qt){var Vn=(0,ze.useRef)(Qt),$t=(0,ze.useState)({}),Te=(0,nt.Z)($t,2),He=Te[1],qe=(0,ze.useRef)(null),St=(0,ze.useRef)([]);function It(en){St.current.push(en);var tt=Promise.resolve();qe.current=tt,tt.then(function(){if(qe.current===tt){var Ft=St.current,Gt=Vn.current;St.current=[],Ft.forEach(function(Rt){Vn.current=Rt(Vn.current)}),qe.current=null,Gt!==Vn.current&&He({})}})}return(0,ze.useEffect)(function(){return function(){qe.current=null}},[]),[Vn.current,It]}function Yn(Qt){var Vn=(0,ze.useRef)(Qt||null),$t=(0,ze.useRef)();function Te(){window.clearTimeout($t.current)}function He(St){Vn.current=St,Te(),$t.current=window.setTimeout(function(){Vn.current=null,$t.current=void 0},100)}function qe(){return Vn.current}return(0,ze.useEffect)(function(){return Te},[]),[He,qe]}function $n(){var Qt=ze.useState(-1),Vn=(0,nt.Z)(Qt,2),$t=Vn[0],Te=Vn[1],He=ze.useState(-1),qe=(0,nt.Z)(He,2),St=qe[0],It=qe[1],en=ze.useCallback(function(tt,Ft){Te(tt),It(Ft)},[]);return[$t,St,en]}var di=De(47273),xn=(0,di.Z)()?window:null;function ai(Qt,Vn){var $t=(0,Ye.Z)(Qt)==="object"?Qt:{},Te=$t.offsetHeader,He=Te===void 0?0:Te,qe=$t.offsetSummary,St=qe===void 0?0:qe,It=$t.offsetScroll,en=It===void 0?0:It,tt=$t.getContainer,Ft=tt===void 0?function(){return xn}:tt,Gt=Ft()||xn,Rt=!!Qt;return ze.useMemo(function(){return{isSticky:Rt,stickyClassName:Rt?"".concat(Vn,"-sticky-holder"):"",offsetHeader:He,offsetSummary:St,offsetScroll:en,container:Gt}},[Rt,en,He,St,Vn,Gt])}function Pn(Qt,Vn,$t){var Te=(0,ze.useMemo)(function(){var He=Vn.length,qe=function(tt,Ft,Gt){for(var Rt=[],on=0,li=tt;li!==Ft;li+=Gt)Rt.push(on),Vn[li].fixed&&(on+=Qt[li]||0);return Rt},St=qe(0,He,1),It=qe(He-1,-1,-1).reverse();return $t==="rtl"?{left:It,right:St}:{left:St,right:It}},[Qt,Vn,$t]);return Te}var zi=Pn;function fr(Qt){var Vn=Qt.className,$t=Qt.children;return ze.createElement("div",{className:Vn},$t)}var Ve=fr,mt=De(8224),Dn=De(16089),An=De(76846);function Ot(Qt){var Vn=(0,An.bn)(Qt),$t=Vn.getBoundingClientRect(),Te=document.documentElement;return{left:$t.left+(window.pageXOffset||Te.scrollLeft)-(Te.clientLeft||document.body.clientLeft||0),top:$t.top+(window.pageYOffset||Te.scrollTop)-(Te.clientTop||document.body.clientTop||0)}}var Bn=function(Vn,$t){var Te,He,qe=Vn.scrollBodyRef,St=Vn.onScroll,It=Vn.offsetScroll,en=Vn.container,tt=Vn.direction,Ft=Et(be,"prefixCls"),Gt=((Te=qe.current)===null||Te===void 0?void 0:Te.scrollWidth)||0,Rt=((He=qe.current)===null||He===void 0?void 0:He.clientWidth)||0,on=Gt&&Rt*(Rt/Gt),li=ze.useRef(),Ee=Ct({scrollLeft:0,isHiddenScrollBar:!0}),Ue=(0,nt.Z)(Ee,2),Re=Ue[0],ot=Ue[1],lt=ze.useRef({delta:0,x:0}),Wt=ze.useState(!1),Vt=(0,nt.Z)(Wt,2),tn=Vt[0],Ln=Vt[1],Wn=ze.useRef(null);ze.useEffect(function(){return function(){Dn.Z.cancel(Wn.current)}},[]);var mn=function(){Ln(!1)},ei=function(jn){jn.persist(),lt.current.delta=jn.pageX-Re.scrollLeft,lt.current.x=0,Ln(!0),jn.preventDefault()},fi=function(jn){var oi,xi=jn||((oi=window)===null||oi===void 0?void 0:oi.event),Ni=xi.buttons;if(!tn||Ni===0){tn&&Ln(!1);return}var ki=lt.current.x+jn.pageX-lt.current.x-lt.current.delta,Bi=tt==="rtl";ki=Math.max(Bi?on-Rt:0,Math.min(Bi?0:Rt-on,ki));var Oi=!Bi||Math.abs(ki)+Math.abs(on)<Rt;Oi&&(St({scrollLeft:ki/Rt*(Gt+2)}),lt.current.x=jn.pageX)},ut=function(){Dn.Z.cancel(Wn.current),Wn.current=(0,Dn.Z)(function(){if(qe.current){var jn=Ot(qe.current).top,oi=jn+qe.current.offsetHeight,xi=en===window?document.documentElement.scrollTop+window.innerHeight:Ot(en).top+en.clientHeight;oi-(0,Tt.Z)()<=xi||jn>=xi-It?ot(function(Ni){return(0,Xe.Z)((0,Xe.Z)({},Ni),{},{isHiddenScrollBar:!0})}):ot(function(Ni){return(0,Xe.Z)((0,Xe.Z)({},Ni),{},{isHiddenScrollBar:!1})})}})},Qn=function(jn){ot(function(oi){return(0,Xe.Z)((0,Xe.Z)({},oi),{},{scrollLeft:jn/Gt*Rt||0})})};return ze.useImperativeHandle($t,function(){return{setScrollLeft:Qn,checkScrollBarVisible:ut}}),ze.useEffect(function(){var ri=(0,mt.Z)(document.body,"mouseup",mn,!1),jn=(0,mt.Z)(document.body,"mousemove",fi,!1);return ut(),function(){ri.remove(),jn.remove()}},[on,tn]),ze.useEffect(function(){if(qe.current){for(var ri=[],jn=(0,An.bn)(qe.current);jn;)ri.push(jn),jn=jn.parentElement;return ri.forEach(function(oi){return oi.addEventListener("scroll",ut,!1)}),window.addEventListener("resize",ut,!1),window.addEventListener("scroll",ut,!1),en.addEventListener("scroll",ut,!1),function(){ri.forEach(function(oi){return oi.removeEventListener("scroll",ut)}),window.removeEventListener("resize",ut),window.removeEventListener("scroll",ut),en.removeEventListener("scroll",ut)}}},[en]),ze.useEffect(function(){Re.isHiddenScrollBar||ot(function(ri){var jn=qe.current;return jn?(0,Xe.Z)((0,Xe.Z)({},ri),{},{scrollLeft:jn.scrollLeft/jn.scrollWidth*jn.clientWidth}):ri})},[Re.isHiddenScrollBar]),Gt<=Rt||!on||Re.isHiddenScrollBar?null:ze.createElement("div",{style:{height:(0,Tt.Z)(),width:Rt,bottom:It},className:"".concat(Ft,"-sticky-scroll")},ze.createElement("div",{onMouseDown:ei,ref:li,className:Nt()("".concat(Ft,"-sticky-scroll-bar"),(0,At.Z)({},"".concat(Ft,"-sticky-scroll-bar-active"),tn)),style:{width:"".concat(on,"px"),transform:"translate3d(".concat(Re.scrollLeft,"px, 0, 0)")}}))},Hn=ze.forwardRef(Bn);function _n(Qt){return null}var Ei=_n;function si(Qt){return null}var Pi=si,yi="rc-table",_i=[],Ri={};function Di(){return"No Data"}function sn(Qt,Vn){var $t=(0,Xe.Z)({rowKey:"key",prefixCls:yi,emptyText:Di},Qt),Te=$t.prefixCls,He=$t.className,qe=$t.rowClassName,St=$t.style,It=$t.data,en=$t.rowKey,tt=$t.scroll,Ft=$t.tableLayout,Gt=$t.direction,Rt=$t.title,on=$t.footer,li=$t.summary,Ee=$t.caption,Ue=$t.id,Re=$t.showHeader,ot=$t.components,lt=$t.emptyText,Wt=$t.onRow,Vt=$t.onHeaderRow,tn=$t.onScroll,Ln=$t.internalHooks,Wn=$t.transformColumns,mn=$t.internalRefs,ei=$t.tailor,fi=$t.getContainerWidth,ut=$t.sticky,Qn=$t.rowHoverable,ri=Qn===void 0?!0:Qn,jn=It||_i,oi=!!jn.length,xi=Ln===ye.R,Ni=ze.useCallback(function(No,Ko){return(0,ln.Z)(ot,No)||Ko},[ot]),ki=ze.useMemo(function(){return typeof en=="function"?en:function(No){var Ko=No&&No[en];return Ko}},[en]),Bi=Ni(["body"]),Oi=$n(),cr=(0,nt.Z)(Oi,3),kr=cr[0],Hr=cr[1],Zr=cr[2],Fi=yt($t,jn,ki),Fr=(0,nt.Z)(Fi,6),Er=Fr[0],Rr=Fr[1],xr=Fr[2],jr=Fr[3],ii=Fr[4],Zi=Fr[5],Ji=tt==null?void 0:tt.x,lr=ze.useState(0),Qi=(0,nt.Z)(lr,2),nr=Qi[0],Mi=Qi[1],zr=(0,Mn.Z)((0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},$t),Er),{},{expandable:!!Er.expandedRowRender,columnTitle:Er.columnTitle,expandedKeys:xr,getRowKey:ki,onTriggerExpand:Zi,expandIcon:jr,expandIconColumnIndex:Er.expandIconColumnIndex,direction:Gt,scrollWidth:xi&&ei&&typeof Ji=="number"?Ji:null,clientWidth:nr}),xi?Wn:null),Yr=(0,nt.Z)(zr,4),Qr=Yr[0],Ar=Yr[1],eo=Yr[2],Xr=Yr[3],_r=eo!=null?eo:Ji,fo=ze.useMemo(function(){return{columns:Qr,flattenColumns:Ar}},[Qr,Ar]),mo=ze.useRef(),Bo=ze.useRef(),so=ze.useRef(),ia=ze.useRef();ze.useImperativeHandle(Vn,function(){return{nativeElement:mo.current,scrollTo:function(Ko){var ka;if(so.current instanceof HTMLElement){var ns=Ko.index,Qa=Ko.top,Bl=Ko.key;if(ci(Qa)){var yl;(yl=so.current)===null||yl===void 0||yl.scrollTo({top:Qa})}else{var Oo,xo=Bl!=null?Bl:ki(jn[ns]);(Oo=so.current.querySelector('[data-row-key="'.concat(xo,'"]')))===null||Oo===void 0||Oo.scrollIntoView()}}else(ka=so.current)!==null&&ka!==void 0&&ka.scrollTo&&so.current.scrollTo(Ko)}}});var po=ze.useRef(),Jo=ze.useState(!1),Po=(0,nt.Z)(Jo,2),Vo=Po[0],Go=Po[1],Yo=ze.useState(!1),Ro=(0,nt.Z)(Yo,2),Lo=Ro[0],oa=Ro[1],wa=ze.useState(new Map),zo=(0,nt.Z)(wa,2),Oa=zo[0],bo=zo[1],yo=$e(Ar),vo=yo.map(function(No){return Oa.get(No)}),Qo=ze.useMemo(function(){return vo},[vo.join("_")]),ro=zi(Qo,Ar,Gt),ta=tt&&gn(tt.y),wr=tt&&gn(_r)||!!Er.fixed,ur=wr&&Ar.some(function(No){var Ko=No.fixed;return Ko}),Dr=ze.useRef(),Sr=ai(ut,Te),vi=Sr.isSticky,Do=Sr.offsetHeader,pt=Sr.offsetSummary,zn=Sr.offsetScroll,ha=Sr.stickyClassName,ga=Sr.container,aa=ze.useMemo(function(){return li==null?void 0:li(jn)},[li,jn]),sa=(ta||vi)&&ze.isValidElement(aa)&&aa.type===et&&aa.props.fixed,ya,Pa,hs;ta&&(Pa={overflowY:oi?"scroll":"auto",maxHeight:tt.y}),wr&&(ya={overflowX:"auto"},ta||(Pa={overflowY:"hidden"}),hs={width:_r===!0?"auto":_r,minWidth:"100%"});var da=ze.useCallback(function(No,Ko){bo(function(ka){if(ka.get(No)!==Ko){var ns=new Map(ka);return ns.set(No,Ko),ns}return ka})},[]),qr=Yn(null),Ya=(0,nt.Z)(qr,2),ts=Ya[0],ca=Ya[1];function So(No,Ko){Ko&&(typeof Ko=="function"?Ko(No):Ko.scrollLeft!==No&&(Ko.scrollLeft=No,Ko.scrollLeft!==No&&setTimeout(function(){Ko.scrollLeft=No},0)))}var Sa=(0,it.Z)(function(No){var Ko=No.currentTarget,ka=No.scrollLeft,ns=Gt==="rtl",Qa=typeof ka=="number"?ka:Ko.scrollLeft,Bl=Ko||Ri;if(!ca()||ca()===Bl){var yl;ts(Bl),So(Qa,Bo.current),So(Qa,so.current),So(Qa,po.current),So(Qa,(yl=Dr.current)===null||yl===void 0?void 0:yl.setScrollLeft)}var Oo=Ko||Bo.current;if(Oo){var xo=xi&&ei&&typeof _r=="number"?_r:Oo.scrollWidth,Ua=Oo.clientWidth;if(xo===Ua){Go(!1),oa(!1);return}ns?(Go(-Qa<xo-Ua),oa(-Qa>0)):(Go(Qa>0),oa(Qa<xo-Ua))}}),ds=(0,it.Z)(function(No){Sa(No),tn==null||tn(No)}),ua=function(){if(wr&&so.current){var Ko;Sa({currentTarget:(0,An.bn)(so.current),scrollLeft:(Ko=so.current)===null||Ko===void 0?void 0:Ko.scrollLeft})}else Go(!1),oa(!1)},cs=function(Ko){var ka,ns=Ko.width;(ka=Dr.current)===null||ka===void 0||ka.checkScrollBarVisible();var Qa=mo.current?mo.current.offsetWidth:ns;xi&&fi&&mo.current&&(Qa=fi(mo.current,Qa)||Qa),Qa!==nr&&(ua(),Mi(Qa))},za=ze.useRef(!1);ze.useEffect(function(){za.current&&ua()},[wr,It,Qr.length]),ze.useEffect(function(){za.current=!0},[]);var Dl=ze.useState(0),Ho=(0,nt.Z)(Dl,2),Fa=Ho[0],To=Ho[1],$o=ze.useState(!0),pa=(0,nt.Z)($o,2),xa=pa[0],qo=pa[1];(0,Dt.Z)(function(){(!ei||!xi)&&(so.current instanceof Element?To((0,Tt.o)(so.current).width):To((0,Tt.o)(ia.current).width)),qo((0,Pt.G)("position","sticky"))},[]),ze.useEffect(function(){xi&&mn&&(mn.body.current=so.current)});var pl=ze.useCallback(function(No){return ze.createElement(ze.Fragment,null,ze.createElement(Cn,No),sa==="top"&&ze.createElement(Bt,No,aa))},[sa,aa]),no=ze.useCallback(function(No){return ze.createElement(Bt,No,aa)},[aa]),vu=Ni(["table"],"table"),Ao=ze.useMemo(function(){return Ft||(ur?_r==="max-content"?"auto":"fixed":ta||vi||Ar.some(function(No){var Ko=No.ellipsis;return Ko})?"fixed":"auto")},[ta,ur,Ar,Ft,vi]),Kl,qs={colWidths:Qo,columCount:Ar.length,stickyOffsets:ro,onHeaderRow:Vt,fixHeader:ta,scroll:tt},Nl=ze.useMemo(function(){return oi?null:typeof lt=="function"?lt():lt},[oi,lt]),yu=ze.createElement(rr,{data:jn,measureColumnWidth:ta||wr||vi}),Su=ze.createElement(ar,{colWidths:Ar.map(function(No){var Ko=No.width;return Ko}),columns:Ar}),Vs=Ee!=null?ze.createElement("caption",{className:"".concat(Te,"-caption")},Ee):void 0,Yl=(0,Yt.Z)($t,{data:!0}),Uo=(0,Yt.Z)($t,{aria:!0});if(ta||vi){var Gs;typeof Bi=="function"?(Gs=Bi(jn,{scrollbarSize:Fa,ref:so,onScroll:Sa}),qs.colWidths=Ar.map(function(No,Ko){var ka=No.width,ns=Ko===Ar.length-1?ka-Fa:ka;return typeof ns=="number"&&!Number.isNaN(ns)?ns:0})):Gs=ze.createElement("div",{style:(0,Xe.Z)((0,Xe.Z)({},ya),Pa),onScroll:ds,ref:so,className:Nt()("".concat(Te,"-body"))},ze.createElement(vu,(0,Me.Z)({style:(0,Xe.Z)((0,Xe.Z)({},hs),{},{tableLayout:Ao})},Uo),Vs,Su,yu,!sa&&aa&&ze.createElement(Bt,{stickyOffsets:ro,flattenColumns:Ar},aa)));var xu=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({noData:!jn.length,maxContentScroll:wr&&_r==="max-content"},qs),fo),{},{direction:Gt,stickyClassName:ha,onScroll:Sa});Kl=ze.createElement(ze.Fragment,null,Re!==!1&&ze.createElement(Gn,(0,Me.Z)({},xu,{stickyTopOffset:Do,className:"".concat(Te,"-header"),ref:Bo}),pl),Gs,sa&&sa!=="top"&&ze.createElement(Gn,(0,Me.Z)({},xu,{stickyBottomOffset:pt,className:"".concat(Te,"-summary"),ref:po}),no),vi&&so.current&&so.current instanceof Element&&ze.createElement(Hn,{ref:Dr,offsetScroll:zn,scrollBodyRef:so,onScroll:Sa,container:ga,direction:Gt}))}else Kl=ze.createElement("div",{style:(0,Xe.Z)((0,Xe.Z)({},ya),Pa),className:Nt()("".concat(Te,"-content")),onScroll:Sa,ref:so},ze.createElement(vu,(0,Me.Z)({style:(0,Xe.Z)((0,Xe.Z)({},hs),{},{tableLayout:Ao})},Uo),Vs,Su,Re!==!1&&ze.createElement(Cn,(0,Me.Z)({},qs,fo)),yu,aa&&ze.createElement(Bt,{stickyOffsets:ro,flattenColumns:Ar},aa)));var ml=ze.createElement("div",(0,Me.Z)({className:Nt()(Te,He,(0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)((0,At.Z)({},"".concat(Te,"-rtl"),Gt==="rtl"),"".concat(Te,"-ping-left"),Vo),"".concat(Te,"-ping-right"),Lo),"".concat(Te,"-layout-fixed"),Ft==="fixed"),"".concat(Te,"-fixed-header"),ta),"".concat(Te,"-fixed-column"),ur),"".concat(Te,"-fixed-column-gapped"),ur&&Xr),"".concat(Te,"-scroll-horizontal"),wr),"".concat(Te,"-has-fix-left"),Ar[0]&&Ar[0].fixed),"".concat(Te,"-has-fix-right"),Ar[Ar.length-1]&&Ar[Ar.length-1].fixed==="right")),style:St,id:Ue,ref:mo},Yl),Rt&&ze.createElement(Ve,{className:"".concat(Te,"-title")},Rt(jn)),ze.createElement("div",{ref:ia,className:"".concat(Te,"-container")},Kl),on&&ze.createElement(Ve,{className:"".concat(Te,"-footer")},on(jn)));wr&&(ml=ze.createElement(gt.Z,{onResize:cs},ml));var Nu=xt(Ar,ro,Gt),vl=ze.useMemo(function(){return{scrollX:_r,prefixCls:Te,getComponent:Ni,scrollbarSize:Fa,direction:Gt,fixedInfoList:Nu,isSticky:vi,supportSticky:xa,componentWidth:nr,fixHeader:ta,fixColumn:ur,horizonScroll:wr,tableLayout:Ao,rowClassName:qe,expandedRowClassName:Er.expandedRowClassName,expandIcon:jr,expandableType:Rr,expandRowByClick:Er.expandRowByClick,expandedRowRender:Er.expandedRowRender,onTriggerExpand:Zi,expandIconColumnIndex:Er.expandIconColumnIndex,indentSize:Er.indentSize,allColumnsFixedLeft:Ar.every(function(No){return No.fixed==="left"}),emptyNode:Nl,columns:Qr,flattenColumns:Ar,onColumnResize:da,hoverStartRow:kr,hoverEndRow:Hr,onHover:Zr,rowExpandable:Er.rowExpandable,onRow:Wt,getRowKey:ki,expandedKeys:xr,childrenColumnName:ii,rowHoverable:ri}},[_r,Te,Ni,Fa,Gt,Nu,vi,xa,nr,ta,ur,wr,Ao,qe,Er.expandedRowClassName,jr,Rr,Er.expandRowByClick,Er.expandedRowRender,Zi,Er.expandIconColumnIndex,Er.indentSize,Nl,Qr,Ar,da,kr,Hr,Zr,Er.rowExpandable,Wt,ki,xr,ii,ri]);return ze.createElement(be.Provider,{value:vl},ml)}var pr=ze.forwardRef(sn);function Mr(Qt){return le(pr,Qt)}var Kr=Mr();Kr.EXPAND_COLUMN=ye.w,Kr.INTERNAL_HOOKS=ye.R,Kr.Column=Ei,Kr.ColumnGroup=Pi,Kr.Summary=Ut;var En=Kr,Si=De(65283),Vi=Kt(null),Wi=Kt(null);function $i(Qt,Vn,$t){var Te=Vn||1;return $t[Qt+Te]-($t[Qt]||0)}function Pr(Qt){var Vn=Qt.rowInfo,$t=Qt.column,Te=Qt.colIndex,He=Qt.indent,qe=Qt.index,St=Qt.component,It=Qt.renderIndex,en=Qt.record,tt=Qt.style,Ft=Qt.className,Gt=Qt.inverse,Rt=Qt.getHeight,on=$t.render,li=$t.dataIndex,Ee=$t.className,Ue=$t.width,Re=Et(Wi,["columnsOffset"]),ot=Re.columnsOffset,lt=Un(Vn,$t,Te,He,qe),Wt=lt.key,Vt=lt.fixedInfo,tn=lt.appendCellNode,Ln=lt.additionalCellProps,Wn=Ln.style,mn=Ln.colSpan,ei=mn===void 0?1:mn,fi=Ln.rowSpan,ut=fi===void 0?1:fi,Qn=Te-1,ri=$i(Qn,ei,ot),jn=ei>1?Ue-ri:0,oi=(0,Xe.Z)((0,Xe.Z)((0,Xe.Z)({},Wn),tt),{},{flex:"0 0 ".concat(ri,"px"),width:"".concat(ri,"px"),marginRight:jn,pointerEvents:"auto"}),xi=ze.useMemo(function(){return Gt?ut<=1:ei===0||ut===0||ut>1},[ut,ei,Gt]);xi?oi.visibility="hidden":Gt&&(oi.height=Rt==null?void 0:Rt(ut));var Ni=xi?function(){return null}:on,ki={};return(ut===0||ei===0)&&(ki.rowSpan=1,ki.colSpan=1),ze.createElement(wt,(0,Me.Z)({className:Nt()(Ee,Ft),ellipsis:$t.ellipsis,align:$t.align,scope:$t.rowScope,component:St,prefixCls:Vn.prefixCls,key:Wt,record:en,index:qe,renderIndex:It,dataIndex:li,render:Ni,shouldCellUpdate:$t.shouldCellUpdate},Vt,{appendNode:tn,additionalProps:(0,Xe.Z)((0,Xe.Z)({},Ln),{},{style:oi},ki)}))}var br=Pr,Hi=["data","index","className","rowKey","style","extra","getHeight"],er=ze.forwardRef(function(Qt,Vn){var $t=Qt.data,Te=Qt.index,He=Qt.className,qe=Qt.rowKey,St=Qt.style,It=Qt.extra,en=Qt.getHeight,tt=(0,we.Z)(Qt,Hi),Ft=$t.record,Gt=$t.indent,Rt=$t.index,on=Et(be,["prefixCls","flattenColumns","fixColumn","componentWidth","scrollX"]),li=on.scrollX,Ee=on.flattenColumns,Ue=on.prefixCls,Re=on.fixColumn,ot=on.componentWidth,lt=Et(Vi,["getComponent"]),Wt=lt.getComponent,Vt=wn(Ft,qe,Te,Gt),tn=Wt(["body","row"],"div"),Ln=Wt(["body","cell"],"div"),Wn=Vt.rowSupportExpand,mn=Vt.expanded,ei=Vt.rowProps,fi=Vt.expandedRowRender,ut=Vt.expandedRowClassName,Qn;if(Wn&&mn){var ri=fi(Ft,Te,Gt+1,mn),jn=bn(ut,Ft,Te,Gt),oi={};Re&&(oi={style:(0,At.Z)({},"--virtual-width","".concat(ot,"px"))});var xi="".concat(Ue,"-expanded-row-cell");Qn=ze.createElement(tn,{className:Nt()("".concat(Ue,"-expanded-row"),"".concat(Ue,"-expanded-row-level-").concat(Gt+1),jn)},ze.createElement(wt,{component:Ln,prefixCls:Ue,className:Nt()(xi,(0,At.Z)({},"".concat(xi,"-fixed"),Re)),additionalProps:oi},ri))}var Ni=(0,Xe.Z)((0,Xe.Z)({},St),{},{width:li});It&&(Ni.position="absolute",Ni.pointerEvents="none");var ki=ze.createElement(tn,(0,Me.Z)({},ei,tt,{"data-row-key":qe,ref:Wn?null:Vn,className:Nt()(He,"".concat(Ue,"-row"),ei==null?void 0:ei.className,(0,At.Z)({},"".concat(Ue,"-row-extra"),It)),style:(0,Xe.Z)((0,Xe.Z)({},Ni),ei==null?void 0:ei.style)}),Ee.map(function(Bi,Oi){return ze.createElement(br,{key:Oi,component:Ln,rowInfo:Vt,column:Bi,colIndex:Oi,indent:Gt,index:Te,renderIndex:Rt,record:Ft,inverse:It,getHeight:en})}));return Wn?ze.createElement("div",{ref:Vn},ki,Qn):ki}),Gi=ge(er),cn=Gi,sr=ze.forwardRef(function(Qt,Vn){var $t=Qt.data,Te=Qt.onScroll,He=Et(be,["flattenColumns","onColumnResize","getRowKey","prefixCls","expandedKeys","childrenColumnName","scrollX","direction"]),qe=He.flattenColumns,St=He.onColumnResize,It=He.getRowKey,en=He.expandedKeys,tt=He.prefixCls,Ft=He.childrenColumnName,Gt=He.scrollX,Rt=He.direction,on=Et(Vi),li=on.sticky,Ee=on.scrollY,Ue=on.listItemHeight,Re=on.getComponent,ot=on.onScroll,lt=ze.useRef(),Wt=On($t,Ft,en,It),Vt=ze.useMemo(function(){var Qn=0;return qe.map(function(ri){var jn=ri.width,oi=ri.key;return Qn+=jn,[oi,jn,Qn]})},[qe]),tn=ze.useMemo(function(){return Vt.map(function(Qn){return Qn[2]})},[Vt]);ze.useEffect(function(){Vt.forEach(function(Qn){var ri=(0,nt.Z)(Qn,2),jn=ri[0],oi=ri[1];St(jn,oi)})},[Vt]),ze.useImperativeHandle(Vn,function(){var Qn,ri={scrollTo:function(oi){var xi;(xi=lt.current)===null||xi===void 0||xi.scrollTo(oi)},nativeElement:(Qn=lt.current)===null||Qn===void 0?void 0:Qn.nativeElement};return Object.defineProperty(ri,"scrollLeft",{get:function(){var oi;return((oi=lt.current)===null||oi===void 0?void 0:oi.getScrollInfo().x)||0},set:function(oi){var xi;(xi=lt.current)===null||xi===void 0||xi.scrollTo({left:oi})}}),ri});var Ln=function(ri,jn){var oi,xi=(oi=Wt[jn])===null||oi===void 0?void 0:oi.record,Ni=ri.onCell;if(Ni){var ki,Bi=Ni(xi,jn);return(ki=Bi==null?void 0:Bi.rowSpan)!==null&&ki!==void 0?ki:1}return 1},Wn=function(ri){var jn=ri.start,oi=ri.end,xi=ri.getSize,Ni=ri.offsetY;if(oi<0)return null;for(var ki=qe.filter(function(jr){return Ln(jr,jn)===0}),Bi=jn,Oi=function(ii){if(ki=ki.filter(function(Zi){return Ln(Zi,ii)===0}),!ki.length)return Bi=ii,1},cr=jn;cr>=0&&!Oi(cr);cr-=1);for(var kr=qe.filter(function(jr){return Ln(jr,oi)!==1}),Hr=oi,Zr=function(ii){if(kr=kr.filter(function(Zi){return Ln(Zi,ii)!==1}),!kr.length)return Hr=Math.max(ii-1,oi),1},Fi=oi;Fi<Wt.length&&!Zr(Fi);Fi+=1);for(var Fr=[],Er=function(ii){var Zi=Wt[ii];if(!Zi)return 1;qe.some(function(Ji){return Ln(Ji,ii)>1})&&Fr.push(ii)},Rr=Bi;Rr<=Hr;Rr+=1)Er(Rr);var xr=Fr.map(function(jr){var ii=Wt[jr],Zi=It(ii.record,jr),Ji=function(nr){var Mi=jr+nr-1,zr=It(Wt[Mi].record,Mi),Yr=xi(Zi,zr);return Yr.bottom-Yr.top},lr=xi(Zi);return ze.createElement(cn,{key:jr,data:ii,rowKey:Zi,index:jr,style:{top:-Ni+lr.top},extra:!0,getHeight:Ji})});return xr},mn=ze.useMemo(function(){return{columnsOffset:tn}},[tn]),ei="".concat(tt,"-tbody"),fi=Re(["body","wrapper"]),ut={};return li&&(ut.position="sticky",ut.bottom=0,(0,Ye.Z)(li)==="object"&&li.offsetScroll&&(ut.bottom=li.offsetScroll)),ze.createElement(Wi.Provider,{value:mn},ze.createElement(Si.Z,{fullHeight:!1,ref:lt,prefixCls:"".concat(ei,"-virtual"),styles:{horizontalScrollBar:ut},className:ei,height:Ee,itemHeight:Ue||24,data:Wt,itemKey:function(ri){return It(ri.record)},component:fi,scrollWidth:Gt,direction:Rt,onVirtualScroll:function(ri){var jn,oi=ri.x;Te({currentTarget:(jn=lt.current)===null||jn===void 0?void 0:jn.nativeElement,scrollLeft:oi})},onScroll:ot,extraRender:Wn},function(Qn,ri,jn){var oi=It(Qn.record,ri);return ze.createElement(cn,{data:Qn,rowKey:oi,index:ri,style:jn.style})}))}),yn=ge(sr),bi=yn,Cr=function(Vn,$t){var Te=$t.ref,He=$t.onScroll;return ze.createElement(bi,{ref:Te,data:Vn,onScroll:He})};function Nr(Qt,Vn){var $t=Qt.data,Te=Qt.columns,He=Qt.scroll,qe=Qt.sticky,St=Qt.prefixCls,It=St===void 0?yi:St,en=Qt.className,tt=Qt.listItemHeight,Ft=Qt.components,Gt=Qt.onScroll,Rt=He||{},on=Rt.x,li=Rt.y;typeof on!="number"&&(on=1),typeof li!="number"&&(li=500);var Ee=(0,mi.zX)(function(ot,lt){return(0,ln.Z)(Ft,ot)||lt}),Ue=(0,mi.zX)(Gt),Re=ze.useMemo(function(){return{sticky:qe,scrollY:li,listItemHeight:tt,getComponent:Ee,onScroll:Ue}},[qe,li,tt,Ee,Ue]);return ze.createElement(Vi.Provider,{value:Re},ze.createElement(En,(0,Me.Z)({},Qt,{className:Nt()(en,"".concat(It,"-virtual")),scroll:(0,Xe.Z)((0,Xe.Z)({},He),{},{x:on}),components:(0,Xe.Z)((0,Xe.Z)({},Ft),{},{body:$t!=null&&$t.length?Cr:void 0}),columns:Te,internalHooks:ye.R,tailor:!0,ref:Vn})))}var to=ze.forwardRef(Nr);function Ur(Qt){return le(to,Qt)}var Br=Ur(),ao=null},54451:function(Jn,gi,De){"use strict";De.d(gi,{g:function(){return ze},v:function(){return Mt}});var ye=De(20049),nt=De(5883),it=De(48736),Dt=["expandable"],Mt="RC_TABLE_INTERNAL_COL_DEFINE";function ze(dt){var Kt=dt.expandable,Et=(0,nt.Z)(dt,Dt),Me;return"expandable"in dt?Me=(0,ye.Z)((0,ye.Z)({},Et),Kt):Me=Et,Me.showExpandColumn===!1&&(Me.expandIconColumnIndex=-1),Me}},22711:function(Jn,gi,De){"use strict";De.r(gi),De.d(gi,{ResizableTextArea:function(){return ft},default:function(){return kn}});var ye=De(5016),nt=De(18082),it=De(20049),Dt=De(92393),Mt=De(52456),ze=De(5883),dt=De(92310),Kt=De.n(dt),Et=De(36901),Me=De(66003),zt=De(30292),Ke=De(18929),Ht=De(59301),Ne=De(10928),ne=De(29301),te=De(34280),de=De(16089),le=`
|
|
min-height:0 !important;
|
|
max-height:none !important;
|
|
height:0 !important;
|
|
visibility:hidden !important;
|
|
overflow:hidden !important;
|
|
position:absolute !important;
|
|
z-index:-1000 !important;
|
|
top:0 !important;
|
|
right:0 !important;
|
|
pointer-events: none !important;
|
|
`,ge=["letter-spacing","line-height","padding-top","padding-bottom","font-family","font-weight","font-size","font-variant","text-rendering","text-transform","width","text-indent","padding-left","padding-right","border-width","box-sizing","word-break","white-space"],me={},Se;function be(un){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=un.getAttribute("id")||un.getAttribute("data-reactid")||un.getAttribute("name");if(_t&&me[hn])return me[hn];var vt=window.getComputedStyle(un),$e=vt.getPropertyValue("box-sizing")||vt.getPropertyValue("-moz-box-sizing")||vt.getPropertyValue("-webkit-box-sizing"),gn=parseFloat(vt.getPropertyValue("padding-bottom"))+parseFloat(vt.getPropertyValue("padding-top")),ci=parseFloat(vt.getPropertyValue("border-bottom-width"))+parseFloat(vt.getPropertyValue("border-top-width")),Fn=ge.map(function(Xn){return"".concat(Xn,":").concat(vt.getPropertyValue(Xn))}).join(";"),rn={sizingStyle:Fn,paddingSize:gn,borderSize:ci,boxSizing:$e};return _t&&hn&&(me[hn]=rn),rn}function Ie(un){var _t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,hn=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null,vt=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null;Se||(Se=document.createElement("textarea"),Se.setAttribute("tab-index","-1"),Se.setAttribute("aria-hidden","true"),Se.setAttribute("name","hiddenTextarea"),document.body.appendChild(Se)),un.getAttribute("wrap")?Se.setAttribute("wrap",un.getAttribute("wrap")):Se.removeAttribute("wrap");var $e=be(un,_t),gn=$e.paddingSize,ci=$e.borderSize,Fn=$e.boxSizing,rn=$e.sizingStyle;Se.setAttribute("style","".concat(rn,";").concat(le)),Se.value=un.value||un.placeholder||"";var Xn=void 0,Nn=void 0,mi,Zt=Se.scrollHeight;if(Fn==="border-box"?Zt+=ci:Fn==="content-box"&&(Zt-=gn),hn!==null||vt!==null){Se.value=" ";var Rn=Se.scrollHeight-gn;hn!==null&&(Xn=Rn*hn,Fn==="border-box"&&(Xn=Xn+gn+ci),Zt=Math.max(Xn,Zt)),vt!==null&&(Nn=Rn*vt,Fn==="border-box"&&(Nn=Nn+gn+ci),mi=Zt>Nn?"":"hidden",Zt=Math.min(Nn,Zt))}var wt={height:Zt,overflowY:mi,resize:"none"};return Xn&&(wt.minHeight=Xn),Nn&&(wt.maxHeight=Nn),wt}var Ze=["prefixCls","defaultValue","value","autoSize","onResize","className","style","disabled","onChange","onInternalAutoSize"],st=0,Ye=1,Xe=2,At=Ht.forwardRef(function(un,_t){var hn=un,vt=hn.prefixCls,$e=hn.defaultValue,gn=hn.value,ci=hn.autoSize,Fn=hn.onResize,rn=hn.className,Xn=hn.style,Nn=hn.disabled,mi=hn.onChange,Zt=hn.onInternalAutoSize,Rn=(0,ze.Z)(hn,Ze),wt=(0,Ke.Z)($e,{value:gn,postState:function(pi){return pi!=null?pi:""}}),Ai=(0,Mt.Z)(wt,2),Kn=Ai[0],je=Ai[1],Le=function(pi){je(pi.target.value),mi==null||mi(pi)},we=Ht.useRef();Ht.useImperativeHandle(_t,function(){return{textArea:we.current}});var Be=Ht.useMemo(function(){return ci&&(0,Ne.Z)(ci)==="object"?[ci.minRows,ci.maxRows]:[]},[ci]),Ge=(0,Mt.Z)(Be,2),ke=Ge[0],et=Ge[1],an=!!ci,Bt=function(){try{if(document.activeElement===we.current){var pi=we.current,vn=pi.selectionStart,wi=pi.selectionEnd,Yi=pi.scrollTop;we.current.setSelectionRange(vn,wi),we.current.scrollTop=Yi}}catch(gr){}},Ut=Ht.useState(Xe),gt=(0,Mt.Z)(Ut,2),Pt=gt[0],Tt=gt[1],Yt=Ht.useState(),dn=(0,Mt.Z)(Yt,2),On=dn[0],wn=dn[1],nn=function(){Tt(st)};(0,te.Z)(function(){an&&nn()},[gn,ke,et,an]),(0,te.Z)(function(){if(Pt===st)Tt(Ye);else if(Pt===Ye){var ti=Ie(we.current,!1,ke,et);Tt(Xe),wn(ti)}else Bt()},[Pt]);var jt=Ht.useRef(),Xt=function(){de.Z.cancel(jt.current)},pn=function(pi){Pt===Xe&&(Fn==null||Fn(pi),ci&&(Xt(),jt.current=(0,de.Z)(function(){nn()})))};Ht.useEffect(function(){return Xt},[]);var bn=an?On:null,Un=(0,it.Z)((0,it.Z)({},Xn),bn);return(Pt===st||Pt===Ye)&&(Un.overflowY="hidden",Un.overflowX="hidden"),Ht.createElement(ne.Z,{onResize:pn,disabled:!(ci||Fn)},Ht.createElement("textarea",(0,ye.Z)({},Rn,{ref:we,style:Un,className:Kt()(vt,rn,(0,nt.Z)({},"".concat(vt,"-disabled"),Nn)),disabled:Nn,value:Kn,onChange:Le})))}),ft=At,Nt=["defaultValue","value","onFocus","onBlur","onChange","allowClear","maxLength","onCompositionStart","onCompositionEnd","suffix","prefixCls","showCount","count","className","style","disabled","hidden","classNames","styles","onResize","onClear","onPressEnter","readOnly","autoSize","onKeyDown"],Lt=Ht.forwardRef(function(un,_t){var hn,vt=un.defaultValue,$e=un.value,gn=un.onFocus,ci=un.onBlur,Fn=un.onChange,rn=un.allowClear,Xn=un.maxLength,Nn=un.onCompositionStart,mi=un.onCompositionEnd,Zt=un.suffix,Rn=un.prefixCls,wt=Rn===void 0?"rc-textarea":Rn,Ai=un.showCount,Kn=un.count,je=un.className,Le=un.style,we=un.disabled,Be=un.hidden,Ge=un.classNames,ke=un.styles,et=un.onResize,an=un.onClear,Bt=un.onPressEnter,Ut=un.readOnly,gt=un.autoSize,Pt=un.onKeyDown,Tt=(0,ze.Z)(un,Nt),Yt=(0,Ke.Z)(vt,{value:$e,defaultValue:vt}),dn=(0,Mt.Z)(Yt,2),On=dn[0],wn=dn[1],nn=On==null?"":String(On),jt=Ht.useState(!1),Xt=(0,Mt.Z)(jt,2),pn=Xt[0],bn=Xt[1],Un=Ht.useRef(!1),ti=Ht.useState(null),pi=(0,Mt.Z)(ti,2),vn=pi[0],wi=pi[1],Yi=(0,Ht.useRef)(null),gr=(0,Ht.useRef)(null),rr=function(){var Pn;return(Pn=gr.current)===null||Pn===void 0?void 0:Pn.textArea},tr=function(){rr().focus()};(0,Ht.useImperativeHandle)(_t,function(){var ai;return{resizableTextArea:gr.current,focus:tr,blur:function(){rr().blur()},nativeElement:((ai=Yi.current)===null||ai===void 0?void 0:ai.nativeElement)||rr()}}),(0,Ht.useEffect)(function(){bn(function(ai){return!we&&ai})},[we]);var vr=Ht.useState(null),hr=(0,Mt.Z)(vr,2),ar=hr[0],Xi=hr[1];Ht.useEffect(function(){if(ar){var ai;(ai=rr()).setSelectionRange.apply(ai,(0,Dt.Z)(ar))}},[ar]);var yr=(0,Me.Z)(Kn,Ai),Ce=(hn=yr.max)!==null&&hn!==void 0?hn:Xn,Sn=Number(Ce)>0,Gn=yr.strategy(nn),dr=!!Ce&&Gn>Ce,or=function(Pn,zi){var fr=zi;!Un.current&&yr.exceedFormatter&&yr.max&&yr.strategy(zi)>yr.max&&(fr=yr.exceedFormatter(zi,{max:yr.max}),zi!==fr&&Xi([rr().selectionStart||0,rr().selectionEnd||0])),wn(fr),(0,zt.rJ)(Pn.currentTarget,Pn,Fn,fr)},Ii=function(Pn){Un.current=!0,Nn==null||Nn(Pn)},Tn=function(Pn){Un.current=!1,or(Pn,Pn.currentTarget.value),mi==null||mi(Pn)},Cn=function(Pn){or(Pn,Pn.target.value)},Mn=function(Pn){Pn.key==="Enter"&&Bt&&Bt(Pn),Pt==null||Pt(Pn)},yt=function(Pn){bn(!0),gn==null||gn(Pn)},xt=function(Pn){bn(!1),ci==null||ci(Pn)},Ct=function(Pn){wn(""),tr(),(0,zt.rJ)(rr(),Pn,Fn)},Yn=Zt,$n;yr.show&&(yr.showFormatter?$n=yr.showFormatter({value:nn,count:Gn,maxLength:Ce}):$n="".concat(Gn).concat(Sn?" / ".concat(Ce):""),Yn=Ht.createElement(Ht.Fragment,null,Yn,Ht.createElement("span",{className:Kt()("".concat(wt,"-data-count"),Ge==null?void 0:Ge.count),style:ke==null?void 0:ke.count},$n)));var di=function(Pn){var zi;et==null||et(Pn),(zi=rr())!==null&&zi!==void 0&&zi.style.height&&wi(!0)},xn=!gt&&!Ai&&!rn;return Ht.createElement(Et.BaseInput,{ref:Yi,value:nn,allowClear:rn,handleReset:Ct,suffix:Yn,prefixCls:wt,classNames:(0,it.Z)((0,it.Z)({},Ge),{},{affixWrapper:Kt()(Ge==null?void 0:Ge.affixWrapper,(0,nt.Z)((0,nt.Z)({},"".concat(wt,"-show-count"),Ai),"".concat(wt,"-textarea-allow-clear"),rn))}),disabled:we,focused:pn,className:Kt()(je,dr&&"".concat(wt,"-out-of-range")),style:(0,it.Z)((0,it.Z)({},Le),vn&&!xn?{height:"auto"}:{}),dataAttrs:{affixWrapper:{"data-count":typeof $n=="string"?$n:void 0}},hidden:Be,readOnly:Ut,onClear:an},Ht.createElement(ft,(0,ye.Z)({},Tt,{autoSize:gt,maxLength:Xn,onKeyDown:Mn,onChange:Cn,onFocus:yt,onBlur:xt,onCompositionStart:Ii,onCompositionEnd:Tn,className:Kt()(Ge==null?void 0:Ge.textarea),style:(0,it.Z)((0,it.Z)({},ke==null?void 0:ke.textarea),{},{resize:Le==null?void 0:Le.resize}),disabled:we,prefixCls:wt,onResize:di,ref:gr,readOnly:Ut})))}),ln=Lt,kn=ln},9940:function(Jn,gi,De){"use strict";De.d(gi,{Qw:function(){return Ai},FJ:function(){return je},hT:function(){return Kn},OF:function(){return Se},ZP:function(){return Ut}});var ye=De(5016),nt=De(92393),it=De(20049),Dt=De(52456),Mt=De(5883),ze=De(10928),dt=De(37463),Kt=De(6551),Et=De(34643),Me=De(18929),zt=De(48736),Ke=De(59301),Ht=function(gt){var Pt=Ke.useRef({valueLabels:new Map});return Ke.useMemo(function(){var Tt=Pt.current.valueLabels,Yt=new Map,dn=gt.map(function(On){var wn=On.value,nn=On.label,jt=nn!=null?nn:Tt.get(wn);return Yt.set(wn,jt),(0,it.Z)((0,it.Z)({},On),{},{label:jt})});return Pt.current.valueLabels=Yt,[dn]},[gt])},Ne=function(Pt,Tt,Yt,dn){return Ke.useMemo(function(){var On=function(ti){return ti.map(function(pi){var vn=pi.value;return vn})},wn=On(Pt),nn=On(Tt),jt=wn.filter(function(Un){return!dn[Un]}),Xt=wn,pn=nn;if(Yt){var bn=(0,Et.S)(wn,!0,dn);Xt=bn.checkedKeys,pn=bn.halfCheckedKeys}return[Array.from(new Set([].concat((0,nt.Z)(jt),(0,nt.Z)(Xt)))),pn]},[Pt,Tt,Yt,dn])},ne=Ne,te=De(34061),de=function(gt,Pt){return Ke.useMemo(function(){var Tt=(0,te.I8)(gt,{fieldNames:Pt,initWrapper:function(dn){return(0,it.Z)((0,it.Z)({},dn),{},{valueEntities:new Map})},processEntity:function(dn,On){var wn=dn.node[Pt.value];if(0)var nn;On.valueEntities.set(wn,dn)}});return Tt},[gt,Pt])},le=De(18082),ge=De(11592),me=function(){return null},Se=me,be=["children","value"];function Ie(gt){return(0,ge.Z)(gt).map(function(Pt){if(!Ke.isValidElement(Pt)||!Pt.type)return null;var Tt=Pt,Yt=Tt.key,dn=Tt.props,On=dn.children,wn=dn.value,nn=(0,Mt.Z)(dn,be),jt=(0,it.Z)({key:Yt,value:wn},nn),Xt=Ie(On);return Xt.length&&(jt.children=Xt),jt}).filter(function(Pt){return Pt})}function Ze(gt){if(!gt)return gt;var Pt=(0,it.Z)({},gt);return"props"in Pt||Object.defineProperty(Pt,"props",{get:function(){return(0,zt.ZP)(!1,"New `rc-tree-select` not support return node instance as argument anymore. Please consider to remove `props` access."),Pt}}),Pt}function st(gt,Pt,Tt,Yt,dn,On){var wn=null,nn=null;function jt(){function Xt(pn){var bn=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"0",Un=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1;return pn.map(function(ti,pi){var vn="".concat(bn,"-").concat(pi),wi=ti[On.value],Yi=Tt.includes(wi),gr=Xt(ti[On.children]||[],vn,Yi),rr=Ke.createElement(Se,ti,gr.map(function(vr){return vr.node}));if(Pt===wi&&(wn=rr),Yi){var tr={pos:vn,node:rr,children:gr};return Un||nn.push(tr),tr}return null}).filter(function(ti){return ti})}nn||(nn=[],Xt(Yt),nn.sort(function(pn,bn){var Un=pn.node.props.value,ti=bn.node.props.value,pi=Tt.indexOf(Un),vn=Tt.indexOf(ti);return pi-vn}))}Object.defineProperty(gt,"triggerNode",{get:function(){return(0,zt.ZP)(!1,"`triggerNode` is deprecated. Please consider decoupling data with node."),jt(),wn}}),Object.defineProperty(gt,"allCheckedNodes",{get:function(){return(0,zt.ZP)(!1,"`allCheckedNodes` is deprecated. Please consider decoupling data with node."),jt(),dn?nn:nn.map(function(pn){var bn=pn.node;return bn})}})}var Ye=function(Pt,Tt,Yt){var dn=Yt.fieldNames,On=Yt.treeNodeFilterProp,wn=Yt.filterTreeNode,nn=dn.children;return Ke.useMemo(function(){if(!Tt||wn===!1)return Pt;var jt=typeof wn=="function"?wn:function(pn,bn){return String(bn[On]).toUpperCase().includes(Tt.toUpperCase())},Xt=function pn(bn){var Un=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1;return bn.reduce(function(ti,pi){var vn=pi[nn],wi=Un||jt(Tt,Ze(pi)),Yi=pn(vn||[],wi);return(wi||Yi.length)&&ti.push((0,it.Z)((0,it.Z)({},pi),{},(0,le.Z)({isLeaf:void 0},nn,Yi))),ti},[])};return Xt(Pt)},[Pt,Tt,nn,On,wn])},Xe=Ye;function At(gt){var Pt=Ke.useRef();Pt.current=gt;var Tt=Ke.useCallback(function(){return Pt.current.apply(Pt,arguments)},[]);return Tt}function ft(gt,Pt){var Tt=Pt.id,Yt=Pt.pId,dn=Pt.rootPId,On=new Map,wn=[];return gt.forEach(function(nn){var jt=nn[Tt],Xt=(0,it.Z)((0,it.Z)({},nn),{},{key:nn.key||jt});On.set(jt,Xt)}),On.forEach(function(nn){var jt=nn[Yt],Xt=On.get(jt);Xt?(Xt.children=Xt.children||[],Xt.children.push(nn)):(jt===dn||dn===null)&&wn.push(nn)}),wn}function Nt(gt,Pt,Tt){return Ke.useMemo(function(){if(gt){if(Tt){var Yt=(0,it.Z)({id:"id",pId:"pId",rootPId:null},(0,ze.Z)(Tt)==="object"?Tt:{});return ft(gt,Yt)}return gt}return Ie(Pt)},[Pt,Tt,gt])}var Lt=Ke.createContext(null),ln=Lt,kn=De(86319),un=De(28390),_t=De(10228),hn=De(80547),vt=Ke.createContext(null),$e=vt,gn=function(Pt){return Array.isArray(Pt)?Pt:Pt!==void 0?[Pt]:[]},ci=function(Pt){var Tt=Pt||{},Yt=Tt.label,dn=Tt.value,On=Tt.children;return{_title:Yt?[Yt]:["title","label"],value:dn||"value",key:dn||"value",children:On||"children"}},Fn=function(Pt){return!Pt||Pt.disabled||Pt.disableCheckbox||Pt.checkable===!1},rn=function(Pt,Tt){var Yt=[],dn=function On(wn){wn.forEach(function(nn){var jt=nn[Tt.children];jt&&(Yt.push(nn[Tt.value]),On(jt))})};return dn(Pt),Yt},Xn=function(Pt){return Pt==null},Nn=De(70425),mi={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},Zt=function(Pt,Tt){var Yt=(0,dt.lk)(),dn=Yt.prefixCls,On=Yt.multiple,wn=Yt.searchValue,nn=Yt.toggleOpen,jt=Yt.open,Xt=Yt.notFoundContent,pn=Ke.useContext($e),bn=pn.virtual,Un=pn.listHeight,ti=pn.listItemHeight,pi=pn.listItemScrollOffset,vn=pn.treeData,wi=pn.fieldNames,Yi=pn.onSelect,gr=pn.dropdownMatchSelectWidth,rr=pn.treeExpandAction,tr=pn.treeTitleRender,vr=pn.onPopupScroll,hr=pn.leftMaxCount,ar=pn.leafCountOnly,Xi=pn.valueEntities,yr=Ke.useContext(ln),Ce=yr.checkable,Sn=yr.checkedKeys,Gn=yr.halfCheckedKeys,dr=yr.treeExpandedKeys,or=yr.treeDefaultExpandAll,Ii=yr.treeDefaultExpandedKeys,Tn=yr.onTreeExpand,Cn=yr.treeIcon,Mn=yr.showTreeIcon,yt=yr.switcherIcon,xt=yr.treeLine,Ct=yr.treeNodeFilterProp,Yn=yr.loadData,$n=yr.treeLoadedKeys,di=yr.treeMotion,xn=yr.onTreeLoad,ai=yr.keyEntities,Pn=Ke.useRef(),zi=(0,hn.Z)(function(){return vn},[jt,vn],function(cn,sr){return sr[0]&&cn[1]!==sr[1]}),fr=Ke.useMemo(function(){return Ce?{checked:Sn,halfChecked:Gn}:null},[Ce,Sn,Gn]);Ke.useEffect(function(){if(jt&&!On&&Sn.length){var cn;(cn=Pn.current)===null||cn===void 0||cn.scrollTo({key:Sn[0]})}},[jt]);var Ve=function(sr){sr.preventDefault()},mt=function(sr,yn){var bi=yn.node;Ce&&Fn(bi)||(Yi(bi.key,{selected:!Sn.includes(bi.key)}),On||nn(!1))},Dn=Ke.useState(Ii),An=(0,Dt.Z)(Dn,2),Ot=An[0],Bn=An[1],Hn=Ke.useState(null),_n=(0,Dt.Z)(Hn,2),Ei=_n[0],si=_n[1],Pi=Ke.useMemo(function(){return dr?(0,nt.Z)(dr):wn?Ei:Ot},[Ot,Ei,dr,wn]),yi=function(sr){Bn(sr),si(sr),Tn&&Tn(sr)},_i=String(wn).toLowerCase(),Ri=function(sr){return _i?String(sr[Ct]).toLowerCase().includes(_i):!1};Ke.useEffect(function(){wn&&si(rn(vn,wi))},[wn]);var Di=Ke.useState(function(){return new Map}),sn=(0,Dt.Z)(Di,2),pr=sn[0],Mr=sn[1];Ke.useEffect(function(){hr&&Mr(new Map)},[hr]);function Kr(cn){var sr=cn[wi.value];if(!pr.has(sr)){var yn=Xi.get(sr),bi=(yn.children||[]).length===0;if(bi)pr.set(sr,!1);else{var Cr=yn.children.filter(function(to){return!to.node.disabled&&!to.node.disableCheckbox&&!Sn.includes(to.node[wi.value])}),Nr=Cr.length;pr.set(sr,Nr>hr)}}return pr.get(sr)}var En=(0,Nn.zX)(function(cn){var sr=cn[wi.value];return Sn.includes(sr)||hr===null?!1:hr<=0?!0:ar&&hr?Kr(cn):!1}),Si=function cn(sr){var yn=(0,kn.Z)(sr),bi;try{for(yn.s();!(bi=yn.n()).done;){var Cr=bi.value;if(!(Cr.disabled||Cr.selectable===!1)){if(wn){if(Ri(Cr))return Cr}else return Cr;if(Cr[wi.children]){var Nr=cn(Cr[wi.children]);if(Nr)return Nr}}}}catch(to){yn.e(to)}finally{yn.f()}return null},Vi=Ke.useState(null),Wi=(0,Dt.Z)(Vi,2),$i=Wi[0],Pr=Wi[1],br=ai[$i];Ke.useEffect(function(){if(jt){var cn=null,sr=function(){var bi=Si(zi);return bi?bi[wi.value]:null};!On&&Sn.length&&!wn?cn=Sn[0]:cn=sr(),Pr(cn)}},[jt,wn]),Ke.useImperativeHandle(Tt,function(){var cn;return{scrollTo:(cn=Pn.current)===null||cn===void 0?void 0:cn.scrollTo,onKeyDown:function(yn){var bi,Cr=yn.which;switch(Cr){case _t.Z.UP:case _t.Z.DOWN:case _t.Z.LEFT:case _t.Z.RIGHT:(bi=Pn.current)===null||bi===void 0||bi.onKeyDown(yn);break;case _t.Z.ENTER:{if(br){var Nr=En(br.node),to=(br==null?void 0:br.node)||{},Ur=to.selectable,Br=to.value,ao=to.disabled;Ur!==!1&&!ao&&!Nr&&mt(null,{node:{key:$i},selected:!Sn.includes(Br)})}break}case _t.Z.ESC:nn(!1)}},onKeyUp:function(){}}});var Hi=(0,hn.Z)(function(){return!wn},[wn,dr||Ot],function(cn,sr){var yn=(0,Dt.Z)(cn,1),bi=yn[0],Cr=(0,Dt.Z)(sr,2),Nr=Cr[0],to=Cr[1];return bi!==Nr&&!!(Nr||to)}),er=Hi?Yn:null;if(zi.length===0)return Ke.createElement("div",{role:"listbox",className:"".concat(dn,"-empty"),onMouseDown:Ve},Xt);var Gi={fieldNames:wi};return $n&&(Gi.loadedKeys=$n),Pi&&(Gi.expandedKeys=Pi),Ke.createElement("div",{onMouseDown:Ve},br&&jt&&Ke.createElement("span",{style:mi,"aria-live":"assertive"},br.node.value),Ke.createElement(un.y6.Provider,{value:{nodeDisabled:En}},Ke.createElement(un.ZP,(0,ye.Z)({ref:Pn,focusable:!1,prefixCls:"".concat(dn,"-tree"),treeData:zi,height:Un,itemHeight:ti,itemScrollOffset:pi,virtual:bn!==!1&&gr!==!1,multiple:On,icon:Cn,showIcon:Mn,switcherIcon:yt,showLine:xt,loadData:er,motion:di,activeKey:$i,checkable:Ce,checkStrictly:!0,checkedKeys:fr,selectedKeys:Ce?[]:Sn,defaultExpandAll:or,titleRender:tr},Gi,{onActiveChange:Pr,onSelect:mt,onCheck:mt,onExpand:yi,onLoad:xn,filterTreeNode:Ri,expandAction:rr,onScroll:vr}))))},Rn=Ke.forwardRef(Zt),wt=Rn,Ai="SHOW_ALL",Kn="SHOW_PARENT",je="SHOW_CHILD";function Le(gt,Pt,Tt,Yt){var dn=new Set(gt);return Pt===je?gt.filter(function(On){var wn=Tt[On];return!wn||!wn.children||!wn.children.some(function(nn){var jt=nn.node;return dn.has(jt[Yt.value])})||!wn.children.every(function(nn){var jt=nn.node;return Fn(jt)||dn.has(jt[Yt.value])})}):Pt===Kn?gt.filter(function(On){var wn=Tt[On],nn=wn?wn.parent:null;return!nn||Fn(nn.node)||!dn.has(nn.key)}):gt}function we(gt){var Pt=gt.searchPlaceholder,Tt=gt.treeCheckStrictly,Yt=gt.treeCheckable,dn=gt.labelInValue,On=gt.value,wn=gt.multiple,nn=gt.showCheckedStrategy,jt=gt.maxCount;warning(!Pt,"`searchPlaceholder` has been removed."),Tt&&dn===!1&&warning(!1,"`treeCheckStrictly` will force set `labelInValue` to `true`."),(dn||Tt)&&warning(toArray(On).every(function(Xt){return Xt&&_typeof(Xt)==="object"&&"value"in Xt}),"Invalid prop `value` supplied to `TreeSelect`. You should use { label: string, value: string | number } or [{ label: string, value: string | number }] instead."),Tt||wn||Yt?warning(!On||Array.isArray(On),"`value` should be an array when `TreeSelect` is checkable or multiple."):warning(!Array.isArray(On),"`value` should not be array when `TreeSelect` is single mode."),jt&&(nn==="SHOW_ALL"&&!Tt||nn==="SHOW_PARENT")&&warning(!1,"`maxCount` not work with `showCheckedStrategy=SHOW_ALL` (when `treeCheckStrictly=false`) or `showCheckedStrategy=SHOW_PARENT`.")}var Be=null,Ge=["id","prefixCls","value","defaultValue","onChange","onSelect","onDeselect","searchValue","inputValue","onSearch","autoClearSearchValue","filterTreeNode","treeNodeFilterProp","showCheckedStrategy","treeNodeLabelProp","multiple","treeCheckable","treeCheckStrictly","labelInValue","maxCount","fieldNames","treeDataSimpleMode","treeData","children","loadData","treeLoadedKeys","onTreeLoad","treeDefaultExpandAll","treeExpandedKeys","treeDefaultExpandedKeys","onTreeExpand","treeExpandAction","virtual","listHeight","listItemHeight","listItemScrollOffset","onDropdownVisibleChange","dropdownMatchSelectWidth","treeLine","treeIcon","showTreeIcon","switcherIcon","treeMotion","treeTitleRender","onPopupScroll"];function ke(gt){return!gt||(0,ze.Z)(gt)!=="object"}var et=Ke.forwardRef(function(gt,Pt){var Tt=gt.id,Yt=gt.prefixCls,dn=Yt===void 0?"rc-tree-select":Yt,On=gt.value,wn=gt.defaultValue,nn=gt.onChange,jt=gt.onSelect,Xt=gt.onDeselect,pn=gt.searchValue,bn=gt.inputValue,Un=gt.onSearch,ti=gt.autoClearSearchValue,pi=ti===void 0?!0:ti,vn=gt.filterTreeNode,wi=gt.treeNodeFilterProp,Yi=wi===void 0?"value":wi,gr=gt.showCheckedStrategy,rr=gt.treeNodeLabelProp,tr=gt.multiple,vr=gt.treeCheckable,hr=gt.treeCheckStrictly,ar=gt.labelInValue,Xi=gt.maxCount,yr=gt.fieldNames,Ce=gt.treeDataSimpleMode,Sn=gt.treeData,Gn=gt.children,dr=gt.loadData,or=gt.treeLoadedKeys,Ii=gt.onTreeLoad,Tn=gt.treeDefaultExpandAll,Cn=gt.treeExpandedKeys,Mn=gt.treeDefaultExpandedKeys,yt=gt.onTreeExpand,xt=gt.treeExpandAction,Ct=gt.virtual,Yn=gt.listHeight,$n=Yn===void 0?200:Yn,di=gt.listItemHeight,xn=di===void 0?20:di,ai=gt.listItemScrollOffset,Pn=ai===void 0?0:ai,zi=gt.onDropdownVisibleChange,fr=gt.dropdownMatchSelectWidth,Ve=fr===void 0?!0:fr,mt=gt.treeLine,Dn=gt.treeIcon,An=gt.showTreeIcon,Ot=gt.switcherIcon,Bn=gt.treeMotion,Hn=gt.treeTitleRender,_n=gt.onPopupScroll,Ei=(0,Mt.Z)(gt,Ge),si=(0,Kt.ZP)(Tt),Pi=vr&&!hr,yi=vr||hr,_i=hr||ar,Ri=yi||tr,Di=(0,Me.Z)(wn,{value:On}),sn=(0,Dt.Z)(Di,2),pr=sn[0],Mr=sn[1],Kr=Ke.useMemo(function(){return vr?gr||je:Ai},[gr,vr]),En=Ke.useMemo(function(){return ci(yr)},[JSON.stringify(yr)]),Si=(0,Me.Z)("",{value:pn!==void 0?pn:bn,postState:function(Re){return Re||""}}),Vi=(0,Dt.Z)(Si,2),Wi=Vi[0],$i=Vi[1],Pr=function(Re){$i(Re),Un==null||Un(Re)},br=Nt(Sn,Gn,Ce),Hi=de(br,En),er=Hi.keyEntities,Gi=Hi.valueEntities,cn=Ke.useCallback(function(Ue){var Re=[],ot=[];return Ue.forEach(function(lt){Gi.has(lt)?ot.push(lt):Re.push(lt)}),{missingRawValues:Re,existRawValues:ot}},[Gi]),sr=Xe(br,Wi,{fieldNames:En,treeNodeFilterProp:Yi,filterTreeNode:vn}),yn=Ke.useCallback(function(Ue){if(Ue){if(rr)return Ue[rr];for(var Re=En._title,ot=0;ot<Re.length;ot+=1){var lt=Ue[Re[ot]];if(lt!==void 0)return lt}}},[En,rr]),bi=Ke.useCallback(function(Ue){var Re=gn(Ue);return Re.map(function(ot){return ke(ot)?{value:ot}:ot})},[]),Cr=Ke.useCallback(function(Ue){var Re=bi(Ue);return Re.map(function(ot){var lt=ot.label,Wt=ot.value,Vt=ot.halfChecked,tn,Ln=Gi.get(Wt);if(Ln){var Wn;lt=Hn?Hn(Ln.node):(Wn=lt)!==null&&Wn!==void 0?Wn:yn(Ln.node),tn=Ln.node.disabled}else if(lt===void 0){var mn=bi(pr).find(function(ei){return ei.value===Wt});lt=mn.label}return{label:lt,value:Wt,halfChecked:Vt,disabled:tn}})},[Gi,yn,bi,pr]),Nr=Ke.useMemo(function(){return bi(pr===null?[]:pr)},[bi,pr]),to=Ke.useMemo(function(){var Ue=[],Re=[];return Nr.forEach(function(ot){ot.halfChecked?Re.push(ot):Ue.push(ot)}),[Ue,Re]},[Nr]),Ur=(0,Dt.Z)(to,2),Br=Ur[0],ao=Ur[1],Qt=Ke.useMemo(function(){return Br.map(function(Ue){return Ue.value})},[Br]),Vn=ne(Br,ao,Pi,er),$t=(0,Dt.Z)(Vn,2),Te=$t[0],He=$t[1],qe=Ke.useMemo(function(){var Ue=Le(Te,Kr,er,En),Re=Ue.map(function(Vt){var tn,Ln;return(tn=(Ln=er[Vt])===null||Ln===void 0||(Ln=Ln.node)===null||Ln===void 0?void 0:Ln[En.value])!==null&&tn!==void 0?tn:Vt}),ot=Re.map(function(Vt){var tn=Br.find(function(Wn){return Wn.value===Vt}),Ln=ar?tn==null?void 0:tn.label:Hn==null?void 0:Hn(tn);return{value:Vt,label:Ln}}),lt=Cr(ot),Wt=lt[0];return!Ri&&Wt&&Xn(Wt.value)&&Xn(Wt.label)?[]:lt.map(function(Vt){var tn;return(0,it.Z)((0,it.Z)({},Vt),{},{label:(tn=Vt.label)!==null&&tn!==void 0?tn:Vt.value})})},[En,Ri,Te,Br,Cr,Kr,er]),St=Ht(qe),It=(0,Dt.Z)(St,1),en=It[0],tt=Ke.useMemo(function(){return Ri&&(Kr==="SHOW_CHILD"||hr||!vr)?Xi:null},[Xi,Ri,hr,Kr,vr]),Ft=At(function(Ue,Re,ot){var lt=Le(Ue,Kr,er,En);if(!(tt&<.length>tt)){var Wt=Cr(Ue);if(Mr(Wt),pi&&$i(""),nn){var Vt=Ue;Pi&&(Vt=lt.map(function(jn){var oi=Gi.get(jn);return oi?oi.node[En.value]:jn}));var tn=Re||{triggerValue:void 0,selected:void 0},Ln=tn.triggerValue,Wn=tn.selected,mn=Vt;if(hr){var ei=ao.filter(function(jn){return!Vt.includes(jn.value)});mn=[].concat((0,nt.Z)(mn),(0,nt.Z)(ei))}var fi=Cr(mn),ut={preValue:Br,triggerValue:Ln},Qn=!0;(hr||ot==="selection"&&!Wn)&&(Qn=!1),st(ut,Ln,Ue,br,Qn,En),yi?ut.checked=Wn:ut.selected=Wn;var ri=_i?fi:fi.map(function(jn){return jn.value});nn(Ri?ri:ri[0],_i?null:fi.map(function(jn){return jn.label}),ut)}}}),Gt=Ke.useCallback(function(Ue,Re){var ot,lt=Re.selected,Wt=Re.source,Vt=er[Ue],tn=Vt==null?void 0:Vt.node,Ln=(ot=tn==null?void 0:tn[En.value])!==null&&ot!==void 0?ot:Ue;if(!Ri)Ft([Ln],{selected:!0,triggerValue:Ln},"option");else{var Wn=lt?[].concat((0,nt.Z)(Qt),[Ln]):Te.filter(function(oi){return oi!==Ln});if(Pi){var mn=cn(Wn),ei=mn.missingRawValues,fi=mn.existRawValues,ut=fi.map(function(oi){return Gi.get(oi).key}),Qn;if(lt){var ri=(0,Et.S)(ut,!0,er);Qn=ri.checkedKeys}else{var jn=(0,Et.S)(ut,{checked:!1,halfCheckedKeys:He},er);Qn=jn.checkedKeys}Wn=[].concat((0,nt.Z)(ei),(0,nt.Z)(Qn.map(function(oi){return er[oi].node[En.value]})))}Ft(Wn,{selected:lt,triggerValue:Ln},Wt||"option")}lt||!Ri?jt==null||jt(Ln,Ze(tn)):Xt==null||Xt(Ln,Ze(tn))},[cn,Gi,er,En,Ri,Qt,Ft,Pi,jt,Xt,Te,He,Xi]),Rt=Ke.useCallback(function(Ue){if(zi){var Re={};Object.defineProperty(Re,"documentClickClose",{get:function(){return(0,zt.ZP)(!1,"Second param of `onDropdownVisibleChange` has been removed."),!1}}),zi(Ue,Re)}},[zi]),on=At(function(Ue,Re){var ot=Ue.map(function(lt){return lt.value});if(Re.type==="clear"){Ft(ot,{},"selection");return}Re.values.length&&Gt(Re.values[0].value,{selected:!1,source:"selection"})}),li=Ke.useMemo(function(){return{virtual:Ct,dropdownMatchSelectWidth:Ve,listHeight:$n,listItemHeight:xn,listItemScrollOffset:Pn,treeData:sr,fieldNames:En,onSelect:Gt,treeExpandAction:xt,treeTitleRender:Hn,onPopupScroll:_n,leftMaxCount:Xi===void 0?null:Xi-en.length,leafCountOnly:Kr==="SHOW_CHILD"&&!hr&&!!vr,valueEntities:Gi}},[Ct,Ve,$n,xn,Pn,sr,En,Gt,xt,Hn,_n,Xi,en.length,Kr,hr,vr,Gi]),Ee=Ke.useMemo(function(){return{checkable:yi,loadData:dr,treeLoadedKeys:or,onTreeLoad:Ii,checkedKeys:Te,halfCheckedKeys:He,treeDefaultExpandAll:Tn,treeExpandedKeys:Cn,treeDefaultExpandedKeys:Mn,onTreeExpand:yt,treeIcon:Dn,treeMotion:Bn,showTreeIcon:An,switcherIcon:Ot,treeLine:mt,treeNodeFilterProp:Yi,keyEntities:er}},[yi,dr,or,Ii,Te,He,Tn,Cn,Mn,yt,Dn,Bn,An,Ot,mt,Yi,er]);return Ke.createElement($e.Provider,{value:li},Ke.createElement(ln.Provider,{value:Ee},Ke.createElement(dt.Ac,(0,ye.Z)({ref:Pt},Ei,{id:si,prefixCls:dn,mode:Ri?"multiple":void 0,displayValues:en,onDisplayValuesChange:on,searchValue:Wi,onSearch:Pr,OptionList:wt,emptyOptions:!br.length,onDropdownVisibleChange:Rt,dropdownMatchSelectWidth:Ve}))))}),an=et;an.TreeNode=Se,an.SHOW_ALL=Ai,an.SHOW_PARENT=Kn,an.SHOW_CHILD=je;var Bt=an,Ut=Bt},639:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return me}});var ye=De(5016),nt=De(18082),it=De(20049),Dt=De(52456),Mt=De(5883),ze=De(59301),dt=De(92310),Kt=De.n(dt),Et=De(26112),Me=De(30699),zt=function(be){for(var Ie=be.prefixCls,Ze=be.level,st=be.isStart,Ye=be.isEnd,Xe="".concat(Ie,"-indent-unit"),At=[],ft=0;ft<Ze;ft+=1)At.push(ze.createElement("span",{key:ft,className:Kt()(Xe,(0,nt.Z)((0,nt.Z)({},"".concat(Xe,"-start"),st[ft]),"".concat(Xe,"-end"),Ye[ft]))}));return ze.createElement("span",{"aria-hidden":"true",className:"".concat(Ie,"-indent")},At)},Ke=ze.memo(zt),Ht=De(65065),Ne=De(34061),ne=["eventKey","className","style","dragOver","dragOverGapTop","dragOverGapBottom","isLeaf","isStart","isEnd","expanded","selected","checked","halfChecked","loading","domRef","active","data","onMouseMove","selectable"],te="open",de="close",le="---",ge=function(be){var Ie,Ze,st,Ye=be.eventKey,Xe=be.className,At=be.style,ft=be.dragOver,Nt=be.dragOverGapTop,Lt=be.dragOverGapBottom,ln=be.isLeaf,kn=be.isStart,un=be.isEnd,_t=be.expanded,hn=be.selected,vt=be.checked,$e=be.halfChecked,gn=be.loading,ci=be.domRef,Fn=be.active,rn=be.data,Xn=be.onMouseMove,Nn=be.selectable,mi=(0,Mt.Z)(be,ne),Zt=ze.useContext(Me.k),Rn=ze.useContext(Me.y),wt=ze.useRef(null),Ai=ze.useState(!1),Kn=(0,Dt.Z)(Ai,2),je=Kn[0],Le=Kn[1],we=!!(Zt.disabled||be.disabled||(Ie=Rn.nodeDisabled)!==null&&Ie!==void 0&&Ie.call(Rn,rn)),Be=ze.useMemo(function(){return!Zt.checkable||be.checkable===!1?!1:Zt.checkable},[Zt.checkable,be.checkable]),Ge=function(Gn){we||Zt.onNodeSelect(Gn,(0,Ne.F)(be))},ke=function(Gn){we||!Be||be.disableCheckbox||Zt.onNodeCheck(Gn,(0,Ne.F)(be),!vt)},et=ze.useMemo(function(){return typeof Nn=="boolean"?Nn:Zt.selectable},[Nn,Zt.selectable]),an=function(Gn){Zt.onNodeClick(Gn,(0,Ne.F)(be)),et?Ge(Gn):ke(Gn)},Bt=function(Gn){Zt.onNodeDoubleClick(Gn,(0,Ne.F)(be))},Ut=function(Gn){Zt.onNodeMouseEnter(Gn,(0,Ne.F)(be))},gt=function(Gn){Zt.onNodeMouseLeave(Gn,(0,Ne.F)(be))},Pt=function(Gn){Zt.onNodeContextMenu(Gn,(0,Ne.F)(be))},Tt=ze.useMemo(function(){return!!(Zt.draggable&&(!Zt.draggable.nodeDraggable||Zt.draggable.nodeDraggable(rn)))},[Zt.draggable,rn]),Yt=function(Gn){Gn.stopPropagation(),Le(!0),Zt.onNodeDragStart(Gn,be);try{Gn.dataTransfer.setData("text/plain","")}catch(dr){}},dn=function(Gn){Gn.preventDefault(),Gn.stopPropagation(),Zt.onNodeDragEnter(Gn,be)},On=function(Gn){Gn.preventDefault(),Gn.stopPropagation(),Zt.onNodeDragOver(Gn,be)},wn=function(Gn){Gn.stopPropagation(),Zt.onNodeDragLeave(Gn,be)},nn=function(Gn){Gn.stopPropagation(),Le(!1),Zt.onNodeDragEnd(Gn,be)},jt=function(Gn){Gn.preventDefault(),Gn.stopPropagation(),Le(!1),Zt.onNodeDrop(Gn,be)},Xt=function(Gn){gn||Zt.onNodeExpand(Gn,(0,Ne.F)(be))},pn=ze.useMemo(function(){var Sn=(0,Ht.Z)(Zt.keyEntities,Ye)||{},Gn=Sn.children;return!!(Gn||[]).length},[Zt.keyEntities,Ye]),bn=ze.useMemo(function(){return ln===!1?!1:ln||!Zt.loadData&&!pn||Zt.loadData&&be.loaded&&!pn},[ln,Zt.loadData,pn,be.loaded]);ze.useEffect(function(){gn||typeof Zt.loadData=="function"&&_t&&!bn&&!be.loaded&&Zt.onNodeLoad((0,Ne.F)(be))},[gn,Zt.loadData,Zt.onNodeLoad,_t,bn,be]);var Un=ze.useMemo(function(){var Sn;return(Sn=Zt.draggable)!==null&&Sn!==void 0&&Sn.icon?ze.createElement("span",{className:"".concat(Zt.prefixCls,"-draggable-icon")},Zt.draggable.icon):null},[Zt.draggable]),ti=function(Gn){var dr=be.switcherIcon||Zt.switcherIcon;return typeof dr=="function"?dr((0,it.Z)((0,it.Z)({},be),{},{isLeaf:Gn})):dr},pi=function(){if(bn){var Gn=ti(!0);return Gn!==!1?ze.createElement("span",{className:Kt()("".concat(Zt.prefixCls,"-switcher"),"".concat(Zt.prefixCls,"-switcher-noop"))},Gn):null}var dr=ti(!1);return dr!==!1?ze.createElement("span",{onClick:Xt,className:Kt()("".concat(Zt.prefixCls,"-switcher"),"".concat(Zt.prefixCls,"-switcher_").concat(_t?te:de))},dr):null},vn=ze.useMemo(function(){if(!Be)return null;var Sn=typeof Be!="boolean"?Be:null;return ze.createElement("span",{className:Kt()("".concat(Zt.prefixCls,"-checkbox"),(0,nt.Z)((0,nt.Z)((0,nt.Z)({},"".concat(Zt.prefixCls,"-checkbox-checked"),vt),"".concat(Zt.prefixCls,"-checkbox-indeterminate"),!vt&&$e),"".concat(Zt.prefixCls,"-checkbox-disabled"),we||be.disableCheckbox)),onClick:ke,role:"checkbox","aria-checked":$e?"mixed":vt,"aria-disabled":we||be.disableCheckbox,"aria-label":"Select ".concat(typeof be.title=="string"?be.title:"tree node")},Sn)},[Be,vt,$e,we,be.disableCheckbox,be.title]),wi=ze.useMemo(function(){return bn?null:_t?te:de},[bn,_t]),Yi=ze.useMemo(function(){return ze.createElement("span",{className:Kt()("".concat(Zt.prefixCls,"-iconEle"),"".concat(Zt.prefixCls,"-icon__").concat(wi||"docu"),(0,nt.Z)({},"".concat(Zt.prefixCls,"-icon_loading"),gn))})},[Zt.prefixCls,wi,gn]),gr=ze.useMemo(function(){var Sn=!!Zt.draggable,Gn=!be.disabled&&Sn&&Zt.dragOverNodeKey===Ye;return Gn?Zt.dropIndicatorRender({dropPosition:Zt.dropPosition,dropLevelOffset:Zt.dropLevelOffset,indent:Zt.indent,prefixCls:Zt.prefixCls,direction:Zt.direction}):null},[Zt.dropPosition,Zt.dropLevelOffset,Zt.indent,Zt.prefixCls,Zt.direction,Zt.draggable,Zt.dragOverNodeKey,Zt.dropIndicatorRender]),rr=ze.useMemo(function(){var Sn=be.title,Gn=Sn===void 0?le:Sn,dr="".concat(Zt.prefixCls,"-node-content-wrapper"),or;if(Zt.showIcon){var Ii=be.icon||Zt.icon;or=Ii?ze.createElement("span",{className:Kt()("".concat(Zt.prefixCls,"-iconEle"),"".concat(Zt.prefixCls,"-icon__customize"))},typeof Ii=="function"?Ii(be):Ii):Yi}else Zt.loadData&&gn&&(or=Yi);var Tn;return typeof Gn=="function"?Tn=Gn(rn):Zt.titleRender?Tn=Zt.titleRender(rn):Tn=Gn,ze.createElement("span",{ref:wt,title:typeof Gn=="string"?Gn:"",className:Kt()(dr,"".concat(dr,"-").concat(wi||"normal"),(0,nt.Z)({},"".concat(Zt.prefixCls,"-node-selected"),!we&&(hn||je))),onMouseEnter:Ut,onMouseLeave:gt,onContextMenu:Pt,onClick:an,onDoubleClick:Bt},or,ze.createElement("span",{className:"".concat(Zt.prefixCls,"-title")},Tn),gr)},[Zt.prefixCls,Zt.showIcon,be,Zt.icon,Yi,Zt.titleRender,rn,wi,Ut,gt,Pt,an,Bt]),tr=(0,Et.Z)(mi,{aria:!0,data:!0}),vr=(0,Ht.Z)(Zt.keyEntities,Ye)||{},hr=vr.level,ar=un[un.length-1],Xi=!we&&Tt,yr=Zt.draggingNodeKey===Ye,Ce=Nn!==void 0?{"aria-selected":!!Nn}:void 0;return ze.createElement("div",(0,ye.Z)({ref:ci,role:"treeitem","aria-expanded":ln?void 0:_t,className:Kt()(Xe,"".concat(Zt.prefixCls,"-treenode"),(st={},(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)(st,"".concat(Zt.prefixCls,"-treenode-disabled"),we),"".concat(Zt.prefixCls,"-treenode-switcher-").concat(_t?"open":"close"),!ln),"".concat(Zt.prefixCls,"-treenode-checkbox-checked"),vt),"".concat(Zt.prefixCls,"-treenode-checkbox-indeterminate"),$e),"".concat(Zt.prefixCls,"-treenode-selected"),hn),"".concat(Zt.prefixCls,"-treenode-loading"),gn),"".concat(Zt.prefixCls,"-treenode-active"),Fn),"".concat(Zt.prefixCls,"-treenode-leaf-last"),ar),"".concat(Zt.prefixCls,"-treenode-draggable"),Tt),"dragging",yr),(0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)((0,nt.Z)(st,"drop-target",Zt.dropTargetKey===Ye),"drop-container",Zt.dropContainerKey===Ye),"drag-over",!we&&ft),"drag-over-gap-top",!we&&Nt),"drag-over-gap-bottom",!we&&Lt),"filter-node",(Ze=Zt.filterTreeNode)===null||Ze===void 0?void 0:Ze.call(Zt,(0,Ne.F)(be))),"".concat(Zt.prefixCls,"-treenode-leaf"),bn))),style:At,draggable:Xi,onDragStart:Xi?Yt:void 0,onDragEnter:Tt?dn:void 0,onDragOver:Tt?On:void 0,onDragLeave:Tt?wn:void 0,onDrop:Tt?jt:void 0,onDragEnd:Tt?nn:void 0,onMouseMove:Xn},Ce,tr),ze.createElement(Ke,{prefixCls:Zt.prefixCls,level:hr,isStart:kn,isEnd:un}),Un,pi(),vn,rr)};ge.isTreeNode=1;var me=ge},30699:function(Jn,gi,De){"use strict";De.d(gi,{k:function(){return nt},y:function(){return it}});var ye=De(59301),nt=ye.createContext(null),it=ye.createContext({})},28390:function(Jn,gi,De){"use strict";De.d(gi,{OF:function(){return Ye.Z},y6:function(){return de.y},ZP:function(){return we}});var ye=De(5016),nt=De(10928),it=De(20049),Dt=De(92393),Mt=De(6487),ze=De(56789),dt=De(41281),Kt=De(7942),Et=De(76773),Me=De(18082),zt=De(92310),Ke=De.n(zt),Ht=De(10228),Ne=De(26112),ne=De(48736),te=De(59301),de=De(30699),le=function(Ge){var ke=Ge.dropPosition,et=Ge.dropLevelOffset,an=Ge.indent,Bt={pointerEvents:"none",position:"absolute",right:0,backgroundColor:"red",height:2};switch(ke){case-1:Bt.top=0,Bt.left=-et*an;break;case 1:Bt.bottom=0,Bt.left=-et*an;break;case 0:Bt.bottom=0,Bt.left=an;break}return te.createElement("div",{style:Bt})},ge=le;function me(Be){if(Be==null)throw new TypeError("Cannot destructure "+Be)}var Se=De(52456),be=De(5883),Ie=De(34280),Ze=De(65283),st=De(77900),Ye=De(639);function Xe(Be,Ge){var ke=te.useState(!1),et=(0,Se.Z)(ke,2),an=et[0],Bt=et[1];(0,Ie.Z)(function(){if(an)return Be(),function(){Ge()}},[an]),(0,Ie.Z)(function(){return Bt(!0),function(){Bt(!1)}},[])}var At=Xe,ft=De(34061),Nt=["className","style","motion","motionNodes","motionType","onMotionStart","onMotionEnd","active","treeNodeRequiredProps"],Lt=te.forwardRef(function(Be,Ge){var ke=Be.className,et=Be.style,an=Be.motion,Bt=Be.motionNodes,Ut=Be.motionType,gt=Be.onMotionStart,Pt=Be.onMotionEnd,Tt=Be.active,Yt=Be.treeNodeRequiredProps,dn=(0,be.Z)(Be,Nt),On=te.useState(!0),wn=(0,Se.Z)(On,2),nn=wn[0],jt=wn[1],Xt=te.useContext(de.k),pn=Xt.prefixCls,bn=Bt&&Ut!=="hide";(0,Ie.Z)(function(){Bt&&bn!==nn&&jt(bn)},[Bt]);var Un=function(){Bt&>()},ti=te.useRef(!1),pi=function(){Bt&&!ti.current&&(ti.current=!0,Pt())};At(Un,pi);var vn=function(Yi){bn===Yi&&pi()};return Bt?te.createElement(st.default,(0,ye.Z)({ref:Ge,visible:nn},an,{motionAppear:Ut==="show",onVisibleChanged:vn}),function(wi,Yi){var gr=wi.className,rr=wi.style;return te.createElement("div",{ref:Yi,className:Ke()("".concat(pn,"-treenode-motion"),gr),style:rr},Bt.map(function(tr){var vr=Object.assign({},(me(tr.data),tr.data)),hr=tr.title,ar=tr.key,Xi=tr.isStart,yr=tr.isEnd;delete vr.children;var Ce=(0,ft.H8)(ar,Yt);return te.createElement(Ye.Z,(0,ye.Z)({},vr,Ce,{title:hr,active:Tt,data:tr.data,key:ar,isStart:Xi,isEnd:yr}))}))}):te.createElement(Ye.Z,(0,ye.Z)({domRef:Ge,className:ke,style:et},dn,{active:Tt}))}),ln=Lt;function kn(){var Be=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[],Ge=arguments.length>1&&arguments[1]!==void 0?arguments[1]:[],ke=Be.length,et=Ge.length;if(Math.abs(ke-et)!==1)return{add:!1,key:null};function an(Bt,Ut){var gt=new Map;Bt.forEach(function(Tt){gt.set(Tt,!0)});var Pt=Ut.filter(function(Tt){return!gt.has(Tt)});return Pt.length===1?Pt[0]:null}return ke<et?{add:!0,key:an(Be,Ge)}:{add:!1,key:an(Ge,Be)}}function un(Be,Ge,ke){var et=Be.findIndex(function(gt){return gt.key===ke}),an=Be[et+1],Bt=Ge.findIndex(function(gt){return gt.key===ke});if(an){var Ut=Ge.findIndex(function(gt){return gt.key===an.key});return Ge.slice(Bt+1,Ut)}return Ge.slice(Bt+1)}var _t=["prefixCls","data","selectable","checkable","expandedKeys","selectedKeys","checkedKeys","loadedKeys","loadingKeys","halfCheckedKeys","keyEntities","disabled","dragging","dragOverNodeKey","dropPosition","motion","height","itemHeight","virtual","scrollWidth","focusable","activeItem","focused","tabIndex","onKeyDown","onFocus","onBlur","onActiveChange","onListChangeStart","onListChangeEnd"],hn={width:0,height:0,display:"flex",overflow:"hidden",opacity:0,border:0,padding:0,margin:0},vt=function(){},$e="RC_TREE_MOTION_".concat(Math.random()),gn={key:$e},ci={key:$e,level:0,index:0,pos:"0",node:gn,nodes:[gn]},Fn={parent:null,children:[],pos:ci.pos,data:gn,title:null,key:$e,isStart:[],isEnd:[]};function rn(Be,Ge,ke,et){return Ge===!1||!ke?Be:Be.slice(0,Math.ceil(ke/et)+1)}function Xn(Be){var Ge=Be.key,ke=Be.pos;return(0,ft.km)(Ge,ke)}function Nn(Be){for(var Ge=String(Be.data.key),ke=Be;ke.parent;)ke=ke.parent,Ge="".concat(ke.data.key," > ").concat(Ge);return Ge}var mi=te.forwardRef(function(Be,Ge){var ke=Be.prefixCls,et=Be.data,an=Be.selectable,Bt=Be.checkable,Ut=Be.expandedKeys,gt=Be.selectedKeys,Pt=Be.checkedKeys,Tt=Be.loadedKeys,Yt=Be.loadingKeys,dn=Be.halfCheckedKeys,On=Be.keyEntities,wn=Be.disabled,nn=Be.dragging,jt=Be.dragOverNodeKey,Xt=Be.dropPosition,pn=Be.motion,bn=Be.height,Un=Be.itemHeight,ti=Be.virtual,pi=Be.scrollWidth,vn=Be.focusable,wi=Be.activeItem,Yi=Be.focused,gr=Be.tabIndex,rr=Be.onKeyDown,tr=Be.onFocus,vr=Be.onBlur,hr=Be.onActiveChange,ar=Be.onListChangeStart,Xi=Be.onListChangeEnd,yr=(0,be.Z)(Be,_t),Ce=te.useRef(null),Sn=te.useRef(null);te.useImperativeHandle(Ge,function(){return{scrollTo:function(_n){Ce.current.scrollTo(_n)},getIndentWidth:function(){return Sn.current.offsetWidth}}});var Gn=te.useState(Ut),dr=(0,Se.Z)(Gn,2),or=dr[0],Ii=dr[1],Tn=te.useState(et),Cn=(0,Se.Z)(Tn,2),Mn=Cn[0],yt=Cn[1],xt=te.useState(et),Ct=(0,Se.Z)(xt,2),Yn=Ct[0],$n=Ct[1],di=te.useState([]),xn=(0,Se.Z)(di,2),ai=xn[0],Pn=xn[1],zi=te.useState(null),fr=(0,Se.Z)(zi,2),Ve=fr[0],mt=fr[1],Dn=te.useRef(et);Dn.current=et;function An(){var Hn=Dn.current;yt(Hn),$n(Hn),Pn([]),mt(null),Xi()}(0,Ie.Z)(function(){Ii(Ut);var Hn=kn(or,Ut);if(Hn.key!==null)if(Hn.add){var _n=Mn.findIndex(function(Ri){var Di=Ri.key;return Di===Hn.key}),Ei=rn(un(Mn,et,Hn.key),ti,bn,Un),si=Mn.slice();si.splice(_n+1,0,Fn),$n(si),Pn(Ei),mt("show")}else{var Pi=et.findIndex(function(Ri){var Di=Ri.key;return Di===Hn.key}),yi=rn(un(et,Mn,Hn.key),ti,bn,Un),_i=et.slice();_i.splice(Pi+1,0,Fn),$n(_i),Pn(yi),mt("hide")}else Mn!==et&&(yt(et),$n(et))},[Ut,et]),te.useEffect(function(){nn||An()},[nn]);var Ot=pn?Yn:et,Bn={expandedKeys:Ut,selectedKeys:gt,loadedKeys:Tt,loadingKeys:Yt,checkedKeys:Pt,halfCheckedKeys:dn,dragOverNodeKey:jt,dropPosition:Xt,keyEntities:On};return te.createElement(te.Fragment,null,Yi&&wi&&te.createElement("span",{style:hn,"aria-live":"assertive"},Nn(wi)),te.createElement("div",null,te.createElement("input",{style:hn,disabled:vn===!1||wn,tabIndex:vn!==!1?gr:null,onKeyDown:rr,onFocus:tr,onBlur:vr,value:"",onChange:vt,"aria-label":"for screen reader"})),te.createElement("div",{className:"".concat(ke,"-treenode"),"aria-hidden":!0,style:{position:"absolute",pointerEvents:"none",visibility:"hidden",height:0,overflow:"hidden",border:0,padding:0}},te.createElement("div",{className:"".concat(ke,"-indent")},te.createElement("div",{ref:Sn,className:"".concat(ke,"-indent-unit")}))),te.createElement(Ze.Z,(0,ye.Z)({},yr,{data:Ot,itemKey:Xn,height:bn,fullHeight:!1,virtual:ti,itemHeight:Un,scrollWidth:pi,prefixCls:"".concat(ke,"-list"),ref:Ce,role:"tree",onVisibleChange:function(_n){_n.every(function(Ei){return Xn(Ei)!==$e})&&An()}}),function(Hn){var _n=Hn.pos,Ei=Object.assign({},(me(Hn.data),Hn.data)),si=Hn.title,Pi=Hn.key,yi=Hn.isStart,_i=Hn.isEnd,Ri=(0,ft.km)(Pi,_n);delete Ei.key,delete Ei.children;var Di=(0,ft.H8)(Ri,Bn);return te.createElement(ln,(0,ye.Z)({},Ei,Di,{title:si,active:!!wi&&Pi===wi.key,pos:_n,data:Hn.data,isStart:yi,isEnd:_i,motion:pn,motionNodes:Pi===$e?ai:null,motionType:Ve,onMotionStart:ar,onMotionEnd:An,treeNodeRequiredProps:Bn,onMouseMove:function(){hr(null)}}))}))}),Zt=mi,Rn=De(82661),wt=De(34643),Ai=De(65065),Kn=10,je=function(Be){(0,Kt.Z)(ke,Be);var Ge=(0,Et.Z)(ke);function ke(){var et;(0,Mt.Z)(this,ke);for(var an=arguments.length,Bt=new Array(an),Ut=0;Ut<an;Ut++)Bt[Ut]=arguments[Ut];return et=Ge.call.apply(Ge,[this].concat(Bt)),(0,Me.Z)((0,dt.Z)(et),"destroyed",!1),(0,Me.Z)((0,dt.Z)(et),"delayedDragEnterLogic",void 0),(0,Me.Z)((0,dt.Z)(et),"loadingRetryTimes",{}),(0,Me.Z)((0,dt.Z)(et),"state",{keyEntities:{},indent:null,selectedKeys:[],checkedKeys:[],halfCheckedKeys:[],loadedKeys:[],loadingKeys:[],expandedKeys:[],draggingNodeKey:null,dragChildrenKeys:[],dropTargetKey:null,dropPosition:null,dropContainerKey:null,dropLevelOffset:null,dropTargetPos:null,dropAllowed:!0,dragOverNodeKey:null,treeData:[],flattenNodes:[],focused:!1,activeKey:null,listChanging:!1,prevProps:null,fieldNames:(0,ft.w$)()}),(0,Me.Z)((0,dt.Z)(et),"dragStartMousePosition",null),(0,Me.Z)((0,dt.Z)(et),"dragNodeProps",null),(0,Me.Z)((0,dt.Z)(et),"currentMouseOverDroppableNodeKey",null),(0,Me.Z)((0,dt.Z)(et),"listRef",te.createRef()),(0,Me.Z)((0,dt.Z)(et),"onNodeDragStart",function(gt,Pt){var Tt=et.state,Yt=Tt.expandedKeys,dn=Tt.keyEntities,On=et.props.onDragStart,wn=Pt.eventKey;et.dragNodeProps=Pt,et.dragStartMousePosition={x:gt.clientX,y:gt.clientY};var nn=(0,Rn._5)(Yt,wn);et.setState({draggingNodeKey:wn,dragChildrenKeys:(0,Rn.wA)(wn,dn),indent:et.listRef.current.getIndentWidth()}),et.setExpandedKeys(nn),window.addEventListener("dragend",et.onWindowDragEnd),On==null||On({event:gt,node:(0,ft.F)(Pt)})}),(0,Me.Z)((0,dt.Z)(et),"onNodeDragEnter",function(gt,Pt){var Tt=et.state,Yt=Tt.expandedKeys,dn=Tt.keyEntities,On=Tt.dragChildrenKeys,wn=Tt.flattenNodes,nn=Tt.indent,jt=et.props,Xt=jt.onDragEnter,pn=jt.onExpand,bn=jt.allowDrop,Un=jt.direction,ti=Pt.pos,pi=Pt.eventKey;if(et.currentMouseOverDroppableNodeKey!==pi&&(et.currentMouseOverDroppableNodeKey=pi),!et.dragNodeProps){et.resetDragState();return}var vn=(0,Rn.OM)(gt,et.dragNodeProps,Pt,nn,et.dragStartMousePosition,bn,wn,dn,Yt,Un),wi=vn.dropPosition,Yi=vn.dropLevelOffset,gr=vn.dropTargetKey,rr=vn.dropContainerKey,tr=vn.dropTargetPos,vr=vn.dropAllowed,hr=vn.dragOverNodeKey;if(On.includes(gr)||!vr){et.resetDragState();return}if(et.delayedDragEnterLogic||(et.delayedDragEnterLogic={}),Object.keys(et.delayedDragEnterLogic).forEach(function(ar){clearTimeout(et.delayedDragEnterLogic[ar])}),et.dragNodeProps.eventKey!==Pt.eventKey&&(gt.persist(),et.delayedDragEnterLogic[ti]=window.setTimeout(function(){if(et.state.draggingNodeKey!==null){var ar=(0,Dt.Z)(Yt),Xi=(0,Ai.Z)(dn,Pt.eventKey);Xi&&(Xi.children||[]).length&&(ar=(0,Rn.L0)(Yt,Pt.eventKey)),et.props.hasOwnProperty("expandedKeys")||et.setExpandedKeys(ar),pn==null||pn(ar,{node:(0,ft.F)(Pt),expanded:!0,nativeEvent:gt.nativeEvent})}},800)),et.dragNodeProps.eventKey===gr&&Yi===0){et.resetDragState();return}et.setState({dragOverNodeKey:hr,dropPosition:wi,dropLevelOffset:Yi,dropTargetKey:gr,dropContainerKey:rr,dropTargetPos:tr,dropAllowed:vr}),Xt==null||Xt({event:gt,node:(0,ft.F)(Pt),expandedKeys:Yt})}),(0,Me.Z)((0,dt.Z)(et),"onNodeDragOver",function(gt,Pt){var Tt=et.state,Yt=Tt.dragChildrenKeys,dn=Tt.flattenNodes,On=Tt.keyEntities,wn=Tt.expandedKeys,nn=Tt.indent,jt=et.props,Xt=jt.onDragOver,pn=jt.allowDrop,bn=jt.direction;if(et.dragNodeProps){var Un=(0,Rn.OM)(gt,et.dragNodeProps,Pt,nn,et.dragStartMousePosition,pn,dn,On,wn,bn),ti=Un.dropPosition,pi=Un.dropLevelOffset,vn=Un.dropTargetKey,wi=Un.dropContainerKey,Yi=Un.dropTargetPos,gr=Un.dropAllowed,rr=Un.dragOverNodeKey;Yt.includes(vn)||!gr||(et.dragNodeProps.eventKey===vn&&pi===0?et.state.dropPosition===null&&et.state.dropLevelOffset===null&&et.state.dropTargetKey===null&&et.state.dropContainerKey===null&&et.state.dropTargetPos===null&&et.state.dropAllowed===!1&&et.state.dragOverNodeKey===null||et.resetDragState():ti===et.state.dropPosition&&pi===et.state.dropLevelOffset&&vn===et.state.dropTargetKey&&wi===et.state.dropContainerKey&&Yi===et.state.dropTargetPos&&gr===et.state.dropAllowed&&rr===et.state.dragOverNodeKey||et.setState({dropPosition:ti,dropLevelOffset:pi,dropTargetKey:vn,dropContainerKey:wi,dropTargetPos:Yi,dropAllowed:gr,dragOverNodeKey:rr}),Xt==null||Xt({event:gt,node:(0,ft.F)(Pt)}))}}),(0,Me.Z)((0,dt.Z)(et),"onNodeDragLeave",function(gt,Pt){et.currentMouseOverDroppableNodeKey===Pt.eventKey&&!gt.currentTarget.contains(gt.relatedTarget)&&(et.resetDragState(),et.currentMouseOverDroppableNodeKey=null);var Tt=et.props.onDragLeave;Tt==null||Tt({event:gt,node:(0,ft.F)(Pt)})}),(0,Me.Z)((0,dt.Z)(et),"onWindowDragEnd",function(gt){et.onNodeDragEnd(gt,null,!0),window.removeEventListener("dragend",et.onWindowDragEnd)}),(0,Me.Z)((0,dt.Z)(et),"onNodeDragEnd",function(gt,Pt){var Tt=et.props.onDragEnd;et.setState({dragOverNodeKey:null}),et.cleanDragState(),Tt==null||Tt({event:gt,node:(0,ft.F)(Pt)}),et.dragNodeProps=null,window.removeEventListener("dragend",et.onWindowDragEnd)}),(0,Me.Z)((0,dt.Z)(et),"onNodeDrop",function(gt,Pt){var Tt,Yt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,dn=et.state,On=dn.dragChildrenKeys,wn=dn.dropPosition,nn=dn.dropTargetKey,jt=dn.dropTargetPos,Xt=dn.dropAllowed;if(Xt){var pn=et.props.onDrop;if(et.setState({dragOverNodeKey:null}),et.cleanDragState(),nn!==null){var bn=(0,it.Z)((0,it.Z)({},(0,ft.H8)(nn,et.getTreeNodeRequiredProps())),{},{active:((Tt=et.getActiveItem())===null||Tt===void 0?void 0:Tt.key)===nn,data:(0,Ai.Z)(et.state.keyEntities,nn).node}),Un=On.includes(nn);(0,ne.ZP)(!Un,"Can not drop to dragNode's children node. This is a bug of rc-tree. Please report an issue.");var ti=(0,Rn.yx)(jt),pi={event:gt,node:(0,ft.F)(bn),dragNode:et.dragNodeProps?(0,ft.F)(et.dragNodeProps):null,dragNodesKeys:[et.dragNodeProps.eventKey].concat(On),dropToGap:wn!==0,dropPosition:wn+Number(ti[ti.length-1])};Yt||pn==null||pn(pi),et.dragNodeProps=null}}}),(0,Me.Z)((0,dt.Z)(et),"cleanDragState",function(){var gt=et.state.draggingNodeKey;gt!==null&&et.setState({draggingNodeKey:null,dropPosition:null,dropContainerKey:null,dropTargetKey:null,dropLevelOffset:null,dropAllowed:!0,dragOverNodeKey:null}),et.dragStartMousePosition=null,et.currentMouseOverDroppableNodeKey=null}),(0,Me.Z)((0,dt.Z)(et),"triggerExpandActionExpand",function(gt,Pt){var Tt=et.state,Yt=Tt.expandedKeys,dn=Tt.flattenNodes,On=Pt.expanded,wn=Pt.key,nn=Pt.isLeaf;if(!(nn||gt.shiftKey||gt.metaKey||gt.ctrlKey)){var jt=dn.filter(function(pn){return pn.key===wn})[0],Xt=(0,ft.F)((0,it.Z)((0,it.Z)({},(0,ft.H8)(wn,et.getTreeNodeRequiredProps())),{},{data:jt.data}));et.setExpandedKeys(On?(0,Rn._5)(Yt,wn):(0,Rn.L0)(Yt,wn)),et.onNodeExpand(gt,Xt)}}),(0,Me.Z)((0,dt.Z)(et),"onNodeClick",function(gt,Pt){var Tt=et.props,Yt=Tt.onClick,dn=Tt.expandAction;dn==="click"&&et.triggerExpandActionExpand(gt,Pt),Yt==null||Yt(gt,Pt)}),(0,Me.Z)((0,dt.Z)(et),"onNodeDoubleClick",function(gt,Pt){var Tt=et.props,Yt=Tt.onDoubleClick,dn=Tt.expandAction;dn==="doubleClick"&&et.triggerExpandActionExpand(gt,Pt),Yt==null||Yt(gt,Pt)}),(0,Me.Z)((0,dt.Z)(et),"onNodeSelect",function(gt,Pt){var Tt=et.state.selectedKeys,Yt=et.state,dn=Yt.keyEntities,On=Yt.fieldNames,wn=et.props,nn=wn.onSelect,jt=wn.multiple,Xt=Pt.selected,pn=Pt[On.key],bn=!Xt;bn?jt?Tt=(0,Rn.L0)(Tt,pn):Tt=[pn]:Tt=(0,Rn._5)(Tt,pn);var Un=Tt.map(function(ti){var pi=(0,Ai.Z)(dn,ti);return pi?pi.node:null}).filter(Boolean);et.setUncontrolledState({selectedKeys:Tt}),nn==null||nn(Tt,{event:"select",selected:bn,node:Pt,selectedNodes:Un,nativeEvent:gt.nativeEvent})}),(0,Me.Z)((0,dt.Z)(et),"onNodeCheck",function(gt,Pt,Tt){var Yt=et.state,dn=Yt.keyEntities,On=Yt.checkedKeys,wn=Yt.halfCheckedKeys,nn=et.props,jt=nn.checkStrictly,Xt=nn.onCheck,pn=Pt.key,bn,Un={event:"check",node:Pt,checked:Tt,nativeEvent:gt.nativeEvent};if(jt){var ti=Tt?(0,Rn.L0)(On,pn):(0,Rn._5)(On,pn),pi=(0,Rn._5)(wn,pn);bn={checked:ti,halfChecked:pi},Un.checkedNodes=ti.map(function(tr){return(0,Ai.Z)(dn,tr)}).filter(Boolean).map(function(tr){return tr.node}),et.setUncontrolledState({checkedKeys:ti})}else{var vn=(0,wt.S)([].concat((0,Dt.Z)(On),[pn]),!0,dn),wi=vn.checkedKeys,Yi=vn.halfCheckedKeys;if(!Tt){var gr=new Set(wi);gr.delete(pn);var rr=(0,wt.S)(Array.from(gr),{checked:!1,halfCheckedKeys:Yi},dn);wi=rr.checkedKeys,Yi=rr.halfCheckedKeys}bn=wi,Un.checkedNodes=[],Un.checkedNodesPositions=[],Un.halfCheckedKeys=Yi,wi.forEach(function(tr){var vr=(0,Ai.Z)(dn,tr);if(vr){var hr=vr.node,ar=vr.pos;Un.checkedNodes.push(hr),Un.checkedNodesPositions.push({node:hr,pos:ar})}}),et.setUncontrolledState({checkedKeys:wi},!1,{halfCheckedKeys:Yi})}Xt==null||Xt(bn,Un)}),(0,Me.Z)((0,dt.Z)(et),"onNodeLoad",function(gt){var Pt,Tt=gt.key,Yt=et.state.keyEntities,dn=(0,Ai.Z)(Yt,Tt);if(!(dn!=null&&(Pt=dn.children)!==null&&Pt!==void 0&&Pt.length)){var On=new Promise(function(wn,nn){et.setState(function(jt){var Xt=jt.loadedKeys,pn=Xt===void 0?[]:Xt,bn=jt.loadingKeys,Un=bn===void 0?[]:bn,ti=et.props,pi=ti.loadData,vn=ti.onLoad;if(!pi||pn.includes(Tt)||Un.includes(Tt))return null;var wi=pi(gt);return wi.then(function(){var Yi=et.state.loadedKeys,gr=(0,Rn.L0)(Yi,Tt);vn==null||vn(gr,{event:"load",node:gt}),et.setUncontrolledState({loadedKeys:gr}),et.setState(function(rr){return{loadingKeys:(0,Rn._5)(rr.loadingKeys,Tt)}}),wn()}).catch(function(Yi){if(et.setState(function(rr){return{loadingKeys:(0,Rn._5)(rr.loadingKeys,Tt)}}),et.loadingRetryTimes[Tt]=(et.loadingRetryTimes[Tt]||0)+1,et.loadingRetryTimes[Tt]>=Kn){var gr=et.state.loadedKeys;(0,ne.ZP)(!1,"Retry for `loadData` many times but still failed. No more retry."),et.setUncontrolledState({loadedKeys:(0,Rn.L0)(gr,Tt)}),wn()}nn(Yi)}),{loadingKeys:(0,Rn.L0)(Un,Tt)}})});return On.catch(function(){}),On}}),(0,Me.Z)((0,dt.Z)(et),"onNodeMouseEnter",function(gt,Pt){var Tt=et.props.onMouseEnter;Tt==null||Tt({event:gt,node:Pt})}),(0,Me.Z)((0,dt.Z)(et),"onNodeMouseLeave",function(gt,Pt){var Tt=et.props.onMouseLeave;Tt==null||Tt({event:gt,node:Pt})}),(0,Me.Z)((0,dt.Z)(et),"onNodeContextMenu",function(gt,Pt){var Tt=et.props.onRightClick;Tt&&(gt.preventDefault(),Tt({event:gt,node:Pt}))}),(0,Me.Z)((0,dt.Z)(et),"onFocus",function(){var gt=et.props.onFocus;et.setState({focused:!0});for(var Pt=arguments.length,Tt=new Array(Pt),Yt=0;Yt<Pt;Yt++)Tt[Yt]=arguments[Yt];gt==null||gt.apply(void 0,Tt)}),(0,Me.Z)((0,dt.Z)(et),"onBlur",function(){var gt=et.props.onBlur;et.setState({focused:!1}),et.onActiveChange(null);for(var Pt=arguments.length,Tt=new Array(Pt),Yt=0;Yt<Pt;Yt++)Tt[Yt]=arguments[Yt];gt==null||gt.apply(void 0,Tt)}),(0,Me.Z)((0,dt.Z)(et),"getTreeNodeRequiredProps",function(){var gt=et.state,Pt=gt.expandedKeys,Tt=gt.selectedKeys,Yt=gt.loadedKeys,dn=gt.loadingKeys,On=gt.checkedKeys,wn=gt.halfCheckedKeys,nn=gt.dragOverNodeKey,jt=gt.dropPosition,Xt=gt.keyEntities;return{expandedKeys:Pt||[],selectedKeys:Tt||[],loadedKeys:Yt||[],loadingKeys:dn||[],checkedKeys:On||[],halfCheckedKeys:wn||[],dragOverNodeKey:nn,dropPosition:jt,keyEntities:Xt}}),(0,Me.Z)((0,dt.Z)(et),"setExpandedKeys",function(gt){var Pt=et.state,Tt=Pt.treeData,Yt=Pt.fieldNames,dn=(0,ft.oH)(Tt,gt,Yt);et.setUncontrolledState({expandedKeys:gt,flattenNodes:dn},!0)}),(0,Me.Z)((0,dt.Z)(et),"onNodeExpand",function(gt,Pt){var Tt=et.state.expandedKeys,Yt=et.state,dn=Yt.listChanging,On=Yt.fieldNames,wn=et.props,nn=wn.onExpand,jt=wn.loadData,Xt=Pt.expanded,pn=Pt[On.key];if(!dn){var bn=Tt.includes(pn),Un=!Xt;if((0,ne.ZP)(Xt&&bn||!Xt&&!bn,"Expand state not sync with index check"),Tt=Un?(0,Rn.L0)(Tt,pn):(0,Rn._5)(Tt,pn),et.setExpandedKeys(Tt),nn==null||nn(Tt,{node:Pt,expanded:Un,nativeEvent:gt.nativeEvent}),Un&&jt){var ti=et.onNodeLoad(Pt);ti&&ti.then(function(){var pi=(0,ft.oH)(et.state.treeData,Tt,On);et.setUncontrolledState({flattenNodes:pi})}).catch(function(){var pi=et.state.expandedKeys,vn=(0,Rn._5)(pi,pn);et.setExpandedKeys(vn)})}}}),(0,Me.Z)((0,dt.Z)(et),"onListChangeStart",function(){et.setUncontrolledState({listChanging:!0})}),(0,Me.Z)((0,dt.Z)(et),"onListChangeEnd",function(){setTimeout(function(){et.setUncontrolledState({listChanging:!1})})}),(0,Me.Z)((0,dt.Z)(et),"onActiveChange",function(gt){var Pt=et.state.activeKey,Tt=et.props,Yt=Tt.onActiveChange,dn=Tt.itemScrollOffset,On=dn===void 0?0:dn;Pt!==gt&&(et.setState({activeKey:gt}),gt!==null&&et.scrollTo({key:gt,offset:On}),Yt==null||Yt(gt))}),(0,Me.Z)((0,dt.Z)(et),"getActiveItem",function(){var gt=et.state,Pt=gt.activeKey,Tt=gt.flattenNodes;return Pt===null?null:Tt.find(function(Yt){var dn=Yt.key;return dn===Pt})||null}),(0,Me.Z)((0,dt.Z)(et),"offsetActiveKey",function(gt){var Pt=et.state,Tt=Pt.flattenNodes,Yt=Pt.activeKey,dn=Tt.findIndex(function(nn){var jt=nn.key;return jt===Yt});dn===-1&><0&&(dn=Tt.length),dn=(dn+gt+Tt.length)%Tt.length;var On=Tt[dn];if(On){var wn=On.key;et.onActiveChange(wn)}else et.onActiveChange(null)}),(0,Me.Z)((0,dt.Z)(et),"onKeyDown",function(gt){var Pt=et.state,Tt=Pt.activeKey,Yt=Pt.expandedKeys,dn=Pt.checkedKeys,On=Pt.fieldNames,wn=et.props,nn=wn.onKeyDown,jt=wn.checkable,Xt=wn.selectable;switch(gt.which){case Ht.Z.UP:{et.offsetActiveKey(-1),gt.preventDefault();break}case Ht.Z.DOWN:{et.offsetActiveKey(1),gt.preventDefault();break}}var pn=et.getActiveItem();if(pn&&pn.data){var bn=et.getTreeNodeRequiredProps(),Un=pn.data.isLeaf===!1||!!(pn.data[On.children]||[]).length,ti=(0,ft.F)((0,it.Z)((0,it.Z)({},(0,ft.H8)(Tt,bn)),{},{data:pn.data,active:!0}));switch(gt.which){case Ht.Z.LEFT:{Un&&Yt.includes(Tt)?et.onNodeExpand({},ti):pn.parent&&et.onActiveChange(pn.parent.key),gt.preventDefault();break}case Ht.Z.RIGHT:{Un&&!Yt.includes(Tt)?et.onNodeExpand({},ti):pn.children&&pn.children.length&&et.onActiveChange(pn.children[0].key),gt.preventDefault();break}case Ht.Z.ENTER:case Ht.Z.SPACE:{jt&&!ti.disabled&&ti.checkable!==!1&&!ti.disableCheckbox?et.onNodeCheck({},ti,!dn.includes(Tt)):!jt&&Xt&&!ti.disabled&&ti.selectable!==!1&&et.onNodeSelect({},ti);break}}}nn==null||nn(gt)}),(0,Me.Z)((0,dt.Z)(et),"setUncontrolledState",function(gt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,Tt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:null;if(!et.destroyed){var Yt=!1,dn=!0,On={};Object.keys(gt).forEach(function(wn){if(et.props.hasOwnProperty(wn)){dn=!1;return}Yt=!0,On[wn]=gt[wn]}),Yt&&(!Pt||dn)&&et.setState((0,it.Z)((0,it.Z)({},On),Tt))}}),(0,Me.Z)((0,dt.Z)(et),"scrollTo",function(gt){et.listRef.current.scrollTo(gt)}),et}return(0,ze.Z)(ke,[{key:"componentDidMount",value:function(){this.destroyed=!1,this.onUpdated()}},{key:"componentDidUpdate",value:function(){this.onUpdated()}},{key:"onUpdated",value:function(){var an=this.props,Bt=an.activeKey,Ut=an.itemScrollOffset,gt=Ut===void 0?0:Ut;Bt!==void 0&&Bt!==this.state.activeKey&&(this.setState({activeKey:Bt}),Bt!==null&&this.scrollTo({key:Bt,offset:gt}))}},{key:"componentWillUnmount",value:function(){window.removeEventListener("dragend",this.onWindowDragEnd),this.destroyed=!0}},{key:"resetDragState",value:function(){this.setState({dragOverNodeKey:null,dropPosition:null,dropLevelOffset:null,dropTargetKey:null,dropContainerKey:null,dropTargetPos:null,dropAllowed:!1})}},{key:"render",value:function(){var an=this.state,Bt=an.focused,Ut=an.flattenNodes,gt=an.keyEntities,Pt=an.draggingNodeKey,Tt=an.activeKey,Yt=an.dropLevelOffset,dn=an.dropContainerKey,On=an.dropTargetKey,wn=an.dropPosition,nn=an.dragOverNodeKey,jt=an.indent,Xt=this.props,pn=Xt.prefixCls,bn=Xt.className,Un=Xt.style,ti=Xt.showLine,pi=Xt.focusable,vn=Xt.tabIndex,wi=vn===void 0?0:vn,Yi=Xt.selectable,gr=Xt.showIcon,rr=Xt.icon,tr=Xt.switcherIcon,vr=Xt.draggable,hr=Xt.checkable,ar=Xt.checkStrictly,Xi=Xt.disabled,yr=Xt.motion,Ce=Xt.loadData,Sn=Xt.filterTreeNode,Gn=Xt.height,dr=Xt.itemHeight,or=Xt.scrollWidth,Ii=Xt.virtual,Tn=Xt.titleRender,Cn=Xt.dropIndicatorRender,Mn=Xt.onContextMenu,yt=Xt.onScroll,xt=Xt.direction,Ct=Xt.rootClassName,Yn=Xt.rootStyle,$n=(0,Ne.Z)(this.props,{aria:!0,data:!0}),di;vr&&((0,nt.Z)(vr)==="object"?di=vr:typeof vr=="function"?di={nodeDraggable:vr}:di={});var xn={prefixCls:pn,selectable:Yi,showIcon:gr,icon:rr,switcherIcon:tr,draggable:di,draggingNodeKey:Pt,checkable:hr,checkStrictly:ar,disabled:Xi,keyEntities:gt,dropLevelOffset:Yt,dropContainerKey:dn,dropTargetKey:On,dropPosition:wn,dragOverNodeKey:nn,indent:jt,direction:xt,dropIndicatorRender:Cn,loadData:Ce,filterTreeNode:Sn,titleRender:Tn,onNodeClick:this.onNodeClick,onNodeDoubleClick:this.onNodeDoubleClick,onNodeExpand:this.onNodeExpand,onNodeSelect:this.onNodeSelect,onNodeCheck:this.onNodeCheck,onNodeLoad:this.onNodeLoad,onNodeMouseEnter:this.onNodeMouseEnter,onNodeMouseLeave:this.onNodeMouseLeave,onNodeContextMenu:this.onNodeContextMenu,onNodeDragStart:this.onNodeDragStart,onNodeDragEnter:this.onNodeDragEnter,onNodeDragOver:this.onNodeDragOver,onNodeDragLeave:this.onNodeDragLeave,onNodeDragEnd:this.onNodeDragEnd,onNodeDrop:this.onNodeDrop};return te.createElement(de.k.Provider,{value:xn},te.createElement("div",{className:Ke()(pn,bn,Ct,(0,Me.Z)((0,Me.Z)((0,Me.Z)({},"".concat(pn,"-show-line"),ti),"".concat(pn,"-focused"),Bt),"".concat(pn,"-active-focused"),Tt!==null)),style:Yn},te.createElement(Zt,(0,ye.Z)({ref:this.listRef,prefixCls:pn,style:Un,data:Ut,disabled:Xi,selectable:Yi,checkable:!!hr,motion:yr,dragging:Pt!==null,height:Gn,itemHeight:dr,virtual:Ii,focusable:pi,focused:Bt,tabIndex:wi,activeItem:this.getActiveItem(),onFocus:this.onFocus,onBlur:this.onBlur,onKeyDown:this.onKeyDown,onActiveChange:this.onActiveChange,onListChangeStart:this.onListChangeStart,onListChangeEnd:this.onListChangeEnd,onContextMenu:Mn,onScroll:yt,scrollWidth:or},this.getTreeNodeRequiredProps(),$n))))}}],[{key:"getDerivedStateFromProps",value:function(an,Bt){var Ut=Bt.prevProps,gt={prevProps:an};function Pt(wi){return!Ut&&an.hasOwnProperty(wi)||Ut&&Ut[wi]!==an[wi]}var Tt,Yt=Bt.fieldNames;if(Pt("fieldNames")&&(Yt=(0,ft.w$)(an.fieldNames),gt.fieldNames=Yt),Pt("treeData")?Tt=an.treeData:Pt("children")&&((0,ne.ZP)(!1,"`children` of Tree is deprecated. Please use `treeData` instead."),Tt=(0,ft.zn)(an.children)),Tt){gt.treeData=Tt;var dn=(0,ft.I8)(Tt,{fieldNames:Yt});gt.keyEntities=(0,it.Z)((0,Me.Z)({},$e,ci),dn.keyEntities)}var On=gt.keyEntities||Bt.keyEntities;if(Pt("expandedKeys")||Ut&&Pt("autoExpandParent"))gt.expandedKeys=an.autoExpandParent||!Ut&&an.defaultExpandParent?(0,Rn.r7)(an.expandedKeys,On):an.expandedKeys;else if(!Ut&&an.defaultExpandAll){var wn=(0,it.Z)({},On);delete wn[$e];var nn=[];Object.keys(wn).forEach(function(wi){var Yi=wn[wi];Yi.children&&Yi.children.length&&nn.push(Yi.key)}),gt.expandedKeys=nn}else!Ut&&an.defaultExpandedKeys&&(gt.expandedKeys=an.autoExpandParent||an.defaultExpandParent?(0,Rn.r7)(an.defaultExpandedKeys,On):an.defaultExpandedKeys);if(gt.expandedKeys||delete gt.expandedKeys,Tt||gt.expandedKeys){var jt=(0,ft.oH)(Tt||Bt.treeData,gt.expandedKeys||Bt.expandedKeys,Yt);gt.flattenNodes=jt}if(an.selectable&&(Pt("selectedKeys")?gt.selectedKeys=(0,Rn.BT)(an.selectedKeys,an):!Ut&&an.defaultSelectedKeys&&(gt.selectedKeys=(0,Rn.BT)(an.defaultSelectedKeys,an))),an.checkable){var Xt;if(Pt("checkedKeys")?Xt=(0,Rn.E6)(an.checkedKeys)||{}:!Ut&&an.defaultCheckedKeys?Xt=(0,Rn.E6)(an.defaultCheckedKeys)||{}:Tt&&(Xt=(0,Rn.E6)(an.checkedKeys)||{checkedKeys:Bt.checkedKeys,halfCheckedKeys:Bt.halfCheckedKeys}),Xt){var pn=Xt,bn=pn.checkedKeys,Un=bn===void 0?[]:bn,ti=pn.halfCheckedKeys,pi=ti===void 0?[]:ti;if(!an.checkStrictly){var vn=(0,wt.S)(Un,!0,On);Un=vn.checkedKeys,pi=vn.halfCheckedKeys}gt.checkedKeys=Un,gt.halfCheckedKeys=pi}}return Pt("loadedKeys")&&(gt.loadedKeys=an.loadedKeys),gt}}]),ke}(te.Component);(0,Me.Z)(je,"defaultProps",{prefixCls:"rc-tree",showLine:!1,showIcon:!0,selectable:!0,multiple:!1,checkable:!1,disabled:!1,checkStrictly:!1,draggable:!1,defaultExpandParent:!0,autoExpandParent:!1,defaultExpandAll:!1,defaultExpandedKeys:[],defaultCheckedKeys:[],defaultSelectedKeys:[],dropIndicatorRender:ge,allowDrop:function(){return!0},expandAction:!1}),(0,Me.Z)(je,"TreeNode",Ye.Z);var Le=je,we=Le},82661:function(Jn,gi,De){"use strict";De.d(gi,{BT:function(){return te},E6:function(){return ge},L0:function(){return Me},OM:function(){return ne},_5:function(){return Et},r7:function(){return me},wA:function(){return Ke},yx:function(){return zt}});var ye=De(92393),nt=De(10928),it=De(48736),Dt=De(59301),Mt=De(639),ze=De(65065),dt=De(34061),Kt=null;function Et(Se,be){if(!Se)return[];var Ie=Se.slice(),Ze=Ie.indexOf(be);return Ze>=0&&Ie.splice(Ze,1),Ie}function Me(Se,be){var Ie=(Se||[]).slice();return Ie.indexOf(be)===-1&&Ie.push(be),Ie}function zt(Se){return Se.split("-")}function Ke(Se,be){var Ie=[],Ze=(0,ze.Z)(be,Se);function st(){var Ye=arguments.length>0&&arguments[0]!==void 0?arguments[0]:[];Ye.forEach(function(Xe){var At=Xe.key,ft=Xe.children;Ie.push(At),st(ft)})}return st(Ze.children),Ie}function Ht(Se){if(Se.parent){var be=zt(Se.pos);return Number(be[be.length-1])===Se.parent.children.length-1}return!1}function Ne(Se){var be=zt(Se.pos);return Number(be[be.length-1])===0}function ne(Se,be,Ie,Ze,st,Ye,Xe,At,ft,Nt){var Lt,ln=Se.clientX,kn=Se.clientY,un=Se.target.getBoundingClientRect(),_t=un.top,hn=un.height,vt=(Nt==="rtl"?-1:1)*(((st==null?void 0:st.x)||0)-ln),$e=(vt-12)/Ze,gn=ft.filter(function(we){var Be;return(Be=At[we])===null||Be===void 0||(Be=Be.children)===null||Be===void 0?void 0:Be.length}),ci=(0,ze.Z)(At,Ie.eventKey);if(kn<_t+hn/2){var Fn=Xe.findIndex(function(we){return we.key===ci.key}),rn=Fn<=0?0:Fn-1,Xn=Xe[rn].key;ci=(0,ze.Z)(At,Xn)}var Nn=ci.key,mi=ci,Zt=ci.key,Rn=0,wt=0;if(!gn.includes(Nn))for(var Ai=0;Ai<$e&&Ht(ci);Ai+=1)ci=ci.parent,wt+=1;var Kn=be.data,je=ci.node,Le=!0;return Ne(ci)&&ci.level===0&&kn<_t+hn/2&&Ye({dragNode:Kn,dropNode:je,dropPosition:-1})&&ci.key===Ie.eventKey?Rn=-1:(mi.children||[]).length&&gn.includes(Zt)?Ye({dragNode:Kn,dropNode:je,dropPosition:0})?Rn=0:Le=!1:wt===0?$e>-1.5?Ye({dragNode:Kn,dropNode:je,dropPosition:1})?Rn=1:Le=!1:Ye({dragNode:Kn,dropNode:je,dropPosition:0})?Rn=0:Ye({dragNode:Kn,dropNode:je,dropPosition:1})?Rn=1:Le=!1:Ye({dragNode:Kn,dropNode:je,dropPosition:1})?Rn=1:Le=!1,{dropPosition:Rn,dropLevelOffset:wt,dropTargetKey:ci.key,dropTargetPos:ci.pos,dragOverNodeKey:Zt,dropContainerKey:Rn===0?null:((Lt=ci.parent)===null||Lt===void 0?void 0:Lt.key)||null,dropAllowed:Le}}function te(Se,be){if(Se){var Ie=be.multiple;return Ie?Se.slice():Se.length?[Se[0]]:Se}}var de=function(be){return be};function le(Se,be){if(!Se)return[];var Ie=be||{},Ze=Ie.processProps,st=Ze===void 0?de:Ze,Ye=Array.isArray(Se)?Se:[Se];return Ye.map(function(Xe){var At=Xe.children,ft=_objectWithoutProperties(Xe,Kt),Nt=le(At,be);return React.createElement(TreeNode,_extends({key:ft.key},st(ft)),Nt)})}function ge(Se){if(!Se)return null;var be;if(Array.isArray(Se))be={checkedKeys:Se,halfCheckedKeys:void 0};else if((0,nt.Z)(Se)==="object")be={checkedKeys:Se.checked||void 0,halfCheckedKeys:Se.halfChecked||void 0};else return(0,it.ZP)(!1,"`checkedKeys` is not an array or an object"),null;return be}function me(Se,be){var Ie=new Set;function Ze(st){if(!Ie.has(st)){var Ye=(0,ze.Z)(be,st);if(Ye){Ie.add(st);var Xe=Ye.parent,At=Ye.node;At.disabled||Xe&&Ze(Xe.key)}}}return(Se||[]).forEach(function(st){Ze(st)}),(0,ye.Z)(Ie)}},34643:function(Jn,gi,De){"use strict";De.d(gi,{S:function(){return dt}});var ye=De(48736),nt=De(65065);function it(Kt,Et){var Me=new Set;return Kt.forEach(function(zt){Et.has(zt)||Me.add(zt)}),Me}function Dt(Kt){var Et=Kt||{},Me=Et.disabled,zt=Et.disableCheckbox,Ke=Et.checkable;return!!(Me||zt)||Ke===!1}function Mt(Kt,Et,Me,zt){for(var Ke=new Set(Kt),Ht=new Set,Ne=0;Ne<=Me;Ne+=1){var ne=Et.get(Ne)||new Set;ne.forEach(function(ge){var me=ge.key,Se=ge.node,be=ge.children,Ie=be===void 0?[]:be;Ke.has(me)&&!zt(Se)&&Ie.filter(function(Ze){return!zt(Ze.node)}).forEach(function(Ze){Ke.add(Ze.key)})})}for(var te=new Set,de=Me;de>=0;de-=1){var le=Et.get(de)||new Set;le.forEach(function(ge){var me=ge.parent,Se=ge.node;if(!(zt(Se)||!ge.parent||te.has(ge.parent.key))){if(zt(ge.parent.node)){te.add(me.key);return}var be=!0,Ie=!1;(me.children||[]).filter(function(Ze){return!zt(Ze.node)}).forEach(function(Ze){var st=Ze.key,Ye=Ke.has(st);be&&!Ye&&(be=!1),!Ie&&(Ye||Ht.has(st))&&(Ie=!0)}),be&&Ke.add(me.key),Ie&&Ht.add(me.key),te.add(me.key)}})}return{checkedKeys:Array.from(Ke),halfCheckedKeys:Array.from(it(Ht,Ke))}}function ze(Kt,Et,Me,zt,Ke){for(var Ht=new Set(Kt),Ne=new Set(Et),ne=0;ne<=zt;ne+=1){var te=Me.get(ne)||new Set;te.forEach(function(me){var Se=me.key,be=me.node,Ie=me.children,Ze=Ie===void 0?[]:Ie;!Ht.has(Se)&&!Ne.has(Se)&&!Ke(be)&&Ze.filter(function(st){return!Ke(st.node)}).forEach(function(st){Ht.delete(st.key)})})}Ne=new Set;for(var de=new Set,le=zt;le>=0;le-=1){var ge=Me.get(le)||new Set;ge.forEach(function(me){var Se=me.parent,be=me.node;if(!(Ke(be)||!me.parent||de.has(me.parent.key))){if(Ke(me.parent.node)){de.add(Se.key);return}var Ie=!0,Ze=!1;(Se.children||[]).filter(function(st){return!Ke(st.node)}).forEach(function(st){var Ye=st.key,Xe=Ht.has(Ye);Ie&&!Xe&&(Ie=!1),!Ze&&(Xe||Ne.has(Ye))&&(Ze=!0)}),Ie||Ht.delete(Se.key),Ze&&Ne.add(Se.key),de.add(Se.key)}})}return{checkedKeys:Array.from(Ht),halfCheckedKeys:Array.from(it(Ne,Ht))}}function dt(Kt,Et,Me,zt){var Ke=[],Ht;zt?Ht=zt:Ht=Dt;var Ne=new Set(Kt.filter(function(le){var ge=!!(0,nt.Z)(Me,le);return ge||Ke.push(le),ge})),ne=new Map,te=0;Object.keys(Me).forEach(function(le){var ge=Me[le],me=ge.level,Se=ne.get(me);Se||(Se=new Set,ne.set(me,Se)),Se.add(ge),te=Math.max(te,me)}),(0,ye.ZP)(!Ke.length,"Tree missing follow keys: ".concat(Ke.slice(0,100).map(function(le){return"'".concat(le,"'")}).join(", ")));var de;return Et===!0?de=Mt(Ne,ne,te,Ht):de=ze(Ne,Et.halfCheckedKeys,ne,te,Ht),de}},65065:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return ye}});function ye(nt,it){return nt[it]}},34061:function(Jn,gi,De){"use strict";De.d(gi,{F:function(){return me},H8:function(){return ge},I8:function(){return le},km:function(){return Ke},oH:function(){return te},w$:function(){return Ht},zn:function(){return ne}});var ye=De(10928),nt=De(92393),it=De(20049),Dt=De(5883),Mt=De(11592),ze=De(2738),dt=De(48736),Kt=De(65065),Et=["children"];function Me(Se,be){return"".concat(Se,"-").concat(be)}function zt(Se){return Se&&Se.type&&Se.type.isTreeNode}function Ke(Se,be){return Se!=null?Se:be}function Ht(Se){var be=Se||{},Ie=be.title,Ze=be._title,st=be.key,Ye=be.children,Xe=Ie||"title";return{title:Xe,_title:Ze||[Xe],key:st||"key",children:Ye||"children"}}function Ne(Se,be){var Ie=new Map;function Ze(st){var Ye=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"";(st||[]).forEach(function(Xe){var At=Xe[be.key],ft=Xe[be.children];warning(At!=null,"Tree node must have a certain key: [".concat(Ye).concat(At,"]"));var Nt=String(At);warning(!Ie.has(Nt)||At===null||At===void 0,"Same 'key' exist in the Tree: ".concat(Nt)),Ie.set(Nt,!0),Ze(ft,"".concat(Ye).concat(Nt," > "))})}Ze(Se)}function ne(Se){function be(Ie){var Ze=(0,Mt.Z)(Ie);return Ze.map(function(st){if(!zt(st))return(0,dt.ZP)(!st,"Tree/TreeNode can only accept TreeNode as children."),null;var Ye=st.key,Xe=st.props,At=Xe.children,ft=(0,Dt.Z)(Xe,Et),Nt=(0,it.Z)({key:Ye},ft),Lt=be(At);return Lt.length&&(Nt.children=Lt),Nt}).filter(function(st){return st})}return be(Se)}function te(Se,be,Ie){var Ze=Ht(Ie),st=Ze._title,Ye=Ze.key,Xe=Ze.children,At=new Set(be===!0?[]:be),ft=[];function Nt(Lt){var ln=arguments.length>1&&arguments[1]!==void 0?arguments[1]:null;return Lt.map(function(kn,un){for(var _t=Me(ln?ln.pos:"0",un),hn=Ke(kn[Ye],_t),vt,$e=0;$e<st.length;$e+=1){var gn=st[$e];if(kn[gn]!==void 0){vt=kn[gn];break}}var ci=Object.assign((0,ze.Z)(kn,[].concat((0,nt.Z)(st),[Ye,Xe])),{title:vt,key:hn,parent:ln,pos:_t,children:null,data:kn,isStart:[].concat((0,nt.Z)(ln?ln.isStart:[]),[un===0]),isEnd:[].concat((0,nt.Z)(ln?ln.isEnd:[]),[un===Lt.length-1])});return ft.push(ci),be===!0||At.has(hn)?ci.children=Nt(kn[Xe]||[],ci):ci.children=[],ci})}return Nt(Se),ft}function de(Se,be,Ie){var Ze={};(0,ye.Z)(Ie)==="object"?Ze=Ie:Ze={externalGetKey:Ie},Ze=Ze||{};var st=Ze,Ye=st.childrenPropName,Xe=st.externalGetKey,At=st.fieldNames,ft=Ht(At),Nt=ft.key,Lt=ft.children,ln=Ye||Lt,kn;Xe?typeof Xe=="string"?kn=function(hn){return hn[Xe]}:typeof Xe=="function"&&(kn=function(hn){return Xe(hn)}):kn=function(hn,vt){return Ke(hn[Nt],vt)};function un(_t,hn,vt,$e){var gn=_t?_t[ln]:Se,ci=_t?Me(vt.pos,hn):"0",Fn=_t?[].concat((0,nt.Z)($e),[_t]):[];if(_t){var rn=kn(_t,ci),Xn={node:_t,index:hn,pos:ci,key:rn,parentPos:vt.node?vt.pos:null,level:vt.level+1,nodes:Fn};be(Xn)}gn&&gn.forEach(function(Nn,mi){un(Nn,mi,{node:_t,pos:ci,level:vt?vt.level+1:-1},Fn)})}un(null)}function le(Se){var be=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},Ie=be.initWrapper,Ze=be.processEntity,st=be.onProcessFinished,Ye=be.externalGetKey,Xe=be.childrenPropName,At=be.fieldNames,ft=arguments.length>2?arguments[2]:void 0,Nt=Ye||ft,Lt={},ln={},kn={posEntities:Lt,keyEntities:ln};return Ie&&(kn=Ie(kn)||kn),de(Se,function(un){var _t=un.node,hn=un.index,vt=un.pos,$e=un.key,gn=un.parentPos,ci=un.level,Fn=un.nodes,rn={node:_t,nodes:Fn,index:hn,key:$e,pos:vt,level:ci},Xn=Ke($e,vt);Lt[vt]=rn,ln[Xn]=rn,rn.parent=Lt[gn],rn.parent&&(rn.parent.children=rn.parent.children||[],rn.parent.children.push(rn)),Ze&&Ze(rn,kn)},{externalGetKey:Nt,childrenPropName:Xe,fieldNames:At}),st&&st(kn),kn}function ge(Se,be){var Ie=be.expandedKeys,Ze=be.selectedKeys,st=be.loadedKeys,Ye=be.loadingKeys,Xe=be.checkedKeys,At=be.halfCheckedKeys,ft=be.dragOverNodeKey,Nt=be.dropPosition,Lt=be.keyEntities,ln=(0,Kt.Z)(Lt,Se),kn={eventKey:Se,expanded:Ie.indexOf(Se)!==-1,selected:Ze.indexOf(Se)!==-1,loaded:st.indexOf(Se)!==-1,loading:Ye.indexOf(Se)!==-1,checked:Xe.indexOf(Se)!==-1,halfChecked:At.indexOf(Se)!==-1,pos:String(ln?ln.pos:""),dragOver:ft===Se&&Nt===0,dragOverGapTop:ft===Se&&Nt===-1,dragOverGapBottom:ft===Se&&Nt===1};return kn}function me(Se){var be=Se.data,Ie=Se.expanded,Ze=Se.selected,st=Se.checked,Ye=Se.loaded,Xe=Se.loading,At=Se.halfChecked,ft=Se.dragOver,Nt=Se.dragOverGapTop,Lt=Se.dragOverGapBottom,ln=Se.pos,kn=Se.active,un=Se.eventKey,_t=(0,it.Z)((0,it.Z)({},be),{},{expanded:Ie,selected:Ze,checked:st,loaded:Ye,loading:Xe,halfChecked:At,dragOver:ft,dragOverGapTop:Nt,dragOverGapBottom:Lt,pos:ln,active:kn,key:un});return"props"in _t||Object.defineProperty(_t,"props",{get:function(){return(0,dt.ZP)(!1,"Second param return from event is node data instead of TreeNode instance. Please read value directly instead of reading from `props`."),Se}}),_t}},8224:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return nt}});var ye=De(4676);function nt(it,Dt,Mt,ze){var dt=ye.unstable_batchedUpdates?function(Et){ye.unstable_batchedUpdates(Mt,Et)}:Mt;return it!=null&&it.addEventListener&&it.addEventListener(Dt,dt,ze),{remove:function(){it!=null&&it.removeEventListener&&it.removeEventListener(Dt,dt,ze)}}}},24514:function(Jn,gi,De){"use strict";De.d(gi,{G:function(){return Dt}});var ye=De(47273),nt=function(ze){if((0,ye.Z)()&&window.document.documentElement){var dt=Array.isArray(ze)?ze:[ze],Kt=window.document.documentElement;return dt.some(function(Et){return Et in Kt.style})}return!1},it=function(ze,dt){if(!nt(ze))return!1;var Kt=document.createElement("div"),Et=Kt.style[ze];return Kt.style[ze]=dt,Kt.style[ze]!==Et};function Dt(Mt,ze){return!Array.isArray(Mt)&&ze!==void 0?it(Mt,ze):nt(Mt)}},65283:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Kn}});var ye=De(5016),nt=De(10928),it=De(20049),Dt=De(18082),Mt=De(52456),ze=De(5883),dt=De(92310),Kt=De.n(dt),Et=De(29301),Me=De(70425),zt=De(34280),Ke=De(59301),Ht=De(4676),Ne=Ke.forwardRef(function(je,Le){var we=je.height,Be=je.offsetY,Ge=je.offsetX,ke=je.children,et=je.prefixCls,an=je.onInnerResize,Bt=je.innerProps,Ut=je.rtl,gt=je.extra,Pt={},Tt={display:"flex",flexDirection:"column"};return Be!==void 0&&(Pt={height:we,position:"relative",overflow:"hidden"},Tt=(0,it.Z)((0,it.Z)({},Tt),{},(0,Dt.Z)((0,Dt.Z)((0,Dt.Z)((0,Dt.Z)((0,Dt.Z)({transform:"translateY(".concat(Be,"px)")},Ut?"marginRight":"marginLeft",-Ge),"position","absolute"),"left",0),"right",0),"top",0))),Ke.createElement("div",{style:Pt},Ke.createElement(Et.Z,{onResize:function(dn){var On=dn.offsetHeight;On&&an&&an()}},Ke.createElement("div",(0,ye.Z)({style:Tt,className:Kt()((0,Dt.Z)({},"".concat(et,"-holder-inner"),et)),ref:Le},Bt),ke,gt)))});Ne.displayName="Filler";var ne=Ne;function te(je){var Le=je.children,we=je.setRef,Be=Ke.useCallback(function(Ge){we(Ge)},[]);return Ke.cloneElement(Le,{ref:Be})}function de(je,Le,we,Be,Ge,ke,et,an){var Bt=an.getKey;return je.slice(Le,we+1).map(function(Ut,gt){var Pt=Le+gt,Tt=et(Ut,Pt,{style:{width:Be},offsetX:Ge}),Yt=Bt(Ut);return Ke.createElement(te,{key:Yt,setRef:function(On){return ke(Ut,On)}},Tt)})}function le(je,Le,we,Be){var Ge=we-je,ke=Le-we,et=Math.min(Ge,ke)*2;if(Be<=et){var an=Math.floor(Be/2);return Be%2?we+an+1:we-an}return Ge>ke?we-(Be-ke):we+(Be-Ge)}function ge(je,Le,we){var Be=je.length,Ge=Le.length,ke,et;if(Be===0&&Ge===0)return null;Be<Ge?(ke=je,et=Le):(ke=Le,et=je);var an={__EMPTY_ITEM__:!0};function Bt(dn){return dn!==void 0?we(dn):an}for(var Ut=null,gt=Math.abs(Be-Ge)!==1,Pt=0;Pt<et.length;Pt+=1){var Tt=Bt(ke[Pt]),Yt=Bt(et[Pt]);if(Tt!==Yt){Ut=Pt,gt=gt||Tt!==Bt(et[Pt+1]);break}}return Ut===null?null:{index:Ut,multiple:gt}}function me(je,Le,we){var Be=Ke.useState(je),Ge=(0,Mt.Z)(Be,2),ke=Ge[0],et=Ge[1],an=Ke.useState(null),Bt=(0,Mt.Z)(an,2),Ut=Bt[0],gt=Bt[1];return Ke.useEffect(function(){var Pt=ge(ke||[],je||[],Le);(Pt==null?void 0:Pt.index)!==void 0&&(we==null||we(Pt.index),gt(je[Pt.index])),et(je)},[je]),[Ut]}var Se=De(16089),be=(typeof navigator=="undefined"?"undefined":(0,nt.Z)(navigator))==="object"&&/Firefox/i.test(navigator.userAgent),Ie=be,Ze=function(je,Le,we,Be){var Ge=(0,Ke.useRef)(!1),ke=(0,Ke.useRef)(null);function et(){clearTimeout(ke.current),Ge.current=!0,ke.current=setTimeout(function(){Ge.current=!1},50)}var an=(0,Ke.useRef)({top:je,bottom:Le,left:we,right:Be});return an.current.top=je,an.current.bottom=Le,an.current.left=we,an.current.right=Be,function(Bt,Ut){var gt=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,Pt=Bt?Ut<0&&an.current.left||Ut>0&&an.current.right:Ut<0&&an.current.top||Ut>0&&an.current.bottom;return gt&&Pt?(clearTimeout(ke.current),Ge.current=!1):(!Pt||Ge.current)&&et(),!Ge.current&&Pt}};function st(je,Le,we,Be,Ge,ke,et){var an=(0,Ke.useRef)(0),Bt=(0,Ke.useRef)(null),Ut=(0,Ke.useRef)(null),gt=(0,Ke.useRef)(!1),Pt=Ze(Le,we,Be,Ge);function Tt(jt,Xt){if(Se.Z.cancel(Bt.current),!Pt(!1,Xt)){var pn=jt;if(!pn._virtualHandled)pn._virtualHandled=!0;else return;an.current+=Xt,Ut.current=Xt,Ie||pn.preventDefault(),Bt.current=(0,Se.Z)(function(){var bn=gt.current?10:1;et(an.current*bn,!1),an.current=0})}}function Yt(jt,Xt){et(Xt,!0),Ie||jt.preventDefault()}var dn=(0,Ke.useRef)(null),On=(0,Ke.useRef)(null);function wn(jt){if(je){Se.Z.cancel(On.current),On.current=(0,Se.Z)(function(){dn.current=null},2);var Xt=jt.deltaX,pn=jt.deltaY,bn=jt.shiftKey,Un=Xt,ti=pn;(dn.current==="sx"||!dn.current&&bn&&pn&&!Xt)&&(Un=pn,ti=0,dn.current="sx");var pi=Math.abs(Un),vn=Math.abs(ti);dn.current===null&&(dn.current=ke&&pi>vn?"x":"y"),dn.current==="y"?Tt(jt,ti):Yt(jt,Un)}}function nn(jt){je&&(gt.current=jt.detail===Ut.current)}return[wn,nn]}function Ye(je,Le,we,Be){var Ge=Ke.useMemo(function(){return[new Map,[]]},[je,we.id,Be]),ke=(0,Mt.Z)(Ge,2),et=ke[0],an=ke[1],Bt=function(gt){var Pt=arguments.length>1&&arguments[1]!==void 0?arguments[1]:gt,Tt=et.get(gt),Yt=et.get(Pt);if(Tt===void 0||Yt===void 0)for(var dn=je.length,On=an.length;On<dn;On+=1){var wn,nn=je[On],jt=Le(nn);et.set(jt,On);var Xt=(wn=we.get(jt))!==null&&wn!==void 0?wn:Be;if(an[On]=(an[On-1]||0)+Xt,jt===gt&&(Tt=On),jt===Pt&&(Yt=On),Tt!==void 0&&Yt!==void 0)break}return{top:an[Tt-1]||0,bottom:an[Yt]}};return Bt}var Xe=De(6487),At=De(56789),ft=function(){function je(){(0,Xe.Z)(this,je),(0,Dt.Z)(this,"maps",void 0),(0,Dt.Z)(this,"id",0),(0,Dt.Z)(this,"diffRecords",new Map),this.maps=Object.create(null)}return(0,At.Z)(je,[{key:"set",value:function(we,Be){this.diffRecords.set(we,this.maps[we]),this.maps[we]=Be,this.id+=1}},{key:"get",value:function(we){return this.maps[we]}},{key:"resetRecord",value:function(){this.diffRecords.clear()}},{key:"getRecord",value:function(){return this.diffRecords}}]),je}(),Nt=ft;function Lt(je){var Le=parseFloat(je);return isNaN(Le)?0:Le}function ln(je,Le,we){var Be=Ke.useState(0),Ge=(0,Mt.Z)(Be,2),ke=Ge[0],et=Ge[1],an=(0,Ke.useRef)(new Map),Bt=(0,Ke.useRef)(new Nt),Ut=(0,Ke.useRef)(0);function gt(){Ut.current+=1}function Pt(){var Yt=arguments.length>0&&arguments[0]!==void 0?arguments[0]:!1;gt();var dn=function(){var nn=!1;an.current.forEach(function(jt,Xt){if(jt&&jt.offsetParent){var pn=jt.offsetHeight,bn=getComputedStyle(jt),Un=bn.marginTop,ti=bn.marginBottom,pi=Lt(Un),vn=Lt(ti),wi=pn+pi+vn;Bt.current.get(Xt)!==wi&&(Bt.current.set(Xt,wi),nn=!0)}}),nn&&et(function(jt){return jt+1})};if(Yt)dn();else{Ut.current+=1;var On=Ut.current;Promise.resolve().then(function(){On===Ut.current&&dn()})}}function Tt(Yt,dn){var On=je(Yt),wn=an.current.get(On);dn?(an.current.set(On,dn),Pt()):an.current.delete(On),!wn!=!dn&&(dn?Le==null||Le(Yt):we==null||we(Yt))}return(0,Ke.useEffect)(function(){return gt},[]),[Tt,Pt,Bt.current,ke]}var kn=14/15;function un(je,Le,we){var Be=(0,Ke.useRef)(!1),Ge=(0,Ke.useRef)(0),ke=(0,Ke.useRef)(0),et=(0,Ke.useRef)(null),an=(0,Ke.useRef)(null),Bt,Ut=function(Yt){if(Be.current){var dn=Math.ceil(Yt.touches[0].pageX),On=Math.ceil(Yt.touches[0].pageY),wn=Ge.current-dn,nn=ke.current-On,jt=Math.abs(wn)>Math.abs(nn);jt?Ge.current=dn:ke.current=On;var Xt=we(jt,jt?wn:nn,!1,Yt);Xt&&Yt.preventDefault(),clearInterval(an.current),Xt&&(an.current=setInterval(function(){jt?wn*=kn:nn*=kn;var pn=Math.floor(jt?wn:nn);(!we(jt,pn,!0)||Math.abs(pn)<=.1)&&clearInterval(an.current)},16))}},gt=function(){Be.current=!1,Bt()},Pt=function(Yt){Bt(),Yt.touches.length===1&&!Be.current&&(Be.current=!0,Ge.current=Math.ceil(Yt.touches[0].pageX),ke.current=Math.ceil(Yt.touches[0].pageY),et.current=Yt.target,et.current.addEventListener("touchmove",Ut,{passive:!1}),et.current.addEventListener("touchend",gt,{passive:!0}))};Bt=function(){et.current&&(et.current.removeEventListener("touchmove",Ut),et.current.removeEventListener("touchend",gt))},(0,zt.Z)(function(){return je&&Le.current.addEventListener("touchstart",Pt,{passive:!0}),function(){var Tt;(Tt=Le.current)===null||Tt===void 0||Tt.removeEventListener("touchstart",Pt),Bt(),clearInterval(an.current)}},[je])}function _t(je){return Math.floor(Math.pow(je,.5))}function hn(je,Le){var we="touches"in je?je.touches[0]:je;return we[Le?"pageX":"pageY"]-window[Le?"scrollX":"scrollY"]}function vt(je,Le,we){Ke.useEffect(function(){var Be=Le.current;if(je&&Be){var Ge=!1,ke,et,an=function(){Se.Z.cancel(ke)},Bt=function Tt(){an(),ke=(0,Se.Z)(function(){we(et),Tt()})},Ut=function(Yt){if(!(Yt.target.draggable||Yt.button!==0)){var dn=Yt;dn._virtualHandled||(dn._virtualHandled=!0,Ge=!0)}},gt=function(){Ge=!1,an()},Pt=function(Yt){if(Ge){var dn=hn(Yt,!1),On=Be.getBoundingClientRect(),wn=On.top,nn=On.bottom;if(dn<=wn){var jt=wn-dn;et=-_t(jt),Bt()}else if(dn>=nn){var Xt=dn-nn;et=_t(Xt),Bt()}else an()}};return Be.addEventListener("mousedown",Ut),Be.ownerDocument.addEventListener("mouseup",gt),Be.ownerDocument.addEventListener("mousemove",Pt),function(){Be.removeEventListener("mousedown",Ut),Be.ownerDocument.removeEventListener("mouseup",gt),Be.ownerDocument.removeEventListener("mousemove",Pt),an()}}},[je])}var $e=10;function gn(je,Le,we,Be,Ge,ke,et,an){var Bt=Ke.useRef(),Ut=Ke.useState(null),gt=(0,Mt.Z)(Ut,2),Pt=gt[0],Tt=gt[1];return(0,zt.Z)(function(){if(Pt&&Pt.times<$e){if(!je.current){Tt(function(yr){return(0,it.Z)({},yr)});return}ke();var Yt=Pt.targetAlign,dn=Pt.originAlign,On=Pt.index,wn=Pt.offset,nn=je.current.clientHeight,jt=!1,Xt=Yt,pn=null;if(nn){for(var bn=Yt||dn,Un=0,ti=0,pi=0,vn=Math.min(Le.length-1,On),wi=0;wi<=vn;wi+=1){var Yi=Ge(Le[wi]);ti=Un;var gr=we.get(Yi);pi=ti+(gr===void 0?Be:gr),Un=pi}for(var rr=bn==="top"?wn:nn-wn,tr=vn;tr>=0;tr-=1){var vr=Ge(Le[tr]),hr=we.get(vr);if(hr===void 0){jt=!0;break}if(rr-=hr,rr<=0)break}switch(bn){case"top":pn=ti-wn;break;case"bottom":pn=pi-nn+wn;break;default:{var ar=je.current.scrollTop,Xi=ar+nn;ti<ar?Xt="top":pi>Xi&&(Xt="bottom")}}pn!==null&&et(pn),pn!==Pt.lastTop&&(jt=!0)}jt&&Tt((0,it.Z)((0,it.Z)({},Pt),{},{times:Pt.times+1,targetAlign:Xt,lastTop:pn}))}},[Pt,je.current]),function(Yt){if(Yt==null){an();return}if(Se.Z.cancel(Bt.current),typeof Yt=="number")et(Yt);else if(Yt&&(0,nt.Z)(Yt)==="object"){var dn,On=Yt.align;"index"in Yt?dn=Yt.index:dn=Le.findIndex(function(jt){return Ge(jt)===Yt.key});var wn=Yt.offset,nn=wn===void 0?0:wn;Tt({times:0,index:dn,offset:nn,originAlign:On})}}}var ci=Ke.forwardRef(function(je,Le){var we=je.prefixCls,Be=je.rtl,Ge=je.scrollOffset,ke=je.scrollRange,et=je.onStartMove,an=je.onStopMove,Bt=je.onScroll,Ut=je.horizontal,gt=je.spinSize,Pt=je.containerSize,Tt=je.style,Yt=je.thumbStyle,dn=je.showScrollBar,On=Ke.useState(!1),wn=(0,Mt.Z)(On,2),nn=wn[0],jt=wn[1],Xt=Ke.useState(null),pn=(0,Mt.Z)(Xt,2),bn=pn[0],Un=pn[1],ti=Ke.useState(null),pi=(0,Mt.Z)(ti,2),vn=pi[0],wi=pi[1],Yi=!Be,gr=Ke.useRef(),rr=Ke.useRef(),tr=Ke.useState(dn),vr=(0,Mt.Z)(tr,2),hr=vr[0],ar=vr[1],Xi=Ke.useRef(),yr=function(){dn===!0||dn===!1||(clearTimeout(Xi.current),ar(!0),Xi.current=setTimeout(function(){ar(!1)},3e3))},Ce=ke-Pt||0,Sn=Pt-gt||0,Gn=Ke.useMemo(function(){if(Ge===0||Ce===0)return 0;var Ct=Ge/Ce;return Ct*Sn},[Ge,Ce,Sn]),dr=function(Yn){Yn.stopPropagation(),Yn.preventDefault()},or=Ke.useRef({top:Gn,dragging:nn,pageY:bn,startTop:vn});or.current={top:Gn,dragging:nn,pageY:bn,startTop:vn};var Ii=function(Yn){jt(!0),Un(hn(Yn,Ut)),wi(or.current.top),et(),Yn.stopPropagation(),Yn.preventDefault()};Ke.useEffect(function(){var Ct=function(xn){xn.preventDefault()},Yn=gr.current,$n=rr.current;return Yn.addEventListener("touchstart",Ct,{passive:!1}),$n.addEventListener("touchstart",Ii,{passive:!1}),function(){Yn.removeEventListener("touchstart",Ct),$n.removeEventListener("touchstart",Ii)}},[]);var Tn=Ke.useRef();Tn.current=Ce;var Cn=Ke.useRef();Cn.current=Sn,Ke.useEffect(function(){if(nn){var Ct,Yn=function(xn){var ai=or.current,Pn=ai.dragging,zi=ai.pageY,fr=ai.startTop;Se.Z.cancel(Ct);var Ve=gr.current.getBoundingClientRect(),mt=Pt/(Ut?Ve.width:Ve.height);if(Pn){var Dn=(hn(xn,Ut)-zi)*mt,An=fr;!Yi&&Ut?An-=Dn:An+=Dn;var Ot=Tn.current,Bn=Cn.current,Hn=Bn?An/Bn:0,_n=Math.ceil(Hn*Ot);_n=Math.max(_n,0),_n=Math.min(_n,Ot),Ct=(0,Se.Z)(function(){Bt(_n,Ut)})}},$n=function(){jt(!1),an()};return window.addEventListener("mousemove",Yn,{passive:!0}),window.addEventListener("touchmove",Yn,{passive:!0}),window.addEventListener("mouseup",$n,{passive:!0}),window.addEventListener("touchend",$n,{passive:!0}),function(){window.removeEventListener("mousemove",Yn),window.removeEventListener("touchmove",Yn),window.removeEventListener("mouseup",$n),window.removeEventListener("touchend",$n),Se.Z.cancel(Ct)}}},[nn]),Ke.useEffect(function(){return yr(),function(){clearTimeout(Xi.current)}},[Ge]),Ke.useImperativeHandle(Le,function(){return{delayHidden:yr}});var Mn="".concat(we,"-scrollbar"),yt={position:"absolute",visibility:hr?null:"hidden"},xt={position:"absolute",background:"rgba(0, 0, 0, 0.5)",borderRadius:99,cursor:"pointer",userSelect:"none"};return Ut?(yt.height=8,yt.left=0,yt.right=0,yt.bottom=0,xt.height="100%",xt.width=gt,Yi?xt.left=Gn:xt.right=Gn):(yt.width=8,yt.top=0,yt.bottom=0,Yi?yt.right=0:yt.left=0,xt.width="100%",xt.height=gt,xt.top=Gn),Ke.createElement("div",{ref:gr,className:Kt()(Mn,(0,Dt.Z)((0,Dt.Z)((0,Dt.Z)({},"".concat(Mn,"-horizontal"),Ut),"".concat(Mn,"-vertical"),!Ut),"".concat(Mn,"-visible"),hr)),style:(0,it.Z)((0,it.Z)({},yt),Tt),onMouseDown:dr,onMouseMove:yr},Ke.createElement("div",{ref:rr,className:Kt()("".concat(Mn,"-thumb"),(0,Dt.Z)({},"".concat(Mn,"-thumb-moving"),nn)),style:(0,it.Z)((0,it.Z)({},xt),Yt),onMouseDown:Ii}))}),Fn=ci,rn=20;function Xn(){var je=arguments.length>0&&arguments[0]!==void 0?arguments[0]:0,Le=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,we=je/Le*je;return isNaN(we)&&(we=0),we=Math.max(we,rn),Math.floor(we)}var Nn=["prefixCls","className","height","itemHeight","fullHeight","style","data","children","itemKey","virtual","direction","scrollWidth","component","onScroll","onVirtualScroll","onVisibleChange","innerProps","extraRender","styles","showScrollBar"],mi=[],Zt={overflowY:"auto",overflowAnchor:"none"};function Rn(je,Le){var we=je.prefixCls,Be=we===void 0?"rc-virtual-list":we,Ge=je.className,ke=je.height,et=je.itemHeight,an=je.fullHeight,Bt=an===void 0?!0:an,Ut=je.style,gt=je.data,Pt=je.children,Tt=je.itemKey,Yt=je.virtual,dn=je.direction,On=je.scrollWidth,wn=je.component,nn=wn===void 0?"div":wn,jt=je.onScroll,Xt=je.onVirtualScroll,pn=je.onVisibleChange,bn=je.innerProps,Un=je.extraRender,ti=je.styles,pi=je.showScrollBar,vn=pi===void 0?"optional":pi,wi=(0,ze.Z)(je,Nn),Yi=Ke.useCallback(function(tt){return typeof Tt=="function"?Tt(tt):tt==null?void 0:tt[Tt]},[Tt]),gr=ln(Yi,null,null),rr=(0,Mt.Z)(gr,4),tr=rr[0],vr=rr[1],hr=rr[2],ar=rr[3],Xi=!!(Yt!==!1&&ke&&et),yr=Ke.useMemo(function(){return Object.values(hr.maps).reduce(function(tt,Ft){return tt+Ft},0)},[hr.id,hr.maps]),Ce=Xi&>&&(Math.max(et*gt.length,yr)>ke||!!On),Sn=dn==="rtl",Gn=Kt()(Be,(0,Dt.Z)({},"".concat(Be,"-rtl"),Sn),Ge),dr=gt||mi,or=(0,Ke.useRef)(),Ii=(0,Ke.useRef)(),Tn=(0,Ke.useRef)(),Cn=(0,Ke.useState)(0),Mn=(0,Mt.Z)(Cn,2),yt=Mn[0],xt=Mn[1],Ct=(0,Ke.useState)(0),Yn=(0,Mt.Z)(Ct,2),$n=Yn[0],di=Yn[1],xn=(0,Ke.useState)(!1),ai=(0,Mt.Z)(xn,2),Pn=ai[0],zi=ai[1],fr=function(){zi(!0)},Ve=function(){zi(!1)},mt={getKey:Yi};function Dn(tt){xt(function(Ft){var Gt;typeof tt=="function"?Gt=tt(Ft):Gt=tt;var Rt=Pr(Gt);return or.current.scrollTop=Rt,Rt})}var An=(0,Ke.useRef)({start:0,end:dr.length}),Ot=(0,Ke.useRef)(),Bn=me(dr,Yi),Hn=(0,Mt.Z)(Bn,1),_n=Hn[0];Ot.current=_n;var Ei=Ke.useMemo(function(){if(!Xi)return{scrollHeight:void 0,start:0,end:dr.length-1,offset:void 0};if(!Ce){var tt;return{scrollHeight:((tt=Ii.current)===null||tt===void 0?void 0:tt.offsetHeight)||0,start:0,end:dr.length-1,offset:void 0}}for(var Ft=0,Gt,Rt,on,li=dr.length,Ee=0;Ee<li;Ee+=1){var Ue=dr[Ee],Re=Yi(Ue),ot=hr.get(Re),lt=Ft+(ot===void 0?et:ot);lt>=yt&&Gt===void 0&&(Gt=Ee,Rt=Ft),lt>yt+ke&&on===void 0&&(on=Ee),Ft=lt}return Gt===void 0&&(Gt=0,Rt=0,on=Math.ceil(ke/et)),on===void 0&&(on=dr.length-1),on=Math.min(on+1,dr.length-1),{scrollHeight:Ft,start:Gt,end:on,offset:Rt}},[Ce,Xi,yt,dr,ar,ke]),si=Ei.scrollHeight,Pi=Ei.start,yi=Ei.end,_i=Ei.offset;An.current.start=Pi,An.current.end=yi,Ke.useLayoutEffect(function(){var tt=hr.getRecord();if(tt.size===1){var Ft=Array.from(tt.keys())[0],Gt=tt.get(Ft),Rt=dr[Pi];if(Rt&&Gt===void 0){var on=Yi(Rt);if(on===Ft){var li=hr.get(Ft),Ee=li-et;Dn(function(Ue){return Ue+Ee})}}}hr.resetRecord()},[si]);var Ri=Ke.useState({width:0,height:ke}),Di=(0,Mt.Z)(Ri,2),sn=Di[0],pr=Di[1],Mr=function(Ft){pr({width:Ft.offsetWidth,height:Ft.offsetHeight})},Kr=(0,Ke.useRef)(),En=(0,Ke.useRef)(),Si=Ke.useMemo(function(){return Xn(sn.width,On)},[sn.width,On]),Vi=Ke.useMemo(function(){return Xn(sn.height,si)},[sn.height,si]),Wi=si-ke,$i=(0,Ke.useRef)(Wi);$i.current=Wi;function Pr(tt){var Ft=tt;return Number.isNaN($i.current)||(Ft=Math.min(Ft,$i.current)),Ft=Math.max(Ft,0),Ft}var br=yt<=0,Hi=yt>=Wi,er=$n<=0,Gi=$n>=On,cn=Ze(br,Hi,er,Gi),sr=function(){return{x:Sn?-$n:$n,y:yt}},yn=(0,Ke.useRef)(sr()),bi=(0,Me.zX)(function(tt){if(Xt){var Ft=(0,it.Z)((0,it.Z)({},sr()),tt);(yn.current.x!==Ft.x||yn.current.y!==Ft.y)&&(Xt(Ft),yn.current=Ft)}});function Cr(tt,Ft){var Gt=tt;Ft?((0,Ht.flushSync)(function(){di(Gt)}),bi()):Dn(Gt)}function Nr(tt){var Ft=tt.currentTarget.scrollTop;Ft!==yt&&Dn(Ft),jt==null||jt(tt),bi()}var to=function(Ft){var Gt=Ft,Rt=On?On-sn.width:0;return Gt=Math.max(Gt,0),Gt=Math.min(Gt,Rt),Gt},Ur=(0,Me.zX)(function(tt,Ft){Ft?((0,Ht.flushSync)(function(){di(function(Gt){var Rt=Gt+(Sn?-tt:tt);return to(Rt)})}),bi()):Dn(function(Gt){var Rt=Gt+tt;return Rt})}),Br=st(Xi,br,Hi,er,Gi,!!On,Ur),ao=(0,Mt.Z)(Br,2),Qt=ao[0],Vn=ao[1];un(Xi,or,function(tt,Ft,Gt,Rt){var on=Rt;return cn(tt,Ft,Gt)?!1:!on||!on._virtualHandled?(on&&(on._virtualHandled=!0),Qt({preventDefault:function(){},deltaX:tt?Ft:0,deltaY:tt?0:Ft}),!0):!1}),vt(Ce,or,function(tt){Dn(function(Ft){return Ft+tt})}),(0,zt.Z)(function(){function tt(Gt){var Rt=br&&Gt.detail<0,on=Hi&&Gt.detail>0;Xi&&!Rt&&!on&&Gt.preventDefault()}var Ft=or.current;return Ft.addEventListener("wheel",Qt,{passive:!1}),Ft.addEventListener("DOMMouseScroll",Vn,{passive:!0}),Ft.addEventListener("MozMousePixelScroll",tt,{passive:!1}),function(){Ft.removeEventListener("wheel",Qt),Ft.removeEventListener("DOMMouseScroll",Vn),Ft.removeEventListener("MozMousePixelScroll",tt)}},[Xi,br,Hi]),(0,zt.Z)(function(){if(On){var tt=to($n);di(tt),bi({x:tt})}},[sn.width,On]);var $t=function(){var Ft,Gt;(Ft=Kr.current)===null||Ft===void 0||Ft.delayHidden(),(Gt=En.current)===null||Gt===void 0||Gt.delayHidden()},Te=gn(or,dr,hr,et,Yi,function(){return vr(!0)},Dn,$t);Ke.useImperativeHandle(Le,function(){return{nativeElement:Tn.current,getScrollInfo:sr,scrollTo:function(Ft){function Gt(Rt){return Rt&&(0,nt.Z)(Rt)==="object"&&("left"in Rt||"top"in Rt)}Gt(Ft)?(Ft.left!==void 0&&di(to(Ft.left)),Te(Ft.top)):Te(Ft)}}}),(0,zt.Z)(function(){if(pn){var tt=dr.slice(Pi,yi+1);pn(tt,dr)}},[Pi,yi,dr]);var He=Ye(dr,Yi,hr,et),qe=Un==null?void 0:Un({start:Pi,end:yi,virtual:Ce,offsetX:$n,offsetY:_i,rtl:Sn,getSize:He}),St=de(dr,Pi,yi,On,$n,tr,Pt,mt),It=null;ke&&(It=(0,it.Z)((0,Dt.Z)({},Bt?"height":"maxHeight",ke),Zt),Xi&&(It.overflowY="hidden",On&&(It.overflowX="hidden"),Pn&&(It.pointerEvents="none")));var en={};return Sn&&(en.dir="rtl"),Ke.createElement("div",(0,ye.Z)({ref:Tn,style:(0,it.Z)((0,it.Z)({},Ut),{},{position:"relative"}),className:Gn},en,wi),Ke.createElement(Et.Z,{onResize:Mr},Ke.createElement(nn,{className:"".concat(Be,"-holder"),style:It,ref:or,onScroll:Nr,onMouseEnter:$t},Ke.createElement(ne,{prefixCls:Be,height:si,offsetX:$n,offsetY:_i,scrollWidth:On,onInnerResize:vr,ref:Ii,innerProps:bn,rtl:Sn,extra:qe},St))),Ce&&si>ke&&Ke.createElement(Fn,{ref:Kr,prefixCls:Be,scrollOffset:yt,scrollRange:si,rtl:Sn,onScroll:Cr,onStartMove:fr,onStopMove:Ve,spinSize:Vi,containerSize:sn.height,style:ti==null?void 0:ti.verticalScrollBar,thumbStyle:ti==null?void 0:ti.verticalScrollBarThumb,showScrollBar:vn}),Ce&&On>sn.width&&Ke.createElement(Fn,{ref:En,prefixCls:Be,scrollOffset:$n,scrollRange:On,rtl:Sn,onScroll:Cr,onStartMove:fr,onStopMove:Ve,spinSize:Si,containerSize:sn.width,horizontal:!0,style:ti==null?void 0:ti.horizontalScrollBar,thumbStyle:ti==null?void 0:ti.horizontalScrollBarThumb,showScrollBar:vn}))}var wt=Ke.forwardRef(Rn);wt.displayName="List";var Ai=wt,Kn=Ai},25510:function(Jn){"use strict";Jn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typQlgmVz3333s8023sQmLDJ6vqWC+vtTwPThIawrI4m7mWcjidEJATEAlTEhcV24yBsT0MbscAbSAw89YHt9aC+774H77JBDDw2ZgjdYfwObM3den0to1CgbiYUIT1Kf4aTPUjTidZsza7aNCX6qPuCFKWXeq6/ZSE6dDtmC2SreF4ATvHHBtTQ/cGb+VmwF6DRZWIhh8S4hv02WMcPyx0o+9eoWYPHvZ14Qk0dekbqLBZqP/ZgyZYrdcccdwWKUeg01YEGO01dZvflbC0pZl3MColP7rXIFsORSzKwAlgqaEXDLqsgrvthtkkrqqq1mPLvSSiv1r2BS6+o2YEltRyfKdRuwpLSx5wHL/Lwol112qZ155pn23f/9no0ZOzakrw8wJYCJ123U6FE2b+48W3yxxe3444+xf/rHXWxsiGWZf7AzlobZs23mK6/ajHvvs03evolNHD/Rfnveb22rrbYMW4+DFXN4rTMAACAASURBVGqRMcGFQsI3EA8Wjr4wWdwrCPYxfUBontkzTz9rl156mf3Xf33K/vbc88GSM/ktb7GJEybZE089Hd6FW2qddabZGWf8ypYKro++bcGLLDLGZs0iXgaghWtrtM187dWgvIlF6XvfPBs1t89yFLqLJYQAyZFgmNfswYcetD332sse+uv9dsghX7OtttzK1pu23vw525fuf97IEfbqrFk2iXqJlyH/zJxZ4cykMLfDP9xf7Djq6zvXmDEjbebM2TZuHGCvT6nR6b44tL48LKOw/pjZtddea8suu2z/2WM+WPXFF18Mhx/GpzV73sxdEAwWYFlllVVq5VPV7iCse7kW06EGLCkyoptlCmDJp24BLAWw5HNNB54ogKUvrqQuNX/YWcaJxrPn2LXXXWfnn3+eff3rX7fttt/e9tvv87baqqv1xUVguZvdl+skxOssvphNmjzBxuDSCAnPXrfnnn7K3jJpsr3y6hy7a8a9tunmW9gKKyxjp/7057bp299u80ZgPRltr816tS/ny2h2/mDkeD18wm6ZsG15bPg/773lllts///+b7vx8sttvfXXt403fpv956c/bRMnLWq33HyLnX7GGXb2OecEgLX/Vw+w9+32L7b88sv2Bdvi1ho9KgTPzglA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478JPSbaN75xtG280UZhq/deH/mwzXx1pu20y062yz/ubBPfsqjtt+8X7MmHH7X11p5m//Otb9vqq69tN15/rZ140g/sxz/7ic0dO9Le99732YYbTLcVll/epq21tm20ySbzdzD17S9iy7cy7gZXyPw5UABLASztisMCWPIpVwBLASz5XNOBJwpg6QMs7CB59NFHbcsttwxU1Xb4kOhtvmK84vLf2zlnnWXHH3ucTZo4ySZNmmSjx4wOwbFYENiGO2nRybbKaqvaMccdazded4Mdeeih9tijj4Wg2lN/9rOwK2jG7XfY1b//vX3xC1+28YtOsF+feaZtseWWNmvOHLvplpsDYGG30Lrrrms//elPQ06Na66+OgCWww873LbeZhs76Yc/tD/84UY78cQT7cKLLrL37/FB+++v7G9rrLGmjSADLwnm5r7WlzyMlLbs+QnpS14P7bn5pltt749+xJZdehk78sgjbOONN7IllphiL738ou237352+SWX29hRY+17J37fVnjrCvbxT37C/vDHP9riUxcPcSwrLLO8vfDC32zGXXfZx/b+t5Cw8dvHn2Brr72O3XvfvfbZfT9jq6y+in1or73sA8ThjFvEDjn8SDvzF7+2xSZOtgM//2V7/7+83/508y32fz/8vp38s1Ns1PhF7Mprr7ZVlls+ZLcdM2qMjRnLoZEcc9C3zbtvbxCRyH1gZX4aluISKjEsbUvDAljySVcASwEs+VzTgScKYGkGLH0JZV+3q6+6yn7323PtW0cfbWuvsaZt+45t+/JdjCThGnlMRtioMWNssSmL2ft2+4Cdecav7bhvHWcv/O1vtsvOO9uJP/iBjRk5xh595CG76Y832gfe///sLYsvZr88/XTbfMstQv6Tm2+91fbYfY/g/thg/fUDYFl08mS7WoDl8CNtm222thN/eJLdfPNNAbj87ne/tX9833vtawd9LcTUAFiwrMx9ffb8RGucJzSq75yiESPt7rtn2JVXXm2f/cxnbf31N7Djjv2WTZ++QThO4PUR8+yggw6ys848y5576nk79LDDbM01VrPPf+m/QgDt6musbuedf74tOXVJe+WVl+0v9/3F9tjjQ/bIww/bN446Ouyauv322+yrB+5vSy+7tG2+xWb2trdvYiN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IARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SJgwlJv21oyI2AEjIARMALVIGDCUk1TWhAjYASMgBEwAvUiYMJSb9taMiNgBIyAETAC1SBgwlJNU1oQI2AEjIARMAL1ImDCUm/bWjIjYASMgBEwAtUgYMJSTVNaECNgBIyAETAC9SLQSFjqFdmSGQEjYASMgBEwAqsVge1b1x12GCr/8p6D/12tQrjeRsAIGAEjYASMQN0ITAhL3WJaOiNgBIyAETACRmC1I/C/+Ryxj68oilIAAAAASUVORK5CYII="},32637:function(Jn,gi,De){"use strict";Jn.exports=De.p+"static/AssistantCode3.a8740efb.jpeg"},93314:function(Jn){"use strict";Jn.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAMwAAACaCAYAAADl9acYAAAAAXNSR0IArs4c6QAAIABJREFUeF7tXQd4U1Ubfs/NaJtO9kzLahFQEJkiUBBFUFFkCCjiAAVFERT5FREQQQXBBcpysWRP2RtkKRsEOphNodCZdDfjnv85CU2TZt2bhABNDw9PmtzvrO+c957xLQIP0pkz1yrQIEmwwcDzHhTj91klEo7jpcG5zetWUJdmRjmPvTM9GI9JgSGvadOoLE9KJJ5kPp2YXLtZdO1kT8ooz2vigCNelvPYezPEG7z0CDAn4pJqPvJA5A3vdcl/S3LEy3Iee29OeIOX5YDx3nh4VFI5YDxin6DM5YARxKb7g6gcMHd+nMoBc+d57LKGhCQ1ZURBCoVL2nKCO8sBZWW50x1TOWDuLP8FlV4OGEFs8glROWB8wmbPKikHjGf882bucsB4k5t3qKxywNwhxrpRbJkGTOx0ehlA3d9e5VEtzA3ulGe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pn/Fp0HwC5ugKe6ayvQbGhAuc75SwY5cB8lIfFeoVcPgF1bf09tl1fAgDxdut0wS+supIt2Y8v3zELxqSz7ajsnXZ6Sp4F/rRVoMFShRmf/yq3eK8JljcSE6dsxu9sD4H8trAzK2eqgQ54uDXohPdyJUXLgnkxC4sseADuxWJ4i7l+Ban0JGvW2U+9t9c4B7QZIJ3oA7P698fTgxAo0GepRobN/qaFlMxy4/f8E90wA8RE2tUgAAAAASUVORK5CYII="},86319:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return nt}});var ye=De(70901);function nt(it,Dt){var Mt=typeof Symbol!="undefined"&&it[Symbol.iterator]||it["@@iterator"];if(!Mt){if(Array.isArray(it)||(Mt=(0,ye.Z)(it))||Dt&&it&&typeof it.length=="number"){Mt&&(it=Mt);var ze=0,dt=function(){};return{s:dt,n:function(){return ze>=it.length?{done:!0}:{done:!1,value:it[ze++]}},e:function(Ke){throw Ke},f:dt}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
|
|
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Kt,Et=!0,Me=!1;return{s:function(){Mt=Mt.call(it)},n:function(){var Ke=Mt.next();return Et=Ke.done,Ke},e:function(Ke){Me=!0,Kt=Ke},f:function(){try{Et||Mt.return==null||Mt.return()}finally{if(Me)throw Kt}}}}},16722:function(Jn,gi,De){"use strict";De.d(gi,{Z:function(){return Kt}});const ye=Et=>typeof Et=="object"&&Et!=null&&Et.nodeType===1,nt=(Et,Me)=>(!Me||Et!=="hidden")&&Et!=="visible"&&Et!=="clip",it=(Et,Me)=>{if(Et.clientHeight<Et.scrollHeight||Et.clientWidth<Et.scrollWidth){const zt=getComputedStyle(Et,null);return nt(zt.overflowY,Me)||nt(zt.overflowX,Me)||(Ke=>{const Ht=(Ne=>{if(!Ne.ownerDocument||!Ne.ownerDocument.defaultView)return null;try{return Ne.ownerDocument.defaultView.frameElement}catch(ne){return null}})(Ke);return!!Ht&&(Ht.clientHeight<Ke.scrollHeight||Ht.clientWidth<Ke.scrollWidth)})(Et)}return!1},Dt=(Et,Me,zt,Ke,Ht,Ne,ne,te)=>Ne<Et&&ne>Me||Ne>Et&&ne<Me?0:Ne<=Et&&te<=zt||ne>=Me&&te>=zt?Ne-Et-Ke:ne>Me&&te<zt||Ne<Et&&te>zt?ne-Me+Ht:0,Mt=Et=>{const Me=Et.parentElement;return Me==null?Et.getRootNode().host||null:Me},ze=(Et,Me)=>{var zt,Ke,Ht,Ne;if(typeof document=="undefined")return[];const{scrollMode:ne,block:te,inline:de,boundary:le,skipOverflowHiddenElements:ge}=Me,me=typeof le=="function"?le:Fn=>Fn!==le;if(!ye(Et))throw new TypeError("Invalid target");const Se=document.scrollingElement||document.documentElement,be=[];let Ie=Et;for(;ye(Ie)&&me(Ie);){if(Ie=Mt(Ie),Ie===Se){be.push(Ie);break}Ie!=null&&Ie===document.body&&it(Ie)&&!it(document.documentElement)||Ie!=null&&it(Ie,ge)&&be.push(Ie)}const Ze=(Ke=(zt=window.visualViewport)==null?void 0:zt.width)!=null?Ke:innerWidth,st=(Ne=(Ht=window.visualViewport)==null?void 0:Ht.height)!=null?Ne:innerHeight,{scrollX:Ye,scrollY:Xe}=window,{height:At,width:ft,top:Nt,right:Lt,bottom:ln,left:kn}=Et.getBoundingClientRect(),{top:un,right:_t,bottom:hn,left:vt}=(Fn=>{const rn=window.getComputedStyle(Fn);return{top:parseFloat(rn.scrollMarginTop)||0,right:parseFloat(rn.scrollMarginRight)||0,bottom:parseFloat(rn.scrollMarginBottom)||0,left:parseFloat(rn.scrollMarginLeft)||0}})(Et);let $e=te==="start"||te==="nearest"?Nt-un:te==="end"?ln+hn:Nt+At/2-un+hn,gn=de==="center"?kn+ft/2-vt+_t:de==="end"?Lt+_t:kn-vt;const ci=[];for(let Fn=0;Fn<be.length;Fn++){const rn=be[Fn],{height:Xn,width:Nn,top:mi,right:Zt,bottom:Rn,left:wt}=rn.getBoundingClientRect();if(ne==="if-needed"&&Nt>=0&&kn>=0&&ln<=st&&Lt<=Ze&&(rn===Se&&!it(rn)||Nt>=mi&&ln<=Rn&&kn>=wt&&Lt<=Zt))return ci;const Ai=getComputedStyle(rn),Kn=parseInt(Ai.borderLeftWidth,10),je=parseInt(Ai.borderTopWidth,10),Le=parseInt(Ai.borderRightWidth,10),we=parseInt(Ai.borderBottomWidth,10);let Be=0,Ge=0;const ke="offsetWidth"in rn?rn.offsetWidth-rn.clientWidth-Kn-Le:0,et="offsetHeight"in rn?rn.offsetHeight-rn.clientHeight-je-we:0,an="offsetWidth"in rn?rn.offsetWidth===0?0:Nn/rn.offsetWidth:0,Bt="offsetHeight"in rn?rn.offsetHeight===0?0:Xn/rn.offsetHeight:0;if(Se===rn)Be=te==="start"?$e:te==="end"?$e-st:te==="nearest"?Dt(Xe,Xe+st,st,je,we,Xe+$e,Xe+$e+At,At):$e-st/2,Ge=de==="start"?gn:de==="center"?gn-Ze/2:de==="end"?gn-Ze:Dt(Ye,Ye+Ze,Ze,Kn,Le,Ye+gn,Ye+gn+ft,ft),Be=Math.max(0,Be+Xe),Ge=Math.max(0,Ge+Ye);else{Be=te==="start"?$e-mi-je:te==="end"?$e-Rn+we+et:te==="nearest"?Dt(mi,Rn,Xn,je,we+et,$e,$e+At,At):$e-(mi+Xn/2)+et/2,Ge=de==="start"?gn-wt-Kn:de==="center"?gn-(wt+Nn/2)+ke/2:de==="end"?gn-Zt+Le+ke:Dt(wt,Zt,Nn,Kn,Le+ke,gn,gn+ft,ft);const{scrollLeft:Ut,scrollTop:gt}=rn;Be=Bt===0?0:Math.max(0,Math.min(gt+Be/Bt,rn.scrollHeight-Xn/Bt+et)),Ge=an===0?0:Math.max(0,Math.min(Ut+Ge/an,rn.scrollWidth-Nn/an+ke)),$e+=gt-Be,gn+=Ut-Ge}ci.push({el:rn,top:Be,left:Ge})}return ci},dt=Et=>Et===!1?{block:"end",inline:"nearest"}:(Me=>Me===Object(Me)&&Object.keys(Me).length!==0)(Et)?Et:{block:"start",inline:"nearest"};function Kt(Et,Me){if(!Et.isConnected||!(Ht=>{let Ne=Ht;for(;Ne&&Ne.parentNode;){if(Ne.parentNode===document)return!0;Ne=Ne.parentNode instanceof ShadowRoot?Ne.parentNode.host:Ne.parentNode}return!1})(Et))return;const zt=(Ht=>{const Ne=window.getComputedStyle(Ht);return{top:parseFloat(Ne.scrollMarginTop)||0,right:parseFloat(Ne.scrollMarginRight)||0,bottom:parseFloat(Ne.scrollMarginBottom)||0,left:parseFloat(Ne.scrollMarginLeft)||0}})(Et);if((Ht=>typeof Ht=="object"&&typeof Ht.behavior=="function")(Me))return Me.behavior(ze(Et,Me));const Ke=typeof Me=="boolean"||Me==null?void 0:Me.behavior;for(const{el:Ht,top:Ne,left:ne}of ze(Et,dt(Me))){const te=Ne-zt.top+zt.bottom,de=ne-zt.left+zt.right;Ht.scroll({top:te,left:de,behavior:Ke})}}}}]);
|
|
}()); |