v||of?d.offsetWidth:i.setup.minPositionX||0,P=o>v?d.offsetHeight:i.setup.minPositionY||0,w=$(i,y,P,r,i.bounds,s||l),E=w.x,Y=w.y;return{scale:r,positionX:h?E:e,positionY:b?Y:o}}}function Ue(i,n,e,o,r){var a=i.setup.limitToBounds,t=i.wrapperComponent,s=i.bounds,l=i.transformState,d=l.scale,u=l.positionX,f=l.positionY;if(!(t===null||s===null||n===u&&e===f)){var m=J(n,e,s,a,o,r,t),v=m.x,p=m.y;i.setTransformState(d,v,p)}}var xe=function(i,n,e){var o=i.startCoords,r=i.transformState,a=i.setup.panning,t=a.lockAxisX,s=a.lockAxisY,l=r.positionX,d=r.positionY;if(!o)return{x:l,y:d};var u=n-o.x,f=e-o.y,m=t?l:u,v=s?d:f;return{x:m,y:v}},G=function(i,n){var e=i.setup,o=i.transformState,r=o.scale,a=e.minScale,t=e.disablePadding;return n>0&&r>=a&&!t?n:0},Ge=function(i){var n=i.mounted,e=i.setup,o=e.disabled,r=e.velocityAnimation,a=i.transformState.scale,t=r.disabled,s=!t||a>1||!o||n;return!!s},Je=function(i){var n=i.mounted,e=i.velocity,o=i.bounds,r=i.setup,a=r.disabled,t=r.velocityAnimation,s=i.transformState.scale,l=t.disabled,d=!l||s>1||!a||n;return!(!d||!e||!o)};function $e(i,n){var e=i.setup.velocityAnimation,o=e.equalToMove,r=e.animationTime,a=e.sensitivity;return o?r*n*a:r}function Si(i,n,e,o,r,a,t,s,l,d){if(r){if(n>t&&e>t){var u=t+(i-t)*d;return u>l?l:ua?a:u}}return o?n:ai(i,a,t,r)}function Ie(i,n){var e=1;return n?Math.min(e,i.offsetWidth/window.innerWidth):e}function io(i,n){var e=Ge(i);if(e){var o=i.lastMousePosition,r=i.velocityTime,a=i.setup,t=i.wrapperComponent,s=a.velocityAnimation.equalToMove,l=Date.now();if(o&&r&&t){var d=Ie(t,s),u=n.x-o.x,f=n.y-o.y,m=u/d,v=f/d,p=l-r,h=u*u+f*f,b=Math.sqrt(h)/p;i.velocity={velocityX:m,velocityY:v,total:b}}i.lastMousePosition=n,i.velocityTime=l}}function eo(i){var n=i.velocity,e=i.bounds,o=i.setup,r=i.wrapperComponent,a=Je(i);if(!(!a||!n||!e||!r)){var t=n.velocityX,s=n.velocityY,l=n.total,d=e.maxPositionX,u=e.minPositionX,f=e.maxPositionY,m=e.minPositionY,v=o.limitToBounds,p=o.alignmentAnimation,h=o.zoomAnimation,b=o.panning,y=b.lockAxisY,P=b.lockAxisX,w=h.animationType,E=p.sizeX,Y=p.sizeY,k=p.velocityAlignmentTime,_=k,L=$e(i,l),D=Math.max(L,_),O=G(i,E),B=G(i,Y),H=O*r.offsetWidth/100,fi=B*r.offsetHeight/100,ae=d+H,te=u-H,se=f+fi,le=m-fi,mi=i.transformState,ue=new Date().getTime();Ui(i,w,D,function(de){var ii=i.transformState,fe=ii.scale,ei=ii.positionX,oi=ii.positionY,me=new Date().getTime()-ue,ve=me/_,pe=Qi[p.animationType],vi=1-pe(Math.min(1,ve)),pi=1-de,hi=ei+t*pi,ci=oi+s*pi,he=Si(hi,mi.positionX,ei,P,v,u,d,te,ae,vi),ce=Si(ci,mi.positionY,oi,y,v,m,f,le,se,vi);(ei!==hi||oi!==ci)&&i.setTransformState(fe,he,ce)})}}function wi(i,n){var e=i.transformState.scale;X(i),Z(i,e),window.TouchEvent!==void 0&&n instanceof TouchEvent?Qe(i,n):Fe(i,n)}function xi(i){var n=i.transformState.scale,e=i.setup,o=e.minScale,r=e.alignmentAnimation,a=r.disabled,t=r.sizeX,s=r.sizeY,l=r.animationTime,d=r.animationType,u=a||n.1&&f;m?eo(i):xi(i)}}function ui(i,n,e,o){var r=i.setup,a=r.minScale,t=r.maxScale,s=r.limitToBounds,l=j(T(n,2),a,t,0,!1),d=Z(i,l),u=$(i,e,o,l,d,s),f=u.x,m=u.y;return{scale:l,positionX:f,positionY:m}}function Gi(i,n,e){var o=i.transformState.scale,r=i.wrapperComponent,a=i.setup,t=a.minScale,s=a.limitToBounds,l=a.zoomAnimation,d=l.disabled,u=l.animationTime,f=l.animationType,m=d||o>=t;if((o>=1||s)&&xi(i),!(m||!r||!i.mounted)){var v=n||r.offsetWidth/2,p=e||r.offsetHeight/2,h=ui(i,t,v,p);h&&A(i,h,u,f)}}var N=function(){return N=Object.assign||function(n){for(var e,o=1,r=arguments.length;ot||Math.sign(e.deltaY)!==Math.sign(n.deltaY)||e.deltaY>0&&e.deltaYn.deltaY||Math.sign(e.deltaY)!==Math.sign(n.deltaY):!1},wo=function(i,n){var e=i.setup.pinch,o=e.disabled,r=e.excluded,a=i.isInitialized,t=n.target,s=a&&!o&&t;if(!s)return!1;var l=I(t,r);return!l},yo=function(i){var n=i.setup.pinch.disabled,e=i.isInitialized,o=i.pinchStartDistance,r=e&&!n&&o;return!!r},Co=function(i,n,e){var o=e.getBoundingClientRect(),r=i.touches,a=T(r[0].clientX-o.left,5),t=T(r[0].clientY-o.top,5),s=T(r[1].clientX-o.left,5),l=T(r[1].clientY-o.top,5);return{x:(a+s)/2/n,y:(t+l)/2/n}},ne=function(i){return Math.sqrt(Math.pow(i.touches[0].pageX-i.touches[1].pageX,2)+Math.pow(i.touches[0].pageY-i.touches[1].pageY,2))},Po=function(i,n){var e=i.pinchStartScale,o=i.pinchStartDistance,r=i.setup,a=r.maxScale,t=r.minScale,s=r.zoomAnimation,l=r.disablePadding,d=s.size,u=s.disabled;if(!e||o===null||!n)throw new Error("Pinch touches distance was not provided");if(n<0)return i.transformState.scale;var f=n/o,m=f*e;return j(T(m,2),t,a,d,!u&&!l)},To=160,Yo=100,Xo=function(i,n){var e=i.props,o=e.onWheelStart,r=e.onZoomStart;i.wheelStopEventTimer||(X(i),g(c(i),n,o),g(c(i),n,r))},No=function(i,n){var e=i.props,o=e.onWheel,r=e.onZoom,a=i.contentComponent,t=i.setup,s=i.transformState,l=s.scale,d=t.limitToBounds,u=t.centerZoomedOut,f=t.zoomAnimation,m=t.wheel,v=t.disablePadding,p=t.smooth,h=f.size,b=f.disabled,y=m.step,P=m.smoothStep;if(!a)throw new Error("Component not mounted");n.preventDefault(),n.stopPropagation();var w=go(n,null),E=p?P*Math.abs(n.deltaY):y,Y=bo(i,w,E,!n.ctrlKey);if(l!==Y){var k=Z(i,Y),_=oe(n,a,l),L=b||h===0||u||v,D=d&&L,O=$(i,_.x,_.y,Y,k,D),B=O.x,H=O.y;i.previousWheelEvent=n,i.setTransformState(Y,B,H),g(c(i),n,o),g(c(i),n,r)}},zo=function(i,n){var e=i.props,o=e.onWheelStop,r=e.onZoomStop;si(i.wheelAnimationTimer),i.wheelAnimationTimer=setTimeout(function(){i.mounted&&(Gi(i,n.x,n.y),i.wheelAnimationTimer=null)},Yo);var a=So(i,n);a&&(si(i.wheelStopEventTimer),i.wheelStopEventTimer=setTimeout(function(){i.mounted&&(i.wheelStopEventTimer=null,g(c(i),n,o),g(c(i),n,r))},To))},Ao=function(i,n){var e=ne(n);i.pinchStartDistance=e,i.lastDistance=e,i.pinchStartScale=i.transformState.scale,i.isPanning=!1,X(i)},Eo=function(i,n){var e=i.contentComponent,o=i.pinchStartDistance,r=i.transformState.scale,a=i.setup,t=a.limitToBounds,s=a.centerZoomedOut,l=a.zoomAnimation,d=l.disabled,u=l.size;if(!(o===null||!e)){var f=Co(n,r,e);if(!(!Number.isFinite(f.x)||!Number.isFinite(f.y))){var m=ne(n),v=Po(i,m);if(v!==r){var p=Z(i,v),h=d||u===0||s,b=t&&h,y=$(i,f.x,f.y,v,p,b),P=y.x,w=y.y;i.pinchMidpoint=f,i.lastDistance=m,i.setTransformState(v,P,w)}}}},_o=function(i){var n=i.pinchMidpoint;i.velocity=null,i.lastDistance=null,i.pinchMidpoint=null,i.pinchStartScale=null,i.pinchStartDistance=null,Gi(i,n==null?void 0:n.x,n==null?void 0:n.y)},re=function(i,n){var e=i.props.onZoomStop,o=i.setup.doubleClick.animationTime;si(i.doubleClickStopEventTimer),i.doubleClickStopEventTimer=setTimeout(function(){i.doubleClickStopEventTimer=null,g(c(i),n,e)},o)},Wo=function(i,n){var e=i.props,o=e.onZoomStart,r=e.onZoom,a=i.setup.doubleClick,t=a.animationTime,s=a.animationType;g(c(i),n,o),ie(i,t,s,function(){return g(c(i),n,r)}),re(i,n)};function Do(i,n){var e=i.setup,o=i.doubleClickStopEventTimer,r=i.transformState,a=i.contentComponent,t=r.scale,s=i.props,l=s.onZoomStart,d=s.onZoom,u=e.doubleClick,f=u.disabled,m=u.mode,v=u.step,p=u.animationTime,h=u.animationType;if(!f&&!o){if(m==="reset")return Wo(i,n);if(!a)return console.error("No ContentComponent found");var b=m==="zoomOut"?-1:1,y=$i(i,b,v);if(t!==y){g(c(i),n,l);var P=oe(n,a,t),w=ui(i,y,P.x,P.y);if(!w)return console.error("Error during zoom event. New transformation state was not calculated.");g(c(i),n,d),A(i,w,p,h),re(i,n)}}}var Oo=function(i,n){var e=i.isInitialized,o=i.setup,r=i.wrapperComponent,a=o.doubleClick,t=a.disabled,s=a.excluded,l=n.target,d=r==null?void 0:r.contains(l),u=e&&l&&d&&!t;if(!u)return!1;var f=I(l,s);return!f},Zo=function(){function i(n){var e=this;this.mounted=!0,this.onChangeCallbacks=new Set,this.onInitCallbacks=new Set,this.wrapperComponent=null,this.contentComponent=null,this.isInitialized=!1,this.bounds=null,this.previousWheelEvent=null,this.wheelStopEventTimer=null,this.wheelAnimationTimer=null,this.isPanning=!1,this.startCoords=null,this.lastTouch=null,this.distance=null,this.lastDistance=null,this.pinchStartDistance=null,this.pinchStartScale=null,this.pinchMidpoint=null,this.doubleClickStopEventTimer=null,this.velocity=null,this.velocityTime=null,this.lastMousePosition=null,this.animate=!1,this.animation=null,this.maxBounds=null,this.pressedKeys={},this.mount=function(){e.initializeWindowEvents()},this.unmount=function(){e.cleanupWindowEvents()},this.update=function(o){Z(e,e.transformState.scale),e.setup=Pi(o)},this.initializeWindowEvents=function(){var o,r=ri(),a=(o=e.wrapperComponent)===null||o===void 0?void 0:o.ownerDocument,t=a==null?void 0:a.defaultView;t==null||t.addEventListener("mousedown",e.onPanningStart,r),t==null||t.addEventListener("mousemove",e.onPanning,r),t==null||t.addEventListener("mouseup",e.onPanningStop,r),a==null||a.addEventListener("mouseleave",e.clearPanning,r),t==null||t.addEventListener("keyup",e.setKeyUnPressed,r),t==null||t.addEventListener("keydown",e.setKeyPressed,r)},this.cleanupWindowEvents=function(){var o,r,a=ri(),t=(o=e.wrapperComponent)===null||o===void 0?void 0:o.ownerDocument,s=t==null?void 0:t.defaultView;s==null||s.removeEventListener("mousedown",e.onPanningStart,a),s==null||s.removeEventListener("mousemove",e.onPanning,a),s==null||s.removeEventListener("mouseup",e.onPanningStop,a),t==null||t.removeEventListener("mouseleave",e.clearPanning,a),s==null||s.removeEventListener("keyup",e.setKeyUnPressed,a),s==null||s.removeEventListener("keydown",e.setKeyPressed,a),document.removeEventListener("mouseleave",e.clearPanning,a),X(e),(r=e.observer)===null||r===void 0||r.disconnect()},this.handleInitializeWrapperEvents=function(o){var r=ri();o.addEventListener("wheel",e.onWheelZoom,r),o.addEventListener("dblclick",e.onDoubleClick,r),o.addEventListener("touchstart",e.onTouchPanningStart,r),o.addEventListener("touchmove",e.onTouchPanning,r),o.addEventListener("touchend",e.onTouchPanningStop,r)},this.handleInitialize=function(o){var r=e.setup.centerOnInit;e.applyTransformation(),e.onInitCallbacks.forEach(function(a){return a(c(e))}),r&&(e.setCenter(),e.observer=new ResizeObserver(function(){var a;e.onInitCallbacks.forEach(function(t){return t(c(e))}),e.setCenter(),(a=e.observer)===null||a===void 0||a.disconnect()}),e.observer.observe(o))},this.onWheelZoom=function(o){var r=e.setup.disabled;if(!r){var a=ho(e,o);if(a){var t=e.isPressingKeys(e.setup.wheel.activationKeys);t&&(Xo(e,o),No(e,o),zo(e,o))}}},this.onPanningStart=function(o){var r=e.setup.disabled,a=e.props.onPanningStart;if(!r){var t=gi(e,o);if(t){var s=e.isPressingKeys(e.setup.panning.activationKeys);s&&(o.preventDefault(),o.stopPropagation(),X(e),wi(e,o),g(c(e),o,a))}}},this.onPanning=function(o){var r=e.setup.disabled,a=e.props.onPanning;if(!r){var t=bi(e);if(t){var s=e.isPressingKeys(e.setup.panning.activationKeys);s&&(o.preventDefault(),o.stopPropagation(),yi(e,o.clientX,o.clientY),g(c(e),o,a))}}},this.onPanningStop=function(o){var r=e.props.onPanningStop;e.isPanning&&(oo(e),g(c(e),o,r))},this.onPinchStart=function(o){var r=e.setup.disabled,a=e.props,t=a.onPinchingStart,s=a.onZoomStart;if(!r){var l=wo(e,o);l&&(Ao(e,o),X(e),g(c(e),o,t),g(c(e),o,s))}},this.onPinch=function(o){var r=e.setup.disabled,a=e.props,t=a.onPinching,s=a.onZoom;if(!r){var l=yo(e);l&&(o.preventDefault(),o.stopPropagation(),Eo(e,o),g(c(e),o,t),g(c(e),o,s))}},this.onPinchStop=function(o){var r=e.props,a=r.onPinchingStop,t=r.onZoomStop;e.pinchStartScale&&(_o(e),g(c(e),o,a),g(c(e),o,t))},this.onTouchPanningStart=function(o){var r=e.setup.disabled,a=e.props.onPanningStart;if(!r){var t=gi(e,o);if(t){var s=e.lastTouch&&+new Date-e.lastTouch<200;if(s&&o.touches.length===1)e.onDoubleClick(o);else{e.lastTouch=+new Date,X(e);var l=o.touches,d=l.length===1,u=l.length===2;d&&(X(e),wi(e,o),g(c(e),o,a)),u&&e.onPinchStart(o)}}}},this.onTouchPanning=function(o){var r=e.setup.disabled,a=e.props.onPanning;if(e.isPanning&&o.touches.length===1){if(r)return;var t=bi(e);if(!t)return;o.preventDefault(),o.stopPropagation();var s=o.touches[0];yi(e,s.clientX,s.clientY),g(c(e),o,a)}else o.touches.length>1&&e.onPinch(o)},this.onTouchPanningStop=function(o){e.onPanningStop(o),e.onPinchStop(o)},this.onDoubleClick=function(o){var r=e.setup.disabled;if(!r){var a=Oo(e,o);a&&Do(e,o)}},this.clearPanning=function(o){e.isPanning&&e.onPanningStop(o)},this.setKeyPressed=function(o){e.pressedKeys[o.key]=!0},this.setKeyUnPressed=function(o){e.pressedKeys[o.key]=!1},this.isPressingKeys=function(o){return o.length?!!o.find(function(r){return e.pressedKeys[r]}):!0},this.setTransformState=function(o,r,a){var t=e.props.onTransformed;if(!Number.isNaN(o)&&!Number.isNaN(r)&&!Number.isNaN(a)){o!==e.transformState.scale&&(e.transformState.previousScale=e.transformState.scale,e.transformState.scale=o),e.transformState.positionX=r,e.transformState.positionY=a,e.applyTransformation();var s=c(e);e.onChangeCallbacks.forEach(function(l){return l(s)}),g(s,{scale:o,positionX:r,positionY:a},t)}else console.error("Detected NaN set state values")},this.setCenter=function(){if(e.wrapperComponent&&e.contentComponent){var o=ee(e.transformState.scale,e.wrapperComponent,e.contentComponent);e.setTransformState(o.scale,o.positionX,o.positionY)}},this.handleTransformStyles=function(o,r,a){return e.props.customTransform?e.props.customTransform(o,r,a):vo(o,r,a)},this.applyTransformation=function(){if(!(!e.mounted||!e.contentComponent)){var o=e.transformState,r=o.scale,a=o.positionX,t=o.positionY,s=e.handleTransformStyles(a,t,r);e.contentComponent.style.transform=s}},this.getContext=function(){return c(e)},this.onChange=function(o){return e.onChangeCallbacks.has(o)||e.onChangeCallbacks.add(o),function(){e.onChangeCallbacks.delete(o)}},this.onInit=function(o){return e.onInitCallbacks.has(o)||e.onInitCallbacks.add(o),function(){e.onInitCallbacks.delete(o)}},this.init=function(o,r){e.cleanupWindowEvents(),e.wrapperComponent=o,e.contentComponent=r,Z(e,e.transformState.scale),e.handleInitializeWrapperEvents(o),e.handleInitialize(r),e.initializeWindowEvents(),e.isInitialized=!0;var a=c(e);g(a,void 0,e.props.onInit)},this.props=n,this.setup=Pi(this.props),this.transformState=Ji(this.props)}return i}(),di=W.createContext(null),ko=function(i,n){return typeof i=="function"?i(n):i},Lo=W.forwardRef(function(i,n){var e=C.useRef(new Zo(i)).current,o=ko(i.children,ti(e));return C.useImperativeHandle(n,function(){return ti(e)},[e]),C.useEffect(function(){e.update(i)},[e,i]),W.createElement(di.Provider,{value:e},o)});W.forwardRef(function(i,n){var e=C.useRef(null),o=C.useContext(di);return C.useEffect(function(){return o.onChange(function(r){if(e.current){var a=0,t=0;e.current.style.transform=o.handleTransformStyles(a,t,1/r.instance.transformState.scale)}})},[o]),W.createElement("div",N({},i,{ref:po([e,n])}))});function Bo(i,n){n===void 0&&(n={});var e=n.insertAt;if(!(!i||typeof document>"u")){var o=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css",e==="top"&&o.firstChild?o.insertBefore(r,o.firstChild):o.appendChild(r),r.styleSheet?r.styleSheet.cssText=i:r.appendChild(document.createTextNode(i))}}var Mo=`.transform-component-module_wrapper__SPB86 {
+ position: relative;
+ width: -moz-fit-content;
+ width: fit-content;
+ height: -moz-fit-content;
+ height: fit-content;
+ overflow: hidden;
+ -webkit-touch-callout: none; /* iOS Safari */
+ -webkit-user-select: none; /* Safari */
+ -khtml-user-select: none; /* Konqueror HTML */
+ -moz-user-select: none; /* Firefox */
+ -ms-user-select: none; /* Internet Explorer/Edge */
+ user-select: none;
+ margin: 0;
+ padding: 0;
+}
+.transform-component-module_content__FBWxo {
+ display: flex;
+ flex-wrap: wrap;
+ width: -moz-fit-content;
+ width: fit-content;
+ height: -moz-fit-content;
+ height: fit-content;
+ margin: 0;
+ padding: 0;
+ transform-origin: 0% 0%;
+}
+.transform-component-module_content__FBWxo img {
+ pointer-events: none;
+}
+`,Ti={wrapper:"transform-component-module_wrapper__SPB86",content:"transform-component-module_content__FBWxo"};Bo(Mo);var jo=function(i){var n=i.children,e=i.wrapperClass,o=e===void 0?"":e,r=i.contentClass,a=r===void 0?"":r,t=i.wrapperStyle,s=i.contentStyle,l=i.wrapperProps,d=l===void 0?{}:l,u=i.contentProps,f=u===void 0?{}:u,m=C.useContext(di).init,v=C.useRef(null),p=C.useRef(null);return C.useEffect(function(){var h=v.current,b=p.current;h!==null&&b!==null&&m&&m(h,b)},[]),W.createElement("div",N({},d,{ref:v,className:"react-transform-wrapper ".concat(Ti.wrapper," ").concat(o),style:t}),W.createElement("div",N({},f,{ref:p,className:"react-transform-component ".concat(Ti.content," ").concat(a),style:s}),n))};const Qo={title:"Demos/Controls",component:z,subcomponents:{Node:ge,Edge:be,MarkerArrow:Se,Arrow:we,Icon:ye,Label:Ce,Port:Pe,Remove:Te,Add:Ye}},K=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:450,width:450,position:"relative"},children:S.jsx(z,{pannable:!1,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),V=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:200,width:200,position:"relative"},children:S.jsx(z,{height:150,width:150,disabled:!0,fit:!0,pannable:!1,arrow:null,nodes:[{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"},{id:"1-4",from:"1",to:"4"}],onLayoutChange:i=>console.log("Layout",i)})}),F=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:450,width:450,position:"relative"},children:S.jsx(z,{pannable:!1,defaultPosition:null,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),Q=()=>S.jsx("div",{style:{border:"solid 1px #12131e",height:450,width:450,position:"relative"},children:S.jsx(z,{pannable:!1,defaultPosition:Xe.TOP,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),q=()=>S.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:S.jsx(z,{fit:!0,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onLayoutChange:i=>console.log("Layout",i)})}),U=()=>{const[i,n]=C.useState(.7),e=C.useRef(null);return S.jsxs("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:[S.jsxs("pre",{style:{zIndex:9,position:"absolute",bottom:15,right:15,background:"rgba(0, 0, 0, .5)",padding:20,color:"white"},children:["Zoom: ",i,S.jsx("br",{}),S.jsx("button",{style:{display:"block",width:"100%",margin:"5px 0"},onClick:()=>e.current.zoomIn(),children:"Zoom In"}),S.jsx("button",{style:{display:"block",width:"100%",margin:"5px 0"},onClick:()=>e.current.zoomOut(),children:"Zoom Out"}),S.jsx("button",{style:{display:"block",width:"100%"},onClick:()=>e.current.fitCanvas(),children:"Fit"})]}),S.jsx(z,{maxZoom:.2,minZoom:-.9,zoom:i,ref:e,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}],onZoomChange:o=>{console.log("zooming",o),n(o)},onLayoutChange:o=>console.log("Layout",o)})]})},x=()=>{const i=C.useRef(null);return S.jsx(Lo,{wheel:{step:40},options:{maxScale:4,limitToBounds:!1},children:S.jsx(jo,{children:S.jsx(z,{ref:i,zoomable:!1,maxWidth:800,maxHeight:800,fit:!0,nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}],edges:[{id:"1-2",from:"1",to:"2"},{id:"1-3",from:"1",to:"3"}]})})})};var Yi,Xi,Ni;K.parameters={...K.parameters,docs:{...(Yi=K.parameters)==null?void 0:Yi.docs,source:{originalSource:`() =>
+
`,...(Ni=(Xi=K.parameters)==null?void 0:Xi.docs)==null?void 0:Ni.source}}};var zi,Ai,Ei;V.parameters={...V.parameters,docs:{...(zi=V.parameters)==null?void 0:zi.docs,source:{originalSource:`() =>
+
`,...(Ei=(Ai=V.parameters)==null?void 0:Ai.docs)==null?void 0:Ei.source}}};var _i,Wi,Di;F.parameters={...F.parameters,docs:{...(_i=F.parameters)==null?void 0:_i.docs,source:{originalSource:`() =>
+
`,...(Di=(Wi=F.parameters)==null?void 0:Wi.docs)==null?void 0:Di.source}}};var Oi,Zi,ki;Q.parameters={...Q.parameters,docs:{...(Oi=Q.parameters)==null?void 0:Oi.docs,source:{originalSource:`() =>
+
`,...(ki=(Zi=Q.parameters)==null?void 0:Zi.docs)==null?void 0:ki.source}}};var Li,Bi,Mi;q.parameters={...q.parameters,docs:{...(Li=q.parameters)==null?void 0:Li.docs,source:{originalSource:`() =>
+
`,...(Mi=(Bi=q.parameters)==null?void 0:Bi.docs)==null?void 0:Mi.source}}};var ji,Hi,Ri;U.parameters={...U.parameters,docs:{...(ji=U.parameters)==null?void 0:ji.docs,source:{originalSource:`() => {
+ const [zoom, setZoom] = useState(0.7);
+ const ref = useRef(null);
+ return
+
+ Zoom: {zoom}
+
+
+
+
+
;
+}`,...(Ri=(Hi=U.parameters)==null?void 0:Hi.docs)==null?void 0:Ri.source}}};var Ki,Vi,Fi;x.parameters={...x.parameters,docs:{...(Ki=x.parameters)==null?void 0:Ki.docs,source:{originalSource:`() => {
+ const ref = useRef(null);
+ return
+
+
+
+ ;
+}`,...(Fi=(Vi=x.parameters)==null?void 0:Vi.docs)==null?void 0:Fi.source}}};const qo=["FixedPosition","Small","NonCentered","TopPosition","Fit","Zoom","ZoomExternal"];export{q as Fit,K as FixedPosition,F as NonCentered,V as Small,Q as TopPosition,U as Zoom,x as ZoomExternal,qo as __namedExportsOrder,Qo as default};
diff --git a/assets/Crud-c3790d64.js b/assets/Crud-c3790d64.js
new file mode 100644
index 0000000..36dcaec
--- /dev/null
+++ b/assets/Crud-c3790d64.js
@@ -0,0 +1,17 @@
+import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as s}from"./index-2ef8b458.js";import{M as i}from"./index-8e905c69.js";import"./index-1b03fe98.js";import"./iframe-ace6960f.js";import"../sb-preview/runtime.js";import"./chunk-EIRT5I3Z-f0a10e90.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";function o(n){const t=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li",h4:"h4",blockquote:"blockquote",a:"a"},s(),n.components);return e.jsxs(e.Fragment,{children:[e.jsx(i,{title:"Docs/Utils/Getting Started"}),`
+`,e.jsx(t.h1,{id:"getting-started-with-utils",children:"Getting Started with Utils"}),`
+`,e.jsx(t.p,{children:`There a variety of common interactions you want to make
+with the canvas and graph. reaflow has some helpers out of
+the box to help manage those typical operations. Those
+helpers are broken up into two categories:`}),`
+`,e.jsxs(t.ul,{children:[`
+`,e.jsx(t.li,{children:"CRUD - Dealing with manipulating nodes/edges"}),`
+`,e.jsx(t.li,{children:"Graph - Dealing with traversing the graph"}),`
+`,e.jsx(t.li,{children:"Extended Utils - More use-case focused helpers"}),`
+`]}),`
+`,e.jsx(t.h4,{id:"notes",children:"Notes"}),`
+`,e.jsxs(t.blockquote,{children:[`
+`,e.jsx(t.p,{children:"These helpers are very generic and meant to help people getting started, but they're not meant to cover specific use-cases."}),`
+`,e.jsxs(t.p,{children:["You should copy them and adapt them to your own needs if they don't cover your needs. ",e.jsx(t.a,{href:"https://github.com/reaviz/reaflow/issues/47#issuecomment-775919579",target:"_blank",rel:"nofollow noopener noreferrer",children:"See discussion"}),"."]}),`
+`,e.jsxs(t.p,{children:["There are advanced examples in ",e.jsx(t.a,{href:"/?path=/story/docs-utils-extending--page",children:"Extending Utils"})," page."]}),`
+`]})]})}function f(n={}){const{wrapper:t}=Object.assign({},s(),n.components);return t?e.jsx(t,Object.assign({},n,{children:e.jsx(o,n)})):o(n)}export{f as default};
diff --git a/assets/CustomNodes-79585b80.js b/assets/CustomNodes-79585b80.js
new file mode 100644
index 0000000..bc81e42
--- /dev/null
+++ b/assets/CustomNodes-79585b80.js
@@ -0,0 +1,74 @@
+import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as s}from"./index-2ef8b458.js";import{M as r}from"./index-8e905c69.js";import"./index-1b03fe98.js";import"./iframe-ace6960f.js";import"../sb-preview/runtime.js";import"./chunk-EIRT5I3Z-f0a10e90.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";function t(o){const n=Object.assign({h1:"h1",p:"p",code:"code",a:"a",blockquote:"blockquote",h2:"h2",pre:"pre",h3:"h3",ul:"ul",li:"li",strong:"strong"},s(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(r,{title:"Docs/Advanced/Custom nodes"}),`
+`,e.jsx(n.h1,{id:"custom-nodes",children:"Custom nodes"}),`
+`,e.jsxs(n.p,{children:["Using HTML within a ",e.jsx(n.code,{children:"Node"})," component relies on the SVG ",e.jsx(n.a,{href:"https://developer.mozilla.org/en-US/docs/Web/SVG/Element/foreignObject",target:"_blank",rel:"nofollow noopener noreferrer",children:e.jsx(n.code,{children:"foreignObject"})}),"."]}),`
+`,e.jsxs(n.blockquote,{children:[`
+`,e.jsxs(n.p,{children:["You do not need to use ",e.jsx(n.code,{children:"xmlns"})," (XML NameSpace) in the first ",e.jsx(n.code,{children:"div"})," within ",e.jsx(n.code,{children:"foreignObject"}),", it's only required when the SVG is a whole document."]}),`
+`]}),`
+`,e.jsx(n.h2,{id:"rendering-different-kindstypes-of-nodes",children:"Rendering different kinds/types of nodes"}),`
+`,e.jsxs(n.p,{children:['Most apps will need to render different kinds of nodes. The way to go is to use a Node "',e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/734018e8135523fccc2c01077294bca0a32ddfbe/src/components/nodes/NodeRouter.tsx#L43",target:"_blank",rel:"nofollow noopener noreferrer",children:"Router"}),`" component, which checks what the node's type is, and renders the related React component.`]}),`
+`,e.jsxs(n.h2,{id:"how-does-foreignobject-render-in-html",children:["How does ",e.jsx(n.code,{children:"foreignObject"})," render in HTML?"]}),`
+`,e.jsxs(n.p,{children:["While using ",e.jsx(n.code,{children:"foreignObject"})," allows building components using usual HTML/CSS, there are a few quirks to consider."]}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-html",children:`
+
+
+
+
+
+
+
+
+ Node content
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+`})}),`
+`,e.jsx(n.h2,{id:"known-issues-and-workarounds",children:"Known issues and workarounds"}),`
+`,e.jsxs(n.h3,{id:"use-position-fixed-in-the-first-div",children:["Use ",e.jsx(n.code,{children:"position: fixed"})," in the first div"]}),`
+`,e.jsxs(n.p,{children:["You must apply ",e.jsx(n.code,{children:"position: fixed"})," to the first ",e.jsx(n.code,{children:"div"})," element contained by the ",e.jsx(n.code,{children:"foreignObject"}),", otherwise any child element using ",e.jsx(n.code,{children:"position"})," ",e.jsx(n.a,{href:"https://github.com/reaviz/reaflow/issues/44#issuecomment-776883460",target:"_blank",rel:"nofollow noopener noreferrer",children:"will not be displayed"}),"."]}),`
+`,e.jsxs(n.ul,{children:[`
+`,e.jsxs(n.li,{children:["This issue was the reason why ",e.jsx(n.code,{children:"react-select"})," and ",e.jsx(n.code,{children:"ChakraUI Select"})," components wouldn't display properly."]}),`
+`]}),`
+`,e.jsx(n.h3,{id:"z-index-doesnt-have-any-effect-on-svg-elements",children:"Z-index doesn't have any effect on SVG elements"}),`
+`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"foreignObject"})," is still a SVG element, and it is displayed on top of the ",e.jsx(n.code,{children:"rect"})," (which represents the Node component created by reaflow)."]}),`
+`,e.jsxs(n.p,{children:["It is not possible to re-order SVG elements using ",e.jsx(n.code,{children:"z-index"}),`.
+The rule of display on the Z index being "the last element is displayed on top of the other element".`]}),`
+`,e.jsxs(n.h3,{id:"the-foreignobject-will-steal-events-onclick-onenter-onleave-etc-that-are-bound-to-the-rect-node",children:["The ",e.jsx(n.code,{children:"foreignObject"})," will steal events (onClick, onEnter, onLeave, etc.) that are bound to the ",e.jsx(n.code,{children:"rect"})," (Node)"]}),`
+`,e.jsxs(n.p,{children:["Because the ",e.jsx(n.code,{children:"foreignObject"})," displays on top of the ",e.jsx(n.code,{children:"rect"}),' element, it will "steal" events such as onClick, onEnter/onLeave (mouse).']}),`
+`,e.jsxs(n.p,{children:["Those events are provided by default by Reaflow ",e.jsx(n.code,{children:"Canvas"})," to its ",e.jsx(n.code,{children:"Node"}),` components.
+Thus, by using `,e.jsx(n.code,{children:"foreignObject"}),", ",e.jsx(n.strong,{children:"none of the built-in Node events will work anymore"}),", ",e.jsxs(n.a,{href:"https://github.com/reaviz/reaflow/discussions/34",target:"_blank",rel:"nofollow noopener noreferrer",children:["unless you set ",e.jsx(n.code,{children:"pointer-events: none"})," to the ",e.jsx(n.code,{children:"foreignObject"})," element"]}),"."]}),`
+`,e.jsxs(n.p,{children:["Although, even if you disable ",e.jsx(n.code,{children:"pointer-events"}),", depending on your Node component UI, it might only work for part of the component."]}),`
+`,e.jsx(n.p,{children:"Many built-in behaviors will be affected because of this, such as:"}),`
+`,e.jsxs(n.ul,{children:[`
+`,e.jsxs(n.li,{children:["Dragging an edge from a node",`
+`,e.jsxs(n.ul,{children:[`
+`,e.jsxs(n.li,{children:["Dragging won't work if the click doesn't happen on the ",e.jsx(n.code,{children:"rect"})]}),`
+`]}),`
+`]}),`
+`,e.jsxs(n.li,{children:["Selecting nodes",`
+`,e.jsxs(n.ul,{children:[`
+`,e.jsxs(n.li,{children:["The click won't work it doesn't happen on the ",e.jsx(n.code,{children:"rect"})]}),`
+`,e.jsxs(n.li,{children:["Using shortcuts for multiple selection ",e.jsx(n.a,{href:"https://github.com/reaviz/reaflow/issues/50",target:"_blank",rel:"nofollow noopener noreferrer",children:"won't work because keyboard events won't be captured"})]}),`
+`]}),`
+`]}),`
+`]}),`
+`,e.jsxs(n.p,{children:["That's why, in addition to disabling ",e.jsx(n.code,{children:"pointer-events"}),", ",e.jsxs(n.strong,{children:["you might also want ",e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/272a23604e0a11ef0726e19091be58ffd5861d62/src/components/nodes/BaseNode.tsx#L357-L360",target:"_blank",rel:"nofollow noopener noreferrer",children:"to forward the native events"})]})," (onClick, onEnter, onLeave, onKeyPress, etc.) to the main div (",e.jsx(n.code,{children:".node"})," above)."]}),`
+`,e.jsxs(n.p,{children:["By forwarding those events to the first ",e.jsx(n.code,{children:"div"}),", you'll work around most of the above-mentioned issues."]}),`
+`,e.jsx(n.h3,{id:"enteringleaving-a-node",children:"Entering/leaving a node"}),`
+`,e.jsx(n.p,{children:"Depending on how complicated your HTML is within the nodes themselves, it might be tough to detect whether you're in a node or not."}),`
+`,e.jsxs(n.p,{children:["When not using ",e.jsx(n.code,{children:"foreignObject"}),", it is really straightforward, but when the ",e.jsx(n.code,{children:"foreignObject"})," contains complex HTML structure, the ",e.jsx(n.code,{children:"onEnter/onLeave"})," events applied to main ",e.jsx(n.code,{children:"div"})," will trigger when hovering other elements within that node, leading to a tons of false-positive events."]}),`
+`,e.jsx(n.p,{children:"At this time, there was no viable solution being reported to work around this issue."}),`
+`,e.jsx(n.h2,{id:"community-examples",children:"Community examples"}),`
+`,e.jsxs(n.ul,{children:[`
+`,e.jsxs(n.li,{children:[e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vadorequest/poc-nextjs-reaflow"})," uses custom nodes UI, and ",e.jsxs(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/287141b94145eec18fb02aab8f00676ae92f1310/src/components/nodes/BaseNode.tsx#L279-L418",target:"_blank",rel:"nofollow noopener noreferrer",children:["all nodes relies on ",e.jsx(n.code,{children:"foreignObject"})]})]}),`
+`]})]})}function m(o={}){const{wrapper:n}=Object.assign({},s(),o.components);return n?e.jsx(n,Object.assign({},o,{children:e.jsx(t,o)})):t(o)}export{m as default};
diff --git a/assets/DataShapes-4073a4a3.js b/assets/DataShapes-4073a4a3.js
new file mode 100644
index 0000000..86becfb
--- /dev/null
+++ b/assets/DataShapes-4073a4a3.js
@@ -0,0 +1,203 @@
+import{j as n}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as a}from"./index-2ef8b458.js";import{M as i}from"./index-8e905c69.js";import"./index-1b03fe98.js";import"./iframe-ace6960f.js";import"../sb-preview/runtime.js";import"./chunk-EIRT5I3Z-f0a10e90.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";function o(t){const e=Object.assign({h1:"h1",p:"p",ul:"ul",li:"li",code:"code",h2:"h2",pre:"pre"},a(),t.components);return n.jsxs(n.Fragment,{children:[n.jsx(i,{title:"Docs/Getting Started/Data Shapes"}),`
+`,n.jsx(e.h1,{id:"data-shapes",children:"Data Shapes"}),`
+`,n.jsx(e.p,{children:`The graph is made up of 3 basic data shape objects you
+can pass to the graph.`}),`
+`,n.jsxs(e.ul,{children:[`
+`,n.jsxs(e.li,{children:[n.jsx(e.code,{children:"NodeData"})," - The element block which renders"]}),`
+`,n.jsxs(e.li,{children:[n.jsx(e.code,{children:"EdgeData"})," - The link between Nodes"]}),`
+`,n.jsxs(e.li,{children:[n.jsx(e.code,{children:"PortData"})," - A specific enter/exit block to link between Nodes"]}),`
+`]}),`
+`,n.jsx(e.h2,{id:"node",children:"Node"}),`
+`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface NodeData {
+ /**
+ * Unique ID for the node.
+ */
+ id: string;
+
+ /**
+ * Whether the node is disabled or not.
+ */
+ disabled?: boolean;
+
+ /**
+ * Text label for the node.
+ */
+ text?: any;
+
+ /**
+ * Optional height attribute. If not passed with calculate
+ * default sizes using text.
+ */
+ height?: number;
+
+ /**
+ * Optional width attribute. If not passed with calculate
+ * default sizes using text.
+ */
+ width?: number;
+
+ /**
+ * Parent node id for nesting.
+ */
+ parent?: string;
+
+ /**
+ * List of ports.
+ */
+ ports?: PortData[];
+
+ /**
+ * Icon for the node.
+ */
+ icon?: IconData;
+
+ /**
+ * Padding for the node.
+ */
+ nodePadding?: number | [number, number] | [number, number, number, number];
+
+ /**
+ * Data for the node.
+ */
+ data?: T;
+
+ /**
+ * CSS classname for the node.
+ */
+ className?: string;
+
+ /**
+ * ELK layout options.
+ */
+ layoutOptions?: ElkNodeLayoutOptions;
+
+ /**
+ * Whether the node can be clicked.
+ */
+ selectionDisabled?: boolean;
+}
+`})}),`
+`,n.jsxs(e.p,{children:["The node also has a ",n.jsx(e.code,{children:"IconData"})," shape:"]}),`
+`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface IconData {
+ /**
+ * URL for the icon.
+ */
+ url: string;
+
+ /**
+ * Height of the icon.
+ */
+ height: number;
+
+ /**
+ * Width of the icon.
+ */
+ width: number;
+}
+`})}),`
+`,n.jsx(e.h2,{id:"edge",children:"Edge"}),`
+`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface EdgeData {
+ /**
+ * Unique ID of the edge.
+ */
+ id: string;
+
+ /**
+ * Whether the edge is disabled or not.
+ */
+ disabled?: boolean;
+
+ /**
+ * Text label for the edge.
+ */
+ text?: any;
+
+ /**
+ * ID of the from node.
+ */
+ from?: string;
+
+ /**
+ * ID of the to node.
+ */
+ to?: string;
+
+ /**
+ * Optional ID of the from port.
+ */
+ fromPort?: string;
+
+ /**
+ * Optional ID of the to port.
+ */
+ toPort?: string;
+
+ /**
+ * Data about the edge.
+ */
+ data?: T;
+
+ /**
+ * CSS Classname for the edge.
+ */
+ className?: string;
+
+ /**
+ * Optional arrow head type.
+ */
+ arrowHeadType?: any;
+
+ /**
+ * Parent of the edge for nesting.
+ */
+ parent?: string;
+
+ /**
+ * Whether the edge can be clicked.
+ */
+ selectionDisabled?: boolean;
+}
+`})}),`
+`,n.jsx(e.h2,{id:"port",children:"Port"}),`
+`,n.jsx(e.pre,{children:n.jsx(e.code,{className:"language-ts",children:`export interface PortData {
+ /**
+ * Unique ID of the port.
+ */
+ id: string;
+
+ /**
+ * Height of the port.
+ */
+ height: number;
+
+ /**
+ * Width of the port.
+ */
+ width: number;
+
+ /**
+ * Whether the port is visually hidden or not.
+ */
+ hidden?: boolean;
+
+ /**
+ * Classname for the port.
+ */
+ className?: string;
+
+ /**
+ * Alignment of the port.
+ */
+ alignment?: 'CENTER';
+
+ /**
+ * Side the port is located.
+ */
+ side: 'NORTH' | 'SOUTH' | 'EAST' | 'WEST';
+
+ /**
+ * Port is disabled.
+ */
+ disabled?: boolean;
+}
+`})})]})}function x(t={}){const{wrapper:e}=Object.assign({},a(),t.components);return e?n.jsx(e,Object.assign({},t,{children:n.jsx(o,t)})):o(t)}export{x as default};
diff --git a/assets/DocsRenderer-NNNQARDV-0a6666d3.js b/assets/DocsRenderer-NNNQARDV-0a6666d3.js
new file mode 100644
index 0000000..eb9ea61
--- /dev/null
+++ b/assets/DocsRenderer-NNNQARDV-0a6666d3.js
@@ -0,0 +1 @@
+import{D,d as c}from"./chunk-HLWAVYOI-fce3c28f.js";import"./iframe-ace6960f.js";import"../sb-preview/runtime.js";import"./index-1b03fe98.js";import"./react-18-5df836b6.js";import"./index-6fd5a17b.js";import"./index-8e905c69.js";import"./chunk-EIRT5I3Z-f0a10e90.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";export{D as DocsRenderer,c as defaultComponents};
diff --git a/assets/Drag.stories-ed4b7e5f.js b/assets/Drag.stories-ed4b7e5f.js
new file mode 100644
index 0000000..827f1f8
--- /dev/null
+++ b/assets/Drag.stories-ed4b7e5f.js
@@ -0,0 +1,349 @@
+import{j as n}from"./jsx-runtime-9c4ae004.js";import{r as f}from"./index-1b03fe98.js";import{C as i,N as p,E as X,M as Y,a as Z,I as ee,L as te,P as ne,R as oe,A as re}from"./Icon-046b6023.js";import"./IntersectionQuery-1c2e7c35.js";import{c as D,r as j}from"./crudHelpers-031fd461.js";import{h as b}from"./graphHelpers-fa49f917.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const fe={title:"Demos/Drag",component:i,subcomponents:{Node:p,Edge:X,MarkerArrow:Y,Arrow:Z,Icon:ee,Label:te,Port:ne,Remove:oe,Add:re}},c=()=>n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:n.jsx(p,{dragCursor:"grab",dragType:"node"})})}),u=()=>n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:[{id:"1",text:"1",ports:a("1")},{id:"2",text:"2",ports:a("2")}],edges:[l("1","2")],node:n.jsx(p,{dragType:"port"})})}),x=()=>n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:[{id:"1",text:"1",ports:a("1")},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:n.jsx(p,{dragType:"multiportOnly"})})}),N=()=>n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:[{id:"1",text:"1",ports:a("1")},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],node:n.jsx(p,{dragType:"all"})})}),k=()=>{const[o,g]=f.useState([{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"},{id:"5",text:"5"},{id:"6",text:"6"}]),[r,m]=f.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"},{id:"2-4",from:"2",to:"4"},{id:"2-5",from:"2",to:"5"},{id:"5-6",from:"5",to:"6"}]);return n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:o,edges:r,node:n.jsx(p,{dragType:"node"}),onNodeLinkCheck:(s,e,t)=>!(e.id===t.id||b(r,e,t)),onNodeLink:(s,e,t)=>{const d=r.filter(E=>E.to!==e.id);m([...d,D(t,e)])}})})},h=()=>{const[o,g]=f.useState([{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"},{id:"4",text:"4"},{id:"5",text:"5"},{id:"6",text:"6"}]),[r,m]=f.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"},{id:"2-4",from:"2",to:"4"},{id:"2-5",from:"2",to:"5"},{id:"5-6",from:"5",to:"6"}]);return n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:o,edges:r,node:n.jsx(p,{dragType:"node"}),onNodeLinkCheck:(s,e,t)=>!(e.id===t.id||b(r,e,t)),onNodeLink:(s,e,t)=>{const d=j(o,r,e);m([...d.edges,D(t,e)])}})})},v=()=>{const[o,g]=f.useState([{id:"1",text:"1",ports:a("1")},{id:"2",text:"2",ports:a("2")},{id:"3",text:"3",ports:a("3")},{id:"4",text:"4",ports:a("4")},{id:"5",text:"5",ports:a("5")},{id:"6",text:"6",ports:a("6")}]),[r,m]=f.useState([l("1","2"),l("2","3"),l("2","4"),l("2","5"),l("5","6")]);return n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:o,edges:r,node:n.jsx(p,{dragType:"all"}),onNodeLinkCheck:(s,e,t)=>!(e.id===t.id||b(r,e,t)),onNodeLink:(s,e,t)=>{if(s.dragType==="node"){const d=j(o,r,e);m([...d.edges,l(t.id,e.id)])}else s.dragType==="port"&&m([...r,l(e.id,t.id)])}})})},y=()=>{const[o,g]=f.useState([{id:"1",text:"1"},{id:"2"},{id:"2-1-1",text:"2 > 1.1",parent:"2"},{id:"2-1-2",text:"2 > 1.2",parent:"2"},{id:"2-1-3",text:"2 > 1.3",parent:"2"},{id:"2-1-4",text:"2 > 1.4",parent:"2"},{id:"2-2-1",parent:"2"},{id:"2-2-1-1",text:"2 > 2.1 > 1.1",parent:"2-2-1"},{id:"3",text:"3"}]),[r,m]=f.useState([{id:"1-2",from:"1",to:"2"},{id:"2-1-1>2-1-2",from:"2-1-1",to:"2-1-2",parent:"2"},{id:"2-1-1>2-1-3",from:"2-1-1",to:"2-1-3",parent:"2"},{id:"2-1-2>2-2-1",from:"2-1-2",to:"2-2-1",parent:"2"},{id:"2-1-3>2-1-4",from:"2-1-3",to:"2-1-4",parent:"2"},{id:"2-3",from:"2",to:"3"}]);return n.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:n.jsx(i,{nodes:o,edges:r,node:s=>{const t=o.filter(d=>d.parent&&d.parent===s.id).length>3;return n.jsx(p,{...s,dragType:"node",draggable:!t})},onNodeLinkCheck:(s,e,t)=>!(e.id===t.id||e.id===t.parent||b(r,t,e)),onNodeLink:(s,e,t)=>{const d=j(o,r,e);if((e.parent||t.parent)&&e.parent!==t.parent){const E=o.map(P=>P.id===e.id?{...P,parent:t.parent}:{...P});e.parent=t.parent,g(E)}m([...d.edges,D(t,e)])}})})},a=o=>[{id:`${o}-from`,width:10,height:10,side:"SOUTH"},{id:`${o}-to`,width:10,height:10,side:"NORTH"}],l=(o,g)=>({id:`${o}-${g}`,from:o,to:g,fromPort:`${o}-from`,toPort:`${g}-to`});var S,F,L;c.parameters={...c.parameters,docs:{...(S=c.parameters)==null?void 0:S.docs,source:{originalSource:`() =>
+ } />
+
`,...(L=(F=c.parameters)==null?void 0:F.docs)==null?void 0:L.source}}};var T,C,_;u.parameters={...u.parameters,docs:{...(T=u.parameters)==null?void 0:T.docs,source:{originalSource:`() =>
+ } />
+
`,...(_=(C=u.parameters)==null?void 0:C.docs)==null?void 0:_.source}}};var O,w,R;x.parameters={...x.parameters,docs:{...(O=x.parameters)==null?void 0:O.docs,source:{originalSource:`() =>
+ } />
+
`,...(R=(w=x.parameters)==null?void 0:w.docs)==null?void 0:R.source}}};var A,W,U;N.parameters={...N.parameters,docs:{...(A=N.parameters)==null?void 0:A.docs,source:{originalSource:`() =>
+ } />
+
`,...(U=(W=N.parameters)==null?void 0:W.docs)==null?void 0:U.source}}};var $,M,H;k.parameters={...k.parameters,docs:{...($=k.parameters)==null?void 0:$.docs,source:{originalSource:`() => {
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: '1'
+ }, {
+ id: '2',
+ text: '2'
+ }, {
+ id: '3',
+ text: '3'
+ }, {
+ id: '4',
+ text: '4'
+ }, {
+ id: '5',
+ text: '5'
+ }, {
+ id: '6',
+ text: '6'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }, {
+ id: '2-3',
+ from: '2',
+ to: '3'
+ }, {
+ id: '2-4',
+ from: '2',
+ to: '4'
+ }, {
+ id: '2-5',
+ from: '2',
+ to: '5'
+ }, {
+ id: '5-6',
+ from: '5',
+ to: '6'
+ }]);
+ return
+ } onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => {
+ if (from.id === to.id) {
+ return false;
+ }
+ if (hasLink(edges, from, to)) {
+ return false;
+ }
+ return true;
+ }} onNodeLink={(_event, from, to) => {
+ const newEdges = edges.filter(e => e.to !== from.id);
+ setEdges([...newEdges, createEdgeFromNodes(to, from)]);
+ }} />
+
;
+}`,...(H=(M=k.parameters)==null?void 0:M.docs)==null?void 0:H.source}}};var I,q,z;h.parameters={...h.parameters,docs:{...(I=h.parameters)==null?void 0:I.docs,source:{originalSource:`() => {
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: '1'
+ }, {
+ id: '2',
+ text: '2'
+ }, {
+ id: '3',
+ text: '3'
+ }, {
+ id: '4',
+ text: '4'
+ }, {
+ id: '5',
+ text: '5'
+ }, {
+ id: '6',
+ text: '6'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }, {
+ id: '2-3',
+ from: '2',
+ to: '3'
+ }, {
+ id: '2-4',
+ from: '2',
+ to: '4'
+ }, {
+ id: '2-5',
+ from: '2',
+ to: '5'
+ }, {
+ id: '5-6',
+ from: '5',
+ to: '6'
+ }]);
+ return
+ } onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => {
+ if (from.id === to.id) {
+ return false;
+ }
+ if (hasLink(edges, from, to)) {
+ return false;
+ }
+ return true;
+ }} onNodeLink={(_event, from, to) => {
+ const result = removeAndUpsertNodes(nodes, edges, from);
+ setEdges([...result.edges, createEdgeFromNodes(to, from)]);
+ }} />
+
;
+}`,...(z=(q=h.parameters)==null?void 0:q.docs)==null?void 0:z.source}}};var B,G,J;v.parameters={...v.parameters,docs:{...(B=v.parameters)==null?void 0:B.docs,source:{originalSource:`() => {
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: '1',
+ ports: makeFakePorts('1')
+ }, {
+ id: '2',
+ text: '2',
+ ports: makeFakePorts('2')
+ }, {
+ id: '3',
+ text: '3',
+ ports: makeFakePorts('3')
+ }, {
+ id: '4',
+ text: '4',
+ ports: makeFakePorts('4')
+ }, {
+ id: '5',
+ text: '5',
+ ports: makeFakePorts('5')
+ }, {
+ id: '6',
+ text: '6',
+ ports: makeFakePorts('6')
+ }]);
+ const [edges, setEdges] = useState([makeFakeEdgeWithPorts('1', '2'), makeFakeEdgeWithPorts('2', '3'), makeFakeEdgeWithPorts('2', '4'), makeFakeEdgeWithPorts('2', '5'), makeFakeEdgeWithPorts('5', '6')]);
+ return
+ } onNodeLinkCheck={(_event, from: NodeData, to: NodeData) => {
+ if (from.id === to.id) {
+ return false;
+ }
+ if (hasLink(edges, from, to)) {
+ return false;
+ }
+ return true;
+ }} onNodeLink={(event, from, to) => {
+ if (event.dragType === 'node') {
+ // TODO: Need to make handle ports
+ const result = removeAndUpsertNodes(nodes, edges, from);
+ setEdges([...result.edges, makeFakeEdgeWithPorts(to.id, from.id)]);
+ } else if (event.dragType === 'port') {
+ setEdges([...edges, makeFakeEdgeWithPorts(from.id, to.id)]);
+ }
+ }} />
+
;
+}`,...(J=(G=v.parameters)==null?void 0:G.docs)==null?void 0:J.source}}};var K,Q,V;y.parameters={...y.parameters,docs:{...(K=y.parameters)==null?void 0:K.docs,source:{originalSource:`() => {
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: '1'
+ }, {
+ id: '2'
+ }, {
+ id: '2-1-1',
+ text: '2 > 1.1',
+ parent: '2'
+ }, {
+ id: '2-1-2',
+ text: '2 > 1.2',
+ parent: '2'
+ }, {
+ id: '2-1-3',
+ text: '2 > 1.3',
+ parent: '2'
+ }, {
+ id: '2-1-4',
+ text: '2 > 1.4',
+ parent: '2'
+ }, {
+ id: '2-2-1',
+ parent: '2'
+ }, {
+ id: '2-2-1-1',
+ text: '2 > 2.1 > 1.1',
+ parent: '2-2-1'
+ }, {
+ id: '3',
+ text: '3'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }, {
+ id: '2-1-1>2-1-2',
+ from: '2-1-1',
+ to: '2-1-2',
+ parent: '2'
+ }, {
+ id: '2-1-1>2-1-3',
+ from: '2-1-1',
+ to: '2-1-3',
+ parent: '2'
+ }, {
+ id: '2-1-2>2-2-1',
+ from: '2-1-2',
+ to: '2-2-1',
+ parent: '2'
+ }, {
+ id: '2-1-3>2-1-4',
+ from: '2-1-3',
+ to: '2-1-4',
+ parent: '2'
+ }, {
+ id: '2-3',
+ from: '2',
+ to: '3'
+ }]);
+ return
+
;
+}`,...(V=(Q=y.parameters)==null?void 0:Q.docs)==null?void 0:V.source}}};const ce=["NodeOnlyDrag","PortOnlyDrag","MultiPortOnlyDrag","AllDrag","NodeRearranging","NodeRearrangingUpsert","NodePortRearranging","NestedNodeRearranging"];export{N as AllDrag,x as MultiPortOnlyDrag,y as NestedNodeRearranging,c as NodeOnlyDrag,v as NodePortRearranging,k as NodeRearranging,h as NodeRearrangingUpsert,u as PortOnlyDrag,ce as __namedExportsOrder,fe as default};
diff --git a/assets/Edge.stories-f1fcfb62.js b/assets/Edge.stories-f1fcfb62.js
new file mode 100644
index 0000000..9faf9c4
--- /dev/null
+++ b/assets/Edge.stories-f1fcfb62.js
@@ -0,0 +1,265 @@
+import{j as o}from"./jsx-runtime-9c4ae004.js";import{r as i}from"./index-1b03fe98.js";import{C as r,N as h,E as u,M as Z,a as ee,I as oe,L as te,P as ne,R as se,A as C}from"./Icon-046b6023.js";import"./IntersectionQuery-1c2e7c35.js";import{u as X,r as Y}from"./crudHelpers-031fd461.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const ue={title:"Demos/Edges",component:r,subcomponents:{Node:h,Edge:u,MarkerArrow:Z,Arrow:ee,Icon:oe,Label:te,Port:ne,Remove:se,Add:C}},m=()=>{const[n,s]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}]),[a,g]=i.useState([{id:"1-2",from:"1",to:"2"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:n,edges:a,edge:o.jsx(u,{add:o.jsx(C,{hidden:!1}),onAdd:(l,c)=>{const e=`node-${Math.random()}`,d=X(n,a,c,{id:e,text:e});s(d.nodes),g(d.edges)}}),onLayoutChange:l=>console.log("Layout",l)})})},v=()=>{const[n,s]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}]),[a,g]=i.useState([{id:"1-2",from:"1",to:"2"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:n,edges:a,edge:o.jsx(u,{add:o.jsx(C,{hidden:!1}),upsertable:!1,onAdd:(l,c)=>{const e=`node-${Math.random()}`,d=X(n,a,c,{id:e,text:e});s(d.nodes),g(d.edges)}}),onLayoutChange:l=>console.log("Layout",l)})})},p=()=>{const[n]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}]),[s]=i.useState([{id:"1-2",from:"1",to:"2"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:n,edges:s,edge:o.jsx(u,{selectable:!1}),onLayoutChange:a=>console.log("Layout",a)})})},N=()=>{const[n,s]=i.useState(["1","1-2"]),[a,g]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}]),[l,c]=i.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:a,edges:l,selections:n,node:o.jsx(h,{onClick:(e,t)=>{console.log("Selecting Node",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Node",e,t);const d=Y(a,l,t);c(d.edges),g(d.nodes),s([])}}),edge:o.jsx(u,{onClick:(e,t)=>{console.log("Selecting Edge",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Edge",e,t),c(l.filter(d=>d.id!==t.id)),s([])}}),onCanvasClick:e=>{console.log("Canvas Clicked",e),s([])},onLayoutChange:e=>console.log("Layout",e)})})},x=()=>{const[n,s]=i.useState(["1-2"]),[a,g]=i.useState([{id:"1",text:"Node 1"},{id:"2",text:"Node 2"},{id:"3",text:"Node 3"}]),[l,c]=i.useState([{id:"1-2",from:"1",to:"2"},{id:"2-3",from:"2",to:"3"}]);return o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:a,edges:l,selections:n,node:o.jsx(h,{removable:!1,onClick:(e,t)=>{console.log("Selecting Node",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Node",e,t);const d=Y(a,l,t);c(d.edges),g(d.nodes),s([])}}),edge:o.jsx(u,{removable:!1,onClick:(e,t)=>{console.log("Selecting Edge",e,t),s([t.id])},onRemove:(e,t)=>{console.log("Removing Edge",e,t),c(l.filter(d=>d.id!==t.id)),s([])}}),onCanvasClick:e=>{console.log("Canvas Clicked",e),s([])},onLayoutChange:e=>console.log("Layout",e)})})},y=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{arrow:null,nodes:[{id:"1",text:"1"},{id:"2",text:"2"},{id:"3",text:"3"}],edges:[{id:"1-2",from:"1",to:"2",selectionDisabled:!0},{id:"2-3",from:"2",to:"3",disabled:!0},{id:"1-3",from:"1",to:"3"}],onLayoutChange:n=>console.log("Layout",n)})}),b=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{arrow:null,nodes:[{id:"1",text:"1"},{id:"2",text:"2"}],edges:[{id:"1-2",from:"1",to:"2"}],onLayoutChange:n=>console.log("Layout",n)})}),f=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[],onLayoutChange:n=>console.log("Layout",n)})}),S=()=>o.jsx("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:o.jsx(r,{nodes:[{id:"1",text:"Node 1"},{id:"2",text:"Node 2"}],edges:[{id:"1-2",from:"1",to:"2",text:"Label 1-2"}],onLayoutChange:n=>console.log("Layout",n)})});var L,E,j;m.parameters={...m.parameters,docs:{...(L=m.parameters)==null?void 0:L.docs,source:{originalSource:`() => {
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: 'Node 1'
+ }, {
+ id: '2',
+ text: 'Node 2'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }]);
+ return
+ } onAdd={(event, edge) => {
+ const id = \`node-\${Math.random()}\`;
+ const newNode = {
+ id,
+ text: id
+ };
+ const results = upsertNode(nodes, edges, edge, newNode);
+ setNodes(results.nodes);
+ setEdges(results.edges);
+ }} />} onLayoutChange={layout => console.log('Layout', layout)} />
+
;
+}`,...(j=(E=m.parameters)==null?void 0:E.docs)==null?void 0:j.source}}};var R,k,A;v.parameters={...v.parameters,docs:{...(R=v.parameters)==null?void 0:R.docs,source:{originalSource:`() => {
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: 'Node 1'
+ }, {
+ id: '2',
+ text: 'Node 2'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }]);
+ return
+ } upsertable={false} onAdd={(event, edge) => {
+ const id = \`node-\${Math.random()}\`;
+ const newNode = {
+ id,
+ text: id
+ };
+ const results = upsertNode(nodes, edges, edge, newNode);
+ setNodes(results.nodes);
+ setEdges(results.edges);
+ }} />} onLayoutChange={layout => console.log('Layout', layout)} />
+
;
+}`,...(A=(k=v.parameters)==null?void 0:k.docs)==null?void 0:A.source}}};var w,D,M;p.parameters={...p.parameters,docs:{...(w=p.parameters)==null?void 0:w.docs,source:{originalSource:`() => {
+ const [nodes] = useState([{
+ id: '1',
+ text: 'Node 1'
+ }, {
+ id: '2',
+ text: 'Node 2'
+ }]);
+ const [edges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }]);
+ return
+ } onLayoutChange={layout => console.log('Layout', layout)} />
+
;
+}`,...(M=(D=p.parameters)==null?void 0:D.docs)==null?void 0:M.source}}};var U,$,_;N.parameters={...N.parameters,docs:{...(U=N.parameters)==null?void 0:U.docs,source:{originalSource:`() => {
+ const [selections, setSelections] = useState(['1', '1-2']);
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: 'Node 1'
+ }, {
+ id: '2',
+ text: 'Node 2'
+ }, {
+ id: '3',
+ text: 'Node 3'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }, {
+ id: '2-3',
+ from: '2',
+ to: '3'
+ }]);
+ return
+
;
+}`,...(_=($=N.parameters)==null?void 0:$.docs)==null?void 0:_.source}}};var I,P,O;x.parameters={...x.parameters,docs:{...(I=x.parameters)==null?void 0:I.docs,source:{originalSource:`() => {
+ const [selections, setSelections] = useState(['1-2']);
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: 'Node 1'
+ }, {
+ id: '2',
+ text: 'Node 2'
+ }, {
+ id: '3',
+ text: 'Node 3'
+ }]);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }, {
+ id: '2-3',
+ from: '2',
+ to: '3'
+ }]);
+ return
+
;
+}`,...(O=(P=x.parameters)==null?void 0:P.docs)==null?void 0:O.source}}};var q,z,B;y.parameters={...y.parameters,docs:{...(q=y.parameters)==null?void 0:q.docs,source:{originalSource:`() =>
+
`,...(B=(z=y.parameters)==null?void 0:z.docs)==null?void 0:B.source}}};var F,G,H;b.parameters={...b.parameters,docs:{...(F=b.parameters)==null?void 0:F.docs,source:{originalSource:`() =>
+
`,...(H=(G=b.parameters)==null?void 0:G.docs)==null?void 0:H.source}}};var J,K,Q;f.parameters={...f.parameters,docs:{...(J=f.parameters)==null?void 0:J.docs,source:{originalSource:`() =>
+
`,...(Q=(K=f.parameters)==null?void 0:K.docs)==null?void 0:Q.source}}};var T,V,W;S.parameters={...S.parameters,docs:{...(T=S.parameters)==null?void 0:T.docs,source:{originalSource:`() =>
+
`,...(W=(V=S.parameters)==null?void 0:V.docs)==null?void 0:W.source}}};const me=["Adding","NotUpsertable","NotSelectable","Removeable","NotRemoveable","Disabled","NoArrows","NoEdges","Labels"];export{m as Adding,y as Disabled,S as Labels,b as NoArrows,f as NoEdges,x as NotRemoveable,p as NotSelectable,v as NotUpsertable,N as Removeable,me as __namedExportsOrder,ue as default};
diff --git a/assets/Editor.stories-3526f8b0.js b/assets/Editor.stories-3526f8b0.js
new file mode 100644
index 0000000..bfc7063
--- /dev/null
+++ b/assets/Editor.stories-3526f8b0.js
@@ -0,0 +1,185 @@
+import{j as n}from"./jsx-runtime-9c4ae004.js";import{r as o}from"./index-1b03fe98.js";import{C as v,N as f,E as y,M as S,a as j,I as C,L as M,P as A,R as L,A as I,m as d,c as P}from"./Icon-046b6023.js";import"./IntersectionQuery-1c2e7c35.js";import{a as z}from"./crudHelpers-031fd461.js";import{u as B}from"./use-drag-controls-48906540.js";import"./index-6fd5a17b.js";import"./_commonjs-dynamic-modules-302442b1.js";const H={title:"Demos/Editor",component:v,subcomponents:{Node:f,Edge:y,MarkerArrow:S,Arrow:j,Icon:C,Label:M,Port:A,Remove:L,Add:I}},s=()=>{const i=B(),[D,r]=o.useState(null),[a,c]=o.useState(null),[N,l]=o.useState(!1),[g,E]=o.useState([{id:"1-2",from:"1",to:"2"}]),[u,k]=o.useState([{id:"1",text:"1"},{id:"2",text:"2"}]),p=(e,t)=>{console.log("Start of Dragging",e,t),c(t),i.start(e,{snapToCursor:!0})},w=e=>{if(console.log("End of Dragging",e),N){const t=`${a}-${Math.floor(Math.random()*100)+1}`,m=z(u,g,{id:t,text:t},D);k(m.nodes),E(m.edges)}l(!1),c(null),r(null)};return n.jsxs("div",{style:{position:"absolute",top:0,bottom:0,left:0,right:0},children:[n.jsx("style",{children:`
+ .left {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 0;
+ width: 150px;
+ background: #272626;
+ color: white;
+ padding: 20px;
+ display: flex;
+ }
+ .right {
+ position: absolute;
+ top: 0;
+ bottom: 0;
+ left: 150px;
+ right: 0;
+ }
+ .block {
+ height: 50px;
+ width: 50px;
+ cursor: grab;
+ background: black;
+ margin-right: 10px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ padding: 5px;
+ -webkit-touch-callout: none;
+ -webkit-user-select: none;
+ -khtml-user-select: none;
+ -moz-user-select: none;
+ -ms-user-select: none;
+ user-select: none;
+ flex: 1;
+ }
+ .dragger {
+ z-index: 999;
+ pointer-events: none;
+ user-select: none;
+ cursor: grabbing;
+ height: 70px;
+ width: 150px;
+ }
+ .dragInner {
+ pointer-events: none;
+ margin-left: 80px;
+ border-radius: 5px;
+ background: black;
+ border: solid 1px #00c5be;
+ height: 40px;
+ width: 40px;
+ color: white;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
+ `}),n.jsxs("div",{className:"left",children:[n.jsx(d.div,{className:"block",onMouseDown:e=>p(e,"1"),children:"Block 1"}),n.jsx(d.div,{className:"block",onMouseDown:e=>p(e,"2"),children:"Block 2"})]}),n.jsx("div",{className:"right",children:n.jsx(v,{nodes:u,edges:g,node:n.jsx(f,{onEnter:(e,t)=>r(t),onLeave:(e,t)=>r(null)}),onMouseEnter:()=>l(!0),onMouseLeave:()=>l(!1),onLayoutChange:e=>console.log("Layout",e)})}),n.jsx(P,{children:n.jsx(d.div,{drag:!0,dragControls:i,className:"dragger",onDragEnd:w,children:a&&n.jsx("div",{className:"dragInner",children:a})})})]})};var x,b,h;s.parameters={...s.parameters,docs:{...(x=s.parameters)==null?void 0:x.docs,source:{originalSource:`() => {
+ const dragControls = useDragControls();
+ const [enteredNode, setEnteredNode] = useState(null);
+ const [activeDrag, setActiveDrag] = useState(null);
+ const [droppable, setDroppable] = useState(false);
+ const [edges, setEdges] = useState([{
+ id: '1-2',
+ from: '1',
+ to: '2'
+ }]);
+ const [nodes, setNodes] = useState([{
+ id: '1',
+ text: '1'
+ }, {
+ id: '2',
+ text: '2'
+ }]);
+ const onDragStart = (event, data) => {
+ console.log('Start of Dragging', event, data);
+ setActiveDrag(data);
+ dragControls.start(event, {
+ snapToCursor: true
+ });
+ };
+ const onDragEnd = event => {
+ console.log('End of Dragging', event);
+ if (droppable) {
+ const id = \`\${activeDrag}-\${Math.floor(Math.random() * (100 - 1 + 1)) + 1}\`;
+ const result = addNodeAndEdge(nodes, edges, {
+ id,
+ text: id
+ }, enteredNode);
+ setNodes(result.nodes);
+ setEdges(result.edges);
+ }
+ setDroppable(false);
+ setActiveDrag(null);
+ setEnteredNode(null);
+ };
+ return
+
+
+ onDragStart(event, '1')}>
+ Block 1
+
+ onDragStart(event, '2')}>
+ Block 2
+
+
+
+
+
+
+ {activeDrag &&
+ {activeDrag}
+
}
+
+
+
;
+}`,...(h=(b=s.parameters)==null?void 0:b.docs)==null?void 0:h.source}}};const J=["Simple"];export{s as Simple,J as __namedExportsOrder,H as default};
diff --git a/assets/Extending-4e6c26a4.js b/assets/Extending-4e6c26a4.js
new file mode 100644
index 0000000..5d98a29
--- /dev/null
+++ b/assets/Extending-4e6c26a4.js
@@ -0,0 +1,170 @@
+import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as d}from"./index-2ef8b458.js";import{M as s}from"./index-8e905c69.js";import"./index-1b03fe98.js";import"./iframe-ace6960f.js";import"../sb-preview/runtime.js";import"./chunk-EIRT5I3Z-f0a10e90.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";function t(o){const n=Object.assign({h1:"h1",p:"p",strong:"strong",code:"code",blockquote:"blockquote",em:"em",a:"a",pre:"pre"},d(),o.components);return e.jsxs(e.Fragment,{children:[e.jsx(s,{title:"Docs/Utils/Extending"}),`
+`,e.jsx(n.h1,{id:"extended-utils",children:"Extended utils"}),`
+`,e.jsx(n.p,{children:"The basic utils will not cover all use-cases."}),`
+`,e.jsxs(n.p,{children:["Below are a few examples of advanced use-cases ",e.jsxs(n.strong,{children:["with first-class support for connecting nodes through their ",e.jsx(n.code,{children:"ports"})]}),", built on top of the default built-in utils."]}),`
+`,e.jsxs(n.blockquote,{children:[`
+`,e.jsx(n.p,{children:e.jsxs(n.em,{children:["Courtesy of ",e.jsx(n.a,{href:"https://github.com/Vadorequest/poc-nextjs-reaflow/blob/91275644e9c3d0ed8cf7c2c80d49ef526b5e5069/src/utils/nodes.ts",target:"_blank",rel:"nofollow noopener noreferrer",children:"Vadorequest/poc-nextjs-reaflow"}),"."]})}),`
+`]}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-tsx",children:`import BaseEdgeData from '../types/BaseEdgeData';
+import BaseNodeData from '../types/BaseNodeData';
+import BasePortData from '../types/BasePortData';
+import { CanvasDataset } from '../types/CanvasDataset';
+import { createEdge } from './edges';
+import {
+ getDefaultFromPort,
+ getDefaultToPort,
+} from './ports';
+
+/**
+ * Add a node and optional edge, and automatically link their ports.
+ *
+ * Automatically connects the fromNode (left node) using its EAST port (right side) to the newNode (right node) using it's WEST port (left side).
+ *
+ * Similar to reaflow.addNodeAndEdge utility.
+ */
+export function addNodeAndEdgeThroughPorts(
+ nodes: BaseNodeData[],
+ edges: BaseEdgeData[],
+ newNode: BaseNodeData,
+ fromNode?: BaseNodeData,
+ toNode?: BaseNodeData,
+ fromPort?: BasePortData,
+ toPort?: BasePortData,
+): CanvasDataset {
+ // The default destination node is the newly created node
+ toNode = toNode || newNode;
+
+ const newEdge: BaseEdgeData = createEdge(
+ fromNode,
+ toNode,
+ getDefaultFromPort(fromNode, fromPort),
+ getDefaultToPort(toNode, toPort),
+ );
+
+ return {
+ nodes: [...nodes, newNode],
+ edges: [
+ ...edges,
+ ...(fromNode ?
+ [
+ newEdge,
+ ]
+ : []),
+ ],
+ };
+}
+
+/**
+ * Helper function for upserting a node in a edge (split the edge in 2 and put the node in between), and automatically link their ports.
+ *
+ * Automatically connects the left edge to the newNode using it's WEST port (left side).
+ * Automatically connects the right edge to the newNode using it's EAST port (right side).
+ *
+ * Similar to reaflow.upsertNode utility.
+ */
+export function upsertNodeThroughPorts(
+ nodes: BaseNodeData[],
+ edges: BaseEdgeData[],
+ edge: BaseEdgeData,
+ newNode: BaseNodeData,
+): CanvasDataset {
+ const oldEdgeIndex = edges.findIndex(e => e.id === edge.id);
+ const edgeBeforeNewNode = {
+ ...edge,
+ id: \`\${edge.from}-\${newNode.id}\`,
+ to: newNode.id,
+ };
+ const edgeAfterNewNode = {
+ ...edge,
+ id: \`\${newNode.id}-\${edge.to}\`,
+ from: newNode.id,
+ };
+
+ if (edge.fromPort && edge.toPort) {
+ const fromLeftNodeToWestPort: BasePortData | undefined = newNode?.ports?.find((port: BasePortData) => port?.side === 'WEST');
+ const fromRightNodeToEastPort: BasePortData | undefined = newNode?.ports?.find((port: BasePortData) => port?.side === 'EAST');
+
+ edgeBeforeNewNode.fromPort = edge.fromPort;
+ edgeBeforeNewNode.toPort = fromLeftNodeToWestPort?.id || \`\${newNode.id}-to\`;
+
+ edgeAfterNewNode.fromPort = fromRightNodeToEastPort?.id || \`\${newNode.id}-from\`;
+ edgeAfterNewNode.toPort = edge.toPort;
+ }
+
+ edges.splice(oldEdgeIndex, 1, edgeBeforeNewNode, edgeAfterNewNode);
+
+ return {
+ nodes: [...nodes, newNode],
+ edges: [...edges],
+ };
+}
+
+/**
+ * Removes a node between two edges and merges the two edges into one, and automatically link their ports.
+ *
+ * Similar to reaflow.removeAndUpsertNodes utility.
+ */
+export function removeAndUpsertNodesThroughPorts(
+ nodes: BaseNodeData[],
+ edges: BaseEdgeData[],
+ removeNodes: BaseNodeData | BaseNodeData[],
+ onNodeLinkCheck?: (
+ newNodes: BaseNodeData[],
+ newEdges: BaseEdgeData[],
+ from: BaseNodeData,
+ to: BaseNodeData,
+ port?: BasePortData,
+ ) => undefined | boolean,
+): CanvasDataset {
+ if (!Array.isArray(removeNodes)) {
+ removeNodes = [removeNodes];
+ }
+
+ const nodeIds = removeNodes.map((n) => n.id);
+ const newNodes = nodes.filter((n) => !nodeIds.includes(n.id));
+ const newEdges = edges.filter(
+ (e: BaseEdgeData) => !nodeIds.includes(e?.from as string) && !nodeIds.includes(e?.to as string),
+ );
+
+ for (const nodeId of nodeIds) {
+ const sourceEdges = edges.filter((e) => e.to === nodeId);
+ const targetEdges = edges.filter((e) => e.from === nodeId);
+
+ for (const sourceEdge of sourceEdges) {
+ for (const targetEdge of targetEdges) {
+ const sourceNode = nodes.find((n) => n.id === sourceEdge.from);
+ const targetNode = nodes.find((n) => n.id === targetEdge.to);
+
+ if (sourceNode && targetNode) {
+ const canLink = onNodeLinkCheck?.(
+ newNodes,
+ newEdges,
+ sourceNode,
+ targetNode,
+ );
+
+ if (canLink === undefined || canLink) {
+ const fromPort: BasePortData | undefined = sourceNode?.ports?.find((port: BasePortData) => port?.side === 'EAST');
+ const toPort: BasePortData | undefined = targetNode?.ports?.find((port: BasePortData) => port?.side === 'WEST');
+
+ newEdges.push({
+ id: \`\${sourceNode.id}-\${targetNode.id}\`,
+ from: sourceNode.id,
+ to: targetNode.id,
+ parent: sourceNode?.parent,
+ fromPort: fromPort?.id,
+ toPort: toPort?.id,
+ });
+ }
+ }
+ }
+ }
+ }
+
+ return {
+ edges: newEdges,
+ nodes: newNodes,
+ };
+}
+
+`})})]})}function w(o={}){const{wrapper:n}=Object.assign({},d(),o.components);return n?e.jsx(n,Object.assign({},o,{children:e.jsx(t,o)})):t(o)}export{w as default};
diff --git a/assets/Graph-6e67b821.js b/assets/Graph-6e67b821.js
new file mode 100644
index 0000000..47607a7
--- /dev/null
+++ b/assets/Graph-6e67b821.js
@@ -0,0 +1,72 @@
+import{j as e}from"./jsx-runtime-9c4ae004.js";import"./blocks-2646952b.js";import{u as a}from"./index-2ef8b458.js";import{M as d}from"./index-8e905c69.js";import"./index-1b03fe98.js";import"./iframe-ace6960f.js";import"../sb-preview/runtime.js";import"./chunk-EIRT5I3Z-f0a10e90.js";import"./_commonjs-dynamic-modules-302442b1.js";import"./index-6fd5a17b.js";import"./index-d7bb098e.js";import"./index-356e4a49.js";function o(s){const n=Object.assign({h1:"h1",h2:"h2",p:"p",code:"code",pre:"pre"},a(),s.components);return e.jsxs(e.Fragment,{children:[e.jsx(d,{title:"Docs/Utils/Graph"}),`
+`,e.jsx(n.h1,{id:"graph-utils",children:"Graph Utils"}),`
+`,e.jsx(n.h2,{id:"detecting-circulars",children:"Detecting Circulars"}),`
+`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"detectCircular"}),` function helps you determine if
+the source node will create a circular link if connected
+to the target node.`]}),`
+`,e.jsx(n.p,{children:"The signature for this looks like:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`detectCircular(
+ nodes: NodeData[],
+ edges: EdgeData[],
+ fromNode: NodeData,
+ toNode: NodeData
+) => boolean;
+`})}),`
+`,e.jsx(n.p,{children:"Below is an example usage:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { detectCircular } from 'reaflow';
+
+const has = detectCircular(nodes, edges, fromNode, toNode);
+if (!has) {
+ // Do something
+}
+`})}),`
+`,e.jsx(n.h2,{id:"parent-node-traversal",children:"Parent Node Traversal"}),`
+`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"getParentsForNodeId"}),` function helps you find all the
+parent nodes for a given node id.`]}),`
+`,e.jsx(n.p,{children:"The signature for this looks like:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`getParentsForNodeId(
+ nodes: NodeData[],
+ edges: EdgeData[],
+ nodeId: string
+) => NodeData[];
+`})}),`
+`,e.jsx(n.p,{children:"Below is an example usage:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { getParentsForNodeId } from 'reaflow';
+
+const nodes = getParentsForNodeId(nodes, edges, node.id);
+`})}),`
+`,e.jsx(n.h2,{id:"has-link",children:"Has Link"}),`
+`,e.jsxs(n.p,{children:["The ",e.jsx(n.code,{children:"hasLink"}),` function helps you determine if
+the source node already has a link to the target node.`]}),`
+`,e.jsx(n.p,{children:"The signature for this looks like:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`hasLink(
+ edges: EdgeData[],
+ fromNode: NodeData,
+ toNode: NodeData
+) => boolean;
+`})}),`
+`,e.jsx(n.p,{children:"Below is an example usage:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { hasLink } from 'reaflow';
+
+const has = hasLink(edges, fromNode, toNode);
+if (!has) {
+ // Do something
+}
+`})}),`
+`,e.jsx(n.h2,{id:"get-edges-given-a-node",children:"Get Edges Given a Node"}),`
+`,e.jsxs(n.p,{children:["Similar to ",e.jsx(n.code,{children:"hasLink"})," the ",e.jsx(n.code,{children:"getEdgesByNode"}),` function will
+return all the edges given a node.`]}),`
+`,e.jsx(n.p,{children:"The signature looks like this:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`getEdgesByNode(
+ edges: EdgeData[],
+ node: NodeData,
+) => { all: EdgeData[], to: EdgeData[], from: EdgeData[] }
+`})}),`
+`,e.jsx(n.p,{children:"Below is an example usage:"}),`
+`,e.jsx(n.pre,{children:e.jsx(n.code,{className:"language-js",children:`import { getEdgesByNode } from 'reaflow';
+
+const { all, to, from } = getEdgesByNode(edges, node);
+if (!all.length) {
+ // Do something
+}
+`})})]})}function f(s={}){const{wrapper:n}=Object.assign({},a(),s.components);return n?e.jsx(n,Object.assign({},s,{children:e.jsx(o,s)})):o(s)}export{f as default};
diff --git a/assets/Icon-046b6023.js b/assets/Icon-046b6023.js
new file mode 100644
index 0000000..84c3bfd
--- /dev/null
+++ b/assets/Icon-046b6023.js
@@ -0,0 +1,71 @@
+import{j as xt}from"./jsx-runtime-9c4ae004.js";import{r as Ce,R as wG,g as xG,c as Icn}from"./index-1b03fe98.js";import{r as $Dn}from"./index-6fd5a17b.js";import{c as cG}from"./_commonjs-dynamic-modules-302442b1.js";if(typeof window<"u"){var Dcn={get passive(){}};window.addEventListener("testPassive",null,Dcn),window.removeEventListener("testPassive",null,Dcn)}const osn=Ce.createContext({transformPagePoint:d=>d,isStatic:!1,reducedMotion:"never"}),OG=Ce.createContext({}),IG=Ce.createContext(null),DG=typeof document<"u",LG=DG?Ce.useLayoutEffect:Ce.useEffect,fsn=Ce.createContext({strict:!1}),X0e=d=>d.replace(/([a-z])([A-Z])/g,"$1-$2").toLowerCase(),FDn="framerAppearId",lsn="data-"+X0e(FDn),asn={skipAnimations:!1,useManualTiming:!1};class Lcn{constructor(){this.order=[],this.scheduled=new Set}add(b){if(!this.scheduled.has(b))return this.scheduled.add(b),this.order.push(b),!0}remove(b){const m=this.order.indexOf(b);m!==-1&&(this.order.splice(m,1),this.scheduled.delete(b))}clear(){this.order.length=0,this.scheduled.clear()}}function NDn(d){let b=new Lcn,m=new Lcn,v=0,E=!1,M=!1;const k=new WeakSet,L={schedule:(N,B=!1,H=!1)=>{const G=H&&E,Y=G?b:m;return B&&k.add(N),Y.add(N)&&G&&E&&(v=b.order.length),N},cancel:N=>{m.remove(N),k.delete(N)},process:N=>{if(E){M=!0;return}if(E=!0,[b,m]=[m,b],m.clear(),v=b.order.length,v)for(let B=0;B(G[Y]=NDn(()=>m=!0),G),{}),k=G=>{M[G].process(E)},L=()=>{const G=performance.now();m=!1,E.delta=v?1e3/60:Math.max(Math.min(G-E.timestamp,_Dn),1),E.timestamp=G,E.isProcessing=!0,uG.forEach(k),E.isProcessing=!1,m&&b&&(v=!1,d(L))},N=()=>{m=!0,v=!0,E.isProcessing||d(L)};return{schedule:uG.reduce((G,Y)=>{const ne=M[Y];return G[Y]=(J,Re=!1,cn=!1)=>(m||N(),ne.schedule(J,Re,cn)),G},{}),cancel:G=>uG.forEach(Y=>M[Y].cancel(G)),state:E,steps:M}}const{schedule:Y0e,cancel:SKn}=hsn(queueMicrotask,!1);function BDn(d,b,m,v){const{visualElement:E}=Ce.useContext(OG),M=Ce.useContext(fsn),k=Ce.useContext(IG),L=Ce.useContext(osn).reducedMotion,N=Ce.useRef();v=v||M.renderer,!N.current&&v&&(N.current=v(d,{visualState:b,parent:E,props:m,presenceContext:k,blockInitialAnimation:k?k.initial===!1:!1,reducedMotionConfig:L}));const B=N.current;Ce.useInsertionEffect(()=>{B&&B.update(m,k)});const H=Ce.useRef(!!(m[lsn]&&!window.HandoffComplete));return LG(()=>{B&&(Y0e.postRender(B.render),H.current&&B.animationState&&B.animationState.animateChanges())}),Ce.useEffect(()=>{B&&(B.updateFeatures(),!H.current&&B.animationState&&B.animationState.animateChanges(),H.current&&(H.current=!1,window.HandoffComplete=!0))}),B}function yE(d){return d&&typeof d=="object"&&Object.prototype.hasOwnProperty.call(d,"current")}function RDn(d,b,m){return Ce.useCallback(v=>{v&&d.mount&&d.mount(v),b&&(v?b.mount(v):b.unmount()),m&&(typeof m=="function"?m(v):yE(m)&&(m.current=v))},[b])}function mI(d){return typeof d=="string"||Array.isArray(d)}function $G(d){return d!==null&&typeof d=="object"&&typeof d.start=="function"}const Q0e=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],J0e=["initial",...Q0e];function FG(d){return $G(d.animate)||J0e.some(b=>mI(d[b]))}function dsn(d){return!!(FG(d)||d.variants)}function KDn(d,b){if(FG(d)){const{initial:m,animate:v}=d;return{initial:m===!1||mI(m)?m:void 0,animate:mI(v)?v:void 0}}return d.inherit!==!1?b:{}}function qDn(d){const{initial:b,animate:m}=KDn(d,Ce.useContext(OG));return Ce.useMemo(()=>({initial:b,animate:m}),[$cn(b),$cn(m)])}function $cn(d){return Array.isArray(d)?d.join(" "):d}const Fcn={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},vI={};for(const d in Fcn)vI[d]={isEnabled:b=>Fcn[d].some(m=>!!b[m])};function HDn(d){for(const b in d)vI[b]={...vI[b],...d[b]}}const Z0e=Ce.createContext({}),bsn=Ce.createContext({}),VDn=Symbol.for("motionComponentSymbol");function GDn({preloadedFeatures:d,createVisualElement:b,useRender:m,useVisualState:v,Component:E}){d&&HDn(d);function M(L,N){let B;const H={...Ce.useContext(osn),...L,layoutId:zDn(L)},{isStatic:G}=H,Y=qDn(L),ne=v(L,G);if(!G&&DG){Y.visualElement=BDn(E,ne,H,b);const J=Ce.useContext(bsn),Re=Ce.useContext(fsn).strict;Y.visualElement&&(B=Y.visualElement.loadFeatures(H,Re,d,J))}return Ce.createElement(OG.Provider,{value:Y},B&&Y.visualElement?Ce.createElement(B,{visualElement:Y.visualElement,...H}):null,m(E,L,RDn(ne,Y.visualElement,N),ne,G,Y.visualElement))}const k=Ce.forwardRef(M);return k[VDn]=E,k}function zDn({layoutId:d}){const b=Ce.useContext(Z0e).id;return b&&d!==void 0?b+"-"+d:d}function WDn(d){function b(v,E={}){return GDn(d(v,E))}if(typeof Proxy>"u")return b;const m=new Map;return new Proxy(b,{get:(v,E)=>(m.has(E)||m.set(E,b(E)),m.get(E))})}const UDn=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function ebe(d){return typeof d!="string"||d.includes("-")?!1:!!(UDn.indexOf(d)>-1||/[A-Z]/.test(d))}const gG={};function XDn(d){Object.assign(gG,d)}const EI=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],X9=new Set(EI);function wsn(d,{layout:b,layoutId:m}){return X9.has(d)||d.startsWith("origin")||(b||m!==void 0)&&(!!gG[d]||d==="opacity")}const F1=d=>!!(d&&d.getVelocity),YDn={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},QDn=EI.length;function JDn(d,{enableHardwareAcceleration:b=!0,allowTransformNone:m=!0},v,E){let M="";for(let k=0;kb=>typeof b=="string"&&b.startsWith(d),psn=gsn("--"),ZDn=gsn("var(--"),pG=d=>ZDn(d)&&eLn.test(d),eLn=/var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\)$/i,nLn=(d,b)=>b&&typeof d=="number"?b.transform(d):d,R4=(d,b,m)=>m>b?b:mtypeof d=="number",parse:parseFloat,transform:d=>d},bI={...DE,transform:d=>R4(0,1,d)},sG={...DE,default:1},wI=d=>Math.round(d*1e5)/1e5,nbe=/(-)?([\d]*\.?[\d])+/g,tLn=/(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))/gi,iLn=/^(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))$/i;function TI(d){return typeof d=="string"}const CI=d=>({test:b=>TI(b)&&b.endsWith(d)&&b.split(" ").length===1,parse:parseFloat,transform:b=>`${b}${d}`}),F4=CI("deg"),Yp=CI("%"),Qi=CI("px"),rLn=CI("vh"),cLn=CI("vw"),Ncn={...Yp,parse:d=>Yp.parse(d)/100,transform:d=>Yp.transform(d*100)},_cn={...DE,transform:Math.round},msn={borderWidth:Qi,borderTopWidth:Qi,borderRightWidth:Qi,borderBottomWidth:Qi,borderLeftWidth:Qi,borderRadius:Qi,radius:Qi,borderTopLeftRadius:Qi,borderTopRightRadius:Qi,borderBottomRightRadius:Qi,borderBottomLeftRadius:Qi,width:Qi,maxWidth:Qi,height:Qi,maxHeight:Qi,size:Qi,top:Qi,right:Qi,bottom:Qi,left:Qi,padding:Qi,paddingTop:Qi,paddingRight:Qi,paddingBottom:Qi,paddingLeft:Qi,margin:Qi,marginTop:Qi,marginRight:Qi,marginBottom:Qi,marginLeft:Qi,rotate:F4,rotateX:F4,rotateY:F4,rotateZ:F4,scale:sG,scaleX:sG,scaleY:sG,scaleZ:sG,skew:F4,skewX:F4,skewY:F4,distance:Qi,translateX:Qi,translateY:Qi,translateZ:Qi,x:Qi,y:Qi,z:Qi,perspective:Qi,transformPerspective:Qi,opacity:bI,originX:Ncn,originY:Ncn,originZ:Qi,zIndex:_cn,fillOpacity:bI,strokeOpacity:bI,numOctaves:_cn};function tbe(d,b,m,v){const{style:E,vars:M,transform:k,transformOrigin:L}=d;let N=!1,B=!1,H=!0;for(const G in b){const Y=b[G];if(psn(G)){M[G]=Y;continue}const ne=msn[G],J=nLn(Y,ne);if(X9.has(G)){if(N=!0,k[G]=J,!H)continue;Y!==(ne.default||0)&&(H=!1)}else G.startsWith("origin")?(B=!0,L[G]=J):E[G]=J}if(b.transform||(N||v?E.transform=JDn(d.transform,m,H,v):E.transform&&(E.transform="none")),B){const{originX:G="50%",originY:Y="50%",originZ:ne=0}=L;E.transformOrigin=`${G} ${Y} ${ne}`}}const ibe=()=>({style:{},transform:{},transformOrigin:{},vars:{}});function vsn(d,b,m){for(const v in b)!F1(b[v])&&!wsn(v,m)&&(d[v]=b[v])}function uLn({transformTemplate:d},b,m){return Ce.useMemo(()=>{const v=ibe();return tbe(v,b,{enableHardwareAcceleration:!m},d),Object.assign({},v.vars,v.style)},[b])}function sLn(d,b,m){const v=d.style||{},E={};return vsn(E,v,d),Object.assign(E,uLn(d,b,m)),E}function oLn(d,b,m){const v={},E=sLn(d,b,m);return d.drag&&d.dragListener!==!1&&(v.draggable=!1,E.userSelect=E.WebkitUserSelect=E.WebkitTouchCallout="none",E.touchAction=d.drag===!0?"none":`pan-${d.drag==="x"?"y":"x"}`),d.tabIndex===void 0&&(d.onTap||d.onTapStart||d.whileTap)&&(v.tabIndex=0),v.style=E,v}const fLn=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function mG(d){return d.startsWith("while")||d.startsWith("drag")&&d!=="draggable"||d.startsWith("layout")||d.startsWith("onTap")||d.startsWith("onPan")||d.startsWith("onLayout")||fLn.has(d)}let ysn=d=>!mG(d);function lLn(d){d&&(ysn=b=>b.startsWith("on")?!mG(b):d(b))}try{lLn(require("@emotion/is-prop-valid").default)}catch{}function aLn(d,b,m){const v={};for(const E in d)E==="values"&&typeof d.values=="object"||(ysn(E)||m===!0&&mG(E)||!b&&!mG(E)||d.draggable&&E.startsWith("onDrag"))&&(v[E]=d[E]);return v}function Bcn(d,b,m){return typeof d=="string"?d:Qi.transform(b+m*d)}function hLn(d,b,m){const v=Bcn(b,d.x,d.width),E=Bcn(m,d.y,d.height);return`${v} ${E}`}const dLn={offset:"stroke-dashoffset",array:"stroke-dasharray"},bLn={offset:"strokeDashoffset",array:"strokeDasharray"};function wLn(d,b,m=1,v=0,E=!0){d.pathLength=1;const M=E?dLn:bLn;d[M.offset]=Qi.transform(-v);const k=Qi.transform(b),L=Qi.transform(m);d[M.array]=`${k} ${L}`}function rbe(d,{attrX:b,attrY:m,attrScale:v,originX:E,originY:M,pathLength:k,pathSpacing:L=1,pathOffset:N=0,...B},H,G,Y){if(tbe(d,B,H,Y),G){d.style.viewBox&&(d.attrs.viewBox=d.style.viewBox);return}d.attrs=d.style,d.style={};const{attrs:ne,style:J,dimensions:Re}=d;ne.transform&&(Re&&(J.transform=ne.transform),delete ne.transform),Re&&(E!==void 0||M!==void 0||J.transform)&&(J.transformOrigin=hLn(Re,E!==void 0?E:.5,M!==void 0?M:.5)),b!==void 0&&(ne.x=b),m!==void 0&&(ne.y=m),v!==void 0&&(ne.scale=v),k!==void 0&&wLn(ne,k,L,N,!1)}const ksn=()=>({...ibe(),attrs:{}}),cbe=d=>typeof d=="string"&&d.toLowerCase()==="svg";function gLn(d,b,m,v){const E=Ce.useMemo(()=>{const M=ksn();return rbe(M,b,{enableHardwareAcceleration:!1},cbe(v),d.transformTemplate),{...M.attrs,style:{...M.style}}},[b]);if(d.style){const M={};vsn(M,d.style,d),E.style={...M,...E.style}}return E}function pLn(d=!1){return(m,v,E,{latestValues:M},k)=>{const N=(ebe(m)?gLn:oLn)(v,M,k,m),B=aLn(v,typeof m=="string",d),H=m!==Ce.Fragment?{...B,...N,ref:E}:{},{children:G}=v,Y=Ce.useMemo(()=>F1(G)?G.get():G,[G]);return Ce.createElement(m,{...H,children:Y})}}function jsn(d,{style:b,vars:m},v,E){Object.assign(d.style,b,E&&E.getProjectionStyles(v));for(const M in m)d.style.setProperty(M,m[M])}const Esn=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Tsn(d,b,m,v){jsn(d,b,void 0,v);for(const E in b.attrs)d.setAttribute(Esn.has(E)?E:X0e(E),b.attrs[E])}function ube(d,b){const{style:m}=d,v={};for(const E in m)(F1(m[E])||b.style&&F1(b.style[E])||wsn(E,d))&&(v[E]=m[E]);return v}function Csn(d,b){const m=ube(d,b);for(const v in d)if(F1(d[v])||F1(b[v])){const E=EI.indexOf(v)!==-1?"attr"+v.charAt(0).toUpperCase()+v.substring(1):v;m[E]=d[v]}return m}function sbe(d,b,m,v={},E={}){return typeof b=="function"&&(b=b(m!==void 0?m:d.custom,v,E)),typeof b=="string"&&(b=d.variants&&d.variants[b]),typeof b=="function"&&(b=b(m!==void 0?m:d.custom,v,E)),b}function obe(d){const b=Ce.useRef(null);return b.current===null&&(b.current=d()),b.current}const vG=d=>Array.isArray(d),mLn=d=>!!(d&&typeof d=="object"&&d.mix&&d.toValue),vLn=d=>vG(d)?d[d.length-1]||0:d;function lG(d){const b=F1(d)?d.get():d;return mLn(b)?b.toValue():b}function yLn({scrapeMotionValuesFromProps:d,createRenderState:b,onMount:m},v,E,M){const k={latestValues:kLn(v,E,M,d),renderState:b()};return m&&(k.mount=L=>m(v,L,k)),k}const Ssn=d=>(b,m)=>{const v=Ce.useContext(OG),E=Ce.useContext(IG),M=()=>yLn(d,b,v,E);return m?M():obe(M)};function kLn(d,b,m,v){const E={},M=v(d,{});for(const Y in M)E[Y]=lG(M[Y]);let{initial:k,animate:L}=d;const N=FG(d),B=dsn(d);b&&B&&!N&&d.inherit!==!1&&(k===void 0&&(k=b.initial),L===void 0&&(L=b.animate));let H=m?m.initial===!1:!1;H=H||k===!1;const G=H?L:k;return G&&typeof G!="boolean"&&!$G(G)&&(Array.isArray(G)?G:[G]).forEach(ne=>{const J=sbe(d,ne);if(!J)return;const{transitionEnd:Re,transition:cn,...kn}=J;for(const gn in kn){let Ve=kn[gn];if(Array.isArray(Ve)){const Cn=H?Ve.length-1:0;Ve=Ve[Cn]}Ve!==null&&(E[gn]=Ve)}for(const gn in Re)E[gn]=Re[gn]}),E}const gf=d=>d,{schedule:Ws,cancel:_m,state:ha,steps:i0e}=hsn(typeof requestAnimationFrame<"u"?requestAnimationFrame:gf,!0),jLn={useVisualState:Ssn({scrapeMotionValuesFromProps:Csn,createRenderState:ksn,onMount:(d,b,{renderState:m,latestValues:v})=>{Ws.read(()=>{try{m.dimensions=typeof b.getBBox=="function"?b.getBBox():b.getBoundingClientRect()}catch{m.dimensions={x:0,y:0,width:0,height:0}}}),Ws.render(()=>{rbe(m,v,{enableHardwareAcceleration:!1},cbe(b.tagName),d.transformTemplate),Tsn(b,m)})}})},ELn={useVisualState:Ssn({scrapeMotionValuesFromProps:ube,createRenderState:ibe})};function TLn(d,{forwardMotionProps:b=!1},m,v){return{...ebe(d)?jLn:ELn,preloadedFeatures:m,useRender:pLn(b),createVisualElement:v,Component:d}}function Lm(d,b,m,v={passive:!0}){return d.addEventListener(b,m,v),()=>d.removeEventListener(b,m)}const Msn=d=>d.pointerType==="mouse"?typeof d.button!="number"||d.button<=0:d.isPrimary!==!1;function NG(d,b="page"){return{point:{x:d[b+"X"],y:d[b+"Y"]}}}const CLn=d=>b=>Msn(b)&&d(b,NG(b));function $m(d,b,m,v){return Lm(d,b,CLn(m),v)}const SLn=(d,b)=>m=>b(d(m)),Fm=(...d)=>d.reduce(SLn);function Psn(d){let b=null;return()=>{const m=()=>{b=null};return b===null?(b=d,m):!1}}const Rcn=Psn("dragHorizontal"),Kcn=Psn("dragVertical");function Asn(d){let b=!1;if(d==="y")b=Kcn();else if(d==="x")b=Rcn();else{const m=Rcn(),v=Kcn();m&&v?b=()=>{m(),v()}:(m&&m(),v&&v())}return b}function xsn(){const d=Asn(!0);return d?(d(),!1):!0}class H4{constructor(b){this.isMounted=!1,this.node=b}update(){}}function qcn(d,b){const m="pointer"+(b?"enter":"leave"),v="onHover"+(b?"Start":"End"),E=(M,k)=>{if(M.pointerType==="touch"||xsn())return;const L=d.getProps();d.animationState&&L.whileHover&&d.animationState.setActive("whileHover",b),L[v]&&Ws.update(()=>L[v](M,k))};return $m(d.current,m,E,{passive:!d.getProps()[v]})}class MLn extends H4{mount(){this.unmount=Fm(qcn(this.node,!0),qcn(this.node,!1))}unmount(){}}class PLn extends H4{constructor(){super(...arguments),this.isActive=!1}onFocus(){let b=!1;try{b=this.node.current.matches(":focus-visible")}catch{b=!0}!b||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){!this.isActive||!this.node.animationState||(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Fm(Lm(this.node.current,"focus",()=>this.onFocus()),Lm(this.node.current,"blur",()=>this.onBlur()))}unmount(){}}const Osn=(d,b)=>b?d===b?!0:Osn(d,b.parentElement):!1;function r0e(d,b){if(!b)return;const m=new PointerEvent("pointer"+d);b(m,NG(m))}class ALn extends H4{constructor(){super(...arguments),this.removeStartListeners=gf,this.removeEndListeners=gf,this.removeAccessibleListeners=gf,this.startPointerPress=(b,m)=>{if(this.isPressing)return;this.removeEndListeners();const v=this.node.getProps(),M=$m(window,"pointerup",(L,N)=>{if(!this.checkPressEnd())return;const{onTap:B,onTapCancel:H,globalTapTarget:G}=this.node.getProps();Ws.update(()=>{!G&&!Osn(this.node.current,L.target)?H&&H(L,N):B&&B(L,N)})},{passive:!(v.onTap||v.onPointerUp)}),k=$m(window,"pointercancel",(L,N)=>this.cancelPress(L,N),{passive:!(v.onTapCancel||v.onPointerCancel)});this.removeEndListeners=Fm(M,k),this.startPress(b,m)},this.startAccessiblePress=()=>{const b=M=>{if(M.key!=="Enter"||this.isPressing)return;const k=L=>{L.key!=="Enter"||!this.checkPressEnd()||r0e("up",(N,B)=>{const{onTap:H}=this.node.getProps();H&&Ws.update(()=>H(N,B))})};this.removeEndListeners(),this.removeEndListeners=Lm(this.node.current,"keyup",k),r0e("down",(L,N)=>{this.startPress(L,N)})},m=Lm(this.node.current,"keydown",b),v=()=>{this.isPressing&&r0e("cancel",(M,k)=>this.cancelPress(M,k))},E=Lm(this.node.current,"blur",v);this.removeAccessibleListeners=Fm(m,E)}}startPress(b,m){this.isPressing=!0;const{onTapStart:v,whileTap:E}=this.node.getProps();E&&this.node.animationState&&this.node.animationState.setActive("whileTap",!0),v&&Ws.update(()=>v(b,m))}checkPressEnd(){return this.removeEndListeners(),this.isPressing=!1,this.node.getProps().whileTap&&this.node.animationState&&this.node.animationState.setActive("whileTap",!1),!xsn()}cancelPress(b,m){if(!this.checkPressEnd())return;const{onTapCancel:v}=this.node.getProps();v&&Ws.update(()=>v(b,m))}mount(){const b=this.node.getProps(),m=$m(b.globalTapTarget?window:this.node.current,"pointerdown",this.startPointerPress,{passive:!(b.onTapStart||b.onPointerStart)}),v=Lm(this.node.current,"focus",this.startAccessiblePress);this.removeStartListeners=Fm(m,v)}unmount(){this.removeStartListeners(),this.removeEndListeners(),this.removeAccessibleListeners()}}const j0e=new WeakMap,c0e=new WeakMap,xLn=d=>{const b=j0e.get(d.target);b&&b(d)},OLn=d=>{d.forEach(xLn)};function ILn({root:d,...b}){const m=d||document;c0e.has(m)||c0e.set(m,{});const v=c0e.get(m),E=JSON.stringify(b);return v[E]||(v[E]=new IntersectionObserver(OLn,{root:d,...b})),v[E]}function DLn(d,b,m){const v=ILn(b);return j0e.set(d,m),v.observe(d),()=>{j0e.delete(d),v.unobserve(d)}}const LLn={some:0,all:1};class $Ln extends H4{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:b={}}=this.node.getProps(),{root:m,margin:v,amount:E="some",once:M}=b,k={root:m?m.current:void 0,rootMargin:v,threshold:typeof E=="number"?E:LLn[E]},L=N=>{const{isIntersecting:B}=N;if(this.isInView===B||(this.isInView=B,M&&!B&&this.hasEnteredView))return;B&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",B);const{onViewportEnter:H,onViewportLeave:G}=this.node.getProps(),Y=B?H:G;Y&&Y(N)};return DLn(this.node.current,k,L)}mount(){this.startObserver()}update(){if(typeof IntersectionObserver>"u")return;const{props:b,prevProps:m}=this.node;["amount","margin","root"].some(FLn(b,m))&&this.startObserver()}unmount(){}}function FLn({viewport:d={}},{viewport:b={}}={}){return m=>d[m]!==b[m]}const NLn={inView:{Feature:$Ln},tap:{Feature:ALn},focus:{Feature:PLn},hover:{Feature:MLn}};function Isn(d,b){if(!Array.isArray(b))return!1;const m=b.length;if(m!==d.length)return!1;for(let v=0;vb[v]=m.get()),b}function BLn(d){const b={};return d.values.forEach((m,v)=>b[v]=m.getVelocity()),b}function _G(d,b,m){const v=d.getProps();return sbe(v,b,m!==void 0?m:v.custom,_Ln(d),BLn(d))}let RLn=gf,fbe=gf;const B4=d=>d*1e3,Nm=d=>d/1e3,KLn={current:!1},Dsn=d=>Array.isArray(d)&&typeof d[0]=="number";function Lsn(d){return!!(!d||typeof d=="string"&&$sn[d]||Dsn(d)||Array.isArray(d)&&d.every(Lsn))}const dI=([d,b,m,v])=>`cubic-bezier(${d}, ${b}, ${m}, ${v})`,$sn={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:dI([0,.65,.55,1]),circOut:dI([.55,0,1,.45]),backIn:dI([.31,.01,.66,-.59]),backOut:dI([.33,1.53,.69,.99])};function Fsn(d){if(d)return Dsn(d)?dI(d):Array.isArray(d)?d.map(Fsn):$sn[d]}function qLn(d,b,m,{delay:v=0,duration:E,repeat:M=0,repeatType:k="loop",ease:L,times:N}={}){const B={[b]:m};N&&(B.offset=N);const H=Fsn(L);return Array.isArray(H)&&(B.easing=H),d.animate(B,{delay:v,duration:E,easing:Array.isArray(H)?"linear":H,fill:"both",iterations:M+1,direction:k==="reverse"?"alternate":"normal"})}function HLn(d,{repeat:b,repeatType:m="loop"}){const v=b&&m!=="loop"&&b%2===1?0:d.length-1;return d[v]}const Nsn=(d,b,m)=>(((1-3*m+3*b)*d+(3*m-6*b))*d+3*b)*d,VLn=1e-7,GLn=12;function zLn(d,b,m,v,E){let M,k,L=0;do k=b+(m-b)/2,M=Nsn(k,v,E)-d,M>0?m=k:b=k;while(Math.abs(M)>VLn&&++LzLn(M,0,1,d,m);return M=>M===0||M===1?M:Nsn(E(M),b,v)}const WLn=SI(.42,0,1,1),ULn=SI(0,0,.58,1),_sn=SI(.42,0,.58,1),XLn=d=>Array.isArray(d)&&typeof d[0]!="number",Bsn=d=>b=>b<=.5?d(2*b)/2:(2-d(2*(1-b)))/2,Rsn=d=>b=>1-d(1-b),lbe=d=>1-Math.sin(Math.acos(d)),Ksn=Rsn(lbe),YLn=Bsn(lbe),qsn=SI(.33,1.53,.69,.99),abe=Rsn(qsn),QLn=Bsn(abe),JLn=d=>(d*=2)<1?.5*abe(d):.5*(2-Math.pow(2,-10*(d-1))),ZLn={linear:gf,easeIn:WLn,easeInOut:_sn,easeOut:ULn,circIn:lbe,circInOut:YLn,circOut:Ksn,backIn:abe,backInOut:QLn,backOut:qsn,anticipate:JLn},Hcn=d=>{if(Array.isArray(d)){fbe(d.length===4);const[b,m,v,E]=d;return SI(b,m,v,E)}else if(typeof d=="string")return ZLn[d];return d},yI=(d,b,m)=>{const v=b-d;return v===0?1:(m-d)/v},bo=(d,b,m)=>d+(b-d)*m;function u0e(d,b,m){return m<0&&(m+=1),m>1&&(m-=1),m<1/6?d+(b-d)*6*m:m<1/2?b:m<2/3?d+(b-d)*(2/3-m)*6:d}function e$n({hue:d,saturation:b,lightness:m,alpha:v}){d/=360,b/=100,m/=100;let E=0,M=0,k=0;if(!b)E=M=k=m;else{const L=m<.5?m*(1+b):m+b-m*b,N=2*m-L;E=u0e(N,L,d+1/3),M=u0e(N,L,d),k=u0e(N,L,d-1/3)}return{red:Math.round(E*255),green:Math.round(M*255),blue:Math.round(k*255),alpha:v}}const hbe=(d,b)=>m=>!!(TI(m)&&iLn.test(m)&&m.startsWith(d)||b&&Object.prototype.hasOwnProperty.call(m,b)),Hsn=(d,b,m)=>v=>{if(!TI(v))return v;const[E,M,k,L]=v.match(nbe);return{[d]:parseFloat(E),[b]:parseFloat(M),[m]:parseFloat(k),alpha:L!==void 0?parseFloat(L):1}},n$n=d=>R4(0,255,d),s0e={...DE,transform:d=>Math.round(n$n(d))},G9={test:hbe("rgb","red"),parse:Hsn("red","green","blue"),transform:({red:d,green:b,blue:m,alpha:v=1})=>"rgba("+s0e.transform(d)+", "+s0e.transform(b)+", "+s0e.transform(m)+", "+wI(bI.transform(v))+")"};function t$n(d){let b="",m="",v="",E="";return d.length>5?(b=d.substring(1,3),m=d.substring(3,5),v=d.substring(5,7),E=d.substring(7,9)):(b=d.substring(1,2),m=d.substring(2,3),v=d.substring(3,4),E=d.substring(4,5),b+=b,m+=m,v+=v,E+=E),{red:parseInt(b,16),green:parseInt(m,16),blue:parseInt(v,16),alpha:E?parseInt(E,16)/255:1}}const E0e={test:hbe("#"),parse:t$n,transform:G9.transform},kE={test:hbe("hsl","hue"),parse:Hsn("hue","saturation","lightness"),transform:({hue:d,saturation:b,lightness:m,alpha:v=1})=>"hsla("+Math.round(d)+", "+Yp.transform(wI(b))+", "+Yp.transform(wI(m))+", "+wI(bI.transform(v))+")"},o0e=(d,b,m)=>{const v=d*d,E=m*(b*b-v)+v;return E<0?0:Math.sqrt(E)},i$n=[E0e,G9,kE],r$n=d=>i$n.find(b=>b.test(d));function Vcn(d){const b=r$n(d);let m=b.parse(d);return b===kE&&(m=e$n(m)),m}const Gcn=(d,b)=>{const m=Vcn(d),v=Vcn(b),E={...m};return M=>(E.red=o0e(m.red,v.red,M),E.green=o0e(m.green,v.green,M),E.blue=o0e(m.blue,v.blue,M),E.alpha=bo(m.alpha,v.alpha,M),G9.transform(E))},Ha={test:d=>G9.test(d)||E0e.test(d)||kE.test(d),parse:d=>G9.test(d)?G9.parse(d):kE.test(d)?kE.parse(d):E0e.parse(d),transform:d=>TI(d)?d:d.hasOwnProperty("red")?G9.transform(d):kE.transform(d)};function c$n(d){var b,m;return isNaN(d)&&TI(d)&&(((b=d.match(nbe))===null||b===void 0?void 0:b.length)||0)+(((m=d.match(tLn))===null||m===void 0?void 0:m.length)||0)>0}const Vsn="number",Gsn="color",u$n="var",s$n="var(",zcn="${}",Wcn=/(var\s*\(\s*--[\w-]+(\s*,\s*(?:(?:[^)(]|\((?:[^)(]+|\([^)(]*\))*\))*)+)?\s*\))|(#[0-9a-f]{3,8}|(rgb|hsl)a?\((-?[\d\.]+%?[,\s]+){2}(-?[\d\.]+%?)\s*[\,\/]?\s*[\d\.]*%?\))|((-)?([\d]*\.?[\d])+)/gi;function yG(d){const b=d.toString(),m=b.match(Wcn)||[],v=[],E={color:[],number:[],var:[]},M=[];for(let N=0;N{let M="";for(let k=0;ktypeof d=="number"?0:d;function f$n(d){const b=zsn(d);return Wsn(d)(b.map(o$n))}const K4={test:c$n,parse:zsn,createTransformer:Wsn,getAnimatableNone:f$n};function T0e(d,b){return m=>m>0?b:d}function l$n(d,b){return m=>bo(d,b,m)}function dbe(d){return typeof d=="number"?l$n:typeof d=="string"?pG(d)?T0e:Ha.test(d)?Gcn:d$n:Array.isArray(d)?Usn:typeof d=="object"?Ha.test(d)?Gcn:a$n:T0e}function Usn(d,b){const m=[...d],v=m.length,E=d.map((M,k)=>dbe(M)(M,b[k]));return M=>{for(let k=0;k{for(const M in v)m[M]=v[M](E);return m}}function h$n(d,b){var m;const v=[],E={color:0,var:0,number:0};for(let M=0;M{const m=K4.createTransformer(b),v=yG(d),E=yG(b);return v.indexes.var.length===E.indexes.var.length&&v.indexes.color.length===E.indexes.color.length&&v.indexes.number.length>=E.indexes.number.length?Fm(Usn(h$n(v,E),E.values),m):T0e(d,b)};function Xsn(d,b,m){return typeof d=="number"&&typeof b=="number"&&typeof m=="number"?bo(d,b,m):dbe(d)(d,b)}function b$n(d,b,m){const v=[],E=m||Xsn,M=d.length-1;for(let k=0;kb[0];d[0]>d[M-1]&&(d=[...d].reverse(),b=[...b].reverse());const k=b$n(b,v,E),L=k.length,N=B=>{let H=0;if(L>1)for(;HN(R4(d[0],d[M-1],B)):N}function g$n(d,b){const m=d[d.length-1];for(let v=1;v<=b;v++){const E=yI(0,b,v);d.push(bo(m,1,E))}}function p$n(d){const b=[0];return g$n(b,d.length-1),b}function m$n(d,b){return d.map(m=>m*b)}function v$n(d,b){return d.map(()=>b||_sn).splice(0,d.length-1)}function kG({duration:d=300,keyframes:b,times:m,ease:v="easeInOut"}){const E=XLn(v)?v.map(Hcn):Hcn(v),M={done:!1,value:b[0]},k=m$n(m&&m.length===b.length?m:p$n(b),d),L=w$n(k,b,{ease:Array.isArray(E)?E:v$n(b,E)});return{calculatedDuration:d,next:N=>(M.value=L(N),M.done=N>=d,M)}}function Ysn(d,b){return b?d*(1e3/b):0}const y$n=5;function Qsn(d,b,m){const v=Math.max(b-y$n,0);return Ysn(m-d(v),b-v)}const f0e=.001,k$n=.01,Ucn=10,j$n=.05,E$n=1;function T$n({duration:d=800,bounce:b=.25,velocity:m=0,mass:v=1}){let E,M;RLn(d<=B4(Ucn));let k=1-b;k=R4(j$n,E$n,k),d=R4(k$n,Ucn,Nm(d)),k<1?(E=B=>{const H=B*k,G=H*d,Y=H-m,ne=C0e(B,k),J=Math.exp(-G);return f0e-Y/ne*J},M=B=>{const G=B*k*d,Y=G*m+m,ne=Math.pow(k,2)*Math.pow(B,2)*d,J=Math.exp(-G),Re=C0e(Math.pow(B,2),k);return(-E(B)+f0e>0?-1:1)*((Y-ne)*J)/Re}):(E=B=>{const H=Math.exp(-B*d),G=(B-m)*d+1;return-f0e+H*G},M=B=>{const H=Math.exp(-B*d),G=(m-B)*(d*d);return H*G});const L=5/d,N=S$n(E,M,L);if(d=B4(d),isNaN(N))return{stiffness:100,damping:10,duration:d};{const B=Math.pow(N,2)*v;return{stiffness:B,damping:k*2*Math.sqrt(v*B),duration:d}}}const C$n=12;function S$n(d,b,m){let v=m;for(let E=1;Ed[m]!==void 0)}function A$n(d){let b={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...d};if(!Xcn(d,P$n)&&Xcn(d,M$n)){const m=T$n(d);b={...b,...m,mass:1},b.isResolvedFromDuration=!0}return b}function Jsn({keyframes:d,restDelta:b,restSpeed:m,...v}){const E=d[0],M=d[d.length-1],k={done:!1,value:E},{stiffness:L,damping:N,mass:B,duration:H,velocity:G,isResolvedFromDuration:Y}=A$n({...v,velocity:-Nm(v.velocity||0)}),ne=G||0,J=N/(2*Math.sqrt(L*B)),Re=M-E,cn=Nm(Math.sqrt(L/B)),kn=Math.abs(Re)<5;m||(m=kn?.01:2),b||(b=kn?.005:.5);let gn;if(J<1){const Ve=C0e(cn,J);gn=Cn=>{const rt=Math.exp(-J*cn*Cn);return M-rt*((ne+J*cn*Re)/Ve*Math.sin(Ve*Cn)+Re*Math.cos(Ve*Cn))}}else if(J===1)gn=Ve=>M-Math.exp(-cn*Ve)*(Re+(ne+cn*Re)*Ve);else{const Ve=cn*Math.sqrt(J*J-1);gn=Cn=>{const rt=Math.exp(-J*cn*Cn),Rt=Math.min(Ve*Cn,300);return M-rt*((ne+J*cn*Re)*Math.sinh(Rt)+Ve*Re*Math.cosh(Rt))/Ve}}return{calculatedDuration:Y&&H||null,next:Ve=>{const Cn=gn(Ve);if(Y)k.done=Ve>=H;else{let rt=ne;Ve!==0&&(J<1?rt=Qsn(gn,Ve,Cn):rt=0);const Rt=Math.abs(rt)<=m,Wt=Math.abs(M-Cn)<=b;k.done=Rt&&Wt}return k.value=k.done?M:Cn,k}}}function Ycn({keyframes:d,velocity:b=0,power:m=.8,timeConstant:v=325,bounceDamping:E=10,bounceStiffness:M=500,modifyTarget:k,min:L,max:N,restDelta:B=.5,restSpeed:H}){const G=d[0],Y={done:!1,value:G},ne=Tt=>L!==void 0&&TtN,J=Tt=>L===void 0?N:N===void 0||Math.abs(L-Tt)-Re*Math.exp(-Tt/v),Ve=Tt=>kn+gn(Tt),Cn=Tt=>{const Pi=gn(Tt),br=Ve(Tt);Y.done=Math.abs(Pi)<=B,Y.value=Y.done?kn:br};let rt,Rt;const Wt=Tt=>{ne(Y.value)&&(rt=Tt,Rt=Jsn({keyframes:[Y.value,J(Y.value)],velocity:Qsn(Ve,Tt,Y.value),damping:E,stiffness:M,restDelta:B,restSpeed:H}))};return Wt(0),{calculatedDuration:null,next:Tt=>{let Pi=!1;return!Rt&&rt===void 0&&(Pi=!0,Cn(Tt),Wt(Tt)),rt!==void 0&&Tt>rt?Rt.next(Tt-rt):(!Pi&&Cn(Tt),Y)}}}let aG;function x$n(){aG=void 0}const z9={now:()=>(aG===void 0&&z9.set(ha.isProcessing||asn.useManualTiming?ha.timestamp:performance.now()),aG),set:d=>{aG=d,queueMicrotask(x$n)}},O$n=d=>{const b=({timestamp:m})=>d(m);return{start:()=>Ws.update(b,!0),stop:()=>_m(b),now:()=>ha.isProcessing?ha.timestamp:z9.now()}},Qcn=2e4;function Jcn(d){let b=0;const m=50;let v=d.next(b);for(;!v.done&&b=Qcn?1/0:b}const I$n={decay:Ycn,inertia:Ycn,tween:kG,keyframes:kG,spring:Jsn},D$n=d=>d/100;function jG({autoplay:d=!0,delay:b=0,driver:m=O$n,keyframes:v,type:E="keyframes",repeat:M=0,repeatDelay:k=0,repeatType:L="loop",onPlay:N,onStop:B,onComplete:H,onUpdate:G,...Y}){let ne=1,J=!1,Re,cn;const kn=()=>{cn=new Promise(Kr=>{Re=Kr})};kn();let gn;const Ve=I$n[E]||kG;let Cn;Ve!==kG&&typeof v[0]!="number"&&(Cn=Fm(D$n,Xsn(v[0],v[1])),v=[0,100]);const rt=Ve({...Y,keyframes:v});let Rt;L==="mirror"&&(Rt=Ve({...Y,keyframes:[...v].reverse(),velocity:-(Y.velocity||0)}));let Wt="idle",Tt=null,Pi=null,br=null;rt.calculatedDuration===null&&M&&(rt.calculatedDuration=Jcn(rt));const{calculatedDuration:Mr}=rt;let Pr=1/0,Bi=1/0;Mr!==null&&(Pr=Mr+k,Bi=Pr*(M+1)-k);let di=0;const vc=Kr=>{if(Pi===null)return;ne>0&&(Pi=Math.min(Pi,Kr)),ne<0&&(Pi=Math.min(Kr-Bi/ne,Pi)),Tt!==null?di=Tt:di=Math.round(Kr-Pi)*ne;const vu=di-b*(ne>=0?1:-1),bg=ne>=0?vu<0:vu>Bi;di=Math.max(vu,0),Wt==="finished"&&Tt===null&&(di=Bi);let Ob=di,Yd=rt;if(M){const Pc=Math.min(di,Bi)/Pr;let Ss=Math.floor(Pc),Lf=Pc%1;!Lf&&Pc>=1&&(Lf=1),Lf===1&&Ss--,Ss=Math.min(Ss,M+1),!!(Ss%2)&&(L==="reverse"?(Lf=1-Lf,k&&(Lf-=k/Pr)):L==="mirror"&&(Yd=Rt)),Ob=R4(0,1,Lf)*Pr}const Bl=bg?{done:!1,value:v[0]}:Yd.next(Ob);Cn&&(Bl.value=Cn(Bl.value));let{done:N1}=Bl;!bg&&Mr!==null&&(N1=ne>=0?di>=Bi:di<=0);const wg=Tt===null&&(Wt==="finished"||Wt==="running"&&N1);return G&&G(Bl.value),wg&&W(),Bl},Vi=()=>{gn&&gn.stop(),gn=void 0},si=()=>{Wt="idle",Vi(),Re(),kn(),Pi=br=null},W=()=>{Wt="finished",H&&H(),Vi(),Re()},qo=()=>{if(J)return;gn||(gn=m(vc));const Kr=gn.now();N&&N(),Tt!==null?Pi=Kr-Tt:(!Pi||Wt==="finished")&&(Pi=Kr),Wt==="finished"&&kn(),br=Pi,Tt=null,Wt="running",gn.start()};d&&qo();const al={then(Kr,vu){return cn.then(Kr,vu)},get time(){return Nm(di)},set time(Kr){Kr=B4(Kr),di=Kr,Tt!==null||!gn||ne===0?Tt=Kr:Pi=gn.now()-Kr/ne},get duration(){const Kr=rt.calculatedDuration===null?Jcn(rt):rt.calculatedDuration;return Nm(Kr)},get speed(){return ne},set speed(Kr){Kr===ne||!gn||(ne=Kr,al.time=Nm(di))},get state(){return Wt},play:qo,pause:()=>{Wt="paused",Tt=di},stop:()=>{J=!0,Wt!=="idle"&&(Wt="idle",B&&B(),si())},cancel:()=>{br!==null&&vc(br),si()},complete:()=>{Wt="finished"},sample:Kr=>(Pi=0,vc(Kr))};return al}function L$n(d){let b;return()=>(b===void 0&&(b=d()),b)}const $$n=L$n(()=>Object.hasOwnProperty.call(Element.prototype,"animate")),F$n=new Set(["opacity","clipPath","filter","transform"]),oG=10,N$n=2e4,_$n=(d,b)=>b.type==="spring"||d==="backgroundColor"||!Lsn(b.ease);function B$n(d,b,{onUpdate:m,onComplete:v,...E}){if(!($$n()&&F$n.has(b)&&!E.repeatDelay&&E.repeatType!=="mirror"&&E.damping!==0&&E.type!=="inertia"))return!1;let k=!1,L,N,B=!1;const H=()=>{N=new Promise(Ve=>{L=Ve})};H();let{keyframes:G,duration:Y=300,ease:ne,times:J}=E;if(_$n(b,E)){const Ve=jG({...E,repeat:0,delay:0});let Cn={done:!1,value:G[0]};const rt=[];let Rt=0;for(;!Cn.done&&Rt{B=!1,Re.cancel()},kn=()=>{B=!0,Ws.update(cn),L(),H()};return Re.onfinish=()=>{B||(d.set(HLn(G,E)),v&&v(),kn())},{then(Ve,Cn){return N.then(Ve,Cn)},attachTimeline(Ve){return Re.timeline=Ve,Re.onfinish=null,gf},get time(){return Nm(Re.currentTime||0)},set time(Ve){Re.currentTime=B4(Ve)},get speed(){return Re.playbackRate},set speed(Ve){Re.playbackRate=Ve},get duration(){return Nm(Y)},play:()=>{k||(Re.play(),_m(cn))},pause:()=>Re.pause(),stop:()=>{if(k=!0,Re.playState==="idle")return;const{currentTime:Ve}=Re;if(Ve){const Cn=jG({...E,autoplay:!1});d.setWithVelocity(Cn.sample(Ve-oG).value,Cn.sample(Ve).value,oG)}kn()},complete:()=>{B||Re.finish()},cancel:kn}}function R$n({keyframes:d,delay:b,onUpdate:m,onComplete:v}){const E=()=>(m&&m(d[d.length-1]),v&&v(),{time:0,speed:1,duration:0,play:gf,pause:gf,stop:gf,then:M=>(M(),Promise.resolve()),cancel:gf,complete:gf});return b?jG({keyframes:[0,1],duration:0,delay:b,onComplete:E}):E()}const K$n={type:"spring",stiffness:500,damping:25,restSpeed:10},q$n=d=>({type:"spring",stiffness:550,damping:d===0?2*Math.sqrt(550):30,restSpeed:10}),H$n={type:"keyframes",duration:.8},V$n={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},G$n=(d,{keyframes:b})=>b.length>2?H$n:X9.has(d)?d.startsWith("scale")?q$n(b[1]):K$n:V$n,S0e=(d,b)=>d==="zIndex"?!1:!!(typeof b=="number"||Array.isArray(b)||typeof b=="string"&&(K4.test(b)||b==="0")&&!b.startsWith("url(")),z$n=new Set(["brightness","contrast","saturate","opacity"]);function W$n(d){const[b,m]=d.slice(0,-1).split("(");if(b==="drop-shadow")return d;const[v]=m.match(nbe)||[];if(!v)return d;const E=m.replace(v,"");let M=z$n.has(b)?1:0;return v!==m&&(M*=100),b+"("+M+E+")"}const U$n=/([a-z-]*)\(.*?\)/g,M0e={...K4,getAnimatableNone:d=>{const b=d.match(U$n);return b?b.map(W$n).join(" "):d}},X$n={...msn,color:Ha,backgroundColor:Ha,outlineColor:Ha,fill:Ha,stroke:Ha,borderColor:Ha,borderTopColor:Ha,borderRightColor:Ha,borderBottomColor:Ha,borderLeftColor:Ha,filter:M0e,WebkitFilter:M0e},bbe=d=>X$n[d];function Zsn(d,b){let m=bbe(d);return m!==M0e&&(m=K4),m.getAnimatableNone?m.getAnimatableNone(b):void 0}const eon=d=>/^0[^.\s]+$/.test(d);function Y$n(d){if(typeof d=="number")return d===0;if(d!==null)return d==="none"||d==="0"||eon(d)}function Q$n(d,b,m,v){const E=S0e(b,m);let M;Array.isArray(m)?M=[...m]:M=[null,m];const k=v.from!==void 0?v.from:d.get();let L;const N=[];for(let B=0;BE=>{const M=wbe(v,d)||{},k=M.delay||v.delay||0;let{elapsed:L=0}=v;L=L-B4(k);const N=Q$n(b,d,m,M),B=N[0],H=N[N.length-1],G=S0e(d,B),Y=S0e(d,H);let ne={keyframes:N,velocity:b.getVelocity(),ease:"easeOut",...M,delay:-L,onUpdate:J=>{b.set(J),M.onUpdate&&M.onUpdate(J)},onComplete:()=>{E(),M.onComplete&&M.onComplete()}};if(J$n(M)||(ne={...ne,...G$n(d,ne)}),ne.duration&&(ne.duration=B4(ne.duration)),ne.repeatDelay&&(ne.repeatDelay=B4(ne.repeatDelay)),!G||!Y||KLn.current||M.type===!1||asn.skipAnimations)return R$n(ne);if(!v.isHandoff&&b.owner&&b.owner.current instanceof HTMLElement&&!b.owner.getProps().onUpdate){const J=B$n(b,d,ne);if(J)return J}return jG(ne)};function EG(d){return!!(F1(d)&&d.add)}const non=d=>/^\-?\d*\.?\d+$/.test(d);function pbe(d,b){d.indexOf(b)===-1&&d.push(b)}function mbe(d,b){const m=d.indexOf(b);m>-1&&d.splice(m,1)}class vbe{constructor(){this.subscriptions=[]}add(b){return pbe(this.subscriptions,b),()=>mbe(this.subscriptions,b)}notify(b,m,v){const E=this.subscriptions.length;if(E)if(E===1)this.subscriptions[0](b,m,v);else for(let M=0;M!isNaN(parseFloat(d));class eFn{constructor(b,m={}){this.version="11.0.6",this.canTrackVelocity=!1,this.events={},this.updateAndNotify=(v,E=!0)=>{const M=z9.now();this.updatedAt!==M&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(v),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),E&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(b),this.canTrackVelocity=Z$n(this.current),this.owner=m.owner}setCurrent(b){this.current=b,this.updatedAt=z9.now()}setPrevFrameValue(b=this.current){this.prevFrameValue=b,this.prevUpdatedAt=this.updatedAt}onChange(b){return this.on("change",b)}on(b,m){this.events[b]||(this.events[b]=new vbe);const v=this.events[b].add(m);return b==="change"?()=>{v(),Ws.read(()=>{this.events.change.getSize()||this.stop()})}:v}clearListeners(){for(const b in this.events)this.events[b].clear()}attach(b,m){this.passiveEffect=b,this.stopPassiveEffect=m}set(b,m=!0){!m||!this.passiveEffect?this.updateAndNotify(b,m):this.passiveEffect(b,this.updateAndNotify)}setWithVelocity(b,m,v){this.set(m),this.prev=void 0,this.prevFrameValue=b,this.prevUpdatedAt=this.updatedAt-v}jump(b){this.updateAndNotify(b),this.prev=b,this.prevUpdatedAt=this.prevFrameValue=void 0,this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return this.current}getPrevious(){return this.prev}getVelocity(){const b=z9.now();if(!this.canTrackVelocity||this.prevFrameValue===void 0||b-this.updatedAt>Zcn)return 0;const m=Math.min(this.updatedAt-this.prevUpdatedAt,Zcn);return Ysn(parseFloat(this.current)-parseFloat(this.prevFrameValue),m)}start(b){return this.stop(),new Promise(m=>{this.hasAnimated=!0,this.animation=b(m),this.events.animationStart&&this.events.animationStart.notify()}).then(()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()})}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function ME(d,b){return new eFn(d,b)}const ton=d=>b=>b.test(d),nFn={test:d=>d==="auto",parse:d=>d},ion=[DE,Qi,Yp,F4,cLn,rLn,nFn],uI=d=>ion.find(ton(d)),tFn=[...ion,Ha,K4],iFn=d=>tFn.find(ton(d));function rFn(d,b,m){d.hasValue(b)?d.getValue(b).set(m):d.addValue(b,ME(m))}function ybe(d,b){const m=_G(d,b);let{transitionEnd:v={},transition:E={},...M}=m?d.makeTargetAnimatable(m,!1):{};M={...M,...v};for(const k in M){const L=vLn(M[k]);rFn(d,k,L)}}function P0e(d,b){[...b].reverse().forEach(v=>{const E=d.getVariant(v);E&&ybe(d,E),d.variantChildren&&d.variantChildren.forEach(M=>{P0e(M,b)})})}function cFn(d,b){if(Array.isArray(b))return P0e(d,b);if(typeof b=="string")return P0e(d,[b]);ybe(d,b)}function uFn(d,b,m){var v,E;const M=Object.keys(b).filter(L=>!d.hasValue(L)),k=M.length;if(k)for(let L=0;LN.remove(G))),B.push(cn)}return k&&Promise.all(B).then(()=>{k&&ybe(d,k)}),B}function A0e(d,b,m={}){const v=_G(d,b,m.custom);let{transition:E=d.getDefaultTransition()||{}}=v||{};m.transitionOverride&&(E=m.transitionOverride);const M=v?()=>Promise.all(ron(d,v,m)):()=>Promise.resolve(),k=d.variantChildren&&d.variantChildren.size?(N=0)=>{const{delayChildren:B=0,staggerChildren:H,staggerDirection:G}=E;return aFn(d,b,B+N,H,G,m)}:()=>Promise.resolve(),{when:L}=E;if(L){const[N,B]=L==="beforeChildren"?[M,k]:[k,M];return N().then(()=>B())}else return Promise.all([M(),k(m.delay)])}function aFn(d,b,m=0,v=0,E=1,M){const k=[],L=(d.variantChildren.size-1)*v,N=E===1?(B=0)=>B*v:(B=0)=>L-B*v;return Array.from(d.variantChildren).sort(hFn).forEach((B,H)=>{B.notify("AnimationStart",b),k.push(A0e(B,b,{...M,delay:m+N(H)}).then(()=>B.notify("AnimationComplete",b)))}),Promise.all(k)}function hFn(d,b){return d.sortNodePosition(b)}function con(d,b,m={}){d.notify("AnimationStart",b);let v;if(Array.isArray(b)){const E=b.map(M=>A0e(d,M,m));v=Promise.all(E)}else if(typeof b=="string")v=A0e(d,b,m);else{const E=typeof b=="function"?_G(d,b,m.custom):b;v=Promise.all(ron(d,E,m))}return v.then(()=>d.notify("AnimationComplete",b))}const dFn=[...Q0e].reverse(),bFn=Q0e.length;function wFn(d){return b=>Promise.all(b.map(({animation:m,options:v})=>con(d,m,v)))}function gFn(d){let b=wFn(d);const m=mFn();let v=!0;const E=(N,B)=>{const H=_G(d,B);if(H){const{transition:G,transitionEnd:Y,...ne}=H;N={...N,...ne,...Y}}return N};function M(N){b=N(d)}function k(N,B){const H=d.getProps(),G=d.getVariantContext(!0)||{},Y=[],ne=new Set;let J={},Re=1/0;for(let kn=0;knRe&&rt,br=!1;const Mr=Array.isArray(Cn)?Cn:[Cn];let Pr=Mr.reduce(E,{});Rt===!1&&(Pr={});const{prevResolvedValues:Bi={}}=Ve,di={...Bi,...Pr},vc=Vi=>{Pi=!0,ne.has(Vi)&&(br=!0,ne.delete(Vi)),Ve.needsAnimating[Vi]=!0};for(const Vi in di){const si=Pr[Vi],W=Bi[Vi];if(J.hasOwnProperty(Vi))continue;let qo=!1;vG(si)&&vG(W)?qo=!Isn(si,W):qo=si!==W,qo?si!==void 0?vc(Vi):ne.add(Vi):si!==void 0&&ne.has(Vi)?vc(Vi):Ve.protectedKeys[Vi]=!0}Ve.prevProp=Cn,Ve.prevResolvedValues=Pr,Ve.isActive&&(J={...J,...Pr}),v&&d.blockInitialAnimation&&(Pi=!1),Pi&&(!Wt||br)&&Y.push(...Mr.map(Vi=>({animation:Vi,options:{type:gn,...N}})))}if(ne.size){const kn={};ne.forEach(gn=>{const Ve=d.getBaseTarget(gn);Ve!==void 0&&(kn[gn]=Ve)}),Y.push({animation:kn})}let cn=!!Y.length;return v&&(H.initial===!1||H.initial===H.animate)&&!d.manuallyAnimateOnMount&&(cn=!1),v=!1,cn?b(Y):Promise.resolve()}function L(N,B,H){var G;if(m[N].isActive===B)return Promise.resolve();(G=d.variantChildren)===null||G===void 0||G.forEach(ne=>{var J;return(J=ne.animationState)===null||J===void 0?void 0:J.setActive(N,B)}),m[N].isActive=B;const Y=k(H,N);for(const ne in m)m[ne].protectedKeys={};return Y}return{animateChanges:k,setActive:L,setAnimateFunction:M,getState:()=>m}}function pFn(d,b){return typeof b=="string"?b!==d:Array.isArray(b)?!Isn(b,d):!1}function B9(d=!1){return{isActive:d,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function mFn(){return{animate:B9(!0),whileInView:B9(),whileHover:B9(),whileTap:B9(),whileDrag:B9(),whileFocus:B9(),exit:B9()}}class vFn extends H4{constructor(b){super(b),b.animationState||(b.animationState=gFn(b))}updateAnimationControlsSubscription(){const{animate:b}=this.node.getProps();this.unmount(),$G(b)&&(this.unmount=b.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:b}=this.node.getProps(),{animate:m}=this.node.prevProps||{};b!==m&&this.updateAnimationControlsSubscription()}unmount(){}}let yFn=0;class kFn extends H4{constructor(){super(...arguments),this.id=yFn++}update(){if(!this.node.presenceContext)return;const{isPresent:b,onExitComplete:m,custom:v}=this.node.presenceContext,{isPresent:E}=this.node.prevPresenceContext||{};if(!this.node.animationState||b===E)return;const M=this.node.animationState.setActive("exit",!b,{custom:v??this.node.getProps().custom});m&&!b&&M.then(()=>m(this.id))}mount(){const{register:b}=this.node.presenceContext||{};b&&(this.unmount=b(this.id))}unmount(){}}const jFn={animation:{Feature:vFn},exit:{Feature:kFn}},eun=(d,b)=>Math.abs(d-b);function EFn(d,b){const m=eun(d.x,b.x),v=eun(d.y,b.y);return Math.sqrt(m**2+v**2)}class uon{constructor(b,m,{transformPagePoint:v,contextWindow:E,dragSnapToOrigin:M=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const G=a0e(this.lastMoveEventInfo,this.history),Y=this.startEvent!==null,ne=EFn(G.offset,{x:0,y:0})>=3;if(!Y&&!ne)return;const{point:J}=G,{timestamp:Re}=ha;this.history.push({...J,timestamp:Re});const{onStart:cn,onMove:kn}=this.handlers;Y||(cn&&cn(this.lastMoveEvent,G),this.startEvent=this.lastMoveEvent),kn&&kn(this.lastMoveEvent,G)},this.handlePointerMove=(G,Y)=>{this.lastMoveEvent=G,this.lastMoveEventInfo=l0e(Y,this.transformPagePoint),Ws.update(this.updatePoint,!0)},this.handlePointerUp=(G,Y)=>{this.end();const{onEnd:ne,onSessionEnd:J,resumeAnimation:Re}=this.handlers;if(this.dragSnapToOrigin&&Re&&Re(),!(this.lastMoveEvent&&this.lastMoveEventInfo))return;const cn=a0e(G.type==="pointercancel"?this.lastMoveEventInfo:l0e(Y,this.transformPagePoint),this.history);this.startEvent&&ne&&ne(G,cn),J&&J(G,cn)},!Msn(b))return;this.dragSnapToOrigin=M,this.handlers=m,this.transformPagePoint=v,this.contextWindow=E||window;const k=NG(b),L=l0e(k,this.transformPagePoint),{point:N}=L,{timestamp:B}=ha;this.history=[{...N,timestamp:B}];const{onSessionStart:H}=m;H&&H(b,a0e(L,this.history)),this.removeListeners=Fm($m(this.contextWindow,"pointermove",this.handlePointerMove),$m(this.contextWindow,"pointerup",this.handlePointerUp),$m(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(b){this.handlers=b}end(){this.removeListeners&&this.removeListeners(),_m(this.updatePoint)}}function l0e(d,b){return b?{point:b(d.point)}:d}function nun(d,b){return{x:d.x-b.x,y:d.y-b.y}}function a0e({point:d},b){return{point:d,delta:nun(d,son(b)),offset:nun(d,TFn(b)),velocity:CFn(b,.1)}}function TFn(d){return d[0]}function son(d){return d[d.length-1]}function CFn(d,b){if(d.length<2)return{x:0,y:0};let m=d.length-1,v=null;const E=son(d);for(;m>=0&&(v=d[m],!(E.timestamp-v.timestamp>B4(b)));)m--;if(!v)return{x:0,y:0};const M=Nm(E.timestamp-v.timestamp);if(M===0)return{x:0,y:0};const k={x:(E.x-v.x)/M,y:(E.y-v.y)/M};return k.x===1/0&&(k.x=0),k.y===1/0&&(k.y=0),k}function Xd(d){return d.max-d.min}function x0e(d,b=0,m=.01){return Math.abs(d-b)<=m}function tun(d,b,m,v=.5){d.origin=v,d.originPoint=bo(b.min,b.max,d.origin),d.scale=Xd(m)/Xd(b),(x0e(d.scale,1,1e-4)||isNaN(d.scale))&&(d.scale=1),d.translate=bo(m.min,m.max,d.origin)-d.originPoint,(x0e(d.translate)||isNaN(d.translate))&&(d.translate=0)}function gI(d,b,m,v){tun(d.x,b.x,m.x,v?v.originX:void 0),tun(d.y,b.y,m.y,v?v.originY:void 0)}function iun(d,b,m){d.min=m.min+b.min,d.max=d.min+Xd(b)}function SFn(d,b,m){iun(d.x,b.x,m.x),iun(d.y,b.y,m.y)}function run(d,b,m){d.min=b.min-m.min,d.max=d.min+Xd(b)}function pI(d,b,m){run(d.x,b.x,m.x),run(d.y,b.y,m.y)}function MFn(d,{min:b,max:m},v){return b!==void 0&&dm&&(d=v?bo(m,d,v.max):Math.min(d,m)),d}function cun(d,b,m){return{min:b!==void 0?d.min+b:void 0,max:m!==void 0?d.max+m-(d.max-d.min):void 0}}function PFn(d,{top:b,left:m,bottom:v,right:E}){return{x:cun(d.x,m,E),y:cun(d.y,b,v)}}function uun(d,b){let m=b.min-d.min,v=b.max-d.max;return b.max-b.minv?m=yI(b.min,b.max-v,d.min):v>E&&(m=yI(d.min,d.max-E,b.min)),R4(0,1,m)}function OFn(d,b){const m={};return b.min!==void 0&&(m.min=b.min-d.min),b.max!==void 0&&(m.max=b.max-d.min),m}const O0e=.35;function IFn(d=O0e){return d===!1?d=0:d===!0&&(d=O0e),{x:sun(d,"left","right"),y:sun(d,"top","bottom")}}function sun(d,b,m){return{min:oun(d,b),max:oun(d,m)}}function oun(d,b){return typeof d=="number"?d:d[b]||0}const fun=()=>({translate:0,scale:1,origin:0,originPoint:0}),jE=()=>({x:fun(),y:fun()}),lun=()=>({min:0,max:0}),wf=()=>({x:lun(),y:lun()});function Pb(d){return[d("x"),d("y")]}function oon({top:d,left:b,right:m,bottom:v}){return{x:{min:b,max:m},y:{min:d,max:v}}}function DFn({x:d,y:b}){return{top:b.min,right:d.max,bottom:b.max,left:d.min}}function LFn(d,b){if(!b)return d;const m=b({x:d.left,y:d.top}),v=b({x:d.right,y:d.bottom});return{top:m.y,left:m.x,bottom:v.y,right:v.x}}function h0e(d){return d===void 0||d===1}function I0e({scale:d,scaleX:b,scaleY:m}){return!h0e(d)||!h0e(b)||!h0e(m)}function K9(d){return I0e(d)||fon(d)||d.z||d.rotate||d.rotateX||d.rotateY}function fon(d){return aun(d.x)||aun(d.y)}function aun(d){return d&&d!=="0%"}function TG(d,b,m){const v=d-m,E=b*v;return m+E}function hun(d,b,m,v,E){return E!==void 0&&(d=TG(d,E,v)),TG(d,m,v)+b}function D0e(d,b=0,m=1,v,E){d.min=hun(d.min,b,m,v,E),d.max=hun(d.max,b,m,v,E)}function lon(d,{x:b,y:m}){D0e(d.x,b.translate,b.scale,b.originPoint),D0e(d.y,m.translate,m.scale,m.originPoint)}function $Fn(d,b,m,v=!1){const E=m.length;if(!E)return;b.x=b.y=1;let M,k;for(let L=0;L1.0000000000001||d<.999999999999?d:1}function N4(d,b){d.min=d.min+b,d.max=d.max+b}function bun(d,b,[m,v,E]){const M=b[E]!==void 0?b[E]:.5,k=bo(d.min,d.max,M);D0e(d,b[m],b[v],k,b.scale)}const FFn=["x","scaleX","originX"],NFn=["y","scaleY","originY"];function EE(d,b){bun(d.x,b,FFn),bun(d.y,b,NFn)}function aon(d,b){return oon(LFn(d.getBoundingClientRect(),b))}function _Fn(d,b,m){const v=aon(d,m),{scroll:E}=b;return E&&(N4(v.x,E.offset.x),N4(v.y,E.offset.y)),v}const hon=({current:d})=>d?d.ownerDocument.defaultView:null,BFn=new WeakMap;class RFn{constructor(b){this.openGlobalLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic=wf(),this.visualElement=b}start(b,{snapToCursor:m=!1}={}){const{presenceContext:v}=this.visualElement;if(v&&v.isPresent===!1)return;const E=H=>{const{dragSnapToOrigin:G}=this.getProps();G?this.pauseAnimation():this.stopAnimation(),m&&this.snapToCursor(NG(H,"page").point)},M=(H,G)=>{const{drag:Y,dragPropagation:ne,onDragStart:J}=this.getProps();if(Y&&!ne&&(this.openGlobalLock&&this.openGlobalLock(),this.openGlobalLock=Asn(Y),!this.openGlobalLock))return;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),Pb(cn=>{let kn=this.getAxisMotionValue(cn).get()||0;if(Yp.test(kn)){const{projection:gn}=this.visualElement;if(gn&&gn.layout){const Ve=gn.layout.layoutBox[cn];Ve&&(kn=Xd(Ve)*(parseFloat(kn)/100))}}this.originPoint[cn]=kn}),J&&Ws.update(()=>J(H,G),!1,!0);const{animationState:Re}=this.visualElement;Re&&Re.setActive("whileDrag",!0)},k=(H,G)=>{const{dragPropagation:Y,dragDirectionLock:ne,onDirectionLock:J,onDrag:Re}=this.getProps();if(!Y&&!this.openGlobalLock)return;const{offset:cn}=G;if(ne&&this.currentDirection===null){this.currentDirection=KFn(cn),this.currentDirection!==null&&J&&J(this.currentDirection);return}this.updateAxis("x",G.point,cn),this.updateAxis("y",G.point,cn),this.visualElement.render(),Re&&Re(H,G)},L=(H,G)=>this.stop(H,G),N=()=>Pb(H=>{var G;return this.getAnimationState(H)==="paused"&&((G=this.getAxisMotionValue(H).animation)===null||G===void 0?void 0:G.play())}),{dragSnapToOrigin:B}=this.getProps();this.panSession=new uon(b,{onSessionStart:E,onStart:M,onMove:k,onSessionEnd:L,resumeAnimation:N},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:B,contextWindow:hon(this.visualElement)})}stop(b,m){const v=this.isDragging;if(this.cancel(),!v)return;const{velocity:E}=m;this.startAnimation(E);const{onDragEnd:M}=this.getProps();M&&Ws.update(()=>M(b,m))}cancel(){this.isDragging=!1;const{projection:b,animationState:m}=this.visualElement;b&&(b.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:v}=this.getProps();!v&&this.openGlobalLock&&(this.openGlobalLock(),this.openGlobalLock=null),m&&m.setActive("whileDrag",!1)}updateAxis(b,m,v){const{drag:E}=this.getProps();if(!v||!fG(b,E,this.currentDirection))return;const M=this.getAxisMotionValue(b);let k=this.originPoint[b]+v[b];this.constraints&&this.constraints[b]&&(k=MFn(k,this.constraints[b],this.elastic[b])),M.set(k)}resolveConstraints(){var b;const{dragConstraints:m,dragElastic:v}=this.getProps(),E=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):(b=this.visualElement.projection)===null||b===void 0?void 0:b.layout,M=this.constraints;m&&yE(m)?this.constraints||(this.constraints=this.resolveRefConstraints()):m&&E?this.constraints=PFn(E.layoutBox,m):this.constraints=!1,this.elastic=IFn(v),M!==this.constraints&&E&&this.constraints&&!this.hasMutatedConstraints&&Pb(k=>{this.getAxisMotionValue(k)&&(this.constraints[k]=OFn(E.layoutBox[k],this.constraints[k]))})}resolveRefConstraints(){const{dragConstraints:b,onMeasureDragConstraints:m}=this.getProps();if(!b||!yE(b))return!1;const v=b.current,{projection:E}=this.visualElement;if(!E||!E.layout)return!1;const M=_Fn(v,E.root,this.visualElement.getTransformPagePoint());let k=AFn(E.layout.layoutBox,M);if(m){const L=m(DFn(k));this.hasMutatedConstraints=!!L,L&&(k=oon(L))}return k}startAnimation(b){const{drag:m,dragMomentum:v,dragElastic:E,dragTransition:M,dragSnapToOrigin:k,onDragTransitionEnd:L}=this.getProps(),N=this.constraints||{},B=Pb(H=>{if(!fG(H,m,this.currentDirection))return;let G=N&&N[H]||{};k&&(G={min:0,max:0});const Y=E?200:1e6,ne=E?40:1e7,J={type:"inertia",velocity:v?b[H]:0,bounceStiffness:Y,bounceDamping:ne,timeConstant:750,restDelta:1,restSpeed:10,...M,...G};return this.startAxisValueAnimation(H,J)});return Promise.all(B).then(L)}startAxisValueAnimation(b,m){const v=this.getAxisMotionValue(b);return v.start(gbe(b,v,0,m))}stopAnimation(){Pb(b=>this.getAxisMotionValue(b).stop())}pauseAnimation(){Pb(b=>{var m;return(m=this.getAxisMotionValue(b).animation)===null||m===void 0?void 0:m.pause()})}getAnimationState(b){var m;return(m=this.getAxisMotionValue(b).animation)===null||m===void 0?void 0:m.state}getAxisMotionValue(b){const m="_drag"+b.toUpperCase(),v=this.visualElement.getProps(),E=v[m];return E||this.visualElement.getValue(b,(v.initial?v.initial[b]:void 0)||0)}snapToCursor(b){Pb(m=>{const{drag:v}=this.getProps();if(!fG(m,v,this.currentDirection))return;const{projection:E}=this.visualElement,M=this.getAxisMotionValue(m);if(E&&E.layout){const{min:k,max:L}=E.layout.layoutBox[m];M.set(b[m]-bo(k,L,.5))}})}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:b,dragConstraints:m}=this.getProps(),{projection:v}=this.visualElement;if(!yE(m)||!v||!this.constraints)return;this.stopAnimation();const E={x:0,y:0};Pb(k=>{const L=this.getAxisMotionValue(k);if(L){const N=L.get();E[k]=xFn({min:N,max:N},this.constraints[k])}});const{transformTemplate:M}=this.visualElement.getProps();this.visualElement.current.style.transform=M?M({},""):"none",v.root&&v.root.updateScroll(),v.updateLayout(),this.resolveConstraints(),Pb(k=>{if(!fG(k,b,null))return;const L=this.getAxisMotionValue(k),{min:N,max:B}=this.constraints[k];L.set(bo(N,B,E[k]))})}addListeners(){if(!this.visualElement.current)return;BFn.set(this.visualElement,this);const b=this.visualElement.current,m=$m(b,"pointerdown",N=>{const{drag:B,dragListener:H=!0}=this.getProps();B&&H&&this.start(N)}),v=()=>{const{dragConstraints:N}=this.getProps();yE(N)&&(this.constraints=this.resolveRefConstraints())},{projection:E}=this.visualElement,M=E.addEventListener("measure",v);E&&!E.layout&&(E.root&&E.root.updateScroll(),E.updateLayout()),v();const k=Lm(window,"resize",()=>this.scalePositionWithinConstraints()),L=E.addEventListener("didUpdate",({delta:N,hasLayoutChanged:B})=>{this.isDragging&&B&&(Pb(H=>{const G=this.getAxisMotionValue(H);G&&(this.originPoint[H]+=N[H].translate,G.set(G.get()+N[H].translate))}),this.visualElement.render())});return()=>{k(),m(),M(),L&&L()}}getProps(){const b=this.visualElement.getProps(),{drag:m=!1,dragDirectionLock:v=!1,dragPropagation:E=!1,dragConstraints:M=!1,dragElastic:k=O0e,dragMomentum:L=!0}=b;return{...b,drag:m,dragDirectionLock:v,dragPropagation:E,dragConstraints:M,dragElastic:k,dragMomentum:L}}}function fG(d,b,m){return(b===!0||b===d)&&(m===null||m===d)}function KFn(d,b=10){let m=null;return Math.abs(d.y)>b?m="y":Math.abs(d.x)>b&&(m="x"),m}class qFn extends H4{constructor(b){super(b),this.removeGroupControls=gf,this.removeListeners=gf,this.controls=new RFn(b)}mount(){const{dragControls:b}=this.node.getProps();b&&(this.removeGroupControls=b.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||gf}unmount(){this.removeGroupControls(),this.removeListeners()}}const wun=d=>(b,m)=>{d&&Ws.update(()=>d(b,m))};class HFn extends H4{constructor(){super(...arguments),this.removePointerDownListener=gf}onPointerDown(b){this.session=new uon(b,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:hon(this.node)})}createPanHandlers(){const{onPanSessionStart:b,onPanStart:m,onPan:v,onPanEnd:E}=this.node.getProps();return{onSessionStart:wun(b),onStart:wun(m),onMove:v,onEnd:(M,k)=>{delete this.session,E&&Ws.update(()=>E(M,k))}}}mount(){this.removePointerDownListener=$m(this.node.current,"pointerdown",b=>this.onPointerDown(b))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}function VFn(){const d=Ce.useContext(IG);if(d===null)return[!0,null];const{isPresent:b,onExitComplete:m,register:v}=d,E=Ce.useId();return Ce.useEffect(()=>v(E),[]),!b&&m?[!1,()=>m&&m(E)]:[!0]}const hG={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function gun(d,b){return b.max===b.min?0:d/(b.max-b.min)*100}const sI={correct:(d,b)=>{if(!b.target)return d;if(typeof d=="string")if(Qi.test(d))d=parseFloat(d);else return d;const m=gun(d,b.target.x),v=gun(d,b.target.y);return`${m}% ${v}%`}},GFn={correct:(d,{treeScale:b,projectionDelta:m})=>{const v=d,E=K4.parse(d);if(E.length>5)return v;const M=K4.createTransformer(d),k=typeof E[0]!="number"?1:0,L=m.x.scale*b.x,N=m.y.scale*b.y;E[0+k]/=L,E[1+k]/=N;const B=bo(L,N,.5);return typeof E[2+k]=="number"&&(E[2+k]/=B),typeof E[3+k]=="number"&&(E[3+k]/=B),M(E)}};class zFn extends wG.Component{componentDidMount(){const{visualElement:b,layoutGroup:m,switchLayoutGroup:v,layoutId:E}=this.props,{projection:M}=b;XDn(WFn),M&&(m.group&&m.group.add(M),v&&v.register&&E&&v.register(M),M.root.didUpdate(),M.addEventListener("animationComplete",()=>{this.safeToRemove()}),M.setOptions({...M.options,onExitComplete:()=>this.safeToRemove()})),hG.hasEverUpdated=!0}getSnapshotBeforeUpdate(b){const{layoutDependency:m,visualElement:v,drag:E,isPresent:M}=this.props,k=v.projection;return k&&(k.isPresent=M,E||b.layoutDependency!==m||m===void 0?k.willUpdate():this.safeToRemove(),b.isPresent!==M&&(M?k.promote():k.relegate()||Ws.postRender(()=>{const L=k.getStack();(!L||!L.members.length)&&this.safeToRemove()}))),null}componentDidUpdate(){const{projection:b}=this.props.visualElement;b&&(b.root.didUpdate(),Y0e.postRender(()=>{!b.currentAnimation&&b.isLead()&&this.safeToRemove()}))}componentWillUnmount(){const{visualElement:b,layoutGroup:m,switchLayoutGroup:v}=this.props,{projection:E}=b;E&&(E.scheduleCheckAfterUnmount(),m&&m.group&&m.group.remove(E),v&&v.deregister&&v.deregister(E))}safeToRemove(){const{safeToRemove:b}=this.props;b&&b()}render(){return null}}function don(d){const[b,m]=VFn(),v=Ce.useContext(Z0e);return wG.createElement(zFn,{...d,layoutGroup:v,switchLayoutGroup:Ce.useContext(bsn),isPresent:b,safeToRemove:m})}const WFn={borderRadius:{...sI,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:sI,borderTopRightRadius:sI,borderBottomLeftRadius:sI,borderBottomRightRadius:sI,boxShadow:GFn},bon=["TopLeft","TopRight","BottomLeft","BottomRight"],UFn=bon.length,pun=d=>typeof d=="string"?parseFloat(d):d,mun=d=>typeof d=="number"||Qi.test(d);function XFn(d,b,m,v,E,M){E?(d.opacity=bo(0,m.opacity!==void 0?m.opacity:1,YFn(v)),d.opacityExit=bo(b.opacity!==void 0?b.opacity:1,0,QFn(v))):M&&(d.opacity=bo(b.opacity!==void 0?b.opacity:1,m.opacity!==void 0?m.opacity:1,v));for(let k=0;kvb?1:m(yI(d,b,v))}function yun(d,b){d.min=b.min,d.max=b.max}function Mb(d,b){yun(d.x,b.x),yun(d.y,b.y)}function kun(d,b,m,v,E){return d-=b,d=TG(d,1/m,v),E!==void 0&&(d=TG(d,1/E,v)),d}function JFn(d,b=0,m=1,v=.5,E,M=d,k=d){if(Yp.test(b)&&(b=parseFloat(b),b=bo(k.min,k.max,b/100)-k.min),typeof b!="number")return;let L=bo(M.min,M.max,v);d===M&&(L-=b),d.min=kun(d.min,b,m,L,E),d.max=kun(d.max,b,m,L,E)}function jun(d,b,[m,v,E],M,k){JFn(d,b[m],b[v],b[E],b.scale,M,k)}const ZFn=["x","scaleX","originX"],eNn=["y","scaleY","originY"];function Eun(d,b,m,v){jun(d.x,b,ZFn,m?m.x:void 0,v?v.x:void 0),jun(d.y,b,eNn,m?m.y:void 0,v?v.y:void 0)}function Tun(d){return d.translate===0&&d.scale===1}function gon(d){return Tun(d.x)&&Tun(d.y)}function nNn(d,b){return d.x.min===b.x.min&&d.x.max===b.x.max&&d.y.min===b.y.min&&d.y.max===b.y.max}function pon(d,b){return Math.round(d.x.min)===Math.round(b.x.min)&&Math.round(d.x.max)===Math.round(b.x.max)&&Math.round(d.y.min)===Math.round(b.y.min)&&Math.round(d.y.max)===Math.round(b.y.max)}function Cun(d){return Xd(d.x)/Xd(d.y)}class tNn{constructor(){this.members=[]}add(b){pbe(this.members,b),b.scheduleRender()}remove(b){if(mbe(this.members,b),b===this.prevLead&&(this.prevLead=void 0),b===this.lead){const m=this.members[this.members.length-1];m&&this.promote(m)}}relegate(b){const m=this.members.findIndex(E=>b===E);if(m===0)return!1;let v;for(let E=m;E>=0;E--){const M=this.members[E];if(M.isPresent!==!1){v=M;break}}return v?(this.promote(v),!0):!1}promote(b,m){const v=this.lead;if(b!==v&&(this.prevLead=v,this.lead=b,b.show(),v)){v.instance&&v.scheduleRender(),b.scheduleRender(),b.resumeFrom=v,m&&(b.resumeFrom.preserveOpacity=!0),v.snapshot&&(b.snapshot=v.snapshot,b.snapshot.latestValues=v.animationValues||v.latestValues),b.root&&b.root.isUpdating&&(b.isLayoutDirty=!0);const{crossfade:E}=b.options;E===!1&&v.hide()}}exitAnimationComplete(){this.members.forEach(b=>{const{options:m,resumingFrom:v}=b;m.onExitComplete&&m.onExitComplete(),v&&v.options.onExitComplete&&v.options.onExitComplete()})}scheduleRender(){this.members.forEach(b=>{b.instance&&b.scheduleRender(!1)})}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}function Sun(d,b,m){let v="";const E=d.x.translate/b.x,M=d.y.translate/b.y;if((E||M)&&(v=`translate3d(${E}px, ${M}px, 0) `),(b.x!==1||b.y!==1)&&(v+=`scale(${1/b.x}, ${1/b.y}) `),m){const{rotate:N,rotateX:B,rotateY:H}=m;N&&(v+=`rotate(${N}deg) `),B&&(v+=`rotateX(${B}deg) `),H&&(v+=`rotateY(${H}deg) `)}const k=d.x.scale*b.x,L=d.y.scale*b.y;return(k!==1||L!==1)&&(v+=`scale(${k}, ${L})`),v||"none"}const iNn=(d,b)=>d.depth-b.depth;class rNn{constructor(){this.children=[],this.isDirty=!1}add(b){pbe(this.children,b),this.isDirty=!0}remove(b){mbe(this.children,b),this.isDirty=!0}forEach(b){this.isDirty&&this.children.sort(iNn),this.isDirty=!1,this.children.forEach(b)}}function cNn(d,b){const m=z9.now(),v=({timestamp:E})=>{const M=E-m;M>=b&&(_m(v),d(M-b))};return Ws.read(v,!0),()=>_m(v)}function uNn(d){window.MotionDebug&&window.MotionDebug.record(d)}function sNn(d){return d instanceof SVGElement&&d.tagName!=="svg"}function oNn(d,b,m){const v=F1(d)?d:ME(d);return v.start(gbe("",v,b,m)),v.animation}const Mun=["","X","Y","Z"],fNn={visibility:"hidden"},Pun=1e3;let lNn=0;const q9={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0};function mon({attachResizeListener:d,defaultParent:b,measureScroll:m,checkIsScrollRoot:v,resetTransform:E}){return class{constructor(k={},L=b==null?void 0:b()){this.id=lNn++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,q9.totalNodes=q9.resolvedTargetDeltas=q9.recalculatedProjection=0,this.nodes.forEach(dNn),this.nodes.forEach(mNn),this.nodes.forEach(vNn),this.nodes.forEach(bNn),uNn(q9)},this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=k,this.root=L?L.root||L:this,this.path=L?[...L.path,L]:[],this.parent=L,this.depth=L?L.depth+1:0;for(let N=0;Nthis.root.updateBlockedByResize=!1;d(k,()=>{this.root.updateBlockedByResize=!0,G&&G(),G=cNn(Y,250),hG.hasAnimatedSinceResize&&(hG.hasAnimatedSinceResize=!1,this.nodes.forEach(xun))})}N&&this.root.registerSharedNode(N,this),this.options.animate!==!1&&H&&(N||B)&&this.addEventListener("didUpdate",({delta:G,hasLayoutChanged:Y,hasRelativeTargetChanged:ne,layout:J})=>{if(this.isTreeAnimationBlocked()){this.target=void 0,this.relativeTarget=void 0;return}const Re=this.options.transition||H.getDefaultTransition()||TNn,{onLayoutAnimationStart:cn,onLayoutAnimationComplete:kn}=H.getProps(),gn=!this.targetLayout||!pon(this.targetLayout,J)||ne,Ve=!Y&≠if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||Ve||Y&&(gn||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(G,Ve);const Cn={...wbe(Re,"layout"),onPlay:cn,onComplete:kn};(H.shouldReduceMotion||this.options.layoutRoot)&&(Cn.delay=0,Cn.type=!1),this.startAnimation(Cn)}else Y||xun(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=J})}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const k=this.getStack();k&&k.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,_m(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(yNn),this.animationId++)}getTransformTemplate(){const{visualElement:k}=this.options;return k&&k.getProps().transformTemplate}willUpdate(k=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked()){this.options.onExitComplete&&this.options.onExitComplete();return}if(!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let H=0;Hthis.update()))}clearAllSnapshots(){this.nodes.forEach(wNn),this.sharedNodes.forEach(kNn)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Ws.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Ws.postRender(()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()})}updateSnapshot(){this.snapshot||!this.instance||(this.snapshot=this.measure())}updateLayout(){if(!this.instance||(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead())&&!this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let N=0;N{const rt=Cn/1e3;Oun(G.x,k.x,rt),Oun(G.y,k.y,rt),this.setTargetDelta(G),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pI(Y,this.layout.layoutBox,this.relativeParent.layout.layoutBox),jNn(this.relativeTarget,this.relativeTargetOrigin,Y,rt),Ve&&nNn(this.relativeTarget,Ve)&&(this.isProjectionDirty=!1),Ve||(Ve=wf()),Mb(Ve,this.relativeTarget)),Re&&(this.animationValues=H,XFn(H,B,this.latestValues,rt,gn,kn)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=rt},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(k){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(_m(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Ws.update(()=>{hG.hasAnimatedSinceResize=!0,this.currentAnimation=oNn(0,Pun,{...k,onUpdate:L=>{this.mixTargetDelta(L),k.onUpdate&&k.onUpdate(L)},onComplete:()=>{k.onComplete&&k.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0})}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const k=this.getStack();k&&k.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(Pun),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const k=this.getLead();let{targetWithTransforms:L,target:N,layout:B,latestValues:H}=k;if(!(!L||!N||!B)){if(this!==k&&this.layout&&B&&von(this.options.animationType,this.layout.layoutBox,B.layoutBox)){N=this.target||wf();const G=Xd(this.layout.layoutBox.x);N.x.min=k.target.x.min,N.x.max=N.x.min+G;const Y=Xd(this.layout.layoutBox.y);N.y.min=k.target.y.min,N.y.max=N.y.min+Y}Mb(L,N),EE(L,H),gI(this.projectionDeltaWithTransform,this.layoutCorrected,L,H)}}registerSharedNode(k,L){this.sharedNodes.has(k)||this.sharedNodes.set(k,new tNn),this.sharedNodes.get(k).add(L);const B=L.options.initialPromotionConfig;L.promote({transition:B?B.transition:void 0,preserveFollowOpacity:B&&B.shouldPreserveFollowOpacity?B.shouldPreserveFollowOpacity(L):void 0})}isLead(){const k=this.getStack();return k?k.lead===this:!0}getLead(){var k;const{layoutId:L}=this.options;return L?((k=this.getStack())===null||k===void 0?void 0:k.lead)||this:this}getPrevLead(){var k;const{layoutId:L}=this.options;return L?(k=this.getStack())===null||k===void 0?void 0:k.prevLead:void 0}getStack(){const{layoutId:k}=this.options;if(k)return this.root.sharedNodes.get(k)}promote({needsReset:k,transition:L,preserveFollowOpacity:N}={}){const B=this.getStack();B&&B.promote(this,N),k&&(this.projectionDelta=void 0,this.needsReset=!0),L&&this.setOptions({transition:L})}relegate(){const k=this.getStack();return k?k.relegate(this):!1}resetRotation(){const{visualElement:k}=this.options;if(!k)return;let L=!1;const{latestValues:N}=k;if((N.rotate||N.rotateX||N.rotateY||N.rotateZ)&&(L=!0),!L)return;const B={};for(let H=0;H{var L;return(L=k.currentAnimation)===null||L===void 0?void 0:L.stop()}),this.root.nodes.forEach(Aun),this.root.sharedNodes.clear()}}}function aNn(d){d.updateLayout()}function hNn(d){var b;const m=((b=d.resumeFrom)===null||b===void 0?void 0:b.snapshot)||d.snapshot;if(d.isLead()&&d.layout&&m&&d.hasListeners("didUpdate")){const{layoutBox:v,measuredBox:E}=d.layout,{animationType:M}=d.options,k=m.source!==d.layout.source;M==="size"?Pb(G=>{const Y=k?m.measuredBox[G]:m.layoutBox[G],ne=Xd(Y);Y.min=v[G].min,Y.max=Y.min+ne}):von(M,m.layoutBox,v)&&Pb(G=>{const Y=k?m.measuredBox[G]:m.layoutBox[G],ne=Xd(v[G]);Y.max=Y.min+ne,d.relativeTarget&&!d.currentAnimation&&(d.isProjectionDirty=!0,d.relativeTarget[G].max=d.relativeTarget[G].min+ne)});const L=jE();gI(L,v,m.layoutBox);const N=jE();k?gI(N,d.applyTransform(E,!0),m.measuredBox):gI(N,v,m.layoutBox);const B=!gon(L);let H=!1;if(!d.resumeFrom){const G=d.getClosestProjectingParent();if(G&&!G.resumeFrom){const{snapshot:Y,layout:ne}=G;if(Y&&ne){const J=wf();pI(J,m.layoutBox,Y.layoutBox);const Re=wf();pI(Re,v,ne.layoutBox),pon(J,Re)||(H=!0),G.options.layoutRoot&&(d.relativeTarget=Re,d.relativeTargetOrigin=J,d.relativeParent=G)}}}d.notifyListeners("didUpdate",{layout:v,snapshot:m,delta:N,layoutDelta:L,hasLayoutChanged:B,hasRelativeTargetChanged:H})}else if(d.isLead()){const{onExitComplete:v}=d.options;v&&v()}d.options.transition=void 0}function dNn(d){q9.totalNodes++,d.parent&&(d.isProjecting()||(d.isProjectionDirty=d.parent.isProjectionDirty),d.isSharedProjectionDirty||(d.isSharedProjectionDirty=!!(d.isProjectionDirty||d.parent.isProjectionDirty||d.parent.isSharedProjectionDirty)),d.isTransformDirty||(d.isTransformDirty=d.parent.isTransformDirty))}function bNn(d){d.isProjectionDirty=d.isSharedProjectionDirty=d.isTransformDirty=!1}function wNn(d){d.clearSnapshot()}function Aun(d){d.clearMeasurements()}function gNn(d){d.isLayoutDirty=!1}function pNn(d){const{visualElement:b}=d.options;b&&b.getProps().onBeforeLayoutMeasure&&b.notify("BeforeLayoutMeasure"),d.resetTransform()}function xun(d){d.finishAnimation(),d.targetDelta=d.relativeTarget=d.target=void 0,d.isProjectionDirty=!0}function mNn(d){d.resolveTargetDelta()}function vNn(d){d.calcProjection()}function yNn(d){d.resetRotation()}function kNn(d){d.removeLeadSnapshot()}function Oun(d,b,m){d.translate=bo(b.translate,0,m),d.scale=bo(b.scale,1,m),d.origin=b.origin,d.originPoint=b.originPoint}function Iun(d,b,m,v){d.min=bo(b.min,m.min,v),d.max=bo(b.max,m.max,v)}function jNn(d,b,m,v){Iun(d.x,b.x,m.x,v),Iun(d.y,b.y,m.y,v)}function ENn(d){return d.animationValues&&d.animationValues.opacityExit!==void 0}const TNn={duration:.45,ease:[.4,0,.1,1]},Dun=d=>typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(d),Lun=Dun("applewebkit/")&&!Dun("chrome/")?Math.round:gf;function $un(d){d.min=Lun(d.min),d.max=Lun(d.max)}function CNn(d){$un(d.x),$un(d.y)}function von(d,b,m){return d==="position"||d==="preserve-aspect"&&!x0e(Cun(b),Cun(m),.2)}const SNn=mon({attachResizeListener:(d,b)=>Lm(d,"resize",b),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),d0e={current:void 0},yon=mon({measureScroll:d=>({x:d.scrollLeft,y:d.scrollTop}),defaultParent:()=>{if(!d0e.current){const d=new SNn({});d.mount(window),d.setOptions({layoutScroll:!0}),d0e.current=d}return d0e.current},resetTransform:(d,b)=>{d.style.transform=b!==void 0?b:"none"},checkIsScrollRoot:d=>window.getComputedStyle(d).position==="fixed"}),MNn={pan:{Feature:HFn},drag:{Feature:qFn,ProjectionNode:yon,MeasureLayout:don}},PNn=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/;function ANn(d){const b=PNn.exec(d);if(!b)return[,];const[,m,v]=b;return[m,v]}function L0e(d,b,m=1){const[v,E]=ANn(d);if(!v)return;const M=window.getComputedStyle(b).getPropertyValue(v);if(M){const k=M.trim();return non(k)?parseFloat(k):k}else return pG(E)?L0e(E,b,m+1):E}function xNn(d,{...b},m){const v=d.current;if(!(v instanceof Element))return{target:b,transitionEnd:m};m&&(m={...m}),d.values.forEach(E=>{const M=E.get();if(!pG(M))return;const k=L0e(M,v);k&&E.set(k)});for(const E in b){const M=b[E];if(!pG(M))continue;const k=L0e(M,v);k&&(b[E]=k,m||(m={}),m[E]===void 0&&(m[E]=M))}return{target:b,transitionEnd:m}}const ONn=new Set(["width","height","top","left","right","bottom","x","y","translateX","translateY"]),kon=d=>ONn.has(d),INn=d=>Object.keys(d).some(kon),Fun=d=>d===DE||d===Qi,Nun=(d,b)=>parseFloat(d.split(", ")[b]),_un=(d,b)=>(m,{transform:v})=>{if(v==="none"||!v)return 0;const E=v.match(/^matrix3d\((.+)\)$/);if(E)return Nun(E[1],b);{const M=v.match(/^matrix\((.+)\)$/);return M?Nun(M[1],d):0}},DNn=new Set(["x","y","z"]),LNn=EI.filter(d=>!DNn.has(d));function $Nn(d){const b=[];return LNn.forEach(m=>{const v=d.getValue(m);v!==void 0&&(b.push([m,v.get()]),v.set(m.startsWith("scale")?1:0))}),b.length&&d.render(),b}const PE={width:({x:d},{paddingLeft:b="0",paddingRight:m="0"})=>d.max-d.min-parseFloat(b)-parseFloat(m),height:({y:d},{paddingTop:b="0",paddingBottom:m="0"})=>d.max-d.min-parseFloat(b)-parseFloat(m),top:(d,{top:b})=>parseFloat(b),left:(d,{left:b})=>parseFloat(b),bottom:({y:d},{top:b})=>parseFloat(b)+(d.max-d.min),right:({x:d},{left:b})=>parseFloat(b)+(d.max-d.min),x:_un(4,13),y:_un(5,14)};PE.translateX=PE.x;PE.translateY=PE.y;const FNn=(d,b,m)=>{const v=b.measureViewportBox(),E=b.current,M=getComputedStyle(E),{display:k}=M,L={};k==="none"&&b.setStaticValue("display",d.display||"block"),m.forEach(B=>{L[B]=PE[B](v,M)}),b.render();const N=b.measureViewportBox();return m.forEach(B=>{const H=b.getValue(B);H&&H.jump(L[B]),d[B]=PE[B](N,M)}),d},NNn=(d,b,m={},v={})=>{b={...b},v={...v};const E=Object.keys(b).filter(kon);let M=[],k=!1;const L=[];if(E.forEach(N=>{const B=d.getValue(N);if(!d.hasValue(N))return;let H=m[N],G=uI(H);const Y=b[N];let ne;if(vG(Y)){const J=Y.length,Re=Y[0]===null?1:0;H=Y[Re],G=uI(H);for(let cn=Re;cn=0?window.pageYOffset:null,B=FNn(b,d,L);return M.length&&M.forEach(([H,G])=>{d.getValue(H).set(G)}),d.render(),DG&&N!==null&&window.scrollTo({top:N}),{target:B,transitionEnd:v}}else return{target:b,transitionEnd:v}};function _Nn(d,b,m,v){return INn(b)?NNn(d,b,m,v):{target:b,transitionEnd:v}}const BNn=(d,b,m,v)=>{const E=xNn(d,b,v);return b=E.target,v=E.transitionEnd,_Nn(d,b,m,v)},$0e={current:null},jon={current:!1};function RNn(){if(jon.current=!0,!!DG)if(window.matchMedia){const d=window.matchMedia("(prefers-reduced-motion)"),b=()=>$0e.current=d.matches;d.addListener(b),b()}else $0e.current=!1}function KNn(d,b,m){const{willChange:v}=b;for(const E in b){const M=b[E],k=m[E];if(F1(M))d.addValue(E,M),EG(v)&&v.add(E);else if(F1(k))d.addValue(E,ME(M,{owner:d})),EG(v)&&v.remove(E);else if(k!==M)if(d.hasValue(E)){const L=d.getValue(E);!L.hasAnimated&&L.set(M)}else{const L=d.getStaticValue(E);d.addValue(E,ME(L!==void 0?L:M,{owner:d}))}}for(const E in m)b[E]===void 0&&d.removeValue(E);return b}const Bun=new WeakMap,Eon=Object.keys(vI),qNn=Eon.length,Run=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"],HNn=J0e.length;class VNn{constructor({parent:b,props:m,presenceContext:v,reducedMotionConfig:E,visualState:M},k={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.scheduleRender=()=>Ws.render(this.render,!1,!0);const{latestValues:L,renderState:N}=M;this.latestValues=L,this.baseTarget={...L},this.initialValues=m.initial?{...L}:{},this.renderState=N,this.parent=b,this.props=m,this.presenceContext=v,this.depth=b?b.depth+1:0,this.reducedMotionConfig=E,this.options=k,this.isControllingVariants=FG(m),this.isVariantNode=dsn(m),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=!!(b&&b.current);const{willChange:B,...H}=this.scrapeMotionValuesFromProps(m,{});for(const G in H){const Y=H[G];L[G]!==void 0&&F1(Y)&&(Y.set(L[G],!1),EG(B)&&B.add(G))}}scrapeMotionValuesFromProps(b,m){return{}}mount(b){this.current=b,Bun.set(b,this),this.projection&&!this.projection.instance&&this.projection.mount(b),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach((m,v)=>this.bindToMotionValue(v,m)),jon.current||RNn(),this.shouldReduceMotion=this.reducedMotionConfig==="never"?!1:this.reducedMotionConfig==="always"?!0:$0e.current,this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Bun.delete(this.current),this.projection&&this.projection.unmount(),_m(this.notifyUpdate),_m(this.render),this.valueSubscriptions.forEach(b=>b()),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const b in this.events)this.events[b].clear();for(const b in this.features)this.features[b].unmount();this.current=null}bindToMotionValue(b,m){const v=X9.has(b),E=m.on("change",k=>{this.latestValues[b]=k,this.props.onUpdate&&Ws.update(this.notifyUpdate,!1,!0),v&&this.projection&&(this.projection.isTransformDirty=!0)}),M=m.on("renderRequest",this.scheduleRender);this.valueSubscriptions.set(b,()=>{E(),M()})}sortNodePosition(b){return!this.current||!this.sortInstanceNodePosition||this.type!==b.type?0:this.sortInstanceNodePosition(this.current,b.current)}loadFeatures({children:b,...m},v,E,M){let k,L;for(let N=0;Nthis.scheduleRender(),animationType:typeof B=="string"?B:"both",initialPromotionConfig:M,layoutScroll:Y,layoutRoot:ne})}return L}updateFeatures(){for(const b in this.features){const m=this.features[b];m.isMounted?m.update():(m.mount(),m.isMounted=!0)}}triggerBuild(){this.build(this.renderState,this.latestValues,this.options,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):wf()}getStaticValue(b){return this.latestValues[b]}setStaticValue(b,m){this.latestValues[b]=m}makeTargetAnimatable(b,m=!0){return this.makeTargetAnimatableFromInstance(b,m)}update(b,m){(b.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=b,this.prevPresenceContext=this.presenceContext,this.presenceContext=m;for(let v=0;vm.variantChildren.delete(b)}addValue(b,m){m!==this.values.get(b)&&(this.removeValue(b),this.bindToMotionValue(b,m)),this.values.set(b,m),this.latestValues[b]=m.get()}removeValue(b){this.values.delete(b);const m=this.valueSubscriptions.get(b);m&&(m(),this.valueSubscriptions.delete(b)),delete this.latestValues[b],this.removeValueFromRenderState(b,this.renderState)}hasValue(b){return this.values.has(b)}getValue(b,m){if(this.props.values&&this.props.values[b])return this.props.values[b];let v=this.values.get(b);return v===void 0&&m!==void 0&&(v=ME(m,{owner:this}),this.addValue(b,v)),v}readValue(b){var m;return this.latestValues[b]!==void 0||!this.current?this.latestValues[b]:(m=this.getBaseTargetFromProps(this.props,b))!==null&&m!==void 0?m:this.readValueFromInstance(this.current,b,this.options)}setBaseTarget(b,m){this.baseTarget[b]=m}getBaseTarget(b){var m;const{initial:v}=this.props,E=typeof v=="string"||typeof v=="object"?(m=sbe(this.props,v))===null||m===void 0?void 0:m[b]:void 0;if(v&&E!==void 0)return E;const M=this.getBaseTargetFromProps(this.props,b);return M!==void 0&&!F1(M)?M:this.initialValues[b]!==void 0&&E===void 0?void 0:this.baseTarget[b]}on(b,m){return this.events[b]||(this.events[b]=new vbe),this.events[b].add(m)}notify(b,...m){this.events[b]&&this.events[b].notify(...m)}}class Ton extends VNn{sortInstanceNodePosition(b,m){return b.compareDocumentPosition(m)&2?1:-1}getBaseTargetFromProps(b,m){return b.style?b.style[m]:void 0}removeValueFromRenderState(b,{vars:m,style:v}){delete m[b],delete v[b]}makeTargetAnimatableFromInstance({transition:b,transitionEnd:m,...v},E){const M=oFn(v,b||{},this);if(E){uFn(this,v,M);const k=BNn(this,v,M,m);m=k.transitionEnd,v=k.target}return{transition:b,transitionEnd:m,...v}}}function GNn(d){return window.getComputedStyle(d)}class zNn extends Ton{constructor(){super(...arguments),this.type="html"}readValueFromInstance(b,m){if(X9.has(m)){const v=bbe(m);return v&&v.default||0}else{const v=GNn(b),E=(psn(m)?v.getPropertyValue(m):v[m])||0;return typeof E=="string"?E.trim():E}}measureInstanceViewportBox(b,{transformPagePoint:m}){return aon(b,m)}build(b,m,v,E){tbe(b,m,v,E.transformTemplate)}scrapeMotionValuesFromProps(b,m){return ube(b,m)}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:b}=this.props;F1(b)&&(this.childSubscription=b.on("change",m=>{this.current&&(this.current.textContent=`${m}`)}))}renderInstance(b,m,v,E){jsn(b,m,v,E)}}class WNn extends Ton{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1}getBaseTargetFromProps(b,m){return b[m]}readValueFromInstance(b,m){if(X9.has(m)){const v=bbe(m);return v&&v.default||0}return m=Esn.has(m)?m:X0e(m),b.getAttribute(m)}measureInstanceViewportBox(){return wf()}scrapeMotionValuesFromProps(b,m){return Csn(b,m)}build(b,m,v,E){rbe(b,m,v,this.isSVGTag,E.transformTemplate)}renderInstance(b,m,v,E){Tsn(b,m,v,E)}mount(b){this.isSVGTag=cbe(b.tagName),super.mount(b)}}const UNn=(d,b)=>ebe(d)?new WNn(b,{enableHardwareAcceleration:!1}):new zNn(b,{enableHardwareAcceleration:!0}),XNn={layout:{ProjectionNode:yon,MeasureLayout:don}},YNn={...jFn,...NLn,...MNn,...XNn},U9=WDn((d,b)=>TLn(d,b,YNn,UNn));function Con(){const d=Ce.useRef(!1);return LG(()=>(d.current=!0,()=>{d.current=!1}),[]),d}function QNn(){const d=Con(),[b,m]=Ce.useState(0),v=Ce.useCallback(()=>{d.current&&m(b+1)},[b]);return[Ce.useCallback(()=>Ws.postRender(v),[v]),b]}class JNn extends Ce.Component{getSnapshotBeforeUpdate(b){const m=this.props.childRef.current;if(m&&b.isPresent&&!this.props.isPresent){const v=this.props.sizeRef.current;v.height=m.offsetHeight||0,v.width=m.offsetWidth||0,v.top=m.offsetTop,v.left=m.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function ZNn({children:d,isPresent:b}){const m=Ce.useId(),v=Ce.useRef(null),E=Ce.useRef({width:0,height:0,top:0,left:0});return Ce.useInsertionEffect(()=>{const{width:M,height:k,top:L,left:N}=E.current;if(b||!v.current||!M||!k)return;v.current.dataset.motionPopId=m;const B=document.createElement("style");return document.head.appendChild(B),B.sheet&&B.sheet.insertRule(`
+ [data-motion-pop-id="${m}"] {
+ position: absolute !important;
+ width: ${M}px !important;
+ height: ${k}px !important;
+ top: ${L}px !important;
+ left: ${N}px !important;
+ }
+ `),()=>{document.head.removeChild(B)}},[b]),Ce.createElement(JNn,{isPresent:b,childRef:v,sizeRef:E},Ce.cloneElement(d,{ref:v}))}const b0e=({children:d,initial:b,isPresent:m,onExitComplete:v,custom:E,presenceAffectsLayout:M,mode:k})=>{const L=obe(e_n),N=Ce.useId(),B=Ce.useMemo(()=>({id:N,initial:b,isPresent:m,custom:E,onExitComplete:H=>{L.set(H,!0);for(const G of L.values())if(!G)return;v&&v()},register:H=>(L.set(H,!1),()=>L.delete(H))}),M?void 0:[m]);return Ce.useMemo(()=>{L.forEach((H,G)=>L.set(G,!1))},[m]),Ce.useEffect(()=>{!m&&!L.size&&v&&v()},[m]),k==="popLayout"&&(d=Ce.createElement(ZNn,{isPresent:m},d)),Ce.createElement(IG.Provider,{value:B},d)};function e_n(){return new Map}function n_n(d){return Ce.useEffect(()=>()=>d(),[])}const H9=d=>d.key||"";function t_n(d,b){d.forEach(m=>{const v=H9(m);b.set(v,m)})}function i_n(d){const b=[];return Ce.Children.forEach(d,m=>{Ce.isValidElement(m)&&b.push(m)}),b}const r_n=({children:d,custom:b,initial:m=!0,onExitComplete:v,exitBeforeEnter:E,presenceAffectsLayout:M=!0,mode:k="sync"})=>{const L=Ce.useContext(Z0e).forceRender||QNn()[0],N=Con(),B=i_n(d);let H=B;const G=Ce.useRef(new Map).current,Y=Ce.useRef(H),ne=Ce.useRef(new Map).current,J=Ce.useRef(!0);if(LG(()=>{J.current=!1,t_n(B,ne),Y.current=H}),n_n(()=>{J.current=!0,ne.clear(),G.clear()}),J.current)return Ce.createElement(Ce.Fragment,null,H.map(gn=>Ce.createElement(b0e,{key:H9(gn),isPresent:!0,initial:m?void 0:!1,presenceAffectsLayout:M,mode:k},gn)));H=[...H];const Re=Y.current.map(H9),cn=B.map(H9),kn=Re.length;for(let gn=0;gn{if(cn.indexOf(Ve)!==-1)return;const Cn=ne.get(Ve);if(!Cn)return;const rt=Re.indexOf(Ve);let Rt=gn;if(!Rt){const Wt=()=>{G.delete(Ve);const Tt=Array.from(ne.keys()).filter(Pi=>!cn.includes(Pi));if(Tt.forEach(Pi=>ne.delete(Pi)),Y.current=B.filter(Pi=>{const br=H9(Pi);return br===Ve||Tt.includes(br)}),!G.size){if(N.current===!1)return;L(),v&&v()}};Rt=Ce.createElement(b0e,{key:H9(Cn),isPresent:!1,onExitComplete:Wt,custom:b,presenceAffectsLayout:M,mode:k},Cn),G.set(Ve,Rt)}H.splice(rt,0,Rt)}),H=H.map(gn=>{const Ve=gn.key;return G.has(Ve)?gn:Ce.createElement(b0e,{key:H9(gn),isPresent:!0,presenceAffectsLayout:M,mode:k},gn)}),Ce.createElement(Ce.Fragment,null,G.size?H:H.map(gn=>Ce.cloneElement(gn)))};function c_n(d){d.values.forEach(b=>b.stop())}function u_n(){const d=new Set,b={subscribe(m){return d.add(m),()=>void d.delete(m)},start(m,v){const E=[];return d.forEach(M=>{E.push(con(M,m,{transitionOverride:v}))}),Promise.all(E)},set(m){return d.forEach(v=>{cFn(v,m)})},stop(){d.forEach(m=>{c_n(m)})},mount(){return()=>{b.stop()}}};return b}function s_n(){const d=obe(u_n);return LG(d.mount,[]),d}const o_n=s_n;var Son={exports:{}};/*!
+ Copyright (c) 2018 Jed Watson.
+ Licensed under the MIT License (MIT), see
+ http://jedwatson.github.io/classnames
+*/(function(d){(function(){var b={}.hasOwnProperty;function m(){for(var v=[],E=0;E=0)return 1;return 0}();function a_n(d){var b=!1;return function(){b||(b=!0,window.Promise.resolve().then(function(){b=!1,d()}))}}function h_n(d){var b=!1;return function(){b||(b=!0,setTimeout(function(){b=!1,d()},l_n))}}var d_n=MI&&window.Promise,b_n=d_n?a_n:h_n;function Mon(d){var b={};return d&&b.toString.call(d)==="[object Function]"}function Y9(d,b){if(d.nodeType!==1)return[];var m=d.ownerDocument.defaultView,v=m.getComputedStyle(d,null);return b?v[b]:v}function kbe(d){return d.nodeName==="HTML"?d:d.parentNode||d.host}function PI(d){if(!d)return document.body;switch(d.nodeName){case"HTML":case"BODY":return d.ownerDocument.body;case"#document":return d.body}var b=Y9(d),m=b.overflow,v=b.overflowX,E=b.overflowY;return/(auto|scroll|overlay)/.test(m+E+v)?d:PI(kbe(d))}function Pon(d){return d&&d.referenceNode?d.referenceNode:d}var Kun=MI&&!!(window.MSInputMethodContext&&document.documentMode),qun=MI&&/MSIE 10/.test(navigator.userAgent);function LE(d){return d===11?Kun:d===10?qun:Kun||qun}function AE(d){if(!d)return document.documentElement;for(var b=LE(10)?document.body:null,m=d.offsetParent||null;m===b&&d.nextElementSibling;)m=(d=d.nextElementSibling).offsetParent;var v=m&&m.nodeName;return!v||v==="BODY"||v==="HTML"?d?d.ownerDocument.documentElement:document.documentElement:["TH","TD","TABLE"].indexOf(m.nodeName)!==-1&&Y9(m,"position")==="static"?AE(m):m}function w_n(d){var b=d.nodeName;return b==="BODY"?!1:b==="HTML"||AE(d.firstElementChild)===d}function F0e(d){return d.parentNode!==null?F0e(d.parentNode):d}function CG(d,b){if(!d||!d.nodeType||!b||!b.nodeType)return document.documentElement;var m=d.compareDocumentPosition(b)&Node.DOCUMENT_POSITION_FOLLOWING,v=m?d:b,E=m?b:d,M=document.createRange();M.setStart(v,0),M.setEnd(E,0);var k=M.commonAncestorContainer;if(d!==k&&b!==k||v.contains(E))return w_n(k)?k:AE(k);var L=F0e(d);return L.host?CG(L.host,b):CG(d,F0e(b).host)}function xE(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:"top",m=b==="top"?"scrollTop":"scrollLeft",v=d.nodeName;if(v==="BODY"||v==="HTML"){var E=d.ownerDocument.documentElement,M=d.ownerDocument.scrollingElement||E;return M[m]}return d[m]}function g_n(d,b){var m=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!1,v=xE(b,"top"),E=xE(b,"left"),M=m?-1:1;return d.top+=v*M,d.bottom+=v*M,d.left+=E*M,d.right+=E*M,d}function Hun(d,b){var m=b==="x"?"Left":"Top",v=m==="Left"?"Right":"Bottom";return parseFloat(d["border"+m+"Width"])+parseFloat(d["border"+v+"Width"])}function Vun(d,b,m,v){return Math.max(b["offset"+d],b["scroll"+d],m["client"+d],m["offset"+d],m["scroll"+d],LE(10)?parseInt(m["offset"+d])+parseInt(v["margin"+(d==="Height"?"Top":"Left")])+parseInt(v["margin"+(d==="Height"?"Bottom":"Right")]):0)}function Aon(d){var b=d.body,m=d.documentElement,v=LE(10)&&getComputedStyle(m);return{height:Vun("Height",b,m,v),width:Vun("Width",b,m,v)}}var p_n=function(d,b){if(!(d instanceof b))throw new TypeError("Cannot call a class as a function")},m_n=function(){function d(b,m){for(var v=0;v2&&arguments[2]!==void 0?arguments[2]:!1,v=LE(10),E=b.nodeName==="HTML",M=N0e(d),k=N0e(b),L=PI(d),N=Y9(b),B=parseFloat(N.borderTopWidth),H=parseFloat(N.borderLeftWidth);m&&E&&(k.top=Math.max(k.top,0),k.left=Math.max(k.left,0));var G=q4({top:M.top-k.top-B,left:M.left-k.left-H,width:M.width,height:M.height});if(G.marginTop=0,G.marginLeft=0,!v&&E){var Y=parseFloat(N.marginTop),ne=parseFloat(N.marginLeft);G.top-=B-Y,G.bottom-=B-Y,G.left-=H-ne,G.right-=H-ne,G.marginTop=Y,G.marginLeft=ne}return(v&&!m?b.contains(L):b===L&&L.nodeName!=="BODY")&&(G=g_n(G,b)),G}function v_n(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=d.ownerDocument.documentElement,v=jbe(d,m),E=Math.max(m.clientWidth,window.innerWidth||0),M=Math.max(m.clientHeight,window.innerHeight||0),k=b?0:xE(m),L=b?0:xE(m,"left"),N={top:k-v.top+v.marginTop,left:L-v.left+v.marginLeft,width:E,height:M};return q4(N)}function xon(d){var b=d.nodeName;if(b==="BODY"||b==="HTML")return!1;if(Y9(d,"position")==="fixed")return!0;var m=kbe(d);return m?xon(m):!1}function Oon(d){if(!d||!d.parentElement||LE())return document.documentElement;for(var b=d.parentElement;b&&Y9(b,"transform")==="none";)b=b.parentElement;return b||document.documentElement}function Ebe(d,b,m,v){var E=arguments.length>4&&arguments[4]!==void 0?arguments[4]:!1,M={top:0,left:0},k=E?Oon(d):CG(d,Pon(b));if(v==="viewport")M=v_n(k,E);else{var L=void 0;v==="scrollParent"?(L=PI(kbe(b)),L.nodeName==="BODY"&&(L=d.ownerDocument.documentElement)):v==="window"?L=d.ownerDocument.documentElement:L=v;var N=jbe(L,k,E);if(L.nodeName==="HTML"&&!xon(k)){var B=Aon(d.ownerDocument),H=B.height,G=B.width;M.top+=N.top-N.marginTop,M.bottom=H+N.top,M.left+=N.left-N.marginLeft,M.right=G+N.left}else M=N}m=m||0;var Y=typeof m=="number";return M.left+=Y?m:m.left||0,M.top+=Y?m:m.top||0,M.right-=Y?m:m.right||0,M.bottom-=Y?m:m.bottom||0,M}function y_n(d){var b=d.width,m=d.height;return b*m}function Ion(d,b,m,v,E){var M=arguments.length>5&&arguments[5]!==void 0?arguments[5]:0;if(d.indexOf("auto")===-1)return d;var k=Ebe(m,v,M,E),L={top:{width:k.width,height:b.top-k.top},right:{width:k.right-b.right,height:k.height},bottom:{width:k.width,height:k.bottom-b.bottom},left:{width:b.left-k.left,height:k.height}},N=Object.keys(L).map(function(Y){return Ab({key:Y},L[Y],{area:y_n(L[Y])})}).sort(function(Y,ne){return ne.area-Y.area}),B=N.filter(function(Y){var ne=Y.width,J=Y.height;return ne>=m.clientWidth&&J>=m.clientHeight}),H=B.length>0?B[0].key:N[0].key,G=d.split("-")[1];return H+(G?"-"+G:"")}function Don(d,b,m){var v=arguments.length>3&&arguments[3]!==void 0?arguments[3]:null,E=v?Oon(b):CG(b,Pon(m));return jbe(m,E,v)}function Lon(d){var b=d.ownerDocument.defaultView,m=b.getComputedStyle(d),v=parseFloat(m.marginTop||0)+parseFloat(m.marginBottom||0),E=parseFloat(m.marginLeft||0)+parseFloat(m.marginRight||0),M={width:d.offsetWidth+E,height:d.offsetHeight+v};return M}function SG(d){var b={left:"right",right:"left",bottom:"top",top:"bottom"};return d.replace(/left|right|bottom|top/g,function(m){return b[m]})}function $on(d,b,m){m=m.split("-")[0];var v=Lon(d),E={width:v.width,height:v.height},M=["right","left"].indexOf(m)!==-1,k=M?"top":"left",L=M?"left":"top",N=M?"height":"width",B=M?"width":"height";return E[k]=b[k]+b[N]/2-v[N]/2,m===L?E[L]=b[L]-v[B]:E[L]=b[SG(L)],E}function AI(d,b){return Array.prototype.find?d.find(b):d.filter(b)[0]}function k_n(d,b,m){if(Array.prototype.findIndex)return d.findIndex(function(E){return E[b]===m});var v=AI(d,function(E){return E[b]===m});return d.indexOf(v)}function Fon(d,b,m){var v=m===void 0?d:d.slice(0,k_n(d,"name",m));return v.forEach(function(E){E.function&&console.warn("`modifier.function` is deprecated, use `modifier.fn`!");var M=E.function||E.fn;E.enabled&&Mon(M)&&(b.offsets.popper=q4(b.offsets.popper),b.offsets.reference=q4(b.offsets.reference),b=M(b,E))}),b}function j_n(){if(!this.state.isDestroyed){var d={instance:this,styles:{},arrowStyles:{},attributes:{},flipped:!1,offsets:{}};d.offsets.reference=Don(this.state,this.popper,this.reference,this.options.positionFixed),d.placement=Ion(this.options.placement,d.offsets.reference,this.popper,this.reference,this.options.modifiers.flip.boundariesElement,this.options.modifiers.flip.padding),d.originalPlacement=d.placement,d.positionFixed=this.options.positionFixed,d.offsets.popper=$on(this.popper,d.offsets.reference,d.placement),d.offsets.popper.position=this.options.positionFixed?"fixed":"absolute",d=Fon(this.modifiers,d),this.state.isCreated?this.options.onUpdate(d):(this.state.isCreated=!0,this.options.onCreate(d))}}function Non(d,b){return d.some(function(m){var v=m.name,E=m.enabled;return E&&v===b})}function Tbe(d){for(var b=[!1,"ms","Webkit","Moz","O"],m=d.charAt(0).toUpperCase()+d.slice(1),v=0;vk[ne]&&(d.offsets.popper[G]+=L[G]+J-k[ne]),d.offsets.popper=q4(d.offsets.popper);var Re=L[G]+L[B]/2-J/2,cn=Y9(d.instance.popper),kn=parseFloat(cn["margin"+H]),gn=parseFloat(cn["border"+H+"Width"]),Ve=Re-d.offsets.popper[G]-kn-gn;return Ve=Math.max(Math.min(k[B]-J,Ve),0),d.arrowElement=v,d.offsets.arrow=(m={},OE(m,G,Math.round(Ve)),OE(m,Y,""),m),d}function $_n(d){return d==="end"?"start":d==="start"?"end":d}var Kon=["auto-start","auto","auto-end","top-start","top","top-end","right-start","right","right-end","bottom-end","bottom","bottom-start","left-end","left","left-start"],w0e=Kon.slice(3);function Gun(d){var b=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,m=w0e.indexOf(d),v=w0e.slice(m+1).concat(w0e.slice(0,m));return b?v.reverse():v}var g0e={FLIP:"flip",CLOCKWISE:"clockwise",COUNTERCLOCKWISE:"counterclockwise"};function F_n(d,b){if(Non(d.instance.modifiers,"inner")||d.flipped&&d.placement===d.originalPlacement)return d;var m=Ebe(d.instance.popper,d.instance.reference,b.padding,b.boundariesElement,d.positionFixed),v=d.placement.split("-")[0],E=SG(v),M=d.placement.split("-")[1]||"",k=[];switch(b.behavior){case g0e.FLIP:k=[v,E];break;case g0e.CLOCKWISE:k=Gun(v);break;case g0e.COUNTERCLOCKWISE:k=Gun(v,!0);break;default:k=b.behavior}return k.forEach(function(L,N){if(v!==L||k.length===N+1)return d;v=d.placement.split("-")[0],E=SG(v);var B=d.offsets.popper,H=d.offsets.reference,G=Math.floor,Y=v==="left"&&G(B.right)>G(H.left)||v==="right"&&G(B.left)G(H.top)||v==="bottom"&&G(B.top)G(m.right),Re=G(B.top)G(m.bottom),kn=v==="left"&&ne||v==="right"&&J||v==="top"&&Re||v==="bottom"&&cn,gn=["top","bottom"].indexOf(v)!==-1,Ve=!!b.flipVariations&&(gn&&M==="start"&&ne||gn&&M==="end"&&J||!gn&&M==="start"&&Re||!gn&&M==="end"&&cn),Cn=!!b.flipVariationsByContent&&(gn&&M==="start"&&J||gn&&M==="end"&&ne||!gn&&M==="start"&&cn||!gn&&M==="end"&&Re),rt=Ve||Cn;(Y||kn||rt)&&(d.flipped=!0,(Y||kn)&&(v=k[N+1]),rt&&(M=$_n(M)),d.placement=v+(M?"-"+M:""),d.offsets.popper=Ab({},d.offsets.popper,$on(d.instance.popper,d.offsets.reference,d.placement)),d=Fon(d.instance.modifiers,d,"flip"))}),d}function N_n(d){var b=d.offsets,m=b.popper,v=b.reference,E=d.placement.split("-")[0],M=Math.floor,k=["top","bottom"].indexOf(E)!==-1,L=k?"right":"bottom",N=k?"left":"top",B=k?"width":"height";return m[L]M(v[L])&&(d.offsets.popper[N]=M(v[L])),d}function __n(d,b,m,v){var E=d.match(/((?:\-|\+)?\d*\.?\d*)(.*)/),M=+E[1],k=E[2];if(!M)return d;if(k.indexOf("%")===0){var L=void 0;switch(k){case"%p":L=m;break;case"%":case"%r":default:L=v}var N=q4(L);return N[b]/100*M}else if(k==="vh"||k==="vw"){var B=void 0;return k==="vh"?B=Math.max(document.documentElement.clientHeight,window.innerHeight||0):B=Math.max(document.documentElement.clientWidth,window.innerWidth||0),B/100*M}else return M}function B_n(d,b,m,v){var E=[0,0],M=["right","left"].indexOf(v)!==-1,k=d.split(/(\+|\-)/).map(function(H){return H.trim()}),L=k.indexOf(AI(k,function(H){return H.search(/,|\s/)!==-1}));k[L]&&k[L].indexOf(",")===-1&&console.warn("Offsets separated by white space(s) are deprecated, use a comma (,) instead.");var N=/\s*,\s*|\s+/,B=L!==-1?[k.slice(0,L).concat([k[L].split(N)[0]]),[k[L].split(N)[1]].concat(k.slice(L+1))]:[k];return B=B.map(function(H,G){var Y=(G===1?!M:M)?"height":"width",ne=!1;return H.reduce(function(J,Re){return J[J.length-1]===""&&["+","-"].indexOf(Re)!==-1?(J[J.length-1]=Re,ne=!0,J):ne?(J[J.length-1]+=Re,ne=!1,J):J.concat(Re)},[]).map(function(J){return __n(J,Y,b,m)})}),B.forEach(function(H,G){H.forEach(function(Y,ne){Cbe(Y)&&(E[G]+=Y*(H[ne-1]==="-"?-1:1))})}),E}function R_n(d,b){var m=b.offset,v=d.placement,E=d.offsets,M=E.popper,k=E.reference,L=v.split("-")[0],N=void 0;return Cbe(+m)?N=[+m,0]:N=B_n(m,M,k,L),L==="left"?(M.top+=N[0],M.left-=N[1]):L==="right"?(M.top+=N[0],M.left+=N[1]):L==="top"?(M.left+=N[0],M.top-=N[1]):L==="bottom"&&(M.left+=N[0],M.top+=N[1]),d.popper=M,d}function K_n(d,b){var m=b.boundariesElement||AE(d.instance.popper);d.instance.reference===m&&(m=AE(m));var v=Tbe("transform"),E=d.instance.popper.style,M=E.top,k=E.left,L=E[v];E.top="",E.left="",E[v]="";var N=Ebe(d.instance.popper,d.instance.reference,b.padding,m,d.positionFixed);E.top=M,E.left=k,E[v]=L,b.boundaries=N;var B=b.priority,H=d.offsets.popper,G={primary:function(ne){var J=H[ne];return H[ne]N[ne]&&!b.escapeWithReference&&(Re=Math.min(H[J],N[ne]-(ne==="right"?H.width:H.height))),OE({},J,Re)}};return B.forEach(function(Y){var ne=["left","top"].indexOf(Y)!==-1?"primary":"secondary";H=Ab({},H,G[ne](Y))}),d.offsets.popper=H,d}function q_n(d){var b=d.placement,m=b.split("-")[0],v=b.split("-")[1];if(v){var E=d.offsets,M=E.reference,k=E.popper,L=["bottom","top"].indexOf(m)!==-1,N=L?"left":"top",B=L?"width":"height",H={start:OE({},N,M[N]),end:OE({},N,M[N]+M[B]-k[B])};d.offsets.popper=Ab({},k,H[v])}return d}function H_n(d){if(!Ron(d.instance.modifiers,"hide","preventOverflow"))return d;var b=d.offsets.reference,m=AI(d.instance.modifiers,function(v){return v.name==="preventOverflow"}).boundaries;if(b.bottomm.right||b.top>m.bottom||b.right2&&arguments[2]!==void 0?arguments[2]:{};p_n(this,d),this.scheduleUpdate=function(){return requestAnimationFrame(v.update)},this.update=b_n(this.update.bind(this)),this.options=Ab({},d.Defaults,E),this.state={isDestroyed:!1,isCreated:!1,scrollParents:[]},this.reference=b&&b.jquery?b[0]:b,this.popper=m&&m.jquery?m[0]:m,this.options.modifiers={},Object.keys(Ab({},d.Defaults.modifiers,E.modifiers)).forEach(function(k){v.options.modifiers[k]=Ab({},d.Defaults.modifiers[k]||{},E.modifiers?E.modifiers[k]:{})}),this.modifiers=Object.keys(this.options.modifiers).map(function(k){return Ab({name:k},v.options.modifiers[k])}).sort(function(k,L){return k.order-L.order}),this.modifiers.forEach(function(k){k.enabled&&Mon(k.onLoad)&&k.onLoad(v.reference,v.popper,v.options,k,v.state)}),this.update();var M=this.options.eventsEnabled;M&&this.enableEventListeners(),this.state.eventsEnabled=M}return m_n(d,[{key:"update",value:function(){return j_n.call(this)}},{key:"destroy",value:function(){return E_n.call(this)}},{key:"enableEventListeners",value:function(){return C_n.call(this)}},{key:"disableEventListeners",value:function(){return M_n.call(this)}}]),d}();BG.Utils=(typeof window<"u"?window:global).PopperUtils;BG.placements=Kon;BG.Defaults=z_n;const W_n=BG;(function(){try{if(typeof document<"u"){var d=document.createElement("style");d.appendChild(document.createTextNode(`._backdrop_uxwv8_1 {
+ position: fixed;
+ background: var(--color-layer-transparent);
+ top: 0;
+ bottom: 0;
+ right: 0;
+ left: 0;
+ opacity: 0;
+ user-select: none;
+}`)),document.head.appendChild(d)}}catch(b){console.error("vite-plugin-css-injected-by-js",b)}})();const U_n=({ref:d,open:b=!0,onClickOutside:m,onEscape:v})=>{Ce.useEffect(()=>{if(!b)return;const E=k=>{d.current&&!d.current.contains(k.target)&&(m==null||m(k))},M=k=>{k.code==="Escape"&&(v==null||v(k))};return m&&(document.addEventListener("mousedown",E),document.addEventListener("touchstart",E)),v&&document.addEventListener("keydown",M),()=>{m&&(document.removeEventListener("mousedown",E),document.removeEventListener("touchstart",E)),v&&document.removeEventListener("keydown",M)}},[d,m,v,b])},X_n=Ce.createContext({close:()=>{}});let Y_n=0;const Q_n=()=>`ref-${++Y_n}`,Sbe=d=>{const[b]=Ce.useState(d||Q_n());return`${b}`},J_n=d=>{const b=Ce.useRef(d);b.current=d,Ce.useLayoutEffect(()=>()=>b.current(),[])},Z_n=Ce.forwardRef(({children:d,className:b,element:m="div",onMount:v,onUnmount:E},M)=>{const k=Ce.useRef(null),L=Ce.useRef(!1);return Ce.useEffect(()=>{b&&k.current&&k.current.setAttribute("class",`${b} rdk-portal`)},[b,k.current]),Ce.useLayoutEffect(()=>{k.current=document.createElement(m),v==null||v()},[]),J_n(()=>{E==null||E();const N=k.current;N&&document.body.contains(N)&&document.body.removeChild(N)}),Ce.useImperativeHandle(M,()=>k.current),k.current?(L.current||(L.current=!0,k.current.classList.add("rdk-portal"),document.body.appendChild(k.current)),$Dn.createPortal(d,k.current)):null}),TE=[],eBn=990,qon=Ce.forwardRef(({className:d,children:b,onMount:m,onUnmount:v,appendToBody:E,id:M},k)=>{let L=Sbe(M);const[N,B]=Ce.useState(null),[H,G]=Ce.useState(null),Y=Ce.useRef(null);return Ce.useImperativeHandle(k,()=>Y.current),xt.jsx(Z_n,{className:d,ref:Y,appendToBody:E,onMount:()=>{TE.push(L);let ne=TE.indexOf(L);B(ne);const J=eBn+ne*2+1;G(J),m==null||m({portalId:L,overlayIndex:J,portalIndex:ne,backdropIndex:J})},onUnmount:()=>{v==null||v(),TE.splice(TE.indexOf(L),1),B(null),G(null)},children:b({overlayIndex:H,portalIndex:N,backdropIndex:H,portalId:L})})});qon.defaultProps={appendToBody:!0};const nBn=Ce.forwardRef(({children:d,className:b,elementType:m="span",trigger:v=["click"],onOpen:E=()=>{},onClose:M=()=>{}},k)=>{const L=Ce.useCallback(cn=>Array.isArray(v)?v.includes(cn):cn===v,[v]),N=Ce.useCallback(cn=>{L("focus")&&E({type:"focus",nativeEvent:cn})},[E,L]),B=Ce.useCallback(cn=>{L("focus")&&M({type:"focus",nativeEvent:cn})},[M,L]),H=Ce.useCallback(cn=>{L("hover")&&E({type:"hover",nativeEvent:cn})},[E,L]),G=Ce.useCallback(cn=>{L("hover")&&M({type:"hover",nativeEvent:cn})},[M,L]),Y=Ce.useCallback(cn=>{L("click")&&E({type:"click",nativeEvent:cn}),L("click")||M({type:"hover",nativeEvent:cn})},[E,M,L]),ne=Ce.useCallback(cn=>{L("contextmenu")&&(cn.preventDefault(),E({type:"contextmenu",nativeEvent:cn}))},[E]),J=L("focus")?-1:void 0,Re=m;return xt.jsx(Re,{ref:k,tabIndex:J,onMouseEnter:H,onMouseLeave:G,onFocus:N,onBlur:B,onClick:Y,onContextMenu:ne,className:b,children:d})}),tBn=(d,{followCursor:b,placement:m,modifiers:v}={})=>{const E=Ce.useRef(null),M=Ce.useRef(null),k=Ce.useRef({pageX:0,pageY:0}),L=d.current,N=Ce.useMemo(()=>{const B=d;if(B.current!==void 0)return B.current;const H=d;if(b)return{getBoundingClientRect:()=>({top:k.current.pageY,right:k.current.pageX,bottom:k.current.pageY,left:k.current.pageX,width:0,height:0}),clientWidth:0,clientHeight:0};if(H&&!H.getBoundingClientRect){const{top:G,left:Y,width:ne,height:J}=d;return{getBoundingClientRect:()=>({top:G,left:Y,width:ne,bottom:G-J,right:Y-ne,height:J}),clientWidth:ne,clientHeight:J}}return H},[b,d,L,k]);return Ce.useLayoutEffect(()=>{let B;const H=({pageX:Y,pageY:ne})=>{var J;k.current={pageX:Y,pageY:ne},(J=M.current)==null||J.scheduleUpdate()},G=()=>{B=requestAnimationFrame(()=>{var Y;(Y=M.current)==null||Y.scheduleUpdate()})};return E.current&&N&&(M.current=new W_n(N,E.current,{placement:m||"top",modifiers:v||{},onCreate:()=>{window.addEventListener("scroll",G),b&&window.addEventListener("mousemove",H)}})),()=>{var Y;E.current||((Y=M.current)==null||Y.destroy(),cancelAnimationFrame(B),window.removeEventListener("scroll",G),b&&window.removeEventListener("mousemove",H))}},[E.current]),Ce.useLayoutEffect(()=>{M.current&&(M.current.reference=N,M.current.scheduleUpdate())},[N]),[E,M]};function xh({children:d,element:b,childRef:m,...v}){const E=Ce.useMemo(()=>L=>{const N=b.props;return Object.keys(L).reduce((B,H)=>{const G=L[H],Y=N[H];return typeof G=="function"&&typeof Y=="function"?B[H]=(...ne)=>{G(...ne),Y(...ne)}:H==="className"?B[H]=xb(G,Y):B[H]=G,B},{})},[v]);if(b===null)return d;const M=m?L=>{typeof m=="function"?m(L):M&&(m.current=L)}:void 0,k=E(v);return Ce.cloneElement(b,{...b.props,...k,children:d,ref:M})}const Hon=Ce.forwardRef(({triggerRef:d,children:b,portalClassName:m,closeOnBodyClick:v,closeOnEscape:E,elementType:M,appendToBody:k,followCursor:L,modifiers:N,placement:B,onClose:H},G)=>{const Y=Sbe(),[ne,J]=Ce.useState(null),[Re,cn]=tBn(d,{followCursor:L,modifiers:N,placement:B});Ce.useImperativeHandle(G,()=>({updatePosition:()=>{var Ve;(Ve=cn==null?void 0:cn.current)==null||Ve.scheduleUpdate()}}));const kn=Ce.useCallback(Ve=>{if(v){let Cn=null;d.current?Cn=d.current:d.contains!==void 0&&(Cn=d);const rt=Ve.target.closest(".rdk-portal"),Rt=TE.indexOf(Y)===TE.length-1;!(Cn!=null&&Cn.contains(Ve.target))&&(Rt||!rt)&&(H==null||H(Ve))}},[v,H]),gn=Ce.useCallback(()=>{E&&(H==null||H())},[E,H]);return U_n({open:!0,ref:Re,onClickOutside:kn,onEscape:gn}),Ce.useEffect(()=>{Re&&ne&&(Re.current.style.zIndex=ne)},[Re.current,ne]),xt.jsx(qon,{id:Y,ref:Re,className:m,elementType:M,appendToBody:k,onMount:Ve=>J(Ve.overlayIndex),onUnmount:()=>J(null),children:b})});Hon.defaultProps={closeOnBodyClick:!0,closeOnEscape:!0,appendToBody:!0,placement:"bottom"};const iBn=Ce.forwardRef(({reference:d,children:b,open:m,content:v,triggerElement:E,triggerClassName:M,trigger:k,onOpen:L,onClose:N,...B},H)=>{const G=Ce.useRef(!1),Y=Ce.useRef(null),ne=Ce.useRef(null),J=d||Y;Ce.useImperativeHandle(H,()=>({updatePosition:()=>{var cn;(cn=ne.current)==null||cn.updatePosition()}})),Ce.useEffect(()=>{G.current&&(m?L==null||L():N==null||N())},[m]),Ce.useEffect(()=>{G.current||(G.current=!0)});const Re=Ce.useMemo(()=>({close:()=>N==null?void 0:N()}),[N]);return xt.jsxs(X_n.Provider,{value:Re,children:[b&&xt.jsx(Ce.Fragment,{children:k?xt.jsx(nBn,{elementType:E,ref:Y,className:M,trigger:k,onOpen:L,onClose:N,children:b}):b}),xt.jsx(r_n,{children:m&&xt.jsx(Hon,{...B,ref:ne,triggerRef:J,onClose:N,children:v})})]})});iBn.defaultProps={trigger:"click"};function B0e(d,b){return d.map(function(m,v){return m+b[v]})}function Mbe(d,b){return d.map(function(m,v){return m-b[v]})}function kI(d){return Math.hypot.apply(Math,d)}function Von(d,b){b===void 0&&(b=d);var m=kI(b),v=m===0?0:1/m,E=b.map(function(k){return v*k}),M=kI(d);return{distance:M,direction:E}}function Gon(d,b,m){var v=kI(b),E=v===0?0:1/v,M=m===0?0:1/m,k=M*v,L=b.map(function(H){return M*H}),N=b.map(function(H){return E*H}),B=kI(d);return{velocities:L,velocity:k,distance:B,direction:N}}function MG(d){return Math.sign?Math.sign(d):+(d>0)-+(d<0)||+d}function rBn(d,b,m){return Math.max(b,Math.min(d,m))}function cBn(d,b){return Math.pow(d,b*5)}function zun(d,b,m){return b===0||Math.abs(b)===1/0?cBn(d,m):d*b*m/(b+m*d)}function Wun(d,b,m,v){return v===void 0&&(v=.15),v===0?rBn(d,b,m):dm?+zun(d-m,m-b,v)+m:d}function Uun(d,b){for(var m=0;m=0)&&(m[E]=d[E]);return m}function bs(d){if(d===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d}function oBn(d,b){if(d){if(typeof d=="string")return Xun(d,b);var m=Object.prototype.toString.call(d).slice(8,-1);if(m==="Object"&&d.constructor&&(m=d.constructor.name),m==="Map"||m==="Set")return Array.from(d);if(m==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(m))return Xun(d,b)}}function Xun(d,b){(b==null||b>d.length)&&(b=d.length);for(var m=0,v=new Array(b);m"u"||d[Symbol.iterator]==null){if(Array.isArray(d)||(m=oBn(d))||b&&d&&typeof d.length=="number"){m&&(d=m);var v=0;return function(){return v>=d.length?{done:!0}:{done:!1,value:d[v++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
+In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}return m=d[Symbol.iterator](),m.next.bind(m)}function zon(){}function Won(){for(var d=arguments.length,b=new Array(d),m=0;m1?b-1:0),v=1;v0,H},swipeVelocity:function(b){return b===void 0&&(b=aBn),_4(b)},swipeDistance:function(b){return b===void 0&&(b=hBn),_4(b)},delay:function(b){switch(b===void 0&&(b=0),b){case!0:return fBn;case!1:return 0;default:return b}}});function Xon(d){return d===void 0&&(d={}),xI(d,bBn)}function p0e(d){return d===void 0&&(d={}),xI(d,Pbe)}function pBn(d){return d===void 0&&(d={}),xI(d,wBn)}function Yon(d){return d===void 0&&(d={}),xI(d,gBn)}function mBn(d){var b=d.domTarget,m=d.eventOptions,v=d.window,E=d.enabled,M=sBn(d,["domTarget","eventOptions","window","enabled"]),k=Xon({domTarget:b,eventOptions:m,window:v,enabled:E});return k.drag=Yon(M),k}function vBn(d,b){d===void 0&&(d={}),b===void 0&&(b=new Set);var m=d,v=m.drag,E=m.wheel,M=m.move,k=m.scroll,L=m.pinch,N=m.hover,B=m.eventOptions,H=m.window,G=m.domTarget,Y=m.enabled,ne=Xon({eventOptions:B,window:H,domTarget:G,enabled:Y});return b.has("onDrag")&&(ne.drag=Yon(v)),b.has("onWheel")&&(ne.wheel=p0e(E)),b.has("onScroll")&&(ne.scroll=p0e(k)),b.has("onMove")&&(ne.move=p0e(M)),b.has("onPinch")&&(ne.pinch=pBn(L)),b.has("onHover")&&(ne.hover=mc({enabled:!0},N)),ne}function oI(d){return mc({_active:!1,_blocked:!1,_intentional:[!1,!1],_movement:[0,0],_initial:[0,0],_bounds:[[-1/0,1/0],[-1/0,1/0]],_lastEventType:void 0,event:void 0,intentional:!1,values:[0,0],velocities:[0,0],delta:[0,0],movement:[0,0],offset:[0,0],lastOffset:[0,0],direction:[0,0],initial:[0,0],previous:[0,0],first:!1,last:!1,active:!1,timeStamp:0,startTime:0,elapsedTime:0,cancel:zon,canceled:!1,memo:void 0,args:void 0},d)}function Qon(){var d={hovering:!1,scrolling:!1,wheeling:!1,dragging:!1,moving:!1,pinching:!1,touches:0,buttons:0,down:!1,shiftKey:!1,altKey:!1,metaKey:!1,ctrlKey:!1},b=oI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0,_isTap:!0,_delayedEvent:!1,_pointerId:void 0,tap:!1,swipe:[0,0]}),m=oI({da:[0,0],vdva:[0,0],origin:void 0,turns:0}),v=oI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),E=oI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0}),M=oI({axis:void 0,xy:[0,0],vxvy:[0,0],velocity:0,distance:0});return{shared:d,drag:b,pinch:m,wheel:v,move:E,scroll:M}}var Ud=new Map,Jon=function(){function d(m,v){var E=this;v===void 0&&(v=[]),this.controller=m,this.args=v,this.debounced=!0,this.setTimeout=function(M,k){var L;k===void 0&&(k=140),clearTimeout(E.controller.timeouts[E.stateKey]);for(var N=arguments.length,B=new Array(N>2?N-2:0),H=2;H=b?MG(d)*b:!1}function Jun(d,b,m){var v=b[0],E=b[1],M=m[0],k=m[1],L=d[0],N=L[0],B=L[1],H=d[1],G=H[0],Y=H[1];return[Wun(v,N,B,M),Wun(E,G,Y,k)]}function ll(d,b,m){var v=d.state,E=d.args,M=b.timeStamp,k=b.type,L=v.values,N=m?0:M-v.startTime;return{_lastEventType:k,event:b,timeStamp:M,elapsedTime:N,args:E,previous:L}}function W9(d,b,m){var v=d.state.offset,E=m.timeStamp;return mc({},Qon()[d.stateKey],{_active:!0,values:b,initial:b,offset:v,lastOffset:v,startTime:E})}function yBn(d,b){return function(m){for(var v=arguments.length,E=new Array(v>1?v-1:0),M=1;MN?"x":L0?b:m}return null}function Wd(d){var b="buttons"in d?d.buttons:0,m=ifn(d),v=m&&m.length||0,E=v>0||b>0,M=d.shiftKey,k=d.altKey,L=d.metaKey,N=d.ctrlKey;return{touches:v,down:E,buttons:b,shiftKey:M,altKey:k,metaKey:L,ctrlKey:N}}function SE(d){var b=ifn(d),m=b?b[0]:d,v=m.clientX,E=m.clientY;return[v,E]}function IBn(d){var b=d.currentTarget,m=b.scrollX,v=b.scrollY,E=b.scrollLeft,M=b.scrollTop;return[m||E||0,v||M||0]}function rfn(d){var b=d.deltaX,m=d.deltaY;return[b,m]}function Zun(d){return[d.scale*ABn,d.rotation]}function esn(d){var b,m=d.targetTouches,v=m[0],E=m[1],M=E.clientX-v.clientX,k=E.clientY-v.clientY,L=(E.clientX+v.clientX)/2,N=(E.clientY+v.clientY)/2,B="nativeEvent"in d?d.nativeEvent:d,H=Math.hypot(M,k),G=(b=B.rotation)!=null?b:-(Math.atan2(M,k)*180)/Math.PI,Y=[H,G],ne=[L,N];return{values:Y,origin:ne}}var DBn=3,LBn=220,cfn=function(d){Q9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="dragging",v.stateKey="drag",v.onDragStart=function(E){!v.enabled||v.state._active||(TBn(v.controller,v.stateKey,[["pointermove",v.onDragChange],["pointerup",v.onDragEnd],["pointercancel",v.onDragEnd]]),v.updateGestureState({_pointerId:E.pointerId}),v.config.delay>0?(v.state._delayedEvent=!0,"persist"in E&&typeof E.persist=="function"&&E.persist(),v.setTimeout(v.startDrag.bind(bs(v)),v.config.delay,E)):v.startDrag(E))},v.onDragChange=function(E){if(!v.state.canceled&&E.pointerId===v.state._pointerId){if(!v.state._active){v.state._delayedEvent&&(v.clearTimeout(),v.startDrag(E));return}var M=Wd(E);if(!M.down){v.onDragEnd(E);return}v.updateSharedState(M);var k=SE(E),L=v.getKinematics(k,E),N=ll(bs(v),E),B=v.state._isTap,H=kI(L._movement);B&&H>=DBn&&(B=!1),v.updateGestureState(mc({},N,L,{_isTap:B})),v.fireGestureHandler()}},v.onDragEnd=function(E){if(E.pointerId===v.state._pointerId){v.state._active=!1,v.updateSharedState({down:!1,buttons:0,touches:0});var M=v.state._isTap,k=v.state.velocities,L=k[0],N=k[1],B=v.state.movement,H=B[0],G=B[1],Y=v.state._intentional,ne=Y[0],J=Y[1],Re=v.config.swipeVelocity,cn=Re[0],kn=Re[1],gn=v.config.swipeDistance,Ve=gn[0],Cn=gn[1],rt=mc({},ll(bs(v),E),v.getMovement(v.state.values)),Rt=[0,0];rt.elapsedTimecn&&Math.abs(H)>Ve&&(Rt[0]=MG(L)),J!==!1&&Math.abs(N)>kn&&Math.abs(G)>Cn&&(Rt[1]=MG(N))),v.updateGestureState(mc({},rt,{tap:M,swipe:Rt})),v.fireGestureHandler(M===!0)}},v.clean=function(){d.prototype.clean.call(bs(v)),v.state._delayedEvent=!1,EBn(v.controller,v.stateKey)},v.onCancel=function(){v.state.canceled||(v.updateGestureState({canceled:!0}),v.state._active=!1,v.updateSharedState({down:!1,buttons:0,touches:0}),requestAnimationFrame(function(){return v.fireGestureHandler()}))},v.onClick=function(E){v.state._isTap||E.stopPropagation()},v}var m=b.prototype;return m.startDrag=function(E){var M=SE(E);this.updateSharedState(Wd(E)),this.updateGestureState(mc({},W9(this,M,E),ll(this,E,!0),{_pointerId:E.pointerId,cancel:this.onCancel})),this.updateGestureState(this.getMovement(M)),this.fireGestureHandler()},m.addBindings=function(E){if(Va(E,"onPointerDown",this.onDragStart),this.config.filterTaps){var M=this.controller.config.eventOptions.capture?"onClick":"onClickCapture";Va(E,M,this.onClick)}},b}(KG);function $Bn(d,b){var m,v=[],E,M=!1;function k(){for(var L=arguments.length,N=new Array(L),B=0;B270&&(G+=MG(H)),Mbe([L,B-360*G],M.initial)},m.getKinematics=function(E,M){var k=this.getMovement(E),L=(E[1]-k.movement[1]-this.state.initial[1])/360,N=M.timeStamp-this.state.timeStamp,B=Gon(k.movement,k.delta,N);return mc({turns:L},k,B)},m.mapStateValues=function(E){return{da:E.values,vdva:E.velocities}},b}(Jon),BBn=function(d){Q9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="pinching",v.stateKey="pinch",v.pinchShouldStart=function(E){var M=Wd(E),k=M.touches;return v.enabled&&k===2},v.onPinchStart=function(E){if(v.pinchShouldStart(E)){var M=esn(E),k=M.values,L=M.origin;v.updateSharedState(Wd(E)),v.updateGestureState(mc({},W9(bs(v),k,E),ll(bs(v),E,!0),{cancel:v.onCancel,origin:L})),v.updateGestureState(v.getMovement(k)),v.fireGestureHandler()}},v.onPinchChange=function(E){var M=v.state,k=M.canceled,L=M._active;if(!(k||!L)){var N=Wd(E);v.updateSharedState(N);var B=esn(E),H=B.values,G=B.origin,Y=v.getKinematics(H,E);v.updateGestureState(mc({},ll(bs(v),E),Y,{origin:G})),v.fireGestureHandler()}},v.onPinchEnd=function(E){v.state.active&&(v.state._active=!1,v.updateSharedState({down:!1,touches:0}),v.updateGestureState(mc({},ll(bs(v),E),v.getMovement(v.state.values))),v.fireGestureHandler())},v.onCancel=function(){v.state.canceled||(v.state._active=!1,v.updateGestureState({canceled:!0}),v.updateSharedState({down:!1,touches:0}),requestAnimationFrame(function(){return v.fireGestureHandler()}))},v.onGestureStart=function(E){if(v.enabled){E.preventDefault();var M=Zun(E);v.updateSharedState(Wd(E)),v.updateGestureState(mc({},W9(bs(v),M,E),ll(bs(v),E,!0),{origin:[E.clientX,E.clientY],cancel:v.onCancel})),v.updateGestureState(v.getMovement(M)),v.fireGestureHandler()}},v.onGestureChange=function(E){var M=v.state,k=M.canceled,L=M._active;if(!(k||!L)){E.preventDefault();var N=Wd(E);v.updateSharedState(N);var B=Zun(E),H=v.getKinematics(B,E);v.updateGestureState(mc({},ll(bs(v),E),H,{origin:[E.clientX,E.clientY]})),v.fireGestureHandler()}},v.onGestureEnd=function(E){E.preventDefault(),v.state.active&&(v.state._active=!1,v.updateSharedState({down:!1,touches:0}),v.updateGestureState(mc({},ll(bs(v),E),v.getMovement(v.state.values),{origin:[E.clientX,E.clientY]})),v.fireGestureHandler())},v.wheelShouldRun=function(E){return v.enabled&&E.ctrlKey},v.getWheelValuesFromEvent=function(E){var M=rfn(E),k=M[1],L=v.state.values,N=L[0],B=L[1],H=N-k,G=B!==void 0?B:0;return{values:[H,G],origin:[E.clientX,E.clientY],delta:[0,k]}},v.onWheel=function(E){v.wheelShouldRun(E)&&(v.setTimeout(v.onWheelEnd),v.state._active?v.onWheelChange(E):v.onWheelStart(E))},v.onWheelStart=function(E){var M=v.getWheelValuesFromEvent(E),k=M.values,L=M.delta,N=M.origin;E.cancelable&&E.preventDefault(),v.updateSharedState(Wd(E)),v.updateGestureState(mc({},W9(bs(v),k,E),ll(bs(v),E,!0),{initial:v.state.values,offset:k,delta:L,origin:N})),v.updateGestureState(v.getMovement(k)),v.fireGestureHandler()},v.onWheelChange=function(E){v.updateSharedState(Wd(E));var M=v.getWheelValuesFromEvent(E),k=M.values,L=M.origin,N=M.delta;v.updateGestureState(mc({},ll(bs(v),E),v.getKinematics(k,E),{origin:L,delta:N})),v.fireGestureHandler()},v.onWheelEnd=function(){v.state._active=!1,v.updateGestureState(v.getMovement(v.state.values)),v.fireGestureHandler()},v}var m=b.prototype;return m.addBindings=function(E){this.controller.config.domTarget&&!OBn()&&xBn()?(Va(E,"onGestureStart",this.onGestureStart),Va(E,"onGestureChange",this.onGestureChange),Va(E,"onGestureEnd",this.onGestureEnd)):(Va(E,"onTouchStart",this.onPinchStart),Va(E,"onTouchMove",this.onPinchChange),Va(E,"onTouchEnd",this.onPinchEnd),Va(E,"onTouchCancel",this.onPinchEnd),Va(E,"onWheel",this.onWheel))},b}(_Bn),RBn=function(d){Q9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="wheeling",v.stateKey="wheel",v.debounced=!0,v.handleEvent=function(E){if(!(E.ctrlKey&&"pinch"in v.controller.handlers)&&v.enabled){v.setTimeout(v.onEnd),v.updateSharedState(Wd(E));var M=B0e(rfn(E),v.state.values);if(v.state._active)v.updateGestureState(mc({},ll(bs(v),E),v.getKinematics(M,E)));else{v.updateGestureState(mc({},W9(bs(v),M,E),ll(bs(v),E,!0),{initial:v.state.values}));var k=v.getMovement(M),L=Von(k.delta);v.updateGestureState(k),v.updateGestureState(L)}v.fireGestureHandler()}},v.onEnd=function(){var E=v.getMovement(v.state.values);v.updateGestureState(E),v.updateGestureState({_active:!1,velocities:[0,0],velocity:0}),v.fireGestureHandler()},v}var m=b.prototype;return m.addBindings=function(E){Va(E,"onWheel",this.handleEvent)},b}(KG),nsn=function(d){Q9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="moving",v.stateKey="move",v.debounced=!0,v.onMove=function(E){v.enabled&&(v.setTimeout(v.onMoveEnd),v.state._active?v.onMoveChange(E):v.onMoveStart(E))},v.onMoveStart=function(E){v.updateSharedState(Wd(E));var M=SE(E);v.updateGestureState(mc({},W9(bs(v),M,E),ll(bs(v),E,!0))),v.updateGestureState(v.getMovement(M)),v.fireGestureHandler()},v.onMoveChange=function(E){v.updateSharedState(Wd(E));var M=SE(E);v.updateGestureState(mc({},ll(bs(v),E),v.getKinematics(M,E))),v.fireGestureHandler()},v.onMoveEnd=function(){var E=v.state.values;v.updateGestureState(v.getMovement(E)),v.updateGestureState({velocities:[0,0],velocity:0,_active:!1}),v.fireGestureHandler()},v.onPointerEnter=function(E){if(v.controller.state.shared.hovering=!0,!!v.controller.config.enabled){if(v.controller.config.hover.enabled){var M=SE(E),k=mc({},v.controller.state.shared,v.state,ll(bs(v),E,!0),{values:M,active:!0,hovering:!0});v.controller.handlers.hover(mc({},k,v.mapStateValues(k)))}"move"in v.controller.handlers&&v.onMoveStart(E)}},v.onPointerLeave=function(E){if(v.controller.state.shared.hovering=!1,"move"in v.controller.handlers&&v.onMoveEnd(),!!v.controller.config.hover.enabled){var M=SE(E),k=mc({},v.controller.state.shared,v.state,ll(bs(v),E),{values:M,active:!1});v.controller.handlers.hover(mc({},k,v.mapStateValues(k)))}},v}var m=b.prototype;return m.addBindings=function(E){"move"in this.controller.handlers&&Va(E,"onPointerMove",this.onMove),"hover"in this.controller.handlers&&(Va(E,"onPointerEnter",this.onPointerEnter),Va(E,"onPointerLeave",this.onPointerLeave))},b}(KG),KBn=function(d){Q9(b,d);function b(){var v;return v=d.apply(this,arguments)||this,v.ingKey="scrolling",v.stateKey="scroll",v.debounced=!0,v.handleEvent=function(E){if(v.enabled){v.clearTimeout(),v.setTimeout(v.onEnd);var M=IBn(E);if(v.updateSharedState(Wd(E)),v.state._active)v.updateGestureState(mc({},ll(bs(v),E),v.getKinematics(M,E)));else{v.updateGestureState(mc({},W9(bs(v),M,E),ll(bs(v),E,!0),{initial:v.state.values}));var k=v.getMovement(M),L=Von(k.delta);v.updateGestureState(k),v.updateGestureState(L)}v.fireGestureHandler()}},v.onEnd=function(){v.state._active=!1,v.updateGestureState(mc({},v.getMovement(v.state.values),{velocities:[0,0],velocity:0})),v.fireGestureHandler()},v}var m=b.prototype;return m.addBindings=function(E){Va(E,"onScroll",this.handleEvent)},b}(KG),qBn=/^on(Drag|Wheel|Scroll|Move|Pinch|Hover)/;function HBn(d){var b={},m={},v=new Set;for(var E in d)qBn.test(E)?(v.add(RegExp.lastMatch),m[E]=d[E]):b[E]=d[E];return[m,b,v]}function VBn(d,b){b===void 0&&(b={});var m=HBn(d),v=m[0],E=m[1],M=m[2];Ud.set("drag",cfn),Ud.set("hover",nsn),Ud.set("move",nsn),Ud.set("pinch",BBn),Ud.set("scroll",KBn),Ud.set("wheel",RBn);var k=vBn(b,M),L={};return M.has("onDrag")&&(L.drag=fI(v,"onDrag")),M.has("onWheel")&&(L.wheel=fI(v,"onWheel")),M.has("onScroll")&&(L.scroll=fI(v,"onScroll")),M.has("onMove")&&(L.move=fI(v,"onMove")),M.has("onPinch")&&(L.pinch=fI(v,"onPinch")),M.has("onHover")&&(L.hover=v.onHover),tfn(L,k,E)}function fI(d,b){var m=b+"Start",v=b+"End",E=function(k){var L=void 0;return k.first&&m in d&&d[m](k),b in d&&(L=d[b](k)),k.last&&v in d&&d[v](k),L};return E}var ufn={exports:{}};(function(d,b){(function(m){d.exports=m()})(function(){return function(){function m(v,E,M){function k(B,H){if(!E[B]){if(!v[B]){var G=typeof cG=="function"&&cG;if(!H&&G)return G(B,!0);if(L)return L(B,!0);var Y=new Error("Cannot find module '"+B+"'");throw Y.code="MODULE_NOT_FOUND",Y}var ne=E[B]={exports:{}};v[B][0].call(ne.exports,function(J){var Re=v[B][1][J];return k(Re||J)},ne,ne.exports,m,v,E,M)}return E[B].exports}for(var L=typeof cG=="function"&&cG,N=0;N0&&arguments[0]!==void 0?arguments[0]:{},Y=G.defaultLayoutOptions,ne=Y===void 0?{}:Y,J=G.algorithms,Re=J===void 0?["layered","stress","mrtree","radial","force","disco","sporeOverlap","sporeCompaction","rectpacking"]:J,cn=G.workerFactory,kn=G.workerUrl;if(k(this,B),this.defaultLayoutOptions=ne,this.initialized=!1,typeof kn>"u"&&typeof cn>"u")throw new Error("Cannot construct an ELK without both 'workerUrl' and 'workerFactory'.");var gn=cn;typeof kn<"u"&&typeof cn>"u"&&(gn=function(rt){return new Worker(rt)});var Ve=gn(kn);if(typeof Ve.postMessage!="function")throw new TypeError("Created worker does not provide the required 'postMessage' function.");this.worker=new N(Ve),this.worker.postMessage({cmd:"register",algorithms:Re}).then(function(Cn){return H.initialized=!0}).catch(console.err)}return M(B,[{key:"layout",value:function(G){var Y=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=Y.layoutOptions,J=ne===void 0?this.defaultLayoutOptions:ne,Re=Y.logging,cn=Re===void 0?!1:Re,kn=Y.measureExecutionTime,gn=kn===void 0?!1:kn;return G?this.worker.postMessage({cmd:"layout",graph:G,layoutOptions:J,options:{logging:cn,measureExecutionTime:gn}}):Promise.reject(new Error("Missing mandatory parameter 'graph'."))}},{key:"knownLayoutAlgorithms",value:function(){return this.worker.postMessage({cmd:"algorithms"})}},{key:"knownLayoutOptions",value:function(){return this.worker.postMessage({cmd:"options"})}},{key:"knownLayoutCategories",value:function(){return this.worker.postMessage({cmd:"categories"})}},{key:"terminateWorker",value:function(){this.worker.terminate()}}]),B}();E.default=L;var N=function(){function B(H){var G=this;if(k(this,B),H===void 0)throw new Error("Missing mandatory parameter 'worker'.");this.resolvers={},this.worker=H,this.worker.onmessage=function(Y){setTimeout(function(){G.receive(G,Y)},0)}}return M(B,[{key:"postMessage",value:function(G){var Y=this.id||0;this.id=Y+1,G.id=Y;var ne=this;return new Promise(function(J,Re){ne.resolvers[Y]=function(cn,kn){cn?(ne.convertGwtStyleError(cn),Re(cn)):J(kn)},ne.worker.postMessage(G)})}},{key:"receive",value:function(G,Y){var ne=Y.data,J=G.resolvers[ne.id];J&&(delete G.resolvers[ne.id],ne.error?J(ne.error):J(null,ne.data))}},{key:"terminate",value:function(){this.worker.terminate&&this.worker.terminate()}},{key:"convertGwtStyleError",value:function(G){if(G){var Y=G.__java$exception;Y&&(Y.cause&&Y.cause.backingJsObject&&(G.cause=Y.cause.backingJsObject,this.convertGwtStyleError(G.cause)),delete G.__java$exception)}}}]),B}()},{}],2:[function(m,v,E){(function(M){(function(){var k;typeof window<"u"?k=window:typeof M<"u"?k=M:typeof self<"u"&&(k=self);var L;function N(){}function B(){}function H(){}function G(){}function Y(){}function ne(){}function J(){}function Re(){}function cn(){}function kn(){}function gn(){}function Ve(){}function Cn(){}function rt(){}function Rt(){}function Wt(){}function Tt(){}function Pi(){}function br(){}function Mr(){}function Pr(){}function Bi(){}function di(){}function vc(){}function Vi(){}function si(){}function W(){}function qo(){}function al(){}function Kr(){}function vu(){}function bg(){}function Ob(){}function Yd(){}function Bl(){}function N1(){}function wg(){}function Pc(){}function Ss(){}function Lf(){}function lu(){}function wo(){}function hl(){}function Ib(){}function V4(){}function DI(){}function _1(){}function B1(){}function Bm(){}function ws(){}function G4(){}function J9(){}function gg(){}function Ho(){}function Db(){}function Lb(){}function LI(){}function HG(){}function Z9(){}function $I(){}function FI(){}function NI(){}function _I(){}function BI(){}function Dt(){}function $c(){}function Vc(){}function pg(){}function RI(){}function KI(){}function qI(){}function HI(){}function VI(){}function $E(){}function FE(){}function NE(){}function _E(){}function BE(){}function RE(){}function xbe(){}function Obe(){}function Ibe(){}function Dbe(){}function Lbe(){}function $be(){}function Fbe(){}function Nbe(){}function _be(){}function Bbe(){}function Rbe(){}function Kbe(){}function qbe(){}function VG(){}function Hbe(){}function Vbe(){}function Gbe(){}function zbe(){}function GI(){}function zI(){}function KE(){}function Wbe(){}function Ube(){}function WI(){}function Xbe(){}function Ybe(){}function Qbe(){}function qE(){}function Jbe(){}function Zbe(){}function ewe(){}function nwe(){}function twe(){}function iwe(){}function rwe(){}function cwe(){}function uwe(){}function GG(){}function swe(){}function owe(){}function fwe(){}function lwe(){}function awe(){}function zG(){}function hwe(){}function dwe(){}function bwe(){}function wwe(){}function gwe(){}function pwe(){}function mwe(){}function vwe(){}function ywe(){}function kwe(){}function jwe(){}function Ewe(){}function Twe(){}function Cwe(){}function UI(){}function Swe(){}function Mwe(){}function Pwe(){}function Awe(){}function xwe(){}function WG(){}function Owe(){}function Iwe(){}function Dwe(){}function Lwe(){}function $we(){}function Fwe(){}function Nwe(){}function _we(){}function Bwe(){}function Rwe(){}function Kwe(){}function qwe(){}function Hwe(){}function Vwe(){}function Gwe(){}function zwe(){}function Wwe(){}function Uwe(){}function Xwe(){}function Ywe(){}function Qwe(){}function Jwe(){}function Zwe(){}function ege(){}function nge(){}function tge(){}function ige(){}function rge(){}function cge(){}function uge(){}function sge(){}function oge(){}function fge(){}function lge(){}function age(){}function hge(){}function dge(){}function bge(){}function wge(){}function gge(){}function pge(){}function mge(){}function vge(){}function yge(){}function kge(){}function jge(){}function Ege(){}function Tge(){}function Cge(){}function Sge(){}function Mge(){}function Pge(){}function Age(){}function xge(){}function Oge(){}function Ige(){}function Dge(){}function Lge(){}function $ge(){}function Fge(){}function Nge(){}function _ge(){}function Bge(){}function Rge(){}function Kge(){}function qge(){}function Hge(){}function Vge(){}function Gge(){}function zge(){}function Wge(){}function Uge(){}function Xge(){}function Yge(){}function Qge(){}function Jge(){}function Zge(){}function epe(){}function npe(){}function tpe(){}function ipe(){}function rpe(){}function cpe(){}function upe(){}function spe(){}function ope(){}function fpe(){}function lpe(){}function ape(){}function hpe(){}function dpe(){}function bpe(){}function wpe(){}function gpe(){}function ppe(){}function mpe(){}function vpe(){}function ype(){}function kpe(){}function jpe(){}function UG(){}function Epe(){}function Tpe(){}function Cpe(){}function Spe(){}function Mpe(){}function Ppe(){}function Ape(){}function xpe(){}function Ope(){}function Ipe(){}function Dpe(){}function Lpe(){}function $pe(){}function Fpe(){}function Npe(){}function _pe(){}function Bpe(){}function Rpe(){}function Kpe(){}function qpe(){}function Hpe(){}function Vpe(){}function Gpe(){}function zpe(){}function Wpe(){}function Upe(){}function Xpe(){}function Ype(){}function Qpe(){}function Jpe(){}function Zpe(){}function e2e(){}function n2e(){}function t2e(){}function i2e(){}function r2e(){}function c2e(){}function u2e(){}function s2e(){}function o2e(){}function f2e(){}function l2e(){}function a2e(){}function h2e(){}function d2e(){}function b2e(){}function w2e(){}function g2e(){}function p2e(){}function m2e(){}function v2e(){}function y2e(){}function k2e(){}function j2e(){}function E2e(){}function T2e(){}function C2e(){}function S2e(){}function M2e(){}function P2e(){}function A2e(){}function x2e(){}function O2e(){}function I2e(){}function D2e(){}function L2e(){}function $2e(){}function XG(){}function F2e(){}function N2e(){}function _2e(){}function B2e(){}function R2e(){}function K2e(){}function q2e(){}function H2e(){}function V2e(){}function G2e(){}function z2e(){}function W2e(){}function U2e(){}function X2e(){}function Y2e(){}function Q2e(){}function J2e(){}function Z2e(){}function eme(){}function nme(){}function YG(){}function tme(){}function ime(){}function rme(){}function cme(){}function ume(){}function sme(){}function QG(){}function JG(){}function ome(){}function ZG(){}function ez(){}function fme(){}function lme(){}function ame(){}function hme(){}function dme(){}function bme(){}function wme(){}function gme(){}function pme(){}function nz(){}function mme(){}function vme(){}function yme(){}function kme(){}function jme(){}function Eme(){}function Tme(){}function Cme(){}function Sme(){}function Mme(){}function Pme(){}function Ame(){}function xme(){}function Ome(){}function Ime(){}function Dme(){}function Lme(){}function $me(){}function Fme(){}function Nme(){}function _me(){}function Bme(){}function Rme(){}function Kme(){}function qme(){}function Hme(){}function Vme(){}function Gme(){}function zme(){}function Wme(){}function Ume(){}function Xme(){}function Yme(){}function Qme(){}function Jme(){}function Zme(){}function eve(){}function nve(){}function tve(){}function ive(){}function rve(){}function cve(){}function uve(){}function sve(){}function ove(){}function fve(){}function lve(){}function ave(){}function hve(){}function dve(){}function bve(){}function wve(){}function gve(){}function pve(){}function mve(){}function vve(){}function yve(){}function kve(){}function jve(){}function Eve(){}function Tve(){}function Cve(){}function Sve(){}function Mve(){}function Pve(){}function Ave(){}function xve(){}function Ove(){}function XI(){}function YI(){}function QI(){}function Ive(){}function Dve(){}function Lve(){}function $ve(){}function Fve(){}function tz(){}function Nve(){}function _ve(){}function pfn(){}function Bve(){}function Rve(){}function Kve(){}function qve(){}function Hve(){}function Vve(){}function Gve(){}function R1(){}function zve(){}function Qp(){}function iz(){}function Wve(){}function Uve(){}function Xve(){}function Yve(){}function Qve(){}function Jve(){}function Zve(){}function e3e(){}function n3e(){}function t3e(){}function i3e(){}function r3e(){}function c3e(){}function u3e(){}function s3e(){}function o3e(){}function f3e(){}function l3e(){}function a3e(){}function h3e(){}function d3e(){}function Me(){}function b3e(){}function w3e(){}function g3e(){}function p3e(){}function m3e(){}function v3e(){}function y3e(){}function k3e(){}function j3e(){}function E3e(){}function JI(){}function T3e(){}function C3e(){}function S3e(){}function M3e(){}function P3e(){}function rz(){}function HE(){}function VE(){}function A3e(){}function cz(){}function GE(){}function x3e(){}function O3e(){}function I3e(){}function D3e(){}function L3e(){}function $3e(){}function zE(){}function F3e(){}function N3e(){}function _3e(){}function WE(){}function B3e(){}function uz(){}function R3e(){}function ZI(){}function sz(){}function K3e(){}function q3e(){}function H3e(){}function V3e(){}function mfn(){}function G3e(){}function z3e(){}function W3e(){}function U3e(){}function X3e(){}function Y3e(){}function Q3e(){}function J3e(){}function Z3e(){}function e4e(){}function Rm(){}function eD(){}function n4e(){}function t4e(){}function i4e(){}function r4e(){}function c4e(){}function u4e(){}function s4e(){}function o4e(){}function f4e(){}function l4e(){}function a4e(){}function h4e(){}function d4e(){}function b4e(){}function w4e(){}function g4e(){}function p4e(){}function m4e(){}function v4e(){}function y4e(){}function k4e(){}function j4e(){}function E4e(){}function T4e(){}function C4e(){}function S4e(){}function M4e(){}function P4e(){}function A4e(){}function x4e(){}function O4e(){}function I4e(){}function D4e(){}function L4e(){}function $4e(){}function F4e(){}function N4e(){}function _4e(){}function B4e(){}function R4e(){}function K4e(){}function q4e(){}function H4e(){}function V4e(){}function G4e(){}function z4e(){}function W4e(){}function U4e(){}function X4e(){}function Y4e(){}function Q4e(){}function J4e(){}function Z4e(){}function e5e(){}function n5e(){}function t5e(){}function i5e(){}function r5e(){}function c5e(){}function u5e(){}function s5e(){}function o5e(){}function f5e(){}function l5e(){}function a5e(){}function h5e(){}function d5e(){}function b5e(){}function w5e(){}function g5e(){}function p5e(){}function m5e(){}function v5e(){}function y5e(){}function k5e(){}function j5e(){}function E5e(){}function T5e(){}function C5e(){}function S5e(){}function M5e(){}function P5e(){}function A5e(){}function x5e(){}function O5e(){}function I5e(){}function D5e(){}function L5e(){}function $5e(){}function F5e(){}function N5e(){}function _5e(){}function B5e(){}function R5e(){}function K5e(){}function q5e(){}function H5e(){}function V5e(){}function G5e(){}function z5e(){}function W5e(){}function oz(){}function U5e(){}function X5e(){}function nD(){J4()}function Y5e(){WF()}function Q5e(){C6()}function J5e(){qM()}function Z5e(){sne()}function e6e(){Mf()}function n6e(){mee()}function t6e(){J7()}function i6e(){p8()}function r6e(){g8()}function c6e(){H8()}function u6e(){oEe()}function s6e(){D2()}function o6e(){ET()}function f6e(){vIe()}function l6e(){ILe()}function a6e(){QIe()}function h6e(){bxe()}function d6e(){Qv()}function b6e(){r1()}function w6e(){DLe()}function g6e(){sOe()}function p6e(){eie()}function m6e(){y_e()}function v6e(){wxe()}function y6e(){be()}function k6e(){dxe()}function j6e(){LLe()}function E6e(){N$e()}function T6e(){pxe()}function C6e(){tDe()}function S6e(){fEe()}function M6e(){qne()}function P6e(){ww()}function A6e(){s$e()}function x6e(){tk()}function O6e(){j_()}function I6e(){AN()}function D6e(){G0()}function L6e(){_J()}function $6e(){gxe()}function F6e(){Pqe()}function N6e(){Bne()}function _6e(){b_()}function B6e(){MS()}function R6e(){XM()}function fz(){dt()}function K6e(){lM()}function q6e(){zZ()}function lz(){bP()}function pf(){iMe()}function az(){OF()}function H6e(){Ste()}function hz(e){nn(e)}function V6e(e){this.a=e}function UE(e){this.a=e}function G6e(e){this.a=e}function z6e(e){this.a=e}function W6e(e){this.a=e}function U6e(e){this.a=e}function X6e(e){this.a=e}function Y6e(e){this.a=e}function dz(e){this.a=e}function bz(e){this.a=e}function Q6e(e){this.a=e}function tD(e){this.a=e}function J6e(e){this.a=e}function iD(e){this.a=e}function Z6e(e){this.a=e}function rD(e){this.a=e}function eye(e){this.a=e}function cD(e){this.a=e}function nye(e){this.a=e}function tye(e){this.a=e}function iye(e){this.a=e}function wz(e){this.b=e}function rye(e){this.c=e}function cye(e){this.a=e}function uye(e){this.a=e}function sye(e){this.a=e}function oye(e){this.a=e}function fye(e){this.a=e}function lye(e){this.a=e}function aye(e){this.a=e}function hye(e){this.a=e}function dye(e){this.a=e}function bye(e){this.a=e}function wye(e){this.a=e}function gye(e){this.a=e}function pye(e){this.a=e}function gz(e){this.a=e}function pz(e){this.a=e}function XE(e){this.a=e}function e8(e){this.a=e}function K1(){this.a=[]}function mye(e,n){e.a=n}function vfn(e,n){e.a=n}function yfn(e,n){e.b=n}function kfn(e,n){e.b=n}function jfn(e,n){e.b=n}function mz(e,n){e.j=n}function Efn(e,n){e.g=n}function Tfn(e,n){e.i=n}function Cfn(e,n){e.c=n}function Sfn(e,n){e.d=n}function Mfn(e,n){e.d=n}function Pfn(e,n){e.c=n}function q1(e,n){e.k=n}function Afn(e,n){e.c=n}function vz(e,n){e.c=n}function yz(e,n){e.a=n}function xfn(e,n){e.a=n}function Ofn(e,n){e.f=n}function Ifn(e,n){e.a=n}function Dfn(e,n){e.b=n}function uD(e,n){e.d=n}function YE(e,n){e.i=n}function kz(e,n){e.o=n}function Lfn(e,n){e.r=n}function $fn(e,n){e.a=n}function Ffn(e,n){e.b=n}function vye(e,n){e.e=n}function Nfn(e,n){e.f=n}function jz(e,n){e.g=n}function _fn(e,n){e.e=n}function Bfn(e,n){e.f=n}function Rfn(e,n){e.f=n}function Kfn(e,n){e.n=n}function qfn(e,n){e.a=n}function Hfn(e,n){e.a=n}function Vfn(e,n){e.c=n}function Gfn(e,n){e.c=n}function zfn(e,n){e.d=n}function Wfn(e,n){e.e=n}function Ufn(e,n){e.g=n}function Xfn(e,n){e.a=n}function Yfn(e,n){e.c=n}function Qfn(e,n){e.d=n}function Jfn(e,n){e.e=n}function Zfn(e,n){e.f=n}function eln(e,n){e.j=n}function nln(e,n){e.a=n}function tln(e,n){e.b=n}function iln(e,n){e.a=n}function yye(e){e.b=e.a}function kye(e){e.c=e.d.d}function z4(e){this.d=e}function H1(e){this.a=e}function Km(e){this.a=e}function Ez(e){this.a=e}function da(e){this.a=e}function n8(e){this.a=e}function jye(e){this.a=e}function Tz(e){this.a=e}function t8(e){this.a=e}function Cz(e){this.a=e}function Sz(e){this.a=e}function Mz(e){this.a=e}function $b(e){this.a=e}function i8(e){this.a=e}function r8(e){this.a=e}function Pz(e){this.b=e}function qm(e){this.b=e}function Hm(e){this.b=e}function sD(e){this.a=e}function Eye(e){this.a=e}function Az(e){this.a=e}function oD(e){this.c=e}function A(e){this.c=e}function Tye(e){this.c=e}function xz(e){this.a=e}function Oz(e){this.a=e}function Iz(e){this.a=e}function Dz(e){this.a=e}function St(e){this.a=e}function Cye(e){this.a=e}function Lz(e){this.a=e}function $z(e){this.a=e}function Sye(e){this.a=e}function Mye(e){this.a=e}function W4(e){this.a=e}function Pye(e){this.a=e}function Aye(e){this.a=e}function xye(e){this.a=e}function Oye(e){this.a=e}function Iye(e){this.a=e}function Dye(e){this.a=e}function Lye(e){this.a=e}function $ye(e){this.a=e}function Fye(e){this.a=e}function Nye(e){this.a=e}function _ye(e){this.a=e}function Bye(e){this.a=e}function Rye(e){this.a=e}function Kye(e){this.a=e}function qye(e){this.a=e}function Hye(e){this.a=e}function Vye(e){this.a=e}function c8(e){this.a=e}function Gye(e){this.a=e}function zye(e){this.a=e}function QE(e){this.a=e}function Wye(e){this.a=e}function Uye(e){this.a=e}function Vm(e){this.a=e}function Fz(e){this.a=e}function Xye(e){this.a=e}function Yye(e){this.a=e}function Qye(e){this.a=e}function Jye(e){this.a=e}function Zye(e){this.a=e}function Nz(e){this.a=e}function _z(e){this.a=e}function Bz(e){this.a=e}function JE(e){this.a=e}function ZE(e){this.e=e}function Gm(e){this.a=e}function e9e(e){this.a=e}function Jp(e){this.a=e}function Rz(e){this.a=e}function n9e(e){this.a=e}function t9e(e){this.a=e}function i9e(e){this.a=e}function r9e(e){this.a=e}function c9e(e){this.a=e}function u9e(e){this.a=e}function s9e(e){this.a=e}function o9e(e){this.a=e}function f9e(e){this.a=e}function l9e(e){this.a=e}function a9e(e){this.a=e}function Kz(e){this.a=e}function h9e(e){this.a=e}function d9e(e){this.a=e}function b9e(e){this.a=e}function w9e(e){this.a=e}function g9e(e){this.a=e}function p9e(e){this.a=e}function m9e(e){this.a=e}function v9e(e){this.a=e}function y9e(e){this.a=e}function k9e(e){this.a=e}function j9e(e){this.a=e}function E9e(e){this.a=e}function T9e(e){this.a=e}function C9e(e){this.a=e}function S9e(e){this.a=e}function M9e(e){this.a=e}function P9e(e){this.a=e}function A9e(e){this.a=e}function x9e(e){this.a=e}function O9e(e){this.a=e}function I9e(e){this.a=e}function D9e(e){this.a=e}function L9e(e){this.a=e}function $9e(e){this.a=e}function F9e(e){this.a=e}function N9e(e){this.a=e}function _9e(e){this.a=e}function B9e(e){this.a=e}function R9e(e){this.a=e}function K9e(e){this.a=e}function q9e(e){this.a=e}function H9e(e){this.a=e}function V9e(e){this.a=e}function G9e(e){this.a=e}function z9e(e){this.a=e}function W9e(e){this.a=e}function U9e(e){this.a=e}function X9e(e){this.c=e}function Y9e(e){this.b=e}function Q9e(e){this.a=e}function J9e(e){this.a=e}function Z9e(e){this.a=e}function e8e(e){this.a=e}function n8e(e){this.a=e}function t8e(e){this.a=e}function i8e(e){this.a=e}function r8e(e){this.a=e}function c8e(e){this.a=e}function u8e(e){this.a=e}function s8e(e){this.a=e}function o8e(e){this.a=e}function f8e(e){this.a=e}function l8e(e){this.a=e}function a8e(e){this.a=e}function h8e(e){this.a=e}function d8e(e){this.a=e}function b8e(e){this.a=e}function w8e(e){this.a=e}function g8e(e){this.a=e}function p8e(e){this.a=e}function m8e(e){this.a=e}function v8e(e){this.a=e}function y8e(e){this.a=e}function Oh(e){this.a=e}function Zp(e){this.a=e}function k8e(e){this.a=e}function j8e(e){this.a=e}function E8e(e){this.a=e}function T8e(e){this.a=e}function C8e(e){this.a=e}function S8e(e){this.a=e}function M8e(e){this.a=e}function P8e(e){this.a=e}function A8e(e){this.a=e}function x8e(e){this.a=e}function O8e(e){this.a=e}function I8e(e){this.a=e}function D8e(e){this.a=e}function L8e(e){this.a=e}function $8e(e){this.a=e}function F8e(e){this.a=e}function eT(e){this.a=e}function N8e(e){this.a=e}function _8e(e){this.a=e}function B8e(e){this.a=e}function R8e(e){this.a=e}function K8e(e){this.a=e}function q8e(e){this.a=e}function H8e(e){this.a=e}function V8e(e){this.a=e}function G8e(e){this.a=e}function z8e(e){this.a=e}function W8e(e){this.a=e}function U8e(e){this.a=e}function X8e(e){this.a=e}function Y8e(e){this.a=e}function Q8e(e){this.a=e}function J8e(e){this.a=e}function Z8e(e){this.a=e}function e7e(e){this.a=e}function n7e(e){this.a=e}function t7e(e){this.a=e}function i7e(e){this.a=e}function r7e(e){this.a=e}function c7e(e){this.a=e}function u7e(e){this.a=e}function s7e(e){this.a=e}function o7e(e){this.a=e}function f7e(e){this.a=e}function l7e(e){this.a=e}function qz(e){this.a=e}function Kt(e){this.b=e}function a7e(e){this.f=e}function Hz(e){this.a=e}function h7e(e){this.a=e}function d7e(e){this.a=e}function b7e(e){this.a=e}function w7e(e){this.a=e}function g7e(e){this.a=e}function p7e(e){this.a=e}function m7e(e){this.a=e}function v7e(e){this.a=e}function u8(e){this.a=e}function y7e(e){this.a=e}function k7e(e){this.b=e}function Vz(e){this.c=e}function nT(e){this.e=e}function j7e(e){this.a=e}function tT(e){this.a=e}function iT(e){this.a=e}function fD(e){this.a=e}function E7e(e){this.a=e}function T7e(e){this.d=e}function Gz(e){this.a=e}function zz(e){this.a=e}function Qd(e){this.e=e}function rln(){this.a=0}function mg(){iCe(this)}function oe(){wL(this)}function $n(){Yu(this)}function lD(){sAe(this)}function C7e(){}function Jd(){this.c=Sde}function cln(e,n){n.Wb(e)}function S7e(e,n){e.b+=n}function M7e(e){e.b=new MD}function O(e){return e.e}function uln(e){return e.a}function sln(e){return e.a}function oln(e){return e.a}function fln(e){return e.a}function lln(e){return e.a}function aln(){return null}function hln(){return null}function dln(){IW(),TIn()}function bln(e){e.b.tf(e.e)}function U4(e,n){e.b=n-e.b}function X4(e,n){e.a=n-e.a}function P7e(e,n){n.ad(e.a)}function wln(e,n){Ci(n,e)}function gln(e,n,t){e.Od(t,n)}function s8(e,n){e.e=n,n.b=e}function Wz(e){ml(),this.a=e}function A7e(e){ml(),this.a=e}function x7e(e){ml(),this.a=e}function Uz(e){Zb(),this.a=e}function O7e(e){jv(),qK.be(e)}function V1(){RCe.call(this)}function Xz(){RCe.call(this)}function Yz(){V1.call(this)}function aD(){V1.call(this)}function I7e(){V1.call(this)}function o8(){V1.call(this)}function Fu(){V1.call(this)}function Y4(){V1.call(this)}function Kn(){V1.call(this)}function Us(){V1.call(this)}function D7e(){V1.call(this)}function Ac(){V1.call(this)}function L7e(){V1.call(this)}function $7e(){this.a=this}function rT(){this.Bb|=256}function F7e(){this.b=new _Te}function Qz(){Qz=W,new $n}function Jz(){Yz.call(this)}function N7e(e,n){e.length=n}function cT(e,n){se(e.a,n)}function pln(e,n){fne(e.c,n)}function mln(e,n){Ei(e.b,n)}function vln(e,n){FM(e.a,n)}function yln(e,n){tN(e.a,n)}function zm(e,n){yt(e.e,n)}function e2(e){JM(e.c,e.b)}function kln(e,n){e.kc().Nb(n)}function Zz(e){this.a=v6n(e)}function Ai(){this.a=new $n}function _7e(){this.a=new $n}function uT(){this.a=new oe}function hD(){this.a=new oe}function eW(){this.a=new oe}function go(){this.a=new qI}function G1(){this.a=new wIe}function nW(){this.a=new GG}function tW(){this.a=new eEe}function B7e(){this.a=new qxe}function iW(){this.a=new rxe}function rW(){this.a=new PSe}function R7e(){this.a=new oe}function cW(){this.a=new oe}function K7e(){this.a=new oe}function q7e(){this.a=new oe}function H7e(){this.d=new oe}function V7e(){this.a=new Ai}function G7e(){this.a=new $n}function z7e(){this.b=new $n}function W7e(){this.b=new oe}function uW(){this.e=new oe}function U7e(){this.d=new oe}function X7e(){this.a=new b6e}function Y7e(){oe.call(this)}function sW(){uT.call(this)}function Q7e(){wC.call(this)}function J7e(){cW.call(this)}function dD(){Q4.call(this)}function Q4(){C7e.call(this)}function n2(){C7e.call(this)}function oW(){n2.call(this)}function Z7e(){$Ae.call(this)}function eke(){$Ae.call(this)}function nke(){wW.call(this)}function tke(){wW.call(this)}function ike(){wW.call(this)}function rke(){gW.call(this)}function Nu(){Gt.call(this)}function fW(){P3e.call(this)}function lW(){P3e.call(this)}function cke(){kke.call(this)}function uke(){kke.call(this)}function ske(){$n.call(this)}function oke(){$n.call(this)}function fke(){$n.call(this)}function lke(){Ai.call(this)}function bD(){ALe.call(this)}function ake(){rT.call(this)}function wD(){RU.call(this)}function gD(){RU.call(this)}function aW(){$n.call(this)}function pD(){$n.call(this)}function hke(){$n.call(this)}function hW(){WE.call(this)}function dke(){WE.call(this)}function bke(){hW.call(this)}function wke(){oz.call(this)}function gke(e){eLe.call(this,e)}function pke(e){eLe.call(this,e)}function dW(e){dz.call(this,e)}function bW(e){Vje.call(this,e)}function jln(e){bW.call(this,e)}function Eln(e){Vje.call(this,e)}function Wm(){this.a=new Gt}function wW(){this.a=new Ai}function gW(){this.a=new $n}function mke(){this.a=new oe}function vke(){this.j=new oe}function pW(){this.a=new Ave}function yke(){this.a=new wje}function kke(){this.a=new _3e}function mD(){mD=W,FK=new Bke}function vD(){vD=W,$K=new _ke}function J4(){J4=W,LK=new B}function sT(){sT=W,BK=new _Ce}function Tln(e){bW.call(this,e)}function Cln(e){bW.call(this,e)}function jke(e){X$.call(this,e)}function Eke(e){X$.call(this,e)}function Tke(e){YSe.call(this,e)}function yD(e){Gkn.call(this,e)}function Zd(e){Bb.call(this,e)}function Z4(e){vT.call(this,e)}function mW(e){vT.call(this,e)}function Cke(e){vT.call(this,e)}function fc(e){lPe.call(this,e)}function Ske(e){fc.call(this,e)}function t2(){e8.call(this,{})}function oT(e){sv(),this.a=e}function e5(e){e.b=null,e.c=0}function Sln(e,n){e.e=n,MKe(e,n)}function Mln(e,n){e.a=n,Ojn(e)}function kD(e,n,t){e.a[n.g]=t}function Pln(e,n,t){W8n(t,e,n)}function Aln(e,n){edn(n.i,e.n)}function Mke(e,n){n5n(e).td(n)}function xln(e,n){return e*e/n}function Pke(e,n){return e.g-n.g}function Oln(e){return new XE(e)}function Iln(e){return new Jb(e)}function fT(e){fc.call(this,e)}function qr(e){fc.call(this,e)}function Ake(e){fc.call(this,e)}function jD(e){lPe.call(this,e)}function ED(e){FJ(),this.a=e}function xke(e){tMe(),this.a=e}function Fb(e){ZL(),this.f=e}function TD(e){ZL(),this.f=e}function Um(e){fc.call(this,e)}function rn(e){fc.call(this,e)}function tc(e){fc.call(this,e)}function Oke(e){fc.call(this,e)}function i2(e){fc.call(this,e)}function ke(e){return nn(e),e}function ee(e){return nn(e),e}function f8(e){return nn(e),e}function vW(e){return nn(e),e}function Dln(e){return nn(e),e}function n5(e){return e.b==e.c}function Nb(e){return!!e&&e.b}function Lln(e){return!!e&&e.k}function $ln(e){return!!e&&e.j}function gs(e){nn(e),this.a=e}function yW(e){return fd(e),e}function t5(e){IY(e,e.length)}function Ga(e){fc.call(this,e)}function dl(e){fc.call(this,e)}function CD(e){fc.call(this,e)}function vg(e){fc.call(this,e)}function i5(e){fc.call(this,e)}function Hn(e){fc.call(this,e)}function SD(e){rX.call(this,e,0)}function MD(){hQ.call(this,12,3)}function kW(){kW=W,jue=new br}function Ike(){Ike=W,kue=new N}function lT(){lT=W,Sy=new Cn}function Dke(){Dke=W,oXe=new Rt}function Lke(){throw O(new Kn)}function jW(){throw O(new Kn)}function $ke(){throw O(new Kn)}function Fln(){throw O(new Kn)}function Nln(){throw O(new Kn)}function _ln(){throw O(new Kn)}function PD(){this.a=Vn(Nn(mr))}function r2(e){ml(),this.a=Nn(e)}function Fke(e,n){e.Td(n),n.Sd(e)}function Bln(e,n){e.a.ec().Mc(n)}function Rln(e,n,t){e.c.lf(n,t)}function EW(e){qr.call(this,e)}function bl(e){rn.call(this,e)}function za(){n8.call(this,"")}function r5(){n8.call(this,"")}function Ih(){n8.call(this,"")}function _b(){n8.call(this,"")}function TW(e){qr.call(this,e)}function Xm(e){qm.call(this,e)}function AD(e){uC.call(this,e)}function Nke(e){Xm.call(this,e)}function _ke(){iD.call(this,null)}function Bke(){iD.call(this,null)}function aT(){aT=W,jv()}function Rke(){Rke=W,mXe=y7n()}function Kke(e){return e.a?e.b:0}function Kln(e){return e.a?e.b:0}function qln(e,n){return e.a-n.a}function Hln(e,n){return e.a-n.a}function Vln(e,n){return e.a-n.a}function hT(e,n){return tJ(e,n)}function I(e,n){return sxe(e,n)}function Gln(e,n){return n in e.a}function qke(e,n){return e.f=n,e}function zln(e,n){return e.b=n,e}function Hke(e,n){return e.c=n,e}function Wln(e,n){return e.g=n,e}function CW(e,n){return e.a=n,e}function SW(e,n){return e.f=n,e}function Uln(e,n){return e.k=n,e}function MW(e,n){return e.a=n,e}function Xln(e,n){return e.e=n,e}function PW(e,n){return e.e=n,e}function Yln(e,n){return e.f=n,e}function Qln(e,n){e.b=!0,e.d=n}function Jln(e,n){e.b=new Hr(n)}function Zln(e,n,t){n.td(e.a[t])}function ean(e,n,t){n.we(e.a[t])}function nan(e,n){return e.b-n.b}function tan(e,n){return e.g-n.g}function ian(e,n){return e.s-n.s}function ran(e,n){return e?0:n-1}function Vke(e,n){return e?0:n-1}function can(e,n){return e?n-1:0}function uan(e,n){return n.Yf(e)}function e0(e,n){return e.b=n,e}function dT(e,n){return e.a=n,e}function n0(e,n){return e.c=n,e}function t0(e,n){return e.d=n,e}function i0(e,n){return e.e=n,e}function AW(e,n){return e.f=n,e}function c5(e,n){return e.a=n,e}function Ym(e,n){return e.b=n,e}function Qm(e,n){return e.c=n,e}function xe(e,n){return e.c=n,e}function We(e,n){return e.b=n,e}function Oe(e,n){return e.d=n,e}function Ie(e,n){return e.e=n,e}function san(e,n){return e.f=n,e}function De(e,n){return e.g=n,e}function Le(e,n){return e.a=n,e}function $e(e,n){return e.i=n,e}function Fe(e,n){return e.j=n,e}function Gke(e,n){return e.k=n,e}function oan(e,n){return e.j=n,e}function fan(e,n){r1(),ac(n,e)}function lan(e,n,t){rwn(e.a,n,t)}function zke(e){fAe.call(this,e)}function xW(e){fAe.call(this,e)}function bT(e){FL.call(this,e)}function Wke(e){M6n.call(this,e)}function Dh(e){P0.call(this,e)}function Uke(e){T$.call(this,e)}function Xke(e){T$.call(this,e)}function Yke(){$U.call(this,"")}function ir(){this.a=0,this.b=0}function Qke(){this.b=0,this.a=0}function Jke(e,n){e.b=0,fw(e,n)}function aan(e,n){e.c=n,e.b=!0}function Zke(e,n){return e.c._b(n)}function mf(e){return e.e&&e.e()}function xD(e){return e?e.d:null}function eje(e,n){return SFe(e.b,n)}function han(e){return e?e.g:null}function dan(e){return e?e.i:null}function Lh(e){return ga(e),e.o}function r0(){r0=W,grn=O8n()}function nje(){nje=W,_i=H7n()}function Jm(){Jm=W,Cde=D8n()}function tje(){tje=W,ecn=I8n()}function OW(){OW=W,Lc=Pjn()}function IW(){IW=W,x1=Bv()}function ije(){throw O(new Kn)}function rje(){throw O(new Kn)}function cje(){throw O(new Kn)}function uje(){throw O(new Kn)}function sje(){throw O(new Kn)}function oje(){throw O(new Kn)}function wT(e){this.a=new c2(e)}function DW(e){iVe(),NIn(this,e)}function $h(e){this.a=new i$(e)}function yg(e,n){for(;e.ye(n););}function LW(e,n){for(;e.sd(n););}function kg(e,n){return e.a+=n,e}function OD(e,n){return e.a+=n,e}function Wa(e,n){return e.a+=n,e}function c0(e,n){return e.a+=n,e}function u5(e){return zh(e),e.a}function gT(e){return e.b!=e.d.c}function fje(e){return e.l|e.m<<22}function $W(e,n){return e.d[n.p]}function lje(e,n){return pSn(e,n)}function FW(e,n,t){e.splice(n,t)}function aje(e){e.c?UKe(e):XKe(e)}function pT(e){this.a=0,this.b=e}function hje(){this.a=new hk(_ae)}function dje(){this.b=new hk(Tae)}function bje(){this.b=new hk(sV)}function wje(){this.b=new hk(sV)}function gje(){throw O(new Kn)}function pje(){throw O(new Kn)}function mje(){throw O(new Kn)}function vje(){throw O(new Kn)}function yje(){throw O(new Kn)}function kje(){throw O(new Kn)}function jje(){throw O(new Kn)}function Eje(){throw O(new Kn)}function Tje(){throw O(new Kn)}function Cje(){throw O(new Kn)}function ban(){throw O(new Ac)}function wan(){throw O(new Ac)}function l8(e){this.a=new Sje(e)}function Sje(e){S3n(this,e,S7n())}function a8(e){return!e||WPe(e)}function h8(e){return ol[e]!=-1}function gan(){$A!=0&&($A=0),FA=-1}function Mje(){DK==null&&(DK=[])}function pan(e,n){f_(Q(e.a),n)}function man(e,n){f_(Q(e.a),n)}function d8(e,n){xg.call(this,e,n)}function Zm(e,n){d8.call(this,e,n)}function NW(e,n){this.b=e,this.c=n}function Pje(e,n){this.b=e,this.a=n}function Aje(e,n){this.a=e,this.b=n}function xje(e,n){this.a=e,this.b=n}function Oje(e,n){this.a=e,this.b=n}function Ije(e,n){this.a=e,this.b=n}function Dje(e,n){this.a=e,this.b=n}function Lje(e,n){this.a=e,this.b=n}function $je(e,n){this.a=e,this.b=n}function Fje(e,n){this.a=e,this.b=n}function Nje(e,n){this.b=e,this.a=n}function _je(e,n){this.b=e,this.a=n}function Bje(e,n){this.b=e,this.a=n}function Rje(e,n){this.b=e,this.a=n}function Yn(e,n){this.f=e,this.g=n}function ev(e,n){this.e=e,this.d=n}function u0(e,n){this.g=e,this.i=n}function ID(e,n){this.a=e,this.b=n}function Kje(e,n){this.a=e,this.f=n}function qje(e,n){this.b=e,this.c=n}function van(e,n){this.a=e,this.b=n}function Hje(e,n){this.a=e,this.b=n}function DD(e,n){this.a=e,this.b=n}function Vje(e){WU(e.dc()),this.c=e}function mT(e){this.b=u(Nn(e),83)}function Gje(e){this.a=u(Nn(e),83)}function Bb(e){this.a=u(Nn(e),15)}function zje(e){this.a=u(Nn(e),15)}function vT(e){this.b=u(Nn(e),47)}function yT(){this.q=new k.Date}function Rl(){Rl=W,Nue=new qo}function nv(){nv=W,Y3=new vc}function s5(e){return e.f.c+e.g.c}function b8(e,n){return e.b.Hc(n)}function Wje(e,n){return e.b.Ic(n)}function Uje(e,n){return e.b.Qc(n)}function Xje(e,n){return e.b.Hc(n)}function Yje(e,n){return e.c.uc(n)}function ba(e,n){return e.a._b(n)}function Qje(e,n){return kt(e.c,n)}function Jje(e,n){return ys(e.b,n)}function Zje(e,n){return e>n&&n0}function $D(e,n){return Fc(e,n)<0}function d5(e,n){return e.a.get(n)}function Ian(e,n){return n.split(e)}function mEe(e,n){return ys(e.e,n)}function GW(e){return nn(e),!1}function xT(e){Ye.call(this,e,21)}function Dan(e,n){XAe.call(this,e,n)}function OT(e,n){Yn.call(this,e,n)}function FD(e,n){Yn.call(this,e,n)}function zW(e){g$(),YSe.call(this,e)}function WW(e,n){ZMe(e,e.length,n)}function v8(e,n){PPe(e,e.length,n)}function Lan(e,n,t){n.ud(e.a.Ge(t))}function $an(e,n,t){n.we(e.a.Fe(t))}function Fan(e,n,t){n.td(e.a.Kb(t))}function Nan(e,n,t){e.Mb(t)&&n.td(t)}function b5(e,n,t){e.splice(n,0,t)}function _an(e,n){return Bu(e.e,n)}function IT(e,n){this.d=e,this.e=n}function vEe(e,n){this.b=e,this.a=n}function yEe(e,n){this.b=e,this.a=n}function UW(e,n){this.b=e,this.a=n}function kEe(e,n){this.a=e,this.b=n}function jEe(e,n){this.a=e,this.b=n}function EEe(e,n){this.a=e,this.b=n}function TEe(e,n){this.a=e,this.b=n}function s2(e,n){this.a=e,this.b=n}function XW(e,n){this.b=e,this.a=n}function YW(e,n){this.b=e,this.a=n}function DT(e,n){Yn.call(this,e,n)}function LT(e,n){Yn.call(this,e,n)}function QW(e,n){Yn.call(this,e,n)}function JW(e,n){Yn.call(this,e,n)}function jg(e,n){Yn.call(this,e,n)}function ND(e,n){Yn.call(this,e,n)}function _D(e,n){Yn.call(this,e,n)}function BD(e,n){Yn.call(this,e,n)}function $T(e,n){Yn.call(this,e,n)}function ZW(e,n){Yn.call(this,e,n)}function RD(e,n){Yn.call(this,e,n)}function y8(e,n){Yn.call(this,e,n)}function FT(e,n){Yn.call(this,e,n)}function KD(e,n){Yn.call(this,e,n)}function w5(e,n){Yn.call(this,e,n)}function eU(e,n){Yn.call(this,e,n)}function fi(e,n){Yn.call(this,e,n)}function NT(e,n){Yn.call(this,e,n)}function CEe(e,n){this.a=e,this.b=n}function SEe(e,n){this.a=e,this.b=n}function MEe(e,n){this.a=e,this.b=n}function PEe(e,n){this.a=e,this.b=n}function AEe(e,n){this.a=e,this.b=n}function xEe(e,n){this.a=e,this.b=n}function OEe(e,n){this.a=e,this.b=n}function IEe(e,n){this.a=e,this.b=n}function DEe(e,n){this.a=e,this.b=n}function nU(e,n){this.b=e,this.a=n}function LEe(e,n){this.b=e,this.a=n}function $Ee(e,n){this.b=e,this.a=n}function FEe(e,n){this.b=e,this.a=n}function rv(e,n){this.c=e,this.d=n}function NEe(e,n){this.e=e,this.d=n}function _Ee(e,n){this.a=e,this.b=n}function BEe(e,n){this.b=n,this.c=e}function _T(e,n){Yn.call(this,e,n)}function k8(e,n){Yn.call(this,e,n)}function qD(e,n){Yn.call(this,e,n)}function g5(e,n){Yn.call(this,e,n)}function tU(e,n){Yn.call(this,e,n)}function HD(e,n){Yn.call(this,e,n)}function VD(e,n){Yn.call(this,e,n)}function j8(e,n){Yn.call(this,e,n)}function iU(e,n){Yn.call(this,e,n)}function GD(e,n){Yn.call(this,e,n)}function p5(e,n){Yn.call(this,e,n)}function rU(e,n){Yn.call(this,e,n)}function m5(e,n){Yn.call(this,e,n)}function v5(e,n){Yn.call(this,e,n)}function Kb(e,n){Yn.call(this,e,n)}function zD(e,n){Yn.call(this,e,n)}function WD(e,n){Yn.call(this,e,n)}function cU(e,n){Yn.call(this,e,n)}function y5(e,n){Yn.call(this,e,n)}function UD(e,n){Yn.call(this,e,n)}function BT(e,n){Yn.call(this,e,n)}function E8(e,n){Yn.call(this,e,n)}function T8(e,n){Yn.call(this,e,n)}function o2(e,n){Yn.call(this,e,n)}function XD(e,n){Yn.call(this,e,n)}function uU(e,n){Yn.call(this,e,n)}function YD(e,n){Yn.call(this,e,n)}function QD(e,n){Yn.call(this,e,n)}function sU(e,n){Yn.call(this,e,n)}function JD(e,n){Yn.call(this,e,n)}function ZD(e,n){Yn.call(this,e,n)}function eL(e,n){Yn.call(this,e,n)}function nL(e,n){Yn.call(this,e,n)}function oU(e,n){Yn.call(this,e,n)}function REe(e,n){this.b=e,this.a=n}function KEe(e,n){this.a=e,this.b=n}function qEe(e,n){this.a=e,this.b=n}function HEe(e,n){this.a=e,this.b=n}function VEe(e,n){this.a=e,this.b=n}function fU(e,n){Yn.call(this,e,n)}function lU(e,n){Yn.call(this,e,n)}function GEe(e,n){this.b=e,this.d=n}function aU(e,n){Yn.call(this,e,n)}function hU(e,n){Yn.call(this,e,n)}function zEe(e,n){this.a=e,this.b=n}function WEe(e,n){this.a=e,this.b=n}function RT(e,n){Yn.call(this,e,n)}function k5(e,n){Yn.call(this,e,n)}function dU(e,n){Yn.call(this,e,n)}function bU(e,n){Yn.call(this,e,n)}function wU(e,n){Yn.call(this,e,n)}function tL(e,n){Yn.call(this,e,n)}function gU(e,n){Yn.call(this,e,n)}function iL(e,n){Yn.call(this,e,n)}function KT(e,n){Yn.call(this,e,n)}function rL(e,n){Yn.call(this,e,n)}function cL(e,n){Yn.call(this,e,n)}function C8(e,n){Yn.call(this,e,n)}function uL(e,n){Yn.call(this,e,n)}function pU(e,n){Yn.call(this,e,n)}function S8(e,n){Yn.call(this,e,n)}function mU(e,n){Yn.call(this,e,n)}function Ban(e,n){return Bu(e.c,n)}function Ran(e,n){return Bu(n.b,e)}function Kan(e,n){return-e.b.Je(n)}function vU(e,n){return Bu(e.g,n)}function M8(e,n){Yn.call(this,e,n)}function f2(e,n){Yn.call(this,e,n)}function UEe(e,n){this.a=e,this.b=n}function XEe(e,n){this.a=e,this.b=n}function je(e,n){this.a=e,this.b=n}function j5(e,n){Yn.call(this,e,n)}function E5(e,n){Yn.call(this,e,n)}function P8(e,n){Yn.call(this,e,n)}function sL(e,n){Yn.call(this,e,n)}function qT(e,n){Yn.call(this,e,n)}function T5(e,n){Yn.call(this,e,n)}function oL(e,n){Yn.call(this,e,n)}function HT(e,n){Yn.call(this,e,n)}function Eg(e,n){Yn.call(this,e,n)}function A8(e,n){Yn.call(this,e,n)}function C5(e,n){Yn.call(this,e,n)}function S5(e,n){Yn.call(this,e,n)}function x8(e,n){Yn.call(this,e,n)}function VT(e,n){Yn.call(this,e,n)}function Tg(e,n){Yn.call(this,e,n)}function GT(e,n){Yn.call(this,e,n)}function YEe(e,n){this.a=e,this.b=n}function QEe(e,n){this.a=e,this.b=n}function JEe(e,n){this.a=e,this.b=n}function ZEe(e,n){this.a=e,this.b=n}function eTe(e,n){this.a=e,this.b=n}function nTe(e,n){this.a=e,this.b=n}function Xi(e,n){this.a=e,this.b=n}function zT(e,n){Yn.call(this,e,n)}function tTe(e,n){this.a=e,this.b=n}function iTe(e,n){this.a=e,this.b=n}function rTe(e,n){this.a=e,this.b=n}function cTe(e,n){this.a=e,this.b=n}function uTe(e,n){this.a=e,this.b=n}function sTe(e,n){this.a=e,this.b=n}function oTe(e,n){this.b=e,this.a=n}function fTe(e,n){this.b=e,this.a=n}function lTe(e,n){this.b=e,this.a=n}function aTe(e,n){this.b=e,this.a=n}function hTe(e,n){this.a=e,this.b=n}function dTe(e,n){this.a=e,this.b=n}function qan(e,n){mCn(e.a,u(n,56))}function bTe(e,n){xvn(e.a,u(n,11))}function Han(e,n){return hv(),n!=e}function wTe(){return Rke(),new mXe}function gTe(){$$(),this.b=new Ai}function pTe(){cP(),this.a=new Ai}function mTe(){aQ(),yY.call(this)}function l2(e,n){Yn.call(this,e,n)}function vTe(e,n){this.a=e,this.b=n}function yTe(e,n){this.a=e,this.b=n}function WT(e,n){this.a=e,this.b=n}function kTe(e,n){this.a=e,this.b=n}function jTe(e,n){this.a=e,this.b=n}function ETe(e,n){this.a=e,this.b=n}function TTe(e,n){this.d=e,this.b=n}function yU(e,n){this.d=e,this.e=n}function CTe(e,n){this.f=e,this.c=n}function O8(e,n){this.b=e,this.c=n}function kU(e,n){this.i=e,this.g=n}function STe(e,n){this.e=e,this.a=n}function MTe(e,n){this.a=e,this.b=n}function jU(e,n){e.i=null,XS(e,n)}function Van(e,n){e&&jt(sE,e,n)}function PTe(e,n){return dN(e.a,n)}function UT(e){return V7(e.c,e.b)}function yc(e){return e?e.dd():null}function X(e){return e??null}function qb(e){return typeof e===z2}function Hb(e){return typeof e===nie}function Ri(e){return typeof e===Z_}function _h(e,n){return e.Hd().Xb(n)}function XT(e,n){return u4n(e.Kc(),n)}function o0(e,n){return Fc(e,n)==0}function Gan(e,n){return Fc(e,n)>=0}function M5(e,n){return Fc(e,n)!=0}function zan(e){return""+(nn(e),e)}function I8(e,n){return e.substr(n)}function ATe(e){return us(e),e.d.gc()}function fL(e){return qEn(e,e.c),e}function YT(e){return R5(e==null),e}function P5(e,n){return e.a+=""+n,e}function Fr(e,n){return e.a+=""+n,e}function A5(e,n){return e.a+=""+n,e}function xc(e,n){return e.a+=""+n,e}function Qn(e,n){return e.a+=""+n,e}function EU(e,n){return e.a+=""+n,e}function xTe(e,n){ui(e,n,e.a,e.a.a)}function W1(e,n){ui(e,n,e.c.b,e.c)}function Wan(e,n,t){B_e(n,t_(e,t))}function Uan(e,n,t){B_e(n,t_(e,t))}function Xan(e,n){Kvn(new jn(e),n)}function OTe(e,n){e.q.setTime(C0(n))}function ITe(e,n){AY.call(this,e,n)}function DTe(e,n){AY.call(this,e,n)}function lL(e,n){AY.call(this,e,n)}function LTe(e){Yu(this),h6(this,e)}function TU(e){return Qe(e,0),null}function vf(e){return e.a=0,e.b=0,e}function $Te(e,n){return e.a=n.g+1,e}function Yan(e,n){return e.j[n.p]==2}function CU(e){return Iwn(u(e,79))}function FTe(){FTe=W,hYe=Zn(vN())}function NTe(){NTe=W,AQe=Zn(vKe())}function _Te(){this.b=new c2(uw(12))}function BTe(){this.b=0,this.a=!1}function RTe(){this.b=0,this.a=!1}function x5(e){this.a=e,nD.call(this)}function KTe(e){this.a=e,nD.call(this)}function Ge(e,n){ji.call(this,e,n)}function aL(e,n){Ub.call(this,e,n)}function Cg(e,n){kU.call(this,e,n)}function hL(e,n){Vv.call(this,e,n)}function qTe(e,n){D8.call(this,e,n)}function ot(e,n){PT(),jt(YO,e,n)}function dL(e,n){return Ps(e.a,0,n)}function HTe(e,n){return e.a.a.a.cc(n)}function VTe(e,n){return X(e)===X(n)}function Qan(e,n){return mi(e.a,n.a)}function Jan(e,n){return yu(e.a,n.a)}function Zan(e,n){return CPe(e.a,n.a)}function wl(e,n){return e.indexOf(n)}function f0(e,n){return e==n?0:e?1:-1}function QT(e){return e<10?"0"+e:""+e}function ehn(e){return Nn(e),new x5(e)}function GTe(e){return au(e.l,e.m,e.h)}function cv(e){return oi((nn(e),e))}function nhn(e){return oi((nn(e),e))}function zTe(e,n){return yu(e.g,n.g)}function ic(e){return typeof e===nie}function thn(e){return e==ub||e==Kw}function ihn(e){return e==ub||e==Rw}function SU(e){return rc(e.b.b,e,0)}function WTe(e){this.a=wTe(),this.b=e}function UTe(e){this.a=wTe(),this.b=e}function rhn(e,n){return se(e.a,n),n}function chn(e,n){return se(e.c,n),e}function XTe(e,n){return Ls(e.a,n),e}function uhn(e,n){return Xo(),n.a+=e}function shn(e,n){return Xo(),n.a+=e}function ohn(e,n){return Xo(),n.c+=e}function MU(e,n){xv(e,0,e.length,n)}function wa(){Lz.call(this,new nd)}function YTe(){xC.call(this,0,0,0,0)}function a2(){Qs.call(this,0,0,0,0)}function Hr(e){this.a=e.a,this.b=e.b}function Bh(e){return e==Io||e==of}function uv(e){return e==Ba||e==_a}function QTe(e){return e==Np||e==Fp}function Sg(e){return e!=cl&&e!=S1}function ps(e){return e.Lg()&&e.Mg()}function JTe(e){return zC(u(e,118))}function JT(e){return Ls(new xi,e)}function ZTe(e,n){return new Vv(n,e)}function fhn(e,n){return new Vv(n,e)}function PU(e,n,t){KS(e,n),qS(e,t)}function ZT(e,n,t){O0(e,n),x0(e,t)}function $f(e,n,t){Mu(e,n),Pu(e,t)}function eC(e,n,t){Lv(e,n),Fv(e,t)}function nC(e,n,t){$v(e,n),Nv(e,t)}function bL(e,n){Yv(e,n),_v(e,e.D)}function AU(e){CTe.call(this,e,!0)}function eCe(e,n,t){mX.call(this,e,n,t)}function Rh(e){c1(),l4n.call(this,e)}function nCe(){OT.call(this,"Head",1)}function tCe(){OT.call(this,"Tail",3)}function wL(e){e.c=V(pn,pe,1,0,5,1)}function iCe(e){e.a=V(pn,pe,1,8,5,1)}function rCe(e){Su(e.xf(),new zye(e))}function Mg(e){return e!=null?Bt(e):0}function lhn(e,n){return sw(n,_f(e))}function ahn(e,n){return sw(n,_f(e))}function hhn(e,n){return e[e.length]=n}function dhn(e,n){return e[e.length]=n}function xU(e){return hbn(e.b.Kc(),e.a)}function bhn(e,n){return US(b$(e.d),n)}function whn(e,n){return US(b$(e.g),n)}function ghn(e,n){return US(b$(e.j),n)}function Er(e,n){ji.call(this,e.b,n)}function l0(e){xC.call(this,e,e,e,e)}function OU(e){return e.b&&F_(e),e.a}function IU(e){return e.b&&F_(e),e.c}function phn(e,n){el||(e.b=n)}function gL(e,n,t){return Ut(e,n,t),t}function cCe(e,n,t){Ut(e.c[n.g],n.g,t)}function mhn(e,n,t){u(e.c,69).Xh(n,t)}function vhn(e,n,t){$f(t,t.i+e,t.j+n)}function yhn(e,n){Bn(Kc(e.a),vxe(n))}function khn(e,n){Bn(rs(e.a),yxe(n))}function O5(e){gt(),Qd.call(this,e)}function jhn(e){return e==null?0:Bt(e)}function uCe(){uCe=W,RH=new j6($V)}function qn(){qn=W,new sCe,new oe}function sCe(){new $n,new $n,new $n}function DU(){DU=W,Qz(),Eue=new $n}function Ff(){Ff=W,k.Math.log(2)}function Xs(){Xs=W,la=(dEe(),jrn)}function Ehn(){throw O(new Ga(WUe))}function Thn(){throw O(new Ga(WUe))}function Chn(){throw O(new Ga(UUe))}function Shn(){throw O(new Ga(UUe))}function oCe(e){this.a=e,QX.call(this,e)}function pL(e){this.a=e,mT.call(this,e)}function mL(e){this.a=e,mT.call(this,e)}function Li(e,n){XL(e.c,e.c.length,n)}function lc(e){return e.an?1:0}function lCe(e,n){return Fc(e,n)>0?e:n}function au(e,n,t){return{l:e,m:n,h:t}}function Mhn(e,n){e.a!=null&&bTe(n,e.a)}function aCe(e){e.a=new al,e.c=new al}function tC(e){this.b=e,this.a=new oe}function hCe(e){this.b=new Qbe,this.a=e}function $U(e){MX.call(this),this.a=e}function dCe(){OT.call(this,"Range",2)}function bCe(){Aee(),this.a=new hk(Qse)}function Phn(e,n){Nn(n),Ig(e).Jc(new kn)}function Ahn(e,n){return As(),n.n.b+=e}function xhn(e,n,t){return jt(e.g,t,n)}function Ohn(e,n,t){return jt(e.k,t,n)}function Ihn(e,n){return jt(e.a,n.a,n)}function Pg(e,n,t){return XZ(n,t,e.c)}function FU(e){return new je(e.c,e.d)}function Dhn(e){return new je(e.c,e.d)}function kc(e){return new je(e.a,e.b)}function wCe(e,n){return tOn(e.a,n,null)}function Lhn(e){or(e,null),Gi(e,null)}function gCe(e){N$(e,null),_$(e,null)}function pCe(){D8.call(this,null,null)}function mCe(){lC.call(this,null,null)}function NU(e){this.a=e,$n.call(this)}function $hn(e){this.b=(He(),new oD(e))}function iC(e){e.j=V(Fue,ie,310,0,0,1)}function Fhn(e,n,t){e.c.Vc(n,u(t,133))}function Nhn(e,n,t){e.c.ji(n,u(t,133))}function vCe(e,n){Dn(e),e.Gc(u(n,15))}function I5(e,n){return mxn(e.c,e.b,n)}function _hn(e,n){return new KCe(e.Kc(),n)}function vL(e,n){return N4n(e.Kc(),n)!=-1}function _U(e,n){return e.a.Bc(n)!=null}function rC(e){return e.Ob()?e.Pb():null}function yCe(e){return ko(e,0,e.length)}function _(e,n){return e!=null&&EN(e,n)}function Bhn(e,n){e.q.setHours(n),K6(e,n)}function kCe(e,n){e.c&&(oY(n),WAe(n))}function Rhn(e,n,t){u(e.Kb(t),164).Nb(n)}function Khn(e,n,t){return Xxn(e,n,t),t}function jCe(e,n,t){e.a=n^1502,e.b=t^IB}function yL(e,n,t){return e.a[n.g][t.g]}function Nf(e,n){return e.a[n.c.p][n.p]}function qhn(e,n){return e.e[n.c.p][n.p]}function Hhn(e,n){return e.c[n.c.p][n.p]}function Vhn(e,n){return e.j[n.p]=ZTn(n)}function Ghn(e,n){return KQ(e.f,n.tg())}function zhn(e,n){return KQ(e.b,n.tg())}function Whn(e,n){return e.a<_X(n)?-1:1}function Uhn(e,n,t){return t?n!=0:n!=e-1}function Xhn(e,n,t){return e.a=n,e.b=t,e}function gl(e,n){return e.a*=n,e.b*=n,e}function D5(e,n,t){return Ut(e.g,n,t),t}function Yhn(e,n,t,i){Ut(e.a[n.g],t.g,i)}function Qhn(e,n){Gb(n,e.a.a.a,e.a.a.b)}function ECe(e){e.a=u(en(e.b.a,4),126)}function TCe(e){e.a=u(en(e.b.a,4),126)}function Jhn(e){Z8(e,kWe),g_(e,ZOn(e))}function sv(){sv=W,KA=new oT(null)}function BU(){BU=W,BU(),kXe=new wo}function RU(){this.Bb|=256,this.Bb|=512}function jn(e){this.i=e,this.f=this.i.j}function gi(e,n,t){z8.call(this,e,n,t)}function cC(e,n,t){gi.call(this,e,n,t)}function _u(e,n,t){gi.call(this,e,n,t)}function CCe(e,n,t){cC.call(this,e,n,t)}function KU(e,n,t){z8.call(this,e,n,t)}function Ag(e,n,t){z8.call(this,e,n,t)}function qU(e,n,t){kC.call(this,e,n,t)}function SCe(e,n,t){kC.call(this,e,n,t)}function MCe(e,n,t){qU.call(this,e,n,t)}function PCe(e,n,t){KU.call(this,e,n,t)}function xg(e,n){this.a=e,mT.call(this,n)}function ACe(e,n){this.a=e,SD.call(this,n)}function xCe(e,n){this.a=e,SD.call(this,n)}function OCe(e,n){this.a=e,SD.call(this,n)}function HU(e){this.a=e,rye.call(this,e.d)}function Kh(e){this.c=e,this.a=this.c.a}function VU(e,n){this.a=n,SD.call(this,e)}function ICe(e,n){this.a=n,X$.call(this,e)}function DCe(e,n){this.a=e,X$.call(this,n)}function Zhn(e,n){return MY(e$(e.c)).Xb(n)}function GU(e,n){return b6n(e,new Ih,n).a}function Sn(e,n){return Nn(n),new LCe(e,n)}function LCe(e,n){this.a=n,vT.call(this,e)}function zU(e){this.b=e,this.a=this.b.a.e}function $Ce(e){e.b.Qb(),--e.d.f.d,IC(e.d)}function FCe(e){iD.call(this,u(Nn(e),35))}function NCe(e){iD.call(this,u(Nn(e),35))}function _Ce(){Yn.call(this,"INSTANCE",0)}function WU(e){if(!e)throw O(new o8)}function UU(e){if(!e)throw O(new Fu)}function XU(e){if(!e)throw O(new Ac)}function BCe(){BCe=W,LD(),Qrn=new H6e}function un(){un=W,xd=!1,W3=!0}function po(e){n8.call(this,(nn(e),e))}function Ms(e){n8.call(this,(nn(e),e))}function uC(e){qm.call(this,e),this.a=e}function YU(e){Hm.call(this,e),this.a=e}function QU(e){Xm.call(this,e),this.a=e}function RCe(){iC(this),YC(this),this._d()}function KCe(e,n){this.a=n,vT.call(this,e)}function qCe(e,n){return new FBe(e.a,e.b,n)}function sC(e,n){return e.lastIndexOf(n)}function JU(e,n,t){return e.indexOf(n,t)}function L5(e){return e==null?Ou:uc(e)}function e1n(e){return e==null?null:e.name}function ZU(e){return e.a!=null?e.a:null}function n1n(e){return gT(e.a)?Txe(e):null}function kL(e,n){return J5(e.a,n)!=null}function Bu(e,n){return!!n&&e.b[n.g]==n}function a0(e){return e.$H||(e.$H=++bDn)}function t1n(e){return e.l+e.m*X2+e.h*yd}function HCe(e,n){return se(n.a,e.a),e.a}function VCe(e,n){return se(n.b,e.a),e.a}function h0(e,n){return se(n.a,e.a),e.a}function d0(e){return mn(e.a!=null),e.a}function jL(e){Lz.call(this,new XQ(e))}function eX(e,n){nee.call(this,e,n,null)}function $5(e){this.a=e,Pz.call(this,e)}function oC(){oC=W,zA=new ji(kGe,0)}function fC(e,n){return++e.b,se(e.a,n)}function nX(e,n){return++e.b,Tu(e.a,n)}function i1n(e,n){return mi(e.n.a,n.n.a)}function r1n(e,n){return mi(e.c.d,n.c.d)}function c1n(e,n){return mi(e.c.c,n.c.c)}function ku(e,n){return u(Ct(e.b,n),15)}function u1n(e,n){return e.n.b=(nn(n),n)}function s1n(e,n){return e.n.b=(nn(n),n)}function F5(e){return lc(e.a)||lc(e.b)}function o1n(e,n,t){return pOe(e,n,t,e.b)}function tX(e,n,t){return pOe(e,n,t,e.c)}function iX(e,n,t){u(p7(e,n),21).Fc(t)}function f1n(e,n,t){tN(e.a,t),FM(e.a,n)}function D8(e,n){h5(),this.a=e,this.b=n}function lC(e,n){Ua(),this.b=e,this.c=n}function EL(e,n){ZL(),this.f=n,this.d=e}function rX(e,n){qQ(n,e),this.d=e,this.c=n}function Xa(e){var n;n=e.a,e.a=e.b,e.b=n}function l1n(e){return Xo(),!!e&&!e.dc()}function a1n(e){return new tw(3,e)}function cX(e,n){return new KSe(e,e.gc(),n)}function h1n(e){return sT(),Jn((hxe(),tXe),e)}function h2(e){this.d=e,jn.call(this,e)}function d2(e){this.c=e,jn.call(this,e)}function L8(e){this.c=e,h2.call(this,e)}function GCe(){f5(),this.b=new P9e(this)}function Kl(e){return Ds(e,Pw),new iu(e)}function zCe(e){return jv(),parseInt(e)||-1}function Ps(e,n,t){return e.substr(n,t-n)}function ov(e,n,t){return JU(e,xu(n),t)}function TL(e){return BY(e.c,e.c.length)}function d1n(e){return e.f!=null?e.f:""+e.g}function CL(e){return e.f!=null?e.f:""+e.g}function SL(e){return mn(e.b!=0),e.a.a.c}function aC(e){return mn(e.b!=0),e.c.b.c}function $8(e){_(e,150)&&u(e,150).Gh()}function hC(e){return e.b=u(EAe(e.a),42)}function uX(e){tv(),this.b=e,this.a=!0}function WCe(e){kT(),this.b=e,this.a=!0}function UCe(e){e.d=new YCe(e),e.e=new $n}function XCe(e){if(!e)throw O(new Us)}function sX(e){if(!e)throw O(new o8)}function Vb(e){if(!e)throw O(new Fu)}function b1n(e){if(!e)throw O(new aD)}function mn(e){if(!e)throw O(new Ac)}function YCe(e){JX.call(this,e,null,null)}function QCe(){Yn.call(this,"POLYOMINO",0)}function JCe(e,n,t,i){SY.call(this,e,n,t,i)}function w1n(e,n){return r1(),Be(e,n.e,n)}function g1n(e,n,t){return ST(),t.qg(e,n)}function Oi(e,n){return!!e.q&&ys(e.q,n)}function p1n(e,n){return e>0?n*n/e:n*n*100}function m1n(e,n){return e>0?n/(e*e):n*100}function v1n(e,n,t){return se(n,GFe(e,t))}function y1n(e,n,t){MS(),e.Xe(n)&&t.td(e)}function fv(e,n,t){var i;i=e.Zc(n),i.Rb(t)}function Gb(e,n,t){return e.a+=n,e.b+=t,e}function k1n(e,n,t){return e.a*=n,e.b*=t,e}function F8(e,n,t){return e.a-=n,e.b-=t,e}function oX(e,n){return e.a=n.a,e.b=n.b,e}function dC(e){return e.a=-e.a,e.b=-e.b,e}function ZCe(e){this.c=e,this.a=1,this.b=1}function eSe(e){this.c=e,Mu(e,0),Pu(e,0)}function nSe(e){Gt.call(this),o6(this,e)}function tSe(e){Q_(),M7e(this),this.mf(e)}function iSe(e,n){h5(),D8.call(this,e,n)}function fX(e,n){Ua(),lC.call(this,e,n)}function rSe(e,n){Ua(),lC.call(this,e,n)}function cSe(e,n){Ua(),fX.call(this,e,n)}function ms(e,n,t){js.call(this,e,n,t,2)}function ML(e,n){Xs(),AC.call(this,e,n)}function uSe(e,n){Xs(),ML.call(this,e,n)}function lX(e,n){Xs(),ML.call(this,e,n)}function sSe(e,n){Xs(),lX.call(this,e,n)}function aX(e,n){Xs(),AC.call(this,e,n)}function oSe(e,n){Xs(),aX.call(this,e,n)}function fSe(e,n){Xs(),AC.call(this,e,n)}function j1n(e,n){return e.c.Fc(u(n,133))}function hX(e,n,t){return pP(m7(e,n),t)}function E1n(e,n,t){return n.Qk(e.e,e.c,t)}function T1n(e,n,t){return n.Rk(e.e,e.c,t)}function PL(e,n){return e1(e.e,u(n,49))}function C1n(e,n,t){y6(rs(e.a),n,yxe(t))}function S1n(e,n,t){y6(Kc(e.a),n,vxe(t))}function dX(e,n){n.$modCount=e.$modCount}function N5(){N5=W,s9=new Kt("root")}function lv(){lv=W,fE=new cke,new uke}function lSe(){this.a=new E0,this.b=new E0}function bX(){ALe.call(this),this.Bb|=vr}function aSe(){Yn.call(this,"GROW_TREE",0)}function M1n(e){return e==null?null:GOn(e)}function P1n(e){return e==null?null:Zkn(e)}function A1n(e){return e==null?null:uc(e)}function x1n(e){return e==null?null:uc(e)}function ga(e){e.o==null&&MTn(e)}function ye(e){return R5(e==null||qb(e)),e}function he(e){return R5(e==null||Hb(e)),e}function Vn(e){return R5(e==null||Ri(e)),e}function wX(e){this.q=new k.Date(C0(e))}function N8(e,n){this.c=e,ev.call(this,e,n)}function bC(e,n){this.a=e,N8.call(this,e,n)}function O1n(e,n){this.d=e,kye(this),this.b=n}function gX(e,n){cF.call(this,e),this.a=n}function pX(e,n){cF.call(this,e),this.a=n}function I1n(e){VZ.call(this,0,0),this.f=e}function mX(e,n,t){CS.call(this,e,n,t,null)}function hSe(e,n,t){CS.call(this,e,n,t,null)}function D1n(e,n,t){return e.ue(n,t)<=0?t:n}function L1n(e,n,t){return e.ue(n,t)<=0?n:t}function $1n(e,n){return u(M0(e.b,n),149)}function F1n(e,n){return u(M0(e.c,n),229)}function AL(e){return u(ve(e.a,e.b),287)}function dSe(e){return new je(e.c,e.d+e.a)}function bSe(e){return As(),QTe(u(e,197))}function zb(){zb=W,Sse=_e((Ts(),Vd))}function N1n(e,n){n.a?jSn(e,n):kL(e.a,n.b)}function wSe(e,n){el||se(e.a,n)}function _1n(e,n){return g8(),Hv(n.d.i,e)}function B1n(e,n){return D2(),new pqe(n,e)}function pl(e,n){return Z8(n,kie),e.f=n,e}function vX(e,n,t){return t=Ns(e,n,3,t),t}function yX(e,n,t){return t=Ns(e,n,6,t),t}function kX(e,n,t){return t=Ns(e,n,9,t),t}function _8(e,n,t){++e.j,e.Ki(),iF(e,n,t)}function gSe(e,n,t){++e.j,e.Hi(n,e.oi(n,t))}function pSe(e,n,t){var i;i=e.Zc(n),i.Rb(t)}function mSe(e,n,t){return $te(e.c,e.b,n,t)}function jX(e,n){return(n&vt)%e.d.length}function ji(e,n){Kt.call(this,e),this.a=n}function EX(e,n){Vz.call(this,e),this.a=n}function xL(e,n){Vz.call(this,e),this.a=n}function vSe(e,n){this.c=e,P0.call(this,n)}function ySe(e,n){this.a=e,k7e.call(this,n)}function B8(e,n){this.a=e,k7e.call(this,n)}function kSe(e){this.a=(Ds(e,Pw),new iu(e))}function jSe(e){this.a=(Ds(e,Pw),new iu(e))}function R8(e){return!e.a&&(e.a=new gn),e.a}function ESe(e){return e>8?0:e+1}function R1n(e,n){return un(),e==n?0:e?1:-1}function TX(e,n,t){return p2(e,u(n,22),t)}function K1n(e,n,t){return e.apply(n,t)}function TSe(e,n,t){return e.a+=ko(n,0,t),e}function CX(e,n){var t;return t=e.e,e.e=n,t}function q1n(e,n){var t;t=e[OB],t.call(e,n)}function H1n(e,n){var t;t=e[OB],t.call(e,n)}function Wb(e,n){e.a.Vc(e.b,n),++e.b,e.c=-1}function CSe(e){Yu(e.e),e.d.b=e.d,e.d.a=e.d}function K8(e){e.b?K8(e.b):e.f.c.zc(e.e,e.d)}function V1n(e,n,t){z1(),mye(e,n.Ce(e.a,t))}function G1n(e,n){return xD(sNe(e.a,n,!0))}function z1n(e,n){return xD(oNe(e.a,n,!0))}function Uo(e,n){return hT(new Array(n),e)}function OL(e){return String.fromCharCode(e)}function W1n(e){return e==null?null:e.message}function SSe(){this.a=new oe,this.b=new oe}function MSe(){this.a=new GG,this.b=new F7e}function PSe(){this.b=new ir,this.c=new oe}function SX(){this.d=new ir,this.e=new ir}function MX(){this.n=new ir,this.o=new ir}function wC(){this.n=new n2,this.i=new a2}function ASe(){this.a=new o6e,this.b=new X2e}function xSe(){this.a=new oe,this.d=new oe}function OSe(){this.b=new Ai,this.a=new Ai}function ISe(){this.b=new $n,this.a=new $n}function DSe(){this.b=new dje,this.a=new Qme}function LSe(){wC.call(this),this.a=new ir}function _5(e){m4n.call(this,e,(AS(),UK))}function PX(e,n,t,i){xC.call(this,e,n,t,i)}function U1n(e,n,t){t!=null&&zS(n,LN(e,t))}function X1n(e,n,t){t!=null&&WS(n,LN(e,t))}function AX(e,n,t){return t=Ns(e,n,11,t),t}function Mt(e,n){return e.a+=n.a,e.b+=n.b,e}function Ki(e,n){return e.a-=n.a,e.b-=n.b,e}function Y1n(e,n){return e.n.a=(nn(n),n+10)}function Q1n(e,n){return e.n.a=(nn(n),n+10)}function J1n(e,n){return n==e||l3(tP(n),e)}function $Se(e,n){return jt(e.a,n,"")==null}function Z1n(e,n){return g8(),!Hv(n.d.i,e)}function edn(e,n){Bh(e.f)?pTn(e,n):nkn(e,n)}function ndn(e,n){var t;return t=n.Hh(e.a),t}function Ub(e,n){qr.call(this,py+e+Sd+n)}function b2(e,n,t,i){fe.call(this,e,n,t,i)}function xX(e,n,t,i){fe.call(this,e,n,t,i)}function FSe(e,n,t,i){xX.call(this,e,n,t,i)}function NSe(e,n,t,i){RC.call(this,e,n,t,i)}function IL(e,n,t,i){RC.call(this,e,n,t,i)}function OX(e,n,t,i){RC.call(this,e,n,t,i)}function _Se(e,n,t,i){IL.call(this,e,n,t,i)}function IX(e,n,t,i){IL.call(this,e,n,t,i)}function Xe(e,n,t,i){OX.call(this,e,n,t,i)}function BSe(e,n,t,i){IX.call(this,e,n,t,i)}function RSe(e,n,t,i){xY.call(this,e,n,t,i)}function KSe(e,n,t){this.a=e,rX.call(this,n,t)}function qSe(e,n,t){this.c=n,this.b=t,this.a=e}function tdn(e,n,t){return e.d=u(n.Kb(t),164)}function DX(e,n){return e.Aj().Nh().Kh(e,n)}function LX(e,n){return e.Aj().Nh().Ih(e,n)}function HSe(e,n){return nn(e),X(e)===X(n)}function Ke(e,n){return nn(e),X(e)===X(n)}function DL(e,n){return xD(sNe(e.a,n,!1))}function LL(e,n){return xD(oNe(e.a,n,!1))}function idn(e,n){return e.b.sd(new jEe(e,n))}function rdn(e,n){return e.b.sd(new EEe(e,n))}function VSe(e,n){return e.b.sd(new TEe(e,n))}function $X(e,n,t){return e.lastIndexOf(n,t)}function cdn(e,n,t){return mi(e[n.b],e[t.b])}function udn(e,n){return te(n,(be(),Cj),e)}function sdn(e,n){return yu(n.a.d.p,e.a.d.p)}function odn(e,n){return yu(e.a.d.p,n.a.d.p)}function fdn(e,n){return mi(e.c-e.s,n.c-n.s)}function GSe(e){return e.c?rc(e.c.a,e,0):-1}function ldn(e){return e<100?null:new Dh(e)}function w2(e){return e==Hd||e==fa||e==nu}function zSe(e,n){return _(n,15)&&JKe(e.c,n)}function adn(e,n){el||n&&(e.d=n)}function $L(e,n){var t;return t=n,!!rZ(e,t)}function FX(e,n){this.c=e,o$.call(this,e,n)}function WSe(e){this.c=e,lL.call(this,CP,0)}function USe(e,n){gbn.call(this,e,e.length,n)}function hdn(e,n,t){return u(e.c,69).lk(n,t)}function gC(e,n,t){return u(e.c,69).mk(n,t)}function ddn(e,n,t){return E1n(e,u(n,332),t)}function NX(e,n,t){return T1n(e,u(n,332),t)}function bdn(e,n,t){return z_e(e,u(n,332),t)}function XSe(e,n,t){return hkn(e,u(n,332),t)}function B5(e,n){return n==null?null:aw(e.b,n)}function _X(e){return Hb(e)?(nn(e),e):e.ke()}function pC(e){return!isNaN(e)&&!isFinite(e)}function YSe(e){ml(),this.a=(He(),new Xm(e))}function q8(e){hv(),this.d=e,this.a=new mg}function Ys(e,n,t){this.a=e,this.b=n,this.c=t}function QSe(e,n,t){this.a=e,this.b=n,this.c=t}function JSe(e,n,t){this.d=e,this.b=t,this.a=n}function FL(e){aCe(this),vo(this),gr(this,e)}function Ru(e){wL(this),ZX(this.c,0,e.Pc())}function ZSe(e){ks(e.a),YIe(e.c,e.b),e.b=null}function eMe(e){this.a=e,Rl(),Au(Date.now())}function nMe(){nMe=W,ise=new N,HA=new N}function NL(){NL=W,Uue=new Kr,vXe=new vu}function tMe(){tMe=W,Mrn=V(pn,pe,1,0,5,1)}function iMe(){iMe=W,Grn=V(pn,pe,1,0,5,1)}function BX(){BX=W,zrn=V(pn,pe,1,0,5,1)}function ml(){ml=W,new Wz((He(),He(),Sr))}function wdn(e){return AS(),Jn((sDe(),jXe),e)}function gdn(e){return Wf(),Jn((SIe(),PXe),e)}function pdn(e){return PM(),Jn((DOe(),LXe),e)}function mdn(e){return LS(),Jn((LOe(),$Xe),e)}function vdn(e){return oP(),Jn((y$e(),FXe),e)}function ydn(e){return Ef(),Jn((EIe(),BXe),e)}function kdn(e){return Qu(),Jn((TIe(),KXe),e)}function jdn(e){return Cu(),Jn((CIe(),HXe),e)}function Edn(e){return EP(),Jn((FTe(),hYe),e)}function Tdn(e){return L0(),Jn((fDe(),bYe),e)}function Cdn(e){return B2(),Jn((lDe(),gYe),e)}function Sdn(e){return S6(),Jn((aDe(),vYe),e)}function Mdn(e){return jT(),Jn((aOe(),yYe),e)}function Pdn(e){return $S(),Jn(($Oe(),NYe),e)}function Adn(e){return u6(),Jn((MIe(),rQe),e)}function xdn(e){return pr(),Jn((KDe(),oQe),e)}function Odn(e){return zv(),Jn((oDe(),dQe),e)}function Idn(e){return $0(),Jn((PIe(),vQe),e)}function RX(e,n){if(!e)throw O(new rn(n))}function Ddn(e){return dn(),Jn((oLe(),EQe),e)}function KX(e){xC.call(this,e.d,e.c,e.a,e.b)}function _L(e){xC.call(this,e.d,e.c,e.a,e.b)}function qX(e,n,t){this.b=e,this.c=n,this.a=t}function mC(e,n,t){this.b=e,this.a=n,this.c=t}function rMe(e,n,t){this.a=e,this.b=n,this.c=t}function HX(e,n,t){this.a=e,this.b=n,this.c=t}function cMe(e,n,t){this.a=e,this.b=n,this.c=t}function VX(e,n,t){this.a=e,this.b=n,this.c=t}function uMe(e,n,t){this.b=e,this.a=n,this.c=t}function vC(e,n,t){this.e=n,this.b=e,this.d=t}function Ldn(e,n,t){return z1(),e.a.Od(n,t),n}function BL(e){var n;return n=new HI,n.e=e,n}function GX(e){var n;return n=new H7e,n.b=e,n}function H8(){H8=W,tx=new Tge,ix=new Cge}function Xo(){Xo=W,NQe=new s2e,_Qe=new o2e}function $dn(e){return sM(),Jn((dDe(),IQe),e)}function Fdn(e){return zf(),Jn((wDe(),KQe),e)}function Ndn(e){return uP(),Jn((f$e(),XQe),e)}function _dn(e){return K2(),Jn((aLe(),YQe),e)}function Bdn(e){return SS(),Jn((KOe(),QQe),e)}function Rdn(e){return I2(),Jn((AIe(),JQe),e)}function Kdn(e){return Qg(),Jn((FDe(),HQe),e)}function qdn(e){return D0(),Jn((IIe(),UQe),e)}function Hdn(e){return VS(),Jn((xIe(),ZQe),e)}function Vdn(e){return gd(),Jn((LDe(),eJe),e)}function Gdn(e){return E7(),Jn((NOe(),nJe),e)}function zdn(e){return od(),Jn((OIe(),iJe),e)}function Wdn(e){return YM(),Jn((wLe(),rJe),e)}function Udn(e){return w7(),Jn((_Oe(),cJe),e)}function Xdn(e){return nk(),Jn((dLe(),uJe),e)}function Ydn(e){return h3(),Jn((hLe(),sJe),e)}function Qdn(e){return Or(),Jn(($$e(),oJe),e)}function Jdn(e){return Gv(),Jn((LIe(),fJe),e)}function Zdn(e){return Ta(),Jn((DIe(),aJe),e)}function e0n(e){return wS(),Jn((qOe(),hJe),e)}function n0n(e){return ro(),Jn((NDe(),dJe),e)}function t0n(e){return zM(),Jn((bLe(),Pen),e)}function i0n(e){return g6(),Jn(($Ie(),Aen),e)}function r0n(e){return bw(),Jn((gDe(),xen),e)}function c0n(e){return Ar(),Jn((_Ie(),Fen),e)}function u0n(e){return np(),Jn((o$e(),Ien),e)}function s0n(e){return Sa(),Jn((NIe(),Den),e)}function o0n(e){return v7(),Jn((ROe(),Len),e)}function f0n(e){return iM(),Jn((FIe(),Nen),e)}function l0n(e){return M6(),Jn(($De(),Oen),e)}function a0n(e){return f7(),Jn((BOe(),_en),e)}function h0n(e){return Jv(),Jn((RIe(),Ben),e)}function d0n(e){return nM(),Jn((KIe(),Ren),e)}function b0n(e){return oM(),Jn((BIe(),Ken),e)}function w0n(e){return I0(),Jn((qIe(),enn),e)}function g0n(e){return r6(),Jn((VOe(),cnn),e)}function p0n(e){return yl(),Jn((GOe(),hnn),e)}function m0n(e){return Bf(),Jn((zOe(),bnn),e)}function v0n(e){return yf(),Jn((HOe(),Ann),e)}function y0n(e){return j0(),Jn((WOe(),Fnn),e)}function k0n(e){return s3(),Jn((hDe(),Nnn),e)}function j0n(e){return D6(),Jn((gLe(),Bnn),e)}function E0n(e){return sS(),Jn((YOe(),Znn),e)}function T0n(e){return JS(),Jn((XOe(),ctn),e)}function C0n(e){return aS(),Jn((UOe(),etn),e)}function S0n(e){return vM(),Jn((HIe(),stn),e)}function M0n(e){return PS(),Jn((QOe(),otn),e)}function P0n(e){return N7(),Jn((VIe(),ftn),e)}function A0n(e){return _M(),Jn((bDe(),Ttn),e)}function x0n(e){return tM(),Jn((zIe(),Ctn),e)}function O0n(e){return mM(),Jn((GIe(),Stn),e)}function I0n(e){return m3(),Jn((RDe(),ztn),e)}function D0n(e){return H7(),Jn((WIe(),Wtn),e)}function L0n(e){return TT(),Jn((fOe(),Utn),e)}function $0n(e){return CT(),Jn((oOe(),Ytn),e)}function F0n(e){return l7(),Jn((ZOe(),Qtn),e)}function N0n(e){return ik(),Jn((_De(),Jtn),e)}function _0n(e){return l5(),Jn((lOe(),bin),e)}function B0n(e){return D7(),Jn((JOe(),win),e)}function R0n(e){return Cf(),Jn((BDe(),kin),e)}function K0n(e){return lh(),Jn((l$e(),Ein),e)}function q0n(e){return Xl(),Jn((lLe(),Tin),e)}function H0n(e){return pw(),Jn((fLe(),xin),e)}function V0n(e){return Cr(),Jn((NTe(),AQe),e)}function G0n(e){return Rv(),Jn((FOe(),PQe),e)}function z0n(e){return xr(),Jn((qDe(),Gin),e)}function W0n(e){return Vf(),Jn((XIe(),zin),e)}function U0n(e){return Aa(),Jn((vDe(),Win),e)}function X0n(e){return UM(),Jn((mLe(),Uin),e)}function Y0n(e){return Ma(),Jn((UIe(),Yin),e)}function Q0n(e){return $s(),Jn((mDe(),Jin),e)}function J0n(e){return kw(),Jn((v$e(),Zin),e)}function Z0n(e){return Gg(),Jn((HDe(),ern),e)}function ebn(e){return Wi(),Jn((rLe(),nrn),e)}function nbn(e){return Ju(),Jn((pLe(),trn),e)}function tbn(e){return Ts(),Jn((kDe(),orn),e)}function ibn(e){return os(),Jn((F$e(),frn),e)}function rbn(e){return ae(),Jn((VDe(),irn),e)}function cbn(e){return jM(),Jn((yDe(),lrn),e)}function ubn(e){return Es(),Jn((pDe(),drn),e)}function sbn(e){return w3(),Jn((a$e(),Srn),e)}function obn(e,n){return nn(e),e+(nn(n),n)}function fbn(e,n){return Rl(),Bn(Q(e.a),n)}function lbn(e,n){return Rl(),Bn(Q(e.a),n)}function RL(e,n){this.c=e,this.a=n,this.b=n-e}function sMe(e,n,t){this.a=e,this.b=n,this.c=t}function zX(e,n,t){this.a=e,this.b=n,this.c=t}function WX(e,n,t){this.a=e,this.b=n,this.c=t}function oMe(e,n,t){this.a=e,this.b=n,this.c=t}function fMe(e,n,t){this.a=e,this.b=n,this.c=t}function Ya(e,n,t){this.e=e,this.a=n,this.c=t}function lMe(e,n,t){Xs(),cQ.call(this,e,n,t)}function KL(e,n,t){Xs(),HY.call(this,e,n,t)}function UX(e,n,t){Xs(),HY.call(this,e,n,t)}function XX(e,n,t){Xs(),HY.call(this,e,n,t)}function aMe(e,n,t){Xs(),KL.call(this,e,n,t)}function YX(e,n,t){Xs(),KL.call(this,e,n,t)}function hMe(e,n,t){Xs(),YX.call(this,e,n,t)}function dMe(e,n,t){Xs(),UX.call(this,e,n,t)}function bMe(e,n,t){Xs(),XX.call(this,e,n,t)}function V8(e,n){return Nn(e),Nn(n),new $je(e,n)}function g2(e,n){return Nn(e),Nn(n),new MMe(e,n)}function abn(e,n){return Nn(e),Nn(n),new PMe(e,n)}function hbn(e,n){return Nn(e),Nn(n),new Nje(e,n)}function u(e,n){return R5(e==null||EN(e,n)),e}function av(e){var n;return n=new oe,gF(n,e),n}function dbn(e){var n;return n=new Ai,gF(n,e),n}function wMe(e){var n;return n=new tW,xF(n,e),n}function G8(e){var n;return n=new Gt,xF(n,e),n}function bbn(e){return!e.e&&(e.e=new oe),e.e}function wbn(e){return!e.c&&(e.c=new Rm),e.c}function se(e,n){return e.c[e.c.length]=n,!0}function gMe(e,n){this.c=e,this.b=n,this.a=!1}function QX(e){this.d=e,kye(this),this.b=swn(e.d)}function pMe(){this.a=";,;",this.b="",this.c=""}function gbn(e,n,t){mPe.call(this,n,t),this.a=e}function mMe(e,n,t){this.b=e,ITe.call(this,n,t)}function JX(e,n,t){this.c=e,IT.call(this,n,t)}function ZX(e,n,t){kne(t,0,e,n,t.length,!1)}function ql(e,n,t,i,r){e.b=n,e.c=t,e.d=i,e.a=r}function pbn(e,n){n&&(e.b=n,e.a=(zh(n),n.a))}function eY(e,n,t,i,r){e.d=n,e.c=t,e.a=i,e.b=r}function nY(e){var n,t;n=e.b,t=e.c,e.b=t,e.c=n}function tY(e){var n,t;t=e.d,n=e.a,e.d=n,e.a=t}function iY(e){return Qh(Ewn(ic(e)?yo(e):e))}function mbn(e,n){return yu(LMe(e.d),LMe(n.d))}function vbn(e,n){return n==(ae(),sn)?e.c:e.d}function hv(){hv=W,jae=(ae(),sn),oO=hn}function vMe(){this.b=ee(he(me((Mf(),aq))))}function yMe(e){return z1(),V(pn,pe,1,e,5,1)}function ybn(e){return new je(e.c+e.b,e.d+e.a)}function kbn(e,n){return ET(),yu(e.d.p,n.d.p)}function qL(e){return mn(e.b!=0),no(e,e.a.a)}function jbn(e){return mn(e.b!=0),no(e,e.c.b)}function rY(e,n){if(!e)throw O(new Ake(n))}function yC(e,n){if(!e)throw O(new rn(n))}function cY(e,n,t){rv.call(this,e,n),this.b=t}function z8(e,n,t){yU.call(this,e,n),this.c=t}function kMe(e,n,t){JDe.call(this,n,t),this.d=e}function uY(e){BX(),WE.call(this),this.th(e)}function jMe(e,n,t){this.a=e,Cg.call(this,n,t)}function EMe(e,n,t){this.a=e,Cg.call(this,n,t)}function kC(e,n,t){yU.call(this,e,n),this.c=t}function TMe(){Mv(),Kwn.call(this,(Fh(),Bo))}function CMe(e){return e!=null&&!fN(e,C9,S9)}function Ebn(e,n){return(LFe(e)<<4|LFe(n))&li}function Tbn(e,n){return GC(),ON(e,n),new JPe(e,n)}function U1(e,n){var t;e.n&&(t=n,se(e.f,t))}function dv(e,n,t){var i;i=new Jb(t),jf(e,n,i)}function Cbn(e,n){var t;return t=e.c,TJ(e,n),t}function sY(e,n){return n<0?e.g=-1:e.g=n,e}function jC(e,n){return f3n(e),e.a*=n,e.b*=n,e}function SMe(e,n,t,i,r){e.c=n,e.d=t,e.b=i,e.a=r}function st(e,n){return ui(e,n,e.c.b,e.c),!0}function oY(e){e.a.b=e.b,e.b.a=e.a,e.a=e.b=null}function HL(e){this.b=e,this.a=w0(this.b.a).Ed()}function MMe(e,n){this.b=e,this.a=n,nD.call(this)}function PMe(e,n){this.a=e,this.b=n,nD.call(this)}function AMe(e,n){mPe.call(this,n,1040),this.a=e}function W8(e){return e==0||isNaN(e)?e:e<0?-1:1}function Sbn(e){return j2(),Yl(e)==Xt(t1(e))}function Mbn(e){return j2(),t1(e)==Xt(Yl(e))}function b0(e,n){return O6(e,new rv(n.a,n.b))}function Pbn(e){return!wr(e)&&e.c.i.c==e.d.i.c}function EC(e){var n;return n=e.n,e.a.b+n.d+n.a}function xMe(e){var n;return n=e.n,e.e.b+n.d+n.a}function fY(e){var n;return n=e.n,e.e.a+n.b+n.c}function OMe(e){return gt(),new Hl(0,e)}function Abn(e){return e.a?e.a:E$(e)}function R5(e){if(!e)throw O(new Um(null))}function IMe(){IMe=W,XV=(He(),new sD(TK))}function TC(){TC=W,new uee((mD(),FK),(vD(),$K))}function DMe(){DMe=W,Oue=V(dr,ie,19,256,0,1)}function VL(e,n,t,i){$Z.call(this,e,n,t,i,0,0)}function xbn(e,n,t){return jt(e.b,u(t.b,17),n)}function Obn(e,n,t){return jt(e.b,u(t.b,17),n)}function Ibn(e,n){return se(e,new je(n.a,n.b))}function Dbn(e,n){return e.c=n)throw O(new Jz)}function wwn(e,n,t){return Ut(n,0,dY(n[0],t[0])),n}function gwn(e,n,t){n.Ye(t,ee(he(yn(e.b,t)))*e.a)}function pPe(e,n,t){return ip(),Kv(e,n)&&Kv(e,t)}function G5(e){return Ju(),!e.Hc(Ka)&&!e.Hc(M1)}function _C(e){return new je(e.c+e.b/2,e.d+e.a/2)}function t$(e,n){return n.kh()?e1(e.b,u(n,49)):n}function AY(e,n){this.e=e,this.d=n&64?n|El:n}function mPe(e,n){this.c=0,this.d=e,this.b=n|64|El}function BC(e){this.b=new iu(11),this.a=(Dg(),e)}function i$(e){this.b=null,this.a=(Dg(),e||Gue)}function vPe(e){this.a=qNe(e.a),this.b=new Ru(e.b)}function yPe(e){this.b=e,h2.call(this,e),ECe(this)}function kPe(e){this.b=e,L8.call(this,e),TCe(this)}function Qb(e,n,t){this.a=e,b2.call(this,n,t,5,6)}function xY(e,n,t,i){this.b=e,gi.call(this,n,t,i)}function $i(e,n,t,i,r){oF.call(this,e,n,t,i,r,-1)}function z5(e,n,t,i,r){d7.call(this,e,n,t,i,r,-1)}function fe(e,n,t,i){gi.call(this,e,n,t),this.b=i}function RC(e,n,t,i){z8.call(this,e,n,t),this.b=i}function jPe(e){CTe.call(this,e,!1),this.a=!1}function EPe(e,n){this.b=e,rye.call(this,e.b),this.a=n}function TPe(e,n){Zb(),van.call(this,e,bM(new gs(n)))}function KC(e,n){return gt(),new VY(e,n,0)}function r$(e,n){return gt(),new VY(6,e,n)}function pwn(e,n){return Ke(e.substr(0,n.length),n)}function ys(e,n){return Ri(n)?S$(e,n):!!Qr(e.f,n)}function Ji(e,n){for(nn(n);e.Ob();)n.td(e.Pb())}function Og(e,n,t){c1(),this.e=e,this.d=n,this.a=t}function Qa(e,n,t,i){var r;r=e.i,r.i=n,r.a=t,r.b=i}function OY(e){var n;for(n=e;n.f;)n=n.f;return n}function v2(e){var n;return n=w6(e),mn(n!=null),n}function mwn(e){var n;return n=i6n(e),mn(n!=null),n}function wv(e,n){var t;return t=e.a.gc(),qQ(n,t),t-n}function IY(e,n){var t;for(t=0;t0?k.Math.log(e/n):-100}function CPe(e,n){return Fc(e,n)<0?-1:Fc(e,n)>0?1:0}function NY(e,n,t){return gHe(e,u(n,46),u(t,167))}function SPe(e,n){return u(MY(w0(e.a)).Xb(n),42).cd()}function Mwn(e,n){return Yvn(n,e.length),new AMe(e,n)}function o$(e,n){this.d=e,jn.call(this,e),this.e=n}function g0(e){this.d=(nn(e),e),this.a=0,this.c=CP}function _Y(e,n){Qd.call(this,1),this.a=e,this.b=n}function MPe(e,n){return e.c?MPe(e.c,n):se(e.b,n),e}function Pwn(e,n,t){var i;return i=cw(e,n),z$(e,n,t),i}function BY(e,n){var t;return t=e.slice(0,n),tJ(t,e)}function PPe(e,n,t){var i;for(i=0;i=e.g}function p$(e,n,t){var i;return i=PF(e,n,t),dte(e,i)}function y2(e,n){var t;t=e.a.length,cw(e,t),z$(e,t,n)}function HPe(e,n){var t;t=console[e],t.call(console,n)}function VPe(e,n){var t;++e.j,t=e.Vi(),e.Ii(e.oi(t,n))}function Rwn(e,n,t){u(n.b,65),Su(n.a,new zX(e,t,n))}function HY(e,n,t){nT.call(this,n),this.a=e,this.b=t}function VY(e,n,t){Qd.call(this,e),this.a=n,this.b=t}function GY(e,n,t){this.a=e,Vz.call(this,n),this.b=t}function GPe(e,n,t){this.a=e,kQ.call(this,8,n,null,t)}function Kwn(e){this.a=(nn(et),et),this.b=e,new aW}function zPe(e){this.c=e,this.b=this.c.a,this.a=this.c.e}function zY(e){this.c=e,this.b=e.a.d.a,dX(e.a.e,this)}function ks(e){Vb(e.c!=-1),e.d.$c(e.c),e.b=e.c,e.c=-1}function X5(e){return k.Math.sqrt(e.a*e.a+e.b*e.b)}function m0(e,n){return bv(n,e.a.c.length),ve(e.a,n)}function vl(e,n){return X(e)===X(n)||e!=null&&kt(e,n)}function qwn(e){return 0>=e?new _W:P3n(e-1)}function Hwn(e){return ag?S$(ag,e):!1}function WPe(e){return e?e.dc():!e.Kc().Ob()}function lr(e){return!e.a&&e.c?e.c.b:e.a}function Vwn(e){return!e.a&&(e.a=new gi(P1,e,4)),e.a}function v0(e){return!e.d&&(e.d=new gi($r,e,1)),e.d}function nn(e){if(e==null)throw O(new Y4);return e}function Y5(e){e.c?e.c.He():(e.d=!0,XCn(e))}function zh(e){e.c?zh(e.c):(hd(e),e.d=!0)}function UPe(e){YY(e.a),e.b=V(pn,pe,1,e.b.length,5,1)}function Gwn(e,n){return yu(n.j.c.length,e.j.c.length)}function zwn(e,n){e.c<0||e.b.b=0?e.Bh(t):Ene(e,n)}function XPe(e){var n,t;return n=e.c.i.c,t=e.d.i.c,n==t}function Uwn(e){if(e.p!=4)throw O(new Fu);return e.e}function Xwn(e){if(e.p!=3)throw O(new Fu);return e.e}function Ywn(e){if(e.p!=6)throw O(new Fu);return e.f}function Qwn(e){if(e.p!=6)throw O(new Fu);return e.k}function Jwn(e){if(e.p!=3)throw O(new Fu);return e.j}function Zwn(e){if(e.p!=4)throw O(new Fu);return e.j}function WY(e){return!e.b&&(e.b=new tT(new pD)),e.b}function y0(e){return e.c==-2&&Yfn(e,pkn(e.g,e.b)),e.c}function mv(e,n){var t;return t=h$("",e),t.n=n,t.i=1,t}function egn(e,n){QL(u(n.b,65),e),Su(n.a,new Fz(e))}function ngn(e,n){Bn((!e.a&&(e.a=new B8(e,e)),e.a),n)}function YPe(e,n){this.b=e,o$.call(this,e,n),ECe(this)}function QPe(e,n){this.b=e,FX.call(this,e,n),TCe(this)}function UY(e,n,t,i){u0.call(this,e,n),this.d=t,this.a=i}function VC(e,n,t,i){u0.call(this,e,t),this.a=n,this.f=i}function JPe(e,n){$hn.call(this,A3n(Nn(e),Nn(n))),this.a=n}function ZPe(){nne.call(this,Pd,(tje(),ecn)),Exn(this)}function eAe(){nne.call(this,Po,(Jm(),Cde)),IAn(this)}function nAe(){Yn.call(this,"DELAUNAY_TRIANGULATION",0)}function tgn(e){return String.fromCharCode.apply(null,e)}function jt(e,n,t){return Ri(n)?Vr(e,n,t):du(e.f,n,t)}function XY(e){return He(),e?e.ve():(Dg(),Dg(),Wue)}function ign(e,n,t){return L2(),t.pg(e,u(n.cd(),146))}function tAe(e,n){return TC(),new uee(new NCe(e),new FCe(n))}function rgn(e){return Ds(e,iB),FS(fr(fr(5,e),e/10|0))}function GC(){GC=W,ZUe=new yD(D(I(Ad,1),SP,42,0,[]))}function iAe(e){return!e.d&&(e.d=new qm(e.c.Cc())),e.d}function vv(e){return!e.a&&(e.a=new Nke(e.c.vc())),e.a}function rAe(e){return!e.b&&(e.b=new Xm(e.c.ec())),e.b}function Gl(e,n){for(;n-- >0;)e=e<<1|(e<0?1:0);return e}function Gc(e,n){return X(e)===X(n)||e!=null&&kt(e,n)}function cgn(e,n){return un(),u(n.b,19).ai&&++i,i}function ma(e){var n,t;return t=(n=new Jd,n),Dv(t,e),t}function j$(e){var n,t;return t=(n=new Jd,n),rne(t,e),t}function ygn(e,n){var t;return t=yn(e.f,n),$J(n,t),null}function E$(e){var n;return n=O3n(e),n||null}function bAe(e){return!e.b&&(e.b=new fe(Di,e,12,3)),e.b}function kgn(e){return e!=null&&b8(QO,e.toLowerCase())}function jgn(e,n){return mi(Ku(e)*vs(e),Ku(n)*vs(n))}function Egn(e,n){return mi(Ku(e)*vs(e),Ku(n)*vs(n))}function Tgn(e,n){return mi(e.d.c+e.d.b/2,n.d.c+n.d.b/2)}function Cgn(e,n){return mi(e.g.c+e.g.b/2,n.g.c+n.g.b/2)}function wAe(e,n,t){t.a?Pu(e,n.b-e.f/2):Mu(e,n.a-e.g/2)}function gAe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function pAe(e,n,t,i){this.a=e,this.b=n,this.c=t,this.d=i}function Q1(e,n,t,i){this.e=e,this.a=n,this.c=t,this.d=i}function mAe(e,n,t,i){this.a=e,this.c=n,this.d=t,this.b=i}function vAe(e,n,t,i){Xs(),aIe.call(this,n,t,i),this.a=e}function yAe(e,n,t,i){Xs(),aIe.call(this,n,t,i),this.a=e}function kAe(e,n){this.a=e,O1n.call(this,e,u(e.d,15).Zc(n))}function T$(e){this.f=e,this.c=this.f.e,e.f>0&&D_e(this)}function jAe(e,n,t,i){this.b=e,this.c=i,lL.call(this,n,t)}function EAe(e){return mn(e.b=0&&Ke(e.substr(t,n.length),n)}function Wh(e,n,t,i,r,c,o){return new U$(e.e,n,t,i,r,c,o)}function RAe(e,n,t,i,r,c){this.a=e,kF.call(this,n,t,i,r,c)}function KAe(e,n,t,i,r,c){this.a=e,kF.call(this,n,t,i,r,c)}function qAe(e,n){this.g=e,this.d=D(I(ca,1),hh,10,0,[n])}function Ja(e,n){this.e=e,this.a=pn,this.b=aqe(n),this.c=n}function HAe(e,n){wC.call(this),lJ(this),this.a=e,this.c=n}function e7(e,n,t,i){Ut(e.c[n.g],t.g,i),Ut(e.c[t.g],n.g,i)}function A$(e,n,t,i){Ut(e.c[n.g],n.g,t),Ut(e.b[n.g],n.g,i)}function Wgn(){return f7(),D(I(dae,1),ce,376,0,[FH,Oj])}function Ugn(){return w7(),D(I(cfe,1),ce,479,0,[rfe,xx])}function Xgn(){return E7(),D(I(tfe,1),ce,419,0,[Px,nfe])}function Ygn(){return SS(),D(I(Uoe,1),ce,422,0,[Woe,Nq])}function Qgn(){return wS(),D(I(mfe,1),ce,420,0,[Jq,pfe])}function Jgn(){return v7(),D(I(fae,1),ce,421,0,[DH,LH])}function Zgn(){return r6(),D(I(rnn,1),ce,523,0,[n9,e9])}function epn(){return yf(),D(I(Pnn,1),ce,520,0,[ng,k1])}function npn(){return yl(),D(I(ann,1),ce,516,0,[mb,vh])}function tpn(){return Bf(),D(I(dnn,1),ce,515,0,[_d,il])}function ipn(){return j0(),D(I($nn,1),ce,455,0,[j1,_p])}function rpn(){return aS(),D(I(Nae,1),ce,425,0,[QH,Fae])}function cpn(){return sS(),D(I($ae,1),ce,480,0,[YH,Lae])}function upn(){return JS(),D(I(_ae,1),ce,495,0,[mO,k4])}function spn(){return PS(),D(I(Rae,1),ce,426,0,[Bae,nV])}function opn(){return D7(),D(I(Hhe,1),ce,429,0,[MO,qhe])}function fpn(){return l7(),D(I(khe,1),ce,430,0,[lV,CO])}function lpn(){return PM(),D(I(use,1),ce,428,0,[QK,cse])}function apn(){return LS(),D(I(ose,1),ce,427,0,[sse,JK])}function hpn(){return $S(),D(I(Fse,1),ce,424,0,[fq,QA])}function dpn(){return Rv(),D(I(MQe,1),ce,511,0,[bj,jq])}function tS(e,n,t,i){return t>=0?e.jh(n,t,i):e.Sg(null,t,i)}function x$(e){return e.b.b==0?e.a.$e():qL(e.b)}function bpn(e){if(e.p!=5)throw O(new Fu);return Fn(e.f)}function wpn(e){if(e.p!=5)throw O(new Fu);return Fn(e.k)}function rQ(e){return X(e.a)===X((OF(),zV))&&gxn(e),e.a}function VAe(e){this.a=u(Nn(e),271),this.b=(He(),new QU(e))}function GAe(e,n){$fn(this,new je(e.a,e.b)),Ffn(this,G8(n))}function j0(){j0=W,j1=new hU(Y2,0),_p=new hU(Q2,1)}function yl(){yl=W,mb=new lU(Q2,0),vh=new lU(Y2,1)}function E0(){Cln.call(this,new c2(uw(12))),WU(!0),this.a=2}function O$(e,n,t){gt(),Qd.call(this,e),this.b=n,this.a=t}function cQ(e,n,t){Xs(),nT.call(this,n),this.a=e,this.b=t}function zAe(e){wC.call(this),lJ(this),this.a=e,this.c=!0}function WAe(e){var n;n=e.c.d.b,e.b=n,e.a=e.c.d,n.a=e.c.d.b=e}function iS(e){var n;j3n(e.a),rCe(e.a),n=new QE(e.a),LZ(n)}function gpn(e,n){tqe(e,!0),Su(e.e.wf(),new qX(e,!0,n))}function rS(e,n){return SOe(n),v3n(e,V(Ln,nt,25,n,15,1),n)}function ppn(e,n){return j2(),e==Xt(Yl(n))||e==Xt(t1(n))}function zc(e,n){return n==null?yc(Qr(e.f,null)):d5(e.g,n)}function mpn(e){return e.b==0?null:(mn(e.b!=0),no(e,e.a.a))}function oi(e){return Math.max(Math.min(e,vt),-2147483648)|0}function vpn(e,n){var t=KK[e.charCodeAt(0)];return t??e}function cS(e,n){return QC(e,"set1"),QC(n,"set2"),new Hje(e,n)}function ypn(e,n){var t;return t=b3n(e.f,n),Mt(dC(t),e.f.d)}function J5(e,n){var t,i;return t=n,i=new Lf,VHe(e,t,i),i.d}function I$(e,n,t,i){var r;r=new LSe,n.a[t.g]=r,p2(e.b,i,r)}function uQ(e,n,t){var i;i=e.Yg(n),i>=0?e.sh(i,t):Xne(e,n,t)}function Lg(e,n,t){oS(),e&&jt(HV,e,n),e&&jt(sE,e,t)}function UAe(e,n,t){this.i=new oe,this.b=e,this.g=n,this.a=t}function uS(e,n,t){this.c=new oe,this.e=e,this.f=n,this.b=t}function sQ(e,n,t){this.a=new oe,this.e=e,this.f=n,this.c=t}function XAe(e,n){iC(this),this.f=n,this.g=e,YC(this),this._d()}function n7(e,n){var t;t=e.q.getHours(),e.q.setDate(n),K6(e,t)}function YAe(e,n){var t;for(Nn(n),t=e.a;t;t=t.c)n.Od(t.g,t.i)}function QAe(e){var n;return n=new wT(uw(e.length)),JJ(n,e),n}function kpn(e){function n(){}return n.prototype=e||{},new n}function jpn(e,n){return S$e(e,n)?(TLe(e),!0):!1}function va(e,n){if(n==null)throw O(new Y4);return vyn(e,n)}function Epn(e){if(e.qe())return null;var n=e.n;return LA[n]}function t7(e){return e.Db>>16!=3?null:u(e.Cb,33)}function _f(e){return e.Db>>16!=9?null:u(e.Cb,33)}function JAe(e){return e.Db>>16!=6?null:u(e.Cb,79)}function ZAe(e){return e.Db>>16!=7?null:u(e.Cb,235)}function exe(e){return e.Db>>16!=7?null:u(e.Cb,160)}function Xt(e){return e.Db>>16!=11?null:u(e.Cb,33)}function nxe(e,n){var t;return t=e.Yg(n),t>=0?e.lh(t):s_(e,n)}function txe(e,n){var t;return t=new hY(n),iBe(t,e),new Ru(t)}function oQ(e){var n;return n=e.d,n=e.si(e.f),Bn(e,n),n.Ob()}function ixe(e,n){return e.b+=n.b,e.c+=n.c,e.d+=n.d,e.a+=n.a,e}function D$(e,n){return k.Math.abs(e)0}function rxe(){this.a=new wa,this.e=new Ai,this.g=0,this.i=0}function cxe(e){this.a=e,this.b=V(nnn,ie,1944,e.e.length,0,2)}function L$(e,n,t){var i;i=z$e(e,n,t),e.b=new QS(i.c.length)}function Bf(){Bf=W,_d=new fU(RB,0),il=new fU("UP",1)}function sS(){sS=W,YH=new dU(vze,0),Lae=new dU("FAN",1)}function oS(){oS=W,HV=new $n,sE=new $n,Van(pXe,new $3e)}function Cpn(e){if(e.p!=0)throw O(new Fu);return M5(e.f,0)}function Spn(e){if(e.p!=0)throw O(new Fu);return M5(e.k,0)}function uxe(e){return e.Db>>16!=3?null:u(e.Cb,147)}function Ev(e){return e.Db>>16!=6?null:u(e.Cb,235)}function ew(e){return e.Db>>16!=17?null:u(e.Cb,26)}function sxe(e,n){var t=e.a=e.a||[];return t[n]||(t[n]=e.le(n))}function Mpn(e,n){var t;return t=e.a.get(n),t??new Array}function Ppn(e,n){var t;t=e.q.getHours(),e.q.setMonth(n),K6(e,t)}function Vr(e,n,t){return n==null?du(e.f,null,t):F0(e.g,n,t)}function Z5(e,n,t,i,r,c){return new Ea(e.e,n,e.aj(),t,i,r,c)}function i7(e,n,t){return e.a=Ps(e.a,0,n)+(""+t)+I8(e.a,n),e}function Apn(e,n,t){return se(e.a,(GC(),ON(n,t),new u0(n,t))),e}function fQ(e){return XU(e.c),e.e=e.a=e.c,e.c=e.c.c,++e.d,e.a.f}function oxe(e){return XU(e.e),e.c=e.a=e.e,e.e=e.e.e,--e.d,e.a.f}function Gi(e,n){e.d&&Tu(e.d.e,e),e.d=n,e.d&&se(e.d.e,e)}function or(e,n){e.c&&Tu(e.c.g,e),e.c=n,e.c&&se(e.c.g,e)}function Gr(e,n){e.c&&Tu(e.c.a,e),e.c=n,e.c&&se(e.c.a,e)}function ac(e,n){e.i&&Tu(e.i.j,e),e.i=n,e.i&&se(e.i.j,e)}function fxe(e,n,t){this.a=n,this.c=e,this.b=(Nn(t),new Ru(t))}function lxe(e,n,t){this.a=n,this.c=e,this.b=(Nn(t),new Ru(t))}function axe(e,n){this.a=e,this.c=kc(this.a),this.b=new nS(n)}function xpn(e){var n;return hd(e),n=new Ai,Ft(e,new Bye(n))}function nw(e,n){if(e<0||e>n)throw O(new qr(bie+e+wie+n))}function lQ(e,n){return nPe(e.a,n)?LY(e,u(n,22).g,null):null}function Opn(e){return QF(),un(),u(e.a,81).d.e!=0}function hxe(){hxe=W,tXe=Zn((sT(),D(I(nXe,1),ce,538,0,[BK])))}function dxe(){dxe=W,qen=Xu(new xi,(pr(),ec),(Cr(),wj))}function aQ(){aQ=W,Hen=Xu(new xi,(pr(),ec),(Cr(),wj))}function bxe(){bxe=W,Gen=Xu(new xi,(pr(),ec),(Cr(),wj))}function wxe(){wxe=W,unn=mt(new xi,(pr(),ec),(Cr(),Dy))}function As(){As=W,fnn=mt(new xi,(pr(),ec),(Cr(),Dy))}function gxe(){gxe=W,lnn=mt(new xi,(pr(),ec),(Cr(),Dy))}function $$(){$$=W,wnn=mt(new xi,(pr(),ec),(Cr(),Dy))}function pxe(){pxe=W,ntn=Xu(new xi,(s3(),i9),(D6(),KH))}function Z1(e,n,t,i){this.c=e,this.d=i,N$(this,n),_$(this,t)}function T2(e){this.c=new Gt,this.b=e.b,this.d=e.c,this.a=e.a}function F$(e){this.a=k.Math.cos(e),this.b=k.Math.sin(e)}function N$(e,n){e.a&&Tu(e.a.k,e),e.a=n,e.a&&se(e.a.k,e)}function _$(e,n){e.b&&Tu(e.b.f,e),e.b=n,e.b&&se(e.b.f,e)}function mxe(e,n){Rwn(e,e.b,e.c),u(e.b.b,65),n&&u(n.b,65).b}function Ipn(e,n){MZ(e,n),_(e.Cb,88)&&yw(is(u(e.Cb,88)),2)}function B$(e,n){_(e.Cb,88)&&yw(is(u(e.Cb,88)),4),ru(e,n)}function fS(e,n){_(e.Cb,179)&&(u(e.Cb,179).tb=null),ru(e,n)}function Wc(e,n){return jr(),wF(n)?new CC(n,e):new O8(n,e)}function Dpn(e,n){var t,i;t=n.c,i=t!=null,i&&y2(e,new Jb(n.c))}function vxe(e){var n,t;return t=(Jm(),n=new Jd,n),Dv(t,e),t}function yxe(e){var n,t;return t=(Jm(),n=new Jd,n),Dv(t,e),t}function kxe(e,n){var t;return t=new mo(e),n.c[n.c.length]=t,t}function jxe(e,n){var t;return t=u(aw(E2(e.a),n),14),t?t.gc():0}function Exe(e){var n;return hd(e),n=(Dg(),Dg(),zue),_S(e,n)}function Txe(e){for(var n;;)if(n=e.Pb(),!e.Ob())return n}function hQ(e,n){Eln.call(this,new c2(uw(e))),Ds(n,NVe),this.a=n}function zl(e,n,t){OFe(n,t,e.gc()),this.c=e,this.a=n,this.b=t-n}function Cxe(e,n,t){var i;OFe(n,t,e.c.length),i=t-n,FW(e.c,n,i)}function Lpn(e,n){jCe(e,Fn(Ti(qh(n,24),AP)),Fn(Ti(n,AP)))}function Qe(e,n){if(e<0||e>=n)throw O(new qr(bie+e+wie+n))}function Gn(e,n){if(e<0||e>=n)throw O(new TW(bie+e+wie+n))}function Ye(e,n){this.b=(nn(e),e),this.a=n&Aw?n:n|64|El}function Sxe(e){iCe(this),N7e(this.a,YJ(k.Math.max(8,e))<<1)}function Rf(e){return dc(D(I(Ii,1),ie,8,0,[e.i.n,e.n,e.a]))}function $pn(){return Wf(),D(I(ls,1),ce,132,0,[tse,Rs,_w])}function Fpn(){return Ef(),D(I(Bw,1),ce,232,0,[Tc,ou,Cc])}function Npn(){return Qu(),D(I(RXe,1),ce,461,0,[Ll,b1,cf])}function _pn(){return Cu(),D(I(qXe,1),ce,462,0,[xf,w1,uf])}function Bpn(){return $0(),D(I(eoe,1),ce,423,0,[Ep,Zse,vq])}function Rpn(){return u6(),D(I(Yse,1),ce,379,0,[dq,hq,bq])}function Kpn(){return g6(),D(I(Zle,1),ce,378,0,[MH,Jle,iO])}function qpn(){return I2(),D(I(Yoe,1),ce,314,0,[lm,pj,Xoe])}function Hpn(){return VS(),D(I(Joe,1),ce,337,0,[Qoe,Mx,_q])}function Vpn(){return od(),D(I(tJe,1),ce,450,0,[Kq,s4,Mp])}function Gpn(){return D0(),D(I(Pq,1),ce,361,0,[ob,p1,sb])}function zpn(){return Ta(),D(I(lJe,1),ce,303,0,[vj,Ap,am])}function Wpn(){return Gv(),D(I(Qq,1),ce,292,0,[Xq,Yq,mj])}function Upn(){return Ar(),D(I($en,1),ce,452,0,[Qy,es,fu])}function Xpn(){return Sa(),D(I(oae,1),ce,339,0,[y1,sae,IH])}function Ypn(){return iM(),D(I(hae,1),ce,375,0,[lae,$H,aae])}function Qpn(){return oM(),D(I(vae,1),ce,377,0,[BH,v4,eg])}function Jpn(){return Jv(),D(I(wae,1),ce,336,0,[NH,bae,Jy])}function Zpn(){return nM(),D(I(mae,1),ce,338,0,[pae,_H,gae])}function e2n(){return I0(),D(I(Zen,1),ce,454,0,[Ij,Zy,sO])}function n2n(){return vM(),D(I(utn,1),ce,442,0,[eV,JH,ZH])}function t2n(){return N7(),D(I(Hae,1),ce,380,0,[vO,Kae,qae])}function i2n(){return mM(),D(I(she,1),ce,381,0,[uhe,uV,che])}function r2n(){return tM(),D(I(ihe,1),ce,293,0,[cV,the,nhe])}function c2n(){return H7(),D(I(sV,1),ce,437,0,[jO,EO,TO])}function u2n(){return Ma(),D(I(Y1e,1),ce,334,0,[NO,Eh,g9])}function s2n(){return Vf(),D(I(_1e,1),ce,272,0,[T4,rg,C4])}function o2n(e,n){return ATn(e,n,_(n,99)&&(u(n,18).Bb&vr)!=0)}function f2n(e,n,t){var i;return i=V6(e,n,!1),i.b<=n&&i.a<=t}function Mxe(e,n,t){var i;i=new Kme,i.b=n,i.a=t,++n.b,se(e.d,i)}function l2n(e,n){var t;return t=(nn(e),e).g,sX(!!t),nn(n),t(n)}function dQ(e,n){var t,i;return i=wv(e,n),t=e.a.Zc(i),new qje(e,t)}function a2n(e){return e.Db>>16!=6?null:u(l_(e),235)}function h2n(e){if(e.p!=2)throw O(new Fu);return Fn(e.f)&li}function d2n(e){if(e.p!=2)throw O(new Fu);return Fn(e.k)&li}function b2n(e){return e.a==(Mv(),nI)&&Xfn(e,GTn(e.g,e.b)),e.a}function C2(e){return e.d==(Mv(),nI)&&Qfn(e,_Mn(e.g,e.b)),e.d}function P(e){return mn(e.ai?1:0}function Pxe(e,n){var t,i;return t=lF(n),i=t,u(yn(e.c,i),19).a}function Axe(e,n){var t;for(t=e+"";t.length0&&e.a[--e.d]==0;);e.a[e.d++]==0&&(e.e=0)}function Uxe(e){return e.a?e.e.length==0?e.a.a:e.a.a+(""+e.e):e.c}function C2n(e){return!!e.a&&rs(e.a.a).i!=0&&!(e.b&&PN(e.b))}function S2n(e){return!!e.u&&Kc(e.u.a).i!=0&&!(e.n&&MN(e.n))}function Xxe(e){return zL(e.e.Hd().gc()*e.c.Hd().gc(),16,new z6e(e))}function M2n(e,n){return CPe(Au(e.q.getTime()),Au(n.q.getTime()))}function kl(e){return u(Uf(e,V(yq,tR,17,e.c.length,0,1)),474)}function r7(e){return u(Uf(e,V(ca,hh,10,e.c.length,0,1)),193)}function P2n(e){return As(),!wr(e)&&!(!wr(e)&&e.c.i.c==e.d.i.c)}function Yxe(e,n,t){var i;i=(Nn(e),new Ru(e)),r8n(new fxe(i,n,t))}function c7(e,n,t){var i;i=(Nn(e),new Ru(e)),c8n(new lxe(i,n,t))}function Qxe(e,n){var t;return t=1-n,e.a[t]=YS(e.a[t],t),YS(e,n)}function Jxe(e,n){var t;e.e=new pW,t=Ew(n),Li(t,e.c),GKe(e,t,0)}function zi(e,n,t,i){var r;r=new iz,r.a=n,r.b=t,r.c=i,st(e.a,r)}function de(e,n,t,i){var r;r=new iz,r.a=n,r.b=t,r.c=i,st(e.b,r)}function Qo(e){var n,t,i;return n=new IPe,t=A_(n,e),dOn(n),i=t,i}function vQ(){var e,n,t;return n=(t=(e=new Jd,e),t),se($de,n),n}function hS(e){return e.j.c=V(pn,pe,1,0,5,1),YY(e.c),ogn(e.a),e}function $g(e){return f5(),_(e.g,10)?u(e.g,10):null}function A2n(e){return Ig(e).dc()?!1:(Phn(e,new Wt),!0)}function x2n(e){if(!("stack"in e))try{throw e}catch{}return e}function u7(e,n){if(e<0||e>=n)throw O(new qr(Hjn(e,n)));return e}function Zxe(e,n,t){if(e<0||nt)throw O(new qr(bjn(e,n,t)))}function H$(e,n){if(Ei(e.a,n),n.d)throw O(new fc(cGe));n.d=e}function V$(e,n){if(n.$modCount!=e.$modCount)throw O(new Us)}function eOe(e,n){return _(n,42)?DN(e.a,u(n,42)):!1}function nOe(e,n){return _(n,42)?DN(e.a,u(n,42)):!1}function tOe(e,n){return _(n,42)?DN(e.a,u(n,42)):!1}function O2n(e,n){return e.a<=e.b?(n.ud(e.a++),!0):!1}function C0(e){var n;return ic(e)?(n=e,n==-0?0:n):Rvn(e)}function dS(e){var n;return zh(e),n=new wg,yg(e.a,new Nye(n)),n}function iOe(e){var n;return zh(e),n=new N1,yg(e.a,new Fye(n)),n}function Yi(e,n){this.a=e,z4.call(this,e),nw(n,e.gc()),this.b=n}function yQ(e){this.e=e,this.b=this.e.a.entries(),this.a=new Array}function I2n(e){return zL(e.e.Hd().gc()*e.c.Hd().gc(),273,new G6e(e))}function bS(e){return new iu((Ds(e,iB),FS(fr(fr(5,e),e/10|0))))}function rOe(e){return u(Uf(e,V(TQe,FGe,11,e.c.length,0,1)),1943)}function D2n(e,n,t){return t.f.c.length>0?NY(e.a,n,t):NY(e.b,n,t)}function L2n(e,n,t){e.d&&Tu(e.d.e,e),e.d=n,e.d&&Xb(e.d.e,t,e)}function G$(e,n){MIn(n,e),tY(e.d),tY(u(S(e,(be(),Yx)),207))}function n6(e,n){SIn(n,e),nY(e.d),nY(u(S(e,(be(),Yx)),207))}function S0(e,n){var t,i;return t=va(e,n),i=null,t&&(i=t.fe()),i}function Tv(e,n){var t,i;return t=cw(e,n),i=null,t&&(i=t.ie()),i}function t6(e,n){var t,i;return t=va(e,n),i=null,t&&(i=t.ie()),i}function ya(e,n){var t,i;return t=va(e,n),i=null,t&&(i=ane(t)),i}function $2n(e,n,t){var i;return i=c3(t),aP(e.g,i,n),aP(e.i,n,t),n}function F2n(e,n,t){var i;i=lyn();try{return K1n(e,n,t)}finally{W2n(i)}}function cOe(e){var n;n=e.Wg(),this.a=_(n,69)?u(n,69).Zh():n.Kc()}function xi(){vke.call(this),this.j.c=V(pn,pe,1,0,5,1),this.a=-1}function kQ(e,n,t,i){this.d=e,this.n=n,this.g=t,this.o=i,this.p=-1}function uOe(e,n,t,i){this.e=i,this.d=null,this.c=e,this.a=n,this.b=t}function jQ(e,n,t){this.d=new U9e(this),this.e=e,this.i=n,this.f=t}function wS(){wS=W,Jq=new cU(I3,0),pfe=new cU("TOP_LEFT",1)}function sOe(){sOe=W,kae=tAe(le(1),le(4)),yae=tAe(le(1),le(2))}function oOe(){oOe=W,Ytn=Zn((CT(),D(I(Xtn,1),ce,551,0,[fV])))}function fOe(){fOe=W,Utn=Zn((TT(),D(I(yhe,1),ce,482,0,[oV])))}function lOe(){lOe=W,bin=Zn((l5(),D(I(Khe,1),ce,530,0,[_j])))}function aOe(){aOe=W,yYe=Zn((jT(),D(I(Ase,1),ce,481,0,[rq])))}function N2n(){return L0(),D(I(dYe,1),ce,406,0,[cj,rj,tq,iq])}function _2n(){return AS(),D(I(qA,1),ce,297,0,[UK,Jue,Zue,ese])}function B2n(){return S6(),D(I(mYe,1),ce,394,0,[lj,WA,UA,aj])}function R2n(){return B2(),D(I(wYe,1),ce,323,0,[sj,uj,oj,fj])}function K2n(){return zv(),D(I(hQe,1),ce,405,0,[ub,Kw,Rw,jp])}function q2n(){return sM(),D(I(OQe,1),ce,360,0,[Sq,yx,kx,gj])}function hOe(e,n,t,i){return _(t,54)?new JCe(e,n,t,i):new SY(e,n,t,i)}function H2n(){return zf(),D(I(RQe,1),ce,411,0,[fm,t4,i4,Mq])}function V2n(e){var n;return e.j==(ae(),In)&&(n=LRe(e),Bu(n,hn))}function G2n(e,n){var t;t=n.a,or(t,n.c.d),Gi(t,n.d.d),ow(t.a,e.n)}function dOe(e,n){return u(d0(FC(u(Ct(e.k,n),15).Oc(),Tp)),113)}function bOe(e,n){return u(d0(NC(u(Ct(e.k,n),15).Oc(),Tp)),113)}function z2n(e){return new Ye(H3n(u(e.a.dd(),14).gc(),e.a.cd()),16)}function Cv(e){return _(e,14)?u(e,14).dc():!e.Kc().Ob()}function S2(e){return f5(),_(e.g,145)?u(e.g,145):null}function wOe(e){if(e.e.g!=e.b)throw O(new Us);return!!e.c&&e.d>0}function ct(e){return mn(e.b!=e.d.c),e.c=e.b,e.b=e.b.a,++e.a,e.c.c}function EQ(e,n){nn(n),Ut(e.a,e.c,n),e.c=e.c+1&e.a.length-1,g_e(e)}function Uh(e,n){nn(n),e.b=e.b-1&e.a.length-1,Ut(e.a,e.b,n),g_e(e)}function gOe(e,n){var t;for(t=e.j.c.length;t0&&Hc(e.g,0,n,0,e.i),n}function yOe(e,n){PT();var t;return t=u(yn(YO,e),55),!t||t.wj(n)}function cmn(e){if(e.p!=1)throw O(new Fu);return Fn(e.f)<<24>>24}function umn(e){if(e.p!=1)throw O(new Fu);return Fn(e.k)<<24>>24}function smn(e){if(e.p!=7)throw O(new Fu);return Fn(e.k)<<16>>16}function omn(e){if(e.p!=7)throw O(new Fu);return Fn(e.f)<<16>>16}function ka(e){var n;for(n=0;e.Ob();)e.Pb(),n=fr(n,1);return FS(n)}function kOe(e,n){var t;return t=new _b,e.xd(t),t.a+="..",n.yd(t),t.a}function fmn(e,n,t){var i;i=u(yn(e.g,t),57),se(e.a.c,new Xi(n,i))}function lmn(e,n,t){return n$(he(yc(Qr(e.f,n))),he(yc(Qr(e.f,t))))}function gS(e,n,t){return dP(e,n,t,_(n,99)&&(u(n,18).Bb&vr)!=0)}function amn(e,n,t){return k3(e,n,t,_(n,99)&&(u(n,18).Bb&vr)!=0)}function hmn(e,n,t){return $Tn(e,n,t,_(n,99)&&(u(n,18).Bb&vr)!=0)}function SQ(e,n){return e==(dn(),ki)&&n==ki?4:e==ki||n==ki?8:32}function jOe(e,n){return X(n)===X(e)?"(this Map)":n==null?Ou:uc(n)}function dmn(e,n){return u(n==null?yc(Qr(e.f,null)):d5(e.g,n),281)}function EOe(e,n,t){var i;return i=c3(t),jt(e.b,i,n),jt(e.c,n,t),n}function TOe(e,n){var t;for(t=n;t;)Gb(e,t.i,t.j),t=Xt(t);return e}function MQ(e,n){var t;return t=J8(av(new aF(e,n))),MC(new aF(e,n)),t}function Wl(e,n){jr();var t;return t=u(e,66).Mj(),Wkn(t,n),t.Ok(n)}function bmn(e,n,t,i,r){var c;c=RTn(r,t,i),se(n,_jn(r,c)),Akn(e,r,n)}function COe(e,n,t){e.i=0,e.e=0,n!=t&&(Y$e(e,n,t),X$e(e,n,t))}function PQ(e,n){var t;t=e.q.getHours(),e.q.setFullYear(n+o1),K6(e,t)}function wmn(e,n,t){if(t){var i=t.ee();e.a[n]=i(t)}else delete e.a[n]}function z$(e,n,t){if(t){var i=t.ee();t=i(t)}else t=void 0;e.a[n]=t}function SOe(e){if(e<0)throw O(new Oke("Negative array size: "+e))}function Kc(e){return e.n||(is(e),e.n=new cPe(e,$r,e),Yr(e)),e.n}function i6(e){return mn(e.a=0&&e.a[t]===n[t];t--);return t<0}function OOe(e,n){Qv();var t;return t=e.j.g-n.j.g,t!=0?t:0}function IOe(e,n){return nn(n),e.a!=null?ewn(n.Kb(e.a)):KA}function pS(e){var n;return e?new hY(e):(n=new wa,xF(n,e),n)}function Os(e,n){var t;return n.b.Kb(TDe(e,n.c.Ee(),(t=new Kye(n),t)))}function mS(e){Xee(),jCe(this,Fn(Ti(qh(e,24),AP)),Fn(Ti(e,AP)))}function DOe(){DOe=W,LXe=Zn((PM(),D(I(use,1),ce,428,0,[QK,cse])))}function LOe(){LOe=W,$Xe=Zn((LS(),D(I(ose,1),ce,427,0,[sse,JK])))}function $Oe(){$Oe=W,NYe=Zn(($S(),D(I(Fse,1),ce,424,0,[fq,QA])))}function FOe(){FOe=W,PQe=Zn((Rv(),D(I(MQe,1),ce,511,0,[bj,jq])))}function NOe(){NOe=W,nJe=Zn((E7(),D(I(tfe,1),ce,419,0,[Px,nfe])))}function _Oe(){_Oe=W,cJe=Zn((w7(),D(I(cfe,1),ce,479,0,[rfe,xx])))}function BOe(){BOe=W,_en=Zn((f7(),D(I(dae,1),ce,376,0,[FH,Oj])))}function ROe(){ROe=W,Len=Zn((v7(),D(I(fae,1),ce,421,0,[DH,LH])))}function KOe(){KOe=W,QQe=Zn((SS(),D(I(Uoe,1),ce,422,0,[Woe,Nq])))}function qOe(){qOe=W,hJe=Zn((wS(),D(I(mfe,1),ce,420,0,[Jq,pfe])))}function HOe(){HOe=W,Ann=Zn((yf(),D(I(Pnn,1),ce,520,0,[ng,k1])))}function VOe(){VOe=W,cnn=Zn((r6(),D(I(rnn,1),ce,523,0,[n9,e9])))}function GOe(){GOe=W,hnn=Zn((yl(),D(I(ann,1),ce,516,0,[mb,vh])))}function zOe(){zOe=W,bnn=Zn((Bf(),D(I(dnn,1),ce,515,0,[_d,il])))}function WOe(){WOe=W,Fnn=Zn((j0(),D(I($nn,1),ce,455,0,[j1,_p])))}function UOe(){UOe=W,etn=Zn((aS(),D(I(Nae,1),ce,425,0,[QH,Fae])))}function XOe(){XOe=W,ctn=Zn((JS(),D(I(_ae,1),ce,495,0,[mO,k4])))}function YOe(){YOe=W,Znn=Zn((sS(),D(I($ae,1),ce,480,0,[YH,Lae])))}function QOe(){QOe=W,otn=Zn((PS(),D(I(Rae,1),ce,426,0,[Bae,nV])))}function JOe(){JOe=W,win=Zn((D7(),D(I(Hhe,1),ce,429,0,[MO,qhe])))}function ZOe(){ZOe=W,Qtn=Zn((l7(),D(I(khe,1),ce,430,0,[lV,CO])))}function r6(){r6=W,n9=new oU("UPPER",0),e9=new oU("LOWER",1)}function vmn(e,n){var t;t=new t2,J1(t,"x",n.a),J1(t,"y",n.b),y2(e,t)}function ymn(e,n){var t;t=new t2,J1(t,"x",n.a),J1(t,"y",n.b),y2(e,t)}function kmn(e,n){var t,i;i=!1;do t=K$e(e,n),i=i|t;while(t);return i}function OQ(e,n){var t,i;for(t=n,i=0;t>0;)i+=e.a[t],t-=t&-t;return i}function eIe(e,n){var t;for(t=n;t;)Gb(e,-t.i,-t.j),t=Xt(t);return e}function er(e,n){var t,i;for(nn(n),i=e.Kc();i.Ob();)t=i.Pb(),n.td(t)}function nIe(e,n){var t;return t=n.cd(),new u0(t,e.e.pc(t,u(n.dd(),14)))}function ui(e,n,t,i){var r;r=new al,r.c=n,r.b=t,r.a=i,i.b=t.a=r,++e.b}function Zs(e,n,t){var i;return i=(Qe(n,e.c.length),e.c[n]),e.c[n]=t,i}function jmn(e,n,t){return u(n==null?du(e.f,null,t):F0(e.g,n,t),281)}function Y$(e){return e.c&&e.d?bQ(e.c)+"->"+bQ(e.d):"e_"+a0(e)}function Sv(e,n){return(hd(e),u5(new Ue(e,new nJ(n,e.a)))).sd(Q3)}function Emn(){return pr(),D(I(Qse,1),ce,356,0,[$l,g1,wu,Jc,ec])}function Tmn(){return ae(),D(I(yr,1),Nc,61,0,[pc,tn,hn,In,sn])}function Cmn(e){return aT(),function(){return F2n(e,this,arguments)}}function Smn(){return Date.now?Date.now():new Date().getTime()}function wr(e){return!e.c||!e.d?!1:!!e.c.i&&e.c.i==e.d.i}function tIe(e){if(!e.c.Sb())throw O(new Ac);return e.a=!0,e.c.Ub()}function s7(e){e.i=0,v8(e.b,null),v8(e.c,null),e.a=null,e.e=null,++e.g}function IQ(e){Dan.call(this,e==null?Ou:uc(e),_(e,78)?u(e,78):null)}function iIe(e){PVe(),M7e(this),this.a=new Gt,cZ(this,e),st(this.a,e)}function rIe(){wL(this),this.b=new je(ei,ei),this.a=new je(bi,bi)}function cIe(e,n){this.c=0,this.b=n,DTe.call(this,e,17493),this.a=this.c}function Q$(e){vS(),!el&&(this.c=e,this.e=!0,this.a=new oe)}function vS(){vS=W,el=!0,TXe=!1,CXe=!1,MXe=!1,SXe=!1}function DQ(e,n){return _(n,149)?Ke(e.c,u(n,149).c):!1}function LQ(e,n){var t;return t=0,e&&(t+=e.f.a/2),n&&(t+=n.f.a/2),t}function J$(e,n){var t;return t=u(M0(e.d,n),23),t||u(M0(e.e,n),23)}function uIe(e){this.b=e,jn.call(this,e),this.a=u(en(this.b.a,4),126)}function sIe(e){this.b=e,d2.call(this,e),this.a=u(en(this.b.a,4),126)}function is(e){return e.t||(e.t=new p7e(e),y6(new xke(e),0,e.t)),e.t}function Mmn(){return xr(),D(I(b9,1),ce,103,0,[ua,of,Io,_a,Ba])}function Pmn(){return Gg(),D(I(m9,1),ce,249,0,[C1,Jj,Q1e,p9,J1e])}function Amn(){return Cf(),D(I(jh,1),ce,175,0,[an,Ni,_l,Bd,kh])}function xmn(){return ik(),D(I(Che,1),ce,316,0,[jhe,aV,The,hV,Ehe])}function Omn(){return M6(),D(I(nae,1),ce,315,0,[eae,xH,OH,Xy,Yy])}function Imn(){return gd(),D(I(efe,1),ce,335,0,[Bq,Zoe,Rq,Fy,$y])}function Dmn(){return m3(),D(I(Gtn,1),ce,355,0,[Bp,km,f9,o9,l9])}function Lmn(){return Qg(),D(I(qQe,1),ce,363,0,[Ex,Cx,Sx,Tx,jx])}function $mn(){return ro(),D(I(Ofe,1),ce,163,0,[Tj,Ky,m1,qy,Gw])}function Mv(){Mv=W;var e,n;eI=(Jm(),n=new rT,n),nI=(e=new bD,e)}function oIe(e){var n;return e.c||(n=e.r,_(n,88)&&(e.c=u(n,26))),e.c}function Fmn(e){return e.e=3,e.d=e.Yb(),e.e!=2?(e.e=0,!0):!1}function Z$(e){var n,t,i;return n=e&fs,t=e>>22&fs,i=e<0?La:0,au(n,t,i)}function Nmn(e){var n,t,i,r;for(t=e,i=0,r=t.length;i0?uNe(e,n):PKe(e,-n)}function $Q(e,n){return n==0||e.e==0?e:n>0?PKe(e,n):uNe(e,-n)}function _n(e){if(Wn(e))return e.c=e.a,e.a.Pb();throw O(new Ac)}function lIe(e){var n,t;return n=e.c.i,t=e.d.i,n.k==(dn(),hi)&&t.k==hi}function eF(e){var n;return n=new k0,Jr(n,e),te(n,(be(),Xr),null),n}function nF(e,n,t){var i;return i=e.Yg(n),i>=0?e._g(i,t,!0):V0(e,n,t)}function FQ(e,n,t,i){var r;for(r=0;rn)throw O(new qr(mne(e,n,"index")));return e}function tF(e,n,t,i){var r;return r=V(Ln,nt,25,n,15,1),Y7n(r,e,n,t,i),r}function Bmn(e,n){var t;t=e.q.getHours()+(n/60|0),e.q.setMinutes(n),K6(e,t)}function Rmn(e,n){return k.Math.min(Xh(n.a,e.d.d.c),Xh(n.b,e.d.d.c))}function A2(e,n){return Ri(n)?n==null?$ne(e.f,null):E$e(e.g,n):$ne(e.f,n)}function Hf(e){this.c=e,this.a=new A(this.c.a),this.b=new A(this.c.b)}function yS(){this.e=new oe,this.c=new oe,this.d=new oe,this.b=new oe}function wIe(){this.g=new eW,this.b=new eW,this.a=new oe,this.k=new oe}function gIe(e,n,t){this.a=e,this.c=n,this.d=t,se(n.e,this),se(t.b,this)}function pIe(e,n){ITe.call(this,n.rd(),n.qd()&-6),nn(e),this.a=e,this.b=n}function mIe(e,n){DTe.call(this,n.rd(),n.qd()&-6),nn(e),this.a=e,this.b=n}function HQ(e,n){lL.call(this,n.rd(),n.qd()&-6),nn(e),this.a=e,this.b=n}function kS(e,n,t){this.a=e,this.b=n,this.c=t,se(e.t,this),se(n.i,this)}function jS(){this.b=new Gt,this.a=new Gt,this.b=new Gt,this.a=new Gt}function ES(){ES=W,a9=new Kt("org.eclipse.elk.labels.labelManager")}function vIe(){vIe=W,qoe=new ji("separateLayerConnections",(sM(),Sq))}function yf(){yf=W,ng=new aU("REGULAR",0),k1=new aU("CRITICAL",1)}function f7(){f7=W,FH=new sU("STACKED",0),Oj=new sU("SEQUENCED",1)}function l7(){l7=W,lV=new pU("FIXED",0),CO=new pU("CENTER_NODE",1)}function Kmn(e,n){var t;return t=Gxn(e,n),e.b=new QS(t.c.length),ixn(e,t)}function qmn(e,n,t){var i;return++e.e,--e.f,i=u(e.d[n].$c(t),133),i.dd()}function yIe(e){var n;return e.a||(n=e.r,_(n,148)&&(e.a=u(n,148))),e.a}function VQ(e){if(e.a){if(e.e)return VQ(e.e)}else return e;return null}function Hmn(e,n){return e.pn.p?-1:0}function TS(e,n){return nn(n),e.c=0,"Initial capacity must not be negative")}function EIe(){EIe=W,BXe=Zn((Ef(),D(I(Bw,1),ce,232,0,[Tc,ou,Cc])))}function TIe(){TIe=W,KXe=Zn((Qu(),D(I(RXe,1),ce,461,0,[Ll,b1,cf])))}function CIe(){CIe=W,HXe=Zn((Cu(),D(I(qXe,1),ce,462,0,[xf,w1,uf])))}function SIe(){SIe=W,PXe=Zn((Wf(),D(I(ls,1),ce,132,0,[tse,Rs,_w])))}function MIe(){MIe=W,rQe=Zn((u6(),D(I(Yse,1),ce,379,0,[dq,hq,bq])))}function PIe(){PIe=W,vQe=Zn(($0(),D(I(eoe,1),ce,423,0,[Ep,Zse,vq])))}function AIe(){AIe=W,JQe=Zn((I2(),D(I(Yoe,1),ce,314,0,[lm,pj,Xoe])))}function xIe(){xIe=W,ZQe=Zn((VS(),D(I(Joe,1),ce,337,0,[Qoe,Mx,_q])))}function OIe(){OIe=W,iJe=Zn((od(),D(I(tJe,1),ce,450,0,[Kq,s4,Mp])))}function IIe(){IIe=W,UQe=Zn((D0(),D(I(Pq,1),ce,361,0,[ob,p1,sb])))}function DIe(){DIe=W,aJe=Zn((Ta(),D(I(lJe,1),ce,303,0,[vj,Ap,am])))}function LIe(){LIe=W,fJe=Zn((Gv(),D(I(Qq,1),ce,292,0,[Xq,Yq,mj])))}function $Ie(){$Ie=W,Aen=Zn((g6(),D(I(Zle,1),ce,378,0,[MH,Jle,iO])))}function FIe(){FIe=W,Nen=Zn((iM(),D(I(hae,1),ce,375,0,[lae,$H,aae])))}function NIe(){NIe=W,Den=Zn((Sa(),D(I(oae,1),ce,339,0,[y1,sae,IH])))}function _Ie(){_Ie=W,Fen=Zn((Ar(),D(I($en,1),ce,452,0,[Qy,es,fu])))}function BIe(){BIe=W,Ken=Zn((oM(),D(I(vae,1),ce,377,0,[BH,v4,eg])))}function RIe(){RIe=W,Ben=Zn((Jv(),D(I(wae,1),ce,336,0,[NH,bae,Jy])))}function KIe(){KIe=W,Ren=Zn((nM(),D(I(mae,1),ce,338,0,[pae,_H,gae])))}function qIe(){qIe=W,enn=Zn((I0(),D(I(Zen,1),ce,454,0,[Ij,Zy,sO])))}function HIe(){HIe=W,stn=Zn((vM(),D(I(utn,1),ce,442,0,[eV,JH,ZH])))}function VIe(){VIe=W,ftn=Zn((N7(),D(I(Hae,1),ce,380,0,[vO,Kae,qae])))}function GIe(){GIe=W,Stn=Zn((mM(),D(I(she,1),ce,381,0,[uhe,uV,che])))}function zIe(){zIe=W,Ctn=Zn((tM(),D(I(ihe,1),ce,293,0,[cV,the,nhe])))}function WIe(){WIe=W,Wtn=Zn((H7(),D(I(sV,1),ce,437,0,[jO,EO,TO])))}function UIe(){UIe=W,Yin=Zn((Ma(),D(I(Y1e,1),ce,334,0,[NO,Eh,g9])))}function XIe(){XIe=W,zin=Zn((Vf(),D(I(_1e,1),ce,272,0,[T4,rg,C4])))}function Ymn(){return Wi(),D(I(Z1e,1),ce,98,0,[S1,cl,M4,Hd,fa,nu])}function td(e,n){return!e.o&&(e.o=new js((uu(),A1),yb,e,0)),dN(e.o,n)}function Qmn(e){return!e.g&&(e.g=new GE),!e.g.d&&(e.g.d=new b7e(e)),e.g.d}function Jmn(e){return!e.g&&(e.g=new GE),!e.g.a&&(e.g.a=new w7e(e)),e.g.a}function Zmn(e){return!e.g&&(e.g=new GE),!e.g.b&&(e.g.b=new d7e(e)),e.g.b}function a7(e){return!e.g&&(e.g=new GE),!e.g.c&&(e.g.c=new g7e(e)),e.g.c}function evn(e,n,t){var i,r;for(r=new Vv(n,e),i=0;it||n=0?e._g(t,!0,!0):V0(e,n,!0)}function pvn(e,n){return mi(ee(he(S(e,(re(),hb)))),ee(he(S(n,hb))))}function tDe(){tDe=W,ttn=R0(R0(MT(new xi,(s3(),t9)),(D6(),hO)),qH)}function mvn(e,n,t){var i;return i=z$e(e,n,t),e.b=new QS(i.c.length),ute(e,i)}function vvn(e){if(e.b<=0)throw O(new Ac);return--e.b,e.a-=e.c.c,le(e.a)}function yvn(e){var n;if(!e.a)throw O(new uAe);return n=e.a,e.a=Xt(e.a),n}function kvn(e){for(;!e.a;)if(!VSe(e.c,new _ye(e)))return!1;return!0}function O2(e){var n;return Nn(e),_(e,198)?(n=u(e,198),n):new iye(e)}function jvn(e){MS(),u(e.We((dt(),ig)),174).Fc((Ju(),Zj)),e.Ye(OV,null)}function MS(){MS=W,min=new Vve,yin=new Gve,vin=u5n((dt(),OV),min,E1,yin)}function PS(){PS=W,Bae=new gU("LEAF_NUMBER",0),nV=new gU("NODE_SIZE",1)}function Evn(e,n,t){e.a=n,e.c=t,e.b.a.$b(),vo(e.d),e.e.a.c=V(pn,pe,1,0,5,1)}function fF(e){e.a=V(Ln,nt,25,e.b+1,15,1),e.c=V(Ln,nt,25,e.b,15,1),e.d=0}function Tvn(e,n){e.a.ue(n.d,e.b)>0&&(se(e.c,new cY(n.c,n.d,e.d)),e.b=n.d)}function eJ(e,n){if(e.g==null||n>=e.i)throw O(new aL(n,e.i));return e.g[n]}function iDe(e,n,t){if(Xv(e,t),t!=null&&!e.wj(t))throw O(new aD);return t}function rDe(e){var n;if(e.Ek())for(n=e.i-1;n>=0;--n)K(e,n);return CQ(e)}function Cvn(e){var n,t;if(!e.b)return null;for(t=e.b;n=t.a[0];)t=n;return t}function Svn(e,n){var t,i;return SOe(n),t=(i=e.slice(0,n),tJ(i,e)),t.length=n,t}function xv(e,n,t,i){var r;i=(Dg(),i||Gue),r=e.slice(n,t),vne(r,e,n,t,-n,i)}function eo(e,n,t,i,r){return n<0?V0(e,t,i):u(t,66).Nj().Pj(e,e.yh(),n,i,r)}function Mvn(e){return _(e,172)?""+u(e,172).a:e==null?null:uc(e)}function Pvn(e){return _(e,172)?""+u(e,172).a:e==null?null:uc(e)}function cDe(e,n){if(n.a)throw O(new fc(cGe));Ei(e.a,n),n.a=e,!e.j&&(e.j=n)}function nJ(e,n){lL.call(this,n.rd(),n.qd()&-16449),nn(e),this.a=e,this.c=n}function uDe(e,n){var t,i;return i=n/e.c.Hd().gc()|0,t=n%e.c.Hd().gc(),x2(e,i,t)}function Qu(){Qu=W,Ll=new _D(Y2,0),b1=new _D(I3,1),cf=new _D(Q2,2)}function AS(){AS=W,UK=new OT("All",0),Jue=new nCe,Zue=new dCe,ese=new tCe}function sDe(){sDe=W,jXe=Zn((AS(),D(I(qA,1),ce,297,0,[UK,Jue,Zue,ese])))}function oDe(){oDe=W,dQe=Zn((zv(),D(I(hQe,1),ce,405,0,[ub,Kw,Rw,jp])))}function fDe(){fDe=W,bYe=Zn((L0(),D(I(dYe,1),ce,406,0,[cj,rj,tq,iq])))}function lDe(){lDe=W,gYe=Zn((B2(),D(I(wYe,1),ce,323,0,[sj,uj,oj,fj])))}function aDe(){aDe=W,vYe=Zn((S6(),D(I(mYe,1),ce,394,0,[lj,WA,UA,aj])))}function hDe(){hDe=W,Nnn=Zn((s3(),D(I(Tae,1),ce,393,0,[aO,t9,Lj,i9])))}function dDe(){dDe=W,IQe=Zn((sM(),D(I(OQe,1),ce,360,0,[Sq,yx,kx,gj])))}function bDe(){bDe=W,Ttn=Zn((_M(),D(I(ehe,1),ce,340,0,[rV,Jae,Zae,Qae])))}function wDe(){wDe=W,KQe=Zn((zf(),D(I(RQe,1),ce,411,0,[fm,t4,i4,Mq])))}function gDe(){gDe=W,xen=Zn((bw(),D(I(AH,1),ce,197,0,[rO,PH,Np,Fp])))}function pDe(){pDe=W,drn=Zn((Es(),D(I(hrn,1),ce,396,0,[Gs,sde,ude,ode])))}function mDe(){mDe=W,Jin=Zn(($s(),D(I(Qin,1),ce,285,0,[Qj,sa,T1,Yj])))}function vDe(){vDe=W,Win=Zn((Aa(),D(I($V,1),ce,218,0,[LV,Xj,S4,Sm])))}function yDe(){yDe=W,lrn=Zn((jM(),D(I(cde,1),ce,311,0,[_V,tde,rde,ide])))}function kDe(){kDe=W,orn=Zn((Ts(),D(I(k9,1),ce,374,0,[nE,Vd,eE,cg])))}function jDe(){jDe=W,bP(),Hde=ei,wcn=bi,Vde=new t8(ei),gcn=new t8(bi)}function w7(){w7=W,rfe=new rU($a,0),xx=new rU("IMPROVE_STRAIGHTNESS",1)}function Avn(e,n){return hv(),se(e,new Xi(n,le(n.e.c.length+n.g.c.length)))}function xvn(e,n){return hv(),se(e,new Xi(n,le(n.e.c.length+n.g.c.length)))}function tJ(e,n){return y7(n)!=10&&D(cs(n),n.hm,n.__elementTypeId$,y7(n),e),e}function Tu(e,n){var t;return t=rc(e,n,0),t==-1?!1:(Za(e,t),!0)}function EDe(e,n){var t;return t=u(A2(e.e,n),387),t?(oY(t),t.e):null}function Ov(e){var n;return ic(e)&&(n=0-e,!isNaN(n))?n:Qh(Wv(e))}function rc(e,n,t){for(;t=0?DM(e,t,!0,!0):V0(e,n,!0)}function sJ(e,n){f5();var t,i;return t=S2(e),i=S2(n),!!t&&!!i&&!BNe(t.k,i.k)}function Dvn(e,n){Mu(e,n==null||pC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function Lvn(e,n){Pu(e,n==null||pC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function $vn(e,n){O0(e,n==null||pC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function Fvn(e,n){x0(e,n==null||pC((nn(n),n))||isNaN((nn(n),n))?0:(nn(n),n))}function PDe(e){(this.q?this.q:(He(),He(),ra)).Ac(e.q?e.q:(He(),He(),ra))}function Nvn(e,n){return _(n,99)&&u(n,18).Bb&vr?new hL(n,e):new Vv(n,e)}function _vn(e,n){return _(n,99)&&u(n,18).Bb&vr?new hL(n,e):new Vv(n,e)}function ADe(e,n){Mse=new qE,pYe=n,Ay=e,u(Ay.b,65),WQ(Ay,Mse,null),jHe(Ay)}function bF(e,n,t){var i;return i=e.g[n],D5(e,n,e.oi(n,t)),e.gi(n,t,i),e.ci(),i}function DS(e,n){var t;return t=e.Xc(n),t>=0?(e.$c(t),!0):!1}function wF(e){var n;return e.d!=e.r&&(n=jo(e),e.e=!!n&&n.Cj()==lUe,e.d=n),e.e}function gF(e,n){var t;for(Nn(e),Nn(n),t=!1;n.Ob();)t=t|e.Fc(n.Pb());return t}function M0(e,n){var t;return t=u(yn(e.e,n),387),t?(kCe(e,t),t.e):null}function xDe(e){var n,t;return n=e/60|0,t=e%60,t==0?""+n:""+n+":"+(""+t)}function hc(e,n){var t,i;return hd(e),i=new HQ(n,e.a),t=new WSe(i),new Ue(e,t)}function cw(e,n){var t=e.a[n],i=($F(),HK)[typeof t];return i?i(t):aZ(typeof t)}function Bvn(e){switch(e.g){case 0:return vt;case 1:return-1;default:return 0}}function Rvn(e){return Pee(e,(Iv(),Sue))<0?-t1n(Wv(e)):e.l+e.m*X2+e.h*yd}function y7(e){return e.__elementTypeCategory$==null?10:e.__elementTypeCategory$}function pF(e){var n;return n=e.b.c.length==0?null:ve(e.b,0),n!=null&&MF(e,0),n}function ODe(e,n){for(;n[0]=0;)++n[0]}function k7(e,n){this.e=n,this.a=T$e(e),this.a<54?this.f=C0(e):this.c=W7(e)}function IDe(e,n,t,i){gt(),Qd.call(this,26),this.c=e,this.a=n,this.d=t,this.b=i}function Ul(e,n,t){var i,r;for(i=10,r=0;re.a[i]&&(i=t);return i}function zvn(e,n){var t;return t=N0(e.e.c,n.e.c),t==0?mi(e.e.d,n.e.d):t}function Fg(e,n){return n.e==0||e.e==0?X3:(b3(),m_(e,n))}function Wvn(e,n){if(!e)throw O(new rn(YCn("Enum constant undefined: %s",n)))}function s6(){s6=W,gQe=new mwe,pQe=new gwe,bQe=new Ewe,wQe=new Twe,mQe=new Cwe}function LS(){LS=W,sse=new JW("BY_SIZE",0),JK=new JW("BY_SIZE_AND_SHAPE",1)}function $S(){$S=W,fq=new ZW("EADES",0),QA=new ZW("FRUCHTERMAN_REINGOLD",1)}function E7(){E7=W,Px=new iU("READING_DIRECTION",0),nfe=new iU("ROTATION",1)}function LDe(){LDe=W,eJe=Zn((gd(),D(I(efe,1),ce,335,0,[Bq,Zoe,Rq,Fy,$y])))}function $De(){$De=W,Oen=Zn((M6(),D(I(nae,1),ce,315,0,[eae,xH,OH,Xy,Yy])))}function FDe(){FDe=W,HQe=Zn((Qg(),D(I(qQe,1),ce,363,0,[Ex,Cx,Sx,Tx,jx])))}function NDe(){NDe=W,dJe=Zn((ro(),D(I(Ofe,1),ce,163,0,[Tj,Ky,m1,qy,Gw])))}function _De(){_De=W,Jtn=Zn((ik(),D(I(Che,1),ce,316,0,[jhe,aV,The,hV,Ehe])))}function BDe(){BDe=W,kin=Zn((Cf(),D(I(jh,1),ce,175,0,[an,Ni,_l,Bd,kh])))}function RDe(){RDe=W,ztn=Zn((m3(),D(I(Gtn,1),ce,355,0,[Bp,km,f9,o9,l9])))}function KDe(){KDe=W,oQe=Zn((pr(),D(I(Qse,1),ce,356,0,[$l,g1,wu,Jc,ec])))}function qDe(){qDe=W,Gin=Zn((xr(),D(I(b9,1),ce,103,0,[ua,of,Io,_a,Ba])))}function HDe(){HDe=W,ern=Zn((Gg(),D(I(m9,1),ce,249,0,[C1,Jj,Q1e,p9,J1e])))}function VDe(){VDe=W,irn=Zn((ae(),D(I(yr,1),Nc,61,0,[pc,tn,hn,In,sn])))}function mF(e,n){var t;return t=u(yn(e.a,n),134),t||(t=new WI,jt(e.a,n,t)),t}function GDe(e){var n;return n=u(S(e,(re(),fb)),305),n?n.a==e:!1}function zDe(e){var n;return n=u(S(e,(re(),fb)),305),n?n.i==e:!1}function WDe(e,n){return nn(n),PY(e),e.d.Ob()?(n.td(e.d.Pb()),!0):!1}function FS(e){return Fc(e,vt)>0?vt:Fc(e,cr)<0?cr:Fn(e)}function uw(e){return e<3?(Ds(e,KVe),e+1):e=0&&n=-.01&&e.a<=Qf&&(e.a=0),e.b>=-.01&&e.b<=Qf&&(e.b=0),e}function XDe(e,n){return n==(NL(),NL(),vXe)?e.toLocaleLowerCase():e.toLowerCase()}function fJ(e){return(e.i&2?"interface ":e.i&1?"":"class ")+(ga(e),e.o)}function Wr(e){var n,t;t=(n=new wD,n),Bn((!e.q&&(e.q=new fe(_o,e,11,10)),e.q),t)}function Uvn(e,n){var t;return t=n>0?n-1:n,Gke(oan(yLe(sY(new Wm,t),e.n),e.j),e.k)}function Xvn(e,n,t,i){var r;e.j=-1,Ine(e,hne(e,n,t),(jr(),r=u(n,66).Mj(),r.Ok(i)))}function YDe(e){this.g=e,this.f=new oe,this.a=k.Math.min(this.g.c.c,this.g.d.c)}function QDe(e){this.b=new oe,this.a=new oe,this.c=new oe,this.d=new oe,this.e=e}function JDe(e,n){this.a=new $n,this.e=new $n,this.b=(g6(),iO),this.c=e,this.b=n}function ZDe(e,n,t){wC.call(this),lJ(this),this.a=e,this.c=t,this.b=n.d,this.f=n.e}function eLe(e){this.d=e,this.c=e.c.vc().Kc(),this.b=null,this.a=null,this.e=(sT(),BK)}function P0(e){if(e<0)throw O(new rn("Illegal Capacity: "+e));this.g=this.ri(e)}function Yvn(e,n){if(0>e||e>n)throw O(new EW("fromIndex: 0, toIndex: "+e+aie+n))}function Qvn(e){var n;if(e.a==e.b.a)throw O(new Ac);return n=e.a,e.c=n,e.a=e.a.e,n}function NS(e){var n;Vb(!!e.c),n=e.c.a,no(e.d,e.c),e.b==e.c?e.b=n:--e.a,e.c=null}function _S(e,n){var t;return hd(e),t=new jAe(e,e.a.rd(),e.a.qd()|4,n),new Ue(e,t)}function Jvn(e,n){var t,i;return t=u(aw(e.d,n),14),t?(i=n,e.e.pc(i,t)):null}function BS(e,n){var t,i;for(i=e.Kc();i.Ob();)t=u(i.Pb(),70),te(t,(re(),wm),n)}function Zvn(e){var n;return n=ee(he(S(e,(be(),ph)))),n<0&&(n=0,te(e,ph,n)),n}function e3n(e,n,t){var i;i=k.Math.max(0,e.b/2-.5),A6(t,i,1),se(n,new SEe(t,i))}function n3n(e,n,t){var i;return i=e.a.e[u(n.a,10).p]-e.a.e[u(t.a,10).p],oi(W8(i))}function nLe(e,n,t,i,r,c){var o;o=eF(i),or(o,r),Gi(o,c),Be(e.a,i,new mC(o,n,t.f))}function tLe(e,n){var t;if(t=dk(e.Tg(),n),!t)throw O(new rn(h1+n+tK));return t}function sw(e,n){var t;for(t=e;Xt(t);)if(t=Xt(t),t==n)return!0;return!1}function t3n(e,n){var t,i,r;for(i=n.a.cd(),t=u(n.a.dd(),14).gc(),r=0;r0&&(e.a/=n,e.b/=n),e}function Is(e){var n;return e.w?e.w:(n=a2n(e),n&&!n.kh()&&(e.w=n),n)}function l3n(e){var n;return e==null?null:(n=u(e,190),akn(n,n.length))}function K(e,n){if(e.g==null||n>=e.i)throw O(new aL(n,e.i));return e.li(n,e.g[n])}function a3n(e){var n,t;for(n=e.a.d.j,t=e.c.d.j;n!=t;)ef(e.b,n),n=gM(n);ef(e.b,n)}function h3n(e){var n;for(n=0;n=14&&n<=16))),e}function uLe(e,n,t){var i=function(){return e.apply(i,arguments)};return n.apply(i,t),i}function sLe(e,n,t){var i,r;i=n;do r=ee(e.p[i.p])+t,e.p[i.p]=r,i=e.a[i.p];while(i!=n)}function Dv(e,n){var t,i;i=e.a,t=z5n(e,n,null),i!=n&&!e.e&&(t=T3(e,n,t)),t&&t.Fi()}function aJ(e,n){return Ff(),Zo(s1),k.Math.abs(e-n)<=s1||e==n||isNaN(e)&&isNaN(n)}function hJ(e,n){return Ff(),Zo(s1),k.Math.abs(e-n)<=s1||e==n||isNaN(e)&&isNaN(n)}function w3n(e,n){return r1(),yu(e.b.c.length-e.e.c.length,n.b.c.length-n.e.c.length)}function Ng(e,n){return dan(l6(e,n,Fn(rr(Zl,Gl(Fn(rr(n==null?0:Bt(n),ea)),15)))))}function oLe(){oLe=W,EQe=Zn((dn(),D(I(kq,1),ce,267,0,[ki,Fi,hi,Zc,Cs,nl])))}function fLe(){fLe=W,xin=Zn((pw(),D(I(jV,1),ce,291,0,[kV,Vj,Hj,yV,Kj,qj])))}function lLe(){lLe=W,Tin=Zn((Xl(),D(I(Uhe,1),ce,248,0,[mV,Bj,Rj,xO,PO,AO])))}function aLe(){aLe=W,YQe=Zn((K2(),D(I(u4,1),ce,227,0,[c4,Ly,r4,qw,Sp,Cp])))}function hLe(){hLe=W,sJe=Zn((h3(),D(I(gfe,1),ce,275,0,[Ny,hfe,wfe,bfe,dfe,afe])))}function dLe(){dLe=W,uJe=Zn((nk(),D(I(lfe,1),ce,274,0,[Ox,sfe,ffe,ufe,ofe,Wq])))}function bLe(){bLe=W,Pen=Zn((zM(),D(I(Qle,1),ce,313,0,[SH,Xle,CH,Ule,Yle,tO])))}function wLe(){wLe=W,rJe=Zn((YM(),D(I(ife,1),ce,276,0,[Hq,qq,Gq,Vq,zq,Ax])))}function gLe(){gLe=W,Bnn=Zn((D6(),D(I(_nn,1),ce,327,0,[hO,qH,VH,HH,GH,KH])))}function pLe(){pLe=W,trn=Zn((Ju(),D(I(_O,1),ce,273,0,[M1,Ka,Zj,y9,v9,Mm])))}function mLe(){mLe=W,Uin=Zn((UM(),D(I(V1e,1),ce,312,0,[FV,K1e,H1e,B1e,q1e,R1e])))}function g3n(){return kw(),D(I(Lr,1),ce,93,0,[ff,Ra,lf,hf,oa,Lo,qs,af,Do])}function KS(e,n){var t;t=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,0,t,e.a))}function qS(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,1,t,e.b))}function Lv(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,3,t,e.b))}function x0(e,n){var t;t=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,3,t,e.f))}function O0(e,n){var t;t=e.g,e.g=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,4,t,e.g))}function Mu(e,n){var t;t=e.i,e.i=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,5,t,e.i))}function Pu(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,6,t,e.j))}function $v(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,1,t,e.j))}function Fv(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,4,t,e.c))}function Nv(e,n){var t;t=e.k,e.k=n,e.Db&4&&!(e.Db&1)&&yt(e,new iw(e,2,t,e.k))}function yF(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&yt(e,new W$(e,2,t,e.d))}function th(e,n){var t;t=e.s,e.s=n,e.Db&4&&!(e.Db&1)&&yt(e,new W$(e,4,t,e.s))}function fw(e,n){var t;t=e.t,e.t=n,e.Db&4&&!(e.Db&1)&&yt(e,new W$(e,5,t,e.t))}function _v(e,n){var t;t=e.F,e.F=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,5,t,n))}function T7(e,n){var t;return t=u(yn((PT(),YO),e),55),t?t.xj(n):V(pn,pe,1,n,5,1)}function Ca(e,n){var t,i;return t=n in e.a,t&&(i=va(e,n).he(),i)?i.a:null}function p3n(e,n){var t,i,r;return t=(i=(r0(),r=new cz,r),n&&ete(i,n),i),kJ(t,e),t}function vLe(e,n,t){if(Xv(e,t),!e.Bk()&&t!=null&&!e.wj(t))throw O(new aD);return t}function yLe(e,n){return e.n=n,e.n?(e.f=new oe,e.e=new oe):(e.f=null,e.e=null),e}function zn(e,n,t,i,r,c){var o;return o=h$(e,n),jLe(t,o),o.i=r?8:0,o.f=i,o.e=r,o.g=c,o}function dJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=1,this.c=e,this.a=t}function bJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=2,this.c=e,this.a=t}function wJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=6,this.c=e,this.a=t}function gJ(e,n,t,i,r){this.d=n,this.k=i,this.f=r,this.o=-1,this.p=7,this.c=e,this.a=t}function pJ(e,n,t,i,r){this.d=n,this.j=i,this.e=r,this.o=-1,this.p=4,this.c=e,this.a=t}function kLe(e,n){var t,i,r,c;for(i=n,r=0,c=i.length;r=0),pyn(e.d,e.c)<0&&(e.a=e.a-1&e.d.a.length-1,e.b=e.d.c),e.c=-1}function mJ(e){return e.a<54?e.f<0?-1:e.f>0?1:0:(!e.c&&(e.c=_7(e.f)),e.c).e}function Zo(e){if(!(e>=0))throw O(new rn("tolerance ("+e+") must be >= 0"));return e}function Bv(){return gV||(gV=new lqe,qg(gV,D(I(kp,1),pe,130,0,[new fz]))),gV}function Ar(){Ar=W,Qy=new YD(ey,0),es=new YD("INPUT",1),fu=new YD("OUTPUT",2)}function VS(){VS=W,Qoe=new VD("ARD",0),Mx=new VD("MSD",1),_q=new VD("MANUAL",2)}function I0(){I0=W,Ij=new nL("BARYCENTER",0),Zy=new nL(UGe,1),sO=new nL(XGe,2)}function C7(e,n){var t;if(t=e.gc(),n<0||n>t)throw O(new Ub(n,t));return new FX(e,n)}function CLe(e,n){var t;return _(n,42)?e.c.Mc(n):(t=dN(e,n),CM(e,n),t)}function _r(e,n,t){return ad(e,n),ru(e,t),th(e,0),fw(e,1),uh(e,!0),ch(e,!0),e}function Ds(e,n){if(e<0)throw O(new rn(n+" cannot be negative but was: "+e));return e}function SLe(e,n){var t,i;for(t=0,i=e.gc();t0?u(ve(t.a,i-1),10):null}function f6(e,n){var t;t=e.k,e.k=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,2,t,e.k))}function zS(e,n){var t;t=e.f,e.f=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,8,t,e.f))}function WS(e,n){var t;t=e.i,e.i=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,7,t,e.i))}function kJ(e,n){var t;t=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,8,t,e.a))}function jJ(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,0,t,e.b))}function EJ(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,0,t,e.b))}function TJ(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,1,t,e.c))}function CJ(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,1,t,e.c))}function jF(e,n){var t;t=e.c,e.c=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,4,t,e.c))}function SJ(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,1,t,e.d))}function EF(e,n){var t;t=e.D,e.D=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,2,t,e.D))}function TF(e,n){e.r>0&&e.c0&&e.g!=0&&TF(e.i,n/e.r*e.i.d))}function S3n(e,n,t){var i;e.b=n,e.a=t,i=(e.a&512)==512?new wke:new oz,e.c=qSn(i,e.b,e.a)}function $Le(e,n){return Ia(e.e,n)?(jr(),wF(n)?new CC(n,e):new O8(n,e)):new MTe(n,e)}function US(e,n){return han(a6(e.a,n,Fn(rr(Zl,Gl(Fn(rr(n==null?0:Bt(n),ea)),15)))))}function M3n(e,n,t){return rw(e,new Iye(n),new LI,new Dye(t),D(I(ls,1),ce,132,0,[]))}function P3n(e){var n,t;return 0>e?new _W:(n=e+1,t=new cIe(n,e),new pX(null,t))}function A3n(e,n){He();var t;return t=new c2(1),Ri(e)?Vr(t,e,n):du(t.f,e,n),new oD(t)}function x3n(e,n){var t,i;return t=e.o+e.p,i=n.o+n.p,tn?(n<<=1,n>0?n:X6):n}function CF(e){switch(UU(e.e!=3),e.e){case 2:return!1;case 0:return!0}return Fmn(e)}function NLe(e,n){var t;return _(n,8)?(t=u(n,8),e.a==t.a&&e.b==t.b):!1}function SF(e,n,t){var i,r,c;return c=n>>5,r=n&31,i=Ti(Yb(e.n[t][c],Fn(pa(r,1))),3),i}function I3n(e,n){var t,i;for(i=n.vc().Kc();i.Ob();)t=u(i.Pb(),42),HM(e,t.cd(),t.dd())}function D3n(e,n){var t;t=new qE,u(n.b,65),u(n.b,65),u(n.b,65),Su(n.a,new WX(e,t,n))}function MJ(e,n){var t;t=e.b,e.b=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,21,t,e.b))}function PJ(e,n){var t;t=e.d,e.d=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,11,t,e.d))}function XS(e,n){var t;t=e.j,e.j=n,e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,13,t,e.j))}function _Le(e,n,t){var i,r,c;for(c=e.a.length-1,r=e.b,i=0;i>>31;i!=0&&(e[t]=i)}function H3n(e,n){He();var t,i;for(i=new oe,t=0;t0&&(this.g=this.ri(this.i+(this.i/8|0)+1),e.Qc(this.g))}function Zt(e,n){kC.call(this,Urn,e,n),this.b=this,this.a=bu(e.Tg(),ze(this.e.Tg(),this.c))}function h6(e,n){var t,i;for(nn(n),i=n.vc().Kc();i.Ob();)t=u(i.Pb(),42),e.zc(t.cd(),t.dd())}function Z3n(e,n,t){var i;for(i=t.Kc();i.Ob();)if(!gS(e,n,i.Pb()))return!1;return!0}function e4n(e,n,t,i,r){var c;return t&&(c=qt(n.Tg(),e.c),r=t.gh(n,-1-(c==-1?i:c),null,r)),r}function n4n(e,n,t,i,r){var c;return t&&(c=qt(n.Tg(),e.c),r=t.ih(n,-1-(c==-1?i:c),null,r)),r}function i$e(e){var n;if(e.b==-2){if(e.e==0)n=-1;else for(n=0;e.a[n]==0;n++);e.b=n}return e.b}function r$e(e){switch(e.g){case 2:return ae(),sn;case 4:return ae(),hn;default:return e}}function c$e(e){switch(e.g){case 1:return ae(),In;case 3:return ae(),tn;default:return e}}function t4n(e){var n,t,i;return e.j==(ae(),tn)&&(n=LRe(e),t=Bu(n,hn),i=Bu(n,sn),i||i&&t)}function i4n(e){var n,t;return n=u(e.e&&e.e(),9),t=u(BY(n,n.length),9),new Ys(n,t,n.length)}function r4n(e,n){On(n,WGe,1),LZ(Tan(new QE((o5(),new y$(e,!1,!1,new WG))))),Tn(n)}function S7(e,n){return un(),Ri(e)?KQ(e,Vn(n)):Hb(e)?n$(e,he(n)):qb(e)?own(e,ye(n)):e.wd(n)}function LJ(e,n){n.q=e,e.d=k.Math.max(e.d,n.r),e.b+=n.d+(e.a.c.length==0?0:e.c),se(e.a,n)}function Kv(e,n){var t,i,r,c;return r=e.c,t=e.c+e.b,c=e.d,i=e.d+e.a,n.a>r&&n.ac&&n.b1||e.Ob())return++e.a,e.g=0,n=e.i,e.Ob(),n;throw O(new Ac)}function g4n(e){uCe();var n;return gEe(RH,e)||(n=new Hme,n.a=e,TX(RH,e,n)),u(Nr(RH,e),635)}function yo(e){var n,t,i,r;return r=e,i=0,r<0&&(r+=yd,i=La),t=oi(r/X2),n=oi(r-t*X2),au(n,t,i)}function M7(e){var n,t,i;for(i=0,t=new u2(e.a);t.a>22),r=e.h+n.h+(i>>22),au(t&fs,i&fs,r&La)}function C$e(e,n){var t,i,r;return t=e.l-n.l,i=e.m-n.m+(t>>22),r=e.h-n.h+(i>>22),au(t&fs,i&fs,r&La)}function O7(e){var n;return e<128?(n=(RMe(),xue)[e],!n&&(n=xue[e]=new Tz(e)),n):new Tz(e)}function Ht(e){var n;return _(e,78)?e:(n=e&&e.__java$exception,n||(n=new bFe(e),O7e(n)),n)}function I7(e){if(_(e,186))return u(e,118);if(e)return null;throw O(new i2(yWe))}function S$e(e,n){if(n==null)return!1;for(;e.a!=e.b;)if(kt(n,dM(e)))return!0;return!1}function RJ(e){return e.a.Ob()?!0:e.a!=e.d?!1:(e.a=new yQ(e.e.f),e.a.Ob())}function pi(e,n){var t,i;return t=n.Pc(),i=t.length,i==0?!1:(ZX(e.c,e.c.length,t),!0)}function O4n(e,n,t){var i,r;for(r=n.vc().Kc();r.Ob();)i=u(r.Pb(),42),e.yc(i.cd(),i.dd(),t);return e}function M$e(e,n){var t,i;for(i=new A(e.b);i.a=0,"Negative initial capacity"),yC(n>=0,"Non-positive load factor"),Yu(this)}function FF(e,n,t){return e>=128?!1:e<64?M5(Ti(pa(1,e),t),0):M5(Ti(pa(1,e-64),n),0)}function R4n(e,n){return!e||!n||e==n?!1:N0(e.b.c,n.b.c+n.b.b)<0&&N0(n.b.c,e.b.c+e.b.b)<0}function B$e(e){var n,t,i;return t=e.n,i=e.o,n=e.d,new Qs(t.a-n.b,t.b-n.d,i.a+(n.b+n.c),i.b+(n.d+n.a))}function K4n(e){var n,t,i,r;for(t=e.a,i=0,r=t.length;ii)throw O(new Ub(n,i));return e.hi()&&(t=txe(e,t)),e.Vh(n,t)}function $7(e,n,t){return t==null?(!e.q&&(e.q=new $n),A2(e.q,n)):(!e.q&&(e.q=new $n),jt(e.q,n,t)),e}function te(e,n,t){return t==null?(!e.q&&(e.q=new $n),A2(e.q,n)):(!e.q&&(e.q=new $n),jt(e.q,n,t)),e}function R$e(e){var n,t;return t=new yS,Jr(t,e),te(t,(Yh(),om),e),n=new $n,GPn(e,t,n),pOn(e,t,n),t}function V4n(e){ip();var n,t,i;for(t=V(Ii,ie,8,2,0,1),i=0,n=0;n<2;n++)i+=.5,t[n]=C9n(i,e);return t}function K$e(e,n){var t,i,r,c;for(t=!1,i=e.a[n].length,c=0;c>=1);return n}function H$e(e){var n,t;return t=fk(e.h),t==32?(n=fk(e.m),n==32?fk(e.l)+32:n+20-10):t-12}function w6(e){var n;return n=e.a[e.b],n==null?null:(Ut(e.a,e.b,null),e.b=e.b+1&e.a.length-1,n)}function V$e(e){var n,t;return n=e.t-e.k[e.o.p]*e.d+e.j[e.o.p]>e.f,t=e.u+e.e[e.o.p]*e.d>e.f*e.s*e.d,n||t}function fM(e,n,t){var i,r;return i=new uF(n,t),r=new Lf,e.b=$Ke(e,e.b,i,r),r.b||++e.c,e.b.b=!1,r.d}function G$e(e,n,t){var i,r,c,o;for(o=m6(n,t),c=0,r=o.Kc();r.Ob();)i=u(r.Pb(),11),jt(e.c,i,le(c++))}function Jh(e){var n,t;for(t=new A(e.a.b);t.at&&(t=e[n]);return t}function z$e(e,n,t){var i;return i=new oe,ite(e,n,i,(ae(),hn),!0,!1),ite(e,t,i,sn,!1,!1),i}function _F(e,n,t){var i,r,c,o;return c=null,o=n,r=S0(o,"labels"),i=new hTe(e,t),c=(fTn(i.a,i.b,r),r),c}function z4n(e,n,t,i){var r;return r=Vne(e,n,t,i),!r&&(r=W5n(e,t,i),r&&!up(e,n,r))?null:r}function W4n(e,n,t,i){var r;return r=Gne(e,n,t,i),!r&&(r=nN(e,t,i),r&&!up(e,n,r))?null:r}function W$e(e,n){var t;for(t=0;t1||n>=0&&e.b<3)}function F7(e){var n,t,i;for(n=new Nu,i=ut(e,0);i.b!=i.d.c;)t=u(ct(i),8),fv(n,0,new Hr(t));return n}function fd(e){var n,t;for(t=new A(e.a.b);t.ai?1:0}function cZ(e,n){return pKe(e,n)?(Be(e.b,u(S(n,(re(),Hw)),21),n),st(e.a,n),!0):!1}function c5n(e){var n,t;n=u(S(e,(re(),Zu)),10),n&&(t=n.c,Tu(t.a,n),t.a.c.length==0&&Tu(lr(n).b,t))}function Z$e(e){return el?V(EXe,nGe,572,0,0,1):u(Uf(e.a,V(EXe,nGe,572,e.a.c.length,0,1)),842)}function u5n(e,n,t,i){return GC(),new yD(D(I(Ad,1),SP,42,0,[(ON(e,n),new u0(e,n)),(ON(t,i),new u0(t,i))]))}function Kg(e,n,t){var i,r;return r=(i=new wD,i),_r(r,n,t),Bn((!e.q&&(e.q=new fe(_o,e,11,10)),e.q),r),r}function qF(e){var n,t,i,r;for(r=Ian(Ern,e),t=r.length,i=V(ge,ie,2,t,6,1),n=0;n=e.b.c.length||(uZ(e,2*n+1),t=2*n+2,t=0&&e[i]===n[i];i--);return i<0?0:$D(Ti(e[i],Ir),Ti(n[i],Ir))?-1:1}function s5n(e,n){var t,i;for(i=ut(e,0);i.b!=i.d.c;)t=u(ct(i),214),t.e.length>0&&(n.td(t),t.i&&n6n(t))}function VF(e,n){var t,i;return i=u(en(e.a,4),126),t=V(VV,vK,415,n,0,1),i!=null&&Hc(i,0,t,0,i.length),t}function nFe(e,n){var t;return t=new k_((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,n),e.e!=null||(t.c=e),t}function o5n(e,n){var t,i;for(i=e.Zb().Cc().Kc();i.Ob();)if(t=u(i.Pb(),14),t.Hc(n))return!0;return!1}function GF(e,n,t,i,r){var c,o;for(o=t;o<=r;o++)for(c=n;c<=i;c++)if(Wg(e,c,o))return!0;return!1}function tFe(e,n,t){var i,r,c,o;for(nn(t),o=!1,c=e.Zc(n),r=t.Kc();r.Ob();)i=r.Pb(),c.Rb(i),o=!0;return o}function f5n(e,n){var t;return e===n?!0:_(n,83)?(t=u(n,83),one(w0(e),t.vc())):!1}function iFe(e,n,t){var i,r;for(r=t.Kc();r.Ob();)if(i=u(r.Pb(),42),e.re(n,i.dd()))return!0;return!1}function rFe(e,n,t){return e.d[n.p][t.p]||(c9n(e,n,t),e.d[n.p][t.p]=!0,e.d[t.p][n.p]=!0),e.a[n.p][t.p]}function Xv(e,n){if(!e.ai()&&n==null)throw O(new rn("The 'no null' constraint is violated"));return n}function Yv(e,n){e.D==null&&e.B!=null&&(e.D=e.B,e.B=null),EF(e,n==null?null:(nn(n),n)),e.C&&e.yk(null)}function l5n(e,n){var t;return!e||e==n||!Oi(n,(re(),ab))?!1:(t=u(S(n,(re(),ab)),10),t!=e)}function zF(e){switch(e.i){case 2:return!0;case 1:return!1;case-1:++e.c;default:return e.pl()}}function cFe(e){switch(e.i){case-2:return!0;case-1:return!1;case 1:--e.c;default:return e.ql()}}function uFe(e){XAe.call(this,"The given string does not match the expected format for individual spacings.",e)}function Es(){Es=W,Gs=new zT("ELK",0),sde=new zT("JSON",1),ude=new zT("DOT",2),ode=new zT("SVG",3)}function N7(){N7=W,vO=new iL($a,0),Kae=new iL("RADIAL_COMPACTION",1),qae=new iL("WEDGE_COMPACTION",2)}function Wf(){Wf=W,tse=new FD("CONCURRENT",0),Rs=new FD("IDENTITY_FINISH",1),_w=new FD("UNORDERED",2)}function WF(){WF=W,Ose=(jT(),rq),xse=new Ge(Sie,Ose),kYe=new Kt(Mie),jYe=new Kt(Pie),EYe=new Kt(Aie)}function Qv(){Qv=W,Voe=new hpe,Goe=new dpe,$Qe=new bpe,LQe=new wpe,DQe=new gpe,Hoe=(nn(DQe),new Ob)}function Jv(){Jv=W,NH=new JD("CONSERVATIVE",0),bae=new JD("CONSERVATIVE_SOFT",1),Jy=new JD("SLOPPY",2)}function lM(){lM=W,X1e=new l0(15),Xin=new Er((dt(),Kd),X1e),w9=Tm,G1e=Iin,z1e=Rd,U1e=Hp,W1e=DO}function UF(e,n,t){var i,r,c;for(i=new Gt,c=ut(t,0);c.b!=c.d.c;)r=u(ct(c),8),st(i,new Hr(r));tFe(e,n,i)}function a5n(e){var n,t,i;for(n=0,i=V(Ii,ie,8,e.b,0,1),t=ut(e,0);t.b!=t.d.c;)i[n++]=u(ct(t),8);return i}function oZ(e){var n;return n=(!e.a&&(e.a=new fe(qa,e,9,5)),e.a),n.i!=0?Aan(u(K(n,0),678)):null}function h5n(e,n){var t;return t=fr(e,n),$D(R$(e,n),0)|Gan(R$(e,t),0)?t:fr(CP,R$(Yb(t,63),1))}function d5n(e,n){var t;t=me((aN(),nO))!=null&&n.wg()!=null?ee(he(n.wg()))/ee(he(me(nO))):1,jt(e.b,n,t)}function b5n(e,n){var t,i;return t=u(e.d.Bc(n),14),t?(i=e.e.hc(),i.Gc(t),e.e.d-=t.gc(),t.$b(),i):null}function fZ(e,n){var t,i;if(i=e.c[n],i!=0)for(e.c[n]=0,e.d-=i,t=n+1;t0)return bv(n-1,e.a.c.length),Za(e.a,n-1);throw O(new D7e)}function w5n(e,n,t){if(n<0)throw O(new qr(xze+n));nn)throw O(new rn(xP+e+tGe+n));if(e<0||n>t)throw O(new EW(xP+e+die+n+aie+t))}function fFe(e){if(!e.a||!(e.a.i&8))throw O(new tc("Enumeration class expected for layout option "+e.f))}function lw(e){var n;++e.j,e.i==0?e.g=null:e.icA?e-t>cA:t-e>cA}function YF(e,n){return!e||n&&!e.j||_(e,124)&&u(e,124).a.b==0?0:e.Re()}function hM(e,n){return!e||n&&!e.k||_(e,124)&&u(e,124).a.a==0?0:e.Se()}function _7(e){return c1(),e<0?e!=-1?new ree(-1,-e):zK:e<=10?Vue[oi(e)]:new ree(1,e)}function aZ(e){throw $F(),O(new Ske("Unexpected typeof result '"+e+"'; please report this bug to the GWT team"))}function bFe(e){Ike(),iC(this),YC(this),this.e=e,MKe(this,e),this.g=e==null?Ou:uc(e),this.a="",this.b=e,this.a=""}function hZ(){this.a=new Dve,this.f=new k8e(this),this.b=new j8e(this),this.i=new E8e(this),this.e=new T8e(this)}function wFe(){Tln.call(this,new XQ(uw(16))),Ds(2,NVe),this.b=2,this.a=new UY(null,null,0,null),s8(this.a,this.a)}function g6(){g6=W,MH=new UD("DUMMY_NODE_OVER",0),Jle=new UD("DUMMY_NODE_UNDER",1),iO=new UD("EQUAL",2)}function QF(){QF=W,gq=QAe(D(I(b9,1),ce,103,0,[(xr(),Io),of])),pq=QAe(D(I(b9,1),ce,103,0,[Ba,_a]))}function JF(e){return(ae(),Du).Hc(e.j)?ee(he(S(e,(re(),h4)))):dc(D(I(Ii,1),ie,8,0,[e.i.n,e.n,e.a])).b}function y5n(e){var n,t,i,r;for(i=e.b.a,t=i.a.ec().Kc();t.Ob();)n=u(t.Pb(),561),r=new sKe(n,e.e,e.f),se(e.g,r)}function ad(e,n){var t,i,r;i=e.nk(n,null),r=null,n&&(r=(Jm(),t=new Jd,t),Dv(r,e.r)),i=Xf(e,r,i),i&&i.Fi()}function k5n(e,n){var t,i;for(i=ss(e.d,1)!=0,t=!0;t;)t=!1,t=n.c.Tf(n.e,i),t=t|bk(e,n,i,!1),i=!i;xJ(e)}function dZ(e,n){var t,i,r;return i=!1,t=n.q.d,n.dr&&(K_e(n.q,r),i=t!=n.q.d)),i}function gFe(e,n){var t,i,r,c,o,f,l,a;return l=n.i,a=n.j,i=e.f,r=i.i,c=i.j,o=l-r,f=a-c,t=k.Math.sqrt(o*o+f*f),t}function bZ(e,n){var t,i;return i=SM(e),i||(t=(V_(),qBe(n)),i=new T7e(t),Bn(i.Vk(),e)),i}function B7(e,n){var t,i;return t=u(e.c.Bc(n),14),t?(i=e.hc(),i.Gc(t),e.d-=t.gc(),t.$b(),e.mc(i)):e.jc()}function pFe(e,n){var t;for(t=0;t=e.c.b:e.a<=e.c.b))throw O(new Ac);return n=e.a,e.a+=e.c.c,++e.b,le(n)}function T5n(e){var n;return n=new YDe(e),c7(e.a,mQe,new gs(D(I(dj,1),pe,369,0,[n]))),n.d&&se(n.f,n.d),n.f}function ZF(e){var n;return n=new $U(e.a),Jr(n,e),te(n,(re(),Et),e),n.o.a=e.g,n.o.b=e.f,n.n.a=e.i,n.n.b=e.j,n}function C5n(e,n,t,i){var r,c;for(c=e.Kc();c.Ob();)r=u(c.Pb(),70),r.n.a=n.a+(i.a-r.o.a)/2,r.n.b=n.b,n.b+=r.o.b+t}function S5n(e,n,t){var i,r;for(r=n.a.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),57),xAe(e,i,t))return!0;return!1}function M5n(e){var n,t;for(t=new A(e.r);t.a=0?n:-n;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return n<0?1/r:r}function O5n(e,n){var t,i,r;for(r=1,t=e,i=n>=0?n:-n;i>0;)i%2==0?(t*=t,i=i/2|0):(r*=t,i-=1);return n<0?1/r:r}function TFe(e){var n,t;if(e!=null)for(t=0;t0&&(t=u(ve(e.a,e.a.c.length-1),570),cZ(t,n))||se(e.a,new iIe(n))}function F5n(e){Xo();var n,t;n=e.d.c-e.e.c,t=u(e.g,145),Su(t.b,new x9e(n)),Su(t.c,new O9e(n)),er(t.i,new I9e(n))}function PFe(e){var n;return n=new Ih,n.a+="VerticalSegment ",xc(n,e.e),n.a+=" ",Qn(n,GU(new PD,new A(e.k))),n.a}function N5n(e){var n;return n=u(M0(e.c.c,""),229),n||(n=new T2(Qm(Ym(new Qp,""),"Other")),bd(e.c.c,"",n)),n}function p6(e){var n;return e.Db&64?nf(e):(n=new po(nf(e)),n.a+=" (name: ",Fr(n,e.zb),n.a+=")",n.a)}function vZ(e,n,t){var i,r;return r=e.sb,e.sb=n,e.Db&4&&!(e.Db&1)&&(i=new $i(e,1,4,r,n),t?t.Ei(i):t=i),t}function eN(e,n){var t,i,r;for(t=0,r=bc(e,n).Kc();r.Ob();)i=u(r.Pb(),11),t+=S(i,(re(),Zu))!=null?1:0;return t}function Hg(e,n,t){var i,r,c;for(i=0,c=ut(e,0);c.b!=c.d.c&&(r=ee(he(ct(c))),!(r>t));)r>=n&&++i;return i}function _5n(e,n,t){var i,r;return i=new Ea(e.e,3,13,null,(r=n.c,r||(qe(),sl)),sh(e,n),!1),t?t.Ei(i):t=i,t}function B5n(e,n,t){var i,r;return i=new Ea(e.e,4,13,(r=n.c,r||(qe(),sl)),null,sh(e,n),!1),t?t.Ei(i):t=i,t}function yZ(e,n,t){var i,r;return r=e.r,e.r=n,e.Db&4&&!(e.Db&1)&&(i=new $i(e,1,8,r,e.r),t?t.Ei(i):t=i),t}function rh(e,n){var t,i;return t=u(n,676),i=t.vk(),!i&&t.wk(i=_(n,88)?new TTe(e,u(n,26)):new Gxe(e,u(n,148))),i}function R7(e,n,t){var i;e.qi(e.i+1),i=e.oi(n,t),n!=e.i&&Hc(e.g,n,e.g,n+1,e.i-n),Ut(e.g,n,i),++e.i,e.bi(n,t),e.ci()}function R5n(e,n){var t;return n.a&&(t=n.a.a.length,e.a?Qn(e.a,e.b):e.a=new Ms(e.d),Wxe(e.a,n.a,n.d.length,t)),e}function K5n(e,n){var t,i,r,c;if(n.vi(e.a),c=u(en(e.a,8),1936),c!=null)for(t=c,i=0,r=t.length;it)throw O(new qr(xP+e+die+n+", size: "+t));if(e>n)throw O(new rn(xP+e+tGe+n))}function io(e,n,t){if(n<0)Ene(e,t);else{if(!t.Ij())throw O(new rn(h1+t.ne()+by));u(t,66).Nj().Vj(e,e.yh(),n)}}function V5n(e,n,t,i,r,c,o,f){var l;for(l=t;c=i||n=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e>=48&&e<=57?e-48:0}function $Fe(e){var n;return e.Db&64?nf(e):(n=new po(nf(e)),n.a+=" (source: ",Fr(n,e.d),n.a+=")",n.a)}function z5n(e,n,t){var i,r;return r=e.a,e.a=n,e.Db&4&&!(e.Db&1)&&(i=new $i(e,1,5,r,e.a),t?Hee(t,i):t=i),t}function ch(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,2,t,n))}function jZ(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,8,t,n))}function wM(e,n){var t;t=(e.Bb&256)!=0,n?e.Bb|=256:e.Bb&=-257,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,8,t,n))}function uh(e,n){var t;t=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,3,t,n))}function EZ(e,n){var t;t=(e.Bb&512)!=0,n?e.Bb|=512:e.Bb&=-513,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,9,t,n))}function v6(e,n){var t;return e.b==-1&&e.a&&(t=e.a.Gj(),e.b=t?e.c.Xg(e.a.aj(),t):qt(e.c.Tg(),e.a)),e.c.Og(e.b,n)}function le(e){var n,t;return e>-129&&e<128?(n=e+128,t=(DMe(),Oue)[n],!t&&(t=Oue[n]=new Cz(e)),t):new Cz(e)}function Zv(e){var n,t;return e>-129&&e<128?(n=e+128,t=(BMe(),$ue)[n],!t&&(t=$ue[n]=new Mz(e)),t):new Mz(e)}function TZ(e){var n,t;return n=e.k,n==(dn(),hi)?(t=u(S(e,(re(),Sc)),61),t==(ae(),tn)||t==In):!1}function W5n(e,n,t){var i,r,c;return c=(r=g3(e.b,n),r),c&&(i=u(pP(m7(e,c),""),26),i)?Vne(e,i,n,t):null}function nN(e,n,t){var i,r,c;return c=(r=g3(e.b,n),r),c&&(i=u(pP(m7(e,c),""),26),i)?Gne(e,i,n,t):null}function FFe(e,n){var t,i;for(i=new jn(e);i.e!=i.i.gc();)if(t=u(Pn(i),138),X(n)===X(t))return!0;return!1}function y6(e,n,t){var i;if(i=e.gc(),n>i)throw O(new Ub(n,i));if(e.hi()&&e.Hc(t))throw O(new rn(Xk));e.Xh(n,t)}function U5n(e,n){var t;if(t=Ng(e.i,n),t==null)throw O(new dl("Node did not exist in input."));return $J(n,t),null}function X5n(e,n){var t;if(t=dk(e,n),_(t,322))return u(t,34);throw O(new rn(h1+n+"' is not a valid attribute"))}function Y5n(e,n,t){var i,r;for(r=_(n,99)&&u(n,18).Bb&vr?new hL(n,e):new Vv(n,e),i=0;in?1:e==n?e==0?mi(1/e,1/n):0:isNaN(e)?isNaN(n)?0:1:-1}function c6n(e,n){On(n,"Sort end labels",1),ri(Ft(hc(new Ue(null,new Ye(e.b,16)),new rge),new cge),new uge),Tn(n)}function k6(e,n,t){var i,r;return e.ej()?(r=e.fj(),i=o_(e,n,t),e.$i(e.Zi(7,le(t),i,n,r)),i):o_(e,n,t)}function tN(e,n){var t,i,r;e.d==null?(++e.e,--e.f):(r=n.cd(),t=n.Sh(),i=(t&vt)%e.d.length,qmn(e,i,eKe(e,i,t,r)))}function e3(e,n){var t;t=(e.Bb&rf)!=0,n?e.Bb|=rf:e.Bb&=-1025,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,10,t,n))}function n3(e,n){var t;t=(e.Bb&Aw)!=0,n?e.Bb|=Aw:e.Bb&=-4097,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,12,t,n))}function t3(e,n){var t;t=(e.Bb&zu)!=0,n?e.Bb|=zu:e.Bb&=-8193,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,15,t,n))}function i3(e,n){var t;t=(e.Bb&Nw)!=0,n?e.Bb|=Nw:e.Bb&=-2049,e.Db&4&&!(e.Db&1)&&yt(e,new Jo(e,1,11,t,n))}function u6n(e,n){var t;return t=mi(e.b.c,n.b.c),t!=0||(t=mi(e.a.a,n.a.a),t!=0)?t:mi(e.a.b,n.a.b)}function s6n(e,n){var t;if(t=yn(e.k,n),t==null)throw O(new dl("Port did not exist in input."));return $J(n,t),null}function o6n(e){var n,t;for(t=cKe(Is(e)).Kc();t.Ob();)if(n=Vn(t.Pb()),R6(e,n))return gmn((bEe(),$rn),n);return null}function f6n(e,n){var t,i,r,c,o;for(o=bu(e.e.Tg(),n),c=0,t=u(e.g,119),r=0;r>10)+Ik&li,n[1]=(e&1023)+56320&li,ko(n,0,n.length)}function pM(e){var n,t;return t=u(S(e,(be(),Ks)),103),t==(xr(),ua)?(n=ee(he(S(e,Rx))),n>=1?of:_a):t}function h6n(e){switch(u(S(e,(be(),Na)),218).g){case 1:return new G2e;case 3:return new Y2e;default:return new V2e}}function hd(e){if(e.c)hd(e.c);else if(e.d)throw O(new tc("Stream already terminated, can't be modified or used"))}function cN(e){var n;return e.Db&64?nf(e):(n=new po(nf(e)),n.a+=" (identifier: ",Fr(n,e.k),n.a+=")",n.a)}function RFe(e,n,t){var i,r;return i=(r0(),r=new HE,r),KS(i,n),qS(i,t),e&&Bn((!e.a&&(e.a=new gi(Fo,e,5)),e.a),i),i}function uN(e,n,t,i){var r,c;return nn(i),nn(t),r=e.xc(n),c=r==null?t:nEe(u(r,15),u(t,14)),c==null?e.Bc(n):e.zc(n,c),c}function _e(e){var n,t,i,r;return t=(n=u(mf((i=e.gm,r=i.f,r==Xn?i:r)),9),new Ys(n,u(Uo(n,n.length),9),0)),ef(t,e),t}function d6n(e,n,t){var i,r;for(r=e.a.ec().Kc();r.Ob();)if(i=u(r.Pb(),10),x7(t,u(ve(n,i.p),14)))return i;return null}function b6n(e,n,t){var i;try{U4n(e,n,t)}catch(r){throw r=Ht(r),_(r,597)?(i=r,O(new IQ(i))):O(r)}return n}function n1(e,n){var t;return ic(e)&&ic(n)&&(t=e-n,Ok>1,e.k=t-1>>1}function sN(){Xee();var e,n,t;t=lDn+++Date.now(),e=oi(k.Math.floor(t*Lk))&AP,n=oi(t-e*lie),this.a=e^1502,this.b=n^IB}function Pa(e){var n,t,i;for(n=new oe,i=new A(e.j);i.a34028234663852886e22?ei:n<-34028234663852886e22?bi:n}function KFe(e){return e-=e>>1&1431655765,e=(e>>2&858993459)+(e&858993459),e=(e>>4)+e&252645135,e+=e>>8,e+=e>>16,e&63}function qFe(e){var n,t,i,r;for(n=new jSe(e.Hd().gc()),r=0,i=O2(e.Hd().Kc());i.Ob();)t=i.Pb(),Apn(n,t,le(r++));return ejn(n.a)}function y6n(e,n){var t,i,r;for(r=new $n,i=n.vc().Kc();i.Ob();)t=u(i.Pb(),42),jt(r,t.cd(),a4n(e,u(t.dd(),15)));return r}function xZ(e,n){e.n.c.length==0&&se(e.n,new uS(e.s,e.t,e.i)),se(e.b,n),hee(u(ve(e.n,e.n.c.length-1),211),n),Jqe(e,n)}function Vg(e){return(e.c!=e.b.b||e.i!=e.g.b)&&(e.a.c=V(pn,pe,1,0,5,1),pi(e.a,e.b),pi(e.a,e.g),e.c=e.b.b,e.i=e.g.b),e.a}function oN(e,n){var t,i,r;for(r=0,i=u(n.Kb(e),20).Kc();i.Ob();)t=u(i.Pb(),17),ke(ye(S(t,(re(),tl))))||++r;return r}function k6n(e,n){var t,i,r;i=$g(n),r=ee(he(dw(i,(be(),sf)))),t=k.Math.max(0,r/2-.5),A6(n,t,1),se(e,new LEe(n,t))}function ro(){ro=W,Tj=new T8($a,0),Ky=new T8("FIRST",1),m1=new T8(YGe,2),qy=new T8("LAST",3),Gw=new T8(QGe,4)}function Aa(){Aa=W,LV=new qT(ey,0),Xj=new qT("POLYLINE",1),S4=new qT("ORTHOGONAL",2),Sm=new qT("SPLINES",3)}function mM(){mM=W,uhe=new cL("ASPECT_RATIO_DRIVEN",0),uV=new cL("MAX_SCALE_DRIVEN",1),che=new cL("AREA_DRIVEN",2)}function H7(){H7=W,jO=new uL("P1_STRUCTURE",0),EO=new uL("P2_PROCESSING_ORDER",1),TO=new uL("P3_EXECUTION",2)}function vM(){vM=W,eV=new tL("OVERLAP_REMOVAL",0),JH=new tL("COMPACTION",1),ZH=new tL("GRAPH_SIZE_CALCULATION",2)}function N0(e,n){return Ff(),Zo(s1),k.Math.abs(e-n)<=s1||e==n||isNaN(e)&&isNaN(n)?0:en?1:f0(isNaN(e),isNaN(n))}function HFe(e,n){var t,i;for(t=ut(e,0);t.b!=t.d.c;){if(i=f8(he(ct(t))),i==n)return;if(i>n){q$(t);break}}X8(t,n)}function Ne(e,n){var t,i,r,c,o;if(t=n.f,bd(e.c.d,t,n),n.g!=null)for(r=n.g,c=0,o=r.length;cn&&i.ue(e[c-1],e[c])>0;--c)o=e[c],Ut(e,c,e[c-1]),Ut(e,c-1,o)}function co(e,n,t,i){if(n<0)Xne(e,t,i);else{if(!t.Ij())throw O(new rn(h1+t.ne()+by));u(t,66).Nj().Tj(e,e.yh(),n,i)}}function yM(e,n){if(n==e.d)return e.e;if(n==e.e)return e.d;throw O(new rn("Node "+n+" not part of edge "+e))}function E6n(e,n){switch(n.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function VFe(e,n){switch(n.g){case 2:return e.b;case 1:return e.c;case 4:return e.d;case 3:return e.a;default:return!1}}function OZ(e,n,t,i){switch(n){case 3:return e.f;case 4:return e.g;case 5:return e.i;case 6:return e.j}return kZ(e,n,t,i)}function T6n(e){return e.k!=(dn(),ki)?!1:Sv(new Ue(null,new g0(new En(Sn(vi(e).a.Kc(),new J)))),new I2e)}function C6n(e){return e.e==null?e:(!e.c&&(e.c=new k_((e.f&256)!=0,e.i,e.a,e.d,(e.f&16)!=0,e.j,e.g,null)),e.c)}function S6n(e,n){return e.h==xk&&e.m==0&&e.l==0?(n&&(d1=au(0,0,0)),GTe((Iv(),Cue))):(n&&(d1=au(e.l,e.m,e.h)),au(0,0,0))}function uc(e){var n;return Array.isArray(e)&&e.im===si?Lh(cs(e))+"@"+(n=Bt(e)>>>0,n.toString(16)):e.toString()}function j6(e){var n;this.a=(n=u(e.e&&e.e(),9),new Ys(n,u(Uo(n,n.length),9),0)),this.b=V(pn,pe,1,this.a.a.length,5,1)}function M6n(e){var n,t,i;for(this.a=new wa,i=new A(e);i.a0&&(Gn(n-1,e.length),e.charCodeAt(n-1)==58)&&!fN(e,C9,S9))}function fN(e,n,t){var i,r;for(i=0,r=e.length;i=r)return n.c+t;return n.c+n.b.gc()}function I6n(e,n){lv();var t,i,r,c;for(i=rDe(e),r=n,xv(i,0,i.length,r),t=0;t0&&(i+=r,++t);return t>1&&(i+=e.d*(t-1)),i}function DZ(e){var n,t,i;for(i=new za,i.a+="[",n=0,t=e.gc();n0&&this.b>0&&bY(this.c,this.b,this.a)}function FZ(e){aN(),this.c=qf(D(I(PDn,1),pe,831,0,[Sen])),this.b=new $n,this.a=e,jt(this.b,nO,1),Su(Men,new D8e(this))}function GFe(e,n){var t;return e.d?ys(e.b,n)?u(yn(e.b,n),51):(t=n.Kf(),jt(e.b,n,t),t):n.Kf()}function NZ(e,n){var t;return X(e)===X(n)?!0:_(n,91)?(t=u(n,91),e.e==t.e&&e.d==t.d&&mmn(e,t.a)):!1}function F2(e){switch(ae(),e.g){case 4:return tn;case 1:return hn;case 3:return In;case 2:return sn;default:return pc}}function _Z(e,n){switch(n){case 3:return e.f!=0;case 4:return e.g!=0;case 5:return e.i!=0;case 6:return e.j!=0}return NJ(e,n)}function _6n(e){switch(e.g){case 0:return new Sve;case 1:return new Mve;default:throw O(new rn(KR+(e.f!=null?e.f:""+e.g)))}}function zFe(e){switch(e.g){case 0:return new Cve;case 1:return new Pve;default:throw O(new rn(iR+(e.f!=null?e.f:""+e.g)))}}function WFe(e){switch(e.g){case 0:return new gW;case 1:return new rke;default:throw O(new rn(fA+(e.f!=null?e.f:""+e.g)))}}function B6n(e){switch(e.g){case 1:return new vve;case 2:return new lSe;default:throw O(new rn(KR+(e.f!=null?e.f:""+e.g)))}}function R6n(e){var n,t;if(e.b)return e.b;for(t=el?null:e.d;t;){if(n=el?null:t.b,n)return n;t=el?null:t.d}return iv(),nse}function K6n(e){var n,t,i;return e.e==0?0:(n=e.d<<5,t=e.a[e.d-1],e.e<0&&(i=i$e(e),i==e.d-1&&(--t,t=t|0)),n-=fk(t),n)}function q6n(e){var n,t,i;return e>5,n=e&31,i=V(Ln,nt,25,t+1,15,1),i[t]=1<3;)r*=10,--c;e=(e+(r>>1))/r|0}return i.i=e,!0}function V6n(e){return QF(),un(),!!(VFe(u(e.a,81).j,u(e.b,103))||u(e.a,81).d.e!=0&&VFe(u(e.a,81).j,u(e.b,103)))}function G6n(e){MS(),u(e.We((dt(),E1)),174).Hc((os(),KO))&&(u(e.We(ig),174).Fc((Ju(),Mm)),u(e.We(E1),174).Mc(KO))}function XFe(e,n){var t,i;if(n){for(t=0;t=0;--i)for(n=t[i],r=0;r>1,this.k=n-1>>1}function Q6n(e,n){On(n,"End label post-processing",1),ri(Ft(hc(new Ue(null,new Ye(e.b,16)),new Ywe),new Qwe),new Jwe),Tn(n)}function J6n(e,n,t){var i,r;return i=ee(e.p[n.i.p])+ee(e.d[n.i.p])+n.n.b+n.a.b,r=ee(e.p[t.i.p])+ee(e.d[t.i.p])+t.n.b+t.a.b,r-i}function Z6n(e,n,t){var i,r;for(i=Ti(t,Ir),r=0;Fc(i,0)!=0&&r0&&(Gn(0,n.length),n.charCodeAt(0)==43)?n.substr(1):n))}function nyn(e){var n;return e==null?null:new Rh((n=Yc(e,!0),n.length>0&&(Gn(0,n.length),n.charCodeAt(0)==43)?n.substr(1):n))}function GZ(e,n){var t;return e.i>0&&(n.lengthe.i&&Ut(n,e.i,null),n}function cu(e,n,t){var i,r,c;return e.ej()?(i=e.i,c=e.fj(),R7(e,i,n),r=e.Zi(3,null,n,i,c),t?t.Ei(r):t=r):R7(e,e.i,n),t}function tyn(e,n,t){var i,r;return i=new Ea(e.e,4,10,(r=n.c,_(r,88)?u(r,26):(qe(),Ro)),null,sh(e,n),!1),t?t.Ei(i):t=i,t}function iyn(e,n,t){var i,r;return i=new Ea(e.e,3,10,null,(r=n.c,_(r,88)?u(r,26):(qe(),Ro)),sh(e,n),!1),t?t.Ei(i):t=i,t}function JFe(e){zb();var n;return n=new Hr(u(e.e.We((dt(),Hp)),8)),e.B.Hc((os(),P4))&&(n.a<=0&&(n.a=20),n.b<=0&&(n.b=20)),n}function ZFe(e){bw();var n;return(e.q?e.q:(He(),He(),ra))._b((be(),bb))?n=u(S(e,bb),197):n=u(S(lr(e),zy),197),n}function dw(e,n){var t,i;return i=null,Oi(e,(be(),Zx))&&(t=u(S(e,Zx),94),t.Xe(n)&&(i=t.We(n))),i==null&&(i=S(lr(e),n)),i}function eNe(e,n){var t,i,r;return _(n,42)?(t=u(n,42),i=t.cd(),r=aw(e.Rc(),i),vl(r,t.dd())&&(r!=null||e.Rc()._b(i))):!1}function dN(e,n){var t,i,r;return e.f>0?(e.qj(),i=n==null?0:Bt(n),r=(i&vt)%e.d.length,t=eKe(e,r,i,n),t!=-1):!1}function Tf(e,n){var t,i,r;return e.f>0&&(e.qj(),i=n==null?0:Bt(n),r=(i&vt)%e.d.length,t=Ane(e,r,i,n),t)?t.dd():null}function V7(e,n){var t,i,r,c;for(c=bu(e.e.Tg(),n),t=u(e.g,119),r=0;r1?Kf(pa(n.a[1],32),Ti(n.a[0],Ir)):Ti(n.a[0],Ir),C0(rr(n.e,t))))}function G7(e,n){var t;return ic(e)&&ic(n)&&(t=e%n,Ok>5,n&=31,r=e.d+t+(n==0?0:1),i=V(Ln,nt,25,r,15,1),rkn(i,e.a,t,n),c=new Og(e.e,r,i),e6(c),c}function WZ(e,n,t){var i,r;i=u(zc(O4,n),117),r=u(zc(I9,n),117),t?(Vr(O4,e,i),Vr(I9,e,r)):(Vr(I9,e,i),Vr(O4,e,r))}function sNe(e,n,t){var i,r,c;for(r=null,c=e.b;c;){if(i=e.a.ue(n,c.d),t&&i==0)return c;i>=0?c=c.a[1]:(r=c,c=c.a[0])}return r}function oNe(e,n,t){var i,r,c;for(r=null,c=e.b;c;){if(i=e.a.ue(n,c.d),t&&i==0)return c;i<=0?c=c.a[0]:(r=c,c=c.a[1])}return r}function oyn(e,n,t,i){var r,c,o;return r=!1,Hxn(e.f,t,i)&&(Dyn(e.f,e.a[n][t],e.a[n][i]),c=e.a[n],o=c[i],c[i]=c[t],c[t]=o,r=!0),r}function UZ(e,n,t,i,r){var c,o,f;for(o=r;n.b!=n.c;)c=u(v2(n),10),f=u(bc(c,i).Xb(0),11),e.d[f.p]=o++,t.c[t.c.length]=f;return o}function XZ(e,n,t){var i,r,c,o,f;return o=e.k,f=n.k,i=t[o.g][f.g],r=he(dw(e,i)),c=he(dw(n,i)),k.Math.max((nn(r),r),(nn(c),c))}function fyn(e,n,t){var i,r,c,o;for(i=t/e.c.length,r=0,o=new A(e);o.a2e3&&(cXe=e,FA=k.setTimeout(gan,10))),$A++==0?(Vvn((kW(),jue)),!0):!1}function ayn(e,n){var t,i,r;for(i=new En(Sn(vi(e).a.Kc(),new J));Wn(i);)if(t=u(_n(i),17),r=t.d.i,r.c==n)return!1;return!0}function YZ(e,n){var t,i;if(_(n,245)){i=u(n,245);try{return t=e.vd(i),t==0}catch(r){if(r=Ht(r),!_(r,205))throw O(r)}}return!1}function hyn(){return Error.stackTraceLimit>0?(k.Error.stackTraceLimit=Error.stackTraceLimit=64,!0):"stack"in new Error}function dyn(e,n){return Ff(),Ff(),Zo(s1),(k.Math.abs(e-n)<=s1||e==n||isNaN(e)&&isNaN(n)?0:en?1:f0(isNaN(e),isNaN(n)))>0}function QZ(e,n){return Ff(),Ff(),Zo(s1),(k.Math.abs(e-n)<=s1||e==n||isNaN(e)&&isNaN(n)?0:en?1:f0(isNaN(e),isNaN(n)))<0}function aNe(e,n){return Ff(),Ff(),Zo(s1),(k.Math.abs(e-n)<=s1||e==n||isNaN(e)&&isNaN(n)?0:en?1:f0(isNaN(e),isNaN(n)))<=0}function wN(e,n){for(var t=0;!n[t]||n[t]=="";)t++;for(var i=n[t++];tMB)return t.fh();if(i=t.Zg(),i||t==e)break}return i}function JZ(e){return oS(),_(e,156)?u(yn(sE,pXe),288).vg(e):ys(sE,cs(e))?u(yn(sE,cs(e)),288).vg(e):null}function wyn(e){if(MM(R3,e))return un(),W3;if(MM(ZR,e))return un(),xd;throw O(new rn("Expecting true or false"))}function gyn(e,n){if(n.c==e)return n.d;if(n.d==e)return n.c;throw O(new rn("Input edge is not connected to the input port."))}function pNe(e,n){return e.e>n.e?1:e.en.d?e.e:e.d=48&&e<48+k.Math.min(10,10)?e-48:e>=97&&e<97?e-97+10:e>=65&&e<65?e-65+10:-1}function vNe(e,n){var t;return X(n)===X(e)?!0:!_(n,21)||(t=u(n,21),t.gc()!=e.gc())?!1:e.Ic(t)}function pyn(e,n){var t,i,r,c;return i=e.a.length-1,t=n-e.b&i,c=e.c-n&i,r=e.c-e.b&i,XCe(t=c?(g5n(e,n),-1):(p5n(e,n),1)}function myn(e,n){var t,i;for(t=(Gn(n,e.length),e.charCodeAt(n)),i=n+1;in.e?1:e.fn.f?1:Bt(e)-Bt(n)}function MM(e,n){return nn(e),n==null?!1:Ke(e,n)?!0:e.length==n.length&&Ke(e.toLowerCase(),n.toLowerCase())}function Myn(e,n){var t,i,r,c;for(i=0,r=n.gc();i0&&Fc(e,128)<0?(n=Fn(e)+128,t=(_Me(),Iue)[n],!t&&(t=Iue[n]=new Sz(e)),t):new Sz(e)}function kNe(e,n){var t,i;return t=n.Hh(e.a),t&&(i=Vn(Tf((!t.b&&(t.b=new ms((qe(),kr),Mc,t)),t.b),ht)),i!=null)?i:n.ne()}function Pyn(e,n){var t,i;return t=n.Hh(e.a),t&&(i=Vn(Tf((!t.b&&(t.b=new ms((qe(),kr),Mc,t)),t.b),ht)),i!=null)?i:n.ne()}function Ayn(e,n){$$();var t,i;for(i=new En(Sn(Pa(e).a.Kc(),new J));Wn(i);)if(t=u(_n(i),17),t.d.i==n||t.c.i==n)return t;return null}function nee(e,n,t){this.c=e,this.f=new oe,this.e=new ir,this.j=new lY,this.n=new lY,this.b=n,this.g=new Qs(n.c,n.d,n.b,n.a),this.a=t}function gN(e){var n,t,i,r;for(this.a=new wa,this.d=new Ai,this.e=0,t=e,i=0,r=t.length;i0):!1}function TNe(e){var n;X(Ee(e,(dt(),Rp)))===X((Ma(),NO))&&(Xt(e)?(n=u(Ee(Xt(e),Rp),334),Br(e,Rp,n)):Br(e,Rp,g9))}function Dyn(e,n,t){var i,r;QN(e.e,n,t,(ae(),sn)),QN(e.i,n,t,hn),e.a&&(r=u(S(n,(re(),Et)),11),i=u(S(t,Et),11),K$(e.g,r,i))}function CNe(e,n,t){var i,r,c;i=n.c.p,c=n.p,e.b[i][c]=new qAe(e,n),t&&(e.a[i][c]=new X9e(n),r=u(S(n,(re(),ab)),10),r&&Be(e.d,r,n))}function SNe(e,n){var t,i,r;if(se(YA,e),n.Fc(e),t=u(yn(oq,e),21),t)for(r=t.Kc();r.Ob();)i=u(r.Pb(),33),rc(YA,i,0)!=-1||SNe(i,n)}function Lyn(e,n,t){var i;(TXe?(R6n(e),!0):CXe||MXe?(iv(),!0):SXe&&(iv(),!1))&&(i=new eMe(n),i.b=t,Nkn(e,i))}function pN(e,n){var t;t=!e.A.Hc((Ts(),Vd))||e.q==(Wi(),nu),e.u.Hc((Ju(),Ka))?t?tIn(e,n):tVe(e,n):e.u.Hc(M1)&&(t?kOn(e,n):gVe(e,n))}function u3(e,n){var t,i;if(++e.j,n!=null&&(t=(i=e.a.Cb,_(i,97)?u(i,97).Jg():null),AEn(n,t))){N2(e.a,4,t);return}N2(e.a,4,u(n,126))}function MNe(e,n,t){return new Qs(k.Math.min(e.a,n.a)-t/2,k.Math.min(e.b,n.b)-t/2,k.Math.abs(e.a-n.a)+t,k.Math.abs(e.b-n.b)+t)}function $yn(e,n){var t,i;return t=yu(e.a.c.p,n.a.c.p),t!=0?t:(i=yu(e.a.d.i.p,n.a.d.i.p),i!=0?i:yu(n.a.d.p,e.a.d.p))}function Fyn(e,n,t){var i,r,c,o;return c=n.j,o=t.j,c!=o?c.g-o.g:(i=e.f[n.p],r=e.f[t.p],i==0&&r==0?0:i==0?-1:r==0?1:mi(i,r))}function PNe(e,n,t){var i,r,c;if(!t[n.d])for(t[n.d]=!0,r=new A(Vg(n));r.a=r)return r;for(n=n>0?n:0;ni&&Ut(n,i,null),n}function xNe(e,n){var t,i;for(i=e.a.length,n.lengthi&&Ut(n,i,null),n}function bd(e,n,t){var i,r,c;return r=u(yn(e.e,n),387),r?(c=CX(r,t),kCe(e,r),c):(i=new JX(e,n,t),jt(e.e,n,i),WAe(i),null)}function Byn(e){var n;if(e==null)return null;if(n=DTn(Yc(e,!0)),n==null)throw O(new CD("Invalid hexBinary value: '"+e+"'"));return n}function W7(e){return c1(),Fc(e,0)<0?Fc(e,-1)!=0?new Ree(-1,Ov(e)):zK:Fc(e,10)<=0?Vue[Fn(e)]:new Ree(1,e)}function vN(){return EP(),D(I(aYe,1),ce,159,0,[fYe,oYe,lYe,eYe,ZXe,nYe,rYe,iYe,tYe,sYe,uYe,cYe,QXe,YXe,JXe,UXe,WXe,XXe,GXe,VXe,zXe,nq])}function ONe(e){var n;this.d=new oe,this.j=new ir,this.g=new ir,n=e.g.b,this.f=u(S(lr(n),(be(),Ks)),103),this.e=ee(he(xM(n,Zw)))}function INe(e){this.b=new oe,this.e=new oe,this.d=e,this.a=!u5(Ft(new Ue(null,new g0(new Hf(e.b))),new W4(new D2e))).sd((z1(),Q3))}function Cf(){Cf=W,an=new M8("PARENTS",0),Ni=new M8("NODES",1),_l=new M8("EDGES",2),Bd=new M8("PORTS",3),kh=new M8("LABELS",4)}function Gg(){Gg=W,C1=new A8("DISTRIBUTED",0),Jj=new A8("JUSTIFIED",1),Q1e=new A8("BEGIN",2),p9=new A8(I3,3),J1e=new A8("END",4)}function Ryn(e){var n;switch(n=e.yi(null),n){case 10:return 0;case 15:return 1;case 14:return 2;case 11:return 3;case 21:return 4}return-1}function yN(e){switch(e.g){case 1:return xr(),Ba;case 4:return xr(),Io;case 2:return xr(),of;case 3:return xr(),_a}return xr(),ua}function Kyn(e,n,t){var i;switch(i=t.q.getFullYear()-o1+o1,i<0&&(i=-i),n){case 1:e.a+=i;break;case 2:Ul(e,i%100,2);break;default:Ul(e,i,n)}}function ut(e,n){var t,i;if(nw(n,e.b),n>=e.b>>1)for(i=e.c,t=e.b;t>n;--t)i=i.b;else for(i=e.a.a,t=0;t=64&&n<128&&(r=Kf(r,pa(1,n-64)));return r}function xM(e,n){var t,i;return i=null,Oi(e,(dt(),Cm))&&(t=u(S(e,Cm),94),t.Xe(n)&&(i=t.We(n))),i==null&&lr(e)&&(i=S(lr(e),n)),i}function $Ne(e,n){var t,i,r;r=n.d.i,i=r.k,!(i==(dn(),ki)||i==nl)&&(t=new En(Sn(vi(r).a.Kc(),new J)),Wn(t)&&jt(e.k,n,u(_n(t),17)))}function kN(e,n){var t,i,r;return i=ze(e.Tg(),n),t=n-e.Ah(),t<0?(r=e.Yg(i),r>=0?e.lh(r):s_(e,i)):t<0?s_(e,i):u(i,66).Nj().Sj(e,e.yh(),t)}function me(e){var n;if(_(e.a,4)){if(n=JZ(e.a),n==null)throw O(new tc(Ize+e.b+"'. "+Oze+(ga(oE),oE.k)+Ice));return n}else return e.a}function Vyn(e){var n;if(e==null)return null;if(n=lIn(Yc(e,!0)),n==null)throw O(new CD("Invalid base64Binary value: '"+e+"'"));return n}function Pn(e){var n;try{return n=e.i.Xb(e.e),e.mj(),e.g=e.e++,n}catch(t){throw t=Ht(t),_(t,73)?(e.mj(),O(new Ac)):O(t)}}function jN(e){var n;try{return n=e.c.ki(e.e),e.mj(),e.g=e.e++,n}catch(t){throw t=Ht(t),_(t,73)?(e.mj(),O(new Ac)):O(t)}}function C6(){C6=W,Lse=(dt(),x1e),uq=o1e,TYe=Em,Dse=Kd,PYe=(qM(),hse),MYe=lse,AYe=bse,SYe=fse,CYe=(WF(),xse),cq=kYe,Ise=jYe,XA=EYe}function OM(e){switch(KW(),this.c=new oe,this.d=e,e.g){case 0:case 2:this.a=XY(Jse),this.b=ei;break;case 3:case 1:this.a=Jse,this.b=bi}}function FNe(e,n,t){var i,r;if(e.c)Mu(e.c,e.c.i+n),Pu(e.c,e.c.j+t);else for(r=new A(e.b);r.a0&&(se(e.b,new gMe(n.a,t)),i=n.a.length,0i&&(n.a+=yCe(V(ho,Tl,25,-i,15,1))))}function NNe(e,n){var t,i,r;for(t=e.o,r=u(u(Ct(e.r,n),21),84).Kc();r.Ob();)i=u(r.Pb(),111),i.e.a=W9n(i,t.a),i.e.b=t.b*ee(he(i.b.We(zA)))}function zyn(e,n){var t,i,r,c;return r=e.k,t=ee(he(S(e,(re(),hb)))),c=n.k,i=ee(he(S(n,hb))),c!=(dn(),hi)?-1:r!=hi?1:t==i?0:t=0?e.hh(n,t,i):(e.eh()&&(i=(r=e.Vg(),r>=0?e.Qg(i):e.eh().ih(e,-1-r,null,i))),e.Sg(n,t,i))}function iee(e,n){switch(n){case 7:!e.e&&(e.e=new Xe(Di,e,7,4)),Dn(e.e);return;case 8:!e.d&&(e.d=new Xe(Di,e,8,5)),Dn(e.d);return}HZ(e,n)}function Sf(e,n){var t;t=e.Zc(n);try{return t.Pb()}catch(i){throw i=Ht(i),_(i,109)?O(new qr("Can't get element "+n)):O(i)}}function ree(e,n){this.e=e,n=0&&(t.d=e.t);break;case 3:e.t>=0&&(t.a=e.t)}e.C&&(t.b=e.C.b,t.c=e.C.c)}function B2(){B2=W,sj=new LT(IP,0),uj=new LT(KB,1),oj=new LT(qB,2),fj=new LT(HB,3),sj.a=!1,uj.a=!0,oj.a=!1,fj.a=!0}function S6(){S6=W,lj=new DT(IP,0),WA=new DT(KB,1),UA=new DT(qB,2),aj=new DT(HB,3),lj.a=!1,WA.a=!0,UA.a=!1,aj.a=!0}function Qyn(e){var n;n=e.a;do n=u(_n(new En(Sn(cc(n).a.Kc(),new J))),17).c.i,n.k==(dn(),Fi)&&e.b.Fc(n);while(n.k==(dn(),Fi));e.b=cd(e.b)}function Jyn(e){var n,t,i;for(i=e.c.a,e.p=(Nn(i),new Ru(i)),t=new A(i);t.at.b)return!0}return!1}function EN(e,n){return Ri(e)?!!JUe[n]:e.hm?!!e.hm[n]:Hb(e)?!!QUe[n]:qb(e)?!!YUe[n]:!1}function Br(e,n,t){return t==null?(!e.o&&(e.o=new js((uu(),A1),yb,e,0)),CM(e.o,n)):(!e.o&&(e.o=new js((uu(),A1),yb,e,0)),HM(e.o,n,t)),e}function t9n(e,n,t,i){var r,c;c=n.Xe((dt(),qp))?u(n.We(qp),21):e.j,r=G5n(c),r!=(EP(),nq)&&(t&&!ZZ(r)||fne(LTn(e,r,i),n))}function DM(e,n,t,i){var r,c,o;return c=ze(e.Tg(),n),r=n-e.Ah(),r<0?(o=e.Yg(c),o>=0?e._g(o,t,!0):V0(e,c,t)):u(c,66).Nj().Pj(e,e.yh(),r,t,i)}function i9n(e,n,t,i){var r,c,o;t.mh(n)&&(jr(),wF(n)?(r=u(t.ah(n),153),Myn(e,r)):(c=(o=n,o?u(i,49).xh(o):null),c&&cln(t.ah(n),c)))}function r9n(e){switch(e.g){case 1:return L0(),cj;case 3:return L0(),rj;case 2:return L0(),iq;case 4:return L0(),tq;default:return null}}function cee(e){switch(typeof e){case Z_:return oh(e);case nie:return oi(e);case z2:return un(),e?1231:1237;default:return e==null?0:a0(e)}}function c9n(e,n,t){if(e.e)switch(e.b){case 1:Lgn(e.c,n,t);break;case 0:$gn(e.c,n,t)}else COe(e.c,n,t);e.a[n.p][t.p]=e.c.i,e.a[t.p][n.p]=e.c.e}function qNe(e){var n,t;if(e==null)return null;for(t=V(ca,ie,193,e.length,0,2),n=0;n=0)return r;if(e.Fk()){for(i=0;i=r)throw O(new Ub(n,r));if(e.hi()&&(i=e.Xc(t),i>=0&&i!=n))throw O(new rn(Xk));return e.mi(n,t)}function uee(e,n){if(this.a=u(Nn(e),245),this.b=u(Nn(n),245),e.vd(n)>0||e==(vD(),$K)||n==(mD(),FK))throw O(new rn("Invalid range: "+kOe(e,n)))}function HNe(e){var n,t;for(this.b=new oe,this.c=e,this.a=!1,t=new A(e.a);t.a0),(n&-n)==n)return oi(n*ss(e,31)*4656612873077393e-25);do t=ss(e,31),i=t%n;while(t-i+(n-1)<0);return oi(i)}function oh(e){nMe();var n,t,i;return t=":"+e,i=HA[t],i!=null?oi((nn(i),i)):(i=ise[t],n=i==null?QCn(e):oi((nn(i),i)),Sgn(),HA[t]=n,n)}function GNe(e,n,t){On(t,"Compound graph preprocessor",1),e.a=new E0,QHe(e,n,null),_An(e,n),yCn(e),te(n,(re(),jfe),e.a),e.a=null,Yu(e.b),Tn(t)}function o9n(e,n,t){switch(t.g){case 1:e.a=n.a/2,e.b=0;break;case 2:e.a=n.a,e.b=n.b/2;break;case 3:e.a=n.a/2,e.b=n.b;break;case 4:e.a=0,e.b=n.b/2}}function f9n(e){var n,t,i;for(i=u(Ct(e.a,(Qg(),Cx)),15).Kc();i.Ob();)t=u(i.Pb(),101),n=vee(t),gv(e,t,n[0],(D0(),sb),0),gv(e,t,n[1],ob,1)}function l9n(e){var n,t,i;for(i=u(Ct(e.a,(Qg(),Sx)),15).Kc();i.Ob();)t=u(i.Pb(),101),n=vee(t),gv(e,t,n[0],(D0(),sb),0),gv(e,t,n[1],ob,1)}function TN(e){switch(e.g){case 0:return null;case 1:return new GLe;case 2:return new pW;default:throw O(new rn(KR+(e.f!=null?e.f:""+e.g)))}}function U7(e,n,t){var i,r;for(I4n(e,n-e.s,t-e.t),r=new A(e.n);r.a1&&(c=s9n(e,n)),c}function CN(e){var n;return e.f&&e.f.kh()&&(n=u(e.f,49),e.f=u(e1(e,n),82),e.f!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,9,8,n,e.f))),e.f}function SN(e){var n;return e.i&&e.i.kh()&&(n=u(e.i,49),e.i=u(e1(e,n),82),e.i!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,9,7,n,e.i))),e.i}function Tr(e){var n;return e.b&&e.b.Db&64&&(n=e.b,e.b=u(e1(e,n),18),e.b!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,9,21,n,e.b))),e.b}function FM(e,n){var t,i,r;e.d==null?(++e.e,++e.f):(i=n.Sh(),MCn(e,e.f+1),r=(i&vt)%e.d.length,t=e.d[r],!t&&(t=e.d[r]=e.uj()),t.Fc(n),++e.f)}function fee(e,n,t){var i;return n.Kj()?!1:n.Zj()!=-2?(i=n.zj(),i==null?t==null:kt(i,t)):n.Hj()==e.e.Tg()&&t==null}function NM(){var e;Ds(16,KVe),e=FLe(16),this.b=V(_K,Pk,317,e,0,1),this.c=V(_K,Pk,317,e,0,1),this.a=null,this.e=null,this.i=0,this.f=e-1,this.g=0}function xa(e){MX.call(this),this.k=(dn(),ki),this.j=(Ds(6,Pw),new iu(6)),this.b=(Ds(2,Pw),new iu(2)),this.d=new dD,this.f=new oW,this.a=e}function h9n(e){var n,t;e.c.length<=1||(n=HKe(e,(ae(),In)),OBe(e,u(n.a,19).a,u(n.b,19).a),t=HKe(e,sn),OBe(e,u(t.a,19).a,u(t.b,19).a))}function M6(){M6=W,eae=new E8("SIMPLE",0),xH=new E8(cR,1),OH=new E8("LINEAR_SEGMENTS",2),Xy=new E8("BRANDES_KOEPF",3),Yy=new E8(dze,4)}function lee(e,n,t){w2(u(S(n,(be(),ti)),98))||(rJ(e,n,fh(n,t)),rJ(e,n,fh(n,(ae(),In))),rJ(e,n,fh(n,tn)),He(),Li(n.j,new W9e(e)))}function zNe(e,n,t,i){var r,c,o;for(r=u(Ct(i?e.a:e.b,n),21),o=r.Kc();o.Ob();)if(c=u(o.Pb(),33),sP(e,t,c))return!0;return!1}function MN(e){var n,t;for(t=new jn(e);t.e!=t.i.gc();)if(n=u(Pn(t),87),n.e||(!n.d&&(n.d=new gi($r,n,1)),n.d).i!=0)return!0;return!1}function PN(e){var n,t;for(t=new jn(e);t.e!=t.i.gc();)if(n=u(Pn(t),87),n.e||(!n.d&&(n.d=new gi($r,n,1)),n.d).i!=0)return!0;return!1}function d9n(e){var n,t,i;for(n=0,i=new A(e.c.a);i.a102?-1:e<=57?e-48:e<65?-1:e<=70?e-65+10:e<97?-1:e-97+10}function ON(e,n){if(e==null)throw O(new i2("null key in entry: null="+n));if(n==null)throw O(new i2("null value in entry: "+e+"=null"))}function b9n(e,n){for(var t,i;e.Ob();)if(!n.Ob()||(t=e.Pb(),i=n.Pb(),!(X(t)===X(i)||t!=null&&kt(t,i))))return!1;return!n.Ob()}function UNe(e,n){var t;return t=D(I(Hi,1),Rr,25,15,[YF(e.a[0],n),YF(e.a[1],n),YF(e.a[2],n)]),e.d&&(t[0]=k.Math.max(t[0],t[2]),t[2]=t[0]),t}function XNe(e,n){var t;return t=D(I(Hi,1),Rr,25,15,[hM(e.a[0],n),hM(e.a[1],n),hM(e.a[2],n)]),e.d&&(t[0]=k.Math.max(t[0],t[2]),t[2]=t[0]),t}function gd(){gd=W,Bq=new j8("GREEDY",0),Zoe=new j8(ZGe,1),Rq=new j8(cR,2),Fy=new j8("MODEL_ORDER",3),$y=new j8("GREEDY_MODEL_ORDER",4)}function YNe(e,n){var t,i,r;for(e.b[n.g]=1,i=ut(n.d,0);i.b!=i.d.c;)t=u(ct(i),188),r=t.c,e.b[r.g]==1?st(e.a,t):e.b[r.g]==2?e.b[r.g]=1:YNe(e,r)}function w9n(e,n){var t,i,r;for(r=new iu(n.gc()),i=n.Kc();i.Ob();)t=u(i.Pb(),286),t.c==t.f?d3(e,t,t.c):djn(e,t)||(r.c[r.c.length]=t);return r}function g9n(e,n,t){var i,r,c,o,f;for(f=e.r+n,e.r+=n,e.d+=t,i=t/e.n.c.length,r=0,o=new A(e.n);o.ac&&Ut(n,c,null),n}function x9n(e,n){var t,i;if(i=e.gc(),n==null){for(t=0;t0&&(l+=r),a[h]=o,o+=f*(l+i)}function r_e(e){var n,t,i;for(i=e.f,e.n=V(Hi,Rr,25,i,15,1),e.d=V(Hi,Rr,25,i,15,1),n=0;n0?e.c:0),++r;e.b=i,e.d=c}function N9n(e,n){var t,i,r,c,o;for(i=0,r=0,t=0,o=new A(n);o.a0?e.g:0),++t;e.c=r,e.d=i}function f_e(e,n){var t;return t=D(I(Hi,1),Rr,25,15,[oee(e,(Ef(),Tc),n),oee(e,ou,n),oee(e,Cc,n)]),e.f&&(t[0]=k.Math.max(t[0],t[2]),t[2]=t[0]),t}function _9n(e,n,t){var i;try{lP(e,n+e.j,t+e.k,!1,!0)}catch(r){throw r=Ht(r),_(r,73)?(i=r,O(new qr(i.g+LP+n+mr+t+")."))):O(r)}}function B9n(e,n,t){var i;try{lP(e,n+e.j,t+e.k,!0,!1)}catch(r){throw r=Ht(r),_(r,73)?(i=r,O(new qr(i.g+LP+n+mr+t+")."))):O(r)}}function l_e(e){var n;Oi(e,(be(),db))&&(n=u(S(e,db),21),n.Hc((kw(),ff))?(n.Mc(ff),n.Fc(lf)):n.Hc(lf)&&(n.Mc(lf),n.Fc(ff)))}function a_e(e){var n;Oi(e,(be(),db))&&(n=u(S(e,db),21),n.Hc((kw(),hf))?(n.Mc(hf),n.Fc(Lo)):n.Hc(Lo)&&(n.Mc(Lo),n.Fc(hf)))}function R9n(e,n,t){On(t,"Self-Loop ordering",1),ri(ju(Ft(Ft(hc(new Ue(null,new Ye(n.b,16)),new vpe),new ype),new kpe),new jpe),new k9e(e)),Tn(t)}function Y7(e,n,t,i){var r,c;for(r=n;r0&&(r.b+=n),r}function RM(e,n){var t,i,r;for(r=new ir,i=e.Kc();i.Ob();)t=u(i.Pb(),37),B6(t,0,r.b),r.b+=t.f.b+n,r.a=k.Math.max(r.a,t.f.a);return r.a>0&&(r.a+=n),r}function d_e(e){var n,t,i;for(i=vt,t=new A(e.a);t.a>16==6?e.Cb.ih(e,5,If,n):(i=Tr(u(ze((t=u(en(e,16),26),t||e.zh()),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function G9n(e){jv();var n=e.e;if(n&&n.stack){var t=n.stack,i=n+`
+`;return t.substring(0,i.length)==i&&(t=t.substring(i.length)),t.split(`
+`)}return[]}function z9n(e){var n;return n=(xLe(),lXe),n[e>>>28]|n[e>>24&15]<<4|n[e>>20&15]<<8|n[e>>16&15]<<12|n[e>>12&15]<<16|n[e>>8&15]<<20|n[e>>4&15]<<24|n[e&15]<<28}function g_e(e){var n,t,i;e.b==e.c&&(i=e.a.length,t=YJ(k.Math.max(8,i))<<1,e.b!=0?(n=Uo(e.a,t),_Le(e,n,i),e.a=n,e.b=0):N7e(e.a,t),e.c=i)}function W9n(e,n){var t;return t=e.b,t.Xe((dt(),as))?t.Hf()==(ae(),sn)?-t.rf().a-ee(he(t.We(as))):n+ee(he(t.We(as))):t.Hf()==(ae(),sn)?-t.rf().a:n}function Q7(e){var n;return e.b.c.length!=0&&u(ve(e.b,0),70).a?u(ve(e.b,0),70).a:(n=E$(e),n??""+(e.c?rc(e.c.a,e,0):-1))}function KM(e){var n;return e.f.c.length!=0&&u(ve(e.f,0),70).a?u(ve(e.f,0),70).a:(n=E$(e),n??""+(e.i?rc(e.i.j,e,0):-1))}function U9n(e,n){var t,i;if(n<0||n>=e.gc())return null;for(t=n;t0?e.c:0),r=k.Math.max(r,n.d),++i;e.e=c,e.b=r}function Y9n(e){var n,t;if(!e.b)for(e.b=bS(u(e.f,118).Ag().i),t=new jn(u(e.f,118).Ag());t.e!=t.i.gc();)n=u(Pn(t),137),se(e.b,new TD(n));return e.b}function Q9n(e,n){var t,i,r;if(n.dc())return lv(),lv(),fE;for(t=new vSe(e,n.gc()),r=new jn(e);r.e!=r.i.gc();)i=Pn(r),n.Hc(i)&&Bn(t,i);return t}function pee(e,n,t,i){return n==0?i?(!e.o&&(e.o=new js((uu(),A1),yb,e,0)),e.o):(!e.o&&(e.o=new js((uu(),A1),yb,e,0)),a7(e.o)):DM(e,n,t,i)}function BN(e){var n,t;if(e.rb)for(n=0,t=e.rb.i;n>22),r+=i>>22,r<0)?!1:(e.l=t&fs,e.m=i&fs,e.h=r&La,!0)}function n8n(e,n,t,i,r,c,o){var f,l;return!(n.Ae()&&(l=e.a.ue(t,i),l<0||!r&&l==0)||n.Be()&&(f=e.a.ue(t,c),f>0||!o&&f==0))}function t8n(e,n){Qv();var t;if(t=e.j.g-n.j.g,t!=0)return 0;switch(e.j.g){case 2:return oN(n,Goe)-oN(e,Goe);case 4:return oN(e,Voe)-oN(n,Voe)}return 0}function i8n(e){switch(e.g){case 0:return qq;case 1:return Hq;case 2:return Vq;case 3:return Gq;case 4:return Ax;case 5:return zq;default:return null}}function Ur(e,n,t){var i,r;return i=(r=new gD,ad(r,n),ru(r,t),Bn((!e.c&&(e.c=new fe(kb,e,12,10)),e.c),r),r),th(i,0),fw(i,1),uh(i,!0),ch(i,!0),i}function R2(e,n){var t,i;if(n>=e.i)throw O(new aL(n,e.i));return++e.j,t=e.g[n],i=e.i-n-1,i>0&&Hc(e.g,n+1,e.g,n,i),Ut(e.g,--e.i,null),e.fi(n,t),e.ci(),t}function p_e(e,n){var t,i;return e.Db>>16==17?e.Cb.ih(e,21,No,n):(i=Tr(u(ze((t=u(en(e,16),26),t||e.zh()),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function r8n(e){var n,t,i,r;for(He(),Li(e.c,e.a),r=new A(e.c);r.at.a.c.length))throw O(new rn("index must be >= 0 and <= layer node count"));e.c&&Tu(e.c.a,e),e.c=t,t&&Xb(t.a,n,e)}function j_e(e,n){var t,i,r;for(i=new En(Sn(Pa(e).a.Kc(),new J));Wn(i);)return t=u(_n(i),17),r=u(n.Kb(t),10),new UE(Nn(r.n.b+r.o.b/2));return J4(),J4(),LK}function E_e(e,n){this.c=new $n,this.a=e,this.b=n,this.d=u(S(e,(re(),Ip)),304),X(S(e,(be(),xle)))===X((w7(),xx))?this.e=new eke:this.e=new Z7e}function l8n(e,n){var t,i,r,c;for(c=0,i=new A(e);i.a>16==6?e.Cb.ih(e,6,Di,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(uu(),HO)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Eee(e,n){var t,i;return e.Db>>16==7?e.Cb.ih(e,1,rE,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(uu(),lde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Tee(e,n){var t,i;return e.Db>>16==9?e.Cb.ih(e,9,Qt,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(uu(),hde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function C_e(e,n){var t,i;return e.Db>>16==5?e.Cb.ih(e,9,JO,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(qe(),Ch)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Cee(e,n){var t,i;return e.Db>>16==3?e.Cb.ih(e,0,uE,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(qe(),Th)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function S_e(e,n){var t,i;return e.Db>>16==7?e.Cb.ih(e,6,If,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(qe(),Mh)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function M_e(){this.a=new D3e,this.g=new NM,this.j=new NM,this.b=new $n,this.d=new NM,this.i=new NM,this.k=new $n,this.c=new $n,this.e=new $n,this.f=new $n}function b8n(e,n,t){var i,r,c;for(t<0&&(t=0),c=e.i,r=t;rMB)return o3(e,i);if(i==e)return!0}}return!1}function g8n(e){switch(oC(),e.q.g){case 5:aRe(e,(ae(),tn)),aRe(e,In);break;case 4:uKe(e,(ae(),tn)),uKe(e,In);break;default:uVe(e,(ae(),tn)),uVe(e,In)}}function p8n(e){switch(oC(),e.q.g){case 5:SRe(e,(ae(),hn)),SRe(e,sn);break;case 4:NNe(e,(ae(),hn)),NNe(e,sn);break;default:sVe(e,(ae(),hn)),sVe(e,sn)}}function m8n(e){var n,t;n=u(S(e,(Mf(),GYe)),19),n?(t=n.a,t==0?te(e,(Yh(),ex),new sN):te(e,(Yh(),ex),new mS(t))):te(e,(Yh(),ex),new mS(1))}function v8n(e,n){var t;switch(t=e.i,n.g){case 1:return-(e.n.b+e.o.b);case 2:return e.n.a-t.o.a;case 3:return e.n.b-t.o.b;case 4:return-(e.n.a+e.o.a)}return 0}function y8n(e,n){switch(e.g){case 0:return n==(ro(),m1)?yx:kx;case 1:return n==(ro(),m1)?yx:gj;case 2:return n==(ro(),m1)?gj:kx;default:return gj}}function Z7(e,n){var t,i,r;for(Tu(e.a,n),e.e-=n.r+(e.a.c.length==0?0:e.c),r=ace,i=new A(e.a);i.a>16==3?e.Cb.ih(e,12,Qt,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(uu(),fde)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function Mee(e,n){var t,i;return e.Db>>16==11?e.Cb.ih(e,10,Qt,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(uu(),ade)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function P_e(e,n){var t,i;return e.Db>>16==10?e.Cb.ih(e,11,No,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(qe(),Sh)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function A_e(e,n){var t,i;return e.Db>>16==10?e.Cb.ih(e,12,_o,n):(i=Tr(u(ze((t=u(en(e,16),26),t||(qe(),lg)),e.Db>>16),18)),e.Cb.ih(e,i.n,i.f,n))}function jo(e){var n;return!(e.Bb&1)&&e.r&&e.r.kh()&&(n=u(e.r,49),e.r=u(e1(e,n),138),e.r!=n&&e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,9,8,n,e.r))),e.r}function KN(e,n,t){var i;return i=D(I(Hi,1),Rr,25,15,[Jee(e,(Ef(),Tc),n,t),Jee(e,ou,n,t),Jee(e,Cc,n,t)]),e.f&&(i[0]=k.Math.max(i[0],i[2]),i[2]=i[0]),i}function k8n(e,n){var t,i,r;if(r=w9n(e,n),r.c.length!=0)for(Li(r,new Gge),t=r.c.length,i=0;i>19,a=n.h>>19,l!=a?a-l:(r=e.h,f=n.h,r!=f?r-f:(i=e.m,o=n.m,i!=o?i-o:(t=e.l,c=n.l,t-c)))}function qM(){qM=W,wse=(oP(),ZK),bse=new Ge(gie,wse),dse=(LS(),JK),hse=new Ge(pie,dse),ase=(PM(),QK),lse=new Ge(mie,ase),fse=new Ge(vie,(un(),!0))}function A6(e,n,t){var i,r;i=n*t,_(e.g,145)?(r=S2(e),r.f.d?r.f.a||(e.d.a+=i+Qf):(e.d.d-=i+Qf,e.d.a+=i+Qf)):_(e.g,10)&&(e.d.d-=i,e.d.a+=2*i)}function x_e(e,n,t){var i,r,c,o,f;for(r=e[t.g],f=new A(n.d);f.a0?e.g:0),++t;n.b=i,n.e=r}function O_e(e){var n,t,i;if(i=e.b,Zje(e.i,i.length)){for(t=i.length*2,e.b=V(_K,Pk,317,t,0,1),e.c=V(_K,Pk,317,t,0,1),e.f=t-1,e.i=0,n=e.a;n;n=n.c)uk(e,n,n);++e.g}}function A8n(e,n,t,i){var r,c,o,f;for(r=0;ro&&(f=o/i),r>c&&(l=c/r),gl(e,k.Math.min(f,l)),e}function O8n(){bP();var e,n;try{if(n=u(_ee((Fh(),Bo),q3),2014),n)return n}catch(t){if(t=Ht(t),_(t,102))e=t,CY((qn(),e));else throw O(t)}return new A3e}function I8n(){jDe();var e,n;try{if(n=u(_ee((Fh(),Bo),Pd),2024),n)return n}catch(t){if(t=Ht(t),_(t,102))e=t,CY((qn(),e));else throw O(t)}return new U4e}function D8n(){bP();var e,n;try{if(n=u(_ee((Fh(),Bo),Po),1941),n)return n}catch(t){if(t=Ht(t),_(t,102))e=t,CY((qn(),e));else throw O(t)}return new n4e}function L8n(e,n,t){var i,r;return r=e.e,e.e=n,e.Db&4&&!(e.Db&1)&&(i=new $i(e,1,4,r,n),t?t.Ei(i):t=i),r!=n&&(n?t=T3(e,nP(e,n),t):t=T3(e,e.a,t)),t}function I_e(){yT.call(this),this.e=-1,this.a=!1,this.p=cr,this.k=-1,this.c=-1,this.b=-1,this.g=!1,this.f=-1,this.j=-1,this.n=-1,this.i=-1,this.d=-1,this.o=cr}function $8n(e,n){var t,i,r;if(i=e.b.d.d,e.a||(i+=e.b.d.a),r=n.b.d.d,n.a||(r+=n.b.d.a),t=mi(i,r),t==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return t}function F8n(e,n){var t,i,r;if(i=e.b.b.d,e.a||(i+=e.b.b.a),r=n.b.b.d,n.a||(r+=n.b.b.a),t=mi(i,r),t==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return t}function N8n(e,n){var t,i,r;if(i=e.b.g.d,e.a||(i+=e.b.g.a),r=n.b.g.d,n.a||(r+=n.b.g.a),t=mi(i,r),t==0){if(!e.a&&n.a)return-1;if(!n.a&&e.a)return 1}return t}function Aee(){Aee=W,cQe=Xu(mt(mt(mt(new xi,(pr(),Jc),(Cr(),xoe)),Jc,Ooe),ec,Ioe),ec,voe),sQe=mt(mt(new xi,Jc,hoe),Jc,yoe),uQe=Xu(new xi,ec,joe)}function _8n(e){var n,t,i,r,c;for(n=u(S(e,(re(),Ry)),83),c=e.n,i=n.Cc().Kc();i.Ob();)t=u(i.Pb(),306),r=t.i,r.c+=c.a,r.d+=c.b,t.c?UKe(t):XKe(t);te(e,Ry,null)}function B8n(e,n,t){var i,r;switch(r=e.b,i=r.d,n.g){case 1:return-i.d-t;case 2:return r.o.a+i.c+t;case 3:return r.o.b+i.a+t;case 4:return-i.b-t;default:return-1}}function R8n(e){var n,t,i,r,c;if(i=0,r=L3,e.b)for(n=0;n<360;n++)t=n*.017453292519943295,vte(e,e.d,0,0,bp,t),c=e.b.ig(e.d),c0&&(o=(c&vt)%e.d.length,r=Ane(e,o,c,n),r)?(f=r.ed(t),f):(i=e.tj(c,n,t),e.c.Fc(i),null)}function Iee(e,n){var t,i,r,c;switch(rh(e,n)._k()){case 3:case 2:{for(t=cp(n),r=0,c=t.i;r=0;i--)if(Ke(e[i].d,n)||Ke(e[i].d,t)){e.length>=i+1&&e.splice(0,i+1);break}return e}function ek(e,n){var t;return ic(e)&&ic(n)&&(t=e/n,Ok0&&(e.b+=2,e.a+=i):(e.b+=1,e.a+=k.Math.min(i,r))}function B_e(e,n){var t,i;if(i=!1,Ri(n)&&(i=!0,y2(e,new Jb(Vn(n)))),i||_(n,236)&&(i=!0,y2(e,(t=_X(u(n,236)),new XE(t)))),!i)throw O(new jD(Wce))}function r7n(e,n,t,i){var r,c,o;return r=new Ea(e.e,1,10,(o=n.c,_(o,88)?u(o,26):(qe(),Ro)),(c=t.c,_(c,88)?u(c,26):(qe(),Ro)),sh(e,n),!1),i?i.Ei(r):i=r,i}function $ee(e){var n,t;switch(u(S(lr(e),(be(),jle)),420).g){case 0:return n=e.n,t=e.o,new je(n.a+t.a/2,n.b+t.b/2);case 1:return new Hr(e.n);default:return null}}function nk(){nk=W,Ox=new m5($a,0),sfe=new m5("LEFTUP",1),ffe=new m5("RIGHTUP",2),ufe=new m5("LEFTDOWN",3),ofe=new m5("RIGHTDOWN",4),Wq=new m5("BALANCED",5)}function c7n(e,n,t){var i,r,c;if(i=mi(e.a[n.p],e.a[t.p]),i==0){if(r=u(S(n,(re(),bm)),15),c=u(S(t,bm),15),r.Hc(t))return-1;if(c.Hc(n))return 1}return i}function u7n(e){switch(e.g){case 1:return new kve;case 2:return new jve;case 3:return new yve;case 0:return null;default:throw O(new rn(KR+(e.f!=null?e.f:""+e.g)))}}function Fee(e,n,t){switch(n){case 1:!e.n&&(e.n=new fe(oc,e,1,7)),Dn(e.n),!e.n&&(e.n=new fe(oc,e,1,7)),Jt(e.n,u(t,14));return;case 2:f6(e,Vn(t));return}tZ(e,n,t)}function Nee(e,n,t){switch(n){case 3:x0(e,ee(he(t)));return;case 4:O0(e,ee(he(t)));return;case 5:Mu(e,ee(he(t)));return;case 6:Pu(e,ee(he(t)));return}Fee(e,n,t)}function VM(e,n,t){var i,r,c;c=(i=new gD,i),r=Xf(c,n,null),r&&r.Fi(),ru(c,t),Bn((!e.c&&(e.c=new fe(kb,e,12,10)),e.c),c),th(c,0),fw(c,1),uh(c,!0),ch(c,!0)}function _ee(e,n){var t,i,r;return t=d5(e.g,n),_(t,235)?(r=u(t,235),r.Qh()==null,r.Nh()):_(t,498)?(i=u(t,1938),r=i.b,r):null}function s7n(e,n,t,i){var r,c;return Nn(n),Nn(t),c=u(B5(e.d,n),19),MDe(!!c,"Row %s not in %s",n,e.e),r=u(B5(e.b,t),19),MDe(!!r,"Column %s not in %s",t,e.c),I$e(e,c.a,r.a,i)}function R_e(e,n,t,i,r,c,o){var f,l,a,h,w;if(h=r[c],a=c==o-1,f=a?i:0,w=s_e(f,h),i!=10&&D(I(e,o-c),n[c],t[c],f,w),!a)for(++c,l=0;l1||f==-1?(c=u(l,15),r.Wb(byn(e,c))):r.Wb(A_(e,u(l,56)))))}function b7n(e,n,t,i){Mje();var r=DK;function c(){for(var o=0;o_R)return t;r>-1e-6&&++t}return t}function Kee(e,n){var t;n!=e.b?(t=null,e.b&&(t=tS(e.b,e,-4,t)),n&&(t=_2(n,e,-4,t)),t=jFe(e,n,t),t&&t.Fi()):e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,3,n,n))}function H_e(e,n){var t;n!=e.f?(t=null,e.f&&(t=tS(e.f,e,-1,t)),n&&(t=_2(n,e,-1,t)),t=EFe(e,n,t),t&&t.Fi()):e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,0,n,n))}function V_e(e){var n,t,i;if(e==null)return null;if(t=u(e,15),t.dc())return"";for(i=new za,n=t.Kc();n.Ob();)Fr(i,(At(),Vn(n.Pb()))),i.a+=" ";return dL(i,i.a.length-1)}function G_e(e){var n,t,i;if(e==null)return null;if(t=u(e,15),t.dc())return"";for(i=new za,n=t.Kc();n.Ob();)Fr(i,(At(),Vn(n.Pb()))),i.a+=" ";return dL(i,i.a.length-1)}function j7n(e,n,t){var i,r;return i=e.c[n.c.p][n.p],r=e.c[t.c.p][t.p],i.a!=null&&r.a!=null?n$(i.a,r.a):i.a!=null?-1:r.a!=null?1:0}function E7n(e,n){var t,i,r,c,o,f;if(n)for(c=n.a.length,t=new Y1(c),f=(t.b-t.a)*t.c<0?(Nh(),L1):new Kh(t);f.Ob();)o=u(f.Pb(),19),r=Tv(n,o.a),i=new z8e(e),hgn(i.a,r)}function T7n(e,n){var t,i,r,c,o,f;if(n)for(c=n.a.length,t=new Y1(c),f=(t.b-t.a)*t.c<0?(Nh(),L1):new Kh(t);f.Ob();)o=u(f.Pb(),19),r=Tv(n,o.a),i=new N8e(e),agn(i.a,r)}function C7n(e){var n;if(e!=null&&e.length>0&&Zi(e,e.length-1)==33)try{return n=qBe(Ps(e,0,e.length-1)),n.e==null}catch(t){if(t=Ht(t),!_(t,32))throw O(t)}return!1}function z_e(e,n,t){var i,r,c;return i=n.ak(),c=n.dd(),r=i.$j()?Wh(e,3,i,null,c,k3(e,i,c,_(i,99)&&(u(i,18).Bb&vr)!=0),!0):Wh(e,1,i,i.zj(),c,-1,!0),t?t.Ei(r):t=r,t}function S7n(){var e,n,t;for(n=0,e=0;e<1;e++){if(t=Dne((Gn(e,1),"X".charCodeAt(e))),t==0)throw O(new Hn("Unknown Option: "+"X".substr(e)));n|=t}return n}function M7n(e,n,t){var i,r,c;switch(i=lr(n),r=pM(i),c=new qc,ac(c,n),t.g){case 1:Ci(c,q7(F2(r)));break;case 2:Ci(c,F2(r))}return te(c,(be(),Yw),he(S(e,Yw))),c}function qee(e){var n,t;return n=u(_n(new En(Sn(cc(e.a).a.Kc(),new J))),17),t=u(_n(new En(Sn(vi(e.a).a.Kc(),new J))),17),ke(ye(S(n,(re(),tl))))||ke(ye(S(t,tl)))}function Qg(){Qg=W,Ex=new k8("ONE_SIDE",0),Cx=new k8("TWO_SIDES_CORNER",1),Sx=new k8("TWO_SIDES_OPPOSING",2),Tx=new k8("THREE_SIDES",3),jx=new k8("FOUR_SIDES",4)}function GN(e,n,t,i,r){var c,o;c=u(Os(Ft(n.Oc(),new K2e),id(new Ss,new Pc,new Ho,D(I(ls,1),ce,132,0,[(Wf(),Rs)]))),15),o=u(ud(e.b,t,i),15),r==0?o.Wc(0,c):o.Gc(c)}function P7n(e,n){var t,i,r,c,o;for(c=new A(n.a);c.a0&&m_e(this,this.c-1,(ae(),hn)),this.c0&&e[0].length>0&&(this.c=ke(ye(S(lr(e[0][0]),(re(),Tfe))))),this.a=V(Xen,ie,2018,e.length,0,2),this.b=V(Yen,ie,2019,e.length,0,2),this.d=new wFe}function D7n(e){return e.c.length==0?!1:(Qe(0,e.c.length),u(e.c[0],17)).c.i.k==(dn(),Fi)?!0:Sv(ju(new Ue(null,new Ye(e,16)),new yme),new kme)}function L7n(e,n,t){return On(t,"Tree layout",1),hS(e.b),Vl(e.b,(s3(),aO),aO),Vl(e.b,t9,t9),Vl(e.b,Lj,Lj),Vl(e.b,i9,i9),e.a=mP(e.b,n),fSn(e,n,Uc(t,1)),Tn(t),n}function U_e(e,n){var t,i,r,c,o,f,l;for(f=Ew(n),c=n.f,l=n.g,o=k.Math.sqrt(c*c+l*l),r=0,i=new A(f);i.a=0?(t=ek(e,PP),i=G7(e,PP)):(n=Yb(e,1),t=ek(n,5e8),i=G7(n,5e8),i=fr(pa(i,1),Ti(e,1))),Kf(pa(i,32),Ti(t,Ir))}function Q_e(e,n,t){var i,r;switch(i=(mn(n.b!=0),u(no(n,n.a.a),8)),t.g){case 0:i.b=0;break;case 2:i.b=e.f;break;case 3:i.a=0;break;default:i.a=e.g}return r=ut(n,0),X8(r,i),n}function J_e(e,n,t,i){var r,c,o,f,l;switch(l=e.b,c=n.d,o=c.j,f=tee(o,l.d[o.g],t),r=Mt(kc(c.n),c.a),c.j.g){case 1:case 3:f.a+=r.a;break;case 2:case 4:f.b+=r.b}ui(i,f,i.c.b,i.c)}function z7n(e,n,t){var i,r,c,o;for(o=rc(e.e,n,0),c=new uW,c.b=t,i=new Yi(e.e,o);i.b1;n>>=1)n&1&&(i=Fg(i,t)),t.d==1?t=Fg(t,t):t=new jNe(Oqe(t.a,t.d,V(Ln,nt,25,t.d<<1,15,1)));return i=Fg(i,t),i}function Xee(){Xee=W;var e,n,t,i;for(Yue=V(Hi,Rr,25,25,15,1),Que=V(Hi,Rr,25,33,15,1),i=152587890625e-16,n=32;n>=0;n--)Que[n]=i,i*=.5;for(t=1,e=24;e>=0;e--)Yue[e]=t,t*=.5}function J7n(e){var n,t;if(ke(ye(Ee(e,(be(),Xw))))){for(t=new En(Sn(Oa(e).a.Kc(),new J));Wn(t);)if(n=u(_n(t),79),H0(n)&&ke(ye(Ee(n,Ld))))return!0}return!1}function Z_e(e,n){var t,i,r;Ei(e.f,n)&&(n.b=e,i=n.c,rc(e.j,i,0)!=-1||se(e.j,i),r=n.d,rc(e.j,r,0)!=-1||se(e.j,r),t=n.a.b,t.c.length!=0&&(!e.i&&(e.i=new ONe(e)),b4n(e.i,t)))}function Z7n(e){var n,t,i,r,c;return t=e.c.d,i=t.j,r=e.d.d,c=r.j,i==c?t.p=0&&Ke(e.substr(n,3),"GMT")||n>=0&&Ke(e.substr(n,3),"UTC"))&&(t[0]=n+3),jte(e,t,i)}function nkn(e,n){var t,i,r,c,o;for(c=e.g.a,o=e.g.b,i=new A(e.d);i.at;c--)e[c]|=n[c-t-1]>>>o,e[c-1]=n[c-t-1]<=e.f)break;c.c[c.c.length]=t}return c}function Qee(e){var n,t,i,r;for(n=null,r=new A(e.wf());r.a0&&Hc(e.g,n,e.g,n+i,f),o=t.Kc(),e.i+=i,r=0;rc&&pwn(a,XDe(t[f],Uue))&&(r=f,c=l);return r>=0&&(i[0]=n+c),r}function okn(e,n){var t;if(t=zTe(e.b.Hf(),n.b.Hf()),t!=0)return t;switch(e.b.Hf().g){case 1:case 2:return yu(e.b.sf(),n.b.sf());case 3:case 4:return yu(n.b.sf(),e.b.sf())}return 0}function fkn(e){var n,t,i;for(i=e.e.c.length,e.a=X1(Ln,[ie,nt],[48,25],15,[i,i],2),t=new A(e.c);t.a>4&15,c=e[i]&15,o[r++]=dde[t],o[r++]=dde[c];return ko(o,0,o.length)}function hkn(e,n,t){var i,r,c;return i=n.ak(),c=n.dd(),r=i.$j()?Wh(e,4,i,c,null,k3(e,i,c,_(i,99)&&(u(i,18).Bb&vr)!=0),!0):Wh(e,i.Kj()?2:1,i,c,i.zj(),-1,!0),t?t.Ei(r):t=r,t}function xu(e){var n,t;return e>=vr?(n=Ik+(e-vr>>10&1023)&li,t=56320+(e-vr&1023)&li,String.fromCharCode(n)+(""+String.fromCharCode(t))):String.fromCharCode(e&li)}function dkn(e,n){zb();var t,i,r,c;return r=u(u(Ct(e.r,n),21),84),r.gc()>=2?(i=u(r.Kc().Pb(),111),t=e.u.Hc((Ju(),y9)),c=e.u.Hc(Mm),!i.a&&!t&&(r.gc()==2||c)):!1}function tBe(e,n,t,i,r){var c,o,f;for(c=BKe(e,n,t,i,r),f=!1;!c;)ZM(e,r,!0),f=!0,c=BKe(e,n,t,i,r);f&&ZM(e,r,!1),o=LF(r),o.c.length!=0&&(e.d&&e.d.lg(o),tBe(e,r,t,i,o))}function UM(){UM=W,FV=new T5($a,0),K1e=new T5("DIRECTED",1),H1e=new T5("UNDIRECTED",2),B1e=new T5("ASSOCIATION",3),q1e=new T5("GENERALIZATION",4),R1e=new T5("DEPENDENCY",5)}function bkn(e,n){var t;if(!_f(e))throw O(new tc(Qze));switch(t=_f(e),n.g){case 1:return-(e.j+e.f);case 2:return e.i-t.g;case 3:return e.j-t.f;case 4:return-(e.i+e.g)}return 0}function a3(e,n){var t,i;for(nn(n),i=e.b.c.length,se(e.b,n);i>0;){if(t=i,i=(i-1)/2|0,e.a.ue(ve(e.b,i),n)<=0)return Zs(e.b,t,n),!0;Zs(e.b,t,ve(e.b,i))}return Zs(e.b,i,n),!0}function Jee(e,n,t,i){var r,c;if(r=0,t)r=hM(e.a[t.g][n.g],i);else for(c=0;c=f)}function Zee(e,n,t,i){var r;if(r=!1,Ri(i)&&(r=!0,dv(n,t,Vn(i))),r||qb(i)&&(r=!0,Zee(e,n,t,i)),r||_(i,236)&&(r=!0,J1(n,t,u(i,236))),!r)throw O(new jD(Wce))}function gkn(e,n){var t,i,r;if(t=n.Hh(e.a),t&&(r=Tf((!t.b&&(t.b=new ms((qe(),kr),Mc,t)),t.b),Mo),r!=null)){for(i=1;i<(Hu(),Nde).length;++i)if(Ke(Nde[i],r))return i}return 0}function pkn(e,n){var t,i,r;if(t=n.Hh(e.a),t&&(r=Tf((!t.b&&(t.b=new ms((qe(),kr),Mc,t)),t.b),Mo),r!=null)){for(i=1;i<(Hu(),_de).length;++i)if(Ke(_de[i],r))return i}return 0}function iBe(e,n){var t,i,r,c;if(nn(n),c=e.a.gc(),c0?1:0;c.a[r]!=t;)c=c.a[r],r=e.a.ue(t.d,c.d)>0?1:0;c.a[r]=i,i.b=t.b,i.a[0]=t.a[0],i.a[1]=t.a[1],t.a[0]=null,t.a[1]=null}function ykn(e){Ju();var n,t;return n=Nt(Ka,D(I(_O,1),ce,273,0,[M1])),!(M7(cS(n,e))>1||(t=Nt(y9,D(I(_O,1),ce,273,0,[v9,Mm])),M7(cS(t,e))>1))}function nne(e,n){var t;t=zc((Fh(),Bo),e),_(t,498)?Vr(Bo,e,new jTe(this,n)):Vr(Bo,e,this),JN(this,n),n==(Jm(),Cde)?(this.wb=u(this,1939),u(n,1941)):this.wb=(Gh(),Je)}function kkn(e){var n,t,i;if(e==null)return null;for(n=null,t=0;t=ah?"error":i>=900?"warn":i>=800?"info":"log"),HPe(t,e.a),e.b&&nte(n,t,e.b,"Exception: ",!0))}function S(e,n){var t,i;return i=(!e.q&&(e.q=new $n),yn(e.q,n)),i??(t=n.wg(),_(t,4)&&(t==null?(!e.q&&(e.q=new $n),A2(e.q,n)):(!e.q&&(e.q=new $n),jt(e.q,n,t))),t)}function pr(){pr=W,$l=new y8("P1_CYCLE_BREAKING",0),g1=new y8("P2_LAYERING",1),wu=new y8("P3_NODE_ORDERING",2),Jc=new y8("P4_NODE_PLACEMENT",3),ec=new y8("P5_EDGE_ROUTING",4)}function sBe(e,n){var t,i,r,c,o;for(r=n==1?pq:gq,i=r.a.ec().Kc();i.Ob();)for(t=u(i.Pb(),103),o=u(Ct(e.f.c,t),21).Kc();o.Ob();)c=u(o.Pb(),46),Tu(e.b.b,c.b),Tu(e.b.a,u(c.b,81).d)}function jkn(e,n){s6();var t;if(e.c==n.c){if(e.b==n.b||W3n(e.b,n.b)){if(t=thn(e.b)?1:-1,e.a&&!n.a)return t;if(!e.a&&n.a)return-t}return yu(e.b.g,n.b.g)}else return mi(e.c,n.c)}function Ekn(e,n){var t;On(n,"Hierarchical port position processing",1),t=e.b,t.c.length>0&&Sqe((Qe(0,t.c.length),u(t.c[0],29)),e),t.c.length>1&&Sqe(u(ve(t,t.c.length-1),29),e),Tn(n)}function oBe(e,n){var t,i,r;if(ine(e,n))return!0;for(i=new A(n);i.a=r||n<0)throw O(new qr(dK+n+Sd+r));if(t>=r||t<0)throw O(new qr(bK+t+Sd+r));return n!=t?i=(c=e.Ti(t),e.Hi(n,c),c):i=e.Oi(t),i}function aBe(e){var n,t,i;if(i=e,e)for(n=0,t=e.Ug();t;t=t.Ug()){if(++n>MB)return aBe(t);if(i=t,t==e)throw O(new tc("There is a cycle in the containment hierarchy of "+e))}return i}function i1(e){var n,t,i;for(i=new sd(mr,"[","]"),t=e.Kc();t.Ob();)n=t.Pb(),ja(i,X(n)===X(e)?"(this Collection)":n==null?Ou:uc(n));return i.a?i.e.length==0?i.a.a:i.a.a+(""+i.e):i.c}function ine(e,n){var t,i;if(i=!1,n.gc()<2)return!1;for(t=0;ti&&(Gn(n-1,e.length),e.charCodeAt(n-1)<=32);)--n;return i>0||n1&&(e.j.b+=e.e)):(e.j.a+=t.a,e.j.b=k.Math.max(e.j.b,t.b),e.d.c.length>1&&(e.j.a+=e.e))}function r1(){r1=W,GQe=D(I(yr,1),Nc,61,0,[(ae(),tn),hn,In]),VQe=D(I(yr,1),Nc,61,0,[hn,In,sn]),zQe=D(I(yr,1),Nc,61,0,[In,sn,tn]),WQe=D(I(yr,1),Nc,61,0,[sn,tn,hn])}function Ckn(e,n,t,i){var r,c,o,f,l,a,h;if(o=e.c.d,f=e.d.d,o.j!=f.j)for(h=e.b,r=o.j,l=null;r!=f.j;)l=n==0?gM(r):SZ(r),c=tee(r,h.d[r.g],t),a=tee(l,h.d[l.g],t),st(i,Mt(c,a)),r=l}function Skn(e,n,t,i){var r,c,o,f,l;return o=v_e(e.a,n,t),f=u(o.a,19).a,c=u(o.b,19).a,i&&(l=u(S(n,(re(),Zu)),10),r=u(S(t,Zu),10),l&&r&&(COe(e.b,l,r),f+=e.b.i,c+=e.b.e)),f>c}function dBe(e){var n,t,i,r,c,o,f,l,a;for(this.a=qNe(e),this.b=new oe,t=e,i=0,r=t.length;iAL(e.d).c?(e.i+=e.g.c,bN(e.d)):AL(e.d).c>AL(e.g).c?(e.e+=e.d.c,bN(e.g)):(e.i+=VMe(e.g),e.e+=VMe(e.d),bN(e.g),bN(e.d))}function Akn(e,n,t){var i,r,c,o;for(c=n.q,o=n.r,new Z1((yf(),k1),n,c,1),new Z1(k1,c,o,1),r=new A(t);r.af&&(l=f/i),r>c&&(a=c/r),o=k.Math.min(l,a),e.a+=o*(n.a-e.a),e.b+=o*(n.b-e.b)}function Dkn(e,n,t,i,r){var c,o;for(o=!1,c=u(ve(t.b,0),33);UPn(e,n,c,i,r)&&(o=!0,h7n(t,c),t.b.c.length!=0);)c=u(ve(t.b,0),33);return t.b.c.length==0&&Z7(t.j,t),o&&BM(n.q),o}function Lkn(e,n){ip();var t,i,r,c;if(n.b<2)return!1;for(c=ut(n,0),t=u(ct(c),8),i=t;c.b!=c.d.c;){if(r=u(ct(c),8),p_(e,i,r))return!0;i=r}return!!p_(e,i,t)}function cne(e,n,t,i){var r,c;return t==0?(!e.o&&(e.o=new js((uu(),A1),yb,e,0)),gC(e.o,n,i)):(c=u(ze((r=u(en(e,16),26),r||e.zh()),t),66),c.Nj().Rj(e,hu(e),t-vn(e.zh()),n,i))}function JN(e,n){var t;n!=e.sb?(t=null,e.sb&&(t=u(e.sb,49).ih(e,1,E9,t)),n&&(t=u(n,49).gh(e,1,E9,t)),t=vZ(e,n,t),t&&t.Fi()):e.Db&4&&!(e.Db&1)&&yt(e,new $i(e,1,4,n,n))}function $kn(e,n){var t,i,r,c;if(n)r=Ca(n,"x"),t=new H8e(e),Lv(t.a,(nn(r),r)),c=Ca(n,"y"),i=new V8e(e),Fv(i.a,(nn(c),c));else throw O(new dl("All edge sections need an end point."))}function Fkn(e,n){var t,i,r,c;if(n)r=Ca(n,"x"),t=new R8e(e),$v(t.a,(nn(r),r)),c=Ca(n,"y"),i=new K8e(e),Nv(i.a,(nn(c),c));else throw O(new dl("All edge sections need a start point."))}function Nkn(e,n){var t,i,r,c,o,f,l;for(i=Z$e(e),c=0,f=i.length;c>22-n,r=e.h<>22-n):n<44?(t=0,i=e.l<>44-n):(t=0,i=0,r=e.l<e)throw O(new rn("k must be smaller than n"));return n==0||n==e?1:e==0?0:Dee(e)/(Dee(n)*Dee(e-n))}function une(e,n){var t,i,r,c;for(t=new AU(e);t.g==null&&!t.c?oQ(t):t.g==null||t.i!=0&&u(t.g[t.i-1],47).Ob();)if(c=u(eP(t),56),_(c,160))for(i=u(c,160),r=0;r>4],n[t*2+1]=iI[c&15];return ko(n,0,n.length)}function ejn(e){GC();var n,t,i;switch(i=e.c.length,i){case 0:return ZUe;case 1:return n=u(iRe(new A(e)),42),Tbn(n.cd(),n.dd());default:return t=u(Uf(e,V(Ad,SP,42,e.c.length,0,1)),165),new yD(t)}}function njn(e){var n,t,i,r,c,o;for(n=new mg,t=new mg,Uh(n,e),Uh(t,e);t.b!=t.c;)for(r=u(v2(t),37),o=new A(r.a);o.a0&&gk(e,t,n),r):NEn(e,n,t)}function kBe(e,n,t){var i,r,c,o;if(n.b!=0){for(i=new Gt,o=ut(n,0);o.b!=o.d.c;)c=u(ct(o),86),gr(i,qJ(c)),r=c.e,r.a=u(S(c,(Oc(),XH)),19).a,r.b=u(S(c,Sae),19).a;kBe(e,i,Uc(t,i.b/e.a|0))}}function jBe(e,n){var t,i,r,c,o;if(e.e<=n||f2n(e,e.g,n))return e.g;for(c=e.r,i=e.g,o=e.r,r=(c-i)/2+i;i+11&&(e.e.b+=e.a)):(e.e.a+=t.a,e.e.b=k.Math.max(e.e.b,t.b),e.d.c.length>1&&(e.e.a+=e.a))}function ujn(e){var n,t,i,r;switch(r=e.i,n=r.b,i=r.j,t=r.g,r.a.g){case 0:t.a=(e.g.b.o.a-i.a)/2;break;case 1:t.a=n.d.n.a+n.d.a.a;break;case 2:t.a=n.d.n.a+n.d.a.a-i.a;break;case 3:t.b=n.d.n.b+n.d.a.b}}function EBe(e,n,t,i,r){if(ii&&(e.a=i),e.br&&(e.b=r),e}function sjn(e){if(_(e,149))return FCn(u(e,149));if(_(e,229))return D6n(u(e,229));if(_(e,23))return Rkn(u(e,23));throw O(new rn(Uce+i1(new gs(D(I(pn,1),pe,1,5,[e])))))}function ojn(e,n,t,i,r){var c,o,f;for(c=!0,o=0;o>>r|t[o+i+1]<>>r,++o}return c}function lne(e,n,t,i){var r,c,o;if(n.k==(dn(),Fi)){for(c=new En(Sn(cc(n).a.Kc(),new J));Wn(c);)if(r=u(_n(c),17),o=r.c.i.k,o==Fi&&e.c.a[r.c.i.c.p]==i&&e.c.a[n.c.p]==t)return!0}return!1}function fjn(e,n){var t,i,r,c;return n&=63,t=e.h&La,n<22?(c=t>>>n,r=e.m>>n|t<<22-n,i=e.l>>n|e.m<<22-n):n<44?(c=0,r=t>>>n-22,i=e.m>>n-22|e.h<<44-n):(c=0,r=0,i=t>>>n-44),au(i&fs,r&fs,c&La)}function TBe(e,n,t,i){var r;this.b=i,this.e=e==(I0(),Zy),r=n[t],this.d=X1(ds,[ie,ta],[177,25],16,[r.length,r.length],2),this.a=X1(Ln,[ie,nt],[48,25],15,[r.length,r.length],2),this.c=new zee(n,t)}function ljn(e){var n,t,i;for(e.k=new hQ((ae(),D(I(yr,1),Nc,61,0,[pc,tn,hn,In,sn])).length,e.j.c.length),i=new A(e.j);i.a=t)return d3(e,n,i.p),!0;return!1}function SBe(e){var n;return e.Db&64?ZN(e):(n=new Ms(Nce),!e.a||Qn(Qn((n.a+=' "',n),e.a),'"'),Qn(c0(Qn(c0(Qn(c0(Qn(c0((n.a+=" (",n),e.i),","),e.j)," | "),e.g),","),e.f),")"),n.a)}function MBe(e,n,t){var i,r,c,o,f;for(f=bu(e.e.Tg(),n),r=u(e.g,119),i=0,o=0;ot?mne(e,t,"start index"):n<0||n>t?mne(n,t,"end index"):_6("end index (%s) must not be less than start index (%s)",D(I(pn,1),pe,1,5,[le(n),le(e)]))}function ABe(e,n){var t,i,r,c;for(i=0,r=e.length;i0&&xBe(e,c,t));n.p=0}function Pe(e){var n;this.c=new Gt,this.f=e.e,this.e=e.d,this.i=e.g,this.d=e.c,this.b=e.b,this.k=e.j,this.a=e.a,e.i?this.j=e.i:this.j=(n=u(mf(jh),9),new Ys(n,u(Uo(n,n.length),9),0)),this.g=e.f}function gjn(e){var n,t,i,r;for(n=Vh(Qn(new Ms("Predicates."),"and"),40),t=!0,r=new z4(e);r.b0?f[o-1]:V(ca,hh,10,0,0,1),r=f[o],a=o=0?e.Bh(r):Ene(e,i);else throw O(new rn(h1+i.ne()+by));else throw O(new rn(oWe+n+fWe));else io(e,t,i)}function ane(e){var n,t;if(t=null,n=!1,_(e,204)&&(n=!0,t=u(e,204).a),n||_(e,258)&&(n=!0,t=""+u(e,258).a),n||_(e,483)&&(n=!0,t=""+u(e,483).a),!n)throw O(new jD(Wce));return t}function LBe(e,n){var t,i;if(e.f){for(;n.Ob();)if(t=u(n.Pb(),72),i=t.ak(),_(i,99)&&u(i,18).Bb&Ic&&(!e.e||i.Gj()!=A4||i.aj()!=0)&&t.dd()!=null)return n.Ub(),!0;return!1}else return n.Ob()}function $Be(e,n){var t,i;if(e.f){for(;n.Sb();)if(t=u(n.Ub(),72),i=t.ak(),_(i,99)&&u(i,18).Bb&Ic&&(!e.e||i.Gj()!=A4||i.aj()!=0)&&t.dd()!=null)return n.Pb(),!0;return!1}else return n.Sb()}function hne(e,n,t){var i,r,c,o,f,l;for(l=bu(e.e.Tg(),n),i=0,f=e.i,r=u(e.g,119),o=0;o1&&(n.c[n.c.length]=c))}function yjn(e){var n,t,i,r;for(t=new Gt,gr(t,e.o),i=new sW;t.b!=0;)n=u(t.b==0?null:(mn(t.b!=0),no(t,t.a.a)),508),r=bVe(e,n,!0),r&&se(i.a,n);for(;i.a.c.length!=0;)n=u(sFe(i),508),bVe(e,n,!1)}function lh(){lh=W,Ghe=new f2(ey,0),sr=new f2("BOOLEAN",1),Dc=new f2("INT",2),j4=new f2("STRING",3),nc=new f2("DOUBLE",4),ii=new f2("ENUM",5),jm=new f2("ENUMSET",6),rl=new f2("OBJECT",7)}function I6(e,n){var t,i,r,c,o;i=k.Math.min(e.c,n.c),c=k.Math.min(e.d,n.d),r=k.Math.max(e.c+e.b,n.c+n.b),o=k.Math.max(e.d+e.a,n.d+n.a),r=(r/2|0))for(this.e=i?i.c:null,this.d=r;t++0;)fQ(this);this.b=n,this.a=null}function Ejn(e,n){var t,i;n.a?zCn(e,n):(t=u(LL(e.b,n.b),57),t&&t==e.a[n.b.f]&&t.a&&t.a!=n.b.a&&t.c.Fc(n.b),i=u(DL(e.b,n.b),57),i&&e.a[i.f]==n.b&&i.a&&i.a!=n.b.a&&n.b.c.Fc(i),kL(e.b,n.b))}function NBe(e,n){var t,i;if(t=u(Nr(e.b,n),124),u(u(Ct(e.r,n),21),84).dc()){t.n.b=0,t.n.c=0;return}t.n.b=e.C.b,t.n.c=e.C.c,e.A.Hc((Ts(),Vd))&&sqe(e,n),i=Zyn(e,n),v_(e,n)==(Gg(),C1)&&(i+=2*e.w),t.a.a=i}function _Be(e,n){var t,i;if(t=u(Nr(e.b,n),124),u(u(Ct(e.r,n),21),84).dc()){t.n.d=0,t.n.a=0;return}t.n.d=e.C.d,t.n.a=e.C.a,e.A.Hc((Ts(),Vd))&&oqe(e,n),i=e9n(e,n),v_(e,n)==(Gg(),C1)&&(i+=2*e.w),t.a.b=i}function Tjn(e,n){var t,i,r,c;for(c=new oe,i=new A(n);i.at.a&&(i.Hc((pw(),Kj))?r=(n.a-t.a)/2:i.Hc(qj)&&(r=n.a-t.a)),n.b>t.b&&(i.Hc((pw(),Vj))?c=(n.b-t.b)/2:i.Hc(Hj)&&(c=n.b-t.b)),ene(e,r,c)}function zBe(e,n,t,i,r,c,o,f,l,a,h,w,y){_(e.Cb,88)&&yw(is(u(e.Cb,88)),4),ru(e,t),e.f=o,n3(e,f),i3(e,l),e3(e,a),t3(e,h),uh(e,w),r3(e,y),ch(e,!0),th(e,r),e.ok(c),ad(e,n),i!=null&&(e.i=null,XS(e,i))}function WBe(e){var n,t;if(e.f){for(;e.n>0;){if(n=u(e.k.Xb(e.n-1),72),t=n.ak(),_(t,99)&&u(t,18).Bb&Ic&&(!e.e||t.Gj()!=A4||t.aj()!=0)&&n.dd()!=null)return!0;--e.n}return!1}else return e.n>0}function mne(e,n,t){if(e<0)return _6(OVe,D(I(pn,1),pe,1,5,[t,le(e)]));if(n<0)throw O(new rn(IVe+n));return _6("%s (%s) must not be greater than size (%s)",D(I(pn,1),pe,1,5,[t,le(e),le(n)]))}function vne(e,n,t,i,r,c){var o,f,l,a;if(o=i-t,o<7){j6n(n,t,i,c);return}if(l=t+r,f=i+r,a=l+(f-l>>1),vne(n,e,l,a,-r,c),vne(n,e,a,f,-r,c),c.ue(e[a-1],e[a])<=0){for(;t