diff --git a/bpmn/assets/bpmn-viewer.production.min.js b/bpmn/assets/bpmn-viewer.production.min.js index fc3a18874..c8eed06c3 100644 --- a/bpmn/assets/bpmn-viewer.production.min.js +++ b/bpmn/assets/bpmn-viewer.production.min.js @@ -1,5 +1,5 @@ -/*! bpmn-js - bpmn-viewer v18.0.0 | Copyright (c) 2014-present, camunda Services GmbH | bpmn.io/license */ -!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnJS=t()}(this,(function(){"use strict";function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const t=Object.prototype.toString,n=Object.prototype.hasOwnProperty;function i(e){return void 0===e}function r(e){return void 0!==e}function o(e){return"[object Array]"===t.call(e)}function a(e){return"[object Object]"===t.call(e)}function s(e){return"[object Number]"===t.call(e)}function l(e){const n=t.call(e);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n||"[object Proxy]"===n}function p(e){return"[object String]"===t.call(e)}function c(e,t){return n.call(e,t)}function u(e,t){const n=v(t);let i;return f(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function h(e,t){const n=v(t);let i=[];return f(e,(function(e,t){n(e,t)&&i.push(e)})),i}function f(e,t){let n,r;if(i(e))return;const a=o(e)?w:x;for(let i in e)if(c(e,i)&&(n=e[i],r=t(n,a(i)),!1===r))return n}function m(e,t,n){return f(e,(function(e,i){n=t(n,e,i)})),n}function d(e,t){return!!m(e,(function(e,n,i){return e&&t(n,i)}),!0)}function y(e,t){return!!u(e,t)}function g(e){return function(t){return d(e,(function(e,n){return t[n]===e}))}}function v(e){return l(e)?e:t=>t===e}function x(e){return e}function w(e){return Number(e)}function b(e,t){return e.bind(t)}function E(e,...t){return Object.assign(e,...t)}function _(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function A(e,t){var n=R(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function R(e){return e&&e.businessObject||e}function k(e){return e&&e.di}function S(e,t){return!A(e,"bpmn:CallActivity")&&(A(e,"bpmn:SubProcess")?!(!(t=t||k(e))||!A(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!A(e,"bpmn:Participant")||!!R(e).processRef)}function C(e){if(A(e,"bpmn:Participant")||A(e,"bpmn:Lane")){var t=k(e).isHorizontal;return void 0===t||t}}_.prototype.canRender=function(e){},_.prototype.drawShape=function(e,t){},_.prototype.drawConnection=function(e,t){},_.prototype.getShapePath=function(e){},_.prototype.getConnectionPath=function(e){};var M={width:90,height:20};function P(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),a=r.x,s=r.y;return Math.abs(o)"+e+"",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function z(e,t){var n;return"<"===(e=e.trim()).charAt(0)?(n=$(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(V,e),t&&L(n,t),n}var G=null;function H(){return null===G&&(G=z("svg")),G}function K(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function U(e){return H().createSVGTransform()}var q=/([&<>]{1})/g,Y=/([\n\r"]{1})/g,X={"&":"&","<":"<",">":">",'"':"'"};function Z(e,t){return e.replace(t,(function(e,t){return X[t]||t}))}function J(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(Z(e.textContent,q));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n"),n=0,i=(a=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",Z(e.nodeValue,q),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Q(e,t){return function(e){for(var t=e.firstChild,n=[];t;)J(t,n),t=t.nextSibling;return n.join("")}(e)}function ee(e){var t=e.parentNode;return t&&t.removeChild(e),e}function te(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function ne(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(te(e,i))}(n,t)),n.consolidate()}function ie(e){return e.flat().join(",").replace(/,?([A-z]),?/g,"$1")}function re(e){return["L",e.x,e.y]}function oe(e,t){const n=e.length,i=[(r=e[0],["M",r.x,r.y])];var r,o,a,s;for(let r=1;r
a',We=!Fe.getElementsByTagName("link").length,Fe=void 0);var $e={legend:[1,"
","
"],tr:[2,"","
"],col:[2,"","
"],_default:We?[1,"X
","
"]:[0,"",""]};$e.td=$e.th=[3,"","
"],$e.option=$e.optgroup=[1,'"],$e.thead=$e.tbody=$e.colgroup=$e.caption=$e.tfoot=[1,"","
"],$e.polyline=$e.ellipse=$e.polygon=$e.circle=$e.text=$e.line=$e.path=$e.rect=$e.g=[1,'',""];var ze=Ve;function Ge(e,t){return(t=t||document).querySelector(e)}function He(e){e.parentNode&&e.parentNode.removeChild(e)}function Ke(e,t,n,i,r){var o=U();o.setTranslate(t,n);var a=U();a.setRotate(i||0,0,0);var s=U();s.setScale(1,1),ne(e,[o,a,s])}function Ue(e,t,n){var i=U();i.setTranslate(t,n),ne(e,i)}var qe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),a="";for(r=0;r=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,i){var r=function(r){var a=0;do{if(a++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function Ye(e){if(!(this instanceof Ye))return new Ye(e);e=e||[128,36,1],this._seed=e.length?qe.rack(e[0],e[1],e[2]):e}Ye.prototype.next=function(e){return this._seed(e||!0)},Ye.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},Ye.prototype.claim=function(e,t){this._seed.set(e,t||!0)},Ye.prototype.assigned=function(e){return this._seed.get(e)||!1},Ye.prototype.unclaim=function(e){delete this._seed.hats[e]},Ye.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};var Xe=new Ye,Ze=.95;function Je(e,t,n,i,r,o,s){_.call(this,t,s);var l=e&&e.defaultFillColor,p=e&&e.defaultStrokeColor,c=e&&e.defaultLabelColor;function u(e){return n.computeStyle(e,{strokeLinecap:"round",strokeLinejoin:"round",stroke:ce,strokeWidth:2,fill:"white"})}function h(e){return n.computeStyle(e,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:ce,strokeWidth:2})}function m(e,t){var{ref:n={x:0,y:0},scale:i=1,element:o,parentGfx:a=r._svg}=t,s=z("marker",{id:e,viewBox:"0 0 20 20",refX:n.x,refY:n.y,markerWidth:20*i,markerHeight:20*i,orient:"auto"});D(s,o);var l=Ge(":scope > defs",a);l||D(a,l=z("defs")),D(l,s)}function d(e,t,n,i){var r=Xe.nextPrefixed("marker-");return function(e,t,n,i,r){if("sequenceflow-end"===n){m(t,{element:z("path",{d:"M 1 5 L 11 10 L 1 15 Z",...u({fill:r,stroke:r,strokeWidth:1})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("messageflow-start"===n){m(t,{element:z("circle",{cx:6,cy:6,r:3.5,...u({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6},parentGfx:e})}if("messageflow-end"===n){m(t,{element:z("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...u({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5},parentGfx:e})}if("association-start"===n){m(t,{element:z("path",{d:"M 11 5 L 1 10 L 11 15",...h({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5,parentGfx:e})}if("association-end"===n){m(t,{element:z("path",{d:"M 1 5 L 11 10 L 1 15",...h({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("conditional-flow-marker"===n){m(t,{element:z("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...u({fill:i,stroke:r})}),ref:{x:-1,y:10},scale:.5,parentGfx:e})}if("conditional-default-flow-marker"===n){m(t,{element:z("path",{d:"M 6 4 L 10 16",...u({stroke:r,fill:"none"})}),ref:{x:0,y:10},scale:.5,parentGfx:e})}}(e,r,t,n,i),"url(#"+r+")"}function y(e,t,n,i,r={}){a(i)&&(r=i,i=0),i=i||0,r=u(r);var o=z("circle",{cx:t/2,cy:n/2,r:Math.round((t+n)/4-i),...r});return D(e,o),o}function g(e,t,n,i,r,o){a(r)&&(o=r,r=0),r=r||0,o=u(o);var s=z("rect",{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i,...o});return D(e,s),s}function v(e,t,n,i){var r=le(t,n=h(n),i);return D(e,r),r}function x(e,t,n){return v(e,t,n,5)}function w(e,t,n){n=h(n);var i=z("path",{...n,d:t});return D(e,i),i}function b(e,t,n,i){return w(t,n,E({"data-marker":e},i))}function M(e){return we[e]}function P(e){return function(t,n,i){return M(e)(t,n,i)}}var N=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:r?he(t,l,n.fill):fe(t,p,n.stroke),strokeWidth:1})},O=function(e,t,n={}){var r=y(e,t.width,t.height,.2*t.height,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:2});w(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{stroke:fe(t,p,n.stroke),strokeWidth:2});for(var o=0;o<12;o++){var a=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),s=t.width/2,c=t.height/2;w(e,a,{strokeWidth:1,stroke:fe(t,p,n.stroke),transform:"rotate("+30*o+","+c+","+s+")"})}return r},B=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},I=function(e,t,n={}){return w(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},j=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},V=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},W=function(e,t,n={},r){var o=w(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{fill:r?fe(t,p,n.stroke):"none",stroke:fe(t,p,n.stroke),strokeWidth:1});return function(e,t){var n=U();n.setRotate(t,0,0),ne(e,n)}(o,45),o},$=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},G=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},H=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),strokeWidth:1})},K=function(e,t,n={}){return w(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},q=function(e,t,n={}){return y(e,t.width,t.height,8,{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:4})};function Y(e,t,n={}){var i=R(e),r=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(i);return i.get("eventDefinitions")&&i.get("eventDefinitions").length>1?i.get("parallelMultiple")?K(t,e,n,r):H(t,e,n,r):ue(i,"bpmn:MessageEventDefinition")?N(t,e,n,r):ue(i,"bpmn:TimerEventDefinition")?O(t,e,n,r):ue(i,"bpmn:ConditionalEventDefinition")?I(t,e,n,r):ue(i,"bpmn:SignalEventDefinition")?G(t,e,n,r):ue(i,"bpmn:EscalationEventDefinition")?B(t,e,n,r):ue(i,"bpmn:LinkEventDefinition")?j(t,e,n,r):ue(i,"bpmn:ErrorEventDefinition")?V(t,e,n,r):ue(i,"bpmn:CancelEventDefinition")?W(t,e,n,r):ue(i,"bpmn:CompensateEventDefinition")?$(t,e,n,r):ue(i,"bpmn:TerminateEventDefinition")?q(t,e,n,r):null}var X={ParticipantMultiplicityMarker:function(e,t,n={}){var r=ye(t,n),o=ge(t,n);b("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2-6)/r,my:(o-15)/o}}),{strokeWidth:2,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},SubProcessMarker:function(e,t,n={}){Ue(g(e,14,14,0,{strokeWidth:1,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)}),t.width/2-7.5,t.height-20),b("sub-process",e,i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},ParallelMarker:function(e,t,n){var r=ye(t,n),o=ge(t,n);b("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.parallel)/r,my:(o-20)/o}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},SequentialMarker:function(e,t,n){b("sequential",e,i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},CompensationMarker:function(e,t,n){b("compensation",e,i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},LoopMarker:function(e,t,n){var r=ye(t,n),o=ge(t,n);b("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.loop)/r,my:(o-7)/o}}),{strokeWidth:1.5,fill:"none",stroke:fe(t,p,n.stroke),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){var r=ye(t,n),o=ge(t,n);b("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.adhoc)/r,my:(o-15)/o}}),{strokeWidth:1,fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke)})}};function Z(e,t,n,i){X[e](t,n,i)}function J(e,t,n,i={}){i={fill:i.fill,stroke:i.stroke,width:ye(t,i),height:ge(t,i)};var r=R(t),o=n&&n.includes("SubProcessMarker");i=o?{...i,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{...i,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},f(n,(function(n){Z(n,e,t,i)})),r.get("isForCompensation")&&Z("CompensationMarker",e,t,i),A(r,"bpmn:AdHocSubProcess")&&Z("AdhocMarker",e,t,i);var a=r.get("loopCharacteristics"),s=a&&a.get("isSequential");a&&(void 0===s&&Z("LoopMarker",e,t,i),!1===s&&Z("ParallelMarker",e,t,i),!0===s&&Z("SequentialMarker",e,t,i))}function Q(e,t,n={}){n=E({size:{width:100}},n);var i=o.createText(t||"",n);return F(i).add("djs-label"),D(e,i),i}function ee(e,t,n,i={}){var r=R(t),o=de({x:t.x,y:t.y,width:t.width,height:t.height},i);return Q(e,r.name,{align:n,box:o,padding:7,style:{fill:me(t,c,p,i.stroke)}})}function te(e,t,n,i={}){var r=C(n),o=Q(e,t,{box:{height:30,width:r?ge(n,i):ye(n,i)},align:"center-middle",style:{fill:me(n,c,p,i.stroke)}});r&&Ke(o,0,-(-1*ge(n,i)),270)}function ie(e,t,n={}){var{width:i,height:r}=de(t,n);return g(e,i,r,10,{...n,fill:he(t,l,n.fill),fillOpacity:Ze,stroke:fe(t,p,n.stroke)})}function re(e,t,n={}){var i=R(t),r=he(t,l,n.fill),o=fe(t,p,n.stroke);return"One"!==i.get("associationDirection")&&"Both"!==i.get("associationDirection")||(n.markerEnd=d(e,"association-end",r,o)),"Both"===i.get("associationDirection")&&(n.markerStart=d(e,"association-start",r,o)),n=Qe(n,["markerStart","markerEnd"]),x(e,t.waypoints,{...n,stroke:o,strokeDasharray:"0, 5"})}function oe(e,t,n={}){var r=he(t,l,n.fill),o=fe(t,p,n.stroke),a=w(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:r,fillOpacity:Ze,stroke:o});(function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection})(R(t))&&w(e,i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:(t.height-18)/t.height}}),{strokeWidth:2,fill:r,stroke:o});return a}function ae(e,t,n={}){return y(e,t.width,t.height,{fillOpacity:Ze,...n,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})}function se(e,t,n={}){return function(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=u(i);var s=z("polygon",{...i,points:a});return D(e,s),s}(e,t.width,t.height,{fill:he(t,l,n.fill),fillOpacity:Ze,stroke:fe(t,p,n.stroke)})}function pe(e,t,n={}){var i=g(e,ye(t,n),ge(t,n),0,{fill:he(t,l,n.fill),fillOpacity:n.fillOpacity||Ze,stroke:fe(t,p,n.stroke),strokeWidth:1.5}),r=R(t);A(r,"bpmn:Lane")&&te(e,r.get("name"),t,n);return i}function ve(e,t,n={}){var i=ie(e,t,n);(function(e){return e&&!!R(e).triggeredByEvent})(t)&&L(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var r=S(t);return ee(e,t,r?"center-top":"center-middle",n),J(e,t,r?void 0:["SubProcessMarker"],n),i}function xe(e,t,n={}){var i=ie(e,t,n);return ee(e,t,"center-middle",n),J(e,t,void 0,n),i}var we=this.handlers={"bpmn:AdHocSubProcess":function(e,t,n={}){return ve(e,t,n=S(t)?Qe(n,["fill","stroke","width","height"]):Qe(n,["fill","stroke"]))},"bpmn:Association":function(e,t,n={}){return re(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:BoundaryEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]);var r=R(t).get("cancelActivity");n={strokeWidth:1.5,fill:he(t,l,n.fill),fillOpacity:1,stroke:fe(t,p,n.stroke)},r||(n.strokeDasharray="6");var o=ae(e,t,n);return y(e,t.width,t.height,3,{...n,fill:"none"}),i&&Y(t,e,n),o},"bpmn:BusinessRuleTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return L(w(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),L(w(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:CallActivity":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),ve(e,t,{strokeWidth:5,...n})},"bpmn:ComplexGateway":function(e,t,n={}){var r=se(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:DataInput":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=oe(e,t,n);return w(e,r,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1}),o},"bpmn:DataInputAssociation":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),re(e,t,{...n,markerEnd:d(e,"association-end",he(t,l,n.fill),fe(t,p,n.stroke))})},"bpmn:DataObject":function(e,t,n={}){return oe(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:DataObjectReference":P("bpmn:DataObject"),"bpmn:DataOutput":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=oe(e,t,n);return w(e,r,{strokeWidth:1,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)}),o},"bpmn:DataOutputAssociation":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),re(e,t,{...n,markerEnd:d(e,"association-end",he(t,l,n.fill),fe(t,p,n.stroke))})},"bpmn:DataStoreReference":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),w(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{fill:he(t,l,n.fill),fillOpacity:Ze,stroke:fe(t,p,n.stroke),strokeWidth:2})},"bpmn:EndEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]);var r=ae(e,t,{...n,strokeWidth:4});return i&&Y(t,e,n),r},"bpmn:EventBasedGateway":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=R(t),o=se(e,t,n);y(e,t.width,t.height,.2*t.height,{fill:he(t,"none",n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1});var a=r.get("eventGatewayType"),s=!!r.get("instantiate");if("Parallel"===a){var l=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});w(e,l,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1})}else"Exclusive"===a&&(s||y(e,t.width,t.height,.26*t.height,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1}),function(){var r=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}});w(e,r,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:2})}());return o},"bpmn:ExclusiveGateway":function(e,t,n={}){var r=se(e,t,n=Qe(n,["fill","stroke"])),o=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return k(t).get("isMarkerVisible")&&w(e,o,{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:Gateway":function(e,t,n={}){return se(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:Group":function(e,t,n={}){return n=Qe(n,["fill","stroke","width","height"]),g(e,t.width,t.height,10,{stroke:fe(t,p,n.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:ye(t,n),height:ge(t,n)})},"bpmn:InclusiveGateway":function(e,t,n={}){var i=se(e,t,n=Qe(n,["fill","stroke"]));return y(e,t.width,t.height,.24*t.height,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:2.5}),i},"bpmn:IntermediateEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]);var r=ae(e,t,{...n,strokeWidth:1.5});return y(e,t.width,t.height,3,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1.5}),i&&Y(t,e,n),r},"bpmn:IntermediateCatchEvent":P("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":P("bpmn:IntermediateEvent"),"bpmn:Lane":function(e,t,n={}){return n=Qe(n,["fill","stroke","width","height"]),pe(e,t,{...n,fillOpacity:.25})},"bpmn:ManualTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:.5}),r},"bpmn:MessageFlow":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=R(t),o=k(t),a=he(t,l,n.fill),s=fe(t,p,n.stroke),c=x(e,t.waypoints,{markerEnd:d(e,"messageflow-end",a,s),markerStart:d(e,"messageflow-start",a,s),stroke:s,strokeDasharray:"10, 11",strokeWidth:1.5});if(r.get("messageRef")){var u=c.getPointAtLength(c.getTotalLength()/2),h=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),f={strokeWidth:1};"initiating"===o.get("messageVisibleKind")?(f.fill=a,f.stroke=s):(f.fill=s,f.stroke=a);var m=w(e,h,f),y=Q(e,r.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:s}}),g=m.getBBox(),v=y.getBBox();Ke(y,u.x-v.width/2,u.y+g.height/2+10,0)}return c},"bpmn:ParallelGateway":function(e,t,n={}){var r=se(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:Participant":function(e,t,n={}){var i=pe(e,t,n=Qe(n,["fill","stroke","width","height"])),r=S(t),o=C(t),a=R(t),s=a.get("name");if(r){v(e,o?[{x:30,y:0},{x:30,y:ge(t,n)}]:[{x:0,y:30},{x:ye(t,n),y:30}],{stroke:fe(t,p,n.stroke),strokeWidth:1.5}),te(e,s,t,n)}else{var l=de(t,n);o||(l.height=ye(t,n),l.width=ge(t,n));var u=Q(e,s,{box:l,align:"center-middle",style:{fill:me(t,c,p,n.stroke)}});if(!o)Ke(u,0,-(-1*ge(t,n)),270)}return a.get("participantMultiplicity")&&Z("ParticipantMultiplicityMarker",e,t,n),i},"bpmn:ReceiveTask":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r,o=R(t),a=xe(e,t,n);return o.get("instantiate")?(y(e,28,28,4.4,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),r=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):r=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(e,r,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),a},"bpmn:ScriptTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:SendTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:fe(t,p,n.stroke),stroke:he(t,l,n.fill),strokeWidth:1}),r},"bpmn:SequenceFlow":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var i=he(t,l,n.fill),r=fe(t,p,n.stroke),o=x(e,t.waypoints,{markerEnd:d(e,"sequenceflow-end",i,r),stroke:r}),a=R(t),{source:s}=t;if(s){var c=R(s);a.get("conditionExpression")&&A(c,"bpmn:Activity")&&L(o,{markerStart:d(e,"conditional-flow-marker",i,r)}),c.get("default")&&(A(c,"bpmn:Gateway")||A(c,"bpmn:Activity"))&&c.get("default")===a&&L(o,{markerStart:d(e,"conditional-default-flow-marker",i,r)})}return o},"bpmn:ServiceTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return y(e,10,10,{fill:he(t,l,n.fill),stroke:"none",transform:"translate(6, 6)"}),w(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),y(e,10,10,{fill:he(t,l,n.fill),stroke:"none",transform:"translate(11, 10)"}),w(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:StartEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]),R(t).get("isInterrupting")||(n={...n,strokeDasharray:"6"});var r=ae(e,t,n);return i&&Y(t,e,n),r},"bpmn:SubProcess":function(e,t,n={}){return ve(e,t,n=S(t)?Qe(n,["fill","stroke","width","height"]):Qe(n,["fill","stroke"]))},"bpmn:Task":function(e,t,n={}){return xe(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:TextAnnotation":function(e,t,n={}){n=Qe(n,["fill","stroke","width","height"]);var{width:r,height:o}=de(t,n),a=g(e,r,o,0,0,{fill:"none",stroke:"none"});return w(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:0,my:0}}),{stroke:fe(t,p,n.stroke)}),Q(e,R(t).get("text")||"",{align:"left-top",box:de(t,n),padding:7,style:{fill:me(t,c,p,n.stroke)}}),a},"bpmn:Transaction":function(e,t,i={}){i=S(t)?Qe(i,["fill","stroke","width","height"]):Qe(i,["fill","stroke"]);var r=ve(e,t,{strokeWidth:1.5,...i}),o=n.style(["no-fill","no-events"],{stroke:fe(t,p,i.stroke),strokeWidth:1.5});return S(t)||(i={}),g(e,ye(t,i),ge(t,i),7,3,o),r},"bpmn:UserTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:.5}),w(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:.5}),w(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:.5}),r},label:function(e,t,n={}){return function(e,t,n={}){var i={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return Q(e,T(t),{box:i,fitBox:!0,style:E({},o.getExternalStyle(),{fill:me(t,c,p,n.stroke)})})}(e,t,n)}};this._drawPath=w,this._renderer=M}function Qe(e,t=[]){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}e(Je,_),Je.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Je.prototype.canRender=function(e){return A(e,"bpmn:BaseElement")},Je.prototype.drawShape=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},Je.prototype.drawConnection=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},Je.prototype.getShapePath=function(e){return A(e,"bpmn:Event")?function(e){var t=e.x+e.width/2,n=e.y+e.height/2,i=e.width/2;return ie([["M",t,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]])}(e):A(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return ie([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):A(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return ie([["M",e.x+t,e.y],["l",t,n],["l",-t,n],["l",-t,-n],["z"]])}(e):function(e){var t=e.x,n=e.y,i=e.width;return ie([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e)};var et={width:150,height:50};function tt(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(e){return console.log(e),{width:0,height:0}}}function nt(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=tt(o,n)).width=o?i.width:0," "===o||""===o||i.width1)for(;n=i.shift();){if(!(n.length+oe?t.width:e}),0),g=o.top;"middle"===r.vertical&&(g+=(n.height-d)/2),g-=(l||c[0].height)/4;var v=z("text");return L(v,i),f(c,(function(e){var t;switch(g+=l||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(s?y:u)-o.right-e.width;break;default:t=Math.max(((s?y:u)-e.width)/2+o.left,0)}var n=z("tspan");L(n,{x:t,y:g}),n.textContent=e.text,D(v,n)})),ee(h),{dimensions:{width:y,height:d},element:v}};function st(e){var t=E({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=E({},t,{fontSize:n},e&&e.externalStyle||{}),r=new at({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(30,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}st.$inject=["config.textRenderer"];var lt=/\{([^{}]+)\}/g,pt=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;var ct={__init__:["bpmnRenderer"],bpmnRenderer:["type",Je],textRenderer:["type",st],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o={};if(t.position){for(var a=t.containerHeight/r.height*t.yScaleFactor,s=t.containerWidth/r.width*t.xScaleFactor,l=0;l':""}function gt(e,t,n){return E({id:e.id,type:e.$type,businessObject:e,di:t},n)}function vt(e,t,n){var i=e.waypoint;return!i||i.length<2?[dt(t),dt(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function xt(e,t,n){return new Error(`element ${yt(t)} referenced by ${yt(e)}#${n} not yet drawn`)}function wt(e,t,n,i,r){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._textRenderer=r}wt.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],wt.prototype.add=function(e,t,n){var i,r,o,a,s,l,p;if(A(t,"bpmndi:BPMNPlane")){var c=A(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(gt(e,t,c)),this._canvas.addRootElement(i)}else if(A(t,"bpmndi:BPMNShape")){var u=!S(e,t),h=function(e){return A(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var f=t.bounds;i=this._elementFactory.createShape(gt(e,t,{collapsed:u,hidden:r,x:Math.round(f.x),y:Math.round(f.y),width:Math.round(f.width),height:Math.round(f.height),isFrame:h})),A(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),A(e,"bpmn:Lane")&&(o=0),A(e,"bpmn:DataStoreReference")&&(a=n,s=dt(f),l=s.x,p=s.y,l>=a.x&&l<=a.x+a.width&&p>=a.y&&p<=a.y+a.height||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!A(t,"bpmndi:BPMNEdge"))throw new Error(`unknown di ${yt(t)} for element ${yt(e)}`);var m=this._getSource(e),d=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(gt(e,t,{hidden:r,source:m,target:d,waypoints:vt(t,m,d)})),A(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,o)}return function(e){return A(e,"bpmn:Event")||A(e,"bpmn:Gateway")||A(e,"bpmn:DataStoreReference")||A(e,"bpmn:DataObjectReference")||A(e,"bpmn:DataInput")||A(e,"bpmn:DataOutput")||A(e,"bpmn:SequenceFlow")||A(e,"bpmn:MessageFlow")||A(e,"bpmn:Group")}(e)&&T(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},wt.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${yt(e)}#attachedToRef`);var i=this._elementRegistry.get(n.id),r=i&&i.attachers;if(!i)throw xt(e,n,"attachedToRef");t.host=i,r||(i.attachers=r=[]),-1===r.indexOf(t)&&r.push(t)},wt.prototype.addLabel=function(e,t,n){var i,r,o;return i=N(t,n),(r=T(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(gt(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!T(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},wt.prototype._getConnectedElement=function(e,t){var n,i,r=e.$type;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?xt(e,i,t+"Ref"):new Error(`${yt(e)}#${t} Ref not specified`)},wt.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},wt.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},wt.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var bt={__depends__:[ct,{__depends__:[ut],bpmnImporter:["type",wt]}]};function Et(e,t){var n,i,r,a;return t=!!t,o(e)||(e=[e]),f(e,(function(e){var o=e;e.waypoints&&!t&&(o=Et(e.waypoints,!0));var s=o.x,l=o.y,p=o.height||0,c=o.width||0;(sr||void 0===r)&&(r=s+c),(l+p>a||void 0===a)&&(a=l+p)})),{x:n,y:i,height:a-i,width:r-n}}function _t(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function At(e){return!(!e||!e.isFrame)}function Rt(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Rt.prototype.next=function(){return this._prefix+ ++this._counter};var kt=new Rt("ov");function St(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=kt,this._overlayDefaults=E({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),Re(o=ze('
'),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function Ct(e,t,n){Re(e,{left:t+"px",top:n+"px"})}function Mt(e,t){e.style.display=!1===t?"none":""}function Pt(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}St.$inject=["config.overlays","eventBus","canvas","elementRegistry"],St.prototype.get=function(e){if(p(e)&&(e={id:e}),p(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?h(t.overlays,g({type:e.type})):t.overlays.slice():[]}return e.type?h(this._overlays,g({type:e.type})):e.id?this._overlays[e.id]:null},St.prototype.add=function(e,t,n){if(a(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=E({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},St.prototype.remove=function(e){var t=this.get(e)||[];o(t)||(t=[t]);var n=this;f(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(He(e.html),He(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);-1!==i&&t.overlays.splice(i,1)}}))},St.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},St.prototype.show=function(){Mt(this._overlayRoot)},St.prototype.hide=function(){Mt(this._overlayRoot,!1)},St.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Pe(this._overlayRoot)},St.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=Et(t);i=o.x,r=o.y}Ct(n,i,r),ke(e.html,"data-container-id",t.id)},St.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,a=i.left,s=i.top;void 0!==i.right&&(t=o.waypoints?Et(o).width:o.width,a=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?Et(o).height:o.height,s=-1*i.bottom+n);Ct(r,a||0,s||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},St.prototype._createOverlayContainer=function(e){var t=ze('
');Re(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},St.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Pt(this._overlayRoot,n)},St.prototype._getOverlayContainer=function(e,t){var n=u(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},St.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),p(o)&&(o=ze(o)),n=this._getOverlayContainer(r),Re(t=ze('
'),{position:"absolute"}),t.appendChild(o),e.type&&Ce(t).add("djs-overlay-"+e.type),Mt(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},St.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),o=n&&n.minZoom,a=n&&n.maxZoom,s=e.htmlContainer,l=!0;(i!==this._canvas.getRootElement()||n&&(r(o)&&o>t.scale||r(a)&&ai&&(o=(1/t.scale||1)*i)),r(o)&&(l="scale("+o+","+o+")"),Pt(s,l)},St.prototype._updateOverlaysVisibilty=function(e){var t=this;f(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},St.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",(function(e){t.hide()})),e.on("canvas.viewbox.changed",(function(e){var n;n=e.viewbox,t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()})),e.on(["shape.remove","connection.remove"],(function(e){var n=e.element;f(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){He(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(f(i.overlays,(function(e){t._updateOverlay(e)})),t._updateOverlayContainer(i))})),e.on("element.marker.update",(function(e){var n=t._getOverlayContainer(e.element,!0);n&&Ce(n.html)[e.add?"add":"remove"](e.marker)})),e.on("root.set",(function(){t._updateOverlaysVisibilty(t._canvas.viewbox())})),e.on("diagram.clear",this.clear,this)};var Nt={__init__:["overlays"],overlays:["type",St]};function Tt(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(_t(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}Tt.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var Dt={__init__:["changeSupport"],changeSupport:["type",Tt]};function Ot(e){this._eventBus=e}function Bt(e){return function(t,n,i,r,o){(l(t)||s(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function Lt(e,t){t.invoke(Ot,this),this.executed((function(t){var n=t.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()})),this.revert((function(t){var n=t.context;n.rootElement&&e.setRootElement(n.rootElement)}))}Ot.$inject=["eventBus"],Ot.prototype.on=function(e,t,n,i,r,p){if((l(t)||s(t))&&(p=r,r=i,i=n,n=t,t=null),l(n)&&(p=r,r=i,i=n,n=1e3),a(r)&&(p=r,r=!1),!l(i))throw new Error("handlerFn must be a function");o(e)||(e=[e]);var c=this._eventBus;f(e,(function(e){var o=["commandStack",e,t].filter((function(e){return e})).join(".");c.on(o,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,p):i,p)}))},Ot.prototype.canExecute=Bt("canExecute"),Ot.prototype.preExecute=Bt("preExecute"),Ot.prototype.preExecuted=Bt("preExecuted"),Ot.prototype.execute=Bt("execute"),Ot.prototype.executed=Bt("executed"),Ot.prototype.postExecute=Bt("postExecute"),Ot.prototype.postExecuted=Bt("postExecuted"),Ot.prototype.revert=Bt("revert"),Ot.prototype.reverted=Bt("reverted"),e(Lt,Ot),Lt.$inject=["canvas","injector"];var It={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Lt]},Ft={"&":"&","<":"<",">":">",'"':""","'":"'"};var jt="_plane";function Vt(e){var t=e.id;return A(e,"bpmn:SubProcess")?function(e){return e+jt}(t):t}function Wt(e,t,n){var i=ze('
    '),r=n.getContainer(),o=Ce(r);r.appendChild(i);var a=[];function s(e){e&&(a=function(e){for(var t=R(e),n=[],i=t;i;i=i.$parent)(A(i,"bpmn:SubProcess")||A(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var r=a.flatMap((function(e){var i=n.findRoot(Vt(e))||n.findRoot(e.id);if(!i&&A(e,"bpmn:Process")){var r=t.find((function(t){var n=R(t);return n&&n.get("processRef")===e}));i=r&&n.findRoot(r.id)}if(!i)return[];var o,a=(o=""+(o=e.name||e.id))&&o.replace(/[&<>"']/g,(function(e){return Ft[e]})),s=ze('
  • '+a+"
  • ");return s.addEventListener("click",(function(){n.setRootElement(i)})),s}));i.innerHTML="";var s=r.length>1;o.toggle("bjs-breadcrumbs-shown",s),r.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=R(e.element);u(a,(function(e){return e===t}))&&s()})),e.on("root.set",(function(e){s(e.element)}))}function $t(e,t){var n=null,i=new zt;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,A(r,"bpmn:SubProcess")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,l=(o.y-a.y)*o.scale;0===s&&0===l||t.scroll({dx:s,dy:l}),a.zoom!==o.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function zt(){this._entries=[],this.set=function(e,t){var n=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}-1!==t&&this._entries.splice(t,1)}}Wt.$inject=["eventBus","elementRegistry","canvas"],$t.$inject=["eventBus","canvas"];var Gt=180,Ht=160;function Kt(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,(function(e,t){n._handleImport(t.definitions)}))}function Ut(e){return A(e,"bpmndi:BPMNDiagram")?e:Ut(e.$parent)}Kt.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach((function(e){e.plane&&e.plane.bpmnElement&&(t._processToDiagramMap[e.plane.bpmnElement.id]=e)})),e.diagrams.filter((e=>e.plane)).flatMap((e=>t._createNewDiagrams(e.plane))).forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},Kt.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;A(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!A(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(function(e,t){return y(t,(function(t){return A(e,t)}))}(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t._moveToDiPlane(i,o.plane)}})),r},Kt.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=function(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach((function(e){if(e.bounds){var n=ht(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),function(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}(t)}(e),i=n.x-Gt,r=n.y-Ht;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},Kt.prototype._moveToDiPlane=function(e,t){var n=Ut(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},Kt.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},Kt.$inject=["eventBus","moddle"];var qt=250;function Yt(e,t,n,i,r){Ot.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i,this._translate=r;var o=this;this.executed("shape.toggleCollapse",qt,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",qt,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],qt,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],qt,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return o._canDrillDown(e)})).map((function(e){o._addOverlay(e)}))}))}e(Yt,Ot),Yt.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},Yt.prototype._canDrillDown=function(e){var t=this._canvas;return A(e,"bpmn:SubProcess")&&t.findRoot(Vt(e))},Yt.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=R(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.get("flowElements")&&n.get("flowElements").length;Ce(i.html).toggle("bjs-drilldown-empty",!r)}},Yt.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays,i=R(e);n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var r=ze(''),o=i.get("name")||i.get("id"),a=this._translate("Open {element}",{element:o});r.setAttribute("title",a),r.addEventListener("click",(function(){t.setRootElement(t.findRoot(Vt(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},Yt.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},Yt.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];var Xt={__depends__:[Nt,Dt,It],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Wt],drilldownCentering:["type",$t],drilldownOverlayBehavior:["type",Yt],subprocessCompatibility:["type",Kt]};function Zt(e){return e.originalEvent||e.srcEvent}function Jt(e,t){return(Zt(e)||e).button===t}function Qt(e){return Jt(e,0)}function en(e){return!0}function tn(e){return Qt(e)||function(e){return Jt(e,1)}(e)}function nn(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){var n=l[e]||Qt;return!n(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":en,"element.mousedown":tn,"element.mouseup":tn,"element.click":tn,"element.dblclick":tn};function p(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(l[n]=i),a.$delegate=je.bind(e,"svg, .djs-element",t,a)}function c(e,t,n){var i=a(n);i&&je.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,f(s,(function(e,n){c(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,f(s,(function(e,n){p(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=d("djs-hit djs-hit-stroke"),h=d("djs-hit djs-hit-click-stroke"),m={all:d("djs-hit djs-hit-all"),"click-stroke":h,stroke:u,"no-move":d("djs-hit djs-hit-no-move")};function d(e,t){return t=E({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function y(e,t){var n=m[t];if(!n)throw new Error("invalid hit type <"+t+">");return L(e,n),e}function g(e,t){D(e,t)}this.removeHits=function(e){var t;f((t=".djs-hit",(e||document).querySelectorAll(t)),ee)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=le(t);return y(n,"stroke"),g(e,n),n},this.createBoxHit=function(e,t,n){n=E({x:0,y:0},n);var i=z("rect");return y(i,t),L(i,n),g(e,i),i},this.updateDefaultHit=function(e,t){var n=Ge(".djs-hit",t);if(n)return e.waypoints?pe(n,e.waypoints):L(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=p,this.unregisterEvent=c}nn.$inject=["eventBus","elementRegistry","styles"];var rn={__init__:["interactionEvents"],interactionEvents:["type",nn]};function on(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],(function(e){var t=e.element;n.deselect(t)})),e.on(["diagram.clear","root.set"],(function(e){n.select(null)}))}on.$inject=["eventBus","canvas"],on.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},on.prototype.get=function(){return this._selectedElements},on.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},on.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();o(e)||(e=e?[e]:[]);var r=this._canvas,a=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return a===t})),t?f(e,(function(e){-1===n.indexOf(e)&&n.push(e)})):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var an="hover",sn="selected";function ln(e,t){function n(t,n){e.addMarker(t,n)}function i(t,n){e.removeMarker(t,n)}this._canvas=e,t.on("element.hover",(function(e){n(e.element,an)})),t.on("element.out",(function(e){i(e.element,an)})),t.on("selection.changed",(function(e){var t=e.oldSelection,r=e.newSelection;f(t,(function(e){-1===r.indexOf(e)&&i(e,sn)})),f(r,(function(e){-1===t.indexOf(e)&&n(e,sn)}))}))}function pn(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,a=(n.hints||{}).autoSelect;if(i){if(!1===a)return;o(a)?t.select(a):t.select(r.filter(cn))}})),e.on("connect.end",500,(function(e){var n=e.context.connection;n&&t.select(n)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);u(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(Qt(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,a=function(e){var t=Zt(e)||e;return Qt(e)&&t.shiftKey}(e);if(r&&o)return a?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,a)}}))}function cn(e){return!e.hidden}ln.$inject=["canvas","eventBus"],pn.$inject=["eventBus","selection","canvas","elementRegistry"];var un={__init__:["selectionVisuals","selectionBehavior"],__depends__:[rn],selection:["type",on],selectionVisuals:["type",ln],selectionBehavior:["type",pn]};const hn=/^class[ {]/;function fn(e){return Array.isArray(e)}function mn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dn(...e){1===e.length&&fn(e[0])&&(e=e[0]);const t=(e=[...e]).pop();return t.$inject=e,t}const yn=/constructor\s*[^(]*\(\s*([^)]*)\)/m,gn=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,vn=/\/\*([^*]*)\*\//m;function xn(e){if("function"!=typeof e)throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(function(e){return hn.test(e.toString())}(e)?yn:gn);if(!t)return[];const n=t[1]||t[2];return n&&n.split(",").map((e=>{const t=e.match(vn);return(t&&t[1]||e).trim()}))||[]}function wn(e,t){const n=t||{get:function(e,t){if(i.push(e),!1===t)return null;throw s(`No provider for "${e}"!`)}},i=[],r=this._providers=Object.create(n._providers||null),o=this._instances=Object.create(null),a=o.injector=this,s=function(e){const t=i.join(" -> ");return i.length=0,new Error(t?`${e} (Resolving: ${t})`:e)};function l(e,t){if(!r[e]&&e.includes(".")){const t=e.split(".");let n=l(t.shift());for(;t.length;)n=n[t.shift()];return n}if(mn(o,e))return o[e];if(mn(r,e)){if(-1!==i.indexOf(e))throw i.push(e),s("Cannot resolve circular dependency!");return i.push(e),o[e]=r[e][0](r[e][1]),i.pop(),o[e]}return n.get(e,t)}function p(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!fn(e))throw s(`Cannot invoke "${e}". Expected a function!`);e=dn(e.slice())}return{fn:e,dependencies:(e.$inject||xn(e)).map((e=>mn(t,e)?t[e]:l(e)))}}function c(e){const{fn:t,dependencies:n}=p(e);return new(Function.prototype.bind.call(t,null,...n))}function u(e,t,n){const{fn:i,dependencies:r}=p(e,n);return i.apply(t,r)}function h(e){return dn((t=>e.get(t)))}function f(e,t){if(t&&t.length){const n=Object.create(null),i=Object.create(null),o=[],a=[],s=[];let l,p,c,u;for(let e in r)l=r[e],-1!==t.indexOf(e)&&("private"===l[2]?(p=o.indexOf(l[3]),-1===p?(c=l[3].createChild([],t),u=h(c),o.push(l[3]),a.push(c),s.push(u),n[e]=[u,e,"private",c]):n[e]=[s[p],e,"private",a[p]]):n[e]=[l[2],l[1]],i[e]=!0),"factory"!==l[2]&&"type"!==l[2]||!l[1].$scope||t.forEach((t=>{-1!==l[1].$scope.indexOf(t)&&(n[e]=[l[2],l[1]],i[t]=!0)}));t.forEach((e=>{if(!i[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(n)}return new wn(e,a)}const m={factory:u,type:c,value:function(e){return e}};function d(e,t){const n=e.__init__||[];return function(){n.forEach((e=>{"string"==typeof e?t.get(e):t.invoke(e)}))}}function y(e){const t=e.__exports__;if(t){const n=e.__modules__,i=Object.keys(e).reduce(((t,n)=>("__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(t[n]=e[n]),t)),Object.create(null)),o=f((n||[]).concat(i)),a=dn((function(e){return o.get(e)}));t.forEach((function(e){r[e]=[a,e,"private",o]}));const s=(e.__init__||[]).slice();return s.unshift((function(){o.init()})),d(e=Object.assign({},e,{__init__:s}),o)}return Object.keys(e).forEach((function(t){if("__init__"===t||"__depends__"===t)return;const n=e[t];if("private"===n[2])return void(r[t]=n);const i=n[0],o=n[1];r[t]=[m[i],bn(i,o),i]})),d(e,a)}function g(e,t){return-1!==e.indexOf(t)||-1!==(e=(t.__depends__||[]).reduce(g,e)).indexOf(t)?e:e.concat(t)}this.get=l,this.invoke=u,this.instantiate=c,this.createChild=f,this.init=function(e){const t=e.reduce(g,[]).map(y);let n=!1;return function(){n||(n=!0,t.forEach((e=>e())))}}(e)}function bn(e,t){return"value"!==e&&fn(t)&&(t=dn(t.slice())),t}function En(e,t){_.call(this,e,1),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}e(En,_),En.prototype.canRender=function(){return!0},En.prototype.drawShape=function(e,t,n){var i=z("rect");return L(i,{x:0,y:0,width:t.width||0,height:t.height||0}),At(t)?L(i,E({},this.FRAME_STYLE,n||{})):L(i,E({},this.SHAPE_STYLE,n||{})),D(e,i),i},En.prototype.drawConnection=function(e,t,n){var i=le(t.waypoints,E({},this.CONNECTION_STYLE,n||{}));return D(e,i),i},En.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return ie([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},En.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return ie(r)},En.$inject=["eventBus","styles"];var _n={__init__:["defaultRenderer"],defaultRenderer:["type",En],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return E(this.style(t,n),{class:e})},this.style=function(t,n){o(t)||n||(n=t,t=[]);var i=m(t,(function(t,n){return E(t,e[n]||{})}),{});return n?E(i,n):i},this.computeStyle=function(e,n,i){return o(n)||(i=n,n=[]),t.style(n||[],E({},i,e||{}))}}]};function An(e,t){return Math.round(e*t)/t}function Rn(e){return s(e)?e+"px":e}function kn(e,t,n){const i=z("g");F(i).add(t);const r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}const Sn={shape:["x","y","width","height"],connection:["waypoints"]};function Cn(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}function Mn(e,t){const n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}Cn.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],Cn.prototype._init=function(e){const t=this._eventBus,n=this._container=function(e){const t=(e=E({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent"),Re(n,{position:"relative",overflow:"hidden",width:Rn(e.width),height:Rn(e.height)}),t.appendChild(n),n}(e),i=this._svg=z("svg");L(i,{width:"100%",height:"100%"}),ke(i,"tabindex",0),t.on("element.hover",(()=>{this.restoreFocus()})),i.addEventListener("focusin",(()=>{this._focused=!0,t.fire("canvas.focus.changed",{focused:!0})})),i.addEventListener("focusout",(()=>{this._focused=!1,t.fire("canvas.focus.changed",{focused:!1})})),D(n,i);const r=this._viewport=kn(i,"viewport");e.deferUpdate&&(this._viewboxChanged=function(e,t){let n,i,r,o;function a(n){let a=Date.now(),p=n?0:o+t-a;if(p>0)return s(p);e.apply(r,i),l()}function s(e){n=setTimeout(a,e)}function l(){n&&clearTimeout(n),n=o=i=r=void 0}function p(...e){o=Date.now(),i=e,r=this,n||s(t)}return p.flush=function(){n&&a(!0),l()},p.cancel=l,p}(b(this._viewboxChanged,this),300)),t.on("diagram.init",(()=>{t.fire("canvas.init",{svg:i,viewport:r})})),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(()=>{delete this._cachedViewbox})),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},Cn.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},Cn.prototype._clear=function(){this._elementRegistry.getAll().forEach((e=>{const t=_t(e);"root"===t?this.removeRootElement(e):this._removeElement(e,t)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},Cn.prototype.focus=function(){this._svg.focus({preventScroll:!0})},Cn.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},Cn.prototype.isFocused=function(){return this._focused},Cn.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},Cn.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},Cn.prototype._getChildIndex=function(e){return m(this._layers,(function(t,n){return n.visible&&e>=n.index&&t++,t}),0)},Cn.prototype._createLayer=function(e,t){void 0===t&&(t=1);const n=this._getChildIndex(t);return{group:kn(this._viewport,"layer-"+e,n),index:t,visible:!0}},Cn.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=this._viewport,i=t.group,r=t.index;if(t.visible)return i;const o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),t.visible=!0,i},Cn.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=t.group;return t.visible?(ee(n),t.visible=!1,n):n},Cn.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],ee(t.group))},Cn.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},Cn.prototype.findRoot=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),!e)return;const t=this._findPlaneForRoot(function(e){for(;e.parent;)e=e.parent;return e}(e))||{};return t.rootElement},Cn.prototype.getRootElements=function(){return this._planes.map((function(e){return e.rootElement}))},Cn.prototype._findPlaneForRoot=function(e){return u(this._planes,(function(t){return t.rootElement===e}))},Cn.prototype.getContainer=function(){return this._container},Cn.prototype._updateMarker=function(e,t,n){let i;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,i=this._elementRegistry._elements[e.id],i&&(f([i.gfx,i.secondaryGfx],(function(i){i&&(n?(e.markers.add(t),F(i).add(t)):(e.markers.delete(t),F(i).remove(t)))})),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},Cn.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},Cn.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},Cn.prototype.hasMarker=function(e,t){return e.id||(e=this._elementRegistry.get(e)),!!e.markers&&e.markers.has(t)},Cn.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},Cn.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},Cn.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const n=e.layer="root-"+t;this._ensureValid("root",e);const i=this.getLayer(n,0);return this.hideLayer(n),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e},Cn.prototype.removeRootElement=function(e){"string"==typeof e&&(e=this._elementRegistry.get(e));if(this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter((function(t){return t.rootElement!==e})),this._rootElement===e&&(this._rootElement=null),e},Cn.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},Cn.prototype._removeRoot=function(e){const t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)},Cn.prototype._addRoot=function(e,t){const n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),n.add(e,t),i.fire("root.added",{element:e,gfx:t})},Cn.prototype._setRoot=function(e,t){const n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},Cn.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const n=Sn[e],i=d(n,(function(e){return void 0!==t[e]}));if(!i)throw new Error("must supply { "+n.join(", ")+" } with "+e)},Cn.prototype._setParent=function(e,t,n){!function(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}(t.children,e,n),e.parent=t},Cn.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);const a=o.create(e,t,i);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},Cn.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},Cn.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},Cn.prototype._removeElement=function(e,t){const n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),function(e,t){if(!e||!t)return-1;var n=e.indexOf(t);-1!==n&&e.splice(n,1)}(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},Cn.prototype.removeShape=function(e){return this._removeElement(e,"shape")},Cn.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},Cn.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},Cn.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},Cn.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},Cn.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const t=this._viewport,n=this.getSize();let i,r,o,a,s,l,p;return e?(this._changeViewbox((function(){s=Math.min(n.width/e.width,n.height/e.height);const i=this._svg.createSVGMatrix().scale(s).translate(-e.x,-e.y);ne(t,i)})),e):(o=this._rootElement?this.getActiveLayer():null,i=o&&o.getBBox()||{},a=ne(t),r=a?a.matrix:function(e,t,n,i,r,o){var a=H().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return K(a,e);case 6:return K(a,{a:e,b:t,c:n,d:i,e:r,f:o})}}(),s=An(r.a,1e3),l=An(-r.e||0,1e3),p=An(-r.f||0,1e3),e=this._cachedViewbox={x:l?l/s:0,y:p?p/s:0,width:n.width/s,height:n.height/s,scale:s,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:n})},Cn.prototype.scroll=function(e){const t=this._viewport;let n=t.getCTM();return e&&this._changeViewbox((function(){e=E({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),Mn(t,n)})),{x:n.e,y:n.f}},Cn.prototype.scrollToElement=function(e,t){let n=100;"string"==typeof e&&(e=this._elementRegistry.get(e));const i=this.findRoot(e);if(i!==this.getRootElement()&&this.setRootElement(i),i===e)return;t||(t={}),"number"==typeof t&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};const r=Et(e),o=ht(r),a=this.viewbox(),s=this.zoom();let l,p;a.y+=t.top/s,a.x+=t.left/s,a.width-=(t.right+t.left)/s,a.height-=(t.bottom+t.top)/s;const c=ht(a);if(r.width=0&&i.y>=0&&i.x+i.width<=n.width&&i.y+i.height<=n.height&&!e?o={x:0,y:0,width:Math.max(i.width+i.x,n.width),height:Math.max(i.height+i.y,n.height)}:(r=Math.min(1,n.width/i.width,n.height/i.height),o={x:i.x+(e?i.width/2-n.width/r/2:0),y:i.y+(e?i.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(o),this.viewbox(!1).scale},Cn.prototype._setZoom=function(e,t){const n=this._svg,i=this._viewport,r=n.createSVGMatrix(),o=n.createSVGPoint();let a,s,l,p,c;l=i.getCTM();const u=l.a;return t?(a=E(o,t),s=a.matrixTransform(l.inverse()),p=r.translate(s.x,s.y).scale(1/u*e).translate(-s.x,-s.y),c=l.multiply(p)):c=r.scale(e),Mn(this._viewport,c),c},Cn.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},Cn.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let n;if(e.waypoints){n=this.getGraphics(e).getBBox()}else n=e;return{x:n.x*t.scale-t.x*t.scale,y:n.y*t.scale-t.y*t.scale,width:n.width*t.scale,height:n.height*t.scale}},Cn.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Pn="data-element-id";function Nn(e){this._elements={},this._eventBus=e}function Tn(e,t,n){var i=function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,n){var o=this.indexOf(e);if(void 0===n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,e),-1===o&&t.set(e,r,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:i}),i.length&&i.forEach((function(i){e.set(i,t.inverse,n)}))}function Dn(e,t){if(!(this instanceof Dn))return new Dn(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Nn.$inject=["eventBus"],Nn.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),L(t,Pn,i),n&&L(n,Pn,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},Nn.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(L(i.gfx,Pn,""),i.secondaryGfx&&L(i.secondaryGfx,Pn,""),delete t[n])},Nn.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},Nn.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,t&&L(t,Pn,i),t},Nn.prototype.get=function(e){var t;t="string"==typeof e?e:e&&L(e,Pn);var n=this._elements[t];return n&&n.element},Nn.prototype.filter=function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(n)})),t},Nn.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i in ref");t=this.props[t]}t.collection?Tn(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},Dn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return function(e){return!0===e.__refs_collection}(n)||Tn(this,t,e),n},Dn.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},Dn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},Dn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var On=new Dn({name:"children",enumerable:!0,collection:!0},{name:"parent"}),Bn=new Dn({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ln=new Dn({name:"attachers",collection:!0},{name:"host"}),In=new Dn({name:"outgoing",collection:!0},{name:"source"}),Fn=new Dn({name:"incoming",collection:!0},{name:"target"});function jn(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),On.bind(this,"parent"),Bn.bind(this,"labels"),In.bind(this,"outgoing"),Fn.bind(this,"incoming")}function Vn(){jn.call(this),On.bind(this,"children"),Ln.bind(this,"host"),Ln.bind(this,"attachers")}function Wn(){jn.call(this),On.bind(this,"children")}function $n(){Vn.call(this),Bn.bind(this,"labelTarget")}function zn(){jn.call(this),In.bind(this,"source"),Fn.bind(this,"target")}e(Vn,jn),e(Wn,Vn),e($n,Vn),e(zn,jn);var Gn={connection:zn,shape:Vn,label:$n,root:Wn};function Hn(){this._uid=12}Hn.prototype.createRoot=function(e){return this.create("root",e)},Hn.prototype.createLabel=function(e){return this.create("label",e)},Hn.prototype.createShape=function(e){return this.create("shape",e)},Hn.prototype.createConnection=function(e){return this.create("connection",e)},Hn.prototype.create=function(e,t){return(t=E({},t||{})).id||(t.id=e+"_"+this._uid++),function(e,t){var n=Gn[e];if(!n)throw new Error("unknown type: <"+e+">");return E(new n,t)}(e,t)};var Kn="__fn",Un=Array.prototype.slice;function qn(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function Yn(){}function Xn(e,t){this._eventBus=e,this._elementRegistry=t}function Zn(e,t,n){var i=n||t.firstChild;e!==i&&t.insertBefore(e,i)}qn.prototype.on=function(e,t,n,i){if(e=o(e)?e:[e],l(t)&&(i=n,n=t,t=1e3),!s(t))throw new Error("priority must be a number");var r=n;i&&((r=b(n,i))[Kn]=n[Kn]||n);var a=this;e.forEach((function(e){a._addListener(e,{priority:t,callback:r,next:null})}))},qn.prototype.once=function(e,t,n,i){var r=this;if(l(t)&&(i=n,n=t,t=1e3),!s(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var t=n.apply(i,arguments);return r.off(e,o),t}o[Kn]=n,this.on(e,t,o)},qn.prototype.off=function(e,t){e=o(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},qn.prototype.createEvent=function(e){var t=new Yn;return t.init(e),t},qn.prototype.fire=function(e,t){var n,i,r,o;if(o=Un.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof Yn?t:this.createEvent(t),o[0]=n;var a=n.type;e!==a&&(n.type=e);try{r=this._invokeListeners(n,o,i)}finally{e!==a&&(n.type=a)}return void 0===r&&n.defaultPrevented&&(r=!1),r}},qn.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},qn.prototype._destroy=function(){this._listeners={}},qn.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},qn.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{i=function(e,t){return e.apply(null,t)}(n.callback,t),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},qn.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority or , got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function pi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function ci(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,f(e,b(this.registerPackage,this))}function ui(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function hi(e){this.model=e}function fi(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function mi(e){return e.replace(/^:/,"")}function di(e,t={}){this.properties=new hi(this),this.factory=new ni(this,this.properties),this.registry=new ci(e,this.properties),this.typeCache={},this.config=t}pi.prototype.build=function(){return function(e,t){let n={},i=Object(e);return f(t,(function(t){t in i&&(n[t]=e[t])})),n}(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},pi.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},pi.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},pi.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=li(r[0],i),a=li(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,n),delete e.redefines},pi.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},pi.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},pi.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},pi.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},pi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},pi.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},pi.prototype.hasProperty=function(e){return this.propertiesByName[e]},pi.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(f(e.properties,b((function(n){n=E({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},ci.prototype.getPackage=function(e){return this.packageMap[e]},ci.prototype.getPackages=function(){return this.packages},ci.prototype.registerPackage=function(e){e=E({},e);var t=this.packageMap;ui(t,e,"prefix"),ui(t,e,"uri"),f(e.types,b((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},ci.prototype.registerType=function(e,t){var n=li((e=E({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:E(e.meta||{})})).name,t.prefix),i=n.name,r={};f(e.properties,b((function(e){var t=li(e.name,n.prefix),i=t.name;ai(e.type)||(e.type=li(e.type,t.prefix).name),E(e,{ns:t,name:i}),r[i]=e}),this)),E(e,{ns:n,name:i,propertiesByName:r}),f(e.extends,b((function(e){var t=li(e,n.prefix),r=this.typeMap[t.name];r.traits=r.traits||[],r.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},ci.prototype.mapTypes=function(e,t,n){var i=ai(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(n,i){var o=li(n,ai(n)?"":e.prefix);r.mapTypes(o,t,i)}function a(e){return o(e,!0)}if(!i)throw new Error("unknown type <"+e.name+">");f(i.superClass,n?a:function(e){return o(e,!1)}),t(i,!n),f(i.traits,a)},ci.prototype.getEffectiveDescriptor=function(e){var t=li(e),n=new pi(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},ci.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},hi.prototype.set=function(e,t,n){if(!p(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[mi(t)]:i?r in e?e[r]=n:fi(e,i,n):e.$attrs[mi(t)]=n},hi.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[mi(t)];var i=n.name;return!e[i]&&n.isMany&&fi(e,n,[]),e[i]},hi.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=E({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},hi.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},hi.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},hi.prototype.getProperty=function(e,t){var n=this.model,i=n.getPropertyDescriptor(e,t);if(i)return i;if(t.includes(":"))return null;const r=n.config.strict;if(void 0!==r){const n=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw n;"undefined"!=typeof console&&console.warn(n)}return null},di.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},di.prototype.getType=function(e){var t=this.typeCache,n=p(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},di.prototype.createAny=function(e,t,n){var o=li(e),s={$type:e,$instanceOf:function(e){return e===this.$type},get:function(e){return this[e]},set:function(e,t){!function(e,t,n){let o=e;f(t,(function(e,a){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+typeof e+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");let s=t[a+1],l=o[e];r(s)&&null==l&&(l=o[e]=isNaN(+s)?{}:[]),i(s)?i(n)?delete o[e]:o[e]=n:o=l}))}(this,[e],t)}},l={name:e,isGeneric:!0,ns:{prefix:o.prefix,localName:o.localName,uri:t}};return this.properties.defineDescriptor(s,l),this.properties.defineModel(s,this),this.properties.define(s,"get",{enumerable:!1,writable:!0}),this.properties.define(s,"set",{enumerable:!1,writable:!0}),this.properties.define(s,"$parent",{enumerable:!1,writable:!0}),this.properties.define(s,"$instanceOf",{enumerable:!1,writable:!0}),f(n,(function(e,t){a(e)&&void 0!==e.value?s[e.name]=e.value:s[t]=e})),s},di.prototype.getPackage=function(e){return this.registry.getPackage(e)},di.prototype.getPackages=function(){return this.registry.getPackages()},di.prototype.getElementDescriptor=function(e){return e.$descriptor},di.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},di.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},di.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var yi=String.fromCharCode,gi=Object.prototype.hasOwnProperty,vi=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,xi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function wi(e,t,n,i){return i?gi.call(xi,i)?xi[i]:"&"+i+";":yi(t||parseInt(n,16))}function bi(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(vi,wi):e}Object.keys(xi).forEach((function(e){xi[e.toUpperCase()]=xi[e]}));var Ei="non-whitespace outside of root node";function _i(e){return new Error(e)}function Ai(e){return"missing namespace for prefix <"+e+">"}function Ri(e){return{get:e,enumerable:!0}}function ki(e){var t,n={};for(t in e)n[t]=e[t];return n}function Si(e){return e+"$uri"}function Ci(){return{line:0,column:0}}function Mi(e){throw e}function Pi(e){if(!this)return new Pi(e);var t,n,i,r,o,a,s,l,p,c=e&&e.proxy,u=Mi,h=Ci,f=!1,m=!1,d=null,y=!1;function g(e){e instanceof Error||(e=_i(e)),d=e,u(e,h)}function v(e){o&&(e instanceof Error||(e=_i(e)),o(e,h))}this.on=function(e,p){if("function"!=typeof p)throw _i("required args ");switch(e){case"openTag":n=p;break;case"text":t=p;break;case"closeTag":i=p;break;case"error":u=p;break;case"warn":o=p;break;case"cdata":r=p;break;case"attention":l=p;break;case"question":s=p;break;case"comment":a=p;break;default:throw _i("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw _i("required args ");var t,n={};for(t in e)n[t]=e[t];return m=!0,p=n,this},this.parse=function(e){if("string"!=typeof e)throw _i("required args ");return d=null,function(e){var o,u,d,x,w,b,E,_,A,R,k,S=m?[]:null,C=m?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Si(n)]=t;return i}(p):null,M=[],P=0,N=!1,T=!1,D=0,O=0,B="",L=0;function I(){if(null!==k)return k;var e,t,n,i,r,o,a,s,l,c,u,h=m&&C.xmlns,d=m&&f?[]:null,y=L,g=B,x=g.length,w={},b={};e:for(;y8)){for((c<65||c>122||c>90&&c<97)&&95!==c&&58!==c&&(v("illegal first char attribute name"),l=!0),u=y+1;u96&&c<123||c>64&&c<91||c>47&&c<59||46===c||45===c||95===c)){if(32===c||c<14&&c>8){v("missing attribute value"),y=u;continue e}if(61===c)break;v("illegal attribute name char"),l=!0}if("xmlns:xmlns"===(s=g.substring(y,u))&&(v("illegal declaration of xmlns"),l=!0),34===(c=g.charCodeAt(u+1)))-1===(u=g.indexOf('"',y=u+2))&&-1!==(u=g.indexOf("'",y))&&(v("attribute value quote missmatch"),l=!0);else if(39===c)-1===(u=g.indexOf("'",y=u+2))&&-1!==(u=g.indexOf('"',y))&&(v("attribute value quote missmatch"),l=!0);else for(v("missing attribute value quotes"),l=!0,u+=1;u8);u++);for(-1===u&&(v("missing closing quotes"),u=x,l=!0),l||(o=g.substring(y,u)),y=u;u+18);u++)y===u&&(v("illegal character after attribute end"),l=!0);if(y=u+1,!l)if(s in b)v("attribute <"+s+"> already defined");else if(b[s]=!0,m)if(f){if(null!==(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=bi(o),t=Si(r),!(a=p[e])){if("xmlns"===r||t in C&&C[t]!==e)do{a="ns"+P++}while(void 0!==C[a]);else a=r;p[e]=a}C[r]!==a&&(i||(C=ki(C),i=!0),C[r]=a,"xmlns"===r&&(C[Si(a)]=e,h=a),C[t]=e),w[s]=o;continue}d.push(s,o)}else-1!==(c=s.indexOf(":"))?(n=C[s.substring(0,c)])?w[s=h===n?s.substr(c+1):n+s.substr(c)]=o:v(Ai(s.substring(0,c))):w[s]=o;else w[s]=o}if(f)for(y=0,x=d.length;y=a&&(t=i.exec(e))&&!((s=t[0].length+t.index)>D);)r+=1,a=s;return-1==D?(o=s,n=e.substring(O)):0===O?n=e.substring(O,D):(o=D-a,n=-1==O?e.substring(D):e.substring(D,O+1)),{data:n,line:r,column:o}}h=F,c&&(R=Object.create({},{name:Ri((function(){return _})),originalName:Ri((function(){return A})),attrs:Ri(I),ns:Ri((function(){return C}))}));for(;-1!==O;){if(-1===(D=60===e.charCodeAt(O)?O:e.indexOf("<",O)))return M.length?g("unexpected end of file"):0===O?g("missing start tag"):void(O",D)))return g("unclosed cdata");if(r&&(r(e.substring(D+9,O),h),y))return;O+=3;continue}if(45===x&&45===e.charCodeAt(D+3)){if(-1===(O=e.indexOf("--\x3e",D)))return g("unclosed comment");if(a&&(a(e.substring(D+4,O),bi,h),y))return;O+=3;continue}}if(63!==w){for(u=D+1;;u++){if(b=e.charCodeAt(u),isNaN(b))return O=-1,g("unclosed tag");if(34===b)u=-1!==(x=e.indexOf('"',u+1))?x:u;else if(39===b)u=-1!==(x=e.indexOf("'",u+1))?x:u;else if(62===b){O=u;break}}if(33!==w){if(k={},47===w){if(N=!1,T=!0,!M.length)return g("missing open tag");if(u=_=M.pop(),x=D+2+u.length,e.substring(D+2,x)!==u)return g("closing tag mismatch");for(;x8&&w<14))return g("close tag")}else{if(47===e.charCodeAt(O-1)?(u=_=e.substring(D+1,O-1),N=!0,T=!0):(u=_=e.substring(D+1,O),N=!0,T=!1),!(w>96&&w<123||w>64&&w<91||95===w||58===w))return g("illegal first char nodeName");for(x=1,d=u.length;x96&&w<123||w>64&&w<91||w>47&&w<59||45===w||95===w||46==w)){if(32===w||w<14&&w>8){_=u.substring(0,x),k=null;break}return g("invalid nodeName")}T||M.push(_)}if(m){if(o=C,N&&(T||S.push(o),null===k&&(f=-1!==u.indexOf("xmlns",x))&&(L=x,B=u,I(),f=!1)),A=_,-1!==(w=_.indexOf(":"))){if(!(E=C[_.substring(0,w)]))return g("missing namespace on <"+A+">");_=_.substr(w+1)}else E=C.xmlns;E&&(_=E+":"+_)}if(N&&(L=x,B=u,n&&(c?n(R,bi,T,h):n(_,I,bi,T,h),y)))return;if(T){if(i&&(i(c?R:_,bi,N,h),y))return;m&&(C=N?o:S.pop())}O+=1}else{if(l&&(l(e.substring(D,O+1),bi,h),y))return;O+=1}}else{if(-1===(O=e.indexOf("?>",D)))return g("unclosed question");if(s&&(s(e.substring(D,O+2),h),y))return;O+=2}}}(e),h=Ci,y=!1,d},this.stop=function(){y=!0}}function Ni(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Ti={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Di="property";function Oi(e){return e.xml&&e.xml.serialize}function Bi(e,t){return Ni(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function Li(e){return new Error(e)}function Ii(e){return e.$descriptor}function Fi(e){E(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw Li("expected element");var t,n=this.elementsById,i=Ii(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw Li("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function ji(){}function Vi(){}function Wi(){}function $i(e,t){this.property=e,this.context=t}function zi(e,t){this.element=t,this.propertyDesc=e}function Gi(){}function Hi(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function Ki(e,t,n){Hi.call(this,e,t,n)}function Ui(e,t,n){this.model=e,this.context=n}function qi(e){e instanceof di&&(e={model:e}),E(this,{lax:!1},e)}ji.prototype.handleEnd=function(){},ji.prototype.handleText=function(){},ji.prototype.handleNode=function(){},Vi.prototype=Object.create(ji.prototype),Vi.prototype.handleNode=function(){return this},Wi.prototype=Object.create(ji.prototype),Wi.prototype.handleText=function(e){this.body=(this.body||"")+e},$i.prototype=Object.create(Wi.prototype),$i.prototype.handleNode=function(e){if(this.element)throw Li("expected no sub nodes");return this.element=this.createReference(e),this},$i.prototype.handleEnd=function(){this.element.id=this.body},$i.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},zi.prototype=Object.create(Wi.prototype),zi.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=oi(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},Gi.prototype=Object.create(Wi.prototype),Gi.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},Hi.prototype=Object.create(Gi.prototype),Hi.prototype.addReference=function(e){this.context.addReference(e)},Hi.prototype.handleText=function(e){if(!Ii(this.element).bodyProperty)throw Li("unexpected body text <"+e+">");Wi.prototype.handleText.call(this,e)},Hi.prototype.handleEnd=function(){var e=this.body,t=this.element,n=Ii(t).bodyProperty;n&&void 0!==e&&(e=oi(n.type,e),t.set(n.name,e))},Hi.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=Ii(i),o=this.context,a=new i({}),s=this.model;return f(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?f(e.split(" "),(function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i?e=oi(i.type,e):"xmlns"===n?n=":"+n:(t=li(n,r.ns.prefix),s.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:a,property:n,value:e})),a.set(n,e))})),a},Hi.prototype.getPropertyForNode=function(e){var t=li(e.name),n=this.type,i=this.model,r=Ii(n),o=t.name,a=r.propertiesByName[o];if(a&&!a.isAttr){const t=function(e){const t=Oi(e);return t!==Di&&(t||null)}(a);if(t){const n=e.attributes[t];if(n){const t=function(e,t,n){const i=li(e,t.xmlns),r=li(`${t[i.prefix]||i.prefix}:${i.localName}`);return function(e,t){var n=e.name,i=e.localName,r=t&&t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(r,n.getPackage(r.prefix))}(n,e.ns,i);return E({},a,{effectiveType:Ii(i.getType(t)).name})}}return a}var s=i.getPackage(t.prefix);if(s){const e=Bi(t,s),n=i.getType(e);if(a=u(r.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})))return E({},a,{effectiveType:Ii(n).name})}else if(a=u(r.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})))return a;throw Li("unrecognized element <"+t.name+">")},Hi.prototype.toString=function(){return"ElementDescriptor["+Ii(this.type).name+"]"},Hi.prototype.valueHandler=function(e,t){return new zi(e,t)},Hi.prototype.referenceHandler=function(e){return new $i(e,this.context)},Hi.prototype.handler=function(e){return"Element"===e?new Ui(this.model,e,this.context):new Hi(this.model,e,this.context)},Hi.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,si(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(E(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},Ki.prototype=Object.create(Hi.prototype),Ki.prototype.createElement=function(e){var t=e.name,n=li(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&Bi(n,o)||t;if(!r.hasType(a))throw Li("unexpected element <"+e.originalName+">");return Hi.prototype.createElement.call(this,e)},Ui.prototype=Object.create(Gi.prototype),Ui.prototype.createElement=function(e){var t=e.name,n=li(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},Ui.prototype.handleChild=function(e){var t=new Ui(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},Ui.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},qi.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof Hi?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Fi(E({},t,{rootHandler:i})),s=new Pi({proxy:!0}),l=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function p(e,t,n){var i=t(),r=i.line,o=i.column,s=i.data;"<"===s.charAt(0)&&-1!==s.indexOf(" ")&&(s=s.slice(0,s.indexOf(" "))+">");var l="unparsable content "+(s?s+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return a.addWarning({message:l,error:e}),!0;throw Li(l)}function c(e,t){return p(e,t,!0)}i.context=a,l.push(i);var u=/^<\?xml /i,h=/ encoding="([^"]+)"/i,f=/^utf-8$/i;function m(e,t){try{l.peek().handleText(e)}catch(e){c(e,t)}}var d=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),Object.entries(Ti).reduce((function(e,[t,n]){return e[n]=t,e}),r.config&&r.config.nsMap||{}));return s.ns(d).on("openTag",(function(e,t,n,i){var r=e.attrs||{},a=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){p(e,t,o)&&l.push(new Vi)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=h.exec(e),n=t&&t[1];n&&!f.test(n)&&a.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){l.pop().handleEnd()})).on("cdata",m).on("text",(function(e,t,n){!function(e,t){e.trim()&&m(e,t)}(t(e),n)})).on("error",p).on("warn",c),new Promise((function(t,n){var r;try{s.parse(e),function(){var e,t,n=a.elementsById,i=a.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],s=Ii(r).propertiesByName[t.property];if(o||a.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),s.isMany){var l=r.get(s.name),p=l.indexOf(t);-1===p&&(p=l.length),o?l[p]=o:l.splice(p,1)}else r.set(s.name,o)}}()}catch(e){r=e}var o=i.element;r||o||(r=Li("failed to parse document as <"+i.type.$descriptor.name+">"));var l=a.warnings,p=a.references,c=a.elementsById;return r?(r.warnings=l,n(r)):t({rootElement:o,elementsById:c,references:p,warnings:l})}))},qi.prototype.handler=function(e){return new Ki(this.model,e)};var Yi=/<|>|'|"|&|\n\r|\n/g,Xi=/<|>|&/g;function Zi(e){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=e,this.defaultPrefixMap=e&&e.defaultPrefixMap||{}}function Ji(e,t){return Ni(t)?(n=e).charAt(0).toLowerCase()+n.slice(1):e;var n}function Qi(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function er(e){return p(e)?e:(e.prefix?e.prefix+":":"")+e.localName}Zi.prototype.mapDefaultPrefixes=function(e){this.defaultPrefixMap=e},Zi.prototype.defaultUriByPrefix=function(e){return this.defaultPrefixMap[e]},Zi.prototype.byUri=function(e){return this.uriMap[e]||this.parent&&this.parent.byUri(e)},Zi.prototype.add=function(e,t){this.uriMap[e.uri]=e,t?this.wellknown.push(e):this.custom.push(e),this.mapPrefix(e.prefix,e.uri)},Zi.prototype.uriByPrefix=function(e){return this.prefixMap[e||"xmlns"]||this.parent&&this.parent.uriByPrefix(e)},Zi.prototype.mapPrefix=function(e,t){this.prefixMap[e||"xmlns"]=t},Zi.prototype.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},Zi.prototype.logUsed=function(e){var t=e.uri,n=this.getNSKey(e);this.used[n]=this.byUri(t),this.parent&&this.parent.logUsed(e)},Zi.prototype.getUsed=function(e){return[].concat(this.wellknown,this.custom).filter((e=>{var t=this.getNSKey(e);return this.used[t]}))};var tr={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},nr={"<":"lt",">":"gt","&":"amp"};function ir(e,t,n){return(e=p(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function rr(e){this.tagName=e}function or(){}function ar(e){this.tagName=e}function sr(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function lr(e,t,n){sr.call(this,e,t),this.serialization=n}function pr(){this.value="",this.write=function(e){this.value+=e}}function cr(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function ur(e){return e=E({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new pr,r=new cr(i,e.format);e.preamble&&r.append('\n');var o=new sr,a=t.$model;if(o.getNamespaces().mapDefaultPrefixes(function(e){const t=e.config&&e.config.nsMap||{},n={};for(const e in Ti)n[e]=Ti[e];for(const e in t){n[t[e]]=e}for(const t of e.getPackages())n[t.prefix]=t.uri;return n}(a)),o.build(t).serializeTo(r),!n)return i.value}}}function hr(e,t){di.call(this,e,t)}rr.prototype.build=function(e){return this.element=e,this},rr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"").appendNewLine()},or.prototype.serializeValue=or.prototype.serializeTo=function(e){e.append(this.escape?ir(this.value,Xi,nr):this.value)},or.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(Xi)&&(this.escape=!0),this},Qi(ar,or),ar.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("").appendNewLine()},sr.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGenericNsAttributes(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o?this.parseGenericContainments(e):(n=function(e){return h(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!c(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(h(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return h(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},sr.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?E({localName:t.ns.localName},e):E({localName:Ji(t.ns.localName,t.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},sr.prototype.nsPropertyTagName=function(e){return function(e,t){return E({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},sr.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},sr.prototype.nsAttributeName=function(e){var t;if(t=p(e)?li(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:E({localName:t.localName},n)},sr.prototype.parseGenericNsAttributes=function(e){return Object.entries(e).filter((([t,n])=>!t.startsWith("$")&&this.parseNsAttribute(e,t,n))).map((([e,t])=>({name:e,value:t})))},sr.prototype.parseGenericContainments=function(e){var t=e.$body;t&&this.body.push((new or).build({type:"String"},t));var n=e.$children;n&&f(n,(e=>{this.body.push(new sr(this).build(e))}))},sr.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=li(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},sr.prototype.parseNsAttributes=function(e){var t=this,n=e.$attrs,i=[];return f(n,(function(n,r){var o=t.parseNsAttribute(e,r,n);o&&i.push(o)})),i},sr.prototype.parseGenericAttributes=function(e,t){var n=this;f(t,(function(t){try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){"undefined"!=typeof console&&console.warn(`missing namespace information for <${t.name}=${t.value}> on`,e,n)}}))},sr.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;f(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new or).build(e,r[0]));else if(si(e.type))f(r,(function(i){n.push(new ar(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)f(r,(function(i){n.push(new rr(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var a=Oi(e);f(r,(function(i){var r;r=a?a===Di?new sr(t,e):new lr(t,e,a):new sr(t),n.push(r.build(i))}))}}))},sr.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new Zi(t):n=t),n},sr.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},sr.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.getNamespaces(t),a=e.prefix,s=e.uri;if(!a&&!s)return{localName:e.localName};if(r=o.defaultUriByPrefix(a),!(s=s||r||o.uriByPrefix(a)))throw new Error("no namespace uri given for prefix <"+a+">");if((e=o.byUri(s))||a||(e=this.logNamespace({uri:s},r===s,!0)),!e){for(n=a,i=1;o.uriByPrefix(n);)n=a+"_"+i++;e=this.logNamespace({prefix:n,uri:s},r===s)}return a&&o.mapPrefix(a,s),e},sr.prototype.parseAttributes=function(e){var t=this,n=this.element;f(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];f(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},sr.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),er(e)},sr.prototype.addAttribute=function(e,t){var n=this.attrs;p(t)&&(t=ir(t,Yi,tr));var i=function(e,t){const n=v(t);let i=o(e)?-1:void 0;return f(e,(function(e,t){if(n(e,t))return i=t,!1})),i}(n,(function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix})),r={name:e,value:t};-1!==i?n.splice(i,1,r):n.push(r)},sr.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),f(t,(function(t){e.append(" ").append(er(t.name)).append('="').append(t.value).append('"')}))},sr.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==or;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),f(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append("")),e.appendNewLine()},Qi(lr,sr),lr.prototype.parseNsAttributes=function(e){var t=sr.prototype.parseNsAttributes.call(this,e).filter((e=>e.name!==this.serialization)),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},lr.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},hr.prototype=Object.create(di.prototype),hr.prototype.fromXML=function(e,t,n){p(t)||(n=t,t="bpmn:Definitions");var i=new qi(E({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},hr.prototype.toXML=function(e,t){var n=new ur(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(e){return i(e)}}))};const fr={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function mr(e,t){return new hr(E({},fr,e),t)}function dr(e,t){return e.$instanceOf(t)}function yr(e){var t={},n=[],i={};function r(e,t){return function(n){e(n,t)}}function o(e){t[e.id]=e}function a(t,n){try{var r=i[t.id]&&function(t,n){if(t.gfx)throw new Error(`already rendered ${yt(t)}`);return e.element(t,i[t.id],n)}(t,n);return o(t),r}catch(e){s(e.message,{element:t,error:e}),console.error(`failed to import ${yt(t)}`,e)}}function s(t,n){e.error(t,n)}var l=this.registerDi=function(e){var t,n=e.bpmnElement;n?i[n.id]?s(`multiple DI elements defined for ${yt(n)}`,{element:n}):(i[n.id]=e,c(t=n,"di")||Object.defineProperty(t,"di",{enumerable:!1,get:function(){throw new Error("Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472")}})):s(`no bpmnElement referenced in ${yt(e)}`,{element:e})};function p(e){var t;t=e.plane,l(t),f(t.planeElement,m)}function m(e){l(e)}this.handleDefinitions=function(o,a){var c=o.diagrams;if(a&&-1===c.indexOf(a))throw new Error("diagram not part of ");if(!a&&c&&c.length&&(a=c[0]),!a)throw new Error("no diagram to display");i={},p(a);var m=a.plane;if(!m)throw new Error(`no plane for ${yt(a)}`);var v=m.bpmnElement;if(!v){if(v=function(e){return u(e.rootElements,(function(e){return dr(e,"bpmn:Process")||dr(e,"bpmn:Collaboration")}))}(o),!v)throw new Error("no process or collaboration to display");s(`correcting missing bpmnElement on ${yt(m)} to ${yt(v)}`),m.bpmnElement=v,l(m)}var x,w,b=function(t,n){return e.root(t,i[t.id],n)}(v,m);if(dr(v,"bpmn:Process")||dr(v,"bpmn:SubProcess"))y(v,b);else{if(!dr(v,"bpmn:Collaboration"))throw new Error(`unsupported bpmnElement for ${yt(m)}: ${yt(v)}`);w=b,f((x=v).participants,r(P,w)),E(x.artifacts,w),n.push((function(){!function(e,t){f(e,r(g,t))}(x.messageFlows,w)})),function(e,n){var i=h(e,(function(e){return!t[e.id]&&dr(e,"bpmn:Process")&&e.laneSets}));i.forEach(r(y,n))}(o.rootElements,b)}d(n)};var d=this.handleDeferred=function(){for(;n.length;)n.shift()()};function y(e,t){M(e,t),_(e.ioSpecification,t),E(e.artifacts,t),o(e)}function g(e,t){a(e,t)}function v(e,t){a(e,t)}function x(e,t){a(e,t)}function w(e,t){a(e,t)}function b(e,t){a(e,t)}function E(e,t){f(e,(function(e){dr(e,"bpmn:Association")?n.push((function(){b(e,t)})):b(e,t)}))}function _(e,t){e&&(f(e.dataInputs,r(x,t)),f(e.dataOutputs,r(w,t)))}var A=this.handleSubProcess=function(e,t){M(e,t),E(e.artifacts,t)};function R(e,t){var i=a(e,t);dr(e,"bpmn:SubProcess")&&A(e,i||t),dr(e,"bpmn:Activity")&&_(e.ioSpecification,t),n.push((function(){f(e.dataInputAssociations,r(v,t)),f(e.dataOutputAssociations,r(v,t))}))}function k(e,t){a(e,t)}function S(e,t){n.push((function(){var n=a(e,t);e.childLaneSet&&C(e.childLaneSet,n||t),function(e){f(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function C(e,t){f(e.lanes,r(S,t))}function M(e,t){!function(e,t){f(e,(function(e){dr(e,"bpmn:SequenceFlow")?n.push((function(){!function(e,t){a(e,t)}(e,t)})):dr(e,"bpmn:BoundaryEvent")?n.unshift((function(){R(e,t)})):dr(e,"bpmn:FlowNode")?R(e,t):dr(e,"bpmn:DataObject")||(dr(e,"bpmn:DataStoreReference")||dr(e,"bpmn:DataObjectReference")?k(e,t):s(`unrecognized flowElement ${yt(e)} in context ${yt(t&&t.businessObject)}`,{element:e,context:t}))}))}(e.flowElements,t),e.laneSets&&function(e,t){f(e,r(C,t))}(e.laneSets,t)}function P(e,t){var n=a(e,t),i=e.processRef;i&&y(i,n||t)}}function gr(e,t,n){var i,r,o,a=[];function s(e,t){var n=new yr({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){a.push({message:e,context:t})}});t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t||!t.plane)return;var n,i=t.plane.bpmnElement,r=i;A(i,"bpmn:Process")||A(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(A(t,"bpmn:Process"))return t;t=t.$parent}} +/*! bpmn-js - bpmn-viewer v18.3.1 | Copyright (c) 2014-present, camunda Services GmbH | bpmn.io/license */ +!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).BpmnJS=t()}(this,(function(){"use strict";function e(e,t){t&&(e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}))}const t=Object.prototype.toString,n=Object.prototype.hasOwnProperty;function i(e){return void 0===e}function r(e){return void 0!==e}function o(e){return"[object Array]"===t.call(e)}function a(e){return"[object Object]"===t.call(e)}function s(e){return"[object Number]"===t.call(e)}function l(e){const n=t.call(e);return"[object Function]"===n||"[object AsyncFunction]"===n||"[object GeneratorFunction]"===n||"[object AsyncGeneratorFunction]"===n||"[object Proxy]"===n}function p(e){return"[object String]"===t.call(e)}function c(e,t){return n.call(e,t)}function u(e,t){const n=v(t);let i;return f(e,(function(e,t){if(n(e,t))return i=e,!1})),i}function h(e,t){const n=v(t);let i=[];return f(e,(function(e,t){n(e,t)&&i.push(e)})),i}function f(e,t){let n,r;if(i(e))return;const a=o(e)?w:x;for(let i in e)if(c(e,i)&&(n=e[i],r=t(n,a(i)),!1===r))return n}function m(e,t,n){return f(e,(function(e,i){n=t(n,e,i)})),n}function d(e,t){return!!m(e,(function(e,n,i){return e&&t(n,i)}),!0)}function y(e,t){return!!u(e,t)}function g(e){return function(t){return d(e,(function(e,n){return t[n]===e}))}}function v(e){return l(e)?e:t=>t===e}function x(e){return e}function w(e){return Number(e)}function b(e,t){return e.bind(t)}function E(e,...t){return Object.assign(e,...t)}function _(e,t){var n=this;t=t||1e3,e.on(["render.shape","render.connection"],t,(function(e,t){var i=e.type,r=t.element,o=t.gfx,a=t.attrs;if(n.canRender(r))return"render.shape"===i?n.drawShape(o,r,a):n.drawConnection(o,r,a)})),e.on(["render.getShapePath","render.getConnectionPath"],t,(function(e,t){if(n.canRender(t))return"render.getShapePath"===e.type?n.getShapePath(t):n.getConnectionPath(t)}))}function A(e,t){var n=R(e);return n&&"function"==typeof n.$instanceOf&&n.$instanceOf(t)}function R(e){return e&&e.businessObject||e}function k(e){return e&&e.di}function S(e,t){return!A(e,"bpmn:CallActivity")&&(A(e,"bpmn:SubProcess")?!(!(t=t||k(e))||!A(t,"bpmndi:BPMNPlane"))||t&&!!t.isExpanded:!A(e,"bpmn:Participant")||!!R(e).processRef)}function C(e){if(A(e,"bpmn:Participant")||A(e,"bpmn:Lane")){var t=k(e).isHorizontal;return void 0===t||t}}_.prototype.canRender=function(e){},_.prototype.drawShape=function(e,t){},_.prototype.drawConnection=function(e,t){},_.prototype.getShapePath=function(e){},_.prototype.getConnectionPath=function(e){};var M={width:90,height:20};function P(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)],r=function(e){var t=e.length/2-1,n=e[Math.floor(t)],i=e[Math.ceil(t+.01)];return{x:n.x+(i.x-n.x)/2,y:n.y+(i.y-n.y)/2}}(e),o=Math.atan((i.y-n.y)/(i.x-n.x)),a=r.x,s=r.y;return Math.abs(o)"+e+"",t=!0);var n=function(e){var t;return(t=new DOMParser).async=!1,t.parseFromString(e,"text/xml")}(e);if(!t)return n;for(var i=document.createDocumentFragment(),r=n.firstChild;r.firstChild;)i.appendChild(r.firstChild);return i}function z(e,t){var n;return"<"===(e=e.trim()).charAt(0)?(n=$(e).firstChild,n=document.importNode(n,!0)):n=document.createElementNS(V,e),t&&L(n,t),n}var G=null;function H(){return null===G&&(G=z("svg")),G}function K(e,t){var n,i,r=Object.keys(t);for(n=0;i=r[n];n++)e[i]=t[i];return e}function U(e){return H().createSVGTransform()}var q=/([&<>]{1})/g,Y=/([\n\r"]{1})/g,X={"&":"&","<":"<",">":">",'"':"'"};function Z(e,t){return e.replace(t,(function(e,t){return X[t]||t}))}function J(e,t){var n,i,r,o,a;switch(e.nodeType){case 3:t.push(Z(e.textContent,q));break;case 1:if(t.push("<",e.tagName),e.hasAttributes())for(n=0,i=(r=e.attributes).length;n"),n=0,i=(a=e.childNodes).length;n")}else t.push("/>");break;case 8:t.push("\x3c!--",Z(e.nodeValue,q),"--\x3e");break;case 4:t.push("");break;default:throw new Error("unable to handle node "+e.nodeType)}return t}function Q(e,t){return function(e){for(var t=e.firstChild,n=[];t;)J(t,n),t=t.nextSibling;return n.join("")}(e)}function ee(e){var t=e.parentNode;return t&&t.removeChild(e),e}function te(e,t){return t instanceof SVGMatrix?e.createSVGTransformFromMatrix(t):t}function ne(e,t){var n=e.transform.baseVal;return t&&(Array.isArray(t)||(t=[t]),function(e,t){var n,i;for(e.clear(),n=0;i=t[n];n++)e.appendItem(te(e,i))}(n,t)),n.consolidate()}function ie(e){return e.flat().join(",").replace(/,?([A-Za-z]),?/g,"$1")}function re(e){return["L",e.x,e.y]}function oe(e,t){const n=e.length,i=[(r=e[0],["M",r.x,r.y])];var r,o,a,s;for(let r=1;r
    a',We=!Fe.getElementsByTagName("link").length,Fe=void 0);var $e={legend:[1,"
    ","
    "],tr:[2,"","
    "],col:[2,"","
    "],_default:We?[1,"X
    ","
    "]:[0,"",""]};$e.td=$e.th=[3,"","
    "],$e.option=$e.optgroup=[1,'"],$e.thead=$e.tbody=$e.colgroup=$e.caption=$e.tfoot=[1,"","
    "],$e.polyline=$e.ellipse=$e.polygon=$e.circle=$e.text=$e.line=$e.path=$e.rect=$e.g=[1,'',""];var ze=Ve;function Ge(e,t){return(t=t||document).querySelector(e)}function He(e){e.parentNode&&e.parentNode.removeChild(e)}function Ke(e,t,n,i,r){var o=U();o.setTranslate(t,n);var a=U();a.setRotate(i||0,0,0);var s=U();s.setScale(1,1),ne(e,[o,a,s])}function Ue(e,t,n){var i=U();i.setTranslate(t,n),ne(e,i)}var qe=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){var t=e.exports=function(e,n){if(n||(n=16),void 0===e&&(e=128),e<=0)return"0";for(var i=Math.log(Math.pow(2,e))/Math.log(n),r=2;i===1/0;r*=2)i=Math.log(Math.pow(2,e/r))/Math.log(n)*r;var o=i-Math.floor(i),a="";for(r=0;r=Math.pow(2,e)?t(e,n):a};t.rack=function(e,n,i){var r=function(r){var a=0;do{if(a++>10){if(!i)throw new Error("too many ID collisions, use more bits");e+=i}var s=t(e,n)}while(Object.hasOwnProperty.call(o,s));return o[s]=r,s},o=r.hats={};return r.get=function(e){return r.hats[e]},r.set=function(e,t){return r.hats[e]=t,r},r.bits=e||128,r.base=n||16,r}}));function Ye(e){if(!(this instanceof Ye))return new Ye(e);e=e||[128,36,1],this._seed=e.length?qe.rack(e[0],e[1],e[2]):e}Ye.prototype.next=function(e){return this._seed(e||!0)},Ye.prototype.nextPrefixed=function(e,t){var n;do{n=e+this.next(!0)}while(this.assigned(n));return this.claim(n,t),n},Ye.prototype.claim=function(e,t){this._seed.set(e,t||!0)},Ye.prototype.assigned=function(e){return this._seed.get(e)||!1},Ye.prototype.unclaim=function(e){delete this._seed.hats[e]},Ye.prototype.clear=function(){var e,t=this._seed.hats;for(e in t)this.unclaim(e)};var Xe=new Ye,Ze=.95;function Je(e,t,n,i,r,o,s){_.call(this,t,s);var l=e&&e.defaultFillColor,p=e&&e.defaultStrokeColor,c=e&&e.defaultLabelColor;function u(e){return n.computeStyle(e,{strokeLinecap:"round",strokeLinejoin:"round",stroke:ce,strokeWidth:2,fill:"white"})}function h(e){return n.computeStyle(e,["no-fill"],{strokeLinecap:"round",strokeLinejoin:"round",stroke:ce,strokeWidth:2})}function m(e,t){var{ref:n={x:0,y:0},scale:i=1,element:o,parentGfx:a=r._svg}=t,s=z("marker",{id:e,viewBox:"0 0 20 20",refX:n.x,refY:n.y,markerWidth:20*i,markerHeight:20*i,orient:"auto"});D(s,o);var l=Ge(":scope > defs",a);l||D(a,l=z("defs")),D(l,s)}function d(e,t,n,i){var r=Xe.nextPrefixed("marker-");return function(e,t,n,i,r){if("sequenceflow-end"===n){m(t,{element:z("path",{d:"M 1 5 L 11 10 L 1 15 Z",...u({fill:r,stroke:r,strokeWidth:1})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("messageflow-start"===n){m(t,{element:z("circle",{cx:6,cy:6,r:3.5,...u({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:6,y:6},parentGfx:e})}if("messageflow-end"===n){m(t,{element:z("path",{d:"m 1 5 l 0 -3 l 7 3 l -7 3 z",...u({fill:i,stroke:r,strokeWidth:1,strokeDasharray:[1e4,1]})}),ref:{x:8.5,y:5},parentGfx:e})}if("association-start"===n){m(t,{element:z("path",{d:"M 11 5 L 1 10 L 11 15",...h({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:1,y:10},scale:.5,parentGfx:e})}if("association-end"===n){m(t,{element:z("path",{d:"M 1 5 L 11 10 L 1 15",...h({fill:"none",stroke:r,strokeWidth:1.5,strokeDasharray:[1e4,1]})}),ref:{x:11,y:10},scale:.5,parentGfx:e})}if("conditional-flow-marker"===n){m(t,{element:z("path",{d:"M 0 10 L 8 6 L 16 10 L 8 14 Z",...u({fill:i,stroke:r})}),ref:{x:-1,y:10},scale:.5,parentGfx:e})}if("conditional-default-flow-marker"===n){m(t,{element:z("path",{d:"M 6 4 L 10 16",...u({stroke:r,fill:"none"})}),ref:{x:0,y:10},scale:.5,parentGfx:e})}}(e,r,t,n,i),"url(#"+r+")"}function y(e,t,n,i,r={}){a(i)&&(r=i,i=0),i=i||0,r=u(r);var o=z("circle",{cx:t/2,cy:n/2,r:Math.round((t+n)/4-i),...r});return D(e,o),o}function g(e,t,n,i,r,o){a(r)&&(o=r,r=0),r=r||0,o=u(o);var s=z("rect",{x:r,y:r,width:t-2*r,height:n-2*r,rx:i,ry:i,...o});return D(e,s),s}function v(e,t,n,i){var r=le(t,n=h(n),i);return D(e,r),r}function x(e,t,n){return v(e,t,n,5)}function w(e,t,n){n=h(n);var i=z("path",{...n,d:t});return D(e,i),i}function b(e,t,n,i){return w(t,n,E({"data-marker":e},i))}function M(e){return we[e]}function P(e){return function(t,n,i){return M(e)(t,n,i)}}var N=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_MESSAGE",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.235,my:.315}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:r?he(t,l,n.fill):fe(t,p,n.stroke),strokeWidth:1})},B=function(e,t,n={}){var r=y(e,t.width,t.height,.2*t.height,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:2});w(e,i.getScaledPath("EVENT_TIMER_WH",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),{stroke:fe(t,p,n.stroke),strokeWidth:2});for(var o=0;o<12;o++){var a=i.getScaledPath("EVENT_TIMER_LINE",{xScaleFactor:.75,yScaleFactor:.75,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.5}}),s=t.width/2,c=t.height/2;w(e,a,{strokeWidth:1,stroke:fe(t,p,n.stroke),transform:"rotate("+30*o+","+c+","+s+")"})}return r},O=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_ESCALATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},I=function(e,t,n={}){return w(e,i.getScaledPath("EVENT_CONDITIONAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.222}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},j=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_LINK",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.57,my:.263}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},V=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_ERROR",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.2,my:.722}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},W=function(e,t,n={},r){var o=w(e,i.getScaledPath("EVENT_CANCEL_45",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.638,my:-.055}}),{fill:r?fe(t,p,n.stroke):"none",stroke:fe(t,p,n.stroke),strokeWidth:1});return function(e,t){var n=U();n.setRotate(t,0,0),ne(e,n)}(o,45),o},$=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.22,my:.5}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},G=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_SIGNAL",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:t.width,containerHeight:t.height,position:{mx:.5,my:.2}}),{strokeWidth:1,fill:r?fe(t,p,n.stroke):he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},H=function(e,t,n={},r){return w(e,i.getScaledPath("EVENT_MULTIPLE",{xScaleFactor:1.1,yScaleFactor:1.1,containerWidth:t.width,containerHeight:t.height,position:{mx:.222,my:.36}}),{fill:r?fe(t,p,n.stroke):he(t,l,n.fill),strokeWidth:1})},K=function(e,t,n={}){return w(e,i.getScaledPath("EVENT_PARALLEL_MULTIPLE",{xScaleFactor:1.2,yScaleFactor:1.2,containerWidth:t.width,containerHeight:t.height,position:{mx:.458,my:.194}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1})},q=function(e,t,n={}){return y(e,t.width,t.height,8,{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:4})};function Y(e,t,n={}){var i=R(e),r=function(e){return"bpmn:IntermediateThrowEvent"===e.$type||"bpmn:EndEvent"===e.$type}(i);return i.get("eventDefinitions")&&i.get("eventDefinitions").length>1?i.get("parallelMultiple")?K(t,e,n,r):H(t,e,n,r):ue(i,"bpmn:MessageEventDefinition")?N(t,e,n,r):ue(i,"bpmn:TimerEventDefinition")?B(t,e,n,r):ue(i,"bpmn:ConditionalEventDefinition")?I(t,e,n,r):ue(i,"bpmn:SignalEventDefinition")?G(t,e,n,r):ue(i,"bpmn:EscalationEventDefinition")?O(t,e,n,r):ue(i,"bpmn:LinkEventDefinition")?j(t,e,n,r):ue(i,"bpmn:ErrorEventDefinition")?V(t,e,n,r):ue(i,"bpmn:CancelEventDefinition")?W(t,e,n,r):ue(i,"bpmn:CompensateEventDefinition")?$(t,e,n,r):ue(i,"bpmn:TerminateEventDefinition")?q(t,e,n,r):null}var X={ParticipantMultiplicityMarker:function(e,t,n={}){var r=ye(t,n),o=ge(t,n);b("participant-multiplicity",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2-6)/r,my:(o-15)/o}}),{strokeWidth:2,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},SubProcessMarker:function(e,t,n={}){Ue(g(e,14,14,0,{strokeWidth:1,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)}),t.width/2-7.5,t.height-20),b("sub-process",e,i.getScaledPath("MARKER_SUB_PROCESS",{xScaleFactor:1.5,yScaleFactor:1.5,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2-7.5)/t.width,my:(t.height-20)/t.height}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},ParallelMarker:function(e,t,n){var r=ye(t,n),o=ge(t,n);b("parallel",e,i.getScaledPath("MARKER_PARALLEL",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.parallel)/r,my:(o-20)/o}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},SequentialMarker:function(e,t,n){b("sequential",e,i.getScaledPath("MARKER_SEQUENTIAL",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.seq)/t.width,my:(t.height-19)/t.height}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},CompensationMarker:function(e,t,n){b("compensation",e,i.getScaledPath("MARKER_COMPENSATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:(t.width/2+n.compensation)/t.width,my:(t.height-13)/t.height}}),{strokeWidth:1,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})},LoopMarker:function(e,t,n){var r=ye(t,n),o=ge(t,n);b("loop",e,i.getScaledPath("MARKER_LOOP",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.loop)/r,my:(o-7)/o}}),{strokeWidth:1.5,fill:"none",stroke:fe(t,p,n.stroke),strokeMiterlimit:.5})},AdhocMarker:function(e,t,n){var r=ye(t,n),o=ge(t,n);b("adhoc",e,i.getScaledPath("MARKER_ADHOC",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:(r/2+n.adhoc)/r,my:(o-15)/o}}),{strokeWidth:1,fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke)})}};function Z(e,t,n,i){X[e](t,n,i)}function J(e,t,n,i={}){i={fill:i.fill,stroke:i.stroke,width:ye(t,i),height:ge(t,i)};var r=R(t),o=n&&n.includes("SubProcessMarker");i=o?{...i,seq:-21,parallel:-22,compensation:-42,loop:-18,adhoc:10}:{...i,seq:-5,parallel:-6,compensation:-27,loop:0,adhoc:10},f(n,(function(n){Z(n,e,t,i)})),r.get("isForCompensation")&&Z("CompensationMarker",e,t,i),A(r,"bpmn:AdHocSubProcess")&&Z("AdhocMarker",e,t,i);var a=r.get("loopCharacteristics"),s=a&&a.get("isSequential");a&&(void 0===s&&Z("LoopMarker",e,t,i),!1===s&&Z("ParallelMarker",e,t,i),!0===s&&Z("SequentialMarker",e,t,i))}function Q(e,t,n={}){n=E({size:{width:100}},n);var i=o.createText(t||"",n);return F(i).add("djs-label"),D(e,i),i}function ee(e,t,n,i={}){var r=R(t),o=de({x:t.x,y:t.y,width:t.width,height:t.height},i);return Q(e,r.name,{align:n,box:o,padding:7,style:{fill:me(t,c,p,i.stroke)}})}function te(e,t,n,i={}){var r=C(n),o=Q(e,t,{box:{height:30,width:r?ge(n,i):ye(n,i)},align:"center-middle",style:{fill:me(n,c,p,i.stroke)}});r&&Ke(o,0,-(-1*ge(n,i)),270)}function ie(e,t,n={}){var{width:i,height:r}=de(t,n);return g(e,i,r,10,{...n,fill:he(t,l,n.fill),fillOpacity:Ze,stroke:fe(t,p,n.stroke)})}function re(e,t,n={}){var i=R(t),r=he(t,l,n.fill),o=fe(t,p,n.stroke);return"One"!==i.get("associationDirection")&&"Both"!==i.get("associationDirection")||(n.markerEnd=d(e,"association-end",r,o)),"Both"===i.get("associationDirection")&&(n.markerStart=d(e,"association-start",r,o)),n=Qe(n,["markerStart","markerEnd"]),x(e,t.waypoints,{...n,stroke:o,strokeDasharray:"0, 5"})}function oe(e,t,n={}){var r=he(t,l,n.fill),o=fe(t,p,n.stroke),a=w(e,i.getScaledPath("DATA_OBJECT_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}}),{fill:r,fillOpacity:Ze,stroke:o});(function(e){var t=e.dataObjectRef;return e.isCollection||t&&t.isCollection})(R(t))&&w(e,i.getScaledPath("DATA_OBJECT_COLLECTION_PATH",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:.33,my:(t.height-18)/t.height}}),{strokeWidth:2,fill:r,stroke:o});return a}function ae(e,t,n={}){return y(e,t.width,t.height,{fillOpacity:Ze,...n,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)})}function se(e,t,n={}){return function(e,t,n,i){var r=t/2,o=n/2,a=[{x:r,y:0},{x:t,y:o},{x:r,y:n},{x:0,y:o}].map((function(e){return e.x+","+e.y})).join(" ");i=u(i);var s=z("polygon",{...i,points:a});return D(e,s),s}(e,t.width,t.height,{fill:he(t,l,n.fill),fillOpacity:Ze,stroke:fe(t,p,n.stroke)})}function pe(e,t,n={}){var i=g(e,ye(t,n),ge(t,n),0,{fill:he(t,l,n.fill),fillOpacity:n.fillOpacity||Ze,stroke:fe(t,p,n.stroke),strokeWidth:1.5}),r=R(t);A(r,"bpmn:Lane")&&te(e,r.get("name"),t,n);return i}function ve(e,t,n={}){var i=ie(e,t,n);(function(e){return e&&!!R(e).triggeredByEvent})(t)&&L(i,{strokeDasharray:"0, 5.5",strokeWidth:2.5});var r=S(t);return ee(e,t,r?"center-top":"center-middle",n),J(e,t,r?void 0:["SubProcessMarker"],n),i}function xe(e,t,n={}){var i=ie(e,t,n);return ee(e,t,"center-middle",n),J(e,t,void 0,n),i}var we=this.handlers={"bpmn:AdHocSubProcess":function(e,t,n={}){return ve(e,t,n=S(t)?Qe(n,["fill","stroke","width","height"]):Qe(n,["fill","stroke"]))},"bpmn:Association":function(e,t,n={}){return re(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:BoundaryEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]);var r=R(t).get("cancelActivity");n={strokeWidth:1.5,fill:he(t,l,n.fill),fillOpacity:1,stroke:fe(t,p,n.stroke)},r||(n.strokeDasharray="6");var o=ae(e,t,n);return y(e,t.width,t.height,3,{...n,fill:"none"}),i&&Y(t,e,n),o},"bpmn:BusinessRuleTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return L(w(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_MAIN",{abspos:{x:8,y:8}})),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),L(w(e,i.getScaledPath("TASK_TYPE_BUSINESS_RULE_HEADER",{abspos:{x:8,y:8}})),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:CallActivity":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),ve(e,t,{strokeWidth:5,...n})},"bpmn:ComplexGateway":function(e,t,n={}){var r=se(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("GATEWAY_COMPLEX",{xScaleFactor:.5,yScaleFactor:.5,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.26}}),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:DataInput":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=oe(e,t,n);return w(e,r,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1}),o},"bpmn:DataInputAssociation":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),re(e,t,{...n,markerEnd:d(e,"association-end",he(t,l,n.fill),fe(t,p,n.stroke))})},"bpmn:DataObject":function(e,t,n={}){return oe(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:DataObjectReference":P("bpmn:DataObject"),"bpmn:DataOutput":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=i.getRawPath("DATA_ARROW"),o=oe(e,t,n);return w(e,r,{strokeWidth:1,fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke)}),o},"bpmn:DataOutputAssociation":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),re(e,t,{...n,markerEnd:d(e,"association-end",he(t,l,n.fill),fe(t,p,n.stroke))})},"bpmn:DataStoreReference":function(e,t,n={}){return n=Qe(n,["fill","stroke"]),w(e,i.getScaledPath("DATA_STORE",{xScaleFactor:1,yScaleFactor:1,containerWidth:t.width,containerHeight:t.height,position:{mx:0,my:.133}}),{fill:he(t,l,n.fill),fillOpacity:Ze,stroke:fe(t,p,n.stroke),strokeWidth:2})},"bpmn:EndEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]);var r=ae(e,t,{...n,strokeWidth:4});return i&&Y(t,e,n),r},"bpmn:EventBasedGateway":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=R(t),o=se(e,t,n);y(e,t.width,t.height,.2*t.height,{fill:he(t,"none",n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1});var a=r.get("eventGatewayType"),s=!!r.get("instantiate");if("Parallel"===a){var l=i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.474,my:.296}});w(e,l,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1})}else"Exclusive"===a&&(s||y(e,t.width,t.height,.26*t.height,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1}),function(){var r=i.getScaledPath("GATEWAY_EVENT_BASED",{xScaleFactor:.18,yScaleFactor:.18,containerWidth:t.width,containerHeight:t.height,position:{mx:.36,my:.44}});w(e,r,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:2})}());return o},"bpmn:ExclusiveGateway":function(e,t,n={}){var r=se(e,t,n=Qe(n,["fill","stroke"])),o=i.getScaledPath("GATEWAY_EXCLUSIVE",{xScaleFactor:.4,yScaleFactor:.4,containerWidth:t.width,containerHeight:t.height,position:{mx:.32,my:.3}});return k(t).get("isMarkerVisible")&&w(e,o,{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:Gateway":function(e,t,n={}){return se(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:Group":function(e,t,n={}){return n=Qe(n,["fill","stroke","width","height"]),g(e,t.width,t.height,10,{stroke:fe(t,p,n.stroke),strokeWidth:1.5,strokeDasharray:"10, 6, 0, 6",fill:"none",pointerEvents:"none",width:ye(t,n),height:ge(t,n)})},"bpmn:InclusiveGateway":function(e,t,n={}){var i=se(e,t,n=Qe(n,["fill","stroke"]));return y(e,t.width,t.height,.24*t.height,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:2.5}),i},"bpmn:IntermediateEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]);var r=ae(e,t,{...n,strokeWidth:1.5});return y(e,t.width,t.height,3,{fill:"none",stroke:fe(t,p,n.stroke),strokeWidth:1.5}),i&&Y(t,e,n),r},"bpmn:IntermediateCatchEvent":P("bpmn:IntermediateEvent"),"bpmn:IntermediateThrowEvent":P("bpmn:IntermediateEvent"),"bpmn:Lane":function(e,t,n={}){return n=Qe(n,["fill","stroke","width","height"]),pe(e,t,{...n,fillOpacity:.25})},"bpmn:ManualTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_MANUAL",{abspos:{x:17,y:15}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:.5}),r},"bpmn:MessageFlow":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r=R(t),o=k(t),a=he(t,l,n.fill),s=fe(t,p,n.stroke),c=x(e,t.waypoints,{markerEnd:d(e,"messageflow-end",a,s),markerStart:d(e,"messageflow-start",a,s),stroke:s,strokeDasharray:"10, 11",strokeWidth:1.5});if(r.get("messageRef")){var u=c.getPointAtLength(c.getTotalLength()/2),h=i.getScaledPath("MESSAGE_FLOW_MARKER",{abspos:{x:u.x,y:u.y}}),f={strokeWidth:1};"initiating"===o.get("messageVisibleKind")?(f.fill=a,f.stroke=s):(f.fill=s,f.stroke=a);var m=w(e,h,f),y=Q(e,r.get("messageRef").get("name"),{align:"center-top",fitBox:!0,style:{fill:s}}),g=m.getBBox(),v=y.getBBox();Ke(y,u.x-v.width/2,u.y+g.height/2+10,0)}return c},"bpmn:ParallelGateway":function(e,t,n={}){var r=se(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("GATEWAY_PARALLEL",{xScaleFactor:.6,yScaleFactor:.6,containerWidth:t.width,containerHeight:t.height,position:{mx:.46,my:.2}}),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:Participant":function(e,t,n={}){var i=pe(e,t,n=Qe(n,["fill","stroke","width","height"])),r=S(t),o=C(t),a=R(t),s=a.get("name");if(r){v(e,o?[{x:30,y:0},{x:30,y:ge(t,n)}]:[{x:0,y:30},{x:ye(t,n),y:30}],{stroke:fe(t,p,n.stroke),strokeWidth:1.5}),te(e,s,t,n)}else{var l=de(t,n);o||(l.height=ye(t,n),l.width=ge(t,n));var u=Q(e,s,{box:l,align:"center-middle",style:{fill:me(t,c,p,n.stroke)}});if(!o)Ke(u,0,-(-1*ge(t,n)),270)}return a.get("participantMultiplicity")&&Z("ParticipantMultiplicityMarker",e,t,n),i},"bpmn:ReceiveTask":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var r,o=R(t),a=xe(e,t,n);return o.get("instantiate")?(y(e,28,28,4.4,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),r=i.getScaledPath("TASK_TYPE_INSTANTIATING_SEND",{abspos:{x:7.77,y:9.52}})):r=i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:.9,yScaleFactor:.9,containerWidth:21,containerHeight:14,position:{mx:.3,my:.4}}),w(e,r,{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),a},"bpmn:ScriptTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_SCRIPT",{abspos:{x:15,y:20}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:SendTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_SEND",{xScaleFactor:1,yScaleFactor:1,containerWidth:21,containerHeight:14,position:{mx:.285,my:.357}}),{fill:fe(t,p,n.stroke),stroke:he(t,l,n.fill),strokeWidth:1}),r},"bpmn:SequenceFlow":function(e,t,n={}){n=Qe(n,["fill","stroke"]);var i=he(t,l,n.fill),r=fe(t,p,n.stroke),o=x(e,t.waypoints,{markerEnd:d(e,"sequenceflow-end",i,r),stroke:r}),a=R(t),{source:s}=t;if(s){var c=R(s);a.get("conditionExpression")&&A(c,"bpmn:Activity")&&L(o,{markerStart:d(e,"conditional-flow-marker",i,r)}),c.get("default")&&(A(c,"bpmn:Gateway")||A(c,"bpmn:Activity"))&&c.get("default")===a&&L(o,{markerStart:d(e,"conditional-default-flow-marker",i,r)})}return o},"bpmn:ServiceTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return y(e,10,10,{fill:he(t,l,n.fill),stroke:"none",transform:"translate(6, 6)"}),w(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:12,y:18}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),y(e,10,10,{fill:he(t,l,n.fill),stroke:"none",transform:"translate(11, 10)"}),w(e,i.getScaledPath("TASK_TYPE_SERVICE",{abspos:{x:17,y:22}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:1}),r},"bpmn:StartEvent":function(e,t,n={}){var{renderIcon:i=!0}=n;n=Qe(n,["fill","stroke"]),R(t).get("isInterrupting")||(n={...n,strokeDasharray:"6"});var r=ae(e,t,n);return i&&Y(t,e,n),r},"bpmn:SubProcess":function(e,t,n={}){return ve(e,t,n=S(t)?Qe(n,["fill","stroke","width","height"]):Qe(n,["fill","stroke"]))},"bpmn:Task":function(e,t,n={}){return xe(e,t,n=Qe(n,["fill","stroke"]))},"bpmn:TextAnnotation":function(e,t,n={}){n=Qe(n,["fill","stroke","width","height"]);var{width:r,height:o}=de(t,n),a=g(e,r,o,0,0,{fill:"none",stroke:"none"});return w(e,i.getScaledPath("TEXT_ANNOTATION",{xScaleFactor:1,yScaleFactor:1,containerWidth:r,containerHeight:o,position:{mx:0,my:0}}),{stroke:fe(t,p,n.stroke)}),Q(e,R(t).get("text")||"",{align:"left-top",box:de(t,n),padding:7,style:{fill:me(t,c,p,n.stroke)}}),a},"bpmn:Transaction":function(e,t,i={}){i=S(t)?Qe(i,["fill","stroke","width","height"]):Qe(i,["fill","stroke"]);var r=ve(e,t,{strokeWidth:1.5,...i}),o=n.style(["no-fill","no-events"],{stroke:fe(t,p,i.stroke),strokeWidth:1.5});return S(t)||(i={}),g(e,ye(t,i),ge(t,i),7,3,o),r},"bpmn:UserTask":function(e,t,n={}){var r=xe(e,t,n=Qe(n,["fill","stroke"]));return w(e,i.getScaledPath("TASK_TYPE_USER_1",{abspos:{x:15,y:12}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:.5}),w(e,i.getScaledPath("TASK_TYPE_USER_2",{abspos:{x:15,y:12}}),{fill:he(t,l,n.fill),stroke:fe(t,p,n.stroke),strokeWidth:.5}),w(e,i.getScaledPath("TASK_TYPE_USER_3",{abspos:{x:15,y:12}}),{fill:fe(t,p,n.stroke),stroke:fe(t,p,n.stroke),strokeWidth:.5}),r},label:function(e,t,n={}){return function(e,t,n={}){var i={width:90,height:30,x:t.width/2+t.x,y:t.height/2+t.y};return Q(e,T(t),{box:i,fitBox:!0,style:E({},o.getExternalStyle(),{fill:me(t,c,p,n.stroke)})})}(e,t,n)}};this._drawPath=w,this._renderer=M}function Qe(e,t=[]){return t.reduce(((t,n)=>(e[n]&&(t[n]=e[n]),t)),{})}e(Je,_),Je.$inject=["config.bpmnRenderer","eventBus","styles","pathMap","canvas","textRenderer"],Je.prototype.canRender=function(e){return A(e,"bpmn:BaseElement")},Je.prototype.drawShape=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},Je.prototype.drawConnection=function(e,t,n={}){var{type:i}=t;return this._renderer(i)(e,t,n)},Je.prototype.getShapePath=function(e){return A(e,"bpmn:Event")?function(e){var t=e.x+e.width/2,n=e.y+e.height/2,i=e.width/2;return ie([["M",t,n],["m",0,-i],["a",i,i,0,1,1,0,2*i],["a",i,i,0,1,1,0,-2*i],["z"]])}(e):A(e,"bpmn:Activity")?function(e,t){var n=e.x,i=e.y,r=e.width,o=e.height;return ie([["M",n+t,i],["l",r-2*t,0],["a",t,t,0,0,1,t,t],["l",0,o-2*t],["a",t,t,0,0,1,-t,t],["l",2*t-r,0],["a",t,t,0,0,1,-t,-t],["l",0,2*t-o],["a",t,t,0,0,1,t,-t],["z"]])}(e,10):A(e,"bpmn:Gateway")?function(e){var t=e.width/2,n=e.height/2;return ie([["M",e.x+t,e.y],["l",t,n],["l",-t,n],["l",-t,-n],["z"]])}(e):function(e){var t=e.x,n=e.y,i=e.width;return ie([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])}(e)};var et={width:150,height:50};function tt(e,t){var n;t.textContent=e;try{var i,r=""===e;return t.textContent=r?"dummy":e,i={width:(n=t.getBBox()).width+2*n.x,height:n.height},r&&(i.width=0),i}catch(e){return console.log(e),{width:0,height:0}}}function nt(e,t,n){for(var i,r=e.shift(),o=r;;){if((i=tt(o,n)).width=o?i.width:0," "===o||""===o||i.width1)for(;n=i.shift();){if(!(n.length+oe?t.width:e}),0),g=o.top;"middle"===r.vertical&&(g+=(n.height-d)/2),g-=(l||c[0].height)/4;var v=z("text");return L(v,i),f(c,(function(e){var t;switch(g+=l||e.height,r.horizontal){case"left":t=o.left;break;case"right":t=(s?y:u)-o.right-e.width;break;default:t=Math.max(((s?y:u)-e.width)/2+o.left,0)}var n=z("tspan");L(n,{x:t,y:g}),n.textContent=e.text,D(v,n)})),ee(h),{dimensions:{width:y,height:d},element:v}};function st(e){var t=E({fontFamily:"Arial, sans-serif",fontSize:12,fontWeight:"normal",lineHeight:1.2},e&&e.defaultStyle||{}),n=parseInt(t.fontSize,10)-1,i=E({},t,{fontSize:n},e&&e.externalStyle||{}),r=new at({style:t});this.getExternalLabelBounds=function(e,t){var n=r.getDimensions(t,{box:{width:90,height:30},style:i});return{x:Math.round(e.x+e.width/2-n.width/2),y:Math.round(e.y),width:Math.ceil(n.width),height:Math.ceil(n.height)}},this.getTextAnnotationBounds=function(e,n){var i=r.getDimensions(n,{box:e,style:t,align:"left-top",padding:5});return{x:e.x,y:e.y,width:e.width,height:Math.max(30,Math.round(i.height))}},this.createText=function(e,t){return r.createText(e,t||{})},this.getDefaultStyle=function(){return t},this.getExternalStyle=function(){return i}}st.$inject=["config.textRenderer"];var lt=/\{([^{}]+)\}/g,pt=/(?:(?:^|\.)(.+?)(?=\[|\.|$|\()|\[('|")(.+?)\2\])(\(\))?/g;var ct={__init__:["bpmnRenderer"],bpmnRenderer:["type",Je],textRenderer:["type",st],pathMap:["type",function(){this.pathMap={EVENT_MESSAGE:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:36,width:36,heightElements:[6,14],widthElements:[10.5,21]},EVENT_SIGNAL:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x1},0 Z",height:36,width:36,heightElements:[18],widthElements:[10,20]},EVENT_ESCALATION:{d:"M {mx},{my} l {e.x0},{e.y0} l -{e.x0},-{e.y1} l -{e.x0},{e.y1} Z",height:36,width:36,heightElements:[20,7],widthElements:[8]},EVENT_CONDITIONAL:{d:"M {e.x0},{e.y0} l {e.x1},0 l 0,{e.y2} l -{e.x1},0 Z M {e.x2},{e.y3} l {e.x0},0 M {e.x2},{e.y4} l {e.x0},0 M {e.x2},{e.y5} l {e.x0},0 M {e.x2},{e.y6} l {e.x0},0 M {e.x2},{e.y7} l {e.x0},0 M {e.x2},{e.y8} l {e.x0},0 ",height:36,width:36,heightElements:[8.5,14.5,18,11.5,14.5,17.5,20.5,23.5,26.5],widthElements:[10.5,14.5,12.5]},EVENT_LINK:{d:"m {mx},{my} 0,{e.y0} -{e.x1},0 0,{e.y1} {e.x1},0 0,{e.y0} {e.x0},-{e.y2} -{e.x0},-{e.y2} z",height:36,width:36,heightElements:[4.4375,6.75,7.8125],widthElements:[9.84375,13.5]},EVENT_ERROR:{d:"m {mx},{my} {e.x0},-{e.y0} {e.x1},-{e.y1} {e.x2},{e.y2} {e.x3},-{e.y3} -{e.x4},{e.y4} -{e.x5},-{e.y5} z",height:36,width:36,heightElements:[.023,8.737,8.151,16.564,10.591,8.714],widthElements:[.085,6.672,6.97,4.273,5.337,6.636]},EVENT_CANCEL_45:{d:"m {mx},{my} -{e.x1},0 0,{e.x0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:36,width:36,heightElements:[4.75,8.5],widthElements:[4.75,8.5]},EVENT_COMPENSATION:{d:"m {mx},{my} {e.x0},-{e.y0} 0,{e.y1} z m {e.x1},-{e.y2} {e.x2},-{e.y3} 0,{e.y1} -{e.x2},-{e.y3} z",height:36,width:36,heightElements:[6.5,13,.4,6.1],widthElements:[9,9.3,8.7]},EVENT_TIMER_WH:{d:"M {mx},{my} l {e.x0},-{e.y0} m -{e.x0},{e.y0} l {e.x1},{e.y1} ",height:36,width:36,heightElements:[10,2],widthElements:[3,7]},EVENT_TIMER_LINE:{d:"M {mx},{my} m {e.x0},{e.y0} l -{e.x1},{e.y1} ",height:36,width:36,heightElements:[10,3],widthElements:[0,0]},EVENT_MULTIPLE:{d:"m {mx},{my} {e.x1},-{e.y0} {e.x1},{e.y0} -{e.x0},{e.y1} -{e.x2},0 z",height:36,width:36,heightElements:[6.28099,12.56199],widthElements:[3.1405,9.42149,12.56198]},EVENT_PARALLEL_MULTIPLE:{d:"m {mx},{my} {e.x0},0 0,{e.y1} {e.x1},0 0,{e.y0} -{e.x1},0 0,{e.y1} -{e.x0},0 0,-{e.y1} -{e.x1},0 0,-{e.y0} {e.x1},0 z",height:36,width:36,heightElements:[2.56228,7.68683],widthElements:[2.56228,7.68683]},GATEWAY_EXCLUSIVE:{d:"m {mx},{my} {e.x0},{e.y0} {e.x1},{e.y0} {e.x2},0 {e.x4},{e.y2} {e.x4},{e.y1} {e.x2},0 {e.x1},{e.y3} {e.x0},{e.y3} {e.x3},0 {e.x5},{e.y1} {e.x5},{e.y2} {e.x3},0 z",height:17.5,width:17.5,heightElements:[8.5,6.5312,-6.5312,-8.5],widthElements:[6.5,-6.5,3,-3,5,-5]},GATEWAY_PARALLEL:{d:"m {mx},{my} 0,{e.y1} -{e.x1},0 0,{e.y0} {e.x1},0 0,{e.y1} {e.x0},0 0,-{e.y1} {e.x1},0 0,-{e.y0} -{e.x1},0 0,-{e.y1} -{e.x0},0 z",height:30,width:30,heightElements:[5,12.5],widthElements:[5,12.5]},GATEWAY_EVENT_BASED:{d:"m {mx},{my} {e.x0},{e.y0} {e.x0},{e.y1} {e.x1},{e.y2} {e.x2},0 z",height:11,width:11,heightElements:[-6,6,12,-12],widthElements:[9,-3,-12]},GATEWAY_COMPLEX:{d:"m {mx},{my} 0,{e.y0} -{e.x0},-{e.y1} -{e.x1},{e.y2} {e.x0},{e.y1} -{e.x2},0 0,{e.y3} {e.x2},0 -{e.x0},{e.y1} l {e.x1},{e.y2} {e.x0},-{e.y1} 0,{e.y0} {e.x3},0 0,-{e.y0} {e.x0},{e.y1} {e.x1},-{e.y2} -{e.x0},-{e.y1} {e.x2},0 0,-{e.y3} -{e.x2},0 {e.x0},-{e.y1} -{e.x1},-{e.y2} -{e.x0},{e.y1} 0,-{e.y0} -{e.x3},0 z",height:17.125,width:17.125,heightElements:[4.875,3.4375,2.125,3],widthElements:[3.4375,2.125,4.875,3]},DATA_OBJECT_PATH:{d:"m 0,0 {e.x1},0 {e.x0},{e.y0} 0,{e.y1} -{e.x2},0 0,-{e.y2} {e.x1},0 0,{e.y0} {e.x0},0",height:61,width:51,heightElements:[10,50,60],widthElements:[10,40,50,60]},DATA_OBJECT_COLLECTION_PATH:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},DATA_ARROW:{d:"m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z",height:61,width:51,heightElements:[],widthElements:[]},DATA_STORE:{d:"m {mx},{my} l 0,{e.y2} c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 l 0,-{e.y2} c -{e.x0},-{e.y1} -{e.x1},-{e.y1} -{e.x2},0c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0 m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0m -{e.x2},{e.y0}c {e.x0},{e.y1} {e.x1},{e.y1} {e.x2},0",height:61,width:61,heightElements:[7,10,45],widthElements:[2,58,60]},TEXT_ANNOTATION:{d:"m {mx}, {my} m 10,0 l -10,0 l 0,{e.y0} l 10,0",height:30,width:10,heightElements:[30],widthElements:[10]},MARKER_SUB_PROCESS:{d:"m{mx},{my} m 7,2 l 0,10 m -5,-5 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_PARALLEL:{d:"m{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10",height:10,width:10,heightElements:[],widthElements:[]},MARKER_SEQUENTIAL:{d:"m{mx},{my} m 0,3 l 10,0 m -10,3 l 10,0 m -10,3 l 10,0",height:10,width:10,heightElements:[],widthElements:[]},MARKER_COMPENSATION:{d:"m {mx},{my} 7,-5 0,10 z m 7.1,-0.3 6.9,-4.7 0,10 -6.9,-4.7 z",height:10,width:21,heightElements:[],widthElements:[]},MARKER_LOOP:{d:"m {mx},{my} c 3.526979,0 6.386161,-2.829858 6.386161,-6.320661 0,-3.490806 -2.859182,-6.320661 -6.386161,-6.320661 -3.526978,0 -6.38616,2.829855 -6.38616,6.320661 0,1.745402 0.714797,3.325567 1.870463,4.469381 0.577834,0.571908 1.265885,1.034728 2.029916,1.35457 l -0.718163,-3.909793 m 0.718163,3.909793 -3.885211,0.802902",height:13.9,width:13.7,heightElements:[],widthElements:[]},MARKER_ADHOC:{d:"m {mx},{my} m 0.84461,2.64411 c 1.05533,-1.23780996 2.64337,-2.07882 4.29653,-1.97997996 2.05163,0.0805 3.85579,1.15803 5.76082,1.79107 1.06385,0.34139996 2.24454,0.1438 3.18759,-0.43767 0.61743,-0.33642 1.2775,-0.64078 1.7542,-1.17511 0,0.56023 0,1.12046 0,1.6807 -0.98706,0.96237996 -2.29792,1.62393996 -3.6918,1.66181996 -1.24459,0.0927 -2.46671,-0.2491 -3.59505,-0.74812 -1.35789,-0.55965 -2.75133,-1.33436996 -4.27027,-1.18121996 -1.37741,0.14601 -2.41842,1.13685996 -3.44288,1.96782996 z",height:4,width:15,heightElements:[],widthElements:[]},TASK_TYPE_SEND:{d:"m {mx},{my} l 0,{e.y1} l {e.x1},0 l 0,-{e.y1} z l {e.x0},{e.y0} l {e.x0},-{e.y0}",height:14,width:21,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_SCRIPT:{d:"m {mx},{my} c 9.966553,-6.27276 -8.000926,-7.91932 2.968968,-14.938 l -8.802728,0 c -10.969894,7.01868 6.997585,8.66524 -2.968967,14.938 z m -7,-12 l 5,0 m -4.5,3 l 4.5,0 m -3,3 l 5,0m -4,3 l 5,0",height:15,width:12.6,heightElements:[6,14],widthElements:[10.5,21]},TASK_TYPE_USER_1:{d:"m {mx},{my} c 0.909,-0.845 1.594,-2.049 1.594,-3.385 0,-2.554 -1.805,-4.62199999 -4.357,-4.62199999 -2.55199998,0 -4.28799998,2.06799999 -4.28799998,4.62199999 0,1.348 0.974,2.562 1.89599998,3.405 -0.52899998,0.187 -5.669,2.097 -5.794,4.7560005 v 6.718 h 17 v -6.718 c 0,-2.2980005 -5.5279996,-4.5950005 -6.0509996,-4.7760005 zm -8,6 l 0,5.5 m 11,0 l 0,-5"},TASK_TYPE_USER_2:{d:"m {mx},{my} m 2.162,1.009 c 0,2.4470005 -2.158,4.4310005 -4.821,4.4310005 -2.66499998,0 -4.822,-1.981 -4.822,-4.4310005 "},TASK_TYPE_USER_3:{d:"m {mx},{my} m -6.9,-3.80 c 0,0 2.25099998,-2.358 4.27399998,-1.177 2.024,1.181 4.221,1.537 4.124,0.965 -0.098,-0.57 -0.117,-3.79099999 -4.191,-4.13599999 -3.57499998,0.001 -4.20799998,3.36699999 -4.20699998,4.34799999 z"},TASK_TYPE_MANUAL:{d:"m {mx},{my} c 0.234,-0.01 5.604,0.008 8.029,0.004 0.808,0 1.271,-0.172 1.417,-0.752 0.227,-0.898 -0.334,-1.314 -1.338,-1.316 -2.467,-0.01 -7.886,-0.004 -8.108,-0.004 -0.014,-0.079 0.016,-0.533 0,-0.61 0.195,-0.042 8.507,0.006 9.616,0.002 0.877,-0.007 1.35,-0.438 1.353,-1.208 0.003,-0.768 -0.479,-1.09 -1.35,-1.091 -2.968,-0.002 -9.619,-0.013 -9.619,-0.013 v -0.591 c 0,0 5.052,-0.016 7.225,-0.016 0.888,-0.002 1.354,-0.416 1.351,-1.193 -0.006,-0.761 -0.492,-1.196 -1.361,-1.196 -3.473,-0.005 -10.86,-0.003 -11.0829995,-0.003 -0.022,-0.047 -0.045,-0.094 -0.069,-0.139 0.3939995,-0.319 2.0409995,-1.626 2.4149995,-2.017 0.469,-0.4870005 0.519,-1.1650005 0.162,-1.6040005 -0.414,-0.511 -0.973,-0.5 -1.48,-0.236 -1.4609995,0.764 -6.5999995,3.6430005 -7.7329995,4.2710005 -0.9,0.499 -1.516,1.253 -1.882,2.19 -0.37000002,0.95 -0.17,2.01 -0.166,2.979 0.004,0.718 -0.27300002,1.345 -0.055,2.063 0.629,2.087 2.425,3.312 4.859,3.318 4.6179995,0.014 9.2379995,-0.139 13.8569995,-0.158 0.755,-0.004 1.171,-0.301 1.182,-1.033 0.012,-0.754 -0.423,-0.969 -1.183,-0.973 -1.778,-0.01 -5.824,-0.004 -6.04,-0.004 10e-4,-0.084 0.003,-0.586 10e-4,-0.67 z"},TASK_TYPE_INSTANTIATING_SEND:{d:"m {mx},{my} l 0,8.4 l 12.6,0 l 0,-8.4 z l 6.3,3.6 l 6.3,-3.6"},TASK_TYPE_SERVICE:{d:"m {mx},{my} v -1.71335 c 0.352326,-0.0705 0.703932,-0.17838 1.047628,-0.32133 0.344416,-0.14465 0.665822,-0.32133 0.966377,-0.52145 l 1.19431,1.18005 1.567487,-1.57688 -1.195028,-1.18014 c 0.403376,-0.61394 0.683079,-1.29908 0.825447,-2.01824 l 1.622133,-0.01 v -2.2196 l -1.636514,0.01 c -0.07333,-0.35153 -0.178319,-0.70024 -0.323564,-1.04372 -0.145244,-0.34406 -0.321407,-0.6644 -0.522735,-0.96217 l 1.131035,-1.13631 -1.583305,-1.56293 -1.129598,1.13589 c -0.614052,-0.40108 -1.302883,-0.68093 -2.022633,-0.82247 l 0.0093,-1.61852 h -2.241173 l 0.0042,1.63124 c -0.353763,0.0736 -0.705369,0.17977 -1.049785,0.32371 -0.344415,0.14437 -0.665102,0.32092 -0.9635006,0.52046 l -1.1698628,-1.15823 -1.5667691,1.5792 1.1684265,1.15669 c -0.4026573,0.61283 -0.68308,1.29797 -0.8247287,2.01713 l -1.6588041,0.003 v 2.22174 l 1.6724648,-0.006 c 0.073327,0.35077 0.1797598,0.70243 0.3242851,1.04472 0.1452428,0.34448 0.3214064,0.6644 0.5227339,0.96066 l -1.1993431,1.19723 1.5840256,1.56011 1.1964668,-1.19348 c 0.6140517,0.40346 1.3028827,0.68232 2.0233517,0.82331 l 7.19e-4,1.69892 h 2.226848 z m 0.221462,-3.9957 c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_SERVICE_FILL:{d:"m {mx},{my} c -1.788948,0.7502 -3.8576,-0.0928 -4.6097055,-1.87438 -0.7521065,-1.78321 0.090598,-3.84627 1.8802645,-4.59604 1.78823,-0.74936 3.856881,0.0929 4.608987,1.87437 0.752106,1.78165 -0.0906,3.84612 -1.879546,4.59605 z"},TASK_TYPE_BUSINESS_RULE_HEADER:{d:"m {mx},{my} 0,4 20,0 0,-4 z"},TASK_TYPE_BUSINESS_RULE_MAIN:{d:"m {mx},{my} 0,12 20,0 0,-12 zm 0,8 l 20,0 m -13,-4 l 0,8"},MESSAGE_FLOW_MARKER:{d:"m {mx},{my} m -10.5 ,-7 l 0,14 l 21,0 l 0,-14 z l 10.5,6 l 10.5,-6"}},this.getRawPath=function(e){return this.pathMap[e].d},this.getScaledPath=function(e,t){var n,i,r=this.pathMap[e];t.abspos?(n=t.abspos.x,i=t.abspos.y):(n=t.containerWidth*t.position.mx,i=t.containerHeight*t.position.my);var o={};if(t.position){for(var a=t.containerHeight/r.height*t.yScaleFactor,s=t.containerWidth/r.width*t.xScaleFactor,l=0;l':""}function gt(e,t,n){return E({id:e.id,type:e.$type,businessObject:e,di:t},n)}function vt(e,t,n){var i=e.waypoint;return!i||i.length<2?[dt(t),dt(n)]:i.map((function(e){return{x:e.x,y:e.y}}))}function xt(e,t,n){return new Error(`element ${yt(t)} referenced by ${yt(e)}#${n} not yet drawn`)}function wt(e,t,n,i,r){this._eventBus=e,this._canvas=t,this._elementFactory=n,this._elementRegistry=i,this._textRenderer=r}wt.$inject=["eventBus","canvas","elementFactory","elementRegistry","textRenderer"],wt.prototype.add=function(e,t,n){var i,r,o,a,s,l,p;if(A(t,"bpmndi:BPMNPlane")){var c=A(e,"bpmn:SubProcess")?{id:e.id+"_plane"}:{};i=this._elementFactory.createRoot(gt(e,t,c)),this._canvas.addRootElement(i)}else if(A(t,"bpmndi:BPMNShape")){var u=!S(e,t),h=function(e){return A(e,"bpmn:Group")}(e);r=n&&(n.hidden||n.collapsed);var f=t.bounds;i=this._elementFactory.createShape(gt(e,t,{collapsed:u,hidden:r,x:Math.round(f.x),y:Math.round(f.y),width:Math.round(f.width),height:Math.round(f.height),isFrame:h})),A(e,"bpmn:BoundaryEvent")&&this._attachBoundary(e,i),A(e,"bpmn:Lane")&&(o=0),A(e,"bpmn:DataStoreReference")&&(a=n,s=dt(f),l=s.x,p=s.y,l>=a.x&&l<=a.x+a.width&&p>=a.y&&p<=a.y+a.height||(n=this._canvas.findRoot(n))),this._canvas.addShape(i,n,o)}else{if(!A(t,"bpmndi:BPMNEdge"))throw new Error(`unknown di ${yt(t)} for element ${yt(e)}`);var m=this._getSource(e),d=this._getTarget(e);r=n&&(n.hidden||n.collapsed),i=this._elementFactory.createConnection(gt(e,t,{hidden:r,source:m,target:d,waypoints:vt(t,m,d)})),A(e,"bpmn:DataAssociation")&&(n=this._canvas.findRoot(n)),this._canvas.addConnection(i,n,o)}return function(e){return A(e,"bpmn:Event")||A(e,"bpmn:Gateway")||A(e,"bpmn:DataStoreReference")||A(e,"bpmn:DataObjectReference")||A(e,"bpmn:DataInput")||A(e,"bpmn:DataOutput")||A(e,"bpmn:SequenceFlow")||A(e,"bpmn:MessageFlow")||A(e,"bpmn:Group")}(e)&&T(i)&&this.addLabel(e,t,i),this._eventBus.fire("bpmnElement.added",{element:i}),i},wt.prototype._attachBoundary=function(e,t){var n=e.attachedToRef;if(!n)throw new Error(`missing ${yt(e)}#attachedToRef`);var i=this._elementRegistry.get(n.id),r=i&&i.attachers;if(!i)throw xt(e,n,"attachedToRef");t.host=i,r||(i.attachers=r=[]),-1===r.indexOf(t)&&r.push(t)},wt.prototype.addLabel=function(e,t,n){var i,r,o;return i=N(t,n),(r=T(n))&&(i=this._textRenderer.getExternalLabelBounds(i,r)),o=this._elementFactory.createLabel(gt(e,t,{id:e.id+"_label",labelTarget:n,type:"label",hidden:n.hidden||!T(n),x:Math.round(i.x),y:Math.round(i.y),width:Math.round(i.width),height:Math.round(i.height)})),this._canvas.addShape(o,n.parent)},wt.prototype._getConnectedElement=function(e,t){var n,i,r=e.$type;if(i=e[t+"Ref"],"source"===t&&"bpmn:DataInputAssociation"===r&&(i=i&&i[0]),("source"===t&&"bpmn:DataOutputAssociation"===r||"target"===t&&"bpmn:DataInputAssociation"===r)&&(i=e.$parent),n=i&&this._getElement(i))return n;throw i?xt(e,i,t+"Ref"):new Error(`${yt(e)}#${t} Ref not specified`)},wt.prototype._getSource=function(e){return this._getConnectedElement(e,"source")},wt.prototype._getTarget=function(e){return this._getConnectedElement(e,"target")},wt.prototype._getElement=function(e){return this._elementRegistry.get(e.id)};var bt={__depends__:[ct,{__depends__:[ut],bpmnImporter:["type",wt]}]};function Et(e,t){var n,i,r,a;return t=!!t,o(e)||(e=[e]),f(e,(function(e){var o=e;e.waypoints&&!t&&(o=Et(e.waypoints,!0));var s=o.x,l=o.y,p=o.height||0,c=o.width||0;(sr||void 0===r)&&(r=s+c),(l+p>a||void 0===a)&&(a=l+p)})),{x:n,y:i,height:a-i,width:r-n}}function _t(e){return"waypoints"in e?"connection":"x"in e?"shape":"root"}function At(e){return!(!e||!e.isFrame)}function Rt(e){this._counter=0,this._prefix=(e?e+"-":"")+Math.floor(1e9*Math.random())+"-"}Rt.prototype.next=function(){return this._prefix+ ++this._counter};var kt=new Rt("ov");function St(e,t,n,i){var r,o;this._eventBus=t,this._canvas=n,this._elementRegistry=i,this._ids=kt,this._overlayDefaults=E({show:null,scale:!0},e&&e.defaults),this._overlays={},this._overlayContainers=[],this._overlayRoot=(r=n.getContainer(),Re(o=ze('
    '),{position:"absolute",width:0,height:0}),r.insertBefore(o,r.firstChild),o),this._init()}function Ct(e,t,n){Re(e,{left:t+"px",top:n+"px"})}function Mt(e,t){e.style.display=!1===t?"none":""}function Pt(e,t){e.style["transform-origin"]="top left",["","-ms-","-webkit-"].forEach((function(n){e.style[n+"transform"]=t}))}St.$inject=["config.overlays","eventBus","canvas","elementRegistry"],St.prototype.get=function(e){if(p(e)&&(e={id:e}),p(e.element)&&(e.element=this._elementRegistry.get(e.element)),e.element){var t=this._getOverlayContainer(e.element,!0);return t?e.type?h(t.overlays,g({type:e.type})):t.overlays.slice():[]}return e.type?h(this._overlays,g({type:e.type})):e.id?this._overlays[e.id]:null},St.prototype.add=function(e,t,n){if(a(t)&&(n=t,t=null),e.id||(e=this._elementRegistry.get(e)),!n.position)throw new Error("must specifiy overlay position");if(!n.html)throw new Error("must specifiy overlay html");if(!e)throw new Error("invalid element specified");var i=this._ids.next();return n=E({},this._overlayDefaults,n,{id:i,type:t,element:e,html:n.html}),this._addOverlay(n),i},St.prototype.remove=function(e){var t=this.get(e)||[];o(t)||(t=[t]);var n=this;f(t,(function(e){var t=n._getOverlayContainer(e.element,!0);if(e&&(He(e.html),He(e.htmlContainer),delete e.htmlContainer,delete e.element,delete n._overlays[e.id]),t){var i=t.overlays.indexOf(e);-1!==i&&t.overlays.splice(i,1)}}))},St.prototype.isShown=function(){return"none"!==this._overlayRoot.style.display},St.prototype.show=function(){Mt(this._overlayRoot)},St.prototype.hide=function(){Mt(this._overlayRoot,!1)},St.prototype.clear=function(){this._overlays={},this._overlayContainers=[],Pe(this._overlayRoot)},St.prototype._updateOverlayContainer=function(e){var t=e.element,n=e.html,i=t.x,r=t.y;if(t.waypoints){var o=Et(t);i=o.x,r=o.y}Ct(n,i,r),ke(e.html,"data-container-id",t.id)},St.prototype._updateOverlay=function(e){var t,n,i=e.position,r=e.htmlContainer,o=e.element,a=i.left,s=i.top;void 0!==i.right&&(t=o.waypoints?Et(o).width:o.width,a=-1*i.right+t);void 0!==i.bottom&&(n=o.waypoints?Et(o).height:o.height,s=-1*i.bottom+n);Ct(r,a||0,s||0),this._updateOverlayVisibilty(e,this._canvas.viewbox())},St.prototype._createOverlayContainer=function(e){var t=ze('
    ');Re(t,{position:"absolute"}),this._overlayRoot.appendChild(t);var n={html:t,element:e,overlays:[]};return this._updateOverlayContainer(n),this._overlayContainers.push(n),n},St.prototype._updateRoot=function(e){var t=e.scale||1,n="matrix("+[t,0,0,t,-1*e.x*t,-1*e.y*t].join(",")+")";Pt(this._overlayRoot,n)},St.prototype._getOverlayContainer=function(e,t){var n=u(this._overlayContainers,(function(t){return t.element===e}));return n||t?n:this._createOverlayContainer(e)},St.prototype._addOverlay=function(e){var t,n,i=e.id,r=e.element,o=e.html;o.get&&o.constructor.prototype.jquery&&(o=o.get(0)),p(o)&&(o=ze(o)),n=this._getOverlayContainer(r),Re(t=ze('
    '),{position:"absolute"}),t.appendChild(o),e.type&&Ce(t).add("djs-overlay-"+e.type),Mt(t,this._canvas.findRoot(r)===this._canvas.getRootElement()),e.htmlContainer=t,n.overlays.push(e),n.html.appendChild(t),this._overlays[i]=e,this._updateOverlay(e),this._updateOverlayVisibilty(e,this._canvas.viewbox())},St.prototype._updateOverlayVisibilty=function(e,t){var n=e.show,i=this._canvas.findRoot(e.element),o=n&&n.minZoom,a=n&&n.maxZoom,s=e.htmlContainer,l=!0;(i!==this._canvas.getRootElement()||n&&(r(o)&&o>t.scale||r(a)&&ai&&(o=(1/t.scale||1)*i)),r(o)&&(l="scale("+o+","+o+")"),Pt(s,l)},St.prototype._updateOverlaysVisibilty=function(e){var t=this;f(this._overlays,(function(n){t._updateOverlayVisibilty(n,e)}))},St.prototype._init=function(){var e=this._eventBus,t=this;e.on("canvas.viewbox.changing",(function(e){t.hide()})),e.on("canvas.viewbox.changed",(function(e){var n;n=e.viewbox,t._updateRoot(n),t._updateOverlaysVisibilty(n),t.show()})),e.on(["shape.remove","connection.remove"],(function(e){var n=e.element;f(t.get({element:n}),(function(e){t.remove(e.id)}));var i=t._getOverlayContainer(n);if(i){He(i.html);var r=t._overlayContainers.indexOf(i);-1!==r&&t._overlayContainers.splice(r,1)}})),e.on("element.changed",500,(function(e){var n=e.element,i=t._getOverlayContainer(n,!0);i&&(f(i.overlays,(function(e){t._updateOverlay(e)})),t._updateOverlayContainer(i))})),e.on("element.marker.update",(function(e){var n=t._getOverlayContainer(e.element,!0);n&&Ce(n.html)[e.add?"add":"remove"](e.marker)})),e.on("root.set",(function(){t._updateOverlaysVisibilty(t._canvas.viewbox())})),e.on("diagram.clear",this.clear,this)};var Nt={__init__:["overlays"],overlays:["type",St]};function Tt(e,t,n,i){e.on("element.changed",(function(i){var r=i.element;(r.parent||r===t.getRootElement())&&(i.gfx=n.getGraphics(r)),i.gfx&&e.fire(_t(r)+".changed",i)})),e.on("elements.changed",(function(t){var n=t.elements;n.forEach((function(t){e.fire("element.changed",{element:t})})),i.updateContainments(n)})),e.on("shape.changed",(function(e){i.update("shape",e.element,e.gfx)})),e.on("connection.changed",(function(e){i.update("connection",e.element,e.gfx)}))}Tt.$inject=["eventBus","canvas","elementRegistry","graphicsFactory"];var Dt={__init__:["changeSupport"],changeSupport:["type",Tt]};function Bt(e){this._eventBus=e}function Ot(e){return function(t,n,i,r,o){(l(t)||s(t))&&(o=r,r=i,i=n,n=t,t=null),this.on(t,e,n,i,r,o)}}function Lt(e,t){t.invoke(Bt,this),this.executed((function(t){var n=t.context;n.rootElement?e.setRootElement(n.rootElement):n.rootElement=e.getRootElement()})),this.revert((function(t){var n=t.context;n.rootElement&&e.setRootElement(n.rootElement)}))}Bt.$inject=["eventBus"],Bt.prototype.on=function(e,t,n,i,r,p){if((l(t)||s(t))&&(p=r,r=i,i=n,n=t,t=null),l(n)&&(p=r,r=i,i=n,n=1e3),a(r)&&(p=r,r=!1),!l(i))throw new Error("handlerFn must be a function");o(e)||(e=[e]);var c=this._eventBus;f(e,(function(e){var o=["commandStack",e,t].filter((function(e){return e})).join(".");c.on(o,n,r?function(e,t){return function(n){return e.call(t||null,n.context,n.command,n)}}(i,p):i,p)}))},Bt.prototype.canExecute=Ot("canExecute"),Bt.prototype.preExecute=Ot("preExecute"),Bt.prototype.preExecuted=Ot("preExecuted"),Bt.prototype.execute=Ot("execute"),Bt.prototype.executed=Ot("executed"),Bt.prototype.postExecute=Ot("postExecute"),Bt.prototype.postExecuted=Ot("postExecuted"),Bt.prototype.revert=Ot("revert"),Bt.prototype.reverted=Ot("reverted"),e(Lt,Bt),Lt.$inject=["canvas","injector"];var It={__init__:["rootElementsBehavior"],rootElementsBehavior:["type",Lt]},Ft={"&":"&","<":"<",">":">",'"':""","'":"'"};var jt="_plane";function Vt(e){var t=e.id;return A(e,"bpmn:SubProcess")?function(e){return e+jt}(t):t}function Wt(e,t,n){var i=ze('
      '),r=n.getContainer(),o=Ce(r);r.appendChild(i);var a=[];function s(e){e&&(a=function(e){for(var t=R(e),n=[],i=t;i;i=i.$parent)(A(i,"bpmn:SubProcess")||A(i,"bpmn:Process"))&&n.push(i);return n.reverse()}(e));var r=a.flatMap((function(e){var i=n.findRoot(Vt(e))||n.findRoot(e.id);if(!i&&A(e,"bpmn:Process")){var r=t.find((function(t){var n=R(t);return n&&n.get("processRef")===e}));i=r&&n.findRoot(r.id)}if(!i)return[];var o,a=(o=""+(o=e.name||e.id))&&o.replace(/[&<>"']/g,(function(e){return Ft[e]})),s=ze('
    • '+a+"
    • ");return s.addEventListener("click",(function(){n.setRootElement(i)})),s}));i.innerHTML="";var s=r.length>1;o.toggle("bjs-breadcrumbs-shown",s),r.forEach((function(e){i.appendChild(e)}))}e.on("element.changed",(function(e){var t=R(e.element);u(a,(function(e){return e===t}))&&s()})),e.on("root.set",(function(e){s(e.element)}))}function $t(e,t){var n=null,i=new zt;e.on("root.set",(function(e){var r=e.element,o=t.viewbox(),a=i.get(r);if(i.set(n,{x:o.x,y:o.y,zoom:o.scale}),n=r,A(r,"bpmn:SubProcess")||a){a=a||{x:0,y:0,zoom:1};var s=(o.x-a.x)*o.scale,l=(o.y-a.y)*o.scale;0===s&&0===l||t.scroll({dx:s,dy:l}),a.zoom!==o.scale&&t.zoom(a.zoom,{x:0,y:0})}})),e.on("diagram.clear",(function(){i.clear(),n=null}))}function zt(){this._entries=[],this.set=function(e,t){var n=!1;for(var i in this._entries)if(this._entries[i][0]===e){this._entries[i][1]=t,n=!0;break}n||this._entries.push([e,t])},this.get=function(e){for(var t in this._entries)if(this._entries[t][0]===e)return this._entries[t][1];return null},this.clear=function(){this._entries.length=0},this.remove=function(e){var t=-1;for(var n in this._entries)if(this._entries[n][0]===e){t=n;break}-1!==t&&this._entries.splice(t,1)}}Wt.$inject=["eventBus","elementRegistry","canvas"],$t.$inject=["eventBus","canvas"];var Gt=180,Ht=160;function Kt(e,t){this._eventBus=e,this._moddle=t;var n=this;e.on("import.render.start",1500,(function(e,t){n._handleImport(t.definitions)}))}function Ut(e){return A(e,"bpmndi:BPMNDiagram")?e:Ut(e.$parent)}Kt.prototype._handleImport=function(e){if(e.diagrams){var t=this;this._definitions=e,this._processToDiagramMap={},e.diagrams.forEach((function(e){e.plane&&e.plane.bpmnElement&&(t._processToDiagramMap[e.plane.bpmnElement.id]=e)})),e.diagrams.filter((e=>e.plane)).flatMap((e=>t._createNewDiagrams(e.plane))).forEach((function(e){t._movePlaneElementsToOrigin(e.plane)}))}},Kt.prototype._createNewDiagrams=function(e){var t=this,n=[],i=[];e.get("planeElement").forEach((function(t){var r=t.bpmnElement;if(r){var o=r.$parent;A(r,"bpmn:SubProcess")&&!t.isExpanded&&n.push(r),function(e,t){var n=e.$parent;if(!A(n,"bpmn:SubProcess")||n===t.bpmnElement)return!1;if(function(e,t){return y(t,(function(t){return A(e,t)}))}(e,["bpmn:DataInputAssociation","bpmn:DataOutputAssociation"]))return!1;return!0}(r,e)&&i.push({diElement:t,parent:o})}}));var r=[];return n.forEach((function(e){if(!t._processToDiagramMap[e.id]){var n=t._createDiagram(e);t._processToDiagramMap[e.id]=n,r.push(n)}})),i.forEach((function(e){for(var i=e.diElement,r=e.parent;r&&-1===n.indexOf(r);)r=r.$parent;if(r){var o=t._processToDiagramMap[r.id];t._moveToDiPlane(i,o.plane)}})),r},Kt.prototype._movePlaneElementsToOrigin=function(e){var t=e.get("planeElement"),n=function(e){var t={top:1/0,right:-1/0,bottom:-1/0,left:1/0};return e.planeElement.forEach((function(e){if(e.bounds){var n=ht(e.bounds);t.top=Math.min(n.top,t.top),t.left=Math.min(n.left,t.left)}})),function(e){return{x:e.left,y:e.top,width:e.right-e.left,height:e.bottom-e.top}}(t)}(e),i=n.x-Gt,r=n.y-Ht;t.forEach((function(e){e.waypoint?e.waypoint.forEach((function(e){e.x=e.x-i,e.y=e.y-r})):e.bounds&&(e.bounds.x=e.bounds.x-i,e.bounds.y=e.bounds.y-r)}))},Kt.prototype._moveToDiPlane=function(e,t){var n=Ut(e).plane.get("planeElement");n.splice(n.indexOf(e),1),t.get("planeElement").push(e)},Kt.prototype._createDiagram=function(e){var t=this._moddle.create("bpmndi:BPMNPlane",{bpmnElement:e}),n=this._moddle.create("bpmndi:BPMNDiagram",{plane:t});return t.$parent=n,t.bpmnElement=e,n.$parent=this._definitions,this._definitions.diagrams.push(n),n},Kt.$inject=["eventBus","moddle"];var qt=250;function Yt(e,t,n,i,r){Bt.call(this,t),this._canvas=e,this._eventBus=t,this._elementRegistry=n,this._overlays=i,this._translate=r;var o=this;this.executed("shape.toggleCollapse",qt,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.reverted("shape.toggleCollapse",qt,(function(e){var t=e.shape;o._canDrillDown(t)?o._addOverlay(t):o._removeOverlay(t)}),!0),this.executed(["shape.create","shape.move","shape.delete"],qt,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),this.reverted(["shape.create","shape.move","shape.delete"],qt,(function(e){var t=e.oldParent,n=e.newParent||e.parent,i=e.shape;o._canDrillDown(i)&&o._addOverlay(i),o._updateDrilldownOverlay(t),o._updateDrilldownOverlay(n),o._updateDrilldownOverlay(i)}),!0),t.on("import.render.complete",(function(){n.filter((function(e){return o._canDrillDown(e)})).map((function(e){o._addOverlay(e)}))}))}e(Yt,Bt),Yt.prototype._updateDrilldownOverlay=function(e){var t=this._canvas;if(e){var n=t.findRoot(e);n&&this._updateOverlayVisibility(n)}},Yt.prototype._canDrillDown=function(e){var t=this._canvas;return A(e,"bpmn:SubProcess")&&t.findRoot(Vt(e))},Yt.prototype._updateOverlayVisibility=function(e){var t=this._overlays,n=R(e),i=t.get({element:n.id,type:"drilldown"})[0];if(i){var r=n&&n.get("flowElements")&&n.get("flowElements").length;Ce(i.html).toggle("bjs-drilldown-empty",!r)}},Yt.prototype._addOverlay=function(e){var t=this._canvas,n=this._overlays,i=R(e);n.get({element:e,type:"drilldown"}).length&&this._removeOverlay(e);var r=ze(''),o=i.get("name")||i.get("id"),a=this._translate("Open {element}",{element:o});r.setAttribute("title",a),r.addEventListener("click",(function(){t.setRootElement(t.findRoot(Vt(e)))})),n.add(e,"drilldown",{position:{bottom:-7,right:-8},html:r}),this._updateOverlayVisibility(e)},Yt.prototype._removeOverlay=function(e){this._overlays.remove({element:e,type:"drilldown"})},Yt.$inject=["canvas","eventBus","elementRegistry","overlays","translate"];var Xt={__depends__:[Nt,Dt,It],__init__:["drilldownBreadcrumbs","drilldownOverlayBehavior","drilldownCentering","subprocessCompatibility"],drilldownBreadcrumbs:["type",Wt],drilldownCentering:["type",$t],drilldownOverlayBehavior:["type",Yt],subprocessCompatibility:["type",Kt]};function Zt(e){return e.originalEvent||e.srcEvent}function Jt(e,t){return(Zt(e)||e).button===t}function Qt(e){return Jt(e,0)}function en(e){return!0}function tn(e){return Qt(e)||function(e){return Jt(e,1)}(e)}function nn(e,t,n){var i=this;function r(n,i,r){var o,a;(function(e,t){var n=l[e]||Qt;return!n(t)})(n,i)||(r?a=t.getGraphics(r):(o=i.delegateTarget||i.target)&&(a=o,r=t.get(a)),a&&r&&!1===e.fire(n,{element:r,gfx:a,originalEvent:i})&&(i.stopPropagation(),i.preventDefault()))}var o={};function a(e){return o[e]}var s={click:"element.click",contextmenu:"element.contextmenu",dblclick:"element.dblclick",mousedown:"element.mousedown",mousemove:"element.mousemove",mouseover:"element.hover",mouseout:"element.out",mouseup:"element.mouseup"},l={"element.contextmenu":en,"element.mousedown":tn,"element.mouseup":tn,"element.click":tn,"element.dblclick":tn};function p(e,t,n,i){var a=o[n]=function(e){r(n,e)};i&&(l[n]=i),a.$delegate=je.bind(e,"svg, .djs-element",t,a)}function c(e,t,n){var i=a(n);i&&je.unbind(e,t,i.$delegate)}e.on("canvas.destroy",(function(e){var t;t=e.svg,f(s,(function(e,n){c(t,n,e)}))})),e.on("canvas.init",(function(e){var t;t=e.svg,f(s,(function(e,n){p(t,n,e)}))})),e.on(["shape.added","connection.added"],(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.createHit",{element:n,gfx:i})})),e.on(["shape.changed","connection.changed"],500,(function(t){var n=t.element,i=t.gfx;e.fire("interactionEvents.updateHit",{element:n,gfx:i})})),e.on("interactionEvents.createHit",500,(function(e){var t=e.element,n=e.gfx;i.createDefaultHit(t,n)})),e.on("interactionEvents.updateHit",(function(e){var t=e.element,n=e.gfx;i.updateDefaultHit(t,n)}));var u=d("djs-hit djs-hit-stroke"),h=d("djs-hit djs-hit-click-stroke"),m={all:d("djs-hit djs-hit-all"),"click-stroke":h,stroke:u,"no-move":d("djs-hit djs-hit-no-move")};function d(e,t){return t=E({stroke:"white",strokeWidth:15},t||{}),n.cls(e,["no-fill","no-border"],t)}function y(e,t){var n=m[t];if(!n)throw new Error("invalid hit type <"+t+">");return L(e,n),e}function g(e,t){D(e,t)}this.removeHits=function(e){var t;f((t=".djs-hit",(e||document).querySelectorAll(t)),ee)},this.createDefaultHit=function(e,t){var n,i=e.waypoints,r=e.isFrame;return i?this.createWaypointsHit(t,i):(n=r?"stroke":"all",this.createBoxHit(t,n,{width:e.width,height:e.height}))},this.createWaypointsHit=function(e,t){var n=le(t);return y(n,"stroke"),g(e,n),n},this.createBoxHit=function(e,t,n){n=E({x:0,y:0},n);var i=z("rect");return y(i,t),L(i,n),g(e,i),i},this.updateDefaultHit=function(e,t){var n=Ge(".djs-hit",t);if(n)return e.waypoints?pe(n,e.waypoints):L(n,{width:e.width,height:e.height}),n},this.fire=r,this.triggerMouseEvent=function(e,t,n){var i=s[e];if(!i)throw new Error("unmapped DOM event name <"+e+">");return r(i,t,n)},this.mouseHandler=a,this.registerEvent=p,this.unregisterEvent=c}nn.$inject=["eventBus","elementRegistry","styles"];var rn={__init__:["interactionEvents"],interactionEvents:["type",nn]};function on(e,t){this._eventBus=e,this._canvas=t,this._selectedElements=[];var n=this;e.on(["shape.remove","connection.remove"],(function(e){var t=e.element;n.deselect(t)})),e.on(["diagram.clear","root.set"],(function(e){n.select(null)}))}on.$inject=["eventBus","canvas"],on.prototype.deselect=function(e){var t=this._selectedElements,n=t.indexOf(e);if(-1!==n){var i=t.slice();t.splice(n,1),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:t})}},on.prototype.get=function(){return this._selectedElements},on.prototype.isSelected=function(e){return-1!==this._selectedElements.indexOf(e)},on.prototype.select=function(e,t){var n=this._selectedElements,i=n.slice();o(e)||(e=e?[e]:[]);var r=this._canvas,a=r.getRootElement();e=e.filter((function(e){var t=r.findRoot(e);return a===t})),t?f(e,(function(e){-1===n.indexOf(e)&&n.push(e)})):this._selectedElements=n=e.slice(),this._eventBus.fire("selection.changed",{oldSelection:i,newSelection:n})};var an="hover",sn="selected";function ln(e,t){function n(t,n){e.addMarker(t,n)}function i(t,n){e.removeMarker(t,n)}this._canvas=e,t.on("element.hover",(function(e){n(e.element,an)})),t.on("element.out",(function(e){i(e.element,an)})),t.on("selection.changed",(function(e){var t=e.oldSelection,r=e.newSelection;f(t,(function(e){-1===r.indexOf(e)&&i(e,sn)})),f(r,(function(e){-1===t.indexOf(e)&&n(e,sn)}))}))}function pn(e,t,n,i){e.on("create.end",500,(function(e){var n=e.context,i=n.canExecute,r=n.elements,a=(n.hints||{}).autoSelect;if(i){if(!1===a)return;o(a)?t.select(a):t.select(r.filter(cn))}})),e.on("connect.end",500,(function(e){var n=e.context.connection;n&&t.select(n)})),e.on("shape.move.end",500,(function(e){var n=e.previousSelection||[],r=i.get(e.context.shape.id);u(n,(function(e){return r.id===e.id}))||t.select(r)})),e.on("element.click",(function(e){if(Qt(e)){var i=e.element;i===n.getRootElement()&&(i=null);var r=t.isSelected(i),o=t.get().length>1,a=function(e){var t=Zt(e)||e;return Qt(e)&&t.shiftKey}(e);if(r&&o)return a?t.deselect(i):t.select(i);r?t.deselect(i):t.select(i,a)}}))}function cn(e){return!e.hidden}ln.$inject=["canvas","eventBus"],pn.$inject=["eventBus","selection","canvas","elementRegistry"];var un={__init__:["selectionVisuals","selectionBehavior"],__depends__:[rn],selection:["type",on],selectionVisuals:["type",ln],selectionBehavior:["type",pn]};const hn=/^class[ {]/;function fn(e){return Array.isArray(e)}function mn(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function dn(...e){1===e.length&&fn(e[0])&&(e=e[0]);const t=(e=[...e]).pop();return t.$inject=e,t}const yn=/constructor\s*[^(]*\(\s*([^)]*)\)/m,gn=/^(?:async\s+)?(?:function\s*[^(]*)?(?:\(\s*([^)]*)\)|(\w+))/m,vn=/\/\*([^*]*)\*\//m;function xn(e){if("function"!=typeof e)throw new Error(`Cannot annotate "${e}". Expected a function!`);const t=e.toString().match(function(e){return hn.test(e.toString())}(e)?yn:gn);if(!t)return[];const n=t[1]||t[2];return n&&n.split(",").map((e=>{const t=e.match(vn);return(t&&t[1]||e).trim()}))||[]}function wn(e,t){const n=t||{get:function(e,t){if(i.push(e),!1===t)return null;throw s(`No provider for "${e}"!`)}},i=[],r=this._providers=Object.create(n._providers||null),o=this._instances=Object.create(null),a=o.injector=this,s=function(e){const t=i.join(" -> ");return i.length=0,new Error(t?`${e} (Resolving: ${t})`:e)};function l(e,t){if(!r[e]&&e.includes(".")){const t=e.split(".");let n=l(t.shift());for(;t.length;)n=n[t.shift()];return n}if(mn(o,e))return o[e];if(mn(r,e)){if(-1!==i.indexOf(e))throw i.push(e),s("Cannot resolve circular dependency!");return i.push(e),o[e]=r[e][0](r[e][1]),i.pop(),o[e]}return n.get(e,t)}function p(e,t){if(void 0===t&&(t={}),"function"!=typeof e){if(!fn(e))throw s(`Cannot invoke "${e}". Expected a function!`);e=dn(e.slice())}return{fn:e,dependencies:(e.$inject||xn(e)).map((e=>mn(t,e)?t[e]:l(e)))}}function c(e){const{fn:t,dependencies:n}=p(e);return new(Function.prototype.bind.call(t,null,...n))}function u(e,t,n){const{fn:i,dependencies:r}=p(e,n);return i.apply(t,r)}function h(e){return dn((t=>e.get(t)))}function f(e,t){if(t&&t.length){const n=Object.create(null),i=Object.create(null),o=[],a=[],s=[];let l,p,c,u;for(let e in r)l=r[e],-1!==t.indexOf(e)&&("private"===l[2]?(p=o.indexOf(l[3]),-1===p?(c=l[3].createChild([],t),u=h(c),o.push(l[3]),a.push(c),s.push(u),n[e]=[u,e,"private",c]):n[e]=[s[p],e,"private",a[p]]):n[e]=[l[2],l[1]],i[e]=!0),"factory"!==l[2]&&"type"!==l[2]||!l[1].$scope||t.forEach((t=>{-1!==l[1].$scope.indexOf(t)&&(n[e]=[l[2],l[1]],i[t]=!0)}));t.forEach((e=>{if(!i[e])throw new Error('No provider for "'+e+'". Cannot use provider from the parent!')})),e.unshift(n)}return new wn(e,a)}const m={factory:u,type:c,value:function(e){return e}};function d(e,t){const n=e.__init__||[];return function(){n.forEach((e=>{"string"==typeof e?t.get(e):t.invoke(e)}))}}function y(e){const t=e.__exports__;if(t){const n=e.__modules__,i=Object.keys(e).reduce(((t,n)=>("__exports__"!==n&&"__modules__"!==n&&"__init__"!==n&&"__depends__"!==n&&(t[n]=e[n]),t)),Object.create(null)),o=f((n||[]).concat(i)),a=dn((function(e){return o.get(e)}));t.forEach((function(e){r[e]=[a,e,"private",o]}));const s=(e.__init__||[]).slice();return s.unshift((function(){o.init()})),d(e=Object.assign({},e,{__init__:s}),o)}return Object.keys(e).forEach((function(t){if("__init__"===t||"__depends__"===t)return;const n=e[t];if("private"===n[2])return void(r[t]=n);const i=n[0],o=n[1];r[t]=[m[i],bn(i,o),i]})),d(e,a)}function g(e,t){return-1!==e.indexOf(t)||-1!==(e=(t.__depends__||[]).reduce(g,e)).indexOf(t)?e:e.concat(t)}this.get=l,this.invoke=u,this.instantiate=c,this.createChild=f,this.init=function(e){const t=e.reduce(g,[]).map(y);let n=!1;return function(){n||(n=!0,t.forEach((e=>e())))}}(e)}function bn(e,t){return"value"!==e&&fn(t)&&(t=dn(t.slice())),t}function En(e,t){_.call(this,e,1),this.CONNECTION_STYLE=t.style(["no-fill"],{strokeWidth:5,stroke:"fuchsia"}),this.SHAPE_STYLE=t.style({fill:"white",stroke:"fuchsia",strokeWidth:2}),this.FRAME_STYLE=t.style(["no-fill"],{stroke:"fuchsia",strokeDasharray:4,strokeWidth:2})}e(En,_),En.prototype.canRender=function(){return!0},En.prototype.drawShape=function(e,t,n){var i=z("rect");return L(i,{x:0,y:0,width:t.width||0,height:t.height||0}),At(t)?L(i,E({},this.FRAME_STYLE,n||{})):L(i,E({},this.SHAPE_STYLE,n||{})),D(e,i),i},En.prototype.drawConnection=function(e,t,n){var i=le(t.waypoints,E({},this.CONNECTION_STYLE,n||{}));return D(e,i),i},En.prototype.getShapePath=function(e){var t=e.x,n=e.y,i=e.width;return ie([["M",t,n],["l",i,0],["l",0,e.height],["l",-i,0],["z"]])},En.prototype.getConnectionPath=function(e){var t,n,i=e.waypoints,r=[];for(t=0;n=i[t];t++)n=n.original||n,r.push([0===t?"M":"L",n.x,n.y]);return ie(r)},En.$inject=["eventBus","styles"];var _n={__init__:["defaultRenderer"],defaultRenderer:["type",En],styles:["type",function(){var e={"no-fill":{fill:"none"},"no-border":{strokeOpacity:0},"no-events":{pointerEvents:"none"}},t=this;this.cls=function(e,t,n){return E(this.style(t,n),{class:e})},this.style=function(t,n){o(t)||n||(n=t,t=[]);var i=m(t,(function(t,n){return E(t,e[n]||{})}),{});return n?E(i,n):i},this.computeStyle=function(e,n,i){return o(n)||(i=n,n=[]),t.style(n||[],E({},i,e||{}))}}]};function An(e,t){return Math.round(e*t)/t}function Rn(e){return s(e)?e+"px":e}function kn(e,t,n){const i=z("g");F(i).add(t);const r=void 0!==n?n:e.childNodes.length-1;return e.insertBefore(i,e.childNodes[r]||null),i}const Sn={shape:["x","y","width","height"],connection:["waypoints"]};function Cn(e,t,n,i){this._eventBus=t,this._elementRegistry=i,this._graphicsFactory=n,this._rootsIdx=0,this._layers={},this._planes=[],this._rootElement=null,this._focused=!1,this._init(e||{})}function Mn(e,t){const n="matrix("+t.a+","+t.b+","+t.c+","+t.d+","+t.e+","+t.f+")";e.setAttribute("transform",n)}Cn.$inject=["config.canvas","eventBus","graphicsFactory","elementRegistry"],Cn.prototype._init=function(e){const t=this._eventBus,n=this._container=function(e){const t=(e=E({},{width:"100%",height:"100%"},e)).container||document.body,n=document.createElement("div");return n.setAttribute("class","djs-container djs-parent"),Re(n,{position:"relative",overflow:"hidden",width:Rn(e.width),height:Rn(e.height)}),t.appendChild(n),n}(e),i=this._svg=z("svg");L(i,{width:"100%",height:"100%"}),ke(i,"tabindex",0),e.autoFocus&&t.on("element.hover",(()=>{this.restoreFocus()})),t.on("element.mousedown",500,(e=>{this.focus()})),i.addEventListener("focusin",(()=>{this._setFocused(!0)})),i.addEventListener("focusout",(()=>{this._setFocused(!1)})),D(n,i);const r=this._viewport=kn(i,"viewport");e.deferUpdate&&(this._viewboxChanged=function(e,t){let n,i,r,o;function a(n){let a=Date.now(),p=n?0:o+t-a;if(p>0)return s(p);e.apply(r,i),l()}function s(e){n=setTimeout(a,e)}function l(){n&&clearTimeout(n),n=o=i=r=void 0}function p(...e){o=Date.now(),i=e,r=this,n||s(t)}return p.flush=function(){n&&a(!0),l()},p.cancel=l,p}(b(this._viewboxChanged,this),300)),t.on("diagram.init",(()=>{t.fire("canvas.init",{svg:i,viewport:r})})),t.on(["shape.added","connection.added","shape.removed","connection.removed","elements.changed","root.set"],(()=>{delete this._cachedViewbox})),t.on("diagram.destroy",500,this._destroy,this),t.on("diagram.clear",500,this._clear,this)},Cn.prototype._destroy=function(){this._eventBus.fire("canvas.destroy",{svg:this._svg,viewport:this._viewport});const e=this._container.parentNode;e&&e.removeChild(this._container),delete this._svg,delete this._container,delete this._layers,delete this._planes,delete this._rootElement,delete this._viewport},Cn.prototype._setFocused=function(e){e!=this._focused&&(this._focused=e,this._eventBus.fire("canvas.focus.changed",{focused:e}))},Cn.prototype._clear=function(){this._elementRegistry.getAll().forEach((e=>{const t=_t(e);"root"===t?this.removeRootElement(e):this._removeElement(e,t)})),this._planes=[],this._rootElement=null,delete this._cachedViewbox},Cn.prototype.focus=function(){this._svg.focus({preventScroll:!0}),this._setFocused(!0)},Cn.prototype.restoreFocus=function(){document.activeElement===document.body&&this.focus()},Cn.prototype.isFocused=function(){return this._focused},Cn.prototype.getDefaultLayer=function(){return this.getLayer("base",0)},Cn.prototype.getLayer=function(e,t){if(!e)throw new Error("must specify a name");let n=this._layers[e];if(n||(n=this._layers[e]=this._createLayer(e,t)),void 0!==t&&n.index!==t)throw new Error("layer <"+e+"> already created at index <"+t+">");return n.group},Cn.prototype._getChildIndex=function(e){return m(this._layers,(function(t,n){return n.visible&&e>=n.index&&t++,t}),0)},Cn.prototype._createLayer=function(e,t){void 0===t&&(t=1);const n=this._getChildIndex(t);return{group:kn(this._viewport,"layer-"+e,n),index:t,visible:!0}},Cn.prototype.showLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=this._viewport,i=t.group,r=t.index;if(t.visible)return i;const o=this._getChildIndex(r);return n.insertBefore(i,n.childNodes[o]||null),t.visible=!0,i},Cn.prototype.hideLayer=function(e){if(!e)throw new Error("must specify a name");const t=this._layers[e];if(!t)throw new Error("layer <"+e+"> does not exist");const n=t.group;return t.visible?(ee(n),t.visible=!1,n):n},Cn.prototype._removeLayer=function(e){const t=this._layers[e];t&&(delete this._layers[e],ee(t.group))},Cn.prototype.getActiveLayer=function(){const e=this._findPlaneForRoot(this.getRootElement());return e?e.layer:null},Cn.prototype.findRoot=function(e){if("string"==typeof e&&(e=this._elementRegistry.get(e)),!e)return;const t=this._findPlaneForRoot(function(e){for(;e.parent;)e=e.parent;return e}(e))||{};return t.rootElement},Cn.prototype.getRootElements=function(){return this._planes.map((function(e){return e.rootElement}))},Cn.prototype._findPlaneForRoot=function(e){return u(this._planes,(function(t){return t.rootElement===e}))},Cn.prototype.getContainer=function(){return this._container},Cn.prototype._updateMarker=function(e,t,n){let i;e.id||(e=this._elementRegistry.get(e)),e.markers=e.markers||new Set,i=this._elementRegistry._elements[e.id],i&&(f([i.gfx,i.secondaryGfx],(function(i){i&&(n?(e.markers.add(t),F(i).add(t)):(e.markers.delete(t),F(i).remove(t)))})),this._eventBus.fire("element.marker.update",{element:e,gfx:i.gfx,marker:t,add:!!n}))},Cn.prototype.addMarker=function(e,t){this._updateMarker(e,t,!0)},Cn.prototype.removeMarker=function(e,t){this._updateMarker(e,t,!1)},Cn.prototype.hasMarker=function(e,t){return e.id||(e=this._elementRegistry.get(e)),!!e.markers&&e.markers.has(t)},Cn.prototype.toggleMarker=function(e,t){this.hasMarker(e,t)?this.removeMarker(e,t):this.addMarker(e,t)},Cn.prototype.getRootElement=function(){const e=this._rootElement;return e||this._planes.length?e:this.setRootElement(this.addRootElement(null))},Cn.prototype.addRootElement=function(e){const t=this._rootsIdx++;e||(e={id:"__implicitroot_"+t,children:[],isImplicit:!0});const n=e.layer="root-"+t;this._ensureValid("root",e);const i=this.getLayer(n,0);return this.hideLayer(n),this._addRoot(e,i),this._planes.push({rootElement:e,layer:i}),e},Cn.prototype.removeRootElement=function(e){"string"==typeof e&&(e=this._elementRegistry.get(e));if(this._findPlaneForRoot(e))return this._removeRoot(e),this._removeLayer(e.layer),this._planes=this._planes.filter((function(t){return t.rootElement!==e})),this._rootElement===e&&(this._rootElement=null),e},Cn.prototype.setRootElement=function(e){if(e===this._rootElement)return e;let t;if(!e)throw new Error("rootElement required");return t=this._findPlaneForRoot(e),t||(e=this.addRootElement(e)),this._setRoot(e),e},Cn.prototype._removeRoot=function(e){const t=this._elementRegistry,n=this._eventBus;n.fire("root.remove",{element:e}),n.fire("root.removed",{element:e}),t.remove(e)},Cn.prototype._addRoot=function(e,t){const n=this._elementRegistry,i=this._eventBus;i.fire("root.add",{element:e}),n.add(e,t),i.fire("root.added",{element:e,gfx:t})},Cn.prototype._setRoot=function(e,t){const n=this._rootElement;n&&(this._elementRegistry.updateGraphics(n,null,!0),this.hideLayer(n.layer)),e&&(t||(t=this._findPlaneForRoot(e).layer),this._elementRegistry.updateGraphics(e,this._svg,!0),this.showLayer(e.layer)),this._rootElement=e,this._eventBus.fire("root.set",{element:e})},Cn.prototype._ensureValid=function(e,t){if(!t.id)throw new Error("element must have an id");if(this._elementRegistry.get(t.id))throw new Error("element <"+t.id+"> already exists");const n=Sn[e],i=d(n,(function(e){return void 0!==t[e]}));if(!i)throw new Error("must supply { "+n.join(", ")+" } with "+e)},Cn.prototype._setParent=function(e,t,n){!function(e,t,n){if(e&&t){"number"!=typeof n&&(n=-1);var i=e.indexOf(t);if(-1!==i){if(i===n)return;if(-1===n)return;e.splice(i,1)}-1!==n?e.splice(n,0,t):e.push(t)}}(t.children,e,n),e.parent=t},Cn.prototype._addElement=function(e,t,n,i){n=n||this.getRootElement();const r=this._eventBus,o=this._graphicsFactory;this._ensureValid(e,t),r.fire(e+".add",{element:t,parent:n}),this._setParent(t,n,i);const a=o.create(e,t,i);return this._elementRegistry.add(t,a),o.update(e,t,a),r.fire(e+".added",{element:t,gfx:a}),t},Cn.prototype.addShape=function(e,t,n){return this._addElement("shape",e,t,n)},Cn.prototype.addConnection=function(e,t,n){return this._addElement("connection",e,t,n)},Cn.prototype._removeElement=function(e,t){const n=this._elementRegistry,i=this._graphicsFactory,r=this._eventBus;if(e=n.get(e.id||e))return r.fire(t+".remove",{element:e}),i.remove(e),function(e,t){if(!e||!t)return-1;var n=e.indexOf(t);-1!==n&&e.splice(n,1)}(e.parent&&e.parent.children,e),e.parent=null,r.fire(t+".removed",{element:e}),n.remove(e),e},Cn.prototype.removeShape=function(e){return this._removeElement(e,"shape")},Cn.prototype.removeConnection=function(e){return this._removeElement(e,"connection")},Cn.prototype.getGraphics=function(e,t){return this._elementRegistry.getGraphics(e,t)},Cn.prototype._changeViewbox=function(e){this._eventBus.fire("canvas.viewbox.changing"),e.apply(this),this._cachedViewbox=null,this._viewboxChanged()},Cn.prototype._viewboxChanged=function(){this._eventBus.fire("canvas.viewbox.changed",{viewbox:this.viewbox()})},Cn.prototype.viewbox=function(e){if(void 0===e&&this._cachedViewbox)return structuredClone(this._cachedViewbox);const t=this._viewport,n=this.getSize();let i,r,o,a,s,l,p;return e?(this._changeViewbox((function(){s=Math.min(n.width/e.width,n.height/e.height);const i=this._svg.createSVGMatrix().scale(s).translate(-e.x,-e.y);ne(t,i)})),e):(o=this._rootElement?this.getActiveLayer():null,i=o&&o.getBBox()||{},a=ne(t),r=a?a.matrix:function(e,t,n,i,r,o){var a=H().createSVGMatrix();switch(arguments.length){case 0:return a;case 1:return K(a,e);case 6:return K(a,{a:e,b:t,c:n,d:i,e:r,f:o})}}(),s=An(r.a,1e3),l=An(-r.e||0,1e3),p=An(-r.f||0,1e3),e=this._cachedViewbox={x:l?l/s:0,y:p?p/s:0,width:n.width/s,height:n.height/s,scale:s,inner:{width:i.width||0,height:i.height||0,x:i.x||0,y:i.y||0},outer:n})},Cn.prototype.scroll=function(e){const t=this._viewport;let n=t.getCTM();return e&&this._changeViewbox((function(){e=E({dx:0,dy:0},e||{}),n=this._svg.createSVGMatrix().translate(e.dx,e.dy).multiply(n),Mn(t,n)})),{x:n.e,y:n.f}},Cn.prototype.scrollToElement=function(e,t){let n=100;"string"==typeof e&&(e=this._elementRegistry.get(e));const i=this.findRoot(e);if(i!==this.getRootElement()&&this.setRootElement(i),i===e)return;t||(t={}),"number"==typeof t&&(n=t),t={top:t.top||n,right:t.right||n,bottom:t.bottom||n,left:t.left||n};const r=Et(e),o=ht(r),a=this.viewbox(),s=this.zoom();let l,p;a.y+=t.top/s,a.x+=t.left/s,a.width-=(t.right+t.left)/s,a.height-=(t.bottom+t.top)/s;const c=ht(a);if(r.width=0&&i.y>=0&&i.x+i.width<=n.width&&i.y+i.height<=n.height&&!e?o={x:0,y:0,width:Math.max(i.width+i.x,n.width),height:Math.max(i.height+i.y,n.height)}:(r=Math.min(1,n.width/i.width,n.height/i.height),o={x:i.x+(e?i.width/2-n.width/r/2:0),y:i.y+(e?i.height/2-n.height/r/2:0),width:n.width/r,height:n.height/r}),this.viewbox(o),this.viewbox(!1).scale},Cn.prototype._setZoom=function(e,t){const n=this._svg,i=this._viewport,r=n.createSVGMatrix(),o=n.createSVGPoint();let a,s,l,p,c;l=i.getCTM();const u=l.a;return t?(a=E(o,t),s=a.matrixTransform(l.inverse()),p=r.translate(s.x,s.y).scale(1/u*e).translate(-s.x,-s.y),c=l.multiply(p)):c=r.scale(e),Mn(this._viewport,c),c},Cn.prototype.getSize=function(){return{width:this._container.clientWidth,height:this._container.clientHeight}},Cn.prototype.getAbsoluteBBox=function(e){const t=this.viewbox();let n;if(e.waypoints){n=this.getGraphics(e).getBBox()}else n=e;return{x:n.x*t.scale-t.x*t.scale,y:n.y*t.scale-t.y*t.scale,width:n.width*t.scale,height:n.height*t.scale}},Cn.prototype.resized=function(){delete this._cachedViewbox,this._eventBus.fire("canvas.resized")};var Pn="data-element-id";function Nn(e){this._elements={},this._eventBus=e}function Tn(e,t,n){var i=function(e,t,n,i){var r=n.inverse;return Object.defineProperty(e,"remove",{value:function(e){var n=this.indexOf(e);return-1!==n&&(this.splice(n,1),t.unset(e,r,i)),e}}),Object.defineProperty(e,"contains",{value:function(e){return-1!==this.indexOf(e)}}),Object.defineProperty(e,"add",{value:function(e,n){var o=this.indexOf(e);if(void 0===n){if(-1!==o)return;n=this.length}-1!==o&&this.splice(o,1),this.splice(n,0,e),-1===o&&t.set(e,r,i)}}),Object.defineProperty(e,"__refs_collection",{value:!0}),e}(n[t.name]||[],e,t,n);Object.defineProperty(n,t.name,{enumerable:t.enumerable,value:i}),i.length&&i.forEach((function(i){e.set(i,t.inverse,n)}))}function Dn(e,t){if(!(this instanceof Dn))return new Dn(e,t);e.inverse=t,t.inverse=e,this.props={},this.props[e.name]=e,this.props[t.name]=t}Nn.$inject=["eventBus"],Nn.prototype.add=function(e,t,n){var i=e.id;this._validateId(i),L(t,Pn,i),n&&L(n,Pn,i),this._elements[i]={element:e,gfx:t,secondaryGfx:n}},Nn.prototype.remove=function(e){var t=this._elements,n=e.id||e,i=n&&t[n];i&&(L(i.gfx,Pn,""),i.secondaryGfx&&L(i.secondaryGfx,Pn,""),delete t[n])},Nn.prototype.updateId=function(e,t){this._validateId(t),"string"==typeof e&&(e=this.get(e)),this._eventBus.fire("element.updateId",{element:e,newId:t});var n=this.getGraphics(e),i=this.getGraphics(e,!0);this.remove(e),e.id=t,this.add(e,n,i)},Nn.prototype.updateGraphics=function(e,t,n){var i=e.id||e,r=this._elements[i];return n?r.secondaryGfx=t:r.gfx=t,t&&L(t,Pn,i),t},Nn.prototype.get=function(e){var t;t="string"==typeof e?e:e&&L(e,Pn);var n=this._elements[t];return n&&n.element},Nn.prototype.filter=function(e){var t=[];return this.forEach((function(n,i){e(n,i)&&t.push(n)})),t},Nn.prototype.find=function(e){for(var t=this._elements,n=Object.keys(t),i=0;i in ref");t=this.props[t]}t.collection?Tn(this,t,e):function(e,t,n){var i=t.inverse,r=n[t.name];Object.defineProperty(n,t.name,{configurable:t.configurable,enumerable:t.enumerable,get:function(){return r},set:function(t){if(t!==r){var o=r;r=null,o&&e.unset(o,i,n),r=t,e.set(r,i,n)}}})}(this,t,e)},Dn.prototype.ensureRefsCollection=function(e,t){var n=e[t.name];return function(e){return!0===e.__refs_collection}(n)||Tn(this,t,e),n},Dn.prototype.ensureBound=function(e,t){(function(e,t){return Object.prototype.hasOwnProperty.call(e,t.name||t)})(e,t)||this.bind(e,t)},Dn.prototype.unset=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).remove(n):e[t.name]=void 0)},Dn.prototype.set=function(e,t,n){e&&(this.ensureBound(e,t),t.collection?this.ensureRefsCollection(e,t).add(n):e[t.name]=n)};var Bn=new Dn({name:"children",enumerable:!0,collection:!0},{name:"parent"}),On=new Dn({name:"labels",enumerable:!0,collection:!0},{name:"labelTarget"}),Ln=new Dn({name:"attachers",collection:!0},{name:"host"}),In=new Dn({name:"outgoing",collection:!0},{name:"source"}),Fn=new Dn({name:"incoming",collection:!0},{name:"target"});function jn(){Object.defineProperty(this,"businessObject",{writable:!0}),Object.defineProperty(this,"label",{get:function(){return this.labels[0]},set:function(e){var t=this.label,n=this.labels;!e&&t?n.remove(t):n.add(e,0)}}),Bn.bind(this,"parent"),On.bind(this,"labels"),In.bind(this,"outgoing"),Fn.bind(this,"incoming")}function Vn(){jn.call(this),Bn.bind(this,"children"),Ln.bind(this,"host"),Ln.bind(this,"attachers")}function Wn(){jn.call(this),Bn.bind(this,"children")}function $n(){Vn.call(this),On.bind(this,"labelTarget")}function zn(){jn.call(this),In.bind(this,"source"),Fn.bind(this,"target")}e(Vn,jn),e(Wn,Vn),e($n,Vn),e(zn,jn);var Gn={connection:zn,shape:Vn,label:$n,root:Wn};function Hn(){this._uid=12}Hn.prototype.createRoot=function(e){return this.create("root",e)},Hn.prototype.createLabel=function(e){return this.create("label",e)},Hn.prototype.createShape=function(e){return this.create("shape",e)},Hn.prototype.createConnection=function(e){return this.create("connection",e)},Hn.prototype.create=function(e,t){return(t=E({},t||{})).id||(t.id=e+"_"+this._uid++),function(e,t){var n=Gn[e];if(!n)throw new Error("unknown type: <"+e+">");return E(new n,t)}(e,t)};var Kn="__fn",Un=Array.prototype.slice;function qn(){this._listeners={},this.on("diagram.destroy",1,this._destroy,this)}function Yn(){}function Xn(e,t){this._eventBus=e,this._elementRegistry=t}function Zn(e,t,n){var i=n||t.firstChild;e!==i&&t.insertBefore(e,i)}qn.prototype.on=function(e,t,n,i){if(e=o(e)?e:[e],l(t)&&(i=n,n=t,t=1e3),!s(t))throw new Error("priority must be a number");var r=n;i&&((r=b(n,i))[Kn]=n[Kn]||n);var a=this;e.forEach((function(e){a._addListener(e,{priority:t,callback:r,next:null})}))},qn.prototype.once=function(e,t,n,i){var r=this;if(l(t)&&(i=n,n=t,t=1e3),!s(t))throw new Error("priority must be a number");function o(){o.__isTomb=!0;var t=n.apply(i,arguments);return r.off(e,o),t}o[Kn]=n,this.on(e,t,o)},qn.prototype.off=function(e,t){e=o(e)?e:[e];var n=this;e.forEach((function(e){n._removeListener(e,t)}))},qn.prototype.createEvent=function(e){var t=new Yn;return t.init(e),t},qn.prototype.fire=function(e,t){var n,i,r,o;if(o=Un.call(arguments),"object"==typeof e&&(e=(t=e).type),!e)throw new Error("no event type specified");if(i=this._listeners[e]){n=t instanceof Yn?t:this.createEvent(t),o[0]=n;var a=n.type;e!==a&&(n.type=e);try{r=this._invokeListeners(n,o,i)}finally{e!==a&&(n.type=a)}return void 0===r&&n.defaultPrevented&&(r=!1),r}},qn.prototype.handleError=function(e){return!1===this.fire("error",{error:e})},qn.prototype._destroy=function(){this._listeners={}},qn.prototype._invokeListeners=function(e,t,n){for(var i;n&&!e.cancelBubble;)i=this._invokeListener(e,t,n),n=n.next;return i},qn.prototype._invokeListener=function(e,t,n){var i;if(n.callback.__isTomb)return i;try{i=function(e,t){return e.apply(null,t)}(n.callback,t),void 0!==i&&(e.returnValue=i,e.stopPropagation()),!1===i&&e.preventDefault()}catch(e){if(!this.handleError(e))throw console.error("unhandled error in event listener",e),e}return i},qn.prototype._addListener=function(e,t){var n,i=this._getListeners(e);if(i){for(;i;){if(i.priority or , got "+e);n=r[1],i=r[0]}return{name:e=(i?i+":":"")+n,prefix:i,localName:n}}function pi(e){this.ns=e,this.name=e.name,this.allTypes=[],this.allTypesByName={},this.properties=[],this.propertiesByName={}}function ci(e,t){this.packageMap={},this.typeMap={},this.packages=[],this.properties=t,f(e,b(this.registerPackage,this))}function ui(e,t,n){var i=t[n];if(i in e)throw new Error("package with "+n+" <"+i+"> already defined")}function hi(e){this.model=e}function fi(e,t,n){Object.defineProperty(e,t.name,{enumerable:!t.isReference,writable:!0,value:n,configurable:!0})}function mi(e){return e.replace(/^:/,"")}function di(e,t={}){this.properties=new hi(this),this.factory=new ni(this,this.properties),this.registry=new ci(e,this.properties),this.typeCache={},this.config=t}pi.prototype.build=function(){return function(e,t){let n={},i=Object(e);return f(t,(function(t){t in i&&(n[t]=e[t])})),n}(this,["ns","name","allTypes","allTypesByName","properties","propertiesByName","bodyProperty","idProperty"])},pi.prototype.addProperty=function(e,t,n){"boolean"==typeof t&&(n=t,t=void 0),this.addNamedProperty(e,!1!==n);var i=this.properties;void 0!==t?i.splice(t,0,e):i.push(e)},pi.prototype.replaceProperty=function(e,t,n){var i=e.ns,r=this.properties,o=this.propertiesByName,a=e.name!==t.name;if(e.isId){if(!t.isId)throw new Error("property <"+t.ns.name+"> must be id property to refine <"+e.ns.name+">");this.setIdProperty(t,!1)}if(e.isBody){if(!t.isBody)throw new Error("property <"+t.ns.name+"> must be body property to refine <"+e.ns.name+">");this.setBodyProperty(t,!1)}var s=r.indexOf(e);if(-1===s)throw new Error("property <"+i.name+"> not found in property list");r.splice(s,1),this.addProperty(t,n?void 0:s,a),o[i.name]=o[i.localName]=t},pi.prototype.redefineProperty=function(e,t,n){var i=e.ns.prefix,r=t.split("#"),o=li(r[0],i),a=li(r[1],o.prefix).name,s=this.propertiesByName[a];if(!s)throw new Error("refined property <"+a+"> not found");this.replaceProperty(s,e,n),delete e.redefines},pi.prototype.addNamedProperty=function(e,t){var n=e.ns,i=this.propertiesByName;t&&(this.assertNotDefined(e,n.name),this.assertNotDefined(e,n.localName)),i[n.name]=i[n.localName]=e},pi.prototype.removeNamedProperty=function(e){var t=e.ns,n=this.propertiesByName;delete n[t.name],delete n[t.localName]},pi.prototype.setBodyProperty=function(e,t){if(t&&this.bodyProperty)throw new Error("body property defined multiple times (<"+this.bodyProperty.ns.name+">, <"+e.ns.name+">)");this.bodyProperty=e},pi.prototype.setIdProperty=function(e,t){if(t&&this.idProperty)throw new Error("id property defined multiple times (<"+this.idProperty.ns.name+">, <"+e.ns.name+">)");this.idProperty=e},pi.prototype.assertNotTrait=function(e){if((e.extends||[]).length)throw new Error(`cannot create <${e.name}> extending <${e.extends}>`)},pi.prototype.assertNotDefined=function(e,t){var n=e.name,i=this.propertiesByName[n];if(i)throw new Error("property <"+n+"> already defined; override of <"+i.definedBy.ns.name+"#"+i.ns.name+"> by <"+e.definedBy.ns.name+"#"+e.ns.name+"> not allowed without redefines")},pi.prototype.hasProperty=function(e){return this.propertiesByName[e]},pi.prototype.addTrait=function(e,t){t&&this.assertNotTrait(e);var n=this.allTypesByName,i=this.allTypes,r=e.name;r in n||(f(e.properties,b((function(n){n=E({},n,{name:n.ns.localName,inherited:t}),Object.defineProperty(n,"definedBy",{value:e});var i=n.replaces,r=n.redefines;i||r?this.redefineProperty(n,i||r,i):(n.isBody&&this.setBodyProperty(n),n.isId&&this.setIdProperty(n),this.addProperty(n))}),this)),i.push(e),n[r]=e)},ci.prototype.getPackage=function(e){return this.packageMap[e]},ci.prototype.getPackages=function(){return this.packages},ci.prototype.registerPackage=function(e){e=E({},e);var t=this.packageMap;ui(t,e,"prefix"),ui(t,e,"uri"),f(e.types,b((function(t){this.registerType(t,e)}),this)),t[e.uri]=t[e.prefix]=e,this.packages.push(e)},ci.prototype.registerType=function(e,t){var n=li((e=E({},e,{superClass:(e.superClass||[]).slice(),extends:(e.extends||[]).slice(),properties:(e.properties||[]).slice(),meta:E(e.meta||{})})).name,t.prefix),i=n.name,r={};f(e.properties,b((function(e){var t=li(e.name,n.prefix),i=t.name;ai(e.type)||(e.type=li(e.type,t.prefix).name),E(e,{ns:t,name:i}),r[i]=e}),this)),E(e,{ns:n,name:i,propertiesByName:r}),f(e.extends,b((function(e){var t=li(e,n.prefix),r=this.typeMap[t.name];r.traits=r.traits||[],r.traits.push(i)}),this)),this.definePackage(e,t),this.typeMap[i]=e},ci.prototype.mapTypes=function(e,t,n){var i=ai(e.name)?{name:e.name}:this.typeMap[e.name],r=this;function o(n,i){var o=li(n,ai(n)?"":e.prefix);r.mapTypes(o,t,i)}function a(e){return o(e,!0)}if(!i)throw new Error("unknown type <"+e.name+">");f(i.superClass,n?a:function(e){return o(e,!1)}),t(i,!n),f(i.traits,a)},ci.prototype.getEffectiveDescriptor=function(e){var t=li(e),n=new pi(t);this.mapTypes(t,(function(e,t){n.addTrait(e,t)}));var i=n.build();return this.definePackage(i,i.allTypes[i.allTypes.length-1].$pkg),i},ci.prototype.definePackage=function(e,t){this.properties.define(e,"$pkg",{value:t})},hi.prototype.set=function(e,t,n){if(!p(t)||!t.length)throw new TypeError("property name must be a non-empty string");var i=this.getProperty(e,t),r=i&&i.name;void 0===n?i?delete e[r]:delete e.$attrs[mi(t)]:i?r in e?e[r]=n:fi(e,i,n):e.$attrs[mi(t)]=n},hi.prototype.get=function(e,t){var n=this.getProperty(e,t);if(!n)return e.$attrs[mi(t)];var i=n.name;return!e[i]&&n.isMany&&fi(e,n,[]),e[i]},hi.prototype.define=function(e,t,n){if(!n.writable){var i=n.value;delete(n=E({},n,{get:function(){return i}})).value}Object.defineProperty(e,t,n)},hi.prototype.defineDescriptor=function(e,t){this.define(e,"$descriptor",{value:t})},hi.prototype.defineModel=function(e,t){this.define(e,"$model",{value:t})},hi.prototype.getProperty=function(e,t){var n=this.model,i=n.getPropertyDescriptor(e,t);if(i)return i;if(t.includes(":"))return null;const r=n.config.strict;if(void 0!==r){const n=new TypeError(`unknown property <${t}> on <${e.$type}>`);if(r)throw n;"undefined"!=typeof console&&console.warn(n)}return null},di.prototype.create=function(e,t){var n=this.getType(e);if(!n)throw new Error("unknown type <"+e+">");return new n(t)},di.prototype.getType=function(e){var t=this.typeCache,n=p(e)?e:e.ns.name,i=t[n];return i||(e=this.registry.getEffectiveDescriptor(n),i=t[n]=this.factory.createType(e)),i},di.prototype.createAny=function(e,t,n){var o=li(e),s={$type:e,$instanceOf:function(e){return e===this.$type},get:function(e){return this[e]},set:function(e,t){!function(e,t,n){let o=e;f(t,(function(e,a){if("number"!=typeof e&&"string"!=typeof e)throw new Error("illegal key type: "+typeof e+". Key should be of type number or string.");if("constructor"===e)throw new Error("illegal key: constructor");if("__proto__"===e)throw new Error("illegal key: __proto__");let s=t[a+1],l=o[e];r(s)&&null==l&&(l=o[e]=isNaN(+s)?{}:[]),i(s)?i(n)?delete o[e]:o[e]=n:o=l}))}(this,[e],t)}},l={name:e,isGeneric:!0,ns:{prefix:o.prefix,localName:o.localName,uri:t}};return this.properties.defineDescriptor(s,l),this.properties.defineModel(s,this),this.properties.define(s,"get",{enumerable:!1,writable:!0}),this.properties.define(s,"set",{enumerable:!1,writable:!0}),this.properties.define(s,"$parent",{enumerable:!1,writable:!0}),this.properties.define(s,"$instanceOf",{enumerable:!1,writable:!0}),f(n,(function(e,t){a(e)&&void 0!==e.value?s[e.name]=e.value:s[t]=e})),s},di.prototype.getPackage=function(e){return this.registry.getPackage(e)},di.prototype.getPackages=function(){return this.registry.getPackages()},di.prototype.getElementDescriptor=function(e){return e.$descriptor},di.prototype.hasType=function(e,t){return void 0===t&&(t=e,e=this),t in e.$model.getElementDescriptor(e).allTypesByName},di.prototype.getPropertyDescriptor=function(e,t){return this.getElementDescriptor(e).propertiesByName[t]},di.prototype.getTypeDescriptor=function(e){return this.registry.typeMap[e]};var yi=String.fromCharCode,gi=Object.prototype.hasOwnProperty,vi=/&#(\d+);|&#x([0-9a-f]+);|&(\w+);/gi,xi={amp:"&",apos:"'",gt:">",lt:"<",quot:'"'};function wi(e,t,n,i){return i?gi.call(xi,i)?xi[i]:"&"+i+";":yi(t||parseInt(n,16))}function bi(e){return e.length>3&&-1!==e.indexOf("&")?e.replace(vi,wi):e}Object.keys(xi).forEach((function(e){xi[e.toUpperCase()]=xi[e]}));var Ei="non-whitespace outside of root node";function _i(e){return new Error(e)}function Ai(e){return"missing namespace for prefix <"+e+">"}function Ri(e){return{get:e,enumerable:!0}}function ki(e){var t,n={};for(t in e)n[t]=e[t];return n}function Si(e){return e+"$uri"}function Ci(){return{line:0,column:0}}function Mi(e){throw e}function Pi(e){if(!this)return new Pi(e);var t,n,i,r,o,a,s,l,p,c=e&&e.proxy,u=Mi,h=Ci,f=!1,m=!1,d=null,y=!1;function g(e){e instanceof Error||(e=_i(e)),d=e,u(e,h)}function v(e){o&&(e instanceof Error||(e=_i(e)),o(e,h))}this.on=function(e,p){if("function"!=typeof p)throw _i("required args ");switch(e){case"openTag":n=p;break;case"text":t=p;break;case"closeTag":i=p;break;case"error":u=p;break;case"warn":o=p;break;case"cdata":r=p;break;case"attention":l=p;break;case"question":s=p;break;case"comment":a=p;break;default:throw _i("unsupported event: "+e)}return this},this.ns=function(e){if(void 0===e&&(e={}),"object"!=typeof e)throw _i("required args ");var t,n={};for(t in e)n[t]=e[t];return m=!0,p=n,this},this.parse=function(e){if("string"!=typeof e)throw _i("required args ");return d=null,function(e){var o,u,d,x,w,b,E,_,A,R,k,S=m?[]:null,C=m?function(e){var t,n,i={};for(t in e)i[n=e[t]]=n,i[Si(n)]=t;return i}(p):null,M=[],P=0,N=!1,T=!1,D=0,B=0,O="",L=0;function I(){if(null!==k)return k;var e,t,n,i,r,o,a,s,l,c,u,h=m&&C.xmlns,d=m&&f?[]:null,y=L,g=O,x=g.length,w={},b={};e:for(;y8)){for((c<65||c>122||c>90&&c<97)&&95!==c&&58!==c&&(v("illegal first char attribute name"),l=!0),u=y+1;u96&&c<123||c>64&&c<91||c>47&&c<59||46===c||45===c||95===c)){if(32===c||c<14&&c>8){v("missing attribute value"),y=u;continue e}if(61===c)break;v("illegal attribute name char"),l=!0}if("xmlns:xmlns"===(s=g.substring(y,u))&&(v("illegal declaration of xmlns"),l=!0),34===(c=g.charCodeAt(u+1)))-1===(u=g.indexOf('"',y=u+2))&&-1!==(u=g.indexOf("'",y))&&(v("attribute value quote missmatch"),l=!0);else if(39===c)-1===(u=g.indexOf("'",y=u+2))&&-1!==(u=g.indexOf('"',y))&&(v("attribute value quote missmatch"),l=!0);else for(v("missing attribute value quotes"),l=!0,u+=1;u8);u++);for(-1===u&&(v("missing closing quotes"),u=x,l=!0),l||(o=g.substring(y,u)),y=u;u+18);u++)y===u&&(v("illegal character after attribute end"),l=!0);if(y=u+1,!l)if(s in b)v("attribute <"+s+"> already defined");else if(b[s]=!0,m)if(f){if(null!==(r="xmlns"===s?"xmlns":120===s.charCodeAt(0)&&"xmlns:"===s.substr(0,6)?s.substr(6):null)){if(e=bi(o),t=Si(r),!(a=p[e])){if("xmlns"===r||t in C&&C[t]!==e)do{a="ns"+P++}while(void 0!==C[a]);else a=r;p[e]=a}C[r]!==a&&(i||(C=ki(C),i=!0),C[r]=a,"xmlns"===r&&(C[Si(a)]=e,h=a),C[t]=e),w[s]=o;continue}d.push(s,o)}else-1!==(c=s.indexOf(":"))?(n=C[s.substring(0,c)])?w[s=h===n?s.substr(c+1):n+s.substr(c)]=o:v(Ai(s.substring(0,c))):w[s]=o;else w[s]=o}if(f)for(y=0,x=d.length;y=a&&(t=i.exec(e))&&!((s=t[0].length+t.index)>D);)r+=1,a=s;return-1==D?(o=s,n=e.substring(B)):0===B?n=e.substring(B,D):(o=D-a,n=-1==B?e.substring(D):e.substring(D,B+1)),{data:n,line:r,column:o}}h=F,c&&(R=Object.create({},{name:Ri((function(){return _})),originalName:Ri((function(){return A})),attrs:Ri(I),ns:Ri((function(){return C}))}));for(;-1!==B;){if(-1===(D=60===e.charCodeAt(B)?B:e.indexOf("<",B)))return M.length?g("unexpected end of file"):0===B?g("missing start tag"):void(B",D)))return g("unclosed cdata");if(r&&(r(e.substring(D+9,B),h),y))return;B+=3;continue}if(45===x&&45===e.charCodeAt(D+3)){if(-1===(B=e.indexOf("--\x3e",D)))return g("unclosed comment");if(a&&(a(e.substring(D+4,B),bi,h),y))return;B+=3;continue}}if(63!==w){for(u=D+1;;u++){if(b=e.charCodeAt(u),isNaN(b))return B=-1,g("unclosed tag");if(34===b)u=-1!==(x=e.indexOf('"',u+1))?x:u;else if(39===b)u=-1!==(x=e.indexOf("'",u+1))?x:u;else if(62===b){B=u;break}}if(33!==w){if(k={},47===w){if(N=!1,T=!0,!M.length)return g("missing open tag");if(u=_=M.pop(),x=D+2+u.length,e.substring(D+2,x)!==u)return g("closing tag mismatch");for(;x8&&w<14))return g("close tag")}else{if(47===e.charCodeAt(B-1)?(u=_=e.substring(D+1,B-1),N=!0,T=!0):(u=_=e.substring(D+1,B),N=!0,T=!1),!(w>96&&w<123||w>64&&w<91||95===w||58===w))return g("illegal first char nodeName");for(x=1,d=u.length;x96&&w<123||w>64&&w<91||w>47&&w<59||45===w||95===w||46==w)){if(32===w||w<14&&w>8){_=u.substring(0,x),k=null;break}return g("invalid nodeName")}T||M.push(_)}if(m){if(o=C,N&&(T||S.push(o),null===k&&(f=-1!==u.indexOf("xmlns",x))&&(L=x,O=u,I(),f=!1)),A=_,-1!==(w=_.indexOf(":"))){if(!(E=C[_.substring(0,w)]))return g("missing namespace on <"+A+">");_=_.substr(w+1)}else E=C.xmlns;E&&(_=E+":"+_)}if(N&&(L=x,O=u,n&&(c?n(R,bi,T,h):n(_,I,bi,T,h),y)))return;if(T){if(i&&(i(c?R:_,bi,N,h),y))return;m&&(C=N?o:S.pop())}B+=1}else{if(l&&(l(e.substring(D,B+1),bi,h),y))return;B+=1}}else{if(-1===(B=e.indexOf("?>",D)))return g("unclosed question");if(s&&(s(e.substring(D,B+2),h),y))return;B+=2}}}(e),h=Ci,y=!1,d},this.stop=function(){y=!0}}function Ni(e){return e.xml&&"lowerCase"===e.xml.tagAlias}var Ti={xsi:"http://www.w3.org/2001/XMLSchema-instance",xml:"http://www.w3.org/XML/1998/namespace"},Di="property";function Bi(e){return e.xml&&e.xml.serialize}function Oi(e,t){return Ni(t)?e.prefix+":"+((n=e.localName).charAt(0).toUpperCase()+n.slice(1)):e.name;var n}function Li(e){return new Error(e)}function Ii(e){return e.$descriptor}function Fi(e){E(this,e),this.elementsById={},this.references=[],this.warnings=[],this.addReference=function(e){this.references.push(e)},this.addElement=function(e){if(!e)throw Li("expected element");var t,n=this.elementsById,i=Ii(e).idProperty;if(i&&(t=e.get(i.name))){if(!/^([a-z][\w-.]*:)?[a-z_][\w-.]*$/i.test(t))throw new Error("illegal ID <"+t+">");if(n[t])throw Li("duplicate ID <"+t+">");n[t]=e}},this.addWarning=function(e){this.warnings.push(e)}}function ji(){}function Vi(){}function Wi(){}function $i(e,t){this.property=e,this.context=t}function zi(e,t){this.element=t,this.propertyDesc=e}function Gi(){}function Hi(e,t,n){this.model=e,this.type=e.getType(t),this.context=n}function Ki(e,t,n){Hi.call(this,e,t,n)}function Ui(e,t,n){this.model=e,this.context=n}function qi(e){e instanceof di&&(e={model:e}),E(this,{lax:!1},e)}ji.prototype.handleEnd=function(){},ji.prototype.handleText=function(){},ji.prototype.handleNode=function(){},Vi.prototype=Object.create(ji.prototype),Vi.prototype.handleNode=function(){return this},Wi.prototype=Object.create(ji.prototype),Wi.prototype.handleText=function(e){this.body=(this.body||"")+e},$i.prototype=Object.create(Wi.prototype),$i.prototype.handleNode=function(e){if(this.element)throw Li("expected no sub nodes");return this.element=this.createReference(e),this},$i.prototype.handleEnd=function(){this.element.id=this.body},$i.prototype.createReference=function(e){return{property:this.property.ns.name,id:""}},zi.prototype=Object.create(Wi.prototype),zi.prototype.handleEnd=function(){var e=this.body||"",t=this.element,n=this.propertyDesc;e=oi(n.type,e),n.isMany?t.get(n.name).push(e):t.set(n.name,e)},Gi.prototype=Object.create(Wi.prototype),Gi.prototype.handleNode=function(e){var t=this,n=this.element;return n?t=this.handleChild(e):(n=this.element=this.createElement(e),this.context.addElement(n)),t},Hi.prototype=Object.create(Gi.prototype),Hi.prototype.addReference=function(e){this.context.addReference(e)},Hi.prototype.handleText=function(e){if(!Ii(this.element).bodyProperty)throw Li("unexpected body text <"+e+">");Wi.prototype.handleText.call(this,e)},Hi.prototype.handleEnd=function(){var e=this.body,t=this.element,n=Ii(t).bodyProperty;n&&void 0!==e&&(e=oi(n.type,e),t.set(n.name,e))},Hi.prototype.createElement=function(e){var t,n=e.attributes,i=this.type,r=Ii(i),o=this.context,a=new i({}),s=this.model;return f(n,(function(e,n){var i=r.propertiesByName[n];i&&i.isReference?i.isMany?f(e.split(" "),(function(e){o.addReference({element:a,property:i.ns.name,id:e})})):o.addReference({element:a,property:i.ns.name,id:e}):(i?e=oi(i.type,e):"xmlns"===n?n=":"+n:(t=li(n,r.ns.prefix),s.getPackage(t.prefix)&&o.addWarning({message:"unknown attribute <"+n+">",element:a,property:n,value:e})),a.set(n,e))})),a},Hi.prototype.getPropertyForNode=function(e){var t=li(e.name),n=this.type,i=this.model,r=Ii(n),o=t.name,a=r.propertiesByName[o];if(a&&!a.isAttr){const t=function(e){const t=Bi(e);return t!==Di&&(t||null)}(a);if(t){const n=e.attributes[t];if(n){const t=function(e,t,n){const i=li(e,t.xmlns),r=li(`${t[i.prefix]||i.prefix}:${i.localName}`);return function(e,t){var n=e.name,i=e.localName,r=t&&t.xml&&t.xml.typePrefix;return r&&0===i.indexOf(r)?e.prefix+":"+i.slice(r.length):n}(r,n.getPackage(r.prefix))}(n,e.ns,i);return E({},a,{effectiveType:Ii(i.getType(t)).name})}}return a}var s=i.getPackage(t.prefix);if(s){const e=Oi(t,s),n=i.getType(e);if(a=u(r.properties,(function(e){return!e.isVirtual&&!e.isReference&&!e.isAttribute&&n.hasType(e.type)})))return E({},a,{effectiveType:Ii(n).name})}else if(a=u(r.properties,(function(e){return!e.isReference&&!e.isAttribute&&"Element"===e.type})))return a;throw Li("unrecognized element <"+t.name+">")},Hi.prototype.toString=function(){return"ElementDescriptor["+Ii(this.type).name+"]"},Hi.prototype.valueHandler=function(e,t){return new zi(e,t)},Hi.prototype.referenceHandler=function(e){return new $i(e,this.context)},Hi.prototype.handler=function(e){return"Element"===e?new Ui(this.model,e,this.context):new Hi(this.model,e,this.context)},Hi.prototype.handleChild=function(e){var t,n,i,r;if(t=this.getPropertyForNode(e),i=this.element,si(n=t.effectiveType||t.type))return this.valueHandler(t,i);var o=(r=t.isReference?this.referenceHandler(t).handleNode(e):this.handler(n).handleNode(e)).element;return void 0!==o&&(t.isMany?i.get(t.name).push(o):i.set(t.name,o),t.isReference?(E(o,{element:i}),this.context.addReference(o)):o.$parent=i),r},Ki.prototype=Object.create(Hi.prototype),Ki.prototype.createElement=function(e){var t=e.name,n=li(t),i=this.model,r=this.type,o=i.getPackage(n.prefix),a=o&&Oi(n,o)||t;if(!r.hasType(a))throw Li("unexpected element <"+e.originalName+">");return Hi.prototype.createElement.call(this,e)},Ui.prototype=Object.create(Gi.prototype),Ui.prototype.createElement=function(e){var t=e.name,n=li(t).prefix,i=e.ns[n+"$uri"],r=e.attributes;return this.model.createAny(t,i,r)},Ui.prototype.handleChild=function(e){var t=new Ui(this.model,"Element",this.context).handleNode(e),n=this.element,i=t.element;return void 0!==i&&((n.$children=n.$children||[]).push(i),i.$parent=n),t},Ui.prototype.handleEnd=function(){this.body&&(this.element.$body=this.body)},qi.prototype.fromXML=function(e,t,n){var i=t.rootHandler;t instanceof Hi?(i=t,t={}):"string"==typeof t?(i=this.handler(t),t={}):"string"==typeof i&&(i=this.handler(i));var r=this.model,o=this.lax,a=new Fi(E({},t,{rootHandler:i})),s=new Pi({proxy:!0}),l=function(){var e=[];return Object.defineProperty(e,"peek",{value:function(){return this[this.length-1]}}),e}();function p(e,t,n){var i=t(),r=i.line,o=i.column,s=i.data;"<"===s.charAt(0)&&-1!==s.indexOf(" ")&&(s=s.slice(0,s.indexOf(" "))+">");var l="unparsable content "+(s?s+" ":"")+"detected\n\tline: "+r+"\n\tcolumn: "+o+"\n\tnested error: "+e.message;if(n)return a.addWarning({message:l,error:e}),!0;throw Li(l)}function c(e,t){return p(e,t,!0)}i.context=a,l.push(i);var u=/^<\?xml /i,h=/ encoding="([^"]+)"/i,f=/^utf-8$/i;function m(e,t){try{l.peek().handleText(e)}catch(e){c(e,t)}}var d=r.getPackages().reduce((function(e,t){return e[t.uri]=t.prefix,e}),Object.entries(Ti).reduce((function(e,[t,n]){return e[n]=t,e}),r.config&&r.config.nsMap||{}));return s.ns(d).on("openTag",(function(e,t,n,i){var r=e.attrs||{},a=Object.keys(r).reduce((function(e,n){var i=t(r[n]);return e[n]=i,e}),{});!function(e,t){var n=l.peek();try{l.push(n.handleNode(e))}catch(e){p(e,t,o)&&l.push(new Vi)}}({name:e.name,originalName:e.originalName,attributes:a,ns:e.ns},i)})).on("question",(function(e){if(u.test(e)){var t=h.exec(e),n=t&&t[1];n&&!f.test(n)&&a.addWarning({message:"unsupported document encoding <"+n+">, falling back to UTF-8"})}})).on("closeTag",(function(){l.pop().handleEnd()})).on("cdata",m).on("text",(function(e,t,n){!function(e,t){e.trim()&&m(e,t)}(t(e),n)})).on("error",p).on("warn",c),new Promise((function(t,n){var r;try{s.parse(e),function(){var e,t,n=a.elementsById,i=a.references;for(e=0;t=i[e];e++){var r=t.element,o=n[t.id],s=Ii(r).propertiesByName[t.property];if(o||a.addWarning({message:"unresolved reference <"+t.id+">",element:t.element,property:t.property,value:t.id}),s.isMany){var l=r.get(s.name),p=l.indexOf(t);-1===p&&(p=l.length),o?l[p]=o:l.splice(p,1)}else r.set(s.name,o)}}()}catch(e){r=e}var o=i.element;r||o||(r=Li("failed to parse document as <"+i.type.$descriptor.name+">"));var l=a.warnings,p=a.references,c=a.elementsById;return r?(r.warnings=l,n(r)):t({rootElement:o,elementsById:c,references:p,warnings:l})}))},qi.prototype.handler=function(e){return new Ki(this.model,e)};var Yi=/<|>|'|"|&|\n\r|\n/g,Xi=/<|>|&/g;function Zi(e){this.prefixMap={},this.uriMap={},this.used={},this.wellknown=[],this.custom=[],this.parent=e,this.defaultPrefixMap=e&&e.defaultPrefixMap||{}}function Ji(e,t){return Ni(t)?(n=e).charAt(0).toLowerCase()+n.slice(1):e;var n}function Qi(e,t){e.super_=t,e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}function er(e){return p(e)?e:(e.prefix?e.prefix+":":"")+e.localName}Zi.prototype.mapDefaultPrefixes=function(e){this.defaultPrefixMap=e},Zi.prototype.defaultUriByPrefix=function(e){return this.defaultPrefixMap[e]},Zi.prototype.byUri=function(e){return this.uriMap[e]||this.parent&&this.parent.byUri(e)},Zi.prototype.add=function(e,t){this.uriMap[e.uri]=e,t?this.wellknown.push(e):this.custom.push(e),this.mapPrefix(e.prefix,e.uri)},Zi.prototype.uriByPrefix=function(e){return this.prefixMap[e||"xmlns"]||this.parent&&this.parent.uriByPrefix(e)},Zi.prototype.mapPrefix=function(e,t){this.prefixMap[e||"xmlns"]=t},Zi.prototype.getNSKey=function(e){return void 0!==e.prefix?e.uri+"|"+e.prefix:e.uri},Zi.prototype.logUsed=function(e){var t=e.uri,n=this.getNSKey(e);this.used[n]=this.byUri(t),this.parent&&this.parent.logUsed(e)},Zi.prototype.getUsed=function(e){return[].concat(this.wellknown,this.custom).filter((e=>{var t=this.getNSKey(e);return this.used[t]}))};var tr={"\n":"#10","\n\r":"#10",'"':"#34","'":"#39","<":"#60",">":"#62","&":"#38"},nr={"<":"lt",">":"gt","&":"amp"};function ir(e,t,n){return(e=p(e)?e:""+e).replace(t,(function(e){return"&"+n[e]+";"}))}function rr(e){this.tagName=e}function or(){}function ar(e){this.tagName=e}function sr(e,t){this.body=[],this.attrs=[],this.parent=e,this.propertyDescriptor=t}function lr(e,t,n){sr.call(this,e,t),this.serialization=n}function pr(){this.value="",this.write=function(e){this.value+=e}}function cr(e,t){var n=[""];this.append=function(t){return e.write(t),this},this.appendNewLine=function(){return t&&e.write("\n"),this},this.appendIndent=function(){return t&&e.write(n.join(" ")),this},this.indent=function(){return n.push(""),this},this.unindent=function(){return n.pop(),this}}function ur(e){return e=E({format:!1,preamble:!0},e||{}),{toXML:function(t,n){var i=n||new pr,r=new cr(i,e.format);e.preamble&&r.append('\n');var o=new sr,a=t.$model;if(o.getNamespaces().mapDefaultPrefixes(function(e){const t=e.config&&e.config.nsMap||{},n={};for(const e in Ti)n[e]=Ti[e];for(const e in t){n[t[e]]=e}for(const t of e.getPackages())n[t.prefix]=t.uri;return n}(a)),o.build(t).serializeTo(r),!n)return i.value}}}function hr(e,t){di.call(this,e,t)}rr.prototype.build=function(e){return this.element=e,this},rr.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"+this.element.id+"").appendNewLine()},or.prototype.serializeValue=or.prototype.serializeTo=function(e){e.append(this.escape?ir(this.value,Xi,nr):this.value)},or.prototype.build=function(e,t){return this.value=t,"String"===e.type&&-1!==t.search(Xi)&&(this.escape=!0),this},Qi(ar,or),ar.prototype.serializeTo=function(e){e.appendIndent().append("<"+this.tagName+">"),this.serializeValue(e),e.append("").appendNewLine()},sr.prototype.build=function(e){this.element=e;var t,n,i=e.$descriptor,r=this.propertyDescriptor,o=i.isGeneric;return t=o?this.parseGenericNsAttributes(e):this.parseNsAttributes(e),this.ns=r?this.nsPropertyTagName(r):this.nsTagName(i),this.tagName=this.addTagName(this.ns),o?this.parseGenericContainments(e):(n=function(e){return h(e.$descriptor.properties,(function(t){var n=t.name;if(t.isVirtual)return!1;if(!c(e,n))return!1;var i=e[n];return i!==t.default&&null!==i&&(!t.isMany||i.length)}))}(e),this.parseAttributes(h(n,(function(e){return e.isAttr}))),this.parseContainments(function(e){return h(e,(function(e){return!e.isAttr}))}(n))),this.parseGenericAttributes(e,t),this},sr.prototype.nsTagName=function(e){return function(e,t){return t.isGeneric?E({localName:t.ns.localName},e):E({localName:Ji(t.ns.localName,t.$pkg)},e)}(this.logNamespaceUsed(e.ns),e)},sr.prototype.nsPropertyTagName=function(e){return function(e,t){return E({localName:t.ns.localName},e)}(this.logNamespaceUsed(e.ns),e)},sr.prototype.isLocalNs=function(e){return e.uri===this.ns.uri},sr.prototype.nsAttributeName=function(e){var t;if(t=p(e)?li(e):e.ns,e.inherited)return{localName:t.localName};var n=this.logNamespaceUsed(t);return this.getNamespaces().logUsed(n),this.isLocalNs(n)?{localName:t.localName}:E({localName:t.localName},n)},sr.prototype.parseGenericNsAttributes=function(e){return Object.entries(e).filter((([t,n])=>!t.startsWith("$")&&this.parseNsAttribute(e,t,n))).map((([e,t])=>({name:e,value:t})))},sr.prototype.parseGenericContainments=function(e){var t=e.$body;t&&this.body.push((new or).build({type:"String"},t));var n=e.$children;n&&f(n,(e=>{this.body.push(new sr(this).build(e))}))},sr.prototype.parseNsAttribute=function(e,t,n){var i,r=e.$model,o=li(t);if("xmlns"===o.prefix&&(i={prefix:o.localName,uri:n}),o.prefix||"xmlns"!==o.localName||(i={uri:n}),!i)return{name:t,value:n};if(r&&r.getPackage(n))this.logNamespace(i,!0,!0);else{var a=this.logNamespaceUsed(i,!0);this.getNamespaces().logUsed(a)}},sr.prototype.parseNsAttributes=function(e){var t=this,n=e.$attrs,i=[];return f(n,(function(n,r){var o=t.parseNsAttribute(e,r,n);o&&i.push(o)})),i},sr.prototype.parseGenericAttributes=function(e,t){var n=this;f(t,(function(t){try{n.addAttribute(n.nsAttributeName(t.name),t.value)}catch(n){"undefined"!=typeof console&&console.warn(`missing namespace information for <${t.name}=${t.value}> on`,e,n)}}))},sr.prototype.parseContainments=function(e){var t=this,n=this.body,i=this.element;f(e,(function(e){var r=i.get(e.name),o=e.isReference;if(e.isMany||(r=[r]),e.isBody)n.push((new or).build(e,r[0]));else if(si(e.type))f(r,(function(i){n.push(new ar(t.addTagName(t.nsPropertyTagName(e))).build(e,i))}));else if(o)f(r,(function(i){n.push(new rr(t.addTagName(t.nsPropertyTagName(e))).build(i))}));else{var a=Bi(e);f(r,(function(i){var r;r=a?a===Di?new sr(t,e):new lr(t,e,a):new sr(t),n.push(r.build(i))}))}}))},sr.prototype.getNamespaces=function(e){var t,n=this.namespaces,i=this.parent;return n||(t=i&&i.getNamespaces(),e||!t?this.namespaces=n=new Zi(t):n=t),n},sr.prototype.logNamespace=function(e,t,n){var i=this.getNamespaces(n),r=e.uri,o=e.prefix;return i.byUri(r)&&!n||i.add(e,t),i.mapPrefix(o,r),e},sr.prototype.logNamespaceUsed=function(e,t){var n,i,r,o=this.getNamespaces(t),a=e.prefix,s=e.uri;if(!a&&!s)return{localName:e.localName};if(r=o.defaultUriByPrefix(a),!(s=s||r||o.uriByPrefix(a)))throw new Error("no namespace uri given for prefix <"+a+">");if((e=o.byUri(s))||a||(e=this.logNamespace({uri:s},r===s,!0)),!e){for(n=a,i=1;o.uriByPrefix(n);)n=a+"_"+i++;e=this.logNamespace({prefix:n,uri:s},r===s)}return a&&o.mapPrefix(a,s),e},sr.prototype.parseAttributes=function(e){var t=this,n=this.element;f(e,(function(e){var i=n.get(e.name);if(e.isReference)if(e.isMany){var r=[];f(i,(function(e){r.push(e.id)})),i=r.join(" ")}else i=i.id;t.addAttribute(t.nsAttributeName(e),i)}))},sr.prototype.addTagName=function(e){var t=this.logNamespaceUsed(e);return this.getNamespaces().logUsed(t),er(e)},sr.prototype.addAttribute=function(e,t){var n=this.attrs;p(t)&&(t=ir(t,Yi,tr));var i=function(e,t){const n=v(t);let i=o(e)?-1:void 0;return f(e,(function(e,t){if(n(e,t))return i=t,!1})),i}(n,(function(t){return t.name.localName===e.localName&&t.name.uri===e.uri&&t.name.prefix===e.prefix})),r={name:e,value:t};-1!==i?n.splice(i,1,r):n.push(r)},sr.prototype.serializeAttributes=function(e){var t=this.attrs,n=this.namespaces;n&&(t=function(e){return e.getUsed().filter((function(e){return"xml"!==e.prefix})).map((function(e){return{name:"xmlns"+(e.prefix?":"+e.prefix:""),value:e.uri}}))}(n).concat(t)),f(t,(function(t){e.append(" ").append(er(t.name)).append('="').append(t.value).append('"')}))},sr.prototype.serializeTo=function(e){var t=this.body[0],n=t&&t.constructor!==or;e.appendIndent().append("<"+this.tagName),this.serializeAttributes(e),e.append(t?">":" />"),t&&(n&&e.appendNewLine().indent(),f(this.body,(function(t){t.serializeTo(e)})),n&&e.unindent().appendIndent(),e.append("")),e.appendNewLine()},Qi(lr,sr),lr.prototype.parseNsAttributes=function(e){var t=sr.prototype.parseNsAttributes.call(this,e).filter((e=>e.name!==this.serialization)),n=e.$descriptor;if(n.name===this.propertyDescriptor.type)return t;var i=this.typeNs=this.nsTagName(n);this.getNamespaces().logUsed(this.typeNs);var r=e.$model.getPackage(i.uri),o=r.xml&&r.xml.typePrefix||"";return this.addAttribute(this.nsAttributeName(this.serialization),(i.prefix?i.prefix+":":"")+o+n.ns.localName),t},lr.prototype.isLocalNs=function(e){return e.uri===(this.typeNs||this.ns).uri},hr.prototype=Object.create(di.prototype),hr.prototype.fromXML=function(e,t,n){p(t)||(n=t,t="bpmn:Definitions");var i=new qi(E({model:this,lax:!0},n)),r=i.handler(t);return i.fromXML(e,r)},hr.prototype.toXML=function(e,t){var n=new ur(t);return new Promise((function(t,i){try{return t({xml:n.toXML(e)})}catch(e){return i(e)}}))};const fr={bpmn:{name:"BPMN20",uri:"http://www.omg.org/spec/BPMN/20100524/MODEL",prefix:"bpmn",associations:[],types:[{name:"Interface",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"operations",type:"Operation",isMany:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"Operation",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"inMessageRef",type:"Message",isReference:!0},{name:"outMessageRef",type:"Message",isReference:!0},{name:"errorRef",type:"Error",isMany:!0,isReference:!0},{name:"implementationRef",isAttr:!0,type:"String"}]},{name:"EndPoint",superClass:["RootElement"]},{name:"Auditing",superClass:["BaseElement"]},{name:"GlobalTask",superClass:["CallableElement"],properties:[{name:"resources",type:"ResourceRole",isMany:!0}]},{name:"Monitoring",superClass:["BaseElement"]},{name:"Performer",superClass:["ResourceRole"]},{name:"Process",superClass:["FlowElementsContainer","CallableElement"],properties:[{name:"processType",type:"ProcessType",isAttr:!0},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"properties",type:"Property",isMany:!0},{name:"laneSets",isMany:!0,replaces:"FlowElementsContainer#laneSets",type:"LaneSet"},{name:"flowElements",isMany:!0,replaces:"FlowElementsContainer#flowElements",type:"FlowElement"},{name:"artifacts",type:"Artifact",isMany:!0},{name:"resources",type:"ResourceRole",isMany:!0},{name:"correlationSubscriptions",type:"CorrelationSubscription",isMany:!0},{name:"supports",type:"Process",isMany:!0,isReference:!0},{name:"definitionalCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"isExecutable",isAttr:!0,type:"Boolean"}]},{name:"LaneSet",superClass:["BaseElement"],properties:[{name:"lanes",type:"Lane",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Lane",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"partitionElementRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"partitionElement",type:"BaseElement"},{name:"flowNodeRef",type:"FlowNode",isMany:!0,isReference:!0},{name:"childLaneSet",type:"LaneSet",xml:{serialize:"xsi:type"}}]},{name:"GlobalManualTask",superClass:["GlobalTask"]},{name:"ManualTask",superClass:["Task"]},{name:"UserTask",superClass:["Task"],properties:[{name:"renderings",type:"Rendering",isMany:!0},{name:"implementation",isAttr:!0,type:"String"}]},{name:"Rendering",superClass:["BaseElement"]},{name:"HumanPerformer",superClass:["Performer"]},{name:"PotentialOwner",superClass:["HumanPerformer"]},{name:"GlobalUserTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"renderings",type:"Rendering",isMany:!0}]},{name:"Gateway",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"gatewayDirection",type:"GatewayDirection",default:"Unspecified",isAttr:!0}]},{name:"EventBasedGateway",superClass:["Gateway"],properties:[{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"eventGatewayType",type:"EventBasedGatewayType",isAttr:!0,default:"Exclusive"}]},{name:"ComplexGateway",superClass:["Gateway"],properties:[{name:"activationCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ExclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"InclusiveGateway",superClass:["Gateway"],properties:[{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0}]},{name:"ParallelGateway",superClass:["Gateway"]},{name:"RootElement",isAbstract:!0,superClass:["BaseElement"]},{name:"Relationship",superClass:["BaseElement"],properties:[{name:"type",isAttr:!0,type:"String"},{name:"direction",type:"RelationshipDirection",isAttr:!0},{name:"source",isMany:!0,isReference:!0,type:"Element"},{name:"target",isMany:!0,isReference:!0,type:"Element"}]},{name:"BaseElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,type:"String",isId:!0},{name:"documentation",type:"Documentation",isMany:!0},{name:"extensionDefinitions",type:"ExtensionDefinition",isMany:!0,isReference:!0},{name:"extensionElements",type:"ExtensionElements"}]},{name:"Extension",properties:[{name:"mustUnderstand",default:!1,isAttr:!0,type:"Boolean"},{name:"definition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"extensionAttributeDefinitions",type:"ExtensionAttributeDefinition",isMany:!0}]},{name:"ExtensionAttributeDefinition",properties:[{name:"name",isAttr:!0,type:"String"},{name:"type",isAttr:!0,type:"String"},{name:"isReference",default:!1,isAttr:!0,type:"Boolean"},{name:"extensionDefinition",type:"ExtensionDefinition",isAttr:!0,isReference:!0}]},{name:"ExtensionElements",properties:[{name:"valueRef",isAttr:!0,isReference:!0,type:"Element"},{name:"values",type:"Element",isMany:!0},{name:"extensionAttributeDefinition",type:"ExtensionAttributeDefinition",isAttr:!0,isReference:!0}]},{name:"Documentation",superClass:["BaseElement"],properties:[{name:"text",type:"String",isBody:!0},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Event",isAbstract:!0,superClass:["FlowNode","InteractionNode"],properties:[{name:"properties",type:"Property",isMany:!0}]},{name:"IntermediateCatchEvent",superClass:["CatchEvent"]},{name:"IntermediateThrowEvent",superClass:["ThrowEvent"]},{name:"EndEvent",superClass:["ThrowEvent"]},{name:"StartEvent",superClass:["CatchEvent"],properties:[{name:"isInterrupting",default:!0,isAttr:!0,type:"Boolean"}]},{name:"ThrowEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"inputSet",type:"InputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"CatchEvent",isAbstract:!0,superClass:["Event"],properties:[{name:"parallelMultiple",isAttr:!0,type:"Boolean",default:!1},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"outputSet",type:"OutputSet"},{name:"eventDefinitions",type:"EventDefinition",isMany:!0},{name:"eventDefinitionRef",type:"EventDefinition",isMany:!0,isReference:!0}]},{name:"BoundaryEvent",superClass:["CatchEvent"],properties:[{name:"cancelActivity",default:!0,isAttr:!0,type:"Boolean"},{name:"attachedToRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"EventDefinition",isAbstract:!0,superClass:["RootElement"]},{name:"CancelEventDefinition",superClass:["EventDefinition"]},{name:"ErrorEventDefinition",superClass:["EventDefinition"],properties:[{name:"errorRef",type:"Error",isAttr:!0,isReference:!0}]},{name:"TerminateEventDefinition",superClass:["EventDefinition"]},{name:"EscalationEventDefinition",superClass:["EventDefinition"],properties:[{name:"escalationRef",type:"Escalation",isAttr:!0,isReference:!0}]},{name:"Escalation",properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"escalationCode",isAttr:!0,type:"String"}],superClass:["RootElement"]},{name:"CompensateEventDefinition",superClass:["EventDefinition"],properties:[{name:"waitForCompletion",isAttr:!0,type:"Boolean",default:!0},{name:"activityRef",type:"Activity",isAttr:!0,isReference:!0}]},{name:"TimerEventDefinition",superClass:["EventDefinition"],properties:[{name:"timeDate",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeCycle",type:"Expression",xml:{serialize:"xsi:type"}},{name:"timeDuration",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"LinkEventDefinition",superClass:["EventDefinition"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"target",type:"LinkEventDefinition",isReference:!0},{name:"source",type:"LinkEventDefinition",isMany:!0,isReference:!0}]},{name:"MessageEventDefinition",superClass:["EventDefinition"],properties:[{name:"messageRef",type:"Message",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"ConditionalEventDefinition",superClass:["EventDefinition"],properties:[{name:"condition",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"SignalEventDefinition",superClass:["EventDefinition"],properties:[{name:"signalRef",type:"Signal",isAttr:!0,isReference:!0}]},{name:"Signal",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ImplicitThrowEvent",superClass:["ThrowEvent"]},{name:"DataState",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"ItemAwareElement",superClass:["BaseElement"],properties:[{name:"itemSubjectRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"dataState",type:"DataState"}]},{name:"DataAssociation",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"ItemAwareElement",isMany:!0,isReference:!0},{name:"targetRef",type:"ItemAwareElement",isReference:!0},{name:"transformation",type:"FormalExpression",xml:{serialize:"property"}},{name:"assignment",type:"Assignment",isMany:!0}]},{name:"DataInput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"inputSetRef",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithOptional",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"inputSetWithWhileExecuting",type:"InputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"DataOutput",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"outputSetRef",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithOptional",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0},{name:"outputSetWithWhileExecuting",type:"OutputSet",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"InputSet",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"dataInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"optionalInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"whileExecutingInputRefs",type:"DataInput",isMany:!0,isReference:!0},{name:"outputSetRefs",type:"OutputSet",isMany:!0,isReference:!0}]},{name:"OutputSet",superClass:["BaseElement"],properties:[{name:"dataOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"inputSetRefs",type:"InputSet",isMany:!0,isReference:!0},{name:"optionalOutputRefs",type:"DataOutput",isMany:!0,isReference:!0},{name:"whileExecutingOutputRefs",type:"DataOutput",isMany:!0,isReference:!0}]},{name:"Property",superClass:["ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"}]},{name:"DataInputAssociation",superClass:["DataAssociation"]},{name:"DataOutputAssociation",superClass:["DataAssociation"]},{name:"InputOutputSpecification",superClass:["BaseElement"],properties:[{name:"dataInputs",type:"DataInput",isMany:!0},{name:"dataOutputs",type:"DataOutput",isMany:!0},{name:"inputSets",type:"InputSet",isMany:!0},{name:"outputSets",type:"OutputSet",isMany:!0}]},{name:"DataObject",superClass:["FlowElement","ItemAwareElement"],properties:[{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"}]},{name:"InputOutputBinding",properties:[{name:"inputDataRef",type:"InputSet",isAttr:!0,isReference:!0},{name:"outputDataRef",type:"OutputSet",isAttr:!0,isReference:!0},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"Assignment",superClass:["BaseElement"],properties:[{name:"from",type:"Expression",xml:{serialize:"xsi:type"}},{name:"to",type:"Expression",xml:{serialize:"xsi:type"}}]},{name:"DataStore",superClass:["RootElement","ItemAwareElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"capacity",isAttr:!0,type:"Integer"},{name:"isUnlimited",default:!0,isAttr:!0,type:"Boolean"}]},{name:"DataStoreReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataStoreRef",type:"DataStore",isAttr:!0,isReference:!0}]},{name:"DataObjectReference",superClass:["ItemAwareElement","FlowElement"],properties:[{name:"dataObjectRef",type:"DataObject",isAttr:!0,isReference:!0}]},{name:"ConversationLink",superClass:["BaseElement"],properties:[{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"ConversationAssociation",superClass:["BaseElement"],properties:[{name:"innerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0},{name:"outerConversationNodeRef",type:"ConversationNode",isAttr:!0,isReference:!0}]},{name:"CallConversation",superClass:["ConversationNode"],properties:[{name:"calledCollaborationRef",type:"Collaboration",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"Conversation",superClass:["ConversationNode"]},{name:"SubConversation",superClass:["ConversationNode"],properties:[{name:"conversationNodes",type:"ConversationNode",isMany:!0}]},{name:"ConversationNode",isAbstract:!0,superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"messageFlowRefs",type:"MessageFlow",isMany:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0}]},{name:"GlobalConversation",superClass:["Collaboration"]},{name:"PartnerEntity",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"PartnerRole",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"participantRef",type:"Participant",isMany:!0,isReference:!0}]},{name:"CorrelationProperty",superClass:["RootElement"],properties:[{name:"correlationPropertyRetrievalExpression",type:"CorrelationPropertyRetrievalExpression",isMany:!0},{name:"name",isAttr:!0,type:"String"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Error",superClass:["RootElement"],properties:[{name:"structureRef",type:"ItemDefinition",isAttr:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"},{name:"errorCode",isAttr:!0,type:"String"}]},{name:"CorrelationKey",superClass:["BaseElement"],properties:[{name:"correlationPropertyRef",type:"CorrelationProperty",isMany:!0,isReference:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Expression",superClass:["BaseElement"],isAbstract:!1,properties:[{name:"body",isBody:!0,type:"String"}]},{name:"FormalExpression",superClass:["Expression"],properties:[{name:"language",isAttr:!0,type:"String"},{name:"evaluatesToTypeRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"Message",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"itemRef",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"ItemDefinition",superClass:["RootElement"],properties:[{name:"itemKind",type:"ItemKind",isAttr:!0},{name:"structureRef",isAttr:!0,type:"String"},{name:"isCollection",default:!1,isAttr:!0,type:"Boolean"},{name:"import",type:"Import",isAttr:!0,isReference:!0}]},{name:"FlowElement",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"auditing",type:"Auditing"},{name:"monitoring",type:"Monitoring"},{name:"categoryValueRef",type:"CategoryValue",isMany:!0,isReference:!0}]},{name:"SequenceFlow",superClass:["FlowElement"],properties:[{name:"isImmediate",isAttr:!0,type:"Boolean"},{name:"conditionExpression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"sourceRef",type:"FlowNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"FlowNode",isAttr:!0,isReference:!0}]},{name:"FlowElementsContainer",isAbstract:!0,superClass:["BaseElement"],properties:[{name:"laneSets",type:"LaneSet",isMany:!0},{name:"flowElements",type:"FlowElement",isMany:!0}]},{name:"CallableElement",isAbstract:!0,superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"supportedInterfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"ioBinding",type:"InputOutputBinding",isMany:!0,xml:{serialize:"property"}}]},{name:"FlowNode",isAbstract:!0,superClass:["FlowElement"],properties:[{name:"incoming",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"outgoing",type:"SequenceFlow",isMany:!0,isReference:!0},{name:"lanes",type:"Lane",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"CorrelationPropertyRetrievalExpression",superClass:["BaseElement"],properties:[{name:"messagePath",type:"FormalExpression"},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"CorrelationPropertyBinding",superClass:["BaseElement"],properties:[{name:"dataPath",type:"FormalExpression"},{name:"correlationPropertyRef",type:"CorrelationProperty",isAttr:!0,isReference:!0}]},{name:"Resource",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"resourceParameters",type:"ResourceParameter",isMany:!0}]},{name:"ResourceParameter",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isRequired",isAttr:!0,type:"Boolean"},{name:"type",type:"ItemDefinition",isAttr:!0,isReference:!0}]},{name:"CorrelationSubscription",superClass:["BaseElement"],properties:[{name:"correlationKeyRef",type:"CorrelationKey",isAttr:!0,isReference:!0},{name:"correlationPropertyBinding",type:"CorrelationPropertyBinding",isMany:!0}]},{name:"MessageFlow",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"sourceRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"targetRef",type:"InteractionNode",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"MessageFlowAssociation",superClass:["BaseElement"],properties:[{name:"innerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0},{name:"outerMessageFlowRef",type:"MessageFlow",isAttr:!0,isReference:!0}]},{name:"InteractionNode",isAbstract:!0,properties:[{name:"incomingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0},{name:"outgoingConversationLinks",type:"ConversationLink",isMany:!0,isVirtual:!0,isReference:!0}]},{name:"Participant",superClass:["InteractionNode","BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"interfaceRef",type:"Interface",isMany:!0,isReference:!0},{name:"participantMultiplicity",type:"ParticipantMultiplicity"},{name:"endPointRefs",type:"EndPoint",isMany:!0,isReference:!0},{name:"processRef",type:"Process",isAttr:!0,isReference:!0}]},{name:"ParticipantAssociation",superClass:["BaseElement"],properties:[{name:"innerParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"outerParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"ParticipantMultiplicity",properties:[{name:"minimum",default:0,isAttr:!0,type:"Integer"},{name:"maximum",default:1,isAttr:!0,type:"Integer"}],superClass:["BaseElement"]},{name:"Collaboration",superClass:["RootElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"isClosed",isAttr:!0,type:"Boolean"},{name:"participants",type:"Participant",isMany:!0},{name:"messageFlows",type:"MessageFlow",isMany:!0},{name:"artifacts",type:"Artifact",isMany:!0},{name:"conversations",type:"ConversationNode",isMany:!0},{name:"conversationAssociations",type:"ConversationAssociation"},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0},{name:"messageFlowAssociations",type:"MessageFlowAssociation",isMany:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"choreographyRef",type:"Choreography",isMany:!0,isReference:!0},{name:"conversationLinks",type:"ConversationLink",isMany:!0}]},{name:"ChoreographyActivity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"participantRef",type:"Participant",isMany:!0,isReference:!0},{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0},{name:"correlationKeys",type:"CorrelationKey",isMany:!0},{name:"loopType",type:"ChoreographyLoopType",default:"None",isAttr:!0}]},{name:"CallChoreography",superClass:["ChoreographyActivity"],properties:[{name:"calledChoreographyRef",type:"Choreography",isAttr:!0,isReference:!0},{name:"participantAssociations",type:"ParticipantAssociation",isMany:!0}]},{name:"SubChoreography",superClass:["ChoreographyActivity","FlowElementsContainer"],properties:[{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"ChoreographyTask",superClass:["ChoreographyActivity"],properties:[{name:"messageFlowRef",type:"MessageFlow",isMany:!0,isReference:!0}]},{name:"Choreography",superClass:["Collaboration","FlowElementsContainer"]},{name:"GlobalChoreographyTask",superClass:["Choreography"],properties:[{name:"initiatingParticipantRef",type:"Participant",isAttr:!0,isReference:!0}]},{name:"TextAnnotation",superClass:["Artifact"],properties:[{name:"text",type:"String"},{name:"textFormat",default:"text/plain",isAttr:!0,type:"String"}]},{name:"Group",superClass:["Artifact"],properties:[{name:"categoryValueRef",type:"CategoryValue",isAttr:!0,isReference:!0}]},{name:"Association",superClass:["Artifact"],properties:[{name:"associationDirection",type:"AssociationDirection",isAttr:!0},{name:"sourceRef",type:"BaseElement",isAttr:!0,isReference:!0},{name:"targetRef",type:"BaseElement",isAttr:!0,isReference:!0}]},{name:"Category",superClass:["RootElement"],properties:[{name:"categoryValue",type:"CategoryValue",isMany:!0},{name:"name",isAttr:!0,type:"String"}]},{name:"Artifact",isAbstract:!0,superClass:["BaseElement"]},{name:"CategoryValue",superClass:["BaseElement"],properties:[{name:"categorizedFlowElements",type:"FlowElement",isMany:!0,isVirtual:!0,isReference:!0},{name:"value",isAttr:!0,type:"String"}]},{name:"Activity",isAbstract:!0,superClass:["FlowNode"],properties:[{name:"isForCompensation",default:!1,isAttr:!0,type:"Boolean"},{name:"default",type:"SequenceFlow",isAttr:!0,isReference:!0},{name:"ioSpecification",type:"InputOutputSpecification",xml:{serialize:"property"}},{name:"boundaryEventRefs",type:"BoundaryEvent",isMany:!0,isReference:!0},{name:"properties",type:"Property",isMany:!0},{name:"dataInputAssociations",type:"DataInputAssociation",isMany:!0},{name:"dataOutputAssociations",type:"DataOutputAssociation",isMany:!0},{name:"startQuantity",default:1,isAttr:!0,type:"Integer"},{name:"resources",type:"ResourceRole",isMany:!0},{name:"completionQuantity",default:1,isAttr:!0,type:"Integer"},{name:"loopCharacteristics",type:"LoopCharacteristics"}]},{name:"ServiceTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0}]},{name:"SubProcess",superClass:["Activity","FlowElementsContainer","InteractionNode"],properties:[{name:"triggeredByEvent",default:!1,isAttr:!0,type:"Boolean"},{name:"artifacts",type:"Artifact",isMany:!0}]},{name:"LoopCharacteristics",isAbstract:!0,superClass:["BaseElement"]},{name:"MultiInstanceLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"isSequential",default:!1,isAttr:!0,type:"Boolean"},{name:"behavior",type:"MultiInstanceBehavior",default:"All",isAttr:!0},{name:"loopCardinality",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopDataInputRef",type:"ItemAwareElement",isReference:!0},{name:"loopDataOutputRef",type:"ItemAwareElement",isReference:!0},{name:"inputDataItem",type:"DataInput",xml:{serialize:"property"}},{name:"outputDataItem",type:"DataOutput",xml:{serialize:"property"}},{name:"complexBehaviorDefinition",type:"ComplexBehaviorDefinition",isMany:!0},{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"oneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0},{name:"noneBehaviorEventRef",type:"EventDefinition",isAttr:!0,isReference:!0}]},{name:"StandardLoopCharacteristics",superClass:["LoopCharacteristics"],properties:[{name:"testBefore",default:!1,isAttr:!0,type:"Boolean"},{name:"loopCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"loopMaximum",type:"Integer",isAttr:!0}]},{name:"CallActivity",superClass:["Activity","InteractionNode"],properties:[{name:"calledElement",type:"String",isAttr:!0}]},{name:"Task",superClass:["Activity","InteractionNode"]},{name:"SendTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ReceiveTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"},{name:"instantiate",default:!1,isAttr:!0,type:"Boolean"},{name:"operationRef",type:"Operation",isAttr:!0,isReference:!0},{name:"messageRef",type:"Message",isAttr:!0,isReference:!0}]},{name:"ScriptTask",superClass:["Task"],properties:[{name:"scriptFormat",isAttr:!0,type:"String"},{name:"script",type:"String"}]},{name:"BusinessRuleTask",superClass:["Task"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"AdHocSubProcess",superClass:["SubProcess"],properties:[{name:"completionCondition",type:"Expression",xml:{serialize:"xsi:type"}},{name:"ordering",type:"AdHocOrdering",isAttr:!0},{name:"cancelRemainingInstances",default:!0,isAttr:!0,type:"Boolean"}]},{name:"Transaction",superClass:["SubProcess"],properties:[{name:"protocol",isAttr:!0,type:"String"},{name:"method",isAttr:!0,type:"String"}]},{name:"GlobalScriptTask",superClass:["GlobalTask"],properties:[{name:"scriptLanguage",isAttr:!0,type:"String"},{name:"script",isAttr:!0,type:"String"}]},{name:"GlobalBusinessRuleTask",superClass:["GlobalTask"],properties:[{name:"implementation",isAttr:!0,type:"String"}]},{name:"ComplexBehaviorDefinition",superClass:["BaseElement"],properties:[{name:"condition",type:"FormalExpression"},{name:"event",type:"ImplicitThrowEvent"}]},{name:"ResourceRole",superClass:["BaseElement"],properties:[{name:"resourceRef",type:"Resource",isReference:!0},{name:"resourceParameterBindings",type:"ResourceParameterBinding",isMany:!0},{name:"resourceAssignmentExpression",type:"ResourceAssignmentExpression"},{name:"name",isAttr:!0,type:"String"}]},{name:"ResourceParameterBinding",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}},{name:"parameterRef",type:"ResourceParameter",isAttr:!0,isReference:!0}],superClass:["BaseElement"]},{name:"ResourceAssignmentExpression",properties:[{name:"expression",type:"Expression",xml:{serialize:"xsi:type"}}],superClass:["BaseElement"]},{name:"Import",properties:[{name:"importType",isAttr:!0,type:"String"},{name:"location",isAttr:!0,type:"String"},{name:"namespace",isAttr:!0,type:"String"}]},{name:"Definitions",superClass:["BaseElement"],properties:[{name:"name",isAttr:!0,type:"String"},{name:"targetNamespace",isAttr:!0,type:"String"},{name:"expressionLanguage",default:"http://www.w3.org/1999/XPath",isAttr:!0,type:"String"},{name:"typeLanguage",default:"http://www.w3.org/2001/XMLSchema",isAttr:!0,type:"String"},{name:"imports",type:"Import",isMany:!0},{name:"extensions",type:"Extension",isMany:!0},{name:"rootElements",type:"RootElement",isMany:!0},{name:"diagrams",isMany:!0,type:"bpmndi:BPMNDiagram"},{name:"exporter",isAttr:!0,type:"String"},{name:"relationships",type:"Relationship",isMany:!0},{name:"exporterVersion",isAttr:!0,type:"String"}]}],enumerations:[{name:"ProcessType",literalValues:[{name:"None"},{name:"Public"},{name:"Private"}]},{name:"GatewayDirection",literalValues:[{name:"Unspecified"},{name:"Converging"},{name:"Diverging"},{name:"Mixed"}]},{name:"EventBasedGatewayType",literalValues:[{name:"Parallel"},{name:"Exclusive"}]},{name:"RelationshipDirection",literalValues:[{name:"None"},{name:"Forward"},{name:"Backward"},{name:"Both"}]},{name:"ItemKind",literalValues:[{name:"Physical"},{name:"Information"}]},{name:"ChoreographyLoopType",literalValues:[{name:"None"},{name:"Standard"},{name:"MultiInstanceSequential"},{name:"MultiInstanceParallel"}]},{name:"AssociationDirection",literalValues:[{name:"None"},{name:"One"},{name:"Both"}]},{name:"MultiInstanceBehavior",literalValues:[{name:"None"},{name:"One"},{name:"All"},{name:"Complex"}]},{name:"AdHocOrdering",literalValues:[{name:"Parallel"},{name:"Sequential"}]}],xml:{tagAlias:"lowerCase",typePrefix:"t"}},bpmndi:{name:"BPMNDI",uri:"http://www.omg.org/spec/BPMN/20100524/DI",prefix:"bpmndi",types:[{name:"BPMNDiagram",properties:[{name:"plane",type:"BPMNPlane",redefines:"di:Diagram#rootElement"},{name:"labelStyle",type:"BPMNLabelStyle",isMany:!0}],superClass:["di:Diagram"]},{name:"BPMNPlane",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"}],superClass:["di:Plane"]},{name:"BPMNShape",properties:[{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"isHorizontal",isAttr:!0,type:"Boolean"},{name:"isExpanded",isAttr:!0,type:"Boolean"},{name:"isMarkerVisible",isAttr:!0,type:"Boolean"},{name:"label",type:"BPMNLabel"},{name:"isMessageVisible",isAttr:!0,type:"Boolean"},{name:"participantBandKind",type:"ParticipantBandKind",isAttr:!0},{name:"choreographyActivityShape",type:"BPMNShape",isAttr:!0,isReference:!0}],superClass:["di:LabeledShape"]},{name:"BPMNEdge",properties:[{name:"label",type:"BPMNLabel"},{name:"bpmnElement",isAttr:!0,isReference:!0,type:"bpmn:BaseElement",redefines:"di:DiagramElement#modelElement"},{name:"sourceElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#source"},{name:"targetElement",isAttr:!0,isReference:!0,type:"di:DiagramElement",redefines:"di:Edge#target"},{name:"messageVisibleKind",type:"MessageVisibleKind",isAttr:!0,default:"initiating"}],superClass:["di:LabeledEdge"]},{name:"BPMNLabel",properties:[{name:"labelStyle",type:"BPMNLabelStyle",isAttr:!0,isReference:!0,redefines:"di:DiagramElement#style"}],superClass:["di:Label"]},{name:"BPMNLabelStyle",properties:[{name:"font",type:"dc:Font"}],superClass:["di:Style"]}],enumerations:[{name:"ParticipantBandKind",literalValues:[{name:"top_initiating"},{name:"middle_initiating"},{name:"bottom_initiating"},{name:"top_non_initiating"},{name:"middle_non_initiating"},{name:"bottom_non_initiating"}]},{name:"MessageVisibleKind",literalValues:[{name:"initiating"},{name:"non_initiating"}]}],associations:[]},dc:{name:"DC",uri:"http://www.omg.org/spec/DD/20100524/DC",prefix:"dc",types:[{name:"Boolean"},{name:"Integer"},{name:"Real"},{name:"String"},{name:"Font",properties:[{name:"name",type:"String",isAttr:!0},{name:"size",type:"Real",isAttr:!0},{name:"isBold",type:"Boolean",isAttr:!0},{name:"isItalic",type:"Boolean",isAttr:!0},{name:"isUnderline",type:"Boolean",isAttr:!0},{name:"isStrikeThrough",type:"Boolean",isAttr:!0}]},{name:"Point",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0}]},{name:"Bounds",properties:[{name:"x",type:"Real",default:"0",isAttr:!0},{name:"y",type:"Real",default:"0",isAttr:!0},{name:"width",type:"Real",isAttr:!0},{name:"height",type:"Real",isAttr:!0}]}],associations:[]},di:{name:"DI",uri:"http://www.omg.org/spec/DD/20100524/DI",prefix:"di",types:[{name:"DiagramElement",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"extension",type:"Extension"},{name:"owningDiagram",type:"Diagram",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"owningElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"modelElement",isReadOnly:!0,isVirtual:!0,isReference:!0,type:"Element"},{name:"style",type:"Style",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"ownedElement",type:"DiagramElement",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Node",isAbstract:!0,superClass:["DiagramElement"]},{name:"Edge",isAbstract:!0,superClass:["DiagramElement"],properties:[{name:"source",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"target",type:"DiagramElement",isReadOnly:!0,isVirtual:!0,isReference:!0},{name:"waypoint",isUnique:!1,isMany:!0,type:"dc:Point",xml:{serialize:"xsi:type"}}]},{name:"Diagram",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"},{name:"rootElement",type:"DiagramElement",isReadOnly:!0,isVirtual:!0},{name:"name",isAttr:!0,type:"String"},{name:"documentation",isAttr:!0,type:"String"},{name:"resolution",isAttr:!0,type:"Real"},{name:"ownedStyle",type:"Style",isReadOnly:!0,isMany:!0,isVirtual:!0}]},{name:"Shape",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Plane",isAbstract:!0,superClass:["Node"],properties:[{name:"planeElement",type:"DiagramElement",subsettedProperty:"DiagramElement-ownedElement",isMany:!0}]},{name:"LabeledEdge",isAbstract:!0,superClass:["Edge"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"LabeledShape",isAbstract:!0,superClass:["Shape"],properties:[{name:"ownedLabel",type:"Label",isReadOnly:!0,subsettedProperty:"DiagramElement-ownedElement",isMany:!0,isVirtual:!0}]},{name:"Label",isAbstract:!0,superClass:["Node"],properties:[{name:"bounds",type:"dc:Bounds"}]},{name:"Style",isAbstract:!0,properties:[{name:"id",isAttr:!0,isId:!0,type:"String"}]},{name:"Extension",properties:[{name:"values",isMany:!0,type:"Element"}]}],associations:[],xml:{tagAlias:"lowerCase"}},bioc:{name:"bpmn.io colors for BPMN",uri:"http://bpmn.io/schema/bpmn/biocolor/1.0",prefix:"bioc",types:[{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"stroke",isAttr:!0,type:"String"},{name:"fill",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]},color:{name:"BPMN in Color",uri:"http://www.omg.org/spec/BPMN/non-normative/color/1.0",prefix:"color",types:[{name:"ColoredLabel",extends:["bpmndi:BPMNLabel"],properties:[{name:"color",isAttr:!0,type:"String"}]},{name:"ColoredShape",extends:["bpmndi:BPMNShape"],properties:[{name:"background-color",isAttr:!0,type:"String"},{name:"border-color",isAttr:!0,type:"String"}]},{name:"ColoredEdge",extends:["bpmndi:BPMNEdge"],properties:[{name:"border-color",isAttr:!0,type:"String"}]}],enumerations:[],associations:[]}};function mr(e,t){return new hr(E({},fr,e),t)}function dr(e,t){return e.$instanceOf(t)}function yr(e){var t={},n=[],i={};function r(e,t){return function(n){e(n,t)}}function o(e){t[e.id]=e}function a(t,n){try{var r=i[t.id]&&function(t,n){if(t.gfx)throw new Error(`already rendered ${yt(t)}`);return e.element(t,i[t.id],n)}(t,n);return o(t),r}catch(e){s(e.message,{element:t,error:e}),console.error(`failed to import ${yt(t)}`,e)}}function s(t,n){e.error(t,n)}var l=this.registerDi=function(e){var t,n=e.bpmnElement;n?i[n.id]?s(`multiple DI elements defined for ${yt(n)}`,{element:n}):(i[n.id]=e,c(t=n,"di")||Object.defineProperty(t,"di",{enumerable:!1,get:function(){throw new Error("Tried to access di from the businessObject. The di is available through the diagram element only. For more information, see https://github.com/bpmn-io/bpmn-js/issues/1472")}})):s(`no bpmnElement referenced in ${yt(e)}`,{element:e})};function p(e){var t;t=e.plane,l(t),f(t.planeElement,m)}function m(e){l(e)}this.handleDefinitions=function(o,a){var c=o.diagrams;if(a&&-1===c.indexOf(a))throw new Error("diagram not part of ");if(!a&&c&&c.length&&(a=c[0]),!a)throw new Error("no diagram to display");i={},p(a);var m=a.plane;if(!m)throw new Error(`no plane for ${yt(a)}`);var v=m.bpmnElement;if(!v){if(v=function(e){return u(e.rootElements,(function(e){return dr(e,"bpmn:Process")||dr(e,"bpmn:Collaboration")}))}(o),!v)throw new Error("no process or collaboration to display");s(`correcting missing bpmnElement on ${yt(m)} to ${yt(v)}`),m.bpmnElement=v,l(m)}var x,w,b=function(t,n){return e.root(t,i[t.id],n)}(v,m);if(dr(v,"bpmn:Process")||dr(v,"bpmn:SubProcess"))y(v,b);else{if(!dr(v,"bpmn:Collaboration"))throw new Error(`unsupported bpmnElement for ${yt(m)}: ${yt(v)}`);w=b,f((x=v).participants,r(P,w)),E(x.artifacts,w),n.push((function(){!function(e,t){f(e,r(g,t))}(x.messageFlows,w)})),function(e,n){var i=h(e,(function(e){return!t[e.id]&&dr(e,"bpmn:Process")&&e.laneSets}));i.forEach(r(y,n))}(o.rootElements,b)}d(n)};var d=this.handleDeferred=function(){for(;n.length;)n.shift()()};function y(e,t){M(e,t),_(e.ioSpecification,t),E(e.artifacts,t),o(e)}function g(e,t){a(e,t)}function v(e,t){a(e,t)}function x(e,t){a(e,t)}function w(e,t){a(e,t)}function b(e,t){a(e,t)}function E(e,t){f(e,(function(e){dr(e,"bpmn:Association")?n.push((function(){b(e,t)})):b(e,t)}))}function _(e,t){e&&(f(e.dataInputs,r(x,t)),f(e.dataOutputs,r(w,t)))}var A=this.handleSubProcess=function(e,t){M(e,t),E(e.artifacts,t)};function R(e,t){var i=a(e,t);dr(e,"bpmn:SubProcess")&&A(e,i||t),dr(e,"bpmn:Activity")&&_(e.ioSpecification,t),n.push((function(){f(e.dataInputAssociations,r(v,t)),f(e.dataOutputAssociations,r(v,t))}))}function k(e,t){a(e,t)}function S(e,t){n.push((function(){var n=a(e,t);e.childLaneSet&&C(e.childLaneSet,n||t),function(e){f(e.flowNodeRef,(function(t){var n=t.get("lanes");n&&n.push(e)}))}(e)}))}function C(e,t){f(e.lanes,r(S,t))}function M(e,t){!function(e,t){f(e,(function(e){dr(e,"bpmn:SequenceFlow")?n.push((function(){!function(e,t){a(e,t)}(e,t)})):dr(e,"bpmn:BoundaryEvent")?n.unshift((function(){R(e,t)})):dr(e,"bpmn:FlowNode")?R(e,t):dr(e,"bpmn:DataObject")||(dr(e,"bpmn:DataStoreReference")||dr(e,"bpmn:DataObjectReference")?k(e,t):s(`unrecognized flowElement ${yt(e)} in context ${yt(t&&t.businessObject)}`,{element:e,context:t}))}))}(e.flowElements,t),e.laneSets&&function(e,t){f(e,r(C,t))}(e.laneSets,t)}function P(e,t){var n=a(e,t),i=e.processRef;i&&y(i,n||t)}}function gr(e,t,n){var i,r,o,a=[];function s(e,t){var n=new yr({root:function(e,t){return i.add(e,t)},element:function(e,t,n){return i.add(e,t,n)},error:function(e,t){a.push({message:e,context:t})}});t=t||e.diagrams&&e.diagrams[0];var r=function(e,t){if(!t||!t.plane)return;var n,i=t.plane.bpmnElement,r=i;A(i,"bpmn:Process")||A(i,"bpmn:Collaboration")||(r=function(e){var t=e;for(;t;){if(A(t,"bpmn:Process"))return t;t=t.$parent}} /** * This file must not be changed or exchanged. * @@ -10,7 +10,7 @@ * must not be changed. * * @see http://bpmn.io/license for more information. - */function Cr(e){e=E({},Pr,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e), + */function Cr(e){e=E({},Pr,e),this._moddle=this._createModdle(e),this._container=this._createContainer(e),this._init(this._container,this._moddle,e), /** * Adds the project logo to the diagram container as * required by the bpmn.io license. @@ -19,4 +19,4 @@ * * @param {Element} container */ -function(e){const t=ze(''+wr+"");Re(Ge("svg",t),br),Re(t,Er,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),Le.bind(t,"click",(function(e){Sr(),e.preventDefault()}))}(this._container),this._init(this._container,this._moddle,e)}function Mr(e,t){return e.warnings=t,e}e(Cr,ei),Cr.prototype.importXML=async function(e,t){const n=this;let i=[];try{let o;e=this._emit("import.parse.start",{xml:e})||e;try{o=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(e){throw this._emit("import.parse.complete",{error:e}),e}let a=o.rootElement;const s=o.references,l=o.warnings,p=o.elementsById;i=i.concat(l),a=this._emit("import.parse.complete",(r={error:null,definitions:a,elementsById:p,references:s,warnings:i},n.get("eventBus").createEvent(r)))||a;const c=await this.importDefinitions(a,t);return i=i.concat(c.warnings),this._emit("import.done",{error:null,warnings:i}),{warnings:i}}catch(e){let t=e;throw i=i.concat(t.warnings||[]),Mr(t,i),t=function(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]);return e}(t),this._emit("import.done",{error:t,warnings:t.warnings}),t}var r},Cr.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},Cr.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw Mr(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return u(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw Mr(t,[]),t}try{this.clear()}catch(e){throw Mr(e,[]),e}const{warnings:i}=await gr(this,t,n);return{warnings:i}},Cr.prototype.saveXML=async function(e){e=e||{};let t,n,i=this._definitions;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i;n=(await this._moddle.toXML(i,e)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(e){t=e}const r=t?{error:t}:{xml:n};if(this._emit("saveXML.done",r),t)throw t;return r},Cr.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=Ge(":scope > defs",t._svg),r=Q(n),o=i?""+Q(i)+"":"",a=n.getBBox();e='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+o+r+""}catch(e){t=e}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},Cr.prototype._setDefinitions=function(e){this._definitions=e},Cr.prototype.getModules=function(){return this._modules},Cr.prototype.clear=function(){this.getDefinitions()&&ei.prototype.clear.call(this)},Cr.prototype.destroy=function(){ei.prototype.destroy.call(this),He(this._container)},Cr.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Cr.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Cr.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Ge(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Cr.prototype.getDefinitions=function(){return this._definitions},Cr.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Cr.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),a=E(function(e,t){let n={};return f(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}(n,["additionalModules"]),{canvas:E({},n.canvas,{container:e}),modules:o});ei.call(this,a),n&&n.container&&this.attachTo(n.container)},Cr.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Cr.prototype._createContainer=function(e){const t=ze('
      ');return Re(t,{width:Nr(e.width),height:Nr(e.height),position:e.position}),t},Cr.prototype._createModdle=function(e){return new mr(E({},this._moddleExtensions,e.moddleExtensions))},Cr.prototype._modules=[];const Pr={width:"100%",height:"100%",position:"relative"};function Nr(e){return e+(s(e)?"px":"")}function Tr(e){Cr.call(this,e)}return e(Tr,Cr),Tr.prototype._modules=[bt,Xt,Nt,un,ut],Tr.prototype._moddleExtensions={},Tr})); +function(e){const t=ze(''+wr+"");Re(Ge("svg",t),br),Re(t,Er,{position:"absolute",bottom:"15px",right:"15px",zIndex:"100"}),e.appendChild(t),Le.bind(t,"click",(function(e){Sr(),e.preventDefault()}))}(this._container)}function Mr(e,t){return e.warnings=t,e}e(Cr,ei),Cr.prototype.importXML=async function(e,t){const n=this;let i=[];try{let o;e=this._emit("import.parse.start",{xml:e})||e;try{o=await this._moddle.fromXML(e,"bpmn:Definitions")}catch(e){throw this._emit("import.parse.complete",{error:e}),e}let a=o.rootElement;const s=o.references,l=o.warnings,p=o.elementsById;i=i.concat(l),a=this._emit("import.parse.complete",(r={error:null,definitions:a,elementsById:p,references:s,warnings:i},n.get("eventBus").createEvent(r)))||a;const c=await this.importDefinitions(a,t);return i=i.concat(c.warnings),this._emit("import.done",{error:null,warnings:i}),{warnings:i}}catch(e){let t=e;throw i=i.concat(t.warnings||[]),Mr(t,i),t=function(e){const t=/unparsable content <([^>]+)> detected([\s\S]*)$/.exec(e.message);t&&(e.message="unparsable content <"+t[1]+"> detected; this may indicate an invalid BPMN 2.0 diagram file"+t[2]);return e}(t),this._emit("import.done",{error:t,warnings:t.warnings}),t}var r},Cr.prototype.importDefinitions=async function(e,t){this._setDefinitions(e);return{warnings:(await this.open(t)).warnings}},Cr.prototype.open=async function(e){const t=this._definitions;let n=e;if(!t){const e=new Error("no XML imported");throw Mr(e,[]),e}if("string"==typeof e&&(n=function(e,t){if(!t)return null;return u(e.diagrams,(function(e){return e.id===t}))||null}(t,e),!n)){const t=new Error("BPMNDiagram <"+e+"> not found");throw Mr(t,[]),t}try{this.clear()}catch(e){throw Mr(e,[]),e}const{warnings:i}=await gr(this,t,n);return{warnings:i}},Cr.prototype.saveXML=async function(e){e=e||{};let t,n,i=this._definitions;try{if(!i)throw new Error("no definitions loaded");i=this._emit("saveXML.start",{definitions:i})||i;n=(await this._moddle.toXML(i,e)).xml,n=this._emit("saveXML.serialized",{xml:n})||n}catch(e){t=e}const r=t?{error:t}:{xml:n};if(this._emit("saveXML.done",r),t)throw t;return r},Cr.prototype.saveSVG=async function(){let e,t;this._emit("saveSVG.start");try{const t=this.get("canvas"),n=t.getActiveLayer(),i=Ge(":scope > defs",t._svg),r=Q(n),o=i?""+Q(i)+"":"",a=n.getBBox();e='\n\x3c!-- created with bpmn-js / http://bpmn.io --\x3e\n\n'+o+r+""}catch(e){t=e}if(this._emit("saveSVG.done",{error:t,svg:e}),t)throw t;return{svg:e}},Cr.prototype._setDefinitions=function(e){this._definitions=e},Cr.prototype.getModules=function(){return this._modules},Cr.prototype.clear=function(){this.getDefinitions()&&ei.prototype.clear.call(this)},Cr.prototype.destroy=function(){ei.prototype.destroy.call(this),He(this._container)},Cr.prototype.on=function(e,t,n,i){return this.get("eventBus").on(e,t,n,i)},Cr.prototype.off=function(e,t){this.get("eventBus").off(e,t)},Cr.prototype.attachTo=function(e){if(!e)throw new Error("parentNode required");this.detach(),e.get&&e.constructor.prototype.jquery&&(e=e.get(0)),"string"==typeof e&&(e=Ge(e)),e.appendChild(this._container),this._emit("attach",{}),this.get("canvas").resized()},Cr.prototype.getDefinitions=function(){return this._definitions},Cr.prototype.detach=function(){const e=this._container,t=e.parentNode;t&&(this._emit("detach",{}),t.removeChild(e))},Cr.prototype._init=function(e,t,n){const i=n.modules||this.getModules(n),r=n.additionalModules||[],o=[].concat([{bpmnjs:["value",this],moddle:["value",t]}],i,r),a=E(function(e,t){let n={};return f(Object(e),(function(e,i){-1===t.indexOf(i)&&(n[i]=e)})),n}(n,["additionalModules"]),{canvas:E({},n.canvas,{container:e}),modules:o});ei.call(this,a),n&&n.container&&this.attachTo(n.container)},Cr.prototype._emit=function(e,t){return this.get("eventBus").fire(e,t)},Cr.prototype._createContainer=function(e){const t=ze('
      ');return Re(t,{width:Nr(e.width),height:Nr(e.height),position:e.position}),t},Cr.prototype._createModdle=function(e){return new mr(E({},this._moddleExtensions,e.moddleExtensions))},Cr.prototype._modules=[];const Pr={width:"100%",height:"100%",position:"relative"};function Nr(e){return e+(s(e)?"px":"")}function Tr(e){Cr.call(this,e)}return e(Tr,Cr),Tr.prototype._modules=[bt,Xt,Nt,un,ut],Tr.prototype._moddleExtensions={},Tr})); diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/architectureDiagram-QTIGHTN5.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/architectureDiagram-MJF3Q7TB.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/architectureDiagram-QTIGHTN5.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/architectureDiagram-MJF3Q7TB.mjs index 6a9ecf291..2aa254f2e 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/architectureDiagram-QTIGHTN5.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/architectureDiagram-MJF3Q7TB.mjs @@ -1,4 +1,4 @@ -import{a as De}from"./chunk-PWCSEZZ4.mjs";import{a as je}from"./chunk-VSLJSFIP.mjs";import{a as Ke}from"./chunk-4KE642ED.mjs";import{a as Qe}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as _e}from"./chunk-BPW5ZDWE.mjs";import{a as Ue,b as Xe,c as de}from"./chunk-HMDXFKD7.mjs";import{d as pe}from"./chunk-EXDBZKZY.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{N as We,P as Ve,Q as ze,R as Be,S as $e,T as ke,U as Ze,V as Je,X as ae,b as ge,ga as qe,s as He}from"./chunk-ITX3UAHE.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as L,b as Le,e as yr}from"./chunk-GTKDMUJJ.mjs";var Oe=Le((le,xe)=>{"use strict";L(function(w,N){typeof le=="object"&&typeof xe=="object"?xe.exports=N():typeof define=="function"&&define.amd?define([],N):typeof le=="object"?le.layoutBase=N():w.layoutBase=N()},"webpackUniversalModuleDefinition")(le,function(){return function(E){var w={};function N(u){if(w[u])return w[u].exports;var o=w[u]={i:u,l:!1,exports:{}};return E[u].call(o.exports,o,o.exports,N),o.l=!0,o.exports}return L(N,"__webpack_require__"),N.m=E,N.c=w,N.i=function(u){return u},N.d=function(u,o,a){N.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:a})},N.n=function(u){var o=u&&u.__esModule?L(function(){return u.default},"getDefault"):L(function(){return u},"getModuleExports");return N.d(o,"a",o),o},N.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},N.p="",N(N.s=28)}([function(E,w,N){"use strict";function u(){}L(u,"LayoutConstants"),u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,E.exports=u},function(E,w,N){"use strict";var u=N(2),o=N(8),a=N(9);function t(c,e,p){u.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=c,this.target=e}L(t,"LEdge"),t.prototype=Object.create(u.prototype);for(var n in u)t[n]=u[n];t.prototype.getSource=function(){return this.source},t.prototype.getTarget=function(){return this.target},t.prototype.isInterGraph=function(){return this.isInterGraph},t.prototype.getLength=function(){return this.length},t.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},t.prototype.getBendpoints=function(){return this.bendpoints},t.prototype.getLca=function(){return this.lca},t.prototype.getSourceInLca=function(){return this.sourceInLca},t.prototype.getTargetInLca=function(){return this.targetInLca},t.prototype.getOtherEnd=function(c){if(this.source===c)return this.target;if(this.target===c)return this.source;throw"Node is not incident with this edge"},t.prototype.getOtherEndInGraph=function(c,e){for(var p=this.getOtherEnd(c),i=e.getGraphManager().getRoot();;){if(p.getOwner()==e)return p;if(p.getOwner()==i)break;p=p.getOwner().getParent()}return null},t.prototype.updateLength=function(){var c=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),c),this.isOverlapingSourceAndTarget||(this.lengthX=c[0]-c[2],this.lengthY=c[1]-c[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},t.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=t},function(E,w,N){"use strict";function u(o){this.vGraphObject=o}L(u,"LGraphObject"),E.exports=u},function(E,w,N){"use strict";var u=N(2),o=N(10),a=N(13),t=N(0),n=N(16),c=N(5);function e(i,r,h,f){h==null&&f==null&&(f=r),u.call(this,f),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=f,this.edges=[],this.graphManager=i,h!=null&&r!=null?this.rect=new a(r.x,r.y,h.width,h.height):this.rect=new a}L(e,"LNode"),e.prototype=Object.create(u.prototype);for(var p in u)e[p]=u[p];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(i){this.rect.width=i},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(i){this.rect.height=i},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(i,r){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=r.width,this.rect.height=r.height},e.prototype.setCenter=function(i,r){this.rect.x=i-this.rect.width/2,this.rect.y=r-this.rect.height/2},e.prototype.setLocation=function(i,r){this.rect.x=i,this.rect.y=r},e.prototype.moveBy=function(i,r){this.rect.x+=i,this.rect.y+=r},e.prototype.getEdgeListToNode=function(i){var r=[],h,f=this;return f.edges.forEach(function(l){if(l.target==i){if(l.source!=f)throw"Incorrect edge source!";r.push(l)}}),r},e.prototype.getEdgesBetween=function(i){var r=[],h,f=this;return f.edges.forEach(function(l){if(!(l.source==f||l.target==f))throw"Incorrect edge source and/or target";(l.target==i||l.source==i)&&r.push(l)}),r},e.prototype.getNeighborsList=function(){var i=new Set,r=this;return r.edges.forEach(function(h){if(h.source==r)i.add(h.target);else{if(h.target!=r)throw"Incorrect incidency!";i.add(h.source)}}),i},e.prototype.withChildren=function(){var i=new Set,r,h;if(i.add(this),this.child!=null)for(var f=this.child.getNodes(),l=0;lr?(this.rect.x-=(this.labelWidth-r)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(r+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(h+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>h?(this.rect.y-=(this.labelHeight-h)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(h+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(i){var r=this.rect.x;r>t.WORLD_BOUNDARY?r=t.WORLD_BOUNDARY:r<-t.WORLD_BOUNDARY&&(r=-t.WORLD_BOUNDARY);var h=this.rect.y;h>t.WORLD_BOUNDARY?h=t.WORLD_BOUNDARY:h<-t.WORLD_BOUNDARY&&(h=-t.WORLD_BOUNDARY);var f=new c(r,h),l=i.inverseTransformPoint(f);this.setLocation(l.x,l.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=e},function(E,w,N){"use strict";var u=N(0);function o(){}L(o,"FDLayoutConstants");for(var a in u)o[a]=u[a];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,E.exports=o},function(E,w,N){"use strict";function u(o,a){o==null&&a==null?(this.x=0,this.y=0):(this.x=o,this.y=a)}L(u,"PointD"),u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(o){this.x=o},u.prototype.setY=function(o){this.y=o},u.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},E.exports=u},function(E,w,N){"use strict";var u=N(2),o=N(10),a=N(0),t=N(7),n=N(3),c=N(1),e=N(13),p=N(12),i=N(11);function r(f,l,A){u.call(this,A),this.estimatedSize=o.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=f,l!=null&&l instanceof t?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}L(r,"LGraph"),r.prototype=Object.create(u.prototype);for(var h in u)r[h]=u[h];r.prototype.getNodes=function(){return this.nodes},r.prototype.getEdges=function(){return this.edges},r.prototype.getGraphManager=function(){return this.graphManager},r.prototype.getParent=function(){return this.parent},r.prototype.getLeft=function(){return this.left},r.prototype.getRight=function(){return this.right},r.prototype.getTop=function(){return this.top},r.prototype.getBottom=function(){return this.bottom},r.prototype.isConnected=function(){return this.isConnected},r.prototype.add=function(f,l,A){if(l==null&&A==null){var v=f;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var y=f;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(A)>-1))throw"Source or target not in graph!";if(!(l.owner==A.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=A.owner?null:(y.source=l,y.target=A,y.isInterGraph=!1,this.getEdges().push(y),l.edges.push(y),A!=l&&A.edges.push(y),y)}},r.prototype.remove=function(f){var l=f;if(f instanceof n){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var A=l.edges.slice(),v,y=A.length,D=0;D-1&&G>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(C,1),v.target!=v.source&&v.target.edges.splice(G,1);var F=v.source.owner.getEdges().indexOf(v);if(F==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(F,1)}},r.prototype.updateLeftTop=function(){for(var f=o.MAX_VALUE,l=o.MAX_VALUE,A,v,y,D=this.getNodes(),F=D.length,C=0;CA&&(f=A),l>v&&(l=v)}return f==o.MAX_VALUE?null:(D[0].getParent().paddingLeft!=null?y=D[0].getParent().paddingLeft:y=this.margin,this.left=l-y,this.top=f-y,new p(this.left,this.top))},r.prototype.updateBounds=function(f){for(var l=o.MAX_VALUE,A=-o.MAX_VALUE,v=o.MAX_VALUE,y=-o.MAX_VALUE,D,F,C,G,z,X=this.nodes,rt=X.length,I=0;ID&&(l=D),AC&&(v=C),yD&&(l=D),AC&&(v=C),y=this.nodes.length){var rt=0;A.forEach(function(I){I.owner==f&&rt++}),rt==this.nodes.length&&(this.isConnected=!0)}},E.exports=r},function(E,w,N){"use strict";var u,o=N(1);function a(t){u=N(6),this.layout=t,this.graphs=[],this.edges=[]}L(a,"LGraphManager"),a.prototype.addRoot=function(){var t=this.layout.newGraph(),n=this.layout.newNode(null),c=this.add(t,n);return this.setRootGraph(c),this.rootGraph},a.prototype.add=function(t,n,c,e,p){if(c==null&&e==null&&p==null){if(t==null)throw"Graph is null!";if(n==null)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),t.parent!=null)throw"Already has a parent!";if(n.child!=null)throw"Already has a child!";return t.parent=n,n.child=t,t}else{p=c,e=n,c=t;var i=e.getOwner(),r=p.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(r!=null&&r.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==r)return c.isInterGraph=!1,i.add(c,e,p);if(c.isInterGraph=!0,c.source=e,c.target=p,this.edges.indexOf(c)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(c),!(c.source!=null&&c.target!=null))throw"Edge source and/or target is null!";if(!(c.source.edges.indexOf(c)==-1&&c.target.edges.indexOf(c)==-1))throw"Edge already in source and/or target incidency list!";return c.source.edges.push(c),c.target.edges.push(c),c}},a.prototype.remove=function(t){if(t instanceof u){var n=t;if(n.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(n==this.rootGraph||n.parent!=null&&n.parent.graphManager==this))throw"Invalid parent node!";var c=[];c=c.concat(n.getEdges());for(var e,p=c.length,i=0;i=t.getRight()?n[0]+=Math.min(t.getX()-a.getX(),a.getRight()-t.getRight()):t.getX()<=a.getX()&&t.getRight()>=a.getRight()&&(n[0]+=Math.min(a.getX()-t.getX(),t.getRight()-a.getRight())),a.getY()<=t.getY()&&a.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-a.getY(),a.getBottom()-t.getBottom()):t.getY()<=a.getY()&&t.getBottom()>=a.getBottom()&&(n[1]+=Math.min(a.getY()-t.getY(),t.getBottom()-a.getBottom()));var p=Math.abs((t.getCenterY()-a.getCenterY())/(t.getCenterX()-a.getCenterX()));t.getCenterY()===a.getCenterY()&&t.getCenterX()===a.getCenterX()&&(p=1);var i=p*n[0],r=n[1]/p;n[0]i)return n[0]=c,n[1]=h,n[2]=p,n[3]=X,!1;if(ep)return n[0]=r,n[1]=e,n[2]=G,n[3]=i,!1;if(cp?(n[0]=l,n[1]=A,s=!0):(n[0]=f,n[1]=h,s=!0):g===d&&(c>p?(n[0]=r,n[1]=h,s=!0):(n[0]=v,n[1]=A,s=!0)),-T===d?p>c?(n[2]=z,n[3]=X,m=!0):(n[2]=G,n[3]=C,m=!0):T===d&&(p>c?(n[2]=F,n[3]=C,m=!0):(n[2]=rt,n[3]=X,m=!0)),s&&m)return!1;if(c>p?e>i?(O=this.getCardinalDirection(g,d,4),x=this.getCardinalDirection(T,d,2)):(O=this.getCardinalDirection(-g,d,3),x=this.getCardinalDirection(-T,d,1)):e>i?(O=this.getCardinalDirection(-g,d,1),x=this.getCardinalDirection(-T,d,3)):(O=this.getCardinalDirection(g,d,2),x=this.getCardinalDirection(T,d,4)),!s)switch(O){case 1:S=h,P=c+-D/d,n[0]=P,n[1]=S;break;case 2:P=v,S=e+y*d,n[0]=P,n[1]=S;break;case 3:S=A,P=c+D/d,n[0]=P,n[1]=S;break;case 4:P=l,S=e+-y*d,n[0]=P,n[1]=S;break}if(!m)switch(x){case 1:Z=C,R=p+-J/d,n[2]=R,n[3]=Z;break;case 2:R=rt,Z=i+I*d,n[2]=R,n[3]=Z;break;case 3:Z=X,R=p+J/d,n[2]=R,n[3]=Z;break;case 4:R=z,Z=i+-I*d,n[2]=R,n[3]=Z;break}}return!1},o.getCardinalDirection=function(a,t,n){return a>t?n:1+n%4},o.getIntersection=function(a,t,n,c){if(c==null)return this.getIntersection2(a,t,n);var e=a.x,p=a.y,i=t.x,r=t.y,h=n.x,f=n.y,l=c.x,A=c.y,v=void 0,y=void 0,D=void 0,F=void 0,C=void 0,G=void 0,z=void 0,X=void 0,rt=void 0;return D=r-p,C=e-i,z=i*p-e*r,F=A-f,G=h-l,X=l*f-h*A,rt=D*G-F*C,rt===0?null:(v=(C*X-G*z)/rt,y=(F*z-D*X)/rt,new u(v,y))},o.angleOfVector=function(a,t,n,c){var e=void 0;return a!==n?(e=Math.atan((c-t)/(n-a)),n=0){var A=(-h+Math.sqrt(h*h-4*r*f))/(2*r),v=(-h-Math.sqrt(h*h-4*r*f))/(2*r),y=null;return A>=0&&A<=1?[A]:v>=0&&v<=1?[v]:y}else return null},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,E.exports=o},function(E,w,N){"use strict";function u(){}L(u,"IMath"),u.sign=function(o){return o>0?1:o<0?-1:0},u.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},u.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},E.exports=u},function(E,w,N){"use strict";function u(){}L(u,"Integer"),u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,E.exports=u},function(E,w,N){"use strict";var u=function(){function e(p,i){for(var r=0;r"u"?"undefined":u(a);return a==null||t!="object"&&t!="function"},E.exports=o},function(E,w,N){"use strict";function u(h){if(Array.isArray(h)){for(var f=0,l=Array(h.length);f0&&f;){for(D.push(C[0]);D.length>0&&f;){var G=D[0];D.splice(0,1),y.add(G);for(var z=G.getEdges(),v=0;v-1&&C.splice(J,1)}y=new Set,F=new Map}}return h},r.prototype.createDummyNodesForBendpoints=function(h){for(var f=[],l=h.source,A=this.graphManager.calcLowestCommonAncestor(h.source,h.target),v=0;v0){for(var A=this.edgeToDummyNodes.get(l),v=0;v=0&&f.splice(X,1);var rt=F.getNeighborsList();rt.forEach(function(s){if(l.indexOf(s)<0){var m=A.get(s),g=m-1;g==1&&G.push(s),A.set(s,g)}})}l=l.concat(G),(f.length==1||f.length==2)&&(v=!0,y=f[0])}return y},r.prototype.setGraphManager=function(h){this.graphManager=h},E.exports=r},function(E,w,N){"use strict";function u(){}L(u,"RandomSeed"),u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},E.exports=u},function(E,w,N){"use strict";var u=N(5);function o(a,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}L(o,"Transform"),o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(a){this.lworldExtX=a},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(a){this.lworldExtY=a},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},o.prototype.transformX=function(a){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/n),t},o.prototype.transformY=function(a){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/n),t},o.prototype.inverseTransformX=function(a){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/n),t},o.prototype.inverseTransformY=function(a){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/n),t},o.prototype.inverseTransformPoint=function(a){var t=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return t},E.exports=o},function(E,w,N){"use strict";function u(i){if(Array.isArray(i)){for(var r=0,h=Array(i.length);ra.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(i-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),r,h=0;h0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h,f,l,A,v=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),y=new Set,h=0;hD||y>D)&&(i.gravitationForceX=-this.gravityConstant*l,i.gravitationForceY=-this.gravityConstant*A)):(D=r.getEstimatedSize()*this.compoundGravityRangeFactor,(v>D||y>D)&&(i.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*A*this.compoundGravityConstant))},e.prototype.isConverged=function(){var i,r=!1;return this.totalIterations>this.maxIterations/3&&(r=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement=v.length||D>=v[0].length)){for(var F=0;Fe},"_defaultCompareFunction")}]),n}();E.exports=t},function(E,w,N){"use strict";function u(){}L(u,"SVD"),u.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var a=Math.min(this.m,this.n);this.s=function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt}(Math.min(this.m+1,this.n)),this.U=function(Ot){var Nt=L(function Zt(St){if(St.length==0)return 0;for(var Wt=[],$t=0;$t0;)Nt.push(0);return Nt}(this.n),n=function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt}(this.m),c=!0,e=!0,p=Math.min(this.m-1,this.n),i=Math.max(0,Math.min(this.n-2,this.m)),r=0;r=0;d--)if(this.s[d]!==0){for(var O=d+1;O=0;b--){if(function(Ot,Nt){return Ot&&Nt}(b0;){var Q=void 0,Xt=void 0;for(Q=m-2;Q>=-1&&Q!==-1;Q--)if(Math.abs(t[Q])<=bt+Lt*(Math.abs(this.s[Q])+Math.abs(this.s[Q+1]))){t[Q]=0;break}if(Q===m-2)Xt=4;else{var wt=void 0;for(wt=m-1;wt>=Q&&wt!==Q;wt--){var ot=(wt!==m?Math.abs(t[wt]):0)+(wt!==Q+1?Math.abs(t[wt-1]):0);if(Math.abs(this.s[wt])<=bt+Lt*ot){this.s[wt]=0;break}}wt===Q?Xt=3:wt===m-1?Xt=1:(Xt=2,Q=wt)}switch(Q++,Xt){case 1:{var et=t[m-2];t[m-2]=0;for(var yt=m-2;yt>=Q;yt--){var Et=u.hypot(this.s[yt],et),Dt=this.s[yt]/Et,Tt=et/Et;if(this.s[yt]=Et,yt!==Q&&(et=-Tt*t[yt-1],t[yt-1]=Dt*t[yt-1]),e)for(var At=0;At=this.s[Q+1]);){var ct=this.s[Q];if(this.s[Q]=this.s[Q+1],this.s[Q+1]=ct,e&&QMath.abs(a)?(t=a/o,t=Math.abs(o)*Math.sqrt(1+t*t)):a!=0?(t=o/a,t=Math.abs(a)*Math.sqrt(1+t*t)):t=0,t},E.exports=u},function(E,w,N){"use strict";var u=function(){function t(n,c){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,t),this.sequence1=n,this.sequence2=c,this.match_score=e,this.mismatch_penalty=p,this.gap_penalty=i,this.iMax=n.length+1,this.jMax=c.length+1,this.grid=new Array(this.iMax);for(var r=0;r=0;n--){var c=this.listeners[n];c.event===a&&c.callback===t&&this.listeners.splice(n,1)}},o.emit=function(a,t){for(var n=0;n{"use strict";L(function(w,N){typeof ce=="object"&&typeof Re=="object"?Re.exports=N(Oe()):typeof define=="function"&&define.amd?define(["layout-base"],N):typeof ce=="object"?ce.coseBase=N(Oe()):w.coseBase=N(w.layoutBase)},"webpackUniversalModuleDefinition")(ce,function(E){return(()=>{"use strict";var w={45:(a,t,n)=>{var c={};c.layoutBase=n(551),c.CoSEConstants=n(806),c.CoSEEdge=n(767),c.CoSEGraph=n(880),c.CoSEGraphManager=n(578),c.CoSELayout=n(765),c.CoSENode=n(991),c.ConstraintHandler=n(902),a.exports=c},806:(a,t,n)=>{var c=n(551).FDLayoutConstants;function e(){}L(e,"CoSEConstants");for(var p in c)e[p]=c[p];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,a.exports=e},767:(a,t,n)=>{var c=n(551).FDLayoutEdge;function e(i,r,h){c.call(this,i,r,h)}L(e,"CoSEEdge"),e.prototype=Object.create(c.prototype);for(var p in c)e[p]=c[p];a.exports=e},880:(a,t,n)=>{var c=n(551).LGraph;function e(i,r,h){c.call(this,i,r,h)}L(e,"CoSEGraph"),e.prototype=Object.create(c.prototype);for(var p in c)e[p]=c[p];a.exports=e},578:(a,t,n)=>{var c=n(551).LGraphManager;function e(i){c.call(this,i)}L(e,"CoSEGraphManager"),e.prototype=Object.create(c.prototype);for(var p in c)e[p]=c[p];a.exports=e},765:(a,t,n)=>{var c=n(551).FDLayout,e=n(578),p=n(880),i=n(991),r=n(767),h=n(806),f=n(902),l=n(551).FDLayoutConstants,A=n(551).LayoutConstants,v=n(551).Point,y=n(551).PointD,D=n(551).DimensionD,F=n(551).Layout,C=n(551).Integer,G=n(551).IGeometry,z=n(551).LGraph,X=n(551).Transform,rt=n(551).LinkedList;function I(){c.call(this),this.toBeTiled={},this.constraints={}}L(I,"CoSELayout"),I.prototype=Object.create(c.prototype);for(var J in c)I[J]=c[J];I.prototype.newGraphManager=function(){var s=new e(this);return this.graphManager=s,s},I.prototype.newGraph=function(s){return new p(null,this.graphManager,s)},I.prototype.newNode=function(s){return new i(this.graphManager,s)},I.prototype.newEdge=function(s){return new r(null,null,s)},I.prototype.initParameters=function(){c.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},I.prototype.initSpringEmbedder=function(){c.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},I.prototype.layout=function(){var s=A.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},I.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(O){return m.has(O)});this.graphManager.setAllNodesToApplyGravitation(g)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(T){return m.has(T)});this.graphManager.setAllNodesToApplyGravitation(g),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(f.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),h.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},I.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(d){return s.has(d)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),h.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),h.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var g=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(g,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},I.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),m={},g=0;g0&&this.updateDisplacements();for(var g=0;g0&&(T.fixedNodeWeight=O)}}if(this.constraints.relativePlacementConstraint){var x=new Map,P=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(M){s.fixedNodesOnHorizontal.add(M),s.fixedNodesOnVertical.add(M)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var S=this.constraints.alignmentConstraint.vertical,g=0;g=2*M.length/3;K--)U=Math.floor(Math.random()*(K+1)),H=M[K],M[K]=M[U],M[U]=H;return M},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(M){if(M.left){var U=x.has(M.left)?x.get(M.left):M.left,H=x.has(M.right)?x.get(M.right):M.right;s.nodesInRelativeHorizontal.includes(U)||(s.nodesInRelativeHorizontal.push(U),s.nodeToRelativeConstraintMapHorizontal.set(U,[]),s.dummyToNodeForVerticalAlignment.has(U)?s.nodeToTempPositionMapHorizontal.set(U,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(U)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(U,s.idToNodeMap.get(U).getCenterX())),s.nodesInRelativeHorizontal.includes(H)||(s.nodesInRelativeHorizontal.push(H),s.nodeToRelativeConstraintMapHorizontal.set(H,[]),s.dummyToNodeForVerticalAlignment.has(H)?s.nodeToTempPositionMapHorizontal.set(H,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(H,s.idToNodeMap.get(H).getCenterX())),s.nodeToRelativeConstraintMapHorizontal.get(U).push({right:H,gap:M.gap}),s.nodeToRelativeConstraintMapHorizontal.get(H).push({left:U,gap:M.gap})}else{var K=P.has(M.top)?P.get(M.top):M.top,ht=P.has(M.bottom)?P.get(M.bottom):M.bottom;s.nodesInRelativeVertical.includes(K)||(s.nodesInRelativeVertical.push(K),s.nodeToRelativeConstraintMapVertical.set(K,[]),s.dummyToNodeForHorizontalAlignment.has(K)?s.nodeToTempPositionMapVertical.set(K,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(K)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(K,s.idToNodeMap.get(K).getCenterY())),s.nodesInRelativeVertical.includes(ht)||(s.nodesInRelativeVertical.push(ht),s.nodeToRelativeConstraintMapVertical.set(ht,[]),s.dummyToNodeForHorizontalAlignment.has(ht)?s.nodeToTempPositionMapVertical.set(ht,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(ht,s.idToNodeMap.get(ht).getCenterY())),s.nodeToRelativeConstraintMapVertical.get(K).push({bottom:ht,gap:M.gap}),s.nodeToRelativeConstraintMapVertical.get(ht).push({top:K,gap:M.gap})}});else{var Z=new Map,tt=new Map;this.constraints.relativePlacementConstraint.forEach(function(M){if(M.left){var U=x.has(M.left)?x.get(M.left):M.left,H=x.has(M.right)?x.get(M.right):M.right;Z.has(U)?Z.get(U).push(H):Z.set(U,[H]),Z.has(H)?Z.get(H).push(U):Z.set(H,[U])}else{var K=P.has(M.top)?P.get(M.top):M.top,ht=P.has(M.bottom)?P.get(M.bottom):M.bottom;tt.has(K)?tt.get(K).push(ht):tt.set(K,[ht]),tt.has(ht)?tt.get(ht).push(K):tt.set(ht,[K])}});var b=L(function(U,H){var K=[],ht=[],Lt=new rt,bt=new Set,Q=0;return U.forEach(function(Xt,wt){if(!bt.has(wt)){K[Q]=[],ht[Q]=!1;var ot=wt;for(Lt.push(ot),bt.add(ot),K[Q].push(ot);Lt.length!=0;){ot=Lt.shift(),H.has(ot)&&(ht[Q]=!0);var et=U.get(ot);et.forEach(function(yt){bt.has(yt)||(Lt.push(yt),bt.add(yt),K[Q].push(yt))})}Q++}}),{components:K,isFixed:ht}},"constructComponents"),_=b(Z,s.fixedNodesOnHorizontal);this.componentsOnHorizontal=_.components,this.fixedComponentsOnHorizontal=_.isFixed;var B=b(tt,s.fixedNodesOnVertical);this.componentsOnVertical=B.components,this.fixedComponentsOnVertical=B.isFixed}}},I.prototype.updateDisplacements=function(){var s=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(B){var M=s.idToNodeMap.get(B.nodeId);M.displacementX=0,M.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,g=0;g1){var P;for(P=0;PT&&(T=Math.floor(x.y)),O=Math.floor(x.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new y(A.WORLD_CENTER_X-x.x/2,A.WORLD_CENTER_Y-x.y/2))},I.radialLayout=function(s,m,g){var T=Math.max(this.maxDiagonalInTree(s),h.DEFAULT_RADIAL_SEPARATION);I.branchRadialLayout(m,null,0,359,0,T);var d=z.calculateBounds(s),O=new X;O.setDeviceOrgX(d.getMinX()),O.setDeviceOrgY(d.getMinY()),O.setWorldOrgX(g.x),O.setWorldOrgY(g.y);for(var x=0;x1;){var K=H[0];H.splice(0,1);var ht=b.indexOf(K);ht>=0&&b.splice(ht,1),M--,_--}m!=null?U=(b.indexOf(H[0])+1)%M:U=0;for(var Lt=Math.abs(T-g)/_,bt=U;B!=_;bt=++bt%M){var Q=b[bt].getOtherEnd(s);if(Q!=m){var Xt=(g+B*Lt)%360,wt=(Xt+Lt)%360;I.branchRadialLayout(Q,s,Xt,wt,d+O,O),B++}}},I.maxDiagonalInTree=function(s){for(var m=C.MIN_VALUE,g=0;gm&&(m=d)}return m},I.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},I.prototype.groupZeroDegreeMembers=function(){var s=this,m={};this.memberGroups={},this.idToDummyNode={};for(var g=[],T=this.graphManager.getAllNodes(),d=0;d"u"&&(m[P]=[]),m[P]=m[P].concat(O)}Object.keys(m).forEach(function(S){if(m[S].length>1){var R="DummyCompound_"+S;s.memberGroups[R]=m[S];var Z=m[S][0].getParent(),tt=new i(s.graphManager);tt.id=R,tt.paddingLeft=Z.paddingLeft||0,tt.paddingRight=Z.paddingRight||0,tt.paddingBottom=Z.paddingBottom||0,tt.paddingTop=Z.paddingTop||0,s.idToDummyNode[R]=tt;var b=s.getGraphManager().add(s.newGraph(),tt),_=Z.getChild();_.add(tt);for(var B=0;Bd?(T.rect.x-=(T.labelWidth-d)/2,T.setWidth(T.labelWidth),T.labelMarginLeft=(T.labelWidth-d)/2):T.labelPosHorizontal=="right"&&T.setWidth(d+T.labelWidth)),T.labelHeight&&(T.labelPosVertical=="top"?(T.rect.y-=T.labelHeight,T.setHeight(O+T.labelHeight),T.labelMarginTop=T.labelHeight):T.labelPosVertical=="center"&&T.labelHeight>O?(T.rect.y-=(T.labelHeight-O)/2,T.setHeight(T.labelHeight),T.labelMarginTop=(T.labelHeight-O)/2):T.labelPosVertical=="bottom"&&T.setHeight(O+T.labelHeight))}})},I.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var m=this.compoundOrder[s],g=m.id,T=m.paddingLeft,d=m.paddingTop,O=m.labelMarginLeft,x=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[g],m.rect.x,m.rect.y,T,d,O,x)}},I.prototype.repopulateZeroDegreeMembers=function(){var s=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(g){var T=s.idToDummyNode[g],d=T.paddingLeft,O=T.paddingTop,x=T.labelMarginLeft,P=T.labelMarginTop;s.adjustLocations(m[g],T.rect.x,T.rect.y,d,O,x,P)})},I.prototype.getToBeTiled=function(s){var m=s.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var g=s.getChild();if(g==null)return this.toBeTiled[m]=!1,!1;for(var T=g.getNodes(),d=0;d0)return this.toBeTiled[m]=!1,!1;if(O.getChild()==null){this.toBeTiled[O.id]=!1;continue}if(!this.getToBeTiled(O))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},I.prototype.getNodeDegree=function(s){for(var m=s.id,g=s.getEdges(),T=0,d=0;dZ&&(Z=b.rect.height)}g+=Z+s.verticalPadding}},I.prototype.tileCompoundMembers=function(s,m){var g=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(T){var d=m[T];if(g.tiledMemberPack[T]=g.tileNodes(s[T],d.paddingLeft+d.paddingRight),d.rect.width=g.tiledMemberPack[T].width,d.rect.height=g.tiledMemberPack[T].height,d.setCenter(g.tiledMemberPack[T].centerX,g.tiledMemberPack[T].centerY),d.labelMarginLeft=0,d.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var O=d.rect.width,x=d.rect.height;d.labelWidth&&(d.labelPosHorizontal=="left"?(d.rect.x-=d.labelWidth,d.setWidth(O+d.labelWidth),d.labelMarginLeft=d.labelWidth):d.labelPosHorizontal=="center"&&d.labelWidth>O?(d.rect.x-=(d.labelWidth-O)/2,d.setWidth(d.labelWidth),d.labelMarginLeft=(d.labelWidth-O)/2):d.labelPosHorizontal=="right"&&d.setWidth(O+d.labelWidth)),d.labelHeight&&(d.labelPosVertical=="top"?(d.rect.y-=d.labelHeight,d.setHeight(x+d.labelHeight),d.labelMarginTop=d.labelHeight):d.labelPosVertical=="center"&&d.labelHeight>x?(d.rect.y-=(d.labelHeight-x)/2,d.setHeight(d.labelHeight),d.labelMarginTop=(d.labelHeight-x)/2):d.labelPosVertical=="bottom"&&d.setHeight(x+d.labelHeight))}})},I.prototype.tileNodes=function(s,m){var g=this.tileNodesByFavoringDim(s,m,!0),T=this.tileNodesByFavoringDim(s,m,!1),d=this.getOrgRatio(g),O=this.getOrgRatio(T),x;return OP&&(P=B.getWidth())});var S=O/d,R=x/d,Z=Math.pow(g-T,2)+4*(S+T)*(R+g)*d,tt=(T-g+Math.sqrt(Z))/(2*(S+T)),b;m?(b=Math.ceil(tt),b==tt&&b++):b=Math.floor(tt);var _=b*(S+T)-T;return P>_&&(_=P),_+=T*2,_},I.prototype.tileNodesByFavoringDim=function(s,m,g){var T=h.TILING_PADDING_VERTICAL,d=h.TILING_PADDING_HORIZONTAL,O=h.TILING_COMPARE_BY,x={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:T,horizontalPadding:d,centerX:0,centerY:0};O&&(x.idealRowWidth=this.calcIdealRowWidth(s,g));var P=L(function(M){return M.rect.width*M.rect.height},"getNodeArea"),S=L(function(M,U){return P(U)-P(M)},"areaCompareFcn");s.sort(function(B,M){var U=S;return x.idealRowWidth?(U=O,U(B.id,M.id)):U(B,M)});for(var R=0,Z=0,tt=0;tt0&&(x+=s.horizontalPadding),s.rowWidth[g]=x,s.width0&&(P+=s.verticalPadding);var S=0;P>s.rowHeight[g]&&(S=s.rowHeight[g],s.rowHeight[g]=P,S=s.rowHeight[g]-S),s.height+=S,s.rows[g].push(m)},I.prototype.getShortestRowIndex=function(s){for(var m=-1,g=Number.MAX_VALUE,T=0;Tg&&(m=T,g=s.rowWidth[T]);return m},I.prototype.canAddHorizontal=function(s,m,g){if(s.idealRowWidth){var T=s.rows.length-1,d=s.rowWidth[T];return d+m+s.horizontalPadding<=s.idealRowWidth}var O=this.getShortestRowIndex(s);if(O<0)return!0;var x=s.rowWidth[O];if(x+s.horizontalPadding+m<=s.width)return!0;var P=0;s.rowHeight[O]0&&(P=g+s.verticalPadding-s.rowHeight[O]);var S;s.width-x>=m+s.horizontalPadding?S=(s.height+P)/(x+m+s.horizontalPadding):S=(s.height+P)/s.width,P=g+s.verticalPadding;var R;return s.widthO&&m!=g){T.splice(-1,1),s.rows[g].push(d),s.rowWidth[m]=s.rowWidth[m]-O,s.rowWidth[g]=s.rowWidth[g]+O,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var x=Number.MIN_VALUE,P=0;Px&&(x=T[P].height);m>0&&(x+=s.verticalPadding);var S=s.rowHeight[m]+s.rowHeight[g];s.rowHeight[m]=x,s.rowHeight[g]0)for(var _=d;_<=O;_++)b[0]+=this.grid[_][x-1].length+this.grid[_][x].length-1;if(O0)for(var _=x;_<=P;_++)b[3]+=this.grid[d-1][_].length+this.grid[d][_].length-1;for(var B=C.MAX_VALUE,M,U,H=0;H{var c=n(551).FDLayoutNode,e=n(551).IMath;function p(r,h,f,l){c.call(this,r,h,f,l)}L(p,"CoSENode"),p.prototype=Object.create(c.prototype);for(var i in c)p[i]=c[i];p.prototype.calculateDisplacement=function(){var r=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementX=r.coolingFactor*r.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementY=r.coolingFactor*r.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},p.prototype.propogateDisplacementToChildren=function(r,h){for(var f=this.getChild().getNodes(),l,A=0;A{function c(f){if(Array.isArray(f)){for(var l=0,A=Array(f.length);l0){var dt=0;nt.forEach(function(ct){V=="horizontal"?(q.set(ct,v.has(ct)?y[v.get(ct)]:k.get(ct)),dt+=q.get(ct)):(q.set(ct,v.has(ct)?D[v.get(ct)]:k.get(ct)),dt+=q.get(ct))}),dt=dt/nt.length,st.forEach(function(ct){$.has(ct)||q.set(ct,dt)})}else{var at=0;st.forEach(function(ct){V=="horizontal"?at+=v.has(ct)?y[v.get(ct)]:k.get(ct):at+=v.has(ct)?D[v.get(ct)]:k.get(ct)}),at=at/st.length,st.forEach(function(ct){q.set(ct,at)})}});for(var it=L(function(){var nt=ut.shift(),dt=W.get(nt);dt.forEach(function(at){if(q.get(at.id)ct&&(ct=Wt),$tFt&&(Ft=$t)}}catch(ne){Bt=!0,Ot=ne}finally{try{!Rt&&Nt.return&&Nt.return()}finally{if(Bt)throw Ot}}var me=(dt+ct)/2-(at+Ft)/2,Kt=!0,ee=!1,re=void 0;try{for(var jt=st[Symbol.iterator](),ue;!(Kt=(ue=jt.next()).done);Kt=!0){var ie=ue.value;q.set(ie,q.get(ie)+me)}}catch(ne){ee=!0,re=ne}finally{try{!Kt&&jt.return&&jt.return()}finally{if(ee)throw re}}})}return q},"findAppropriatePositionForRelativePlacement"),J=L(function(W){var V=0,$=0,k=0,j=0;if(W.forEach(function(lt){lt.left?y[v.get(lt.left)]-y[v.get(lt.right)]>=0?V++:$++:D[v.get(lt.top)]-D[v.get(lt.bottom)]>=0?k++:j++}),V>$&&k>j)for(var gt=0;gt$)for(var ft=0;ftj)for(var q=0;q1)l.fixedNodeConstraint.forEach(function(Y,W){T[W]=[Y.position.x,Y.position.y],d[W]=[y[v.get(Y.nodeId)],D[v.get(Y.nodeId)]]}),O=!0;else if(l.alignmentConstraint)(function(){var Y=0;if(l.alignmentConstraint.vertical){for(var W=l.alignmentConstraint.vertical,V=L(function(q){var lt=new Set;W[q].forEach(function(pt){lt.add(pt)});var ut=new Set([].concat(c(lt)).filter(function(pt){return P.has(pt)})),it=void 0;ut.size>0?it=y[v.get(ut.values().next().value)]:it=rt(lt).x,W[q].forEach(function(pt){T[Y]=[it,D[v.get(pt)]],d[Y]=[y[v.get(pt)],D[v.get(pt)]],Y++})},"_loop2"),$=0;$0?it=y[v.get(ut.values().next().value)]:it=rt(lt).y,k[q].forEach(function(pt){T[Y]=[y[v.get(pt)],it],d[Y]=[y[v.get(pt)],D[v.get(pt)]],Y++})},"_loop3"),gt=0;gttt&&(tt=Z[_].length,b=_);if(tt0){var Dt={x:0,y:0};l.fixedNodeConstraint.forEach(function(Y,W){var V={x:y[v.get(Y.nodeId)],y:D[v.get(Y.nodeId)]},$=Y.position,k=X($,V);Dt.x+=k.x,Dt.y+=k.y}),Dt.x/=l.fixedNodeConstraint.length,Dt.y/=l.fixedNodeConstraint.length,y.forEach(function(Y,W){y[W]+=Dt.x}),D.forEach(function(Y,W){D[W]+=Dt.y}),l.fixedNodeConstraint.forEach(function(Y){y[v.get(Y.nodeId)]=Y.position.x,D[v.get(Y.nodeId)]=Y.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Tt=l.alignmentConstraint.vertical,At=L(function(W){var V=new Set;Tt[W].forEach(function(j){V.add(j)});var $=new Set([].concat(c(V)).filter(function(j){return P.has(j)})),k=void 0;$.size>0?k=y[v.get($.values().next().value)]:k=rt(V).x,V.forEach(function(j){P.has(j)||(y[v.get(j)]=k)})},"_loop4"),xt=0;xt0?k=D[v.get($.values().next().value)]:k=rt(V).y,V.forEach(function(j){P.has(j)||(D[v.get(j)]=k)})},"_loop5"),Yt=0;Yt{a.exports=E}},N={};function u(a){var t=N[a];if(t!==void 0)return t.exports;var n=N[a]={exports:{}};return w[a](n,n.exports,u),n.exports}L(u,"__webpack_require__");var o=u(45);return o})()})});var lr=Le((fe,Se)=>{"use strict";L(function(w,N){typeof fe=="object"&&typeof Se=="object"?Se.exports=N(Ie()):typeof define=="function"&&define.amd?define(["cose-base"],N):typeof fe=="object"?fe.cytoscapeFcose=N(Ie()):w.cytoscapeFcose=N(w.coseBase)},"webpackUniversalModuleDefinition")(fe,function(E){return(()=>{"use strict";var w={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(t){for(var n=arguments.length,c=Array(n>1?n-1:0),e=1;e{var c=function(){function i(r,h){var f=[],l=!0,A=!1,v=void 0;try{for(var y=r[Symbol.iterator](),D;!(l=(D=y.next()).done)&&(f.push(D.value),!(h&&f.length===h));l=!0);}catch(F){A=!0,v=F}finally{try{!l&&y.return&&y.return()}finally{if(A)throw v}}return f}return L(i,"sliceIterator"),function(r,h){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return i(r,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),e=n(140).layoutBase.LinkedList,p={};p.getTopMostNodes=function(i){for(var r={},h=0;h0&&O.merge(R)});for(var x=0;x1){D=v[0],F=D.connectedEdges().length,v.forEach(function(d){d.connectedEdges().length0&&f.set("dummy"+(f.size+1),z),X},p.relocateComponent=function(i,r,h){if(!h.fixedNodeConstraint){var f=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;if(h.quality=="draft"){var y=!0,D=!1,F=void 0;try{for(var C=r.nodeIndexes[Symbol.iterator](),G;!(y=(G=C.next()).done);y=!0){var z=G.value,X=c(z,2),rt=X[0],I=X[1],J=h.cy.getElementById(rt);if(J){var s=J.boundingBox(),m=r.xCoords[I]-s.w/2,g=r.xCoords[I]+s.w/2,T=r.yCoords[I]-s.h/2,d=r.yCoords[I]+s.h/2;ml&&(l=g),Tv&&(v=d)}}}catch(R){D=!0,F=R}finally{try{!y&&C.return&&C.return()}finally{if(D)throw F}}var O=i.x-(l+f)/2,x=i.y-(v+A)/2;r.xCoords=r.xCoords.map(function(R){return R+O}),r.yCoords=r.yCoords.map(function(R){return R+x})}else{Object.keys(r).forEach(function(R){var Z=r[R],tt=Z.getRect().x,b=Z.getRect().x+Z.getRect().width,_=Z.getRect().y,B=Z.getRect().y+Z.getRect().height;ttl&&(l=b),_v&&(v=B)});var P=i.x-(l+f)/2,S=i.y-(v+A)/2;Object.keys(r).forEach(function(R){var Z=r[R];Z.setCenter(Z.getCenterX()+P,Z.getCenterY()+S)})}}},p.calcBoundingBox=function(i,r,h,f){for(var l=Number.MAX_SAFE_INTEGER,A=Number.MIN_SAFE_INTEGER,v=Number.MAX_SAFE_INTEGER,y=Number.MIN_SAFE_INTEGER,D=void 0,F=void 0,C=void 0,G=void 0,z=i.descendants().not(":parent"),X=z.length,rt=0;rtD&&(l=D),AC&&(v=C),y{var c=n(548),e=n(140).CoSELayout,p=n(140).CoSENode,i=n(140).layoutBase.PointD,r=n(140).layoutBase.DimensionD,h=n(140).layoutBase.LayoutConstants,f=n(140).layoutBase.FDLayoutConstants,l=n(140).CoSEConstants,A=L(function(y,D){var F=y.cy,C=y.eles,G=C.nodes(),z=C.edges(),X=void 0,rt=void 0,I=void 0,J={};y.randomize&&(X=D.nodeIndexes,rt=D.xCoords,I=D.yCoords);var s=L(function(R){return typeof R=="function"},"isFn"),m=L(function(R,Z){return s(R)?R(Z):R},"optFn"),g=c.calcParentsWithoutChildren(F,C),T=L(function S(R,Z,tt,b){for(var _=Z.length,B=0;B<_;B++){var M=Z[B],U=null;M.intersection(g).length==0&&(U=M.children());var H=void 0,K=M.layoutDimensions({nodeDimensionsIncludeLabels:b.nodeDimensionsIncludeLabels});if(M.outerWidth()!=null&&M.outerHeight()!=null)if(b.randomize)if(!M.isParent())H=R.add(new p(tt.graphManager,new i(rt[X.get(M.id())]-K.w/2,I[X.get(M.id())]-K.h/2),new r(parseFloat(K.w),parseFloat(K.h))));else{var ht=c.calcBoundingBox(M,rt,I,X);M.intersection(g).length==0?H=R.add(new p(tt.graphManager,new i(ht.topLeftX,ht.topLeftY),new r(ht.width,ht.height))):H=R.add(new p(tt.graphManager,new i(ht.topLeftX,ht.topLeftY),new r(parseFloat(K.w),parseFloat(K.h))))}else H=R.add(new p(tt.graphManager,new i(M.position("x")-K.w/2,M.position("y")-K.h/2),new r(parseFloat(K.w),parseFloat(K.h))));else H=R.add(new p(this.graphManager));if(H.id=M.data("id"),H.nodeRepulsion=m(b.nodeRepulsion,M),H.paddingLeft=parseInt(M.css("padding")),H.paddingTop=parseInt(M.css("padding")),H.paddingRight=parseInt(M.css("padding")),H.paddingBottom=parseInt(M.css("padding")),b.nodeDimensionsIncludeLabels&&(H.labelWidth=M.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,H.labelHeight=M.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,H.labelPosVertical=M.css("text-valign"),H.labelPosHorizontal=M.css("text-halign")),J[M.data("id")]=H,isNaN(H.rect.x)&&(H.rect.x=0),isNaN(H.rect.y)&&(H.rect.y=0),U!=null&&U.length>0){var Lt=void 0;Lt=tt.getGraphManager().add(tt.newGraph(),H),S(Lt,U,tt,b)}}},"processChildrenList"),d=L(function(R,Z,tt){for(var b=0,_=0,B=0;B0?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=b/_:s(y.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=y.idealEdgeLength,l.MIN_REPULSION_DIST=f.MIN_REPULSION_DIST=f.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH)},"processEdges"),O=L(function(R,Z){Z.fixedNodeConstraint&&(R.constraints.fixedNodeConstraint=Z.fixedNodeConstraint),Z.alignmentConstraint&&(R.constraints.alignmentConstraint=Z.alignmentConstraint),Z.relativePlacementConstraint&&(R.constraints.relativePlacementConstraint=Z.relativePlacementConstraint)},"processConstraints");y.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.nestingFactor),y.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=f.DEFAULT_GRAVITY_STRENGTH=y.gravity),y.numIter!=null&&(l.MAX_ITERATIONS=f.MAX_ITERATIONS=y.numIter),y.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=f.DEFAULT_GRAVITY_RANGE_FACTOR=y.gravityRange),y.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.gravityCompound),y.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.gravityRangeCompound),y.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=f.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.initialEnergyOnIncremental),y.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=y.tilingCompareBy),y.quality=="proof"?h.QUALITY=2:h.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=y.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!y.randomize,l.ANIMATE=f.ANIMATE=h.ANIMATE=y.animate,l.TILE=y.tile,l.TILING_PADDING_VERTICAL=typeof y.tilingPaddingVertical=="function"?y.tilingPaddingVertical.call():y.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof y.tilingPaddingHorizontal=="function"?y.tilingPaddingHorizontal.call():y.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!y.randomize,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=y.uniformNodeDimensions,y.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),y.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),y.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),y.step=="all"&&(y.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),y.fixedNodeConstraint||y.alignmentConstraint||y.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var x=new e,P=x.newGraphManager();return T(P.addRoot(),c.getTopMostNodes(G),x,y),d(x,P,z),O(x,y),x.runLayout(),J},"coseLayout");a.exports={coseLayout:A}},212:(a,t,n)=>{var c=function(){function y(D,F){for(var C=0;C0)if(d){var P=i.getTopMostNodes(C.eles.nodes());if(s=i.connectComponents(G,C.eles,P),s.forEach(function(ot){var et=ot.boundingBox();m.push({x:et.x1+et.w/2,y:et.y1+et.h/2})}),C.randomize&&s.forEach(function(ot){C.eles=ot,X.push(h(C))}),C.quality=="default"||C.quality=="proof"){var S=G.collection();if(C.tile){var R=new Map,Z=[],tt=[],b=0,_={nodeIndexes:R,xCoords:Z,yCoords:tt},B=[];if(s.forEach(function(ot,et){ot.edges().length==0&&(ot.nodes().forEach(function(yt,Et){S.merge(ot.nodes()[Et]),yt.isParent()||(_.nodeIndexes.set(ot.nodes()[Et].id(),b++),_.xCoords.push(ot.nodes()[0].position().x),_.yCoords.push(ot.nodes()[0].position().y))}),B.push(et))}),S.length>1){var M=S.boundingBox();m.push({x:M.x1+M.w/2,y:M.y1+M.h/2}),s.push(S),X.push(_);for(var U=B.length-1;U>=0;U--)s.splice(B[U],1),X.splice(B[U],1),m.splice(B[U],1)}}s.forEach(function(ot,et){C.eles=ot,J.push(l(C,X[et])),i.relocateComponent(m[et],J[et],C)})}else s.forEach(function(ot,et){i.relocateComponent(m[et],X[et],C)});var H=new Set;if(s.length>1){var K=[],ht=z.filter(function(ot){return ot.css("display")=="none"});s.forEach(function(ot,et){var yt=void 0;if(C.quality=="draft"&&(yt=X[et].nodeIndexes),ot.nodes().not(ht).length>0){var Et={};Et.edges=[],Et.nodes=[];var Dt=void 0;ot.nodes().not(ht).forEach(function(Tt){if(C.quality=="draft")if(!Tt.isParent())Dt=yt.get(Tt.id()),Et.nodes.push({x:X[et].xCoords[Dt]-Tt.boundingbox().w/2,y:X[et].yCoords[Dt]-Tt.boundingbox().h/2,width:Tt.boundingbox().w,height:Tt.boundingbox().h});else{var At=i.calcBoundingBox(Tt,X[et].xCoords,X[et].yCoords,yt);Et.nodes.push({x:At.topLeftX,y:At.topLeftY,width:At.width,height:At.height})}else J[et][Tt.id()]&&Et.nodes.push({x:J[et][Tt.id()].getLeft(),y:J[et][Tt.id()].getTop(),width:J[et][Tt.id()].getWidth(),height:J[et][Tt.id()].getHeight()})}),ot.edges().forEach(function(Tt){var At=Tt.source(),xt=Tt.target();if(At.css("display")!="none"&&xt.css("display")!="none")if(C.quality=="draft"){var It=yt.get(At.id()),zt=yt.get(xt.id()),Yt=[],Ht=[];if(At.isParent()){var Pt=i.calcBoundingBox(At,X[et].xCoords,X[et].yCoords,yt);Yt.push(Pt.topLeftX+Pt.width/2),Yt.push(Pt.topLeftY+Pt.height/2)}else Yt.push(X[et].xCoords[It]),Yt.push(X[et].yCoords[It]);if(xt.isParent()){var Y=i.calcBoundingBox(xt,X[et].xCoords,X[et].yCoords,yt);Ht.push(Y.topLeftX+Y.width/2),Ht.push(Y.topLeftY+Y.height/2)}else Ht.push(X[et].xCoords[zt]),Ht.push(X[et].yCoords[zt]);Et.edges.push({startX:Yt[0],startY:Yt[1],endX:Ht[0],endY:Ht[1]})}else J[et][At.id()]&&J[et][xt.id()]&&Et.edges.push({startX:J[et][At.id()].getCenterX(),startY:J[et][At.id()].getCenterY(),endX:J[et][xt.id()].getCenterX(),endY:J[et][xt.id()].getCenterY()})}),Et.nodes.length>0&&(K.push(Et),H.add(et))}});var Lt=T.packComponents(K,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(ot,et){var yt=ot.xCoords.map(function(Dt){return Dt+Lt[et].dx}),Et=ot.yCoords.map(function(Dt){return Dt+Lt[et].dy});ot.xCoords=yt,ot.yCoords=Et});else{var bt=0;H.forEach(function(ot){Object.keys(J[ot]).forEach(function(et){var yt=J[ot][et];yt.setCenter(yt.getCenterX()+Lt[bt].dx,yt.getCenterY()+Lt[bt].dy)}),bt++})}}}else{var O=C.eles.boundingBox();if(m.push({x:O.x1+O.w/2,y:O.y1+O.h/2}),C.randomize){var x=h(C);X.push(x)}C.quality=="default"||C.quality=="proof"?(J.push(l(C,X[0])),i.relocateComponent(m[0],J[0],C)):i.relocateComponent(m[0],X[0],C)}var Q=L(function(et,yt){if(C.quality=="default"||C.quality=="proof"){typeof et=="number"&&(et=yt);var Et=void 0,Dt=void 0,Tt=et.data("id");return J.forEach(function(xt){Tt in xt&&(Et={x:xt[Tt].getRect().getCenterX(),y:xt[Tt].getRect().getCenterY()},Dt=xt[Tt])}),C.nodeDimensionsIncludeLabels&&(Dt.labelWidth&&(Dt.labelPosHorizontal=="left"?Et.x+=Dt.labelWidth/2:Dt.labelPosHorizontal=="right"&&(Et.x-=Dt.labelWidth/2)),Dt.labelHeight&&(Dt.labelPosVertical=="top"?Et.y+=Dt.labelHeight/2:Dt.labelPosVertical=="bottom"&&(Et.y-=Dt.labelHeight/2))),Et==null&&(Et={x:et.position("x"),y:et.position("y")}),{x:Et.x,y:Et.y}}else{var At=void 0;return X.forEach(function(xt){var It=xt.nodeIndexes.get(et.id());It!=null&&(At={x:xt.xCoords[It],y:xt.yCoords[It]})}),At==null&&(At={x:et.position("x"),y:et.position("y")}),{x:At.x,y:At.y}}},"getPositions");if(C.quality=="default"||C.quality=="proof"||C.randomize){var Xt=i.calcParentsWithoutChildren(G,z),wt=z.filter(function(ot){return ot.css("display")=="none"});C.eles=z.not(wt),z.nodes().not(":parent").not(wt).layoutPositions(F,C,Q),Xt.length>0&&Xt.forEach(function(ot){ot.position(Q(ot))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),y}();a.exports=v},657:(a,t,n)=>{var c=n(548),e=n(140).layoutBase.Matrix,p=n(140).layoutBase.SVD,i=L(function(h){var f=h.cy,l=h.eles,A=l.nodes(),v=l.nodes(":parent"),y=new Map,D=new Map,F=new Map,C=[],G=[],z=[],X=[],rt=[],I=[],J=[],s=[],m=void 0,g=void 0,T=1e8,d=1e-9,O=h.piTol,x=h.samplingType,P=h.nodeSeparation,S=void 0,R=L(function(){for(var V=0,$=0,k=!1;$=gt;){q=j[gt++];for(var st=C[q],nt=0;ntit&&(it=rt[at],pt=at)}return pt},"BFS"),tt=L(function(V){var $=void 0;if(V){$=Math.floor(Math.random()*g),m=$;for(var j=0;j=1)break;it=ut}for(var st=0;st=1)break;it=ut}for(var dt=0;dt0&&($.isParent()?C[V].push(F.get($.id())):C[V].push($.id()))})});var Xt=L(function(V){var $=D.get(V),k=void 0;y.get(V).forEach(function(j){f.getElementById(j).isParent()?k=F.get(j):k=j,C[$].push(k),C[D.get(k)].push(V)})},"_loop"),wt=!0,ot=!1,et=void 0;try{for(var yt=y.keys()[Symbol.iterator](),Et;!(wt=(Et=yt.next()).done);wt=!0){var Dt=Et.value;Xt(Dt)}}catch(W){ot=!0,et=W}finally{try{!wt&&yt.return&&yt.return()}finally{if(ot)throw et}}g=D.size;var Tt=void 0;if(g>2){S=g{var c=n(212),e=L(function(i){i&&i("layout","fcose",c)},"register");typeof cytoscape<"u"&&e(cytoscape),a.exports=e},140:a=>{a.exports=E}},N={};function u(a){var t=N[a];if(t!==void 0)return t.exports;var n=N[a]={exports:{}};return w[a](n,n.exports,u),n.exports}L(u,"__webpack_require__");var o=u(579);return o})()})});var Ce={L:"left",R:"right",T:"top",B:"bottom"},Me={L:L(E=>`${E},${E/2} 0,${E} 0,0`,"L"),R:L(E=>`0,${E/2} ${E},0 ${E},${E}`,"R"),T:L(E=>`0,0 ${E},0 ${E/2},${E}`,"T"),B:L(E=>`${E/2},0 ${E},${E} 0,${E}`,"B")},se={L:L((E,w)=>E-w+2,"L"),R:L((E,w)=>E-2,"R"),T:L((E,w)=>E-w+2,"T"),B:L((E,w)=>E-2,"B")},tr=L(function(E){return Vt(E)?E==="L"?"R":"L":E==="T"?"B":"T"},"getOppositeArchitectureDirection"),we=L(function(E){let w=E;return w==="L"||w==="R"||w==="T"||w==="B"},"isArchitectureDirection"),Vt=L(function(E){let w=E;return w==="L"||w==="R"},"isArchitectureDirectionX"),Jt=L(function(E){let w=E;return w==="T"||w==="B"},"isArchitectureDirectionY"),ve=L(function(E,w){let N=Vt(E)&&Jt(w),u=Jt(E)&&Vt(w);return N||u},"isArchitectureDirectionXY"),er=L(function(E){let w=E[0],N=E[1],u=Vt(w)&&Jt(N),o=Jt(w)&&Vt(N);return u||o},"isArchitecturePairXY"),mr=L(function(E){return E!=="LL"&&E!=="RR"&&E!=="TT"&&E!=="BB"},"isValidArchitectureDirectionPair"),he=L(function(E,w){let N=`${E}${w}`;return mr(N)?N:void 0},"getArchitectureDirectionPair"),rr=L(function([E,w],N){let u=N[0],o=N[1];return Vt(u)?Jt(o)?[E+(u==="L"?-1:1),w+(o==="T"?1:-1)]:[E+(u==="L"?-1:1),w]:Vt(o)?[E+(o==="L"?1:-1),w+(u==="T"?1:-1)]:[E,w+(u==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ir=L(function(E){return E==="LT"||E==="TL"?[1,1]:E==="BL"||E==="LB"?[1,-1]:E==="BR"||E==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),nr=L(function(E){return E.type==="service"},"isArchitectureService"),ar=L(function(E){return E.type==="junction"},"isArchitectureJunction"),ye=L(E=>E.data(),"edgeData"),Qt=L(E=>E.data(),"nodeData");var or=He.architecture,vt=new je(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:or,dataStructures:void 0,elements:{}})),Er=L(()=>{vt.reset(),Ve()},"clear"),Tr=L(function({id:E,icon:w,in:N,title:u,iconText:o}){if(vt.records.registeredIds[E]!==void 0)throw new Error(`The service id [${E}] is already in use by another ${vt.records.registeredIds[E]}`);if(N!==void 0){if(E===N)throw new Error(`The service [${E}] cannot be placed within itself`);if(vt.records.registeredIds[N]===void 0)throw new Error(`The service [${E}]'s parent does not exist. Please make sure the parent is created before this service`);if(vt.records.registeredIds[N]==="node")throw new Error(`The service [${E}]'s parent is not a group`)}vt.records.registeredIds[E]="node",vt.records.nodes[E]={id:E,type:"service",icon:w,iconText:o,title:u,edges:[],in:N}},"addService"),Ar=L(()=>Object.values(vt.records.nodes).filter(nr),"getServices"),Nr=L(function({id:E,in:w}){vt.records.registeredIds[E]="node",vt.records.nodes[E]={id:E,type:"junction",edges:[],in:w}},"addJunction"),Lr=L(()=>Object.values(vt.records.nodes).filter(ar),"getJunctions"),Dr=L(()=>Object.values(vt.records.nodes),"getNodes"),Cr=L(E=>vt.records.nodes[E],"getNode"),Mr=L(function({id:E,icon:w,in:N,title:u}){if(vt.records.registeredIds[E]!==void 0)throw new Error(`The group id [${E}] is already in use by another ${vt.records.registeredIds[E]}`);if(N!==void 0){if(E===N)throw new Error(`The group [${E}] cannot be placed within itself`);if(vt.records.registeredIds[N]===void 0)throw new Error(`The group [${E}]'s parent does not exist. Please make sure the parent is created before this group`);if(vt.records.registeredIds[N]==="node")throw new Error(`The group [${E}]'s parent is not a group`)}vt.records.registeredIds[E]="group",vt.records.groups[E]={id:E,icon:w,title:u,in:N}},"addGroup"),wr=L(()=>Object.values(vt.records.groups),"getGroups"),xr=L(function({lhsId:E,rhsId:w,lhsDir:N,rhsDir:u,lhsInto:o,rhsInto:a,lhsGroup:t,rhsGroup:n,title:c}){if(!we(N))throw new Error(`Invalid direction given for left hand side of edge ${E}--${w}. Expected (L,R,T,B) got ${N}`);if(!we(u))throw new Error(`Invalid direction given for right hand side of edge ${E}--${w}. Expected (L,R,T,B) got ${u}`);if(vt.records.nodes[E]===void 0&&vt.records.groups[E]===void 0)throw new Error(`The left-hand id [${E}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(vt.records.nodes[w]===void 0&&vt.records.groups[E]===void 0)throw new Error(`The right-hand id [${w}] does not yet exist. Please create the service/group before declaring an edge to it.`);let e=vt.records.nodes[E].in,p=vt.records.nodes[w].in;if(t&&e&&p&&e==p)throw new Error(`The left-hand id [${E}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(n&&e&&p&&e==p)throw new Error(`The right-hand id [${w}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let i={lhsId:E,lhsDir:N,lhsInto:o,lhsGroup:t,rhsId:w,rhsDir:u,rhsInto:a,rhsGroup:n,title:c};vt.records.edges.push(i),vt.records.nodes[E]&&vt.records.nodes[w]&&(vt.records.nodes[E].edges.push(vt.records.edges[vt.records.edges.length-1]),vt.records.nodes[w].edges.push(vt.records.edges[vt.records.edges.length-1]))},"addEdge"),Or=L(()=>vt.records.edges,"getEdges"),Rr=L(()=>{if(vt.records.dataStructures===void 0){let E=Object.entries(vt.records.nodes).reduce((t,[n,c])=>(t[n]=c.edges.reduce((e,p)=>{if(p.lhsId===n){let i=he(p.lhsDir,p.rhsDir);i&&(e[i]=p.rhsId)}else{let i=he(p.rhsDir,p.lhsDir);i&&(e[i]=p.lhsId)}return e},{}),t),{}),w=Object.keys(E)[0],N={[w]:1},u=Object.keys(E).reduce((t,n)=>n===w?t:{...t,[n]:1},{}),o=L(t=>{let n={[t]:[0,0]},c=[t];for(;c.length>0;){let e=c.shift();if(e){N[e]=1,delete u[e];let p=E[e],[i,r]=n[e];Object.entries(p).forEach(([h,f])=>{N[f]||(n[f]=rr([i,r],h),c.push(f))})}}return n},"BFS"),a=[o(w)];for(;Object.keys(u).length>0;)a.push(o(Object.keys(u)[0]));vt.records.dataStructures={adjList:E,spatialMaps:a}}return vt.records.dataStructures},"getDataStructures"),Ir=L((E,w)=>{vt.records.elements[E]=w},"setElementForId"),Sr=L(E=>vt.records.elements[E],"getElementById"),_t={clear:Er,setDiagramTitle:Ze,getDiagramTitle:Je,setAccTitle:ze,getAccTitle:Be,setAccDescription:$e,getAccDescription:ke,addService:Tr,getServices:Ar,addJunction:Nr,getJunctions:Lr,getNodes:Dr,getNode:Cr,addGroup:Mr,getGroups:wr,addEdge:xr,getEdges:Or,setElementForId:Ir,getElementById:Sr,getDataStructures:Rr};function Gt(E){let w=ae().architecture;return w?.[E]?w[E]:or[E]}L(Gt,"getConfigField");var br=L((E,w)=>{Ke(E,w),E.groups.map(w.addGroup),E.services.map(N=>w.addService({...N,type:"service"})),E.junctions.map(N=>w.addJunction({...N,type:"junction"})),E.edges.map(w.addEdge)},"populateDb"),sr={parse:L(async E=>{let w=await Qe("architecture",E);ge.debug(w),br(w,_t)},"parse")};var Fr=L(E=>` +import{a as De}from"./chunk-PWCSEZZ4.mjs";import{a as je}from"./chunk-VSLJSFIP.mjs";import{a as Ke}from"./chunk-4KE642ED.mjs";import{a as Qe}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as _e}from"./chunk-3YFHLAX3.mjs";import{a as Ue,b as Xe,c as de}from"./chunk-D4BOYBYT.mjs";import{d as pe}from"./chunk-AFC6EC46.mjs";import"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{N as We,P as Ve,Q as ze,R as Be,S as $e,T as ke,U as Ze,V as Je,X as ae,b as ge,ga as qe,s as He}from"./chunk-OR2G2HG5.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as L,b as Le,e as yr}from"./chunk-GTKDMUJJ.mjs";var Oe=Le((le,xe)=>{"use strict";L(function(w,N){typeof le=="object"&&typeof xe=="object"?xe.exports=N():typeof define=="function"&&define.amd?define([],N):typeof le=="object"?le.layoutBase=N():w.layoutBase=N()},"webpackUniversalModuleDefinition")(le,function(){return function(E){var w={};function N(u){if(w[u])return w[u].exports;var o=w[u]={i:u,l:!1,exports:{}};return E[u].call(o.exports,o,o.exports,N),o.l=!0,o.exports}return L(N,"__webpack_require__"),N.m=E,N.c=w,N.i=function(u){return u},N.d=function(u,o,a){N.o(u,o)||Object.defineProperty(u,o,{configurable:!1,enumerable:!0,get:a})},N.n=function(u){var o=u&&u.__esModule?L(function(){return u.default},"getDefault"):L(function(){return u},"getModuleExports");return N.d(o,"a",o),o},N.o=function(u,o){return Object.prototype.hasOwnProperty.call(u,o)},N.p="",N(N.s=28)}([function(E,w,N){"use strict";function u(){}L(u,"LayoutConstants"),u.QUALITY=1,u.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,u.DEFAULT_INCREMENTAL=!1,u.DEFAULT_ANIMATION_ON_LAYOUT=!0,u.DEFAULT_ANIMATION_DURING_LAYOUT=!1,u.DEFAULT_ANIMATION_PERIOD=50,u.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,u.DEFAULT_GRAPH_MARGIN=15,u.NODE_DIMENSIONS_INCLUDE_LABELS=!1,u.SIMPLE_NODE_SIZE=40,u.SIMPLE_NODE_HALF_SIZE=u.SIMPLE_NODE_SIZE/2,u.EMPTY_COMPOUND_NODE_SIZE=40,u.MIN_EDGE_LENGTH=1,u.WORLD_BOUNDARY=1e6,u.INITIAL_WORLD_BOUNDARY=u.WORLD_BOUNDARY/1e3,u.WORLD_CENTER_X=1200,u.WORLD_CENTER_Y=900,E.exports=u},function(E,w,N){"use strict";var u=N(2),o=N(8),a=N(9);function t(c,e,p){u.call(this,p),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=p,this.bendpoints=[],this.source=c,this.target=e}L(t,"LEdge"),t.prototype=Object.create(u.prototype);for(var n in u)t[n]=u[n];t.prototype.getSource=function(){return this.source},t.prototype.getTarget=function(){return this.target},t.prototype.isInterGraph=function(){return this.isInterGraph},t.prototype.getLength=function(){return this.length},t.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},t.prototype.getBendpoints=function(){return this.bendpoints},t.prototype.getLca=function(){return this.lca},t.prototype.getSourceInLca=function(){return this.sourceInLca},t.prototype.getTargetInLca=function(){return this.targetInLca},t.prototype.getOtherEnd=function(c){if(this.source===c)return this.target;if(this.target===c)return this.source;throw"Node is not incident with this edge"},t.prototype.getOtherEndInGraph=function(c,e){for(var p=this.getOtherEnd(c),i=e.getGraphManager().getRoot();;){if(p.getOwner()==e)return p;if(p.getOwner()==i)break;p=p.getOwner().getParent()}return null},t.prototype.updateLength=function(){var c=new Array(4);this.isOverlapingSourceAndTarget=o.getIntersection(this.target.getRect(),this.source.getRect(),c),this.isOverlapingSourceAndTarget||(this.lengthX=c[0]-c[2],this.lengthY=c[1]-c[3],Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},t.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=a.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=a.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=t},function(E,w,N){"use strict";function u(o){this.vGraphObject=o}L(u,"LGraphObject"),E.exports=u},function(E,w,N){"use strict";var u=N(2),o=N(10),a=N(13),t=N(0),n=N(16),c=N(5);function e(i,r,h,f){h==null&&f==null&&(f=r),u.call(this,f),i.graphManager!=null&&(i=i.graphManager),this.estimatedSize=o.MIN_VALUE,this.inclusionTreeDepth=o.MAX_VALUE,this.vGraphObject=f,this.edges=[],this.graphManager=i,h!=null&&r!=null?this.rect=new a(r.x,r.y,h.width,h.height):this.rect=new a}L(e,"LNode"),e.prototype=Object.create(u.prototype);for(var p in u)e[p]=u[p];e.prototype.getEdges=function(){return this.edges},e.prototype.getChild=function(){return this.child},e.prototype.getOwner=function(){return this.owner},e.prototype.getWidth=function(){return this.rect.width},e.prototype.setWidth=function(i){this.rect.width=i},e.prototype.getHeight=function(){return this.rect.height},e.prototype.setHeight=function(i){this.rect.height=i},e.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},e.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},e.prototype.getCenter=function(){return new c(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},e.prototype.getLocation=function(){return new c(this.rect.x,this.rect.y)},e.prototype.getRect=function(){return this.rect},e.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},e.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},e.prototype.setRect=function(i,r){this.rect.x=i.x,this.rect.y=i.y,this.rect.width=r.width,this.rect.height=r.height},e.prototype.setCenter=function(i,r){this.rect.x=i-this.rect.width/2,this.rect.y=r-this.rect.height/2},e.prototype.setLocation=function(i,r){this.rect.x=i,this.rect.y=r},e.prototype.moveBy=function(i,r){this.rect.x+=i,this.rect.y+=r},e.prototype.getEdgeListToNode=function(i){var r=[],h,f=this;return f.edges.forEach(function(l){if(l.target==i){if(l.source!=f)throw"Incorrect edge source!";r.push(l)}}),r},e.prototype.getEdgesBetween=function(i){var r=[],h,f=this;return f.edges.forEach(function(l){if(!(l.source==f||l.target==f))throw"Incorrect edge source and/or target";(l.target==i||l.source==i)&&r.push(l)}),r},e.prototype.getNeighborsList=function(){var i=new Set,r=this;return r.edges.forEach(function(h){if(h.source==r)i.add(h.target);else{if(h.target!=r)throw"Incorrect incidency!";i.add(h.source)}}),i},e.prototype.withChildren=function(){var i=new Set,r,h;if(i.add(this),this.child!=null)for(var f=this.child.getNodes(),l=0;lr?(this.rect.x-=(this.labelWidth-r)/2,this.setWidth(this.labelWidth)):this.labelPosHorizontal=="right"&&this.setWidth(r+this.labelWidth)),this.labelHeight&&(this.labelPosVertical=="top"?(this.rect.y-=this.labelHeight,this.setHeight(h+this.labelHeight)):this.labelPosVertical=="center"&&this.labelHeight>h?(this.rect.y-=(this.labelHeight-h)/2,this.setHeight(this.labelHeight)):this.labelPosVertical=="bottom"&&this.setHeight(h+this.labelHeight))}}},e.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==o.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},e.prototype.transform=function(i){var r=this.rect.x;r>t.WORLD_BOUNDARY?r=t.WORLD_BOUNDARY:r<-t.WORLD_BOUNDARY&&(r=-t.WORLD_BOUNDARY);var h=this.rect.y;h>t.WORLD_BOUNDARY?h=t.WORLD_BOUNDARY:h<-t.WORLD_BOUNDARY&&(h=-t.WORLD_BOUNDARY);var f=new c(r,h),l=i.inverseTransformPoint(f);this.setLocation(l.x,l.y)},e.prototype.getLeft=function(){return this.rect.x},e.prototype.getRight=function(){return this.rect.x+this.rect.width},e.prototype.getTop=function(){return this.rect.y},e.prototype.getBottom=function(){return this.rect.y+this.rect.height},e.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=e},function(E,w,N){"use strict";var u=N(0);function o(){}L(o,"FDLayoutConstants");for(var a in u)o[a]=u[a];o.MAX_ITERATIONS=2500,o.DEFAULT_EDGE_LENGTH=50,o.DEFAULT_SPRING_STRENGTH=.45,o.DEFAULT_REPULSION_STRENGTH=4500,o.DEFAULT_GRAVITY_STRENGTH=.4,o.DEFAULT_COMPOUND_GRAVITY_STRENGTH=1,o.DEFAULT_GRAVITY_RANGE_FACTOR=3.8,o.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=1.5,o.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION=!0,o.DEFAULT_USE_SMART_REPULSION_RANGE_CALCULATION=!0,o.DEFAULT_COOLING_FACTOR_INCREMENTAL=.3,o.COOLING_ADAPTATION_FACTOR=.33,o.ADAPTATION_LOWER_NODE_LIMIT=1e3,o.ADAPTATION_UPPER_NODE_LIMIT=5e3,o.MAX_NODE_DISPLACEMENT_INCREMENTAL=100,o.MAX_NODE_DISPLACEMENT=o.MAX_NODE_DISPLACEMENT_INCREMENTAL*3,o.MIN_REPULSION_DIST=o.DEFAULT_EDGE_LENGTH/10,o.CONVERGENCE_CHECK_PERIOD=100,o.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=.1,o.MIN_EDGE_LENGTH=1,o.GRID_CALCULATION_CHECK_PERIOD=10,E.exports=o},function(E,w,N){"use strict";function u(o,a){o==null&&a==null?(this.x=0,this.y=0):(this.x=o,this.y=a)}L(u,"PointD"),u.prototype.getX=function(){return this.x},u.prototype.getY=function(){return this.y},u.prototype.setX=function(o){this.x=o},u.prototype.setY=function(o){this.y=o},u.prototype.getDifference=function(o){return new DimensionD(this.x-o.x,this.y-o.y)},u.prototype.getCopy=function(){return new u(this.x,this.y)},u.prototype.translate=function(o){return this.x+=o.width,this.y+=o.height,this},E.exports=u},function(E,w,N){"use strict";var u=N(2),o=N(10),a=N(0),t=N(7),n=N(3),c=N(1),e=N(13),p=N(12),i=N(11);function r(f,l,A){u.call(this,A),this.estimatedSize=o.MIN_VALUE,this.margin=a.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=f,l!=null&&l instanceof t?this.graphManager=l:l!=null&&l instanceof Layout&&(this.graphManager=l.graphManager)}L(r,"LGraph"),r.prototype=Object.create(u.prototype);for(var h in u)r[h]=u[h];r.prototype.getNodes=function(){return this.nodes},r.prototype.getEdges=function(){return this.edges},r.prototype.getGraphManager=function(){return this.graphManager},r.prototype.getParent=function(){return this.parent},r.prototype.getLeft=function(){return this.left},r.prototype.getRight=function(){return this.right},r.prototype.getTop=function(){return this.top},r.prototype.getBottom=function(){return this.bottom},r.prototype.isConnected=function(){return this.isConnected},r.prototype.add=function(f,l,A){if(l==null&&A==null){var v=f;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(v)>-1)throw"Node already in graph!";return v.owner=this,this.getNodes().push(v),v}else{var y=f;if(!(this.getNodes().indexOf(l)>-1&&this.getNodes().indexOf(A)>-1))throw"Source or target not in graph!";if(!(l.owner==A.owner&&l.owner==this))throw"Both owners must be this graph!";return l.owner!=A.owner?null:(y.source=l,y.target=A,y.isInterGraph=!1,this.getEdges().push(y),l.edges.push(y),A!=l&&A.edges.push(y),y)}},r.prototype.remove=function(f){var l=f;if(f instanceof n){if(l==null)throw"Node is null!";if(!(l.owner!=null&&l.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var A=l.edges.slice(),v,y=A.length,D=0;D-1&&G>-1))throw"Source and/or target doesn't know this edge!";v.source.edges.splice(C,1),v.target!=v.source&&v.target.edges.splice(G,1);var F=v.source.owner.getEdges().indexOf(v);if(F==-1)throw"Not in owner's edge list!";v.source.owner.getEdges().splice(F,1)}},r.prototype.updateLeftTop=function(){for(var f=o.MAX_VALUE,l=o.MAX_VALUE,A,v,y,D=this.getNodes(),F=D.length,C=0;CA&&(f=A),l>v&&(l=v)}return f==o.MAX_VALUE?null:(D[0].getParent().paddingLeft!=null?y=D[0].getParent().paddingLeft:y=this.margin,this.left=l-y,this.top=f-y,new p(this.left,this.top))},r.prototype.updateBounds=function(f){for(var l=o.MAX_VALUE,A=-o.MAX_VALUE,v=o.MAX_VALUE,y=-o.MAX_VALUE,D,F,C,G,z,X=this.nodes,rt=X.length,I=0;ID&&(l=D),AC&&(v=C),yD&&(l=D),AC&&(v=C),y=this.nodes.length){var rt=0;A.forEach(function(I){I.owner==f&&rt++}),rt==this.nodes.length&&(this.isConnected=!0)}},E.exports=r},function(E,w,N){"use strict";var u,o=N(1);function a(t){u=N(6),this.layout=t,this.graphs=[],this.edges=[]}L(a,"LGraphManager"),a.prototype.addRoot=function(){var t=this.layout.newGraph(),n=this.layout.newNode(null),c=this.add(t,n);return this.setRootGraph(c),this.rootGraph},a.prototype.add=function(t,n,c,e,p){if(c==null&&e==null&&p==null){if(t==null)throw"Graph is null!";if(n==null)throw"Parent node is null!";if(this.graphs.indexOf(t)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(t),t.parent!=null)throw"Already has a parent!";if(n.child!=null)throw"Already has a child!";return t.parent=n,n.child=t,t}else{p=c,e=n,c=t;var i=e.getOwner(),r=p.getOwner();if(!(i!=null&&i.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(r!=null&&r.getGraphManager()==this))throw"Target not in this graph mgr!";if(i==r)return c.isInterGraph=!1,i.add(c,e,p);if(c.isInterGraph=!0,c.source=e,c.target=p,this.edges.indexOf(c)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(c),!(c.source!=null&&c.target!=null))throw"Edge source and/or target is null!";if(!(c.source.edges.indexOf(c)==-1&&c.target.edges.indexOf(c)==-1))throw"Edge already in source and/or target incidency list!";return c.source.edges.push(c),c.target.edges.push(c),c}},a.prototype.remove=function(t){if(t instanceof u){var n=t;if(n.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(n==this.rootGraph||n.parent!=null&&n.parent.graphManager==this))throw"Invalid parent node!";var c=[];c=c.concat(n.getEdges());for(var e,p=c.length,i=0;i=t.getRight()?n[0]+=Math.min(t.getX()-a.getX(),a.getRight()-t.getRight()):t.getX()<=a.getX()&&t.getRight()>=a.getRight()&&(n[0]+=Math.min(a.getX()-t.getX(),t.getRight()-a.getRight())),a.getY()<=t.getY()&&a.getBottom()>=t.getBottom()?n[1]+=Math.min(t.getY()-a.getY(),a.getBottom()-t.getBottom()):t.getY()<=a.getY()&&t.getBottom()>=a.getBottom()&&(n[1]+=Math.min(a.getY()-t.getY(),t.getBottom()-a.getBottom()));var p=Math.abs((t.getCenterY()-a.getCenterY())/(t.getCenterX()-a.getCenterX()));t.getCenterY()===a.getCenterY()&&t.getCenterX()===a.getCenterX()&&(p=1);var i=p*n[0],r=n[1]/p;n[0]i)return n[0]=c,n[1]=h,n[2]=p,n[3]=X,!1;if(ep)return n[0]=r,n[1]=e,n[2]=G,n[3]=i,!1;if(cp?(n[0]=l,n[1]=A,s=!0):(n[0]=f,n[1]=h,s=!0):g===d&&(c>p?(n[0]=r,n[1]=h,s=!0):(n[0]=v,n[1]=A,s=!0)),-T===d?p>c?(n[2]=z,n[3]=X,m=!0):(n[2]=G,n[3]=C,m=!0):T===d&&(p>c?(n[2]=F,n[3]=C,m=!0):(n[2]=rt,n[3]=X,m=!0)),s&&m)return!1;if(c>p?e>i?(O=this.getCardinalDirection(g,d,4),x=this.getCardinalDirection(T,d,2)):(O=this.getCardinalDirection(-g,d,3),x=this.getCardinalDirection(-T,d,1)):e>i?(O=this.getCardinalDirection(-g,d,1),x=this.getCardinalDirection(-T,d,3)):(O=this.getCardinalDirection(g,d,2),x=this.getCardinalDirection(T,d,4)),!s)switch(O){case 1:S=h,P=c+-D/d,n[0]=P,n[1]=S;break;case 2:P=v,S=e+y*d,n[0]=P,n[1]=S;break;case 3:S=A,P=c+D/d,n[0]=P,n[1]=S;break;case 4:P=l,S=e+-y*d,n[0]=P,n[1]=S;break}if(!m)switch(x){case 1:Z=C,R=p+-J/d,n[2]=R,n[3]=Z;break;case 2:R=rt,Z=i+I*d,n[2]=R,n[3]=Z;break;case 3:Z=X,R=p+J/d,n[2]=R,n[3]=Z;break;case 4:R=z,Z=i+-I*d,n[2]=R,n[3]=Z;break}}return!1},o.getCardinalDirection=function(a,t,n){return a>t?n:1+n%4},o.getIntersection=function(a,t,n,c){if(c==null)return this.getIntersection2(a,t,n);var e=a.x,p=a.y,i=t.x,r=t.y,h=n.x,f=n.y,l=c.x,A=c.y,v=void 0,y=void 0,D=void 0,F=void 0,C=void 0,G=void 0,z=void 0,X=void 0,rt=void 0;return D=r-p,C=e-i,z=i*p-e*r,F=A-f,G=h-l,X=l*f-h*A,rt=D*G-F*C,rt===0?null:(v=(C*X-G*z)/rt,y=(F*z-D*X)/rt,new u(v,y))},o.angleOfVector=function(a,t,n,c){var e=void 0;return a!==n?(e=Math.atan((c-t)/(n-a)),n=0){var A=(-h+Math.sqrt(h*h-4*r*f))/(2*r),v=(-h-Math.sqrt(h*h-4*r*f))/(2*r),y=null;return A>=0&&A<=1?[A]:v>=0&&v<=1?[v]:y}else return null},o.HALF_PI=.5*Math.PI,o.ONE_AND_HALF_PI=1.5*Math.PI,o.TWO_PI=2*Math.PI,o.THREE_PI=3*Math.PI,E.exports=o},function(E,w,N){"use strict";function u(){}L(u,"IMath"),u.sign=function(o){return o>0?1:o<0?-1:0},u.floor=function(o){return o<0?Math.ceil(o):Math.floor(o)},u.ceil=function(o){return o<0?Math.floor(o):Math.ceil(o)},E.exports=u},function(E,w,N){"use strict";function u(){}L(u,"Integer"),u.MAX_VALUE=2147483647,u.MIN_VALUE=-2147483648,E.exports=u},function(E,w,N){"use strict";var u=function(){function e(p,i){for(var r=0;r"u"?"undefined":u(a);return a==null||t!="object"&&t!="function"},E.exports=o},function(E,w,N){"use strict";function u(h){if(Array.isArray(h)){for(var f=0,l=Array(h.length);f0&&f;){for(D.push(C[0]);D.length>0&&f;){var G=D[0];D.splice(0,1),y.add(G);for(var z=G.getEdges(),v=0;v-1&&C.splice(J,1)}y=new Set,F=new Map}}return h},r.prototype.createDummyNodesForBendpoints=function(h){for(var f=[],l=h.source,A=this.graphManager.calcLowestCommonAncestor(h.source,h.target),v=0;v0){for(var A=this.edgeToDummyNodes.get(l),v=0;v=0&&f.splice(X,1);var rt=F.getNeighborsList();rt.forEach(function(s){if(l.indexOf(s)<0){var m=A.get(s),g=m-1;g==1&&G.push(s),A.set(s,g)}})}l=l.concat(G),(f.length==1||f.length==2)&&(v=!0,y=f[0])}return y},r.prototype.setGraphManager=function(h){this.graphManager=h},E.exports=r},function(E,w,N){"use strict";function u(){}L(u,"RandomSeed"),u.seed=1,u.x=0,u.nextDouble=function(){return u.x=Math.sin(u.seed++)*1e4,u.x-Math.floor(u.x)},E.exports=u},function(E,w,N){"use strict";var u=N(5);function o(a,t){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}L(o,"Transform"),o.prototype.getWorldOrgX=function(){return this.lworldOrgX},o.prototype.setWorldOrgX=function(a){this.lworldOrgX=a},o.prototype.getWorldOrgY=function(){return this.lworldOrgY},o.prototype.setWorldOrgY=function(a){this.lworldOrgY=a},o.prototype.getWorldExtX=function(){return this.lworldExtX},o.prototype.setWorldExtX=function(a){this.lworldExtX=a},o.prototype.getWorldExtY=function(){return this.lworldExtY},o.prototype.setWorldExtY=function(a){this.lworldExtY=a},o.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},o.prototype.setDeviceOrgX=function(a){this.ldeviceOrgX=a},o.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},o.prototype.setDeviceOrgY=function(a){this.ldeviceOrgY=a},o.prototype.getDeviceExtX=function(){return this.ldeviceExtX},o.prototype.setDeviceExtX=function(a){this.ldeviceExtX=a},o.prototype.getDeviceExtY=function(){return this.ldeviceExtY},o.prototype.setDeviceExtY=function(a){this.ldeviceExtY=a},o.prototype.transformX=function(a){var t=0,n=this.lworldExtX;return n!=0&&(t=this.ldeviceOrgX+(a-this.lworldOrgX)*this.ldeviceExtX/n),t},o.prototype.transformY=function(a){var t=0,n=this.lworldExtY;return n!=0&&(t=this.ldeviceOrgY+(a-this.lworldOrgY)*this.ldeviceExtY/n),t},o.prototype.inverseTransformX=function(a){var t=0,n=this.ldeviceExtX;return n!=0&&(t=this.lworldOrgX+(a-this.ldeviceOrgX)*this.lworldExtX/n),t},o.prototype.inverseTransformY=function(a){var t=0,n=this.ldeviceExtY;return n!=0&&(t=this.lworldOrgY+(a-this.ldeviceOrgY)*this.lworldExtY/n),t},o.prototype.inverseTransformPoint=function(a){var t=new u(this.inverseTransformX(a.x),this.inverseTransformY(a.y));return t},E.exports=o},function(E,w,N){"use strict";function u(i){if(Array.isArray(i)){for(var r=0,h=Array(i.length);ra.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*a.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(i-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-a.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT_INCREMENTAL):(i>a.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(a.COOLING_ADAPTATION_FACTOR,1-(i-a.ADAPTATION_LOWER_NODE_LIMIT)/(a.ADAPTATION_UPPER_NODE_LIMIT-a.ADAPTATION_LOWER_NODE_LIMIT)*(1-a.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=a.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.displacementThresholdPerNode=3*a.DEFAULT_EDGE_LENGTH/100,this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},e.prototype.calcSpringForces=function(){for(var i=this.getAllEdges(),r,h=0;h0&&arguments[0]!==void 0?arguments[0]:!0,r=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,h,f,l,A,v=this.getAllNodes(),y;if(this.useFRGridVariant)for(this.totalIterations%a.GRID_CALCULATION_CHECK_PERIOD==1&&i&&this.updateGrid(),y=new Set,h=0;hD||y>D)&&(i.gravitationForceX=-this.gravityConstant*l,i.gravitationForceY=-this.gravityConstant*A)):(D=r.getEstimatedSize()*this.compoundGravityRangeFactor,(v>D||y>D)&&(i.gravitationForceX=-this.gravityConstant*l*this.compoundGravityConstant,i.gravitationForceY=-this.gravityConstant*A*this.compoundGravityConstant))},e.prototype.isConverged=function(){var i,r=!1;return this.totalIterations>this.maxIterations/3&&(r=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),i=this.totalDisplacement=v.length||D>=v[0].length)){for(var F=0;Fe},"_defaultCompareFunction")}]),n}();E.exports=t},function(E,w,N){"use strict";function u(){}L(u,"SVD"),u.svd=function(o){this.U=null,this.V=null,this.s=null,this.m=0,this.n=0,this.m=o.length,this.n=o[0].length;var a=Math.min(this.m,this.n);this.s=function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt}(Math.min(this.m+1,this.n)),this.U=function(Ot){var Nt=L(function Zt(St){if(St.length==0)return 0;for(var Wt=[],$t=0;$t0;)Nt.push(0);return Nt}(this.n),n=function(Ot){for(var Nt=[];Ot-- >0;)Nt.push(0);return Nt}(this.m),c=!0,e=!0,p=Math.min(this.m-1,this.n),i=Math.max(0,Math.min(this.n-2,this.m)),r=0;r=0;d--)if(this.s[d]!==0){for(var O=d+1;O=0;b--){if(function(Ot,Nt){return Ot&&Nt}(b0;){var Q=void 0,Xt=void 0;for(Q=m-2;Q>=-1&&Q!==-1;Q--)if(Math.abs(t[Q])<=bt+Lt*(Math.abs(this.s[Q])+Math.abs(this.s[Q+1]))){t[Q]=0;break}if(Q===m-2)Xt=4;else{var wt=void 0;for(wt=m-1;wt>=Q&&wt!==Q;wt--){var ot=(wt!==m?Math.abs(t[wt]):0)+(wt!==Q+1?Math.abs(t[wt-1]):0);if(Math.abs(this.s[wt])<=bt+Lt*ot){this.s[wt]=0;break}}wt===Q?Xt=3:wt===m-1?Xt=1:(Xt=2,Q=wt)}switch(Q++,Xt){case 1:{var et=t[m-2];t[m-2]=0;for(var yt=m-2;yt>=Q;yt--){var Et=u.hypot(this.s[yt],et),Dt=this.s[yt]/Et,Tt=et/Et;if(this.s[yt]=Et,yt!==Q&&(et=-Tt*t[yt-1],t[yt-1]=Dt*t[yt-1]),e)for(var At=0;At=this.s[Q+1]);){var ct=this.s[Q];if(this.s[Q]=this.s[Q+1],this.s[Q+1]=ct,e&&QMath.abs(a)?(t=a/o,t=Math.abs(o)*Math.sqrt(1+t*t)):a!=0?(t=o/a,t=Math.abs(a)*Math.sqrt(1+t*t)):t=0,t},E.exports=u},function(E,w,N){"use strict";var u=function(){function t(n,c){for(var e=0;e2&&arguments[2]!==void 0?arguments[2]:1,p=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,i=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;o(this,t),this.sequence1=n,this.sequence2=c,this.match_score=e,this.mismatch_penalty=p,this.gap_penalty=i,this.iMax=n.length+1,this.jMax=c.length+1,this.grid=new Array(this.iMax);for(var r=0;r=0;n--){var c=this.listeners[n];c.event===a&&c.callback===t&&this.listeners.splice(n,1)}},o.emit=function(a,t){for(var n=0;n{"use strict";L(function(w,N){typeof ce=="object"&&typeof Re=="object"?Re.exports=N(Oe()):typeof define=="function"&&define.amd?define(["layout-base"],N):typeof ce=="object"?ce.coseBase=N(Oe()):w.coseBase=N(w.layoutBase)},"webpackUniversalModuleDefinition")(ce,function(E){return(()=>{"use strict";var w={45:(a,t,n)=>{var c={};c.layoutBase=n(551),c.CoSEConstants=n(806),c.CoSEEdge=n(767),c.CoSEGraph=n(880),c.CoSEGraphManager=n(578),c.CoSELayout=n(765),c.CoSENode=n(991),c.ConstraintHandler=n(902),a.exports=c},806:(a,t,n)=>{var c=n(551).FDLayoutConstants;function e(){}L(e,"CoSEConstants");for(var p in c)e[p]=c[p];e.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,e.DEFAULT_RADIAL_SEPARATION=c.DEFAULT_EDGE_LENGTH,e.DEFAULT_COMPONENT_SEPERATION=60,e.TILE=!0,e.TILING_PADDING_VERTICAL=10,e.TILING_PADDING_HORIZONTAL=10,e.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,e.ENFORCE_CONSTRAINTS=!0,e.APPLY_LAYOUT=!0,e.RELAX_MOVEMENT_ON_CONSTRAINTS=!0,e.TREE_REDUCTION_ON_INCREMENTAL=!0,e.PURE_INCREMENTAL=e.DEFAULT_INCREMENTAL,a.exports=e},767:(a,t,n)=>{var c=n(551).FDLayoutEdge;function e(i,r,h){c.call(this,i,r,h)}L(e,"CoSEEdge"),e.prototype=Object.create(c.prototype);for(var p in c)e[p]=c[p];a.exports=e},880:(a,t,n)=>{var c=n(551).LGraph;function e(i,r,h){c.call(this,i,r,h)}L(e,"CoSEGraph"),e.prototype=Object.create(c.prototype);for(var p in c)e[p]=c[p];a.exports=e},578:(a,t,n)=>{var c=n(551).LGraphManager;function e(i){c.call(this,i)}L(e,"CoSEGraphManager"),e.prototype=Object.create(c.prototype);for(var p in c)e[p]=c[p];a.exports=e},765:(a,t,n)=>{var c=n(551).FDLayout,e=n(578),p=n(880),i=n(991),r=n(767),h=n(806),f=n(902),l=n(551).FDLayoutConstants,A=n(551).LayoutConstants,v=n(551).Point,y=n(551).PointD,D=n(551).DimensionD,F=n(551).Layout,C=n(551).Integer,G=n(551).IGeometry,z=n(551).LGraph,X=n(551).Transform,rt=n(551).LinkedList;function I(){c.call(this),this.toBeTiled={},this.constraints={}}L(I,"CoSELayout"),I.prototype=Object.create(c.prototype);for(var J in c)I[J]=c[J];I.prototype.newGraphManager=function(){var s=new e(this);return this.graphManager=s,s},I.prototype.newGraph=function(s){return new p(null,this.graphManager,s)},I.prototype.newNode=function(s){return new i(this.graphManager,s)},I.prototype.newEdge=function(s){return new r(null,null,s)},I.prototype.initParameters=function(){c.prototype.initParameters.call(this,arguments),this.isSubLayout||(h.DEFAULT_EDGE_LENGTH<10?this.idealEdgeLength=10:this.idealEdgeLength=h.DEFAULT_EDGE_LENGTH,this.useSmartIdealEdgeLengthCalculation=h.DEFAULT_USE_SMART_IDEAL_EDGE_LENGTH_CALCULATION,this.gravityConstant=l.DEFAULT_GRAVITY_STRENGTH,this.compoundGravityConstant=l.DEFAULT_COMPOUND_GRAVITY_STRENGTH,this.gravityRangeFactor=l.DEFAULT_GRAVITY_RANGE_FACTOR,this.compoundGravityRangeFactor=l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR,this.prunedNodesAll=[],this.growTreeIterations=0,this.afterGrowthIterations=0,this.isTreeGrowing=!1,this.isGrowthFinished=!1)},I.prototype.initSpringEmbedder=function(){c.prototype.initSpringEmbedder.call(this),this.coolingCycle=0,this.maxCoolingCycle=this.maxIterations/l.CONVERGENCE_CHECK_PERIOD,this.finalTemperature=.04,this.coolingAdjuster=1},I.prototype.layout=function(){var s=A.DEFAULT_CREATE_BENDS_AS_NEEDED;return s&&(this.createBendpoints(),this.graphManager.resetAllEdges()),this.level=0,this.classicLayout()},I.prototype.classicLayout=function(){if(this.nodesWithGravity=this.calculateNodesToApplyGravitationTo(),this.graphManager.setAllNodesToApplyGravitation(this.nodesWithGravity),this.calcNoOfChildrenForAllNodes(),this.graphManager.calcLowestCommonAncestors(),this.graphManager.calcInclusionTreeDepths(),this.graphManager.getRoot().calcEstimatedSize(),this.calcIdealEdgeLengths(),this.incremental){if(h.TREE_REDUCTION_ON_INCREMENTAL){this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(O){return m.has(O)});this.graphManager.setAllNodesToApplyGravitation(g)}}else{var s=this.getFlatForest();if(s.length>0)this.positionNodesRadially(s);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var m=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(T){return m.has(T)});this.graphManager.setAllNodesToApplyGravitation(g),this.positionNodesRandomly()}}return Object.keys(this.constraints).length>0&&(f.handleConstraints(this),this.initConstraintVariables()),this.initSpringEmbedder(),h.APPLY_LAYOUT&&this.runSpringEmbedder(),!0},I.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%l.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var s=new Set(this.getAllNodes()),m=this.nodesWithGravity.filter(function(d){return s.has(d)});this.graphManager.setAllNodesToApplyGravitation(m),this.graphManager.updateBounds(),this.updateGrid(),h.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2:this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),h.PURE_INCREMENTAL?this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL/2*((100-this.afterGrowthIterations)/100):this.coolingFactor=l.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var g=!this.isTreeGrowing&&!this.isGrowthFinished,T=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(g,T),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},I.prototype.getPositionsData=function(){for(var s=this.graphManager.getAllNodes(),m={},g=0;g0&&this.updateDisplacements();for(var g=0;g0&&(T.fixedNodeWeight=O)}}if(this.constraints.relativePlacementConstraint){var x=new Map,P=new Map;if(this.dummyToNodeForVerticalAlignment=new Map,this.dummyToNodeForHorizontalAlignment=new Map,this.fixedNodesOnHorizontal=new Set,this.fixedNodesOnVertical=new Set,this.fixedNodeSet.forEach(function(M){s.fixedNodesOnHorizontal.add(M),s.fixedNodesOnVertical.add(M)}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var S=this.constraints.alignmentConstraint.vertical,g=0;g=2*M.length/3;K--)U=Math.floor(Math.random()*(K+1)),H=M[K],M[K]=M[U],M[U]=H;return M},this.nodesInRelativeHorizontal=[],this.nodesInRelativeVertical=[],this.nodeToRelativeConstraintMapHorizontal=new Map,this.nodeToRelativeConstraintMapVertical=new Map,this.nodeToTempPositionMapHorizontal=new Map,this.nodeToTempPositionMapVertical=new Map,this.constraints.relativePlacementConstraint.forEach(function(M){if(M.left){var U=x.has(M.left)?x.get(M.left):M.left,H=x.has(M.right)?x.get(M.right):M.right;s.nodesInRelativeHorizontal.includes(U)||(s.nodesInRelativeHorizontal.push(U),s.nodeToRelativeConstraintMapHorizontal.set(U,[]),s.dummyToNodeForVerticalAlignment.has(U)?s.nodeToTempPositionMapHorizontal.set(U,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(U)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(U,s.idToNodeMap.get(U).getCenterX())),s.nodesInRelativeHorizontal.includes(H)||(s.nodesInRelativeHorizontal.push(H),s.nodeToRelativeConstraintMapHorizontal.set(H,[]),s.dummyToNodeForVerticalAlignment.has(H)?s.nodeToTempPositionMapHorizontal.set(H,s.idToNodeMap.get(s.dummyToNodeForVerticalAlignment.get(H)[0]).getCenterX()):s.nodeToTempPositionMapHorizontal.set(H,s.idToNodeMap.get(H).getCenterX())),s.nodeToRelativeConstraintMapHorizontal.get(U).push({right:H,gap:M.gap}),s.nodeToRelativeConstraintMapHorizontal.get(H).push({left:U,gap:M.gap})}else{var K=P.has(M.top)?P.get(M.top):M.top,ht=P.has(M.bottom)?P.get(M.bottom):M.bottom;s.nodesInRelativeVertical.includes(K)||(s.nodesInRelativeVertical.push(K),s.nodeToRelativeConstraintMapVertical.set(K,[]),s.dummyToNodeForHorizontalAlignment.has(K)?s.nodeToTempPositionMapVertical.set(K,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(K)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(K,s.idToNodeMap.get(K).getCenterY())),s.nodesInRelativeVertical.includes(ht)||(s.nodesInRelativeVertical.push(ht),s.nodeToRelativeConstraintMapVertical.set(ht,[]),s.dummyToNodeForHorizontalAlignment.has(ht)?s.nodeToTempPositionMapVertical.set(ht,s.idToNodeMap.get(s.dummyToNodeForHorizontalAlignment.get(ht)[0]).getCenterY()):s.nodeToTempPositionMapVertical.set(ht,s.idToNodeMap.get(ht).getCenterY())),s.nodeToRelativeConstraintMapVertical.get(K).push({bottom:ht,gap:M.gap}),s.nodeToRelativeConstraintMapVertical.get(ht).push({top:K,gap:M.gap})}});else{var Z=new Map,tt=new Map;this.constraints.relativePlacementConstraint.forEach(function(M){if(M.left){var U=x.has(M.left)?x.get(M.left):M.left,H=x.has(M.right)?x.get(M.right):M.right;Z.has(U)?Z.get(U).push(H):Z.set(U,[H]),Z.has(H)?Z.get(H).push(U):Z.set(H,[U])}else{var K=P.has(M.top)?P.get(M.top):M.top,ht=P.has(M.bottom)?P.get(M.bottom):M.bottom;tt.has(K)?tt.get(K).push(ht):tt.set(K,[ht]),tt.has(ht)?tt.get(ht).push(K):tt.set(ht,[K])}});var b=L(function(U,H){var K=[],ht=[],Lt=new rt,bt=new Set,Q=0;return U.forEach(function(Xt,wt){if(!bt.has(wt)){K[Q]=[],ht[Q]=!1;var ot=wt;for(Lt.push(ot),bt.add(ot),K[Q].push(ot);Lt.length!=0;){ot=Lt.shift(),H.has(ot)&&(ht[Q]=!0);var et=U.get(ot);et.forEach(function(yt){bt.has(yt)||(Lt.push(yt),bt.add(yt),K[Q].push(yt))})}Q++}}),{components:K,isFixed:ht}},"constructComponents"),_=b(Z,s.fixedNodesOnHorizontal);this.componentsOnHorizontal=_.components,this.fixedComponentsOnHorizontal=_.isFixed;var B=b(tt,s.fixedNodesOnVertical);this.componentsOnVertical=B.components,this.fixedComponentsOnVertical=B.isFixed}}},I.prototype.updateDisplacements=function(){var s=this;if(this.constraints.fixedNodeConstraint&&this.constraints.fixedNodeConstraint.forEach(function(B){var M=s.idToNodeMap.get(B.nodeId);M.displacementX=0,M.displacementY=0}),this.constraints.alignmentConstraint){if(this.constraints.alignmentConstraint.vertical)for(var m=this.constraints.alignmentConstraint.vertical,g=0;g1){var P;for(P=0;PT&&(T=Math.floor(x.y)),O=Math.floor(x.x+h.DEFAULT_COMPONENT_SEPERATION)}this.transform(new y(A.WORLD_CENTER_X-x.x/2,A.WORLD_CENTER_Y-x.y/2))},I.radialLayout=function(s,m,g){var T=Math.max(this.maxDiagonalInTree(s),h.DEFAULT_RADIAL_SEPARATION);I.branchRadialLayout(m,null,0,359,0,T);var d=z.calculateBounds(s),O=new X;O.setDeviceOrgX(d.getMinX()),O.setDeviceOrgY(d.getMinY()),O.setWorldOrgX(g.x),O.setWorldOrgY(g.y);for(var x=0;x1;){var K=H[0];H.splice(0,1);var ht=b.indexOf(K);ht>=0&&b.splice(ht,1),M--,_--}m!=null?U=(b.indexOf(H[0])+1)%M:U=0;for(var Lt=Math.abs(T-g)/_,bt=U;B!=_;bt=++bt%M){var Q=b[bt].getOtherEnd(s);if(Q!=m){var Xt=(g+B*Lt)%360,wt=(Xt+Lt)%360;I.branchRadialLayout(Q,s,Xt,wt,d+O,O),B++}}},I.maxDiagonalInTree=function(s){for(var m=C.MIN_VALUE,g=0;gm&&(m=d)}return m},I.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},I.prototype.groupZeroDegreeMembers=function(){var s=this,m={};this.memberGroups={},this.idToDummyNode={};for(var g=[],T=this.graphManager.getAllNodes(),d=0;d"u"&&(m[P]=[]),m[P]=m[P].concat(O)}Object.keys(m).forEach(function(S){if(m[S].length>1){var R="DummyCompound_"+S;s.memberGroups[R]=m[S];var Z=m[S][0].getParent(),tt=new i(s.graphManager);tt.id=R,tt.paddingLeft=Z.paddingLeft||0,tt.paddingRight=Z.paddingRight||0,tt.paddingBottom=Z.paddingBottom||0,tt.paddingTop=Z.paddingTop||0,s.idToDummyNode[R]=tt;var b=s.getGraphManager().add(s.newGraph(),tt),_=Z.getChild();_.add(tt);for(var B=0;Bd?(T.rect.x-=(T.labelWidth-d)/2,T.setWidth(T.labelWidth),T.labelMarginLeft=(T.labelWidth-d)/2):T.labelPosHorizontal=="right"&&T.setWidth(d+T.labelWidth)),T.labelHeight&&(T.labelPosVertical=="top"?(T.rect.y-=T.labelHeight,T.setHeight(O+T.labelHeight),T.labelMarginTop=T.labelHeight):T.labelPosVertical=="center"&&T.labelHeight>O?(T.rect.y-=(T.labelHeight-O)/2,T.setHeight(T.labelHeight),T.labelMarginTop=(T.labelHeight-O)/2):T.labelPosVertical=="bottom"&&T.setHeight(O+T.labelHeight))}})},I.prototype.repopulateCompounds=function(){for(var s=this.compoundOrder.length-1;s>=0;s--){var m=this.compoundOrder[s],g=m.id,T=m.paddingLeft,d=m.paddingTop,O=m.labelMarginLeft,x=m.labelMarginTop;this.adjustLocations(this.tiledMemberPack[g],m.rect.x,m.rect.y,T,d,O,x)}},I.prototype.repopulateZeroDegreeMembers=function(){var s=this,m=this.tiledZeroDegreePack;Object.keys(m).forEach(function(g){var T=s.idToDummyNode[g],d=T.paddingLeft,O=T.paddingTop,x=T.labelMarginLeft,P=T.labelMarginTop;s.adjustLocations(m[g],T.rect.x,T.rect.y,d,O,x,P)})},I.prototype.getToBeTiled=function(s){var m=s.id;if(this.toBeTiled[m]!=null)return this.toBeTiled[m];var g=s.getChild();if(g==null)return this.toBeTiled[m]=!1,!1;for(var T=g.getNodes(),d=0;d0)return this.toBeTiled[m]=!1,!1;if(O.getChild()==null){this.toBeTiled[O.id]=!1;continue}if(!this.getToBeTiled(O))return this.toBeTiled[m]=!1,!1}return this.toBeTiled[m]=!0,!0},I.prototype.getNodeDegree=function(s){for(var m=s.id,g=s.getEdges(),T=0,d=0;dZ&&(Z=b.rect.height)}g+=Z+s.verticalPadding}},I.prototype.tileCompoundMembers=function(s,m){var g=this;this.tiledMemberPack=[],Object.keys(s).forEach(function(T){var d=m[T];if(g.tiledMemberPack[T]=g.tileNodes(s[T],d.paddingLeft+d.paddingRight),d.rect.width=g.tiledMemberPack[T].width,d.rect.height=g.tiledMemberPack[T].height,d.setCenter(g.tiledMemberPack[T].centerX,g.tiledMemberPack[T].centerY),d.labelMarginLeft=0,d.labelMarginTop=0,h.NODE_DIMENSIONS_INCLUDE_LABELS){var O=d.rect.width,x=d.rect.height;d.labelWidth&&(d.labelPosHorizontal=="left"?(d.rect.x-=d.labelWidth,d.setWidth(O+d.labelWidth),d.labelMarginLeft=d.labelWidth):d.labelPosHorizontal=="center"&&d.labelWidth>O?(d.rect.x-=(d.labelWidth-O)/2,d.setWidth(d.labelWidth),d.labelMarginLeft=(d.labelWidth-O)/2):d.labelPosHorizontal=="right"&&d.setWidth(O+d.labelWidth)),d.labelHeight&&(d.labelPosVertical=="top"?(d.rect.y-=d.labelHeight,d.setHeight(x+d.labelHeight),d.labelMarginTop=d.labelHeight):d.labelPosVertical=="center"&&d.labelHeight>x?(d.rect.y-=(d.labelHeight-x)/2,d.setHeight(d.labelHeight),d.labelMarginTop=(d.labelHeight-x)/2):d.labelPosVertical=="bottom"&&d.setHeight(x+d.labelHeight))}})},I.prototype.tileNodes=function(s,m){var g=this.tileNodesByFavoringDim(s,m,!0),T=this.tileNodesByFavoringDim(s,m,!1),d=this.getOrgRatio(g),O=this.getOrgRatio(T),x;return OP&&(P=B.getWidth())});var S=O/d,R=x/d,Z=Math.pow(g-T,2)+4*(S+T)*(R+g)*d,tt=(T-g+Math.sqrt(Z))/(2*(S+T)),b;m?(b=Math.ceil(tt),b==tt&&b++):b=Math.floor(tt);var _=b*(S+T)-T;return P>_&&(_=P),_+=T*2,_},I.prototype.tileNodesByFavoringDim=function(s,m,g){var T=h.TILING_PADDING_VERTICAL,d=h.TILING_PADDING_HORIZONTAL,O=h.TILING_COMPARE_BY,x={rows:[],rowWidth:[],rowHeight:[],width:0,height:m,verticalPadding:T,horizontalPadding:d,centerX:0,centerY:0};O&&(x.idealRowWidth=this.calcIdealRowWidth(s,g));var P=L(function(M){return M.rect.width*M.rect.height},"getNodeArea"),S=L(function(M,U){return P(U)-P(M)},"areaCompareFcn");s.sort(function(B,M){var U=S;return x.idealRowWidth?(U=O,U(B.id,M.id)):U(B,M)});for(var R=0,Z=0,tt=0;tt0&&(x+=s.horizontalPadding),s.rowWidth[g]=x,s.width0&&(P+=s.verticalPadding);var S=0;P>s.rowHeight[g]&&(S=s.rowHeight[g],s.rowHeight[g]=P,S=s.rowHeight[g]-S),s.height+=S,s.rows[g].push(m)},I.prototype.getShortestRowIndex=function(s){for(var m=-1,g=Number.MAX_VALUE,T=0;Tg&&(m=T,g=s.rowWidth[T]);return m},I.prototype.canAddHorizontal=function(s,m,g){if(s.idealRowWidth){var T=s.rows.length-1,d=s.rowWidth[T];return d+m+s.horizontalPadding<=s.idealRowWidth}var O=this.getShortestRowIndex(s);if(O<0)return!0;var x=s.rowWidth[O];if(x+s.horizontalPadding+m<=s.width)return!0;var P=0;s.rowHeight[O]0&&(P=g+s.verticalPadding-s.rowHeight[O]);var S;s.width-x>=m+s.horizontalPadding?S=(s.height+P)/(x+m+s.horizontalPadding):S=(s.height+P)/s.width,P=g+s.verticalPadding;var R;return s.widthO&&m!=g){T.splice(-1,1),s.rows[g].push(d),s.rowWidth[m]=s.rowWidth[m]-O,s.rowWidth[g]=s.rowWidth[g]+O,s.width=s.rowWidth[instance.getLongestRowIndex(s)];for(var x=Number.MIN_VALUE,P=0;Px&&(x=T[P].height);m>0&&(x+=s.verticalPadding);var S=s.rowHeight[m]+s.rowHeight[g];s.rowHeight[m]=x,s.rowHeight[g]0)for(var _=d;_<=O;_++)b[0]+=this.grid[_][x-1].length+this.grid[_][x].length-1;if(O0)for(var _=x;_<=P;_++)b[3]+=this.grid[d-1][_].length+this.grid[d][_].length-1;for(var B=C.MAX_VALUE,M,U,H=0;H{var c=n(551).FDLayoutNode,e=n(551).IMath;function p(r,h,f,l){c.call(this,r,h,f,l)}L(p,"CoSENode"),p.prototype=Object.create(c.prototype);for(var i in c)p[i]=c[i];p.prototype.calculateDisplacement=function(){var r=this.graphManager.getLayout();this.getChild()!=null&&this.fixedNodeWeight?(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.fixedNodeWeight,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.fixedNodeWeight):(this.displacementX+=r.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY+=r.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren),Math.abs(this.displacementX)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementX=r.coolingFactor*r.maxNodeDisplacement*e.sign(this.displacementX)),Math.abs(this.displacementY)>r.coolingFactor*r.maxNodeDisplacement&&(this.displacementY=r.coolingFactor*r.maxNodeDisplacement*e.sign(this.displacementY)),this.child&&this.child.getNodes().length>0&&this.propogateDisplacementToChildren(this.displacementX,this.displacementY)},p.prototype.propogateDisplacementToChildren=function(r,h){for(var f=this.getChild().getNodes(),l,A=0;A{function c(f){if(Array.isArray(f)){for(var l=0,A=Array(f.length);l0){var dt=0;nt.forEach(function(ct){V=="horizontal"?(q.set(ct,v.has(ct)?y[v.get(ct)]:k.get(ct)),dt+=q.get(ct)):(q.set(ct,v.has(ct)?D[v.get(ct)]:k.get(ct)),dt+=q.get(ct))}),dt=dt/nt.length,st.forEach(function(ct){$.has(ct)||q.set(ct,dt)})}else{var at=0;st.forEach(function(ct){V=="horizontal"?at+=v.has(ct)?y[v.get(ct)]:k.get(ct):at+=v.has(ct)?D[v.get(ct)]:k.get(ct)}),at=at/st.length,st.forEach(function(ct){q.set(ct,at)})}});for(var it=L(function(){var nt=ut.shift(),dt=W.get(nt);dt.forEach(function(at){if(q.get(at.id)ct&&(ct=Wt),$tFt&&(Ft=$t)}}catch(ne){Bt=!0,Ot=ne}finally{try{!Rt&&Nt.return&&Nt.return()}finally{if(Bt)throw Ot}}var me=(dt+ct)/2-(at+Ft)/2,Kt=!0,ee=!1,re=void 0;try{for(var jt=st[Symbol.iterator](),ue;!(Kt=(ue=jt.next()).done);Kt=!0){var ie=ue.value;q.set(ie,q.get(ie)+me)}}catch(ne){ee=!0,re=ne}finally{try{!Kt&&jt.return&&jt.return()}finally{if(ee)throw re}}})}return q},"findAppropriatePositionForRelativePlacement"),J=L(function(W){var V=0,$=0,k=0,j=0;if(W.forEach(function(lt){lt.left?y[v.get(lt.left)]-y[v.get(lt.right)]>=0?V++:$++:D[v.get(lt.top)]-D[v.get(lt.bottom)]>=0?k++:j++}),V>$&&k>j)for(var gt=0;gt$)for(var ft=0;ftj)for(var q=0;q1)l.fixedNodeConstraint.forEach(function(Y,W){T[W]=[Y.position.x,Y.position.y],d[W]=[y[v.get(Y.nodeId)],D[v.get(Y.nodeId)]]}),O=!0;else if(l.alignmentConstraint)(function(){var Y=0;if(l.alignmentConstraint.vertical){for(var W=l.alignmentConstraint.vertical,V=L(function(q){var lt=new Set;W[q].forEach(function(pt){lt.add(pt)});var ut=new Set([].concat(c(lt)).filter(function(pt){return P.has(pt)})),it=void 0;ut.size>0?it=y[v.get(ut.values().next().value)]:it=rt(lt).x,W[q].forEach(function(pt){T[Y]=[it,D[v.get(pt)]],d[Y]=[y[v.get(pt)],D[v.get(pt)]],Y++})},"_loop2"),$=0;$0?it=y[v.get(ut.values().next().value)]:it=rt(lt).y,k[q].forEach(function(pt){T[Y]=[y[v.get(pt)],it],d[Y]=[y[v.get(pt)],D[v.get(pt)]],Y++})},"_loop3"),gt=0;gttt&&(tt=Z[_].length,b=_);if(tt0){var Dt={x:0,y:0};l.fixedNodeConstraint.forEach(function(Y,W){var V={x:y[v.get(Y.nodeId)],y:D[v.get(Y.nodeId)]},$=Y.position,k=X($,V);Dt.x+=k.x,Dt.y+=k.y}),Dt.x/=l.fixedNodeConstraint.length,Dt.y/=l.fixedNodeConstraint.length,y.forEach(function(Y,W){y[W]+=Dt.x}),D.forEach(function(Y,W){D[W]+=Dt.y}),l.fixedNodeConstraint.forEach(function(Y){y[v.get(Y.nodeId)]=Y.position.x,D[v.get(Y.nodeId)]=Y.position.y})}if(l.alignmentConstraint){if(l.alignmentConstraint.vertical)for(var Tt=l.alignmentConstraint.vertical,At=L(function(W){var V=new Set;Tt[W].forEach(function(j){V.add(j)});var $=new Set([].concat(c(V)).filter(function(j){return P.has(j)})),k=void 0;$.size>0?k=y[v.get($.values().next().value)]:k=rt(V).x,V.forEach(function(j){P.has(j)||(y[v.get(j)]=k)})},"_loop4"),xt=0;xt0?k=D[v.get($.values().next().value)]:k=rt(V).y,V.forEach(function(j){P.has(j)||(D[v.get(j)]=k)})},"_loop5"),Yt=0;Yt{a.exports=E}},N={};function u(a){var t=N[a];if(t!==void 0)return t.exports;var n=N[a]={exports:{}};return w[a](n,n.exports,u),n.exports}L(u,"__webpack_require__");var o=u(45);return o})()})});var lr=Le((fe,Se)=>{"use strict";L(function(w,N){typeof fe=="object"&&typeof Se=="object"?Se.exports=N(Ie()):typeof define=="function"&&define.amd?define(["cose-base"],N):typeof fe=="object"?fe.cytoscapeFcose=N(Ie()):w.cytoscapeFcose=N(w.coseBase)},"webpackUniversalModuleDefinition")(fe,function(E){return(()=>{"use strict";var w={658:a=>{a.exports=Object.assign!=null?Object.assign.bind(Object):function(t){for(var n=arguments.length,c=Array(n>1?n-1:0),e=1;e{var c=function(){function i(r,h){var f=[],l=!0,A=!1,v=void 0;try{for(var y=r[Symbol.iterator](),D;!(l=(D=y.next()).done)&&(f.push(D.value),!(h&&f.length===h));l=!0);}catch(F){A=!0,v=F}finally{try{!l&&y.return&&y.return()}finally{if(A)throw v}}return f}return L(i,"sliceIterator"),function(r,h){if(Array.isArray(r))return r;if(Symbol.iterator in Object(r))return i(r,h);throw new TypeError("Invalid attempt to destructure non-iterable instance")}}(),e=n(140).layoutBase.LinkedList,p={};p.getTopMostNodes=function(i){for(var r={},h=0;h0&&O.merge(R)});for(var x=0;x1){D=v[0],F=D.connectedEdges().length,v.forEach(function(d){d.connectedEdges().length0&&f.set("dummy"+(f.size+1),z),X},p.relocateComponent=function(i,r,h){if(!h.fixedNodeConstraint){var f=Number.POSITIVE_INFINITY,l=Number.NEGATIVE_INFINITY,A=Number.POSITIVE_INFINITY,v=Number.NEGATIVE_INFINITY;if(h.quality=="draft"){var y=!0,D=!1,F=void 0;try{for(var C=r.nodeIndexes[Symbol.iterator](),G;!(y=(G=C.next()).done);y=!0){var z=G.value,X=c(z,2),rt=X[0],I=X[1],J=h.cy.getElementById(rt);if(J){var s=J.boundingBox(),m=r.xCoords[I]-s.w/2,g=r.xCoords[I]+s.w/2,T=r.yCoords[I]-s.h/2,d=r.yCoords[I]+s.h/2;ml&&(l=g),Tv&&(v=d)}}}catch(R){D=!0,F=R}finally{try{!y&&C.return&&C.return()}finally{if(D)throw F}}var O=i.x-(l+f)/2,x=i.y-(v+A)/2;r.xCoords=r.xCoords.map(function(R){return R+O}),r.yCoords=r.yCoords.map(function(R){return R+x})}else{Object.keys(r).forEach(function(R){var Z=r[R],tt=Z.getRect().x,b=Z.getRect().x+Z.getRect().width,_=Z.getRect().y,B=Z.getRect().y+Z.getRect().height;ttl&&(l=b),_v&&(v=B)});var P=i.x-(l+f)/2,S=i.y-(v+A)/2;Object.keys(r).forEach(function(R){var Z=r[R];Z.setCenter(Z.getCenterX()+P,Z.getCenterY()+S)})}}},p.calcBoundingBox=function(i,r,h,f){for(var l=Number.MAX_SAFE_INTEGER,A=Number.MIN_SAFE_INTEGER,v=Number.MAX_SAFE_INTEGER,y=Number.MIN_SAFE_INTEGER,D=void 0,F=void 0,C=void 0,G=void 0,z=i.descendants().not(":parent"),X=z.length,rt=0;rtD&&(l=D),AC&&(v=C),y{var c=n(548),e=n(140).CoSELayout,p=n(140).CoSENode,i=n(140).layoutBase.PointD,r=n(140).layoutBase.DimensionD,h=n(140).layoutBase.LayoutConstants,f=n(140).layoutBase.FDLayoutConstants,l=n(140).CoSEConstants,A=L(function(y,D){var F=y.cy,C=y.eles,G=C.nodes(),z=C.edges(),X=void 0,rt=void 0,I=void 0,J={};y.randomize&&(X=D.nodeIndexes,rt=D.xCoords,I=D.yCoords);var s=L(function(R){return typeof R=="function"},"isFn"),m=L(function(R,Z){return s(R)?R(Z):R},"optFn"),g=c.calcParentsWithoutChildren(F,C),T=L(function S(R,Z,tt,b){for(var _=Z.length,B=0;B<_;B++){var M=Z[B],U=null;M.intersection(g).length==0&&(U=M.children());var H=void 0,K=M.layoutDimensions({nodeDimensionsIncludeLabels:b.nodeDimensionsIncludeLabels});if(M.outerWidth()!=null&&M.outerHeight()!=null)if(b.randomize)if(!M.isParent())H=R.add(new p(tt.graphManager,new i(rt[X.get(M.id())]-K.w/2,I[X.get(M.id())]-K.h/2),new r(parseFloat(K.w),parseFloat(K.h))));else{var ht=c.calcBoundingBox(M,rt,I,X);M.intersection(g).length==0?H=R.add(new p(tt.graphManager,new i(ht.topLeftX,ht.topLeftY),new r(ht.width,ht.height))):H=R.add(new p(tt.graphManager,new i(ht.topLeftX,ht.topLeftY),new r(parseFloat(K.w),parseFloat(K.h))))}else H=R.add(new p(tt.graphManager,new i(M.position("x")-K.w/2,M.position("y")-K.h/2),new r(parseFloat(K.w),parseFloat(K.h))));else H=R.add(new p(this.graphManager));if(H.id=M.data("id"),H.nodeRepulsion=m(b.nodeRepulsion,M),H.paddingLeft=parseInt(M.css("padding")),H.paddingTop=parseInt(M.css("padding")),H.paddingRight=parseInt(M.css("padding")),H.paddingBottom=parseInt(M.css("padding")),b.nodeDimensionsIncludeLabels&&(H.labelWidth=M.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).w,H.labelHeight=M.boundingBox({includeLabels:!0,includeNodes:!1,includeOverlays:!1}).h,H.labelPosVertical=M.css("text-valign"),H.labelPosHorizontal=M.css("text-halign")),J[M.data("id")]=H,isNaN(H.rect.x)&&(H.rect.x=0),isNaN(H.rect.y)&&(H.rect.y=0),U!=null&&U.length>0){var Lt=void 0;Lt=tt.getGraphManager().add(tt.newGraph(),H),S(Lt,U,tt,b)}}},"processChildrenList"),d=L(function(R,Z,tt){for(var b=0,_=0,B=0;B0?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=b/_:s(y.idealEdgeLength)?l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=50:l.DEFAULT_EDGE_LENGTH=f.DEFAULT_EDGE_LENGTH=y.idealEdgeLength,l.MIN_REPULSION_DIST=f.MIN_REPULSION_DIST=f.DEFAULT_EDGE_LENGTH/10,l.DEFAULT_RADIAL_SEPARATION=f.DEFAULT_EDGE_LENGTH)},"processEdges"),O=L(function(R,Z){Z.fixedNodeConstraint&&(R.constraints.fixedNodeConstraint=Z.fixedNodeConstraint),Z.alignmentConstraint&&(R.constraints.alignmentConstraint=Z.alignmentConstraint),Z.relativePlacementConstraint&&(R.constraints.relativePlacementConstraint=Z.relativePlacementConstraint)},"processConstraints");y.nestingFactor!=null&&(l.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=f.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.nestingFactor),y.gravity!=null&&(l.DEFAULT_GRAVITY_STRENGTH=f.DEFAULT_GRAVITY_STRENGTH=y.gravity),y.numIter!=null&&(l.MAX_ITERATIONS=f.MAX_ITERATIONS=y.numIter),y.gravityRange!=null&&(l.DEFAULT_GRAVITY_RANGE_FACTOR=f.DEFAULT_GRAVITY_RANGE_FACTOR=y.gravityRange),y.gravityCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_STRENGTH=f.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.gravityCompound),y.gravityRangeCompound!=null&&(l.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=f.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.gravityRangeCompound),y.initialEnergyOnIncremental!=null&&(l.DEFAULT_COOLING_FACTOR_INCREMENTAL=f.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.initialEnergyOnIncremental),y.tilingCompareBy!=null&&(l.TILING_COMPARE_BY=y.tilingCompareBy),y.quality=="proof"?h.QUALITY=2:h.QUALITY=0,l.NODE_DIMENSIONS_INCLUDE_LABELS=f.NODE_DIMENSIONS_INCLUDE_LABELS=h.NODE_DIMENSIONS_INCLUDE_LABELS=y.nodeDimensionsIncludeLabels,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!y.randomize,l.ANIMATE=f.ANIMATE=h.ANIMATE=y.animate,l.TILE=y.tile,l.TILING_PADDING_VERTICAL=typeof y.tilingPaddingVertical=="function"?y.tilingPaddingVertical.call():y.tilingPaddingVertical,l.TILING_PADDING_HORIZONTAL=typeof y.tilingPaddingHorizontal=="function"?y.tilingPaddingHorizontal.call():y.tilingPaddingHorizontal,l.DEFAULT_INCREMENTAL=f.DEFAULT_INCREMENTAL=h.DEFAULT_INCREMENTAL=!0,l.PURE_INCREMENTAL=!y.randomize,h.DEFAULT_UNIFORM_LEAF_NODE_SIZES=y.uniformNodeDimensions,y.step=="transformed"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!1),y.step=="enforced"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!1),y.step=="cose"&&(l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!1,l.APPLY_LAYOUT=!0),y.step=="all"&&(y.randomize?l.TRANSFORM_ON_CONSTRAINT_HANDLING=!0:l.TRANSFORM_ON_CONSTRAINT_HANDLING=!1,l.ENFORCE_CONSTRAINTS=!0,l.APPLY_LAYOUT=!0),y.fixedNodeConstraint||y.alignmentConstraint||y.relativePlacementConstraint?l.TREE_REDUCTION_ON_INCREMENTAL=!1:l.TREE_REDUCTION_ON_INCREMENTAL=!0;var x=new e,P=x.newGraphManager();return T(P.addRoot(),c.getTopMostNodes(G),x,y),d(x,P,z),O(x,y),x.runLayout(),J},"coseLayout");a.exports={coseLayout:A}},212:(a,t,n)=>{var c=function(){function y(D,F){for(var C=0;C0)if(d){var P=i.getTopMostNodes(C.eles.nodes());if(s=i.connectComponents(G,C.eles,P),s.forEach(function(ot){var et=ot.boundingBox();m.push({x:et.x1+et.w/2,y:et.y1+et.h/2})}),C.randomize&&s.forEach(function(ot){C.eles=ot,X.push(h(C))}),C.quality=="default"||C.quality=="proof"){var S=G.collection();if(C.tile){var R=new Map,Z=[],tt=[],b=0,_={nodeIndexes:R,xCoords:Z,yCoords:tt},B=[];if(s.forEach(function(ot,et){ot.edges().length==0&&(ot.nodes().forEach(function(yt,Et){S.merge(ot.nodes()[Et]),yt.isParent()||(_.nodeIndexes.set(ot.nodes()[Et].id(),b++),_.xCoords.push(ot.nodes()[0].position().x),_.yCoords.push(ot.nodes()[0].position().y))}),B.push(et))}),S.length>1){var M=S.boundingBox();m.push({x:M.x1+M.w/2,y:M.y1+M.h/2}),s.push(S),X.push(_);for(var U=B.length-1;U>=0;U--)s.splice(B[U],1),X.splice(B[U],1),m.splice(B[U],1)}}s.forEach(function(ot,et){C.eles=ot,J.push(l(C,X[et])),i.relocateComponent(m[et],J[et],C)})}else s.forEach(function(ot,et){i.relocateComponent(m[et],X[et],C)});var H=new Set;if(s.length>1){var K=[],ht=z.filter(function(ot){return ot.css("display")=="none"});s.forEach(function(ot,et){var yt=void 0;if(C.quality=="draft"&&(yt=X[et].nodeIndexes),ot.nodes().not(ht).length>0){var Et={};Et.edges=[],Et.nodes=[];var Dt=void 0;ot.nodes().not(ht).forEach(function(Tt){if(C.quality=="draft")if(!Tt.isParent())Dt=yt.get(Tt.id()),Et.nodes.push({x:X[et].xCoords[Dt]-Tt.boundingbox().w/2,y:X[et].yCoords[Dt]-Tt.boundingbox().h/2,width:Tt.boundingbox().w,height:Tt.boundingbox().h});else{var At=i.calcBoundingBox(Tt,X[et].xCoords,X[et].yCoords,yt);Et.nodes.push({x:At.topLeftX,y:At.topLeftY,width:At.width,height:At.height})}else J[et][Tt.id()]&&Et.nodes.push({x:J[et][Tt.id()].getLeft(),y:J[et][Tt.id()].getTop(),width:J[et][Tt.id()].getWidth(),height:J[et][Tt.id()].getHeight()})}),ot.edges().forEach(function(Tt){var At=Tt.source(),xt=Tt.target();if(At.css("display")!="none"&&xt.css("display")!="none")if(C.quality=="draft"){var It=yt.get(At.id()),zt=yt.get(xt.id()),Yt=[],Ht=[];if(At.isParent()){var Pt=i.calcBoundingBox(At,X[et].xCoords,X[et].yCoords,yt);Yt.push(Pt.topLeftX+Pt.width/2),Yt.push(Pt.topLeftY+Pt.height/2)}else Yt.push(X[et].xCoords[It]),Yt.push(X[et].yCoords[It]);if(xt.isParent()){var Y=i.calcBoundingBox(xt,X[et].xCoords,X[et].yCoords,yt);Ht.push(Y.topLeftX+Y.width/2),Ht.push(Y.topLeftY+Y.height/2)}else Ht.push(X[et].xCoords[zt]),Ht.push(X[et].yCoords[zt]);Et.edges.push({startX:Yt[0],startY:Yt[1],endX:Ht[0],endY:Ht[1]})}else J[et][At.id()]&&J[et][xt.id()]&&Et.edges.push({startX:J[et][At.id()].getCenterX(),startY:J[et][At.id()].getCenterY(),endX:J[et][xt.id()].getCenterX(),endY:J[et][xt.id()].getCenterY()})}),Et.nodes.length>0&&(K.push(Et),H.add(et))}});var Lt=T.packComponents(K,C.randomize).shifts;if(C.quality=="draft")X.forEach(function(ot,et){var yt=ot.xCoords.map(function(Dt){return Dt+Lt[et].dx}),Et=ot.yCoords.map(function(Dt){return Dt+Lt[et].dy});ot.xCoords=yt,ot.yCoords=Et});else{var bt=0;H.forEach(function(ot){Object.keys(J[ot]).forEach(function(et){var yt=J[ot][et];yt.setCenter(yt.getCenterX()+Lt[bt].dx,yt.getCenterY()+Lt[bt].dy)}),bt++})}}}else{var O=C.eles.boundingBox();if(m.push({x:O.x1+O.w/2,y:O.y1+O.h/2}),C.randomize){var x=h(C);X.push(x)}C.quality=="default"||C.quality=="proof"?(J.push(l(C,X[0])),i.relocateComponent(m[0],J[0],C)):i.relocateComponent(m[0],X[0],C)}var Q=L(function(et,yt){if(C.quality=="default"||C.quality=="proof"){typeof et=="number"&&(et=yt);var Et=void 0,Dt=void 0,Tt=et.data("id");return J.forEach(function(xt){Tt in xt&&(Et={x:xt[Tt].getRect().getCenterX(),y:xt[Tt].getRect().getCenterY()},Dt=xt[Tt])}),C.nodeDimensionsIncludeLabels&&(Dt.labelWidth&&(Dt.labelPosHorizontal=="left"?Et.x+=Dt.labelWidth/2:Dt.labelPosHorizontal=="right"&&(Et.x-=Dt.labelWidth/2)),Dt.labelHeight&&(Dt.labelPosVertical=="top"?Et.y+=Dt.labelHeight/2:Dt.labelPosVertical=="bottom"&&(Et.y-=Dt.labelHeight/2))),Et==null&&(Et={x:et.position("x"),y:et.position("y")}),{x:Et.x,y:Et.y}}else{var At=void 0;return X.forEach(function(xt){var It=xt.nodeIndexes.get(et.id());It!=null&&(At={x:xt.xCoords[It],y:xt.yCoords[It]})}),At==null&&(At={x:et.position("x"),y:et.position("y")}),{x:At.x,y:At.y}}},"getPositions");if(C.quality=="default"||C.quality=="proof"||C.randomize){var Xt=i.calcParentsWithoutChildren(G,z),wt=z.filter(function(ot){return ot.css("display")=="none"});C.eles=z.not(wt),z.nodes().not(":parent").not(wt).layoutPositions(F,C,Q),Xt.length>0&&Xt.forEach(function(ot){ot.position(Q(ot))})}else console.log("If randomize option is set to false, then quality option must be 'default' or 'proof'.")},"run")}]),y}();a.exports=v},657:(a,t,n)=>{var c=n(548),e=n(140).layoutBase.Matrix,p=n(140).layoutBase.SVD,i=L(function(h){var f=h.cy,l=h.eles,A=l.nodes(),v=l.nodes(":parent"),y=new Map,D=new Map,F=new Map,C=[],G=[],z=[],X=[],rt=[],I=[],J=[],s=[],m=void 0,g=void 0,T=1e8,d=1e-9,O=h.piTol,x=h.samplingType,P=h.nodeSeparation,S=void 0,R=L(function(){for(var V=0,$=0,k=!1;$=gt;){q=j[gt++];for(var st=C[q],nt=0;ntit&&(it=rt[at],pt=at)}return pt},"BFS"),tt=L(function(V){var $=void 0;if(V){$=Math.floor(Math.random()*g),m=$;for(var j=0;j=1)break;it=ut}for(var st=0;st=1)break;it=ut}for(var dt=0;dt0&&($.isParent()?C[V].push(F.get($.id())):C[V].push($.id()))})});var Xt=L(function(V){var $=D.get(V),k=void 0;y.get(V).forEach(function(j){f.getElementById(j).isParent()?k=F.get(j):k=j,C[$].push(k),C[D.get(k)].push(V)})},"_loop"),wt=!0,ot=!1,et=void 0;try{for(var yt=y.keys()[Symbol.iterator](),Et;!(wt=(Et=yt.next()).done);wt=!0){var Dt=Et.value;Xt(Dt)}}catch(W){ot=!0,et=W}finally{try{!wt&&yt.return&&yt.return()}finally{if(ot)throw et}}g=D.size;var Tt=void 0;if(g>2){S=g{var c=n(212),e=L(function(i){i&&i("layout","fcose",c)},"register");typeof cytoscape<"u"&&e(cytoscape),a.exports=e},140:a=>{a.exports=E}},N={};function u(a){var t=N[a];if(t!==void 0)return t.exports;var n=N[a]={exports:{}};return w[a](n,n.exports,u),n.exports}L(u,"__webpack_require__");var o=u(579);return o})()})});var Ce={L:"left",R:"right",T:"top",B:"bottom"},Me={L:L(E=>`${E},${E/2} 0,${E} 0,0`,"L"),R:L(E=>`0,${E/2} ${E},0 ${E},${E}`,"R"),T:L(E=>`0,0 ${E},0 ${E/2},${E}`,"T"),B:L(E=>`${E/2},0 ${E},${E} 0,${E}`,"B")},se={L:L((E,w)=>E-w+2,"L"),R:L((E,w)=>E-2,"R"),T:L((E,w)=>E-w+2,"T"),B:L((E,w)=>E-2,"B")},tr=L(function(E){return Vt(E)?E==="L"?"R":"L":E==="T"?"B":"T"},"getOppositeArchitectureDirection"),we=L(function(E){let w=E;return w==="L"||w==="R"||w==="T"||w==="B"},"isArchitectureDirection"),Vt=L(function(E){let w=E;return w==="L"||w==="R"},"isArchitectureDirectionX"),Jt=L(function(E){let w=E;return w==="T"||w==="B"},"isArchitectureDirectionY"),ve=L(function(E,w){let N=Vt(E)&&Jt(w),u=Jt(E)&&Vt(w);return N||u},"isArchitectureDirectionXY"),er=L(function(E){let w=E[0],N=E[1],u=Vt(w)&&Jt(N),o=Jt(w)&&Vt(N);return u||o},"isArchitecturePairXY"),mr=L(function(E){return E!=="LL"&&E!=="RR"&&E!=="TT"&&E!=="BB"},"isValidArchitectureDirectionPair"),he=L(function(E,w){let N=`${E}${w}`;return mr(N)?N:void 0},"getArchitectureDirectionPair"),rr=L(function([E,w],N){let u=N[0],o=N[1];return Vt(u)?Jt(o)?[E+(u==="L"?-1:1),w+(o==="T"?1:-1)]:[E+(u==="L"?-1:1),w]:Vt(o)?[E+(o==="L"?1:-1),w+(u==="T"?1:-1)]:[E,w+(u==="T"?1:-1)]},"shiftPositionByArchitectureDirectionPair"),ir=L(function(E){return E==="LT"||E==="TL"?[1,1]:E==="BL"||E==="LB"?[1,-1]:E==="BR"||E==="RB"?[-1,-1]:[-1,1]},"getArchitectureDirectionXYFactors"),nr=L(function(E){return E.type==="service"},"isArchitectureService"),ar=L(function(E){return E.type==="junction"},"isArchitectureJunction"),ye=L(E=>E.data(),"edgeData"),Qt=L(E=>E.data(),"nodeData");var or=He.architecture,vt=new je(()=>({nodes:{},groups:{},edges:[],registeredIds:{},config:or,dataStructures:void 0,elements:{}})),Er=L(()=>{vt.reset(),Ve()},"clear"),Tr=L(function({id:E,icon:w,in:N,title:u,iconText:o}){if(vt.records.registeredIds[E]!==void 0)throw new Error(`The service id [${E}] is already in use by another ${vt.records.registeredIds[E]}`);if(N!==void 0){if(E===N)throw new Error(`The service [${E}] cannot be placed within itself`);if(vt.records.registeredIds[N]===void 0)throw new Error(`The service [${E}]'s parent does not exist. Please make sure the parent is created before this service`);if(vt.records.registeredIds[N]==="node")throw new Error(`The service [${E}]'s parent is not a group`)}vt.records.registeredIds[E]="node",vt.records.nodes[E]={id:E,type:"service",icon:w,iconText:o,title:u,edges:[],in:N}},"addService"),Ar=L(()=>Object.values(vt.records.nodes).filter(nr),"getServices"),Nr=L(function({id:E,in:w}){vt.records.registeredIds[E]="node",vt.records.nodes[E]={id:E,type:"junction",edges:[],in:w}},"addJunction"),Lr=L(()=>Object.values(vt.records.nodes).filter(ar),"getJunctions"),Dr=L(()=>Object.values(vt.records.nodes),"getNodes"),Cr=L(E=>vt.records.nodes[E],"getNode"),Mr=L(function({id:E,icon:w,in:N,title:u}){if(vt.records.registeredIds[E]!==void 0)throw new Error(`The group id [${E}] is already in use by another ${vt.records.registeredIds[E]}`);if(N!==void 0){if(E===N)throw new Error(`The group [${E}] cannot be placed within itself`);if(vt.records.registeredIds[N]===void 0)throw new Error(`The group [${E}]'s parent does not exist. Please make sure the parent is created before this group`);if(vt.records.registeredIds[N]==="node")throw new Error(`The group [${E}]'s parent is not a group`)}vt.records.registeredIds[E]="group",vt.records.groups[E]={id:E,icon:w,title:u,in:N}},"addGroup"),wr=L(()=>Object.values(vt.records.groups),"getGroups"),xr=L(function({lhsId:E,rhsId:w,lhsDir:N,rhsDir:u,lhsInto:o,rhsInto:a,lhsGroup:t,rhsGroup:n,title:c}){if(!we(N))throw new Error(`Invalid direction given for left hand side of edge ${E}--${w}. Expected (L,R,T,B) got ${N}`);if(!we(u))throw new Error(`Invalid direction given for right hand side of edge ${E}--${w}. Expected (L,R,T,B) got ${u}`);if(vt.records.nodes[E]===void 0&&vt.records.groups[E]===void 0)throw new Error(`The left-hand id [${E}] does not yet exist. Please create the service/group before declaring an edge to it.`);if(vt.records.nodes[w]===void 0&&vt.records.groups[E]===void 0)throw new Error(`The right-hand id [${w}] does not yet exist. Please create the service/group before declaring an edge to it.`);let e=vt.records.nodes[E].in,p=vt.records.nodes[w].in;if(t&&e&&p&&e==p)throw new Error(`The left-hand id [${E}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);if(n&&e&&p&&e==p)throw new Error(`The right-hand id [${w}] is modified to traverse the group boundary, but the edge does not pass through two groups.`);let i={lhsId:E,lhsDir:N,lhsInto:o,lhsGroup:t,rhsId:w,rhsDir:u,rhsInto:a,rhsGroup:n,title:c};vt.records.edges.push(i),vt.records.nodes[E]&&vt.records.nodes[w]&&(vt.records.nodes[E].edges.push(vt.records.edges[vt.records.edges.length-1]),vt.records.nodes[w].edges.push(vt.records.edges[vt.records.edges.length-1]))},"addEdge"),Or=L(()=>vt.records.edges,"getEdges"),Rr=L(()=>{if(vt.records.dataStructures===void 0){let E=Object.entries(vt.records.nodes).reduce((t,[n,c])=>(t[n]=c.edges.reduce((e,p)=>{if(p.lhsId===n){let i=he(p.lhsDir,p.rhsDir);i&&(e[i]=p.rhsId)}else{let i=he(p.rhsDir,p.lhsDir);i&&(e[i]=p.lhsId)}return e},{}),t),{}),w=Object.keys(E)[0],N={[w]:1},u=Object.keys(E).reduce((t,n)=>n===w?t:{...t,[n]:1},{}),o=L(t=>{let n={[t]:[0,0]},c=[t];for(;c.length>0;){let e=c.shift();if(e){N[e]=1,delete u[e];let p=E[e],[i,r]=n[e];Object.entries(p).forEach(([h,f])=>{N[f]||(n[f]=rr([i,r],h),c.push(f))})}}return n},"BFS"),a=[o(w)];for(;Object.keys(u).length>0;)a.push(o(Object.keys(u)[0]));vt.records.dataStructures={adjList:E,spatialMaps:a}}return vt.records.dataStructures},"getDataStructures"),Ir=L((E,w)=>{vt.records.elements[E]=w},"setElementForId"),Sr=L(E=>vt.records.elements[E],"getElementById"),_t={clear:Er,setDiagramTitle:Ze,getDiagramTitle:Je,setAccTitle:ze,getAccTitle:Be,setAccDescription:$e,getAccDescription:ke,addService:Tr,getServices:Ar,addJunction:Nr,getJunctions:Lr,getNodes:Dr,getNode:Cr,addGroup:Mr,getGroups:wr,addEdge:xr,getEdges:Or,setElementForId:Ir,getElementById:Sr,getDataStructures:Rr};function Gt(E){let w=ae().architecture;return w?.[E]?w[E]:or[E]}L(Gt,"getConfigField");var br=L((E,w)=>{Ke(E,w),E.groups.map(w.addGroup),E.services.map(N=>w.addService({...N,type:"service"})),E.junctions.map(N=>w.addJunction({...N,type:"junction"})),E.edges.map(w.addEdge)},"populateDb"),sr={parse:L(async E=>{let w=await Qe("architecture",E);ge.debug(w),br(w,_t)},"parse")};var Fr=L(E=>` .edge { stroke-width: ${E.archEdgeWidth}; stroke: ${E.archEdgeColor}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/blockDiagram-MYUW6R5Q.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/blockDiagram-56QMO3LT.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/blockDiagram-MYUW6R5Q.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/blockDiagram-56QMO3LT.mjs index 3b622f01c..65e535379 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/blockDiagram-MYUW6R5Q.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/blockDiagram-56QMO3LT.mjs @@ -1,4 +1,4 @@ -import{a as Wt}from"./chunk-S67DUUA5.mjs";import{a as Ft}from"./chunk-LM6QDVU5.mjs";import{c as Mt,d as nt}from"./chunk-EXDBZKZY.mjs";import{a as Yt}from"./chunk-ZN7TASNU.mjs";import{d as zt,m as tt,o as et}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{A as q,Da as Rt,F as bt,G as P,Ha as At,L as Nt,M as It,P as Ot,X as B,b as k,ga as C,l as Tt,m as Ct}from"./chunk-ITX3UAHE.mjs";import{e as Pt}from"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as c}from"./chunk-GTKDMUJJ.mjs";var yt=function(){var e=c(function(T,y,d,f){for(d=d||{},f=T.length;f--;d[T[f]]=y);return d},"o"),t=[1,7],s=[1,13],n=[1,14],i=[1,15],r=[1,19],a=[1,16],l=[1,17],o=[1,18],u=[8,30],g=[8,21,28,29,30,31,32,40,44,47],x=[1,23],m=[1,24],b=[8,15,16,21,28,29,30,31,32,40,44,47],L=[8,15,16,21,27,28,29,30,31,32,40,44,47],_=[1,49],S={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(function(y,d,f,w,E,h,Y){var p=h.length-1;switch(E){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",h[p-1]),w.setHierarchy(h[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:w.getLogger().debug("Rule: link: ",h[p],y),this.$={edgeTypeStr:h[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:let R=parseInt(h[p]),Z=w.generateId();this.$={id:Z,type:"space",label:"",width:R,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);let V=w.edgeStrToEdgeData(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",directions:h[p].directions,arrowTypeEnd:V,arrowTypeStart:"arrow_open"},{id:h[p].id,label:h[p].label,type:w.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:w.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:w.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]);let Bt=w.generateId();this.$={...h[p-2],type:"composite",children:h[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);let at=w.generateId();this.$={id:at,type:"composite",label:"",children:h[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:o},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:s,29:n,31:i,32:r,40:a,44:l,47:o}),e(g,[2,16],{14:22,15:x,16:m}),e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(b,[2,25],{27:[1,25]}),e(g,[2,26]),{19:26,26:12,32:r},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(L,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,32:r},{32:[2,14]},{17:[1,36]},e(b,[2,24]),{11:37,13:4,14:22,15:x,16:m,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(L,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(g,[2,28]),e(g,[2,35]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),{37:[1,47]},{34:48,35:_},{15:[1,50]},e(g,[2,27]),e(L,[2,33]),{39:[1,51]},{34:52,35:_,39:[2,31]},{32:[2,15]},e(L,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(function(y,d){if(d.recoverable)this.trace(y);else{var f=new Error(y);throw f.hash=d,f}},"parseError"),parse:c(function(y){var d=this,f=[0],w=[],E=[null],h=[],Y=this.table,p="",R=0,Z=0,V=0,Bt=2,at=1,_e=h.slice.call(arguments,1),z=Object.create(this.lexer),J={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(J.yy[dt]=this.yy[dt]);z.setInput(y,J.yy),J.yy.lexer=z,J.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var ut=z.yylloc;h.push(ut);var De=z.options&&z.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gr(H){f.length=f.length-2*H,E.length=E.length-H,h.length=h.length-H}c(Gr,"popStack");function Be(){var H;return H=w.pop()||z.lex()||at,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=d.symbols_[H]||H),H}c(Be,"lex");for(var F,pt,Q,K,Zr,ft,$={},st,G,vt,it;;){if(Q=f[f.length-1],this.defaultActions[Q]?K=this.defaultActions[Q]:((F===null||typeof F>"u")&&(F=Be()),K=Y[Q]&&Y[Q][F]),typeof K>"u"||!K.length||!K[0]){var xt="";it=[];for(st in Y[Q])this.terminals_[st]&&st>Bt&&it.push("'"+this.terminals_[st]+"'");z.showPosition?xt="Parse error on line "+(R+1)+`: +import{a as Wt}from"./chunk-S67DUUA5.mjs";import{a as Ft}from"./chunk-LM6QDVU5.mjs";import{c as Mt,d as nt}from"./chunk-AFC6EC46.mjs";import{a as Yt}from"./chunk-ZN7TASNU.mjs";import{d as zt,m as tt,o as et}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{A as q,Da as Rt,F as bt,G as P,Ha as At,L as Nt,M as It,P as Ot,X as B,b as k,ga as C,l as Tt,m as Ct}from"./chunk-OR2G2HG5.mjs";import{e as Pt}from"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as c}from"./chunk-GTKDMUJJ.mjs";var yt=function(){var e=c(function(T,y,d,f){for(d=d||{},f=T.length;f--;d[T[f]]=y);return d},"o"),t=[1,7],s=[1,13],n=[1,14],i=[1,15],r=[1,19],a=[1,16],l=[1,17],o=[1,18],u=[8,30],g=[8,21,28,29,30,31,32,40,44,47],x=[1,23],m=[1,24],b=[8,15,16,21,28,29,30,31,32,40,44,47],L=[8,15,16,21,27,28,29,30,31,32,40,44,47],_=[1,49],S={trace:c(function(){},"trace"),yy:{},symbols_:{error:2,spaceLines:3,SPACELINE:4,NL:5,separator:6,SPACE:7,EOF:8,start:9,BLOCK_DIAGRAM_KEY:10,document:11,stop:12,statement:13,link:14,LINK:15,START_LINK:16,LINK_LABEL:17,STR:18,nodeStatement:19,columnsStatement:20,SPACE_BLOCK:21,blockStatement:22,classDefStatement:23,cssClassStatement:24,styleStatement:25,node:26,SIZE:27,COLUMNS:28,"id-block":29,end:30,block:31,NODE_ID:32,nodeShapeNLabel:33,dirList:34,DIR:35,NODE_DSTART:36,NODE_DEND:37,BLOCK_ARROW_START:38,BLOCK_ARROW_END:39,classDef:40,CLASSDEF_ID:41,CLASSDEF_STYLEOPTS:42,DEFAULT:43,class:44,CLASSENTITY_IDS:45,STYLECLASS:46,style:47,STYLE_ENTITY_IDS:48,STYLE_DEFINITION_DATA:49,$accept:0,$end:1},terminals_:{2:"error",4:"SPACELINE",5:"NL",7:"SPACE",8:"EOF",10:"BLOCK_DIAGRAM_KEY",15:"LINK",16:"START_LINK",17:"LINK_LABEL",18:"STR",21:"SPACE_BLOCK",27:"SIZE",28:"COLUMNS",29:"id-block",30:"end",31:"block",32:"NODE_ID",35:"DIR",36:"NODE_DSTART",37:"NODE_DEND",38:"BLOCK_ARROW_START",39:"BLOCK_ARROW_END",40:"classDef",41:"CLASSDEF_ID",42:"CLASSDEF_STYLEOPTS",43:"DEFAULT",44:"class",45:"CLASSENTITY_IDS",46:"STYLECLASS",47:"style",48:"STYLE_ENTITY_IDS",49:"STYLE_DEFINITION_DATA"},productions_:[0,[3,1],[3,2],[3,2],[6,1],[6,1],[6,1],[9,3],[12,1],[12,1],[12,2],[12,2],[11,1],[11,2],[14,1],[14,4],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[13,1],[19,3],[19,2],[19,1],[20,1],[22,4],[22,3],[26,1],[26,2],[34,1],[34,2],[33,3],[33,4],[23,3],[23,3],[24,3],[25,3]],performAction:c(function(y,d,f,w,E,h,Y){var p=h.length-1;switch(E){case 4:w.getLogger().debug("Rule: separator (NL) ");break;case 5:w.getLogger().debug("Rule: separator (Space) ");break;case 6:w.getLogger().debug("Rule: separator (EOF) ");break;case 7:w.getLogger().debug("Rule: hierarchy: ",h[p-1]),w.setHierarchy(h[p-1]);break;case 8:w.getLogger().debug("Stop NL ");break;case 9:w.getLogger().debug("Stop EOF ");break;case 10:w.getLogger().debug("Stop NL2 ");break;case 11:w.getLogger().debug("Stop EOF2 ");break;case 12:w.getLogger().debug("Rule: statement: ",h[p]),typeof h[p].length=="number"?this.$=h[p]:this.$=[h[p]];break;case 13:w.getLogger().debug("Rule: statement #2: ",h[p-1]),this.$=[h[p-1]].concat(h[p]);break;case 14:w.getLogger().debug("Rule: link: ",h[p],y),this.$={edgeTypeStr:h[p],label:""};break;case 15:w.getLogger().debug("Rule: LABEL link: ",h[p-3],h[p-1],h[p]),this.$={edgeTypeStr:h[p],label:h[p-1]};break;case 18:let R=parseInt(h[p]),Z=w.generateId();this.$={id:Z,type:"space",label:"",width:R,children:[]};break;case 23:w.getLogger().debug("Rule: (nodeStatement link node) ",h[p-2],h[p-1],h[p]," typestr: ",h[p-1].edgeTypeStr);let V=w.edgeStrToEdgeData(h[p-1].edgeTypeStr);this.$=[{id:h[p-2].id,label:h[p-2].label,type:h[p-2].type,directions:h[p-2].directions},{id:h[p-2].id+"-"+h[p].id,start:h[p-2].id,end:h[p].id,label:h[p-1].label,type:"edge",directions:h[p].directions,arrowTypeEnd:V,arrowTypeStart:"arrow_open"},{id:h[p].id,label:h[p].label,type:w.typeStr2Type(h[p].typeStr),directions:h[p].directions}];break;case 24:w.getLogger().debug("Rule: nodeStatement (abc88 node size) ",h[p-1],h[p]),this.$={id:h[p-1].id,label:h[p-1].label,type:w.typeStr2Type(h[p-1].typeStr),directions:h[p-1].directions,widthInColumns:parseInt(h[p],10)};break;case 25:w.getLogger().debug("Rule: nodeStatement (node) ",h[p]),this.$={id:h[p].id,label:h[p].label,type:w.typeStr2Type(h[p].typeStr),directions:h[p].directions,widthInColumns:1};break;case 26:w.getLogger().debug("APA123",this?this:"na"),w.getLogger().debug("COLUMNS: ",h[p]),this.$={type:"column-setting",columns:h[p]==="auto"?-1:parseInt(h[p])};break;case 27:w.getLogger().debug("Rule: id-block statement : ",h[p-2],h[p-1]);let Bt=w.generateId();this.$={...h[p-2],type:"composite",children:h[p-1]};break;case 28:w.getLogger().debug("Rule: blockStatement : ",h[p-2],h[p-1],h[p]);let at=w.generateId();this.$={id:at,type:"composite",label:"",children:h[p-1]};break;case 29:w.getLogger().debug("Rule: node (NODE_ID separator): ",h[p]),this.$={id:h[p]};break;case 30:w.getLogger().debug("Rule: node (NODE_ID nodeShapeNLabel separator): ",h[p-1],h[p]),this.$={id:h[p-1],label:h[p].label,typeStr:h[p].typeStr,directions:h[p].directions};break;case 31:w.getLogger().debug("Rule: dirList: ",h[p]),this.$=[h[p]];break;case 32:w.getLogger().debug("Rule: dirList: ",h[p-1],h[p]),this.$=[h[p-1]].concat(h[p]);break;case 33:w.getLogger().debug("Rule: nodeShapeNLabel: ",h[p-2],h[p-1],h[p]),this.$={typeStr:h[p-2]+h[p],label:h[p-1]};break;case 34:w.getLogger().debug("Rule: BLOCK_ARROW nodeShapeNLabel: ",h[p-3],h[p-2]," #3:",h[p-1],h[p]),this.$={typeStr:h[p-3]+h[p],label:h[p-2],directions:h[p-1]};break;case 35:case 36:this.$={type:"classDef",id:h[p-1].trim(),css:h[p].trim()};break;case 37:this.$={type:"applyClass",id:h[p-1].trim(),styleClass:h[p].trim()};break;case 38:this.$={type:"applyStyles",id:h[p-1].trim(),stylesStr:h[p].trim()};break}},"anonymous"),table:[{9:1,10:[1,2]},{1:[3]},{11:3,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:o},{8:[1,20]},e(u,[2,12],{13:4,19:5,20:6,22:8,23:9,24:10,25:11,26:12,11:21,21:t,28:s,29:n,31:i,32:r,40:a,44:l,47:o}),e(g,[2,16],{14:22,15:x,16:m}),e(g,[2,17]),e(g,[2,18]),e(g,[2,19]),e(g,[2,20]),e(g,[2,21]),e(g,[2,22]),e(b,[2,25],{27:[1,25]}),e(g,[2,26]),{19:26,26:12,32:r},{11:27,13:4,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:o},{41:[1,28],43:[1,29]},{45:[1,30]},{48:[1,31]},e(L,[2,29],{33:32,36:[1,33],38:[1,34]}),{1:[2,7]},e(u,[2,13]),{26:35,32:r},{32:[2,14]},{17:[1,36]},e(b,[2,24]),{11:37,13:4,14:22,15:x,16:m,19:5,20:6,21:t,22:8,23:9,24:10,25:11,26:12,28:s,29:n,31:i,32:r,40:a,44:l,47:o},{30:[1,38]},{42:[1,39]},{42:[1,40]},{46:[1,41]},{49:[1,42]},e(L,[2,30]),{18:[1,43]},{18:[1,44]},e(b,[2,23]),{18:[1,45]},{30:[1,46]},e(g,[2,28]),e(g,[2,35]),e(g,[2,36]),e(g,[2,37]),e(g,[2,38]),{37:[1,47]},{34:48,35:_},{15:[1,50]},e(g,[2,27]),e(L,[2,33]),{39:[1,51]},{34:52,35:_,39:[2,31]},{32:[2,15]},e(L,[2,34]),{39:[2,32]}],defaultActions:{20:[2,7],23:[2,14],50:[2,15],52:[2,32]},parseError:c(function(y,d){if(d.recoverable)this.trace(y);else{var f=new Error(y);throw f.hash=d,f}},"parseError"),parse:c(function(y){var d=this,f=[0],w=[],E=[null],h=[],Y=this.table,p="",R=0,Z=0,V=0,Bt=2,at=1,_e=h.slice.call(arguments,1),z=Object.create(this.lexer),J={yy:{}};for(var dt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,dt)&&(J.yy[dt]=this.yy[dt]);z.setInput(y,J.yy),J.yy.lexer=z,J.yy.parser=this,typeof z.yylloc>"u"&&(z.yylloc={});var ut=z.yylloc;h.push(ut);var De=z.options&&z.options.ranges;typeof J.yy.parseError=="function"?this.parseError=J.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gr(H){f.length=f.length-2*H,E.length=E.length-H,h.length=h.length-H}c(Gr,"popStack");function Be(){var H;return H=w.pop()||z.lex()||at,typeof H!="number"&&(H instanceof Array&&(w=H,H=w.pop()),H=d.symbols_[H]||H),H}c(Be,"lex");for(var F,pt,Q,K,Zr,ft,$={},st,G,vt,it;;){if(Q=f[f.length-1],this.defaultActions[Q]?K=this.defaultActions[Q]:((F===null||typeof F>"u")&&(F=Be()),K=Y[Q]&&Y[Q][F]),typeof K>"u"||!K.length||!K[0]){var xt="";it=[];for(st in Y[Q])this.terminals_[st]&&st>Bt&&it.push("'"+this.terminals_[st]+"'");z.showPosition?xt="Parse error on line "+(R+1)+`: `+z.showPosition()+` Expecting `+it.join(", ")+", got '"+(this.terminals_[F]||F)+"'":xt="Parse error on line "+(R+1)+": Unexpected "+(F==at?"end of input":"'"+(this.terminals_[F]||F)+"'"),this.parseError(xt,{text:z.match,token:this.terminals_[F]||F,line:z.yylineno,loc:ut,expected:it})}if(K[0]instanceof Array&&K.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+F);switch(K[0]){case 1:f.push(F),E.push(z.yytext),h.push(z.yylloc),f.push(K[1]),F=null,pt?(F=pt,pt=null):(Z=z.yyleng,p=z.yytext,R=z.yylineno,ut=z.yylloc,V>0&&V--);break;case 2:if(G=this.productions_[K[1]][1],$.$=E[E.length-G],$._$={first_line:h[h.length-(G||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(G||1)].first_column,last_column:h[h.length-1].last_column},De&&($._$.range=[h[h.length-(G||1)].range[0],h[h.length-1].range[1]]),ft=this.performAction.apply($,[p,Z,R,J.yy,K[1],E,h].concat(_e)),typeof ft<"u")return ft;G&&(f=f.slice(0,-1*G*2),E=E.slice(0,-1*G),h=h.slice(0,-1*G)),f.push(this.productions_[K[1]][0]),E.push($.$),h.push($._$),vt=Y[f[f.length-2]][f[f.length-1]],f.push(vt);break;case 3:return!0}}return!0},"parse")},I=function(){var T={EOF:1,parseError:c(function(d,f){if(this.yy.parser)this.yy.parser.parseError(d,f);else throw new Error(d)},"parseError"),setInput:c(function(y,d){return this.yy=d||this.yy||{},this._input=y,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:c(function(){var y=this._input[0];this.yytext+=y,this.yyleng++,this.offset++,this.match+=y,this.matched+=y;var d=y.match(/(?:\r\n?|\n).*/g);return d?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),y},"input"),unput:c(function(y){var d=y.length,f=y.split(/(?:\r\n?|\n)/g);this._input=y+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-d),this.offset-=d;var w=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),f.length-1&&(this.yylineno-=f.length-1);var E=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:f?(f.length===w.length?this.yylloc.first_column:0)+w[w.length-f.length].length-f[0].length:this.yylloc.first_column-d},this.options.ranges&&(this.yylloc.range=[E[0],E[0]+this.yyleng-d]),this.yyleng=this.yytext.length,this},"unput"),more:c(function(){return this._more=!0,this},"more"),reject:c(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:c(function(y){this.unput(this.match.slice(y))},"less"),pastInput:c(function(){var y=this.matched.substr(0,this.matched.length-this.match.length);return(y.length>20?"...":"")+y.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:c(function(){var y=this.match;return y.length<20&&(y+=this._input.substr(0,20-y.length)),(y.substr(0,20)+(y.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:c(function(){var y=this.pastInput(),d=new Array(y.length+1).join("-");return y+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/c4Diagram-AKI3UION.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/c4Diagram-ET6I6IV7.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/c4Diagram-AKI3UION.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/c4Diagram-ET6I6IV7.mjs index d9014cba7..383eb26cb 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/c4Diagram-AKI3UION.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/c4Diagram-ET6I6IV7.mjs @@ -1,4 +1,4 @@ -import{a as ke,f as Ee}from"./chunk-BERL53GW.mjs";import{g as Ae,h as ie,i as wt}from"./chunk-2XY5F2HY.mjs";import{a as Ve}from"./chunk-TI4EEUUG.mjs";import{F as ne,L as St,M as be,Q as ge,R as xe,S as me,T as _e,X as vt,b as ee,ga as Pt,k as ye}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as y,e as Fe}from"./chunk-GTKDMUJJ.mjs";var Mt=function(){var e=y(function(xt,m,_,k){for(_=_||{},k=xt.length;k--;_[xt[k]]=m);return _},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],n=[1,28],a=[1,63],r=[1,64],i=[1,65],u=[1,66],d=[1,67],b=[1,68],p=[1,69],E=[1,29],T=[1,30],D=[1,31],P=[1,32],B=[1,33],j=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],nt=[1,44],it=[1,45],rt=[1,46],at=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],bt=[1,59],gt=[1,60],Ot=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],v=[1,84],w=[1,85],O=[12,14,42],he=[12,14,33,42],Yt=[12,14,33,42,76,77,79,80],kt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(m,_,k,g,R,h,Dt){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{14:[1,74]},e(Ot,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:r,37:i,38:u,39:d,40:b,41:p,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt}),e(Ot,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ot,[2,36],{12:[1,77]}),e(Rt,[2,19]),e(Rt,[2,20]),{25:[1,78]},{27:[1,79]},e(Rt,[2,23]),{35:80,75:81,76:A,77:C,79:v,80:w},{35:86,75:81,76:A,77:C,79:v,80:w},{35:87,75:81,76:A,77:C,79:v,80:w},{35:88,75:81,76:A,77:C,79:v,80:w},{35:89,75:81,76:A,77:C,79:v,80:w},{35:90,75:81,76:A,77:C,79:v,80:w},{35:91,75:81,76:A,77:C,79:v,80:w},{35:92,75:81,76:A,77:C,79:v,80:w},{35:93,75:81,76:A,77:C,79:v,80:w},{35:94,75:81,76:A,77:C,79:v,80:w},{35:95,75:81,76:A,77:C,79:v,80:w},{35:96,75:81,76:A,77:C,79:v,80:w},{35:97,75:81,76:A,77:C,79:v,80:w},{35:98,75:81,76:A,77:C,79:v,80:w},{35:99,75:81,76:A,77:C,79:v,80:w},{35:100,75:81,76:A,77:C,79:v,80:w},{35:101,75:81,76:A,77:C,79:v,80:w},{35:102,75:81,76:A,77:C,79:v,80:w},{35:103,75:81,76:A,77:C,79:v,80:w},{35:104,75:81,76:A,77:C,79:v,80:w},e(O,[2,59]),{35:105,75:81,76:A,77:C,79:v,80:w},{35:106,75:81,76:A,77:C,79:v,80:w},{35:107,75:81,76:A,77:C,79:v,80:w},{35:108,75:81,76:A,77:C,79:v,80:w},{35:109,75:81,76:A,77:C,79:v,80:w},{35:110,75:81,76:A,77:C,79:v,80:w},{35:111,75:81,76:A,77:C,79:v,80:w},{35:112,75:81,76:A,77:C,79:v,80:w},{35:113,75:81,76:A,77:C,79:v,80:w},{35:114,75:81,76:A,77:C,79:v,80:w},{35:115,75:81,76:A,77:C,79:v,80:w},{20:116,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:v,80:w},{35:120,75:81,76:A,77:C,79:v,80:w},{35:121,75:81,76:A,77:C,79:v,80:w},{35:122,75:81,76:A,77:C,79:v,80:w},{35:123,75:81,76:A,77:C,79:v,80:w},{35:124,75:81,76:A,77:C,79:v,80:w},{35:125,75:81,76:A,77:C,79:v,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ot,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:n}),e(Ot,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:n,34:a,36:r,37:i,38:u,39:d,40:b,41:p,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt}),e(Rt,[2,21]),e(Rt,[2,22]),e(O,[2,39]),e(he,[2,71],{75:81,35:132,76:A,77:C,79:v,80:w}),e(Yt,[2,73]),{78:[1,133]},e(Yt,[2,75]),e(Yt,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(kt,[2,28]),e(kt,[2,29]),e(kt,[2,30]),e(kt,[2,31]),e(kt,[2,32]),e(kt,[2,33]),e(kt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ot,[2,38]),e(he,[2,72]),e(Yt,[2,74]),e(O,[2,24]),e(O,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(m,_){if(_.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=_,k}},"parseError"),parse:y(function(m){var _=this,k=[0],g=[],R=[null],h=[],Dt=this.table,f="",Et=0,ue=0,de=0,Ye=2,fe=1,Ie=h.slice.call(arguments,1),S=Object.create(this.lexer),At={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(At.yy[Kt]=this.yy[Kt]);S.setInput(m,At.yy),At.yy.lexer=S,At.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var Jt=S.yylloc;h.push(Jt);var je=S.options&&S.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L0(Y){k.length=k.length-2*Y,R.length=R.length-Y,h.length=h.length-Y}y(L0,"popStack");function Ue(){var Y;return Y=g.pop()||S.lex()||fe,typeof Y!="number"&&(Y instanceof Array&&(g=Y,Y=g.pop()),Y=_.symbols_[Y]||Y),Y}y(Ue,"lex");for(var M,Zt,Ct,I,N0,$t,Tt={},It,W,pe,jt;;){if(Ct=k[k.length-1],this.defaultActions[Ct]?I=this.defaultActions[Ct]:((M===null||typeof M>"u")&&(M=Ue()),I=Dt[Ct]&&Dt[Ct][M]),typeof I>"u"||!I.length||!I[0]){var te="";jt=[];for(It in Dt[Ct])this.terminals_[It]&&It>Ye&&jt.push("'"+this.terminals_[It]+"'");S.showPosition?te="Parse error on line "+(Et+1)+`: +import{a as ke,f as Ee}from"./chunk-44WTIFVW.mjs";import{g as Ae,h as ie,i as wt}from"./chunk-UENA7NWE.mjs";import{a as Ve}from"./chunk-TI4EEUUG.mjs";import{F as ne,L as St,M as be,Q as ge,R as xe,S as me,T as _e,X as vt,b as ee,ga as Pt,k as ye}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as y,e as Fe}from"./chunk-GTKDMUJJ.mjs";var Mt=function(){var e=y(function(xt,m,_,k){for(_=_||{},k=xt.length;k--;_[xt[k]]=m);return _},"o"),t=[1,24],s=[1,25],o=[1,26],l=[1,27],n=[1,28],a=[1,63],r=[1,64],i=[1,65],u=[1,66],d=[1,67],b=[1,68],p=[1,69],E=[1,29],T=[1,30],D=[1,31],P=[1,32],B=[1,33],j=[1,34],H=[1,35],q=[1,36],G=[1,37],K=[1,38],J=[1,39],Z=[1,40],$=[1,41],tt=[1,42],et=[1,43],nt=[1,44],it=[1,45],rt=[1,46],at=[1,47],st=[1,48],lt=[1,50],ot=[1,51],ct=[1,52],ht=[1,53],ut=[1,54],dt=[1,55],ft=[1,56],pt=[1,57],yt=[1,58],bt=[1,59],gt=[1,60],Ot=[14,42],Qt=[14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],Rt=[12,14,34,36,37,38,39,40,41,42,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],A=[1,82],C=[1,83],v=[1,84],w=[1,85],O=[12,14,42],he=[12,14,33,42],Yt=[12,14,33,42,76,77,79,80],kt=[12,33],Ht=[34,36,37,38,39,40,41,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74],qt={trace:y(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,direction:5,direction_tb:6,direction_bt:7,direction_rl:8,direction_lr:9,graphConfig:10,C4_CONTEXT:11,NEWLINE:12,statements:13,EOF:14,C4_CONTAINER:15,C4_COMPONENT:16,C4_DYNAMIC:17,C4_DEPLOYMENT:18,otherStatements:19,diagramStatements:20,otherStatement:21,title:22,accDescription:23,acc_title:24,acc_title_value:25,acc_descr:26,acc_descr_value:27,acc_descr_multiline_value:28,boundaryStatement:29,boundaryStartStatement:30,boundaryStopStatement:31,boundaryStart:32,LBRACE:33,ENTERPRISE_BOUNDARY:34,attributes:35,SYSTEM_BOUNDARY:36,BOUNDARY:37,CONTAINER_BOUNDARY:38,NODE:39,NODE_L:40,NODE_R:41,RBRACE:42,diagramStatement:43,PERSON:44,PERSON_EXT:45,SYSTEM:46,SYSTEM_DB:47,SYSTEM_QUEUE:48,SYSTEM_EXT:49,SYSTEM_EXT_DB:50,SYSTEM_EXT_QUEUE:51,CONTAINER:52,CONTAINER_DB:53,CONTAINER_QUEUE:54,CONTAINER_EXT:55,CONTAINER_EXT_DB:56,CONTAINER_EXT_QUEUE:57,COMPONENT:58,COMPONENT_DB:59,COMPONENT_QUEUE:60,COMPONENT_EXT:61,COMPONENT_EXT_DB:62,COMPONENT_EXT_QUEUE:63,REL:64,BIREL:65,REL_U:66,REL_D:67,REL_L:68,REL_R:69,REL_B:70,REL_INDEX:71,UPDATE_EL_STYLE:72,UPDATE_REL_STYLE:73,UPDATE_LAYOUT_CONFIG:74,attribute:75,STR:76,STR_KEY:77,STR_VALUE:78,ATTRIBUTE:79,ATTRIBUTE_EMPTY:80,$accept:0,$end:1},terminals_:{2:"error",6:"direction_tb",7:"direction_bt",8:"direction_rl",9:"direction_lr",11:"C4_CONTEXT",12:"NEWLINE",14:"EOF",15:"C4_CONTAINER",16:"C4_COMPONENT",17:"C4_DYNAMIC",18:"C4_DEPLOYMENT",22:"title",23:"accDescription",24:"acc_title",25:"acc_title_value",26:"acc_descr",27:"acc_descr_value",28:"acc_descr_multiline_value",33:"LBRACE",34:"ENTERPRISE_BOUNDARY",36:"SYSTEM_BOUNDARY",37:"BOUNDARY",38:"CONTAINER_BOUNDARY",39:"NODE",40:"NODE_L",41:"NODE_R",42:"RBRACE",44:"PERSON",45:"PERSON_EXT",46:"SYSTEM",47:"SYSTEM_DB",48:"SYSTEM_QUEUE",49:"SYSTEM_EXT",50:"SYSTEM_EXT_DB",51:"SYSTEM_EXT_QUEUE",52:"CONTAINER",53:"CONTAINER_DB",54:"CONTAINER_QUEUE",55:"CONTAINER_EXT",56:"CONTAINER_EXT_DB",57:"CONTAINER_EXT_QUEUE",58:"COMPONENT",59:"COMPONENT_DB",60:"COMPONENT_QUEUE",61:"COMPONENT_EXT",62:"COMPONENT_EXT_DB",63:"COMPONENT_EXT_QUEUE",64:"REL",65:"BIREL",66:"REL_U",67:"REL_D",68:"REL_L",69:"REL_R",70:"REL_B",71:"REL_INDEX",72:"UPDATE_EL_STYLE",73:"UPDATE_REL_STYLE",74:"UPDATE_LAYOUT_CONFIG",76:"STR",77:"STR_KEY",78:"STR_VALUE",79:"ATTRIBUTE",80:"ATTRIBUTE_EMPTY"},productions_:[0,[3,1],[3,1],[5,1],[5,1],[5,1],[5,1],[4,1],[10,4],[10,4],[10,4],[10,4],[10,4],[13,1],[13,1],[13,2],[19,1],[19,2],[19,3],[21,1],[21,1],[21,2],[21,2],[21,1],[29,3],[30,3],[30,3],[30,4],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[32,2],[31,1],[20,1],[20,2],[20,3],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,1],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[43,2],[35,1],[35,2],[75,1],[75,2],[75,1],[75,1]],performAction:y(function(m,_,k,g,R,h,Dt){var f=h.length-1;switch(R){case 3:g.setDirection("TB");break;case 4:g.setDirection("BT");break;case 5:g.setDirection("RL");break;case 6:g.setDirection("LR");break;case 8:case 9:case 10:case 11:case 12:g.setC4Type(h[f-3]);break;case 19:g.setTitle(h[f].substring(6)),this.$=h[f].substring(6);break;case 20:g.setAccDescription(h[f].substring(15)),this.$=h[f].substring(15);break;case 21:this.$=h[f].trim(),g.setTitle(this.$);break;case 22:case 23:this.$=h[f].trim(),g.setAccDescription(this.$);break;case 28:h[f].splice(2,0,"ENTERPRISE"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 29:h[f].splice(2,0,"SYSTEM"),g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 30:g.addPersonOrSystemBoundary(...h[f]),this.$=h[f];break;case 31:h[f].splice(2,0,"CONTAINER"),g.addContainerBoundary(...h[f]),this.$=h[f];break;case 32:g.addDeploymentNode("node",...h[f]),this.$=h[f];break;case 33:g.addDeploymentNode("nodeL",...h[f]),this.$=h[f];break;case 34:g.addDeploymentNode("nodeR",...h[f]),this.$=h[f];break;case 35:g.popBoundaryParseStack();break;case 39:g.addPersonOrSystem("person",...h[f]),this.$=h[f];break;case 40:g.addPersonOrSystem("external_person",...h[f]),this.$=h[f];break;case 41:g.addPersonOrSystem("system",...h[f]),this.$=h[f];break;case 42:g.addPersonOrSystem("system_db",...h[f]),this.$=h[f];break;case 43:g.addPersonOrSystem("system_queue",...h[f]),this.$=h[f];break;case 44:g.addPersonOrSystem("external_system",...h[f]),this.$=h[f];break;case 45:g.addPersonOrSystem("external_system_db",...h[f]),this.$=h[f];break;case 46:g.addPersonOrSystem("external_system_queue",...h[f]),this.$=h[f];break;case 47:g.addContainer("container",...h[f]),this.$=h[f];break;case 48:g.addContainer("container_db",...h[f]),this.$=h[f];break;case 49:g.addContainer("container_queue",...h[f]),this.$=h[f];break;case 50:g.addContainer("external_container",...h[f]),this.$=h[f];break;case 51:g.addContainer("external_container_db",...h[f]),this.$=h[f];break;case 52:g.addContainer("external_container_queue",...h[f]),this.$=h[f];break;case 53:g.addComponent("component",...h[f]),this.$=h[f];break;case 54:g.addComponent("component_db",...h[f]),this.$=h[f];break;case 55:g.addComponent("component_queue",...h[f]),this.$=h[f];break;case 56:g.addComponent("external_component",...h[f]),this.$=h[f];break;case 57:g.addComponent("external_component_db",...h[f]),this.$=h[f];break;case 58:g.addComponent("external_component_queue",...h[f]),this.$=h[f];break;case 60:g.addRel("rel",...h[f]),this.$=h[f];break;case 61:g.addRel("birel",...h[f]),this.$=h[f];break;case 62:g.addRel("rel_u",...h[f]),this.$=h[f];break;case 63:g.addRel("rel_d",...h[f]),this.$=h[f];break;case 64:g.addRel("rel_l",...h[f]),this.$=h[f];break;case 65:g.addRel("rel_r",...h[f]),this.$=h[f];break;case 66:g.addRel("rel_b",...h[f]),this.$=h[f];break;case 67:h[f].splice(0,1),g.addRel("rel",...h[f]),this.$=h[f];break;case 68:g.updateElStyle("update_el_style",...h[f]),this.$=h[f];break;case 69:g.updateRelStyle("update_rel_style",...h[f]),this.$=h[f];break;case 70:g.updateLayoutConfig("update_layout_config",...h[f]),this.$=h[f];break;case 71:this.$=[h[f]];break;case 72:h[f].unshift(h[f-1]),this.$=h[f];break;case 73:case 75:this.$=h[f].trim();break;case 74:let Et={};Et[h[f-1].trim()]=h[f].trim(),this.$=Et;break;case 76:this.$="";break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],7:[1,6],8:[1,7],9:[1,8],10:4,11:[1,9],15:[1,10],16:[1,11],17:[1,12],18:[1,13]},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,7]},{1:[2,3]},{1:[2,4]},{1:[2,5]},{1:[2,6]},{12:[1,14]},{12:[1,15]},{12:[1,16]},{12:[1,17]},{12:[1,18]},{13:19,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:70,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:71,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:72,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{13:73,19:20,20:21,21:22,22:t,23:s,24:o,26:l,28:n,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{14:[1,74]},e(Ot,[2,13],{43:23,29:49,30:61,32:62,20:75,34:a,36:r,37:i,38:u,39:d,40:b,41:p,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt}),e(Ot,[2,14]),e(Qt,[2,16],{12:[1,76]}),e(Ot,[2,36],{12:[1,77]}),e(Rt,[2,19]),e(Rt,[2,20]),{25:[1,78]},{27:[1,79]},e(Rt,[2,23]),{35:80,75:81,76:A,77:C,79:v,80:w},{35:86,75:81,76:A,77:C,79:v,80:w},{35:87,75:81,76:A,77:C,79:v,80:w},{35:88,75:81,76:A,77:C,79:v,80:w},{35:89,75:81,76:A,77:C,79:v,80:w},{35:90,75:81,76:A,77:C,79:v,80:w},{35:91,75:81,76:A,77:C,79:v,80:w},{35:92,75:81,76:A,77:C,79:v,80:w},{35:93,75:81,76:A,77:C,79:v,80:w},{35:94,75:81,76:A,77:C,79:v,80:w},{35:95,75:81,76:A,77:C,79:v,80:w},{35:96,75:81,76:A,77:C,79:v,80:w},{35:97,75:81,76:A,77:C,79:v,80:w},{35:98,75:81,76:A,77:C,79:v,80:w},{35:99,75:81,76:A,77:C,79:v,80:w},{35:100,75:81,76:A,77:C,79:v,80:w},{35:101,75:81,76:A,77:C,79:v,80:w},{35:102,75:81,76:A,77:C,79:v,80:w},{35:103,75:81,76:A,77:C,79:v,80:w},{35:104,75:81,76:A,77:C,79:v,80:w},e(O,[2,59]),{35:105,75:81,76:A,77:C,79:v,80:w},{35:106,75:81,76:A,77:C,79:v,80:w},{35:107,75:81,76:A,77:C,79:v,80:w},{35:108,75:81,76:A,77:C,79:v,80:w},{35:109,75:81,76:A,77:C,79:v,80:w},{35:110,75:81,76:A,77:C,79:v,80:w},{35:111,75:81,76:A,77:C,79:v,80:w},{35:112,75:81,76:A,77:C,79:v,80:w},{35:113,75:81,76:A,77:C,79:v,80:w},{35:114,75:81,76:A,77:C,79:v,80:w},{35:115,75:81,76:A,77:C,79:v,80:w},{20:116,29:49,30:61,32:62,34:a,36:r,37:i,38:u,39:d,40:b,41:p,43:23,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt},{12:[1,118],33:[1,117]},{35:119,75:81,76:A,77:C,79:v,80:w},{35:120,75:81,76:A,77:C,79:v,80:w},{35:121,75:81,76:A,77:C,79:v,80:w},{35:122,75:81,76:A,77:C,79:v,80:w},{35:123,75:81,76:A,77:C,79:v,80:w},{35:124,75:81,76:A,77:C,79:v,80:w},{35:125,75:81,76:A,77:C,79:v,80:w},{14:[1,126]},{14:[1,127]},{14:[1,128]},{14:[1,129]},{1:[2,8]},e(Ot,[2,15]),e(Qt,[2,17],{21:22,19:130,22:t,23:s,24:o,26:l,28:n}),e(Ot,[2,37],{19:20,20:21,21:22,43:23,29:49,30:61,32:62,13:131,22:t,23:s,24:o,26:l,28:n,34:a,36:r,37:i,38:u,39:d,40:b,41:p,44:E,45:T,46:D,47:P,48:B,49:j,50:H,51:q,52:G,53:K,54:J,55:Z,56:$,57:tt,58:et,59:nt,60:it,61:rt,62:at,63:st,64:lt,65:ot,66:ct,67:ht,68:ut,69:dt,70:ft,71:pt,72:yt,73:bt,74:gt}),e(Rt,[2,21]),e(Rt,[2,22]),e(O,[2,39]),e(he,[2,71],{75:81,35:132,76:A,77:C,79:v,80:w}),e(Yt,[2,73]),{78:[1,133]},e(Yt,[2,75]),e(Yt,[2,76]),e(O,[2,40]),e(O,[2,41]),e(O,[2,42]),e(O,[2,43]),e(O,[2,44]),e(O,[2,45]),e(O,[2,46]),e(O,[2,47]),e(O,[2,48]),e(O,[2,49]),e(O,[2,50]),e(O,[2,51]),e(O,[2,52]),e(O,[2,53]),e(O,[2,54]),e(O,[2,55]),e(O,[2,56]),e(O,[2,57]),e(O,[2,58]),e(O,[2,60]),e(O,[2,61]),e(O,[2,62]),e(O,[2,63]),e(O,[2,64]),e(O,[2,65]),e(O,[2,66]),e(O,[2,67]),e(O,[2,68]),e(O,[2,69]),e(O,[2,70]),{31:134,42:[1,135]},{12:[1,136]},{33:[1,137]},e(kt,[2,28]),e(kt,[2,29]),e(kt,[2,30]),e(kt,[2,31]),e(kt,[2,32]),e(kt,[2,33]),e(kt,[2,34]),{1:[2,9]},{1:[2,10]},{1:[2,11]},{1:[2,12]},e(Qt,[2,18]),e(Ot,[2,38]),e(he,[2,72]),e(Yt,[2,74]),e(O,[2,24]),e(O,[2,35]),e(Ht,[2,25]),e(Ht,[2,26],{12:[1,138]}),e(Ht,[2,27])],defaultActions:{2:[2,1],3:[2,2],4:[2,7],5:[2,3],6:[2,4],7:[2,5],8:[2,6],74:[2,8],126:[2,9],127:[2,10],128:[2,11],129:[2,12]},parseError:y(function(m,_){if(_.recoverable)this.trace(m);else{var k=new Error(m);throw k.hash=_,k}},"parseError"),parse:y(function(m){var _=this,k=[0],g=[],R=[null],h=[],Dt=this.table,f="",Et=0,ue=0,de=0,Ye=2,fe=1,Ie=h.slice.call(arguments,1),S=Object.create(this.lexer),At={yy:{}};for(var Kt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Kt)&&(At.yy[Kt]=this.yy[Kt]);S.setInput(m,At.yy),At.yy.lexer=S,At.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var Jt=S.yylloc;h.push(Jt);var je=S.options&&S.options.ranges;typeof At.yy.parseError=="function"?this.parseError=At.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function L0(Y){k.length=k.length-2*Y,R.length=R.length-Y,h.length=h.length-Y}y(L0,"popStack");function Ue(){var Y;return Y=g.pop()||S.lex()||fe,typeof Y!="number"&&(Y instanceof Array&&(g=Y,Y=g.pop()),Y=_.symbols_[Y]||Y),Y}y(Ue,"lex");for(var M,Zt,Ct,I,N0,$t,Tt={},It,W,pe,jt;;){if(Ct=k[k.length-1],this.defaultActions[Ct]?I=this.defaultActions[Ct]:((M===null||typeof M>"u")&&(M=Ue()),I=Dt[Ct]&&Dt[Ct][M]),typeof I>"u"||!I.length||!I[0]){var te="";jt=[];for(It in Dt[Ct])this.terminals_[It]&&It>Ye&&jt.push("'"+this.terminals_[It]+"'");S.showPosition?te="Parse error on line "+(Et+1)+`: `+S.showPosition()+` Expecting `+jt.join(", ")+", got '"+(this.terminals_[M]||M)+"'":te="Parse error on line "+(Et+1)+": Unexpected "+(M==fe?"end of input":"'"+(this.terminals_[M]||M)+"'"),this.parseError(te,{text:S.match,token:this.terminals_[M]||M,line:S.yylineno,loc:Jt,expected:jt})}if(I[0]instanceof Array&&I.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Ct+", token: "+M);switch(I[0]){case 1:k.push(M),R.push(S.yytext),h.push(S.yylloc),k.push(I[1]),M=null,Zt?(M=Zt,Zt=null):(ue=S.yyleng,f=S.yytext,Et=S.yylineno,Jt=S.yylloc,de>0&&de--);break;case 2:if(W=this.productions_[I[1]][1],Tt.$=R[R.length-W],Tt._$={first_line:h[h.length-(W||1)].first_line,last_line:h[h.length-1].last_line,first_column:h[h.length-(W||1)].first_column,last_column:h[h.length-1].last_column},je&&(Tt._$.range=[h[h.length-(W||1)].range[0],h[h.length-1].range[1]]),$t=this.performAction.apply(Tt,[f,ue,Et,At.yy,I[1],R,h].concat(Ie)),typeof $t<"u")return $t;W&&(k=k.slice(0,-1*W*2),R=R.slice(0,-1*W),h=h.slice(0,-1*W)),k.push(this.productions_[I[1]][0]),R.push(Tt.$),h.push(Tt._$),pe=Dt[k[k.length-2]][k[k.length-1]],k.push(pe);break;case 3:return!0}}return!0},"parse")},Be=function(){var xt={EOF:1,parseError:y(function(_,k){if(this.yy.parser)this.yy.parser.parseError(_,k);else throw new Error(_)},"parseError"),setInput:y(function(m,_){return this.yy=_||this.yy||{},this._input=m,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:y(function(){var m=this._input[0];this.yytext+=m,this.yyleng++,this.offset++,this.match+=m,this.matched+=m;var _=m.match(/(?:\r\n?|\n).*/g);return _?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),m},"input"),unput:y(function(m){var _=m.length,k=m.split(/(?:\r\n?|\n)/g);this._input=m+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-_),this.offset-=_;var g=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),k.length-1&&(this.yylineno-=k.length-1);var R=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:k?(k.length===g.length?this.yylloc.first_column:0)+g[g.length-k.length].length-k[0].length:this.yylloc.first_column-_},this.options.ranges&&(this.yylloc.range=[R[0],R[0]+this.yyleng-_]),this.yyleng=this.yytext.length,this},"unput"),more:y(function(){return this._more=!0,this},"more"),reject:y(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:y(function(m){this.unput(this.match.slice(m))},"less"),pastInput:y(function(){var m=this.matched.substr(0,this.matched.length-this.match.length);return(m.length>20?"...":"")+m.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:y(function(){var m=this.match;return m.length<20&&(m+=this._input.substr(0,20-m.length)),(m.substr(0,20)+(m.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:y(function(){var m=this.pastInput(),_=new Array(m.length+1).join("-");return m+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-BPW5ZDWE.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-3YFHLAX3.mjs similarity index 77% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-BPW5ZDWE.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-3YFHLAX3.mjs index dc5b6a483..875d098d9 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-BPW5ZDWE.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-3YFHLAX3.mjs @@ -1 +1 @@ -import{X as s,ga as e}from"./chunk-ITX3UAHE.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var d=n(t=>{let{securityLevel:m}=s(),o=e("body");if(m==="sandbox"){let c=e(`#i${t}`).node()?.contentDocument??document;o=e(c.body)}return o.select(`#${t}`)},"selectSvgElement");export{d as a}; +import{X as s,ga as e}from"./chunk-OR2G2HG5.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var d=n(t=>{let{securityLevel:m}=s(),o=e("body");if(m==="sandbox"){let c=e(`#i${t}`).node()?.contentDocument??document;o=e(c.body)}return o.select(`#${t}`)},"selectSvgElement");export{d as a}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-BERL53GW.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-44WTIFVW.mjs similarity index 95% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-BERL53GW.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-44WTIFVW.mjs index 4a817f86c..dd1b8c9a6 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-BERL53GW.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-44WTIFVW.mjs @@ -1 +1 @@ -import{a as c}from"./chunk-TI4EEUUG.mjs";import{E as l}from"./chunk-ITX3UAHE.mjs";import{a as o,e as m}from"./chunk-GTKDMUJJ.mjs";var i=m(c(),1);var x=o((n,t)=>{let e=n.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=o((n,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(n,e).lower()},"drawBackgroundRect"),y=o((n,t)=>{let e=t.text.replace(l," "),r=n.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),d=o((n,t,e,r)=>{let s=n.append("image");s.attr("x",t),s.attr("y",e);let a=(0,i.sanitizeUrl)(r);s.attr("xlink:href",a)},"drawImage"),E=o((n,t,e,r)=>{let s=n.append("use");s.attr("x",t),s.attr("y",e);let a=(0,i.sanitizeUrl)(r);s.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),h=o(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=o(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{x as a,g as b,y as c,d,E as e,h as f,f as g}; +import{a as c}from"./chunk-TI4EEUUG.mjs";import{E as l}from"./chunk-OR2G2HG5.mjs";import{a as o,e as m}from"./chunk-GTKDMUJJ.mjs";var i=m(c(),1);var x=o((n,t)=>{let e=n.append("rect");if(e.attr("x",t.x),e.attr("y",t.y),e.attr("fill",t.fill),e.attr("stroke",t.stroke),e.attr("width",t.width),e.attr("height",t.height),t.name&&e.attr("name",t.name),t.rx&&e.attr("rx",t.rx),t.ry&&e.attr("ry",t.ry),t.attrs!==void 0)for(let r in t.attrs)e.attr(r,t.attrs[r]);return t.class&&e.attr("class",t.class),e},"drawRect"),g=o((n,t)=>{let e={x:t.startx,y:t.starty,width:t.stopx-t.startx,height:t.stopy-t.starty,fill:t.fill,stroke:t.stroke,class:"rect"};x(n,e).lower()},"drawBackgroundRect"),y=o((n,t)=>{let e=t.text.replace(l," "),r=n.append("text");r.attr("x",t.x),r.attr("y",t.y),r.attr("class","legend"),r.style("text-anchor",t.anchor),t.class&&r.attr("class",t.class);let s=r.append("tspan");return s.attr("x",t.x+t.textMargin*2),s.text(e),r},"drawText"),d=o((n,t,e,r)=>{let s=n.append("image");s.attr("x",t),s.attr("y",e);let a=(0,i.sanitizeUrl)(r);s.attr("xlink:href",a)},"drawImage"),E=o((n,t,e,r)=>{let s=n.append("use");s.attr("x",t),s.attr("y",e);let a=(0,i.sanitizeUrl)(r);s.attr("xlink:href",`#${a}`)},"drawEmbeddedImage"),h=o(()=>({x:0,y:0,width:100,height:100,fill:"#EDF2AE",stroke:"#666",anchor:"start",rx:0,ry:0}),"getNoteRect"),f=o(()=>({x:0,y:0,width:100,height:100,"text-anchor":"start",style:"#666",textMargin:0,rx:0,ry:0,tspan:!0}),"getTextObj");export{x as a,g as b,y as c,d,E as e,h as f,f as g}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-LD4SFGBK.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-54VS5GG6.mjs similarity index 71% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-LD4SFGBK.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-54VS5GG6.mjs index a9045ae5e..432ba1e72 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-LD4SFGBK.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-54VS5GG6.mjs @@ -1 +1 @@ -import{b as g,c as y,d,e as f}from"./chunk-4DJOK3GT.mjs";import{a as p,f as l,h as u}from"./chunk-A7EQIZZO.mjs";import{c as m}from"./chunk-2XY5F2HY.mjs";import{A as a,L as s,b as i}from"./chunk-ITX3UAHE.mjs";import{a as o}from"./chunk-GTKDMUJJ.mjs";var L={common:s,getConfig:a,insertCluster:l,insertEdge:d,insertEdgeLabel:g,insertMarkers:f,insertNode:u,interpolateToCurve:m,labelHelper:p,log:i,positionEdgeLabel:y};var t={},h=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),c=o(()=>{h([{name:"dagre",loader:o(async()=>await import("./dagre-2P6XN26F.mjs"),"loader")}])},"registerDefaultLayoutLoaders");c();var S=o(async(r,e)=>{if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let n=t[r.layoutAlgorithm];return(await n.loader()).render(r,e,L,{algorithm:n.algorithm})},"render"),V=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return i.warn(`Layout algorithm ${r} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${r} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");export{h as a,S as b,V as c}; +import{b as g,c as y,d,e as f}from"./chunk-ZUCAP7FR.mjs";import{a as p,f as l,h as u}from"./chunk-E7A2AWYO.mjs";import{c as m}from"./chunk-UENA7NWE.mjs";import{A as a,L as s,b as i}from"./chunk-OR2G2HG5.mjs";import{a as o}from"./chunk-GTKDMUJJ.mjs";var L={common:s,getConfig:a,insertCluster:l,insertEdge:d,insertEdgeLabel:g,insertMarkers:f,insertNode:u,interpolateToCurve:m,labelHelper:p,log:i,positionEdgeLabel:y};var t={},h=o(r=>{for(let e of r)t[e.name]=e},"registerLayoutLoaders"),c=o(()=>{h([{name:"dagre",loader:o(async()=>await import("./dagre-RF25WEIW.mjs"),"loader")}])},"registerDefaultLayoutLoaders");c();var S=o(async(r,e)=>{if(!(r.layoutAlgorithm in t))throw new Error(`Unknown layout algorithm: ${r.layoutAlgorithm}`);let n=t[r.layoutAlgorithm];return(await n.loader()).render(r,e,L,{algorithm:n.algorithm})},"render"),V=o((r="",{fallback:e="dagre"}={})=>{if(r in t)return r;if(e in t)return i.warn(`Layout algorithm ${r} is not registered. Using ${e} as fallback.`),e;throw new Error(`Both layout algorithms ${r} and ${e} are not registered.`)},"getRegisteredLayoutAlgorithm");export{h as a,S as b,V as c}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-67GG4VKH.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-67GG4VKH.mjs deleted file mode 100644 index 141b3a314..000000000 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-67GG4VKH.mjs +++ /dev/null @@ -1 +0,0 @@ -var r="11.4.0";export{r as a}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-6CAUGOKZ.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-6CAUGOKZ.mjs new file mode 100644 index 000000000..179f6834c --- /dev/null +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-6CAUGOKZ.mjs @@ -0,0 +1 @@ +var r="11.4.1";export{r as a}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-UBDM6ZOM.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-7CIZ4OX7.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-UBDM6ZOM.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-7CIZ4OX7.mjs index 58ba1cd5f..9ddef9a5b 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-UBDM6ZOM.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-7CIZ4OX7.mjs @@ -1,4 +1,4 @@ -import{a as dt,b as At}from"./chunk-4YMK7POB.mjs";import{b as ft,c as gt}from"./chunk-LD4SFGBK.mjs";import{m as re,p as pt}from"./chunk-2XY5F2HY.mjs";import{F as rt,H as P,L as I,P as nt,Q as at,R as ut,S as ot,T as lt,U as ct,V as ht,X as T,b as ie,ga as K}from"./chunk-ITX3UAHE.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var je=function(){var e=n(function(O,l,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=l);return h},"o"),i=[1,18],a=[1,19],o=[1,20],u=[1,41],c=[1,42],f=[1,26],b=[1,24],F=[1,25],S=[1,32],Ee=[1,33],Te=[1,34],k=[1,45],Fe=[1,35],De=[1,36],Be=[1,37],_e=[1,38],Se=[1,27],xe=[1,28],Ne=[1,29],Le=[1,30],Ie=[1,31],m=[1,44],C=[1,46],y=[1,43],D=[1,47],ve=[1,9],p=[1,8,9],oe=[1,58],le=[1,59],ce=[1,60],he=[1,61],pe=[1,62],Oe=[1,63],we=[1,64],de=[1,8,9,41],He=[1,76],U=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],fe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],ge=[13,58,84,99,101,102],Q=[13,58,71,72,84,99,101,102],qe=[13,58,66,67,68,69,70,84,99,101,102],Ve=[1,98],W=[1,115],X=[1,107],H=[1,113],q=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Me=[1,8,9,39,41,44],Ae=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:n(function(l,h,d,r,g,t,se){var s=t.length-1;switch(g){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:r.addRelation(t[s]);break;case 19:t[s-1].title=r.cleanupLabel(t[s]),r.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 33:r.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:r.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],r.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:r.setCssClass(t[s-2],t[s]);break;case 41:r.addMembers(t[s-3],t[s-1]);break;case 42:r.setCssClass(t[s-5],t[s-3]),r.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],r.addClass(t[s]);break;case 44:this.$=t[s-1],r.addClass(t[s-1]),r.setClassLabel(t[s-1],t[s]);break;case 45:r.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:r.addMember(t[s-1],r.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:r.addNote(t[s],t[s-1]);break;case 57:r.addNote(t[s]);break;case 58:this.$=t[s-2],r.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:r.setDirection("TB");break;case 62:r.setDirection("BT");break;case 63:r.setDirection("RL");break;case 64:r.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=r.relationType.AGGREGATION;break;case 70:this.$=r.relationType.EXTENSION;break;case 71:this.$=r.relationType.COMPOSITION;break;case 72:this.$=r.relationType.DEPENDENCY;break;case 73:this.$=r.relationType.LOLLIPOP;break;case 74:this.$=r.lineType.LINE;break;case 75:this.$=r.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],r.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],r.setClickEvent(t[s-2],t[s-1]),r.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],r.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],r.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],r.setLink(t[s-2],t[s-1]),r.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],r.setLink(t[s-3],t[s-2],t[s]),r.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],r.setClickEvent(t[s-3],t[s-2],t[s-1]),r.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],r.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],r.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],r.setLink(t[s-3],t[s-1]),r.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],r.setLink(t[s-4],t[s-2],t[s]),r.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],r.setCssStyle(t[s-1],t[s]);break;case 91:r.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:o,38:22,42:u,43:23,46:c,47:f,49:b,50:F,52:S,54:Ee,55:Te,58:k,60:Fe,61:De,62:Be,63:_e,73:Se,74:xe,76:Ne,80:Le,81:Ie,84:m,99:C,101:y,102:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ve,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:oe,67:le,68:ce,69:he,70:pe,71:Oe,72:we}),{39:[1,65]},e(de,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:k,84:m,99:C,101:y},{16:39,18:69,19:40,58:k,84:m,99:C,101:y,102:D},{16:39,18:70,19:40,58:k,84:m,99:C,101:y,102:D},{16:39,18:71,19:40,58:k,84:m,99:C,101:y,102:D},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:k,84:m,99:C,101:y,102:D},{13:He,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(U,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:k,84:m,99:C,101:y,102:D}),e(U,[2,14],{20:[1,82]}),{15:83,16:84,58:k,84:m,99:C,101:y},{16:39,18:85,19:40,58:k,84:m,99:C,101:y,102:D},e(fe,[2,118]),e(fe,[2,119]),e(fe,[2,120]),e(fe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(ve,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:o,42:u,46:c,47:f,49:b,50:F,52:S,54:Ee,55:Te,58:k,60:Fe,61:De,62:Be,63:_e,73:Se,74:xe,76:Ne,80:Le,81:Ie,84:m,99:C,101:y,102:D}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:o,38:22,42:u,43:23,46:c,47:f,49:b,50:F,52:S,54:Ee,55:Te,58:k,60:Fe,61:De,62:Be,63:_e,73:Se,74:xe,76:Ne,80:Le,81:Ie,84:m,99:C,101:y,102:D},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:k,84:m,99:C,101:y,102:D},{51:90,64:56,65:57,66:oe,67:le,68:ce,69:he,70:pe,71:Oe,72:we},e(p,[2,49]),{65:91,71:Oe,72:we},e(ge,[2,68],{64:92,66:oe,67:le,68:ce,69:he,70:pe}),e(Q,[2,69]),e(Q,[2,70]),e(Q,[2,71]),e(Q,[2,72]),e(Q,[2,73]),e(qe,[2,74]),e(qe,[2,75]),{8:[1,94],24:95,40:93,43:23,46:c},{16:96,58:k,84:m,99:C,101:y},{45:97,49:Ve},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:W,57:104,58:X,80:H,82:105,83:106,84:q,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:He,53:117},e(p,[2,57]),e(p,[2,123]),{22:W,57:118,58:X,59:[1,119],80:H,82:105,83:106,84:q,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:k,84:m,99:C,101:y,102:D},e(U,[2,15]),e(U,[2,16]),e(U,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:k,84:m,99:C,101:y},e(Me,[2,43],{11:123,12:[1,124]}),e(ve,[2,7]),{9:[1,125]},e(Ae,[2,52]),{16:39,18:126,19:40,58:k,84:m,99:C,101:y,102:D},{13:[1,128],16:39,18:127,19:40,58:k,84:m,99:C,101:y,102:D},e(ge,[2,67],{64:129,66:oe,67:le,68:ce,69:he,70:pe}),e(ge,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:c},{8:[1,132],41:[2,36]},e(de,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Ve},{16:39,18:136,19:40,58:k,84:m,99:C,101:y,102:D},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:W,58:X,80:H,84:q,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(U,[2,13]),{15:146,16:84,58:k,84:m,99:C,101:y},{39:[2,11]},e(Me,[2,44]),{13:[1,147]},{1:[2,4]},e(Ae,[2,54]),e(Ae,[2,53]),{16:39,18:148,19:40,58:k,84:m,99:C,101:y,102:D},e(ge,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:c},{45:151,49:Ve},e(de,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:W,58:X,80:H,82:156,83:106,84:q,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(Ae,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:W,58:X,80:H,84:q,85:J,86:Z,87:$,88:ee,89:te}),e(Me,[2,8]),e(de,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:n(function(l,h){if(h.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=h,d}},"parseError"),parse:n(function(l){var h=this,d=[0],r=[],g=[null],t=[],se=this.table,s="",be=0,et=0,tt=0,_t=2,st=1,St=t.slice.call(arguments,1),E=Object.create(this.lexer),V={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(V.yy[Ge]=this.yy[Ge]);E.setInput(l,V.yy),V.yy.lexer=E,V.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Ue=E.yylloc;t.push(Ue);var xt=E.options&&E.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function us(_){d.length=d.length-2*_,g.length=g.length-_,t.length=t.length-_}n(us,"popStack");function Nt(){var _;return _=r.pop()||E.lex()||st,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=h.symbols_[_]||_),_}n(Nt,"lex");for(var B,ze,M,x,os,Ke,z={},ke,v,it,me;;){if(M=d[d.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Nt()),x=se[M]&&se[M][B]),typeof x>"u"||!x.length||!x[0]){var Ye="";me=[];for(ke in se[M])this.terminals_[ke]&&ke>_t&&me.push("'"+this.terminals_[ke]+"'");E.showPosition?Ye="Parse error on line "+(be+1)+`: +import{a as dt,b as At}from"./chunk-P7KHIEPL.mjs";import{b as ft,c as gt}from"./chunk-54VS5GG6.mjs";import{m as re,p as pt}from"./chunk-UENA7NWE.mjs";import{F as rt,H as P,L as I,P as nt,Q as at,R as ut,S as ot,T as lt,U as ct,V as ht,X as T,b as ie,ga as K}from"./chunk-OR2G2HG5.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var je=function(){var e=n(function(O,l,h,d){for(h=h||{},d=O.length;d--;h[O[d]]=l);return h},"o"),i=[1,18],a=[1,19],o=[1,20],u=[1,41],c=[1,42],f=[1,26],b=[1,24],F=[1,25],S=[1,32],Ee=[1,33],Te=[1,34],k=[1,45],Fe=[1,35],De=[1,36],Be=[1,37],_e=[1,38],Se=[1,27],xe=[1,28],Ne=[1,29],Le=[1,30],Ie=[1,31],m=[1,44],C=[1,46],y=[1,43],D=[1,47],ve=[1,9],p=[1,8,9],oe=[1,58],le=[1,59],ce=[1,60],he=[1,61],pe=[1,62],Oe=[1,63],we=[1,64],de=[1,8,9,41],He=[1,76],U=[1,8,9,12,13,22,39,41,44,66,67,68,69,70,71,72,77,79],fe=[1,8,9,12,13,17,20,22,39,41,44,48,58,66,67,68,69,70,71,72,77,79,84,99,101,102],ge=[13,58,84,99,101,102],Q=[13,58,71,72,84,99,101,102],qe=[13,58,66,67,68,69,70,84,99,101,102],Ve=[1,98],W=[1,115],X=[1,107],H=[1,113],q=[1,108],J=[1,109],Z=[1,110],$=[1,111],ee=[1,112],te=[1,114],Je=[22,58,59,80,84,85,86,87,88,89],Me=[1,8,9,39,41,44],Ae=[1,8,9,22],Ze=[1,143],$e=[1,8,9,59],N=[1,8,9,22,58,59,80,84,85,86,87,88,89],Pe={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mermaidDoc:4,statements:5,graphConfig:6,CLASS_DIAGRAM:7,NEWLINE:8,EOF:9,statement:10,classLabel:11,SQS:12,STR:13,SQE:14,namespaceName:15,alphaNumToken:16,DOT:17,className:18,classLiteralName:19,GENERICTYPE:20,relationStatement:21,LABEL:22,namespaceStatement:23,classStatement:24,memberStatement:25,annotationStatement:26,clickStatement:27,styleStatement:28,cssClassStatement:29,noteStatement:30,classDefStatement:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,namespaceIdentifier:38,STRUCT_START:39,classStatements:40,STRUCT_STOP:41,NAMESPACE:42,classIdentifier:43,STYLE_SEPARATOR:44,members:45,CLASS:46,ANNOTATION_START:47,ANNOTATION_END:48,MEMBER:49,SEPARATOR:50,relation:51,NOTE_FOR:52,noteText:53,NOTE:54,CLASSDEF:55,classList:56,stylesOpt:57,ALPHA:58,COMMA:59,direction_tb:60,direction_bt:61,direction_rl:62,direction_lr:63,relationType:64,lineType:65,AGGREGATION:66,EXTENSION:67,COMPOSITION:68,DEPENDENCY:69,LOLLIPOP:70,LINE:71,DOTTED_LINE:72,CALLBACK:73,LINK:74,LINK_TARGET:75,CLICK:76,CALLBACK_NAME:77,CALLBACK_ARGS:78,HREF:79,STYLE:80,CSSCLASS:81,style:82,styleComponent:83,NUM:84,COLON:85,UNIT:86,SPACE:87,BRKT:88,PCT:89,commentToken:90,textToken:91,graphCodeTokens:92,textNoTagsToken:93,TAGSTART:94,TAGEND:95,"==":96,"--":97,DEFAULT:98,MINUS:99,keywords:100,UNICODE_TEXT:101,BQUOTE_STR:102,$accept:0,$end:1},terminals_:{2:"error",7:"CLASS_DIAGRAM",8:"NEWLINE",9:"EOF",12:"SQS",13:"STR",14:"SQE",17:"DOT",20:"GENERICTYPE",22:"LABEL",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",39:"STRUCT_START",41:"STRUCT_STOP",42:"NAMESPACE",44:"STYLE_SEPARATOR",46:"CLASS",47:"ANNOTATION_START",48:"ANNOTATION_END",49:"MEMBER",50:"SEPARATOR",52:"NOTE_FOR",54:"NOTE",55:"CLASSDEF",58:"ALPHA",59:"COMMA",60:"direction_tb",61:"direction_bt",62:"direction_rl",63:"direction_lr",66:"AGGREGATION",67:"EXTENSION",68:"COMPOSITION",69:"DEPENDENCY",70:"LOLLIPOP",71:"LINE",72:"DOTTED_LINE",73:"CALLBACK",74:"LINK",75:"LINK_TARGET",76:"CLICK",77:"CALLBACK_NAME",78:"CALLBACK_ARGS",79:"HREF",80:"STYLE",81:"CSSCLASS",84:"NUM",85:"COLON",86:"UNIT",87:"SPACE",88:"BRKT",89:"PCT",92:"graphCodeTokens",94:"TAGSTART",95:"TAGEND",96:"==",97:"--",98:"DEFAULT",99:"MINUS",100:"keywords",101:"UNICODE_TEXT",102:"BQUOTE_STR"},productions_:[0,[3,1],[3,1],[4,1],[6,4],[5,1],[5,2],[5,3],[11,3],[15,1],[15,3],[15,2],[18,1],[18,3],[18,1],[18,2],[18,2],[18,2],[10,1],[10,2],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,1],[10,2],[10,2],[10,1],[23,4],[23,5],[38,2],[40,1],[40,2],[40,3],[24,1],[24,3],[24,4],[24,6],[43,2],[43,3],[26,4],[45,1],[45,2],[25,1],[25,2],[25,1],[25,1],[21,3],[21,4],[21,4],[21,5],[30,3],[30,2],[31,3],[56,1],[56,3],[32,1],[32,1],[32,1],[32,1],[51,3],[51,2],[51,2],[51,1],[64,1],[64,1],[64,1],[64,1],[64,1],[65,1],[65,1],[27,3],[27,4],[27,3],[27,4],[27,4],[27,5],[27,3],[27,4],[27,4],[27,5],[27,4],[27,5],[27,5],[27,6],[28,3],[29,3],[57,1],[57,3],[82,1],[82,2],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[83,1],[90,1],[90,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[91,1],[93,1],[93,1],[93,1],[93,1],[16,1],[16,1],[16,1],[16,1],[19,1],[53,1]],performAction:n(function(l,h,d,r,g,t,se){var s=t.length-1;switch(g){case 8:this.$=t[s-1];break;case 9:case 12:case 14:this.$=t[s];break;case 10:case 13:this.$=t[s-2]+"."+t[s];break;case 11:case 15:this.$=t[s-1]+t[s];break;case 16:case 17:this.$=t[s-1]+"~"+t[s]+"~";break;case 18:r.addRelation(t[s]);break;case 19:t[s-1].title=r.cleanupLabel(t[s]),r.addRelation(t[s-1]);break;case 30:this.$=t[s].trim(),r.setAccTitle(this.$);break;case 31:case 32:this.$=t[s].trim(),r.setAccDescription(this.$);break;case 33:r.addClassesToNamespace(t[s-3],t[s-1]);break;case 34:r.addClassesToNamespace(t[s-4],t[s-1]);break;case 35:this.$=t[s],r.addNamespace(t[s]);break;case 36:this.$=[t[s]];break;case 37:this.$=[t[s-1]];break;case 38:t[s].unshift(t[s-2]),this.$=t[s];break;case 40:r.setCssClass(t[s-2],t[s]);break;case 41:r.addMembers(t[s-3],t[s-1]);break;case 42:r.setCssClass(t[s-5],t[s-3]),r.addMembers(t[s-5],t[s-1]);break;case 43:this.$=t[s],r.addClass(t[s]);break;case 44:this.$=t[s-1],r.addClass(t[s-1]),r.setClassLabel(t[s-1],t[s]);break;case 45:r.addAnnotation(t[s],t[s-2]);break;case 46:case 59:this.$=[t[s]];break;case 47:t[s].push(t[s-1]),this.$=t[s];break;case 48:break;case 49:r.addMember(t[s-1],r.cleanupLabel(t[s]));break;case 50:break;case 51:break;case 52:this.$={id1:t[s-2],id2:t[s],relation:t[s-1],relationTitle1:"none",relationTitle2:"none"};break;case 53:this.$={id1:t[s-3],id2:t[s],relation:t[s-1],relationTitle1:t[s-2],relationTitle2:"none"};break;case 54:this.$={id1:t[s-3],id2:t[s],relation:t[s-2],relationTitle1:"none",relationTitle2:t[s-1]};break;case 55:this.$={id1:t[s-4],id2:t[s],relation:t[s-2],relationTitle1:t[s-3],relationTitle2:t[s-1]};break;case 56:r.addNote(t[s],t[s-1]);break;case 57:r.addNote(t[s]);break;case 58:this.$=t[s-2],r.defineClass(t[s-1],t[s]);break;case 60:this.$=t[s-2].concat([t[s]]);break;case 61:r.setDirection("TB");break;case 62:r.setDirection("BT");break;case 63:r.setDirection("RL");break;case 64:r.setDirection("LR");break;case 65:this.$={type1:t[s-2],type2:t[s],lineType:t[s-1]};break;case 66:this.$={type1:"none",type2:t[s],lineType:t[s-1]};break;case 67:this.$={type1:t[s-1],type2:"none",lineType:t[s]};break;case 68:this.$={type1:"none",type2:"none",lineType:t[s]};break;case 69:this.$=r.relationType.AGGREGATION;break;case 70:this.$=r.relationType.EXTENSION;break;case 71:this.$=r.relationType.COMPOSITION;break;case 72:this.$=r.relationType.DEPENDENCY;break;case 73:this.$=r.relationType.LOLLIPOP;break;case 74:this.$=r.lineType.LINE;break;case 75:this.$=r.lineType.DOTTED_LINE;break;case 76:case 82:this.$=t[s-2],r.setClickEvent(t[s-1],t[s]);break;case 77:case 83:this.$=t[s-3],r.setClickEvent(t[s-2],t[s-1]),r.setTooltip(t[s-2],t[s]);break;case 78:this.$=t[s-2],r.setLink(t[s-1],t[s]);break;case 79:this.$=t[s-3],r.setLink(t[s-2],t[s-1],t[s]);break;case 80:this.$=t[s-3],r.setLink(t[s-2],t[s-1]),r.setTooltip(t[s-2],t[s]);break;case 81:this.$=t[s-4],r.setLink(t[s-3],t[s-2],t[s]),r.setTooltip(t[s-3],t[s-1]);break;case 84:this.$=t[s-3],r.setClickEvent(t[s-2],t[s-1],t[s]);break;case 85:this.$=t[s-4],r.setClickEvent(t[s-3],t[s-2],t[s-1]),r.setTooltip(t[s-3],t[s]);break;case 86:this.$=t[s-3],r.setLink(t[s-2],t[s]);break;case 87:this.$=t[s-4],r.setLink(t[s-3],t[s-1],t[s]);break;case 88:this.$=t[s-4],r.setLink(t[s-3],t[s-1]),r.setTooltip(t[s-3],t[s]);break;case 89:this.$=t[s-5],r.setLink(t[s-4],t[s-2],t[s]),r.setTooltip(t[s-4],t[s-1]);break;case 90:this.$=t[s-2],r.setCssStyle(t[s-1],t[s]);break;case 91:r.setCssClass(t[s-1],t[s]);break;case 92:this.$=[t[s]];break;case 93:t[s-2].push(t[s]),this.$=t[s-2];break;case 95:this.$=t[s-1]+t[s];break}},"anonymous"),table:[{3:1,4:2,5:3,6:4,7:[1,6],10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:o,38:22,42:u,43:23,46:c,47:f,49:b,50:F,52:S,54:Ee,55:Te,58:k,60:Fe,61:De,62:Be,63:_e,73:Se,74:xe,76:Ne,80:Le,81:Ie,84:m,99:C,101:y,102:D},{1:[3]},{1:[2,1]},{1:[2,2]},{1:[2,3]},e(ve,[2,5],{8:[1,48]}),{8:[1,49]},e(p,[2,18],{22:[1,50]}),e(p,[2,20]),e(p,[2,21]),e(p,[2,22]),e(p,[2,23]),e(p,[2,24]),e(p,[2,25]),e(p,[2,26]),e(p,[2,27]),e(p,[2,28]),e(p,[2,29]),{34:[1,51]},{36:[1,52]},e(p,[2,32]),e(p,[2,48],{51:53,64:56,65:57,13:[1,54],22:[1,55],66:oe,67:le,68:ce,69:he,70:pe,71:Oe,72:we}),{39:[1,65]},e(de,[2,39],{39:[1,67],44:[1,66]}),e(p,[2,50]),e(p,[2,51]),{16:68,58:k,84:m,99:C,101:y},{16:39,18:69,19:40,58:k,84:m,99:C,101:y,102:D},{16:39,18:70,19:40,58:k,84:m,99:C,101:y,102:D},{16:39,18:71,19:40,58:k,84:m,99:C,101:y,102:D},{58:[1,72]},{13:[1,73]},{16:39,18:74,19:40,58:k,84:m,99:C,101:y,102:D},{13:He,53:75},{56:77,58:[1,78]},e(p,[2,61]),e(p,[2,62]),e(p,[2,63]),e(p,[2,64]),e(U,[2,12],{16:39,19:40,18:80,17:[1,79],20:[1,81],58:k,84:m,99:C,101:y,102:D}),e(U,[2,14],{20:[1,82]}),{15:83,16:84,58:k,84:m,99:C,101:y},{16:39,18:85,19:40,58:k,84:m,99:C,101:y,102:D},e(fe,[2,118]),e(fe,[2,119]),e(fe,[2,120]),e(fe,[2,121]),e([1,8,9,12,13,20,22,39,41,44,66,67,68,69,70,71,72,77,79],[2,122]),e(ve,[2,6],{10:5,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,18:21,38:22,43:23,16:39,19:40,5:86,33:i,35:a,37:o,42:u,46:c,47:f,49:b,50:F,52:S,54:Ee,55:Te,58:k,60:Fe,61:De,62:Be,63:_e,73:Se,74:xe,76:Ne,80:Le,81:Ie,84:m,99:C,101:y,102:D}),{5:87,10:5,16:39,18:21,19:40,21:7,23:8,24:9,25:10,26:11,27:12,28:13,29:14,30:15,31:16,32:17,33:i,35:a,37:o,38:22,42:u,43:23,46:c,47:f,49:b,50:F,52:S,54:Ee,55:Te,58:k,60:Fe,61:De,62:Be,63:_e,73:Se,74:xe,76:Ne,80:Le,81:Ie,84:m,99:C,101:y,102:D},e(p,[2,19]),e(p,[2,30]),e(p,[2,31]),{13:[1,89],16:39,18:88,19:40,58:k,84:m,99:C,101:y,102:D},{51:90,64:56,65:57,66:oe,67:le,68:ce,69:he,70:pe,71:Oe,72:we},e(p,[2,49]),{65:91,71:Oe,72:we},e(ge,[2,68],{64:92,66:oe,67:le,68:ce,69:he,70:pe}),e(Q,[2,69]),e(Q,[2,70]),e(Q,[2,71]),e(Q,[2,72]),e(Q,[2,73]),e(qe,[2,74]),e(qe,[2,75]),{8:[1,94],24:95,40:93,43:23,46:c},{16:96,58:k,84:m,99:C,101:y},{45:97,49:Ve},{48:[1,99]},{13:[1,100]},{13:[1,101]},{77:[1,102],79:[1,103]},{22:W,57:104,58:X,80:H,82:105,83:106,84:q,85:J,86:Z,87:$,88:ee,89:te},{58:[1,116]},{13:He,53:117},e(p,[2,57]),e(p,[2,123]),{22:W,57:118,58:X,59:[1,119],80:H,82:105,83:106,84:q,85:J,86:Z,87:$,88:ee,89:te},e(Je,[2,59]),{16:39,18:120,19:40,58:k,84:m,99:C,101:y,102:D},e(U,[2,15]),e(U,[2,16]),e(U,[2,17]),{39:[2,35]},{15:122,16:84,17:[1,121],39:[2,9],58:k,84:m,99:C,101:y},e(Me,[2,43],{11:123,12:[1,124]}),e(ve,[2,7]),{9:[1,125]},e(Ae,[2,52]),{16:39,18:126,19:40,58:k,84:m,99:C,101:y,102:D},{13:[1,128],16:39,18:127,19:40,58:k,84:m,99:C,101:y,102:D},e(ge,[2,67],{64:129,66:oe,67:le,68:ce,69:he,70:pe}),e(ge,[2,66]),{41:[1,130]},{24:95,40:131,43:23,46:c},{8:[1,132],41:[2,36]},e(de,[2,40],{39:[1,133]}),{41:[1,134]},{41:[2,46],45:135,49:Ve},{16:39,18:136,19:40,58:k,84:m,99:C,101:y,102:D},e(p,[2,76],{13:[1,137]}),e(p,[2,78],{13:[1,139],75:[1,138]}),e(p,[2,82],{13:[1,140],78:[1,141]}),{13:[1,142]},e(p,[2,90],{59:Ze}),e($e,[2,92],{83:144,22:W,58:X,80:H,84:q,85:J,86:Z,87:$,88:ee,89:te}),e(N,[2,94]),e(N,[2,96]),e(N,[2,97]),e(N,[2,98]),e(N,[2,99]),e(N,[2,100]),e(N,[2,101]),e(N,[2,102]),e(N,[2,103]),e(N,[2,104]),e(p,[2,91]),e(p,[2,56]),e(p,[2,58],{59:Ze}),{58:[1,145]},e(U,[2,13]),{15:146,16:84,58:k,84:m,99:C,101:y},{39:[2,11]},e(Me,[2,44]),{13:[1,147]},{1:[2,4]},e(Ae,[2,54]),e(Ae,[2,53]),{16:39,18:148,19:40,58:k,84:m,99:C,101:y,102:D},e(ge,[2,65]),e(p,[2,33]),{41:[1,149]},{24:95,40:150,41:[2,37],43:23,46:c},{45:151,49:Ve},e(de,[2,41]),{41:[2,47]},e(p,[2,45]),e(p,[2,77]),e(p,[2,79]),e(p,[2,80],{75:[1,152]}),e(p,[2,83]),e(p,[2,84],{13:[1,153]}),e(p,[2,86],{13:[1,155],75:[1,154]}),{22:W,58:X,80:H,82:156,83:106,84:q,85:J,86:Z,87:$,88:ee,89:te},e(N,[2,95]),e(Je,[2,60]),{39:[2,10]},{14:[1,157]},e(Ae,[2,55]),e(p,[2,34]),{41:[2,38]},{41:[1,158]},e(p,[2,81]),e(p,[2,85]),e(p,[2,87]),e(p,[2,88],{75:[1,159]}),e($e,[2,93],{83:144,22:W,58:X,80:H,84:q,85:J,86:Z,87:$,88:ee,89:te}),e(Me,[2,8]),e(de,[2,42]),e(p,[2,89])],defaultActions:{2:[2,1],3:[2,2],4:[2,3],83:[2,35],122:[2,11],125:[2,4],135:[2,47],146:[2,10],150:[2,38]},parseError:n(function(l,h){if(h.recoverable)this.trace(l);else{var d=new Error(l);throw d.hash=h,d}},"parseError"),parse:n(function(l){var h=this,d=[0],r=[],g=[null],t=[],se=this.table,s="",be=0,et=0,tt=0,_t=2,st=1,St=t.slice.call(arguments,1),E=Object.create(this.lexer),V={yy:{}};for(var Ge in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Ge)&&(V.yy[Ge]=this.yy[Ge]);E.setInput(l,V.yy),V.yy.lexer=E,V.yy.parser=this,typeof E.yylloc>"u"&&(E.yylloc={});var Ue=E.yylloc;t.push(Ue);var xt=E.options&&E.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function us(_){d.length=d.length-2*_,g.length=g.length-_,t.length=t.length-_}n(us,"popStack");function Nt(){var _;return _=r.pop()||E.lex()||st,typeof _!="number"&&(_ instanceof Array&&(r=_,_=r.pop()),_=h.symbols_[_]||_),_}n(Nt,"lex");for(var B,ze,M,x,os,Ke,z={},ke,v,it,me;;){if(M=d[d.length-1],this.defaultActions[M]?x=this.defaultActions[M]:((B===null||typeof B>"u")&&(B=Nt()),x=se[M]&&se[M][B]),typeof x>"u"||!x.length||!x[0]){var Ye="";me=[];for(ke in se[M])this.terminals_[ke]&&ke>_t&&me.push("'"+this.terminals_[ke]+"'");E.showPosition?Ye="Parse error on line "+(be+1)+`: `+E.showPosition()+` Expecting `+me.join(", ")+", got '"+(this.terminals_[B]||B)+"'":Ye="Parse error on line "+(be+1)+": Unexpected "+(B==st?"end of input":"'"+(this.terminals_[B]||B)+"'"),this.parseError(Ye,{text:E.match,token:this.terminals_[B]||B,line:E.yylineno,loc:Ue,expected:me})}if(x[0]instanceof Array&&x.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+B);switch(x[0]){case 1:d.push(B),g.push(E.yytext),t.push(E.yylloc),d.push(x[1]),B=null,ze?(B=ze,ze=null):(et=E.yyleng,s=E.yytext,be=E.yylineno,Ue=E.yylloc,tt>0&&tt--);break;case 2:if(v=this.productions_[x[1]][1],z.$=g[g.length-v],z._$={first_line:t[t.length-(v||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(v||1)].first_column,last_column:t[t.length-1].last_column},xt&&(z._$.range=[t[t.length-(v||1)].range[0],t[t.length-1].range[1]]),Ke=this.performAction.apply(z,[s,et,be,V.yy,x[1],g,t].concat(St)),typeof Ke<"u")return Ke;v&&(d=d.slice(0,-1*v*2),g=g.slice(0,-1*v),t=t.slice(0,-1*v)),d.push(this.productions_[x[1]][0]),g.push(z.$),t.push(z._$),it=se[d[d.length-2]][d[d.length-1]],d.push(it);break;case 3:return!0}}return!0},"parse")},Bt=function(){var O={EOF:1,parseError:n(function(h,d){if(this.yy.parser)this.yy.parser.parseError(h,d);else throw new Error(h)},"parseError"),setInput:n(function(l,h){return this.yy=h||this.yy||{},this._input=l,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var l=this._input[0];this.yytext+=l,this.yyleng++,this.offset++,this.match+=l,this.matched+=l;var h=l.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),l},"input"),unput:n(function(l){var h=l.length,d=l.split(/(?:\r\n?|\n)/g);this._input=l+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var r=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),d.length-1&&(this.yylineno-=d.length-1);var g=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:d?(d.length===r.length?this.yylloc.first_column:0)+r[r.length-d.length].length-d[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[g[0],g[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(l){this.unput(this.match.slice(l))},"less"),pastInput:n(function(){var l=this.matched.substr(0,this.matched.length-this.match.length);return(l.length>20?"...":"")+l.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var l=this.match;return l.length<20&&(l+=this._input.substr(0,20-l.length)),(l.substr(0,20)+(l.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var l=this.pastInput(),h=new Array(l.length+1).join("-");return l+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-EXDBZKZY.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-AFC6EC46.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-EXDBZKZY.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-AFC6EC46.mjs index c66d33680..788bb83de 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-EXDBZKZY.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-AFC6EC46.mjs @@ -1,4 +1,4 @@ -import{o as ie}from"./chunk-2XY5F2HY.mjs";import{I as P,K as ne,L as se,X as re,b as te,ga as v}from"./chunk-ITX3UAHE.mjs";import{a as f}from"./chunk-GTKDMUJJ.mjs";function le(a){for(var e=[],t=1;t{"use strict";var b=1e3,v=b*60,E=v*60,y=E*24,he=y*7,Ce=y*365.25;Q.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return xe(e);if(t==="number"&&isFinite(e))return o.long?we(e):Ie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xe(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*Ce;case"weeks":case"week":case"w":return t*he;case"days":case"day":case"d":return t*y;case"hours":case"hour":case"hrs":case"hr":case"h":return t*E;case"minutes":case"minute":case"mins":case"min":case"m":return t*v;case"seconds":case"second":case"secs":case"sec":case"s":return t*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}i(xe,"parse");function Ie(e){var o=Math.abs(e);return o>=y?Math.round(e/y)+"d":o>=E?Math.round(e/E)+"h":o>=v?Math.round(e/v)+"m":o>=b?Math.round(e/b)+"s":e+"ms"}i(Ie,"fmtShort");function we(e){var o=Math.abs(e);return o>=y?D(e,o,y,"day"):o>=E?D(e,o,E,"hour"):o>=v?D(e,o,v,"minute"):o>=b?D(e,o,b,"second"):e+" ms"}i(we,"fmtLong");function D(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}i(D,"plural")});var ee=P((lt,Y)=>{"use strict";function Fe(e){t.debug=t,t.default=t,t.coerce=h,t.disable=c,t.enable=r,t.enabled=f,t.humanize=X(),t.destroy=C,Object.keys(e).forEach(s=>{t[s]=e[s]}),t.names=[],t.skips=[],t.formatters={};function o(s){let a=0;for(let p=0;p{if(M==="%%")return"%";d++;let H=t.formatters[re];if(typeof H=="function"){let ne=u[d];M=H.call(I,ne),u.splice(d,1),d--}return M}),t.formatArgs.call(I,u),(I.log||t.log).apply(I,u)}return i(m,"debug"),m.namespace=s,m.useColors=t.useColors(),m.color=t.selectColor(s),m.extend=n,m.destroy=t.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:i(()=>p!==null?p:(w!==t.namespaces&&(w=t.namespaces,T=t.enabled(s)),T),"get"),set:i(u=>{p=u},"set")}),typeof t.init=="function"&&t.init(m),m}i(t,"createDebug");function n(s,a){let p=t(this.namespace+(typeof a>"u"?":":a)+s);return p.log=this.log,p}i(n,"extend");function r(s){t.save(s),t.namespaces=s,t.names=[],t.skips=[];let a,p=(typeof s=="string"?s:"").split(/[\s,]+/),w=p.length;for(a=0;a"-"+a)].join(",");return t.enable(""),s}i(c,"disable");function f(s){if(s[s.length-1]==="*")return!0;let a,p;for(a=0,p=t.skips.length;a{"use strict";g.formatArgs=Se;g.save=be;g.load=ve;g.useColors=ye;g.storage=Ee();g.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();g.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ye(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(ye,"useColors");function Se(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+A.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;e.splice(1,0,o,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(n=t))}),e.splice(n,0,o)}i(Se,"formatArgs");g.log=console.debug||console.log||(()=>{});function be(e){try{e?g.storage.setItem("debug",e):g.storage.removeItem("debug")}catch{}}i(be,"save");function ve(){let e;try{e=g.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(ve,"load");function Ee(){try{return localStorage}catch{}}i(Ee,"localstorage");A.exports=ee()(g);var{formatters:Te}=A.exports;Te.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var se=Object.freeze({left:0,top:0,width:16,height:16}),S=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...se,...S}),J=Object.freeze({...L,body:"",hidden:!1});var ce=Object.freeze({width:null,height:null}),B=Object.freeze({...ce,...S});var O=/^[a-z0-9]+(-[a-z0-9]+)*$/,V=i((e,o,t,n="")=>{let r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){let l=r.pop(),h=r.pop(),C={provider:r.length>0?r[0]:n,prefix:h,name:l};return o&&!k(C)?null:C}let c=r[0],f=c.split("-");if(f.length>1){let l={provider:n,prefix:f.shift(),name:f.join("-")};return o&&!k(l)?null:l}if(t&&n===""){let l={provider:n,prefix:"",name:c};return o&&!k(l,t)?null:l}return null},"stringToIcon"),k=i((e,o)=>e?!!((e.provider===""||e.provider.match(O))&&(o&&e.prefix===""||e.prefix.match(O))&&e.name.match(O)):!1,"validateIconName");function K(e,o){let t={};!e.hFlip!=!o.hFlip&&(t.hFlip=!0),!e.vFlip!=!o.vFlip&&(t.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(t.rotate=n),t}i(K,"mergeIconTransformations");function G(e,o){let t=K(e,o);for(let n in J)n in S?n in e&&!(n in t)&&(t[n]=S[n]):n in o?t[n]=o[n]:n in e&&(t[n]=e[n]);return t}i(G,"mergeIconData");function W(e,o){let t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function c(f){if(t[f])return r[f]=[];if(!(f in r)){r[f]=null;let l=n[f]&&n[f].parent,h=l&&c(l);h&&(r[f]=[l].concat(h))}return r[f]}return i(c,"resolve"),(o||Object.keys(t).concat(Object.keys(n))).forEach(c),r}i(W,"getIconsTree");function Z(e,o,t){let n=e.icons,r=e.aliases||Object.create(null),c={};function f(l){c=G(n[l]||r[l],c)}return i(f,"parse"),f(o),t.forEach(f),G(e,c)}i(Z,"internalGetIconData");function z(e,o){if(e.icons[o])return Z(e,o,[]);let t=W(e,[o])[o];return t?Z(e,o,t):null}i(z,"getIconData");var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function N(e,o,t){if(o===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*o*t)/t;if(typeof e!="string")return e;let n=e.split(ae);if(n===null||!n.length)return e;let r=[],c=n.shift(),f=fe.test(c);for(;;){if(f){let l=parseFloat(c);isNaN(l)?r.push(c):r.push(Math.ceil(l*o*t)/t)}else r.push(c);if(c=n.shift(),c===void 0)return r.join("");f=!f}}i(N,"calculateSize");function le(e,o="defs"){let t="",n=e.indexOf("<"+o);for(;n>=0;){let r=e.indexOf(">",n),c=e.indexOf("",c);if(f===-1)break;t+=e.slice(r+1,c).trim(),e=e.slice(0,n).trim()+e.slice(f+1)}return{defs:t,content:e}}i(le,"splitSVGDefs");function ue(e,o){return e?""+e+""+o:o}i(ue,"mergeDefsAndContent");function _(e,o,t){let n=le(e);return ue(n.defs,o+n.content+t)}i(_,"wrapSVGContent");var pe=i(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");function $(e,o){let t={...L,...e},n={...B,...o},r={left:t.left,top:t.top,width:t.width,height:t.height},c=t.body;[t,n].forEach(m=>{let u=[],I=m.hFlip,F=m.vFlip,x=m.rotate;I?F?x+=2:(u.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),u.push("scale(-1 1)"),r.top=r.left=0):F&&(u.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),u.push("scale(1 -1)"),r.top=r.left=0);let d;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:d=r.height/2+r.top,u.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:u.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:d=r.width/2+r.left,u.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}x%2===1&&(r.left!==r.top&&(d=r.left,r.left=r.top,r.top=d),r.width!==r.height&&(d=r.width,r.width=r.height,r.height=d)),u.length&&(c=_(c,'',""))});let f=n.width,l=n.height,h=r.width,C=r.height,s,a;f===null?(a=l===null?"1em":l==="auto"?C:l,s=N(a,h/C)):(s=f==="auto"?h:f,a=l===null?N(s,C/h):l==="auto"?C:l);let p={},w=i((m,u)=>{pe(u)||(p[m]=u.toString())},"setAttr");w("width",s),w("height",a);let T=[r.left,r.top,h,C];return p.viewBox=T.join(" "),{attributes:p,viewBox:T,body:c}}i($,"iconToSVG");var me=/\sid="(\S+)"/g,de="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),ge=0;function U(e,o=de){let t=[],n;for(;n=me.exec(e);)t.push(n[1]);if(!t.length)return e;let r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(c=>{let f=typeof o=="function"?o(c):o+(ge++).toString(),l=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+f+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}i(U,"replaceIDs");function q(e,o){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in o)t+=" "+n+'="'+o[n]+'"';return'"+e+""}i(q,"iconToHTML");var mt=ie(te(),1);var je={body:'?',height:80,width:80},R=new Map,oe=new Map,yt=i(e=>{for(let o of e){if(!o.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(j.debug("Registering icon pack:",o.name),"loader"in o)oe.set(o.name,o.loader);else if("icons"in o)R.set(o.name,o.icons);else throw j.error("Invalid icon loader:",o),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Oe=i(async(e,o)=>{let t=V(e,!0,o!==void 0);if(!t)throw new Error(`Invalid icon name: ${e}`);let n=t.prefix||o;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let r=R.get(n);if(!r){let f=oe.get(n);if(!f)throw new Error(`Icon set not found: ${t.prefix}`);try{r={...await f(),prefix:n},R.set(n,r)}catch(l){throw j.error(l),new Error(`Failed to load icon set: ${t.prefix}`)}}let c=z(r,t.name);if(!c)throw new Error(`Icon not found: ${e}`);return c},"getRegisteredIconData");var St=i(async(e,o)=>{let t;try{t=await Oe(e,o?.fallbackPrefix)}catch(c){j.error(c),t=je}let n=$(t,o);return q(U(n.body),n.attributes)},"getIconSVG");export{je as a,yt as b,St as c}; +import{b as j}from"./chunk-OR2G2HG5.mjs";import{a as i,b as P,e as ie}from"./chunk-GTKDMUJJ.mjs";var X=P((at,Q)=>{"use strict";var b=1e3,v=b*60,E=v*60,y=E*24,he=y*7,Ce=y*365.25;Q.exports=function(e,o){o=o||{};var t=typeof e;if(t==="string"&&e.length>0)return xe(e);if(t==="number"&&isFinite(e))return o.long?we(e):Ie(e);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(e))};function xe(e){if(e=String(e),!(e.length>100)){var o=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(e);if(o){var t=parseFloat(o[1]),n=(o[2]||"ms").toLowerCase();switch(n){case"years":case"year":case"yrs":case"yr":case"y":return t*Ce;case"weeks":case"week":case"w":return t*he;case"days":case"day":case"d":return t*y;case"hours":case"hour":case"hrs":case"hr":case"h":return t*E;case"minutes":case"minute":case"mins":case"min":case"m":return t*v;case"seconds":case"second":case"secs":case"sec":case"s":return t*b;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return t;default:return}}}}i(xe,"parse");function Ie(e){var o=Math.abs(e);return o>=y?Math.round(e/y)+"d":o>=E?Math.round(e/E)+"h":o>=v?Math.round(e/v)+"m":o>=b?Math.round(e/b)+"s":e+"ms"}i(Ie,"fmtShort");function we(e){var o=Math.abs(e);return o>=y?D(e,o,y,"day"):o>=E?D(e,o,E,"hour"):o>=v?D(e,o,v,"minute"):o>=b?D(e,o,b,"second"):e+" ms"}i(we,"fmtLong");function D(e,o,t,n){var r=o>=t*1.5;return Math.round(e/t)+" "+n+(r?"s":"")}i(D,"plural")});var ee=P((lt,Y)=>{"use strict";function Fe(e){t.debug=t,t.default=t,t.coerce=h,t.disable=c,t.enable=r,t.enabled=f,t.humanize=X(),t.destroy=C,Object.keys(e).forEach(s=>{t[s]=e[s]}),t.names=[],t.skips=[],t.formatters={};function o(s){let a=0;for(let p=0;p{if(M==="%%")return"%";d++;let H=t.formatters[re];if(typeof H=="function"){let ne=u[d];M=H.call(I,ne),u.splice(d,1),d--}return M}),t.formatArgs.call(I,u),(I.log||t.log).apply(I,u)}return i(m,"debug"),m.namespace=s,m.useColors=t.useColors(),m.color=t.selectColor(s),m.extend=n,m.destroy=t.destroy,Object.defineProperty(m,"enabled",{enumerable:!0,configurable:!1,get:i(()=>p!==null?p:(w!==t.namespaces&&(w=t.namespaces,T=t.enabled(s)),T),"get"),set:i(u=>{p=u},"set")}),typeof t.init=="function"&&t.init(m),m}i(t,"createDebug");function n(s,a){let p=t(this.namespace+(typeof a>"u"?":":a)+s);return p.log=this.log,p}i(n,"extend");function r(s){t.save(s),t.namespaces=s,t.names=[],t.skips=[];let a,p=(typeof s=="string"?s:"").split(/[\s,]+/),w=p.length;for(a=0;a"-"+a)].join(",");return t.enable(""),s}i(c,"disable");function f(s){if(s[s.length-1]==="*")return!0;let a,p;for(a=0,p=t.skips.length;a{"use strict";g.formatArgs=Se;g.save=be;g.load=ve;g.useColors=ye;g.storage=Ee();g.destroy=(()=>{let e=!1;return()=>{e||(e=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();g.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function ye(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let e;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(e=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(e[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}i(ye,"useColors");function Se(e){if(e[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+e[0]+(this.useColors?"%c ":" ")+"+"+A.exports.humanize(this.diff),!this.useColors)return;let o="color: "+this.color;e.splice(1,0,o,"color: inherit");let t=0,n=0;e[0].replace(/%[a-zA-Z%]/g,r=>{r!=="%%"&&(t++,r==="%c"&&(n=t))}),e.splice(n,0,o)}i(Se,"formatArgs");g.log=console.debug||console.log||(()=>{});function be(e){try{e?g.storage.setItem("debug",e):g.storage.removeItem("debug")}catch{}}i(be,"save");function ve(){let e;try{e=g.storage.getItem("debug")}catch{}return!e&&typeof process<"u"&&"env"in process&&(e=process.env.DEBUG),e}i(ve,"load");function Ee(){try{return localStorage}catch{}}i(Ee,"localstorage");A.exports=ee()(g);var{formatters:Te}=A.exports;Te.j=function(e){try{return JSON.stringify(e)}catch(o){return"[UnexpectedJSONParseError]: "+o.message}}});var se=Object.freeze({left:0,top:0,width:16,height:16}),S=Object.freeze({rotate:0,vFlip:!1,hFlip:!1}),L=Object.freeze({...se,...S}),J=Object.freeze({...L,body:"",hidden:!1});var ce=Object.freeze({width:null,height:null}),B=Object.freeze({...ce,...S});var O=/^[a-z0-9]+(-[a-z0-9]+)*$/,V=i((e,o,t,n="")=>{let r=e.split(":");if(e.slice(0,1)==="@"){if(r.length<2||r.length>3)return null;n=r.shift().slice(1)}if(r.length>3||!r.length)return null;if(r.length>1){let l=r.pop(),h=r.pop(),C={provider:r.length>0?r[0]:n,prefix:h,name:l};return o&&!k(C)?null:C}let c=r[0],f=c.split("-");if(f.length>1){let l={provider:n,prefix:f.shift(),name:f.join("-")};return o&&!k(l)?null:l}if(t&&n===""){let l={provider:n,prefix:"",name:c};return o&&!k(l,t)?null:l}return null},"stringToIcon"),k=i((e,o)=>e?!!((e.provider===""||e.provider.match(O))&&(o&&e.prefix===""||e.prefix.match(O))&&e.name.match(O)):!1,"validateIconName");function K(e,o){let t={};!e.hFlip!=!o.hFlip&&(t.hFlip=!0),!e.vFlip!=!o.vFlip&&(t.vFlip=!0);let n=((e.rotate||0)+(o.rotate||0))%4;return n&&(t.rotate=n),t}i(K,"mergeIconTransformations");function G(e,o){let t=K(e,o);for(let n in J)n in S?n in e&&!(n in t)&&(t[n]=S[n]):n in o?t[n]=o[n]:n in e&&(t[n]=e[n]);return t}i(G,"mergeIconData");function W(e,o){let t=e.icons,n=e.aliases||Object.create(null),r=Object.create(null);function c(f){if(t[f])return r[f]=[];if(!(f in r)){r[f]=null;let l=n[f]&&n[f].parent,h=l&&c(l);h&&(r[f]=[l].concat(h))}return r[f]}return i(c,"resolve"),(o||Object.keys(t).concat(Object.keys(n))).forEach(c),r}i(W,"getIconsTree");function Z(e,o,t){let n=e.icons,r=e.aliases||Object.create(null),c={};function f(l){c=G(n[l]||r[l],c)}return i(f,"parse"),f(o),t.forEach(f),G(e,c)}i(Z,"internalGetIconData");function z(e,o){if(e.icons[o])return Z(e,o,[]);let t=W(e,[o])[o];return t?Z(e,o,t):null}i(z,"getIconData");var ae=/(-?[0-9.]*[0-9]+[0-9.]*)/g,fe=/^-?[0-9.]*[0-9]+[0-9.]*$/g;function N(e,o,t){if(o===1)return e;if(t=t||100,typeof e=="number")return Math.ceil(e*o*t)/t;if(typeof e!="string")return e;let n=e.split(ae);if(n===null||!n.length)return e;let r=[],c=n.shift(),f=fe.test(c);for(;;){if(f){let l=parseFloat(c);isNaN(l)?r.push(c):r.push(Math.ceil(l*o*t)/t)}else r.push(c);if(c=n.shift(),c===void 0)return r.join("");f=!f}}i(N,"calculateSize");function le(e,o="defs"){let t="",n=e.indexOf("<"+o);for(;n>=0;){let r=e.indexOf(">",n),c=e.indexOf("",c);if(f===-1)break;t+=e.slice(r+1,c).trim(),e=e.slice(0,n).trim()+e.slice(f+1)}return{defs:t,content:e}}i(le,"splitSVGDefs");function ue(e,o){return e?""+e+""+o:o}i(ue,"mergeDefsAndContent");function _(e,o,t){let n=le(e);return ue(n.defs,o+n.content+t)}i(_,"wrapSVGContent");var pe=i(e=>e==="unset"||e==="undefined"||e==="none","isUnsetKeyword");function $(e,o){let t={...L,...e},n={...B,...o},r={left:t.left,top:t.top,width:t.width,height:t.height},c=t.body;[t,n].forEach(m=>{let u=[],I=m.hFlip,F=m.vFlip,x=m.rotate;I?F?x+=2:(u.push("translate("+(r.width+r.left).toString()+" "+(0-r.top).toString()+")"),u.push("scale(-1 1)"),r.top=r.left=0):F&&(u.push("translate("+(0-r.left).toString()+" "+(r.height+r.top).toString()+")"),u.push("scale(1 -1)"),r.top=r.left=0);let d;switch(x<0&&(x-=Math.floor(x/4)*4),x=x%4,x){case 1:d=r.height/2+r.top,u.unshift("rotate(90 "+d.toString()+" "+d.toString()+")");break;case 2:u.unshift("rotate(180 "+(r.width/2+r.left).toString()+" "+(r.height/2+r.top).toString()+")");break;case 3:d=r.width/2+r.left,u.unshift("rotate(-90 "+d.toString()+" "+d.toString()+")");break}x%2===1&&(r.left!==r.top&&(d=r.left,r.left=r.top,r.top=d),r.width!==r.height&&(d=r.width,r.width=r.height,r.height=d)),u.length&&(c=_(c,'',""))});let f=n.width,l=n.height,h=r.width,C=r.height,s,a;f===null?(a=l===null?"1em":l==="auto"?C:l,s=N(a,h/C)):(s=f==="auto"?h:f,a=l===null?N(s,C/h):l==="auto"?C:l);let p={},w=i((m,u)=>{pe(u)||(p[m]=u.toString())},"setAttr");w("width",s),w("height",a);let T=[r.left,r.top,h,C];return p.viewBox=T.join(" "),{attributes:p,viewBox:T,body:c}}i($,"iconToSVG");var me=/\sid="(\S+)"/g,de="IconifyId"+Date.now().toString(16)+(Math.random()*16777216|0).toString(16),ge=0;function U(e,o=de){let t=[],n;for(;n=me.exec(e);)t.push(n[1]);if(!t.length)return e;let r="suffix"+(Math.random()*16777216|Date.now()).toString(16);return t.forEach(c=>{let f=typeof o=="function"?o(c):o+(ge++).toString(),l=c.replace(/[.*+?^${}()|[\]\\]/g,"\\$&");e=e.replace(new RegExp('([#;"])('+l+')([")]|\\.[a-z])',"g"),"$1"+f+r+"$3")}),e=e.replace(new RegExp(r,"g"),""),e}i(U,"replaceIDs");function q(e,o){let t=e.indexOf("xlink:")===-1?"":' xmlns:xlink="http://www.w3.org/1999/xlink"';for(let n in o)t+=" "+n+'="'+o[n]+'"';return'"+e+""}i(q,"iconToHTML");var mt=ie(te(),1);var je={body:'?',height:80,width:80},R=new Map,oe=new Map,yt=i(e=>{for(let o of e){if(!o.name)throw new Error('Invalid icon loader. Must have a "name" property with non-empty string value.');if(j.debug("Registering icon pack:",o.name),"loader"in o)oe.set(o.name,o.loader);else if("icons"in o)R.set(o.name,o.icons);else throw j.error("Invalid icon loader:",o),new Error('Invalid icon loader. Must have either "icons" or "loader" property.')}},"registerIconPacks"),Oe=i(async(e,o)=>{let t=V(e,!0,o!==void 0);if(!t)throw new Error(`Invalid icon name: ${e}`);let n=t.prefix||o;if(!n)throw new Error(`Icon name must contain a prefix: ${e}`);let r=R.get(n);if(!r){let f=oe.get(n);if(!f)throw new Error(`Icon set not found: ${t.prefix}`);try{r={...await f(),prefix:n},R.set(n,r)}catch(l){throw j.error(l),new Error(`Failed to load icon set: ${t.prefix}`)}}let c=z(r,t.name);if(!c)throw new Error(`Icon not found: ${e}`);return c},"getRegisteredIconData");var St=i(async(e,o)=>{let t;try{t=await Oe(e,o?.fallbackPrefix)}catch(c){j.error(c),t=je}let n=$(t,o);return q(U(n.body),n.attributes)},"getIconSVG");export{je as a,yt as b,St as c}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-A7EQIZZO.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-E7A2AWYO.mjs similarity index 95% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-A7EQIZZO.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-E7A2AWYO.mjs index e3edc0990..3136979ef 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-A7EQIZZO.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-E7A2AWYO.mjs @@ -1,4 +1,4 @@ -import{a as Lt}from"./chunk-LM6QDVU5.mjs";import{c as at}from"./chunk-HMDXFKD7.mjs";import{d as it}from"./chunk-EXDBZKZY.mjs";import{i as ne,k as le,o as pt,q as X}from"./chunk-2XY5F2HY.mjs";import{A as wt,F as Ot,G as Y,I as Nt,K as oe,L as ae,X as q,_ as ie,b as z,ga as Z,s as re}from"./chunk-ITX3UAHE.mjs";import{a as u}from"./chunk-GTKDMUJJ.mjs";var T=u(async(n,t,o)=>{let r,s=t.useHtmlLabels||Y(q()?.htmlLabels);o?r=o:r="node default";let a=n.insert("g").attr("class",r).attr("id",t.domId||t.id),c=a.insert("g").attr("class","label").attr("style",X(t.labelStyle)),e;t.label===void 0?e="":e=typeof t.label=="string"?t.label:t.label[0];let h=await it(c,Ot(pt(e),q()),{useHtmlLabels:s,width:t.width||q().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img}),i=h.getBBox(),l=(t?.padding??0)/2;if(s){let p=h.children[0],f=Z(h),m=p.getElementsByTagName("img");if(m){let g=e.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(d=>new Promise(x=>{function y(){if(d.style.display="flex",d.style.flexDirection="column",g){let b=q().fontSize?q().fontSize:window.getComputedStyle(document.body).fontSize,S=5,[$=re.fontSize]=le(b),w=$*S+"px";d.style.minWidth=w,d.style.maxWidth=w}else d.style.width="100%";x(d)}u(y,"setupImage"),setTimeout(()=>{d.complete&&y()}),d.addEventListener("error",y),d.addEventListener("load",y)})))}i=p.getBoundingClientRect(),f.attr("width",i.width),f.attr("height",i.height)}return s?c.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):c.attr("transform","translate(0, "+-i.height/2+")"),t.centerLabel&&c.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:a,bbox:i,halfPadding:l,label:c}},"labelHelper"),Dt=u(async(n,t,o)=>{let r=o.useHtmlLabels||Y(q()?.flowchart?.htmlLabels),s=n.insert("g").attr("class","label").attr("style",o.labelStyle||""),a=await it(s,Ot(pt(t),q()),{useHtmlLabels:r,width:o.width||q()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),c=a.getBBox(),e=o.padding/2;if(Y(q()?.flowchart?.htmlLabels)){let h=a.children[0],i=Z(a);c=h.getBoundingClientRect(),i.attr("width",c.width),i.attr("height",c.height)}return r?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),o.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:n,bbox:c,halfPadding:e,label:s}},"insertLabel"),v=u((n,t)=>{let o=t.node().getBBox();n.width=o.width,n.height=o.height},"updateNodeBounds");var P=u((n,t)=>(n.look==="handDrawn"?"rough-node":"node")+" "+n.cssClasses+" "+(t||""),"getNodeClasses");function H(n){let t=n.map((o,r)=>`${r===0?"M":"L"}${o.x},${o.y}`);return t.push("Z"),t.join(" ")}u(H,"createPathFromPoints");function st(n,t,o,r,s,a){let c=[],h=o-n,i=r-t,l=h/a,p=2*Math.PI/l,f=t+i/2;for(let m=0;m<=50;m++){let g=m/50,d=n+g*h,x=f+s*Math.sin(p*(d-n));c.push({x:d,y:x})}return c}u(st,"generateFullSineWavePoints");function Mt(n,t,o,r,s,a){let c=[],e=s*Math.PI/180,l=(a*Math.PI/180-e)/(r-1);for(let p=0;p2&&f.push(S)}let m=[];l=Math.max(l,.1);let g=[];for(let b of f)for(let S=0;Sb.yminS.ymin?1:b.xS.x?1:b.ymax===S.ymax?0:(b.ymax-S.ymax)/Math.abs(b.ymax-S.ymax)),!g.length)return m;let d=[],x=g[0].ymin,y=0;for(;d.length||g.length;){if(g.length){let b=-1;for(let S=0;Sx);S++)b=S;g.splice(0,b+1).forEach(S=>{d.push({s:x,edge:S})})}if(d=d.filter(b=>!(b.edge.ymax<=x)),d.sort((b,S)=>b.edge.x===S.edge.x?0:(b.edge.x-S.edge.x)/Math.abs(b.edge.x-S.edge.x)),(p!==1||y%l==0)&&d.length>1)for(let b=0;b=d.length)break;let $=d[b].edge,w=d[S].edge;m.push([[Math.round($.x),x],[Math.round(w.x),x]])}x+=p,d.forEach(b=>{b.edge.x=b.edge.x+p*b.edge.islope}),y++}return m}(c,a,r);if(s){for(let i of c)Ht(i,e,-s);(function(i,l,p){let f=[];i.forEach(m=>f.push(...m)),Ht(f,l,p)})(h,e,-s)}return h}u(Ls,"s");function bt(n,t){var o;let r=t.hachureAngle+90,s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let a=1;return t.roughness>=1&&(((o=t.randomizer)===null||o===void 0?void 0:o.next())||Math.random())>.7&&(a=s),Ls(n,s,r,a||1)}u(bt,"n");var xt=class{static{u(this,"o")}constructor(t){this.helper=t}fillPolygons(t,o){return this._fillPolygons(t,o)}_fillPolygons(t,o){let r=bt(t,o);return{type:"fillSketch",ops:this.renderLines(r,o)}}renderLines(t,o){let r=[];for(let s of t)r.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],o));return r}};function Gt(n){let t=n[0],o=n[1];return Math.sqrt(Math.pow(t[0]-o[0],2)+Math.pow(t[1]-o[1],2))}u(Gt,"a");var _t=class extends xt{static{u(this,"h")}fillPolygons(t,o){let r=o.hachureGap;r<0&&(r=4*o.strokeWidth),r=Math.max(r,.1);let s=bt(t,Object.assign({},o,{hachureGap:r})),a=Math.PI/180*o.hachureAngle,c=[],e=.5*r*Math.cos(a),h=.5*r*Math.sin(a);for(let[i,l]of s)Gt([i,l])&&c.push([[i[0]-e,i[1]+h],[...l]],[[i[0]+e,i[1]-h],[...l]]);return{type:"fillSketch",ops:this.renderLines(c,o)}}},zt=class extends xt{static{u(this,"r")}fillPolygons(t,o){let r=this._fillPolygons(t,o),s=Object.assign({},o,{hachureAngle:o.hachureAngle+90}),a=this._fillPolygons(t,s);return r.ops=r.ops.concat(a.ops),r}},qt=class{static{u(this,"i")}constructor(t){this.helper=t}fillPolygons(t,o){let r=bt(t,o=Object.assign({},o,{hachureAngle:0}));return this.dotsOnLines(r,o)}dotsOnLines(t,o){let r=[],s=o.hachureGap;s<0&&(s=4*o.strokeWidth),s=Math.max(s,.1);let a=o.fillWeight;a<0&&(a=o.strokeWidth/2);let c=s/4;for(let e of t){let h=Gt(e),i=h/s,l=Math.ceil(i)-1,p=h-l*s,f=(e[0][0]+e[1][0])/2-s/4,m=Math.min(e[0][1],e[1][1]);for(let g=0;g{let e=Gt(c),h=Math.floor(e/(r+s)),i=(e+s-h*(r+s))/2,l=c[0],p=c[1];l[0]>p[0]&&(l=c[1],p=c[0]);let f=Math.atan((p[1]-l[1])/(p[0]-l[0]));for(let m=0;m{let c=Gt(a),e=Math.round(c/(2*o)),h=a[0],i=a[1];h[0]>i[0]&&(h=a[1],i=a[0]);let l=Math.atan((i[1]-h[1])/(i[0]-h[0]));for(let p=0;pl%2?i+o:i+t);a.push({key:"C",data:h}),t=h[4],o=h[5];break}case"Q":a.push({key:"Q",data:[...e]}),t=e[2],o=e[3];break;case"q":{let h=e.map((i,l)=>l%2?i+o:i+t);a.push({key:"Q",data:h}),t=h[2],o=h[3];break}case"A":a.push({key:"A",data:[...e]}),t=e[5],o=e[6];break;case"a":t+=e[5],o+=e[6],a.push({key:"A",data:[e[0],e[1],e[2],e[3],e[4],t,o]});break;case"H":a.push({key:"H",data:[...e]}),t=e[0];break;case"h":t+=e[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...e]}),o=e[0];break;case"v":o+=e[0],a.push({key:"V",data:[o]});break;case"S":a.push({key:"S",data:[...e]}),t=e[2],o=e[3];break;case"s":{let h=e.map((i,l)=>l%2?i+o:i+t);a.push({key:"S",data:h}),t=h[2],o=h[3];break}case"T":a.push({key:"T",data:[...e]}),t=e[0],o=e[1];break;case"t":t+=e[0],o+=e[1],a.push({key:"T",data:[t,o]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,o=s}return a}u(ye,"y");function xe(n){let t=[],o="",r=0,s=0,a=0,c=0,e=0,h=0;for(let{key:i,data:l}of n){switch(i){case"M":t.push({key:"M",data:[...l]}),[r,s]=l,[a,c]=l;break;case"C":t.push({key:"C",data:[...l]}),r=l[4],s=l[5],e=l[2],h=l[3];break;case"L":t.push({key:"L",data:[...l]}),[r,s]=l;break;case"H":r=l[0],t.push({key:"L",data:[r,s]});break;case"V":s=l[0],t.push({key:"L",data:[r,s]});break;case"S":{let p=0,f=0;o==="C"||o==="S"?(p=r+(r-e),f=s+(s-h)):(p=r,f=s),t.push({key:"C",data:[p,f,...l]}),e=l[0],h=l[1],r=l[2],s=l[3];break}case"T":{let[p,f]=l,m=0,g=0;o==="Q"||o==="T"?(m=r+(r-e),g=s+(s-h)):(m=r,g=s);let d=r+2*(m-r)/3,x=s+2*(g-s)/3,y=p+2*(m-p)/3,b=f+2*(g-f)/3;t.push({key:"C",data:[d,x,y,b,p,f]}),e=m,h=g,r=p,s=f;break}case"Q":{let[p,f,m,g]=l,d=r+2*(p-r)/3,x=s+2*(f-s)/3,y=m+2*(p-m)/3,b=g+2*(f-g)/3;t.push({key:"C",data:[d,x,y,b,m,g]}),e=p,h=f,r=m,s=g;break}case"A":{let p=Math.abs(l[0]),f=Math.abs(l[1]),m=l[2],g=l[3],d=l[4],x=l[5],y=l[6];p===0||f===0?(t.push({key:"C",data:[r,s,x,y,x,y]}),r=x,s=y):(r!==x||s!==y)&&(be(r,s,x,y,p,f,m,g,d).forEach(function(b){t.push({key:"C",data:b})}),r=x,s=y);break}case"Z":t.push({key:"Z",data:[]}),r=a,s=c}o=i}return t}u(xe,"m");function ut(n,t,o){return[n*Math.cos(o)-t*Math.sin(o),n*Math.sin(o)+t*Math.cos(o)]}u(ut,"w");function be(n,t,o,r,s,a,c,e,h,i){let l=(p=c,Math.PI*p/180);var p;let f=[],m=0,g=0,d=0,x=0;if(i)[m,g,d,x]=i;else{[n,t]=ut(n,t,-l),[o,r]=ut(o,r,-l);let G=(n-o)/2,L=(t-r)/2,V=G*G/(s*s)+L*L/(a*a);V>1&&(V=Math.sqrt(V),s*=V,a*=V);let E=s*s,I=a*a,_=E*I-E*L*L-I*G*G,U=E*L*L+I*G*G,rt=(e===h?-1:1)*Math.sqrt(Math.abs(_/U));d=rt*s*L/a+(n+o)/2,x=rt*-a*G/s+(t+r)/2,m=Math.asin(parseFloat(((t-x)/a).toFixed(9))),g=Math.asin(parseFloat(((r-x)/a).toFixed(9))),ng&&(m-=2*Math.PI),!h&&g>m&&(g-=2*Math.PI)}let y=g-m;if(Math.abs(y)>120*Math.PI/180){let G=g,L=o,V=r;g=h&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,f=be(o=d+s*Math.cos(g),r=x+a*Math.sin(g),L,V,s,a,c,0,h,[g,G,d,x])}y=g-m;let b=Math.cos(m),S=Math.sin(m),$=Math.cos(g),w=Math.sin(g),C=Math.tan(y/4),B=4/3*s*C,R=4/3*a*C,j=[n,t],A=[n+B*S,t-R*b],O=[o+B*w,r-R*$],W=[o,r];if(A[0]=2*j[0]-A[0],A[1]=2*j[1]-A[1],i)return[A,O,W].concat(f);{f=[A,O,W].concat(f);let G=[];for(let L=0;L2){let s=[];for(let a=0;a2*Math.PI&&(m=0,g=2*Math.PI);let d=2*Math.PI/h.curveStepCount,x=Math.min(d/2,(g-m)/2),y=de(x,i,l,p,f,m,g,1,h);if(!h.disableMultiStroke){let b=de(x,i,l,p,f,m,g,1.5,h);y.push(...b)}return c&&(e?y.push(...nt(i,l,i+p*Math.cos(m),l+f*Math.sin(m),h),...nt(i,l,i+p*Math.cos(g),l+f*Math.sin(g),h)):y.push({op:"lineTo",data:[i,l]},{op:"lineTo",data:[i+p*Math.cos(m),l+f*Math.sin(m)]})),{type:"path",ops:y}}u(pe,"A");function me(n,t){let o=xe(ye(ee(n))),r=[],s=[0,0],a=[0,0];for(let{key:c,data:e}of o)switch(c){case"M":a=[e[0],e[1]],s=[e[0],e[1]];break;case"L":r.push(...nt(a[0],a[1],e[0],e[1],t)),a=[e[0],e[1]];break;case"C":{let[h,i,l,p,f,m]=e;r.push(...Is(h,i,l,p,f,m,a,t)),a=[f,m];break}case"Z":r.push(...nt(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]]}return{type:"path",ops:r}}u(me,"_");function It(n,t){let o=[];for(let r of n)if(r.length){let s=t.maxRandomnessOffset||0,a=r.length;if(a>2){o.push({op:"move",data:[r[0][0]+F(s,t),r[0][1]+F(s,t)]});for(let c=1;c500?.4:-.0016668*h+1.233334;let l=s.maxRandomnessOffset||0;l*l*100>e&&(l=h/10);let p=l/2,f=.2+.2*Ne(s),m=s.bowing*s.maxRandomnessOffset*(r-t)/200,g=s.bowing*s.maxRandomnessOffset*(n-o)/200;m=F(m,s,i),g=F(g,s,i);let d=[],x=u(()=>F(p,s,i),"M"),y=u(()=>F(l,s,i),"k"),b=s.preserveVertices;return a&&(c?d.push({op:"move",data:[n+(b?0:x()),t+(b?0:x())]}):d.push({op:"move",data:[n+(b?0:F(l,s,i)),t+(b?0:F(l,s,i))]})),c?d.push({op:"bcurveTo",data:[m+n+(o-n)*f+x(),g+t+(r-t)*f+x(),m+n+2*(o-n)*f+x(),g+t+2*(r-t)*f+x(),o+(b?0:x()),r+(b?0:x())]}):d.push({op:"bcurveTo",data:[m+n+(o-n)*f+y(),g+t+(r-t)*f+y(),m+n+2*(o-n)*f+y(),g+t+2*(r-t)*f+y(),o+(b?0:y()),r+(b?0:y())]}),d}u(Qt,"R");function kt(n,t,o){if(!n.length)return[];let r=[];r.push([n[0][0]+F(t,o),n[0][1]+F(t,o)]),r.push([n[0][0]+F(t,o),n[0][1]+F(t,o)]);for(let s=1;s3){let a=[],c=1-o.curveTightness;s.push({op:"move",data:[n[1][0],n[1][1]]});for(let e=1;e+21&&s.push(e)):s.push(e),s.push(n[t+3])}else{let h=n[t+0],i=n[t+1],l=n[t+2],p=n[t+3],f=mt(h,i,.5),m=mt(i,l,.5),g=mt(l,p,.5),d=mt(f,m,.5),x=mt(m,g,.5),y=mt(d,x,.5);Jt([h,f,d,y],0,o,s),Jt([y,x,g,p],0,o,s)}var a,c;return s}u(Jt,"K");function _s(n,t){return Rt(n,0,n.length,t)}u(_s,"U");function Rt(n,t,o,r,s){let a=s||[],c=n[t],e=n[o-1],h=0,i=1;for(let l=t+1;lh&&(h=p,i=l)}return Math.sqrt(h)>r?(Rt(n,t,i+1,r,a),Rt(n,i,o,r,a)):(a.length||a.push(c),a.push(e)),a}u(Rt,"X");function Ft(n,t=.15,o){let r=[],s=(n.length-1)/3;for(let a=0;a0?Rt(r,0,r.length,o):r}u(Ft,"Y");var et="none",dt=class{static{u(this,"et")}constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,o,r){return{shape:t,sets:o||[],options:r||this.defaultOptions}}line(t,o,r,s,a){let c=this._o(a);return this._d("line",[Se(t,o,r,s,c)],c)}rectangle(t,o,r,s,a){let c=this._o(a),e=[],h=Ws(t,o,r,s,c);if(c.fill){let i=[[t,o],[t+r,o],[t+r,o+s],[t,o+s]];c.fillStyle==="solid"?e.push(It([i],c)):e.push(gt([i],c))}return c.stroke!==et&&e.push(h),this._d("rectangle",e,c)}ellipse(t,o,r,s,a){let c=this._o(a),e=[],h=we(r,s,c),i=Ut(t,o,c,h);if(c.fill)if(c.fillStyle==="solid"){let l=Ut(t,o,c,h).opset;l.type="fillPath",e.push(l)}else e.push(gt([i.estimatedPoints],c));return c.stroke!==et&&e.push(i.opset),this._d("ellipse",e,c)}circle(t,o,r,s){let a=this.ellipse(t,o,r,r,s);return a.shape="circle",a}linearPath(t,o){let r=this._o(o);return this._d("linearPath",[Pt(t,!1,r)],r)}arc(t,o,r,s,a,c,e=!1,h){let i=this._o(h),l=[],p=pe(t,o,r,s,a,c,e,!0,i);if(e&&i.fill)if(i.fillStyle==="solid"){let f=Object.assign({},i);f.disableMultiStroke=!0;let m=pe(t,o,r,s,a,c,!0,!1,f);m.type="fillPath",l.push(m)}else l.push(function(f,m,g,d,x,y,b){let S=f,$=m,w=Math.abs(g/2),C=Math.abs(d/2);w+=F(.01*w,b),C+=F(.01*C,b);let B=x,R=y;for(;B<0;)B+=2*Math.PI,R+=2*Math.PI;R-B>2*Math.PI&&(B=0,R=2*Math.PI);let j=(R-B)/b.curveStepCount,A=[];for(let O=B;O<=R;O+=j)A.push([S+w*Math.cos(O),$+C*Math.sin(O)]);return A.push([S+w*Math.cos(R),$+C*Math.sin(R)]),A.push([S,$]),gt([A],b)}(t,o,r,s,a,c,i));return i.stroke!==et&&l.push(p),this._d("arc",l,i)}curve(t,o){let r=this._o(o),s=[],a=he(t,r);if(r.fill&&r.fill!==et)if(r.fillStyle==="solid"){let c=he(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else{let c=[],e=t;if(e.length){let h=typeof e[0][0]=="number"?[e]:e;for(let i of h)i.length<3?c.push(...i):i.length===3?c.push(...Ft(ue([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):c.push(...Ft(ue(i),10,(1+r.roughness)/2))}c.length&&s.push(gt([c],r))}return r.stroke!==et&&s.push(a),this._d("curve",s,r)}polygon(t,o){let r=this._o(o),s=[],a=Pt(t,!0,r);return r.fill&&(r.fillStyle==="solid"?s.push(It([t],r)):s.push(gt([t],r))),r.stroke!==et&&s.push(a),this._d("polygon",s,r)}path(t,o){let r=this._o(o),s=[];if(!t)return this._d("path",s,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=r.fill&&r.fill!=="transparent"&&r.fill!==et,c=r.stroke!==et,e=!!(r.simplification&&r.simplification<1),h=function(l,p,f){let m=xe(ye(ee(l))),g=[],d=[],x=[0,0],y=[],b=u(()=>{y.length>=4&&d.push(...Ft(y,p)),y=[]},"i"),S=u(()=>{b(),d.length&&(g.push(d),d=[])},"c");for(let{key:w,data:C}of m)switch(w){case"M":S(),x=[C[0],C[1]],d.push(x);break;case"L":b(),d.push([C[0],C[1]]);break;case"C":if(!y.length){let B=d.length?d[d.length-1]:x;y.push([B[0],B[1]])}y.push([C[0],C[1]]),y.push([C[2],C[3]]),y.push([C[4],C[5]]);break;case"Z":b(),d.push([x[0],x[1]])}if(S(),!f)return g;let $=[];for(let w of g){let C=_s(w,f);C.length&&$.push(C)}return $}(t,1,e?4-4*(r.simplification||1):(1+r.roughness)/2),i=me(t,r);if(a)if(r.fillStyle==="solid")if(h.length===1){let l=me(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(l.ops)})}else s.push(It(h,r));else s.push(gt(h,r));return c&&(e?h.forEach(l=>{s.push(Pt(l,!1,r))}):s.push(i)),this._d("path",s,r)}opsToPath(t,o){let r="";for(let s of t.ops){let a=typeof o=="number"&&o>=0?s.data.map(c=>+c.toFixed(o)):s.data;switch(s.op){case"move":r+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":r+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":r+=`L${a[0]} ${a[1]} `}}return r.trim()}toPaths(t){let o=t.sets||[],r=t.options||this.defaultOptions,s=[];for(let a of o){let c=null;switch(a.type){case"path":c={d:this.opsToPath(a),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:et};break;case"fillPath":c={d:this.opsToPath(a),stroke:et,strokeWidth:0,fill:r.fill||et};break;case"fillSketch":c=this.fillSketch(a,r)}c&&s.push(c)}return s}fillSketch(t,o){let r=o.fillWeight;return r<0&&(r=o.strokeWidth/2),{d:this.opsToPath(t),stroke:o.fill||et,strokeWidth:r,fill:et}}_mergedShape(t){return t.filter((o,r)=>r===0||o.op!=="move")}},Kt=class{static{u(this,"st")}constructor(t,o){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new dt(o)}draw(t){let o=t.sets||[],r=t.options||this.getDefaultOptions(),s=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let c of o)switch(c.type){case"path":s.save(),s.strokeStyle=r.stroke==="none"?"transparent":r.stroke,s.lineWidth=r.strokeWidth,r.strokeLineDash&&s.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(s.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(s,c,a),s.restore();break;case"fillPath":{s.save(),s.fillStyle=r.fill||"";let e=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,c,a,e),s.restore();break}case"fillSketch":this.fillSketch(s,c,r)}}fillSketch(t,o,r){let s=r.fillWeight;s<0&&(s=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=s,this._drawToContext(t,o,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,o,r,s="nonzero"){t.beginPath();for(let a of o.ops){let c=typeof r=="number"&&r>=0?a.data.map(e=>+e.toFixed(r)):a.data;switch(a.op){case"move":t.moveTo(c[0],c[1]);break;case"bcurveTo":t.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);break;case"lineTo":t.lineTo(c[0],c[1])}}o.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,o,r,s,a){let c=this.gen.line(t,o,r,s,a);return this.draw(c),c}rectangle(t,o,r,s,a){let c=this.gen.rectangle(t,o,r,s,a);return this.draw(c),c}ellipse(t,o,r,s,a){let c=this.gen.ellipse(t,o,r,s,a);return this.draw(c),c}circle(t,o,r,s){let a=this.gen.circle(t,o,r,s);return this.draw(a),a}linearPath(t,o){let r=this.gen.linearPath(t,o);return this.draw(r),r}polygon(t,o){let r=this.gen.polygon(t,o);return this.draw(r),r}arc(t,o,r,s,a,c,e=!1,h){let i=this.gen.arc(t,o,r,s,a,c,e,h);return this.draw(i),i}curve(t,o){let r=this.gen.curve(t,o);return this.draw(r),r}path(t,o){let r=this.gen.path(t,o);return this.draw(r),r}},$t="http://www.w3.org/2000/svg",te=class{static{u(this,"ot")}constructor(t,o){this.svg=t,this.gen=new dt(o)}draw(t){let o=t.sets||[],r=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,a=s.createElementNS($t,"g"),c=t.options.fixedDecimalPlaceDigits;for(let e of o){let h=null;switch(e.type){case"path":h=s.createElementNS($t,"path"),h.setAttribute("d",this.opsToPath(e,c)),h.setAttribute("stroke",r.stroke),h.setAttribute("stroke-width",r.strokeWidth+""),h.setAttribute("fill","none"),r.strokeLineDash&&h.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":h=s.createElementNS($t,"path"),h.setAttribute("d",this.opsToPath(e,c)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",r.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(s,e,r)}h&&a.appendChild(h)}return a}fillSketch(t,o,r){let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);let a=t.createElementNS($t,"path");return a.setAttribute("d",this.opsToPath(o,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",s+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,o){return this.gen.opsToPath(t,o)}line(t,o,r,s,a){let c=this.gen.line(t,o,r,s,a);return this.draw(c)}rectangle(t,o,r,s,a){let c=this.gen.rectangle(t,o,r,s,a);return this.draw(c)}ellipse(t,o,r,s,a){let c=this.gen.ellipse(t,o,r,s,a);return this.draw(c)}circle(t,o,r,s){let a=this.gen.circle(t,o,r,s);return this.draw(a)}linearPath(t,o){let r=this.gen.linearPath(t,o);return this.draw(r)}polygon(t,o){let r=this.gen.polygon(t,o);return this.draw(r)}arc(t,o,r,s,a,c,e=!1,h){let i=this.gen.arc(t,o,r,s,a,c,e,h);return this.draw(i)}curve(t,o){let r=this.gen.curve(t,o);return this.draw(r)}path(t,o){let r=this.gen.path(t,o);return this.draw(r)}},D={canvas:u((n,t)=>new Kt(n,t),"canvas"),svg:u((n,t)=>new te(n,t),"svg"),generator:u(n=>new dt(n),"generator"),newSeed:u(()=>dt.newSeed(),"newSeed")};var zs=u((n,t)=>{var o=n.x,r=n.y,s=t.x-o,a=t.y-r,c=n.width/2,e=n.height/2,h,i;return Math.abs(a)*c>Math.abs(s)*e?(a<0&&(e=-e),h=a===0?0:e*s/a,i=e):(s<0&&(c=-c),h=c,i=s===0?0:c*a/s),{x:o+h,y:r+i}},"intersectRect"),lt=zs;function qs(n,t){t&&n.attr("style",t)}u(qs,"applyStyle");async function Xs(n){let t=Z(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),o=t.append("xhtml:div"),r=n.label;n.label&&Nt(n.label)&&(r=await oe(n.label.replace(ae.lineBreakRegex,` +import{a as Lt}from"./chunk-LM6QDVU5.mjs";import{c as at}from"./chunk-D4BOYBYT.mjs";import{d as it}from"./chunk-AFC6EC46.mjs";import{i as ne,k as le,o as pt,q as X}from"./chunk-UENA7NWE.mjs";import{A as wt,F as Ot,G as Y,I as Nt,K as oe,L as ae,X as q,_ as ie,b as z,ga as Z,s as re}from"./chunk-OR2G2HG5.mjs";import{a as u}from"./chunk-GTKDMUJJ.mjs";var T=u(async(n,t,o)=>{let r,s=t.useHtmlLabels||Y(q()?.htmlLabels);o?r=o:r="node default";let a=n.insert("g").attr("class",r).attr("id",t.domId||t.id),c=a.insert("g").attr("class","label").attr("style",X(t.labelStyle)),e;t.label===void 0?e="":e=typeof t.label=="string"?t.label:t.label[0];let h=await it(c,Ot(pt(e),q()),{useHtmlLabels:s,width:t.width||q().flowchart?.wrappingWidth,cssClasses:"markdown-node-label",style:t.labelStyle,addSvgBackground:!!t.icon||!!t.img}),i=h.getBBox(),l=(t?.padding??0)/2;if(s){let p=h.children[0],f=Z(h),m=p.getElementsByTagName("img");if(m){let g=e.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(d=>new Promise(x=>{function y(){if(d.style.display="flex",d.style.flexDirection="column",g){let b=q().fontSize?q().fontSize:window.getComputedStyle(document.body).fontSize,S=5,[$=re.fontSize]=le(b),w=$*S+"px";d.style.minWidth=w,d.style.maxWidth=w}else d.style.width="100%";x(d)}u(y,"setupImage"),setTimeout(()=>{d.complete&&y()}),d.addEventListener("error",y),d.addEventListener("load",y)})))}i=p.getBoundingClientRect(),f.attr("width",i.width),f.attr("height",i.height)}return s?c.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"):c.attr("transform","translate(0, "+-i.height/2+")"),t.centerLabel&&c.attr("transform","translate("+-i.width/2+", "+-i.height/2+")"),c.insert("rect",":first-child"),{shapeSvg:a,bbox:i,halfPadding:l,label:c}},"labelHelper"),Dt=u(async(n,t,o)=>{let r=o.useHtmlLabels||Y(q()?.flowchart?.htmlLabels),s=n.insert("g").attr("class","label").attr("style",o.labelStyle||""),a=await it(s,Ot(pt(t),q()),{useHtmlLabels:r,width:o.width||q()?.flowchart?.wrappingWidth,style:o.labelStyle,addSvgBackground:!!o.icon||!!o.img}),c=a.getBBox(),e=o.padding/2;if(Y(q()?.flowchart?.htmlLabels)){let h=a.children[0],i=Z(a);c=h.getBoundingClientRect(),i.attr("width",c.width),i.attr("height",c.height)}return r?s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"):s.attr("transform","translate(0, "+-c.height/2+")"),o.centerLabel&&s.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),s.insert("rect",":first-child"),{shapeSvg:n,bbox:c,halfPadding:e,label:s}},"insertLabel"),v=u((n,t)=>{let o=t.node().getBBox();n.width=o.width,n.height=o.height},"updateNodeBounds");var P=u((n,t)=>(n.look==="handDrawn"?"rough-node":"node")+" "+n.cssClasses+" "+(t||""),"getNodeClasses");function H(n){let t=n.map((o,r)=>`${r===0?"M":"L"}${o.x},${o.y}`);return t.push("Z"),t.join(" ")}u(H,"createPathFromPoints");function st(n,t,o,r,s,a){let c=[],h=o-n,i=r-t,l=h/a,p=2*Math.PI/l,f=t+i/2;for(let m=0;m<=50;m++){let g=m/50,d=n+g*h,x=f+s*Math.sin(p*(d-n));c.push({x:d,y:x})}return c}u(st,"generateFullSineWavePoints");function Mt(n,t,o,r,s,a){let c=[],e=s*Math.PI/180,l=(a*Math.PI/180-e)/(r-1);for(let p=0;p2&&f.push(S)}let m=[];l=Math.max(l,.1);let g=[];for(let b of f)for(let S=0;Sb.yminS.ymin?1:b.xS.x?1:b.ymax===S.ymax?0:(b.ymax-S.ymax)/Math.abs(b.ymax-S.ymax)),!g.length)return m;let d=[],x=g[0].ymin,y=0;for(;d.length||g.length;){if(g.length){let b=-1;for(let S=0;Sx);S++)b=S;g.splice(0,b+1).forEach(S=>{d.push({s:x,edge:S})})}if(d=d.filter(b=>!(b.edge.ymax<=x)),d.sort((b,S)=>b.edge.x===S.edge.x?0:(b.edge.x-S.edge.x)/Math.abs(b.edge.x-S.edge.x)),(p!==1||y%l==0)&&d.length>1)for(let b=0;b=d.length)break;let $=d[b].edge,w=d[S].edge;m.push([[Math.round($.x),x],[Math.round(w.x),x]])}x+=p,d.forEach(b=>{b.edge.x=b.edge.x+p*b.edge.islope}),y++}return m}(c,a,r);if(s){for(let i of c)Ht(i,e,-s);(function(i,l,p){let f=[];i.forEach(m=>f.push(...m)),Ht(f,l,p)})(h,e,-s)}return h}u(Ls,"s");function bt(n,t){var o;let r=t.hachureAngle+90,s=t.hachureGap;s<0&&(s=4*t.strokeWidth),s=Math.round(Math.max(s,.1));let a=1;return t.roughness>=1&&(((o=t.randomizer)===null||o===void 0?void 0:o.next())||Math.random())>.7&&(a=s),Ls(n,s,r,a||1)}u(bt,"n");var xt=class{static{u(this,"o")}constructor(t){this.helper=t}fillPolygons(t,o){return this._fillPolygons(t,o)}_fillPolygons(t,o){let r=bt(t,o);return{type:"fillSketch",ops:this.renderLines(r,o)}}renderLines(t,o){let r=[];for(let s of t)r.push(...this.helper.doubleLineOps(s[0][0],s[0][1],s[1][0],s[1][1],o));return r}};function Gt(n){let t=n[0],o=n[1];return Math.sqrt(Math.pow(t[0]-o[0],2)+Math.pow(t[1]-o[1],2))}u(Gt,"a");var _t=class extends xt{static{u(this,"h")}fillPolygons(t,o){let r=o.hachureGap;r<0&&(r=4*o.strokeWidth),r=Math.max(r,.1);let s=bt(t,Object.assign({},o,{hachureGap:r})),a=Math.PI/180*o.hachureAngle,c=[],e=.5*r*Math.cos(a),h=.5*r*Math.sin(a);for(let[i,l]of s)Gt([i,l])&&c.push([[i[0]-e,i[1]+h],[...l]],[[i[0]+e,i[1]-h],[...l]]);return{type:"fillSketch",ops:this.renderLines(c,o)}}},zt=class extends xt{static{u(this,"r")}fillPolygons(t,o){let r=this._fillPolygons(t,o),s=Object.assign({},o,{hachureAngle:o.hachureAngle+90}),a=this._fillPolygons(t,s);return r.ops=r.ops.concat(a.ops),r}},qt=class{static{u(this,"i")}constructor(t){this.helper=t}fillPolygons(t,o){let r=bt(t,o=Object.assign({},o,{hachureAngle:0}));return this.dotsOnLines(r,o)}dotsOnLines(t,o){let r=[],s=o.hachureGap;s<0&&(s=4*o.strokeWidth),s=Math.max(s,.1);let a=o.fillWeight;a<0&&(a=o.strokeWidth/2);let c=s/4;for(let e of t){let h=Gt(e),i=h/s,l=Math.ceil(i)-1,p=h-l*s,f=(e[0][0]+e[1][0])/2-s/4,m=Math.min(e[0][1],e[1][1]);for(let g=0;g{let e=Gt(c),h=Math.floor(e/(r+s)),i=(e+s-h*(r+s))/2,l=c[0],p=c[1];l[0]>p[0]&&(l=c[1],p=c[0]);let f=Math.atan((p[1]-l[1])/(p[0]-l[0]));for(let m=0;m{let c=Gt(a),e=Math.round(c/(2*o)),h=a[0],i=a[1];h[0]>i[0]&&(h=a[1],i=a[0]);let l=Math.atan((i[1]-h[1])/(i[0]-h[0]));for(let p=0;pl%2?i+o:i+t);a.push({key:"C",data:h}),t=h[4],o=h[5];break}case"Q":a.push({key:"Q",data:[...e]}),t=e[2],o=e[3];break;case"q":{let h=e.map((i,l)=>l%2?i+o:i+t);a.push({key:"Q",data:h}),t=h[2],o=h[3];break}case"A":a.push({key:"A",data:[...e]}),t=e[5],o=e[6];break;case"a":t+=e[5],o+=e[6],a.push({key:"A",data:[e[0],e[1],e[2],e[3],e[4],t,o]});break;case"H":a.push({key:"H",data:[...e]}),t=e[0];break;case"h":t+=e[0],a.push({key:"H",data:[t]});break;case"V":a.push({key:"V",data:[...e]}),o=e[0];break;case"v":o+=e[0],a.push({key:"V",data:[o]});break;case"S":a.push({key:"S",data:[...e]}),t=e[2],o=e[3];break;case"s":{let h=e.map((i,l)=>l%2?i+o:i+t);a.push({key:"S",data:h}),t=h[2],o=h[3];break}case"T":a.push({key:"T",data:[...e]}),t=e[0],o=e[1];break;case"t":t+=e[0],o+=e[1],a.push({key:"T",data:[t,o]});break;case"Z":case"z":a.push({key:"Z",data:[]}),t=r,o=s}return a}u(ye,"y");function xe(n){let t=[],o="",r=0,s=0,a=0,c=0,e=0,h=0;for(let{key:i,data:l}of n){switch(i){case"M":t.push({key:"M",data:[...l]}),[r,s]=l,[a,c]=l;break;case"C":t.push({key:"C",data:[...l]}),r=l[4],s=l[5],e=l[2],h=l[3];break;case"L":t.push({key:"L",data:[...l]}),[r,s]=l;break;case"H":r=l[0],t.push({key:"L",data:[r,s]});break;case"V":s=l[0],t.push({key:"L",data:[r,s]});break;case"S":{let p=0,f=0;o==="C"||o==="S"?(p=r+(r-e),f=s+(s-h)):(p=r,f=s),t.push({key:"C",data:[p,f,...l]}),e=l[0],h=l[1],r=l[2],s=l[3];break}case"T":{let[p,f]=l,m=0,g=0;o==="Q"||o==="T"?(m=r+(r-e),g=s+(s-h)):(m=r,g=s);let d=r+2*(m-r)/3,x=s+2*(g-s)/3,y=p+2*(m-p)/3,b=f+2*(g-f)/3;t.push({key:"C",data:[d,x,y,b,p,f]}),e=m,h=g,r=p,s=f;break}case"Q":{let[p,f,m,g]=l,d=r+2*(p-r)/3,x=s+2*(f-s)/3,y=m+2*(p-m)/3,b=g+2*(f-g)/3;t.push({key:"C",data:[d,x,y,b,m,g]}),e=p,h=f,r=m,s=g;break}case"A":{let p=Math.abs(l[0]),f=Math.abs(l[1]),m=l[2],g=l[3],d=l[4],x=l[5],y=l[6];p===0||f===0?(t.push({key:"C",data:[r,s,x,y,x,y]}),r=x,s=y):(r!==x||s!==y)&&(be(r,s,x,y,p,f,m,g,d).forEach(function(b){t.push({key:"C",data:b})}),r=x,s=y);break}case"Z":t.push({key:"Z",data:[]}),r=a,s=c}o=i}return t}u(xe,"m");function ut(n,t,o){return[n*Math.cos(o)-t*Math.sin(o),n*Math.sin(o)+t*Math.cos(o)]}u(ut,"w");function be(n,t,o,r,s,a,c,e,h,i){let l=(p=c,Math.PI*p/180);var p;let f=[],m=0,g=0,d=0,x=0;if(i)[m,g,d,x]=i;else{[n,t]=ut(n,t,-l),[o,r]=ut(o,r,-l);let G=(n-o)/2,L=(t-r)/2,V=G*G/(s*s)+L*L/(a*a);V>1&&(V=Math.sqrt(V),s*=V,a*=V);let E=s*s,I=a*a,_=E*I-E*L*L-I*G*G,U=E*L*L+I*G*G,rt=(e===h?-1:1)*Math.sqrt(Math.abs(_/U));d=rt*s*L/a+(n+o)/2,x=rt*-a*G/s+(t+r)/2,m=Math.asin(parseFloat(((t-x)/a).toFixed(9))),g=Math.asin(parseFloat(((r-x)/a).toFixed(9))),ng&&(m-=2*Math.PI),!h&&g>m&&(g-=2*Math.PI)}let y=g-m;if(Math.abs(y)>120*Math.PI/180){let G=g,L=o,V=r;g=h&&g>m?m+120*Math.PI/180*1:m+120*Math.PI/180*-1,f=be(o=d+s*Math.cos(g),r=x+a*Math.sin(g),L,V,s,a,c,0,h,[g,G,d,x])}y=g-m;let b=Math.cos(m),S=Math.sin(m),$=Math.cos(g),w=Math.sin(g),C=Math.tan(y/4),B=4/3*s*C,R=4/3*a*C,j=[n,t],A=[n+B*S,t-R*b],O=[o+B*w,r-R*$],W=[o,r];if(A[0]=2*j[0]-A[0],A[1]=2*j[1]-A[1],i)return[A,O,W].concat(f);{f=[A,O,W].concat(f);let G=[];for(let L=0;L2){let s=[];for(let a=0;a2*Math.PI&&(m=0,g=2*Math.PI);let d=2*Math.PI/h.curveStepCount,x=Math.min(d/2,(g-m)/2),y=de(x,i,l,p,f,m,g,1,h);if(!h.disableMultiStroke){let b=de(x,i,l,p,f,m,g,1.5,h);y.push(...b)}return c&&(e?y.push(...nt(i,l,i+p*Math.cos(m),l+f*Math.sin(m),h),...nt(i,l,i+p*Math.cos(g),l+f*Math.sin(g),h)):y.push({op:"lineTo",data:[i,l]},{op:"lineTo",data:[i+p*Math.cos(m),l+f*Math.sin(m)]})),{type:"path",ops:y}}u(pe,"A");function me(n,t){let o=xe(ye(ee(n))),r=[],s=[0,0],a=[0,0];for(let{key:c,data:e}of o)switch(c){case"M":a=[e[0],e[1]],s=[e[0],e[1]];break;case"L":r.push(...nt(a[0],a[1],e[0],e[1],t)),a=[e[0],e[1]];break;case"C":{let[h,i,l,p,f,m]=e;r.push(...Is(h,i,l,p,f,m,a,t)),a=[f,m];break}case"Z":r.push(...nt(a[0],a[1],s[0],s[1],t)),a=[s[0],s[1]]}return{type:"path",ops:r}}u(me,"_");function It(n,t){let o=[];for(let r of n)if(r.length){let s=t.maxRandomnessOffset||0,a=r.length;if(a>2){o.push({op:"move",data:[r[0][0]+F(s,t),r[0][1]+F(s,t)]});for(let c=1;c500?.4:-.0016668*h+1.233334;let l=s.maxRandomnessOffset||0;l*l*100>e&&(l=h/10);let p=l/2,f=.2+.2*Ne(s),m=s.bowing*s.maxRandomnessOffset*(r-t)/200,g=s.bowing*s.maxRandomnessOffset*(n-o)/200;m=F(m,s,i),g=F(g,s,i);let d=[],x=u(()=>F(p,s,i),"M"),y=u(()=>F(l,s,i),"k"),b=s.preserveVertices;return a&&(c?d.push({op:"move",data:[n+(b?0:x()),t+(b?0:x())]}):d.push({op:"move",data:[n+(b?0:F(l,s,i)),t+(b?0:F(l,s,i))]})),c?d.push({op:"bcurveTo",data:[m+n+(o-n)*f+x(),g+t+(r-t)*f+x(),m+n+2*(o-n)*f+x(),g+t+2*(r-t)*f+x(),o+(b?0:x()),r+(b?0:x())]}):d.push({op:"bcurveTo",data:[m+n+(o-n)*f+y(),g+t+(r-t)*f+y(),m+n+2*(o-n)*f+y(),g+t+2*(r-t)*f+y(),o+(b?0:y()),r+(b?0:y())]}),d}u(Qt,"R");function kt(n,t,o){if(!n.length)return[];let r=[];r.push([n[0][0]+F(t,o),n[0][1]+F(t,o)]),r.push([n[0][0]+F(t,o),n[0][1]+F(t,o)]);for(let s=1;s3){let a=[],c=1-o.curveTightness;s.push({op:"move",data:[n[1][0],n[1][1]]});for(let e=1;e+21&&s.push(e)):s.push(e),s.push(n[t+3])}else{let h=n[t+0],i=n[t+1],l=n[t+2],p=n[t+3],f=mt(h,i,.5),m=mt(i,l,.5),g=mt(l,p,.5),d=mt(f,m,.5),x=mt(m,g,.5),y=mt(d,x,.5);Jt([h,f,d,y],0,o,s),Jt([y,x,g,p],0,o,s)}var a,c;return s}u(Jt,"K");function _s(n,t){return Rt(n,0,n.length,t)}u(_s,"U");function Rt(n,t,o,r,s){let a=s||[],c=n[t],e=n[o-1],h=0,i=1;for(let l=t+1;lh&&(h=p,i=l)}return Math.sqrt(h)>r?(Rt(n,t,i+1,r,a),Rt(n,i,o,r,a)):(a.length||a.push(c),a.push(e)),a}u(Rt,"X");function Ft(n,t=.15,o){let r=[],s=(n.length-1)/3;for(let a=0;a0?Rt(r,0,r.length,o):r}u(Ft,"Y");var et="none",dt=class{static{u(this,"et")}constructor(t){this.defaultOptions={maxRandomnessOffset:2,roughness:1,bowing:1,stroke:"#000",strokeWidth:1,curveTightness:0,curveFitting:.95,curveStepCount:9,fillStyle:"hachure",fillWeight:-1,hachureAngle:-41,hachureGap:-1,dashOffset:-1,dashGap:-1,zigzagOffset:-1,seed:0,disableMultiStroke:!1,disableMultiStrokeFill:!1,preserveVertices:!1,fillShapeRoughnessGain:.8},this.config=t||{},this.config.options&&(this.defaultOptions=this._o(this.config.options))}static newSeed(){return Math.floor(Math.random()*2**31)}_o(t){return t?Object.assign({},this.defaultOptions,t):this.defaultOptions}_d(t,o,r){return{shape:t,sets:o||[],options:r||this.defaultOptions}}line(t,o,r,s,a){let c=this._o(a);return this._d("line",[Se(t,o,r,s,c)],c)}rectangle(t,o,r,s,a){let c=this._o(a),e=[],h=Ws(t,o,r,s,c);if(c.fill){let i=[[t,o],[t+r,o],[t+r,o+s],[t,o+s]];c.fillStyle==="solid"?e.push(It([i],c)):e.push(gt([i],c))}return c.stroke!==et&&e.push(h),this._d("rectangle",e,c)}ellipse(t,o,r,s,a){let c=this._o(a),e=[],h=we(r,s,c),i=Ut(t,o,c,h);if(c.fill)if(c.fillStyle==="solid"){let l=Ut(t,o,c,h).opset;l.type="fillPath",e.push(l)}else e.push(gt([i.estimatedPoints],c));return c.stroke!==et&&e.push(i.opset),this._d("ellipse",e,c)}circle(t,o,r,s){let a=this.ellipse(t,o,r,r,s);return a.shape="circle",a}linearPath(t,o){let r=this._o(o);return this._d("linearPath",[Pt(t,!1,r)],r)}arc(t,o,r,s,a,c,e=!1,h){let i=this._o(h),l=[],p=pe(t,o,r,s,a,c,e,!0,i);if(e&&i.fill)if(i.fillStyle==="solid"){let f=Object.assign({},i);f.disableMultiStroke=!0;let m=pe(t,o,r,s,a,c,!0,!1,f);m.type="fillPath",l.push(m)}else l.push(function(f,m,g,d,x,y,b){let S=f,$=m,w=Math.abs(g/2),C=Math.abs(d/2);w+=F(.01*w,b),C+=F(.01*C,b);let B=x,R=y;for(;B<0;)B+=2*Math.PI,R+=2*Math.PI;R-B>2*Math.PI&&(B=0,R=2*Math.PI);let j=(R-B)/b.curveStepCount,A=[];for(let O=B;O<=R;O+=j)A.push([S+w*Math.cos(O),$+C*Math.sin(O)]);return A.push([S+w*Math.cos(R),$+C*Math.sin(R)]),A.push([S,$]),gt([A],b)}(t,o,r,s,a,c,i));return i.stroke!==et&&l.push(p),this._d("arc",l,i)}curve(t,o){let r=this._o(o),s=[],a=he(t,r);if(r.fill&&r.fill!==et)if(r.fillStyle==="solid"){let c=he(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(c.ops)})}else{let c=[],e=t;if(e.length){let h=typeof e[0][0]=="number"?[e]:e;for(let i of h)i.length<3?c.push(...i):i.length===3?c.push(...Ft(ue([i[0],i[0],i[1],i[2]]),10,(1+r.roughness)/2)):c.push(...Ft(ue(i),10,(1+r.roughness)/2))}c.length&&s.push(gt([c],r))}return r.stroke!==et&&s.push(a),this._d("curve",s,r)}polygon(t,o){let r=this._o(o),s=[],a=Pt(t,!0,r);return r.fill&&(r.fillStyle==="solid"?s.push(It([t],r)):s.push(gt([t],r))),r.stroke!==et&&s.push(a),this._d("polygon",s,r)}path(t,o){let r=this._o(o),s=[];if(!t)return this._d("path",s,r);t=(t||"").replace(/\n/g," ").replace(/(-\s)/g,"-").replace("/(ss)/g"," ");let a=r.fill&&r.fill!=="transparent"&&r.fill!==et,c=r.stroke!==et,e=!!(r.simplification&&r.simplification<1),h=function(l,p,f){let m=xe(ye(ee(l))),g=[],d=[],x=[0,0],y=[],b=u(()=>{y.length>=4&&d.push(...Ft(y,p)),y=[]},"i"),S=u(()=>{b(),d.length&&(g.push(d),d=[])},"c");for(let{key:w,data:C}of m)switch(w){case"M":S(),x=[C[0],C[1]],d.push(x);break;case"L":b(),d.push([C[0],C[1]]);break;case"C":if(!y.length){let B=d.length?d[d.length-1]:x;y.push([B[0],B[1]])}y.push([C[0],C[1]]),y.push([C[2],C[3]]),y.push([C[4],C[5]]);break;case"Z":b(),d.push([x[0],x[1]])}if(S(),!f)return g;let $=[];for(let w of g){let C=_s(w,f);C.length&&$.push(C)}return $}(t,1,e?4-4*(r.simplification||1):(1+r.roughness)/2),i=me(t,r);if(a)if(r.fillStyle==="solid")if(h.length===1){let l=me(t,Object.assign(Object.assign({},r),{disableMultiStroke:!0,roughness:r.roughness?r.roughness+r.fillShapeRoughnessGain:0}));s.push({type:"fillPath",ops:this._mergedShape(l.ops)})}else s.push(It(h,r));else s.push(gt(h,r));return c&&(e?h.forEach(l=>{s.push(Pt(l,!1,r))}):s.push(i)),this._d("path",s,r)}opsToPath(t,o){let r="";for(let s of t.ops){let a=typeof o=="number"&&o>=0?s.data.map(c=>+c.toFixed(o)):s.data;switch(s.op){case"move":r+=`M${a[0]} ${a[1]} `;break;case"bcurveTo":r+=`C${a[0]} ${a[1]}, ${a[2]} ${a[3]}, ${a[4]} ${a[5]} `;break;case"lineTo":r+=`L${a[0]} ${a[1]} `}}return r.trim()}toPaths(t){let o=t.sets||[],r=t.options||this.defaultOptions,s=[];for(let a of o){let c=null;switch(a.type){case"path":c={d:this.opsToPath(a),stroke:r.stroke,strokeWidth:r.strokeWidth,fill:et};break;case"fillPath":c={d:this.opsToPath(a),stroke:et,strokeWidth:0,fill:r.fill||et};break;case"fillSketch":c=this.fillSketch(a,r)}c&&s.push(c)}return s}fillSketch(t,o){let r=o.fillWeight;return r<0&&(r=o.strokeWidth/2),{d:this.opsToPath(t),stroke:o.fill||et,strokeWidth:r,fill:et}}_mergedShape(t){return t.filter((o,r)=>r===0||o.op!=="move")}},Kt=class{static{u(this,"st")}constructor(t,o){this.canvas=t,this.ctx=this.canvas.getContext("2d"),this.gen=new dt(o)}draw(t){let o=t.sets||[],r=t.options||this.getDefaultOptions(),s=this.ctx,a=t.options.fixedDecimalPlaceDigits;for(let c of o)switch(c.type){case"path":s.save(),s.strokeStyle=r.stroke==="none"?"transparent":r.stroke,s.lineWidth=r.strokeWidth,r.strokeLineDash&&s.setLineDash(r.strokeLineDash),r.strokeLineDashOffset&&(s.lineDashOffset=r.strokeLineDashOffset),this._drawToContext(s,c,a),s.restore();break;case"fillPath":{s.save(),s.fillStyle=r.fill||"";let e=t.shape==="curve"||t.shape==="polygon"||t.shape==="path"?"evenodd":"nonzero";this._drawToContext(s,c,a,e),s.restore();break}case"fillSketch":this.fillSketch(s,c,r)}}fillSketch(t,o,r){let s=r.fillWeight;s<0&&(s=r.strokeWidth/2),t.save(),r.fillLineDash&&t.setLineDash(r.fillLineDash),r.fillLineDashOffset&&(t.lineDashOffset=r.fillLineDashOffset),t.strokeStyle=r.fill||"",t.lineWidth=s,this._drawToContext(t,o,r.fixedDecimalPlaceDigits),t.restore()}_drawToContext(t,o,r,s="nonzero"){t.beginPath();for(let a of o.ops){let c=typeof r=="number"&&r>=0?a.data.map(e=>+e.toFixed(r)):a.data;switch(a.op){case"move":t.moveTo(c[0],c[1]);break;case"bcurveTo":t.bezierCurveTo(c[0],c[1],c[2],c[3],c[4],c[5]);break;case"lineTo":t.lineTo(c[0],c[1])}}o.type==="fillPath"?t.fill(s):t.stroke()}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}line(t,o,r,s,a){let c=this.gen.line(t,o,r,s,a);return this.draw(c),c}rectangle(t,o,r,s,a){let c=this.gen.rectangle(t,o,r,s,a);return this.draw(c),c}ellipse(t,o,r,s,a){let c=this.gen.ellipse(t,o,r,s,a);return this.draw(c),c}circle(t,o,r,s){let a=this.gen.circle(t,o,r,s);return this.draw(a),a}linearPath(t,o){let r=this.gen.linearPath(t,o);return this.draw(r),r}polygon(t,o){let r=this.gen.polygon(t,o);return this.draw(r),r}arc(t,o,r,s,a,c,e=!1,h){let i=this.gen.arc(t,o,r,s,a,c,e,h);return this.draw(i),i}curve(t,o){let r=this.gen.curve(t,o);return this.draw(r),r}path(t,o){let r=this.gen.path(t,o);return this.draw(r),r}},$t="http://www.w3.org/2000/svg",te=class{static{u(this,"ot")}constructor(t,o){this.svg=t,this.gen=new dt(o)}draw(t){let o=t.sets||[],r=t.options||this.getDefaultOptions(),s=this.svg.ownerDocument||window.document,a=s.createElementNS($t,"g"),c=t.options.fixedDecimalPlaceDigits;for(let e of o){let h=null;switch(e.type){case"path":h=s.createElementNS($t,"path"),h.setAttribute("d",this.opsToPath(e,c)),h.setAttribute("stroke",r.stroke),h.setAttribute("stroke-width",r.strokeWidth+""),h.setAttribute("fill","none"),r.strokeLineDash&&h.setAttribute("stroke-dasharray",r.strokeLineDash.join(" ").trim()),r.strokeLineDashOffset&&h.setAttribute("stroke-dashoffset",`${r.strokeLineDashOffset}`);break;case"fillPath":h=s.createElementNS($t,"path"),h.setAttribute("d",this.opsToPath(e,c)),h.setAttribute("stroke","none"),h.setAttribute("stroke-width","0"),h.setAttribute("fill",r.fill||""),t.shape!=="curve"&&t.shape!=="polygon"||h.setAttribute("fill-rule","evenodd");break;case"fillSketch":h=this.fillSketch(s,e,r)}h&&a.appendChild(h)}return a}fillSketch(t,o,r){let s=r.fillWeight;s<0&&(s=r.strokeWidth/2);let a=t.createElementNS($t,"path");return a.setAttribute("d",this.opsToPath(o,r.fixedDecimalPlaceDigits)),a.setAttribute("stroke",r.fill||""),a.setAttribute("stroke-width",s+""),a.setAttribute("fill","none"),r.fillLineDash&&a.setAttribute("stroke-dasharray",r.fillLineDash.join(" ").trim()),r.fillLineDashOffset&&a.setAttribute("stroke-dashoffset",`${r.fillLineDashOffset}`),a}get generator(){return this.gen}getDefaultOptions(){return this.gen.defaultOptions}opsToPath(t,o){return this.gen.opsToPath(t,o)}line(t,o,r,s,a){let c=this.gen.line(t,o,r,s,a);return this.draw(c)}rectangle(t,o,r,s,a){let c=this.gen.rectangle(t,o,r,s,a);return this.draw(c)}ellipse(t,o,r,s,a){let c=this.gen.ellipse(t,o,r,s,a);return this.draw(c)}circle(t,o,r,s){let a=this.gen.circle(t,o,r,s);return this.draw(a)}linearPath(t,o){let r=this.gen.linearPath(t,o);return this.draw(r)}polygon(t,o){let r=this.gen.polygon(t,o);return this.draw(r)}arc(t,o,r,s,a,c,e=!1,h){let i=this.gen.arc(t,o,r,s,a,c,e,h);return this.draw(i)}curve(t,o){let r=this.gen.curve(t,o);return this.draw(r)}path(t,o){let r=this.gen.path(t,o);return this.draw(r)}},D={canvas:u((n,t)=>new Kt(n,t),"canvas"),svg:u((n,t)=>new te(n,t),"svg"),generator:u(n=>new dt(n),"generator"),newSeed:u(()=>dt.newSeed(),"newSeed")};var zs=u((n,t)=>{var o=n.x,r=n.y,s=t.x-o,a=t.y-r,c=n.width/2,e=n.height/2,h,i;return Math.abs(a)*c>Math.abs(s)*e?(a<0&&(e=-e),h=a===0?0:e*s/a,i=e):(s<0&&(c=-c),h=c,i=s===0?0:c*a/s),{x:o+h,y:r+i}},"intersectRect"),lt=zs;function qs(n,t){t&&n.attr("style",t)}u(qs,"applyStyle");async function Xs(n){let t=Z(document.createElementNS("http://www.w3.org/2000/svg","foreignObject")),o=t.append("xhtml:div"),r=n.label;n.label&&Nt(n.label)&&(r=await oe(n.label.replace(ae.lineBreakRegex,` `),q()));let s=n.isNode?"nodeLabel":"edgeLabel";return o.html('"+r+""),qs(o,n.labelStyle),o.style("display","inline-block"),o.style("padding-right","1px"),o.style("white-space","nowrap"),o.attr("xmlns","http://www.w3.org/1999/xhtml"),t.node()}u(Xs,"addHtmlLabel");var Ys=u(async(n,t,o,r)=>{let s=n||"";if(typeof s=="object"&&(s=s[0]),Y(q().flowchart.htmlLabels)){s=s.replace(/\\n|\n/g,"
      "),z.info("vertexText"+s);let a={isNode:r,label:pt(s).replace(/fa[blrs]?:fa-[\w-]+/g,e=>``),labelStyle:t&&t.replace("fill:","color:")};return await Xs(a)}else{let a=document.createElementNS("http://www.w3.org/2000/svg","text");a.setAttribute("style",t.replace("color:","fill:"));let c=[];typeof s=="string"?c=s.split(/\\n|\n|/gi):Array.isArray(s)?c=s:c=[];for(let e of c){let h=document.createElementNS("http://www.w3.org/2000/svg","tspan");h.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),h.setAttribute("dy","1em"),h.setAttribute("x","0"),o?h.setAttribute("class","title-row"):h.setAttribute("class","row"),h.textContent=e.trim(),a.appendChild(h)}return a}},"createLabel"),St=Ys;var Q=u((n,t,o,r,s)=>["M",n+s,t,"H",n+o-s,"A",s,s,0,0,1,n+o,t+s,"V",t+r-s,"A",s,s,0,0,1,n+o-s,t+r,"H",n+s,"A",s,s,0,0,1,n,t+r-s,"V",t+s,"A",s,s,0,0,1,n+s,t,"Z"].join(" "),"createRoundedRectPathD");var De=u(n=>{let{handDrawnSeed:t}=q();return{fill:n,hachureAngle:120,hachureGap:4,fillWeight:2,roughness:.7,stroke:n,seed:t}},"solidStateFill"),ot=u(n=>{let t=Zs([...n.cssCompiledStyles||[],...n.cssStyles||[]]);return{stylesMap:t,stylesArray:[...t]}},"compileStyles"),Zs=u(n=>{let t=new Map;return n.forEach(o=>{let[r,s]=o.split(":");t.set(r.trim(),s?.trim())}),t},"styles2Map"),k=u(n=>{let{stylesArray:t}=ot(n),o=[],r=[],s=[],a=[];return t.forEach(c=>{let e=c[0];e==="color"||e==="font-size"||e==="font-family"||e==="font-weight"||e==="font-style"||e==="text-decoration"||e==="text-align"||e==="text-transform"||e==="line-height"||e==="letter-spacing"||e==="word-spacing"||e==="text-shadow"||e==="text-overflow"||e==="white-space"||e==="word-wrap"||e==="word-break"||e==="overflow-wrap"||e==="hyphens"?o.push(c.join(":")+" !important"):(r.push(c.join(":")+" !important"),e.includes("stroke")&&s.push(c.join(":")+" !important"),e==="fill"&&a.push(c.join(":")+" !important"))}),{labelStyles:o.join(";"),nodeStyles:r.join(";"),stylesArray:t,borderStyles:s,backgroundStyles:a}},"styles2String"),M=u((n,t)=>{let{themeVariables:o,handDrawnSeed:r}=q(),{nodeBorder:s,mainBkg:a}=o,{stylesMap:c}=ot(n);return Object.assign({roughness:.7,fill:c.get("fill")||a,fillStyle:"hachure",fillWeight:4,hachureGap:5.2,stroke:c.get("stroke")||s,seed:r,strokeWidth:c.get("stroke-width")?.replace("px","")||1.3,fillLineDash:[0,0]},t)},"userNodeOverrides");var Me=u(async(n,t)=>{z.info("Creating subgraph rect for ",t.id,t);let o=q(),{themeVariables:r,handDrawnSeed:s}=o,{clusterBkg:a,clusterBorder:c}=r,{labelStyles:e,nodeStyles:h,borderStyles:i,backgroundStyles:l}=k(t),p=n.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=Y(o.flowchart.htmlLabels),m=p.insert("g").attr("class","cluster-label "),g=await it(m,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0}),d=g.getBBox();if(Y(o.flowchart.htmlLabels)){let B=g.children[0],R=Z(g);d=B.getBoundingClientRect(),R.attr("width",d.width),R.attr("height",d.height)}let x=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;let y=t.height,b=t.x-x/2,S=t.y-y/2;z.trace("Data ",t,JSON.stringify(t));let $;if(t.look==="handDrawn"){let B=D.svg(p),R=M(t,{roughness:.7,fill:a,stroke:c,fillWeight:3,seed:s}),j=B.path(Q(b,S,x,y,0),R);$=p.insert(()=>(z.debug("Rough node insert CXC",j),j),":first-child"),$.select("path:nth-child(2)").attr("style",i.join(";")),$.select("path").attr("style",l.join(";").replace("fill","stroke"))}else $=p.insert("rect",":first-child"),$.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",S).attr("width",x).attr("height",y);let{subGraphTitleTopMargin:w}=Lt(o);if(m.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+w})`),e){let B=m.select("span");B&&B.attr("style",e)}let C=$.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=d.height-t.padding/2,t.intersect=function(B){return lt(t,B)},{cluster:p,labelBBox:d}},"rect"),Us=u((n,t)=>{let o=n.insert("g").attr("class","note-cluster").attr("id",t.id),r=o.insert("rect",":first-child"),s=0*t.padding,a=s/2;r.attr("rx",t.rx).attr("ry",t.ry).attr("x",t.x-t.width/2-a).attr("y",t.y-t.height/2-a).attr("width",t.width+s).attr("height",t.height+s).attr("fill","none");let c=r.node().getBBox();return t.width=c.width,t.height=c.height,t.intersect=function(e){return lt(t,e)},{cluster:o,labelBBox:{width:0,height:0}}},"noteGroup"),Qs=u(async(n,t)=>{let o=q(),{themeVariables:r,handDrawnSeed:s}=o,{altBackground:a,compositeBackground:c,compositeTitleBackground:e,nodeBorder:h}=r,i=n.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-id",t.id).attr("data-look",t.look),l=i.insert("g",":first-child"),p=i.insert("g").attr("class","cluster-label"),f=i.append("rect"),m=p.node().appendChild(await St(t.label,t.labelStyle,void 0,!0)),g=m.getBBox();if(Y(o.flowchart.htmlLabels)){let j=m.children[0],A=Z(m);g=j.getBoundingClientRect(),A.attr("width",g.width),A.attr("height",g.height)}let d=0*t.padding,x=d/2,y=(t.width<=g.width+t.padding?g.width+t.padding:t.width)+d;t.width<=g.width+t.padding?t.diff=(y-t.width)/2-t.padding:t.diff=-t.padding;let b=t.height+d,S=t.height+d-g.height-6,$=t.x-y/2,w=t.y-b/2;t.width=y;let C=t.y-t.height/2-x+g.height+2,B;if(t.look==="handDrawn"){let j=t.cssClasses.includes("statediagram-cluster-alt"),A=D.svg(i),O=t.rx||t.ry?A.path(Q($,w,y,b,10),{roughness:.7,fill:e,fillStyle:"solid",stroke:h,seed:s}):A.rectangle($,w,y,b,{seed:s});B=i.insert(()=>O,":first-child");let W=A.rectangle($,C,y,S,{fill:j?a:c,fillStyle:j?"hachure":"solid",stroke:h,seed:s});B=i.insert(()=>O,":first-child"),f=i.insert(()=>W)}else B=l.insert("rect",":first-child"),B.attr("class","outer").attr("x",$).attr("y",w).attr("width",y).attr("height",b).attr("data-look",t.look),f.attr("class","inner").attr("x",$).attr("y",C).attr("width",y).attr("height",S);p.attr("transform",`translate(${t.x-g.width/2}, ${w+1-(Y(o.flowchart.htmlLabels)?0:3)})`);let R=B.node().getBBox();return t.height=R.height,t.offsetX=0,t.offsetY=g.height-t.padding/2,t.labelBBox=g,t.intersect=function(j){return lt(t,j)},{cluster:i,labelBBox:g}},"roundedWithTitle"),Js=u(async(n,t)=>{z.info("Creating subgraph rect for ",t.id,t);let o=q(),{themeVariables:r,handDrawnSeed:s}=o,{clusterBkg:a,clusterBorder:c}=r,{labelStyles:e,nodeStyles:h,borderStyles:i,backgroundStyles:l}=k(t),p=n.insert("g").attr("class","cluster "+t.cssClasses).attr("id",t.id).attr("data-look",t.look),f=Y(o.flowchart.htmlLabels),m=p.insert("g").attr("class","cluster-label "),g=await it(m,t.label,{style:t.labelStyle,useHtmlLabels:f,isNode:!0,width:t.width}),d=g.getBBox();if(Y(o.flowchart.htmlLabels)){let B=g.children[0],R=Z(g);d=B.getBoundingClientRect(),R.attr("width",d.width),R.attr("height",d.height)}let x=t.width<=d.width+t.padding?d.width+t.padding:t.width;t.width<=d.width+t.padding?t.diff=(x-t.width)/2-t.padding:t.diff=-t.padding;let y=t.height,b=t.x-x/2,S=t.y-y/2;z.trace("Data ",t,JSON.stringify(t));let $;if(t.look==="handDrawn"){let B=D.svg(p),R=M(t,{roughness:.7,fill:a,stroke:c,fillWeight:4,seed:s}),j=B.path(Q(b,S,x,y,t.rx),R);$=p.insert(()=>(z.debug("Rough node insert CXC",j),j),":first-child"),$.select("path:nth-child(2)").attr("style",i.join(";")),$.select("path").attr("style",l.join(";").replace("fill","stroke"))}else $=p.insert("rect",":first-child"),$.attr("style",h).attr("rx",t.rx).attr("ry",t.ry).attr("x",b).attr("y",S).attr("width",x).attr("height",y);let{subGraphTitleTopMargin:w}=Lt(o);if(m.attr("transform",`translate(${t.x-d.width/2}, ${t.y-t.height/2+w})`),e){let B=m.select("span");B&&B.attr("style",e)}let C=$.node().getBBox();return t.offsetX=0,t.width=C.width,t.height=C.height,t.offsetY=d.height-t.padding/2,t.intersect=function(B){return lt(t,B)},{cluster:p,labelBBox:d}},"kanbanSection"),Ks=u((n,t)=>{let o=q(),{themeVariables:r,handDrawnSeed:s}=o,{nodeBorder:a}=r,c=n.insert("g").attr("class",t.cssClasses).attr("id",t.id).attr("data-look",t.look),e=c.insert("g",":first-child"),h=0*t.padding,i=t.width+h;t.diff=-t.padding;let l=t.height+h,p=t.x-i/2,f=t.y-l/2;t.width=i;let m;if(t.look==="handDrawn"){let x=D.svg(c).rectangle(p,f,i,l,{fill:"lightgrey",roughness:.5,strokeLineDash:[5],stroke:a,seed:s});m=c.insert(()=>x,":first-child")}else m=e.insert("rect",":first-child"),m.attr("class","divider").attr("x",p).attr("y",f).attr("width",i).attr("height",l).attr("data-look",t.look);let g=m.node().getBBox();return t.height=g.height,t.offsetX=0,t.offsetY=0,t.intersect=function(d){return lt(t,d)},{cluster:c,labelBBox:{}}},"divider"),tr=Me,er={rect:Me,squareRect:tr,roundedWithTitle:Qs,noteGroup:Us,divider:Ks,kanbanSection:Js},ve=new Map,ro=u(async(n,t)=>{let o=t.shape||"rect",r=await er[o](n,t);return ve.set(t.id,r),r},"insertCluster");var oo=u(()=>{ve=new Map},"clear");function sr(n,t){return n.intersect(t)}u(sr,"intersectNode");var ke=sr;function rr(n,t,o,r){var s=n.x,a=n.y,c=s-r.x,e=a-r.y,h=Math.sqrt(t*t*e*e+o*o*c*c),i=Math.abs(t*o*c/h);r.x0}u(Pe,"sameSign");var Te=ar;function ir(n,t,o){let r=n.x,s=n.y,a=[],c=Number.POSITIVE_INFINITY,e=Number.POSITIVE_INFINITY;typeof t.forEach=="function"?t.forEach(function(l){c=Math.min(c,l.x),e=Math.min(e,l.y)}):(c=Math.min(c,t.x),e=Math.min(e,t.y));let h=r-n.width/2-c,i=s-n.height/2-e;for(let l=0;l1&&a.sort(function(l,p){let f=l.x-o.x,m=l.y-o.y,g=Math.sqrt(f*f+m*m),d=p.x-o.x,x=p.y-o.y,y=Math.sqrt(d*d+x*x);return gl,":first-child");return p.attr("class","anchor").attr("style",X(e)),v(t,p),t.intersect=function(f){return z.info("Circle intersect",t,c,f),N.circle(t,c,f)},a}u(Be,"anchor");function Re(n,t,o,r,s,a,c){let h=(n+o)/2,i=(t+r)/2,l=Math.atan2(r-t,o-n),p=(o-n)/2,f=(r-t)/2,m=p/s,g=f/a,d=Math.sqrt(m**2+g**2);if(d>1)throw new Error("The given radii are too small to create an arc between the points.");let x=Math.sqrt(1-d**2),y=h+x*a*Math.sin(l)*(c?-1:1),b=i-x*s*Math.cos(l)*(c?-1:1),S=Math.atan2((t-b)/a,(n-y)/s),w=Math.atan2((r-b)/a,(o-y)/s)-S;c&&w<0&&(w+=2*Math.PI),!c&&w>0&&(w-=2*Math.PI);let C=[];for(let B=0;B<20;B++){let R=B/19,j=S+R*w,A=y+s*Math.cos(j),O=b+a*Math.sin(j);C.push({x:A,y:O})}return C}u(Re,"generateArcPoints");async function Ge(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=a.width+t.padding+20,e=a.height+t.padding,h=e/2,i=h/(2.5+e/50),{cssStyles:l}=t,p=[{x:c/2,y:-e/2},{x:-c/2,y:-e/2},...Re(-c/2,-e/2,-c/2,e/2,i,h,!1),{x:c/2,y:e/2},...Re(c/2,e/2,c/2,-e/2,i,h,!0)],f=D.svg(s),m=M(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=H(p),d=f.path(g,m),x=s.insert(()=>d,":first-child");return x.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",l),r&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(${i/2}, 0)`),v(t,x),t.intersect=function(y){return N.polygon(t,p,y)},s}u(Ge,"bowTieRect");function J(n,t,o,r){return n.insert("polygon",":first-child").attr("points",r.map(function(s){return s.x+","+s.y}).join(" ")).attr("class","label-container").attr("transform","translate("+-t/2+","+o/2+")")}u(J,"insertPolygonShape");async function je(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=a.height+t.padding,e=12,h=a.width+t.padding+e,i=0,l=h,p=-c,f=0,m=[{x:i+e,y:p},{x:l,y:p},{x:l,y:f},{x:i,y:f},{x:i,y:p+e},{x:i+e,y:p}],g,{cssStyles:d}=t;if(t.look==="handDrawn"){let x=D.svg(s),y=M(t,{}),b=H(m),S=x.path(b,y);g=s.insert(()=>S,":first-child").attr("transform",`translate(${-h/2}, ${c/2})`),d&&g.attr("style",d)}else g=J(s,h,c,m);return r&&g.attr("style",r),v(t,g),t.intersect=function(x){return N.polygon(t,m,x)},s}u(je,"card");function Ee(n,t){let{nodeStyles:o}=k(t);t.label="";let r=n.insert("g").attr("class",P(t)).attr("id",t.domId??t.id),{cssStyles:s}=t,a=Math.max(28,t.width??0),c=[{x:0,y:a/2},{x:a/2,y:0},{x:0,y:-a/2},{x:-a/2,y:0}],e=D.svg(r),h=M(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let i=H(c),l=e.path(i,h),p=r.insert(()=>l,":first-child");return s&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",s),o&&t.look!=="handDrawn"&&p.selectAll("path").attr("style",o),t.width=28,t.height=28,t.intersect=function(f){return N.polygon(t,c,f)},r}u(Ee,"choice");async function Ae(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,halfPadding:c}=await T(n,t,P(t)),e=a.width/2+c,h,{cssStyles:i}=t;if(t.look==="handDrawn"){let l=D.svg(s),p=M(t,{}),f=l.circle(0,0,e*2,p);h=s.insert(()=>f,":first-child"),h.attr("class","basic label-container").attr("style",X(i))}else h=s.insert("circle",":first-child").attr("class","basic label-container").attr("style",r).attr("r",e).attr("cx",0).attr("cy",0);return v(t,h),t.intersect=function(l){return z.info("Circle intersect",t,e,l),N.circle(t,e,l)},s}u(Ae,"circle");function nr(n){let t=Math.cos(Math.PI/4),o=Math.sin(Math.PI/4),r=n*2,s={x:r/2*t,y:r/2*o},a={x:-(r/2)*t,y:r/2*o},c={x:-(r/2)*t,y:-(r/2)*o},e={x:r/2*t,y:-(r/2)*o};return`M ${a.x},${a.y} L ${e.x},${e.y} M ${s.x},${s.y} L ${c.x},${c.y}`}u(nr,"createLine");function Oe(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o,t.label="";let s=n.insert("g").attr("class",P(t)).attr("id",t.domId??t.id),a=Math.max(30,t?.width??0),{cssStyles:c}=t,e=D.svg(s),h=M(t,{});t.look!=="handDrawn"&&(h.roughness=0,h.fillStyle="solid");let i=e.circle(0,0,a*2,h),l=nr(a),p=e.path(l,h),f=s.insert(()=>i,":first-child");return f.insert(()=>p),c&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",c),r&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",r),v(t,f),t.intersect=function(m){return z.info("crossedCircle intersect",t,{radius:a,point:m}),N.circle(t,a,m)},s}u(Oe,"crossedCircle");function ct(n,t,o,r=100,s=0,a=180){let c=[],e=s*Math.PI/180,l=(a*Math.PI/180-e)/(r-1);for(let p=0;pS,":first-child").attr("stroke-opacity",0),$.insert(()=>y,":first-child"),$.attr("class","text"),l&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",l),r&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",r),$.attr("transform",`translate(${i}, 0)`),c.attr("transform",`translate(${-e/2+i-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),v(t,$),t.intersect=function(w){return N.polygon(t,f,w)},s}u(Le,"curlyBraceLeft");function ht(n,t,o,r=100,s=0,a=180){let c=[],e=s*Math.PI/180,l=(a*Math.PI/180-e)/(r-1);for(let p=0;pS,":first-child").attr("stroke-opacity",0),$.insert(()=>y,":first-child"),$.attr("class","text"),l&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",l),r&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",r),$.attr("transform",`translate(${-i}, 0)`),c.attr("transform",`translate(${-e/2+(t.padding??0)/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),v(t,$),t.intersect=function(w){return N.polygon(t,f,w)},s}u(He,"curlyBraceRight");function K(n,t,o,r=100,s=0,a=180){let c=[],e=s*Math.PI/180,l=(a*Math.PI/180-e)/(r-1);for(let p=0;pB,":first-child").attr("stroke-opacity",0),R.insert(()=>b,":first-child"),R.insert(()=>w,":first-child"),R.attr("class","text"),l&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",l),r&&t.look!=="handDrawn"&&R.selectAll("path").attr("style",r),R.attr("transform",`translate(${i-i/4}, 0)`),c.attr("transform",`translate(${-e/2+(t.padding??0)/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)/2-(a.y-(a.top??0))})`),v(t,R),t.intersect=function(j){return N.polygon(t,m,j)},s}u(Ve,"curlyBraces");async function We(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=80,e=20,h=Math.max(c,(a.width+(t.padding??0)*2)*1.25,t?.width??0),i=Math.max(e,a.height+(t.padding??0)*2,t?.height??0),l=i/2,{cssStyles:p}=t,f=D.svg(s),m=M(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=h,d=i,x=g-l,y=d/4,b=[{x,y:0},{x:y,y:0},{x:0,y:d/2},{x:y,y:d},{x,y:d},...Mt(-x,-d/2,l,50,270,90)],S=H(b),$=f.path(S,m),w=s.insert(()=>$,":first-child");return w.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&w.selectChildren("path").attr("style",r),w.attr("transform",`translate(${-h/2}, ${-i/2})`),v(t,w),t.intersect=function(C){return N.polygon(t,b,C)},s}u(We,"curvedTrapezoid");var lr=u((n,t,o,r,s,a)=>[`M${n},${t+a}`,`a${s},${a} 0,0,0 ${o},0`,`a${s},${a} 0,0,0 ${-o},0`,`l0,${r}`,`a${s},${a} 0,0,0 ${o},0`,`l0,${-r}`].join(" "),"createCylinderPathD"),cr=u((n,t,o,r,s,a)=>[`M${n},${t+a}`,`M${n+o},${t+a}`,`a${s},${a} 0,0,0 ${-o},0`,`l0,${r}`,`a${s},${a} 0,0,0 ${o},0`,`l0,${-r}`].join(" "),"createOuterCylinderPathD"),hr=u((n,t,o,r,s,a)=>[`M${n-o/2},${-r/2}`,`a${s},${a} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD");async function Ie(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+t.padding,t.width??0),h=e/2,i=h/(2.5+e/50),l=Math.max(a.height+i+t.padding,t.height??0),p,{cssStyles:f}=t;if(t.look==="handDrawn"){let m=D.svg(s),g=cr(0,0,e,l,h,i),d=hr(0,i,e,l,h,i),x=m.path(g,M(t,{})),y=m.path(d,M(t,{fill:"none"}));p=s.insert(()=>y,":first-child"),p=s.insert(()=>x,":first-child"),p.attr("class","basic label-container"),f&&p.attr("style",f)}else{let m=lr(0,0,e,l,h,i);p=s.insert("path",":first-child").attr("d",m).attr("class","basic label-container").attr("style",X(f)).attr("style",r)}return p.attr("label-offset-y",i),p.attr("transform",`translate(${-e/2}, ${-(l/2+i)})`),v(t,p),c.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+(t.padding??0)/1.5-(a.y-(a.top??0))})`),t.intersect=function(m){let g=N.rect(t,m),d=g.x-(t.x??0);if(h!=0&&(Math.abs(d)<(t.width??0)/2||Math.abs(d)==(t.width??0)/2&&Math.abs(g.y-(t.y??0))>(t.height??0)/2-i)){let x=i*i*(1-d*d/(h*h));x>0&&(x=Math.sqrt(x)),x=i-x,m.y-(t.y??0)>0&&(x=-x),g.y+=x}return g},s}u(Ie,"cylinder");async function Fe(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=a.width+t.padding,h=a.height+t.padding,i=h*.2,l=-e/2,p=-h/2-i/2,{cssStyles:f}=t,m=D.svg(s),g=M(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let d=[{x:l,y:p+i},{x:-l,y:p+i},{x:-l,y:-p},{x:l,y:-p},{x:l,y:p},{x:-l,y:p},{x:-l,y:p+i}],x=m.polygon(d.map(b=>[b.x,b.y]),g),y=s.insert(()=>x,":first-child");return y.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",f),r&&t.look!=="handDrawn"&&y.selectAll("path").attr("style",r),c.attr("transform",`translate(${l+(t.padding??0)/2-(a.x-(a.left??0))}, ${p+i+(t.padding??0)/2-(a.y-(a.top??0))})`),v(t,y),t.intersect=function(b){return N.rect(t,b)},s}u(Fe,"dividedRectangle");async function _e(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,halfPadding:c}=await T(n,t,P(t)),h=a.width/2+c+5,i=a.width/2+c,l,{cssStyles:p}=t;if(t.look==="handDrawn"){let f=D.svg(s),m=M(t,{roughness:.2,strokeWidth:2.5}),g=M(t,{roughness:.2,strokeWidth:1.5}),d=f.circle(0,0,h*2,m),x=f.circle(0,0,i*2,g);l=s.insert("g",":first-child"),l.attr("class",X(t.cssClasses)).attr("style",X(p)),l.node()?.appendChild(d),l.node()?.appendChild(x)}else{l=s.insert("g",":first-child");let f=l.insert("circle",":first-child"),m=l.insert("circle");l.attr("class","basic label-container").attr("style",r),f.attr("class","outer-circle").attr("style",r).attr("r",h).attr("cx",0).attr("cy",0),m.attr("class","inner-circle").attr("style",r).attr("r",i).attr("cx",0).attr("cy",0)}return v(t,l),t.intersect=function(f){return z.info("DoubleCircle intersect",t,h,f),N.circle(t,h,f)},s}u(_e,"doublecircle");function ze(n,t,{config:{themeVariables:o}}){let{labelStyles:r,nodeStyles:s}=k(t);t.label="",t.labelStyle=r;let a=n.insert("g").attr("class",P(t)).attr("id",t.domId??t.id),c=7,{cssStyles:e}=t,h=D.svg(a),{nodeBorder:i}=o,l=M(t,{fillStyle:"solid"});t.look!=="handDrawn"&&(l.roughness=0);let p=h.circle(0,0,c*2,l),f=a.insert(()=>p,":first-child");return f.selectAll("path").attr("style",`fill: ${i} !important;`),e&&e.length>0&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",e),s&&t.look!=="handDrawn"&&f.selectAll("path").attr("style",s),v(t,f),t.intersect=function(m){return z.info("filledCircle intersect",t,{radius:c,point:m}),N.circle(t,c,m)},a}u(ze,"filledCircle");async function qe(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=a.width+(t.padding??0),h=e+a.height,i=e+a.height,l=[{x:0,y:-h},{x:i,y:-h},{x:i/2,y:0}],{cssStyles:p}=t,f=D.svg(s),m=M(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=H(l),d=f.path(g,m),x=s.insert(()=>d,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`);return p&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",r),t.width=e,t.height=h,v(t,x),c.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${-h/2+(t.padding??0)/2+(a.y-(a.top??0))})`),t.intersect=function(y){return z.info("Triangle intersect",t,l,y),N.polygon(t,l,y)},s}u(qe,"flippedTriangle");function Xe(n,t,{dir:o,config:{state:r,themeVariables:s}}){let{nodeStyles:a}=k(t);t.label="";let c=n.insert("g").attr("class",P(t)).attr("id",t.domId??t.id),{cssStyles:e}=t,h=Math.max(70,t?.width??0),i=Math.max(10,t?.height??0);o==="LR"&&(h=Math.max(10,t?.width??0),i=Math.max(70,t?.height??0));let l=-1*h/2,p=-1*i/2,f=D.svg(c),m=M(t,{stroke:s.lineColor,fill:s.lineColor});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=f.rectangle(l,p,h,i,m),d=c.insert(()=>g,":first-child");e&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",e),a&&t.look!=="handDrawn"&&d.selectAll("path").attr("style",a),v(t,d);let x=r?.padding??0;return t.width&&t.height&&(t.width+=x/2||0,t.height+=x/2||0),t.intersect=function(y){return N.rect(t,y)},c}u(Xe,"forkJoin");async function Ye(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let s=80,a=50,{shapeSvg:c,bbox:e}=await T(n,t,P(t)),h=Math.max(s,e.width+(t.padding??0)*2,t?.width??0),i=Math.max(a,e.height+(t.padding??0)*2,t?.height??0),l=i/2,{cssStyles:p}=t,f=D.svg(c),m=M(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-h/2,y:-i/2},{x:h/2-l,y:-i/2},...Mt(-h/2+l,0,l,50,90,270),{x:h/2-l,y:i/2},{x:-h/2,y:i/2}],d=H(g),x=f.path(d,m),y=c.insert(()=>x,":first-child");return y.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",p),r&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",r),v(t,y),t.intersect=function(b){return z.info("Pill intersect",t,{radius:l,point:b}),N.polygon(t,g,b)},c}u(Ye,"halfRoundedRectangle");var pr=u((n,t,o,r,s)=>[`M${n+s},${t}`,`L${n+o-s},${t}`,`L${n+o},${t-r/2}`,`L${n+o-s},${t-r}`,`L${n+s},${t-r}`,`L${n},${t-r/2}`,"Z"].join(" "),"createHexagonPathD");async function Ze(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=4,e=a.height+t.padding,h=e/c,i=a.width+2*h+t.padding,l=[{x:h,y:0},{x:i-h,y:0},{x:i,y:-e/2},{x:i-h,y:-e},{x:h,y:-e},{x:0,y:-e/2}],p,{cssStyles:f}=t;if(t.look==="handDrawn"){let m=D.svg(s),g=M(t,{}),d=pr(0,0,i,e,h),x=m.path(d,g);p=s.insert(()=>x,":first-child").attr("transform",`translate(${-i/2}, ${e/2})`),f&&p.attr("style",f)}else p=J(s,i,e,l);return r&&p.attr("style",r),t.width=i,t.height=e,v(t,p),t.intersect=function(m){return N.polygon(t,l,m)},s}u(Ze,"hexagon");async function Ue(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.label="",t.labelStyle=o;let{shapeSvg:s}=await T(n,t,P(t)),a=Math.max(30,t?.width??0),c=Math.max(30,t?.height??0),{cssStyles:e}=t,h=D.svg(s),i=M(t,{});t.look!=="handDrawn"&&(i.roughness=0,i.fillStyle="solid");let l=[{x:0,y:0},{x:a,y:0},{x:0,y:c},{x:a,y:c}],p=H(l),f=h.path(p,i),m=s.insert(()=>f,":first-child");return m.attr("class","basic label-container"),e&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",e),r&&t.look!=="handDrawn"&&m.selectChildren("path").attr("style",r),m.attr("transform",`translate(${-a/2}, ${-c/2})`),v(t,m),t.intersect=function(g){return z.info("Pill intersect",t,{points:l}),N.polygon(t,l,g)},s}u(Ue,"hourglass");async function Qe(n,t,{config:{themeVariables:o,flowchart:r}}){let{labelStyles:s}=k(t);t.labelStyle=s;let a=t.assetHeight??48,c=t.assetWidth??48,e=Math.max(a,c),h=r?.wrappingWidth;t.width=Math.max(e,h??0);let{shapeSvg:i,bbox:l,label:p}=await T(n,t,"icon-shape default"),f=t.pos==="t",m=e,g=e,{nodeBorder:d}=o,{stylesMap:x}=ot(t),y=-g/2,b=-m/2,S=t.label?8:0,$=D.svg(i),w=M(t,{stroke:"none",fill:"none"});t.look!=="handDrawn"&&(w.roughness=0,w.fillStyle="solid");let C=$.rectangle(y,b,g,m,w),B=Math.max(g,l.width),R=m+l.height+S,j=$.rectangle(-B/2,-R/2,B,R,{...w,fill:"transparent",stroke:"none"}),A=i.insert(()=>C,":first-child"),O=i.insert(()=>j);if(t.icon){let W=i.append("g");W.html(`${await at(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let G=W.node().getBBox(),L=G.width,V=G.height,E=G.x,I=G.y;W.attr("transform",`translate(${-L/2-E},${f?l.height/2+S/2-V/2-I:-l.height/2-S/2-V/2-I})`),W.attr("style",`color: ${x.get("stroke")??d};`)}return p.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${f?-R/2:R/2-l.height})`),A.attr("transform",`translate(0,${f?l.height/2+S/2:-l.height/2-S/2})`),v(t,O),t.intersect=function(W){if(z.info("iconSquare intersect",t,W),!t.label)return N.rect(t,W);let G=t.x??0,L=t.y??0,V=t.height??0,E=[];return f?E=[{x:G-l.width/2,y:L-V/2},{x:G+l.width/2,y:L-V/2},{x:G+l.width/2,y:L-V/2+l.height+S},{x:G+g/2,y:L-V/2+l.height+S},{x:G+g/2,y:L+V/2},{x:G-g/2,y:L+V/2},{x:G-g/2,y:L-V/2+l.height+S},{x:G-l.width/2,y:L-V/2+l.height+S}]:E=[{x:G-g/2,y:L-V/2},{x:G+g/2,y:L-V/2},{x:G+g/2,y:L-V/2+m},{x:G+l.width/2,y:L-V/2+m},{x:G+l.width/2/2,y:L+V/2},{x:G-l.width/2,y:L+V/2},{x:G-l.width/2,y:L-V/2+m},{x:G-g/2,y:L-V/2+m}],N.polygon(t,E,W)},i}u(Qe,"icon");async function Je(n,t,{config:{themeVariables:o,flowchart:r}}){let{labelStyles:s}=k(t);t.labelStyle=s;let a=t.assetHeight??48,c=t.assetWidth??48,e=Math.max(a,c),h=r?.wrappingWidth;t.width=Math.max(e,h??0);let{shapeSvg:i,bbox:l,label:p}=await T(n,t,"icon-shape default"),f=20,m=t.label?8:0,g=t.pos==="t",{nodeBorder:d,mainBkg:x}=o,{stylesMap:y}=ot(t),b=D.svg(i),S=M(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=y.get("fill");S.stroke=$??x;let w=i.append("g");t.icon&&w.html(`${await at(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let C=w.node().getBBox(),B=C.width,R=C.height,j=C.x,A=C.y,O=Math.max(B,R)*Math.SQRT2+f*2,W=b.circle(0,0,O,S),G=Math.max(O,l.width),L=O+l.height+m,V=b.rectangle(-G/2,-L/2,G,L,{...S,fill:"transparent",stroke:"none"}),E=i.insert(()=>W,":first-child"),I=i.insert(()=>V);return w.attr("transform",`translate(${-B/2-j},${g?l.height/2+m/2-R/2-A:-l.height/2-m/2-R/2-A})`),w.attr("style",`color: ${y.get("stroke")??d};`),p.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${g?-L/2:L/2-l.height})`),E.attr("transform",`translate(0,${g?l.height/2+m/2:-l.height/2-m/2})`),v(t,I),t.intersect=function(_){return z.info("iconSquare intersect",t,_),N.rect(t,_)},i}u(Je,"iconCircle");async function Ke(n,t,{config:{themeVariables:o,flowchart:r}}){let{labelStyles:s}=k(t);t.labelStyle=s;let a=t.assetHeight??48,c=t.assetWidth??48,e=Math.max(a,c),h=r?.wrappingWidth;t.width=Math.max(e,h??0);let{shapeSvg:i,bbox:l,halfPadding:p,label:f}=await T(n,t,"icon-shape default"),m=t.pos==="t",g=e+p*2,d=e+p*2,{nodeBorder:x,mainBkg:y}=o,{stylesMap:b}=ot(t),S=-d/2,$=-g/2,w=t.label?8:0,C=D.svg(i),B=M(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let R=b.get("fill");B.stroke=R??y;let j=C.path(Q(S,$,d,g,5),B),A=Math.max(d,l.width),O=g+l.height+w,W=C.rectangle(-A/2,-O/2,A,O,{...B,fill:"transparent",stroke:"none"}),G=i.insert(()=>j,":first-child").attr("class","icon-shape2"),L=i.insert(()=>W);if(t.icon){let V=i.append("g");V.html(`${await at(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let E=V.node().getBBox(),I=E.width,_=E.height,U=E.x,rt=E.y;V.attr("transform",`translate(${-I/2-U},${m?l.height/2+w/2-_/2-rt:-l.height/2-w/2-_/2-rt})`),V.attr("style",`color: ${b.get("stroke")??x};`)}return f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${m?-O/2:O/2-l.height})`),G.attr("transform",`translate(0,${m?l.height/2+w/2:-l.height/2-w/2})`),v(t,L),t.intersect=function(V){if(z.info("iconSquare intersect",t,V),!t.label)return N.rect(t,V);let E=t.x??0,I=t.y??0,_=t.height??0,U=[];return m?U=[{x:E-l.width/2,y:I-_/2},{x:E+l.width/2,y:I-_/2},{x:E+l.width/2,y:I-_/2+l.height+w},{x:E+d/2,y:I-_/2+l.height+w},{x:E+d/2,y:I+_/2},{x:E-d/2,y:I+_/2},{x:E-d/2,y:I-_/2+l.height+w},{x:E-l.width/2,y:I-_/2+l.height+w}]:U=[{x:E-d/2,y:I-_/2},{x:E+d/2,y:I-_/2},{x:E+d/2,y:I-_/2+g},{x:E+l.width/2,y:I-_/2+g},{x:E+l.width/2/2,y:I+_/2},{x:E-l.width/2,y:I+_/2},{x:E-l.width/2,y:I-_/2+g},{x:E-d/2,y:I-_/2+g}],N.polygon(t,U,V)},i}u(Ke,"iconRounded");async function ts(n,t,{config:{themeVariables:o,flowchart:r}}){let{labelStyles:s}=k(t);t.labelStyle=s;let a=t.assetHeight??48,c=t.assetWidth??48,e=Math.max(a,c),h=r?.wrappingWidth;t.width=Math.max(e,h??0);let{shapeSvg:i,bbox:l,halfPadding:p,label:f}=await T(n,t,"icon-shape default"),m=t.pos==="t",g=e+p*2,d=e+p*2,{nodeBorder:x,mainBkg:y}=o,{stylesMap:b}=ot(t),S=-d/2,$=-g/2,w=t.label?8:0,C=D.svg(i),B=M(t,{});t.look!=="handDrawn"&&(B.roughness=0,B.fillStyle="solid");let R=b.get("fill");B.stroke=R??y;let j=C.path(Q(S,$,d,g,.1),B),A=Math.max(d,l.width),O=g+l.height+w,W=C.rectangle(-A/2,-O/2,A,O,{...B,fill:"transparent",stroke:"none"}),G=i.insert(()=>j,":first-child"),L=i.insert(()=>W);if(t.icon){let V=i.append("g");V.html(`${await at(t.icon,{height:e,width:e,fallbackPrefix:""})}`);let E=V.node().getBBox(),I=E.width,_=E.height,U=E.x,rt=E.y;V.attr("transform",`translate(${-I/2-U},${m?l.height/2+w/2-_/2-rt:-l.height/2-w/2-_/2-rt})`),V.attr("style",`color: ${b.get("stroke")??x};`)}return f.attr("transform",`translate(${-l.width/2-(l.x-(l.left??0))},${m?-O/2:O/2-l.height})`),G.attr("transform",`translate(0,${m?l.height/2+w/2:-l.height/2-w/2})`),v(t,L),t.intersect=function(V){if(z.info("iconSquare intersect",t,V),!t.label)return N.rect(t,V);let E=t.x??0,I=t.y??0,_=t.height??0,U=[];return m?U=[{x:E-l.width/2,y:I-_/2},{x:E+l.width/2,y:I-_/2},{x:E+l.width/2,y:I-_/2+l.height+w},{x:E+d/2,y:I-_/2+l.height+w},{x:E+d/2,y:I+_/2},{x:E-d/2,y:I+_/2},{x:E-d/2,y:I-_/2+l.height+w},{x:E-l.width/2,y:I-_/2+l.height+w}]:U=[{x:E-d/2,y:I-_/2},{x:E+d/2,y:I-_/2},{x:E+d/2,y:I-_/2+g},{x:E+l.width/2,y:I-_/2+g},{x:E+l.width/2/2,y:I+_/2},{x:E-l.width/2,y:I+_/2},{x:E-l.width/2,y:I-_/2+g},{x:E-d/2,y:I-_/2+g}],N.polygon(t,U,V)},i}u(ts,"iconSquare");async function es(n,t,{config:{flowchart:o}}){let r=new Image;r.src=t?.img??"",await r.decode();let s=Number(r.naturalWidth.toString().replace("px","")),a=Number(r.naturalHeight.toString().replace("px",""));t.imageAspectRatio=s/a;let{labelStyles:c}=k(t);t.labelStyle=c;let e=o?.wrappingWidth;t.defaultWidth=o?.wrappingWidth;let h=Math.max(t.label?e??0:0,t?.assetWidth??s),i=t.constraint==="on"&&t?.assetHeight?t.assetHeight*t.imageAspectRatio:h,l=t.constraint==="on"?i/t.imageAspectRatio:t?.assetHeight??a;t.width=Math.max(i,e??0);let{shapeSvg:p,bbox:f,label:m}=await T(n,t,"image-shape default"),g=t.pos==="t",d=-i/2,x=-l/2,y=t.label?8:0,b=D.svg(p),S=M(t,{});t.look!=="handDrawn"&&(S.roughness=0,S.fillStyle="solid");let $=b.rectangle(d,x,i,l,S),w=Math.max(i,f.width),C=l+f.height+y,B=b.rectangle(-w/2,-C/2,w,C,{...S,fill:"none",stroke:"none"}),R=p.insert(()=>$,":first-child"),j=p.insert(()=>B);if(t.img){let A=p.append("image");A.attr("href",t.img),A.attr("width",i),A.attr("height",l),A.attr("preserveAspectRatio","none"),A.attr("transform",`translate(${-i/2},${g?C/2-l:-C/2})`)}return m.attr("transform",`translate(${-f.width/2-(f.x-(f.left??0))},${g?-l/2-f.height/2-y/2:l/2-f.height/2+y/2})`),R.attr("transform",`translate(0,${g?f.height/2+y/2:-f.height/2-y/2})`),v(t,j),t.intersect=function(A){if(z.info("iconSquare intersect",t,A),!t.label)return N.rect(t,A);let O=t.x??0,W=t.y??0,G=t.height??0,L=[];return g?L=[{x:O-f.width/2,y:W-G/2},{x:O+f.width/2,y:W-G/2},{x:O+f.width/2,y:W-G/2+f.height+y},{x:O+i/2,y:W-G/2+f.height+y},{x:O+i/2,y:W+G/2},{x:O-i/2,y:W+G/2},{x:O-i/2,y:W-G/2+f.height+y},{x:O-f.width/2,y:W-G/2+f.height+y}]:L=[{x:O-i/2,y:W-G/2},{x:O+i/2,y:W-G/2},{x:O+i/2,y:W-G/2+l},{x:O+f.width/2,y:W-G/2+l},{x:O+f.width/2/2,y:W+G/2},{x:O-f.width/2,y:W+G/2},{x:O-f.width/2,y:W-G/2+l},{x:O-i/2,y:W-G/2+l}],N.polygon(t,L,A)},p}u(es,"imageSquare");async function ss(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=Math.max(a.width+(t.padding??0)*2,t?.width??0),e=Math.max(a.height+(t.padding??0)*2,t?.height??0),h=[{x:0,y:0},{x:c,y:0},{x:c+3*e/6,y:-e},{x:-3*e/6,y:-e}],i,{cssStyles:l}=t;if(t.look==="handDrawn"){let p=D.svg(s),f=M(t,{}),m=H(h),g=p.path(m,f);i=s.insert(()=>g,":first-child").attr("transform",`translate(${-c/2}, ${e/2})`),l&&i.attr("style",l)}else i=J(s,c,e,h);return r&&i.attr("style",r),t.width=c,t.height=e,v(t,i),t.intersect=function(p){return N.polygon(t,h,p)},s}u(ss,"inv_trapezoid");async function ft(n,t,o){let{labelStyles:r,nodeStyles:s}=k(t);t.labelStyle=r;let{shapeSvg:a,bbox:c}=await T(n,t,P(t)),e=Math.max(c.width+o.labelPaddingX*2,t?.width||0),h=Math.max(c.height+o.labelPaddingY*2,t?.height||0),i=-e/2,l=-h/2,p,{rx:f,ry:m}=t,{cssStyles:g}=t;if(o?.rx&&o.ry&&(f=o.rx,m=o.ry),t.look==="handDrawn"){let d=D.svg(a),x=M(t,{}),y=f||m?d.path(Q(i,l,e,h,f||0),x):d.rectangle(i,l,e,h,x);p=a.insert(()=>y,":first-child"),p.attr("class","basic label-container").attr("style",X(g))}else p=a.insert("rect",":first-child"),p.attr("class","basic label-container").attr("style",s).attr("rx",X(f)).attr("ry",X(m)).attr("x",i).attr("y",l).attr("width",e).attr("height",h);return v(t,p),t.intersect=function(d){return N.rect(t,d)},a}u(ft,"drawRect");async function rs(n,t){let{shapeSvg:o,bbox:r,label:s}=await T(n,t,"label"),a=o.insert("rect",":first-child");return a.attr("width",.1).attr("height",.1),o.attr("class","label edgeLabel"),s.attr("transform",`translate(${-(r.width/2)-(r.x-(r.left??0))}, ${-(r.height/2)-(r.y-(r.top??0))})`),v(t,a),t.intersect=function(h){return N.rect(t,h)},o}u(rs,"labelRect");async function os(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=Math.max(a.width+(t.padding??0),t?.width??0),e=Math.max(a.height+(t.padding??0),t?.height??0),h=[{x:0,y:0},{x:c+3*e/6,y:0},{x:c,y:-e},{x:-(3*e)/6,y:-e}],i,{cssStyles:l}=t;if(t.look==="handDrawn"){let p=D.svg(s),f=M(t,{}),m=H(h),g=p.path(m,f);i=s.insert(()=>g,":first-child").attr("transform",`translate(${-c/2}, ${e/2})`),l&&i.attr("style",l)}else i=J(s,c,e,h);return r&&i.attr("style",r),t.width=c,t.height=e,v(t,i),t.intersect=function(p){return N.polygon(t,h,p)},s}u(os,"lean_left");async function as(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=Math.max(a.width+(t.padding??0),t?.width??0),e=Math.max(a.height+(t.padding??0),t?.height??0),h=[{x:-3*e/6,y:0},{x:c,y:0},{x:c+3*e/6,y:-e},{x:0,y:-e}],i,{cssStyles:l}=t;if(t.look==="handDrawn"){let p=D.svg(s),f=M(t,{}),m=H(h),g=p.path(m,f);i=s.insert(()=>g,":first-child").attr("transform",`translate(${-c/2}, ${e/2})`),l&&i.attr("style",l)}else i=J(s,c,e,h);return r&&i.attr("style",r),t.width=c,t.height=e,v(t,i),t.intersect=function(p){return N.polygon(t,h,p)},s}u(as,"lean_right");function is(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.label="",t.labelStyle=o;let s=n.insert("g").attr("class",P(t)).attr("id",t.domId??t.id),{cssStyles:a}=t,c=Math.max(35,t?.width??0),e=Math.max(35,t?.height??0),h=7,i=[{x:c,y:0},{x:0,y:e+h/2},{x:c-2*h,y:e+h/2},{x:0,y:2*e},{x:c,y:e-h/2},{x:2*h,y:e-h/2}],l=D.svg(s),p=M(t,{});t.look!=="handDrawn"&&(p.roughness=0,p.fillStyle="solid");let f=H(i),m=l.path(f,p),g=s.insert(()=>m,":first-child");return a&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",a),r&&t.look!=="handDrawn"&&g.selectAll("path").attr("style",r),g.attr("transform",`translate(-${c/2},${-e})`),v(t,g),t.intersect=function(d){return z.info("lightningBolt intersect",t,d),N.polygon(t,i,d)},s}u(is,"lightningBolt");var mr=u((n,t,o,r,s,a,c)=>[`M${n},${t+a}`,`a${s},${a} 0,0,0 ${o},0`,`a${s},${a} 0,0,0 ${-o},0`,`l0,${r}`,`a${s},${a} 0,0,0 ${o},0`,`l0,${-r}`,`M${n},${t+a+c}`,`a${s},${a} 0,0,0 ${o},0`].join(" "),"createCylinderPathD"),fr=u((n,t,o,r,s,a,c)=>[`M${n},${t+a}`,`M${n+o},${t+a}`,`a${s},${a} 0,0,0 ${-o},0`,`l0,${r}`,`a${s},${a} 0,0,0 ${o},0`,`l0,${-r}`,`M${n},${t+a+c}`,`a${s},${a} 0,0,0 ${o},0`].join(" "),"createOuterCylinderPathD"),gr=u((n,t,o,r,s,a)=>[`M${n-o/2},${-r/2}`,`a${s},${a} 0,0,0 ${o},0`].join(" "),"createInnerCylinderPathD");async function ns(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0),t.width??0),h=e/2,i=h/(2.5+e/50),l=Math.max(a.height+i+(t.padding??0),t.height??0),p=l*.1,f,{cssStyles:m}=t;if(t.look==="handDrawn"){let g=D.svg(s),d=fr(0,0,e,l,h,i,p),x=gr(0,i,e,l,h,i),y=M(t,{}),b=g.path(d,y),S=g.path(x,y);s.insert(()=>S,":first-child").attr("class","line"),f=s.insert(()=>b,":first-child"),f.attr("class","basic label-container"),m&&f.attr("style",m)}else{let g=mr(0,0,e,l,h,i,p);f=s.insert("path",":first-child").attr("d",g).attr("class","basic label-container").attr("style",X(m)).attr("style",r)}return f.attr("label-offset-y",i),f.attr("transform",`translate(${-e/2}, ${-(l/2+i)})`),v(t,f),c.attr("transform",`translate(${-(a.width/2)-(a.x-(a.left??0))}, ${-(a.height/2)+i-(a.y-(a.top??0))})`),t.intersect=function(g){let d=N.rect(t,g),x=d.x-(t.x??0);if(h!=0&&(Math.abs(x)<(t.width??0)/2||Math.abs(x)==(t.width??0)/2&&Math.abs(d.y-(t.y??0))>(t.height??0)/2-i)){let y=i*i*(1-x*x/(h*h));y>0&&(y=Math.sqrt(y)),y=i-y,g.y-(t.y??0)>0&&(y=-y),d.y+=y}return d},s}u(ns,"linedCylinder");async function ls(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=h/4,l=h+i,{cssStyles:p}=t,f=D.svg(s),m=M(t,{});t.look!=="handDrawn"&&(m.roughness=0,m.fillStyle="solid");let g=[{x:-e/2-e/2*.1,y:-l/2},{x:-e/2-e/2*.1,y:l/2},...st(-e/2-e/2*.1,l/2,e/2+e/2*.1,l/2,i,.8),{x:e/2+e/2*.1,y:-l/2},{x:-e/2-e/2*.1,y:-l/2},{x:-e/2,y:-l/2},{x:-e/2,y:l/2*1.1},{x:-e/2,y:-l/2}],d=f.polygon(g.map(y=>[y.x,y.y]),m),x=s.insert(()=>d,":first-child");return x.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",p),r&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",r),x.attr("transform",`translate(0,${-i/2})`),c.attr("transform",`translate(${-e/2+(t.padding??0)+e/2*.1/2-(a.x-(a.left??0))},${-h/2+(t.padding??0)-i/2-(a.y-(a.top??0))})`),v(t,x),t.intersect=function(y){return N.polygon(t,g,y)},s}u(ls,"linedWaveEdgedRect");async function cs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=5,l=-e/2,p=-h/2,{cssStyles:f}=t,m=D.svg(s),g=M(t,{}),d=[{x:l-i,y:p+i},{x:l-i,y:p+h+i},{x:l+e-i,y:p+h+i},{x:l+e-i,y:p+h},{x:l+e,y:p+h},{x:l+e,y:p+h-i},{x:l+e+i,y:p+h-i},{x:l+e+i,y:p-i},{x:l+i,y:p-i},{x:l+i,y:p},{x:l,y:p},{x:l,y:p+i}],x=[{x:l,y:p+i},{x:l+e-i,y:p+i},{x:l+e-i,y:p+h},{x:l+e,y:p+h},{x:l+e,y:p},{x:l,y:p}];t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=H(d),b=m.path(y,g),S=H(x),$=m.path(S,{...g,fill:"none"}),w=s.insert(()=>$,":first-child");return w.insert(()=>b,":first-child"),w.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",f),r&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",r),c.attr("transform",`translate(${-(a.width/2)-i-(a.x-(a.left??0))}, ${-(a.height/2)+i-(a.y-(a.top??0))})`),v(t,w),t.intersect=function(C){return N.polygon(t,d,C)},s}u(cs,"multiRect");async function hs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=h/4,l=h+i,p=-e/2,f=-l/2,m=5,{cssStyles:g}=t,d=st(p-m,f+l+m,p+e-m,f+l+m,i,.8),x=d?.[d.length-1],y=[{x:p-m,y:f+m},{x:p-m,y:f+l+m},...d,{x:p+e-m,y:x.y-m},{x:p+e,y:x.y-m},{x:p+e,y:x.y-2*m},{x:p+e+m,y:x.y-2*m},{x:p+e+m,y:f-m},{x:p+m,y:f-m},{x:p+m,y:f},{x:p,y:f},{x:p,y:f+m}],b=[{x:p,y:f+m},{x:p+e-m,y:f+m},{x:p+e-m,y:x.y-m},{x:p+e,y:x.y-m},{x:p+e,y:f},{x:p,y:f}],S=D.svg(s),$=M(t,{});t.look!=="handDrawn"&&($.roughness=0,$.fillStyle="solid");let w=H(y),C=S.path(w,$),B=H(b),R=S.path(B,$),j=s.insert(()=>C,":first-child");return j.insert(()=>R),j.attr("class","basic label-container"),g&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",g),r&&t.look!=="handDrawn"&&j.selectAll("path").attr("style",r),j.attr("transform",`translate(0,${-i/2})`),c.attr("transform",`translate(${-(a.width/2)-m-(a.x-(a.left??0))}, ${-(a.height/2)+m-i/2-(a.y-(a.top??0))})`),v(t,j),t.intersect=function(A){return N.polygon(t,y,A)},s}u(hs,"multiWaveEdgedRectangle");async function ps(n,t,{config:{themeVariables:o}}){let{labelStyles:r,nodeStyles:s}=k(t);t.labelStyle=r,t.useHtmlLabels||wt().flowchart?.htmlLabels!==!1||(t.centerLabel=!0);let{shapeSvg:c,bbox:e}=await T(n,t,P(t)),h=Math.max(e.width+(t.padding??0)*2,t?.width??0),i=Math.max(e.height+(t.padding??0)*2,t?.height??0),l=-h/2,p=-i/2,{cssStyles:f}=t,m=D.svg(c),g=M(t,{fill:o.noteBkgColor,stroke:o.noteBorderColor});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let d=m.rectangle(l,p,h,i,g),x=c.insert(()=>d,":first-child");return x.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",f),s&&t.look!=="handDrawn"&&x.selectAll("path").attr("style",s),v(t,x),t.intersect=function(y){return N.rect(t,y)},c}u(ps,"note");var dr=u((n,t,o)=>[`M${n+o/2},${t}`,`L${n+o},${t-o/2}`,`L${n+o/2},${t-o}`,`L${n},${t-o/2}`,"Z"].join(" "),"createDecisionBoxPathD");async function ms(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=a.width+t.padding,e=a.height+t.padding,h=c+e,i=[{x:h/2,y:0},{x:h,y:-h/2},{x:h/2,y:-h},{x:0,y:-h/2}],l,{cssStyles:p}=t;if(t.look==="handDrawn"){let f=D.svg(s),m=M(t,{}),g=dr(0,0,h),d=f.path(g,m);l=s.insert(()=>d,":first-child").attr("transform",`translate(${-h/2}, ${h/2})`),p&&l.attr("style",p)}else l=J(s,h,h,i);return r&&l.attr("style",r),v(t,l),t.intersect=function(f){return z.debug(`APA12 Intersect called SPLIT point:`,f,` @@ -10,6 +10,6 @@ res:`,N.polygon(t,i,f)),N.polygon(t,i,f)},s}u(ms,"question");async function fs(n a${s},${a} 0,0,1 0,${r} M${o},${-r} a${s},${a} 0,0,0 0,${r} - l${-o},0`,"createCylinderPathD"),yr=u((n,t,o,r,s,a)=>[`M${n},${t}`,`M${n+o},${t}`,`a${s},${a} 0,0,0 0,${-r}`,`l${-o},0`,`a${s},${a} 0,0,0 0,${r}`,`l${o},0`].join(" "),"createOuterCylinderPathD"),xr=u((n,t,o,r,s,a)=>[`M${n+o/2},${-r/2}`,`a${s},${a} 0,0,0 0,${r}`].join(" "),"createInnerCylinderPathD");async function $s(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c,halfPadding:e}=await T(n,t,P(t)),h=t.look==="neo"?e*2:e,i=a.height+h,l=i/2,p=l/(2.5+i/50),f=a.width+p+h,{cssStyles:m}=t,g;if(t.look==="handDrawn"){let d=D.svg(s),x=yr(0,0,f,i,p,l),y=xr(0,0,f,i,p,l),b=d.path(x,M(t,{})),S=d.path(y,M(t,{fill:"none"}));g=s.insert(()=>S,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let d=ur(0,0,f,i,p,l);g=s.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",X(m)).attr("style",r),g.attr("class","basic label-container"),m&&g.selectAll("path").attr("style",m),r&&g.selectAll("path").attr("style",r)}return g.attr("label-offset-x",p),g.attr("transform",`translate(${-f/2}, ${i/2} )`),c.attr("transform",`translate(${-(a.width/2)-p-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),v(t,g),t.intersect=function(d){let x=N.rect(t,d),y=x.y-(t.y??0);if(l!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-p)){let b=p*p*(1-y*y/(l*l));b!=0&&(b=Math.sqrt(b)),b=p-b,d.x-(t.x??0)>0&&(b=-b),x.x+=b}return x},s}u($s,"tiltedCylinder");async function Ps(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=a.width+t.padding,e=a.height+t.padding,h=[{x:-3*e/6,y:0},{x:c+3*e/6,y:0},{x:c,y:-e},{x:0,y:-e}],i,{cssStyles:l}=t;if(t.look==="handDrawn"){let p=D.svg(s),f=M(t,{}),m=H(h),g=p.path(m,f);i=s.insert(()=>g,":first-child").attr("transform",`translate(${-c/2}, ${e/2})`),l&&i.attr("style",l)}else i=J(s,c,e,h);return r&&i.attr("style",r),t.width=c,t.height=e,v(t,i),t.intersect=function(p){return N.polygon(t,h,p)},s}u(Ps,"trapezoid");async function Ts(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=60,e=20,h=Math.max(c,a.width+(t.padding??0)*2,t?.width??0),i=Math.max(e,a.height+(t.padding??0)*2,t?.height??0),{cssStyles:l}=t,p=D.svg(s),f=M(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let m=[{x:-h/2*.8,y:-i/2},{x:h/2*.8,y:-i/2},{x:h/2,y:-i/2*.6},{x:h/2,y:i/2},{x:-h/2,y:i/2},{x:-h/2,y:-i/2*.6}],g=H(m),d=p.path(g,f),x=s.insert(()=>d,":first-child");return x.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),r&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",r),v(t,x),t.intersect=function(y){return N.polygon(t,m,y)},s}u(Ts,"trapezoidalPentagon");async function Cs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Y(q().flowchart?.htmlLabels),h=a.width+(t.padding??0),i=h+a.height,l=h+a.height,p=[{x:0,y:0},{x:l,y:0},{x:l/2,y:-i}],{cssStyles:f}=t,m=D.svg(s),g=M(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let d=H(p),x=m.path(d,g),y=s.insert(()=>x,":first-child").attr("transform",`translate(${-i/2}, ${i/2})`);return f&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),r&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",r),t.width=h,t.height=i,v(t,y),c.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${i/2-(a.height+(t.padding??0)/(e?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(b){return z.info("Triangle intersect",t,p,b),N.polygon(t,p,b)},s}u(Cs,"triangle");async function Bs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=h/8,l=h+i,{cssStyles:p}=t,m=70-e,g=m>0?m/2:0,d=D.svg(s),x=M(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let y=[{x:-e/2-g,y:l/2},...st(-e/2-g,l/2,e/2+g,l/2,i,.8),{x:e/2+g,y:-l/2},{x:-e/2-g,y:-l/2}],b=H(y),S=d.path(b,x),$=s.insert(()=>S,":first-child");return $.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",p),r&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",r),$.attr("transform",`translate(0,${-i/2})`),c.attr("transform",`translate(${-e/2+(t.padding??0)-(a.x-(a.left??0))},${-h/2+(t.padding??0)-i-(a.y-(a.top??0))})`),v(t,$),t.intersect=function(w){return N.polygon(t,y,w)},s}u(Bs,"waveEdgedRectangle");async function Rs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=100,e=50,h=Math.max(a.width+(t.padding??0)*2,t?.width??0),i=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=h/i,p=h,f=i;p>f*l?f=p/l:p=f*l,p=Math.max(p,c),f=Math.max(f,e);let m=Math.min(f*.2,f/4),g=f+m*2,{cssStyles:d}=t,x=D.svg(s),y=M(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let b=[{x:-p/2,y:g/2},...st(-p/2,g/2,p/2,g/2,m,1),{x:p/2,y:-g/2},...st(p/2,-g/2,-p/2,-g/2,m,-1)],S=H(b),$=x.path(S,y),w=s.insert(()=>$,":first-child");return w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",d),r&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",r),v(t,w),t.intersect=function(C){return N.polygon(t,b,C)},s}u(Rs,"waveRectangle");async function Gs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=5,l=-e/2,p=-h/2,{cssStyles:f}=t,m=D.svg(s),g=M(t,{}),d=[{x:l-i,y:p-i},{x:l-i,y:p+h},{x:l+e,y:p+h},{x:l+e,y:p-i}],x=`M${l-i},${p-i} L${l+e},${p-i} L${l+e},${p+h} L${l-i},${p+h} L${l-i},${p-i} + l${-o},0`,"createCylinderPathD"),yr=u((n,t,o,r,s,a)=>[`M${n},${t}`,`M${n+o},${t}`,`a${s},${a} 0,0,0 0,${-r}`,`l${-o},0`,`a${s},${a} 0,0,0 0,${r}`,`l${o},0`].join(" "),"createOuterCylinderPathD"),xr=u((n,t,o,r,s,a)=>[`M${n+o/2},${-r/2}`,`a${s},${a} 0,0,0 0,${r}`].join(" "),"createInnerCylinderPathD");async function $s(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c,halfPadding:e}=await T(n,t,P(t)),h=t.look==="neo"?e*2:e,i=a.height+h,l=i/2,p=l/(2.5+i/50),f=a.width+p+h,{cssStyles:m}=t,g;if(t.look==="handDrawn"){let d=D.svg(s),x=yr(0,0,f,i,p,l),y=xr(0,0,f,i,p,l),b=d.path(x,M(t,{})),S=d.path(y,M(t,{fill:"none"}));g=s.insert(()=>S,":first-child"),g=s.insert(()=>b,":first-child"),g.attr("class","basic label-container"),m&&g.attr("style",m)}else{let d=ur(0,0,f,i,p,l);g=s.insert("path",":first-child").attr("d",d).attr("class","basic label-container").attr("style",X(m)).attr("style",r),g.attr("class","basic label-container"),m&&g.selectAll("path").attr("style",m),r&&g.selectAll("path").attr("style",r)}return g.attr("label-offset-x",p),g.attr("transform",`translate(${-f/2}, ${i/2} )`),c.attr("transform",`translate(${-(a.width/2)-p-(a.x-(a.left??0))}, ${-(a.height/2)-(a.y-(a.top??0))})`),v(t,g),t.intersect=function(d){let x=N.rect(t,d),y=x.y-(t.y??0);if(l!=0&&(Math.abs(y)<(t.height??0)/2||Math.abs(y)==(t.height??0)/2&&Math.abs(x.x-(t.x??0))>(t.width??0)/2-p)){let b=p*p*(1-y*y/(l*l));b!=0&&(b=Math.sqrt(Math.abs(b))),b=p-b,d.x-(t.x??0)>0&&(b=-b),x.x+=b}return x},s}u($s,"tiltedCylinder");async function Ps(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=a.width+t.padding,e=a.height+t.padding,h=[{x:-3*e/6,y:0},{x:c+3*e/6,y:0},{x:c,y:-e},{x:0,y:-e}],i,{cssStyles:l}=t;if(t.look==="handDrawn"){let p=D.svg(s),f=M(t,{}),m=H(h),g=p.path(m,f);i=s.insert(()=>g,":first-child").attr("transform",`translate(${-c/2}, ${e/2})`),l&&i.attr("style",l)}else i=J(s,c,e,h);return r&&i.attr("style",r),t.width=c,t.height=e,v(t,i),t.intersect=function(p){return N.polygon(t,h,p)},s}u(Ps,"trapezoid");async function Ts(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=60,e=20,h=Math.max(c,a.width+(t.padding??0)*2,t?.width??0),i=Math.max(e,a.height+(t.padding??0)*2,t?.height??0),{cssStyles:l}=t,p=D.svg(s),f=M(t,{});t.look!=="handDrawn"&&(f.roughness=0,f.fillStyle="solid");let m=[{x:-h/2*.8,y:-i/2},{x:h/2*.8,y:-i/2},{x:h/2,y:-i/2*.6},{x:h/2,y:i/2},{x:-h/2,y:i/2},{x:-h/2,y:-i/2*.6}],g=H(m),d=p.path(g,f),x=s.insert(()=>d,":first-child");return x.attr("class","basic label-container"),l&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",l),r&&t.look!=="handDrawn"&&x.selectChildren("path").attr("style",r),v(t,x),t.intersect=function(y){return N.polygon(t,m,y)},s}u(Ts,"trapezoidalPentagon");async function Cs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Y(q().flowchart?.htmlLabels),h=a.width+(t.padding??0),i=h+a.height,l=h+a.height,p=[{x:0,y:0},{x:l,y:0},{x:l/2,y:-i}],{cssStyles:f}=t,m=D.svg(s),g=M(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let d=H(p),x=m.path(d,g),y=s.insert(()=>x,":first-child").attr("transform",`translate(${-i/2}, ${i/2})`);return f&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",f),r&&t.look!=="handDrawn"&&y.selectChildren("path").attr("style",r),t.width=h,t.height=i,v(t,y),c.attr("transform",`translate(${-a.width/2-(a.x-(a.left??0))}, ${i/2-(a.height+(t.padding??0)/(e?2:1)-(a.y-(a.top??0)))})`),t.intersect=function(b){return z.info("Triangle intersect",t,p,b),N.polygon(t,p,b)},s}u(Cs,"triangle");async function Bs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=h/8,l=h+i,{cssStyles:p}=t,m=70-e,g=m>0?m/2:0,d=D.svg(s),x=M(t,{});t.look!=="handDrawn"&&(x.roughness=0,x.fillStyle="solid");let y=[{x:-e/2-g,y:l/2},...st(-e/2-g,l/2,e/2+g,l/2,i,.8),{x:e/2+g,y:-l/2},{x:-e/2-g,y:-l/2}],b=H(y),S=d.path(b,x),$=s.insert(()=>S,":first-child");return $.attr("class","basic label-container"),p&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",p),r&&t.look!=="handDrawn"&&$.selectAll("path").attr("style",r),$.attr("transform",`translate(0,${-i/2})`),c.attr("transform",`translate(${-e/2+(t.padding??0)-(a.x-(a.left??0))},${-h/2+(t.padding??0)-i-(a.y-(a.top??0))})`),v(t,$),t.intersect=function(w){return N.polygon(t,y,w)},s}u(Bs,"waveEdgedRectangle");async function Rs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a}=await T(n,t,P(t)),c=100,e=50,h=Math.max(a.width+(t.padding??0)*2,t?.width??0),i=Math.max(a.height+(t.padding??0)*2,t?.height??0),l=h/i,p=h,f=i;p>f*l?f=p/l:p=f*l,p=Math.max(p,c),f=Math.max(f,e);let m=Math.min(f*.2,f/4),g=f+m*2,{cssStyles:d}=t,x=D.svg(s),y=M(t,{});t.look!=="handDrawn"&&(y.roughness=0,y.fillStyle="solid");let b=[{x:-p/2,y:g/2},...st(-p/2,g/2,p/2,g/2,m,1),{x:p/2,y:-g/2},...st(p/2,-g/2,-p/2,-g/2,m,-1)],S=H(b),$=x.path(S,y),w=s.insert(()=>$,":first-child");return w.attr("class","basic label-container"),d&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",d),r&&t.look!=="handDrawn"&&w.selectAll("path").attr("style",r),v(t,w),t.intersect=function(C){return N.polygon(t,b,C)},s}u(Rs,"waveRectangle");async function Gs(n,t){let{labelStyles:o,nodeStyles:r}=k(t);t.labelStyle=o;let{shapeSvg:s,bbox:a,label:c}=await T(n,t,P(t)),e=Math.max(a.width+(t.padding??0)*2,t?.width??0),h=Math.max(a.height+(t.padding??0)*2,t?.height??0),i=5,l=-e/2,p=-h/2,{cssStyles:f}=t,m=D.svg(s),g=M(t,{}),d=[{x:l-i,y:p-i},{x:l-i,y:p+h},{x:l+e,y:p+h},{x:l+e,y:p-i}],x=`M${l-i},${p-i} L${l+e},${p-i} L${l+e},${p+h} L${l-i},${p+h} L${l-i},${p-i} M${l-i},${p} L${l+e},${p} M${l},${p-i} L${l},${p+h}`;t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let y=m.path(x,g),b=s.insert(()=>y,":first-child");return b.attr("transform",`translate(${i/2}, ${i/2})`),b.attr("class","basic label-container"),f&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",f),r&&t.look!=="handDrawn"&&b.selectAll("path").attr("style",r),c.attr("transform",`translate(${-(a.width/2)+i/2-(a.x-(a.left??0))}, ${-(a.height/2)+i/2-(a.y-(a.top??0))})`),v(t,b),t.intersect=function(S){return N.polygon(t,d,S)},s}u(Gs,"windowPane");async function js(n,t,o,r,s=o.class.padding??12){let a=r?0:3,c=n.insert("g").attr("class",P(t)).attr("id",t.domId||t.id),e=null,h=null,i=null,l=null,p=0,f=0,m=0;if(e=c.insert("g").attr("class","annotation-group text"),t.annotations.length>0){let b=t.annotations[0];await Et(e,{text:`\xAB${b}\xBB`},0),p=e.node().getBBox().height}h=c.insert("g").attr("class","label-group text"),await Et(h,t,0,["font-weight: bolder"]);let g=h.node().getBBox();f=g.height,i=c.insert("g").attr("class","members-group text");let d=0;for(let b of t.members){let S=await Et(i,b,d,[b.parseClassifier()]);d+=S+a}m=i.node().getBBox().height,m<=0&&(m=s/2),l=c.insert("g").attr("class","methods-group text");let x=0;for(let b of t.methods){let S=await Et(l,b,x,[b.parseClassifier()]);x+=S+a}let y=c.node().getBBox();if(e!==null){let b=e.node().getBBox();e.attr("transform",`translate(${-b.width/2})`)}return h.attr("transform",`translate(${-g.width/2}, ${p})`),y=c.node().getBBox(),i.attr("transform",`translate(0, ${p+f+s*2})`),y=c.node().getBBox(),l.attr("transform",`translate(0, ${p+f+(m?m+s*4:s*2)})`),y=c.node().getBBox(),{shapeSvg:c,bbox:y}}u(js,"textHelper");async function Et(n,t,o,r=[]){let s=n.insert("g").attr("class","label").attr("style",r.join("; ")),a=wt(),c="useHtmlLabels"in t?t.useHtmlLabels:Y(a.htmlLabels)??!0,e="";"text"in t?e=t.text:e=t.label,!c&&e.startsWith("\\")&&(e=e.substring(1)),Nt(e)&&(c=!0);let h=await it(s,ie(pt(e)),{width:ne(e,a)+50,classes:"markdown-node-label",useHtmlLabels:c},a),i,l=1;if(c){let p=h.children[0],f=Z(h);l=p.innerHTML.split("
      ").length,p.innerHTML.includes("")&&(l+=p.innerHTML.split("").length-1);let m=p.getElementsByTagName("img");if(m){let g=e.replace(/]*>/g,"").trim()==="";await Promise.all([...m].map(d=>new Promise(x=>{function y(){if(d.style.display="flex",d.style.flexDirection="column",g){let b=a.fontSize?.toString()??window.getComputedStyle(document.body).fontSize,$=parseInt(b,10)*5+"px";d.style.minWidth=$,d.style.maxWidth=$}else d.style.width="100%";x(d)}u(y,"setupImage"),setTimeout(()=>{d.complete&&y()}),d.addEventListener("error",y),d.addEventListener("load",y)})))}i=p.getBoundingClientRect(),f.attr("width",i.width),f.attr("height",i.height)}else{r.includes("font-weight: bolder")&&Z(h).selectAll("tspan").attr("font-weight",""),l=h.children.length;let p=h.children[0];(h.textContent===""||h.textContent.includes(">"))&&(p.textContent=e[0]+e.substring(1).replaceAll(">",">").replaceAll("<","<").trim(),e[1]===" "&&(p.textContent=p.textContent[0]+" "+p.textContent.substring(1))),p.textContent==="undefined"&&(p.textContent=""),i=h.getBBox()}return s.attr("transform","translate(0,"+(-i.height/(2*l)+o)+")"),i.height}u(Et,"addText");async function Es(n,t){let o=q(),r=o.class.padding??12,s=r,a=t.useHtmlLabels??Y(o.htmlLabels)??!0,c=t;c.annotations=c.annotations??[],c.members=c.members??[],c.methods=c.methods??[];let{shapeSvg:e,bbox:h}=await js(n,t,o,a,s),{labelStyles:i,nodeStyles:l}=k(t);t.labelStyle=i,t.cssStyles=c.styles||"";let p=c.styles?.join(";")||l||"";t.cssStyles||(t.cssStyles=p.replaceAll("!important","").split(";"));let f=c.members.length===0&&c.methods.length===0&&!o.class?.hideEmptyMembersBox,m=D.svg(e),g=M(t,{});t.look!=="handDrawn"&&(g.roughness=0,g.fillStyle="solid");let d=h.width,x=h.height;c.members.length===0&&c.methods.length===0?x+=s:c.members.length>0&&c.methods.length===0&&(x+=s*2);let y=-d/2,b=-x/2,S=m.rectangle(y-r,b-r-(f?r:c.members.length===0&&c.methods.length===0?-r/2:0),d+2*r,x+2*r+(f?r*2:c.members.length===0&&c.methods.length===0?-r:0),g),$=e.insert(()=>S,":first-child");$.attr("class","basic label-container");let w=$.node().getBBox();e.selectAll(".text").each((j,A,O)=>{let W=Z(O[A]),G=W.attr("transform"),L=0;if(G){let _=RegExp(/translate\(([^,]+),([^)]+)\)/).exec(G);_&&(L=parseFloat(_[2]))}let V=L+b+r-(f?r:c.members.length===0&&c.methods.length===0?-r/2:0);a||(V-=4);let E=y;(W.attr("class").includes("label-group")||W.attr("class").includes("annotation-group"))&&(E=-W.node()?.getBBox().width/2||0,e.selectAll("text").each(function(I,_,U){window.getComputedStyle(U[_]).textAnchor==="middle"&&(E=0)})),W.attr("transform",`translate(${E}, ${V})`)});let C=e.select(".annotation-group").node().getBBox().height-(f?r/2:0)||0,B=e.select(".label-group").node().getBBox().height-(f?r/2:0)||0,R=e.select(".members-group").node().getBBox().height-(f?r/2:0)||0;if(c.members.length>0||c.methods.length>0||f){let j=m.line(w.x,C+B+b+r,w.x+w.width,C+B+b+r,g);e.insert(()=>j).attr("class","divider").attr("style",p)}if(f||c.members.length>0||c.methods.length>0){let j=m.line(w.x,C+B+R+b+s*2+r,w.x+w.width,C+B+R+b+r+s*2,g);e.insert(()=>j).attr("class","divider").attr("style",p)}if(c.look!=="handDrawn"&&e.selectAll("path").attr("style",p),$.select(":nth-child(2)").attr("style",p),e.selectAll(".divider").select("path").attr("style",p),t.labelStyle?e.selectAll("span").attr("style",t.labelStyle):e.selectAll("span").attr("style",p),!a){let j=RegExp(/color\s*:\s*([^;]*)/),A=j.exec(p);if(A){let O=A[0].replace("color","fill");e.selectAll("tspan").attr("style",O)}else if(i){let O=j.exec(i);if(O){let W=O[0].replace("color","fill");e.selectAll("tspan").attr("style",W)}}}return v(t,$),t.intersect=function(j){return N.rect(t,j)},e}u(Es,"classBox");var br=u(n=>{switch(n){case"Very High":return"red";case"High":return"orange";case"Medium":return null;case"Low":return"blue";case"Very Low":return"lightblue"}},"colorFromPriority");async function As(n,t,{config:o}){let{labelStyles:r,nodeStyles:s}=k(t);t.labelStyle=r||"";let a=10,c=t.width;t.width=(t.width??200)-10;let{shapeSvg:e,bbox:h,label:i}=await T(n,t,P(t)),l=t.padding||10,p="",f;"ticket"in t&&t.ticket&&o?.kanban?.ticketBaseUrl&&(p=o?.kanban?.ticketBaseUrl.replace("#TICKET#",t.ticket),f=e.insert("svg:a",":first-child").attr("class","kanban-ticket-link").attr("xlink:href",p).attr("target","_blank"));let m={useHtmlLabels:t.useHtmlLabels,labelStyle:t.labelStyle||"",width:t.width,img:t.img,padding:t.padding||8,centerLabel:!1},g,d;f?{label:g,bbox:d}=await Dt(f,"ticket"in t&&t.ticket||"",m):{label:g,bbox:d}=await Dt(e,"ticket"in t&&t.ticket||"",m);let{label:x,bbox:y}=await Dt(e,"assigned"in t&&t.assigned||"",m);t.width=c;let b=10,S=t?.width||0,$=Math.max(d.height,y.height)/2,w=Math.max(h.height+b*2,t?.height||0)+$,C=-S/2,B=-w/2;i.attr("transform","translate("+(l-S/2)+", "+(-$-h.height/2)+")"),g.attr("transform","translate("+(l-S/2)+", "+(-$+h.height/2)+")"),x.attr("transform","translate("+(l+S/2-y.width-2*a)+", "+(-$+h.height/2)+")");let R,{rx:j,ry:A}=t,{cssStyles:O}=t;if(t.look==="handDrawn"){let W=D.svg(e),G=M(t,{}),L=j||A?W.path(Q(C,B,S,w,j||0),G):W.rectangle(C,B,S,w,G);R=e.insert(()=>L,":first-child"),R.attr("class","basic label-container").attr("style",O||null)}else{R=e.insert("rect",":first-child"),R.attr("class","basic label-container __APA__").attr("style",s).attr("rx",j??5).attr("ry",A??5).attr("x",C).attr("y",B).attr("width",S).attr("height",w);let W="priority"in t&&t.priority;if(W){let G=e.append("line"),L=C+2,V=B+Math.floor((j??0)/2),E=B+w-Math.floor((j??0)/2);G.attr("x1",L).attr("y1",V).attr("x2",L).attr("y2",E).attr("stroke-width","4").attr("stroke",br(W))}}return v(t,R),t.height=w,t.intersect=function(W){return N.rect(t,W)},e}u(As,"kanbanItem");var Sr=[{semanticName:"Process",name:"Rectangle",shortName:"rect",description:"Standard process shape",aliases:["proc","process","rectangle"],internalAliases:["squareRect"],handler:xs},{semanticName:"Event",name:"Rounded Rectangle",shortName:"rounded",description:"Represents an event",aliases:["event"],internalAliases:["roundedRect"],handler:ds},{semanticName:"Terminal Point",name:"Stadium",shortName:"stadium",description:"Terminal point",aliases:["terminal","pill"],handler:bs},{semanticName:"Subprocess",name:"Framed Rectangle",shortName:"fr-rect",description:"Subprocess",aliases:["subprocess","subproc","framed-rectangle","subroutine"],handler:Ds},{semanticName:"Database",name:"Cylinder",shortName:"cyl",description:"Database storage",aliases:["db","database","cylinder"],handler:Ie},{semanticName:"Start",name:"Circle",shortName:"circle",description:"Starting point",aliases:["circ"],handler:Ae},{semanticName:"Decision",name:"Diamond",shortName:"diam",description:"Decision-making step",aliases:["decision","diamond","question"],handler:ms},{semanticName:"Prepare Conditional",name:"Hexagon",shortName:"hex",description:"Preparation or condition step",aliases:["hexagon","prepare"],handler:Ze},{semanticName:"Data Input/Output",name:"Lean Right",shortName:"lean-r",description:"Represents input or output",aliases:["lean-right","in-out"],internalAliases:["lean_right"],handler:as},{semanticName:"Data Input/Output",name:"Lean Left",shortName:"lean-l",description:"Represents output or input",aliases:["lean-left","out-in"],internalAliases:["lean_left"],handler:os},{semanticName:"Priority Action",name:"Trapezoid Base Bottom",shortName:"trap-b",description:"Priority action",aliases:["priority","trapezoid-bottom","trapezoid"],handler:Ps},{semanticName:"Manual Operation",name:"Trapezoid Base Top",shortName:"trap-t",description:"Represents a manual task",aliases:["manual","trapezoid-top","inv-trapezoid"],internalAliases:["inv_trapezoid"],handler:ss},{semanticName:"Stop",name:"Double Circle",shortName:"dbl-circ",description:"Represents a stop point",aliases:["double-circle"],internalAliases:["doublecircle"],handler:_e},{semanticName:"Text Block",name:"Text Block",shortName:"text",description:"Text block",handler:ks},{semanticName:"Card",name:"Notched Rectangle",shortName:"notch-rect",description:"Represents a card",aliases:["card","notched-rectangle"],handler:je},{semanticName:"Lined/Shaded Process",name:"Lined Rectangle",shortName:"lin-rect",description:"Lined process shape",aliases:["lined-rectangle","lined-process","lin-proc","shaded-process"],handler:us},{semanticName:"Start",name:"Small Circle",shortName:"sm-circ",description:"Small starting point",aliases:["start","small-circle"],internalAliases:["stateStart"],handler:Ns},{semanticName:"Stop",name:"Framed Circle",shortName:"fr-circ",description:"Stop point",aliases:["stop","framed-circle"],internalAliases:["stateEnd"],handler:ws},{semanticName:"Fork/Join",name:"Filled Rectangle",shortName:"fork",description:"Fork or join in process flow",aliases:["join"],internalAliases:["forkJoin"],handler:Xe},{semanticName:"Collate",name:"Hourglass",shortName:"hourglass",description:"Represents a collate operation",aliases:["hourglass","collate"],handler:Ue},{semanticName:"Comment",name:"Curly Brace",shortName:"brace",description:"Adds a comment",aliases:["comment","brace-l"],handler:Le},{semanticName:"Comment Right",name:"Curly Brace",shortName:"brace-r",description:"Adds a comment",handler:He},{semanticName:"Comment with braces on both sides",name:"Curly Braces",shortName:"braces",description:"Adds a comment",handler:Ve},{semanticName:"Com Link",name:"Lightning Bolt",shortName:"bolt",description:"Communication link",aliases:["com-link","lightning-bolt"],handler:is},{semanticName:"Document",name:"Document",shortName:"doc",description:"Represents a document",aliases:["doc","document"],handler:Bs},{semanticName:"Delay",name:"Half-Rounded Rectangle",shortName:"delay",description:"Represents a delay",aliases:["half-rounded-rectangle"],handler:Ye},{semanticName:"Direct Access Storage",name:"Horizontal Cylinder",shortName:"h-cyl",description:"Direct access storage",aliases:["das","horizontal-cylinder"],handler:$s},{semanticName:"Disk Storage",name:"Lined Cylinder",shortName:"lin-cyl",description:"Disk storage",aliases:["disk","lined-cylinder"],handler:ns},{semanticName:"Display",name:"Curved Trapezoid",shortName:"curv-trap",description:"Represents a display",aliases:["curved-trapezoid","display"],handler:We},{semanticName:"Divided Process",name:"Divided Rectangle",shortName:"div-rect",description:"Divided process shape",aliases:["div-proc","divided-rectangle","divided-process"],handler:Fe},{semanticName:"Extract",name:"Triangle",shortName:"tri",description:"Extraction process",aliases:["extract","triangle"],handler:Cs},{semanticName:"Internal Storage",name:"Window Pane",shortName:"win-pane",description:"Internal storage",aliases:["internal-storage","window-pane"],handler:Gs},{semanticName:"Junction",name:"Filled Circle",shortName:"f-circ",description:"Junction point",aliases:["junction","filled-circle"],handler:ze},{semanticName:"Loop Limit",name:"Trapezoidal Pentagon",shortName:"notch-pent",description:"Loop limit step",aliases:["loop-limit","notched-pentagon"],handler:Ts},{semanticName:"Manual File",name:"Flipped Triangle",shortName:"flip-tri",description:"Manual file operation",aliases:["manual-file","flipped-triangle"],handler:qe},{semanticName:"Manual Input",name:"Sloped Rectangle",shortName:"sl-rect",description:"Manual input step",aliases:["manual-input","sloped-rectangle"],handler:ys},{semanticName:"Multi-Document",name:"Stacked Document",shortName:"docs",description:"Multiple documents",aliases:["documents","st-doc","stacked-document"],handler:hs},{semanticName:"Multi-Process",name:"Stacked Rectangle",shortName:"st-rect",description:"Multiple processes",aliases:["procs","processes","stacked-rectangle"],handler:cs},{semanticName:"Stored Data",name:"Bow Tie Rectangle",shortName:"bow-rect",description:"Stored data",aliases:["stored-data","bow-tie-rectangle"],handler:Ge},{semanticName:"Summary",name:"Crossed Circle",shortName:"cross-circ",description:"Summary",aliases:["summary","crossed-circle"],handler:Oe},{semanticName:"Tagged Document",name:"Tagged Document",shortName:"tag-doc",description:"Tagged document",aliases:["tag-doc","tagged-document"],handler:vs},{semanticName:"Tagged Process",name:"Tagged Rectangle",shortName:"tag-rect",description:"Tagged process",aliases:["tagged-rectangle","tag-proc","tagged-process"],handler:Ms},{semanticName:"Paper Tape",name:"Flag",shortName:"flag",description:"Paper tape",aliases:["paper-tape"],handler:Rs},{semanticName:"Odd",name:"Odd",shortName:"odd",description:"Odd shape",internalAliases:["rect_left_inv_arrow"],handler:fs},{semanticName:"Lined Document",name:"Lined Document",shortName:"lin-doc",description:"Lined document",aliases:["lined-document"],handler:ls}],wr=u(()=>{let t=[...Object.entries({state:Ss,choice:Ee,note:ps,rectWithTitle:gs,labelRect:rs,iconSquare:ts,iconCircle:Je,icon:Qe,iconRounded:Ke,imageSquare:es,anchor:Be,kanbanItem:As,classBox:Es}),...Sr.flatMap(o=>[o.shortName,..."aliases"in o?o.aliases:[],..."internalAliases"in o?o.internalAliases:[]].map(s=>[s,o.handler]))];return Object.fromEntries(t)},"generateShapeMap"),se=wr();function gf(n){return n in se}u(gf,"isValidShape");var At=new Map;async function bf(n,t,o){let r,s;t.shape==="rect"&&(t.rx&&t.ry?t.shape="roundedRect":t.shape="squareRect");let a=t.shape?se[t.shape]:void 0;if(!a)throw new Error(`No such shape: ${t.shape}. Please check your syntax.`);if(t.link){let c;o.config.securityLevel==="sandbox"?c="_top":t.linkTarget&&(c=t.linkTarget||"_blank"),r=n.insert("svg:a").attr("xlink:href",t.link).attr("target",c??null),s=await a(r,t,o)}else s=await a(n,t,o),r=s;return t.tooltip&&s.attr("title",t.tooltip),At.set(t.id,r),t.haveCallback&&r.attr("class",r.attr("class")+" clickable"),r}u(bf,"insertNode");var Sf=u((n,t)=>{At.set(t.id,n)},"setNodeElem"),wf=u(()=>{At.clear()},"clear"),Nf=u(n=>{let t=At.get(n.id);z.trace("Transforming node",n.diff,n,"translate("+(n.x-n.width/2-5)+", "+n.width/2+")");let o=8,r=n.diff||0;return n.clusterNode?t.attr("transform","translate("+(n.x+r-n.width/2)+", "+(n.y-n.height/2-o)+")"):t.attr("transform","translate("+n.x+", "+n.y+")"),r},"positionNode");export{T as a,v as b,D as c,St as d,gf as e,ro as f,oo as g,bf as h,Sf as i,wf as j,Nf as k}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-ITX3UAHE.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-ITX3UAHE.mjs deleted file mode 100644 index a309e4cef..000000000 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-ITX3UAHE.mjs +++ /dev/null @@ -1,64 +0,0 @@ -import{a as i,b as ul,c as Nu,e as fl}from"./chunk-GTKDMUJJ.mjs";var ml=ul((Jo,tn)=>{"use strict";(function(t,e){typeof Jo=="object"&&typeof tn<"u"?tn.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(Jo,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",s="minute",a="hour",l="day",c="week",h="month",u="quarter",d="year",f="date",g="Invalid Date",S=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,W={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:i(function(v){var x=["th","st","nd","rd"],y=v%100;return"["+v+(x[(y-20)%10]||x[y]||x[0])+"]"},"ordinal")},$=i(function(v,x,y){var M=String(v);return!M||M.length>=x?v:""+Array(x+1-M.length).join(y)+v},"m"),V={s:$,z:i(function(v){var x=-v.utcOffset(),y=Math.abs(x),M=Math.floor(y/60),k=y%60;return(x<=0?"+":"-")+$(M,2,"0")+":"+$(k,2,"0")},"z"),m:i(function v(x,y){if(x.date()1)return v(I[0])}else{var G=x.name;F[G]=x,k=G}return!M&&k&&(L=k),k||!M&&L},"t"),w=i(function(v,x){if(T(v))return v.clone();var y=typeof x=="object"?x:{};return y.date=v,y.args=arguments,new K(y)},"O"),U=V;U.l=j,U.i=T,U.w=function(v,x){return w(v,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var K=function(){function v(y){this.$L=j(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[H]=!0}i(v,"M");var x=v.prototype;return x.parse=function(y){this.$d=function(M){var k=M.date,N=M.utc;if(k===null)return new Date(NaN);if(U.u(k))return new Date;if(k instanceof Date)return new Date(k);if(typeof k=="string"&&!/Z$/i.test(k)){var I=k.match(S);if(I){var G=I[2]-1||0,tt=(I[7]||"0").substring(0,3);return N?new Date(Date.UTC(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,tt)):new Date(I[1],G,I[3]||1,I[4]||0,I[5]||0,I[6]||0,tt)}}return new Date(k)}(y),this.init()},x.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},x.$utils=function(){return U},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(y,M){var k=w(y);return this.startOf(M)<=k&&k<=this.endOf(M)},x.isAfter=function(y,M){return w(y){"use strict";(function(t,e){typeof fn=="object"&&typeof mn<"u"?mn.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self,t.DOMPurify=e())})(fn,function(){"use strict";let{entries:t,setPrototypeOf:e,isFrozen:r,getPrototypeOf:o,getOwnPropertyDescriptor:n}=Object,{freeze:s,seal:a,create:l}=Object,{apply:c,construct:h}=typeof Reflect<"u"&&Reflect;s||(s=i(function(z){return z},"freeze")),a||(a=i(function(z){return z},"seal")),c||(c=i(function(z,rt,Z){return z.apply(rt,Z)},"apply")),h||(h=i(function(z,rt){return new z(...rt)},"construct"));let u=T(Array.prototype.forEach),d=T(Array.prototype.pop),f=T(Array.prototype.push),g=T(String.prototype.toLowerCase),S=T(String.prototype.toString),A=T(String.prototype.match),W=T(String.prototype.replace),$=T(String.prototype.indexOf),V=T(String.prototype.trim),L=T(Object.prototype.hasOwnProperty),F=T(RegExp.prototype.test),H=j(TypeError);function T(Q){return function(z){for(var rt=arguments.length,Z=new Array(rt>1?rt-1:0),Mt=1;Mt2&&arguments[2]!==void 0?arguments[2]:g;e&&e(Q,null);let Z=z.length;for(;Z--;){let Mt=z[Z];if(typeof Mt=="string"){let se=rt(Mt);se!==Mt&&(r(z)||(z[Z]=se),Mt=se)}Q[Mt]=!0}return Q}i(w,"addToSet");function U(Q){for(let z=0;z/gm),ut=a(/\${[\w\W]*}/gm),$t=a(/^data-[\-\w.\u00B7-\uFFFF]/),At=a(/^aria-[\-\w]+$/),ht=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),B=a(/^(?:\w+script|data):/i),Y=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),X=a(/^html$/i),C=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var St=Object.freeze({__proto__:null,MUSTACHE_EXPR:mt,ERB_EXPR:qt,TMPLIT_EXPR:ut,DATA_ATTR:$t,ARIA_ATTR:At,IS_ALLOWED_URI:ht,IS_SCRIPT_OR_DATA:B,ATTR_WHITESPACE:Y,DOCTYPE_NAME:X,CUSTOM_ELEMENT:C});let et={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},Et=i(function(){return typeof window>"u"?null:window},"getGlobal"),Dt=i(function(z,rt){if(typeof z!="object"||typeof z.createPolicy!="function")return null;let Z=null,Mt="data-tt-policy-suffix";rt&&rt.hasAttribute(Mt)&&(Z=rt.getAttribute(Mt));let se="dompurify"+(Z?"#"+Z:"");try{return z.createPolicy(se,{createHTML(tr){return tr},createScriptURL(tr){return tr}})}catch{return console.warn("TrustedTypes policy "+se+" could not be created."),null}},"_createTrustedTypesPolicy");function Kt(){let Q=arguments.length>0&&arguments[0]!==void 0?arguments[0]:Et(),z=i(P=>Kt(P),"DOMPurify");if(z.version="3.1.6",z.removed=[],!Q||!Q.document||Q.document.nodeType!==et.document)return z.isSupported=!1,z;let{document:rt}=Q,Z=rt,Mt=Z.currentScript,{DocumentFragment:se,HTMLTemplateElement:tr,Node:qo,Element:Ra,NodeFilter:Er,NamedNodeMap:pu=Q.NamedNodeMap||Q.MozNamedAttrMap,HTMLFormElement:du,DOMParser:gu,trustedTypes:Ti}=Q,Dr=Ra.prototype,xu=E(Dr,"cloneNode"),yu=E(Dr,"remove"),Cu=E(Dr,"nextSibling"),_u=E(Dr,"childNodes"),ki=E(Dr,"parentNode");if(typeof tr=="function"){let P=rt.createElement("template");P.content&&P.content.ownerDocument&&(rt=P.content.ownerDocument)}let Ot,Or="",{implementation:zo,createNodeIterator:bu,createDocumentFragment:Tu,getElementsByTagName:ku}=rt,{importNode:Su}=Z,Qt={};z.isSupported=typeof t=="function"&&typeof ki=="function"&&zo&&zo.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:Po,ERB_EXPR:$o,TMPLIT_EXPR:Wo,DATA_ATTR:vu,ARIA_ATTR:wu,IS_SCRIPT_OR_DATA:Bu,ATTR_WHITESPACE:Na,CUSTOM_ELEMENT:Fu}=St,{IS_ALLOWED_URI:qa}=St,yt=null,za=w({},[...v,...x,...y,...k,...I]),Ct=null,Pa=w({},[...G,...tt,...ot,...nt]),ft=Object.seal(l(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ir=null,Ho=null,$a=!0,Uo=!0,Wa=!1,Ha=!0,er=!1,Yo=!0,Ie=!1,Go=!1,Vo=!1,rr=!1,Si=!1,vi=!1,Ua=!0,Ya=!1,Mu="user-content-",Xo=!0,Rr=!1,ir={},or=null,Ga=w({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Va=null,Xa=w({},["audio","video","img","source","image","track"]),jo=null,ja=w({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),wi="http://www.w3.org/1998/Math/MathML",Bi="http://www.w3.org/2000/svg",ae="http://www.w3.org/1999/xhtml",nr=ae,Zo=!1,Ko=null,Lu=w({},[wi,Bi,ae],S),Nr=null,Au=["application/xhtml+xml","text/html"],Eu="text/html",_t=null,sr=null,Du=rt.createElement("form"),Za=i(function(m){return m instanceof RegExp||m instanceof Function},"isRegexOrFunction"),Qo=i(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(sr&&sr===m)){if((!m||typeof m!="object")&&(m={}),m=K(m),Nr=Au.indexOf(m.PARSER_MEDIA_TYPE)===-1?Eu:m.PARSER_MEDIA_TYPE,_t=Nr==="application/xhtml+xml"?S:g,yt=L(m,"ALLOWED_TAGS")?w({},m.ALLOWED_TAGS,_t):za,Ct=L(m,"ALLOWED_ATTR")?w({},m.ALLOWED_ATTR,_t):Pa,Ko=L(m,"ALLOWED_NAMESPACES")?w({},m.ALLOWED_NAMESPACES,S):Lu,jo=L(m,"ADD_URI_SAFE_ATTR")?w(K(ja),m.ADD_URI_SAFE_ATTR,_t):ja,Va=L(m,"ADD_DATA_URI_TAGS")?w(K(Xa),m.ADD_DATA_URI_TAGS,_t):Xa,or=L(m,"FORBID_CONTENTS")?w({},m.FORBID_CONTENTS,_t):Ga,Ir=L(m,"FORBID_TAGS")?w({},m.FORBID_TAGS,_t):{},Ho=L(m,"FORBID_ATTR")?w({},m.FORBID_ATTR,_t):{},ir=L(m,"USE_PROFILES")?m.USE_PROFILES:!1,$a=m.ALLOW_ARIA_ATTR!==!1,Uo=m.ALLOW_DATA_ATTR!==!1,Wa=m.ALLOW_UNKNOWN_PROTOCOLS||!1,Ha=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,er=m.SAFE_FOR_TEMPLATES||!1,Yo=m.SAFE_FOR_XML!==!1,Ie=m.WHOLE_DOCUMENT||!1,rr=m.RETURN_DOM||!1,Si=m.RETURN_DOM_FRAGMENT||!1,vi=m.RETURN_TRUSTED_TYPE||!1,Vo=m.FORCE_BODY||!1,Ua=m.SANITIZE_DOM!==!1,Ya=m.SANITIZE_NAMED_PROPS||!1,Xo=m.KEEP_CONTENT!==!1,Rr=m.IN_PLACE||!1,qa=m.ALLOWED_URI_REGEXP||ht,nr=m.NAMESPACE||ae,ft=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Za(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ft.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Za(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ft.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ft.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),er&&(Uo=!1),Si&&(rr=!0),ir&&(yt=w({},I),Ct=[],ir.html===!0&&(w(yt,v),w(Ct,G)),ir.svg===!0&&(w(yt,x),w(Ct,tt),w(Ct,nt)),ir.svgFilters===!0&&(w(yt,y),w(Ct,tt),w(Ct,nt)),ir.mathMl===!0&&(w(yt,k),w(Ct,ot),w(Ct,nt))),m.ADD_TAGS&&(yt===za&&(yt=K(yt)),w(yt,m.ADD_TAGS,_t)),m.ADD_ATTR&&(Ct===Pa&&(Ct=K(Ct)),w(Ct,m.ADD_ATTR,_t)),m.ADD_URI_SAFE_ATTR&&w(jo,m.ADD_URI_SAFE_ATTR,_t),m.FORBID_CONTENTS&&(or===Ga&&(or=K(or)),w(or,m.FORBID_CONTENTS,_t)),Xo&&(yt["#text"]=!0),Ie&&w(yt,["html","head","body"]),yt.table&&(w(yt,["tbody"]),delete Ir.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw H('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');Ot=m.TRUSTED_TYPES_POLICY,Or=Ot.createHTML("")}else Ot===void 0&&(Ot=Dt(Ti,Mt)),Ot!==null&&typeof Or=="string"&&(Or=Ot.createHTML(""));s&&s(m),sr=m}},"_parseConfig"),Ka=w({},["mi","mo","mn","ms","mtext"]),Qa=w({},["foreignobject","annotation-xml"]),Ou=w({},["title","style","font","a","script"]),Ja=w({},[...x,...y,...M]),tl=w({},[...k,...N]),Iu=i(function(m){let _=ki(m);(!_||!_.tagName)&&(_={namespaceURI:nr,tagName:"template"});let O=g(m.tagName),at=g(_.tagName);return Ko[m.namespaceURI]?m.namespaceURI===Bi?_.namespaceURI===ae?O==="svg":_.namespaceURI===wi?O==="svg"&&(at==="annotation-xml"||Ka[at]):!!Ja[O]:m.namespaceURI===wi?_.namespaceURI===ae?O==="math":_.namespaceURI===Bi?O==="math"&&Qa[at]:!!tl[O]:m.namespaceURI===ae?_.namespaceURI===Bi&&!Qa[at]||_.namespaceURI===wi&&!Ka[at]?!1:!tl[O]&&(Ou[O]||!Ja[O]):!!(Nr==="application/xhtml+xml"&&Ko[m.namespaceURI]):!1},"_checkValidNamespace"),Jt=i(function(m){f(z.removed,{element:m});try{ki(m).removeChild(m)}catch{yu(m)}},"_forceRemove"),Fi=i(function(m,_){try{f(z.removed,{attribute:_.getAttributeNode(m),from:_})}catch{f(z.removed,{attribute:null,from:_})}if(_.removeAttribute(m),m==="is"&&!Ct[m])if(rr||Si)try{Jt(_)}catch{}else try{_.setAttribute(m,"")}catch{}},"_removeAttribute"),el=i(function(m){let _=null,O=null;if(Vo)m=""+m;else{let vt=A(m,/^[\r\n\t ]+/);O=vt&&vt[0]}Nr==="application/xhtml+xml"&&nr===ae&&(m=''+m+"");let at=Ot?Ot.createHTML(m):m;if(nr===ae)try{_=new gu().parseFromString(at,Nr)}catch{}if(!_||!_.documentElement){_=zo.createDocument(nr,"template",null);try{_.documentElement.innerHTML=Zo?Or:at}catch{}}let Lt=_.body||_.documentElement;return m&&O&&Lt.insertBefore(rt.createTextNode(O),Lt.childNodes[0]||null),nr===ae?ku.call(_,Ie?"html":"body")[0]:Ie?_.documentElement:Lt},"_initDocument"),rl=i(function(m){return bu.call(m.ownerDocument||m,m,Er.SHOW_ELEMENT|Er.SHOW_COMMENT|Er.SHOW_TEXT|Er.SHOW_PROCESSING_INSTRUCTION|Er.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),il=i(function(m){return m instanceof du&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof pu)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},"_isClobbered"),ol=i(function(m){return typeof qo=="function"&&m instanceof qo},"_isNode"),le=i(function(m,_,O){Qt[m]&&u(Qt[m],at=>{at.call(z,_,O,sr)})},"_executeHook"),nl=i(function(m){let _=null;if(le("beforeSanitizeElements",m,null),il(m))return Jt(m),!0;let O=_t(m.nodeName);if(le("uponSanitizeElement",m,{tagName:O,allowedTags:yt}),m.hasChildNodes()&&!ol(m.firstElementChild)&&F(/<[/\w]/g,m.innerHTML)&&F(/<[/\w]/g,m.textContent)||m.nodeType===et.progressingInstruction||Yo&&m.nodeType===et.comment&&F(/<[/\w]/g,m.data))return Jt(m),!0;if(!yt[O]||Ir[O]){if(!Ir[O]&&al(O)&&(ft.tagNameCheck instanceof RegExp&&F(ft.tagNameCheck,O)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(O)))return!1;if(Xo&&!or[O]){let at=ki(m)||m.parentNode,Lt=_u(m)||m.childNodes;if(Lt&&at){let vt=Lt.length;for(let zt=vt-1;zt>=0;--zt){let te=xu(Lt[zt],!0);te.__removalCount=(m.__removalCount||0)+1,at.insertBefore(te,Cu(m))}}}return Jt(m),!0}return m instanceof Ra&&!Iu(m)||(O==="noscript"||O==="noembed"||O==="noframes")&&F(/<\/no(script|embed|frames)/i,m.innerHTML)?(Jt(m),!0):(er&&m.nodeType===et.text&&(_=m.textContent,u([Po,$o,Wo],at=>{_=W(_,at," ")}),m.textContent!==_&&(f(z.removed,{element:m.cloneNode()}),m.textContent=_)),le("afterSanitizeElements",m,null),!1)},"_sanitizeElements"),sl=i(function(m,_,O){if(Ua&&(_==="id"||_==="name")&&(O in rt||O in Du))return!1;if(!(Uo&&!Ho[_]&&F(vu,_))){if(!($a&&F(wu,_))){if(!Ct[_]||Ho[_]){if(!(al(m)&&(ft.tagNameCheck instanceof RegExp&&F(ft.tagNameCheck,m)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(m))&&(ft.attributeNameCheck instanceof RegExp&&F(ft.attributeNameCheck,_)||ft.attributeNameCheck instanceof Function&&ft.attributeNameCheck(_))||_==="is"&&ft.allowCustomizedBuiltInElements&&(ft.tagNameCheck instanceof RegExp&&F(ft.tagNameCheck,O)||ft.tagNameCheck instanceof Function&&ft.tagNameCheck(O))))return!1}else if(!jo[_]){if(!F(qa,W(O,Na,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&m!=="script"&&$(O,"data:")===0&&Va[m])){if(!(Wa&&!F(Bu,W(O,Na,"")))){if(O)return!1}}}}}}return!0},"_isValidAttribute"),al=i(function(m){return m!=="annotation-xml"&&A(m,Fu)},"_isBasicCustomElement"),ll=i(function(m){le("beforeSanitizeAttributes",m,null);let{attributes:_}=m;if(!_)return;let O={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:Ct},at=_.length;for(;at--;){let Lt=_[at],{name:vt,namespaceURI:zt,value:te}=Lt,qr=_t(vt),It=vt==="value"?te:V(te);if(O.attrName=qr,O.attrValue=It,O.keepAttr=!0,O.forceKeepAttr=void 0,le("uponSanitizeAttribute",m,O),It=O.attrValue,Yo&&F(/((--!?|])>)|<\/(style|title)/i,It)){Fi(vt,m);continue}if(O.forceKeepAttr||(Fi(vt,m),!O.keepAttr))continue;if(!Ha&&F(/\/>/i,It)){Fi(vt,m);continue}er&&u([Po,$o,Wo],cl=>{It=W(It,cl," ")});let hl=_t(m.nodeName);if(sl(hl,qr,It)){if(Ya&&(qr==="id"||qr==="name")&&(Fi(vt,m),It=Mu+It),Ot&&typeof Ti=="object"&&typeof Ti.getAttributeType=="function"&&!zt)switch(Ti.getAttributeType(hl,qr)){case"TrustedHTML":{It=Ot.createHTML(It);break}case"TrustedScriptURL":{It=Ot.createScriptURL(It);break}}try{zt?m.setAttributeNS(zt,vt,It):m.setAttribute(vt,It),il(m)?Jt(m):d(z.removed)}catch{}}}le("afterSanitizeAttributes",m,null)},"_sanitizeAttributes"),Ru=i(function P(m){let _=null,O=rl(m);for(le("beforeSanitizeShadowDOM",m,null);_=O.nextNode();)le("uponSanitizeShadowNode",_,null),!nl(_)&&(_.content instanceof se&&P(_.content),ll(_));le("afterSanitizeShadowDOM",m,null)},"_sanitizeShadowDOM");return z.sanitize=function(P){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,O=null,at=null,Lt=null;if(Zo=!P,Zo&&(P=""),typeof P!="string"&&!ol(P))if(typeof P.toString=="function"){if(P=P.toString(),typeof P!="string")throw H("dirty is not a string, aborting")}else throw H("toString is not a function");if(!z.isSupported)return P;if(Go||Qo(m),z.removed=[],typeof P=="string"&&(Rr=!1),Rr){if(P.nodeName){let te=_t(P.nodeName);if(!yt[te]||Ir[te])throw H("root node is forbidden and cannot be sanitized in-place")}}else if(P instanceof qo)_=el(""),O=_.ownerDocument.importNode(P,!0),O.nodeType===et.element&&O.nodeName==="BODY"||O.nodeName==="HTML"?_=O:_.appendChild(O);else{if(!rr&&!er&&!Ie&&P.indexOf("<")===-1)return Ot&&vi?Ot.createHTML(P):P;if(_=el(P),!_)return rr?null:vi?Or:""}_&&Vo&&Jt(_.firstChild);let vt=rl(Rr?P:_);for(;at=vt.nextNode();)nl(at)||(at.content instanceof se&&Ru(at.content),ll(at));if(Rr)return P;if(rr){if(Si)for(Lt=Tu.call(_.ownerDocument);_.firstChild;)Lt.appendChild(_.firstChild);else Lt=_;return(Ct.shadowroot||Ct.shadowrootmode)&&(Lt=Su.call(Z,Lt,!0)),Lt}let zt=Ie?_.outerHTML:_.innerHTML;return Ie&&yt["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&F(X,_.ownerDocument.doctype.name)&&(zt=" -`+zt),er&&u([Po,$o,Wo],te=>{zt=W(zt,te," ")}),Ot&&vi?Ot.createHTML(zt):zt},z.setConfig=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};Qo(P),Go=!0},z.clearConfig=function(){sr=null,Go=!1},z.isValidAttribute=function(P,m,_){sr||Qo({});let O=_t(P),at=_t(m);return sl(O,at,_)},z.addHook=function(P,m){typeof m=="function"&&(Qt[P]=Qt[P]||[],f(Qt[P],m))},z.removeHook=function(P){if(Qt[P])return d(Qt[P])},z.removeHooks=function(P){Qt[P]&&(Qt[P]=[])},z.removeAllHooks=function(){Qt={}},z}i(Kt,"createDOMPurify");var bi=Kt();return bi})});var pl=fl(ml(),1);var he={trace:0,debug:1,info:2,warn:3,error:4,fatal:5},J={trace:i((...t)=>{},"trace"),debug:i((...t)=>{},"debug"),info:i((...t)=>{},"info"),warn:i((...t)=>{},"warn"),error:i((...t)=>{},"error"),fatal:i((...t)=>{},"fatal")},dl=i(function(t="fatal"){let e=he.fatal;typeof t=="string"?t.toLowerCase()in he&&(e=he[t]):typeof t=="number"&&(e=t),J.trace=()=>{},J.debug=()=>{},J.info=()=>{},J.warn=()=>{},J.error=()=>{},J.fatal=()=>{},e<=he.fatal&&(J.fatal=console.error?console.error.bind(console,Ut("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Ut("FATAL"))),e<=he.error&&(J.error=console.error?console.error.bind(console,Ut("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Ut("ERROR"))),e<=he.warn&&(J.warn=console.warn?console.warn.bind(console,Ut("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Ut("WARN"))),e<=he.info&&(J.info=console.info?console.info.bind(console,Ut("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Ut("INFO"))),e<=he.debug&&(J.debug=console.debug?console.debug.bind(console,Ut("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ut("DEBUG"))),e<=he.trace&&(J.trace=console.debug?console.debug.bind(console,Ut("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Ut("TRACE")))},"setLogLevel"),Ut=i(t=>`%c${(0,pl.default)().format("ss.SSS")} : ${t} : `,"format");var gl=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,xl=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,yl=/\s*%%.*\n/gm;var Mi=class extends Error{static{i(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}};var Li={},px=i(function(t,e){t=t.replace(gl,"").replace(xl,"").replace(yl,` -`);for(let[r,{detector:o}]of Object.entries(Li))if(o(t,e))return r;throw new Mi(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),dx=i((...t)=>{for(let{id:e,detector:r,loader:o}of t)en(e,r,o)},"registerLazyLoadedDiagrams"),en=i((t,e,r)=>{Li[t]&&J.warn(`Detector with key ${t} already exists. Overwriting.`),Li[t]={detector:e,loader:r},J.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),gx=i(t=>Li[t].loader,"getDiagramLoader");var rn=i((t,e,{depth:r=2,clobber:o=!1}={})=>{let n={depth:r,clobber:o};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>rn(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=rn(t[s],e[s],{depth:r-1,clobber:o})):(o||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),Rt=rn;var Ai={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i(t=>t>=255?255:t<0?0:t,"r"),g:i(t=>t>=255?255:t<0?0:t,"g"),b:i(t=>t>=255?255:t<0?0:t,"b"),h:i(t=>t%360,"h"),s:i(t=>t>=100?100:t<0?0:t,"s"),l:i(t=>t>=100?100:t<0?0:t,"l"),a:i(t=>t>=1?1:t<0?0:t,"a")},toLinear:i(t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},"toLinear"),hue2rgb:i((t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),"hue2rgb"),hsl2rgb:i(({h:t,s:e,l:r},o)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;switch(o){case"r":return Ai.hue2rgb(s,n,t+.3333333333333333)*255;case"g":return Ai.hue2rgb(s,n,t)*255;case"b":return Ai.hue2rgb(s,n,t-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:i(({r:t,g:e,b:r},o)=>{t/=255,e/=255,r/=255;let n=Math.max(t,e,r),s=Math.min(t,e,r),a=(n+s)/2;if(o==="l")return a*100;if(n===s)return 0;let l=n-s,c=a>.5?l/(2-n-s):l/(n+s);if(o==="s")return c*100;switch(n){case t:return((e-r)/l+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),"clamp"),round:i(t=>Math.round(t*1e10)/1e10,"round")},_l=qu;var zu={dec2hex:i(t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`},"dec2hex")},bl=zu;var Pu={channel:Cl,lang:_l,unit:bl},q=Pu;var ce={};for(let t=0;t<=255;t++)ce[t]=q.unit.dec2hex(t);var dt={ALL:0,RGB:1,HSL:2};var on=class{static{i(this,"Type")}constructor(){this.type=dt.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=dt.ALL}is(e){return this.type===e}},Tl=on;var nn=class{static{i(this,"Channels")}constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new Tl}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=dt.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:o,l:n}=e;r===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),o===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:o,b:n}=e;r===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),o===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(dt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(dt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(dt.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(dt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(dt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(dt.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(dt.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(dt.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(dt.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(dt.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(dt.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(dt.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},kl=nn;var $u=new kl({r:0,g:0,b:0,a:0},"transparent"),_e=$u;var Sl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i(t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(Sl.re);if(!e)return;let r=e[1],o=parseInt(r,16),n=r.length,s=n%4===0,a=n>4,l=a?1:17,c=a?8:4,h=s?0:-1,u=a?255:15;return _e.set({r:(o>>c*(h+3)&u)*l,g:(o>>c*(h+2)&u)*l,b:(o>>c*(h+1)&u)*l,a:s?(o&u)*l/255:1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`#${ce[Math.round(e)]}${ce[Math.round(r)]}${ce[Math.round(o)]}${ce[Math.round(n*255)]}`:`#${ce[Math.round(e)]}${ce[Math.round(r)]}${ce[Math.round(o)]}`},"stringify")},Re=Sl;var Ei={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:i(t=>{let e=t.match(Ei.hueRe);if(e){let[,r,o]=e;switch(o){case"grad":return q.channel.clamp.h(parseFloat(r)*.9);case"rad":return q.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(r)*360)}}return q.channel.clamp.h(parseFloat(t))},"_hue2deg"),parse:i(t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Ei.re);if(!r)return;let[,o,n,s,a,l]=r;return _e.set({h:Ei._hue2deg(o),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:a?q.channel.clamp.a(l?parseFloat(a)/100:parseFloat(a)):1},t)},"parse"),stringify:i(t=>{let{h:e,s:r,l:o,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%)`},"stringify")},zr=Ei;var Di={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:i(t=>{t=t.toLowerCase();let e=Di.colors[t];if(e)return Re.parse(e)},"parse"),stringify:i(t=>{let e=Re.stringify(t);for(let r in Di.colors)if(Di.colors[r]===e)return r},"stringify")},sn=Di;var vl={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:i(t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(vl.re);if(!r)return;let[,o,n,s,a,l,c,h,u]=r;return _e.set({r:q.channel.clamp.r(n?parseFloat(o)*2.55:parseFloat(o)),g:q.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:h?q.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)})`},"stringify")},Pr=vl;var Wu={format:{keyword:sn,hex:Re,rgb:Pr,rgba:Pr,hsl:zr,hsla:zr},parse:i(t=>{if(typeof t!="string")return t;let e=Re.parse(t)||Pr.parse(t)||zr.parse(t)||sn.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},"parse"),stringify:i(t=>!t.changed&&t.color?t.color:t.type.is(dt.HSL)||t.data.r===void 0?zr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Pr.stringify(t):Re.stringify(t),"stringify")},gt=Wu;var Hu=i((t,e)=>{let r=gt.parse(t);for(let o in e)r[o]=q.channel.clamp[o](e[o]);return gt.stringify(r)},"change"),Oi=Hu;var Uu=i((t,e,r=0,o=1)=>{if(typeof t!="number")return Oi(t,{a:e});let n=_e.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(r),a:q.channel.clamp.a(o)});return gt.stringify(n)},"rgba"),ue=Uu;var Yu=i((t,e)=>q.lang.round(gt.parse(t)[e]),"channel"),Gu=Yu;var Vu=i(t=>{let{r:e,g:r,b:o}=gt.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(r)+.0722*q.channel.toLinear(o);return q.lang.round(n)},"luminance"),wl=Vu;var Xu=i(t=>wl(t)>=.5,"isLight"),Bl=Xu;var ju=i(t=>!Bl(t),"isDark"),Yt=ju;var Zu=i((t,e,r)=>{let o=gt.parse(t),n=o[e],s=q.channel.clamp[e](n+r);return n!==s&&(o[e]=s),gt.stringify(o)},"adjustChannel"),Ii=Zu;var Ku=i((t,e)=>Ii(t,"l",e),"lighten"),D=Ku;var Qu=i((t,e)=>Ii(t,"l",-e),"darken"),R=Qu;var Ju=i((t,e)=>{let r=gt.parse(t),o={};for(let n in e)e[n]&&(o[n]=r[n]+e[n]);return Oi(t,o)},"adjust"),p=Ju;var tf=i((t,e,r=50)=>{let{r:o,g:n,b:s,a}=gt.parse(t),{r:l,g:c,b:h,a:u}=gt.parse(e),d=r/100,f=d*2-1,g=a-u,A=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,W=1-A,$=o*A+l*W,V=n*A+c*W,L=s*A+h*W,F=a*d+u*(1-d);return ue($,V,L,F)},"mix"),Fl=tf;var ef=i((t,e=100)=>{let r=gt.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,Fl(r,t,e)},"invert"),b=ef;var be="#ffffff",Te="#f2f2f2";var pt=i((t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),"mkBorder");var an=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||pt(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||pt(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||D(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Ml=i(t=>{let e=new an;return e.calculate(t),e},"getThemeVariables");var ln=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=D(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=D(b("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=ue(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=R("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=R(this.sectionBkgColor,10),this.taskBorderColor=ue(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=ue(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=D(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=D(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=D(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Ll=i(t=>{let e=new ln;return e.calculate(t),e},"getThemeVariables");var hn=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=ue(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Al=i(t=>{let e=new hn;return e.calculate(t),e},"getThemeVariables");var cn=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=D("#cde498",10),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=R(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},El=i(t=>{let e=new cn;return e.calculate(t),e},"getThemeVariables");var un=class{static{i(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=D(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=pt(this.primaryColor,this.darkMode),this.secondaryBorderColor=pt(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=pt(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=D(this.contrast,55),this.border2=this.contrast,this.actorBorder=D(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},Dl=i(t=>{let e=new un;return e.calculate(t),e},"getThemeVariables");var ke={base:{getThemeVariables:Ml},dark:{getThemeVariables:Ll},default:{getThemeVariables:Al},forest:{getThemeVariables:El},neutral:{getThemeVariables:Dl}};var fe={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1};var Ol={...fe,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:ke.default.getThemeVariables(),sequence:{...fe.sequence,messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:i(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:i(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...fe.gantt,tickInterval:void 0,useWidth:void 0},c4:{...fe.c4,useWidth:void 0,personFont:i(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:i(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:i(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:i(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:i(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:i(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:i(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:i(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:i(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:i(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:i(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:i(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:i(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:i(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:i(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:i(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:i(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:i(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:i(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:i(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:i(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...fe.pie,useWidth:984},xyChart:{...fe.xyChart,useWidth:void 0},requirement:{...fe.requirement,useWidth:void 0},packet:{...fe.packet}},Il=i((t,e="")=>Object.keys(t).reduce((r,o)=>Array.isArray(t[o])?r:typeof t[o]=="object"&&t[o]!==null?[...r,e+o,...Il(t[o],"")]:[...r,e+o],[]),"keyify"),Rl=new Set(Il(Ol,"")),Nl=Ol;var Ri=i(t=>{if(J.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Ri(e));return}for(let e of Object.keys(t)){if(J.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!Rl.has(e)||t[e]==null){J.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){J.debug("sanitizing object",e),Ri(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let o of r)e.includes(o)&&(J.debug("sanitizing css option",e),t[e]=rf(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}J.debug("After sanitization",t)}},"sanitizeDirective"),rf=i(t=>{let e=0,r=0;for(let o of t){if(e{let r=Rt({},t),o={};for(let n of e)$l(n),o=Rt(o,n);if(r=Rt(r,o),o.theme&&o.theme in ke){let n=Rt({},zl),s=Rt(n.themeVariables||{},o.themeVariables);r.theme&&r.theme in ke&&(r.themeVariables=ke[r.theme].getThemeVariables(s))}return $r=r,Wl($r),$r},"updateCurrentConfig"),of=i(t=>(Pt=Rt({},Wr),Pt=Rt(Pt,t),t.theme&&ke[t.theme]&&(Pt.themeVariables=ke[t.theme].getThemeVariables(t.themeVariables)),Ni(Pt,ar),Pt),"setSiteConfig"),nC=i(t=>{zl=Rt({},t)},"saveConfigFromInitialize"),sC=i(t=>(Pt=Rt(Pt,t),Ni(Pt,ar),Pt),"updateSiteConfig"),aC=i(()=>Rt({},Pt),"getSiteConfig"),Pl=i(t=>(Wl(t),Rt($r,t),Hr()),"setConfig"),Hr=i(()=>Rt({},$r),"getConfig"),$l=i(t=>{t&&(["secure",...Pt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(J.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&$l(t[e])}))},"sanitize"),lC=i(t=>{Ri(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),ar.push(t),Ni(Pt,ar)},"addDirective"),hC=i((t=Pt)=>{ar=[],Ni(t,ar)},"reset"),nf={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},ql={},sf=i(t=>{ql[t]||(J.warn(nf[t]),ql[t]=!0)},"issueWarning"),Wl=i(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&sf("LAZY_LOAD_DEPRECATED")},"checkConfig");var lr=fl(Hl(),1);var Ur=//gi,af=i(t=>t?Xl(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),lf=(()=>{let t=!1;return()=>{t||(hf(),t=!0)}})();function hf(){let t="data-temp-href-target";lr.default.addHook("beforeSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),lr.default.addHook("afterSanitizeAttributes",e=>{e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}i(hf,"setupDompurifyHooks");var Vl=i(t=>(lf(),lr.default.sanitize(t)),"removeScript"),Ul=i((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=Vl(t):r!=="loose"&&(t=Xl(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=mf(t))}return t},"sanitizeMore"),Ne=i((t,e)=>t&&(e.dompurifyConfig?t=lr.default.sanitize(Ul(t,e),e.dompurifyConfig).toString():t=lr.default.sanitize(Ul(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),cf=i((t,e)=>typeof t=="string"?Ne(t,e):t.flat().map(r=>Ne(r,e)),"sanitizeTextOrArray"),uf=i(t=>Ur.test(t),"hasBreaks"),ff=i(t=>t.split(Ur),"splitBreaks"),mf=i(t=>t.replace(/#br#/g,"
      "),"placeholderToBreak"),Xl=i(t=>t.replace(Ur,"#br#"),"breakToPlaceholder"),pf=i(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),df=i(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),gf=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),xf=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),mC=i(function(t){let e=t.split(/(,)/),r=[];for(let o=0;o0&&o+1Math.max(0,t.split(e).length-1),"countOccurrence"),yf=i((t,e)=>{let r=pn(t,"~"),o=pn(e,"~");return r===1&&o===1},"shouldCombineSets"),Cf=i(t=>{let e=pn(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let o=[...t],n=o.indexOf("~"),s=o.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)o[n]="<",o[s]=">",n=o.indexOf("~"),s=o.lastIndexOf("~");return r&&o.unshift("~"),o.join("")},"processSet"),Yl=i(()=>window.MathMLElement!==void 0,"isMathMLSupported"),dn=/\$\$(.*)\$\$/g,Gl=i(t=>(t.match(dn)?.length??0)>0,"hasKatex"),pC=i(async(t,e)=>{t=await _f(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),_f=i(async(t,e)=>{if(!Gl(t))return t;if(!(Yl()||e.legacyMathML||e.forceLegacyMathML))return t.replace(dn,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-SWYD7GD6.mjs"),o=e.forceLegacyMathML||!Yl()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(Ur).map(n=>Gl(n)?`
      ${n}
      `:`
      ${n}
      `).join("").replace(dn,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),dC={getRows:af,sanitizeText:Ne,sanitizeTextOrArray:cf,hasBreaks:uf,splitBreaks:ff,lineBreakRegex:Ur,removeScript:Vl,getUrl:pf,evaluate:df,getMax:gf,getMin:xf};var bf=i(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),Tf=i(function(t,e,r){let o=new Map;return r?(o.set("width","100%"),o.set("style",`max-width: ${e}px;`)):(o.set("height",t),o.set("width",e)),o},"calculateSvgSizeAttrs"),kf=i(function(t,e,r,o){let n=Tf(e,r,o);bf(t,n)},"configureSvgSize"),jl=i(function(t,e,r,o){let n=e.node().getBBox(),s=n.width,a=n.height;J.info(`SVG bounds: ${s}x${a}`,n);let l=0,c=0;J.info(`Graph bounds: ${l}x${c}`,t),l=s+r*2,c=a+r*2,J.info(`Calculated bounds: ${l}x${c}`),kf(e,c,l,o);let h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox");var qi={},Sf=i((t,e,r)=>{let o="";return t in qi&&qi[t]?o=qi[t](r):J.warn(`No theme found for ${t}`),` & { - font-family: ${r.fontFamily}; - font-size: ${r.fontSize}; - fill: ${r.textColor} - } - - /* Classes common for multiple diagrams */ - - & .error-icon { - fill: ${r.errorBkgColor}; - } - & .error-text { - fill: ${r.errorTextColor}; - stroke: ${r.errorTextColor}; - } - - & .edge-thickness-normal { - stroke-width: 1px; - } - & .edge-thickness-thick { - stroke-width: 3.5px - } - & .edge-pattern-solid { - stroke-dasharray: 0; - } - & .edge-thickness-invisible { - stroke-width: 0; - fill: none; - } - & .edge-pattern-dashed{ - stroke-dasharray: 3; - } - .edge-pattern-dotted { - stroke-dasharray: 2; - } - - & .marker { - fill: ${r.lineColor}; - stroke: ${r.lineColor}; - } - & .marker.cross { - stroke: ${r.lineColor}; - } - - & svg { - font-family: ${r.fontFamily}; - font-size: ${r.fontSize}; - } - & p { - margin: 0 - } - - ${o} - - ${e} -`},"getStyles"),Zl=i((t,e)=>{e!==void 0&&(qi[t]=e)},"addStylesForDiagram"),TC=Sf;var _n={};Nu(_n,{clear:()=>vf,getAccDescription:()=>Mf,getAccTitle:()=>Bf,getDiagramTitle:()=>Af,setAccDescription:()=>Ff,setAccTitle:()=>wf,setDiagramTitle:()=>Lf});var gn="",xn="",yn="",Cn=i(t=>Ne(t,Hr()),"sanitizeText"),vf=i(()=>{gn="",yn="",xn=""},"clear"),wf=i(t=>{gn=Cn(t).replace(/^\s+/g,"")},"setAccTitle"),Bf=i(()=>gn,"getAccTitle"),Ff=i(t=>{yn=Cn(t).replace(/\n\s+/g,` -`)},"setAccDescription"),Mf=i(()=>yn,"getAccDescription"),Lf=i(t=>{xn=Cn(t)},"setDiagramTitle"),Af=i(()=>xn,"getDiagramTitle");var Kl=J,Ef=dl,Ql=Hr,OC=Pl,IC=Wr;var Df=i(t=>Ne(t,Ql()),"sanitizeText"),Of=jl,If=i(()=>_n,"getCommonDb"),zi={},RC=i((t,e,r)=>{zi[t]&&Kl.warn(`Diagram with id ${t} already registered. Overwriting.`),zi[t]=e,r&&en(t,r),Zl(t,e.styles),e.injectUtils?.(Kl,Ef,Ql,Df,Of,If(),()=>{})},"registerDiagram"),NC=i(t=>{if(t in zi)return zi[t];throw new bn(t)},"getDiagram"),bn=class extends Error{static{i(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}};function Jl(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r=n)&&(r=n)}return r}i(Jl,"max");function th(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}i(th,"min");function qe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}i(qe,"ascending");function Tn(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}i(Tn,"descending");function ze(t){let e,r,o;t.length!==2?(e=qe,r=i((l,c)=>qe(t(l),c),"compare2"),o=i((l,c)=>t(l)-c,"delta")):(e=t===qe||t===Tn?t:Rf,r=t,o=t);function n(l,c,h=0,u=l.length){if(h>>1;r(l[d],c)<0?h=d+1:u=d}while(h>>1;r(l[d],c)<=0?h=d+1:u=d}while(hh&&o(l[d-1],c)>-o(l[d],c)?d-1:d}return i(a,"center"),{left:n,center:a,right:s}}i(ze,"bisector");function Rf(){return 0}i(Rf,"zero");function kn(t){return t===null?NaN:+t}i(kn,"number");var eh=ze(qe),rh=eh.right,Nf=eh.left,qf=ze(kn).center,Sn=rh;var hr=class extends Map{static{i(this,"InternMap")}constructor(e,r=$f){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[o,n]of e)this.set(o,n)}get(e){return super.get(ih(this,e))}has(e){return super.has(ih(this,e))}set(e,r){return super.set(zf(this,e),r)}delete(e){return super.delete(Pf(this,e))}};function ih({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):r}i(ih,"intern_get");function zf({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):(t.set(o,r),r)}i(zf,"intern_set");function Pf({_intern:t,_key:e},r){let o=e(r);return t.has(o)&&(r=t.get(o),t.delete(o)),r}i(Pf,"intern_delete");function $f(t){return t!==null&&typeof t=="object"?t.valueOf():t}i($f,"keyof");var Wf=Math.sqrt(50),Hf=Math.sqrt(10),Uf=Math.sqrt(2);function Pi(t,e,r){let o=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),a=s>=Wf?10:s>=Hf?5:s>=Uf?2:1,l,c,h;return n<0?(h=Math.pow(10,-n)/a,l=Math.round(t*h),c=Math.round(e*h),l/he&&--c,h=-h):(h=Math.pow(10,n)*a,l=Math.round(t/h),c=Math.round(e/h),l*he&&--c),c0))return[];if(t===e)return[t];let o=e=n))return[];let l=s-n+1,c=new Array(l);if(o)if(a<0)for(let h=0;h+t(e)}i(Vf,"number");function Xf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}i(Xf,"center");function jf(){return!this.__axis}i(jf,"entering");function nh(t,e){var r=[],o=null,n=null,s=6,a=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===Ui||t===Hi?-1:1,u=t===Hi||t===wn?"x":"y",d=t===Ui||t===Bn?Yf:Gf;function f(g){var S=o??(e.ticks?e.ticks.apply(e,r):e.domain()),A=n??(e.tickFormat?e.tickFormat.apply(e,r):vn),W=Math.max(s,0)+l,$=e.range(),V=+$[0]+c,L=+$[$.length-1]+c,F=(e.bandwidth?Xf:Vf)(e.copy(),c),H=g.selection?g.selection():g,T=H.selectAll(".domain").data([null]),j=H.selectAll(".tick").data(S,e).order(),w=j.exit(),U=j.enter().append("g").attr("class","tick"),K=j.select("line"),E=j.select("text");T=T.merge(T.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),j=j.merge(U),K=K.merge(U.append("line").attr("stroke","currentColor").attr(u+"2",h*s)),E=E.merge(U.append("text").attr("fill","currentColor").attr(u,h*W).attr("dy",t===Ui?"0em":t===Bn?"0.71em":"0.32em")),g!==H&&(T=T.transition(g),j=j.transition(g),K=K.transition(g),E=E.transition(g),w=w.transition(g).attr("opacity",oh).attr("transform",function(v){return isFinite(v=F(v))?d(v+c):this.getAttribute("transform")}),U.attr("opacity",oh).attr("transform",function(v){var x=this.parentNode.__axis;return d((x&&isFinite(x=x(v))?x:F(v))+c)})),w.remove(),T.attr("d",t===Hi||t===wn?a?"M"+h*a+","+V+"H"+c+"V"+L+"H"+h*a:"M"+c+","+V+"V"+L:a?"M"+V+","+h*a+"V"+c+"H"+L+"V"+h*a:"M"+V+","+c+"H"+L),j.attr("opacity",1).attr("transform",function(v){return d(F(v)+c)}),K.attr(u+"2",h*s),E.attr(u,h*W).text(A),H.filter(jf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===wn?"start":t===Hi?"end":"middle"),H.each(function(){this.__axis=F})}return i(f,"axis"),f.scale=function(g){return arguments.length?(e=g,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(g){return arguments.length?(r=g==null?[]:Array.from(g),f):r.slice()},f.tickValues=function(g){return arguments.length?(o=g==null?null:Array.from(g),f):o&&o.slice()},f.tickFormat=function(g){return arguments.length?(n=g,f):n},f.tickSize=function(g){return arguments.length?(s=a=+g,f):s},f.tickSizeInner=function(g){return arguments.length?(s=+g,f):s},f.tickSizeOuter=function(g){return arguments.length?(a=+g,f):a},f.tickPadding=function(g){return arguments.length?(l=+g,f):l},f.offset=function(g){return arguments.length?(c=+g,f):c},f}i(nh,"axis");function Zf(t){return nh(Ui,t)}i(Zf,"axisTop");function Kf(t){return nh(Bn,t)}i(Kf,"axisBottom");function Qf(){}i(Qf,"none");function Se(t){return t==null?Qf:function(){return this.querySelector(t)}}i(Se,"default");function Fn(t){typeof t!="function"&&(t=Se(t));for(var e=this._groups,r=e.length,o=new Array(r),n=0;n=L&&(L=V+1);!(H=W[L])&&++L=0;)(a=o[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}i(Pn,"default");function $n(t){t||(t=um);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}i(e,"compareNode");for(var r=this._groups,o=r.length,n=new Array(o),s=0;se?1:t>=e?0:NaN}i(um,"ascending");function Wn(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}i(Wn,"default");function Hn(){return Array.from(this)}i(Hn,"default");function Un(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),Xn.hasOwnProperty(e)?{space:Xn[e],local:t}:t}i(ee,"default");function fm(t){return function(){this.removeAttribute(t)}}i(fm,"attrRemove");function mm(t){return function(){this.removeAttributeNS(t.space,t.local)}}i(mm,"attrRemoveNS");function pm(t,e){return function(){this.setAttribute(t,e)}}i(pm,"attrConstant");function dm(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}i(dm,"attrConstantNS");function gm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}i(gm,"attrFunction");function xm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}i(xm,"attrFunctionNS");function jn(t,e){var r=ee(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?mm:fm:typeof e=="function"?r.local?xm:gm:r.local?dm:pm)(r,e))}i(jn,"default");function Xr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}i(Xr,"default");function ym(t){return function(){this.style.removeProperty(t)}}i(ym,"styleRemove");function Cm(t,e,r){return function(){this.style.setProperty(t,e,r)}}i(Cm,"styleConstant");function _m(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}i(_m,"styleFunction");function Zn(t,e,r){return arguments.length>1?this.each((e==null?ym:typeof e=="function"?_m:Cm)(t,e,r??"")):ve(this.node(),t)}i(Zn,"default");function ve(t,e){return t.style.getPropertyValue(e)||Xr(t).getComputedStyle(t,null).getPropertyValue(e)}i(ve,"styleValue");function bm(t){return function(){delete this[t]}}i(bm,"propertyRemove");function Tm(t,e){return function(){this[t]=e}}i(Tm,"propertyConstant");function km(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}i(km,"propertyFunction");function Kn(t,e){return arguments.length>1?this.each((e==null?bm:typeof e=="function"?km:Tm)(t,e)):this.node()[t]}i(Kn,"default");function sh(t){return t.trim().split(/^|\s+/)}i(sh,"classArray");function Qn(t){return t.classList||new ah(t)}i(Qn,"classList");function ah(t){this._node=t,this._names=sh(t.getAttribute("class")||"")}i(ah,"ClassList");ah.prototype={add:i(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:i(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:i(function(t){return this._names.indexOf(t)>=0},"contains")};function lh(t,e){for(var r=Qn(t),o=-1,n=e.length;++o=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}i(Wm,"parseTypenames");function Hm(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,n=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Vi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Vi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=jm.exec(t))?new wt(e[1],e[2],e[3],1):(e=Zm.exec(t))?new wt(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Km.exec(t))?Vi(e[1],e[2],e[3],e[4]):(e=Qm.exec(t))?Vi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=Jm.exec(t))?Ch(e[1],e[2]/100,e[3]/100,1):(e=tp.exec(t))?Ch(e[1],e[2]/100,e[3]/100,e[4]):mh.hasOwnProperty(t)?gh(mh[t]):t==="transparent"?new wt(NaN,NaN,NaN,0):null}i(Vt,"color");function gh(t){return new wt(t>>16&255,t>>8&255,t&255,1)}i(gh,"rgbn");function Vi(t,e,r,o){return o<=0&&(t=e=r=NaN),new wt(t,e,r,o)}i(Vi,"rgba");function ps(t){return t instanceof Be||(t=Vt(t)),t?(t=t.rgb(),new wt(t.r,t.g,t.b,t.opacity)):new wt}i(ps,"rgbConvert");function dr(t,e,r,o){return arguments.length===1?ps(t):new wt(t,e,r,o??1)}i(dr,"rgb");function wt(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}i(wt,"Rgb");we(wt,dr,mr(Be,{brighter(t){return t=t==null?ji:Math.pow(ji,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Zr:Math.pow(Zr,t),new wt(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new wt($e(this.r),$e(this.g),$e(this.b),Zi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:xh,formatHex:xh,formatHex8:ip,formatRgb:yh,toString:yh}));function xh(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}`}i(xh,"rgb_formatHex");function ip(){return`#${Pe(this.r)}${Pe(this.g)}${Pe(this.b)}${Pe((isNaN(this.opacity)?1:this.opacity)*255)}`}i(ip,"rgb_formatHex8");function yh(){let t=Zi(this.opacity);return`${t===1?"rgb(":"rgba("}${$e(this.r)}, ${$e(this.g)}, ${$e(this.b)}${t===1?")":`, ${t})`}`}i(yh,"rgb_formatRgb");function Zi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}i(Zi,"clampa");function $e(t){return Math.max(0,Math.min(255,Math.round(t)||0))}i($e,"clampi");function Pe(t){return t=$e(t),(t<16?"0":"")+t.toString(16)}i(Pe,"hex");function Ch(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Gt(t,e,r,o)}i(Ch,"hsla");function bh(t){if(t instanceof Gt)return new Gt(t.h,t.s,t.l,t.opacity);if(t instanceof Be||(t=Vt(t)),!t)return new Gt;if(t instanceof Gt)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,n=Math.min(e,r,o),s=Math.max(e,r,o),a=NaN,l=s-n,c=(s+n)/2;return l?(e===s?a=(r-o)/l+(r0&&c<1?0:a,new Gt(a,l,c,t.opacity)}i(bh,"hslConvert");function Th(t,e,r,o){return arguments.length===1?bh(t):new Gt(t,e,r,o??1)}i(Th,"hsl");function Gt(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}i(Gt,"Hsl");we(Gt,Th,mr(Be,{brighter(t){return t=t==null?ji:Math.pow(ji,t),new Gt(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Zr:Math.pow(Zr,t),new Gt(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,n=2*r-o;return new wt(ms(t>=240?t-240:t+120,n,o),ms(t,n,o),ms(t<120?t+240:t-120,n,o),this.opacity)},clamp(){return new Gt(_h(this.h),Xi(this.s),Xi(this.l),Zi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Zi(this.opacity);return`${t===1?"hsl(":"hsla("}${_h(this.h)}, ${Xi(this.s)*100}%, ${Xi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function _h(t){return t=(t||0)%360,t<0?t+360:t}i(_h,"clamph");function Xi(t){return Math.max(0,Math.min(1,t||0))}i(Xi,"clampt");function ms(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}i(ms,"hsl2rgb");var kh=Math.PI/180,Sh=180/Math.PI;var Ki=18,vh=.96422,wh=1,Bh=.82521,Fh=4/29,gr=6/29,Mh=3*gr*gr,op=gr*gr*gr;function Lh(t){if(t instanceof ie)return new ie(t.l,t.a,t.b,t.opacity);if(t instanceof pe)return Ah(t);t instanceof wt||(t=ps(t));var e=ys(t.r),r=ys(t.g),o=ys(t.b),n=ds((.2225045*e+.7168786*r+.0606169*o)/wh),s,a;return e===r&&r===o?s=a=n:(s=ds((.4360747*e+.3850649*r+.1430804*o)/vh),a=ds((.0139322*e+.0971045*r+.7141733*o)/Bh)),new ie(116*n-16,500*(s-n),200*(n-a),t.opacity)}i(Lh,"labConvert");function Cs(t,e,r,o){return arguments.length===1?Lh(t):new ie(t,e,r,o??1)}i(Cs,"lab");function ie(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}i(ie,"Lab");we(ie,Cs,mr(Be,{brighter(t){return new ie(this.l+Ki*(t??1),this.a,this.b,this.opacity)},darker(t){return new ie(this.l-Ki*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=vh*gs(e),t=wh*gs(t),r=Bh*gs(r),new wt(xs(3.1338561*e-1.6168667*t-.4906146*r),xs(-.9787684*e+1.9161415*t+.033454*r),xs(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function ds(t){return t>op?Math.pow(t,1/3):t/Mh+Fh}i(ds,"xyz2lab");function gs(t){return t>gr?t*t*t:Mh*(t-Fh)}i(gs,"lab2xyz");function xs(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}i(xs,"lrgb2rgb");function ys(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}i(ys,"rgb2lrgb");function np(t){if(t instanceof pe)return new pe(t.h,t.c,t.l,t.opacity);if(t instanceof ie||(t=Lh(t)),t.a===0&&t.b===0)return new pe(NaN,0()=>t,"default");function Eh(t,e){return function(r){return t+r*e}}i(Eh,"linear");function sp(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}i(sp,"exponential");function Dh(t,e){var r=e-t;return r?Eh(t,r>180||r<-180?r-360*Math.round(r/360):r):xr(isNaN(t)?e:t)}i(Dh,"hue");function Oh(t){return(t=+t)==1?de:function(e,r){return r-e?sp(e,r,t):xr(isNaN(e)?r:e)}}i(Oh,"gamma");function de(t,e){var r=e-t;return r?Eh(t,r):xr(isNaN(t)?e:t)}i(de,"nogamma");function Ih(t){return function(e,r){var o=t((e=Qr(e)).h,(r=Qr(r)).h),n=de(e.c,r.c),s=de(e.l,r.l),a=de(e.opacity,r.opacity);return function(l){return e.h=o(l),e.c=n(l),e.l=s(l),e.opacity=a(l),e+""}}}i(Ih,"hcl");var ap=Ih(Dh),lp=Ih(de);function _s(t,e,r,o,n){var s=t*t,a=s*t;return((1-3*t+3*s-a)*e+(4-6*s+3*a)*r+(1+3*t+3*s-3*a)*o+a*n)/6}i(_s,"basis");function bs(t){var e=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[o],s=t[o+1],a=o>0?t[o-1]:2*n-s,l=or&&(s=e.slice(r,s),l[a]?l[a]+=s:l[++a]=s),(o=o[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,c.push({i:a,x:bt(o,n)})),r=ws.lastIndex;return r180?u+=360:u-h>180&&(h+=360),f.push({i:d.push(n(d)+"rotate(",null,o)-2,x:bt(h,u)})):u&&d.push(n(d)+"rotate("+u+o)}i(a,"rotate");function l(h,u,d,f){h!==u?f.push({i:d.push(n(d)+"skewX(",null,o)-2,x:bt(h,u)}):u&&d.push(n(d)+"skewX("+u+o)}i(l,"skewX");function c(h,u,d,f,g,S){if(h!==d||u!==f){var A=g.push(n(g)+"scale(",null,",",null,")");S.push({i:A-4,x:bt(h,d)},{i:A-2,x:bt(u,f)})}else(d!==1||f!==1)&&g.push(n(g)+"scale("+d+","+f+")")}return i(c,"scale"),function(h,u){var d=[],f=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,d,f),a(h.rotate,u.rotate,d,f),l(h.skewX,u.skewX,d,f),c(h.scaleX,h.scaleY,u.scaleX,u.scaleY,d,f),h=u=null,function(g){for(var S=-1,A=f.length,W;++Se&&(r=t,t=e,e=r),function(o){return Math.max(t,Math.min(e,o))}}i(mp,"clamper");function pp(t,e,r){var o=t[0],n=t[1],s=e[0],a=e[1];return n2?dp:pp,c=h=null,d}i(u,"rescale");function d(f){return f==null||isNaN(f=+f)?s:(c||(c=l(t.map(o),e,r)))(o(a(f)))}return i(d,"scale"),d.invert=function(f){return a(n((h||(h=l(e,t.map(o),bt)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,Es),u()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),u()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=Qi,u()},d.clamp=function(f){return arguments.length?(a=f?!0:Cr,u()):a!==Cr},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(s=f,d):s},function(f,g){return o=f,n=g,u()}}i(gp,"transformer");function ti(){return gp()(Cr,Cr)}i(ti,"continuous");function Os(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}i(Os,"default");function He(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}i(He,"formatDecimalParts");function Xt(t){return t=He(Math.abs(t)),t?t[1]:NaN}i(Xt,"default");function Is(t,e){return function(r,o){for(var n=r.length,s=[],a=0,l=t[0],c=0;n>0&&l>0&&(c+l+1>o&&(l=Math.max(1,o-c)),s.push(r.substring(n-=l,n+l)),!((c+=l+1)>o));)l=t[a=(a+1)%t.length];return s.reverse().join(e)}}i(Is,"default");function Rs(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}i(Rs,"default");var xp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function Le(t){if(!(e=xp.exec(t)))throw new Error("invalid format: "+t);var e;return new io({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}i(Le,"formatSpecifier");Le.prototype=io.prototype;function io(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}i(io,"FormatSpecifier");io.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Ns(t){t:for(var e=t.length,r=1,o=-1,n;r0&&(o=0);break}return o>0?t.slice(0,o)+t.slice(n+1):t}i(Ns,"default");var qs;function zs(t,e){var r=He(t,e);if(!r)return t+"";var o=r[0],n=r[1],s=n-(qs=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=o.length;return s===a?o:s>a?o+new Array(s-a+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+He(t,Math.max(0,e+s-1))[0]}i(zs,"default");function oo(t,e){var r=He(t,e);if(!r)return t+"";var o=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}i(oo,"default");var Ps={"%":i((t,e)=>(t*100).toFixed(e),"%"),b:i(t=>Math.round(t).toString(2),"b"),c:i(t=>t+"","c"),d:Os,e:i((t,e)=>t.toExponential(e),"e"),f:i((t,e)=>t.toFixed(e),"f"),g:i((t,e)=>t.toPrecision(e),"g"),o:i(t=>Math.round(t).toString(8),"o"),p:i((t,e)=>oo(t*100,e),"p"),r:oo,s:zs,X:i(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:i(t=>Math.round(t).toString(16),"x")};function no(t){return t}i(no,"default");var Uh=Array.prototype.map,Yh=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function $s(t){var e=t.grouping===void 0||t.thousands===void 0?no:Is(Uh.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",o=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?no:Rs(Uh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function h(d){d=Le(d);var f=d.fill,g=d.align,S=d.sign,A=d.symbol,W=d.zero,$=d.width,V=d.comma,L=d.precision,F=d.trim,H=d.type;H==="n"?(V=!0,H="g"):Ps[H]||(L===void 0&&(L=12),F=!0,H="g"),(W||f==="0"&&g==="=")&&(W=!0,f="0",g="=");var T=A==="$"?r:A==="#"&&/[boxX]/.test(H)?"0"+H.toLowerCase():"",j=A==="$"?o:/[%p]/.test(H)?a:"",w=Ps[H],U=/[defgprs%]/.test(H);L=L===void 0?6:/[gprs]/.test(H)?Math.max(1,Math.min(21,L)):Math.max(0,Math.min(20,L));function K(E){var v=T,x=j,y,M,k;if(H==="c")x=w(E)+x,E="";else{E=+E;var N=E<0||1/E<0;if(E=isNaN(E)?c:w(Math.abs(E),L),F&&(E=Ns(E)),N&&+E==0&&S!=="+"&&(N=!1),v=(N?S==="("?S:l:S==="-"||S==="("?"":S)+v,x=(H==="s"?Yh[8+qs/3]:"")+x+(N&&S==="("?")":""),U){for(y=-1,M=E.length;++yk||k>57){x=(k===46?n+E.slice(y+1):E.slice(y))+x,E=E.slice(0,y);break}}}V&&!W&&(E=e(E,1/0));var I=v.length+E.length+x.length,G=I<$?new Array($-I+1).join(f):"";switch(V&&W&&(E=e(G+E,G.length?$-x.length:1/0),G=""),g){case"<":E=v+E+x+G;break;case"=":E=v+G+E+x;break;case"^":E=G.slice(0,I=G.length>>1)+v+E+x+G.slice(I);break;default:E=G+v+E+x;break}return s(E)}return i(K,"format"),K.toString=function(){return d+""},K}i(h,"newFormat");function u(d,f){var g=h((d=Le(d),d.type="f",d)),S=Math.max(-8,Math.min(8,Math.floor(Xt(f)/3)))*3,A=Math.pow(10,-S),W=Yh[8+S/3];return function($){return g(A*$)+W}}return i(u,"formatPrefix"),{format:h,formatPrefix:u}}i($s,"default");var so,ao,lo;Ws({thousands:",",grouping:[3],currency:["$",""]});function Ws(t){return so=$s(t),ao=so.format,lo=so.formatPrefix,so}i(Ws,"defaultLocale");function ho(t){return Math.max(0,-Xt(Math.abs(t)))}i(ho,"default");function co(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Xt(e)/3)))*3-Xt(Math.abs(t)))}i(co,"default");function uo(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Xt(e)-Xt(t))+1}i(uo,"default");function Hs(t,e,r,o){var n=cr(t,e,r),s;switch(o=Le(o??",f"),o.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return o.precision==null&&!isNaN(s=co(n,a))&&(o.precision=s),lo(o,a)}case"":case"e":case"g":case"p":case"r":{o.precision==null&&!isNaN(s=uo(n,Math.max(Math.abs(t),Math.abs(e))))&&(o.precision=s-(o.type==="e"));break}case"f":case"%":{o.precision==null&&!isNaN(s=ho(n))&&(o.precision=s-(o.type==="%")*2);break}}return ao(o)}i(Hs,"tickFormat");function yp(t){var e=t.domain;return t.ticks=function(r){var o=e();return $i(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var n=e();return Hs(n[0],n[n.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o=e(),n=0,s=o.length-1,a=o[n],l=o[s],c,h,u=10;for(l0;){if(h=Yr(a,l,r),h===c)return o[n]=a,o[s]=l,e(o);if(h>0)a=Math.floor(a/h)*h,l=Math.ceil(l/h)*h;else if(h<0)a=Math.ceil(a*h)/h,l=Math.floor(l*h)/h;else break;c=h}return t},t}i(yp,"linearish");function Us(){var t=ti();return t.copy=function(){return ro(t,Us())},Me.apply(t,arguments),yp(t)}i(Us,"linear");var Ys=new Date,Gs=new Date;function st(t,e,r,o){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i(n,"interval"),n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{let a=n(s),l=n.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,l)=>{let c=[];if(s=n.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let h;do c.push(h=new Date(+s)),e(s,l),t(s);while(hst(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;e(a,-1),!s(a););else for(;--l>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(Ys.setTime(+s),Gs.setTime(+a),t(Ys),t(Gs),Math.floor(r(Ys,Gs))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(o?a=>o(a)%s===0:a=>n.count(0,a)%s===0):n)),n}i(st,"timeInterval");var Ue=st(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Ue.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?st(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Ue);var Gh=Ue.range;var oe=st(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Vh=oe.range;var _r=st(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),Cp=_r.range,fo=st(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),_p=fo.range;var br=st(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),bp=br.range,mo=st(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),Tp=mo.range;var ge=st(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),kp=ge.range,ri=st(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),Sp=ri.range,po=st(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),vp=po.range;function Ve(t){return st(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}i(Ve,"timeWeekday");var xe=Ve(0),Tr=Ve(1),jh=Ve(2),Zh=Ve(3),Ae=Ve(4),Kh=Ve(5),Qh=Ve(6),Jh=xe.range,wp=Tr.range,Bp=jh.range,Fp=Zh.range,Mp=Ae.range,Lp=Kh.range,Ap=Qh.range;function Xe(t){return st(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}i(Xe,"utcWeekday");var je=Xe(0),kr=Xe(1),tc=Xe(2),ec=Xe(3),Ee=Xe(4),rc=Xe(5),ic=Xe(6),oc=je.range,Ep=kr.range,Dp=tc.range,Op=ec.range,Ip=Ee.range,Rp=rc.range,Np=ic.range;var Sr=st(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),qp=Sr.range,go=st(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),zp=go.range;var Wt=st(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());Wt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:st(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var Pp=Wt.range,jt=st(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());jt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:st(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var $p=jt.range;function sc(t,e,r,o,n,s){let a=[[oe,1,1e3],[oe,5,5*1e3],[oe,15,15*1e3],[oe,30,30*1e3],[s,1,6e4],[s,5,5*6e4],[s,15,15*6e4],[s,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[o,1,864e5],[o,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function l(h,u,d){let f=uW).right(a,f);if(g===a.length)return t.every(cr(h/31536e6,u/31536e6,d));if(g===0)return Ue.every(Math.max(cr(h,u,d),1));let[S,A]=a[f/a[g-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(et=Zs(ii(C.y,0,1)),Et=et.getUTCDay(),et=Et>4||Et===0?kr.ceil(et):kr(et),et=ri.offset(et,(C.V-1)*7),C.y=et.getUTCFullYear(),C.m=et.getUTCMonth(),C.d=et.getUTCDate()+(C.w+6)%7):(et=js(ii(C.y,0,1)),Et=et.getDay(),et=Et>4||Et===0?Tr.ceil(et):Tr(et),et=ge.offset(et,(C.V-1)*7),C.y=et.getFullYear(),C.m=et.getMonth(),C.d=et.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),Et="Z"in C?Zs(ii(C.y,0,1)).getUTCDay():js(ii(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(Et+5)%7:C.w+C.U*7-(Et+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Zs(C)):js(C)}}i(j,"newParse");function w(B,Y,X,C){for(var St=0,et=Y.length,Et=X.length,Dt,Kt;St=Et)return-1;if(Dt=Y.charCodeAt(St++),Dt===37){if(Dt=Y.charAt(St++),Kt=H[Dt in ac?Y.charAt(St++):Dt],!Kt||(C=Kt(B,X,C))<0)return-1}else if(Dt!=X.charCodeAt(C++))return-1}return C}i(w,"parseSpecifier");function U(B,Y,X){var C=h.exec(Y.slice(X));return C?(B.p=u.get(C[0].toLowerCase()),X+C[0].length):-1}i(U,"parsePeriod");function K(B,Y,X){var C=g.exec(Y.slice(X));return C?(B.w=S.get(C[0].toLowerCase()),X+C[0].length):-1}i(K,"parseShortWeekday");function E(B,Y,X){var C=d.exec(Y.slice(X));return C?(B.w=f.get(C[0].toLowerCase()),X+C[0].length):-1}i(E,"parseWeekday");function v(B,Y,X){var C=$.exec(Y.slice(X));return C?(B.m=V.get(C[0].toLowerCase()),X+C[0].length):-1}i(v,"parseShortMonth");function x(B,Y,X){var C=A.exec(Y.slice(X));return C?(B.m=W.get(C[0].toLowerCase()),X+C[0].length):-1}i(x,"parseMonth");function y(B,Y,X){return w(B,e,Y,X)}i(y,"parseLocaleDateTime");function M(B,Y,X){return w(B,r,Y,X)}i(M,"parseLocaleDate");function k(B,Y,X){return w(B,o,Y,X)}i(k,"parseLocaleTime");function N(B){return a[B.getDay()]}i(N,"formatShortWeekday");function I(B){return s[B.getDay()]}i(I,"formatWeekday");function G(B){return c[B.getMonth()]}i(G,"formatShortMonth");function tt(B){return l[B.getMonth()]}i(tt,"formatMonth");function ot(B){return n[+(B.getHours()>=12)]}i(ot,"formatPeriod");function nt(B){return 1+~~(B.getMonth()/3)}i(nt,"formatQuarter");function mt(B){return a[B.getUTCDay()]}i(mt,"formatUTCShortWeekday");function qt(B){return s[B.getUTCDay()]}i(qt,"formatUTCWeekday");function ut(B){return c[B.getUTCMonth()]}i(ut,"formatUTCShortMonth");function $t(B){return l[B.getUTCMonth()]}i($t,"formatUTCMonth");function At(B){return n[+(B.getUTCHours()>=12)]}i(At,"formatUTCPeriod");function ht(B){return 1+~~(B.getUTCMonth()/3)}return i(ht,"formatUTCQuarter"),{format:i(function(B){var Y=T(B+="",L);return Y.toString=function(){return B},Y},"format"),parse:i(function(B){var Y=j(B+="",!1);return Y.toString=function(){return B},Y},"parse"),utcFormat:i(function(B){var Y=T(B+="",F);return Y.toString=function(){return B},Y},"utcFormat"),utcParse:i(function(B){var Y=j(B+="",!0);return Y.toString=function(){return B},Y},"utcParse")}}i(Ks,"formatLocale");var ac={"-":"",_:" ",0:"0"},Tt=/^\s*\d+/,Yp=/^%/,Gp=/[\\^$*+?|[\]().{}]/g;function it(t,e,r){var o=t<0?"-":"",n=(o?-t:t)+"",s=n.length;return o+(s[e.toLowerCase(),r]))}i(ni,"formatLookup");function Xp(t,e,r){var o=Tt.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}i(Xp,"parseWeekdayNumberSunday");function jp(t,e,r){var o=Tt.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}i(jp,"parseWeekdayNumberMonday");function Zp(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}i(Zp,"parseWeekNumberSunday");function Kp(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}i(Kp,"parseWeekNumberISO");function Qp(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}i(Qp,"parseWeekNumberMonday");function lc(t,e,r){var o=Tt.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}i(lc,"parseFullYear");function hc(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}i(hc,"parseYear");function Jp(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}i(Jp,"parseZone");function td(t,e,r){var o=Tt.exec(e.slice(r,r+1));return o?(t.q=o[0]*3-3,r+o[0].length):-1}i(td,"parseQuarter");function ed(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}i(ed,"parseMonthNumber");function cc(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}i(cc,"parseDayOfMonth");function rd(t,e,r){var o=Tt.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}i(rd,"parseDayOfYear");function uc(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}i(uc,"parseHour24");function id(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}i(id,"parseMinutes");function od(t,e,r){var o=Tt.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}i(od,"parseSeconds");function nd(t,e,r){var o=Tt.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}i(nd,"parseMilliseconds");function sd(t,e,r){var o=Tt.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}i(sd,"parseMicroseconds");function ad(t,e,r){var o=Yp.exec(e.slice(r,r+1));return o?r+o[0].length:-1}i(ad,"parseLiteralPercent");function ld(t,e,r){var o=Tt.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}i(ld,"parseUnixTimestamp");function hd(t,e,r){var o=Tt.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}i(hd,"parseUnixTimestampSeconds");function fc(t,e){return it(t.getDate(),e,2)}i(fc,"formatDayOfMonth");function cd(t,e){return it(t.getHours(),e,2)}i(cd,"formatHour24");function ud(t,e){return it(t.getHours()%12||12,e,2)}i(ud,"formatHour12");function fd(t,e){return it(1+ge.count(Wt(t),t),e,3)}i(fd,"formatDayOfYear");function xc(t,e){return it(t.getMilliseconds(),e,3)}i(xc,"formatMilliseconds");function md(t,e){return xc(t,e)+"000"}i(md,"formatMicroseconds");function pd(t,e){return it(t.getMonth()+1,e,2)}i(pd,"formatMonthNumber");function dd(t,e){return it(t.getMinutes(),e,2)}i(dd,"formatMinutes");function gd(t,e){return it(t.getSeconds(),e,2)}i(gd,"formatSeconds");function xd(t){var e=t.getDay();return e===0?7:e}i(xd,"formatWeekdayNumberMonday");function yd(t,e){return it(xe.count(Wt(t)-1,t),e,2)}i(yd,"formatWeekNumberSunday");function yc(t){var e=t.getDay();return e>=4||e===0?Ae(t):Ae.ceil(t)}i(yc,"dISO");function Cd(t,e){return t=yc(t),it(Ae.count(Wt(t),t)+(Wt(t).getDay()===4),e,2)}i(Cd,"formatWeekNumberISO");function _d(t){return t.getDay()}i(_d,"formatWeekdayNumberSunday");function bd(t,e){return it(Tr.count(Wt(t)-1,t),e,2)}i(bd,"formatWeekNumberMonday");function Td(t,e){return it(t.getFullYear()%100,e,2)}i(Td,"formatYear");function kd(t,e){return t=yc(t),it(t.getFullYear()%100,e,2)}i(kd,"formatYearISO");function Sd(t,e){return it(t.getFullYear()%1e4,e,4)}i(Sd,"formatFullYear");function vd(t,e){var r=t.getDay();return t=r>=4||r===0?Ae(t):Ae.ceil(t),it(t.getFullYear()%1e4,e,4)}i(vd,"formatFullYearISO");function wd(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+it(e/60|0,"0",2)+it(e%60,"0",2)}i(wd,"formatZone");function mc(t,e){return it(t.getUTCDate(),e,2)}i(mc,"formatUTCDayOfMonth");function Bd(t,e){return it(t.getUTCHours(),e,2)}i(Bd,"formatUTCHour24");function Fd(t,e){return it(t.getUTCHours()%12||12,e,2)}i(Fd,"formatUTCHour12");function Md(t,e){return it(1+ri.count(jt(t),t),e,3)}i(Md,"formatUTCDayOfYear");function Cc(t,e){return it(t.getUTCMilliseconds(),e,3)}i(Cc,"formatUTCMilliseconds");function Ld(t,e){return Cc(t,e)+"000"}i(Ld,"formatUTCMicroseconds");function Ad(t,e){return it(t.getUTCMonth()+1,e,2)}i(Ad,"formatUTCMonthNumber");function Ed(t,e){return it(t.getUTCMinutes(),e,2)}i(Ed,"formatUTCMinutes");function Dd(t,e){return it(t.getUTCSeconds(),e,2)}i(Dd,"formatUTCSeconds");function Od(t){var e=t.getUTCDay();return e===0?7:e}i(Od,"formatUTCWeekdayNumberMonday");function Id(t,e){return it(je.count(jt(t)-1,t),e,2)}i(Id,"formatUTCWeekNumberSunday");function _c(t){var e=t.getUTCDay();return e>=4||e===0?Ee(t):Ee.ceil(t)}i(_c,"UTCdISO");function Rd(t,e){return t=_c(t),it(Ee.count(jt(t),t)+(jt(t).getUTCDay()===4),e,2)}i(Rd,"formatUTCWeekNumberISO");function Nd(t){return t.getUTCDay()}i(Nd,"formatUTCWeekdayNumberSunday");function qd(t,e){return it(kr.count(jt(t)-1,t),e,2)}i(qd,"formatUTCWeekNumberMonday");function zd(t,e){return it(t.getUTCFullYear()%100,e,2)}i(zd,"formatUTCYear");function Pd(t,e){return t=_c(t),it(t.getUTCFullYear()%100,e,2)}i(Pd,"formatUTCYearISO");function $d(t,e){return it(t.getUTCFullYear()%1e4,e,4)}i($d,"formatUTCFullYear");function Wd(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Ee(t):Ee.ceil(t),it(t.getUTCFullYear()%1e4,e,4)}i(Wd,"formatUTCFullYearISO");function Hd(){return"+0000"}i(Hd,"formatUTCZone");function pc(){return"%"}i(pc,"formatLiteralPercent");function dc(t){return+t}i(dc,"formatUnixTimestamp");function gc(t){return Math.floor(+t/1e3)}i(gc,"formatUnixTimestampSeconds");var vr,xo,bc,Tc,kc;Qs({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Qs(t){return vr=Ks(t),xo=vr.format,bc=vr.parse,Tc=vr.utcFormat,kc=vr.utcParse,vr}i(Qs,"defaultLocale");function Js(t,e){t=t.slice();var r=0,o=t.length-1,n=t[r],s=t[o],a;return s1?0:t<-1?wr:Math.acos(t)}i(Bc,"acos");function ia(t){return t>=1?si:t<=-1?-si:Math.asin(t)}i(ia,"asin");var oa=Math.PI,na=2*oa,Ke=1e-6,Vd=na-Ke;function Fc(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return Fc;let r=10**e;return function(o){this._+=o[0];for(let n=1,s=o.length;nKe)if(!(Math.abs(d*c-h*u)>Ke)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let g=o-a,S=n-l,A=c*c+h*h,W=g*g+S*S,$=Math.sqrt(A),V=Math.sqrt(f),L=s*Math.tan((oa-Math.acos((A+f-W)/(2*$*V)))/2),F=L/V,H=L/$;Math.abs(F-1)>Ke&&this._append`L${e+F*u},${r+F*d}`,this._append`A${s},${s},0,0,${+(d*g>u*S)},${this._x1=e+H*c},${this._y1=r+H*h}`}}arc(e,r,o,n,s,a){if(e=+e,r=+r,o=+o,a=!!a,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(n),c=o*Math.sin(n),h=e+l,u=r+c,d=1^a,f=a?n-s:s-n;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Ke||Math.abs(this._y1-u)>Ke)&&this._append`L${h},${u}`,o&&(f<0&&(f=f%na+na),f>Vd?this._append`A${o},${o},0,1,${d},${e-l},${r-c}A${o},${o},0,1,${d},${this._x1=h},${this._y1=u}`:f>Ke&&this._append`A${o},${o},0,${+(f>=oa)},${d},${this._x1=e+o*Math.cos(s)},${this._y1=r+o*Math.sin(s)}`)}rect(e,r,o,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${o=+o}v${+n}h${-o}Z`}toString(){return this._}};function Mc(){return new Qe}i(Mc,"path");Mc.prototype=Qe.prototype;function Co(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let o=Math.floor(r);if(!(o>=0))throw new RangeError(`invalid digits: ${r}`);e=o}return t},()=>new Qe(e)}i(Co,"withPath");function jd(t){return t.innerRadius}i(jd,"arcInnerRadius");function Zd(t){return t.outerRadius}i(Zd,"arcOuterRadius");function Kd(t){return t.startAngle}i(Kd,"arcStartAngle");function Qd(t){return t.endAngle}i(Qd,"arcEndAngle");function Jd(t){return t&&t.padAngle}i(Jd,"arcPadAngle");function tg(t,e,r,o,n,s,a,l){var c=r-t,h=o-e,u=a-n,d=l-s,f=d*c-u*h;if(!(f*fy*y+M*M&&(w=K,U=E),{cx:w,cy:U,x01:-u,y01:-d,x11:w*(n/H-1),y11:U*(n/H-1)}}i(_o,"cornerTangents");function Lc(){var t=jd,e=Zd,r=lt(0),o=null,n=Kd,s=Qd,a=Jd,l=null,c=Co(h);function h(){var u,d,f=+t.apply(this,arguments),g=+e.apply(this,arguments),S=n.apply(this,arguments)-si,A=s.apply(this,arguments)-si,W=ra(A-S),$=A>S;if(l||(l=u=c()),gkt))l.moveTo(0,0);else if(W>Br-kt)l.moveTo(g*De(S),g*Zt(S)),l.arc(0,0,g,S,A,!$),f>kt&&(l.moveTo(f*De(A),f*Zt(A)),l.arc(0,0,f,A,S,$));else{var V=S,L=A,F=S,H=A,T=W,j=W,w=a.apply(this,arguments)/2,U=w>kt&&(o?+o.apply(this,arguments):Ze(f*f+g*g)),K=yo(ra(g-f)/2,+r.apply(this,arguments)),E=K,v=K,x,y;if(U>kt){var M=ia(U/f*Zt(w)),k=ia(U/g*Zt(w));(T-=M*2)>kt?(M*=$?1:-1,F+=M,H-=M):(T=0,F=H=(S+A)/2),(j-=k*2)>kt?(k*=$?1:-1,V+=k,L-=k):(j=0,V=L=(S+A)/2)}var N=g*De(V),I=g*Zt(V),G=f*De(H),tt=f*Zt(H);if(K>kt){var ot=g*De(L),nt=g*Zt(L),mt=f*De(F),qt=f*Zt(F),ut;if(Wkt?v>kt?(x=_o(mt,qt,N,I,g,v,$),y=_o(ot,nt,G,tt,g,v,$),l.moveTo(x.cx+x.x01,x.cy+x.y01),vkt)||!(T>kt)?l.lineTo(G,tt):E>kt?(x=_o(G,tt,ot,nt,f,-E,$),y=_o(N,I,mt,qt,f,-E,$),l.lineTo(x.cx+x.x01,x.cy+x.y01),Et?1:e>=t?0:NaN}i(sa,"default");function aa(t){return t}i(aa,"default");function Ic(){var t=aa,e=sa,r=null,o=lt(0),n=lt(Br),s=lt(0);function a(l){var c,h=(l=ai(l)).length,u,d,f=0,g=new Array(h),S=new Array(h),A=+o.apply(this,arguments),W=Math.min(Br,Math.max(-Br,n.apply(this,arguments)-A)),$,V=Math.min(Math.abs(W)/h,s.apply(this,arguments)),L=V*(W<0?-1:1),F;for(c=0;c0&&(f+=F);for(e!=null?g.sort(function(H,T){return e(S[H],S[T])}):r!=null&&g.sort(function(H,T){return r(l[H],l[T])}),c=0,d=f?(W-h*L)/f:0;c0?F*d:0)+L,S[u]={data:l[u],index:c,value:F,startAngle:A,endAngle:$,padAngle:V};return S}return i(a,"pie"),a.value=function(l){return arguments.length?(t=typeof l=="function"?l:lt(+l),a):t},a.sortValues=function(l){return arguments.length?(e=l,r=null,a):e},a.sort=function(l){return arguments.length?(r=l,e=null,a):r},a.startAngle=function(l){return arguments.length?(o=typeof l=="function"?l:lt(+l),a):o},a.endAngle=function(l){return arguments.length?(n=typeof l=="function"?l:lt(+l),a):n},a.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:lt(+l),a):s},a}i(Ic,"default");var To=class{static{i(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function eg(t){return new To(t,!0)}i(eg,"bumpX");function rg(t){return new To(t,!1)}i(rg,"bumpY");function Fr(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}i(Fr,"point");function li(t){this._context=t}i(li,"Basis");li.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 3:Fr(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:Fr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Rc(t){return new li(t)}i(Rc,"default");function Ht(){}i(Ht,"default");function Nc(t){this._context=t}i(Nc,"BasisClosed");Nc.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:Fr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function qc(t){return new Nc(t)}i(qc,"default");function zc(t){this._context=t}i(zc,"BasisOpen");zc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:Fr(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Pc(t){return new zc(t)}i(Pc,"default");function $c(t,e){this._basis=new li(t),this._beta=e}i($c,"Bundle");$c.prototype={lineStart:i(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var o=t[0],n=e[0],s=t[r]-o,a=e[r]-n,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+c*s),this._beta*e[l]+(1-this._beta)*(n+c*a));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:i(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};var ig=i(function t(e){function r(o){return e===1?new li(o):new $c(o,e)}return i(r,"bundle"),r.beta=function(o){return t(+o)},r},"custom")(.85);function Mr(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}i(Mr,"point");function ko(t,e){this._context=t,this._k=(1-e)/6}i(ko,"Cardinal");ko.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Mr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var og=i(function t(e){function r(o){return new ko(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function So(t,e){this._context=t,this._k=(1-e)/6}i(So,"CardinalClosed");So.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ng=i(function t(e){function r(o){return new So(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function vo(t,e){this._context=t,this._k=(1-e)/6}i(vo,"CardinalOpen");vo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Mr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var sg=i(function t(e){function r(o){return new vo(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function hi(t,e,r){var o=t._x1,n=t._y1,s=t._x2,a=t._y2;if(t._l01_a>kt){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,n=(n*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>kt){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(o,n,s,a,t._x2,t._y2)}i(hi,"point");function Wc(t,e){this._context=t,this._alpha=e}i(Wc,"CatmullRom");Wc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:hi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ag=i(function t(e){function r(o){return e?new Wc(o,e):new ko(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Hc(t,e){this._context=t,this._alpha=e}i(Hc,"CatmullRomClosed");Hc.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:hi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var lg=i(function t(e){function r(o){return e?new Hc(o,e):new So(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Uc(t,e){this._context=t,this._alpha=e}i(Uc,"CatmullRomOpen");Uc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:hi(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var hg=i(function t(e){function r(o){return e?new Uc(o,e):new vo(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Yc(t){this._context=t}i(Yc,"LinearClosed");Yc.prototype={areaStart:Ht,areaEnd:Ht,lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){this._point&&this._context.closePath()},"lineEnd"),point:i(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};function Gc(t){return new Yc(t)}i(Gc,"default");function Vc(t){return t<0?-1:1}i(Vc,"sign");function Xc(t,e,r){var o=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(o||n<0&&-0),a=(r-t._y1)/(n||o<0&&-0),l=(s*n+a*o)/(o+n);return(Vc(s)+Vc(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(l))||0}i(Xc,"slope3");function jc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}i(jc,"slope2");function la(t,e,r){var o=t._x0,n=t._y0,s=t._x1,a=t._y1,l=(s-o)/3;t._context.bezierCurveTo(o+l,n+l*e,s-l,a-l*r,s,a)}i(la,"point");function wo(t){this._context=t}i(wo,"MonotoneX");wo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:la(this,this._t0,jc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,la(this,jc(this,r=Xc(this,t,e)),r);break;default:la(this,this._t0,r=Xc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};function Zc(t){this._context=new Kc(t)}i(Zc,"MonotoneY");(Zc.prototype=Object.create(wo.prototype)).point=function(t,e){wo.prototype.point.call(this,e,t)};function Kc(t){this._context=t}i(Kc,"ReflectContext");Kc.prototype={moveTo:i(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:i(function(){this._context.closePath()},"closePath"),lineTo:i(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:i(function(t,e,r,o,n,s){this._context.bezierCurveTo(e,t,o,r,s,n)},"bezierCurveTo")};function cg(t){return new wo(t)}i(cg,"monotoneX");function ug(t){return new Zc(t)}i(ug,"monotoneY");function Jc(t){this._context=t}i(Jc,"Natural");Jc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var o=Qc(t),n=Qc(e),s=0,a=1;a=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};function eu(t){return new Bo(t,.5)}i(eu,"default");function fg(t){return new Bo(t,0)}i(fg,"stepBefore");function mg(t){return new Bo(t,1)}i(mg,"stepAfter");var pg={value:i(()=>{},"value")};function iu(){for(var t=0,e=arguments.length,r={},o;t=0&&(o=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}i(dg,"parseTypenames");Fo.prototype=iu.prototype={constructor:Fo,on:i(function(t,e){var r=this._,o=dg(t+"",r),n,s=-1,a=o.length;if(arguments.length<2){for(;++s0)for(var r=new Array(n),o=0,n,s;o=0&&t._call.call(void 0,e),t=t._next;--Lr}i(au,"timerFlush");function ou(){Je=(Lo=mi.now())+Ao,Lr=ui=0;try{au()}finally{Lr=0,Cg(),Je=0}}i(ou,"wake");function yg(){var t=mi.now(),e=t-Lo;e>nu&&(Ao-=e,Lo=t)}i(yg,"poke");function Cg(){for(var t,e=Mo,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:Mo=r);fi=t,ca(o)}i(Cg,"nap");function ca(t){if(!Lr){ui&&(ui=clearTimeout(ui));var e=t-Je;e>24?(t<1/0&&(ui=setTimeout(ou,t-mi.now()-Ao)),ci&&(ci=clearInterval(ci))):(ci||(Lo=mi.now(),ci=setInterval(yg,nu)),Lr=1,su(ou))}}i(ca,"sleep");function gi(t,e,r){var o=new pi;return e=e==null?0:+e,o.restart(n=>{o.stop(),t(n+e)},e,r),o}i(gi,"default");var _g=ha("start","end","cancel","interrupt"),bg=[],cu=0,lu=1,Oo=2,Do=3,hu=4,Io=5,xi=6;function ye(t,e,r,o,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;Tg(t,r,{name:e,index:o,group:n,on:_g,tween:bg,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:cu})}i(ye,"default");function yi(t,e){var r=xt(t,e);if(r.state>cu)throw new Error("too late; already scheduled");return r}i(yi,"init");function Ft(t,e){var r=xt(t,e);if(r.state>Do)throw new Error("too late; already running");return r}i(Ft,"set");function xt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}i(xt,"get");function Tg(t,e,r){var o=t.__transition,n;o[e]=r,r.timer=Eo(s,0,r.time);function s(h){r.state=lu,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}i(s,"schedule");function a(h){var u,d,f,g;if(r.state!==lu)return c();for(u in o)if(g=o[u],g.name===r.name){if(g.state===Do)return gi(a);g.state===hu?(g.state=xi,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete o[u]):+uOo&&o.state=0&&(e=e.slice(0,r)),!e||e==="start"})}i($g,"start");function Wg(t,e,r){var o,n,s=$g(e)?yi:Ft;return function(){var a=s(this,t),l=a.on;l!==o&&(n=(o=l).copy()).on(e,r),a.on=n}}i(Wg,"onFunction");function ba(t,e){var r=this._id;return arguments.length<2?xt(this.node(),r).on.on(t):this.each(Wg(r,t,e))}i(ba,"default");function Hg(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}i(Hg,"removeFunction");function Ta(){return this.on("end.remove",Hg(this._id))}i(Ta,"default");function ka(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Se(t));for(var o=this._groups,n=o.length,s=new Array(n),a=0;a":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s(function(c,u,a,y,T,r,Z){var h=r.length-1;switch(T){case 3:return y.setRootDoc(r[h]),r[h];break;case 4:this.$=[];break;case 5:r[h]!="nl"&&(r[h-1].push(r[h]),this.$=r[h-1]);break;case 6:case 7:this.$=r[h];break;case 8:this.$="nl";break;case 12:this.$=r[h];break;case 13:let ht=r[h-1];ht.description=y.trimColon(r[h]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:r[h-2],state2:r[h]};break;case 15:let pt=y.trimColon(r[h]);this.$={stmt:"relation",state1:r[h-3],state2:r[h-1],description:pt};break;case 19:this.$={stmt:"state",id:r[h-3],type:"default",description:"",doc:r[h-1]};break;case 20:var M=r[h],z=r[h-2].trim();if(r[h].match(":")){var tt=r[h].split(":");M=tt[0],z=[z,tt[1]]}this.$={stmt:"state",id:M,type:"default",description:z};break;case 21:this.$={stmt:"state",id:r[h-3],type:"default",description:r[h-5],doc:r[h-1]};break;case 22:this.$={stmt:"state",id:r[h],type:"fork"};break;case 23:this.$={stmt:"state",id:r[h],type:"join"};break;case 24:this.$={stmt:"state",id:r[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[h-1].trim(),note:{position:r[h-2].trim(),text:r[h].trim()}};break;case 29:this.$=r[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=r[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:r[h-1].trim(),classes:r[h].trim()};break;case 34:this.$={stmt:"style",id:r[h-1].trim(),styleClass:r[h].trim()};break;case 35:this.$={stmt:"applyClass",id:r[h-1].trim(),styleClass:r[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:r[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:r[h-2].trim(),classes:[r[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:r[h-2].trim(),classes:[r[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:l,6:n},{1:[3]},{3:5,4:e,5:l,6:n},{3:6,4:e,5:l,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:E,17:o,19:_,22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:E,17:o,19:_,22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ut,[2,42],{55:[1,54]}),t(ut,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:N,54:Q},t(S,[2,17]),t(ee,p,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:i,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:E,17:o,19:_,21:[1,68],22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ut,[2,44]),t(ut,[2,45]),t(S,[2,15]),t(S,[2,19]),t(ee,p,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:i,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:E,17:o,19:_,21:[1,73],22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:s(function(c,u){if(u.recoverable)this.trace(c);else{var a=new Error(c);throw a.hash=u,a}},"parseError"),parse:s(function(c){var u=this,a=[0],y=[],T=[null],r=[],Z=this.table,h="",M=0,z=0,tt=0,ht=2,pt=1,ze=r.slice.call(arguments,1),b=Object.create(this.lexer),V={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(V.yy[It]=this.yy[It]);b.setInput(c,V.yy),V.yy.lexer=b,V.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Rt=b.yylloc;r.push(Rt);var We=b.options&&b.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Cs(A){a.length=a.length-2*A,T.length=T.length-A,r.length=r.length-A}s(Cs,"popStack");function Xe(){var A;return A=y.pop()||b.lex()||pt,typeof A!="number"&&(A instanceof Array&&(y=A,A=y.pop()),A=u.symbols_[A]||A),A}s(Xe,"lex");for(var m,vt,U,C,Ls,Ot,W={},ft,v,se,dt;;){if(U=a[a.length-1],this.defaultActions[U]?C=this.defaultActions[U]:((m===null||typeof m>"u")&&(m=Xe()),C=Z[U]&&Z[U][m]),typeof C>"u"||!C.length||!C[0]){var Nt="";dt=[];for(ft in Z[U])this.terminals_[ft]&&ft>ht&&dt.push("'"+this.terminals_[ft]+"'");b.showPosition?Nt="Parse error on line "+(M+1)+`: +import{a as pe,b as de}from"./chunk-P7KHIEPL.mjs";import{b as fe}from"./chunk-54VS5GG6.mjs";import{e as ue,m as he}from"./chunk-UENA7NWE.mjs";import{L as O,P as re,Q as ie,R as ne,S as ae,T as oe,U as ce,V as le,X as x,b as g}from"./chunk-OR2G2HG5.mjs";import{a as s}from"./chunk-GTKDMUJJ.mjs";var Pt=function(){var t=s(function(w,c,u,a){for(u=u||{},a=w.length;a--;u[w[a]]=c);return u},"o"),e=[1,2],l=[1,3],n=[1,4],p=[2,4],i=[1,9],d=[1,11],E=[1,16],o=[1,17],_=[1,18],k=[1,19],N=[1,32],I=[1,20],f=[1,21],L=[1,22],R=[1,23],F=[1,24],B=[1,26],P=[1,27],G=[1,28],rt=[1,29],it=[1,30],nt=[1,31],at=[1,34],ot=[1,35],ct=[1,36],lt=[1,37],Q=[1,33],S=[1,4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ut=[1,4,5,14,15,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],ee=[4,5,16,17,19,21,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],Ct={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NL:5,SD:6,document:7,line:8,statement:9,classDefStatement:10,styleStatement:11,cssClassStatement:12,idStatement:13,DESCR:14,"-->":15,HIDE_EMPTY:16,scale:17,WIDTH:18,COMPOSIT_STATE:19,STRUCT_START:20,STRUCT_STOP:21,STATE_DESCR:22,AS:23,ID:24,FORK:25,JOIN:26,CHOICE:27,CONCURRENT:28,note:29,notePosition:30,NOTE_TEXT:31,direction:32,acc_title:33,acc_title_value:34,acc_descr:35,acc_descr_value:36,acc_descr_multiline_value:37,classDef:38,CLASSDEF_ID:39,CLASSDEF_STYLEOPTS:40,DEFAULT:41,style:42,STYLE_IDS:43,STYLEDEF_STYLEOPTS:44,class:45,CLASSENTITY_IDS:46,STYLECLASS:47,direction_tb:48,direction_bt:49,direction_rl:50,direction_lr:51,eol:52,";":53,EDGE_STATE:54,STYLE_SEPARATOR:55,left_of:56,right_of:57,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NL",6:"SD",14:"DESCR",15:"-->",16:"HIDE_EMPTY",17:"scale",18:"WIDTH",19:"COMPOSIT_STATE",20:"STRUCT_START",21:"STRUCT_STOP",22:"STATE_DESCR",23:"AS",24:"ID",25:"FORK",26:"JOIN",27:"CHOICE",28:"CONCURRENT",29:"note",31:"NOTE_TEXT",33:"acc_title",34:"acc_title_value",35:"acc_descr",36:"acc_descr_value",37:"acc_descr_multiline_value",38:"classDef",39:"CLASSDEF_ID",40:"CLASSDEF_STYLEOPTS",41:"DEFAULT",42:"style",43:"STYLE_IDS",44:"STYLEDEF_STYLEOPTS",45:"class",46:"CLASSENTITY_IDS",47:"STYLECLASS",48:"direction_tb",49:"direction_bt",50:"direction_rl",51:"direction_lr",53:";",54:"EDGE_STATE",55:"STYLE_SEPARATOR",56:"left_of",57:"right_of"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,3],[9,4],[9,1],[9,2],[9,1],[9,4],[9,3],[9,6],[9,1],[9,1],[9,1],[9,1],[9,4],[9,4],[9,1],[9,2],[9,2],[9,1],[10,3],[10,3],[11,3],[12,3],[32,1],[32,1],[32,1],[32,1],[52,1],[52,1],[13,1],[13,1],[13,3],[13,3],[30,1],[30,1]],performAction:s(function(c,u,a,y,T,r,Z){var h=r.length-1;switch(T){case 3:return y.setRootDoc(r[h]),r[h];break;case 4:this.$=[];break;case 5:r[h]!="nl"&&(r[h-1].push(r[h]),this.$=r[h-1]);break;case 6:case 7:this.$=r[h];break;case 8:this.$="nl";break;case 12:this.$=r[h];break;case 13:let ht=r[h-1];ht.description=y.trimColon(r[h]),this.$=ht;break;case 14:this.$={stmt:"relation",state1:r[h-2],state2:r[h]};break;case 15:let pt=y.trimColon(r[h]);this.$={stmt:"relation",state1:r[h-3],state2:r[h-1],description:pt};break;case 19:this.$={stmt:"state",id:r[h-3],type:"default",description:"",doc:r[h-1]};break;case 20:var M=r[h],z=r[h-2].trim();if(r[h].match(":")){var tt=r[h].split(":");M=tt[0],z=[z,tt[1]]}this.$={stmt:"state",id:M,type:"default",description:z};break;case 21:this.$={stmt:"state",id:r[h-3],type:"default",description:r[h-5],doc:r[h-1]};break;case 22:this.$={stmt:"state",id:r[h],type:"fork"};break;case 23:this.$={stmt:"state",id:r[h],type:"join"};break;case 24:this.$={stmt:"state",id:r[h],type:"choice"};break;case 25:this.$={stmt:"state",id:y.getDividerId(),type:"divider"};break;case 26:this.$={stmt:"state",id:r[h-1].trim(),note:{position:r[h-2].trim(),text:r[h].trim()}};break;case 29:this.$=r[h].trim(),y.setAccTitle(this.$);break;case 30:case 31:this.$=r[h].trim(),y.setAccDescription(this.$);break;case 32:case 33:this.$={stmt:"classDef",id:r[h-1].trim(),classes:r[h].trim()};break;case 34:this.$={stmt:"style",id:r[h-1].trim(),styleClass:r[h].trim()};break;case 35:this.$={stmt:"applyClass",id:r[h-1].trim(),styleClass:r[h].trim()};break;case 36:y.setDirection("TB"),this.$={stmt:"dir",value:"TB"};break;case 37:y.setDirection("BT"),this.$={stmt:"dir",value:"BT"};break;case 38:y.setDirection("RL"),this.$={stmt:"dir",value:"RL"};break;case 39:y.setDirection("LR"),this.$={stmt:"dir",value:"LR"};break;case 42:case 43:this.$={stmt:"state",id:r[h].trim(),type:"default",description:""};break;case 44:this.$={stmt:"state",id:r[h-2].trim(),classes:[r[h].trim()],type:"default",description:""};break;case 45:this.$={stmt:"state",id:r[h-2].trim(),classes:[r[h].trim()],type:"default",description:""};break}},"anonymous"),table:[{3:1,4:e,5:l,6:n},{1:[3]},{3:5,4:e,5:l,6:n},{3:6,4:e,5:l,6:n},t([1,4,5,16,17,19,22,24,25,26,27,28,29,33,35,37,38,42,45,48,49,50,51,54],p,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:i,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:E,17:o,19:_,22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,5]),{9:38,10:12,11:13,12:14,13:15,16:E,17:o,19:_,22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,7]),t(S,[2,8]),t(S,[2,9]),t(S,[2,10]),t(S,[2,11]),t(S,[2,12],{14:[1,39],15:[1,40]}),t(S,[2,16]),{18:[1,41]},t(S,[2,18],{20:[1,42]}),{23:[1,43]},t(S,[2,22]),t(S,[2,23]),t(S,[2,24]),t(S,[2,25]),{30:44,31:[1,45],56:[1,46],57:[1,47]},t(S,[2,28]),{34:[1,48]},{36:[1,49]},t(S,[2,31]),{39:[1,50],41:[1,51]},{43:[1,52]},{46:[1,53]},t(ut,[2,42],{55:[1,54]}),t(ut,[2,43],{55:[1,55]}),t(S,[2,36]),t(S,[2,37]),t(S,[2,38]),t(S,[2,39]),t(S,[2,6]),t(S,[2,13]),{13:56,24:N,54:Q},t(S,[2,17]),t(ee,p,{7:57}),{24:[1,58]},{24:[1,59]},{23:[1,60]},{24:[2,46]},{24:[2,47]},t(S,[2,29]),t(S,[2,30]),{40:[1,61]},{40:[1,62]},{44:[1,63]},{47:[1,64]},{24:[1,65]},{24:[1,66]},t(S,[2,14],{14:[1,67]}),{4:i,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:E,17:o,19:_,21:[1,68],22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,20],{20:[1,69]}),{31:[1,70]},{24:[1,71]},t(S,[2,32]),t(S,[2,33]),t(S,[2,34]),t(S,[2,35]),t(ut,[2,44]),t(ut,[2,45]),t(S,[2,15]),t(S,[2,19]),t(ee,p,{7:72}),t(S,[2,26]),t(S,[2,27]),{4:i,5:d,8:8,9:10,10:12,11:13,12:14,13:15,16:E,17:o,19:_,21:[1,73],22:k,24:N,25:I,26:f,27:L,28:R,29:F,32:25,33:B,35:P,37:G,38:rt,42:it,45:nt,48:at,49:ot,50:ct,51:lt,54:Q},t(S,[2,21])],defaultActions:{5:[2,1],6:[2,2],46:[2,46],47:[2,47]},parseError:s(function(c,u){if(u.recoverable)this.trace(c);else{var a=new Error(c);throw a.hash=u,a}},"parseError"),parse:s(function(c){var u=this,a=[0],y=[],T=[null],r=[],Z=this.table,h="",M=0,z=0,tt=0,ht=2,pt=1,ze=r.slice.call(arguments,1),b=Object.create(this.lexer),V={yy:{}};for(var It in this.yy)Object.prototype.hasOwnProperty.call(this.yy,It)&&(V.yy[It]=this.yy[It]);b.setInput(c,V.yy),V.yy.lexer=b,V.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var Rt=b.yylloc;r.push(Rt);var We=b.options&&b.options.ranges;typeof V.yy.parseError=="function"?this.parseError=V.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Cs(A){a.length=a.length-2*A,T.length=T.length-A,r.length=r.length-A}s(Cs,"popStack");function Xe(){var A;return A=y.pop()||b.lex()||pt,typeof A!="number"&&(A instanceof Array&&(y=A,A=y.pop()),A=u.symbols_[A]||A),A}s(Xe,"lex");for(var m,vt,U,C,Ls,Ot,W={},ft,v,se,dt;;){if(U=a[a.length-1],this.defaultActions[U]?C=this.defaultActions[U]:((m===null||typeof m>"u")&&(m=Xe()),C=Z[U]&&Z[U][m]),typeof C>"u"||!C.length||!C[0]){var Nt="";dt=[];for(ft in Z[U])this.terminals_[ft]&&ft>ht&&dt.push("'"+this.terminals_[ft]+"'");b.showPosition?Nt="Parse error on line "+(M+1)+`: `+b.showPosition()+` Expecting `+dt.join(", ")+", got '"+(this.terminals_[m]||m)+"'":Nt="Parse error on line "+(M+1)+": Unexpected "+(m==pt?"end of input":"'"+(this.terminals_[m]||m)+"'"),this.parseError(Nt,{text:b.match,token:this.terminals_[m]||m,line:b.yylineno,loc:Rt,expected:dt})}if(C[0]instanceof Array&&C.length>1)throw new Error("Parse Error: multiple actions possible at state: "+U+", token: "+m);switch(C[0]){case 1:a.push(m),T.push(b.yytext),r.push(b.yylloc),a.push(C[1]),m=null,vt?(m=vt,vt=null):(z=b.yyleng,h=b.yytext,M=b.yylineno,Rt=b.yylloc,tt>0&&tt--);break;case 2:if(v=this.productions_[C[1]][1],W.$=T[T.length-v],W._$={first_line:r[r.length-(v||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(v||1)].first_column,last_column:r[r.length-1].last_column},We&&(W._$.range=[r[r.length-(v||1)].range[0],r[r.length-1].range[1]]),Ot=this.performAction.apply(W,[h,z,M,V.yy,C[1],T,r].concat(ze)),typeof Ot<"u")return Ot;v&&(a=a.slice(0,-1*v*2),T=T.slice(0,-1*v),r=r.slice(0,-1*v)),a.push(this.productions_[C[1]][0]),T.push(W.$),r.push(W._$),se=Z[a[a.length-2]][a[a.length-1]],a.push(se);break;case 3:return!0}}return!0},"parse")},je=function(){var w={EOF:1,parseError:s(function(u,a){if(this.yy.parser)this.yy.parser.parseError(u,a);else throw new Error(u)},"parseError"),setInput:s(function(c,u){return this.yy=u||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var u=c.match(/(?:\r\n?|\n).*/g);return u?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:s(function(c){var u=c.length,a=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-u),this.offset-=u;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),a.length-1&&(this.yylineno-=a.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:a?(a.length===y.length?this.yylloc.first_column:0)+y[y.length-a.length].length-a[0].length:this.yylloc.first_column-u},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-u]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(c){this.unput(this.match.slice(c))},"less"),pastInput:s(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var c=this.pastInput(),u=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs new file mode 100644 index 000000000..1dae0c162 --- /dev/null +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs @@ -0,0 +1,64 @@ +import{a as i,b as fu,c as mu,e as pu}from"./chunk-GTKDMUJJ.mjs";var Ya=fu((qo,zo)=>{"use strict";(function(t,e){typeof qo=="object"&&typeof zo<"u"?zo.exports=e():typeof define=="function"&&define.amd?define(e):(t=typeof globalThis<"u"?globalThis:t||self).dayjs=e()})(qo,function(){"use strict";var t=1e3,e=6e4,r=36e5,o="millisecond",n="second",s="minute",a="hour",l="day",c="week",h="month",u="quarter",d="year",f="date",g="Invalid Date",T=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,L=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,$={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:i(function(k){var x=["th","st","nd","rd"],y=k%100;return"["+k+(x[(y-20)%10]||x[y]||x[0])+"]"},"ordinal")},z=i(function(k,x,y){var F=String(k);return!F||F.length>=x?k:""+Array(x+1-F.length).join(y)+k},"m"),G={s:z,z:i(function(k){var x=-k.utcOffset(),y=Math.abs(x),F=Math.floor(y/60),S=y%60;return(x<=0?"+":"-")+z(F,2,"0")+":"+z(S,2,"0")},"z"),m:i(function k(x,y){if(x.date()1)return k(O[0])}else{var U=x.name;B[U]=x,S=U}return!F&&S&&(E=S),S||!F&&E},"t"),j=i(function(k,x){if(w(k))return k.clone();var y=typeof x=="object"?x:{};return y.date=k,y.args=arguments,new it(y)},"O"),W=G;W.l=X,W.i=w,W.w=function(k,x){return j(k,{locale:x.$L,utc:x.$u,x:x.$x,$offset:x.$offset})};var it=function(){function k(y){this.$L=X(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[P]=!0}i(k,"M");var x=k.prototype;return x.parse=function(y){this.$d=function(F){var S=F.date,N=F.utc;if(S===null)return new Date(NaN);if(W.u(S))return new Date;if(S instanceof Date)return new Date(S);if(typeof S=="string"&&!/Z$/i.test(S)){var O=S.match(T);if(O){var U=O[2]-1||0,rt=(O[7]||"0").substring(0,3);return N?new Date(Date.UTC(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,rt)):new Date(O[1],U,O[3]||1,O[4]||0,O[5]||0,O[6]||0,rt)}}return new Date(S)}(y),this.init()},x.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},x.$utils=function(){return W},x.isValid=function(){return this.$d.toString()!==g},x.isSame=function(y,F){var S=j(y);return this.startOf(F)<=S&&S<=this.endOf(F)},x.isAfter=function(y,F){return j(y){},"trace"),debug:i((...t)=>{},"debug"),info:i((...t)=>{},"info"),warn:i((...t)=>{},"warn"),error:i((...t)=>{},"error"),fatal:i((...t)=>{},"fatal")},Va=i(function(t="fatal"){let e=oe.fatal;typeof t=="string"?t.toLowerCase()in oe&&(e=oe[t]):typeof t=="number"&&(e=t),tt.trace=()=>{},tt.debug=()=>{},tt.info=()=>{},tt.warn=()=>{},tt.error=()=>{},tt.fatal=()=>{},e<=oe.fatal&&(tt.fatal=console.error?console.error.bind(console,Pt("FATAL"),"color: orange"):console.log.bind(console,"\x1B[35m",Pt("FATAL"))),e<=oe.error&&(tt.error=console.error?console.error.bind(console,Pt("ERROR"),"color: orange"):console.log.bind(console,"\x1B[31m",Pt("ERROR"))),e<=oe.warn&&(tt.warn=console.warn?console.warn.bind(console,Pt("WARN"),"color: orange"):console.log.bind(console,"\x1B[33m",Pt("WARN"))),e<=oe.info&&(tt.info=console.info?console.info.bind(console,Pt("INFO"),"color: lightblue"):console.log.bind(console,"\x1B[34m",Pt("INFO"))),e<=oe.debug&&(tt.debug=console.debug?console.debug.bind(console,Pt("DEBUG"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("DEBUG"))),e<=oe.trace&&(tt.trace=console.debug?console.debug.bind(console,Pt("TRACE"),"color: lightgreen"):console.log.bind(console,"\x1B[32m",Pt("TRACE")))},"setLogLevel"),Pt=i(t=>`%c${(0,Ga.default)().format("ss.SSS")} : ${t} : `,"format");var Xa=/^-{3}\s*[\n\r](.*?)[\n\r]-{3}\s*[\n\r]+/s,ja=/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,Za=/\s*%%.*\n/gm;var bi=class extends Error{static{i(this,"UnknownDiagramError")}constructor(e){super(e),this.name="UnknownDiagramError"}};var Ti={},cx=i(function(t,e){t=t.replace(Xa,"").replace(ja,"").replace(Za,` +`);for(let[r,{detector:o}]of Object.entries(Ti))if(o(t,e))return r;throw new bi(`No diagram type detected matching given configuration for text: ${t}`)},"detectType"),ux=i((...t)=>{for(let{id:e,detector:r,loader:o}of t)Po(e,r,o)},"registerLazyLoadedDiagrams"),Po=i((t,e,r)=>{Ti[t]&&tt.warn(`Detector with key ${t} already exists. Overwriting.`),Ti[t]={detector:e,loader:r},tt.debug(`Detector with key ${t} added${r?" with loader":""}`)},"addDetector"),fx=i(t=>Ti[t].loader,"getDiagramLoader");var $o=i((t,e,{depth:r=2,clobber:o=!1}={})=>{let n={depth:r,clobber:o};return Array.isArray(e)&&!Array.isArray(t)?(e.forEach(s=>$o(t,s,n)),t):Array.isArray(e)&&Array.isArray(t)?(e.forEach(s=>{t.includes(s)||t.push(s)}),t):t===void 0||r<=0?t!=null&&typeof t=="object"&&typeof e=="object"?Object.assign(t,e):e:(e!==void 0&&typeof t=="object"&&typeof e=="object"&&Object.keys(e).forEach(s=>{typeof e[s]=="object"&&(t[s]===void 0||typeof t[s]=="object")?(t[s]===void 0&&(t[s]=Array.isArray(e[s])?[]:{}),t[s]=$o(t[s],e[s],{depth:r-1,clobber:o})):(o||typeof t[s]!="object"&&typeof e[s]!="object")&&(t[s]=e[s])}),t)},"assignWithDepth"),Lt=$o;var ki={min:{r:0,g:0,b:0,s:0,l:0,a:0},max:{r:255,g:255,b:255,h:360,s:100,l:100,a:1},clamp:{r:i(t=>t>=255?255:t<0?0:t,"r"),g:i(t=>t>=255?255:t<0?0:t,"g"),b:i(t=>t>=255?255:t<0?0:t,"b"),h:i(t=>t%360,"h"),s:i(t=>t>=100?100:t<0?0:t,"s"),l:i(t=>t>=100?100:t<0?0:t,"l"),a:i(t=>t>=1?1:t<0?0:t,"a")},toLinear:i(t=>{let e=t/255;return t>.03928?Math.pow((e+.055)/1.055,2.4):e/12.92},"toLinear"),hue2rgb:i((t,e,r)=>(r<0&&(r+=1),r>1&&(r-=1),r<.16666666666666666?t+(e-t)*6*r:r<.5?e:r<.6666666666666666?t+(e-t)*(.6666666666666666-r)*6:t),"hue2rgb"),hsl2rgb:i(({h:t,s:e,l:r},o)=>{if(!e)return r*2.55;t/=360,e/=100,r/=100;let n=r<.5?r*(1+e):r+e-r*e,s=2*r-n;switch(o){case"r":return ki.hue2rgb(s,n,t+.3333333333333333)*255;case"g":return ki.hue2rgb(s,n,t)*255;case"b":return ki.hue2rgb(s,n,t-.3333333333333333)*255}},"hsl2rgb"),rgb2hsl:i(({r:t,g:e,b:r},o)=>{t/=255,e/=255,r/=255;let n=Math.max(t,e,r),s=Math.min(t,e,r),a=(n+s)/2;if(o==="l")return a*100;if(n===s)return 0;let l=n-s,c=a>.5?l/(2-n-s):l/(n+s);if(o==="s")return c*100;switch(n){case t:return((e-r)/l+(ee>r?Math.min(e,Math.max(r,t)):Math.min(r,Math.max(e,t)),"clamp"),round:i(t=>Math.round(t*1e10)/1e10,"round")},Qa=du;var gu={dec2hex:i(t=>{let e=Math.round(t).toString(16);return e.length>1?e:`0${e}`},"dec2hex")},Ja=gu;var xu={channel:Ka,lang:Qa,unit:Ja},q=xu;var ne={};for(let t=0;t<=255;t++)ne[t]=q.unit.dec2hex(t);var ut={ALL:0,RGB:1,HSL:2};var Wo=class{static{i(this,"Type")}constructor(){this.type=ut.ALL}get(){return this.type}set(e){if(this.type&&this.type!==e)throw new Error("Cannot change both RGB and HSL channels at the same time");this.type=e}reset(){this.type=ut.ALL}is(e){return this.type===e}},tl=Wo;var Ho=class{static{i(this,"Channels")}constructor(e,r){this.color=r,this.changed=!1,this.data=e,this.type=new tl}set(e,r){return this.color=r,this.changed=!1,this.data=e,this.type.type=ut.ALL,this}_ensureHSL(){let e=this.data,{h:r,s:o,l:n}=e;r===void 0&&(e.h=q.channel.rgb2hsl(e,"h")),o===void 0&&(e.s=q.channel.rgb2hsl(e,"s")),n===void 0&&(e.l=q.channel.rgb2hsl(e,"l"))}_ensureRGB(){let e=this.data,{r,g:o,b:n}=e;r===void 0&&(e.r=q.channel.hsl2rgb(e,"r")),o===void 0&&(e.g=q.channel.hsl2rgb(e,"g")),n===void 0&&(e.b=q.channel.hsl2rgb(e,"b"))}get r(){let e=this.data,r=e.r;return!this.type.is(ut.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"r"))}get g(){let e=this.data,r=e.g;return!this.type.is(ut.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"g"))}get b(){let e=this.data,r=e.b;return!this.type.is(ut.HSL)&&r!==void 0?r:(this._ensureHSL(),q.channel.hsl2rgb(e,"b"))}get h(){let e=this.data,r=e.h;return!this.type.is(ut.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"h"))}get s(){let e=this.data,r=e.s;return!this.type.is(ut.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"s"))}get l(){let e=this.data,r=e.l;return!this.type.is(ut.RGB)&&r!==void 0?r:(this._ensureRGB(),q.channel.rgb2hsl(e,"l"))}get a(){return this.data.a}set r(e){this.type.set(ut.RGB),this.changed=!0,this.data.r=e}set g(e){this.type.set(ut.RGB),this.changed=!0,this.data.g=e}set b(e){this.type.set(ut.RGB),this.changed=!0,this.data.b=e}set h(e){this.type.set(ut.HSL),this.changed=!0,this.data.h=e}set s(e){this.type.set(ut.HSL),this.changed=!0,this.data.s=e}set l(e){this.type.set(ut.HSL),this.changed=!0,this.data.l=e}set a(e){this.changed=!0,this.data.a=e}},el=Ho;var yu=new el({r:0,g:0,b:0,a:0},"transparent"),de=yu;var rl={re:/^#((?:[a-f0-9]{2}){2,4}|[a-f0-9]{3})$/i,parse:i(t=>{if(t.charCodeAt(0)!==35)return;let e=t.match(rl.re);if(!e)return;let r=e[1],o=parseInt(r,16),n=r.length,s=n%4===0,a=n>4,l=a?1:17,c=a?8:4,h=s?0:-1,u=a?255:15;return de.set({r:(o>>c*(h+3)&u)*l,g:(o>>c*(h+2)&u)*l,b:(o>>c*(h+1)&u)*l,a:s?(o&u)*l/255:1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`#${ne[Math.round(e)]}${ne[Math.round(r)]}${ne[Math.round(o)]}${ne[Math.round(n*255)]}`:`#${ne[Math.round(e)]}${ne[Math.round(r)]}${ne[Math.round(o)]}`},"stringify")},Ae=rl;var Si={re:/^hsla?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(?:deg|grad|rad|turn)?)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?%)(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e-?\d+)?(%)?))?\s*?\)$/i,hueRe:/^(.+?)(deg|grad|rad|turn)$/i,_hue2deg:i(t=>{let e=t.match(Si.hueRe);if(e){let[,r,o]=e;switch(o){case"grad":return q.channel.clamp.h(parseFloat(r)*.9);case"rad":return q.channel.clamp.h(parseFloat(r)*180/Math.PI);case"turn":return q.channel.clamp.h(parseFloat(r)*360)}}return q.channel.clamp.h(parseFloat(t))},"_hue2deg"),parse:i(t=>{let e=t.charCodeAt(0);if(e!==104&&e!==72)return;let r=t.match(Si.re);if(!r)return;let[,o,n,s,a,l]=r;return de.set({h:Si._hue2deg(o),s:q.channel.clamp.s(parseFloat(n)),l:q.channel.clamp.l(parseFloat(s)),a:a?q.channel.clamp.a(l?parseFloat(a)/100:parseFloat(a)):1},t)},"parse"),stringify:i(t=>{let{h:e,s:r,l:o,a:n}=t;return n<1?`hsla(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%, ${n})`:`hsl(${q.lang.round(e)}, ${q.lang.round(r)}%, ${q.lang.round(o)}%)`},"stringify")},Fr=Si;var vi={colors:{aliceblue:"#f0f8ff",antiquewhite:"#faebd7",aqua:"#00ffff",aquamarine:"#7fffd4",azure:"#f0ffff",beige:"#f5f5dc",bisque:"#ffe4c4",black:"#000000",blanchedalmond:"#ffebcd",blue:"#0000ff",blueviolet:"#8a2be2",brown:"#a52a2a",burlywood:"#deb887",cadetblue:"#5f9ea0",chartreuse:"#7fff00",chocolate:"#d2691e",coral:"#ff7f50",cornflowerblue:"#6495ed",cornsilk:"#fff8dc",crimson:"#dc143c",cyanaqua:"#00ffff",darkblue:"#00008b",darkcyan:"#008b8b",darkgoldenrod:"#b8860b",darkgray:"#a9a9a9",darkgreen:"#006400",darkgrey:"#a9a9a9",darkkhaki:"#bdb76b",darkmagenta:"#8b008b",darkolivegreen:"#556b2f",darkorange:"#ff8c00",darkorchid:"#9932cc",darkred:"#8b0000",darksalmon:"#e9967a",darkseagreen:"#8fbc8f",darkslateblue:"#483d8b",darkslategray:"#2f4f4f",darkslategrey:"#2f4f4f",darkturquoise:"#00ced1",darkviolet:"#9400d3",deeppink:"#ff1493",deepskyblue:"#00bfff",dimgray:"#696969",dimgrey:"#696969",dodgerblue:"#1e90ff",firebrick:"#b22222",floralwhite:"#fffaf0",forestgreen:"#228b22",fuchsia:"#ff00ff",gainsboro:"#dcdcdc",ghostwhite:"#f8f8ff",gold:"#ffd700",goldenrod:"#daa520",gray:"#808080",green:"#008000",greenyellow:"#adff2f",grey:"#808080",honeydew:"#f0fff0",hotpink:"#ff69b4",indianred:"#cd5c5c",indigo:"#4b0082",ivory:"#fffff0",khaki:"#f0e68c",lavender:"#e6e6fa",lavenderblush:"#fff0f5",lawngreen:"#7cfc00",lemonchiffon:"#fffacd",lightblue:"#add8e6",lightcoral:"#f08080",lightcyan:"#e0ffff",lightgoldenrodyellow:"#fafad2",lightgray:"#d3d3d3",lightgreen:"#90ee90",lightgrey:"#d3d3d3",lightpink:"#ffb6c1",lightsalmon:"#ffa07a",lightseagreen:"#20b2aa",lightskyblue:"#87cefa",lightslategray:"#778899",lightslategrey:"#778899",lightsteelblue:"#b0c4de",lightyellow:"#ffffe0",lime:"#00ff00",limegreen:"#32cd32",linen:"#faf0e6",magenta:"#ff00ff",maroon:"#800000",mediumaquamarine:"#66cdaa",mediumblue:"#0000cd",mediumorchid:"#ba55d3",mediumpurple:"#9370db",mediumseagreen:"#3cb371",mediumslateblue:"#7b68ee",mediumspringgreen:"#00fa9a",mediumturquoise:"#48d1cc",mediumvioletred:"#c71585",midnightblue:"#191970",mintcream:"#f5fffa",mistyrose:"#ffe4e1",moccasin:"#ffe4b5",navajowhite:"#ffdead",navy:"#000080",oldlace:"#fdf5e6",olive:"#808000",olivedrab:"#6b8e23",orange:"#ffa500",orangered:"#ff4500",orchid:"#da70d6",palegoldenrod:"#eee8aa",palegreen:"#98fb98",paleturquoise:"#afeeee",palevioletred:"#db7093",papayawhip:"#ffefd5",peachpuff:"#ffdab9",peru:"#cd853f",pink:"#ffc0cb",plum:"#dda0dd",powderblue:"#b0e0e6",purple:"#800080",rebeccapurple:"#663399",red:"#ff0000",rosybrown:"#bc8f8f",royalblue:"#4169e1",saddlebrown:"#8b4513",salmon:"#fa8072",sandybrown:"#f4a460",seagreen:"#2e8b57",seashell:"#fff5ee",sienna:"#a0522d",silver:"#c0c0c0",skyblue:"#87ceeb",slateblue:"#6a5acd",slategray:"#708090",slategrey:"#708090",snow:"#fffafa",springgreen:"#00ff7f",tan:"#d2b48c",teal:"#008080",thistle:"#d8bfd8",transparent:"#00000000",turquoise:"#40e0d0",violet:"#ee82ee",wheat:"#f5deb3",white:"#ffffff",whitesmoke:"#f5f5f5",yellow:"#ffff00",yellowgreen:"#9acd32"},parse:i(t=>{t=t.toLowerCase();let e=vi.colors[t];if(e)return Ae.parse(e)},"parse"),stringify:i(t=>{let e=Ae.stringify(t);for(let r in vi.colors)if(vi.colors[r]===e)return r},"stringify")},Uo=vi;var il={re:/^rgba?\(\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))\s*?(?:,|\s)\s*?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?))(?:\s*?(?:,|\/)\s*?\+?(-?(?:\d+(?:\.\d+)?|(?:\.\d+))(?:e\d+)?(%?)))?\s*?\)$/i,parse:i(t=>{let e=t.charCodeAt(0);if(e!==114&&e!==82)return;let r=t.match(il.re);if(!r)return;let[,o,n,s,a,l,c,h,u]=r;return de.set({r:q.channel.clamp.r(n?parseFloat(o)*2.55:parseFloat(o)),g:q.channel.clamp.g(a?parseFloat(s)*2.55:parseFloat(s)),b:q.channel.clamp.b(c?parseFloat(l)*2.55:parseFloat(l)),a:h?q.channel.clamp.a(u?parseFloat(h)/100:parseFloat(h)):1},t)},"parse"),stringify:i(t=>{let{r:e,g:r,b:o,a:n}=t;return n<1?`rgba(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)}, ${q.lang.round(n)})`:`rgb(${q.lang.round(e)}, ${q.lang.round(r)}, ${q.lang.round(o)})`},"stringify")},Mr=il;var Cu={format:{keyword:Uo,hex:Ae,rgb:Mr,rgba:Mr,hsl:Fr,hsla:Fr},parse:i(t=>{if(typeof t!="string")return t;let e=Ae.parse(t)||Mr.parse(t)||Fr.parse(t)||Uo.parse(t);if(e)return e;throw new Error(`Unsupported color format: "${t}"`)},"parse"),stringify:i(t=>!t.changed&&t.color?t.color:t.type.is(ut.HSL)||t.data.r===void 0?Fr.stringify(t):t.a<1||!Number.isInteger(t.r)||!Number.isInteger(t.g)||!Number.isInteger(t.b)?Mr.stringify(t):Ae.stringify(t),"stringify")},ft=Cu;var _u=i((t,e)=>{let r=ft.parse(t);for(let o in e)r[o]=q.channel.clamp[o](e[o]);return ft.stringify(r)},"change"),wi=_u;var bu=i((t,e,r=0,o=1)=>{if(typeof t!="number")return wi(t,{a:e});let n=de.set({r:q.channel.clamp.r(t),g:q.channel.clamp.g(e),b:q.channel.clamp.b(r),a:q.channel.clamp.a(o)});return ft.stringify(n)},"rgba"),se=bu;var Tu=i((t,e)=>q.lang.round(ft.parse(t)[e]),"channel"),ku=Tu;var Su=i(t=>{let{r:e,g:r,b:o}=ft.parse(t),n=.2126*q.channel.toLinear(e)+.7152*q.channel.toLinear(r)+.0722*q.channel.toLinear(o);return q.lang.round(n)},"luminance"),ol=Su;var vu=i(t=>ol(t)>=.5,"isLight"),nl=vu;var wu=i(t=>!nl(t),"isDark"),Wt=wu;var Bu=i((t,e,r)=>{let o=ft.parse(t),n=o[e],s=q.channel.clamp[e](n+r);return n!==s&&(o[e]=s),ft.stringify(o)},"adjustChannel"),Bi=Bu;var Fu=i((t,e)=>Bi(t,"l",e),"lighten"),A=Fu;var Mu=i((t,e)=>Bi(t,"l",-e),"darken"),R=Mu;var Lu=i((t,e)=>{let r=ft.parse(t),o={};for(let n in e)e[n]&&(o[n]=r[n]+e[n]);return wi(t,o)},"adjust"),p=Lu;var Au=i((t,e,r=50)=>{let{r:o,g:n,b:s,a}=ft.parse(t),{r:l,g:c,b:h,a:u}=ft.parse(e),d=r/100,f=d*2-1,g=a-u,L=((f*g===-1?f:(f+g)/(1+f*g))+1)/2,$=1-L,z=o*L+l*$,G=n*L+c*$,E=s*L+h*$,B=a*d+u*(1-d);return se(z,G,E,B)},"mix"),sl=Au;var Eu=i((t,e=100)=>{let r=ft.parse(t);return r.r=255-r.r,r.g=255-r.g,r.b=255-r.b,sl(r,t,e)},"invert"),b=Eu;var ge="#ffffff",xe="#f2f2f2";var ct=i((t,e)=>e?p(t,{s:-40,l:10}):p(t,{s:-40,l:-10}),"mkBorder");var Yo=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#fff4dd",this.noteBkgColor="#fff5ad",this.noteTextColor="#333",this.THEME_COLOR_LIMIT=12,this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px"}updateColors(){if(this.primaryTextColor=this.primaryTextColor||(this.darkMode?"#eee":"#333"),this.secondaryColor=this.secondaryColor||p(this.primaryColor,{h:-120}),this.tertiaryColor=this.tertiaryColor||p(this.primaryColor,{h:180,l:5}),this.primaryBorderColor=this.primaryBorderColor||ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=this.secondaryBorderColor||ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=this.tertiaryBorderColor||ct(this.tertiaryColor,this.darkMode),this.noteBorderColor=this.noteBorderColor||ct(this.noteBkgColor,this.darkMode),this.noteBkgColor=this.noteBkgColor||"#fff5ad",this.noteTextColor=this.noteTextColor||"#333",this.secondaryTextColor=this.secondaryTextColor||b(this.secondaryColor),this.tertiaryTextColor=this.tertiaryTextColor||b(this.tertiaryColor),this.lineColor=this.lineColor||b(this.background),this.arrowheadColor=this.arrowheadColor||b(this.background),this.textColor=this.textColor||this.primaryTextColor,this.border2=this.border2||this.tertiaryBorderColor,this.nodeBkg=this.nodeBkg||this.primaryColor,this.mainBkg=this.mainBkg||this.primaryColor,this.nodeBorder=this.nodeBorder||this.primaryBorderColor,this.clusterBkg=this.clusterBkg||this.tertiaryColor,this.clusterBorder=this.clusterBorder||this.tertiaryBorderColor,this.defaultLinkColor=this.defaultLinkColor||this.lineColor,this.titleColor=this.titleColor||this.tertiaryTextColor,this.edgeLabelBackground=this.edgeLabelBackground||(this.darkMode?R(this.secondaryColor,30):this.secondaryColor),this.nodeTextColor=this.nodeTextColor||this.primaryTextColor,this.actorBorder=this.actorBorder||this.primaryBorderColor,this.actorBkg=this.actorBkg||this.mainBkg,this.actorTextColor=this.actorTextColor||this.primaryTextColor,this.actorLineColor=this.actorLineColor||this.actorBorder,this.labelBoxBkgColor=this.labelBoxBkgColor||this.actorBkg,this.signalColor=this.signalColor||this.textColor,this.signalTextColor=this.signalTextColor||this.textColor,this.labelBoxBorderColor=this.labelBoxBorderColor||this.actorBorder,this.labelTextColor=this.labelTextColor||this.actorTextColor,this.loopTextColor=this.loopTextColor||this.actorTextColor,this.activationBorderColor=this.activationBorderColor||R(this.secondaryColor,10),this.activationBkgColor=this.activationBkgColor||this.secondaryColor,this.sequenceNumberColor=this.sequenceNumberColor||b(this.lineColor),this.sectionBkgColor=this.sectionBkgColor||this.tertiaryColor,this.altSectionBkgColor=this.altSectionBkgColor||"white",this.sectionBkgColor=this.sectionBkgColor||this.secondaryColor,this.sectionBkgColor2=this.sectionBkgColor2||this.primaryColor,this.excludeBkgColor=this.excludeBkgColor||"#eeeeee",this.taskBorderColor=this.taskBorderColor||this.primaryBorderColor,this.taskBkgColor=this.taskBkgColor||this.primaryColor,this.activeTaskBorderColor=this.activeTaskBorderColor||this.primaryColor,this.activeTaskBkgColor=this.activeTaskBkgColor||A(this.primaryColor,23),this.gridColor=this.gridColor||"lightgrey",this.doneTaskBkgColor=this.doneTaskBkgColor||"lightgrey",this.doneTaskBorderColor=this.doneTaskBorderColor||"grey",this.critBorderColor=this.critBorderColor||"#ff8888",this.critBkgColor=this.critBkgColor||"red",this.todayLineColor=this.todayLineColor||"red",this.taskTextColor=this.taskTextColor||this.textColor,this.taskTextOutsideColor=this.taskTextOutsideColor||this.textColor,this.taskTextLightColor=this.taskTextLightColor||this.textColor,this.taskTextColor=this.taskTextColor||this.primaryTextColor,this.taskTextDarkColor=this.taskTextDarkColor||this.textColor,this.taskTextClickableColor=this.taskTextClickableColor||"#003163",this.personBorder=this.personBorder||this.primaryBorderColor,this.personBkg=this.personBkg||this.mainBkg,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||this.tertiaryColor,this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.nodeBorder,this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.transitionColor=this.transitionColor||this.lineColor,this.specialStateColor=this.lineColor,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210,l:150}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.darkMode)for(let r=0;r{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},al=i(t=>{let e=new Yo;return e.calculate(t),e},"getThemeVariables");var Go=class{static{i(this,"Theme")}constructor(){this.background="#333",this.primaryColor="#1f2020",this.secondaryColor=A(this.primaryColor,16),this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=b(this.background),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#1f2020",this.secondBkg="calculated",this.mainContrastColor="lightgrey",this.darkTextColor=A(b("#323D47"),10),this.lineColor="calculated",this.border1="#ccc",this.border2=se(255,255,255,.25),this.arrowheadColor="calculated",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="#181818",this.textColor="#ccc",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#F9FFFE",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="calculated",this.activationBkgColor="calculated",this.sequenceNumberColor="black",this.sectionBkgColor=R("#EAE8D9",30),this.altSectionBkgColor="calculated",this.sectionBkgColor2="#EAE8D9",this.excludeBkgColor=R(this.sectionBkgColor,10),this.taskBorderColor=se(255,255,255,70),this.taskBkgColor="calculated",this.taskTextColor="calculated",this.taskTextLightColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor=se(255,255,255,50),this.activeTaskBkgColor="#81B1DB",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="grey",this.critBorderColor="#E83737",this.critBkgColor="#E83737",this.taskTextDarkColor="calculated",this.todayLineColor="#DB5757",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="calculated",this.errorBkgColor="#a44141",this.errorTextColor="#ddd"}updateColors(){this.secondBkg=A(this.mainBkg,16),this.lineColor=this.mainContrastColor,this.arrowheadColor=this.mainContrastColor,this.nodeBkg=this.mainBkg,this.nodeBorder=this.border1,this.clusterBkg=this.secondBkg,this.clusterBorder=this.border2,this.defaultLinkColor=this.lineColor,this.edgeLabelBackground=A(this.labelBackground,25),this.actorBorder=this.border1,this.actorBkg=this.mainBkg,this.actorTextColor=this.mainContrastColor,this.actorLineColor=this.actorBorder,this.signalColor=this.mainContrastColor,this.signalTextColor=this.mainContrastColor,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.mainContrastColor,this.loopTextColor=this.mainContrastColor,this.noteBorderColor=this.secondaryBorderColor,this.noteBkgColor=this.secondBkg,this.noteTextColor=this.secondaryTextColor,this.activationBorderColor=this.border1,this.activationBkgColor=this.secondBkg,this.altSectionBkgColor=this.background,this.taskBkgColor=A(this.mainBkg,23),this.taskTextColor=this.darkTextColor,this.taskTextLightColor=this.mainContrastColor,this.taskTextOutsideColor=this.taskTextLightColor,this.gridColor=this.mainContrastColor,this.doneTaskBkgColor=this.mainContrastColor,this.taskTextDarkColor=this.darkTextColor,this.archEdgeColor=this.lineColor,this.archEdgeArrowColor=this.lineColor,this.transitionColor=this.transitionColor||this.lineColor,this.transitionLabelColor=this.transitionLabelColor||this.textColor,this.stateLabelColor=this.stateLabelColor||this.stateBkg||this.primaryTextColor,this.stateBkg=this.stateBkg||this.mainBkg,this.labelBackgroundColor=this.labelBackgroundColor||this.stateBkg,this.compositeBackground=this.compositeBackground||this.background||this.tertiaryColor,this.altBackground=this.altBackground||"#555",this.compositeTitleBackground=this.compositeTitleBackground||this.mainBkg,this.compositeBorder=this.compositeBorder||this.nodeBorder,this.innerEndBackground=this.primaryBorderColor,this.specialStateColor="#f4f4f4",this.errorBkgColor=this.errorBkgColor||this.tertiaryColor,this.errorTextColor=this.errorTextColor||this.tertiaryTextColor,this.fillType0=this.primaryColor,this.fillType1=this.secondaryColor,this.fillType2=p(this.primaryColor,{h:64}),this.fillType3=p(this.secondaryColor,{h:64}),this.fillType4=p(this.primaryColor,{h:-64}),this.fillType5=p(this.secondaryColor,{h:-64}),this.fillType6=p(this.primaryColor,{h:128}),this.fillType7=p(this.secondaryColor,{h:128}),this.cScale1=this.cScale1||"#0b0000",this.cScale2=this.cScale2||"#4d1037",this.cScale3=this.cScale3||"#3f5258",this.cScale4=this.cScale4||"#4f2f1b",this.cScale5=this.cScale5||"#6e0a0a",this.cScale6=this.cScale6||"#3b0048",this.cScale7=this.cScale7||"#995a01",this.cScale8=this.cScale8||"#154706",this.cScale9=this.cScale9||"#161722",this.cScale10=this.cScale10||"#00296f",this.cScale11=this.cScale11||"#01629c",this.cScale12=this.cScale12||"#010029",this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330});for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},ll=i(t=>{let e=new Go;return e.calculate(t),e},"getThemeVariables");var Vo=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#ECECFF",this.secondaryColor=p(this.primaryColor,{h:120}),this.secondaryColor="#ffffde",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.background="white",this.mainBkg="#ECECFF",this.secondBkg="#ffffde",this.lineColor="#333333",this.border1="#9370DB",this.border2="#aaaa33",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.labelBackground="rgba(232,232,232, 0.8)",this.textColor="#333",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="calculated",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="calculated",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="calculated",this.taskTextColor=this.taskTextLightColor,this.taskTextDarkColor="calculated",this.taskTextOutsideColor=this.taskTextDarkColor,this.taskTextClickableColor="calculated",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBorderColor="calculated",this.critBkgColor="calculated",this.todayLineColor="calculated",this.sectionBkgColor=se(102,102,255,.49),this.altSectionBkgColor="white",this.sectionBkgColor2="#fff400",this.taskBorderColor="#534fbc",this.taskBkgColor="#8a90dd",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="#534fbc",this.activeTaskBkgColor="#bfc7ff",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222",this.updateColors()}updateColors(){this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},hl=i(t=>{let e=new Vo;return e.calculate(t),e},"getThemeVariables");var Xo=class{static{i(this,"Theme")}constructor(){this.background="#f4f4f4",this.primaryColor="#cde498",this.secondaryColor="#cdffb2",this.background="white",this.mainBkg="#cde498",this.secondBkg="#cdffb2",this.lineColor="green",this.border1="#13540c",this.border2="#6eaa49",this.arrowheadColor="green",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.tertiaryColor=A("#cde498",10),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.primaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="#333",this.edgeLabelBackground="#e8e8e8",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="black",this.actorLineColor="calculated",this.signalColor="#333",this.signalTextColor="#333",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="#326932",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="#fff5ad",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="#6eaa49",this.altSectionBkgColor="white",this.sectionBkgColor2="#6eaa49",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="#487e3a",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="black",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="lightgrey",this.doneTaskBkgColor="lightgrey",this.doneTaskBorderColor="grey",this.critBorderColor="#ff8888",this.critBkgColor="red",this.todayLineColor="red",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.actorBorder=R(this.mainBkg,20),this.actorBkg=this.mainBkg,this.labelBoxBkgColor=this.actorBkg,this.labelTextColor=this.actorTextColor,this.loopTextColor=this.actorTextColor,this.noteBorderColor=this.border2,this.noteTextColor=this.actorTextColor,this.actorLineColor=this.actorBorder,this.cScale0=this.cScale0||this.primaryColor,this.cScale1=this.cScale1||this.secondaryColor,this.cScale2=this.cScale2||this.tertiaryColor,this.cScale3=this.cScale3||p(this.primaryColor,{h:30}),this.cScale4=this.cScale4||p(this.primaryColor,{h:60}),this.cScale5=this.cScale5||p(this.primaryColor,{h:90}),this.cScale6=this.cScale6||p(this.primaryColor,{h:120}),this.cScale7=this.cScale7||p(this.primaryColor,{h:150}),this.cScale8=this.cScale8||p(this.primaryColor,{h:210}),this.cScale9=this.cScale9||p(this.primaryColor,{h:270}),this.cScale10=this.cScale10||p(this.primaryColor,{h:300}),this.cScale11=this.cScale11||p(this.primaryColor,{h:330}),this.cScalePeer1=this.cScalePeer1||R(this.secondaryColor,45),this.cScalePeer2=this.cScalePeer2||R(this.tertiaryColor,40);for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},cl=i(t=>{let e=new Xo;return e.calculate(t),e},"getThemeVariables");var jo=class{static{i(this,"Theme")}constructor(){this.primaryColor="#eee",this.contrast="#707070",this.secondaryColor=A(this.contrast,55),this.background="#ffffff",this.tertiaryColor=p(this.primaryColor,{h:-160}),this.primaryBorderColor=ct(this.primaryColor,this.darkMode),this.secondaryBorderColor=ct(this.secondaryColor,this.darkMode),this.tertiaryBorderColor=ct(this.tertiaryColor,this.darkMode),this.primaryTextColor=b(this.primaryColor),this.secondaryTextColor=b(this.secondaryColor),this.tertiaryTextColor=b(this.tertiaryColor),this.lineColor=b(this.background),this.textColor=b(this.background),this.mainBkg="#eee",this.secondBkg="calculated",this.lineColor="#666",this.border1="#999",this.border2="calculated",this.note="#ffa",this.text="#333",this.critical="#d42",this.done="#bbb",this.arrowheadColor="#333333",this.fontFamily='"trebuchet ms", verdana, arial, sans-serif',this.fontSize="16px",this.THEME_COLOR_LIMIT=12,this.nodeBkg="calculated",this.nodeBorder="calculated",this.clusterBkg="calculated",this.clusterBorder="calculated",this.defaultLinkColor="calculated",this.titleColor="calculated",this.edgeLabelBackground="white",this.actorBorder="calculated",this.actorBkg="calculated",this.actorTextColor="calculated",this.actorLineColor=this.actorBorder,this.signalColor="calculated",this.signalTextColor="calculated",this.labelBoxBkgColor="calculated",this.labelBoxBorderColor="calculated",this.labelTextColor="calculated",this.loopTextColor="calculated",this.noteBorderColor="calculated",this.noteBkgColor="calculated",this.noteTextColor="calculated",this.activationBorderColor="#666",this.activationBkgColor="#f4f4f4",this.sequenceNumberColor="white",this.sectionBkgColor="calculated",this.altSectionBkgColor="white",this.sectionBkgColor2="calculated",this.excludeBkgColor="#eeeeee",this.taskBorderColor="calculated",this.taskBkgColor="calculated",this.taskTextLightColor="white",this.taskTextColor="calculated",this.taskTextDarkColor="calculated",this.taskTextOutsideColor="calculated",this.taskTextClickableColor="#003163",this.activeTaskBorderColor="calculated",this.activeTaskBkgColor="calculated",this.gridColor="calculated",this.doneTaskBkgColor="calculated",this.doneTaskBorderColor="calculated",this.critBkgColor="calculated",this.critBorderColor="calculated",this.todayLineColor="calculated",this.personBorder=this.primaryBorderColor,this.personBkg=this.mainBkg,this.archEdgeColor="calculated",this.archEdgeArrowColor="calculated",this.archEdgeWidth="3",this.archGroupBorderColor=this.primaryBorderColor,this.archGroupBorderWidth="2px",this.labelColor="black",this.errorBkgColor="#552222",this.errorTextColor="#552222"}updateColors(){this.secondBkg=A(this.contrast,55),this.border2=this.contrast,this.actorBorder=A(this.border1,23),this.actorBkg=this.mainBkg,this.actorTextColor=this.text,this.actorLineColor=this.actorBorder,this.signalColor=this.text,this.signalTextColor=this.text,this.labelBoxBkgColor=this.actorBkg,this.labelBoxBorderColor=this.actorBorder,this.labelTextColor=this.text,this.loopTextColor=this.text,this.noteBorderColor="#999",this.noteBkgColor="#666",this.noteTextColor="#fff",this.cScale0=this.cScale0||"#555",this.cScale1=this.cScale1||"#F4F4F4",this.cScale2=this.cScale2||"#555",this.cScale3=this.cScale3||"#BBB",this.cScale4=this.cScale4||"#777",this.cScale5=this.cScale5||"#999",this.cScale6=this.cScale6||"#DDD",this.cScale7=this.cScale7||"#FFF",this.cScale8=this.cScale8||"#DDD",this.cScale9=this.cScale9||"#BBB",this.cScale10=this.cScale10||"#999",this.cScale11=this.cScale11||"#777";for(let e=0;e{this[o]=e[o]}),this.updateColors(),r.forEach(o=>{this[o]=e[o]})}},ul=i(t=>{let e=new jo;return e.calculate(t),e},"getThemeVariables");var ye={base:{getThemeVariables:al},dark:{getThemeVariables:ll},default:{getThemeVariables:hl},forest:{getThemeVariables:cl},neutral:{getThemeVariables:ul}};var ae={flowchart:{useMaxWidth:!0,titleTopMargin:25,subGraphTitleMargin:{top:0,bottom:0},diagramPadding:8,htmlLabels:!0,nodeSpacing:50,rankSpacing:50,curve:"basis",padding:15,defaultRenderer:"dagre-wrapper",wrappingWidth:200},sequence:{useMaxWidth:!0,hideUnusedParticipants:!1,activationWidth:10,diagramMarginX:50,diagramMarginY:10,actorMargin:50,width:150,height:65,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",mirrorActors:!0,forceMenus:!1,bottomMarginAdj:1,rightAngles:!1,showSequenceNumbers:!1,actorFontSize:14,actorFontFamily:'"Open Sans", sans-serif',actorFontWeight:400,noteFontSize:14,noteFontFamily:'"trebuchet ms", verdana, arial, sans-serif',noteFontWeight:400,noteAlign:"center",messageFontSize:16,messageFontFamily:'"trebuchet ms", verdana, arial, sans-serif',messageFontWeight:400,wrap:!1,wrapPadding:10,labelBoxWidth:50,labelBoxHeight:20},gantt:{useMaxWidth:!0,titleTopMargin:25,barHeight:20,barGap:4,topPadding:50,rightPadding:75,leftPadding:75,gridLineStartPadding:35,fontSize:11,sectionFontSize:11,numberSectionStyles:4,axisFormat:"%Y-%m-%d",topAxis:!1,displayMode:"",weekday:"sunday"},journey:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"]},class:{useMaxWidth:!0,titleTopMargin:25,arrowMarkerAbsolute:!1,dividerMargin:10,padding:5,textHeight:10,defaultRenderer:"dagre-wrapper",htmlLabels:!1,hideEmptyMembersBox:!1},state:{useMaxWidth:!0,titleTopMargin:25,dividerMargin:10,sizeUnit:5,padding:8,textHeight:10,titleShift:-15,noteMargin:10,forkWidth:70,forkHeight:7,miniPadding:2,fontSizeFactor:5.02,fontSize:24,labelHeight:16,edgeLengthFactor:"20",compositTitleSize:35,radius:5,defaultRenderer:"dagre-wrapper"},er:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:20,layoutDirection:"TB",minEntityWidth:100,minEntityHeight:75,entityPadding:15,stroke:"gray",fill:"honeydew",fontSize:12},pie:{useMaxWidth:!0,textPosition:.75},quadrantChart:{useMaxWidth:!0,chartWidth:500,chartHeight:500,titleFontSize:20,titlePadding:10,quadrantPadding:5,xAxisLabelPadding:5,yAxisLabelPadding:5,xAxisLabelFontSize:16,yAxisLabelFontSize:16,quadrantLabelFontSize:16,quadrantTextTopPadding:5,pointTextPadding:5,pointLabelFontSize:12,pointRadius:5,xAxisPosition:"top",yAxisPosition:"left",quadrantInternalBorderStrokeWidth:1,quadrantExternalBorderStrokeWidth:2},xyChart:{useMaxWidth:!0,width:700,height:500,titleFontSize:20,titlePadding:10,showTitle:!0,xAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},yAxis:{$ref:"#/$defs/XYChartAxisConfig",showLabel:!0,labelFontSize:14,labelPadding:5,showTitle:!0,titleFontSize:16,titlePadding:5,showTick:!0,tickLength:5,tickWidth:2,showAxisLine:!0,axisLineWidth:2},chartOrientation:"vertical",plotReservedSpacePercent:50},requirement:{useMaxWidth:!0,rect_fill:"#f9f9f9",text_color:"#333",rect_border_size:"0.5px",rect_border_color:"#bbb",rect_min_width:200,rect_min_height:200,fontSize:14,rect_padding:10,line_height:20},mindmap:{useMaxWidth:!0,padding:10,maxNodeWidth:200},kanban:{useMaxWidth:!0,padding:8,sectionWidth:200,ticketBaseUrl:""},timeline:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,leftMargin:150,width:150,height:50,boxMargin:10,boxTextMargin:5,noteMargin:10,messageMargin:35,messageAlign:"center",bottomMarginAdj:1,rightAngles:!1,taskFontSize:14,taskFontFamily:'"Open Sans", sans-serif',taskMargin:50,activationWidth:10,textPlacement:"fo",actorColours:["#8FBC8F","#7CFC00","#00FFFF","#20B2AA","#B0E0E6","#FFFFE0"],sectionFills:["#191970","#8B008B","#4B0082","#2F4F4F","#800000","#8B4513","#00008B"],sectionColours:["#fff"],disableMulticolor:!1},gitGraph:{useMaxWidth:!0,titleTopMargin:25,diagramPadding:8,nodeLabel:{width:75,height:100,x:-25,y:0},mainBranchName:"main",mainBranchOrder:0,showCommitLabel:!0,showBranches:!0,rotateCommitLabel:!0,parallelCommits:!1,arrowMarkerAbsolute:!1},c4:{useMaxWidth:!0,diagramMarginX:50,diagramMarginY:10,c4ShapeMargin:50,c4ShapePadding:20,width:216,height:60,boxMargin:10,c4ShapeInRow:4,nextLinePaddingX:0,c4BoundaryInRow:2,personFontSize:14,personFontFamily:'"Open Sans", sans-serif',personFontWeight:"normal",external_personFontSize:14,external_personFontFamily:'"Open Sans", sans-serif',external_personFontWeight:"normal",systemFontSize:14,systemFontFamily:'"Open Sans", sans-serif',systemFontWeight:"normal",external_systemFontSize:14,external_systemFontFamily:'"Open Sans", sans-serif',external_systemFontWeight:"normal",system_dbFontSize:14,system_dbFontFamily:'"Open Sans", sans-serif',system_dbFontWeight:"normal",external_system_dbFontSize:14,external_system_dbFontFamily:'"Open Sans", sans-serif',external_system_dbFontWeight:"normal",system_queueFontSize:14,system_queueFontFamily:'"Open Sans", sans-serif',system_queueFontWeight:"normal",external_system_queueFontSize:14,external_system_queueFontFamily:'"Open Sans", sans-serif',external_system_queueFontWeight:"normal",boundaryFontSize:14,boundaryFontFamily:'"Open Sans", sans-serif',boundaryFontWeight:"normal",messageFontSize:12,messageFontFamily:'"Open Sans", sans-serif',messageFontWeight:"normal",containerFontSize:14,containerFontFamily:'"Open Sans", sans-serif',containerFontWeight:"normal",external_containerFontSize:14,external_containerFontFamily:'"Open Sans", sans-serif',external_containerFontWeight:"normal",container_dbFontSize:14,container_dbFontFamily:'"Open Sans", sans-serif',container_dbFontWeight:"normal",external_container_dbFontSize:14,external_container_dbFontFamily:'"Open Sans", sans-serif',external_container_dbFontWeight:"normal",container_queueFontSize:14,container_queueFontFamily:'"Open Sans", sans-serif',container_queueFontWeight:"normal",external_container_queueFontSize:14,external_container_queueFontFamily:'"Open Sans", sans-serif',external_container_queueFontWeight:"normal",componentFontSize:14,componentFontFamily:'"Open Sans", sans-serif',componentFontWeight:"normal",external_componentFontSize:14,external_componentFontFamily:'"Open Sans", sans-serif',external_componentFontWeight:"normal",component_dbFontSize:14,component_dbFontFamily:'"Open Sans", sans-serif',component_dbFontWeight:"normal",external_component_dbFontSize:14,external_component_dbFontFamily:'"Open Sans", sans-serif',external_component_dbFontWeight:"normal",component_queueFontSize:14,component_queueFontFamily:'"Open Sans", sans-serif',component_queueFontWeight:"normal",external_component_queueFontSize:14,external_component_queueFontFamily:'"Open Sans", sans-serif',external_component_queueFontWeight:"normal",wrap:!0,wrapPadding:10,person_bg_color:"#08427B",person_border_color:"#073B6F",external_person_bg_color:"#686868",external_person_border_color:"#8A8A8A",system_bg_color:"#1168BD",system_border_color:"#3C7FC0",system_db_bg_color:"#1168BD",system_db_border_color:"#3C7FC0",system_queue_bg_color:"#1168BD",system_queue_border_color:"#3C7FC0",external_system_bg_color:"#999999",external_system_border_color:"#8A8A8A",external_system_db_bg_color:"#999999",external_system_db_border_color:"#8A8A8A",external_system_queue_bg_color:"#999999",external_system_queue_border_color:"#8A8A8A",container_bg_color:"#438DD5",container_border_color:"#3C7FC0",container_db_bg_color:"#438DD5",container_db_border_color:"#3C7FC0",container_queue_bg_color:"#438DD5",container_queue_border_color:"#3C7FC0",external_container_bg_color:"#B3B3B3",external_container_border_color:"#A6A6A6",external_container_db_bg_color:"#B3B3B3",external_container_db_border_color:"#A6A6A6",external_container_queue_bg_color:"#B3B3B3",external_container_queue_border_color:"#A6A6A6",component_bg_color:"#85BBF0",component_border_color:"#78A8D8",component_db_bg_color:"#85BBF0",component_db_border_color:"#78A8D8",component_queue_bg_color:"#85BBF0",component_queue_border_color:"#78A8D8",external_component_bg_color:"#CCCCCC",external_component_border_color:"#BFBFBF",external_component_db_bg_color:"#CCCCCC",external_component_db_border_color:"#BFBFBF",external_component_queue_bg_color:"#CCCCCC",external_component_queue_border_color:"#BFBFBF"},sankey:{useMaxWidth:!0,width:600,height:400,linkColor:"gradient",nodeAlignment:"justify",showValues:!0,prefix:"",suffix:""},block:{useMaxWidth:!0,padding:8},packet:{useMaxWidth:!0,rowHeight:32,bitWidth:32,bitsPerRow:32,showBits:!0,paddingX:5,paddingY:5},architecture:{useMaxWidth:!0,padding:40,iconSize:80,fontSize:16},theme:"default",look:"classic",handDrawnSeed:0,layout:"dagre",maxTextSize:5e4,maxEdges:500,darkMode:!1,fontFamily:'"trebuchet ms", verdana, arial, sans-serif;',logLevel:5,securityLevel:"strict",startOnLoad:!0,arrowMarkerAbsolute:!1,secure:["secure","securityLevel","startOnLoad","maxTextSize","suppressErrorRendering","maxEdges"],legacyMathML:!1,forceLegacyMathML:!1,deterministicIds:!1,fontSize:16,markdownAutoWrap:!0,suppressErrorRendering:!1};var fl={...ae,deterministicIDSeed:void 0,elk:{mergeEdges:!1,nodePlacementStrategy:"BRANDES_KOEPF"},themeCSS:void 0,themeVariables:ye.default.getThemeVariables(),sequence:{...ae.sequence,messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont"),noteFont:i(function(){return{fontFamily:this.noteFontFamily,fontSize:this.noteFontSize,fontWeight:this.noteFontWeight}},"noteFont"),actorFont:i(function(){return{fontFamily:this.actorFontFamily,fontSize:this.actorFontSize,fontWeight:this.actorFontWeight}},"actorFont")},class:{hideEmptyMembersBox:!1},gantt:{...ae.gantt,tickInterval:void 0,useWidth:void 0},c4:{...ae.c4,useWidth:void 0,personFont:i(function(){return{fontFamily:this.personFontFamily,fontSize:this.personFontSize,fontWeight:this.personFontWeight}},"personFont"),external_personFont:i(function(){return{fontFamily:this.external_personFontFamily,fontSize:this.external_personFontSize,fontWeight:this.external_personFontWeight}},"external_personFont"),systemFont:i(function(){return{fontFamily:this.systemFontFamily,fontSize:this.systemFontSize,fontWeight:this.systemFontWeight}},"systemFont"),external_systemFont:i(function(){return{fontFamily:this.external_systemFontFamily,fontSize:this.external_systemFontSize,fontWeight:this.external_systemFontWeight}},"external_systemFont"),system_dbFont:i(function(){return{fontFamily:this.system_dbFontFamily,fontSize:this.system_dbFontSize,fontWeight:this.system_dbFontWeight}},"system_dbFont"),external_system_dbFont:i(function(){return{fontFamily:this.external_system_dbFontFamily,fontSize:this.external_system_dbFontSize,fontWeight:this.external_system_dbFontWeight}},"external_system_dbFont"),system_queueFont:i(function(){return{fontFamily:this.system_queueFontFamily,fontSize:this.system_queueFontSize,fontWeight:this.system_queueFontWeight}},"system_queueFont"),external_system_queueFont:i(function(){return{fontFamily:this.external_system_queueFontFamily,fontSize:this.external_system_queueFontSize,fontWeight:this.external_system_queueFontWeight}},"external_system_queueFont"),containerFont:i(function(){return{fontFamily:this.containerFontFamily,fontSize:this.containerFontSize,fontWeight:this.containerFontWeight}},"containerFont"),external_containerFont:i(function(){return{fontFamily:this.external_containerFontFamily,fontSize:this.external_containerFontSize,fontWeight:this.external_containerFontWeight}},"external_containerFont"),container_dbFont:i(function(){return{fontFamily:this.container_dbFontFamily,fontSize:this.container_dbFontSize,fontWeight:this.container_dbFontWeight}},"container_dbFont"),external_container_dbFont:i(function(){return{fontFamily:this.external_container_dbFontFamily,fontSize:this.external_container_dbFontSize,fontWeight:this.external_container_dbFontWeight}},"external_container_dbFont"),container_queueFont:i(function(){return{fontFamily:this.container_queueFontFamily,fontSize:this.container_queueFontSize,fontWeight:this.container_queueFontWeight}},"container_queueFont"),external_container_queueFont:i(function(){return{fontFamily:this.external_container_queueFontFamily,fontSize:this.external_container_queueFontSize,fontWeight:this.external_container_queueFontWeight}},"external_container_queueFont"),componentFont:i(function(){return{fontFamily:this.componentFontFamily,fontSize:this.componentFontSize,fontWeight:this.componentFontWeight}},"componentFont"),external_componentFont:i(function(){return{fontFamily:this.external_componentFontFamily,fontSize:this.external_componentFontSize,fontWeight:this.external_componentFontWeight}},"external_componentFont"),component_dbFont:i(function(){return{fontFamily:this.component_dbFontFamily,fontSize:this.component_dbFontSize,fontWeight:this.component_dbFontWeight}},"component_dbFont"),external_component_dbFont:i(function(){return{fontFamily:this.external_component_dbFontFamily,fontSize:this.external_component_dbFontSize,fontWeight:this.external_component_dbFontWeight}},"external_component_dbFont"),component_queueFont:i(function(){return{fontFamily:this.component_queueFontFamily,fontSize:this.component_queueFontSize,fontWeight:this.component_queueFontWeight}},"component_queueFont"),external_component_queueFont:i(function(){return{fontFamily:this.external_component_queueFontFamily,fontSize:this.external_component_queueFontSize,fontWeight:this.external_component_queueFontWeight}},"external_component_queueFont"),boundaryFont:i(function(){return{fontFamily:this.boundaryFontFamily,fontSize:this.boundaryFontSize,fontWeight:this.boundaryFontWeight}},"boundaryFont"),messageFont:i(function(){return{fontFamily:this.messageFontFamily,fontSize:this.messageFontSize,fontWeight:this.messageFontWeight}},"messageFont")},pie:{...ae.pie,useWidth:984},xyChart:{...ae.xyChart,useWidth:void 0},requirement:{...ae.requirement,useWidth:void 0},packet:{...ae.packet}},ml=i((t,e="")=>Object.keys(t).reduce((r,o)=>Array.isArray(t[o])?r:typeof t[o]=="object"&&t[o]!==null?[...r,e+o,...ml(t[o],"")]:[...r,e+o],[]),"keyify"),pl=new Set(ml(fl,"")),dl=fl;var Fi=i(t=>{if(tt.debug("sanitizeDirective called with",t),!(typeof t!="object"||t==null)){if(Array.isArray(t)){t.forEach(e=>Fi(e));return}for(let e of Object.keys(t)){if(tt.debug("Checking key",e),e.startsWith("__")||e.includes("proto")||e.includes("constr")||!pl.has(e)||t[e]==null){tt.debug("sanitize deleting key: ",e),delete t[e];continue}if(typeof t[e]=="object"){tt.debug("sanitizing object",e),Fi(t[e]);continue}let r=["themeCSS","fontFamily","altFontFamily"];for(let o of r)e.includes(o)&&(tt.debug("sanitizing css option",e),t[e]=Du(t[e]))}if(t.themeVariables)for(let e of Object.keys(t.themeVariables)){let r=t.themeVariables[e];r?.match&&!r.match(/^[\d "#%(),.;A-Za-z]+$/)&&(t.themeVariables[e]="")}tt.debug("After sanitization",t)}},"sanitizeDirective"),Du=i(t=>{let e=0,r=0;for(let o of t){if(e{let r=Lt({},t),o={};for(let n of e)Cl(n),o=Lt(o,n);if(r=Lt(r,o),o.theme&&o.theme in ye){let n=Lt({},xl),s=Lt(n.themeVariables||{},o.themeVariables);r.theme&&r.theme in ye&&(r.themeVariables=ye[r.theme].getThemeVariables(s))}return Lr=r,_l(Lr),Lr},"updateCurrentConfig"),Ou=i(t=>(Rt=Lt({},Ar),Rt=Lt(Rt,t),t.theme&&ye[t.theme]&&(Rt.themeVariables=ye[t.theme].getThemeVariables(t.themeVariables)),Mi(Rt,tr),Rt),"setSiteConfig"),eC=i(t=>{xl=Lt({},t)},"saveConfigFromInitialize"),rC=i(t=>(Rt=Lt(Rt,t),Mi(Rt,tr),Rt),"updateSiteConfig"),iC=i(()=>Lt({},Rt),"getSiteConfig"),yl=i(t=>(_l(t),Lt(Lr,t),Er()),"setConfig"),Er=i(()=>Lt({},Lr),"getConfig"),Cl=i(t=>{t&&(["secure",...Rt.secure??[]].forEach(e=>{Object.hasOwn(t,e)&&(tt.debug(`Denied attempt to modify a secure key ${e}`,t[e]),delete t[e])}),Object.keys(t).forEach(e=>{e.startsWith("__")&&delete t[e]}),Object.keys(t).forEach(e=>{typeof t[e]=="string"&&(t[e].includes("<")||t[e].includes(">")||t[e].includes("url(data:"))&&delete t[e],typeof t[e]=="object"&&Cl(t[e])}))},"sanitize"),oC=i(t=>{Fi(t),t.fontFamily&&!t.themeVariables?.fontFamily&&(t.themeVariables={...t.themeVariables,fontFamily:t.fontFamily}),tr.push(t),Mi(Rt,tr)},"addDirective"),nC=i((t=Rt)=>{tr=[],Mi(t,tr)},"reset"),Iu={LAZY_LOAD_DEPRECATED:"The configuration options lazyLoadedDiagrams and loadExternalDiagramsAtStartup are deprecated. Please use registerExternalDiagrams instead."},gl={},Ru=i(t=>{gl[t]||(tt.warn(Iu[t]),gl[t]=!0)},"issueWarning"),_l=i(t=>{t&&(t.lazyLoadedDiagrams||t.loadExternalDiagramsAtStartup)&&Ru("LAZY_LOAD_DEPRECATED")},"checkConfig");var{entries:Ml,setPrototypeOf:bl,isFrozen:Nu,getPrototypeOf:qu,getOwnPropertyDescriptor:zu}=Object,{freeze:Et,seal:$t,create:Ll}=Object,{apply:en,construct:rn}=typeof Reflect<"u"&&Reflect;Et||(Et=i(function(e){return e},"freeze"));$t||($t=i(function(e){return e},"seal"));en||(en=i(function(e,r,o){return e.apply(r,o)},"apply"));rn||(rn=i(function(e,r){return new e(...r)},"construct"));var Li=Nt(Array.prototype.forEach),Tl=Nt(Array.prototype.pop),Dr=Nt(Array.prototype.push),Ei=Nt(String.prototype.toLowerCase),Zo=Nt(String.prototype.toString),kl=Nt(String.prototype.match),Or=Nt(String.prototype.replace),Pu=Nt(String.prototype.indexOf),$u=Nt(String.prototype.trim),Ht=Nt(Object.prototype.hasOwnProperty),At=Nt(RegExp.prototype.test),Ir=Wu(TypeError);function Nt(t){return function(e){for(var r=arguments.length,o=new Array(r>1?r-1:0),n=1;n2&&arguments[2]!==void 0?arguments[2]:Ei;bl&&bl(t,null);let o=e.length;for(;o--;){let n=e[o];if(typeof n=="string"){let s=r(n);s!==n&&(Nu(e)||(e[o]=s),n=s)}t[n]=!0}return t}i(Q,"addToSet");function Hu(t){for(let e=0;e/gm),Xu=$t(/\${[\w\W]*}/gm),ju=$t(/^data-[\-\w.\u00B7-\uFFFF]/),Zu=$t(/^aria-[\-\w]+$/),Al=$t(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Ku=$t(/^(?:\w+script|data):/i),Qu=$t(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),El=$t(/^html$/i),Ju=$t(/^[a-z][.\w]*(-[.\w]+)+$/i),Fl=Object.freeze({__proto__:null,ARIA_ATTR:Zu,ATTR_WHITESPACE:Qu,CUSTOM_ELEMENT:Ju,DATA_ATTR:ju,DOCTYPE_NAME:El,ERB_EXPR:Vu,IS_ALLOWED_URI:Al,IS_SCRIPT_OR_DATA:Ku,MUSTACHE_EXPR:Gu,TMPLIT_EXPR:Xu}),Nr={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},tf=i(function(){return typeof window>"u"?null:window},"getGlobal"),ef=i(function(e,r){if(typeof e!="object"||typeof e.createPolicy!="function")return null;let o=null,n="data-tt-policy-suffix";r&&r.hasAttribute(n)&&(o=r.getAttribute(n));let s="dompurify"+(o?"#"+o:"");try{return e.createPolicy(s,{createHTML(a){return a},createScriptURL(a){return a}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},"_createTrustedTypesPolicy");function Dl(){let t=arguments.length>0&&arguments[0]!==void 0?arguments[0]:tf(),e=i(I=>Dl(I),"DOMPurify");if(e.version="3.2.1",e.removed=[],!t||!t.document||t.document.nodeType!==Nr.document)return e.isSupported=!1,e;let{document:r}=t,o=r,n=o.currentScript,{DocumentFragment:s,HTMLTemplateElement:a,Node:l,Element:c,NodeFilter:h,NamedNodeMap:u=t.NamedNodeMap||t.MozNamedAttrMap,HTMLFormElement:d,DOMParser:f,trustedTypes:g}=t,T=c.prototype,L=Rr(T,"cloneNode"),$=Rr(T,"remove"),z=Rr(T,"nextSibling"),G=Rr(T,"childNodes"),E=Rr(T,"parentNode");if(typeof a=="function"){let I=r.createElement("template");I.content&&I.content.ownerDocument&&(r=I.content.ownerDocument)}let B,P="",{implementation:w,createNodeIterator:X,createDocumentFragment:j,getElementsByTagName:W}=r,{importNode:it}=o,M={};e.isSupported=typeof Ml=="function"&&typeof E=="function"&&w&&w.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:k,ERB_EXPR:x,TMPLIT_EXPR:y,DATA_ATTR:F,ARIA_ATTR:S,IS_SCRIPT_OR_DATA:N,ATTR_WHITESPACE:O,CUSTOM_ELEMENT:U}=Fl,{IS_ALLOWED_URI:rt}=Fl,Y=null,nt=Q({},[...Sl,...Ko,...Qo,...Jo,...vl]),K=null,Ft=Q({},[...wl,...tn,...Bl,...Ai]),Z=Object.seal(Ll(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),Ct=null,_t=null,lt=!0,v=!0,H=!1,V=!0,C=!1,pt=!0,J=!1,bt=!1,Tt=!1,Ot=!1,Le=!1,di=!1,wa=!0,Ba=!1,ou="user-content-",Do=!0,vr=!1,Ze={},Ke=null,Fa=Q({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),Ma=null,La=Q({},["audio","video","img","source","image","track"]),Oo=null,Aa=Q({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),gi="http://www.w3.org/1998/Math/MathML",xi="http://www.w3.org/2000/svg",re="http://www.w3.org/1999/xhtml",Qe=re,Io=!1,Ro=null,nu=Q({},[gi,xi,re],Zo),yi=Q({},["mi","mo","mn","ms","mtext"]),Ci=Q({},["annotation-xml"]),su=Q({},["title","style","font","a","script"]),wr=null,au=["application/xhtml+xml","text/html"],lu="text/html",dt=null,Je=null,hu=r.createElement("form"),Ea=i(function(m){return m instanceof RegExp||m instanceof Function},"isRegexOrFunction"),No=i(function(){let m=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(Je&&Je===m)){if((!m||typeof m!="object")&&(m={}),m=Ee(m),wr=au.indexOf(m.PARSER_MEDIA_TYPE)===-1?lu:m.PARSER_MEDIA_TYPE,dt=wr==="application/xhtml+xml"?Zo:Ei,Y=Ht(m,"ALLOWED_TAGS")?Q({},m.ALLOWED_TAGS,dt):nt,K=Ht(m,"ALLOWED_ATTR")?Q({},m.ALLOWED_ATTR,dt):Ft,Ro=Ht(m,"ALLOWED_NAMESPACES")?Q({},m.ALLOWED_NAMESPACES,Zo):nu,Oo=Ht(m,"ADD_URI_SAFE_ATTR")?Q(Ee(Aa),m.ADD_URI_SAFE_ATTR,dt):Aa,Ma=Ht(m,"ADD_DATA_URI_TAGS")?Q(Ee(La),m.ADD_DATA_URI_TAGS,dt):La,Ke=Ht(m,"FORBID_CONTENTS")?Q({},m.FORBID_CONTENTS,dt):Fa,Ct=Ht(m,"FORBID_TAGS")?Q({},m.FORBID_TAGS,dt):{},_t=Ht(m,"FORBID_ATTR")?Q({},m.FORBID_ATTR,dt):{},Ze=Ht(m,"USE_PROFILES")?m.USE_PROFILES:!1,lt=m.ALLOW_ARIA_ATTR!==!1,v=m.ALLOW_DATA_ATTR!==!1,H=m.ALLOW_UNKNOWN_PROTOCOLS||!1,V=m.ALLOW_SELF_CLOSE_IN_ATTR!==!1,C=m.SAFE_FOR_TEMPLATES||!1,pt=m.SAFE_FOR_XML!==!1,J=m.WHOLE_DOCUMENT||!1,Ot=m.RETURN_DOM||!1,Le=m.RETURN_DOM_FRAGMENT||!1,di=m.RETURN_TRUSTED_TYPE||!1,Tt=m.FORCE_BODY||!1,wa=m.SANITIZE_DOM!==!1,Ba=m.SANITIZE_NAMED_PROPS||!1,Do=m.KEEP_CONTENT!==!1,vr=m.IN_PLACE||!1,rt=m.ALLOWED_URI_REGEXP||Al,Qe=m.NAMESPACE||re,yi=m.MATHML_TEXT_INTEGRATION_POINTS||yi,Ci=m.HTML_INTEGRATION_POINTS||Ci,Z=m.CUSTOM_ELEMENT_HANDLING||{},m.CUSTOM_ELEMENT_HANDLING&&Ea(m.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Z.tagNameCheck=m.CUSTOM_ELEMENT_HANDLING.tagNameCheck),m.CUSTOM_ELEMENT_HANDLING&&Ea(m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Z.attributeNameCheck=m.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),m.CUSTOM_ELEMENT_HANDLING&&typeof m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(Z.allowCustomizedBuiltInElements=m.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),C&&(v=!1),Le&&(Ot=!0),Ze&&(Y=Q({},vl),K=[],Ze.html===!0&&(Q(Y,Sl),Q(K,wl)),Ze.svg===!0&&(Q(Y,Ko),Q(K,tn),Q(K,Ai)),Ze.svgFilters===!0&&(Q(Y,Qo),Q(K,tn),Q(K,Ai)),Ze.mathMl===!0&&(Q(Y,Jo),Q(K,Bl),Q(K,Ai))),m.ADD_TAGS&&(Y===nt&&(Y=Ee(Y)),Q(Y,m.ADD_TAGS,dt)),m.ADD_ATTR&&(K===Ft&&(K=Ee(K)),Q(K,m.ADD_ATTR,dt)),m.ADD_URI_SAFE_ATTR&&Q(Oo,m.ADD_URI_SAFE_ATTR,dt),m.FORBID_CONTENTS&&(Ke===Fa&&(Ke=Ee(Ke)),Q(Ke,m.FORBID_CONTENTS,dt)),Do&&(Y["#text"]=!0),J&&Q(Y,["html","head","body"]),Y.table&&(Q(Y,["tbody"]),delete Ct.tbody),m.TRUSTED_TYPES_POLICY){if(typeof m.TRUSTED_TYPES_POLICY.createHTML!="function")throw Ir('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof m.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw Ir('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');B=m.TRUSTED_TYPES_POLICY,P=B.createHTML("")}else B===void 0&&(B=ef(g,n)),B!==null&&typeof P=="string"&&(P=B.createHTML(""));Et&&Et(m),Je=m}},"_parseConfig"),Da=Q({},[...Ko,...Qo,...Uu]),Oa=Q({},[...Jo,...Yu]),cu=i(function(m){let _=E(m);(!_||!_.tagName)&&(_={namespaceURI:Qe,tagName:"template"});let D=Ei(m.tagName),at=Ei(_.tagName);return Ro[m.namespaceURI]?m.namespaceURI===xi?_.namespaceURI===re?D==="svg":_.namespaceURI===gi?D==="svg"&&(at==="annotation-xml"||yi[at]):!!Da[D]:m.namespaceURI===gi?_.namespaceURI===re?D==="math":_.namespaceURI===xi?D==="math"&&Ci[at]:!!Oa[D]:m.namespaceURI===re?_.namespaceURI===xi&&!Ci[at]||_.namespaceURI===gi&&!yi[at]?!1:!Oa[D]&&(su[D]||!Da[D]):!!(wr==="application/xhtml+xml"&&Ro[m.namespaceURI]):!1},"_checkValidNamespace"),jt=i(function(m){Dr(e.removed,{element:m});try{E(m).removeChild(m)}catch{$(m)}},"_forceRemove"),_i=i(function(m,_){try{Dr(e.removed,{attribute:_.getAttributeNode(m),from:_})}catch{Dr(e.removed,{attribute:null,from:_})}if(_.removeAttribute(m),m==="is"&&!K[m])if(Ot||Le)try{jt(_)}catch{}else try{_.setAttribute(m,"")}catch{}},"_removeAttribute"),Ia=i(function(m){let _=null,D=null;if(Tt)m=""+m;else{let kt=kl(m,/^[\r\n\t ]+/);D=kt&&kt[0]}wr==="application/xhtml+xml"&&Qe===re&&(m=''+m+"");let at=B?B.createHTML(m):m;if(Qe===re)try{_=new f().parseFromString(at,wr)}catch{}if(!_||!_.documentElement){_=w.createDocument(Qe,"template",null);try{_.documentElement.innerHTML=Io?P:at}catch{}}let Bt=_.body||_.documentElement;return m&&D&&Bt.insertBefore(r.createTextNode(D),Bt.childNodes[0]||null),Qe===re?W.call(_,J?"html":"body")[0]:J?_.documentElement:Bt},"_initDocument"),Ra=i(function(m){return X.call(m.ownerDocument||m,m,h.SHOW_ELEMENT|h.SHOW_COMMENT|h.SHOW_TEXT|h.SHOW_PROCESSING_INSTRUCTION|h.SHOW_CDATA_SECTION,null)},"_createNodeIterator"),Na=i(function(m){return m instanceof d&&(typeof m.nodeName!="string"||typeof m.textContent!="string"||typeof m.removeChild!="function"||!(m.attributes instanceof u)||typeof m.removeAttribute!="function"||typeof m.setAttribute!="function"||typeof m.namespaceURI!="string"||typeof m.insertBefore!="function"||typeof m.hasChildNodes!="function")},"_isClobbered"),qa=i(function(m){return typeof l=="function"&&m instanceof l},"_isNode");function ie(I,m,_){M[I]&&Li(M[I],D=>{D.call(e,m,_,Je)})}i(ie,"_executeHook");let za=i(function(m){let _=null;if(ie("beforeSanitizeElements",m,null),Na(m))return jt(m),!0;let D=dt(m.nodeName);if(ie("uponSanitizeElement",m,{tagName:D,allowedTags:Y}),m.hasChildNodes()&&!qa(m.firstElementChild)&&At(/<[/\w]/g,m.innerHTML)&&At(/<[/\w]/g,m.textContent)||m.nodeType===Nr.progressingInstruction||pt&&m.nodeType===Nr.comment&&At(/<[/\w]/g,m.data))return jt(m),!0;if(!Y[D]||Ct[D]){if(!Ct[D]&&$a(D)&&(Z.tagNameCheck instanceof RegExp&&At(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D)))return!1;if(Do&&!Ke[D]){let at=E(m)||m.parentNode,Bt=G(m)||m.childNodes;if(Bt&&at){let kt=Bt.length;for(let It=kt-1;It>=0;--It){let Zt=L(Bt[It],!0);Zt.__removalCount=(m.__removalCount||0)+1,at.insertBefore(Zt,z(m))}}}return jt(m),!0}return m instanceof c&&!cu(m)||(D==="noscript"||D==="noembed"||D==="noframes")&&At(/<\/no(script|embed|frames)/i,m.innerHTML)?(jt(m),!0):(C&&m.nodeType===Nr.text&&(_=m.textContent,Li([k,x,y],at=>{_=Or(_,at," ")}),m.textContent!==_&&(Dr(e.removed,{element:m.cloneNode()}),m.textContent=_)),ie("afterSanitizeElements",m,null),!1)},"_sanitizeElements"),Pa=i(function(m,_,D){if(wa&&(_==="id"||_==="name")&&(D in r||D in hu))return!1;if(!(v&&!_t[_]&&At(F,_))){if(!(lt&&At(S,_))){if(!K[_]||_t[_]){if(!($a(m)&&(Z.tagNameCheck instanceof RegExp&&At(Z.tagNameCheck,m)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(m))&&(Z.attributeNameCheck instanceof RegExp&&At(Z.attributeNameCheck,_)||Z.attributeNameCheck instanceof Function&&Z.attributeNameCheck(_))||_==="is"&&Z.allowCustomizedBuiltInElements&&(Z.tagNameCheck instanceof RegExp&&At(Z.tagNameCheck,D)||Z.tagNameCheck instanceof Function&&Z.tagNameCheck(D))))return!1}else if(!Oo[_]){if(!At(rt,Or(D,O,""))){if(!((_==="src"||_==="xlink:href"||_==="href")&&m!=="script"&&Pu(D,"data:")===0&&Ma[m])){if(!(H&&!At(N,Or(D,O,"")))){if(D)return!1}}}}}}return!0},"_isValidAttribute"),$a=i(function(m){return m!=="annotation-xml"&&kl(m,U)},"_isBasicCustomElement"),Wa=i(function(m){ie("beforeSanitizeAttributes",m,null);let{attributes:_}=m;if(!_)return;let D={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:K,forceKeepAttr:void 0},at=_.length;for(;at--;){let Bt=_[at],{name:kt,namespaceURI:It,value:Zt}=Bt,Br=dt(kt),Mt=kt==="value"?Zt:$u(Zt);if(D.attrName=Br,D.attrValue=Mt,D.keepAttr=!0,D.forceKeepAttr=void 0,ie("uponSanitizeAttribute",m,D),Mt=D.attrValue,Ba&&(Br==="id"||Br==="name")&&(_i(kt,m),Mt=ou+Mt),pt&&At(/((--!?|])>)|<\/(style|title)/i,Mt)){_i(kt,m);continue}if(D.forceKeepAttr||(_i(kt,m),!D.keepAttr))continue;if(!V&&At(/\/>/i,Mt)){_i(kt,m);continue}C&&Li([k,x,y],Ua=>{Mt=Or(Mt,Ua," ")});let Ha=dt(m.nodeName);if(Pa(Ha,Br,Mt)){if(B&&typeof g=="object"&&typeof g.getAttributeType=="function"&&!It)switch(g.getAttributeType(Ha,Br)){case"TrustedHTML":{Mt=B.createHTML(Mt);break}case"TrustedScriptURL":{Mt=B.createScriptURL(Mt);break}}try{It?m.setAttributeNS(It,kt,Mt):m.setAttribute(kt,Mt),Na(m)?jt(m):Tl(e.removed)}catch{}}}ie("afterSanitizeAttributes",m,null)},"_sanitizeAttributes"),uu=i(function I(m){let _=null,D=Ra(m);for(ie("beforeSanitizeShadowDOM",m,null);_=D.nextNode();)ie("uponSanitizeShadowNode",_,null),!za(_)&&(_.content instanceof s&&I(_.content),Wa(_));ie("afterSanitizeShadowDOM",m,null)},"_sanitizeShadowDOM");return e.sanitize=function(I){let m=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},_=null,D=null,at=null,Bt=null;if(Io=!I,Io&&(I=""),typeof I!="string"&&!qa(I))if(typeof I.toString=="function"){if(I=I.toString(),typeof I!="string")throw Ir("dirty is not a string, aborting")}else throw Ir("toString is not a function");if(!e.isSupported)return I;if(bt||No(m),e.removed=[],typeof I=="string"&&(vr=!1),vr){if(I.nodeName){let Zt=dt(I.nodeName);if(!Y[Zt]||Ct[Zt])throw Ir("root node is forbidden and cannot be sanitized in-place")}}else if(I instanceof l)_=Ia(""),D=_.ownerDocument.importNode(I,!0),D.nodeType===Nr.element&&D.nodeName==="BODY"||D.nodeName==="HTML"?_=D:_.appendChild(D);else{if(!Ot&&!C&&!J&&I.indexOf("<")===-1)return B&&di?B.createHTML(I):I;if(_=Ia(I),!_)return Ot?null:di?P:""}_&&Tt&&jt(_.firstChild);let kt=Ra(vr?I:_);for(;at=kt.nextNode();)za(at)||(at.content instanceof s&&uu(at.content),Wa(at));if(vr)return I;if(Ot){if(Le)for(Bt=j.call(_.ownerDocument);_.firstChild;)Bt.appendChild(_.firstChild);else Bt=_;return(K.shadowroot||K.shadowrootmode)&&(Bt=it.call(o,Bt,!0)),Bt}let It=J?_.outerHTML:_.innerHTML;return J&&Y["!doctype"]&&_.ownerDocument&&_.ownerDocument.doctype&&_.ownerDocument.doctype.name&&At(El,_.ownerDocument.doctype.name)&&(It=" +`+It),C&&Li([k,x,y],Zt=>{It=Or(It,Zt," ")}),B&&di?B.createHTML(It):It},e.setConfig=function(){let I=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};No(I),bt=!0},e.clearConfig=function(){Je=null,bt=!1},e.isValidAttribute=function(I,m,_){Je||No({});let D=dt(I),at=dt(m);return Pa(D,at,_)},e.addHook=function(I,m){typeof m=="function"&&(M[I]=M[I]||[],Dr(M[I],m))},e.removeHook=function(I){if(M[I])return Tl(M[I])},e.removeHooks=function(I){M[I]&&(M[I]=[])},e.removeAllHooks=function(){M={}},e}i(Dl,"createDOMPurify");var er=Dl();var qr=//gi,rf=i(t=>t?ql(t).replace(/\\n/g,"#br#").split("#br#"):[""],"getRows"),of=(()=>{let t=!1;return()=>{t||(nf(),t=!0)}})();function nf(){let t="data-temp-href-target";er.addHook("beforeSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute("target")&&e.setAttribute(t,e.getAttribute("target")??"")}),er.addHook("afterSanitizeAttributes",e=>{e instanceof Element&&e.tagName==="A"&&e.hasAttribute(t)&&(e.setAttribute("target",e.getAttribute(t)??""),e.removeAttribute(t),e.getAttribute("target")==="_blank"&&e.setAttribute("rel","noopener"))})}i(nf,"setupDompurifyHooks");var Nl=i(t=>(of(),er.sanitize(t)),"removeScript"),Ol=i((t,e)=>{if(e.flowchart?.htmlLabels!==!1){let r=e.securityLevel;r==="antiscript"||r==="strict"?t=Nl(t):r!=="loose"&&(t=ql(t),t=t.replace(//g,">"),t=t.replace(/=/g,"="),t=hf(t))}return t},"sanitizeMore"),De=i((t,e)=>t&&(e.dompurifyConfig?t=er.sanitize(Ol(t,e),e.dompurifyConfig).toString():t=er.sanitize(Ol(t,e),{FORBID_TAGS:["style"]}).toString(),t),"sanitizeText"),sf=i((t,e)=>typeof t=="string"?De(t,e):t.flat().map(r=>De(r,e)),"sanitizeTextOrArray"),af=i(t=>qr.test(t),"hasBreaks"),lf=i(t=>t.split(qr),"splitBreaks"),hf=i(t=>t.replace(/#br#/g,"
      "),"placeholderToBreak"),ql=i(t=>t.replace(qr,"#br#"),"breakToPlaceholder"),cf=i(t=>{let e="";return t&&(e=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,e=e.replaceAll(/\(/g,"\\("),e=e.replaceAll(/\)/g,"\\)")),e},"getUrl"),uf=i(t=>!(t===!1||["false","null","0"].includes(String(t).trim().toLowerCase())),"evaluate"),ff=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.max(...e)},"getMax"),mf=i(function(...t){let e=t.filter(r=>!isNaN(r));return Math.min(...e)},"getMin"),uC=i(function(t){let e=t.split(/(,)/),r=[];for(let o=0;o0&&o+1Math.max(0,t.split(e).length-1),"countOccurrence"),pf=i((t,e)=>{let r=on(t,"~"),o=on(e,"~");return r===1&&o===1},"shouldCombineSets"),df=i(t=>{let e=on(t,"~"),r=!1;if(e<=1)return t;e%2!==0&&t.startsWith("~")&&(t=t.substring(1),r=!0);let o=[...t],n=o.indexOf("~"),s=o.lastIndexOf("~");for(;n!==-1&&s!==-1&&n!==s;)o[n]="<",o[s]=">",n=o.indexOf("~"),s=o.lastIndexOf("~");return r&&o.unshift("~"),o.join("")},"processSet"),Il=i(()=>window.MathMLElement!==void 0,"isMathMLSupported"),nn=/\$\$(.*)\$\$/g,Rl=i(t=>(t.match(nn)?.length??0)>0,"hasKatex"),fC=i(async(t,e)=>{t=await gf(t,e);let r=document.createElement("div");r.innerHTML=t,r.id="katex-temp",r.style.visibility="hidden",r.style.position="absolute",r.style.top="0",document.querySelector("body")?.insertAdjacentElement("beforeend",r);let n={width:r.clientWidth,height:r.clientHeight};return r.remove(),n},"calculateMathMLDimensions"),gf=i(async(t,e)=>{if(!Rl(t))return t;if(!(Il()||e.legacyMathML||e.forceLegacyMathML))return t.replace(nn,"MathML is unsupported in this environment.");let{default:r}=await import("./katex-SWYD7GD6.mjs"),o=e.forceLegacyMathML||!Il()&&e.legacyMathML?"htmlAndMathml":"mathml";return t.split(qr).map(n=>Rl(n)?`
      ${n}
      `:`
      ${n}
      `).join("").replace(nn,(n,s)=>r.renderToString(s,{throwOnError:!0,displayMode:!0,output:o}).replace(/\n/g," ").replace(//g,""))},"renderKatex"),mC={getRows:rf,sanitizeText:De,sanitizeTextOrArray:sf,hasBreaks:af,splitBreaks:lf,lineBreakRegex:qr,removeScript:Nl,getUrl:cf,evaluate:uf,getMax:ff,getMin:mf};var xf=i(function(t,e){for(let r of e)t.attr(r[0],r[1])},"d3Attrs"),yf=i(function(t,e,r){let o=new Map;return r?(o.set("width","100%"),o.set("style",`max-width: ${e}px;`)):(o.set("height",t),o.set("width",e)),o},"calculateSvgSizeAttrs"),Cf=i(function(t,e,r,o){let n=yf(e,r,o);xf(t,n)},"configureSvgSize"),zl=i(function(t,e,r,o){let n=e.node().getBBox(),s=n.width,a=n.height;tt.info(`SVG bounds: ${s}x${a}`,n);let l=0,c=0;tt.info(`Graph bounds: ${l}x${c}`,t),l=s+r*2,c=a+r*2,tt.info(`Calculated bounds: ${l}x${c}`),Cf(e,c,l,o);let h=`${n.x-r} ${n.y-r} ${n.width+2*r} ${n.height+2*r}`;e.attr("viewBox",h)},"setupGraphViewbox");var Di={},_f=i((t,e,r)=>{let o="";return t in Di&&Di[t]?o=Di[t](r):tt.warn(`No theme found for ${t}`),` & { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + fill: ${r.textColor} + } + + /* Classes common for multiple diagrams */ + + & .error-icon { + fill: ${r.errorBkgColor}; + } + & .error-text { + fill: ${r.errorTextColor}; + stroke: ${r.errorTextColor}; + } + + & .edge-thickness-normal { + stroke-width: 1px; + } + & .edge-thickness-thick { + stroke-width: 3.5px + } + & .edge-pattern-solid { + stroke-dasharray: 0; + } + & .edge-thickness-invisible { + stroke-width: 0; + fill: none; + } + & .edge-pattern-dashed{ + stroke-dasharray: 3; + } + .edge-pattern-dotted { + stroke-dasharray: 2; + } + + & .marker { + fill: ${r.lineColor}; + stroke: ${r.lineColor}; + } + & .marker.cross { + stroke: ${r.lineColor}; + } + + & svg { + font-family: ${r.fontFamily}; + font-size: ${r.fontSize}; + } + & p { + margin: 0 + } + + ${o} + + ${e} +`},"getStyles"),Pl=i((t,e)=>{e!==void 0&&(Di[t]=e)},"addStylesForDiagram"),_C=_f;var cn={};mu(cn,{clear:()=>bf,getAccDescription:()=>vf,getAccTitle:()=>kf,getDiagramTitle:()=>Bf,setAccDescription:()=>Sf,setAccTitle:()=>Tf,setDiagramTitle:()=>wf});var sn="",an="",ln="",hn=i(t=>De(t,Er()),"sanitizeText"),bf=i(()=>{sn="",ln="",an=""},"clear"),Tf=i(t=>{sn=hn(t).replace(/^\s+/g,"")},"setAccTitle"),kf=i(()=>sn,"getAccTitle"),Sf=i(t=>{ln=hn(t).replace(/\n\s+/g,` +`)},"setAccDescription"),vf=i(()=>ln,"getAccDescription"),wf=i(t=>{an=hn(t)},"setDiagramTitle"),Bf=i(()=>an,"getDiagramTitle");var $l=tt,Ff=Va,Wl=Er,EC=yl,DC=Ar;var Mf=i(t=>De(t,Wl()),"sanitizeText"),Lf=zl,Af=i(()=>cn,"getCommonDb"),Oi={},OC=i((t,e,r)=>{Oi[t]&&$l.warn(`Diagram with id ${t} already registered. Overwriting.`),Oi[t]=e,r&&Po(t,r),Pl(t,e.styles),e.injectUtils?.($l,Ff,Wl,Mf,Lf,Af(),()=>{})},"registerDiagram"),IC=i(t=>{if(t in Oi)return Oi[t];throw new un(t)},"getDiagram"),un=class extends Error{static{i(this,"DiagramNotFoundError")}constructor(e){super(`Diagram ${e} not found.`)}};function Hl(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r=n)&&(r=n)}return r}i(Hl,"max");function Ul(t,e){let r;if(e===void 0)for(let o of t)o!=null&&(r>o||r===void 0&&o>=o)&&(r=o);else{let o=-1;for(let n of t)(n=e(n,++o,t))!=null&&(r>n||r===void 0&&n>=n)&&(r=n)}return r}i(Ul,"min");function Oe(t,e){return t==null||e==null?NaN:te?1:t>=e?0:NaN}i(Oe,"ascending");function fn(t,e){return t==null||e==null?NaN:et?1:e>=t?0:NaN}i(fn,"descending");function Ie(t){let e,r,o;t.length!==2?(e=Oe,r=i((l,c)=>Oe(t(l),c),"compare2"),o=i((l,c)=>t(l)-c,"delta")):(e=t===Oe||t===fn?t:Ef,r=t,o=t);function n(l,c,h=0,u=l.length){if(h>>1;r(l[d],c)<0?h=d+1:u=d}while(h>>1;r(l[d],c)<=0?h=d+1:u=d}while(hh&&o(l[d-1],c)>-o(l[d],c)?d-1:d}return i(a,"center"),{left:n,center:a,right:s}}i(Ie,"bisector");function Ef(){return 0}i(Ef,"zero");function mn(t){return t===null?NaN:+t}i(mn,"number");var Yl=Ie(Oe),Gl=Yl.right,Df=Yl.left,Of=Ie(mn).center,pn=Gl;var rr=class extends Map{static{i(this,"InternMap")}constructor(e,r=Nf){if(super(),Object.defineProperties(this,{_intern:{value:new Map},_key:{value:r}}),e!=null)for(let[o,n]of e)this.set(o,n)}get(e){return super.get(Vl(this,e))}has(e){return super.has(Vl(this,e))}set(e,r){return super.set(If(this,e),r)}delete(e){return super.delete(Rf(this,e))}};function Vl({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):r}i(Vl,"intern_get");function If({_intern:t,_key:e},r){let o=e(r);return t.has(o)?t.get(o):(t.set(o,r),r)}i(If,"intern_set");function Rf({_intern:t,_key:e},r){let o=e(r);return t.has(o)&&(r=t.get(o),t.delete(o)),r}i(Rf,"intern_delete");function Nf(t){return t!==null&&typeof t=="object"?t.valueOf():t}i(Nf,"keyof");var qf=Math.sqrt(50),zf=Math.sqrt(10),Pf=Math.sqrt(2);function Ii(t,e,r){let o=(e-t)/Math.max(0,r),n=Math.floor(Math.log10(o)),s=o/Math.pow(10,n),a=s>=qf?10:s>=zf?5:s>=Pf?2:1,l,c,h;return n<0?(h=Math.pow(10,-n)/a,l=Math.round(t*h),c=Math.round(e*h),l/he&&--c,h=-h):(h=Math.pow(10,n)*a,l=Math.round(t/h),c=Math.round(e/h),l*he&&--c),c0))return[];if(t===e)return[t];let o=e=n))return[];let l=s-n+1,c=new Array(l);if(o)if(a<0)for(let h=0;h+t(e)}i(Hf,"number");function Uf(t,e){return e=Math.max(0,t.bandwidth()-e*2)/2,t.round()&&(e=Math.round(e)),r=>+t(r)+e}i(Uf,"center");function Yf(){return!this.__axis}i(Yf,"entering");function jl(t,e){var r=[],o=null,n=null,s=6,a=6,l=3,c=typeof window<"u"&&window.devicePixelRatio>1?0:.5,h=t===zi||t===qi?-1:1,u=t===qi||t===gn?"x":"y",d=t===zi||t===xn?$f:Wf;function f(g){var T=o??(e.ticks?e.ticks.apply(e,r):e.domain()),L=n??(e.tickFormat?e.tickFormat.apply(e,r):dn),$=Math.max(s,0)+l,z=e.range(),G=+z[0]+c,E=+z[z.length-1]+c,B=(e.bandwidth?Uf:Hf)(e.copy(),c),P=g.selection?g.selection():g,w=P.selectAll(".domain").data([null]),X=P.selectAll(".tick").data(T,e).order(),j=X.exit(),W=X.enter().append("g").attr("class","tick"),it=X.select("line"),M=X.select("text");w=w.merge(w.enter().insert("path",".tick").attr("class","domain").attr("stroke","currentColor")),X=X.merge(W),it=it.merge(W.append("line").attr("stroke","currentColor").attr(u+"2",h*s)),M=M.merge(W.append("text").attr("fill","currentColor").attr(u,h*$).attr("dy",t===zi?"0em":t===xn?"0.71em":"0.32em")),g!==P&&(w=w.transition(g),X=X.transition(g),it=it.transition(g),M=M.transition(g),j=j.transition(g).attr("opacity",Xl).attr("transform",function(k){return isFinite(k=B(k))?d(k+c):this.getAttribute("transform")}),W.attr("opacity",Xl).attr("transform",function(k){var x=this.parentNode.__axis;return d((x&&isFinite(x=x(k))?x:B(k))+c)})),j.remove(),w.attr("d",t===qi||t===gn?a?"M"+h*a+","+G+"H"+c+"V"+E+"H"+h*a:"M"+c+","+G+"V"+E:a?"M"+G+","+h*a+"V"+c+"H"+E+"V"+h*a:"M"+G+","+c+"H"+E),X.attr("opacity",1).attr("transform",function(k){return d(B(k)+c)}),it.attr(u+"2",h*s),M.attr(u,h*$).text(L),P.filter(Yf).attr("fill","none").attr("font-size",10).attr("font-family","sans-serif").attr("text-anchor",t===gn?"start":t===qi?"end":"middle"),P.each(function(){this.__axis=B})}return i(f,"axis"),f.scale=function(g){return arguments.length?(e=g,f):e},f.ticks=function(){return r=Array.from(arguments),f},f.tickArguments=function(g){return arguments.length?(r=g==null?[]:Array.from(g),f):r.slice()},f.tickValues=function(g){return arguments.length?(o=g==null?null:Array.from(g),f):o&&o.slice()},f.tickFormat=function(g){return arguments.length?(n=g,f):n},f.tickSize=function(g){return arguments.length?(s=a=+g,f):s},f.tickSizeInner=function(g){return arguments.length?(s=+g,f):s},f.tickSizeOuter=function(g){return arguments.length?(a=+g,f):a},f.tickPadding=function(g){return arguments.length?(l=+g,f):l},f.offset=function(g){return arguments.length?(c=+g,f):c},f}i(jl,"axis");function Gf(t){return jl(zi,t)}i(Gf,"axisTop");function Vf(t){return jl(xn,t)}i(Vf,"axisBottom");function Xf(){}i(Xf,"none");function Ce(t){return t==null?Xf:function(){return this.querySelector(t)}}i(Ce,"default");function yn(t){typeof t!="function"&&(t=Ce(t));for(var e=this._groups,r=e.length,o=new Array(r),n=0;n=E&&(E=G+1);!(P=$[E])&&++E=0;)(a=o[n])&&(s&&a.compareDocumentPosition(s)^4&&s.parentNode.insertBefore(a,s),s=a);return this}i(Ln,"default");function An(t){t||(t=am);function e(d,f){return d&&f?t(d.__data__,f.__data__):!d-!f}i(e,"compareNode");for(var r=this._groups,o=r.length,n=new Array(o),s=0;se?1:t>=e?0:NaN}i(am,"ascending");function En(){var t=arguments[0];return arguments[0]=this,t.apply(null,arguments),this}i(En,"default");function Dn(){return Array.from(this)}i(Dn,"default");function On(){for(var t=this._groups,e=0,r=t.length;e=0&&(e=t.slice(0,r))!=="xmlns"&&(t=t.slice(r+1)),qn.hasOwnProperty(e)?{space:qn[e],local:t}:t}i(Kt,"default");function lm(t){return function(){this.removeAttribute(t)}}i(lm,"attrRemove");function hm(t){return function(){this.removeAttributeNS(t.space,t.local)}}i(hm,"attrRemoveNS");function cm(t,e){return function(){this.setAttribute(t,e)}}i(cm,"attrConstant");function um(t,e){return function(){this.setAttributeNS(t.space,t.local,e)}}i(um,"attrConstantNS");function fm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttribute(t):this.setAttribute(t,r)}}i(fm,"attrFunction");function mm(t,e){return function(){var r=e.apply(this,arguments);r==null?this.removeAttributeNS(t.space,t.local):this.setAttributeNS(t.space,t.local,r)}}i(mm,"attrFunctionNS");function zn(t,e){var r=Kt(t);if(arguments.length<2){var o=this.node();return r.local?o.getAttributeNS(r.space,r.local):o.getAttribute(r)}return this.each((e==null?r.local?hm:lm:typeof e=="function"?r.local?mm:fm:r.local?um:cm)(r,e))}i(zn,"default");function Wr(t){return t.ownerDocument&&t.ownerDocument.defaultView||t.document&&t||t.defaultView}i(Wr,"default");function pm(t){return function(){this.style.removeProperty(t)}}i(pm,"styleRemove");function dm(t,e,r){return function(){this.style.setProperty(t,e,r)}}i(dm,"styleConstant");function gm(t,e,r){return function(){var o=e.apply(this,arguments);o==null?this.style.removeProperty(t):this.style.setProperty(t,o,r)}}i(gm,"styleFunction");function Pn(t,e,r){return arguments.length>1?this.each((e==null?pm:typeof e=="function"?gm:dm)(t,e,r??"")):_e(this.node(),t)}i(Pn,"default");function _e(t,e){return t.style.getPropertyValue(e)||Wr(t).getComputedStyle(t,null).getPropertyValue(e)}i(_e,"styleValue");function xm(t){return function(){delete this[t]}}i(xm,"propertyRemove");function ym(t,e){return function(){this[t]=e}}i(ym,"propertyConstant");function Cm(t,e){return function(){var r=e.apply(this,arguments);r==null?delete this[t]:this[t]=r}}i(Cm,"propertyFunction");function $n(t,e){return arguments.length>1?this.each((e==null?xm:typeof e=="function"?Cm:ym)(t,e)):this.node()[t]}i($n,"default");function Zl(t){return t.trim().split(/^|\s+/)}i(Zl,"classArray");function Wn(t){return t.classList||new Kl(t)}i(Wn,"classList");function Kl(t){this._node=t,this._names=Zl(t.getAttribute("class")||"")}i(Kl,"ClassList");Kl.prototype={add:i(function(t){var e=this._names.indexOf(t);e<0&&(this._names.push(t),this._node.setAttribute("class",this._names.join(" ")))},"add"),remove:i(function(t){var e=this._names.indexOf(t);e>=0&&(this._names.splice(e,1),this._node.setAttribute("class",this._names.join(" ")))},"remove"),contains:i(function(t){return this._names.indexOf(t)>=0},"contains")};function Ql(t,e){for(var r=Wn(t),o=-1,n=e.length;++o=0&&(r=e.slice(o+1),e=e.slice(0,o)),{type:e,name:r}})}i(qm,"parseTypenames");function zm(t){return function(){var e=this.__on;if(e){for(var r=0,o=-1,n=e.length,s;r>8&15|e>>4&240,e>>4&15|e&240,(e&15)<<4|e&15,1):r===8?Wi(e>>24&255,e>>16&255,e>>8&255,(e&255)/255):r===4?Wi(e>>12&15|e>>8&240,e>>8&15|e>>4&240,e>>4&15|e&240,((e&15)<<4|e&15)/255):null):(e=Ym.exec(t))?new St(e[1],e[2],e[3],1):(e=Gm.exec(t))?new St(e[1]*255/100,e[2]*255/100,e[3]*255/100,1):(e=Vm.exec(t))?Wi(e[1],e[2],e[3],e[4]):(e=Xm.exec(t))?Wi(e[1]*255/100,e[2]*255/100,e[3]*255/100,e[4]):(e=jm.exec(t))?hh(e[1],e[2]/100,e[3]/100,1):(e=Zm.exec(t))?hh(e[1],e[2]/100,e[3]/100,e[4]):ih.hasOwnProperty(t)?sh(ih[t]):t==="transparent"?new St(NaN,NaN,NaN,0):null}i(Yt,"color");function sh(t){return new St(t>>16&255,t>>8&255,t&255,1)}i(sh,"rgbn");function Wi(t,e,r,o){return o<=0&&(t=e=r=NaN),new St(t,e,r,o)}i(Wi,"rgba");function os(t){return t instanceof Te||(t=Yt(t)),t?(t=t.rgb(),new St(t.r,t.g,t.b,t.opacity)):new St}i(os,"rgbConvert");function lr(t,e,r,o){return arguments.length===1?os(t):new St(t,e,r,o??1)}i(lr,"rgb");function St(t,e,r,o){this.r=+t,this.g=+e,this.b=+r,this.opacity=+o}i(St,"Rgb");be(St,lr,sr(Te,{brighter(t){return t=t==null?Ui:Math.pow(Ui,t),new St(this.r*t,this.g*t,this.b*t,this.opacity)},darker(t){return t=t==null?Ur:Math.pow(Ur,t),new St(this.r*t,this.g*t,this.b*t,this.opacity)},rgb(){return this},clamp(){return new St(Ne(this.r),Ne(this.g),Ne(this.b),Yi(this.opacity))},displayable(){return-.5<=this.r&&this.r<255.5&&-.5<=this.g&&this.g<255.5&&-.5<=this.b&&this.b<255.5&&0<=this.opacity&&this.opacity<=1},hex:ah,formatHex:ah,formatHex8:Jm,formatRgb:lh,toString:lh}));function ah(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}`}i(ah,"rgb_formatHex");function Jm(){return`#${Re(this.r)}${Re(this.g)}${Re(this.b)}${Re((isNaN(this.opacity)?1:this.opacity)*255)}`}i(Jm,"rgb_formatHex8");function lh(){let t=Yi(this.opacity);return`${t===1?"rgb(":"rgba("}${Ne(this.r)}, ${Ne(this.g)}, ${Ne(this.b)}${t===1?")":`, ${t})`}`}i(lh,"rgb_formatRgb");function Yi(t){return isNaN(t)?1:Math.max(0,Math.min(1,t))}i(Yi,"clampa");function Ne(t){return Math.max(0,Math.min(255,Math.round(t)||0))}i(Ne,"clampi");function Re(t){return t=Ne(t),(t<16?"0":"")+t.toString(16)}i(Re,"hex");function hh(t,e,r,o){return o<=0?t=e=r=NaN:r<=0||r>=1?t=e=NaN:e<=0&&(t=NaN),new Ut(t,e,r,o)}i(hh,"hsla");function uh(t){if(t instanceof Ut)return new Ut(t.h,t.s,t.l,t.opacity);if(t instanceof Te||(t=Yt(t)),!t)return new Ut;if(t instanceof Ut)return t;t=t.rgb();var e=t.r/255,r=t.g/255,o=t.b/255,n=Math.min(e,r,o),s=Math.max(e,r,o),a=NaN,l=s-n,c=(s+n)/2;return l?(e===s?a=(r-o)/l+(r0&&c<1?0:a,new Ut(a,l,c,t.opacity)}i(uh,"hslConvert");function fh(t,e,r,o){return arguments.length===1?uh(t):new Ut(t,e,r,o??1)}i(fh,"hsl");function Ut(t,e,r,o){this.h=+t,this.s=+e,this.l=+r,this.opacity=+o}i(Ut,"Hsl");be(Ut,fh,sr(Te,{brighter(t){return t=t==null?Ui:Math.pow(Ui,t),new Ut(this.h,this.s,this.l*t,this.opacity)},darker(t){return t=t==null?Ur:Math.pow(Ur,t),new Ut(this.h,this.s,this.l*t,this.opacity)},rgb(){var t=this.h%360+(this.h<0)*360,e=isNaN(t)||isNaN(this.s)?0:this.s,r=this.l,o=r+(r<.5?r:1-r)*e,n=2*r-o;return new St(is(t>=240?t-240:t+120,n,o),is(t,n,o),is(t<120?t+240:t-120,n,o),this.opacity)},clamp(){return new Ut(ch(this.h),Hi(this.s),Hi(this.l),Yi(this.opacity))},displayable(){return(0<=this.s&&this.s<=1||isNaN(this.s))&&0<=this.l&&this.l<=1&&0<=this.opacity&&this.opacity<=1},formatHsl(){let t=Yi(this.opacity);return`${t===1?"hsl(":"hsla("}${ch(this.h)}, ${Hi(this.s)*100}%, ${Hi(this.l)*100}%${t===1?")":`, ${t})`}`}}));function ch(t){return t=(t||0)%360,t<0?t+360:t}i(ch,"clamph");function Hi(t){return Math.max(0,Math.min(1,t||0))}i(Hi,"clampt");function is(t,e,r){return(t<60?e+(r-e)*t/60:t<180?r:t<240?e+(r-e)*(240-t)/60:e)*255}i(is,"hsl2rgb");var mh=Math.PI/180,ph=180/Math.PI;var Gi=18,dh=.96422,gh=1,xh=.82521,yh=4/29,hr=6/29,Ch=3*hr*hr,tp=hr*hr*hr;function _h(t){if(t instanceof Jt)return new Jt(t.l,t.a,t.b,t.opacity);if(t instanceof he)return bh(t);t instanceof St||(t=os(t));var e=ls(t.r),r=ls(t.g),o=ls(t.b),n=ns((.2225045*e+.7168786*r+.0606169*o)/gh),s,a;return e===r&&r===o?s=a=n:(s=ns((.4360747*e+.3850649*r+.1430804*o)/dh),a=ns((.0139322*e+.0971045*r+.7141733*o)/xh)),new Jt(116*n-16,500*(s-n),200*(n-a),t.opacity)}i(_h,"labConvert");function hs(t,e,r,o){return arguments.length===1?_h(t):new Jt(t,e,r,o??1)}i(hs,"lab");function Jt(t,e,r,o){this.l=+t,this.a=+e,this.b=+r,this.opacity=+o}i(Jt,"Lab");be(Jt,hs,sr(Te,{brighter(t){return new Jt(this.l+Gi*(t??1),this.a,this.b,this.opacity)},darker(t){return new Jt(this.l-Gi*(t??1),this.a,this.b,this.opacity)},rgb(){var t=(this.l+16)/116,e=isNaN(this.a)?t:t+this.a/500,r=isNaN(this.b)?t:t-this.b/200;return e=dh*ss(e),t=gh*ss(t),r=xh*ss(r),new St(as(3.1338561*e-1.6168667*t-.4906146*r),as(-.9787684*e+1.9161415*t+.033454*r),as(.0719453*e-.2289914*t+1.4052427*r),this.opacity)}}));function ns(t){return t>tp?Math.pow(t,1/3):t/Ch+yh}i(ns,"xyz2lab");function ss(t){return t>hr?t*t*t:Ch*(t-yh)}i(ss,"lab2xyz");function as(t){return 255*(t<=.0031308?12.92*t:1.055*Math.pow(t,1/2.4)-.055)}i(as,"lrgb2rgb");function ls(t){return(t/=255)<=.04045?t/12.92:Math.pow((t+.055)/1.055,2.4)}i(ls,"rgb2lrgb");function ep(t){if(t instanceof he)return new he(t.h,t.c,t.l,t.opacity);if(t instanceof Jt||(t=_h(t)),t.a===0&&t.b===0)return new he(NaN,0()=>t,"default");function Th(t,e){return function(r){return t+r*e}}i(Th,"linear");function rp(t,e,r){return t=Math.pow(t,r),e=Math.pow(e,r)-t,r=1/r,function(o){return Math.pow(t+o*e,r)}}i(rp,"exponential");function kh(t,e){var r=e-t;return r?Th(t,r>180||r<-180?r-360*Math.round(r/360):r):cr(isNaN(t)?e:t)}i(kh,"hue");function Sh(t){return(t=+t)==1?ce:function(e,r){return r-e?rp(e,r,t):cr(isNaN(e)?r:e)}}i(Sh,"gamma");function ce(t,e){var r=e-t;return r?Th(t,r):cr(isNaN(t)?e:t)}i(ce,"nogamma");function vh(t){return function(e,r){var o=t((e=Gr(e)).h,(r=Gr(r)).h),n=ce(e.c,r.c),s=ce(e.l,r.l),a=ce(e.opacity,r.opacity);return function(l){return e.h=o(l),e.c=n(l),e.l=s(l),e.opacity=a(l),e+""}}}i(vh,"hcl");var ip=vh(kh),op=vh(ce);function cs(t,e,r,o,n){var s=t*t,a=s*t;return((1-3*t+3*s-a)*e+(4-6*s+3*a)*r+(1+3*t+3*s-3*a)*o+a*n)/6}i(cs,"basis");function us(t){var e=t.length-1;return function(r){var o=r<=0?r=0:r>=1?(r=1,e-1):Math.floor(r*e),n=t[o],s=t[o+1],a=o>0?t[o-1]:2*n-s,l=or&&(s=e.slice(r,s),l[a]?l[a]+=s:l[++a]=s),(o=o[0])===(n=n[0])?l[a]?l[a]+=n:l[++a]=n:(l[++a]=null,c.push({i:a,x:gt(o,n)})),r=gs.lastIndex;return r180?u+=360:u-h>180&&(h+=360),f.push({i:d.push(n(d)+"rotate(",null,o)-2,x:gt(h,u)})):u&&d.push(n(d)+"rotate("+u+o)}i(a,"rotate");function l(h,u,d,f){h!==u?f.push({i:d.push(n(d)+"skewX(",null,o)-2,x:gt(h,u)}):u&&d.push(n(d)+"skewX("+u+o)}i(l,"skewX");function c(h,u,d,f,g,T){if(h!==d||u!==f){var L=g.push(n(g)+"scale(",null,",",null,")");T.push({i:L-4,x:gt(h,d)},{i:L-2,x:gt(u,f)})}else(d!==1||f!==1)&&g.push(n(g)+"scale("+d+","+f+")")}return i(c,"scale"),function(h,u){var d=[],f=[];return h=t(h),u=t(u),s(h.translateX,h.translateY,u.translateX,u.translateY,d,f),a(h.rotate,u.rotate,d,f),l(h.skewX,u.skewX,d,f),c(h.scaleX,h.scaleY,u.scaleX,u.scaleY,d,f),h=u=null,function(g){for(var T=-1,L=f.length,$;++Te&&(r=t,t=e,e=r),function(o){return Math.max(t,Math.min(e,o))}}i(hp,"clamper");function cp(t,e,r){var o=t[0],n=t[1],s=e[0],a=e[1];return n2?up:cp,c=h=null,d}i(u,"rescale");function d(f){return f==null||isNaN(f=+f)?s:(c||(c=l(t.map(o),e,r)))(o(a(f)))}return i(d,"scale"),d.invert=function(f){return a(n((h||(h=l(e,t.map(o),gt)))(f)))},d.domain=function(f){return arguments.length?(t=Array.from(f,Ts),u()):t.slice()},d.range=function(f){return arguments.length?(e=Array.from(f),u()):e.slice()},d.rangeRound=function(f){return e=Array.from(f),r=Vi,u()},d.clamp=function(f){return arguments.length?(a=f?!0:fr,u()):a!==fr},d.interpolate=function(f){return arguments.length?(r=f,u()):r},d.unknown=function(f){return arguments.length?(s=f,d):s},function(f,g){return o=f,n=g,u()}}i(fp,"transformer");function Xr(){return fp()(fr,fr)}i(Xr,"continuous");function Ss(t){return Math.abs(t=Math.round(t))>=1e21?t.toLocaleString("en").replace(/,/g,""):t.toString(10)}i(Ss,"default");function ze(t,e){if((r=(t=e?t.toExponential(e-1):t.toExponential()).indexOf("e"))<0)return null;var r,o=t.slice(0,r);return[o.length>1?o[0]+o.slice(2):o,+t.slice(r+1)]}i(ze,"formatDecimalParts");function Gt(t){return t=ze(Math.abs(t)),t?t[1]:NaN}i(Gt,"default");function vs(t,e){return function(r,o){for(var n=r.length,s=[],a=0,l=t[0],c=0;n>0&&l>0&&(c+l+1>o&&(l=Math.max(1,o-c)),s.push(r.substring(n-=l,n+l)),!((c+=l+1)>o));)l=t[a=(a+1)%t.length];return s.reverse().join(e)}}i(vs,"default");function ws(t){return function(e){return e.replace(/[0-9]/g,function(r){return t[+r]})}}i(ws,"default");var mp=/^(?:(.)?([<>=^]))?([+\-( ])?([$#])?(0)?(\d+)?(,)?(\.\d+)?(~)?([a-z%])?$/i;function ve(t){if(!(e=mp.exec(t)))throw new Error("invalid format: "+t);var e;return new Qi({fill:e[1],align:e[2],sign:e[3],symbol:e[4],zero:e[5],width:e[6],comma:e[7],precision:e[8]&&e[8].slice(1),trim:e[9],type:e[10]})}i(ve,"formatSpecifier");ve.prototype=Qi.prototype;function Qi(t){this.fill=t.fill===void 0?" ":t.fill+"",this.align=t.align===void 0?">":t.align+"",this.sign=t.sign===void 0?"-":t.sign+"",this.symbol=t.symbol===void 0?"":t.symbol+"",this.zero=!!t.zero,this.width=t.width===void 0?void 0:+t.width,this.comma=!!t.comma,this.precision=t.precision===void 0?void 0:+t.precision,this.trim=!!t.trim,this.type=t.type===void 0?"":t.type+""}i(Qi,"FormatSpecifier");Qi.prototype.toString=function(){return this.fill+this.align+this.sign+this.symbol+(this.zero?"0":"")+(this.width===void 0?"":Math.max(1,this.width|0))+(this.comma?",":"")+(this.precision===void 0?"":"."+Math.max(0,this.precision|0))+(this.trim?"~":"")+this.type};function Bs(t){t:for(var e=t.length,r=1,o=-1,n;r0&&(o=0);break}return o>0?t.slice(0,o)+t.slice(n+1):t}i(Bs,"default");var Fs;function Ms(t,e){var r=ze(t,e);if(!r)return t+"";var o=r[0],n=r[1],s=n-(Fs=Math.max(-8,Math.min(8,Math.floor(n/3)))*3)+1,a=o.length;return s===a?o:s>a?o+new Array(s-a+1).join("0"):s>0?o.slice(0,s)+"."+o.slice(s):"0."+new Array(1-s).join("0")+ze(t,Math.max(0,e+s-1))[0]}i(Ms,"default");function Ji(t,e){var r=ze(t,e);if(!r)return t+"";var o=r[0],n=r[1];return n<0?"0."+new Array(-n).join("0")+o:o.length>n+1?o.slice(0,n+1)+"."+o.slice(n+1):o+new Array(n-o.length+2).join("0")}i(Ji,"default");var Ls={"%":i((t,e)=>(t*100).toFixed(e),"%"),b:i(t=>Math.round(t).toString(2),"b"),c:i(t=>t+"","c"),d:Ss,e:i((t,e)=>t.toExponential(e),"e"),f:i((t,e)=>t.toFixed(e),"f"),g:i((t,e)=>t.toPrecision(e),"g"),o:i(t=>Math.round(t).toString(8),"o"),p:i((t,e)=>Ji(t*100,e),"p"),r:Ji,s:Ms,X:i(t=>Math.round(t).toString(16).toUpperCase(),"X"),x:i(t=>Math.round(t).toString(16),"x")};function to(t){return t}i(to,"default");var Oh=Array.prototype.map,Ih=["y","z","a","f","p","n","\xB5","m","","k","M","G","T","P","E","Z","Y"];function As(t){var e=t.grouping===void 0||t.thousands===void 0?to:vs(Oh.call(t.grouping,Number),t.thousands+""),r=t.currency===void 0?"":t.currency[0]+"",o=t.currency===void 0?"":t.currency[1]+"",n=t.decimal===void 0?".":t.decimal+"",s=t.numerals===void 0?to:ws(Oh.call(t.numerals,String)),a=t.percent===void 0?"%":t.percent+"",l=t.minus===void 0?"\u2212":t.minus+"",c=t.nan===void 0?"NaN":t.nan+"";function h(d){d=ve(d);var f=d.fill,g=d.align,T=d.sign,L=d.symbol,$=d.zero,z=d.width,G=d.comma,E=d.precision,B=d.trim,P=d.type;P==="n"?(G=!0,P="g"):Ls[P]||(E===void 0&&(E=12),B=!0,P="g"),($||f==="0"&&g==="=")&&($=!0,f="0",g="=");var w=L==="$"?r:L==="#"&&/[boxX]/.test(P)?"0"+P.toLowerCase():"",X=L==="$"?o:/[%p]/.test(P)?a:"",j=Ls[P],W=/[defgprs%]/.test(P);E=E===void 0?6:/[gprs]/.test(P)?Math.max(1,Math.min(21,E)):Math.max(0,Math.min(20,E));function it(M){var k=w,x=X,y,F,S;if(P==="c")x=j(M)+x,M="";else{M=+M;var N=M<0||1/M<0;if(M=isNaN(M)?c:j(Math.abs(M),E),B&&(M=Bs(M)),N&&+M==0&&T!=="+"&&(N=!1),k=(N?T==="("?T:l:T==="-"||T==="("?"":T)+k,x=(P==="s"?Ih[8+Fs/3]:"")+x+(N&&T==="("?")":""),W){for(y=-1,F=M.length;++yS||S>57){x=(S===46?n+M.slice(y+1):M.slice(y))+x,M=M.slice(0,y);break}}}G&&!$&&(M=e(M,1/0));var O=k.length+M.length+x.length,U=O>1)+k+M+x+U.slice(O);break;default:M=U+k+M+x;break}return s(M)}return i(it,"format"),it.toString=function(){return d+""},it}i(h,"newFormat");function u(d,f){var g=h((d=ve(d),d.type="f",d)),T=Math.max(-8,Math.min(8,Math.floor(Gt(f)/3)))*3,L=Math.pow(10,-T),$=Ih[8+T/3];return function(z){return g(L*z)+$}}return i(u,"formatPrefix"),{format:h,formatPrefix:u}}i(As,"default");var eo,ro,io;Es({thousands:",",grouping:[3],currency:["$",""]});function Es(t){return eo=As(t),ro=eo.format,io=eo.formatPrefix,eo}i(Es,"defaultLocale");function oo(t){return Math.max(0,-Gt(Math.abs(t)))}i(oo,"default");function no(t,e){return Math.max(0,Math.max(-8,Math.min(8,Math.floor(Gt(e)/3)))*3-Gt(Math.abs(t)))}i(no,"default");function so(t,e){return t=Math.abs(t),e=Math.abs(e)-t,Math.max(0,Gt(e)-Gt(t))+1}i(so,"default");function Ds(t,e,r,o){var n=ir(t,e,r),s;switch(o=ve(o??",f"),o.type){case"s":{var a=Math.max(Math.abs(t),Math.abs(e));return o.precision==null&&!isNaN(s=no(n,a))&&(o.precision=s),io(o,a)}case"":case"e":case"g":case"p":case"r":{o.precision==null&&!isNaN(s=so(n,Math.max(Math.abs(t),Math.abs(e))))&&(o.precision=s-(o.type==="e"));break}case"f":case"%":{o.precision==null&&!isNaN(s=oo(n))&&(o.precision=s-(o.type==="%")*2);break}}return ro(o)}i(Ds,"tickFormat");function pp(t){var e=t.domain;return t.ticks=function(r){var o=e();return Ri(o[0],o[o.length-1],r??10)},t.tickFormat=function(r,o){var n=e();return Ds(n[0],n[n.length-1],r??10,o)},t.nice=function(r){r==null&&(r=10);var o=e(),n=0,s=o.length-1,a=o[n],l=o[s],c,h,u=10;for(l0;){if(h=zr(a,l,r),h===c)return o[n]=a,o[s]=l,e(o);if(h>0)a=Math.floor(a/h)*h,l=Math.ceil(l/h)*h;else if(h<0)a=Math.ceil(a*h)/h,l=Math.floor(l*h)/h;else break;c=h}return t},t}i(pp,"linearish");function Os(){var t=Xr();return t.copy=function(){return Ki(t,Os())},Se.apply(t,arguments),pp(t)}i(Os,"linear");var Is=new Date,Rs=new Date;function ot(t,e,r,o){function n(s){return t(s=arguments.length===0?new Date:new Date(+s)),s}return i(n,"interval"),n.floor=s=>(t(s=new Date(+s)),s),n.ceil=s=>(t(s=new Date(s-1)),e(s,1),t(s),s),n.round=s=>{let a=n(s),l=n.ceil(s);return s-a(e(s=new Date(+s),a==null?1:Math.floor(a)),s),n.range=(s,a,l)=>{let c=[];if(s=n.ceil(s),l=l==null?1:Math.floor(l),!(s0))return c;let h;do c.push(h=new Date(+s)),e(s,l),t(s);while(hot(a=>{if(a>=a)for(;t(a),!s(a);)a.setTime(a-1)},(a,l)=>{if(a>=a)if(l<0)for(;++l<=0;)for(;e(a,-1),!s(a););else for(;--l>=0;)for(;e(a,1),!s(a););}),r&&(n.count=(s,a)=>(Is.setTime(+s),Rs.setTime(+a),t(Is),t(Rs),Math.floor(r(Is,Rs))),n.every=s=>(s=Math.floor(s),!isFinite(s)||!(s>0)?null:s>1?n.filter(o?a=>o(a)%s===0:a=>n.count(0,a)%s===0):n)),n}i(ot,"timeInterval");var Pe=ot(()=>{},(t,e)=>{t.setTime(+t+e)},(t,e)=>e-t);Pe.every=t=>(t=Math.floor(t),!isFinite(t)||!(t>0)?null:t>1?ot(e=>{e.setTime(Math.floor(e/t)*t)},(e,r)=>{e.setTime(+e+r*t)},(e,r)=>(r-e)/t):Pe);var Rh=Pe.range;var te=ot(t=>{t.setTime(t-t.getMilliseconds())},(t,e)=>{t.setTime(+t+e*1e3)},(t,e)=>(e-t)/1e3,t=>t.getUTCSeconds()),Nh=te.range;var mr=ot(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getMinutes()),dp=mr.range,ao=ot(t=>{t.setUTCSeconds(0,0)},(t,e)=>{t.setTime(+t+e*6e4)},(t,e)=>(e-t)/6e4,t=>t.getUTCMinutes()),gp=ao.range;var pr=ot(t=>{t.setTime(t-t.getMilliseconds()-t.getSeconds()*1e3-t.getMinutes()*6e4)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getHours()),xp=pr.range,lo=ot(t=>{t.setUTCMinutes(0,0,0)},(t,e)=>{t.setTime(+t+e*36e5)},(t,e)=>(e-t)/36e5,t=>t.getUTCHours()),yp=lo.range;var ue=ot(t=>t.setHours(0,0,0,0),(t,e)=>t.setDate(t.getDate()+e),(t,e)=>(e-t-(e.getTimezoneOffset()-t.getTimezoneOffset())*6e4)/864e5,t=>t.getDate()-1),Cp=ue.range,Zr=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>t.getUTCDate()-1),_p=Zr.range,ho=ot(t=>{t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCDate(t.getUTCDate()+e)},(t,e)=>(e-t)/864e5,t=>Math.floor(t/864e5)),bp=ho.range;function He(t){return ot(e=>{e.setDate(e.getDate()-(e.getDay()+7-t)%7),e.setHours(0,0,0,0)},(e,r)=>{e.setDate(e.getDate()+r*7)},(e,r)=>(r-e-(r.getTimezoneOffset()-e.getTimezoneOffset())*6e4)/6048e5)}i(He,"timeWeekday");var fe=He(0),dr=He(1),zh=He(2),Ph=He(3),we=He(4),$h=He(5),Wh=He(6),Hh=fe.range,Tp=dr.range,kp=zh.range,Sp=Ph.range,vp=we.range,wp=$h.range,Bp=Wh.range;function Ue(t){return ot(e=>{e.setUTCDate(e.getUTCDate()-(e.getUTCDay()+7-t)%7),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCDate(e.getUTCDate()+r*7)},(e,r)=>(r-e)/6048e5)}i(Ue,"utcWeekday");var Ye=Ue(0),gr=Ue(1),Uh=Ue(2),Yh=Ue(3),Be=Ue(4),Gh=Ue(5),Vh=Ue(6),Xh=Ye.range,Fp=gr.range,Mp=Uh.range,Lp=Yh.range,Ap=Be.range,Ep=Gh.range,Dp=Vh.range;var xr=ot(t=>{t.setDate(1),t.setHours(0,0,0,0)},(t,e)=>{t.setMonth(t.getMonth()+e)},(t,e)=>e.getMonth()-t.getMonth()+(e.getFullYear()-t.getFullYear())*12,t=>t.getMonth()),Op=xr.range,co=ot(t=>{t.setUTCDate(1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCMonth(t.getUTCMonth()+e)},(t,e)=>e.getUTCMonth()-t.getUTCMonth()+(e.getUTCFullYear()-t.getUTCFullYear())*12,t=>t.getUTCMonth()),Ip=co.range;var qt=ot(t=>{t.setMonth(0,1),t.setHours(0,0,0,0)},(t,e)=>{t.setFullYear(t.getFullYear()+e)},(t,e)=>e.getFullYear()-t.getFullYear(),t=>t.getFullYear());qt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ot(e=>{e.setFullYear(Math.floor(e.getFullYear()/t)*t),e.setMonth(0,1),e.setHours(0,0,0,0)},(e,r)=>{e.setFullYear(e.getFullYear()+r*t)});var Rp=qt.range,Vt=ot(t=>{t.setUTCMonth(0,1),t.setUTCHours(0,0,0,0)},(t,e)=>{t.setUTCFullYear(t.getUTCFullYear()+e)},(t,e)=>e.getUTCFullYear()-t.getUTCFullYear(),t=>t.getUTCFullYear());Vt.every=t=>!isFinite(t=Math.floor(t))||!(t>0)?null:ot(e=>{e.setUTCFullYear(Math.floor(e.getUTCFullYear()/t)*t),e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0)},(e,r)=>{e.setUTCFullYear(e.getUTCFullYear()+r*t)});var Np=Vt.range;function Zh(t,e,r,o,n,s){let a=[[te,1,1e3],[te,5,5*1e3],[te,15,15*1e3],[te,30,30*1e3],[s,1,6e4],[s,5,5*6e4],[s,15,15*6e4],[s,30,30*6e4],[n,1,36e5],[n,3,3*36e5],[n,6,6*36e5],[n,12,12*36e5],[o,1,864e5],[o,2,2*864e5],[r,1,6048e5],[e,1,2592e6],[e,3,3*2592e6],[t,1,31536e6]];function l(h,u,d){let f=u$).right(a,f);if(g===a.length)return t.every(ir(h/31536e6,u/31536e6,d));if(g===0)return Pe.every(Math.max(ir(h,u,d),1));let[T,L]=a[f/a[g-1][2]53)return null;"w"in C||(C.w=1),"Z"in C?(J=Ps(Kr(C.y,0,1)),bt=J.getUTCDay(),J=bt>4||bt===0?gr.ceil(J):gr(J),J=Zr.offset(J,(C.V-1)*7),C.y=J.getUTCFullYear(),C.m=J.getUTCMonth(),C.d=J.getUTCDate()+(C.w+6)%7):(J=zs(Kr(C.y,0,1)),bt=J.getDay(),J=bt>4||bt===0?dr.ceil(J):dr(J),J=ue.offset(J,(C.V-1)*7),C.y=J.getFullYear(),C.m=J.getMonth(),C.d=J.getDate()+(C.w+6)%7)}else("W"in C||"U"in C)&&("w"in C||(C.w="u"in C?C.u%7:"W"in C?1:0),bt="Z"in C?Ps(Kr(C.y,0,1)).getUTCDay():zs(Kr(C.y,0,1)).getDay(),C.m=0,C.d="W"in C?(C.w+6)%7+C.W*7-(bt+5)%7:C.w+C.U*7-(bt+6)%7);return"Z"in C?(C.H+=C.Z/100|0,C.M+=C.Z%100,Ps(C)):zs(C)}}i(X,"newParse");function j(v,H,V,C){for(var pt=0,J=H.length,bt=V.length,Tt,Ot;pt=bt)return-1;if(Tt=H.charCodeAt(pt++),Tt===37){if(Tt=H.charAt(pt++),Ot=P[Tt in Kh?H.charAt(pt++):Tt],!Ot||(C=Ot(v,V,C))<0)return-1}else if(Tt!=V.charCodeAt(C++))return-1}return C}i(j,"parseSpecifier");function W(v,H,V){var C=h.exec(H.slice(V));return C?(v.p=u.get(C[0].toLowerCase()),V+C[0].length):-1}i(W,"parsePeriod");function it(v,H,V){var C=g.exec(H.slice(V));return C?(v.w=T.get(C[0].toLowerCase()),V+C[0].length):-1}i(it,"parseShortWeekday");function M(v,H,V){var C=d.exec(H.slice(V));return C?(v.w=f.get(C[0].toLowerCase()),V+C[0].length):-1}i(M,"parseWeekday");function k(v,H,V){var C=z.exec(H.slice(V));return C?(v.m=G.get(C[0].toLowerCase()),V+C[0].length):-1}i(k,"parseShortMonth");function x(v,H,V){var C=L.exec(H.slice(V));return C?(v.m=$.get(C[0].toLowerCase()),V+C[0].length):-1}i(x,"parseMonth");function y(v,H,V){return j(v,e,H,V)}i(y,"parseLocaleDateTime");function F(v,H,V){return j(v,r,H,V)}i(F,"parseLocaleDate");function S(v,H,V){return j(v,o,H,V)}i(S,"parseLocaleTime");function N(v){return a[v.getDay()]}i(N,"formatShortWeekday");function O(v){return s[v.getDay()]}i(O,"formatWeekday");function U(v){return c[v.getMonth()]}i(U,"formatShortMonth");function rt(v){return l[v.getMonth()]}i(rt,"formatMonth");function Y(v){return n[+(v.getHours()>=12)]}i(Y,"formatPeriod");function nt(v){return 1+~~(v.getMonth()/3)}i(nt,"formatQuarter");function K(v){return a[v.getUTCDay()]}i(K,"formatUTCShortWeekday");function Ft(v){return s[v.getUTCDay()]}i(Ft,"formatUTCWeekday");function Z(v){return c[v.getUTCMonth()]}i(Z,"formatUTCShortMonth");function Ct(v){return l[v.getUTCMonth()]}i(Ct,"formatUTCMonth");function _t(v){return n[+(v.getUTCHours()>=12)]}i(_t,"formatUTCPeriod");function lt(v){return 1+~~(v.getUTCMonth()/3)}return i(lt,"formatUTCQuarter"),{format:i(function(v){var H=w(v+="",E);return H.toString=function(){return v},H},"format"),parse:i(function(v){var H=X(v+="",!1);return H.toString=function(){return v},H},"parse"),utcFormat:i(function(v){var H=w(v+="",B);return H.toString=function(){return v},H},"utcFormat"),utcParse:i(function(v){var H=X(v+="",!0);return H.toString=function(){return v},H},"utcParse")}}i($s,"formatLocale");var Kh={"-":"",_:" ",0:"0"},xt=/^\s*\d+/,$p=/^%/,Wp=/[\\^$*+?|[\]().{}]/g;function et(t,e,r){var o=t<0?"-":"",n=(o?-t:t)+"",s=n.length;return o+(s[e.toLowerCase(),r]))}i(Jr,"formatLookup");function Up(t,e,r){var o=xt.exec(e.slice(r,r+1));return o?(t.w=+o[0],r+o[0].length):-1}i(Up,"parseWeekdayNumberSunday");function Yp(t,e,r){var o=xt.exec(e.slice(r,r+1));return o?(t.u=+o[0],r+o[0].length):-1}i(Yp,"parseWeekdayNumberMonday");function Gp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.U=+o[0],r+o[0].length):-1}i(Gp,"parseWeekNumberSunday");function Vp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.V=+o[0],r+o[0].length):-1}i(Vp,"parseWeekNumberISO");function Xp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.W=+o[0],r+o[0].length):-1}i(Xp,"parseWeekNumberMonday");function Qh(t,e,r){var o=xt.exec(e.slice(r,r+4));return o?(t.y=+o[0],r+o[0].length):-1}i(Qh,"parseFullYear");function Jh(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.y=+o[0]+(+o[0]>68?1900:2e3),r+o[0].length):-1}i(Jh,"parseYear");function jp(t,e,r){var o=/^(Z)|([+-]\d\d)(?::?(\d\d))?/.exec(e.slice(r,r+6));return o?(t.Z=o[1]?0:-(o[2]+(o[3]||"00")),r+o[0].length):-1}i(jp,"parseZone");function Zp(t,e,r){var o=xt.exec(e.slice(r,r+1));return o?(t.q=o[0]*3-3,r+o[0].length):-1}i(Zp,"parseQuarter");function Kp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.m=o[0]-1,r+o[0].length):-1}i(Kp,"parseMonthNumber");function tc(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.d=+o[0],r+o[0].length):-1}i(tc,"parseDayOfMonth");function Qp(t,e,r){var o=xt.exec(e.slice(r,r+3));return o?(t.m=0,t.d=+o[0],r+o[0].length):-1}i(Qp,"parseDayOfYear");function ec(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.H=+o[0],r+o[0].length):-1}i(ec,"parseHour24");function Jp(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.M=+o[0],r+o[0].length):-1}i(Jp,"parseMinutes");function td(t,e,r){var o=xt.exec(e.slice(r,r+2));return o?(t.S=+o[0],r+o[0].length):-1}i(td,"parseSeconds");function ed(t,e,r){var o=xt.exec(e.slice(r,r+3));return o?(t.L=+o[0],r+o[0].length):-1}i(ed,"parseMilliseconds");function rd(t,e,r){var o=xt.exec(e.slice(r,r+6));return o?(t.L=Math.floor(o[0]/1e3),r+o[0].length):-1}i(rd,"parseMicroseconds");function id(t,e,r){var o=$p.exec(e.slice(r,r+1));return o?r+o[0].length:-1}i(id,"parseLiteralPercent");function od(t,e,r){var o=xt.exec(e.slice(r));return o?(t.Q=+o[0],r+o[0].length):-1}i(od,"parseUnixTimestamp");function nd(t,e,r){var o=xt.exec(e.slice(r));return o?(t.s=+o[0],r+o[0].length):-1}i(nd,"parseUnixTimestampSeconds");function rc(t,e){return et(t.getDate(),e,2)}i(rc,"formatDayOfMonth");function sd(t,e){return et(t.getHours(),e,2)}i(sd,"formatHour24");function ad(t,e){return et(t.getHours()%12||12,e,2)}i(ad,"formatHour12");function ld(t,e){return et(1+ue.count(qt(t),t),e,3)}i(ld,"formatDayOfYear");function ac(t,e){return et(t.getMilliseconds(),e,3)}i(ac,"formatMilliseconds");function hd(t,e){return ac(t,e)+"000"}i(hd,"formatMicroseconds");function cd(t,e){return et(t.getMonth()+1,e,2)}i(cd,"formatMonthNumber");function ud(t,e){return et(t.getMinutes(),e,2)}i(ud,"formatMinutes");function fd(t,e){return et(t.getSeconds(),e,2)}i(fd,"formatSeconds");function md(t){var e=t.getDay();return e===0?7:e}i(md,"formatWeekdayNumberMonday");function pd(t,e){return et(fe.count(qt(t)-1,t),e,2)}i(pd,"formatWeekNumberSunday");function lc(t){var e=t.getDay();return e>=4||e===0?we(t):we.ceil(t)}i(lc,"dISO");function dd(t,e){return t=lc(t),et(we.count(qt(t),t)+(qt(t).getDay()===4),e,2)}i(dd,"formatWeekNumberISO");function gd(t){return t.getDay()}i(gd,"formatWeekdayNumberSunday");function xd(t,e){return et(dr.count(qt(t)-1,t),e,2)}i(xd,"formatWeekNumberMonday");function yd(t,e){return et(t.getFullYear()%100,e,2)}i(yd,"formatYear");function Cd(t,e){return t=lc(t),et(t.getFullYear()%100,e,2)}i(Cd,"formatYearISO");function _d(t,e){return et(t.getFullYear()%1e4,e,4)}i(_d,"formatFullYear");function bd(t,e){var r=t.getDay();return t=r>=4||r===0?we(t):we.ceil(t),et(t.getFullYear()%1e4,e,4)}i(bd,"formatFullYearISO");function Td(t){var e=t.getTimezoneOffset();return(e>0?"-":(e*=-1,"+"))+et(e/60|0,"0",2)+et(e%60,"0",2)}i(Td,"formatZone");function ic(t,e){return et(t.getUTCDate(),e,2)}i(ic,"formatUTCDayOfMonth");function kd(t,e){return et(t.getUTCHours(),e,2)}i(kd,"formatUTCHour24");function Sd(t,e){return et(t.getUTCHours()%12||12,e,2)}i(Sd,"formatUTCHour12");function vd(t,e){return et(1+Zr.count(Vt(t),t),e,3)}i(vd,"formatUTCDayOfYear");function hc(t,e){return et(t.getUTCMilliseconds(),e,3)}i(hc,"formatUTCMilliseconds");function wd(t,e){return hc(t,e)+"000"}i(wd,"formatUTCMicroseconds");function Bd(t,e){return et(t.getUTCMonth()+1,e,2)}i(Bd,"formatUTCMonthNumber");function Fd(t,e){return et(t.getUTCMinutes(),e,2)}i(Fd,"formatUTCMinutes");function Md(t,e){return et(t.getUTCSeconds(),e,2)}i(Md,"formatUTCSeconds");function Ld(t){var e=t.getUTCDay();return e===0?7:e}i(Ld,"formatUTCWeekdayNumberMonday");function Ad(t,e){return et(Ye.count(Vt(t)-1,t),e,2)}i(Ad,"formatUTCWeekNumberSunday");function cc(t){var e=t.getUTCDay();return e>=4||e===0?Be(t):Be.ceil(t)}i(cc,"UTCdISO");function Ed(t,e){return t=cc(t),et(Be.count(Vt(t),t)+(Vt(t).getUTCDay()===4),e,2)}i(Ed,"formatUTCWeekNumberISO");function Dd(t){return t.getUTCDay()}i(Dd,"formatUTCWeekdayNumberSunday");function Od(t,e){return et(gr.count(Vt(t)-1,t),e,2)}i(Od,"formatUTCWeekNumberMonday");function Id(t,e){return et(t.getUTCFullYear()%100,e,2)}i(Id,"formatUTCYear");function Rd(t,e){return t=cc(t),et(t.getUTCFullYear()%100,e,2)}i(Rd,"formatUTCYearISO");function Nd(t,e){return et(t.getUTCFullYear()%1e4,e,4)}i(Nd,"formatUTCFullYear");function qd(t,e){var r=t.getUTCDay();return t=r>=4||r===0?Be(t):Be.ceil(t),et(t.getUTCFullYear()%1e4,e,4)}i(qd,"formatUTCFullYearISO");function zd(){return"+0000"}i(zd,"formatUTCZone");function oc(){return"%"}i(oc,"formatLiteralPercent");function nc(t){return+t}i(nc,"formatUnixTimestamp");function sc(t){return Math.floor(+t/1e3)}i(sc,"formatUnixTimestampSeconds");var yr,uo,uc,fc,mc;Ws({dateTime:"%x, %X",date:"%-m/%-d/%Y",time:"%-I:%M:%S %p",periods:["AM","PM"],days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],shortDays:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],shortMonths:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"]});function Ws(t){return yr=$s(t),uo=yr.format,uc=yr.parse,fc=yr.utcFormat,mc=yr.utcParse,yr}i(Ws,"defaultLocale");function Hs(t,e){t=t.slice();var r=0,o=t.length-1,n=t[r],s=t[o],a;return s1?0:t<-1?Cr:Math.acos(t)}i(xc,"acos");function Vs(t){return t>=1?ti:t<=-1?-ti:Math.asin(t)}i(Vs,"asin");var Xs=Math.PI,js=2*Xs,Ve=1e-6,Hd=js-Ve;function yc(t){this._+=t[0];for(let e=1,r=t.length;e=0))throw new Error(`invalid digits: ${t}`);if(e>15)return yc;let r=10**e;return function(o){this._+=o[0];for(let n=1,s=o.length;nVe)if(!(Math.abs(d*c-h*u)>Ve)||!s)this._append`L${this._x1=e},${this._y1=r}`;else{let g=o-a,T=n-l,L=c*c+h*h,$=g*g+T*T,z=Math.sqrt(L),G=Math.sqrt(f),E=s*Math.tan((Xs-Math.acos((L+f-$)/(2*z*G)))/2),B=E/G,P=E/z;Math.abs(B-1)>Ve&&this._append`L${e+B*u},${r+B*d}`,this._append`A${s},${s},0,0,${+(d*g>u*T)},${this._x1=e+P*c},${this._y1=r+P*h}`}}arc(e,r,o,n,s,a){if(e=+e,r=+r,o=+o,a=!!a,o<0)throw new Error(`negative radius: ${o}`);let l=o*Math.cos(n),c=o*Math.sin(n),h=e+l,u=r+c,d=1^a,f=a?n-s:s-n;this._x1===null?this._append`M${h},${u}`:(Math.abs(this._x1-h)>Ve||Math.abs(this._y1-u)>Ve)&&this._append`L${h},${u}`,o&&(f<0&&(f=f%js+js),f>Hd?this._append`A${o},${o},0,1,${d},${e-l},${r-c}A${o},${o},0,1,${d},${this._x1=h},${this._y1=u}`:f>Ve&&this._append`A${o},${o},0,${+(f>=Xs)},${d},${this._x1=e+o*Math.cos(s)},${this._y1=r+o*Math.sin(s)}`)}rect(e,r,o,n){this._append`M${this._x0=this._x1=+e},${this._y0=this._y1=+r}h${o=+o}v${+n}h${-o}Z`}toString(){return this._}};function Cc(){return new Xe}i(Cc,"path");Cc.prototype=Xe.prototype;function mo(t){let e=3;return t.digits=function(r){if(!arguments.length)return e;if(r==null)e=null;else{let o=Math.floor(r);if(!(o>=0))throw new RangeError(`invalid digits: ${r}`);e=o}return t},()=>new Xe(e)}i(mo,"withPath");function Yd(t){return t.innerRadius}i(Yd,"arcInnerRadius");function Gd(t){return t.outerRadius}i(Gd,"arcOuterRadius");function Vd(t){return t.startAngle}i(Vd,"arcStartAngle");function Xd(t){return t.endAngle}i(Xd,"arcEndAngle");function jd(t){return t&&t.padAngle}i(jd,"arcPadAngle");function Zd(t,e,r,o,n,s,a,l){var c=r-t,h=o-e,u=a-n,d=l-s,f=d*c-u*h;if(!(f*fy*y+F*F&&(j=it,W=M),{cx:j,cy:W,x01:-u,y01:-d,x11:j*(n/P-1),y11:W*(n/P-1)}}i(po,"cornerTangents");function _c(){var t=Yd,e=Gd,r=st(0),o=null,n=Vd,s=Xd,a=jd,l=null,c=mo(h);function h(){var u,d,f=+t.apply(this,arguments),g=+e.apply(this,arguments),T=n.apply(this,arguments)-ti,L=s.apply(this,arguments)-ti,$=Gs(L-T),z=L>T;if(l||(l=u=c()),gyt))l.moveTo(0,0);else if($>_r-yt)l.moveTo(g*Fe(T),g*Xt(T)),l.arc(0,0,g,T,L,!z),f>yt&&(l.moveTo(f*Fe(L),f*Xt(L)),l.arc(0,0,f,L,T,z));else{var G=T,E=L,B=T,P=L,w=$,X=$,j=a.apply(this,arguments)/2,W=j>yt&&(o?+o.apply(this,arguments):Ge(f*f+g*g)),it=fo(Gs(g-f)/2,+r.apply(this,arguments)),M=it,k=it,x,y;if(W>yt){var F=Vs(W/f*Xt(j)),S=Vs(W/g*Xt(j));(w-=F*2)>yt?(F*=z?1:-1,B+=F,P-=F):(w=0,B=P=(T+L)/2),(X-=S*2)>yt?(S*=z?1:-1,G+=S,E-=S):(X=0,G=E=(T+L)/2)}var N=g*Fe(G),O=g*Xt(G),U=f*Fe(P),rt=f*Xt(P);if(it>yt){var Y=g*Fe(E),nt=g*Xt(E),K=f*Fe(B),Ft=f*Xt(B),Z;if($yt?k>yt?(x=po(K,Ft,N,O,g,k,z),y=po(Y,nt,U,rt,g,k,z),l.moveTo(x.cx+x.x01,x.cy+x.y01),kyt)||!(w>yt)?l.lineTo(U,rt):M>yt?(x=po(U,rt,Y,nt,f,-M,z),y=po(N,O,K,Ft,f,-M,z),l.lineTo(x.cx+x.x01,x.cy+x.y01),Mt?1:e>=t?0:NaN}i(Zs,"default");function Ks(t){return t}i(Ks,"default");function vc(){var t=Ks,e=Zs,r=null,o=st(0),n=st(_r),s=st(0);function a(l){var c,h=(l=ei(l)).length,u,d,f=0,g=new Array(h),T=new Array(h),L=+o.apply(this,arguments),$=Math.min(_r,Math.max(-_r,n.apply(this,arguments)-L)),z,G=Math.min(Math.abs($)/h,s.apply(this,arguments)),E=G*($<0?-1:1),B;for(c=0;c0&&(f+=B);for(e!=null?g.sort(function(P,w){return e(T[P],T[w])}):r!=null&&g.sort(function(P,w){return r(l[P],l[w])}),c=0,d=f?($-h*E)/f:0;c0?B*d:0)+E,T[u]={data:l[u],index:c,value:B,startAngle:L,endAngle:z,padAngle:G};return T}return i(a,"pie"),a.value=function(l){return arguments.length?(t=typeof l=="function"?l:st(+l),a):t},a.sortValues=function(l){return arguments.length?(e=l,r=null,a):e},a.sort=function(l){return arguments.length?(r=l,e=null,a):r},a.startAngle=function(l){return arguments.length?(o=typeof l=="function"?l:st(+l),a):o},a.endAngle=function(l){return arguments.length?(n=typeof l=="function"?l:st(+l),a):n},a.padAngle=function(l){return arguments.length?(s=typeof l=="function"?l:st(+l),a):s},a}i(vc,"default");var xo=class{static{i(this,"Bump")}constructor(e,r){this._context=e,this._x=r}areaStart(){this._line=0}areaEnd(){this._line=NaN}lineStart(){this._point=0}lineEnd(){(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line}point(e,r){switch(e=+e,r=+r,this._point){case 0:{this._point=1,this._line?this._context.lineTo(e,r):this._context.moveTo(e,r);break}case 1:this._point=2;default:{this._x?this._context.bezierCurveTo(this._x0=(this._x0+e)/2,this._y0,this._x0,r,e,r):this._context.bezierCurveTo(this._x0,this._y0=(this._y0+r)/2,e,this._y0,e,r);break}}this._x0=e,this._y0=r}};function Kd(t){return new xo(t,!0)}i(Kd,"bumpX");function Qd(t){return new xo(t,!1)}i(Qd,"bumpY");function br(t,e,r){t._context.bezierCurveTo((2*t._x0+t._x1)/3,(2*t._y0+t._y1)/3,(t._x0+2*t._x1)/3,(t._y0+2*t._y1)/3,(t._x0+4*t._x1+e)/6,(t._y0+4*t._y1+r)/6)}i(br,"point");function ri(t){this._context=t}i(ri,"Basis");ri.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 3:br(this,this._x1,this._y1);case 2:this._context.lineTo(this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,this._context.lineTo((5*this._x0+this._x1)/6,(5*this._y0+this._y1)/6);default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function wc(t){return new ri(t)}i(wc,"default");function zt(){}i(zt,"default");function Bc(t){this._context=t}i(Bc,"BasisClosed");Bc.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._y0=this._y1=this._y2=this._y3=this._y4=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x2,this._y2),this._context.closePath();break}case 2:{this._context.moveTo((this._x2+2*this._x3)/3,(this._y2+2*this._y3)/3),this._context.lineTo((this._x3+2*this._x2)/3,(this._y3+2*this._y2)/3),this._context.closePath();break}case 3:{this.point(this._x2,this._y2),this.point(this._x3,this._y3),this.point(this._x4,this._y4);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x2=t,this._y2=e;break;case 1:this._point=2,this._x3=t,this._y3=e;break;case 2:this._point=3,this._x4=t,this._y4=e,this._context.moveTo((this._x0+4*this._x1+t)/6,(this._y0+4*this._y1+e)/6);break;default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Fc(t){return new Bc(t)}i(Fc,"default");function Mc(t){this._context=t}i(Mc,"BasisOpen");Mc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3;var r=(this._x0+4*this._x1+t)/6,o=(this._y0+4*this._y1+e)/6;this._line?this._context.lineTo(r,o):this._context.moveTo(r,o);break;case 3:this._point=4;default:br(this,t,e);break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e},"point")};function Lc(t){return new Mc(t)}i(Lc,"default");function Ac(t,e){this._basis=new ri(t),this._beta=e}i(Ac,"Bundle");Ac.prototype={lineStart:i(function(){this._x=[],this._y=[],this._basis.lineStart()},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length-1;if(r>0)for(var o=t[0],n=e[0],s=t[r]-o,a=e[r]-n,l=-1,c;++l<=r;)c=l/r,this._basis.point(this._beta*t[l]+(1-this._beta)*(o+c*s),this._beta*e[l]+(1-this._beta)*(n+c*a));this._x=this._y=null,this._basis.lineEnd()},"lineEnd"),point:i(function(t,e){this._x.push(+t),this._y.push(+e)},"point")};var Jd=i(function t(e){function r(o){return e===1?new ri(o):new Ac(o,e)}return i(r,"bundle"),r.beta=function(o){return t(+o)},r},"custom")(.85);function Tr(t,e,r){t._context.bezierCurveTo(t._x1+t._k*(t._x2-t._x0),t._y1+t._k*(t._y2-t._y0),t._x2+t._k*(t._x1-e),t._y2+t._k*(t._y1-r),t._x2,t._y2)}i(Tr,"point");function yo(t,e){this._context=t,this._k=(1-e)/6}i(yo,"Cardinal");yo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:Tr(this,this._x1,this._y1);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2,this._x1=t,this._y1=e;break;case 2:this._point=3;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var tg=i(function t(e){function r(o){return new yo(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function Co(t,e){this._context=t,this._k=(1-e)/6}i(Co,"CardinalClosed");Co.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var eg=i(function t(e){function r(o){return new Co(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function _o(t,e){this._context=t,this._k=(1-e)/6}i(_o,"CardinalOpen");_o.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:Tr(this,t,e);break}this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var rg=i(function t(e){function r(o){return new _o(o,e)}return i(r,"cardinal"),r.tension=function(o){return t(+o)},r},"custom")(0);function ii(t,e,r){var o=t._x1,n=t._y1,s=t._x2,a=t._y2;if(t._l01_a>yt){var l=2*t._l01_2a+3*t._l01_a*t._l12_a+t._l12_2a,c=3*t._l01_a*(t._l01_a+t._l12_a);o=(o*l-t._x0*t._l12_2a+t._x2*t._l01_2a)/c,n=(n*l-t._y0*t._l12_2a+t._y2*t._l01_2a)/c}if(t._l23_a>yt){var h=2*t._l23_2a+3*t._l23_a*t._l12_a+t._l12_2a,u=3*t._l23_a*(t._l23_a+t._l12_a);s=(s*h+t._x1*t._l23_2a-e*t._l12_2a)/u,a=(a*h+t._y1*t._l23_2a-r*t._l12_2a)/u}t._context.bezierCurveTo(o,n,s,a,t._x2,t._y2)}i(ii,"point");function Ec(t,e){this._context=t,this._alpha=e}i(Ec,"CatmullRom");Ec.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x2,this._y2);break;case 3:this.point(this._x2,this._y2);break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3;default:ii(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ig=i(function t(e){function r(o){return e?new Ec(o,e):new yo(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Dc(t,e){this._context=t,this._alpha=e}i(Dc,"CatmullRomClosed");Dc.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._x0=this._x1=this._x2=this._x3=this._x4=this._x5=this._y0=this._y1=this._y2=this._y3=this._y4=this._y5=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 1:{this._context.moveTo(this._x3,this._y3),this._context.closePath();break}case 2:{this._context.lineTo(this._x3,this._y3),this._context.closePath();break}case 3:{this.point(this._x3,this._y3),this.point(this._x4,this._y4),this.point(this._x5,this._y5);break}}},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1,this._x3=t,this._y3=e;break;case 1:this._point=2,this._context.moveTo(this._x4=t,this._y4=e);break;case 2:this._point=3,this._x5=t,this._y5=e;break;default:ii(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var og=i(function t(e){function r(o){return e?new Dc(o,e):new Co(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Oc(t,e){this._context=t,this._alpha=e}i(Oc,"CatmullRomOpen");Oc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._x2=this._y0=this._y1=this._y2=NaN,this._l01_a=this._l12_a=this._l23_a=this._l01_2a=this._l12_2a=this._l23_2a=this._point=0},"lineStart"),lineEnd:i(function(){(this._line||this._line!==0&&this._point===3)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){if(t=+t,e=+e,this._point){var r=this._x2-t,o=this._y2-e;this._l23_a=Math.sqrt(this._l23_2a=Math.pow(r*r+o*o,this._alpha))}switch(this._point){case 0:this._point=1;break;case 1:this._point=2;break;case 2:this._point=3,this._line?this._context.lineTo(this._x2,this._y2):this._context.moveTo(this._x2,this._y2);break;case 3:this._point=4;default:ii(this,t,e);break}this._l01_a=this._l12_a,this._l12_a=this._l23_a,this._l01_2a=this._l12_2a,this._l12_2a=this._l23_2a,this._x0=this._x1,this._x1=this._x2,this._x2=t,this._y0=this._y1,this._y1=this._y2,this._y2=e},"point")};var ng=i(function t(e){function r(o){return e?new Oc(o,e):new _o(o,0)}return i(r,"catmullRom"),r.alpha=function(o){return t(+o)},r},"custom")(.5);function Ic(t){this._context=t}i(Ic,"LinearClosed");Ic.prototype={areaStart:zt,areaEnd:zt,lineStart:i(function(){this._point=0},"lineStart"),lineEnd:i(function(){this._point&&this._context.closePath()},"lineEnd"),point:i(function(t,e){t=+t,e=+e,this._point?this._context.lineTo(t,e):(this._point=1,this._context.moveTo(t,e))},"point")};function Rc(t){return new Ic(t)}i(Rc,"default");function Nc(t){return t<0?-1:1}i(Nc,"sign");function qc(t,e,r){var o=t._x1-t._x0,n=e-t._x1,s=(t._y1-t._y0)/(o||n<0&&-0),a=(r-t._y1)/(n||o<0&&-0),l=(s*n+a*o)/(o+n);return(Nc(s)+Nc(a))*Math.min(Math.abs(s),Math.abs(a),.5*Math.abs(l))||0}i(qc,"slope3");function zc(t,e){var r=t._x1-t._x0;return r?(3*(t._y1-t._y0)/r-e)/2:e}i(zc,"slope2");function Qs(t,e,r){var o=t._x0,n=t._y0,s=t._x1,a=t._y1,l=(s-o)/3;t._context.bezierCurveTo(o+l,n+l*e,s-l,a-l*r,s,a)}i(Qs,"point");function bo(t){this._context=t}i(bo,"MonotoneX");bo.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x0=this._x1=this._y0=this._y1=this._t0=NaN,this._point=0},"lineStart"),lineEnd:i(function(){switch(this._point){case 2:this._context.lineTo(this._x1,this._y1);break;case 3:Qs(this,this._t0,zc(this,this._t0));break}(this._line||this._line!==0&&this._point===1)&&this._context.closePath(),this._line=1-this._line},"lineEnd"),point:i(function(t,e){var r=NaN;if(t=+t,e=+e,!(t===this._x1&&e===this._y1)){switch(this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;break;case 2:this._point=3,Qs(this,zc(this,r=qc(this,t,e)),r);break;default:Qs(this,this._t0,r=qc(this,t,e));break}this._x0=this._x1,this._x1=t,this._y0=this._y1,this._y1=e,this._t0=r}},"point")};function Pc(t){this._context=new $c(t)}i(Pc,"MonotoneY");(Pc.prototype=Object.create(bo.prototype)).point=function(t,e){bo.prototype.point.call(this,e,t)};function $c(t){this._context=t}i($c,"ReflectContext");$c.prototype={moveTo:i(function(t,e){this._context.moveTo(e,t)},"moveTo"),closePath:i(function(){this._context.closePath()},"closePath"),lineTo:i(function(t,e){this._context.lineTo(e,t)},"lineTo"),bezierCurveTo:i(function(t,e,r,o,n,s){this._context.bezierCurveTo(e,t,o,r,s,n)},"bezierCurveTo")};function sg(t){return new bo(t)}i(sg,"monotoneX");function ag(t){return new Pc(t)}i(ag,"monotoneY");function Hc(t){this._context=t}i(Hc,"Natural");Hc.prototype={areaStart:i(function(){this._line=0},"areaStart"),areaEnd:i(function(){this._line=NaN},"areaEnd"),lineStart:i(function(){this._x=[],this._y=[]},"lineStart"),lineEnd:i(function(){var t=this._x,e=this._y,r=t.length;if(r)if(this._line?this._context.lineTo(t[0],e[0]):this._context.moveTo(t[0],e[0]),r===2)this._context.lineTo(t[1],e[1]);else for(var o=Wc(t),n=Wc(e),s=0,a=1;a=0;--e)n[e]=(a[e]-n[e+1])/s[e];for(s[r-1]=(t[r]+n[r-1])/2,e=0;e=0&&(this._t=1-this._t,this._line=1-this._line)},"lineEnd"),point:i(function(t,e){switch(t=+t,e=+e,this._point){case 0:this._point=1,this._line?this._context.lineTo(t,e):this._context.moveTo(t,e);break;case 1:this._point=2;default:{if(this._t<=0)this._context.lineTo(this._x,e),this._context.lineTo(t,e);else{var r=this._x*(1-this._t)+t*this._t;this._context.lineTo(r,this._y),this._context.lineTo(r,e)}break}}this._x=t,this._y=e},"point")};function Yc(t){return new To(t,.5)}i(Yc,"default");function lg(t){return new To(t,0)}i(lg,"stepBefore");function hg(t){return new To(t,1)}i(hg,"stepAfter");var cg={value:i(()=>{},"value")};function Vc(){for(var t=0,e=arguments.length,r={},o;t=0&&(o=r.slice(n+1),r=r.slice(0,n)),r&&!e.hasOwnProperty(r))throw new Error("unknown type: "+r);return{type:r,name:o}})}i(ug,"parseTypenames");ko.prototype=Vc.prototype={constructor:ko,on:i(function(t,e){var r=this._,o=ug(t+"",r),n,s=-1,a=o.length;if(arguments.length<2){for(;++s0)for(var r=new Array(n),o=0,n,s;o=0&&t._call.call(void 0,e),t=t._next;--kr}i(Kc,"timerFlush");function Xc(){je=(vo=ai.now())+wo,kr=ni=0;try{Kc()}finally{kr=0,dg(),je=0}}i(Xc,"wake");function pg(){var t=ai.now(),e=t-vo;e>jc&&(wo-=e,vo=t)}i(pg,"poke");function dg(){for(var t,e=So,r,o=1/0;e;)e._call?(o>e._time&&(o=e._time),t=e,e=e._next):(r=e._next,e._next=null,e=t?t._next=r:So=r);si=t,ta(o)}i(dg,"nap");function ta(t){if(!kr){ni&&(ni=clearTimeout(ni));var e=t-je;e>24?(t<1/0&&(ni=setTimeout(Xc,t-ai.now()-wo)),oi&&(oi=clearInterval(oi))):(oi||(vo=ai.now(),oi=setInterval(pg,jc)),kr=1,Zc(Xc))}}i(ta,"sleep");function ci(t,e,r){var o=new li;return e=e==null?0:+e,o.restart(n=>{o.stop(),t(n+e)},e,r),o}i(ci,"default");var gg=Js("start","end","cancel","interrupt"),xg=[],tu=0,Qc=1,Mo=2,Fo=3,Jc=4,Lo=5,ui=6;function me(t,e,r,o,n,s){var a=t.__transition;if(!a)t.__transition={};else if(r in a)return;yg(t,r,{name:e,index:o,group:n,on:gg,tween:xg,time:s.time,delay:s.delay,duration:s.duration,ease:s.ease,timer:null,state:tu})}i(me,"default");function fi(t,e){var r=mt(t,e);if(r.state>tu)throw new Error("too late; already scheduled");return r}i(fi,"init");function wt(t,e){var r=mt(t,e);if(r.state>Fo)throw new Error("too late; already running");return r}i(wt,"set");function mt(t,e){var r=t.__transition;if(!r||!(r=r[e]))throw new Error("transition not found");return r}i(mt,"get");function yg(t,e,r){var o=t.__transition,n;o[e]=r,r.timer=Bo(s,0,r.time);function s(h){r.state=Qc,r.timer.restart(a,r.delay,r.time),r.delay<=h&&a(h-r.delay)}i(s,"schedule");function a(h){var u,d,f,g;if(r.state!==Qc)return c();for(u in o)if(g=o[u],g.name===r.name){if(g.state===Fo)return ci(a);g.state===Jc?(g.state=ui,g.timer.stop(),g.on.call("interrupt",t,t.__data__,g.index,g.group),delete o[u]):+uMo&&o.state=0&&(e=e.slice(0,r)),!e||e==="start"})}i(Ng,"start");function qg(t,e,r){var o,n,s=Ng(e)?fi:wt;return function(){var a=s(this,t),l=a.on;l!==o&&(n=(o=l).copy()).on(e,r),a.on=n}}i(qg,"onFunction");function ua(t,e){var r=this._id;return arguments.length<2?mt(this.node(),r).on.on(t):this.each(qg(r,t,e))}i(ua,"default");function zg(t){return function(){var e=this.parentNode;for(var r in this.__transition)if(+r!==t)return;e&&e.removeChild(this)}}i(zg,"removeFunction");function fa(){return this.on("end.remove",zg(this._id))}i(fa,"default");function ma(t){var e=this._name,r=this._id;typeof t!="function"&&(t=Ce(t));for(var o=this._groups,n=o.length,s=new Array(n),a=0;a{let e;return o==="sandbox"&&(e=s("#i"+t)),(o==="sandbox"?s(e.nodes()[0].contentDocument.body):s("body")).select(`[id="${t}"]`)},"getDiagramElement");var $=r((t,o,e,i)=>{t.attr("class",e);let{width:n,height:m,x:h,y:x}=a(t,o);b(t,m,n,i);let c=d(h,x,n,m,o);t.attr("viewBox",c),u.debug(`viewBox configured: ${c} with padding: ${o}`)},"setupViewPortForSVG"),a=r((t,o)=>{let e=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:e.width+o*2,height:e.height+o*2,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),d=r((t,o,e,i,n)=>`${t-n} ${o-n} ${e} ${i}`,"createViewBox");export{w as a,$ as b}; +import{M as b,b as u,ga as s}from"./chunk-OR2G2HG5.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var w=r((t,o)=>{let e;return o==="sandbox"&&(e=s("#i"+t)),(o==="sandbox"?s(e.nodes()[0].contentDocument.body):s("body")).select(`[id="${t}"]`)},"getDiagramElement");var $=r((t,o,e,i)=>{t.attr("class",e);let{width:n,height:m,x:h,y:x}=a(t,o);b(t,m,n,i);let c=d(h,x,n,m,o);t.attr("viewBox",c),u.debug(`viewBox configured: ${c} with padding: ${o}`)},"setupViewPortForSVG"),a=r((t,o)=>{let e=t.node()?.getBBox()||{width:0,height:0,x:0,y:0};return{width:e.width+o*2,height:e.height+o*2,x:e.x,y:e.y}},"calculateDimensionsWithPadding"),d=r((t,o,e,i,n)=>`${t-n} ${o-n} ${e} ${i}`,"createViewBox");export{w as a,$ as b}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-2XY5F2HY.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-UENA7NWE.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-2XY5F2HY.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-UENA7NWE.mjs index 306d270d3..45903d2b1 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-2XY5F2HY.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-UENA7NWE.mjs @@ -1,2 +1,2 @@ -import{a as ae}from"./chunk-TI4EEUUG.mjs";import{Ca as R,Fa as F,Ga as O,Ha as _,Ia as k,Ja as N,Ka as j,L as v,La as A,Ma as H,Na as z,Oa as I,Pa as U,Qa as X,Ra as Y,Sa as J,Ta as V,Ua as q,Va as G,Wa as Z,Xa as K,b as d,e as m,ga as D,h as B,k as w,t as L}from"./chunk-ITX3UAHE.mjs";import{T as Q,k as b}from"./chunk-6BY5RJGC.mjs";import{a,e as se}from"./chunk-GTKDMUJJ.mjs";var ne=se(ae(),1);var ce="\u200B",ue={curveBasis:_,curveBasisClosed:k,curveBasisOpen:N,curveBumpX:F,curveBumpY:O,curveBundle:j,curveCardinalClosed:H,curveCardinalOpen:z,curveCardinal:A,curveCatmullRomClosed:U,curveCatmullRomOpen:X,curveCatmullRom:I,curveLinear:R,curveLinearClosed:Y,curveMonotoneX:J,curveMonotoneY:V,curveNatural:q,curveStep:G,curveStepAfter:K,curveStepBefore:Z},le=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fe=a(function(t,e){let r=re(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let s=r.map(u=>u.args);L(s),n=w(n,[...s])}else n=r.args;if(!n)return;let i=B(t,e),o="config";return n[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),re=a(function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${le.source})(?=[}][%]{2}).* +import{a as ae}from"./chunk-TI4EEUUG.mjs";import{Ca as R,Fa as F,Ga as O,Ha as _,Ia as k,Ja as N,Ka as j,L as v,La as A,Ma as H,Na as z,Oa as I,Pa as U,Qa as X,Ra as Y,Sa as J,Ta as V,Ua as q,Va as G,Wa as Z,Xa as K,b as d,e as m,ga as D,h as B,k as w,t as L}from"./chunk-OR2G2HG5.mjs";import{T as Q,k as b}from"./chunk-6BY5RJGC.mjs";import{a,e as se}from"./chunk-GTKDMUJJ.mjs";var ne=se(ae(),1);var ce="\u200B",ue={curveBasis:_,curveBasisClosed:k,curveBasisOpen:N,curveBumpX:F,curveBumpY:O,curveBundle:j,curveCardinalClosed:H,curveCardinalOpen:z,curveCardinal:A,curveCatmullRomClosed:U,curveCatmullRomOpen:X,curveCatmullRom:I,curveLinear:R,curveLinearClosed:Y,curveMonotoneX:J,curveMonotoneY:V,curveNatural:q,curveStep:G,curveStepAfter:K,curveStepBefore:Z},le=/\s*(?:(\w+)(?=:):|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi,fe=a(function(t,e){let r=re(t,/(?:init\b)|(?:initialize\b)/),n={};if(Array.isArray(r)){let s=r.map(u=>u.args);L(s),n=w(n,[...s])}else n=r.args;if(!n)return;let i=B(t,e),o="config";return n[o]!==void 0&&(i==="flowchart-v2"&&(i="flowchart"),n[i]=n[o],delete n[o]),n},"detectInit"),re=a(function(t,e=null){try{let r=new RegExp(`[%]{2}(?![{]${le.source})(?=[}][%]{2}).* `,"ig");t=t.trim().replace(r,"").replace(/'/gm,'"'),d.debug(`Detecting diagram directive${e!==null?" type:"+e:""} based on the text:${t}`);let n,i=[];for(;(n=m.exec(t))!==null;)if(n.index===m.lastIndex&&m.lastIndex++,n&&!e||e&&n[1]?.match(e)||e&&n[2]?.match(e)){let o=n[1]?n[1]:n[2],s=n[3]?n[3].trim():n[4]?JSON.parse(n[4].trim()):null;i.push({type:o,args:s})}return i.length===0?{type:t,args:null}:i.length===1?i[0]:i}catch(r){return d.error(`ERROR: ${r.message} - Unable to parse directive type: '${e}' based on the text: '${t}'`),{type:void 0,args:null}}},"detectDirective"),He=a(function(t){return t.replace(m,"")},"removeDirectives"),ge=a(function(t,e){for(let[r,n]of e.entries())if(n.match(t))return r;return-1},"isSubstringInArray");function de(t,e){if(!t)return e;let r=`curve${t.charAt(0).toUpperCase()+t.slice(1)}`;return ue[r]??e}a(de,"interpolateToCurve");function he(t,e){let r=t.trim();if(r)return e.securityLevel!=="loose"?(0,ne.sanitizeUrl)(r):r}a(he,"formatUrl");var me=a((t,...e)=>{let r=t.split("."),n=r.length-1,i=r[n],o=window;for(let s=0;s{r+=ie(i,e),e=i});let n=r/2;return T(t,n)}a(pe,"traverseEdge");function xe(t){return t.length===1?t[0]:pe(t)}a(xe,"calcLabelPosition");var ee=a((t,e=2)=>{let r=Math.pow(10,e);return Math.round(t*r)/r},"roundNumber"),T=a((t,e)=>{let r,n=e;for(let i of t){if(r){let o=ie(i,r);if(o=1)return{x:i.x,y:i.y};if(s>0&&s<1)return{x:ee((1-s)*r.x+s*i.x,5),y:ee((1-s)*r.y+s*i.y,5)}}}r=i}throw new Error("Could not find a suitable point for the given distance")},"calculatePoint"),ye=a((t,e,r)=>{d.info(`our points ${JSON.stringify(e)}`),e[0]!==r&&(e=e.reverse());let i=T(e,25),o=t?10:5,s=Math.atan2(e[0].y-i.y,e[0].x-i.x),u={x:0,y:0};return u.x=Math.sin(s)*o+(e[0].x+i.x)/2,u.y=-Math.cos(s)*o+(e[0].y+i.y)/2,u},"calcCardinalityPosition");function ve(t,e,r){let n=structuredClone(r);d.info("our points",n),e!=="start_left"&&e!=="start_right"&&n.reverse();let i=25+t,o=T(n,i),s=10+t*.5,u=Math.atan2(n[0].y-o.y,n[0].x-o.x),c={x:0,y:0};return e==="start_left"?(c.x=Math.sin(u+Math.PI)*s+(n[0].x+o.x)/2,c.y=-Math.cos(u+Math.PI)*s+(n[0].y+o.y)/2):e==="end_right"?(c.x=Math.sin(u-Math.PI)*s+(n[0].x+o.x)/2-5,c.y=-Math.cos(u-Math.PI)*s+(n[0].y+o.y)/2-5):e==="end_left"?(c.x=Math.sin(u)*s+(n[0].x+o.x)/2-5,c.y=-Math.cos(u)*s+(n[0].y+o.y)/2-5):(c.x=Math.sin(u)*s+(n[0].x+o.x)/2,c.y=-Math.cos(u)*s+(n[0].y+o.y)/2),c}a(ve,"calcTerminalLabelPosition");function be(t){let e="",r="";for(let n of t)n!==void 0&&(n.startsWith("color:")||n.startsWith("text-align:")?r=r+n+";":e=e+n+";");return{style:e,labelStyle:r}}a(be,"getStylesFromArray");var te=0,Ce=a(()=>(te++,"id-"+Math.random().toString(36).substr(2,12)+"-"+te),"generateId");function Me(t){let e="",r="0123456789abcdef",n=r.length;for(let i=0;iMe(t.length),"random"),Pe=a(function(){return{x:0,y:0,fill:void 0,anchor:"start",style:"#666",width:100,height:100,textMargin:0,rx:0,ry:0,valign:void 0,text:""}},"getTextObj"),Te=a(function(t,e){let r=e.text.replace(v.lineBreakRegex," "),[,n]=S(e.fontSize),i=t.append("text");i.attr("x",e.x),i.attr("y",e.y),i.style("text-anchor",e.anchor),i.style("font-family",e.fontFamily),i.style("font-size",n),i.style("font-weight",e.fontWeight),i.attr("fill",e.fill),e.class!==void 0&&i.attr("class",e.class);let o=i.append("tspan");return o.attr("x",e.x+e.textMargin*2),o.attr("fill",e.fill),o.text(r),i},"drawSimpleText"),$e=b((t,e,r)=>{if(!t||(r=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",joinWith:"
      "},r),v.lineBreakRegex.test(t)))return t;let n=t.split(" ").filter(Boolean),i=[],o="";return n.forEach((s,u)=>{let c=M(`${s} `,r),l=M(o,r);if(c>e){let{hyphenatedStrings:h,remainingWord:f}=Se(s,e,"-",r);i.push(o,...h),o=f}else l+c>=e?(i.push(o),o=s):o=[o,s].filter(Boolean).join(" ");u+1===n.length&&i.push(o)}),i.filter(s=>s!=="").join(r.joinWith)},(t,e,r)=>`${t}${e}${r.fontSize}${r.fontWeight}${r.fontFamily}${r.joinWith}`),Se=b((t,e,r="-",n)=>{n=Object.assign({fontSize:12,fontWeight:400,fontFamily:"Arial",margin:0},n);let i=[...t],o=[],s="";return i.forEach((u,c)=>{let l=`${s}${u}`;if(M(l,n)>=e){let x=c+1,h=i.length===x,f=`${l}${r}`;o.push(h?l:f),s=""}else s=l}),{hyphenatedStrings:o,remainingWord:s}},(t,e,r="-",n)=>`${t}${e}${r}${n.fontSize}${n.fontWeight}${n.fontFamily}`);function We(t,e){return $(t,e).height}a(We,"calculateTextHeight");function M(t,e){return $(t,e).width}a(M,"calculateTextWidth");var $=b((t,e)=>{let{fontSize:r=12,fontFamily:n="Arial",fontWeight:i=400}=e;if(!t)return{width:0,height:0};let[,o]=S(r),s=["sans-serif",n],u=t.split(v.lineBreakRegex),c=[],l=D("body");if(!l.remove)return{width:0,height:0,lineHeight:0};let p=l.append("svg");for(let h of s){let f=0,g={width:0,height:0,lineHeight:0};for(let oe of u){let W=Pe();W.text=oe||ce;let E=Te(p,W).style("font-size",o).style("font-weight",i).style("font-family",h),y=(E._groups||E)[0][0].getBBox();if(y.width===0&&y.height===0)throw new Error("svg element not in render tree");g.width=Math.round(Math.max(g.width,y.width)),f=Math.round(y.height),g.height+=f,g.lineHeight=Math.round(Math.max(g.lineHeight,f))}c.push(g)}p.remove();let x=isNaN(c[1].height)||isNaN(c[1].width)||isNaN(c[1].lineHeight)||c[0].height>c[1].height&&c[0].width>c[1].width&&c[0].lineHeight>c[1].lineHeight?0:1;return c[x]},(t,e)=>`${t}${e.fontSize}${e.fontWeight}${e.fontFamily}`),P=class{constructor(e=!1,r){this.count=0;this.count=r?r.length:0,this.next=e?()=>this.count++:()=>Date.now()}static{a(this,"InitIDGenerator")}},C,Ee=a(function(t){return C=C||document.createElement("div"),t=escape(t).replace(/%26/g,"&").replace(/%23/g,"#").replace(/%3B/g,";"),C.innerHTML=t,unescape(C.textContent)},"entityDecode");function ze(t){return"str"in t}a(ze,"isDetailedError");var Be=a((t,e,r,n)=>{if(!n)return;let i=t.node()?.getBBox();i&&t.append("text").text(n).attr("text-anchor","middle").attr("x",i.x+i.width/2).attr("y",-r).attr("class",e)},"insertTitle"),S=a(t=>{if(typeof t=="number")return[t,t+"px"];let e=parseInt(t??"",10);return Number.isNaN(e)?[void 0,void 0]:t===String(e)?[e,t+"px"]:[e,t]},"parseFontSize");function Le(t,e){return Q({},t,e)}a(Le,"cleanAndMerge");var Ie={assignWithDepth:w,wrapLabel:$e,calculateTextHeight:We,calculateTextWidth:M,calculateTextDimensions:$,cleanAndMerge:Le,detectInit:fe,detectDirective:re,isSubstringInArray:ge,interpolateToCurve:de,calcLabelPosition:xe,calcCardinalityPosition:ye,calcTerminalLabelPosition:ve,formatUrl:he,getStylesFromArray:be,generateId:Ce,random:we,runFunc:me,entityDecode:Ee,insertTitle:Be,parseFontSize:S,InitIDGenerator:P},Ue=a(function(t){let e=t;return e=e.replace(/style.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/classDef.*:\S*#.*;/g,function(r){return r.substring(0,r.length-1)}),e=e.replace(/#\w+;/g,function(r){let n=r.substring(1,r.length-1);return/^\+?\d+$/.test(n)?"\uFB02\xB0\xB0"+n+"\xB6\xDF":"\uFB02\xB0"+n+"\xB6\xDF"}),e},"encodeEntities"),Xe=a(function(t){return t.replace(/fl°°/g,"&#").replace(/fl°/g,"&").replace(/¶ß/g,";")},"decodeEntities");var Ye=a((t,e,{counter:r=0,prefix:n,suffix:i})=>`${n?`${n}_`:""}${t}_${e}_${r}${i?`_${i}`:""}`,"getEdgeId");function Je(t){return t??null}a(Je,"handleUndefinedAttr");export{ce as a,He as b,de as c,be as d,Ce as e,we as f,$e as g,We as h,M as i,ze as j,S as k,Le as l,Ie as m,Ue as n,Xe as o,Ye as p,Je as q}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-4DJOK3GT.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-ZUCAP7FR.mjs similarity index 98% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-4DJOK3GT.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-ZUCAP7FR.mjs index eb0ccfe24..1d78f8b60 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-4DJOK3GT.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/chunk-ZUCAP7FR.mjs @@ -1,4 +1,4 @@ -import{c as Y,d as L}from"./chunk-A7EQIZZO.mjs";import{a as O}from"./chunk-S67DUUA5.mjs";import{a as U}from"./chunk-LM6QDVU5.mjs";import{d as X}from"./chunk-EXDBZKZY.mjs";import{m as w}from"./chunk-2XY5F2HY.mjs";import{Da as W,G as H,Ha as R,X as b,b as d,ga as C}from"./chunk-ITX3UAHE.mjs";import{a as f}from"./chunk-GTKDMUJJ.mjs";var A=f((r,t,a,o,l)=>{t.arrowTypeStart&&Z(r,"start",t.arrowTypeStart,a,o,l),t.arrowTypeEnd&&Z(r,"end",t.arrowTypeEnd,a,o,l)},"addEdgeMarkers"),z={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Z=f((r,t,a,o,l,i)=>{let s=z[a];if(!s){d.warn(`Unknown arrow type: ${a}`);return}let n=t==="start"?"Start":"End";r.attr(`marker-${t}`,`url(${o}#${l}_${i}-${s}${n})`)},"addEdgeMarker");var T=new Map,x=new Map,Et=f(()=>{T.clear(),x.clear()},"clear"),M=f(r=>r?r.reduce((a,o)=>a+";"+o,""):"","getLabelStyles"),$t=f(async(r,t)=>{let a=H(b().flowchart.htmlLabels),o=await X(r,t.label,{style:M(t.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1});d.info("abc82",t,t.labelType);let l=r.insert("g").attr("class","edgeLabel"),i=l.insert("g").attr("class","label");i.node().appendChild(o);let s=o.getBBox();if(a){let e=o.children[0],p=C(o);s=e.getBoundingClientRect(),p.attr("width",s.width),p.attr("height",s.height)}i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),T.set(t.id,l),t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){let e=await L(t.startLabelLeft,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startLeft=p,$(n,t.startLabelLeft)}if(t.startLabelRight){let e=await L(t.startLabelRight,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=p.node().appendChild(e),h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startRight=p,$(n,t.startLabelRight)}if(t.endLabelLeft){let e=await L(t.endLabelLeft,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),p.node().appendChild(e),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endLeft=p,$(n,t.endLabelLeft)}if(t.endLabelRight){let e=await L(t.endLabelRight,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),p.node().appendChild(e),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endRight=p,$(n,t.endLabelRight)}return o},"insertEdgeLabel");function $(r,t){b().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}f($,"setTerminalWidth");var Tt=f((r,t)=>{d.debug("Moving label abc88 ",r.id,r.label,T.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,o=b(),{subGraphTitleTotalMargin:l}=U(o);if(r.label){let i=T.get(r.id),s=r.x,n=r.y;if(a){let e=w.calcLabelPosition(a);d.debug("Moving label "+r.label+" from (",s,",",n,") to (",e.x,",",e.y,") abc88"),t.updatedPath&&(s=e.x,n=e.y)}i.attr("transform",`translate(${s}, ${n+l/2})`)}if(r.startLabelLeft){let i=x.get(r.id).startLeft,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}if(r.startLabelRight){let i=x.get(r.id).startRight,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}if(r.endLabelLeft){let i=x.get(r.id).endLeft,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}if(r.endLabelRight){let i=x.get(r.id).endRight,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}},"positionEdgeLabel"),D=f((r,t)=>{let a=r.x,o=r.y,l=Math.abs(t.x-a),i=Math.abs(t.y-o),s=r.width/2,n=r.height/2;return l>=s||i>=n},"outsideNode"),F=f((r,t,a)=>{d.debug(`intersection calc abc89: +import{c as Y,d as L}from"./chunk-E7A2AWYO.mjs";import{a as O}from"./chunk-S67DUUA5.mjs";import{a as U}from"./chunk-LM6QDVU5.mjs";import{d as X}from"./chunk-AFC6EC46.mjs";import{m as w}from"./chunk-UENA7NWE.mjs";import{Da as W,G as H,Ha as R,X as b,b as d,ga as C}from"./chunk-OR2G2HG5.mjs";import{a as f}from"./chunk-GTKDMUJJ.mjs";var A=f((r,t,a,o,l)=>{t.arrowTypeStart&&Z(r,"start",t.arrowTypeStart,a,o,l),t.arrowTypeEnd&&Z(r,"end",t.arrowTypeEnd,a,o,l)},"addEdgeMarkers"),z={arrow_cross:"cross",arrow_point:"point",arrow_barb:"barb",arrow_circle:"circle",aggregation:"aggregation",extension:"extension",composition:"composition",dependency:"dependency",lollipop:"lollipop"},Z=f((r,t,a,o,l,i)=>{let s=z[a];if(!s){d.warn(`Unknown arrow type: ${a}`);return}let n=t==="start"?"Start":"End";r.attr(`marker-${t}`,`url(${o}#${l}_${i}-${s}${n})`)},"addEdgeMarker");var T=new Map,x=new Map,Et=f(()=>{T.clear(),x.clear()},"clear"),M=f(r=>r?r.reduce((a,o)=>a+";"+o,""):"","getLabelStyles"),$t=f(async(r,t)=>{let a=H(b().flowchart.htmlLabels),o=await X(r,t.label,{style:M(t.labelStyle),useHtmlLabels:a,addSvgBackground:!0,isNode:!1});d.info("abc82",t,t.labelType);let l=r.insert("g").attr("class","edgeLabel"),i=l.insert("g").attr("class","label");i.node().appendChild(o);let s=o.getBBox();if(a){let e=o.children[0],p=C(o);s=e.getBoundingClientRect(),p.attr("width",s.width),p.attr("height",s.height)}i.attr("transform","translate("+-s.width/2+", "+-s.height/2+")"),T.set(t.id,l),t.width=s.width,t.height=s.height;let n;if(t.startLabelLeft){let e=await L(t.startLabelLeft,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startLeft=p,$(n,t.startLabelLeft)}if(t.startLabelRight){let e=await L(t.startLabelRight,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=p.node().appendChild(e),h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),x.get(t.id)||x.set(t.id,{}),x.get(t.id).startRight=p,$(n,t.startLabelRight)}if(t.endLabelLeft){let e=await L(t.endLabelLeft,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),p.node().appendChild(e),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endLeft=p,$(n,t.endLabelLeft)}if(t.endLabelRight){let e=await L(t.endLabelRight,M(t.labelStyle)),p=r.insert("g").attr("class","edgeTerminals"),h=p.insert("g").attr("class","inner");n=h.node().appendChild(e);let c=e.getBBox();h.attr("transform","translate("+-c.width/2+", "+-c.height/2+")"),p.node().appendChild(e),x.get(t.id)||x.set(t.id,{}),x.get(t.id).endRight=p,$(n,t.endLabelRight)}return o},"insertEdgeLabel");function $(r,t){b().flowchart.htmlLabels&&r&&(r.style.width=t.length*9+"px",r.style.height="12px")}f($,"setTerminalWidth");var Tt=f((r,t)=>{d.debug("Moving label abc88 ",r.id,r.label,T.get(r.id),t);let a=t.updatedPath?t.updatedPath:t.originalPath,o=b(),{subGraphTitleTotalMargin:l}=U(o);if(r.label){let i=T.get(r.id),s=r.x,n=r.y;if(a){let e=w.calcLabelPosition(a);d.debug("Moving label "+r.label+" from (",s,",",n,") to (",e.x,",",e.y,") abc88"),t.updatedPath&&(s=e.x,n=e.y)}i.attr("transform",`translate(${s}, ${n+l/2})`)}if(r.startLabelLeft){let i=x.get(r.id).startLeft,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_left",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}if(r.startLabelRight){let i=x.get(r.id).startRight,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeStart?10:0,"start_right",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}if(r.endLabelLeft){let i=x.get(r.id).endLeft,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_left",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}if(r.endLabelRight){let i=x.get(r.id).endRight,s=r.x,n=r.y;if(a){let e=w.calcTerminalLabelPosition(r.arrowTypeEnd?10:0,"end_right",a);s=e.x,n=e.y}i.attr("transform",`translate(${s}, ${n})`)}},"positionEdgeLabel"),D=f((r,t)=>{let a=r.x,o=r.y,l=Math.abs(t.x-a),i=Math.abs(t.y-o),s=r.width/2,n=r.height/2;return l>=s||i>=n},"outsideNode"),F=f((r,t,a)=>{d.debug(`intersection calc abc89: outsidePoint: ${JSON.stringify(t)} insidePoint : ${JSON.stringify(a)} node : x:${r.x} y:${r.y} w:${r.width} h:${r.height}`);let o=r.x,l=r.y,i=Math.abs(o-a.x),s=r.width/2,n=a.xMath.abs(o-t.x)*e){let c=a.y{d.warn("abc88 cutPathAtIntersect",r,t);let a=[],o=r[0],l=!1;return r.forEach(i=>{if(d.info("abc88 checking point",i,t),!D(t,i)&&!l){let s=F(t,o,i);d.debug("abc88 inside",i,o,s),d.debug("abc88 intersection",s,t);let n=!1;a.forEach(e=>{n=n||e.x===s.x&&e.y===s.y}),a.some(e=>e.x===s.x&&e.y===s.y)?d.warn("abc88 no intersect",s,a):a.push(s),l=!0}else d.warn("abc88 outside",i,o),o=i,l||a.push(i)}),d.debug("returning points",a),a},"cutPathAtIntersect");function K(r){let t=[],a=[];for(let o=1;o5&&Math.abs(i.y-l.y)>5||l.y===i.y&&i.x===s.x&&Math.abs(i.x-l.x)>5&&Math.abs(i.y-s.y)>5)&&(t.push(i),a.push(o))}return{cornerPoints:t,cornerPointPositions:a}}f(K,"extractCornerPoints");var N=f(function(r,t,a){let o=t.x-r.x,l=t.y-r.y,i=Math.sqrt(o*o+l*l),s=a/i;return{x:t.x-s*o,y:t.y-s*l}},"findAdjacentPoint"),P=f(function(r){let{cornerPointPositions:t}=K(r),a=[];for(let o=0;o10&&Math.abs(i.y-l.y)>=10){d.debug("Corner point fixing",Math.abs(i.x-l.x),Math.abs(i.y-l.y));let y=5;s.x===n.x?m={x:p<0?n.x-y+c:n.x+y-c,y:h<0?n.y-c:n.y+c}:m={x:p<0?n.x-c:n.x+c,y:h<0?n.y-y+c:n.y+y-c}}else d.debug("Corner point skipping fixing",Math.abs(i.x-l.x),Math.abs(i.y-l.y));a.push(m,e)}else a.push(r[o]);return a},"fixCorners"),vt=f(function(r,t,a,o,l,i,s){let{handDrawnSeed:n}=b(),e=t.points,p=!1,h=l;var c=i;c.intersect&&h.intersect&&(e=e.slice(1,t.points.length-1),e.unshift(h.intersect(e[0])),d.debug("Last point APA12",t.start,"-->",t.end,e[e.length-1],c,c.intersect(e[e.length-1])),e.push(c.intersect(e[e.length-1]))),t.toCluster&&(d.info("to cluster abc88",a.get(t.toCluster)),e=q(t.points,a.get(t.toCluster).node),p=!0),t.fromCluster&&(d.debug("from cluster abc88",a.get(t.fromCluster),JSON.stringify(e,null,2)),e=q(e.reverse(),a.get(t.fromCluster).node).reverse(),p=!0);let m=e.filter(u=>!Number.isNaN(u.y));m=P(m);let y=R;t.curve&&(y=t.curve);let{x:G,y:V}=O(t),j=W().x(G).y(V).curve(y),k;switch(t.thickness){case"normal":k="edge-thickness-normal";break;case"thick":k="edge-thickness-thick";break;case"invisible":k="edge-thickness-invisible";break;default:k="edge-thickness-normal"}switch(t.pattern){case"solid":k+=" edge-pattern-solid";break;case"dotted":k+=" edge-pattern-dotted";break;case"dashed":k+=" edge-pattern-dashed";break;default:k+=" edge-pattern-solid"}let g,B=j(m),S=Array.isArray(t.style)?t.style:[t.style];if(t.look==="handDrawn"){let u=Y.svg(r);Object.assign([],m);let _=u.path(B,{roughness:.3,seed:n});k+=" transition",g=C(_).select("path").attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")).attr("style",S?S.reduce((J,Q)=>J+";"+Q,""):"");let I=g.attr("d");g.attr("d",I),r.node().appendChild(g.node())}else g=r.append("path").attr("d",B).attr("id",t.id).attr("class"," "+k+(t.classes?" "+t.classes:"")).attr("style",S?S.reduce((u,_)=>u+";"+_,""):"");let E="";(b().flowchart.arrowMarkerAbsolute||b().state.arrowMarkerAbsolute)&&(E=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,E=E.replace(/\(/g,"\\(").replace(/\)/g,"\\)")),d.info("arrowTypeStart",t.arrowTypeStart),d.info("arrowTypeEnd",t.arrowTypeEnd),A(g,t,E,s,o);let v={};return p&&(v.updatedPath=e),v.originalPath=t.points,v},"insertEdge");var tt=f((r,t,a,o)=>{t.forEach(l=>{pt[l](r,a,o)})},"insertMarkers"),rt=f((r,t,a)=>{d.trace("Making markers for ",a),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionStart").attr("class","marker extension "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 1,7 L18,13 V 1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-extensionEnd").attr("class","marker extension "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 1,1 V 13 L18,7 Z")},"extension"),at=f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionStart").attr("class","marker composition "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-compositionEnd").attr("class","marker composition "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"composition"),et=f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationStart").attr("class","marker aggregation "+t).attr("refX",18).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-aggregationEnd").attr("class","marker aggregation "+t).attr("refX",1).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L1,7 L9,1 Z")},"aggregation"),st=f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyStart").attr("class","marker dependency "+t).attr("refX",6).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("path").attr("d","M 5,7 L9,13 L1,7 L9,1 Z"),r.append("defs").append("marker").attr("id",a+"_"+t+"-dependencyEnd").attr("class","marker dependency "+t).attr("refX",13).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 18,7 L9,13 L14,7 L9,1 Z")},"dependency"),nt=f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopStart").attr("class","marker lollipop "+t).attr("refX",13).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6),r.append("defs").append("marker").attr("id",a+"_"+t+"-lollipopEnd").attr("class","marker lollipop "+t).attr("refX",1).attr("refY",7).attr("markerWidth",190).attr("markerHeight",240).attr("orient","auto").append("circle").attr("stroke","black").attr("fill","transparent").attr("cx",7).attr("cy",7).attr("r",6)},"lollipop"),ot=f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-pointEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 0 L 10 5 L 0 10 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-pointStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",4.5).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",8).attr("markerHeight",8).attr("orient","auto").append("path").attr("d","M 0 5 L 10 10 L 10 0 z").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"point"),it=f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-circleEnd").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",11).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-circleStart").attr("class","marker "+t).attr("viewBox","0 0 10 10").attr("refX",-1).attr("refY",5).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("circle").attr("cx","5").attr("cy","5").attr("r","5").attr("class","arrowMarkerPath").style("stroke-width",1).style("stroke-dasharray","1,0")},"circle"),lt=f((r,t,a)=>{r.append("marker").attr("id",a+"_"+t+"-crossEnd").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",12).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0"),r.append("marker").attr("id",a+"_"+t+"-crossStart").attr("class","marker cross "+t).attr("viewBox","0 0 11 11").attr("refX",-1).attr("refY",5.2).attr("markerUnits","userSpaceOnUse").attr("markerWidth",11).attr("markerHeight",11).attr("orient","auto").append("path").attr("d","M 1,1 l 9,9 M 10,1 l -9,9").attr("class","arrowMarkerPath").style("stroke-width",2).style("stroke-dasharray","1,0")},"cross"),ct=f((r,t,a)=>{r.append("defs").append("marker").attr("id",a+"_"+t+"-barbEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",14).attr("markerUnits","userSpaceOnUse").attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"barb"),pt={extension:rt,composition:at,aggregation:et,dependency:st,lollipop:nt,point:ot,circle:it,cross:lt,barb:ct},Ht=tt;export{Et as a,$t as b,Tt as c,vt as d,Ht as e}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-LGTRVITY.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-LGTRVITY.mjs deleted file mode 100644 index 6eddaa4f7..000000000 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-LGTRVITY.mjs +++ /dev/null @@ -1 +0,0 @@ -import{a as o,b as i,c as e,d as t}from"./chunk-UBDM6ZOM.mjs";import"./chunk-4YMK7POB.mjs";import"./chunk-LD4SFGBK.mjs";import"./chunk-4DJOK3GT.mjs";import"./chunk-A7EQIZZO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var f={parser:o,db:i,renderer:t,styles:e,init:a(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i.clear()},"init")};export{f as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-QKCJ6K63.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-QKCJ6K63.mjs new file mode 100644 index 000000000..357f5409b --- /dev/null +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-QKCJ6K63.mjs @@ -0,0 +1 @@ +import{a as o,b as i,c as e,d as t}from"./chunk-7CIZ4OX7.mjs";import"./chunk-P7KHIEPL.mjs";import"./chunk-54VS5GG6.mjs";import"./chunk-ZUCAP7FR.mjs";import"./chunk-E7A2AWYO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var f={parser:o,db:i,renderer:t,styles:e,init:a(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i.clear()},"init")};export{f as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-v2-2JHJIACG.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-v2-2JHJIACG.mjs new file mode 100644 index 000000000..357f5409b --- /dev/null +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-v2-2JHJIACG.mjs @@ -0,0 +1 @@ +import{a as o,b as i,c as e,d as t}from"./chunk-7CIZ4OX7.mjs";import"./chunk-P7KHIEPL.mjs";import"./chunk-54VS5GG6.mjs";import"./chunk-ZUCAP7FR.mjs";import"./chunk-E7A2AWYO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var f={parser:o,db:i,renderer:t,styles:e,init:a(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i.clear()},"init")};export{f as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-v2-UI22WKGF.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-v2-UI22WKGF.mjs deleted file mode 100644 index 6eddaa4f7..000000000 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/classDiagram-v2-UI22WKGF.mjs +++ /dev/null @@ -1 +0,0 @@ -import{a as o,b as i,c as e,d as t}from"./chunk-UBDM6ZOM.mjs";import"./chunk-4YMK7POB.mjs";import"./chunk-LD4SFGBK.mjs";import"./chunk-4DJOK3GT.mjs";import"./chunk-A7EQIZZO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var f={parser:o,db:i,renderer:t,styles:e,init:a(r=>{r.class||(r.class={}),r.class.arrowMarkerAbsolute=r.arrowMarkerAbsolute,i.clear()},"init")};export{f as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/dagre-2P6XN26F.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/dagre-RF25WEIW.mjs similarity index 95% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/dagre-2P6XN26F.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/dagre-RF25WEIW.mjs index 3cc59e3be..785a7ddde 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/dagre-2P6XN26F.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/dagre-RF25WEIW.mjs @@ -1,4 +1,4 @@ -import{a as R,b as M,c as F,d as U,e as Y}from"./chunk-4DJOK3GT.mjs";import{b as G,f as _,g as T,h as H,i as j,j as V,k as O}from"./chunk-A7EQIZZO.mjs";import"./chunk-S67DUUA5.mjs";import{a as A}from"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import{a as z}from"./chunk-FASC7IG4.mjs";import{a as C}from"./chunk-ZN7TASNU.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{X as B,b as i}from"./chunk-ITX3UAHE.mjs";import{D as N,e as q,s as k}from"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as g}from"./chunk-GTKDMUJJ.mjs";function h(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:re(e),edges:se(e)};return N(e.graph())||(t.value=q(e.graph())),t}g(h,"write");function re(e){return k(e.nodes(),function(t){var n=e.node(t),c=e.parent(t),s={v:t};return N(n)||(s.value=n),N(c)||(s.parent=c),s})}g(re,"writeNodes");function se(e){return k(e.edges(),function(t){var n=e.edge(t),c={v:t.v,w:t.w};return N(t.name)||(c.name=t.name),N(n)||(c.value=n),c})}g(se,"writeEdges");var a=new Map,v=new Map,W=new Map,Z=g(()=>{v.clear(),W.clear(),a.clear()},"clear"),J=g((e,t)=>{let n=v.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),ce=g((e,t)=>{let n=v.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||J(e.v,t)||J(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),$=g((e,t,n,c)=>{i.warn("Copying children of ",e,"root",c,"data",t.node(e),c);let s=t.children(e)||[];e!==c&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)$(o,t,n,c);else{let l=t.node(o);i.info("cp ",o," to ",c," with parent ",e),n.setNode(o,l),c!==t.parent(o)&&(i.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==c&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",c,"data",t.node(e),c),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==c,"node!==clusterId",o!==e));let u=t.edges(o);i.debug("Copying Edges",u),u.forEach(d=>{i.info("Edge",d);let m=t.edge(d.v,d.w,d.name);i.info("Edge data",m,c);try{ce(d,c)?(i.info("Copying as ",d.v,d.w,m,d.name),n.setEdge(d.v,d.w,m,d.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",c," clusterId:",e)}catch(p){i.error(p)}})}i.debug("Removing node",o),t.removeNode(o)})},"copy"),L=g((e,t)=>{let n=t.children(e),c=[...n];for(let s of n)W.set(s,e),c=[...c,...L(s,t)];return c},"extractDescendants");var ae=g((e,t,n)=>{let c=e.edges().filter(d=>d.v===t||d.w===t),s=e.edges().filter(d=>d.v===n||d.w===n),o=c.map(d=>({v:d.v===t?n:d.v,w:d.w===t?t:d.w})),l=s.map(d=>({v:d.v,w:d.w}));return o.filter(d=>l.some(m=>d.v===m.v&&d.w===m.w))},"findCommonEdges"),y=g((e,t,n)=>{let c=t.children(e);if(i.trace("Searching children of id ",e,c),c.length<1)return e;let s;for(let o of c){let l=y(o,t,n),u=ae(t,n,l);if(l)if(u.length>0)s=l;else return l}return s},"findNonClusterChild"),Q=g(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),I=g((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",y(n,e,n)),v.set(n,L(n,e)),a.set(n,{id:y(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let c=e.children(n),s=e.edges();c.length>0?(i.debug("Cluster identified",n,v),s.forEach(o=>{let l=J(o.v,n),u=J(o.w,n);l^u&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",v.get(n)),a.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,v)});for(let n of a.keys()){let c=a.get(n).id,s=e.parent(c);s!==n&&a.has(s)&&!a.get(s).externalConnections&&(a.get(n).id=s)}e.edges().forEach(function(n){let c=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),s=Q(n.v),o=Q(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){let l=e.parent(s);a.get(l).externalConnections=!0,c.fromCluster=n.v}if(o!==n.w){let l=e.parent(o);a.get(l).externalConnections=!0,c.toCluster=n.w}i.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,c,n.name)}}),i.warn("Adjusted Graph",h(e)),ee(e,0),i.trace(a)},"adjustClustersAndEdges"),ee=g((e,t)=>{if(i.warn("extractor - ",t,h(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),c=!1;for(let s of n){let o=e.children(s);c=c||o.length>0}if(!c){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(let s of n)if(i.debug("Extracting node",s,a,a.has(s)&&!a.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a.has(s))i.debug("Not a cluster",s,t);else if(!a.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let l=e.graph().rankdir==="TB"?"LR":"TB";a.get(s)?.clusterData?.dir&&(l=a.get(s).clusterData.dir,i.warn("Fixing dir",a.get(s).clusterData.dir,l));let u=new C({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",h(e)),$(s,e,u,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a.get(s).clusterData,label:a.get(s).label,graph:u}),i.warn("New graph after copy node: (",s,")",h(u)),i.debug("Old graph after copy",h(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(a);n=e.nodes(),i.warn("New list of nodes",n);for(let s of n){let o=e.node(s);i.warn(" Now next level",s,o),o?.clusterNode&&ee(o.graph,t+1)}},"extractor"),ne=g((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(c=>{let s=e.children(c),o=ne(e,s);n=[...n,...o]}),n},"sorter"),te=g(e=>ne(e,e.children()),"sortNodesByHierarchy");var ie=g(async(e,t,n,c,s,o)=>{i.warn("Graph in recursive render:XAX",h(t),s);let l=t.graph().rankdir;i.trace("Dir in recursive render - dir:",l);let u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));let d=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),p=u.insert("g").attr("class","edgeLabels"),b=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(f){let r=t.node(f);if(s!==void 0){let w=JSON.parse(JSON.stringify(s.clusterData));i.trace(`Setting data for parent cluster XXX +import{a as R,b as M,c as F,d as U,e as Y}from"./chunk-ZUCAP7FR.mjs";import{b as G,f as _,g as T,h as H,i as j,j as V,k as O}from"./chunk-E7A2AWYO.mjs";import"./chunk-S67DUUA5.mjs";import{a as A}from"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import{a as z}from"./chunk-FASC7IG4.mjs";import{a as C}from"./chunk-ZN7TASNU.mjs";import"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{X as B,b as i}from"./chunk-OR2G2HG5.mjs";import{D as N,e as q,s as k}from"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as g}from"./chunk-GTKDMUJJ.mjs";function h(e){var t={options:{directed:e.isDirected(),multigraph:e.isMultigraph(),compound:e.isCompound()},nodes:re(e),edges:se(e)};return N(e.graph())||(t.value=q(e.graph())),t}g(h,"write");function re(e){return k(e.nodes(),function(t){var n=e.node(t),c=e.parent(t),s={v:t};return N(n)||(s.value=n),N(c)||(s.parent=c),s})}g(re,"writeNodes");function se(e){return k(e.edges(),function(t){var n=e.edge(t),c={v:t.v,w:t.w};return N(t.name)||(c.name=t.name),N(n)||(c.value=n),c})}g(se,"writeEdges");var a=new Map,v=new Map,W=new Map,Z=g(()=>{v.clear(),W.clear(),a.clear()},"clear"),J=g((e,t)=>{let n=v.get(t)||[];return i.trace("In isDescendant",t," ",e," = ",n.includes(e)),n.includes(e)},"isDescendant"),ce=g((e,t)=>{let n=v.get(t)||[];return i.info("Descendants of ",t," is ",n),i.info("Edge is ",e),e.v===t||e.w===t?!1:n?n.includes(e.v)||J(e.v,t)||J(e.w,t)||n.includes(e.w):(i.debug("Tilt, ",t,",not in descendants"),!1)},"edgeInCluster"),$=g((e,t,n,c)=>{i.warn("Copying children of ",e,"root",c,"data",t.node(e),c);let s=t.children(e)||[];e!==c&&s.push(e),i.warn("Copying (nodes) clusterId",e,"nodes",s),s.forEach(o=>{if(t.children(o).length>0)$(o,t,n,c);else{let l=t.node(o);i.info("cp ",o," to ",c," with parent ",e),n.setNode(o,l),c!==t.parent(o)&&(i.warn("Setting parent",o,t.parent(o)),n.setParent(o,t.parent(o))),e!==c&&o!==e?(i.debug("Setting parent",o,e),n.setParent(o,e)):(i.info("In copy ",e,"root",c,"data",t.node(e),c),i.debug("Not Setting parent for node=",o,"cluster!==rootId",e!==c,"node!==clusterId",o!==e));let u=t.edges(o);i.debug("Copying Edges",u),u.forEach(d=>{i.info("Edge",d);let m=t.edge(d.v,d.w,d.name);i.info("Edge data",m,c);try{ce(d,c)?(i.info("Copying as ",d.v,d.w,m,d.name),n.setEdge(d.v,d.w,m,d.name),i.info("newGraph edges ",n.edges(),n.edge(n.edges()[0]))):i.info("Skipping copy of edge ",d.v,"-->",d.w," rootId: ",c," clusterId:",e)}catch(p){i.error(p)}})}i.debug("Removing node",o),t.removeNode(o)})},"copy"),L=g((e,t)=>{let n=t.children(e),c=[...n];for(let s of n)W.set(s,e),c=[...c,...L(s,t)];return c},"extractDescendants");var ae=g((e,t,n)=>{let c=e.edges().filter(d=>d.v===t||d.w===t),s=e.edges().filter(d=>d.v===n||d.w===n),o=c.map(d=>({v:d.v===t?n:d.v,w:d.w===t?t:d.w})),l=s.map(d=>({v:d.v,w:d.w}));return o.filter(d=>l.some(m=>d.v===m.v&&d.w===m.w))},"findCommonEdges"),y=g((e,t,n)=>{let c=t.children(e);if(i.trace("Searching children of id ",e,c),c.length<1)return e;let s;for(let o of c){let l=y(o,t,n),u=ae(t,n,l);if(l)if(u.length>0)s=l;else return l}return s},"findNonClusterChild"),Q=g(e=>!a.has(e)||!a.get(e).externalConnections?e:a.has(e)?a.get(e).id:e,"getAnchorId"),I=g((e,t)=>{if(!e||t>10){i.debug("Opting out, no graph ");return}else i.debug("Opting in, graph ");e.nodes().forEach(function(n){e.children(n).length>0&&(i.warn("Cluster identified",n," Replacement id in edges: ",y(n,e,n)),v.set(n,L(n,e)),a.set(n,{id:y(n,e,n),clusterData:e.node(n)}))}),e.nodes().forEach(function(n){let c=e.children(n),s=e.edges();c.length>0?(i.debug("Cluster identified",n,v),s.forEach(o=>{let l=J(o.v,n),u=J(o.w,n);l^u&&(i.warn("Edge: ",o," leaves cluster ",n),i.warn("Descendants of XXX ",n,": ",v.get(n)),a.get(n).externalConnections=!0)})):i.debug("Not a cluster ",n,v)});for(let n of a.keys()){let c=a.get(n).id,s=e.parent(c);s!==n&&a.has(s)&&!a.get(s).externalConnections&&(a.get(n).id=s)}e.edges().forEach(function(n){let c=e.edge(n);i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(n)),i.warn("Edge "+n.v+" -> "+n.w+": "+JSON.stringify(e.edge(n)));let s=n.v,o=n.w;if(i.warn("Fix XXX",a,"ids:",n.v,n.w,"Translating: ",a.get(n.v)," --- ",a.get(n.w)),a.get(n.v)||a.get(n.w)){if(i.warn("Fixing and trying - removing XXX",n.v,n.w,n.name),s=Q(n.v),o=Q(n.w),e.removeEdge(n.v,n.w,n.name),s!==n.v){let l=e.parent(s);a.get(l).externalConnections=!0,c.fromCluster=n.v}if(o!==n.w){let l=e.parent(o);a.get(l).externalConnections=!0,c.toCluster=n.w}i.warn("Fix Replacing with XXX",s,o,n.name),e.setEdge(s,o,c,n.name)}}),i.warn("Adjusted Graph",h(e)),ee(e,0),i.trace(a)},"adjustClustersAndEdges"),ee=g((e,t)=>{if(i.warn("extractor - ",t,h(e),e.children("D")),t>10){i.error("Bailing out");return}let n=e.nodes(),c=!1;for(let s of n){let o=e.children(s);c=c||o.length>0}if(!c){i.debug("Done, no node has children",e.nodes());return}i.debug("Nodes = ",n,t);for(let s of n)if(i.debug("Extracting node",s,a,a.has(s)&&!a.get(s).externalConnections,!e.parent(s),e.node(s),e.children("D")," Depth ",t),!a.has(s))i.debug("Not a cluster",s,t);else if(!a.get(s).externalConnections&&e.children(s)&&e.children(s).length>0){i.warn("Cluster without external connections, without a parent and with children",s,t);let l=e.graph().rankdir==="TB"?"LR":"TB";a.get(s)?.clusterData?.dir&&(l=a.get(s).clusterData.dir,i.warn("Fixing dir",a.get(s).clusterData.dir,l));let u=new C({multigraph:!0,compound:!0}).setGraph({rankdir:l,nodesep:50,ranksep:50,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}});i.warn("Old graph before copy",h(e)),$(s,e,u,s),e.setNode(s,{clusterNode:!0,id:s,clusterData:a.get(s).clusterData,label:a.get(s).label,graph:u}),i.warn("New graph after copy node: (",s,")",h(u)),i.debug("Old graph after copy",h(e))}else i.warn("Cluster ** ",s," **not meeting the criteria !externalConnections:",!a.get(s).externalConnections," no parent: ",!e.parent(s)," children ",e.children(s)&&e.children(s).length>0,e.children("D"),t),i.debug(a);n=e.nodes(),i.warn("New list of nodes",n);for(let s of n){let o=e.node(s);i.warn(" Now next level",s,o),o?.clusterNode&&ee(o.graph,t+1)}},"extractor"),ne=g((e,t)=>{if(t.length===0)return[];let n=Object.assign([],t);return t.forEach(c=>{let s=e.children(c),o=ne(e,s);n=[...n,...o]}),n},"sorter"),te=g(e=>ne(e,e.children()),"sortNodesByHierarchy");var ie=g(async(e,t,n,c,s,o)=>{i.warn("Graph in recursive render:XAX",h(t),s);let l=t.graph().rankdir;i.trace("Dir in recursive render - dir:",l);let u=e.insert("g").attr("class","root");t.nodes()?i.info("Recursive render XXX",t.nodes()):i.info("No nodes found for",t),t.edges().length>0&&i.info("Recursive edges",t.edge(t.edges()[0]));let d=u.insert("g").attr("class","clusters"),m=u.insert("g").attr("class","edgePaths"),p=u.insert("g").attr("class","edgeLabels"),b=u.insert("g").attr("class","nodes");await Promise.all(t.nodes().map(async function(f){let r=t.node(f);if(s!==void 0){let w=JSON.parse(JSON.stringify(s.clusterData));i.trace(`Setting data for parent cluster XXX Node.id = `,f,` data=`,w.height,` Parent cluster`,s.height),t.setNode(s.id,w),t.parent(f)||(i.trace("Setting parent",f,s.id),t.setParent(f,s.id,w))}if(i.info("(Insert) Node XXX"+f+": "+JSON.stringify(t.node(f))),r?.clusterNode){i.info("Cluster identified XBX",f,r.width,t.node(f));let{ranksep:w,nodesep:X}=t.graph();r.graph.setGraph({...r.graph.graph(),ranksep:w+25,nodesep:X});let E=await ie(b,r.graph,n,c,t.node(f),o),D=E.elem;G(r,D),r.diff=E.diff||0,i.info("New compound node after recursive render XAX",f,"width",r.width,"height",r.height),j(D,r)}else t.children(f).length>0?(i.trace("Cluster - the non recursive path XBX",f,r.id,r,r.width,"Graph:",t),i.trace(y(r.id,t)),a.set(r.id,{id:y(r.id,t),node:r})):(i.trace("Node - the non recursive path XAX",f,b,t.node(f),l),await H(b,t.node(f),{config:o,dir:l}))})),await g(async()=>{let f=t.edges().map(async function(r){let w=t.edge(r.v,r.w,r.name);i.info("Edge "+r.v+" -> "+r.w+": "+JSON.stringify(r)),i.info("Edge "+r.v+" -> "+r.w+": ",r," ",JSON.stringify(t.edge(r))),i.info("Fix",a,"ids:",r.v,r.w,"Translating: ",a.get(r.v),a.get(r.w)),await M(p,w)});await Promise.all(f)},"processEdges")(),i.info("Graph before layout:",JSON.stringify(h(t))),i.info("############################################# XXX"),i.info("### Layout ### XXX"),i.info("############################################# XXX"),z(t),i.info("Graph after layout:",JSON.stringify(h(t)));let P=0,{subGraphTitleTotalMargin:S}=A(o);return await Promise.all(te(t).map(async function(f){let r=t.node(f);if(i.info("Position XBX => "+f+": ("+r.x,","+r.y,") width: ",r.width," height: ",r.height),r?.clusterNode)r.y+=S,i.info("A tainted cluster node XBX1",f,r.id,r.width,r.height,r.x,r.y,t.parent(f)),a.get(r.id).node=r,O(r);else if(t.children(f).length>0){i.info("A pure cluster node XBX1",f,r.id,r.x,r.y,r.width,r.height,t.parent(f)),r.height+=S,t.node(r.parentId);let w=r?.padding/2||0,X=r?.labelBBox?.height||0,E=X-w||0;i.debug("OffsetY",E,"labelHeight",X,"halfPadding",w),await _(d,r),a.get(r.id).node=r}else{let w=t.node(r.parentId);r.y+=S/2,i.info("A regular node XBX1 - using the padding",r.id,"parent",r.parentId,r.width,r.height,r.x,r.y,"offsetY",r.offsetY,"parent",w,w?.offsetY,r),O(r)}})),t.edges().forEach(function(f){let r=t.edge(f);i.info("Edge "+f.v+" -> "+f.w+": "+JSON.stringify(r),r),r.points.forEach(D=>D.y+=S/2);let w=t.node(f.v);var X=t.node(f.w);let E=U(m,r,a,n,w,X,c);F(r,E)}),t.nodes().forEach(function(f){let r=t.node(f);i.info(f,r.type,r.diff),r.isGroup&&(P=r.diff)}),i.warn("Returning from recursive render XAX",u,P),{elem:u,diff:P}},"recursiveRender"),Se=g(async(e,t)=>{let n=new C({multigraph:!0,compound:!0}).setGraph({rankdir:e.direction,nodesep:e.config?.nodeSpacing||e.config?.flowchart?.nodeSpacing||e.nodeSpacing,ranksep:e.config?.rankSpacing||e.config?.flowchart?.rankSpacing||e.rankSpacing,marginx:8,marginy:8}).setDefaultEdgeLabel(function(){return{}}),c=t.select("g");Y(c,e.markers,e.type,e.diagramId),V(),R(),T(),Z(),e.nodes.forEach(o=>{n.setNode(o.id,{...o}),o.parentId&&n.setParent(o.id,o.parentId)}),i.debug("Edges:",e.edges),e.edges.forEach(o=>{if(o.start===o.end){let l=o.start,u=l+"---"+l+"---1",d=l+"---"+l+"---2",m=n.node(l);n.setNode(u,{domId:u,id:u,parentId:m.parentId,labelStyle:"",label:"",padding:0,shape:"labelRect",style:"",width:10,height:10}),n.setParent(u,m.parentId),n.setNode(d,{domId:d,id:d,parentId:m.parentId,labelStyle:"",padding:0,shape:"labelRect",label:"",style:"",width:10,height:10}),n.setParent(d,m.parentId);let p=structuredClone(o),b=structuredClone(o),x=structuredClone(o);p.label="",p.arrowTypeEnd="none",p.id=l+"-cyclic-special-1",b.arrowTypeEnd="none",b.id=l+"-cyclic-special-mid",x.label="",m.isGroup&&(p.fromCluster=l,x.toCluster=l),x.id=l+"-cyclic-special-2",n.setEdge(l,u,p,l+"-cyclic-special-0"),n.setEdge(u,d,b,l+"-cyclic-special-1"),n.setEdge(d,l,x,l+"-cyc{let t=u({...q,...x().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),L=a(()=>D.packet,"getPacket"),N=a(t=>{t.length>0&&D.packet.push(t)},"pushWord"),I=a(()=>{B(),D=structuredClone(T)},"clear"),d={pushWord:N,getPacket:L,getConfig:V,clear:I,setAccTitle:S,getAccTitle:$,setDiagramTitle:F,getDiagramTitle:j,getAccDescription:W,setAccDescription:w};var M=1e4,Y=a(t=>{z(t,d);let e=-1,i=[],s=1,{bitsPerRow:c}=d.getConfig();for(let{start:r,end:o,label:m}of t.blocks){if(o&&o{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*i?[t,void 0]:[{start:t.start,end:e*i-1,label:t.label},{start:e*i,end:t.end,label:t.label}]},"getNextFittingBlock"),A={parse:a(async t=>{let e=await v("packet",t);b.debug(e),Y(e)},"parse")};var H=a((t,e,i,s)=>{let c=s.db,r=c.getConfig(),{rowHeight:o,paddingY:m,bitWidth:y,bitsPerRow:l}=r,P=c.getPacket(),n=c.getDiagramTitle(),f=o+m,p=f*(P.length+1)-(n?0:o),k=y*l+2,g=G(e);g.attr("viewbox",`0 0 ${k} ${p}`),C(g,p,k,r.useMaxWidth);for(let[O,_]of P.entries())K(g,_,O,r);g.append("text").text(n).attr("x",k/2).attr("y",p-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),K=a((t,e,i,{rowHeight:s,paddingX:c,paddingY:r,bitWidth:o,bitsPerRow:m,showBits:y})=>{let l=t.append("g"),P=i*(s+r)+r;for(let n of e){let f=n.start%m*o+1,p=(n.end-n.start+1)*o-c;if(l.append("rect").attr("x",f).attr("y",P).attr("width",p).attr("height",s).attr("class","packetBlock"),l.append("text").attr("x",f+p/2).attr("y",P+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!y)continue;let k=n.end===n.start,g=P-2;l.append("text").attr("x",f+(k?p/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(n.start),k||l.append("text").attr("x",f+p).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),E={draw:H};var X={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=a(({packet:t}={})=>{let e=u(X,t);return` +import{a as z}from"./chunk-4KE642ED.mjs";import{a as v}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as G}from"./chunk-3YFHLAX3.mjs";import{l as u}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{A as x,M as C,P as B,Q as S,R as $,S as w,T as W,U as F,V as j,b,s as h}from"./chunk-OR2G2HG5.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var T={packet:[]},D=structuredClone(T),q=h.packet,V=a(()=>{let t=u({...q,...x().packet});return t.showBits&&(t.paddingY+=10),t},"getConfig"),L=a(()=>D.packet,"getPacket"),N=a(t=>{t.length>0&&D.packet.push(t)},"pushWord"),I=a(()=>{B(),D=structuredClone(T)},"clear"),d={pushWord:N,getPacket:L,getConfig:V,clear:I,setAccTitle:S,getAccTitle:$,setDiagramTitle:F,getDiagramTitle:j,getAccDescription:W,setAccDescription:w};var M=1e4,Y=a(t=>{z(t,d);let e=-1,i=[],s=1,{bitsPerRow:c}=d.getConfig();for(let{start:r,end:o,label:m}of t.blocks){if(o&&o{if(t.end===void 0&&(t.end=t.start),t.start>t.end)throw new Error(`Block start ${t.start} is greater than block end ${t.end}.`);return t.end+1<=e*i?[t,void 0]:[{start:t.start,end:e*i-1,label:t.label},{start:e*i,end:t.end,label:t.label}]},"getNextFittingBlock"),A={parse:a(async t=>{let e=await v("packet",t);b.debug(e),Y(e)},"parse")};var H=a((t,e,i,s)=>{let c=s.db,r=c.getConfig(),{rowHeight:o,paddingY:m,bitWidth:y,bitsPerRow:l}=r,P=c.getPacket(),n=c.getDiagramTitle(),f=o+m,p=f*(P.length+1)-(n?0:o),k=y*l+2,g=G(e);g.attr("viewbox",`0 0 ${k} ${p}`),C(g,p,k,r.useMaxWidth);for(let[O,_]of P.entries())K(g,_,O,r);g.append("text").text(n).attr("x",k/2).attr("y",p-f/2).attr("dominant-baseline","middle").attr("text-anchor","middle").attr("class","packetTitle")},"draw"),K=a((t,e,i,{rowHeight:s,paddingX:c,paddingY:r,bitWidth:o,bitsPerRow:m,showBits:y})=>{let l=t.append("g"),P=i*(s+r)+r;for(let n of e){let f=n.start%m*o+1,p=(n.end-n.start+1)*o-c;if(l.append("rect").attr("x",f).attr("y",P).attr("width",p).attr("height",s).attr("class","packetBlock"),l.append("text").attr("x",f+p/2).attr("y",P+s/2).attr("class","packetLabel").attr("dominant-baseline","middle").attr("text-anchor","middle").text(n.label),!y)continue;let k=n.end===n.start,g=P-2;l.append("text").attr("x",f+(k?p/2:0)).attr("y",g).attr("class","packetByte start").attr("dominant-baseline","auto").attr("text-anchor",k?"middle":"start").text(n.start),k||l.append("text").attr("x",f+p).attr("y",g).attr("class","packetByte end").attr("dominant-baseline","auto").attr("text-anchor","end").text(n.end)}},"drawWord"),E={draw:H};var X={byteFontSize:"10px",startByteColor:"black",endByteColor:"black",labelColor:"black",labelFontSize:"12px",titleColor:"black",titleFontSize:"14px",blockStrokeColor:"black",blockStrokeWidth:"1",blockFillColor:"#efefef"},R=a(({packet:t}={})=>{let e=u(X,t);return` .packetByte { font-size: ${e.byteFontSize}; } diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/erDiagram-SZV2UBQT.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/erDiagram-YH7IYH2C.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/erDiagram-SZV2UBQT.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/erDiagram-YH7IYH2C.mjs index 970403030..c14c8fdaa 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/erDiagram-SZV2UBQT.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/erDiagram-YH7IYH2C.mjs @@ -1,4 +1,4 @@ -import{a as At}from"./chunk-FASC7IG4.mjs";import{a as Tt}from"./chunk-ZN7TASNU.mjs";import{m as Nt}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{Da as Rt,H as pt,Ha as Ot,M as yt,P as _t,Q as mt,R as kt,S as Et,T as gt,U as bt,V as xt,X as P,b as K,ga as $}from"./chunk-ITX3UAHE.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var nt=function(){var t=n(function(v,i,s,c){for(s=s||{},c=v.length;c--;s[v[c]]=i);return s},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],h=[1,12],_=[1,13],p=[1,14],l=[1,15],d=[1,21],k=[1,22],E=[1,23],g=[1,24],b=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],R=[1,34],O=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],W=[1,54],M=[1,53],w=[17,34,36,38],N={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:n(function(i,s,c,f,m,a,X){var o=a.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:f.addEntity(a[o-4]),f.addEntity(a[o-2]),f.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:f.addEntity(a[o-3]),f.addAttributes(a[o-3],a[o-1]);break;case 10:f.addEntity(a[o-2]);break;case 11:f.addEntity(a[o]);break;case 12:f.addEntity(a[o-6],a[o-4]),f.addAttributes(a[o-6],a[o-1]);break;case 13:f.addEntity(a[o-5],a[o-3]);break;case 14:f.addEntity(a[o-3],a[o-1]);break;case 15:case 16:this.$=a[o].trim(),f.setAccTitle(this.$);break;case 17:case 18:this.$=a[o].trim(),f.setAccDescription(this.$);break;case 19:case 43:this.$=a[o];break;case 20:case 41:case 42:this.$=a[o].replace(/"/g,"");break;case 21:case 29:this.$=[a[o]];break;case 22:a[o].push(a[o-1]),this.$=a[o];break;case 23:this.$={attributeType:a[o-1],attributeName:a[o]};break;case 24:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeKeyTypeList:a[o]};break;case 25:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeComment:a[o]};break;case 26:this.$={attributeType:a[o-3],attributeName:a[o-2],attributeKeyTypeList:a[o-1],attributeComment:a[o]};break;case 27:case 28:case 31:this.$=a[o];break;case 30:a[o-2].push(a[o]),this.$=a[o-2];break;case 32:this.$=a[o].replace(/"/g,"");break;case 33:this.$={cardA:a[o],relType:a[o-1],cardB:a[o-2]};break;case 34:this.$=f.Cardinality.ZERO_OR_ONE;break;case 35:this.$=f.Cardinality.ZERO_OR_MORE;break;case 36:this.$=f.Cardinality.ONE_OR_MORE;break;case 37:this.$=f.Cardinality.ONLY_ONE;break;case 38:this.$=f.Cardinality.MD_PARENT;break;case 39:this.$=f.Identification.NON_IDENTIFYING;break;case 40:this.$=f.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:h,26:_,27:p,28:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:h,26:_,27:p,28:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:d,42:k,43:E,44:g,45:b}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:p,28:l},{16:30,17:[1,31],29:32,30:33,34:R},{11:35,27:p,28:l},{40:36,46:[1,37],47:[1,38]},t(O,[2,34]),t(O,[2,35]),t(O,[2,36]),t(O,[2,37]),t(O,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:R},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:d,42:k,43:E,44:g,45:b},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:W,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:M}),t(F,[2,25]),t(w,[2,29]),t(F,[2,32]),t(w,[2,31]),{16:58,17:[1,59],29:32,30:33,34:R},t(F,[2,26]),{35:60,37:W},{17:[1,61]},t(e,[2,13]),t(w,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:n(function(i,s){if(s.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=s,c}},"parseError"),parse:n(function(i){var s=this,c=[0],f=[],m=[null],a=[],X=this.table,o="",q=0,ht=0,dt=0,Wt=2,ft=1,Ut=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(H.yy[tt]=this.yy[tt]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Ht=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){c.length=c.length-2*D,m.length=m.length-D,a.length=a.length-D}n(ke,"popStack");function zt(){var D;return D=f.pop()||A.lex()||ft,typeof D!="number"&&(D instanceof Array&&(f=D,D=f.pop()),D=s.symbols_[D]||D),D}n(zt,"lex");for(var I,rt,z,L,Ee,at,G={},J,U,ut,j;;){if(z=c[c.length-1],this.defaultActions[z]?L=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=zt()),L=X[z]&&X[z][I]),typeof L>"u"||!L.length||!L[0]){var it="";j=[];for(J in X[z])this.terminals_[J]&&J>Wt&&j.push("'"+this.terminals_[J]+"'");A.showPosition?it="Parse error on line "+(q+1)+`: +import{a as At}from"./chunk-FASC7IG4.mjs";import{a as Tt}from"./chunk-ZN7TASNU.mjs";import{m as Nt}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{Da as Rt,H as pt,Ha as Ot,M as yt,P as _t,Q as mt,R as kt,S as Et,T as gt,U as bt,V as xt,X as P,b as K,ga as $}from"./chunk-OR2G2HG5.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var nt=function(){var t=n(function(v,i,s,c){for(s=s||{},c=v.length;c--;s[v[c]]=i);return s},"o"),e=[6,8,10,20,22,24,26,27,28],r=[1,10],u=[1,11],h=[1,12],_=[1,13],p=[1,14],l=[1,15],d=[1,21],k=[1,22],E=[1,23],g=[1,24],b=[1,25],y=[6,8,10,13,15,18,19,20,22,24,26,27,28,41,42,43,44,45],R=[1,34],O=[27,28,46,47],Z=[41,42,43,44,45],F=[17,34],W=[1,54],M=[1,53],w=[17,34,36,38],N={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,ER_DIAGRAM:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,entityName:11,relSpec:12,":":13,role:14,BLOCK_START:15,attributes:16,BLOCK_STOP:17,SQS:18,SQE:19,title:20,title_value:21,acc_title:22,acc_title_value:23,acc_descr:24,acc_descr_value:25,acc_descr_multiline_value:26,ALPHANUM:27,ENTITY_NAME:28,attribute:29,attributeType:30,attributeName:31,attributeKeyTypeList:32,attributeComment:33,ATTRIBUTE_WORD:34,attributeKeyType:35,COMMA:36,ATTRIBUTE_KEY:37,COMMENT:38,cardinality:39,relType:40,ZERO_OR_ONE:41,ZERO_OR_MORE:42,ONE_OR_MORE:43,ONLY_ONE:44,MD_PARENT:45,NON_IDENTIFYING:46,IDENTIFYING:47,WORD:48,$accept:0,$end:1},terminals_:{2:"error",4:"ER_DIAGRAM",6:"EOF",8:"SPACE",10:"NEWLINE",13:":",15:"BLOCK_START",17:"BLOCK_STOP",18:"SQS",19:"SQE",20:"title",21:"title_value",22:"acc_title",23:"acc_title_value",24:"acc_descr",25:"acc_descr_value",26:"acc_descr_multiline_value",27:"ALPHANUM",28:"ENTITY_NAME",34:"ATTRIBUTE_WORD",36:"COMMA",37:"ATTRIBUTE_KEY",38:"COMMENT",41:"ZERO_OR_ONE",42:"ZERO_OR_MORE",43:"ONE_OR_MORE",44:"ONLY_ONE",45:"MD_PARENT",46:"NON_IDENTIFYING",47:"IDENTIFYING",48:"WORD"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,5],[9,4],[9,3],[9,1],[9,7],[9,6],[9,4],[9,2],[9,2],[9,2],[9,1],[11,1],[11,1],[16,1],[16,2],[29,2],[29,3],[29,3],[29,4],[30,1],[31,1],[32,1],[32,3],[35,1],[33,1],[12,3],[39,1],[39,1],[39,1],[39,1],[39,1],[40,1],[40,1],[14,1],[14,1],[14,1]],performAction:n(function(i,s,c,f,m,a,X){var o=a.length-1;switch(m){case 1:break;case 2:this.$=[];break;case 3:a[o-1].push(a[o]),this.$=a[o-1];break;case 4:case 5:this.$=a[o];break;case 6:case 7:this.$=[];break;case 8:f.addEntity(a[o-4]),f.addEntity(a[o-2]),f.addRelationship(a[o-4],a[o],a[o-2],a[o-3]);break;case 9:f.addEntity(a[o-3]),f.addAttributes(a[o-3],a[o-1]);break;case 10:f.addEntity(a[o-2]);break;case 11:f.addEntity(a[o]);break;case 12:f.addEntity(a[o-6],a[o-4]),f.addAttributes(a[o-6],a[o-1]);break;case 13:f.addEntity(a[o-5],a[o-3]);break;case 14:f.addEntity(a[o-3],a[o-1]);break;case 15:case 16:this.$=a[o].trim(),f.setAccTitle(this.$);break;case 17:case 18:this.$=a[o].trim(),f.setAccDescription(this.$);break;case 19:case 43:this.$=a[o];break;case 20:case 41:case 42:this.$=a[o].replace(/"/g,"");break;case 21:case 29:this.$=[a[o]];break;case 22:a[o].push(a[o-1]),this.$=a[o];break;case 23:this.$={attributeType:a[o-1],attributeName:a[o]};break;case 24:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeKeyTypeList:a[o]};break;case 25:this.$={attributeType:a[o-2],attributeName:a[o-1],attributeComment:a[o]};break;case 26:this.$={attributeType:a[o-3],attributeName:a[o-2],attributeKeyTypeList:a[o-1],attributeComment:a[o]};break;case 27:case 28:case 31:this.$=a[o];break;case 30:a[o-2].push(a[o]),this.$=a[o-2];break;case 32:this.$=a[o].replace(/"/g,"");break;case 33:this.$={cardA:a[o],relType:a[o-1],cardB:a[o-2]};break;case 34:this.$=f.Cardinality.ZERO_OR_ONE;break;case 35:this.$=f.Cardinality.ZERO_OR_MORE;break;case 36:this.$=f.Cardinality.ONE_OR_MORE;break;case 37:this.$=f.Cardinality.ONLY_ONE;break;case 38:this.$=f.Cardinality.MD_PARENT;break;case 39:this.$=f.Identification.NON_IDENTIFYING;break;case 40:this.$=f.Identification.IDENTIFYING;break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:9,20:r,22:u,24:h,26:_,27:p,28:l},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:16,11:9,20:r,22:u,24:h,26:_,27:p,28:l},t(e,[2,5]),t(e,[2,6]),t(e,[2,11],{12:17,39:20,15:[1,18],18:[1,19],41:d,42:k,43:E,44:g,45:b}),{21:[1,26]},{23:[1,27]},{25:[1,28]},t(e,[2,18]),t(y,[2,19]),t(y,[2,20]),t(e,[2,4]),{11:29,27:p,28:l},{16:30,17:[1,31],29:32,30:33,34:R},{11:35,27:p,28:l},{40:36,46:[1,37],47:[1,38]},t(O,[2,34]),t(O,[2,35]),t(O,[2,36]),t(O,[2,37]),t(O,[2,38]),t(e,[2,15]),t(e,[2,16]),t(e,[2,17]),{13:[1,39]},{17:[1,40]},t(e,[2,10]),{16:41,17:[2,21],29:32,30:33,34:R},{31:42,34:[1,43]},{34:[2,27]},{19:[1,44]},{39:45,41:d,42:k,43:E,44:g,45:b},t(Z,[2,39]),t(Z,[2,40]),{14:46,27:[1,49],28:[1,48],48:[1,47]},t(e,[2,9]),{17:[2,22]},t(F,[2,23],{32:50,33:51,35:52,37:W,38:M}),t([17,34,37,38],[2,28]),t(e,[2,14],{15:[1,55]}),t([27,28],[2,33]),t(e,[2,8]),t(e,[2,41]),t(e,[2,42]),t(e,[2,43]),t(F,[2,24],{33:56,36:[1,57],38:M}),t(F,[2,25]),t(w,[2,29]),t(F,[2,32]),t(w,[2,31]),{16:58,17:[1,59],29:32,30:33,34:R},t(F,[2,26]),{35:60,37:W},{17:[1,61]},t(e,[2,13]),t(w,[2,30]),t(e,[2,12])],defaultActions:{34:[2,27],41:[2,22]},parseError:n(function(i,s){if(s.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=s,c}},"parseError"),parse:n(function(i){var s=this,c=[0],f=[],m=[null],a=[],X=this.table,o="",q=0,ht=0,dt=0,Wt=2,ft=1,Ut=a.slice.call(arguments,1),A=Object.create(this.lexer),H={yy:{}};for(var tt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,tt)&&(H.yy[tt]=this.yy[tt]);A.setInput(i,H.yy),H.yy.lexer=A,H.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var et=A.yylloc;a.push(et);var Ht=A.options&&A.options.ranges;typeof H.yy.parseError=="function"?this.parseError=H.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(D){c.length=c.length-2*D,m.length=m.length-D,a.length=a.length-D}n(ke,"popStack");function zt(){var D;return D=f.pop()||A.lex()||ft,typeof D!="number"&&(D instanceof Array&&(f=D,D=f.pop()),D=s.symbols_[D]||D),D}n(zt,"lex");for(var I,rt,z,L,Ee,at,G={},J,U,ut,j;;){if(z=c[c.length-1],this.defaultActions[z]?L=this.defaultActions[z]:((I===null||typeof I>"u")&&(I=zt()),L=X[z]&&X[z][I]),typeof L>"u"||!L.length||!L[0]){var it="";j=[];for(J in X[z])this.terminals_[J]&&J>Wt&&j.push("'"+this.terminals_[J]+"'");A.showPosition?it="Parse error on line "+(q+1)+`: `+A.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[I]||I)+"'":it="Parse error on line "+(q+1)+": Unexpected "+(I==ft?"end of input":"'"+(this.terminals_[I]||I)+"'"),this.parseError(it,{text:A.match,token:this.terminals_[I]||I,line:A.yylineno,loc:et,expected:j})}if(L[0]instanceof Array&&L.length>1)throw new Error("Parse Error: multiple actions possible at state: "+z+", token: "+I);switch(L[0]){case 1:c.push(I),m.push(A.yytext),a.push(A.yylloc),c.push(L[1]),I=null,rt?(I=rt,rt=null):(ht=A.yyleng,o=A.yytext,q=A.yylineno,et=A.yylloc,dt>0&&dt--);break;case 2:if(U=this.productions_[L[1]][1],G.$=m[m.length-U],G._$={first_line:a[a.length-(U||1)].first_line,last_line:a[a.length-1].last_line,first_column:a[a.length-(U||1)].first_column,last_column:a[a.length-1].last_column},Ht&&(G._$.range=[a[a.length-(U||1)].range[0],a[a.length-1].range[1]]),at=this.performAction.apply(G,[o,ht,q,H.yy,L[1],m,a].concat(Ut)),typeof at<"u")return at;U&&(c=c.slice(0,-1*U*2),m=m.slice(0,-1*U),a=a.slice(0,-1*U)),c.push(this.productions_[L[1]][0]),m.push(G.$),a.push(G._$),ut=X[c[c.length-2]][c[c.length-1]],c.push(ut);break;case 3:return!0}}return!0},"parse")},T=function(){var v={EOF:1,parseError:n(function(s,c){if(this.yy.parser)this.yy.parser.parseError(s,c);else throw new Error(s)},"parseError"),setInput:n(function(i,s){return this.yy=s||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var s=i.match(/(?:\r\n?|\n).*/g);return s?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:n(function(i){var s=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-s),this.offset-=s;var f=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var m=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===f.length?this.yylloc.first_column:0)+f[f.length-c.length].length-c[0].length:this.yylloc.first_column-s},this.options.ranges&&(this.yylloc.range=[m[0],m[0]+this.yyleng-s]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(i){this.unput(this.match.slice(i))},"less"),pastInput:n(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var i=this.pastInput(),s=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/flowDiagram-INP2BB3V.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/flowDiagram-7QVFXBRT.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/flowDiagram-INP2BB3V.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/flowDiagram-7QVFXBRT.mjs index 8f9bdf38a..3e0654c4d 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/flowDiagram-INP2BB3V.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/flowDiagram-7QVFXBRT.mjs @@ -1,4 +1,4 @@ -import{a as bt,b as mt}from"./chunk-4YMK7POB.mjs";import{a as pt,b as gt}from"./chunk-7LIB5WBN.mjs";import{b as kt,c as At}from"./chunk-LD4SFGBK.mjs";import"./chunk-4DJOK3GT.mjs";import{e as ft}from"./chunk-A7EQIZZO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import{m as je,p as dt}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{L as rt,P as nt,Q as it,R as at,S as ut,T as ot,U as lt,V as ct,X as ke,Y as p1,Z as ht,b as J,ga as de,l as tt,m as st}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as u}from"./chunk-GTKDMUJJ.mjs";var Ot="flowchart-",Et=0,Ue=ke(),Ae=new Map,j=[],Ye=new Map,fe=[],k1=new Map,A1=new Map,e1=0,g1=!0,Z,t1,s1=[],r1=u(e=>rt.sanitizeText(e,Ue),"sanitizeText"),n1=u(function(e){for(let r of Ae.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Mt=u(function(e,r,n,i,o,f,g={},S){if(!e||e.trim().length===0)return;let h,l=Ae.get(e);if(l===void 0&&(l={id:e,labelType:"text",domId:Ot+e+"-"+Et,styles:[],classes:[]},Ae.set(e,l)),Et++,r!==void 0?(Ue=ke(),h=r1(r.text.trim()),l.labelType=r.type,h.startsWith('"')&&h.endsWith('"')&&(h=h.substring(1,h.length-1)),l.text=h):l.text===void 0&&(l.text=e),n!==void 0&&(l.type=n),i?.forEach(function(T){l.styles.push(T)}),o?.forEach(function(T){l.classes.push(T)}),f!==void 0&&(l.dir=f),l.props===void 0?l.props=g:g!==void 0&&Object.assign(l.props,g),S!==void 0){let T;S.includes(` +import{a as bt,b as mt}from"./chunk-P7KHIEPL.mjs";import{a as pt,b as gt}from"./chunk-7LIB5WBN.mjs";import{b as kt,c as At}from"./chunk-54VS5GG6.mjs";import"./chunk-ZUCAP7FR.mjs";import{e as ft}from"./chunk-E7A2AWYO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import{m as je,p as dt}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{L as rt,P as nt,Q as it,R as at,S as ut,T as ot,U as lt,V as ct,X as ke,Y as p1,Z as ht,b as J,ga as de,l as tt,m as st}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as u}from"./chunk-GTKDMUJJ.mjs";var Ot="flowchart-",Et=0,Ue=ke(),Ae=new Map,j=[],Ye=new Map,fe=[],k1=new Map,A1=new Map,e1=0,g1=!0,Z,t1,s1=[],r1=u(e=>rt.sanitizeText(e,Ue),"sanitizeText"),n1=u(function(e){for(let r of Ae.values())if(r.id===e)return r.domId;return e},"lookUpDomId"),Mt=u(function(e,r,n,i,o,f,g={},S){if(!e||e.trim().length===0)return;let h,l=Ae.get(e);if(l===void 0&&(l={id:e,labelType:"text",domId:Ot+e+"-"+Et,styles:[],classes:[]},Ae.set(e,l)),Et++,r!==void 0?(Ue=ke(),h=r1(r.text.trim()),l.labelType=r.type,h.startsWith('"')&&h.endsWith('"')&&(h=h.substring(1,h.length-1)),l.text=h):l.text===void 0&&(l.text=e),n!==void 0&&(l.type=n),i?.forEach(function(T){l.styles.push(T)}),o?.forEach(function(T){l.classes.push(T)}),f!==void 0&&(l.dir=f),l.props===void 0?l.props=g:g!==void 0&&Object.assign(l.props,g),S!==void 0){let T;S.includes(` `)?T=S+` `:T=`{ `+S+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/ganttDiagram-547IIDY5.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/ganttDiagram-7KUJEIIK.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/ganttDiagram-547IIDY5.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/ganttDiagram-7KUJEIIK.mjs index 858ba783c..1c8ac0ccb 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/ganttDiagram-547IIDY5.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/ganttDiagram-7KUJEIIK.mjs @@ -1,4 +1,4 @@ -import{m as Ct}from"./chunk-2XY5F2HY.mjs";import{a as Qt}from"./chunk-TI4EEUUG.mjs";import{L as it,M as rt,P as st,Q as at,R as ot,S as ct,T as lt,U as ut,V as dt,X as te,a as nt,b as ue,ca as ft,da as ht,ea as mt,fa as kt,ga as ke,ha as yt,ka as pt,la as Me,ma as Ae,na as Le,oa as Ie,pa as Ye,qa as gt,ra as bt,sa as xt,ta as Tt,ua as vt,va as wt,wa as _t,xa as We,ya as Fe,za as Dt}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as o,b as Ee,e as le}from"./chunk-GTKDMUJJ.mjs";var Et=Ee((Oe,Pe)=>{"use strict";(function(e,t){typeof Oe=="object"&&typeof Pe<"u"?Pe.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(Oe,function(){"use strict";var e="day";return function(t,s,a){var r=o(function(D){return D.add(4-D.isoWeekday(),e)},"a"),f=s.prototype;f.isoWeekYear=function(){return r(this).year()},f.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,L,S,F,G=r(this),z=(_=this.isoWeekYear(),L=this.$u,S=(L?a.utc:a)().year(_).startOf("year"),F=4-S.isoWeekday(),S.isoWeekday()>4&&(F+=7),S.add(F,e));return G.diff(z,"week")+1},f.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var m=f.startOf;f.startOf=function(D,_){var L=this.$utils(),S=!!L.u(_)||_;return L.p(D)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):m.bind(this)(D,_)}}})});var Mt=Ee((ze,Ne)=>{"use strict";(function(e,t){typeof ze=="object"&&typeof Ne<"u"?Ne.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(ze,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,a=/\d\d/,r=/\d\d?/,f=/\d*[^-_:/,()\s\d]+/,m={},D=o(function(p){return(p=+p)+(p>68?1900:2e3)},"a"),_=o(function(p){return function(k){this[p]=+k}},"f"),L=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var A=k.match(/([+-]|\d\d)/g),I=60*A[1]+(+A[2]||0);return I===0?0:A[0]==="+"?-I:I}(p)}],S=o(function(p){var k=m[p];return k&&(k.indexOf?k:k.s.concat(k.f))},"u"),F=o(function(p,k){var A,I=m.meridiem;if(I){for(var N=1;N<=24;N+=1)if(p.indexOf(I(N,0,k))>-1){A=N>12;break}}else A=p===(k?"pm":"PM");return A},"d"),G={A:[f,function(p){this.afternoon=F(p,!1)}],a:[f,function(p){this.afternoon=F(p,!0)}],Q:[s,function(p){this.month=3*(p-1)+1}],S:[s,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[r,_("seconds")],ss:[r,_("seconds")],m:[r,_("minutes")],mm:[r,_("minutes")],H:[r,_("hours")],h:[r,_("hours")],HH:[r,_("hours")],hh:[r,_("hours")],D:[r,_("day")],DD:[a,_("day")],Do:[f,function(p){var k=m.ordinal,A=p.match(/\d+/);if(this.day=A[0],k)for(var I=1;I<=31;I+=1)k(I).replace(/\[|\]/g,"")===p&&(this.day=I)}],w:[r,_("week")],ww:[a,_("week")],M:[r,_("month")],MM:[a,_("month")],MMM:[f,function(p){var k=S("months"),A=(S("monthsShort")||k.map(function(I){return I.slice(0,3)})).indexOf(p)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[f,function(p){var k=S("months").indexOf(p)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,_("year")],YY:[a,function(p){this.year=D(p)}],YYYY:[/\d{4}/,_("year")],Z:L,ZZ:L};function z(p){var k,A;k=p,A=m&&m.formats;for(var I=(p=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,v,b){var x=b&&b.toUpperCase();return v||A[b]||e[b]||A[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,w,c){return w||c.slice(1)})})).match(t),N=I.length,R=0;R-1)return new Date((h==="X"?1e3:1)*l);var n=z(h)(l),u=n.year,i=n.month,M=n.day,C=n.hours,E=n.minutes,P=n.seconds,Y=n.milliseconds,ae=n.zone,W=n.week,Z=new Date,ne=M||(u||i?1:Z.getDate()),ie=u||Z.getFullYear(),oe=0;u&&!i||(oe=i>0?i-1:Z.getMonth());var he,me=C||0,V=E||0,re=P||0,Q=Y||0;return ae?new Date(Date.UTC(ie,oe,ne,me,V,re,Q+60*ae.offset*1e3)):d?new Date(Date.UTC(ie,oe,ne,me,V,re,Q)):(he=new Date(ie,oe,ne,me,V,re,Q),W&&(he=T(he).week(W).toDate()),he)}catch{return new Date("")}}(K,j,U,A),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),b&&K!=this.format(j)&&(this.$d=new Date("")),m={}}else if(j instanceof Array)for(var y=j.length,w=1;w<=y;w+=1){B[1]=j[w-1];var c=A.apply(this,B);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}w===y&&(this.$d=new Date(""))}else N.call(this,R)}}})});var At=Ee((Re,Be)=>{"use strict";(function(e,t){typeof Re=="object"&&typeof Be<"u"?Be.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=t()})(Re,function(){"use strict";return function(e,t){var s=t.prototype,a=s.format;s.format=function(r){var f=this,m=this.$locale();if(!this.isValid())return a.bind(this)(r);var D=this.$utils(),_=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(L){switch(L){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return m.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return m.ordinal(f.week(),"W");case"w":case"ww":return D.s(f.week(),L==="w"?1:2,"0");case"W":case"WW":return D.s(f.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return D.s(String(f.$H===0?24:f.$H),L==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return L}});return a.bind(this)(_)}}})});var Ve=function(){var e=o(function(w,c,l,h){for(l=l||{},h=w.length;h--;l[w[h]]=c);return l},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],a=[1,27],r=[1,28],f=[1,29],m=[1,30],D=[1,31],_=[1,32],L=[1,33],S=[1,34],F=[1,9],G=[1,10],z=[1,11],p=[1,12],k=[1,13],A=[1,14],I=[1,15],N=[1,16],R=[1,19],K=[1,20],U=[1,21],B=[1,22],j=[1,23],g=[1,25],v=[1,35],b={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(c,l,h,d,T,n,u){var i=n.length-1;switch(T){case 1:return n[i-1];case 2:this.$=[];break;case 3:n[i-1].push(n[i]),this.$=n[i-1];break;case 4:case 5:this.$=n[i];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(n[i].substr(11)),this.$=n[i].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=n[i].substr(18);break;case 19:d.TopAxis(),this.$=n[i].substr(8);break;case 20:d.setAxisFormat(n[i].substr(11)),this.$=n[i].substr(11);break;case 21:d.setTickInterval(n[i].substr(13)),this.$=n[i].substr(13);break;case 22:d.setExcludes(n[i].substr(9)),this.$=n[i].substr(9);break;case 23:d.setIncludes(n[i].substr(9)),this.$=n[i].substr(9);break;case 24:d.setTodayMarker(n[i].substr(12)),this.$=n[i].substr(12);break;case 27:d.setDiagramTitle(n[i].substr(6)),this.$=n[i].substr(6);break;case 28:this.$=n[i].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=n[i].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(n[i].substr(8)),this.$=n[i].substr(8);break;case 33:d.addTask(n[i-1],n[i]),this.$="task";break;case 34:this.$=n[i-1],d.setClickEvent(n[i-1],n[i],null);break;case 35:this.$=n[i-2],d.setClickEvent(n[i-2],n[i-1],n[i]);break;case 36:this.$=n[i-2],d.setClickEvent(n[i-2],n[i-1],null),d.setLink(n[i-2],n[i]);break;case 37:this.$=n[i-3],d.setClickEvent(n[i-3],n[i-2],n[i-1]),d.setLink(n[i-3],n[i]);break;case 38:this.$=n[i-2],d.setClickEvent(n[i-2],n[i],null),d.setLink(n[i-2],n[i-1]);break;case 39:this.$=n[i-3],d.setClickEvent(n[i-3],n[i-1],n[i]),d.setLink(n[i-3],n[i-2]);break;case 40:this.$=n[i-1],d.setLink(n[i-1],n[i]);break;case 41:case 47:this.$=n[i-1]+" "+n[i];break;case 42:case 43:case 45:this.$=n[i-2]+" "+n[i-1]+" "+n[i];break;case 44:case 46:this.$=n[i-3]+" "+n[i-2]+" "+n[i-1]+" "+n[i];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:a,14:r,15:f,16:m,17:D,18:_,19:18,20:L,21:S,22:F,23:G,24:z,25:p,26:k,27:A,28:I,29:N,30:R,31:K,33:U,35:B,36:j,37:24,38:g,40:v},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:s,13:a,14:r,15:f,16:m,17:D,18:_,19:18,20:L,21:S,22:F,23:G,24:z,25:p,26:k,27:A,28:I,29:N,30:R,31:K,33:U,35:B,36:j,37:24,38:g,40:v},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:o(function(c,l){if(l.recoverable)this.trace(c);else{var h=new Error(c);throw h.hash=l,h}},"parseError"),parse:o(function(c){var l=this,h=[0],d=[],T=[null],n=[],u=this.table,i="",M=0,C=0,E=0,P=2,Y=1,ae=n.slice.call(arguments,1),W=Object.create(this.lexer),Z={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(Z.yy[ne]=this.yy[ne]);W.setInput(c,Z.yy),Z.yy.lexer=W,Z.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var ie=W.yylloc;n.push(ie);var oe=W.options&&W.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(X){h.length=h.length-2*X,T.length=T.length-X,n.length=n.length-X}o(he,"popStack");function me(){var X;return X=d.pop()||W.lex()||Y,typeof X!="number"&&(X instanceof Array&&(d=X,X=d.pop()),X=l.symbols_[X]||X),X}o(me,"lex");for(var V,re,Q,H,On,Ce,ce={},be,$,tt,xe;;){if(Q=h[h.length-1],this.defaultActions[Q]?H=this.defaultActions[Q]:((V===null||typeof V>"u")&&(V=me()),H=u[Q]&&u[Q][V]),typeof H>"u"||!H.length||!H[0]){var Se="";xe=[];for(be in u[Q])this.terminals_[be]&&be>P&&xe.push("'"+this.terminals_[be]+"'");W.showPosition?Se="Parse error on line "+(M+1)+`: +import{m as Ct}from"./chunk-UENA7NWE.mjs";import{a as Qt}from"./chunk-TI4EEUUG.mjs";import{L as it,M as rt,P as st,Q as at,R as ot,S as ct,T as lt,U as ut,V as dt,X as te,a as nt,b as ue,ca as ft,da as ht,ea as mt,fa as kt,ga as ke,ha as yt,ka as pt,la as Me,ma as Ae,na as Le,oa as Ie,pa as Ye,qa as gt,ra as bt,sa as xt,ta as Tt,ua as vt,va as wt,wa as _t,xa as We,ya as Fe,za as Dt}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as o,b as Ee,e as le}from"./chunk-GTKDMUJJ.mjs";var Et=Ee((Oe,Pe)=>{"use strict";(function(e,t){typeof Oe=="object"&&typeof Pe<"u"?Pe.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_isoWeek=t()})(Oe,function(){"use strict";var e="day";return function(t,s,a){var r=o(function(D){return D.add(4-D.isoWeekday(),e)},"a"),f=s.prototype;f.isoWeekYear=function(){return r(this).year()},f.isoWeek=function(D){if(!this.$utils().u(D))return this.add(7*(D-this.isoWeek()),e);var _,L,S,F,G=r(this),z=(_=this.isoWeekYear(),L=this.$u,S=(L?a.utc:a)().year(_).startOf("year"),F=4-S.isoWeekday(),S.isoWeekday()>4&&(F+=7),S.add(F,e));return G.diff(z,"week")+1},f.isoWeekday=function(D){return this.$utils().u(D)?this.day()||7:this.day(this.day()%7?D:D-7)};var m=f.startOf;f.startOf=function(D,_){var L=this.$utils(),S=!!L.u(_)||_;return L.p(D)==="isoweek"?S?this.date(this.date()-(this.isoWeekday()-1)).startOf("day"):this.date(this.date()-1-(this.isoWeekday()-1)+7).endOf("day"):m.bind(this)(D,_)}}})});var Mt=Ee((ze,Ne)=>{"use strict";(function(e,t){typeof ze=="object"&&typeof Ne<"u"?Ne.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_customParseFormat=t()})(ze,function(){"use strict";var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},t=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d/,a=/\d\d/,r=/\d\d?/,f=/\d*[^-_:/,()\s\d]+/,m={},D=o(function(p){return(p=+p)+(p>68?1900:2e3)},"a"),_=o(function(p){return function(k){this[p]=+k}},"f"),L=[/[+-]\d\d:?(\d\d)?|Z/,function(p){(this.zone||(this.zone={})).offset=function(k){if(!k||k==="Z")return 0;var A=k.match(/([+-]|\d\d)/g),I=60*A[1]+(+A[2]||0);return I===0?0:A[0]==="+"?-I:I}(p)}],S=o(function(p){var k=m[p];return k&&(k.indexOf?k:k.s.concat(k.f))},"u"),F=o(function(p,k){var A,I=m.meridiem;if(I){for(var N=1;N<=24;N+=1)if(p.indexOf(I(N,0,k))>-1){A=N>12;break}}else A=p===(k?"pm":"PM");return A},"d"),G={A:[f,function(p){this.afternoon=F(p,!1)}],a:[f,function(p){this.afternoon=F(p,!0)}],Q:[s,function(p){this.month=3*(p-1)+1}],S:[s,function(p){this.milliseconds=100*+p}],SS:[a,function(p){this.milliseconds=10*+p}],SSS:[/\d{3}/,function(p){this.milliseconds=+p}],s:[r,_("seconds")],ss:[r,_("seconds")],m:[r,_("minutes")],mm:[r,_("minutes")],H:[r,_("hours")],h:[r,_("hours")],HH:[r,_("hours")],hh:[r,_("hours")],D:[r,_("day")],DD:[a,_("day")],Do:[f,function(p){var k=m.ordinal,A=p.match(/\d+/);if(this.day=A[0],k)for(var I=1;I<=31;I+=1)k(I).replace(/\[|\]/g,"")===p&&(this.day=I)}],w:[r,_("week")],ww:[a,_("week")],M:[r,_("month")],MM:[a,_("month")],MMM:[f,function(p){var k=S("months"),A=(S("monthsShort")||k.map(function(I){return I.slice(0,3)})).indexOf(p)+1;if(A<1)throw new Error;this.month=A%12||A}],MMMM:[f,function(p){var k=S("months").indexOf(p)+1;if(k<1)throw new Error;this.month=k%12||k}],Y:[/[+-]?\d+/,_("year")],YY:[a,function(p){this.year=D(p)}],YYYY:[/\d{4}/,_("year")],Z:L,ZZ:L};function z(p){var k,A;k=p,A=m&&m.formats;for(var I=(p=k.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(g,v,b){var x=b&&b.toUpperCase();return v||A[b]||e[b]||A[x].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(y,w,c){return w||c.slice(1)})})).match(t),N=I.length,R=0;R-1)return new Date((h==="X"?1e3:1)*l);var n=z(h)(l),u=n.year,i=n.month,M=n.day,C=n.hours,E=n.minutes,P=n.seconds,Y=n.milliseconds,ae=n.zone,W=n.week,Z=new Date,ne=M||(u||i?1:Z.getDate()),ie=u||Z.getFullYear(),oe=0;u&&!i||(oe=i>0?i-1:Z.getMonth());var he,me=C||0,V=E||0,re=P||0,Q=Y||0;return ae?new Date(Date.UTC(ie,oe,ne,me,V,re,Q+60*ae.offset*1e3)):d?new Date(Date.UTC(ie,oe,ne,me,V,re,Q)):(he=new Date(ie,oe,ne,me,V,re,Q),W&&(he=T(he).week(W).toDate()),he)}catch{return new Date("")}}(K,j,U,A),this.init(),x&&x!==!0&&(this.$L=this.locale(x).$L),b&&K!=this.format(j)&&(this.$d=new Date("")),m={}}else if(j instanceof Array)for(var y=j.length,w=1;w<=y;w+=1){B[1]=j[w-1];var c=A.apply(this,B);if(c.isValid()){this.$d=c.$d,this.$L=c.$L,this.init();break}w===y&&(this.$d=new Date(""))}else N.call(this,R)}}})});var At=Ee((Re,Be)=>{"use strict";(function(e,t){typeof Re=="object"&&typeof Be<"u"?Be.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs_plugin_advancedFormat=t()})(Re,function(){"use strict";return function(e,t){var s=t.prototype,a=s.format;s.format=function(r){var f=this,m=this.$locale();if(!this.isValid())return a.bind(this)(r);var D=this.$utils(),_=(r||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,function(L){switch(L){case"Q":return Math.ceil((f.$M+1)/3);case"Do":return m.ordinal(f.$D);case"gggg":return f.weekYear();case"GGGG":return f.isoWeekYear();case"wo":return m.ordinal(f.week(),"W");case"w":case"ww":return D.s(f.week(),L==="w"?1:2,"0");case"W":case"WW":return D.s(f.isoWeek(),L==="W"?1:2,"0");case"k":case"kk":return D.s(String(f.$H===0?24:f.$H),L==="k"?1:2,"0");case"X":return Math.floor(f.$d.getTime()/1e3);case"x":return f.$d.getTime();case"z":return"["+f.offsetName()+"]";case"zzz":return"["+f.offsetName("long")+"]";default:return L}});return a.bind(this)(_)}}})});var Ve=function(){var e=o(function(w,c,l,h){for(l=l||{},h=w.length;h--;l[w[h]]=c);return l},"o"),t=[6,8,10,12,13,14,15,16,17,18,20,21,22,23,24,25,26,27,28,29,30,31,33,35,36,38,40],s=[1,26],a=[1,27],r=[1,28],f=[1,29],m=[1,30],D=[1,31],_=[1,32],L=[1,33],S=[1,34],F=[1,9],G=[1,10],z=[1,11],p=[1,12],k=[1,13],A=[1,14],I=[1,15],N=[1,16],R=[1,19],K=[1,20],U=[1,21],B=[1,22],j=[1,23],g=[1,25],v=[1,35],b={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,gantt:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NL:10,weekday:11,weekday_monday:12,weekday_tuesday:13,weekday_wednesday:14,weekday_thursday:15,weekday_friday:16,weekday_saturday:17,weekday_sunday:18,weekend:19,weekend_friday:20,weekend_saturday:21,dateFormat:22,inclusiveEndDates:23,topAxis:24,axisFormat:25,tickInterval:26,excludes:27,includes:28,todayMarker:29,title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,section:36,clickStatement:37,taskTxt:38,taskData:39,click:40,callbackname:41,callbackargs:42,href:43,clickStatementDebug:44,$accept:0,$end:1},terminals_:{2:"error",4:"gantt",6:"EOF",8:"SPACE",10:"NL",12:"weekday_monday",13:"weekday_tuesday",14:"weekday_wednesday",15:"weekday_thursday",16:"weekday_friday",17:"weekday_saturday",18:"weekday_sunday",20:"weekend_friday",21:"weekend_saturday",22:"dateFormat",23:"inclusiveEndDates",24:"topAxis",25:"axisFormat",26:"tickInterval",27:"excludes",28:"includes",29:"todayMarker",30:"title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"section",38:"taskTxt",39:"taskData",40:"click",41:"callbackname",42:"callbackargs",43:"href"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[11,1],[19,1],[19,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,2],[37,2],[37,3],[37,3],[37,4],[37,3],[37,4],[37,2],[44,2],[44,3],[44,3],[44,4],[44,3],[44,4],[44,2]],performAction:o(function(c,l,h,d,T,n,u){var i=n.length-1;switch(T){case 1:return n[i-1];case 2:this.$=[];break;case 3:n[i-1].push(n[i]),this.$=n[i-1];break;case 4:case 5:this.$=n[i];break;case 6:case 7:this.$=[];break;case 8:d.setWeekday("monday");break;case 9:d.setWeekday("tuesday");break;case 10:d.setWeekday("wednesday");break;case 11:d.setWeekday("thursday");break;case 12:d.setWeekday("friday");break;case 13:d.setWeekday("saturday");break;case 14:d.setWeekday("sunday");break;case 15:d.setWeekend("friday");break;case 16:d.setWeekend("saturday");break;case 17:d.setDateFormat(n[i].substr(11)),this.$=n[i].substr(11);break;case 18:d.enableInclusiveEndDates(),this.$=n[i].substr(18);break;case 19:d.TopAxis(),this.$=n[i].substr(8);break;case 20:d.setAxisFormat(n[i].substr(11)),this.$=n[i].substr(11);break;case 21:d.setTickInterval(n[i].substr(13)),this.$=n[i].substr(13);break;case 22:d.setExcludes(n[i].substr(9)),this.$=n[i].substr(9);break;case 23:d.setIncludes(n[i].substr(9)),this.$=n[i].substr(9);break;case 24:d.setTodayMarker(n[i].substr(12)),this.$=n[i].substr(12);break;case 27:d.setDiagramTitle(n[i].substr(6)),this.$=n[i].substr(6);break;case 28:this.$=n[i].trim(),d.setAccTitle(this.$);break;case 29:case 30:this.$=n[i].trim(),d.setAccDescription(this.$);break;case 31:d.addSection(n[i].substr(8)),this.$=n[i].substr(8);break;case 33:d.addTask(n[i-1],n[i]),this.$="task";break;case 34:this.$=n[i-1],d.setClickEvent(n[i-1],n[i],null);break;case 35:this.$=n[i-2],d.setClickEvent(n[i-2],n[i-1],n[i]);break;case 36:this.$=n[i-2],d.setClickEvent(n[i-2],n[i-1],null),d.setLink(n[i-2],n[i]);break;case 37:this.$=n[i-3],d.setClickEvent(n[i-3],n[i-2],n[i-1]),d.setLink(n[i-3],n[i]);break;case 38:this.$=n[i-2],d.setClickEvent(n[i-2],n[i],null),d.setLink(n[i-2],n[i-1]);break;case 39:this.$=n[i-3],d.setClickEvent(n[i-3],n[i-1],n[i]),d.setLink(n[i-3],n[i-2]);break;case 40:this.$=n[i-1],d.setLink(n[i-1],n[i]);break;case 41:case 47:this.$=n[i-1]+" "+n[i];break;case 42:case 43:case 45:this.$=n[i-2]+" "+n[i-1]+" "+n[i];break;case 44:case 46:this.$=n[i-3]+" "+n[i-2]+" "+n[i-1]+" "+n[i];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},e(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:17,12:s,13:a,14:r,15:f,16:m,17:D,18:_,19:18,20:L,21:S,22:F,23:G,24:z,25:p,26:k,27:A,28:I,29:N,30:R,31:K,33:U,35:B,36:j,37:24,38:g,40:v},e(t,[2,7],{1:[2,1]}),e(t,[2,3]),{9:36,11:17,12:s,13:a,14:r,15:f,16:m,17:D,18:_,19:18,20:L,21:S,22:F,23:G,24:z,25:p,26:k,27:A,28:I,29:N,30:R,31:K,33:U,35:B,36:j,37:24,38:g,40:v},e(t,[2,5]),e(t,[2,6]),e(t,[2,17]),e(t,[2,18]),e(t,[2,19]),e(t,[2,20]),e(t,[2,21]),e(t,[2,22]),e(t,[2,23]),e(t,[2,24]),e(t,[2,25]),e(t,[2,26]),e(t,[2,27]),{32:[1,37]},{34:[1,38]},e(t,[2,30]),e(t,[2,31]),e(t,[2,32]),{39:[1,39]},e(t,[2,8]),e(t,[2,9]),e(t,[2,10]),e(t,[2,11]),e(t,[2,12]),e(t,[2,13]),e(t,[2,14]),e(t,[2,15]),e(t,[2,16]),{41:[1,40],43:[1,41]},e(t,[2,4]),e(t,[2,28]),e(t,[2,29]),e(t,[2,33]),e(t,[2,34],{42:[1,42],43:[1,43]}),e(t,[2,40],{41:[1,44]}),e(t,[2,35],{43:[1,45]}),e(t,[2,36]),e(t,[2,38],{42:[1,46]}),e(t,[2,37]),e(t,[2,39])],defaultActions:{},parseError:o(function(c,l){if(l.recoverable)this.trace(c);else{var h=new Error(c);throw h.hash=l,h}},"parseError"),parse:o(function(c){var l=this,h=[0],d=[],T=[null],n=[],u=this.table,i="",M=0,C=0,E=0,P=2,Y=1,ae=n.slice.call(arguments,1),W=Object.create(this.lexer),Z={yy:{}};for(var ne in this.yy)Object.prototype.hasOwnProperty.call(this.yy,ne)&&(Z.yy[ne]=this.yy[ne]);W.setInput(c,Z.yy),Z.yy.lexer=W,Z.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var ie=W.yylloc;n.push(ie);var oe=W.options&&W.options.ranges;typeof Z.yy.parseError=="function"?this.parseError=Z.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function he(X){h.length=h.length-2*X,T.length=T.length-X,n.length=n.length-X}o(he,"popStack");function me(){var X;return X=d.pop()||W.lex()||Y,typeof X!="number"&&(X instanceof Array&&(d=X,X=d.pop()),X=l.symbols_[X]||X),X}o(me,"lex");for(var V,re,Q,H,On,Ce,ce={},be,$,tt,xe;;){if(Q=h[h.length-1],this.defaultActions[Q]?H=this.defaultActions[Q]:((V===null||typeof V>"u")&&(V=me()),H=u[Q]&&u[Q][V]),typeof H>"u"||!H.length||!H[0]){var Se="";xe=[];for(be in u[Q])this.terminals_[be]&&be>P&&xe.push("'"+this.terminals_[be]+"'");W.showPosition?Se="Parse error on line "+(M+1)+`: `+W.showPosition()+` Expecting `+xe.join(", ")+", got '"+(this.terminals_[V]||V)+"'":Se="Parse error on line "+(M+1)+": Unexpected "+(V==Y?"end of input":"'"+(this.terminals_[V]||V)+"'"),this.parseError(Se,{text:W.match,token:this.terminals_[V]||V,line:W.yylineno,loc:ie,expected:xe})}if(H[0]instanceof Array&&H.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Q+", token: "+V);switch(H[0]){case 1:h.push(V),T.push(W.yytext),n.push(W.yylloc),h.push(H[1]),V=null,re?(V=re,re=null):(C=W.yyleng,i=W.yytext,M=W.yylineno,ie=W.yylloc,E>0&&E--);break;case 2:if($=this.productions_[H[1]][1],ce.$=T[T.length-$],ce._$={first_line:n[n.length-($||1)].first_line,last_line:n[n.length-1].last_line,first_column:n[n.length-($||1)].first_column,last_column:n[n.length-1].last_column},oe&&(ce._$.range=[n[n.length-($||1)].range[0],n[n.length-1].range[1]]),Ce=this.performAction.apply(ce,[i,C,M,Z.yy,H[1],T,n].concat(ae)),typeof Ce<"u")return Ce;$&&(h=h.slice(0,-1*$*2),T=T.slice(0,-1*$),n=n.slice(0,-1*$)),h.push(this.productions_[H[1]][0]),T.push(ce.$),n.push(ce._$),tt=u[h[h.length-2]][h[h.length-1]],h.push(tt);break;case 3:return!0}}return!0},"parse")},x=function(){var w={EOF:1,parseError:o(function(l,h){if(this.yy.parser)this.yy.parser.parseError(l,h);else throw new Error(l)},"parseError"),setInput:o(function(c,l){return this.yy=l||this.yy||{},this._input=c,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var c=this._input[0];this.yytext+=c,this.yyleng++,this.offset++,this.match+=c,this.matched+=c;var l=c.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),c},"input"),unput:o(function(c){var l=c.length,h=c.split(/(?:\r\n?|\n)/g);this._input=c+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),h.length-1&&(this.yylineno-=h.length-1);var T=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:h?(h.length===d.length?this.yylloc.first_column:0)+d[d.length-h.length].length-h[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[T[0],T[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(c){this.unput(this.match.slice(c))},"less"),pastInput:o(function(){var c=this.matched.substr(0,this.matched.length-this.match.length);return(c.length>20?"...":"")+c.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var c=this.match;return c.length<20&&(c+=this._input.substr(0,20-c.length)),(c.substr(0,20)+(c.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var c=this.pastInput(),l=new Array(c.length+1).join("-");return c+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-6HF727YA.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-H7KF5RUN.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-6HF727YA.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-H7KF5RUN.mjs index a8c5a8134..b970e2834 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-6HF727YA.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/gitGraphDiagram-H7KF5RUN.mjs @@ -1,4 +1,4 @@ -import{a as te}from"./chunk-VSLJSFIP.mjs";import{a as ee}from"./chunk-4KE642ED.mjs";import{a as Q}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{f as Z,l as J,m as X}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{$ as V,A as S,L as B,P as W,Q as N,R as _,S as j,T as F,U as z,V as K,X as U,b as $,ga as Y,s as H}from"./chunk-ITX3UAHE.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as d}from"./chunk-GTKDMUJJ.mjs";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};var he=H.gitGraph,D=d(()=>J({...he,...S().gitGraph}),"getConfig"),i=new te(()=>{let r=D(),e=r.mainBranchName,o=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:o}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function q(){return Z({length:7})}d(q,"getID");function ge(r,e){let o=Object.create(null);return r.reduce((a,t)=>{let n=e(t);return o[n]||(o[n]=!0,a.push(t)),a},[])}d(ge,"uniqBy");var fe=d(function(r){i.records.direction=r},"setDirection"),le=d(function(r){$.debug("options str",r),r=r?.trim(),r=r||"{}";try{i.records.options=JSON.parse(r)}catch(e){$.error("error while parsing gitGraph options",e.message)}},"setOptions"),ye=d(function(){return i.records.options},"getOptions"),ue=d(function(r){let e=r.msg,o=r.id,a=r.type,t=r.tags;$.info("commit",e,o,a,t),$.debug("Entering commit:",e,o,a,t);let n=D();o=B.sanitizeText(o,n),e=B.sanitizeText(e,n),t=t?.map(s=>B.sanitizeText(s,n));let m={id:o||i.records.seq+"-"+q(),message:e,seq:i.records.seq++,type:a??u.NORMAL,tags:t??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=m,$.info("main branch",n.mainBranchName),i.records.commits.set(m.id,m),i.records.branches.set(i.records.currBranch,m.id),$.debug("in pushCommit "+m.id)},"commit"),xe=d(function(r){let e=r.name,o=r.order;if(e=B.sanitizeText(e,D()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:o}),ne(e),$.debug("in createBranch")},"branch"),$e=d(r=>{let e=r.branch,o=r.id,a=r.type,t=r.tags,n=D();e=B.sanitizeText(e,n),o&&(o=B.sanitizeText(o,n));let m=i.records.branches.get(i.records.currBranch),s=i.records.branches.get(e),g=m?i.records.commits.get(m):void 0,p=s?i.records.commits.get(s):void 0;if(g&&p&&g.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){let c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},c}if(g===void 0||!g){let c=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},c}if(!i.records.branches.has(e)){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},c}if(p===void 0||!p){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},c}if(g===p){let c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},c}if(o&&i.records.commits.has(o)){let c=new Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom Id");throw c.hash={text:`merge ${e} ${o} ${a} ${t?.join(" ")}`,token:`merge ${e} ${o} ${a} ${t?.join(" ")}`,expected:[`merge ${e} ${o}_UNIQUE ${a} ${t?.join(" ")}`]},c}let h=s||"",f={id:o||`${i.records.seq}-${q()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,h],branch:i.records.currBranch,type:u.MERGE,customType:a,customId:!!o,tags:t??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),$.debug(i.records.branches),$.debug("in mergeBranch")},"merge"),be=d(function(r){let e=r.id,o=r.targetId,a=r.tags,t=r.parent;$.debug("Entering cherryPick:",e,o,a);let n=D();if(e=B.sanitizeText(e,n),o=B.sanitizeText(o,n),a=a?.map(g=>B.sanitizeText(g,n)),t=B.sanitizeText(t,n),!e||!i.records.commits.has(e)){let g=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},g}let m=i.records.commits.get(e);if(m===void 0||!m)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(t&&!(Array.isArray(m.parents)&&m.parents.includes(t)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=m.branch;if(m.type===u.MERGE&&!t)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!i.records.commits.has(o)){if(s===i.records.currBranch){let f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},f}let g=i.records.branches.get(i.records.currBranch);if(g===void 0||!g){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},f}let p=i.records.commits.get(g);if(p===void 0||!p){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},f}let h={id:i.records.seq+"-"+q(),message:`cherry-picked ${m?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,m.id],branch:i.records.currBranch,type:u.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${m.id}${m.type===u.MERGE?`|parent:${t}`:""}`]};i.records.head=h,i.records.commits.set(h.id,h),i.records.branches.set(i.records.currBranch,h.id),$.debug(i.records.branches),$.debug("in cherryPick")}},"cherryPick"),ne=d(function(r){if(r=B.sanitizeText(r,D()),i.records.branches.has(r)){i.records.currBranch=r;let e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{let e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw e.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},e}},"checkout");function re(r,e,o){let a=r.indexOf(e);a===-1?r.push(o):r.splice(a,1,o)}d(re,"upsert");function oe(r){let e=r.reduce((t,n)=>t.seq>n.seq?t:n,r[0]),o="";r.forEach(function(t){t===e?o+=" *":o+=" |"});let a=[o,e.id,e.seq];for(let t in i.records.branches)i.records.branches.get(t)===e.id&&a.push(t);if($.debug(a.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let t=i.records.commits.get(e.parents[0]);re(r,e,t),e.parents[1]&&r.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let t=i.records.commits.get(e.parents[0]);re(r,e,t)}}r=ge(r,t=>t.id),oe(r)}d(oe,"prettyPrintCommitHistory");var Ce=d(function(){$.debug(i.records.commits);let r=ae()[0];oe([r])},"prettyPrint"),Be=d(function(){i.reset(),W()},"clear"),we=d(function(){return[...i.records.branchConfig.values()].map((e,o)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${o}`)}).sort((e,o)=>(e.order??0)-(o.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ke=d(function(){return i.records.branches},"getBranches"),Te=d(function(){return i.records.commits},"getCommits"),ae=d(function(){let r=[...i.records.commits.values()];return r.forEach(function(e){$.debug(e.id)}),r.sort((e,o)=>e.seq-o.seq),r},"getCommitsArray"),Ee=d(function(){return i.records.currBranch},"getCurrentBranch"),Pe=d(function(){return i.records.direction},"getDirection"),Me=d(function(){return i.records.head},"getHead"),v={commitType:u,getConfig:D,setDirection:fe,setOptions:le,getOptions:ye,commit:ue,branch:xe,merge:$e,cherryPick:be,checkout:ne,prettyPrint:Ce,clear:Be,getBranchesAsObjArray:we,getBranches:ke,getCommits:Te,getCommitsArray:ae,getCurrentBranch:Ee,getDirection:Pe,getHead:Me,setAccTitle:N,getAccTitle:_,getAccDescription:F,setAccDescription:j,setDiagramTitle:z,getDiagramTitle:K};var De=d((r,e)=>{ee(r,e),r.dir&&e.setDirection(r.dir);for(let o of r.statements)Ge(o,e)},"populate"),Ge=d((r,e)=>{let a={Commit:d(t=>e.commit(Le(t)),"Commit"),Branch:d(t=>e.branch(Oe(t)),"Branch"),Merge:d(t=>e.merge(ve(t)),"Merge"),Checkout:d(t=>e.checkout(Re(t)),"Checkout"),CherryPicking:d(t=>e.cherryPick(Ae(t)),"CherryPicking")}[r.$type];a?a(r):$.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Le=d(r=>({id:r.id,msg:r.message??"",type:r.type!==void 0?u[r.type]:u.NORMAL,tags:r.tags??void 0}),"parseCommit"),Oe=d(r=>({name:r.name,order:r.order??0}),"parseBranch"),ve=d(r=>({branch:r.branch,id:r.id??"",type:r.type!==void 0?u[r.type]:void 0,tags:r.tags??void 0}),"parseMerge"),Re=d(r=>r.branch,"parseCheckout"),Ae=d(r=>({id:r.id,targetId:"",tags:r.tags?.length===0?void 0:r.tags,parent:r.parent}),"parseCherryPicking"),se={parse:d(async r=>{let e=await Q("gitGraph",r);$.debug(e),De(e,v)},"parse")};var Ie=U(),w=Ie?.gitGraph,P=10,M=40,k=4,T=2,G=8,b=new Map,C=new Map,R=30,L=new Map,A=[],E=0,y="LR",qe=d(()=>{b.clear(),C.clear(),L.clear(),E=0,A=[],y="LR"},"clear"),ce=d(r=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|/gi):r).forEach(a=>{let t=document.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","0"),t.setAttribute("class","row"),t.textContent=a.trim(),e.appendChild(t)}),e},"drawText"),me=d(r=>{let e,o,a;return y==="BT"?(o=d((t,n)=>t<=n,"comparisonFunc"),a=1/0):(o=d((t,n)=>t>=n,"comparisonFunc"),a=0),r.forEach(t=>{let n=y==="TB"||y=="BT"?C.get(t)?.y:C.get(t)?.x;n!==void 0&&o(n,a)&&(e=t,a=n)}),e},"findClosestParent"),He=d(r=>{let e="",o=1/0;return r.forEach(a=>{let t=C.get(a).y;t<=o&&(e=a,o=t)}),e||void 0},"findClosestParentBT"),Se=d((r,e,o)=>{let a=o,t=o,n=[];r.forEach(m=>{let s=e.get(m);if(!s)throw new Error(`Commit not found for key ${m}`);s.parents.length?(a=Ne(s),t=Math.max(a,t)):n.push(s),_e(s,a)}),a=t,n.forEach(m=>{je(m,a,o)}),r.forEach(m=>{let s=e.get(m);if(s?.parents.length){let g=He(s.parents);a=C.get(g).y-M,a<=t&&(t=a);let p=b.get(s.branch).pos,h=a-P;C.set(s.id,{x:p,y:h})}})},"setParallelBTPos"),We=d(r=>{let e=me(r.parents.filter(a=>a!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);let o=C.get(e)?.y;if(o===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return o},"findClosestParentPos"),Ne=d(r=>We(r)+M,"calculateCommitPosition"),_e=d((r,e)=>{let o=b.get(r.branch);if(!o)throw new Error(`Branch not found for commit ${r.id}`);let a=o.pos,t=e+P;return C.set(r.id,{x:a,y:t}),{x:a,y:t}},"setCommitPosition"),je=d((r,e,o)=>{let a=b.get(r.branch);if(!a)throw new Error(`Branch not found for commit ${r.id}`);let t=e+o,n=a.pos;C.set(r.id,{x:n,y:t})},"setRootPosition"),Fe=d((r,e,o,a,t,n)=>{if(n===u.HIGHLIGHT)r.append("rect").attr("x",o.x-10).attr("y",o.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${t%G} ${a}-outer`),r.append("rect").attr("x",o.x-6).attr("y",o.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${t%G} ${a}-inner`);else if(n===u.CHERRY_PICK)r.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",10).attr("class",`commit ${e.id} ${a}`),r.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`),r.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`),r.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${a}`),r.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${a}`);else{let m=r.append("circle");if(m.attr("cx",o.x),m.attr("cy",o.y),m.attr("r",e.type===u.MERGE?9:10),m.attr("class",`commit ${e.id} commit${t%G}`),n===u.MERGE){let s=r.append("circle");s.attr("cx",o.x),s.attr("cy",o.y),s.attr("r",6),s.attr("class",`commit ${a} ${e.id} commit${t%G}`)}n===u.REVERSE&&r.append("path").attr("d",`M ${o.x-5},${o.y-5}L${o.x+5},${o.y+5}M${o.x-5},${o.y+5}L${o.x+5},${o.y-5}`).attr("class",`commit ${a} ${e.id} commit${t%G}`)}},"drawCommitBullet"),ze=d((r,e,o,a)=>{if(e.type!==u.CHERRY_PICK&&(e.customId&&e.type===u.MERGE||e.type!==u.MERGE)&&w?.showCommitLabel){let t=r.append("g"),n=t.insert("rect").attr("class","commit-label-bkg"),m=t.append("text").attr("x",a).attr("y",o.y+25).attr("class","commit-label").text(e.id),s=m.node()?.getBBox();if(s&&(n.attr("x",o.posWithOffset-s.width/2-T).attr("y",o.y+13.5).attr("width",s.width+2*T).attr("height",s.height+2*T),y==="TB"||y==="BT"?(n.attr("x",o.x-(s.width+4*k+5)).attr("y",o.y-12),m.attr("x",o.x-(s.width+4*k)).attr("y",o.y+s.height-12)):m.attr("x",o.posWithOffset-s.width/2),w.rotateCommitLabel))if(y==="TB"||y==="BT")m.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let g=-7.5-(s.width+10)/25*9.5,p=10+s.width/25*8.5;t.attr("transform","translate("+g+", "+p+") rotate(-45, "+a+", "+o.y+")")}}},"drawCommitLabel"),Ke=d((r,e,o,a)=>{if(e.tags.length>0){let t=0,n=0,m=0,s=[];for(let g of e.tags.reverse()){let p=r.insert("polygon"),h=r.append("circle"),f=r.append("text").attr("y",o.y-16-t).attr("class","tag-label").text(g),c=f.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");n=Math.max(n,c.width),m=Math.max(m,c.height),f.attr("x",o.posWithOffset-c.width/2),s.push({tag:f,hole:h,rect:p,yOffset:t}),t+=20}for(let{tag:g,hole:p,rect:h,yOffset:f}of s){let c=m/2,l=o.y-19.2-f;if(h.attr("class","tag-label-bkg").attr("points",` +import{a as te}from"./chunk-VSLJSFIP.mjs";import{a as ee}from"./chunk-4KE642ED.mjs";import{a as Q}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{f as Z,l as J,m as X}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{$ as V,A as S,L as B,P as W,Q as N,R as _,S as j,T as F,U as z,V as K,X as U,b as $,ga as Y,s as H}from"./chunk-OR2G2HG5.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as d}from"./chunk-GTKDMUJJ.mjs";var u={NORMAL:0,REVERSE:1,HIGHLIGHT:2,MERGE:3,CHERRY_PICK:4};var he=H.gitGraph,D=d(()=>J({...he,...S().gitGraph}),"getConfig"),i=new te(()=>{let r=D(),e=r.mainBranchName,o=r.mainBranchOrder;return{mainBranchName:e,commits:new Map,head:null,branchConfig:new Map([[e,{name:e,order:o}]]),branches:new Map([[e,null]]),currBranch:e,direction:"LR",seq:0,options:{}}});function q(){return Z({length:7})}d(q,"getID");function ge(r,e){let o=Object.create(null);return r.reduce((a,t)=>{let n=e(t);return o[n]||(o[n]=!0,a.push(t)),a},[])}d(ge,"uniqBy");var fe=d(function(r){i.records.direction=r},"setDirection"),le=d(function(r){$.debug("options str",r),r=r?.trim(),r=r||"{}";try{i.records.options=JSON.parse(r)}catch(e){$.error("error while parsing gitGraph options",e.message)}},"setOptions"),ye=d(function(){return i.records.options},"getOptions"),ue=d(function(r){let e=r.msg,o=r.id,a=r.type,t=r.tags;$.info("commit",e,o,a,t),$.debug("Entering commit:",e,o,a,t);let n=D();o=B.sanitizeText(o,n),e=B.sanitizeText(e,n),t=t?.map(s=>B.sanitizeText(s,n));let m={id:o||i.records.seq+"-"+q(),message:e,seq:i.records.seq++,type:a??u.NORMAL,tags:t??[],parents:i.records.head==null?[]:[i.records.head.id],branch:i.records.currBranch};i.records.head=m,$.info("main branch",n.mainBranchName),i.records.commits.set(m.id,m),i.records.branches.set(i.records.currBranch,m.id),$.debug("in pushCommit "+m.id)},"commit"),xe=d(function(r){let e=r.name,o=r.order;if(e=B.sanitizeText(e,D()),i.records.branches.has(e))throw new Error(`Trying to create an existing branch. (Help: Either use a new name if you want create a new branch or try using "checkout ${e}")`);i.records.branches.set(e,i.records.head!=null?i.records.head.id:null),i.records.branchConfig.set(e,{name:e,order:o}),ne(e),$.debug("in createBranch")},"branch"),$e=d(r=>{let e=r.branch,o=r.id,a=r.type,t=r.tags,n=D();e=B.sanitizeText(e,n),o&&(o=B.sanitizeText(o,n));let m=i.records.branches.get(i.records.currBranch),s=i.records.branches.get(e),g=m?i.records.commits.get(m):void 0,p=s?i.records.commits.get(s):void 0;if(g&&p&&g.branch===e)throw new Error(`Cannot merge branch '${e}' into itself.`);if(i.records.currBranch===e){let c=new Error('Incorrect usage of "merge". Cannot merge a branch to itself');throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},c}if(g===void 0||!g){let c=new Error(`Incorrect usage of "merge". Current branch (${i.records.currBranch})has no commits`);throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["commit"]},c}if(!i.records.branches.has(e)){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") does not exist");throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:[`branch ${e}`]},c}if(p===void 0||!p){let c=new Error('Incorrect usage of "merge". Branch to be merged ('+e+") has no commits");throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:['"commit"']},c}if(g===p){let c=new Error('Incorrect usage of "merge". Both branches have same head');throw c.hash={text:`merge ${e}`,token:`merge ${e}`,expected:["branch abc"]},c}if(o&&i.records.commits.has(o)){let c=new Error('Incorrect usage of "merge". Commit with id:'+o+" already exists, use different custom Id");throw c.hash={text:`merge ${e} ${o} ${a} ${t?.join(" ")}`,token:`merge ${e} ${o} ${a} ${t?.join(" ")}`,expected:[`merge ${e} ${o}_UNIQUE ${a} ${t?.join(" ")}`]},c}let h=s||"",f={id:o||`${i.records.seq}-${q()}`,message:`merged branch ${e} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,h],branch:i.records.currBranch,type:u.MERGE,customType:a,customId:!!o,tags:t??[]};i.records.head=f,i.records.commits.set(f.id,f),i.records.branches.set(i.records.currBranch,f.id),$.debug(i.records.branches),$.debug("in mergeBranch")},"merge"),be=d(function(r){let e=r.id,o=r.targetId,a=r.tags,t=r.parent;$.debug("Entering cherryPick:",e,o,a);let n=D();if(e=B.sanitizeText(e,n),o=B.sanitizeText(o,n),a=a?.map(g=>B.sanitizeText(g,n)),t=B.sanitizeText(t,n),!e||!i.records.commits.has(e)){let g=new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');throw g.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},g}let m=i.records.commits.get(e);if(m===void 0||!m)throw new Error('Incorrect usage of "cherryPick". Source commit id should exist and provided');if(t&&!(Array.isArray(m.parents)&&m.parents.includes(t)))throw new Error("Invalid operation: The specified parent commit is not an immediate parent of the cherry-picked commit.");let s=m.branch;if(m.type===u.MERGE&&!t)throw new Error("Incorrect usage of cherry-pick: If the source commit is a merge commit, an immediate parent commit must be specified.");if(!o||!i.records.commits.has(o)){if(s===i.records.currBranch){let f=new Error('Incorrect usage of "cherryPick". Source commit is already on current branch');throw f.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},f}let g=i.records.branches.get(i.records.currBranch);if(g===void 0||!g){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},f}let p=i.records.commits.get(g);if(p===void 0||!p){let f=new Error(`Incorrect usage of "cherry-pick". Current branch (${i.records.currBranch})has no commits`);throw f.hash={text:`cherryPick ${e} ${o}`,token:`cherryPick ${e} ${o}`,expected:["cherry-pick abc"]},f}let h={id:i.records.seq+"-"+q(),message:`cherry-picked ${m?.message} into ${i.records.currBranch}`,seq:i.records.seq++,parents:i.records.head==null?[]:[i.records.head.id,m.id],branch:i.records.currBranch,type:u.CHERRY_PICK,tags:a?a.filter(Boolean):[`cherry-pick:${m.id}${m.type===u.MERGE?`|parent:${t}`:""}`]};i.records.head=h,i.records.commits.set(h.id,h),i.records.branches.set(i.records.currBranch,h.id),$.debug(i.records.branches),$.debug("in cherryPick")}},"cherryPick"),ne=d(function(r){if(r=B.sanitizeText(r,D()),i.records.branches.has(r)){i.records.currBranch=r;let e=i.records.branches.get(i.records.currBranch);e===void 0||!e?i.records.head=null:i.records.head=i.records.commits.get(e)??null}else{let e=new Error(`Trying to checkout branch which is not yet created. (Help try using "branch ${r}")`);throw e.hash={text:`checkout ${r}`,token:`checkout ${r}`,expected:[`branch ${r}`]},e}},"checkout");function re(r,e,o){let a=r.indexOf(e);a===-1?r.push(o):r.splice(a,1,o)}d(re,"upsert");function oe(r){let e=r.reduce((t,n)=>t.seq>n.seq?t:n,r[0]),o="";r.forEach(function(t){t===e?o+=" *":o+=" |"});let a=[o,e.id,e.seq];for(let t in i.records.branches)i.records.branches.get(t)===e.id&&a.push(t);if($.debug(a.join(" ")),e.parents&&e.parents.length==2&&e.parents[0]&&e.parents[1]){let t=i.records.commits.get(e.parents[0]);re(r,e,t),e.parents[1]&&r.push(i.records.commits.get(e.parents[1]))}else{if(e.parents.length==0)return;if(e.parents[0]){let t=i.records.commits.get(e.parents[0]);re(r,e,t)}}r=ge(r,t=>t.id),oe(r)}d(oe,"prettyPrintCommitHistory");var Ce=d(function(){$.debug(i.records.commits);let r=ae()[0];oe([r])},"prettyPrint"),Be=d(function(){i.reset(),W()},"clear"),we=d(function(){return[...i.records.branchConfig.values()].map((e,o)=>e.order!==null&&e.order!==void 0?e:{...e,order:parseFloat(`0.${o}`)}).sort((e,o)=>(e.order??0)-(o.order??0)).map(({name:e})=>({name:e}))},"getBranchesAsObjArray"),ke=d(function(){return i.records.branches},"getBranches"),Te=d(function(){return i.records.commits},"getCommits"),ae=d(function(){let r=[...i.records.commits.values()];return r.forEach(function(e){$.debug(e.id)}),r.sort((e,o)=>e.seq-o.seq),r},"getCommitsArray"),Ee=d(function(){return i.records.currBranch},"getCurrentBranch"),Pe=d(function(){return i.records.direction},"getDirection"),Me=d(function(){return i.records.head},"getHead"),v={commitType:u,getConfig:D,setDirection:fe,setOptions:le,getOptions:ye,commit:ue,branch:xe,merge:$e,cherryPick:be,checkout:ne,prettyPrint:Ce,clear:Be,getBranchesAsObjArray:we,getBranches:ke,getCommits:Te,getCommitsArray:ae,getCurrentBranch:Ee,getDirection:Pe,getHead:Me,setAccTitle:N,getAccTitle:_,getAccDescription:F,setAccDescription:j,setDiagramTitle:z,getDiagramTitle:K};var De=d((r,e)=>{ee(r,e),r.dir&&e.setDirection(r.dir);for(let o of r.statements)Ge(o,e)},"populate"),Ge=d((r,e)=>{let a={Commit:d(t=>e.commit(Le(t)),"Commit"),Branch:d(t=>e.branch(Oe(t)),"Branch"),Merge:d(t=>e.merge(ve(t)),"Merge"),Checkout:d(t=>e.checkout(Re(t)),"Checkout"),CherryPicking:d(t=>e.cherryPick(Ae(t)),"CherryPicking")}[r.$type];a?a(r):$.error(`Unknown statement type: ${r.$type}`)},"parseStatement"),Le=d(r=>({id:r.id,msg:r.message??"",type:r.type!==void 0?u[r.type]:u.NORMAL,tags:r.tags??void 0}),"parseCommit"),Oe=d(r=>({name:r.name,order:r.order??0}),"parseBranch"),ve=d(r=>({branch:r.branch,id:r.id??"",type:r.type!==void 0?u[r.type]:void 0,tags:r.tags??void 0}),"parseMerge"),Re=d(r=>r.branch,"parseCheckout"),Ae=d(r=>({id:r.id,targetId:"",tags:r.tags?.length===0?void 0:r.tags,parent:r.parent}),"parseCherryPicking"),se={parse:d(async r=>{let e=await Q("gitGraph",r);$.debug(e),De(e,v)},"parse")};var Ie=U(),w=Ie?.gitGraph,P=10,M=40,k=4,T=2,G=8,b=new Map,C=new Map,R=30,L=new Map,A=[],E=0,y="LR",qe=d(()=>{b.clear(),C.clear(),L.clear(),E=0,A=[],y="LR"},"clear"),ce=d(r=>{let e=document.createElementNS("http://www.w3.org/2000/svg","text");return(typeof r=="string"?r.split(/\\n|\n|/gi):r).forEach(a=>{let t=document.createElementNS("http://www.w3.org/2000/svg","tspan");t.setAttributeNS("http://www.w3.org/XML/1998/namespace","xml:space","preserve"),t.setAttribute("dy","1em"),t.setAttribute("x","0"),t.setAttribute("class","row"),t.textContent=a.trim(),e.appendChild(t)}),e},"drawText"),me=d(r=>{let e,o,a;return y==="BT"?(o=d((t,n)=>t<=n,"comparisonFunc"),a=1/0):(o=d((t,n)=>t>=n,"comparisonFunc"),a=0),r.forEach(t=>{let n=y==="TB"||y=="BT"?C.get(t)?.y:C.get(t)?.x;n!==void 0&&o(n,a)&&(e=t,a=n)}),e},"findClosestParent"),He=d(r=>{let e="",o=1/0;return r.forEach(a=>{let t=C.get(a).y;t<=o&&(e=a,o=t)}),e||void 0},"findClosestParentBT"),Se=d((r,e,o)=>{let a=o,t=o,n=[];r.forEach(m=>{let s=e.get(m);if(!s)throw new Error(`Commit not found for key ${m}`);s.parents.length?(a=Ne(s),t=Math.max(a,t)):n.push(s),_e(s,a)}),a=t,n.forEach(m=>{je(m,a,o)}),r.forEach(m=>{let s=e.get(m);if(s?.parents.length){let g=He(s.parents);a=C.get(g).y-M,a<=t&&(t=a);let p=b.get(s.branch).pos,h=a-P;C.set(s.id,{x:p,y:h})}})},"setParallelBTPos"),We=d(r=>{let e=me(r.parents.filter(a=>a!==null));if(!e)throw new Error(`Closest parent not found for commit ${r.id}`);let o=C.get(e)?.y;if(o===void 0)throw new Error(`Closest parent position not found for commit ${r.id}`);return o},"findClosestParentPos"),Ne=d(r=>We(r)+M,"calculateCommitPosition"),_e=d((r,e)=>{let o=b.get(r.branch);if(!o)throw new Error(`Branch not found for commit ${r.id}`);let a=o.pos,t=e+P;return C.set(r.id,{x:a,y:t}),{x:a,y:t}},"setCommitPosition"),je=d((r,e,o)=>{let a=b.get(r.branch);if(!a)throw new Error(`Branch not found for commit ${r.id}`);let t=e+o,n=a.pos;C.set(r.id,{x:n,y:t})},"setRootPosition"),Fe=d((r,e,o,a,t,n)=>{if(n===u.HIGHLIGHT)r.append("rect").attr("x",o.x-10).attr("y",o.y-10).attr("width",20).attr("height",20).attr("class",`commit ${e.id} commit-highlight${t%G} ${a}-outer`),r.append("rect").attr("x",o.x-6).attr("y",o.y-6).attr("width",12).attr("height",12).attr("class",`commit ${e.id} commit${t%G} ${a}-inner`);else if(n===u.CHERRY_PICK)r.append("circle").attr("cx",o.x).attr("cy",o.y).attr("r",10).attr("class",`commit ${e.id} ${a}`),r.append("circle").attr("cx",o.x-3).attr("cy",o.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`),r.append("circle").attr("cx",o.x+3).attr("cy",o.y+2).attr("r",2.75).attr("fill","#fff").attr("class",`commit ${e.id} ${a}`),r.append("line").attr("x1",o.x+3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${a}`),r.append("line").attr("x1",o.x-3).attr("y1",o.y+1).attr("x2",o.x).attr("y2",o.y-5).attr("stroke","#fff").attr("class",`commit ${e.id} ${a}`);else{let m=r.append("circle");if(m.attr("cx",o.x),m.attr("cy",o.y),m.attr("r",e.type===u.MERGE?9:10),m.attr("class",`commit ${e.id} commit${t%G}`),n===u.MERGE){let s=r.append("circle");s.attr("cx",o.x),s.attr("cy",o.y),s.attr("r",6),s.attr("class",`commit ${a} ${e.id} commit${t%G}`)}n===u.REVERSE&&r.append("path").attr("d",`M ${o.x-5},${o.y-5}L${o.x+5},${o.y+5}M${o.x-5},${o.y+5}L${o.x+5},${o.y-5}`).attr("class",`commit ${a} ${e.id} commit${t%G}`)}},"drawCommitBullet"),ze=d((r,e,o,a)=>{if(e.type!==u.CHERRY_PICK&&(e.customId&&e.type===u.MERGE||e.type!==u.MERGE)&&w?.showCommitLabel){let t=r.append("g"),n=t.insert("rect").attr("class","commit-label-bkg"),m=t.append("text").attr("x",a).attr("y",o.y+25).attr("class","commit-label").text(e.id),s=m.node()?.getBBox();if(s&&(n.attr("x",o.posWithOffset-s.width/2-T).attr("y",o.y+13.5).attr("width",s.width+2*T).attr("height",s.height+2*T),y==="TB"||y==="BT"?(n.attr("x",o.x-(s.width+4*k+5)).attr("y",o.y-12),m.attr("x",o.x-(s.width+4*k)).attr("y",o.y+s.height-12)):m.attr("x",o.posWithOffset-s.width/2),w.rotateCommitLabel))if(y==="TB"||y==="BT")m.attr("transform","rotate(-45, "+o.x+", "+o.y+")"),n.attr("transform","rotate(-45, "+o.x+", "+o.y+")");else{let g=-7.5-(s.width+10)/25*9.5,p=10+s.width/25*8.5;t.attr("transform","translate("+g+", "+p+") rotate(-45, "+a+", "+o.y+")")}}},"drawCommitLabel"),Ke=d((r,e,o,a)=>{if(e.tags.length>0){let t=0,n=0,m=0,s=[];for(let g of e.tags.reverse()){let p=r.insert("polygon"),h=r.append("circle"),f=r.append("text").attr("y",o.y-16-t).attr("class","tag-label").text(g),c=f.node()?.getBBox();if(!c)throw new Error("Tag bbox not found");n=Math.max(n,c.width),m=Math.max(m,c.height),f.attr("x",o.posWithOffset-c.width/2),s.push({tag:f,hole:h,rect:p,yOffset:t}),t+=20}for(let{tag:g,hole:p,rect:h,yOffset:f}of s){let c=m/2,l=o.y-19.2-f;if(h.attr("class","tag-label-bkg").attr("points",` ${a-n/2-k/2},${l+T} ${a-n/2-k/2},${l-T} ${o.posWithOffset-n/2-k},${l-c-T} diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/infoDiagram-A4XEPD65.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/infoDiagram-FIZOUH6F.mjs similarity index 85% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/infoDiagram-A4XEPD65.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/infoDiagram-FIZOUH6F.mjs index cd7d40bcc..7aa516d27 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/infoDiagram-A4XEPD65.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/infoDiagram-FIZOUH6F.mjs @@ -1,2 +1,2 @@ -import{a as p}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as s}from"./chunk-67GG4VKH.mjs";import{a}from"./chunk-BPW5ZDWE.mjs";import{M as n,b as o}from"./chunk-ITX3UAHE.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var m={parse:r(async t=>{let e=await p("info",t);o.debug(e)},"parse")};var c={version:s},D=r(()=>c.version,"getVersion"),f={getVersion:D};var y=r((t,e,d)=>{o.debug(`rendering info diagram +import{a as p}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as s}from"./chunk-6CAUGOKZ.mjs";import{a}from"./chunk-3YFHLAX3.mjs";import{M as n,b as o}from"./chunk-OR2G2HG5.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var m={parse:r(async t=>{let e=await p("info",t);o.debug(e)},"parse")};var c={version:s},D=r(()=>c.version,"getVersion"),f={getVersion:D};var y=r((t,e,d)=>{o.debug(`rendering info diagram `+t);let i=a(e);n(i,100,400,!0),i.append("g").append("text").attr("x",100).attr("y",40).attr("class","version").attr("font-size",32).style("text-anchor","middle").text(`v${d}`)},"draw"),g={draw:y};var T={parser:m,db:f,renderer:g};export{T as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/journeyDiagram-5ML6LF3B.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/journeyDiagram-CDK7QRCM.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/journeyDiagram-5ML6LF3B.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/journeyDiagram-CDK7QRCM.mjs index e41db2ee8..f20458425 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/journeyDiagram-5ML6LF3B.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/journeyDiagram-CDK7QRCM.mjs @@ -1,4 +1,4 @@ -import{a as ft,b as pt,c as dt,f as H}from"./chunk-BERL53GW.mjs";import"./chunk-TI4EEUUG.mjs";import{Ba as G,M as st,P as at,Q as ot,R as lt,S as ct,T as ht,U as ut,V as yt,X as $,ga as z}from"./chunk-ITX3UAHE.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var U=function(){var t=r(function(g,n,a,o){for(a=a||{},o=g.length;o--;a[g[o]]=n);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],i=[1,11],u=[1,12],h=[1,13],d=[1,14],f={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:r(function(n,a,o,y,p,l,M){var _=l.length-1;switch(p){case 1:return l[_-1];case 2:this.$=[];break;case 3:l[_-1].push(l[_]),this.$=l[_-1];break;case 4:case 5:this.$=l[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(l[_].substr(6)),this.$=l[_].substr(6);break;case 9:this.$=l[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=l[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(l[_].substr(8)),this.$=l[_].substr(8);break;case 13:y.addTask(l[_-1],l[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:i,16:u,17:h,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:i,16:u,17:h,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:r(function(n,a){if(a.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=a,o}},"parseError"),parse:r(function(n){var a=this,o=[0],y=[],p=[null],l=[],M=this.table,_="",N=0,et=0,nt=0,Tt=2,rt=1,Mt=l.slice.call(arguments,1),k=Object.create(this.lexer),C={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(C.yy[O]=this.yy[O]);k.setInput(n,C.yy),C.yy.lexer=k,C.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var q=k.yylloc;l.push(q);var St=k.options&&k.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(v){o.length=o.length-2*v,p.length=p.length-v,l.length=l.length-v}r(Gt,"popStack");function $t(){var v;return v=y.pop()||k.lex()||rt,typeof v!="number"&&(v instanceof Array&&(y=v,v=y.pop()),v=a.symbols_[v]||v),v}r($t,"lex");for(var b,D,P,w,Ht,W,A={},B,S,it,j;;){if(P=o[o.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((b===null||typeof b>"u")&&(b=$t()),w=M[P]&&M[P][b]),typeof w>"u"||!w.length||!w[0]){var X="";j=[];for(B in M[P])this.terminals_[B]&&B>Tt&&j.push("'"+this.terminals_[B]+"'");k.showPosition?X="Parse error on line "+(N+1)+`: +import{a as ft,b as pt,c as dt,f as H}from"./chunk-44WTIFVW.mjs";import"./chunk-TI4EEUUG.mjs";import{Ba as G,M as st,P as at,Q as ot,R as lt,S as ct,T as ht,U as ut,V as yt,X as $,ga as z}from"./chunk-OR2G2HG5.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var U=function(){var t=r(function(g,n,a,o){for(a=a||{},o=g.length;o--;a[g[o]]=n);return a},"o"),e=[6,8,10,11,12,14,16,17,18],s=[1,9],c=[1,10],i=[1,11],u=[1,12],h=[1,13],d=[1,14],f={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,start:3,journey:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,taskName:18,taskData:19,$accept:0,$end:1},terminals_:{2:"error",4:"journey",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",18:"taskName",19:"taskData"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,2]],performAction:r(function(n,a,o,y,p,l,M){var _=l.length-1;switch(p){case 1:return l[_-1];case 2:this.$=[];break;case 3:l[_-1].push(l[_]),this.$=l[_-1];break;case 4:case 5:this.$=l[_];break;case 6:case 7:this.$=[];break;case 8:y.setDiagramTitle(l[_].substr(6)),this.$=l[_].substr(6);break;case 9:this.$=l[_].trim(),y.setAccTitle(this.$);break;case 10:case 11:this.$=l[_].trim(),y.setAccDescription(this.$);break;case 12:y.addSection(l[_].substr(8)),this.$=l[_].substr(8);break;case 13:y.addTask(l[_-1],l[_]),this.$="task";break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},t(e,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:s,12:c,14:i,16:u,17:h,18:d},t(e,[2,7],{1:[2,1]}),t(e,[2,3]),{9:15,11:s,12:c,14:i,16:u,17:h,18:d},t(e,[2,5]),t(e,[2,6]),t(e,[2,8]),{13:[1,16]},{15:[1,17]},t(e,[2,11]),t(e,[2,12]),{19:[1,18]},t(e,[2,4]),t(e,[2,9]),t(e,[2,10]),t(e,[2,13])],defaultActions:{},parseError:r(function(n,a){if(a.recoverable)this.trace(n);else{var o=new Error(n);throw o.hash=a,o}},"parseError"),parse:r(function(n){var a=this,o=[0],y=[],p=[null],l=[],M=this.table,_="",N=0,et=0,nt=0,Tt=2,rt=1,Mt=l.slice.call(arguments,1),k=Object.create(this.lexer),C={yy:{}};for(var O in this.yy)Object.prototype.hasOwnProperty.call(this.yy,O)&&(C.yy[O]=this.yy[O]);k.setInput(n,C.yy),C.yy.lexer=k,C.yy.parser=this,typeof k.yylloc>"u"&&(k.yylloc={});var q=k.yylloc;l.push(q);var St=k.options&&k.options.ranges;typeof C.yy.parseError=="function"?this.parseError=C.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Gt(v){o.length=o.length-2*v,p.length=p.length-v,l.length=l.length-v}r(Gt,"popStack");function $t(){var v;return v=y.pop()||k.lex()||rt,typeof v!="number"&&(v instanceof Array&&(y=v,v=y.pop()),v=a.symbols_[v]||v),v}r($t,"lex");for(var b,D,P,w,Ht,W,A={},B,S,it,j;;){if(P=o[o.length-1],this.defaultActions[P]?w=this.defaultActions[P]:((b===null||typeof b>"u")&&(b=$t()),w=M[P]&&M[P][b]),typeof w>"u"||!w.length||!w[0]){var X="";j=[];for(B in M[P])this.terminals_[B]&&B>Tt&&j.push("'"+this.terminals_[B]+"'");k.showPosition?X="Parse error on line "+(N+1)+`: `+k.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[b]||b)+"'":X="Parse error on line "+(N+1)+": Unexpected "+(b==rt?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(X,{text:k.match,token:this.terminals_[b]||b,line:k.yylineno,loc:q,expected:j})}if(w[0]instanceof Array&&w.length>1)throw new Error("Parse Error: multiple actions possible at state: "+P+", token: "+b);switch(w[0]){case 1:o.push(b),p.push(k.yytext),l.push(k.yylloc),o.push(w[1]),b=null,D?(b=D,D=null):(et=k.yyleng,_=k.yytext,N=k.yylineno,q=k.yylloc,nt>0&&nt--);break;case 2:if(S=this.productions_[w[1]][1],A.$=p[p.length-S],A._$={first_line:l[l.length-(S||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(S||1)].first_column,last_column:l[l.length-1].last_column},St&&(A._$.range=[l[l.length-(S||1)].range[0],l[l.length-1].range[1]]),W=this.performAction.apply(A,[_,et,N,C.yy,w[1],p,l].concat(Mt)),typeof W<"u")return W;S&&(o=o.slice(0,-1*S*2),p=p.slice(0,-1*S),l=l.slice(0,-1*S)),o.push(this.productions_[w[1]][0]),p.push(A.$),l.push(A._$),it=M[o[o.length-2]][o[o.length-1]],o.push(it);break;case 3:return!0}}return!0},"parse")},x=function(){var g={EOF:1,parseError:r(function(a,o){if(this.yy.parser)this.yy.parser.parseError(a,o);else throw new Error(a)},"parseError"),setInput:r(function(n,a){return this.yy=a||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var a=n.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:r(function(n){var a=n.length,o=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),o.length-1&&(this.yylineno-=o.length-1);var p=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:o?(o.length===y.length?this.yylloc.first_column:0)+y[y.length-o.length].length-o[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[p[0],p[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(n){this.unput(this.match.slice(n))},"less"),pastInput:r(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var n=this.pastInput(),a=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/kanban-definition-EGOKAUOG.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/kanban-definition-NEOEHSGR.mjs similarity index 55% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/kanban-definition-EGOKAUOG.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/kanban-definition-NEOEHSGR.mjs index 3c5b64d4f..c96c685e7 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/kanban-definition-EGOKAUOG.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/kanban-definition-NEOEHSGR.mjs @@ -1,14 +1,14 @@ -import{a as ye}from"./chunk-BPW5ZDWE.mjs";import{a as de,b as pe}from"./chunk-7LIB5WBN.mjs";import{f as fe,h as me,k as be}from"./chunk-A7EQIZZO.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{F as B,N as ge,X as V,b as W,n as ue,o as te,p as ne,s as F}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a}from"./chunk-GTKDMUJJ.mjs";var ie=function(){var e=a(function(v,i,n,s){for(n=n||{},s=v.length;s--;n[v[s]]=i);return n},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],L=[6,7,8],C=[1,26],g=[1,24],w=[1,25],k=[6,7,11],K=[1,31],S=[6,7,11,24],M=[1,6,13,16,17,20,23],y=[1,35],A=[1,36],O=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:a(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:a(function(i,n,s,o,h,t,R){var c=t.length-1;switch(h){case 6:case 7:return o;case 8:o.getLogger().trace("Stop NL ");break;case 9:o.getLogger().trace("Stop EOF ");break;case 11:o.getLogger().trace("Stop NL2 ");break;case 12:o.getLogger().trace("Stop EOF2 ");break;case 15:o.getLogger().info("Node: ",t[c-1].id),o.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:o.getLogger().info("Node: ",t[c].id),o.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:o.getLogger().trace("Icon: ",t[c]),o.decorateNode({icon:t[c]});break;case 18:case 23:o.decorateNode({class:t[c]});break;case 19:o.getLogger().trace("SPACELIST");break;case 20:o.getLogger().trace("Node: ",t[c-1].id),o.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:o.getLogger().trace("Node: ",t[c].id),o.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:o.decorateNode({icon:t[c]});break;case 27:o.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:o.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:o.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:C,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:K}),e(k,[2,22]),e(k,[2,23]),e(S,[2,25]),e(S,[2,26]),e(S,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(M,[2,14],{7:y,11:A}),e(O,[2,8]),e(O,[2,9]),e(O,[2,10]),e(k,[2,16],{15:37,24:K}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:U}),e(S,[2,31]),{21:[1,39]},{22:[1,40]},e(M,[2,13],{7:y,11:A}),e(O,[2,11]),e(O,[2,12]),e(k,[2,15],{24:U}),e(S,[2,30]),{22:[1,41]},e(S,[2,27]),e(S,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:a(function(i,n){if(n.recoverable)this.trace(i);else{var s=new Error(i);throw s.hash=n,s}},"parseError"),parse:a(function(i){var n=this,s=[0],o=[],h=[null],t=[],R=this.table,c="",z=0,oe=0,ce=0,De=2,le=1,xe=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);m.setInput(i,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;t.push(Q);var Le=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ke(N){s.length=s.length-2*N,h.length=h.length-N,t.length=t.length-N}a(Ke,"popStack");function Oe(){var N;return N=o.pop()||m.lex()||le,typeof N!="number"&&(N instanceof Array&&(o=N,N=o.pop()),N=n.symbols_[N]||N),N}a(Oe,"lex");for(var E,Z,j,D,Ue,$,G={},X,I,he,Y;;){if(j=s[s.length-1],this.defaultActions[j]?D=this.defaultActions[j]:((E===null||typeof E>"u")&&(E=Oe()),D=R[j]&&R[j][E]),typeof D>"u"||!D.length||!D[0]){var ee="";Y=[];for(X in R[j])this.terminals_[X]&&X>De&&Y.push("'"+this.terminals_[X]+"'");m.showPosition?ee="Parse error on line "+(z+1)+`: +import{a as ye}from"./chunk-3YFHLAX3.mjs";import{a as de,b as pe}from"./chunk-7LIB5WBN.mjs";import{f as fe,h as me,k as be}from"./chunk-E7A2AWYO.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{F as B,N as ge,X as V,b as W,n as ue,o as te,p as ne,s as F}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as o}from"./chunk-GTKDMUJJ.mjs";var ie=function(){var e=o(function(v,i,n,s){for(n=n||{},s=v.length;s--;n[v[s]]=i);return n},"o"),u=[1,4],p=[1,13],r=[1,12],d=[1,15],_=[1,16],b=[1,20],l=[1,19],L=[6,7,8],C=[1,26],g=[1,24],w=[1,25],k=[6,7,11],K=[1,31],N=[6,7,11,24],M=[1,6,13,16,17,20,23],y=[1,35],A=[1,36],O=[1,6,7,11,13,16,17,20,23],U=[1,38],T={trace:o(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,KANBAN:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,shapeData:15,ICON:16,CLASS:17,nodeWithId:18,nodeWithoutId:19,NODE_DSTART:20,NODE_DESCR:21,NODE_DEND:22,NODE_ID:23,SHAPE_DATA:24,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"KANBAN",11:"EOF",13:"SPACELIST",16:"ICON",17:"CLASS",20:"NODE_DSTART",21:"NODE_DESCR",22:"NODE_DEND",23:"NODE_ID",24:"SHAPE_DATA"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,3],[12,2],[12,2],[12,2],[12,1],[12,2],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[19,3],[18,1],[18,4],[15,2],[15,1]],performAction:o(function(i,n,s,a,h,t,R){var c=t.length-1;switch(h){case 6:case 7:return a;case 8:a.getLogger().trace("Stop NL ");break;case 9:a.getLogger().trace("Stop EOF ");break;case 11:a.getLogger().trace("Stop NL2 ");break;case 12:a.getLogger().trace("Stop EOF2 ");break;case 15:a.getLogger().info("Node: ",t[c-1].id),a.addNode(t[c-2].length,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 16:a.getLogger().info("Node: ",t[c].id),a.addNode(t[c-1].length,t[c].id,t[c].descr,t[c].type);break;case 17:a.getLogger().trace("Icon: ",t[c]),a.decorateNode({icon:t[c]});break;case 18:case 23:a.decorateNode({class:t[c]});break;case 19:a.getLogger().trace("SPACELIST");break;case 20:a.getLogger().trace("Node: ",t[c-1].id),a.addNode(0,t[c-1].id,t[c-1].descr,t[c-1].type,t[c]);break;case 21:a.getLogger().trace("Node: ",t[c].id),a.addNode(0,t[c].id,t[c].descr,t[c].type);break;case 22:a.decorateNode({icon:t[c]});break;case 27:a.getLogger().trace("node found ..",t[c-2]),this.$={id:t[c-1],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 28:this.$={id:t[c],descr:t[c],type:0};break;case 29:a.getLogger().trace("node found ..",t[c-3]),this.$={id:t[c-3],descr:t[c-1],type:a.getType(t[c-2],t[c])};break;case 30:this.$=t[c-1]+t[c];break;case 31:this.$=t[c];break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:u},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:u},{6:p,7:[1,10],9:9,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(L,[2,3]),{1:[2,2]},e(L,[2,4]),e(L,[2,5]),{1:[2,6],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:p,9:22,12:11,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},{6:C,7:g,10:23,11:w},e(k,[2,24],{18:17,19:18,14:27,16:[1,28],17:[1,29],20:b,23:l}),e(k,[2,19]),e(k,[2,21],{15:30,24:K}),e(k,[2,22]),e(k,[2,23]),e(N,[2,25]),e(N,[2,26]),e(N,[2,28],{20:[1,32]}),{21:[1,33]},{6:C,7:g,10:34,11:w},{1:[2,7],6:p,12:21,13:r,14:14,16:d,17:_,18:17,19:18,20:b,23:l},e(M,[2,14],{7:y,11:A}),e(O,[2,8]),e(O,[2,9]),e(O,[2,10]),e(k,[2,16],{15:37,24:K}),e(k,[2,17]),e(k,[2,18]),e(k,[2,20],{24:U}),e(N,[2,31]),{21:[1,39]},{22:[1,40]},e(M,[2,13],{7:y,11:A}),e(O,[2,11]),e(O,[2,12]),e(k,[2,15],{24:U}),e(N,[2,30]),{22:[1,41]},e(N,[2,27]),e(N,[2,29])],defaultActions:{2:[2,1],6:[2,2]},parseError:o(function(i,n){if(n.recoverable)this.trace(i);else{var s=new Error(i);throw s.hash=n,s}},"parseError"),parse:o(function(i){var n=this,s=[0],a=[],h=[null],t=[],R=this.table,c="",z=0,ae=0,ce=0,De=2,le=1,xe=t.slice.call(arguments,1),m=Object.create(this.lexer),P={yy:{}};for(var q in this.yy)Object.prototype.hasOwnProperty.call(this.yy,q)&&(P.yy[q]=this.yy[q]);m.setInput(i,P.yy),P.yy.lexer=m,P.yy.parser=this,typeof m.yylloc>"u"&&(m.yylloc={});var Q=m.yylloc;t.push(Q);var Le=m.options&&m.options.ranges;typeof P.yy.parseError=="function"?this.parseError=P.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ke(S){s.length=s.length-2*S,h.length=h.length-S,t.length=t.length-S}o(Ke,"popStack");function Oe(){var S;return S=a.pop()||m.lex()||le,typeof S!="number"&&(S instanceof Array&&(a=S,S=a.pop()),S=n.symbols_[S]||S),S}o(Oe,"lex");for(var E,Z,j,D,Ue,$,G={},X,I,he,Y;;){if(j=s[s.length-1],this.defaultActions[j]?D=this.defaultActions[j]:((E===null||typeof E>"u")&&(E=Oe()),D=R[j]&&R[j][E]),typeof D>"u"||!D.length||!D[0]){var ee="";Y=[];for(X in R[j])this.terminals_[X]&&X>De&&Y.push("'"+this.terminals_[X]+"'");m.showPosition?ee="Parse error on line "+(z+1)+`: `+m.showPosition()+` -Expecting `+Y.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(E==le?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ee,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Q,expected:Y})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+E);switch(D[0]){case 1:s.push(E),h.push(m.yytext),t.push(m.yylloc),s.push(D[1]),E=null,Z?(E=Z,Z=null):(oe=m.yyleng,c=m.yytext,z=m.yylineno,Q=m.yylloc,ce>0&&ce--);break;case 2:if(I=this.productions_[D[1]][1],G.$=h[h.length-I],G._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},Le&&(G._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(G,[c,oe,z,P.yy,D[1],h,t].concat(xe)),typeof $<"u")return $;I&&(s=s.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),s.push(this.productions_[D[1]][0]),h.push(G.$),t.push(G._$),he=R[s[s.length-2]][s[s.length-1]],s.push(he);break;case 3:return!0}}return!0},"parse")},J=function(){var v={EOF:1,parseError:a(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw new Error(n)},"parseError"),setInput:a(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:a(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:a(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var o=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===o.length?this.yylloc.first_column:0)+o[o.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:a(function(){return this._more=!0,this},"more"),reject:a(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). -`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:a(function(i){this.unput(this.match.slice(i))},"less"),pastInput:a(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:a(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:a(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` -`+n+"^"},"showPosition"),test_match:a(function(i,n){var s,o,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),o=i[0].match(/(?:\r\n?|\n).*/g),o&&(this.yylineno+=o.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:o?o[o.length-1].length-o[o.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},"test_match"),next:a(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,s,o;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;tn[0].length)){if(n=s,o=t,this.options.backtrack_lexer){if(i=this.test_match(s,h[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,h[o]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. -`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:a(function(){var n=this.next();return n||this.lex()},"lex"),begin:a(function(n){this.conditionStack.push(n)},"begin"),popState:a(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:a(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:a(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:a(function(n){this.begin(n)},"pushState"),stateStackSize:a(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:a(function(n,s,o,h){var t=h;switch(o){case 0:return this.pushState("shapeData"),s.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let R=/\n\s*/g;return s.yytext=s.yytext.replace(R,"
      "),24;break;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",s.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",s.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),n.getLogger().trace("node end ...",s.yytext),"NODE_DEND";break;case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return n.getLogger().trace("Long description:",s.yytext),21;break;case 42:return n.getLogger().trace("Long description:",s.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return v}();T.lexer=J;function H(){this.yy={}}return a(H,"Parser"),H.prototype=T,T.Parser=H,new H}();ie.parser=ie;var ke=ie;var x=[],se=[],re=0,ae={},ve=a(()=>{x=[],se=[],re=0,ae={}},"clear"),Ce=a(e=>{if(x.length===0)return null;let u=x[0].level,p=null;for(let r=x.length-1;r>=0;r--)if(x[r].level===u&&!p&&(p=x[r]),x[r].levell.parentId===d.id);for(let l of b){let L={id:l.id,parentId:d.id,label:B(l.label??"",r),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(L)}}return{nodes:u,edges:e,other:{},config:V()}},"getData"),we=a((e,u,p,r,d)=>{let _=V(),b=_.mindmap?.padding??F.mindmap.padding;switch(r){case f.ROUNDED_RECT:case f.RECT:case f.HEXAGON:b*=2}let l={id:B(u,_)||"kbn"+re++,level:e,label:B(p,_),width:_.mindmap?.maxNodeWidth??F.mindmap.maxNodeWidth,padding:b,isGroup:!1};if(d!==void 0){let C;d.includes(` +Expecting `+Y.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ee="Parse error on line "+(z+1)+": Unexpected "+(E==le?"end of input":"'"+(this.terminals_[E]||E)+"'"),this.parseError(ee,{text:m.match,token:this.terminals_[E]||E,line:m.yylineno,loc:Q,expected:Y})}if(D[0]instanceof Array&&D.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+E);switch(D[0]){case 1:s.push(E),h.push(m.yytext),t.push(m.yylloc),s.push(D[1]),E=null,Z?(E=Z,Z=null):(ae=m.yyleng,c=m.yytext,z=m.yylineno,Q=m.yylloc,ce>0&&ce--);break;case 2:if(I=this.productions_[D[1]][1],G.$=h[h.length-I],G._$={first_line:t[t.length-(I||1)].first_line,last_line:t[t.length-1].last_line,first_column:t[t.length-(I||1)].first_column,last_column:t[t.length-1].last_column},Le&&(G._$.range=[t[t.length-(I||1)].range[0],t[t.length-1].range[1]]),$=this.performAction.apply(G,[c,ae,z,P.yy,D[1],h,t].concat(xe)),typeof $<"u")return $;I&&(s=s.slice(0,-1*I*2),h=h.slice(0,-1*I),t=t.slice(0,-1*I)),s.push(this.productions_[D[1]][0]),h.push(G.$),t.push(G._$),he=R[s[s.length-2]][s[s.length-1]],s.push(he);break;case 3:return!0}}return!0},"parse")},J=function(){var v={EOF:1,parseError:o(function(n,s){if(this.yy.parser)this.yy.parser.parseError(n,s);else throw new Error(n)},"parseError"),setInput:o(function(i,n){return this.yy=n||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:o(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var n=i.match(/(?:\r\n?|\n).*/g);return n?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:o(function(i){var n=i.length,s=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-n),this.offset-=n;var a=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),s.length-1&&(this.yylineno-=s.length-1);var h=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:s?(s.length===a.length?this.yylloc.first_column:0)+a[a.length-s.length].length-s[0].length:this.yylloc.first_column-n},this.options.ranges&&(this.yylloc.range=[h[0],h[0]+this.yyleng-n]),this.yyleng=this.yytext.length,this},"unput"),more:o(function(){return this._more=!0,this},"more"),reject:o(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). +`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:o(function(i){this.unput(this.match.slice(i))},"less"),pastInput:o(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:o(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:o(function(){var i=this.pastInput(),n=new Array(i.length+1).join("-");return i+this.upcomingInput()+` +`+n+"^"},"showPosition"),test_match:o(function(i,n){var s,a,h;if(this.options.backtrack_lexer&&(h={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(h.yylloc.range=this.yylloc.range.slice(0))),a=i[0].match(/(?:\r\n?|\n).*/g),a&&(this.yylineno+=a.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:a?a[a.length-1].length-a[a.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+i[0].length},this.yytext+=i[0],this.match+=i[0],this.matches=i,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(i[0].length),this.matched+=i[0],s=this.performAction.call(this,this.yy,this,n,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),s)return s;if(this._backtrack){for(var t in h)this[t]=h[t];return!1}return!1},"test_match"),next:o(function(){if(this.done)return this.EOF;this._input||(this.done=!0);var i,n,s,a;this._more||(this.yytext="",this.match="");for(var h=this._currentRules(),t=0;tn[0].length)){if(n=s,a=t,this.options.backtrack_lexer){if(i=this.test_match(s,h[t]),i!==!1)return i;if(this._backtrack){n=!1;continue}else return!1}else if(!this.options.flex)break}return n?(i=this.test_match(n,h[a]),i!==!1?i:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text. +`+this.showPosition(),{text:"",token:null,line:this.yylineno})},"next"),lex:o(function(){var n=this.next();return n||this.lex()},"lex"),begin:o(function(n){this.conditionStack.push(n)},"begin"),popState:o(function(){var n=this.conditionStack.length-1;return n>0?this.conditionStack.pop():this.conditionStack[0]},"popState"),_currentRules:o(function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},"_currentRules"),topState:o(function(n){return n=this.conditionStack.length-1-Math.abs(n||0),n>=0?this.conditionStack[n]:"INITIAL"},"topState"),pushState:o(function(n){this.begin(n)},"pushState"),stateStackSize:o(function(){return this.conditionStack.length},"stateStackSize"),options:{"case-insensitive":!0},performAction:o(function(n,s,a,h){var t=h;switch(a){case 0:return this.pushState("shapeData"),s.yytext="",24;break;case 1:return this.pushState("shapeDataStr"),24;break;case 2:return this.popState(),24;break;case 3:let R=/\n\s*/g;return s.yytext=s.yytext.replace(R,"
      "),24;break;case 4:return 24;case 5:this.popState();break;case 6:return n.getLogger().trace("Found comment",s.yytext),6;break;case 7:return 8;case 8:this.begin("CLASS");break;case 9:return this.popState(),17;break;case 10:this.popState();break;case 11:n.getLogger().trace("Begin icon"),this.begin("ICON");break;case 12:return n.getLogger().trace("SPACELINE"),6;break;case 13:return 7;case 14:return 16;case 15:n.getLogger().trace("end icon"),this.popState();break;case 16:return n.getLogger().trace("Exploding node"),this.begin("NODE"),20;break;case 17:return n.getLogger().trace("Cloud"),this.begin("NODE"),20;break;case 18:return n.getLogger().trace("Explosion Bang"),this.begin("NODE"),20;break;case 19:return n.getLogger().trace("Cloud Bang"),this.begin("NODE"),20;break;case 20:return this.begin("NODE"),20;break;case 21:return this.begin("NODE"),20;break;case 22:return this.begin("NODE"),20;break;case 23:return this.begin("NODE"),20;break;case 24:return 13;case 25:return 23;case 26:return 11;case 27:this.begin("NSTR2");break;case 28:return"NODE_DESCR";case 29:this.popState();break;case 30:n.getLogger().trace("Starting NSTR"),this.begin("NSTR");break;case 31:return n.getLogger().trace("description:",s.yytext),"NODE_DESCR";break;case 32:this.popState();break;case 33:return this.popState(),n.getLogger().trace("node end ))"),"NODE_DEND";break;case 34:return this.popState(),n.getLogger().trace("node end )"),"NODE_DEND";break;case 35:return this.popState(),n.getLogger().trace("node end ...",s.yytext),"NODE_DEND";break;case 36:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 37:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 38:return this.popState(),n.getLogger().trace("node end (-"),"NODE_DEND";break;case 39:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 40:return this.popState(),n.getLogger().trace("node end (("),"NODE_DEND";break;case 41:return n.getLogger().trace("Long description:",s.yytext),21;break;case 42:return n.getLogger().trace("Long description:",s.yytext),21;break}},"anonymous"),rules:[/^(?:@\{)/i,/^(?:["])/i,/^(?:["])/i,/^(?:[^\"]+)/i,/^(?:[^}^"]+)/i,/^(?:\})/i,/^(?:\s*%%.*)/i,/^(?:kanban\b)/i,/^(?::::)/i,/^(?:.+)/i,/^(?:\n)/i,/^(?:::icon\()/i,/^(?:[\s]+[\n])/i,/^(?:[\n]+)/i,/^(?:[^\)]+)/i,/^(?:\))/i,/^(?:-\))/i,/^(?:\(-)/i,/^(?:\)\))/i,/^(?:\))/i,/^(?:\(\()/i,/^(?:\{\{)/i,/^(?:\()/i,/^(?:\[)/i,/^(?:[\s]+)/i,/^(?:[^\(\[\n\)\{\}@]+)/i,/^(?:$)/i,/^(?:["][`])/i,/^(?:[^`"]+)/i,/^(?:[`]["])/i,/^(?:["])/i,/^(?:[^"]+)/i,/^(?:["])/i,/^(?:[\)]\))/i,/^(?:[\)])/i,/^(?:[\]])/i,/^(?:\}\})/i,/^(?:\(-)/i,/^(?:-\))/i,/^(?:\(\()/i,/^(?:\()/i,/^(?:[^\)\]\(\}]+)/i,/^(?:.+(?!\(\())/i],conditions:{shapeDataEndBracket:{rules:[],inclusive:!1},shapeDataStr:{rules:[2,3],inclusive:!1},shapeData:{rules:[1,4,5],inclusive:!1},CLASS:{rules:[9,10],inclusive:!1},ICON:{rules:[14,15],inclusive:!1},NSTR2:{rules:[28,29],inclusive:!1},NSTR:{rules:[31,32],inclusive:!1},NODE:{rules:[27,30,33,34,35,36,37,38,39,40,41,42],inclusive:!1},INITIAL:{rules:[0,6,7,8,11,12,13,16,17,18,19,20,21,22,23,24,25,26],inclusive:!0}}};return v}();T.lexer=J;function H(){this.yy={}}return o(H,"Parser"),H.prototype=T,T.Parser=H,new H}();ie.parser=ie;var ke=ie;var x=[],se=[],re=0,oe={},ve=o(()=>{x=[],se=[],re=0,oe={}},"clear"),Ce=o(e=>{if(x.length===0)return null;let u=x[0].level,p=null;for(let r=x.length-1;r>=0;r--)if(x[r].level===u&&!p&&(p=x[r]),x[r].levell.parentId===d.id);for(let l of b){let L={id:l.id,parentId:d.id,label:B(l.label??"",r),isGroup:!1,ticket:l?.ticket,priority:l?.priority,assigned:l?.assigned,icon:l?.icon,shape:"kanbanItem",level:l.level,rx:5,ry:5,cssStyles:["text-align: left"]};u.push(L)}}return{nodes:u,edges:e,other:{},config:V()}},"getData"),we=o((e,u,p,r,d)=>{let _=V(),b=_.mindmap?.padding??F.mindmap.padding;switch(r){case f.ROUNDED_RECT:case f.RECT:case f.HEXAGON:b*=2}let l={id:B(u,_)||"kbn"+re++,level:e,label:B(p,_),width:_.mindmap?.maxNodeWidth??F.mindmap.maxNodeWidth,padding:b,isGroup:!1};if(d!==void 0){let C;d.includes(` `)?C=d+` `:C=`{ `+d+` -}`;let g=pe(C,{schema:de});if(g.shape&&(g.shape!==g.shape.toLowerCase()||g.shape.includes("_")))throw new Error(`No such shape: ${g.shape}. Shape names should be lowercase.`);g?.shape&&g.shape==="kanbanItem"&&(l.shape=g?.shape),g?.label&&(l.label=g?.label),g?.icon&&(l.icon=g?.icon),g?.assigned&&(l.assigned=g?.assigned),g?.ticket&&(l.ticket=g?.ticket),g?.priority&&(l.priority=g?.priority)}let L=Ce(e);L?l.parentId=L.id||"kbn"+re++:se.push(l),x.push(l)},"addNode"),f={DEFAULT:0,NO_BORDER:0,ROUNDED_RECT:1,RECT:2,CIRCLE:3,CLOUD:4,BANG:5,HEXAGON:6},Ae=a((e,u)=>{switch(W.debug("In get type",e,u),e){case"[":return f.RECT;case"(":return u===")"?f.ROUNDED_RECT:f.CLOUD;case"((":return f.CIRCLE;case")":return f.CLOUD;case"))":return f.BANG;case"{{":return f.HEXAGON;default:return f.DEFAULT}},"getType"),Te=a((e,u)=>{ae[e]=u},"setElementForId"),Re=a(e=>{if(!e)return;let u=V(),p=x[x.length-1];e.icon&&(p.icon=B(e.icon,u)),e.class&&(p.cssClasses=B(e.class,u))},"decorateNode"),Pe=a(e=>{switch(e){case f.DEFAULT:return"no-border";case f.RECT:return"rect";case f.ROUNDED_RECT:return"rounded-rect";case f.CIRCLE:return"circle";case f.CLOUD:return"cloud";case f.BANG:return"bang";case f.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),je=a(()=>W,"getLogger"),Be=a(e=>ae[e],"getElementById"),Ve={clear:ve,addNode:we,getSections:Ee,getData:Ie,nodeType:f,getType:Ae,setElementForId:Te,decorateNode:Re,type2Str:Pe,getLogger:je,getElementById:Be},_e=Ve;var Me=a(async(e,u,p,r)=>{W.debug(`Rendering kanban diagram -`+e);let _=r.db.getData(),b=V();b.htmlLabels=!1;let l=ye(u),L=l.append("g");L.attr("class","sections");let C=l.append("g");C.attr("class","items");let g=_.nodes.filter(y=>y.isGroup),w=0,k=10,K=[],S=25;for(let y of g){let A=b?.kanban?.sectionWidth||200;w=w+1,y.x=A*w+(w-1)*k/2,y.width=A,y.y=0,y.height=A*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+w;let O=await fe(L,y);S=Math.max(S,O?.labelBBox?.height),K.push(O)}let M=0;for(let y of g){let A=K[M];M=M+1;let O=b?.kanban?.sectionWidth||200,U=-O*3/2+S,T=U,J=_.nodes.filter(i=>i.parentId===y.id);for(let i of J){if(i.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");i.x=y.x,i.width=O-1.5*k;let s=(await me(C,i,{config:b})).node().getBBox();i.y=T+s.height/2,await be(i),T=i.y+s.height/2+k/2}let H=A.cluster.select("rect"),v=Math.max(T-U+3*k,50)+(S-25);H.attr("height",v)}ge(void 0,l,b.mindmap?.padding??F.kanban.padding,b.mindmap?.useMaxWidth??F.kanban.useMaxWidth)},"draw"),Ne={draw:Me};var Ge=a(e=>{let u="";for(let r=0;re.darkMode?ne(r,d):te(r,d),"adjuster");for(let r=0;r{switch(W.debug("In get type",e,u),e){case"[":return f.RECT;case"(":return u===")"?f.ROUNDED_RECT:f.CLOUD;case"((":return f.CIRCLE;case")":return f.CLOUD;case"))":return f.BANG;case"{{":return f.HEXAGON;default:return f.DEFAULT}},"getType"),Te=o((e,u)=>{oe[e]=u},"setElementForId"),Re=o(e=>{if(!e)return;let u=V(),p=x[x.length-1];e.icon&&(p.icon=B(e.icon,u)),e.class&&(p.cssClasses=B(e.class,u))},"decorateNode"),Pe=o(e=>{switch(e){case f.DEFAULT:return"no-border";case f.RECT:return"rect";case f.ROUNDED_RECT:return"rounded-rect";case f.CIRCLE:return"circle";case f.CLOUD:return"cloud";case f.BANG:return"bang";case f.HEXAGON:return"hexgon";default:return"no-border"}},"type2Str"),je=o(()=>W,"getLogger"),Be=o(e=>oe[e],"getElementById"),Ve={clear:ve,addNode:we,getSections:Ee,getData:Ie,nodeType:f,getType:Ae,setElementForId:Te,decorateNode:Re,type2Str:Pe,getLogger:je,getElementById:Be},_e=Ve;var Me=o(async(e,u,p,r)=>{W.debug(`Rendering kanban diagram +`+e);let _=r.db.getData(),b=V();b.htmlLabels=!1;let l=ye(u),L=l.append("g");L.attr("class","sections");let C=l.append("g");C.attr("class","items");let g=_.nodes.filter(y=>y.isGroup),w=0,k=10,K=[],N=25;for(let y of g){let A=b?.kanban?.sectionWidth||200;w=w+1,y.x=A*w+(w-1)*k/2,y.width=A,y.y=0,y.height=A*3,y.rx=5,y.ry=5,y.cssClasses=y.cssClasses+" section-"+w;let O=await fe(L,y);N=Math.max(N,O?.labelBBox?.height),K.push(O)}let M=0;for(let y of g){let A=K[M];M=M+1;let O=b?.kanban?.sectionWidth||200,U=-O*3/2+N,T=U,J=_.nodes.filter(i=>i.parentId===y.id);for(let i of J){if(i.isGroup)throw new Error("Groups within groups are not allowed in Kanban diagrams");i.x=y.x,i.width=O-1.5*k;let s=(await me(C,i,{config:b})).node().getBBox();i.y=T+s.height/2,await be(i),T=i.y+s.height/2+k/2}let H=A.cluster.select("rect"),v=Math.max(T-U+3*k,50)+(N-25);H.attr("height",v)}ge(void 0,l,b.mindmap?.padding??F.kanban.padding,b.mindmap?.useMaxWidth??F.kanban.useMaxWidth)},"draw"),Se={draw:Me};var Ge=o(e=>{let u="";for(let r=0;re.darkMode?ne(r,d):te(r,d),"adjuster");for(let r=0;r` + `}return u},"genSections"),Fe=o(e=>` .edge { stroke-width: 3; } @@ -85,4 +85,4 @@ Expecting `+Y.join(", ")+", got '"+(this.terminals_[E]||E)+"'":ee="Parse error o dominant-baseline: middle; text-align: center; } -`,"getStyles"),Se=Fe;var ft={db:_e,renderer:Ne,parser:ke,styles:Se};export{ft as diagram}; +`,"getStyles"),Ne=Fe;var ft={db:_e,renderer:Se,parser:ke,styles:Ne};export{ft as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/mindmap-definition-PE66ZM2U.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/mindmap-definition-55KDPWGP.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/mindmap-definition-PE66ZM2U.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/mindmap-definition-55KDPWGP.mjs index a8601189d..c2bd9a4a6 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/mindmap-definition-PE66ZM2U.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/mindmap-definition-55KDPWGP.mjs @@ -1,4 +1,4 @@ -import{a as ct}from"./chunk-PWCSEZZ4.mjs";import{a as It}from"./chunk-BPW5ZDWE.mjs";import{d as At}from"./chunk-EXDBZKZY.mjs";import{k as Ot}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{F as tt,N as Dt,X as et,b as Q,ga as Nt,n as mt,o as Lt,p as Tt,s as q}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as L,b as lt,e as Ut}from"./chunk-GTKDMUJJ.mjs";var pt=lt((rt,ft)=>{"use strict";L(function(I,o){typeof rt=="object"&&typeof ft=="object"?ft.exports=o():typeof define=="function"&&define.amd?define([],o):typeof rt=="object"?rt.layoutBase=o():I.layoutBase=o()},"webpackUniversalModuleDefinition")(rt,function(){return function(E){var I={};function o(i){if(I[i])return I[i].exports;var e=I[i]={i,l:!1,exports:{}};return E[i].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return L(o,"__webpack_require__"),o.m=E,o.c=I,o.i=function(i){return i},o.d=function(i,e,t){o.o(i,e)||Object.defineProperty(i,e,{configurable:!1,enumerable:!0,get:t})},o.n=function(i){var e=i&&i.__esModule?L(function(){return i.default},"getDefault"):L(function(){return i},"getModuleExports");return o.d(e,"a",e),e},o.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},o.p="",o(o.s=26)}([function(E,I,o){"use strict";function i(){}L(i,"LayoutConstants"),i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,E.exports=i},function(E,I,o){"use strict";var i=o(2),e=o(8),t=o(9);function r(f,a,d){i.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=f,this.target=a}L(r,"LEdge"),r.prototype=Object.create(i.prototype);for(var l in i)r[l]=i[l];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,a){for(var d=this.getOtherEnd(f),s=a.getGraphManager().getRoot();;){if(d.getOwner()==a)return d;if(d.getOwner()==s)break;d=d.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=r},function(E,I,o){"use strict";function i(e){this.vGraphObject=e}L(i,"LGraphObject"),E.exports=i},function(E,I,o){"use strict";var i=o(2),e=o(10),t=o(13),r=o(0),l=o(16),f=o(4);function a(s,c,u,v){u==null&&v==null&&(v=c),i.call(this,v),s.graphManager!=null&&(s=s.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=v,this.edges=[],this.graphManager=s,u!=null&&c!=null?this.rect=new t(c.x,c.y,u.width,u.height):this.rect=new t}L(a,"LNode"),a.prototype=Object.create(i.prototype);for(var d in i)a[d]=i[d];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(s){this.rect.width=s},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(s){this.rect.height=s},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(s,c){this.rect.x=s.x,this.rect.y=s.y,this.rect.width=c.width,this.rect.height=c.height},a.prototype.setCenter=function(s,c){this.rect.x=s-this.rect.width/2,this.rect.y=c-this.rect.height/2},a.prototype.setLocation=function(s,c){this.rect.x=s,this.rect.y=c},a.prototype.moveBy=function(s,c){this.rect.x+=s,this.rect.y+=c},a.prototype.getEdgeListToNode=function(s){var c=[],u,v=this;return v.edges.forEach(function(m){if(m.target==s){if(m.source!=v)throw"Incorrect edge source!";c.push(m)}}),c},a.prototype.getEdgesBetween=function(s){var c=[],u,v=this;return v.edges.forEach(function(m){if(!(m.source==v||m.target==v))throw"Incorrect edge source and/or target";(m.target==s||m.source==s)&&c.push(m)}),c},a.prototype.getNeighborsList=function(){var s=new Set,c=this;return c.edges.forEach(function(u){if(u.source==c)s.add(u.target);else{if(u.target!=c)throw"Incorrect incidency!";s.add(u.source)}}),s},a.prototype.withChildren=function(){var s=new Set,c,u;if(s.add(this),this.child!=null)for(var v=this.child.getNodes(),m=0;mc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>u&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-u)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-u),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(s){var c=this.rect.x;c>r.WORLD_BOUNDARY?c=r.WORLD_BOUNDARY:c<-r.WORLD_BOUNDARY&&(c=-r.WORLD_BOUNDARY);var u=this.rect.y;u>r.WORLD_BOUNDARY?u=r.WORLD_BOUNDARY:u<-r.WORLD_BOUNDARY&&(u=-r.WORLD_BOUNDARY);var v=new f(c,u),m=s.inverseTransformPoint(v);this.setLocation(m.x,m.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=a},function(E,I,o){"use strict";function i(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}L(i,"PointD"),i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(e){this.x=e},i.prototype.setY=function(e){this.y=e},i.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},E.exports=i},function(E,I,o){"use strict";var i=o(2),e=o(10),t=o(0),r=o(6),l=o(3),f=o(1),a=o(13),d=o(12),s=o(11);function c(v,m,T){i.call(this,T),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=v,m!=null&&m instanceof r?this.graphManager=m:m!=null&&m instanceof Layout&&(this.graphManager=m.graphManager)}L(c,"LGraph"),c.prototype=Object.create(i.prototype);for(var u in i)c[u]=i[u];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(v,m,T){if(m==null&&T==null){var y=v;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(y)>-1)throw"Node already in graph!";return y.owner=this,this.getNodes().push(y),y}else{var A=v;if(!(this.getNodes().indexOf(m)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(m.owner==T.owner&&m.owner==this))throw"Both owners must be this graph!";return m.owner!=T.owner?null:(A.source=m,A.target=T,A.isInterGraph=!1,this.getEdges().push(A),m.edges.push(A),T!=m&&T.edges.push(A),A)}},c.prototype.remove=function(v){var m=v;if(v instanceof l){if(m==null)throw"Node is null!";if(!(m.owner!=null&&m.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=m.edges.slice(),y,A=T.length,O=0;O-1&&h>-1))throw"Source and/or target doesn't know this edge!";y.source.edges.splice(n,1),y.target!=y.source&&y.target.edges.splice(h,1);var R=y.source.owner.getEdges().indexOf(y);if(R==-1)throw"Not in owner's edge list!";y.source.owner.getEdges().splice(R,1)}},c.prototype.updateLeftTop=function(){for(var v=e.MAX_VALUE,m=e.MAX_VALUE,T,y,A,O=this.getNodes(),R=O.length,n=0;nT&&(v=T),m>y&&(m=y)}return v==e.MAX_VALUE?null:(O[0].getParent().paddingLeft!=null?A=O[0].getParent().paddingLeft:A=this.margin,this.left=m-A,this.top=v-A,new d(this.left,this.top))},c.prototype.updateBounds=function(v){for(var m=e.MAX_VALUE,T=-e.MAX_VALUE,y=e.MAX_VALUE,A=-e.MAX_VALUE,O,R,n,h,g,p=this.nodes,D=p.length,N=0;NO&&(m=O),Tn&&(y=n),AO&&(m=O),Tn&&(y=n),A=this.nodes.length){var D=0;T.forEach(function(N){N.owner==v&&D++}),D==this.nodes.length&&(this.isConnected=!0)}},E.exports=c},function(E,I,o){"use strict";var i,e=o(1);function t(r){i=o(5),this.layout=r,this.graphs=[],this.edges=[]}L(t,"LGraphManager"),t.prototype.addRoot=function(){var r=this.layout.newGraph(),l=this.layout.newNode(null),f=this.add(r,l);return this.setRootGraph(f),this.rootGraph},t.prototype.add=function(r,l,f,a,d){if(f==null&&a==null&&d==null){if(r==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return r.parent=l,l.child=r,r}else{d=f,a=l,f=r;var s=a.getOwner(),c=d.getOwner();if(!(s!=null&&s.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(s==c)return f.isInterGraph=!1,s.add(f,a,d);if(f.isInterGraph=!0,f.source=a,f.target=d,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},t.prototype.remove=function(r){if(r instanceof i){var l=r;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(l.getEdges());for(var a,d=f.length,s=0;s=r.getRight()?l[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?l[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var d=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(d=1);var s=d*l[0],c=l[1]/d;l[0]s)return l[0]=f,l[1]=u,l[2]=d,l[3]=p,!1;if(ad)return l[0]=c,l[1]=a,l[2]=h,l[3]=s,!1;if(fd?(l[0]=m,l[1]=T,C=!0):(l[0]=v,l[1]=u,C=!0):P===F&&(f>d?(l[0]=c,l[1]=u,C=!0):(l[0]=y,l[1]=T,C=!0)),-U===F?d>f?(l[2]=g,l[3]=p,w=!0):(l[2]=h,l[3]=n,w=!0):U===F&&(d>f?(l[2]=R,l[3]=n,w=!0):(l[2]=D,l[3]=p,w=!0)),C&&w)return!1;if(f>d?a>s?(x=this.getCardinalDirection(P,F,4),G=this.getCardinalDirection(U,F,2)):(x=this.getCardinalDirection(-P,F,3),G=this.getCardinalDirection(-U,F,1)):a>s?(x=this.getCardinalDirection(-P,F,1),G=this.getCardinalDirection(-U,F,3)):(x=this.getCardinalDirection(P,F,2),G=this.getCardinalDirection(U,F,4)),!C)switch(x){case 1:_=u,S=f+-O/F,l[0]=S,l[1]=_;break;case 2:S=y,_=a+A*F,l[0]=S,l[1]=_;break;case 3:_=T,S=f+O/F,l[0]=S,l[1]=_;break;case 4:S=m,_=a+-A*F,l[0]=S,l[1]=_;break}if(!w)switch(G){case 1:b=n,X=d+-M/F,l[2]=X,l[3]=b;break;case 2:X=D,b=s+N*F,l[2]=X,l[3]=b;break;case 3:b=p,X=d+M/F,l[2]=X,l[3]=b;break;case 4:X=g,b=s+-N*F,l[2]=X,l[3]=b;break}}return!1},e.getCardinalDirection=function(t,r,l){return t>r?l:1+l%4},e.getIntersection=function(t,r,l,f){if(f==null)return this.getIntersection2(t,r,l);var a=t.x,d=t.y,s=r.x,c=r.y,u=l.x,v=l.y,m=f.x,T=f.y,y=void 0,A=void 0,O=void 0,R=void 0,n=void 0,h=void 0,g=void 0,p=void 0,D=void 0;return O=c-d,n=a-s,g=s*d-a*c,R=T-v,h=u-m,p=m*v-u*T,D=O*h-R*n,D===0?null:(y=(n*p-h*g)/D,A=(R*g-O*p)/D,new i(y,A))},e.angleOfVector=function(t,r,l,f){var a=void 0;return t!==l?(a=Math.atan((f-r)/(l-t)),l0?1:e<0?-1:0},i.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},i.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},E.exports=i},function(E,I,o){"use strict";function i(){}L(i,"Integer"),i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,E.exports=i},function(E,I,o){"use strict";var i=function(){function a(d,s){for(var c=0;c"u"?"undefined":i(t);return t==null||r!="object"&&r!="function"},E.exports=e},function(E,I,o){"use strict";function i(u){if(Array.isArray(u)){for(var v=0,m=Array(u.length);v0&&v;){for(O.push(n[0]);O.length>0&&v;){var h=O[0];O.splice(0,1),A.add(h);for(var g=h.getEdges(),y=0;y-1&&n.splice(M,1)}A=new Set,R=new Map}}return u},c.prototype.createDummyNodesForBendpoints=function(u){for(var v=[],m=u.source,T=this.graphManager.calcLowestCommonAncestor(u.source,u.target),y=0;y0){for(var T=this.edgeToDummyNodes.get(m),y=0;y=0&&v.splice(p,1);var D=R.getNeighborsList();D.forEach(function(C){if(m.indexOf(C)<0){var w=T.get(C),P=w-1;P==1&&h.push(C),T.set(C,P)}})}m=m.concat(h),(v.length==1||v.length==2)&&(y=!0,A=v[0])}return A},c.prototype.setGraphManager=function(u){this.graphManager=u},E.exports=c},function(E,I,o){"use strict";function i(){}L(i,"RandomSeed"),i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},E.exports=i},function(E,I,o){"use strict";var i=o(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}L(e,"Transform"),e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,l=this.lworldExtX;return l!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),r},e.prototype.transformY=function(t){var r=0,l=this.lworldExtY;return l!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),r},e.prototype.inverseTransformX=function(t){var r=0,l=this.ldeviceExtX;return l!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),r},e.prototype.inverseTransformY=function(t){var r=0,l=this.ldeviceExtY;return l!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),r},e.prototype.inverseTransformPoint=function(t){var r=new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},E.exports=e},function(E,I,o){"use strict";function i(s){if(Array.isArray(s)){for(var c=0,u=Array(s.length);ct.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(s-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(s>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(s-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var s=this.getAllEdges(),c,u=0;u0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u,v,m,T,y=this.getAllNodes(),A;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),A=new Set,u=0;uO||A>O)&&(s.gravitationForceX=-this.gravityConstant*m,s.gravitationForceY=-this.gravityConstant*T)):(O=c.getEstimatedSize()*this.compoundGravityRangeFactor,(y>O||A>O)&&(s.gravitationForceX=-this.gravityConstant*m*this.compoundGravityConstant,s.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var s,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),s=this.totalDisplacement=y.length||O>=y[0].length)){for(var R=0;Ra},"_defaultCompareFunction")}]),l}();E.exports=r},function(E,I,o){"use strict";var i=function(){function r(l,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=l,this.sequence2=f,this.match_score=a,this.mismatch_penalty=d,this.gap_penalty=s,this.iMax=l.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;l--){var f=this.listeners[l];f.event===t&&f.callback===r&&this.listeners.splice(l,1)}},e.emit=function(t,r){for(var l=0;l{"use strict";L(function(I,o){typeof it=="object"&&typeof dt=="object"?dt.exports=o(pt()):typeof define=="function"&&define.amd?define(["layout-base"],o):typeof it=="object"?it.coseBase=o(pt()):I.coseBase=o(I.layoutBase)},"webpackUniversalModuleDefinition")(it,function(E){return function(I){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return L(i,"__webpack_require__"),i.m=I,i.c=o,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?L(function(){return e.default},"getDefault"):L(function(){return e},"getModuleExports");return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=7)}([function(I,o){I.exports=E},function(I,o,i){"use strict";var e=i(0).FDLayoutConstants;function t(){}L(t,"CoSEConstants");for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,I.exports=t},function(I,o,i){"use strict";var e=i(0).FDLayoutEdge;function t(l,f,a){e.call(this,l,f,a)}L(t,"CoSEEdge"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];I.exports=t},function(I,o,i){"use strict";var e=i(0).LGraph;function t(l,f,a){e.call(this,l,f,a)}L(t,"CoSEGraph"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];I.exports=t},function(I,o,i){"use strict";var e=i(0).LGraphManager;function t(l){e.call(this,l)}L(t,"CoSEGraphManager"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];I.exports=t},function(I,o,i){"use strict";var e=i(0).FDLayoutNode,t=i(0).IMath;function r(f,a,d,s){e.call(this,f,a,d,s)}L(r,"CoSENode"),r.prototype=Object.create(e.prototype);for(var l in e)r[l]=e[l];r.prototype.move=function(){var f=this.graphManager.getLayout();this.displacementX=f.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=f.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementX=f.coolingFactor*f.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementY=f.coolingFactor*f.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),f.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(f,a){for(var d=this.getChild().getNodes(),s,c=0;c0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var h=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(p){return h.has(p)});this.graphManager.setAllNodesToApplyGravitation(g),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),h=this.nodesWithGravity.filter(function(D){return n.has(D)});this.graphManager.setAllNodesToApplyGravitation(h),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var g=!this.isTreeGrowing&&!this.isGrowthFinished,p=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(g,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),h={},g=0;g1){var C;for(C=0;Cp&&(p=Math.floor(M.y)),N=Math.floor(M.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(s.WORLD_CENTER_X-M.x/2,s.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,h,g){var p=Math.max(this.maxDiagonalInTree(n),a.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(h,null,0,359,0,p);var D=y.calculateBounds(n),N=new A;N.setDeviceOrgX(D.getMinX()),N.setDeviceOrgY(D.getMinY()),N.setWorldOrgX(g.x),N.setWorldOrgY(g.y);for(var M=0;M1;){var H=b[0];b.splice(0,1);var z=x.indexOf(H);z>=0&&x.splice(z,1),_--,G--}h!=null?X=(x.indexOf(b[0])+1)%_:X=0;for(var B=Math.abs(p-g)/G,Y=X;S!=G;Y=++Y%_){var K=x[Y].getOtherEnd(n);if(K!=h){var j=(g+S*B)%360,$=(j+B)%360;O.branchRadialLayout(K,n,j,$,D+N,N),S++}}},O.maxDiagonalInTree=function(n){for(var h=m.MIN_VALUE,g=0;gh&&(h=D)}return h},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,h={};this.memberGroups={},this.idToDummyNode={};for(var g=[],p=this.graphManager.getAllNodes(),D=0;D"u"&&(h[C]=[]),h[C]=h[C].concat(N)}Object.keys(h).forEach(function(w){if(h[w].length>1){var P="DummyCompound_"+w;n.memberGroups[P]=h[w];var U=h[w][0].getParent(),F=new l(n.graphManager);F.id=P,F.paddingLeft=U.paddingLeft||0,F.paddingRight=U.paddingRight||0,F.paddingBottom=U.paddingBottom||0,F.paddingTop=U.paddingTop||0,n.idToDummyNode[P]=F;var x=n.getGraphManager().add(n.newGraph(),F),G=U.getChild();G.add(F);for(var S=0;S=0;n--){var h=this.compoundOrder[n],g=h.id,p=h.paddingLeft,D=h.paddingTop;this.adjustLocations(this.tiledMemberPack[g],h.rect.x,h.rect.y,p,D)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,h=this.tiledZeroDegreePack;Object.keys(h).forEach(function(g){var p=n.idToDummyNode[g],D=p.paddingLeft,N=p.paddingTop;n.adjustLocations(h[g],p.rect.x,p.rect.y,D,N)})},O.prototype.getToBeTiled=function(n){var h=n.id;if(this.toBeTiled[h]!=null)return this.toBeTiled[h];var g=n.getChild();if(g==null)return this.toBeTiled[h]=!1,!1;for(var p=g.getNodes(),D=0;D0)return this.toBeTiled[h]=!1,!1;if(N.getChild()==null){this.toBeTiled[N.id]=!1;continue}if(!this.getToBeTiled(N))return this.toBeTiled[h]=!1,!1}return this.toBeTiled[h]=!0,!0},O.prototype.getNodeDegree=function(n){for(var h=n.id,g=n.getEdges(),p=0,D=0;Dw&&(w=U.rect.height)}g+=w+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,h){var g=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(p){var D=h[p];g.tiledMemberPack[p]=g.tileNodes(n[p],D.paddingLeft+D.paddingRight),D.rect.width=g.tiledMemberPack[p].width,D.rect.height=g.tiledMemberPack[p].height})},O.prototype.tileNodes=function(n,h){var g=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:h,verticalPadding:g,horizontalPadding:p};n.sort(function(C,w){return C.rect.width*C.rect.height>w.rect.width*w.rect.height?-1:C.rect.width*C.rect.height0&&(M+=n.horizontalPadding),n.rowWidth[g]=M,n.width0&&(C+=n.verticalPadding);var w=0;C>n.rowHeight[g]&&(w=n.rowHeight[g],n.rowHeight[g]=C,w=n.rowHeight[g]-w),n.height+=w,n.rows[g].push(h)},O.prototype.getShortestRowIndex=function(n){for(var h=-1,g=Number.MAX_VALUE,p=0;pg&&(h=p,g=n.rowWidth[p]);return h},O.prototype.canAddHorizontal=function(n,h,g){var p=this.getShortestRowIndex(n);if(p<0)return!0;var D=n.rowWidth[p];if(D+n.horizontalPadding+h<=n.width)return!0;var N=0;n.rowHeight[p]0&&(N=g+n.verticalPadding-n.rowHeight[p]);var M;n.width-D>=h+n.horizontalPadding?M=(n.height+N)/(D+h+n.horizontalPadding):M=(n.height+N)/n.width,N=g+n.verticalPadding;var C;return n.widthN&&h!=g){p.splice(-1,1),n.rows[g].push(D),n.rowWidth[h]=n.rowWidth[h]-N,n.rowWidth[g]=n.rowWidth[g]+N,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,C=0;CM&&(M=p[C].height);h>0&&(M+=n.verticalPadding);var w=n.rowHeight[h]+n.rowHeight[g];n.rowHeight[h]=M,n.rowHeight[g]0)for(var G=D;G<=N;G++)x[0]+=this.grid[G][M-1].length+this.grid[G][M].length-1;if(N0)for(var G=M;G<=C;G++)x[3]+=this.grid[D-1][G].length+this.grid[D][G].length-1;for(var S=m.MAX_VALUE,_,X,b=0;b{"use strict";L(function(I,o){typeof nt=="object"&&typeof yt=="object"?yt.exports=o(vt()):typeof define=="function"&&define.amd?define(["cose-base"],o):typeof nt=="object"?nt.cytoscapeCoseBilkent=o(vt()):I.cytoscapeCoseBilkent=o(I.coseBase)},"webpackUniversalModuleDefinition")(nt,function(E){return function(I){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return L(i,"__webpack_require__"),i.m=I,i.c=o,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?L(function(){return e.default},"getDefault"):L(function(){return e},"getModuleExports");return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(I,o){I.exports=E},function(I,o,i){"use strict";var e=i(0).layoutBase.LayoutConstants,t=i(0).layoutBase.FDLayoutConstants,r=i(0).CoSEConstants,l=i(0).CoSELayout,f=i(0).CoSENode,a=i(0).layoutBase.PointD,d=i(0).layoutBase.DimensionD,s={ready:L(function(){},"ready"),stop:L(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function c(T,y){var A={};for(var O in T)A[O]=T[O];for(var O in y)A[O]=y[O];return A}L(c,"extend");function u(T){this.options=c(s,T),v(this.options)}L(u,"_CoSELayout");var v=L(function(y){y.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=y.nodeRepulsion),y.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=y.idealEdgeLength),y.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=y.edgeElasticity),y.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.nestingFactor),y.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=y.gravity),y.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=y.numIter),y.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=y.gravityRange),y.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.gravityCompound),y.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.gravityRangeCompound),y.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.initialEnergyOnIncremental),y.quality=="draft"?e.QUALITY=0:y.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=y.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!y.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=y.animate,r.TILE=y.tile,r.TILING_PADDING_VERTICAL=typeof y.tilingPaddingVertical=="function"?y.tilingPaddingVertical.call():y.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof y.tilingPaddingHorizontal=="function"?y.tilingPaddingHorizontal.call():y.tilingPaddingHorizontal},"getUserOptions");u.prototype.run=function(){var T,y,A=this.options,O=this.idToLNode={},R=this.layout=new l,n=this;n.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var h=R.newGraphManager();this.gm=h;var g=this.options.eles.nodes(),p=this.options.eles.edges();this.root=h.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(g),R);for(var D=0;D0){var C;C=A.getGraphManager().add(A.newGraph(),g),this.processChildrenList(C,h,A)}}},u.prototype.stop=function(){return this.stopped=!0,this};var m=L(function(y){y("layout","cose-bilkent",u)},"register");typeof cytoscape<"u"&&m(cytoscape),I.exports=m}])})});var gt=function(){var E=L(function(R,n,h,g){for(h=h||{},g=R.length;g--;h[R[g]]=n);return h},"o"),I=[1,4],o=[1,13],i=[1,12],e=[1,15],t=[1,16],r=[1,20],l=[1,19],f=[6,7,8],a=[1,26],d=[1,24],s=[1,25],c=[6,7,11],u=[1,6,13,15,16,19,22],v=[1,33],m=[1,34],T=[1,6,7,11,13,15,16,19,22],y={trace:L(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:L(function(n,h,g,p,D,N,M){var C=N.length-1;switch(D){case 6:case 7:return p;case 8:p.getLogger().trace("Stop NL ");break;case 9:p.getLogger().trace("Stop EOF ");break;case 11:p.getLogger().trace("Stop NL2 ");break;case 12:p.getLogger().trace("Stop EOF2 ");break;case 15:p.getLogger().info("Node: ",N[C].id),p.addNode(N[C-1].length,N[C].id,N[C].descr,N[C].type);break;case 16:p.getLogger().trace("Icon: ",N[C]),p.decorateNode({icon:N[C]});break;case 17:case 21:p.decorateNode({class:N[C]});break;case 18:p.getLogger().trace("SPACELIST");break;case 19:p.getLogger().trace("Node: ",N[C].id),p.addNode(0,N[C].id,N[C].descr,N[C].type);break;case 20:p.decorateNode({icon:N[C]});break;case 25:p.getLogger().trace("node found ..",N[C-2]),this.$={id:N[C-1],descr:N[C-1],type:p.getType(N[C-2],N[C])};break;case 26:this.$={id:N[C],descr:N[C],type:p.nodeType.DEFAULT};break;case 27:p.getLogger().trace("node found ..",N[C-3]),this.$={id:N[C-3],descr:N[C-1],type:p.getType(N[C-2],N[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:I},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:I},{6:o,7:[1,10],9:9,12:11,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},E(f,[2,3]),{1:[2,2]},E(f,[2,4]),E(f,[2,5]),{1:[2,6],6:o,12:21,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},{6:o,9:22,12:11,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},{6:a,7:d,10:23,11:s},E(c,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:l}),E(c,[2,18]),E(c,[2,19]),E(c,[2,20]),E(c,[2,21]),E(c,[2,23]),E(c,[2,24]),E(c,[2,26],{19:[1,30]}),{20:[1,31]},{6:a,7:d,10:32,11:s},{1:[2,7],6:o,12:21,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},E(u,[2,14],{7:v,11:m}),E(T,[2,8]),E(T,[2,9]),E(T,[2,10]),E(c,[2,15]),E(c,[2,16]),E(c,[2,17]),{20:[1,35]},{21:[1,36]},E(u,[2,13],{7:v,11:m}),E(T,[2,11]),E(T,[2,12]),{21:[1,37]},E(c,[2,25]),E(c,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:L(function(n,h){if(h.recoverable)this.trace(n);else{var g=new Error(n);throw g.hash=h,g}},"parseError"),parse:L(function(n){var h=this,g=[0],p=[],D=[null],N=[],M=this.table,C="",w=0,P=0,U=0,F=2,x=1,G=N.slice.call(arguments,1),S=Object.create(this.lexer),_={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(_.yy[X]=this.yy[X]);S.setInput(n,_.yy),_.yy.lexer=S,_.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var b=S.yylloc;N.push(b);var H=S.options&&S.options.ranges;typeof _.yy.parseError=="function"?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(W){g.length=g.length-2*W,D.length=D.length-W,N.length=N.length-W}L(z,"popStack");function B(){var W;return W=p.pop()||S.lex()||x,typeof W!="number"&&(W instanceof Array&&(p=W,W=p.pop()),W=h.symbols_[W]||W),W}L(B,"lex");for(var Y,K,j,$,ge,ot,J={},st,Z,Et,at;;){if(j=g[g.length-1],this.defaultActions[j]?$=this.defaultActions[j]:((Y===null||typeof Y>"u")&&(Y=B()),$=M[j]&&M[j][Y]),typeof $>"u"||!$.length||!$[0]){var ht="";at=[];for(st in M[j])this.terminals_[st]&&st>F&&at.push("'"+this.terminals_[st]+"'");S.showPosition?ht="Parse error on line "+(w+1)+`: +import{a as ct}from"./chunk-PWCSEZZ4.mjs";import{a as It}from"./chunk-3YFHLAX3.mjs";import{d as At}from"./chunk-AFC6EC46.mjs";import{k as Ot}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{F as tt,N as Dt,X as et,b as Q,ga as Nt,n as mt,o as Lt,p as Tt,s as q}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as L,b as lt,e as Ut}from"./chunk-GTKDMUJJ.mjs";var pt=lt((rt,ft)=>{"use strict";L(function(I,o){typeof rt=="object"&&typeof ft=="object"?ft.exports=o():typeof define=="function"&&define.amd?define([],o):typeof rt=="object"?rt.layoutBase=o():I.layoutBase=o()},"webpackUniversalModuleDefinition")(rt,function(){return function(E){var I={};function o(i){if(I[i])return I[i].exports;var e=I[i]={i,l:!1,exports:{}};return E[i].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return L(o,"__webpack_require__"),o.m=E,o.c=I,o.i=function(i){return i},o.d=function(i,e,t){o.o(i,e)||Object.defineProperty(i,e,{configurable:!1,enumerable:!0,get:t})},o.n=function(i){var e=i&&i.__esModule?L(function(){return i.default},"getDefault"):L(function(){return i},"getModuleExports");return o.d(e,"a",e),e},o.o=function(i,e){return Object.prototype.hasOwnProperty.call(i,e)},o.p="",o(o.s=26)}([function(E,I,o){"use strict";function i(){}L(i,"LayoutConstants"),i.QUALITY=1,i.DEFAULT_CREATE_BENDS_AS_NEEDED=!1,i.DEFAULT_INCREMENTAL=!1,i.DEFAULT_ANIMATION_ON_LAYOUT=!0,i.DEFAULT_ANIMATION_DURING_LAYOUT=!1,i.DEFAULT_ANIMATION_PERIOD=50,i.DEFAULT_UNIFORM_LEAF_NODE_SIZES=!1,i.DEFAULT_GRAPH_MARGIN=15,i.NODE_DIMENSIONS_INCLUDE_LABELS=!1,i.SIMPLE_NODE_SIZE=40,i.SIMPLE_NODE_HALF_SIZE=i.SIMPLE_NODE_SIZE/2,i.EMPTY_COMPOUND_NODE_SIZE=40,i.MIN_EDGE_LENGTH=1,i.WORLD_BOUNDARY=1e6,i.INITIAL_WORLD_BOUNDARY=i.WORLD_BOUNDARY/1e3,i.WORLD_CENTER_X=1200,i.WORLD_CENTER_Y=900,E.exports=i},function(E,I,o){"use strict";var i=o(2),e=o(8),t=o(9);function r(f,a,d){i.call(this,d),this.isOverlapingSourceAndTarget=!1,this.vGraphObject=d,this.bendpoints=[],this.source=f,this.target=a}L(r,"LEdge"),r.prototype=Object.create(i.prototype);for(var l in i)r[l]=i[l];r.prototype.getSource=function(){return this.source},r.prototype.getTarget=function(){return this.target},r.prototype.isInterGraph=function(){return this.isInterGraph},r.prototype.getLength=function(){return this.length},r.prototype.isOverlapingSourceAndTarget=function(){return this.isOverlapingSourceAndTarget},r.prototype.getBendpoints=function(){return this.bendpoints},r.prototype.getLca=function(){return this.lca},r.prototype.getSourceInLca=function(){return this.sourceInLca},r.prototype.getTargetInLca=function(){return this.targetInLca},r.prototype.getOtherEnd=function(f){if(this.source===f)return this.target;if(this.target===f)return this.source;throw"Node is not incident with this edge"},r.prototype.getOtherEndInGraph=function(f,a){for(var d=this.getOtherEnd(f),s=a.getGraphManager().getRoot();;){if(d.getOwner()==a)return d;if(d.getOwner()==s)break;d=d.getOwner().getParent()}return null},r.prototype.updateLength=function(){var f=new Array(4);this.isOverlapingSourceAndTarget=e.getIntersection(this.target.getRect(),this.source.getRect(),f),this.isOverlapingSourceAndTarget||(this.lengthX=f[0]-f[2],this.lengthY=f[1]-f[3],Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY))},r.prototype.updateLengthSimple=function(){this.lengthX=this.target.getCenterX()-this.source.getCenterX(),this.lengthY=this.target.getCenterY()-this.source.getCenterY(),Math.abs(this.lengthX)<1&&(this.lengthX=t.sign(this.lengthX)),Math.abs(this.lengthY)<1&&(this.lengthY=t.sign(this.lengthY)),this.length=Math.sqrt(this.lengthX*this.lengthX+this.lengthY*this.lengthY)},E.exports=r},function(E,I,o){"use strict";function i(e){this.vGraphObject=e}L(i,"LGraphObject"),E.exports=i},function(E,I,o){"use strict";var i=o(2),e=o(10),t=o(13),r=o(0),l=o(16),f=o(4);function a(s,c,u,v){u==null&&v==null&&(v=c),i.call(this,v),s.graphManager!=null&&(s=s.graphManager),this.estimatedSize=e.MIN_VALUE,this.inclusionTreeDepth=e.MAX_VALUE,this.vGraphObject=v,this.edges=[],this.graphManager=s,u!=null&&c!=null?this.rect=new t(c.x,c.y,u.width,u.height):this.rect=new t}L(a,"LNode"),a.prototype=Object.create(i.prototype);for(var d in i)a[d]=i[d];a.prototype.getEdges=function(){return this.edges},a.prototype.getChild=function(){return this.child},a.prototype.getOwner=function(){return this.owner},a.prototype.getWidth=function(){return this.rect.width},a.prototype.setWidth=function(s){this.rect.width=s},a.prototype.getHeight=function(){return this.rect.height},a.prototype.setHeight=function(s){this.rect.height=s},a.prototype.getCenterX=function(){return this.rect.x+this.rect.width/2},a.prototype.getCenterY=function(){return this.rect.y+this.rect.height/2},a.prototype.getCenter=function(){return new f(this.rect.x+this.rect.width/2,this.rect.y+this.rect.height/2)},a.prototype.getLocation=function(){return new f(this.rect.x,this.rect.y)},a.prototype.getRect=function(){return this.rect},a.prototype.getDiagonal=function(){return Math.sqrt(this.rect.width*this.rect.width+this.rect.height*this.rect.height)},a.prototype.getHalfTheDiagonal=function(){return Math.sqrt(this.rect.height*this.rect.height+this.rect.width*this.rect.width)/2},a.prototype.setRect=function(s,c){this.rect.x=s.x,this.rect.y=s.y,this.rect.width=c.width,this.rect.height=c.height},a.prototype.setCenter=function(s,c){this.rect.x=s-this.rect.width/2,this.rect.y=c-this.rect.height/2},a.prototype.setLocation=function(s,c){this.rect.x=s,this.rect.y=c},a.prototype.moveBy=function(s,c){this.rect.x+=s,this.rect.y+=c},a.prototype.getEdgeListToNode=function(s){var c=[],u,v=this;return v.edges.forEach(function(m){if(m.target==s){if(m.source!=v)throw"Incorrect edge source!";c.push(m)}}),c},a.prototype.getEdgesBetween=function(s){var c=[],u,v=this;return v.edges.forEach(function(m){if(!(m.source==v||m.target==v))throw"Incorrect edge source and/or target";(m.target==s||m.source==s)&&c.push(m)}),c},a.prototype.getNeighborsList=function(){var s=new Set,c=this;return c.edges.forEach(function(u){if(u.source==c)s.add(u.target);else{if(u.target!=c)throw"Incorrect incidency!";s.add(u.source)}}),s},a.prototype.withChildren=function(){var s=new Set,c,u;if(s.add(this),this.child!=null)for(var v=this.child.getNodes(),m=0;mc&&(this.rect.x-=(this.labelWidth-c)/2,this.setWidth(this.labelWidth)),this.labelHeight>u&&(this.labelPos=="center"?this.rect.y-=(this.labelHeight-u)/2:this.labelPos=="top"&&(this.rect.y-=this.labelHeight-u),this.setHeight(this.labelHeight))}}},a.prototype.getInclusionTreeDepth=function(){if(this.inclusionTreeDepth==e.MAX_VALUE)throw"assert failed";return this.inclusionTreeDepth},a.prototype.transform=function(s){var c=this.rect.x;c>r.WORLD_BOUNDARY?c=r.WORLD_BOUNDARY:c<-r.WORLD_BOUNDARY&&(c=-r.WORLD_BOUNDARY);var u=this.rect.y;u>r.WORLD_BOUNDARY?u=r.WORLD_BOUNDARY:u<-r.WORLD_BOUNDARY&&(u=-r.WORLD_BOUNDARY);var v=new f(c,u),m=s.inverseTransformPoint(v);this.setLocation(m.x,m.y)},a.prototype.getLeft=function(){return this.rect.x},a.prototype.getRight=function(){return this.rect.x+this.rect.width},a.prototype.getTop=function(){return this.rect.y},a.prototype.getBottom=function(){return this.rect.y+this.rect.height},a.prototype.getParent=function(){return this.owner==null?null:this.owner.getParent()},E.exports=a},function(E,I,o){"use strict";function i(e,t){e==null&&t==null?(this.x=0,this.y=0):(this.x=e,this.y=t)}L(i,"PointD"),i.prototype.getX=function(){return this.x},i.prototype.getY=function(){return this.y},i.prototype.setX=function(e){this.x=e},i.prototype.setY=function(e){this.y=e},i.prototype.getDifference=function(e){return new DimensionD(this.x-e.x,this.y-e.y)},i.prototype.getCopy=function(){return new i(this.x,this.y)},i.prototype.translate=function(e){return this.x+=e.width,this.y+=e.height,this},E.exports=i},function(E,I,o){"use strict";var i=o(2),e=o(10),t=o(0),r=o(6),l=o(3),f=o(1),a=o(13),d=o(12),s=o(11);function c(v,m,T){i.call(this,T),this.estimatedSize=e.MIN_VALUE,this.margin=t.DEFAULT_GRAPH_MARGIN,this.edges=[],this.nodes=[],this.isConnected=!1,this.parent=v,m!=null&&m instanceof r?this.graphManager=m:m!=null&&m instanceof Layout&&(this.graphManager=m.graphManager)}L(c,"LGraph"),c.prototype=Object.create(i.prototype);for(var u in i)c[u]=i[u];c.prototype.getNodes=function(){return this.nodes},c.prototype.getEdges=function(){return this.edges},c.prototype.getGraphManager=function(){return this.graphManager},c.prototype.getParent=function(){return this.parent},c.prototype.getLeft=function(){return this.left},c.prototype.getRight=function(){return this.right},c.prototype.getTop=function(){return this.top},c.prototype.getBottom=function(){return this.bottom},c.prototype.isConnected=function(){return this.isConnected},c.prototype.add=function(v,m,T){if(m==null&&T==null){var y=v;if(this.graphManager==null)throw"Graph has no graph mgr!";if(this.getNodes().indexOf(y)>-1)throw"Node already in graph!";return y.owner=this,this.getNodes().push(y),y}else{var A=v;if(!(this.getNodes().indexOf(m)>-1&&this.getNodes().indexOf(T)>-1))throw"Source or target not in graph!";if(!(m.owner==T.owner&&m.owner==this))throw"Both owners must be this graph!";return m.owner!=T.owner?null:(A.source=m,A.target=T,A.isInterGraph=!1,this.getEdges().push(A),m.edges.push(A),T!=m&&T.edges.push(A),A)}},c.prototype.remove=function(v){var m=v;if(v instanceof l){if(m==null)throw"Node is null!";if(!(m.owner!=null&&m.owner==this))throw"Owner graph is invalid!";if(this.graphManager==null)throw"Owner graph manager is invalid!";for(var T=m.edges.slice(),y,A=T.length,O=0;O-1&&h>-1))throw"Source and/or target doesn't know this edge!";y.source.edges.splice(n,1),y.target!=y.source&&y.target.edges.splice(h,1);var R=y.source.owner.getEdges().indexOf(y);if(R==-1)throw"Not in owner's edge list!";y.source.owner.getEdges().splice(R,1)}},c.prototype.updateLeftTop=function(){for(var v=e.MAX_VALUE,m=e.MAX_VALUE,T,y,A,O=this.getNodes(),R=O.length,n=0;nT&&(v=T),m>y&&(m=y)}return v==e.MAX_VALUE?null:(O[0].getParent().paddingLeft!=null?A=O[0].getParent().paddingLeft:A=this.margin,this.left=m-A,this.top=v-A,new d(this.left,this.top))},c.prototype.updateBounds=function(v){for(var m=e.MAX_VALUE,T=-e.MAX_VALUE,y=e.MAX_VALUE,A=-e.MAX_VALUE,O,R,n,h,g,p=this.nodes,D=p.length,N=0;NO&&(m=O),Tn&&(y=n),AO&&(m=O),Tn&&(y=n),A=this.nodes.length){var D=0;T.forEach(function(N){N.owner==v&&D++}),D==this.nodes.length&&(this.isConnected=!0)}},E.exports=c},function(E,I,o){"use strict";var i,e=o(1);function t(r){i=o(5),this.layout=r,this.graphs=[],this.edges=[]}L(t,"LGraphManager"),t.prototype.addRoot=function(){var r=this.layout.newGraph(),l=this.layout.newNode(null),f=this.add(r,l);return this.setRootGraph(f),this.rootGraph},t.prototype.add=function(r,l,f,a,d){if(f==null&&a==null&&d==null){if(r==null)throw"Graph is null!";if(l==null)throw"Parent node is null!";if(this.graphs.indexOf(r)>-1)throw"Graph already in this graph mgr!";if(this.graphs.push(r),r.parent!=null)throw"Already has a parent!";if(l.child!=null)throw"Already has a child!";return r.parent=l,l.child=r,r}else{d=f,a=l,f=r;var s=a.getOwner(),c=d.getOwner();if(!(s!=null&&s.getGraphManager()==this))throw"Source not in this graph mgr!";if(!(c!=null&&c.getGraphManager()==this))throw"Target not in this graph mgr!";if(s==c)return f.isInterGraph=!1,s.add(f,a,d);if(f.isInterGraph=!0,f.source=a,f.target=d,this.edges.indexOf(f)>-1)throw"Edge already in inter-graph edge list!";if(this.edges.push(f),!(f.source!=null&&f.target!=null))throw"Edge source and/or target is null!";if(!(f.source.edges.indexOf(f)==-1&&f.target.edges.indexOf(f)==-1))throw"Edge already in source and/or target incidency list!";return f.source.edges.push(f),f.target.edges.push(f),f}},t.prototype.remove=function(r){if(r instanceof i){var l=r;if(l.getGraphManager()!=this)throw"Graph not in this graph mgr";if(!(l==this.rootGraph||l.parent!=null&&l.parent.graphManager==this))throw"Invalid parent node!";var f=[];f=f.concat(l.getEdges());for(var a,d=f.length,s=0;s=r.getRight()?l[0]+=Math.min(r.getX()-t.getX(),t.getRight()-r.getRight()):r.getX()<=t.getX()&&r.getRight()>=t.getRight()&&(l[0]+=Math.min(t.getX()-r.getX(),r.getRight()-t.getRight())),t.getY()<=r.getY()&&t.getBottom()>=r.getBottom()?l[1]+=Math.min(r.getY()-t.getY(),t.getBottom()-r.getBottom()):r.getY()<=t.getY()&&r.getBottom()>=t.getBottom()&&(l[1]+=Math.min(t.getY()-r.getY(),r.getBottom()-t.getBottom()));var d=Math.abs((r.getCenterY()-t.getCenterY())/(r.getCenterX()-t.getCenterX()));r.getCenterY()===t.getCenterY()&&r.getCenterX()===t.getCenterX()&&(d=1);var s=d*l[0],c=l[1]/d;l[0]s)return l[0]=f,l[1]=u,l[2]=d,l[3]=p,!1;if(ad)return l[0]=c,l[1]=a,l[2]=h,l[3]=s,!1;if(fd?(l[0]=m,l[1]=T,C=!0):(l[0]=v,l[1]=u,C=!0):P===F&&(f>d?(l[0]=c,l[1]=u,C=!0):(l[0]=y,l[1]=T,C=!0)),-U===F?d>f?(l[2]=g,l[3]=p,w=!0):(l[2]=h,l[3]=n,w=!0):U===F&&(d>f?(l[2]=R,l[3]=n,w=!0):(l[2]=D,l[3]=p,w=!0)),C&&w)return!1;if(f>d?a>s?(x=this.getCardinalDirection(P,F,4),G=this.getCardinalDirection(U,F,2)):(x=this.getCardinalDirection(-P,F,3),G=this.getCardinalDirection(-U,F,1)):a>s?(x=this.getCardinalDirection(-P,F,1),G=this.getCardinalDirection(-U,F,3)):(x=this.getCardinalDirection(P,F,2),G=this.getCardinalDirection(U,F,4)),!C)switch(x){case 1:_=u,S=f+-O/F,l[0]=S,l[1]=_;break;case 2:S=y,_=a+A*F,l[0]=S,l[1]=_;break;case 3:_=T,S=f+O/F,l[0]=S,l[1]=_;break;case 4:S=m,_=a+-A*F,l[0]=S,l[1]=_;break}if(!w)switch(G){case 1:b=n,X=d+-M/F,l[2]=X,l[3]=b;break;case 2:X=D,b=s+N*F,l[2]=X,l[3]=b;break;case 3:b=p,X=d+M/F,l[2]=X,l[3]=b;break;case 4:X=g,b=s+-N*F,l[2]=X,l[3]=b;break}}return!1},e.getCardinalDirection=function(t,r,l){return t>r?l:1+l%4},e.getIntersection=function(t,r,l,f){if(f==null)return this.getIntersection2(t,r,l);var a=t.x,d=t.y,s=r.x,c=r.y,u=l.x,v=l.y,m=f.x,T=f.y,y=void 0,A=void 0,O=void 0,R=void 0,n=void 0,h=void 0,g=void 0,p=void 0,D=void 0;return O=c-d,n=a-s,g=s*d-a*c,R=T-v,h=u-m,p=m*v-u*T,D=O*h-R*n,D===0?null:(y=(n*p-h*g)/D,A=(R*g-O*p)/D,new i(y,A))},e.angleOfVector=function(t,r,l,f){var a=void 0;return t!==l?(a=Math.atan((f-r)/(l-t)),l0?1:e<0?-1:0},i.floor=function(e){return e<0?Math.ceil(e):Math.floor(e)},i.ceil=function(e){return e<0?Math.floor(e):Math.ceil(e)},E.exports=i},function(E,I,o){"use strict";function i(){}L(i,"Integer"),i.MAX_VALUE=2147483647,i.MIN_VALUE=-2147483648,E.exports=i},function(E,I,o){"use strict";var i=function(){function a(d,s){for(var c=0;c"u"?"undefined":i(t);return t==null||r!="object"&&r!="function"},E.exports=e},function(E,I,o){"use strict";function i(u){if(Array.isArray(u)){for(var v=0,m=Array(u.length);v0&&v;){for(O.push(n[0]);O.length>0&&v;){var h=O[0];O.splice(0,1),A.add(h);for(var g=h.getEdges(),y=0;y-1&&n.splice(M,1)}A=new Set,R=new Map}}return u},c.prototype.createDummyNodesForBendpoints=function(u){for(var v=[],m=u.source,T=this.graphManager.calcLowestCommonAncestor(u.source,u.target),y=0;y0){for(var T=this.edgeToDummyNodes.get(m),y=0;y=0&&v.splice(p,1);var D=R.getNeighborsList();D.forEach(function(C){if(m.indexOf(C)<0){var w=T.get(C),P=w-1;P==1&&h.push(C),T.set(C,P)}})}m=m.concat(h),(v.length==1||v.length==2)&&(y=!0,A=v[0])}return A},c.prototype.setGraphManager=function(u){this.graphManager=u},E.exports=c},function(E,I,o){"use strict";function i(){}L(i,"RandomSeed"),i.seed=1,i.x=0,i.nextDouble=function(){return i.x=Math.sin(i.seed++)*1e4,i.x-Math.floor(i.x)},E.exports=i},function(E,I,o){"use strict";var i=o(4);function e(t,r){this.lworldOrgX=0,this.lworldOrgY=0,this.ldeviceOrgX=0,this.ldeviceOrgY=0,this.lworldExtX=1,this.lworldExtY=1,this.ldeviceExtX=1,this.ldeviceExtY=1}L(e,"Transform"),e.prototype.getWorldOrgX=function(){return this.lworldOrgX},e.prototype.setWorldOrgX=function(t){this.lworldOrgX=t},e.prototype.getWorldOrgY=function(){return this.lworldOrgY},e.prototype.setWorldOrgY=function(t){this.lworldOrgY=t},e.prototype.getWorldExtX=function(){return this.lworldExtX},e.prototype.setWorldExtX=function(t){this.lworldExtX=t},e.prototype.getWorldExtY=function(){return this.lworldExtY},e.prototype.setWorldExtY=function(t){this.lworldExtY=t},e.prototype.getDeviceOrgX=function(){return this.ldeviceOrgX},e.prototype.setDeviceOrgX=function(t){this.ldeviceOrgX=t},e.prototype.getDeviceOrgY=function(){return this.ldeviceOrgY},e.prototype.setDeviceOrgY=function(t){this.ldeviceOrgY=t},e.prototype.getDeviceExtX=function(){return this.ldeviceExtX},e.prototype.setDeviceExtX=function(t){this.ldeviceExtX=t},e.prototype.getDeviceExtY=function(){return this.ldeviceExtY},e.prototype.setDeviceExtY=function(t){this.ldeviceExtY=t},e.prototype.transformX=function(t){var r=0,l=this.lworldExtX;return l!=0&&(r=this.ldeviceOrgX+(t-this.lworldOrgX)*this.ldeviceExtX/l),r},e.prototype.transformY=function(t){var r=0,l=this.lworldExtY;return l!=0&&(r=this.ldeviceOrgY+(t-this.lworldOrgY)*this.ldeviceExtY/l),r},e.prototype.inverseTransformX=function(t){var r=0,l=this.ldeviceExtX;return l!=0&&(r=this.lworldOrgX+(t-this.ldeviceOrgX)*this.lworldExtX/l),r},e.prototype.inverseTransformY=function(t){var r=0,l=this.ldeviceExtY;return l!=0&&(r=this.lworldOrgY+(t-this.ldeviceOrgY)*this.lworldExtY/l),r},e.prototype.inverseTransformPoint=function(t){var r=new i(this.inverseTransformX(t.x),this.inverseTransformY(t.y));return r},E.exports=e},function(E,I,o){"use strict";function i(s){if(Array.isArray(s)){for(var c=0,u=Array(s.length);ct.ADAPTATION_LOWER_NODE_LIMIT&&(this.coolingFactor=Math.max(this.coolingFactor*t.COOLING_ADAPTATION_FACTOR,this.coolingFactor-(s-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*this.coolingFactor*(1-t.COOLING_ADAPTATION_FACTOR))),this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT_INCREMENTAL):(s>t.ADAPTATION_LOWER_NODE_LIMIT?this.coolingFactor=Math.max(t.COOLING_ADAPTATION_FACTOR,1-(s-t.ADAPTATION_LOWER_NODE_LIMIT)/(t.ADAPTATION_UPPER_NODE_LIMIT-t.ADAPTATION_LOWER_NODE_LIMIT)*(1-t.COOLING_ADAPTATION_FACTOR)):this.coolingFactor=1,this.initialCoolingFactor=this.coolingFactor,this.maxNodeDisplacement=t.MAX_NODE_DISPLACEMENT),this.maxIterations=Math.max(this.getAllNodes().length*5,this.maxIterations),this.totalDisplacementThreshold=this.displacementThresholdPerNode*this.getAllNodes().length,this.repulsionRange=this.calcRepulsionRange()},a.prototype.calcSpringForces=function(){for(var s=this.getAllEdges(),c,u=0;u0&&arguments[0]!==void 0?arguments[0]:!0,c=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!1,u,v,m,T,y=this.getAllNodes(),A;if(this.useFRGridVariant)for(this.totalIterations%t.GRID_CALCULATION_CHECK_PERIOD==1&&s&&this.updateGrid(),A=new Set,u=0;uO||A>O)&&(s.gravitationForceX=-this.gravityConstant*m,s.gravitationForceY=-this.gravityConstant*T)):(O=c.getEstimatedSize()*this.compoundGravityRangeFactor,(y>O||A>O)&&(s.gravitationForceX=-this.gravityConstant*m*this.compoundGravityConstant,s.gravitationForceY=-this.gravityConstant*T*this.compoundGravityConstant))},a.prototype.isConverged=function(){var s,c=!1;return this.totalIterations>this.maxIterations/3&&(c=Math.abs(this.totalDisplacement-this.oldTotalDisplacement)<2),s=this.totalDisplacement=y.length||O>=y[0].length)){for(var R=0;Ra},"_defaultCompareFunction")}]),l}();E.exports=r},function(E,I,o){"use strict";var i=function(){function r(l,f){for(var a=0;a2&&arguments[2]!==void 0?arguments[2]:1,d=arguments.length>3&&arguments[3]!==void 0?arguments[3]:-1,s=arguments.length>4&&arguments[4]!==void 0?arguments[4]:-1;e(this,r),this.sequence1=l,this.sequence2=f,this.match_score=a,this.mismatch_penalty=d,this.gap_penalty=s,this.iMax=l.length+1,this.jMax=f.length+1,this.grid=new Array(this.iMax);for(var c=0;c=0;l--){var f=this.listeners[l];f.event===t&&f.callback===r&&this.listeners.splice(l,1)}},e.emit=function(t,r){for(var l=0;l{"use strict";L(function(I,o){typeof it=="object"&&typeof dt=="object"?dt.exports=o(pt()):typeof define=="function"&&define.amd?define(["layout-base"],o):typeof it=="object"?it.coseBase=o(pt()):I.coseBase=o(I.layoutBase)},"webpackUniversalModuleDefinition")(it,function(E){return function(I){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return L(i,"__webpack_require__"),i.m=I,i.c=o,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?L(function(){return e.default},"getDefault"):L(function(){return e},"getModuleExports");return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=7)}([function(I,o){I.exports=E},function(I,o,i){"use strict";var e=i(0).FDLayoutConstants;function t(){}L(t,"CoSEConstants");for(var r in e)t[r]=e[r];t.DEFAULT_USE_MULTI_LEVEL_SCALING=!1,t.DEFAULT_RADIAL_SEPARATION=e.DEFAULT_EDGE_LENGTH,t.DEFAULT_COMPONENT_SEPERATION=60,t.TILE=!0,t.TILING_PADDING_VERTICAL=10,t.TILING_PADDING_HORIZONTAL=10,t.TREE_REDUCTION_ON_INCREMENTAL=!1,I.exports=t},function(I,o,i){"use strict";var e=i(0).FDLayoutEdge;function t(l,f,a){e.call(this,l,f,a)}L(t,"CoSEEdge"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];I.exports=t},function(I,o,i){"use strict";var e=i(0).LGraph;function t(l,f,a){e.call(this,l,f,a)}L(t,"CoSEGraph"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];I.exports=t},function(I,o,i){"use strict";var e=i(0).LGraphManager;function t(l){e.call(this,l)}L(t,"CoSEGraphManager"),t.prototype=Object.create(e.prototype);for(var r in e)t[r]=e[r];I.exports=t},function(I,o,i){"use strict";var e=i(0).FDLayoutNode,t=i(0).IMath;function r(f,a,d,s){e.call(this,f,a,d,s)}L(r,"CoSENode"),r.prototype=Object.create(e.prototype);for(var l in e)r[l]=e[l];r.prototype.move=function(){var f=this.graphManager.getLayout();this.displacementX=f.coolingFactor*(this.springForceX+this.repulsionForceX+this.gravitationForceX)/this.noOfChildren,this.displacementY=f.coolingFactor*(this.springForceY+this.repulsionForceY+this.gravitationForceY)/this.noOfChildren,Math.abs(this.displacementX)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementX=f.coolingFactor*f.maxNodeDisplacement*t.sign(this.displacementX)),Math.abs(this.displacementY)>f.coolingFactor*f.maxNodeDisplacement&&(this.displacementY=f.coolingFactor*f.maxNodeDisplacement*t.sign(this.displacementY)),this.child==null?this.moveBy(this.displacementX,this.displacementY):this.child.getNodes().length==0?this.moveBy(this.displacementX,this.displacementY):this.propogateDisplacementToChildren(this.displacementX,this.displacementY),f.totalDisplacement+=Math.abs(this.displacementX)+Math.abs(this.displacementY),this.springForceX=0,this.springForceY=0,this.repulsionForceX=0,this.repulsionForceY=0,this.gravitationForceX=0,this.gravitationForceY=0,this.displacementX=0,this.displacementY=0},r.prototype.propogateDisplacementToChildren=function(f,a){for(var d=this.getChild().getNodes(),s,c=0;c0)this.positionNodesRadially(n);else{this.reduceTrees(),this.graphManager.resetAllNodesToApplyGravitation();var h=new Set(this.getAllNodes()),g=this.nodesWithGravity.filter(function(p){return h.has(p)});this.graphManager.setAllNodesToApplyGravitation(g),this.positionNodesRandomly()}}return this.initSpringEmbedder(),this.runSpringEmbedder(),!0},O.prototype.tick=function(){if(this.totalIterations++,this.totalIterations===this.maxIterations&&!this.isTreeGrowing&&!this.isGrowthFinished)if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;if(this.totalIterations%d.CONVERGENCE_CHECK_PERIOD==0&&!this.isTreeGrowing&&!this.isGrowthFinished){if(this.isConverged())if(this.prunedNodesAll.length>0)this.isTreeGrowing=!0;else return!0;this.coolingCycle++,this.layoutQuality==0?this.coolingAdjuster=this.coolingCycle:this.layoutQuality==1&&(this.coolingAdjuster=this.coolingCycle/3),this.coolingFactor=Math.max(this.initialCoolingFactor-Math.pow(this.coolingCycle,Math.log(100*(this.initialCoolingFactor-this.finalTemperature))/Math.log(this.maxCoolingCycle))/100*this.coolingAdjuster,this.finalTemperature),this.animationPeriod=Math.ceil(this.initialAnimationPeriod*Math.sqrt(this.coolingFactor))}if(this.isTreeGrowing){if(this.growTreeIterations%10==0)if(this.prunedNodesAll.length>0){this.graphManager.updateBounds(),this.updateGrid(),this.growTree(this.prunedNodesAll),this.graphManager.resetAllNodesToApplyGravitation();var n=new Set(this.getAllNodes()),h=this.nodesWithGravity.filter(function(D){return n.has(D)});this.graphManager.setAllNodesToApplyGravitation(h),this.graphManager.updateBounds(),this.updateGrid(),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL}else this.isTreeGrowing=!1,this.isGrowthFinished=!0;this.growTreeIterations++}if(this.isGrowthFinished){if(this.isConverged())return!0;this.afterGrowthIterations%10==0&&(this.graphManager.updateBounds(),this.updateGrid()),this.coolingFactor=d.DEFAULT_COOLING_FACTOR_INCREMENTAL*((100-this.afterGrowthIterations)/100),this.afterGrowthIterations++}var g=!this.isTreeGrowing&&!this.isGrowthFinished,p=this.growTreeIterations%10==1&&this.isTreeGrowing||this.afterGrowthIterations%10==1&&this.isGrowthFinished;return this.totalDisplacement=0,this.graphManager.updateBounds(),this.calcSpringForces(),this.calcRepulsionForces(g,p),this.calcGravitationalForces(),this.moveNodes(),this.animate(),!1},O.prototype.getPositionsData=function(){for(var n=this.graphManager.getAllNodes(),h={},g=0;g1){var C;for(C=0;Cp&&(p=Math.floor(M.y)),N=Math.floor(M.x+a.DEFAULT_COMPONENT_SEPERATION)}this.transform(new u(s.WORLD_CENTER_X-M.x/2,s.WORLD_CENTER_Y-M.y/2))},O.radialLayout=function(n,h,g){var p=Math.max(this.maxDiagonalInTree(n),a.DEFAULT_RADIAL_SEPARATION);O.branchRadialLayout(h,null,0,359,0,p);var D=y.calculateBounds(n),N=new A;N.setDeviceOrgX(D.getMinX()),N.setDeviceOrgY(D.getMinY()),N.setWorldOrgX(g.x),N.setWorldOrgY(g.y);for(var M=0;M1;){var H=b[0];b.splice(0,1);var z=x.indexOf(H);z>=0&&x.splice(z,1),_--,G--}h!=null?X=(x.indexOf(b[0])+1)%_:X=0;for(var B=Math.abs(p-g)/G,Y=X;S!=G;Y=++Y%_){var K=x[Y].getOtherEnd(n);if(K!=h){var j=(g+S*B)%360,$=(j+B)%360;O.branchRadialLayout(K,n,j,$,D+N,N),S++}}},O.maxDiagonalInTree=function(n){for(var h=m.MIN_VALUE,g=0;gh&&(h=D)}return h},O.prototype.calcRepulsionRange=function(){return 2*(this.level+1)*this.idealEdgeLength},O.prototype.groupZeroDegreeMembers=function(){var n=this,h={};this.memberGroups={},this.idToDummyNode={};for(var g=[],p=this.graphManager.getAllNodes(),D=0;D"u"&&(h[C]=[]),h[C]=h[C].concat(N)}Object.keys(h).forEach(function(w){if(h[w].length>1){var P="DummyCompound_"+w;n.memberGroups[P]=h[w];var U=h[w][0].getParent(),F=new l(n.graphManager);F.id=P,F.paddingLeft=U.paddingLeft||0,F.paddingRight=U.paddingRight||0,F.paddingBottom=U.paddingBottom||0,F.paddingTop=U.paddingTop||0,n.idToDummyNode[P]=F;var x=n.getGraphManager().add(n.newGraph(),F),G=U.getChild();G.add(F);for(var S=0;S=0;n--){var h=this.compoundOrder[n],g=h.id,p=h.paddingLeft,D=h.paddingTop;this.adjustLocations(this.tiledMemberPack[g],h.rect.x,h.rect.y,p,D)}},O.prototype.repopulateZeroDegreeMembers=function(){var n=this,h=this.tiledZeroDegreePack;Object.keys(h).forEach(function(g){var p=n.idToDummyNode[g],D=p.paddingLeft,N=p.paddingTop;n.adjustLocations(h[g],p.rect.x,p.rect.y,D,N)})},O.prototype.getToBeTiled=function(n){var h=n.id;if(this.toBeTiled[h]!=null)return this.toBeTiled[h];var g=n.getChild();if(g==null)return this.toBeTiled[h]=!1,!1;for(var p=g.getNodes(),D=0;D0)return this.toBeTiled[h]=!1,!1;if(N.getChild()==null){this.toBeTiled[N.id]=!1;continue}if(!this.getToBeTiled(N))return this.toBeTiled[h]=!1,!1}return this.toBeTiled[h]=!0,!0},O.prototype.getNodeDegree=function(n){for(var h=n.id,g=n.getEdges(),p=0,D=0;Dw&&(w=U.rect.height)}g+=w+n.verticalPadding}},O.prototype.tileCompoundMembers=function(n,h){var g=this;this.tiledMemberPack=[],Object.keys(n).forEach(function(p){var D=h[p];g.tiledMemberPack[p]=g.tileNodes(n[p],D.paddingLeft+D.paddingRight),D.rect.width=g.tiledMemberPack[p].width,D.rect.height=g.tiledMemberPack[p].height})},O.prototype.tileNodes=function(n,h){var g=a.TILING_PADDING_VERTICAL,p=a.TILING_PADDING_HORIZONTAL,D={rows:[],rowWidth:[],rowHeight:[],width:0,height:h,verticalPadding:g,horizontalPadding:p};n.sort(function(C,w){return C.rect.width*C.rect.height>w.rect.width*w.rect.height?-1:C.rect.width*C.rect.height0&&(M+=n.horizontalPadding),n.rowWidth[g]=M,n.width0&&(C+=n.verticalPadding);var w=0;C>n.rowHeight[g]&&(w=n.rowHeight[g],n.rowHeight[g]=C,w=n.rowHeight[g]-w),n.height+=w,n.rows[g].push(h)},O.prototype.getShortestRowIndex=function(n){for(var h=-1,g=Number.MAX_VALUE,p=0;pg&&(h=p,g=n.rowWidth[p]);return h},O.prototype.canAddHorizontal=function(n,h,g){var p=this.getShortestRowIndex(n);if(p<0)return!0;var D=n.rowWidth[p];if(D+n.horizontalPadding+h<=n.width)return!0;var N=0;n.rowHeight[p]0&&(N=g+n.verticalPadding-n.rowHeight[p]);var M;n.width-D>=h+n.horizontalPadding?M=(n.height+N)/(D+h+n.horizontalPadding):M=(n.height+N)/n.width,N=g+n.verticalPadding;var C;return n.widthN&&h!=g){p.splice(-1,1),n.rows[g].push(D),n.rowWidth[h]=n.rowWidth[h]-N,n.rowWidth[g]=n.rowWidth[g]+N,n.width=n.rowWidth[instance.getLongestRowIndex(n)];for(var M=Number.MIN_VALUE,C=0;CM&&(M=p[C].height);h>0&&(M+=n.verticalPadding);var w=n.rowHeight[h]+n.rowHeight[g];n.rowHeight[h]=M,n.rowHeight[g]0)for(var G=D;G<=N;G++)x[0]+=this.grid[G][M-1].length+this.grid[G][M].length-1;if(N0)for(var G=M;G<=C;G++)x[3]+=this.grid[D-1][G].length+this.grid[D][G].length-1;for(var S=m.MAX_VALUE,_,X,b=0;b{"use strict";L(function(I,o){typeof nt=="object"&&typeof yt=="object"?yt.exports=o(vt()):typeof define=="function"&&define.amd?define(["cose-base"],o):typeof nt=="object"?nt.cytoscapeCoseBilkent=o(vt()):I.cytoscapeCoseBilkent=o(I.coseBase)},"webpackUniversalModuleDefinition")(nt,function(E){return function(I){var o={};function i(e){if(o[e])return o[e].exports;var t=o[e]={i:e,l:!1,exports:{}};return I[e].call(t.exports,t,t.exports,i),t.l=!0,t.exports}return L(i,"__webpack_require__"),i.m=I,i.c=o,i.i=function(e){return e},i.d=function(e,t,r){i.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},i.n=function(e){var t=e&&e.__esModule?L(function(){return e.default},"getDefault"):L(function(){return e},"getModuleExports");return i.d(t,"a",t),t},i.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},i.p="",i(i.s=1)}([function(I,o){I.exports=E},function(I,o,i){"use strict";var e=i(0).layoutBase.LayoutConstants,t=i(0).layoutBase.FDLayoutConstants,r=i(0).CoSEConstants,l=i(0).CoSELayout,f=i(0).CoSENode,a=i(0).layoutBase.PointD,d=i(0).layoutBase.DimensionD,s={ready:L(function(){},"ready"),stop:L(function(){},"stop"),quality:"default",nodeDimensionsIncludeLabels:!1,refresh:30,fit:!0,padding:10,randomize:!0,nodeRepulsion:4500,idealEdgeLength:50,edgeElasticity:.45,nestingFactor:.1,gravity:.25,numIter:2500,tile:!0,animate:"end",animationDuration:500,tilingPaddingVertical:10,tilingPaddingHorizontal:10,gravityRangeCompound:1.5,gravityCompound:1,gravityRange:3.8,initialEnergyOnIncremental:.5};function c(T,y){var A={};for(var O in T)A[O]=T[O];for(var O in y)A[O]=y[O];return A}L(c,"extend");function u(T){this.options=c(s,T),v(this.options)}L(u,"_CoSELayout");var v=L(function(y){y.nodeRepulsion!=null&&(r.DEFAULT_REPULSION_STRENGTH=t.DEFAULT_REPULSION_STRENGTH=y.nodeRepulsion),y.idealEdgeLength!=null&&(r.DEFAULT_EDGE_LENGTH=t.DEFAULT_EDGE_LENGTH=y.idealEdgeLength),y.edgeElasticity!=null&&(r.DEFAULT_SPRING_STRENGTH=t.DEFAULT_SPRING_STRENGTH=y.edgeElasticity),y.nestingFactor!=null&&(r.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=t.PER_LEVEL_IDEAL_EDGE_LENGTH_FACTOR=y.nestingFactor),y.gravity!=null&&(r.DEFAULT_GRAVITY_STRENGTH=t.DEFAULT_GRAVITY_STRENGTH=y.gravity),y.numIter!=null&&(r.MAX_ITERATIONS=t.MAX_ITERATIONS=y.numIter),y.gravityRange!=null&&(r.DEFAULT_GRAVITY_RANGE_FACTOR=t.DEFAULT_GRAVITY_RANGE_FACTOR=y.gravityRange),y.gravityCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_STRENGTH=t.DEFAULT_COMPOUND_GRAVITY_STRENGTH=y.gravityCompound),y.gravityRangeCompound!=null&&(r.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=t.DEFAULT_COMPOUND_GRAVITY_RANGE_FACTOR=y.gravityRangeCompound),y.initialEnergyOnIncremental!=null&&(r.DEFAULT_COOLING_FACTOR_INCREMENTAL=t.DEFAULT_COOLING_FACTOR_INCREMENTAL=y.initialEnergyOnIncremental),y.quality=="draft"?e.QUALITY=0:y.quality=="proof"?e.QUALITY=2:e.QUALITY=1,r.NODE_DIMENSIONS_INCLUDE_LABELS=t.NODE_DIMENSIONS_INCLUDE_LABELS=e.NODE_DIMENSIONS_INCLUDE_LABELS=y.nodeDimensionsIncludeLabels,r.DEFAULT_INCREMENTAL=t.DEFAULT_INCREMENTAL=e.DEFAULT_INCREMENTAL=!y.randomize,r.ANIMATE=t.ANIMATE=e.ANIMATE=y.animate,r.TILE=y.tile,r.TILING_PADDING_VERTICAL=typeof y.tilingPaddingVertical=="function"?y.tilingPaddingVertical.call():y.tilingPaddingVertical,r.TILING_PADDING_HORIZONTAL=typeof y.tilingPaddingHorizontal=="function"?y.tilingPaddingHorizontal.call():y.tilingPaddingHorizontal},"getUserOptions");u.prototype.run=function(){var T,y,A=this.options,O=this.idToLNode={},R=this.layout=new l,n=this;n.stopped=!1,this.cy=this.options.cy,this.cy.trigger({type:"layoutstart",layout:this});var h=R.newGraphManager();this.gm=h;var g=this.options.eles.nodes(),p=this.options.eles.edges();this.root=h.addRoot(),this.processChildrenList(this.root,this.getTopMostNodes(g),R);for(var D=0;D0){var C;C=A.getGraphManager().add(A.newGraph(),g),this.processChildrenList(C,h,A)}}},u.prototype.stop=function(){return this.stopped=!0,this};var m=L(function(y){y("layout","cose-bilkent",u)},"register");typeof cytoscape<"u"&&m(cytoscape),I.exports=m}])})});var gt=function(){var E=L(function(R,n,h,g){for(h=h||{},g=R.length;g--;h[R[g]]=n);return h},"o"),I=[1,4],o=[1,13],i=[1,12],e=[1,15],t=[1,16],r=[1,20],l=[1,19],f=[6,7,8],a=[1,26],d=[1,24],s=[1,25],c=[6,7,11],u=[1,6,13,15,16,19,22],v=[1,33],m=[1,34],T=[1,6,7,11,13,15,16,19,22],y={trace:L(function(){},"trace"),yy:{},symbols_:{error:2,start:3,mindMap:4,spaceLines:5,SPACELINE:6,NL:7,MINDMAP:8,document:9,stop:10,EOF:11,statement:12,SPACELIST:13,node:14,ICON:15,CLASS:16,nodeWithId:17,nodeWithoutId:18,NODE_DSTART:19,NODE_DESCR:20,NODE_DEND:21,NODE_ID:22,$accept:0,$end:1},terminals_:{2:"error",6:"SPACELINE",7:"NL",8:"MINDMAP",11:"EOF",13:"SPACELIST",15:"ICON",16:"CLASS",19:"NODE_DSTART",20:"NODE_DESCR",21:"NODE_DEND",22:"NODE_ID"},productions_:[0,[3,1],[3,2],[5,1],[5,2],[5,2],[4,2],[4,3],[10,1],[10,1],[10,1],[10,2],[10,2],[9,3],[9,2],[12,2],[12,2],[12,2],[12,1],[12,1],[12,1],[12,1],[12,1],[14,1],[14,1],[18,3],[17,1],[17,4]],performAction:L(function(n,h,g,p,D,N,M){var C=N.length-1;switch(D){case 6:case 7:return p;case 8:p.getLogger().trace("Stop NL ");break;case 9:p.getLogger().trace("Stop EOF ");break;case 11:p.getLogger().trace("Stop NL2 ");break;case 12:p.getLogger().trace("Stop EOF2 ");break;case 15:p.getLogger().info("Node: ",N[C].id),p.addNode(N[C-1].length,N[C].id,N[C].descr,N[C].type);break;case 16:p.getLogger().trace("Icon: ",N[C]),p.decorateNode({icon:N[C]});break;case 17:case 21:p.decorateNode({class:N[C]});break;case 18:p.getLogger().trace("SPACELIST");break;case 19:p.getLogger().trace("Node: ",N[C].id),p.addNode(0,N[C].id,N[C].descr,N[C].type);break;case 20:p.decorateNode({icon:N[C]});break;case 25:p.getLogger().trace("node found ..",N[C-2]),this.$={id:N[C-1],descr:N[C-1],type:p.getType(N[C-2],N[C])};break;case 26:this.$={id:N[C],descr:N[C],type:p.nodeType.DEFAULT};break;case 27:p.getLogger().trace("node found ..",N[C-3]),this.$={id:N[C-3],descr:N[C-1],type:p.getType(N[C-2],N[C])};break}},"anonymous"),table:[{3:1,4:2,5:3,6:[1,5],8:I},{1:[3]},{1:[2,1]},{4:6,6:[1,7],7:[1,8],8:I},{6:o,7:[1,10],9:9,12:11,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},E(f,[2,3]),{1:[2,2]},E(f,[2,4]),E(f,[2,5]),{1:[2,6],6:o,12:21,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},{6:o,9:22,12:11,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},{6:a,7:d,10:23,11:s},E(c,[2,22],{17:17,18:18,14:27,15:[1,28],16:[1,29],19:r,22:l}),E(c,[2,18]),E(c,[2,19]),E(c,[2,20]),E(c,[2,21]),E(c,[2,23]),E(c,[2,24]),E(c,[2,26],{19:[1,30]}),{20:[1,31]},{6:a,7:d,10:32,11:s},{1:[2,7],6:o,12:21,13:i,14:14,15:e,16:t,17:17,18:18,19:r,22:l},E(u,[2,14],{7:v,11:m}),E(T,[2,8]),E(T,[2,9]),E(T,[2,10]),E(c,[2,15]),E(c,[2,16]),E(c,[2,17]),{20:[1,35]},{21:[1,36]},E(u,[2,13],{7:v,11:m}),E(T,[2,11]),E(T,[2,12]),{21:[1,37]},E(c,[2,25]),E(c,[2,27])],defaultActions:{2:[2,1],6:[2,2]},parseError:L(function(n,h){if(h.recoverable)this.trace(n);else{var g=new Error(n);throw g.hash=h,g}},"parseError"),parse:L(function(n){var h=this,g=[0],p=[],D=[null],N=[],M=this.table,C="",w=0,P=0,U=0,F=2,x=1,G=N.slice.call(arguments,1),S=Object.create(this.lexer),_={yy:{}};for(var X in this.yy)Object.prototype.hasOwnProperty.call(this.yy,X)&&(_.yy[X]=this.yy[X]);S.setInput(n,_.yy),_.yy.lexer=S,_.yy.parser=this,typeof S.yylloc>"u"&&(S.yylloc={});var b=S.yylloc;N.push(b);var H=S.options&&S.options.ranges;typeof _.yy.parseError=="function"?this.parseError=_.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function z(W){g.length=g.length-2*W,D.length=D.length-W,N.length=N.length-W}L(z,"popStack");function B(){var W;return W=p.pop()||S.lex()||x,typeof W!="number"&&(W instanceof Array&&(p=W,W=p.pop()),W=h.symbols_[W]||W),W}L(B,"lex");for(var Y,K,j,$,ge,ot,J={},st,Z,Et,at;;){if(j=g[g.length-1],this.defaultActions[j]?$=this.defaultActions[j]:((Y===null||typeof Y>"u")&&(Y=B()),$=M[j]&&M[j][Y]),typeof $>"u"||!$.length||!$[0]){var ht="";at=[];for(st in M[j])this.terminals_[st]&&st>F&&at.push("'"+this.terminals_[st]+"'");S.showPosition?ht="Parse error on line "+(w+1)+`: `+S.showPosition()+` Expecting `+at.join(", ")+", got '"+(this.terminals_[Y]||Y)+"'":ht="Parse error on line "+(w+1)+": Unexpected "+(Y==x?"end of input":"'"+(this.terminals_[Y]||Y)+"'"),this.parseError(ht,{text:S.match,token:this.terminals_[Y]||Y,line:S.yylineno,loc:b,expected:at})}if($[0]instanceof Array&&$.length>1)throw new Error("Parse Error: multiple actions possible at state: "+j+", token: "+Y);switch($[0]){case 1:g.push(Y),D.push(S.yytext),N.push(S.yylloc),g.push($[1]),Y=null,K?(Y=K,K=null):(P=S.yyleng,C=S.yytext,w=S.yylineno,b=S.yylloc,U>0&&U--);break;case 2:if(Z=this.productions_[$[1]][1],J.$=D[D.length-Z],J._$={first_line:N[N.length-(Z||1)].first_line,last_line:N[N.length-1].last_line,first_column:N[N.length-(Z||1)].first_column,last_column:N[N.length-1].last_column},H&&(J._$.range=[N[N.length-(Z||1)].range[0],N[N.length-1].range[1]]),ot=this.performAction.apply(J,[C,P,w,_.yy,$[1],D,N].concat(G)),typeof ot<"u")return ot;Z&&(g=g.slice(0,-1*Z*2),D=D.slice(0,-1*Z),N=N.slice(0,-1*Z)),g.push(this.productions_[$[1]][0]),D.push(J.$),N.push(J._$),Et=M[g[g.length-2]][g[g.length-1]],g.push(Et);break;case 3:return!0}}return!0},"parse")},A=function(){var R={EOF:1,parseError:L(function(h,g){if(this.yy.parser)this.yy.parser.parseError(h,g);else throw new Error(h)},"parseError"),setInput:L(function(n,h){return this.yy=h||this.yy||{},this._input=n,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:L(function(){var n=this._input[0];this.yytext+=n,this.yyleng++,this.offset++,this.match+=n,this.matched+=n;var h=n.match(/(?:\r\n?|\n).*/g);return h?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),n},"input"),unput:L(function(n){var h=n.length,g=n.split(/(?:\r\n?|\n)/g);this._input=n+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-h),this.offset-=h;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===p.length?this.yylloc.first_column:0)+p[p.length-g.length].length-g[0].length:this.yylloc.first_column-h},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-h]),this.yyleng=this.yytext.length,this},"unput"),more:L(function(){return this._more=!0,this},"more"),reject:L(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:L(function(n){this.unput(this.match.slice(n))},"less"),pastInput:L(function(){var n=this.matched.substr(0,this.matched.length-this.match.length);return(n.length>20?"...":"")+n.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:L(function(){var n=this.match;return n.length<20&&(n+=this._input.substr(0,20-n.length)),(n.substr(0,20)+(n.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:L(function(){var n=this.pastInput(),h=new Array(n.length+1).join("-");return n+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/pieDiagram-XPKEEGBI.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/pieDiagram-AYPHHONI.mjs similarity index 96% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/pieDiagram-XPKEEGBI.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/pieDiagram-AYPHHONI.mjs index f3bb20d8e..9f0dc2561 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/pieDiagram-XPKEEGBI.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/pieDiagram-AYPHHONI.mjs @@ -1,4 +1,4 @@ -import{a as H}from"./chunk-4KE642ED.mjs";import{a as Z}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as J}from"./chunk-BPW5ZDWE.mjs";import{k as V,l as U}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{Ba as C,Ea as N,M as O,P as j,Q as _,R as z,S as B,T as M,U as W,V as I,X as L,b as m,ia as q,s as F}from"./chunk-ITX3UAHE.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as t}from"./chunk-GTKDMUJJ.mjs";var K=F.pie,A={sections:new Map,showData:!1,config:K},u=A.sections,w=A.showData,ce=structuredClone(K),pe=t(()=>structuredClone(ce),"getConfig"),me=t(()=>{u=new Map,w=A.showData,j()},"clear"),le=t(({label:e,value:i})=>{u.has(e)||(u.set(e,i),m.debug(`added new section: ${e}, with value: ${i}`))},"addSection"),de=t(()=>u,"getSections"),fe=t(e=>{w=e},"setShowData"),ge=t(()=>w,"getShowData"),S={getConfig:pe,clear:me,setDiagramTitle:W,getDiagramTitle:I,setAccTitle:_,getAccTitle:z,setAccDescription:B,getAccDescription:M,addSection:le,getSections:de,setShowData:fe,getShowData:ge};var De=t((e,i)=>{H(e,i),i.setShowData(e.showData),e.sections.map(i.addSection)},"populateDb"),Q={parse:t(async e=>{let i=await Z("pie",e);m.debug(i),De(i,S)},"parse")};var ue=t(e=>` +import{a as H}from"./chunk-4KE642ED.mjs";import{a as Z}from"./chunk-QTE35VYX.mjs";import"./chunk-GUUIKZ7L.mjs";import"./chunk-QJHISCT3.mjs";import"./chunk-SLI2Z62V.mjs";import{a as J}from"./chunk-3YFHLAX3.mjs";import{k as V,l as U}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{Ba as C,Ea as N,M as O,P as j,Q as _,R as z,S as B,T as M,U as W,V as I,X as L,b as m,ia as q,s as F}from"./chunk-OR2G2HG5.mjs";import"./chunk-EBEPM36I.mjs";import"./chunk-SDI2JJQM.mjs";import"./chunk-XVEYI5JQ.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as t}from"./chunk-GTKDMUJJ.mjs";var K=F.pie,A={sections:new Map,showData:!1,config:K},u=A.sections,w=A.showData,ce=structuredClone(K),pe=t(()=>structuredClone(ce),"getConfig"),me=t(()=>{u=new Map,w=A.showData,j()},"clear"),le=t(({label:e,value:i})=>{u.has(e)||(u.set(e,i),m.debug(`added new section: ${e}, with value: ${i}`))},"addSection"),de=t(()=>u,"getSections"),fe=t(e=>{w=e},"setShowData"),ge=t(()=>w,"getShowData"),S={getConfig:pe,clear:me,setDiagramTitle:W,getDiagramTitle:I,setAccTitle:_,getAccTitle:z,setAccDescription:B,getAccDescription:M,addSection:le,getSections:de,setShowData:fe,getShowData:ge};var De=t((e,i)=>{H(e,i),i.setShowData(e.showData),e.sections.map(i.addSection)},"populateDb"),Q={parse:t(async e=>{let i=await Z("pie",e);m.debug(i),De(i,S)},"parse")};var ue=t(e=>` .pieCircle{ stroke: ${e.pieStrokeColor}; stroke-width : ${e.pieStrokeWidth}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/quadrantDiagram-QS23HHJP.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/quadrantDiagram-QXTGSWY2.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/quadrantDiagram-QS23HHJP.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/quadrantDiagram-QXTGSWY2.mjs index 438f4916c..6b9a928d5 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/quadrantDiagram-QS23HHJP.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/quadrantDiagram-QXTGSWY2.mjs @@ -1,4 +1,4 @@ -import{F as ne,M as re,P as se,Q as oe,R as le,S as de,T as ue,U as ce,V as vt,X as xt,b as lt,ga as bt,ka as Dt,q as ie,s as L}from"./chunk-ITX3UAHE.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var Et=function(){var t=r(function(X,o,l,x){for(l=l||{},x=X.length;x--;l[X[x]]=o);return l},"o"),n=[1,3],f=[1,4],u=[1,5],c=[1,6],g=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],i=[55,56,57],A=[2,36],h=[1,37],T=[1,36],m=[1,38],b=[1,35],q=[1,43],p=[1,41],K=[1,14],dt=[1,23],ft=[1,18],pt=[1,19],gt=[1,20],ut=[1,21],kt=[1,22],ct=[1,24],a=[1,25],Bt=[1,26],wt=[1,27],It=[1,28],Ot=[1,29],W=[1,32],N=[1,33],P=[1,34],_=[1,39],F=[1,40],Q=[1,42],C=[1,44],R=[1,62],H=[1,61],v=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Wt=[1,65],Nt=[1,66],Rt=[1,67],Ht=[1,68],Ut=[1,69],jt=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],Gt=[1,74],Kt=[1,75],Zt=[1,76],B=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,90],J=[1,91],$=[1,92],tt=[1,99],et=[1,93],at=[1,96],it=[1,94],nt=[1,95],rt=[1,97],st=[1,98],St=[1,102],Jt=[10,55,56,57],I=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],At={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:r(function(o,l,x,d,k,e,ht){var s=e.length-1;switch(k){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],d.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:d.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:d.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:d.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:d.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:d.setXAxisLeftText(e[s-2]),d.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" \u27F6 ",d.setXAxisLeftText(e[s-1]);break;case 53:d.setXAxisLeftText(e[s]);break;case 54:d.setYAxisBottomText(e[s-2]),d.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" \u27F6 ",d.setYAxisBottomText(e[s-1]);break;case 56:d.setYAxisBottomText(e[s]);break;case 57:d.setQuadrant1Text(e[s]);break;case 58:d.setQuadrant2Text(e[s]);break;case 59:d.setQuadrant3Text(e[s]);break;case 60:d.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:u,56:c,57:g},{1:[3]},{18:n,26:8,27:2,28:f,55:u,56:c,57:g},{18:n,26:9,27:2,28:f,55:u,56:c,57:g},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(i,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:h,5:T,10:m,12:b,13:q,14:p,18:K,25:dt,35:ft,37:pt,39:gt,41:ut,42:kt,48:ct,50:a,51:Bt,52:wt,53:It,54:Ot,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),t(y,[2,34]),{27:45,55:u,56:c,57:g},t(i,[2,37]),t(i,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:h,5:T,10:m,12:b,13:q,14:p,18:K,25:dt,35:ft,37:pt,39:gt,41:ut,42:kt,48:ct,50:a,51:Bt,52:wt,53:It,54:Ot,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,39]),t(i,[2,40]),t(i,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(i,[2,45]),t(i,[2,46]),{18:[1,50]},{4:h,5:T,10:m,12:b,13:q,14:p,43:51,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:52,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:53,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:54,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:55,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:56,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,44:[1,57],47:[1,58],58:60,59:59,63:P,64:_,65:F,66:Q,67:C},t(v,[2,64]),t(v,[2,66]),t(v,[2,67]),t(v,[2,70]),t(v,[2,71]),t(v,[2,72]),t(v,[2,73]),t(v,[2,74]),t(v,[2,75]),t(v,[2,76]),t(v,[2,77]),t(v,[2,78]),t(v,[2,79]),t(v,[2,80]),t(y,[2,35]),t(i,[2,38]),t(i,[2,42]),t(i,[2,43]),t(i,[2,44]),{3:64,4:Wt,5:Nt,6:Rt,7:Ht,8:Ut,9:jt,10:Xt,11:Mt,12:Yt,13:Gt,14:Kt,15:Zt,21:63},t(i,[2,53],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,49:[1,77],63:P,64:_,65:F,66:Q,67:C}),t(i,[2,56],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,49:[1,78],63:P,64:_,65:F,66:Q,67:C}),t(i,[2,57],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,58],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,59],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,60],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),{45:[1,79]},{44:[1,80]},t(v,[2,65]),t(v,[2,81]),t(v,[2,82]),t(v,[2,83]),{3:82,4:Wt,5:Nt,6:Rt,7:Ht,8:Ut,9:jt,10:Xt,11:Mt,12:Yt,13:Gt,14:Kt,15:Zt,18:[1,81]},t(B,[2,23]),t(B,[2,1]),t(B,[2,2]),t(B,[2,3]),t(B,[2,4]),t(B,[2,5]),t(B,[2,6]),t(B,[2,7]),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(B,[2,11]),t(B,[2,12]),t(i,[2,52],{58:31,43:83,4:h,5:T,10:m,12:b,13:q,14:p,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,55],{58:31,43:84,4:h,5:T,10:m,12:b,13:q,14:p,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),{46:[1,85]},{45:[1,86]},{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:rt,20:st,22:88,23:87},t(B,[2,24]),t(i,[2,51],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,54],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,47],{22:88,16:89,23:100,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st}),{46:[1,101]},t(i,[2,29],{10:St}),t(Jt,[2,27],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st}),t(I,[2,25]),t(I,[2,13]),t(I,[2,14]),t(I,[2,15]),t(I,[2,16]),t(I,[2,17]),t(I,[2,18]),t(I,[2,19]),t(I,[2,20]),t(I,[2,21]),t(I,[2,22]),t(i,[2,49],{10:St}),t(i,[2,48],{22:88,16:89,23:104,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st}),{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:rt,20:st,22:105},t(I,[2,26]),t(i,[2,50],{10:St}),t(Jt,[2,28],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:r(function(o,l){if(l.recoverable)this.trace(o);else{var x=new Error(o);throw x.hash=l,x}},"parseError"),parse:r(function(o){var l=this,x=[0],d=[],k=[null],e=[],ht=this.table,s="",yt=0,$t=0,te=0,Te=2,ee=1,me=e.slice.call(arguments,1),D=Object.create(this.lexer),M={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(M.yy[_t]=this.yy[_t]);D.setInput(o,M.yy),M.yy.lexer=D,M.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ft=D.yylloc;e.push(Ft);var be=D.options&&D.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(w){x.length=x.length-2*w,k.length=k.length-w,e.length=e.length-w}r(Ie,"popStack");function qe(){var w;return w=d.pop()||D.lex()||ee,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=l.symbols_[w]||w),w}r(qe,"lex");for(var z,Qt,Y,O,Oe,Ct,ot={},Tt,U,ae,mt;;){if(Y=x[x.length-1],this.defaultActions[Y]?O=this.defaultActions[Y]:((z===null||typeof z>"u")&&(z=qe()),O=ht[Y]&&ht[Y][z]),typeof O>"u"||!O.length||!O[0]){var Lt="";mt=[];for(Tt in ht[Y])this.terminals_[Tt]&&Tt>Te&&mt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Lt="Parse error on line "+(yt+1)+`: +import{F as ne,M as re,P as se,Q as oe,R as le,S as de,T as ue,U as ce,V as vt,X as xt,b as lt,ga as bt,ka as Dt,q as ie,s as L}from"./chunk-OR2G2HG5.mjs";import{a as r}from"./chunk-GTKDMUJJ.mjs";var Et=function(){var t=r(function(X,o,l,x){for(l=l||{},x=X.length;x--;l[X[x]]=o);return l},"o"),n=[1,3],f=[1,4],u=[1,5],c=[1,6],g=[1,7],y=[1,4,5,10,12,13,14,18,25,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],S=[1,4,5,10,12,13,14,18,25,28,35,37,39,41,42,48,50,51,52,53,54,55,56,57,60,61,63,64,65,66,67],i=[55,56,57],A=[2,36],h=[1,37],T=[1,36],m=[1,38],b=[1,35],q=[1,43],p=[1,41],K=[1,14],dt=[1,23],ft=[1,18],pt=[1,19],gt=[1,20],ut=[1,21],kt=[1,22],ct=[1,24],a=[1,25],Bt=[1,26],wt=[1,27],It=[1,28],Ot=[1,29],W=[1,32],N=[1,33],P=[1,34],_=[1,39],F=[1,40],Q=[1,42],C=[1,44],R=[1,62],H=[1,61],v=[4,5,8,10,12,13,14,18,44,47,49,55,56,57,63,64,65,66,67],Wt=[1,65],Nt=[1,66],Rt=[1,67],Ht=[1,68],Ut=[1,69],jt=[1,70],Xt=[1,71],Mt=[1,72],Yt=[1,73],Gt=[1,74],Kt=[1,75],Zt=[1,76],B=[4,5,6,7,8,9,10,11,12,13,14,15,18],Z=[1,90],J=[1,91],$=[1,92],tt=[1,99],et=[1,93],at=[1,96],it=[1,94],nt=[1,95],rt=[1,97],st=[1,98],St=[1,102],Jt=[10,55,56,57],I=[4,5,6,8,10,11,13,17,18,19,20,55,56,57],At={trace:r(function(){},"trace"),yy:{},symbols_:{error:2,idStringToken:3,ALPHA:4,NUM:5,NODE_STRING:6,DOWN:7,MINUS:8,DEFAULT:9,COMMA:10,COLON:11,AMP:12,BRKT:13,MULT:14,UNICODE_TEXT:15,styleComponent:16,UNIT:17,SPACE:18,STYLE:19,PCT:20,idString:21,style:22,stylesOpt:23,classDefStatement:24,CLASSDEF:25,start:26,eol:27,QUADRANT:28,document:29,line:30,statement:31,axisDetails:32,quadrantDetails:33,points:34,title:35,title_value:36,acc_title:37,acc_title_value:38,acc_descr:39,acc_descr_value:40,acc_descr_multiline_value:41,section:42,text:43,point_start:44,point_x:45,point_y:46,class_name:47,"X-AXIS":48,"AXIS-TEXT-DELIMITER":49,"Y-AXIS":50,QUADRANT_1:51,QUADRANT_2:52,QUADRANT_3:53,QUADRANT_4:54,NEWLINE:55,SEMI:56,EOF:57,alphaNumToken:58,textNoTagsToken:59,STR:60,MD_STR:61,alphaNum:62,PUNCTUATION:63,PLUS:64,EQUALS:65,DOT:66,UNDERSCORE:67,$accept:0,$end:1},terminals_:{2:"error",4:"ALPHA",5:"NUM",6:"NODE_STRING",7:"DOWN",8:"MINUS",9:"DEFAULT",10:"COMMA",11:"COLON",12:"AMP",13:"BRKT",14:"MULT",15:"UNICODE_TEXT",17:"UNIT",18:"SPACE",19:"STYLE",20:"PCT",25:"CLASSDEF",28:"QUADRANT",35:"title",36:"title_value",37:"acc_title",38:"acc_title_value",39:"acc_descr",40:"acc_descr_value",41:"acc_descr_multiline_value",42:"section",44:"point_start",45:"point_x",46:"point_y",47:"class_name",48:"X-AXIS",49:"AXIS-TEXT-DELIMITER",50:"Y-AXIS",51:"QUADRANT_1",52:"QUADRANT_2",53:"QUADRANT_3",54:"QUADRANT_4",55:"NEWLINE",56:"SEMI",57:"EOF",60:"STR",61:"MD_STR",63:"PUNCTUATION",64:"PLUS",65:"EQUALS",66:"DOT",67:"UNDERSCORE"},productions_:[0,[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[16,1],[21,1],[21,2],[22,1],[22,2],[23,1],[23,3],[24,5],[26,2],[26,2],[26,2],[29,0],[29,2],[30,2],[31,0],[31,1],[31,2],[31,1],[31,1],[31,1],[31,2],[31,2],[31,2],[31,1],[31,1],[34,4],[34,5],[34,5],[34,6],[32,4],[32,3],[32,2],[32,4],[32,3],[32,2],[33,2],[33,2],[33,2],[33,2],[27,1],[27,1],[27,1],[43,1],[43,2],[43,1],[43,1],[62,1],[62,2],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[58,1],[59,1],[59,1],[59,1]],performAction:r(function(o,l,x,d,k,e,ht){var s=e.length-1;switch(k){case 23:this.$=e[s];break;case 24:this.$=e[s-1]+""+e[s];break;case 26:this.$=e[s-1]+e[s];break;case 27:this.$=[e[s].trim()];break;case 28:e[s-2].push(e[s].trim()),this.$=e[s-2];break;case 29:this.$=e[s-4],d.addClass(e[s-2],e[s]);break;case 37:this.$=[];break;case 42:this.$=e[s].trim(),d.setDiagramTitle(this.$);break;case 43:this.$=e[s].trim(),d.setAccTitle(this.$);break;case 44:case 45:this.$=e[s].trim(),d.setAccDescription(this.$);break;case 46:d.addSection(e[s].substr(8)),this.$=e[s].substr(8);break;case 47:d.addPoint(e[s-3],"",e[s-1],e[s],[]);break;case 48:d.addPoint(e[s-4],e[s-3],e[s-1],e[s],[]);break;case 49:d.addPoint(e[s-4],"",e[s-2],e[s-1],e[s]);break;case 50:d.addPoint(e[s-5],e[s-4],e[s-2],e[s-1],e[s]);break;case 51:d.setXAxisLeftText(e[s-2]),d.setXAxisRightText(e[s]);break;case 52:e[s-1].text+=" \u27F6 ",d.setXAxisLeftText(e[s-1]);break;case 53:d.setXAxisLeftText(e[s]);break;case 54:d.setYAxisBottomText(e[s-2]),d.setYAxisTopText(e[s]);break;case 55:e[s-1].text+=" \u27F6 ",d.setYAxisBottomText(e[s-1]);break;case 56:d.setYAxisBottomText(e[s]);break;case 57:d.setQuadrant1Text(e[s]);break;case 58:d.setQuadrant2Text(e[s]);break;case 59:d.setQuadrant3Text(e[s]);break;case 60:d.setQuadrant4Text(e[s]);break;case 64:this.$={text:e[s],type:"text"};break;case 65:this.$={text:e[s-1].text+""+e[s],type:e[s-1].type};break;case 66:this.$={text:e[s],type:"text"};break;case 67:this.$={text:e[s],type:"markdown"};break;case 68:this.$=e[s];break;case 69:this.$=e[s-1]+""+e[s];break}},"anonymous"),table:[{18:n,26:1,27:2,28:f,55:u,56:c,57:g},{1:[3]},{18:n,26:8,27:2,28:f,55:u,56:c,57:g},{18:n,26:9,27:2,28:f,55:u,56:c,57:g},t(y,[2,33],{29:10}),t(S,[2,61]),t(S,[2,62]),t(S,[2,63]),{1:[2,30]},{1:[2,31]},t(i,A,{30:11,31:12,24:13,32:15,33:16,34:17,43:30,58:31,1:[2,32],4:h,5:T,10:m,12:b,13:q,14:p,18:K,25:dt,35:ft,37:pt,39:gt,41:ut,42:kt,48:ct,50:a,51:Bt,52:wt,53:It,54:Ot,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),t(y,[2,34]),{27:45,55:u,56:c,57:g},t(i,[2,37]),t(i,A,{24:13,32:15,33:16,34:17,43:30,58:31,31:46,4:h,5:T,10:m,12:b,13:q,14:p,18:K,25:dt,35:ft,37:pt,39:gt,41:ut,42:kt,48:ct,50:a,51:Bt,52:wt,53:It,54:Ot,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,39]),t(i,[2,40]),t(i,[2,41]),{36:[1,47]},{38:[1,48]},{40:[1,49]},t(i,[2,45]),t(i,[2,46]),{18:[1,50]},{4:h,5:T,10:m,12:b,13:q,14:p,43:51,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:52,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:53,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:54,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:55,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,10:m,12:b,13:q,14:p,43:56,58:31,60:W,61:N,63:P,64:_,65:F,66:Q,67:C},{4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,44:[1,57],47:[1,58],58:60,59:59,63:P,64:_,65:F,66:Q,67:C},t(v,[2,64]),t(v,[2,66]),t(v,[2,67]),t(v,[2,70]),t(v,[2,71]),t(v,[2,72]),t(v,[2,73]),t(v,[2,74]),t(v,[2,75]),t(v,[2,76]),t(v,[2,77]),t(v,[2,78]),t(v,[2,79]),t(v,[2,80]),t(y,[2,35]),t(i,[2,38]),t(i,[2,42]),t(i,[2,43]),t(i,[2,44]),{3:64,4:Wt,5:Nt,6:Rt,7:Ht,8:Ut,9:jt,10:Xt,11:Mt,12:Yt,13:Gt,14:Kt,15:Zt,21:63},t(i,[2,53],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,49:[1,77],63:P,64:_,65:F,66:Q,67:C}),t(i,[2,56],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,49:[1,78],63:P,64:_,65:F,66:Q,67:C}),t(i,[2,57],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,58],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,59],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,60],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),{45:[1,79]},{44:[1,80]},t(v,[2,65]),t(v,[2,81]),t(v,[2,82]),t(v,[2,83]),{3:82,4:Wt,5:Nt,6:Rt,7:Ht,8:Ut,9:jt,10:Xt,11:Mt,12:Yt,13:Gt,14:Kt,15:Zt,18:[1,81]},t(B,[2,23]),t(B,[2,1]),t(B,[2,2]),t(B,[2,3]),t(B,[2,4]),t(B,[2,5]),t(B,[2,6]),t(B,[2,7]),t(B,[2,8]),t(B,[2,9]),t(B,[2,10]),t(B,[2,11]),t(B,[2,12]),t(i,[2,52],{58:31,43:83,4:h,5:T,10:m,12:b,13:q,14:p,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,55],{58:31,43:84,4:h,5:T,10:m,12:b,13:q,14:p,60:W,61:N,63:P,64:_,65:F,66:Q,67:C}),{46:[1,85]},{45:[1,86]},{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:rt,20:st,22:88,23:87},t(B,[2,24]),t(i,[2,51],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,54],{59:59,58:60,4:h,5:T,8:R,10:m,12:b,13:q,14:p,18:H,63:P,64:_,65:F,66:Q,67:C}),t(i,[2,47],{22:88,16:89,23:100,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st}),{46:[1,101]},t(i,[2,29],{10:St}),t(Jt,[2,27],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st}),t(I,[2,25]),t(I,[2,13]),t(I,[2,14]),t(I,[2,15]),t(I,[2,16]),t(I,[2,17]),t(I,[2,18]),t(I,[2,19]),t(I,[2,20]),t(I,[2,21]),t(I,[2,22]),t(i,[2,49],{10:St}),t(i,[2,48],{22:88,16:89,23:104,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st}),{4:Z,5:J,6:$,8:tt,11:et,13:at,16:89,17:it,18:nt,19:rt,20:st,22:105},t(I,[2,26]),t(i,[2,50],{10:St}),t(Jt,[2,28],{16:103,4:Z,5:J,6:$,8:tt,11:et,13:at,17:it,18:nt,19:rt,20:st})],defaultActions:{8:[2,30],9:[2,31]},parseError:r(function(o,l){if(l.recoverable)this.trace(o);else{var x=new Error(o);throw x.hash=l,x}},"parseError"),parse:r(function(o){var l=this,x=[0],d=[],k=[null],e=[],ht=this.table,s="",yt=0,$t=0,te=0,Te=2,ee=1,me=e.slice.call(arguments,1),D=Object.create(this.lexer),M={yy:{}};for(var _t in this.yy)Object.prototype.hasOwnProperty.call(this.yy,_t)&&(M.yy[_t]=this.yy[_t]);D.setInput(o,M.yy),M.yy.lexer=D,M.yy.parser=this,typeof D.yylloc>"u"&&(D.yylloc={});var Ft=D.yylloc;e.push(Ft);var be=D.options&&D.options.ranges;typeof M.yy.parseError=="function"?this.parseError=M.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Ie(w){x.length=x.length-2*w,k.length=k.length-w,e.length=e.length-w}r(Ie,"popStack");function qe(){var w;return w=d.pop()||D.lex()||ee,typeof w!="number"&&(w instanceof Array&&(d=w,w=d.pop()),w=l.symbols_[w]||w),w}r(qe,"lex");for(var z,Qt,Y,O,Oe,Ct,ot={},Tt,U,ae,mt;;){if(Y=x[x.length-1],this.defaultActions[Y]?O=this.defaultActions[Y]:((z===null||typeof z>"u")&&(z=qe()),O=ht[Y]&&ht[Y][z]),typeof O>"u"||!O.length||!O[0]){var Lt="";mt=[];for(Tt in ht[Y])this.terminals_[Tt]&&Tt>Te&&mt.push("'"+this.terminals_[Tt]+"'");D.showPosition?Lt="Parse error on line "+(yt+1)+`: `+D.showPosition()+` Expecting `+mt.join(", ")+", got '"+(this.terminals_[z]||z)+"'":Lt="Parse error on line "+(yt+1)+": Unexpected "+(z==ee?"end of input":"'"+(this.terminals_[z]||z)+"'"),this.parseError(Lt,{text:D.match,token:this.terminals_[z]||z,line:D.yylineno,loc:Ft,expected:mt})}if(O[0]instanceof Array&&O.length>1)throw new Error("Parse Error: multiple actions possible at state: "+Y+", token: "+z);switch(O[0]){case 1:x.push(z),k.push(D.yytext),e.push(D.yylloc),x.push(O[1]),z=null,Qt?(z=Qt,Qt=null):($t=D.yyleng,s=D.yytext,yt=D.yylineno,Ft=D.yylloc,te>0&&te--);break;case 2:if(U=this.productions_[O[1]][1],ot.$=k[k.length-U],ot._$={first_line:e[e.length-(U||1)].first_line,last_line:e[e.length-1].last_line,first_column:e[e.length-(U||1)].first_column,last_column:e[e.length-1].last_column},be&&(ot._$.range=[e[e.length-(U||1)].range[0],e[e.length-1].range[1]]),Ct=this.performAction.apply(ot,[s,$t,yt,M.yy,O[1],k,e].concat(me)),typeof Ct<"u")return Ct;U&&(x=x.slice(0,-1*U*2),k=k.slice(0,-1*U),e=e.slice(0,-1*U)),x.push(this.productions_[O[1]][0]),k.push(ot.$),e.push(ot._$),ae=ht[x[x.length-2]][x[x.length-1]],x.push(ae);break;case 3:return!0}}return!0},"parse")},ye=function(){var X={EOF:1,parseError:r(function(l,x){if(this.yy.parser)this.yy.parser.parseError(l,x);else throw new Error(l)},"parseError"),setInput:r(function(o,l){return this.yy=l||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:r(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var l=o.match(/(?:\r\n?|\n).*/g);return l?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:r(function(o){var l=o.length,x=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-l),this.offset-=l;var d=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),x.length-1&&(this.yylineno-=x.length-1);var k=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:x?(x.length===d.length?this.yylloc.first_column:0)+d[d.length-x.length].length-x[0].length:this.yylloc.first_column-l},this.options.ranges&&(this.yylloc.range=[k[0],k[0]+this.yyleng-l]),this.yyleng=this.yytext.length,this},"unput"),more:r(function(){return this._more=!0,this},"more"),reject:r(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:r(function(o){this.unput(this.match.slice(o))},"less"),pastInput:r(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:r(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:r(function(){var o=this.pastInput(),l=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/requirementDiagram-5WTT3577.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/requirementDiagram-5YXTYXBB.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/requirementDiagram-5WTT3577.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/requirementDiagram-5YXTYXBB.mjs index 63fe67fdb..4a704096c 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/requirementDiagram-5WTT3577.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/requirementDiagram-5YXTYXBB.mjs @@ -1,4 +1,4 @@ -import{a as Fe}from"./chunk-FASC7IG4.mjs";import{a as Me}from"./chunk-ZN7TASNU.mjs";import{Da as qe,L as pe,M as ve,P as $e,Q as Ve,R as Le,S as Oe,T as Ce,X as ne,b as re,ga as se}from"./chunk-ITX3UAHE.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as i}from"./chunk-GTKDMUJJ.mjs";var fe=function(){var e=i(function(L,r,a,l){for(a=a||{},l=L.length;l--;a[L[l]]=r);return a},"o"),t=[1,3],c=[1,4],d=[1,5],u=[1,6],p=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],y=[1,18],h=[2,7],o=[1,22],_=[1,23],m=[1,24],k=[1,25],I=[1,26],w=[1,27],$=[1,20],x=[1,28],v=[1,29],F=[62,63],Ee=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],me=[1,47],Re=[1,48],be=[1,49],ke=[1,50],Ie=[1,51],Se=[1,52],Te=[1,53],C=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],j=[1,69],X=[1,70],J=[1,67],Z=[1,68],S=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ae={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:i(function(r,a,l,n,f,s,K){var E=s.length-1;switch(f){case 4:this.$=s[E].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[E].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[E-3],s[E-4]);break;case 14:n.setNewReqId(s[E-2]);break;case 15:n.setNewReqText(s[E-2]);break;case 16:n.setNewReqRisk(s[E-2]);break;case 17:n.setNewReqVerifyMethod(s[E-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[E-3]);break;case 34:n.setNewElementType(s[E-2]);break;case 35:n.setNewElementDocRef(s[E-2]);break;case 38:n.addRelationship(s[E-2],s[E],s[E-4]);break;case 39:n.addRelationship(s[E-2],s[E-4],s[E]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:c,11:d,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:c,11:d,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(p,[2,6]),{3:12,4:2,6:t,9:c,11:d,13:u},{1:[2,2]},{4:17,5:y,7:13,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},e(p,[2,4]),e(p,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:y,7:31,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:32,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:33,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:34,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:35,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(Ee,[2,49]),e(Ee,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:me,56:Re,57:be,58:ke,59:Ie,60:Se,61:Te},{52:54,55:me,56:Re,57:be,58:ke,59:Ie,60:Se,61:Te},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(C,[2,40]),e(C,[2,41]),e(C,[2,42]),e(C,[2,43]),e(C,[2,44]),e(C,[2,45]),e(C,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:66,47:J,49:Z},{23:71,62:x,63:v},{23:72,62:x,63:v},e(S,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(S,[2,19]),e(S,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:X,46:80,47:J,49:Z},e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{23:81,62:x,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(S,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(S,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:110,47:J,49:Z},{5:j,30:X,46:111,47:J,49:Z},e(S,[2,14]),e(S,[2,15]),e(S,[2,16]),e(S,[2,17]),e(S,[2,34]),e(S,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:i(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:i(function(r){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",ee=0,Ne=0,xe=0,Ge=2,Ae=1,ze=s.slice.call(arguments,1),R=Object.create(this.lexer),q={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(q.yy[oe]=this.yy[oe]);R.setInput(r,q.yy),q.yy.lexer=R,q.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var ce=R.yylloc;s.push(ce);var je=R.options&&R.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function St(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}i(St,"popStack");function Xe(){var N;return N=n.pop()||R.lex()||Ae,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}i(Xe,"lex");for(var b,he,M,A,Tt,ue,H={},te,V,we,ie;;){if(M=l[l.length-1],this.defaultActions[M]?A=this.defaultActions[M]:((b===null||typeof b>"u")&&(b=Xe()),A=K[M]&&K[M][b]),typeof A>"u"||!A.length||!A[0]){var de="";ie=[];for(te in K[M])this.terminals_[te]&&te>Ge&&ie.push("'"+this.terminals_[te]+"'");R.showPosition?de="Parse error on line "+(ee+1)+`: +import{a as Fe}from"./chunk-FASC7IG4.mjs";import{a as Me}from"./chunk-ZN7TASNU.mjs";import{Da as qe,L as pe,M as ve,P as $e,Q as Ve,R as Le,S as Oe,T as Ce,X as ne,b as re,ga as se}from"./chunk-OR2G2HG5.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as i}from"./chunk-GTKDMUJJ.mjs";var fe=function(){var e=i(function(L,r,a,l){for(a=a||{},l=L.length;l--;a[L[l]]=r);return a},"o"),t=[1,3],c=[1,4],d=[1,5],u=[1,6],p=[5,6,8,9,11,13,31,32,33,34,35,36,44,62,63],y=[1,18],h=[2,7],o=[1,22],_=[1,23],m=[1,24],k=[1,25],I=[1,26],w=[1,27],$=[1,20],x=[1,28],v=[1,29],F=[62,63],Ee=[5,8,9,11,13,31,32,33,34,35,36,44,51,53,62,63],me=[1,47],Re=[1,48],be=[1,49],ke=[1,50],Ie=[1,51],Se=[1,52],Te=[1,53],C=[53,54],D=[1,64],P=[1,60],Y=[1,61],U=[1,62],B=[1,63],Q=[1,65],j=[1,69],X=[1,70],J=[1,67],Z=[1,68],S=[5,8,9,11,13,31,32,33,34,35,36,44,62,63],ae={trace:i(function(){},"trace"),yy:{},symbols_:{error:2,start:3,directive:4,NEWLINE:5,RD:6,diagram:7,EOF:8,acc_title:9,acc_title_value:10,acc_descr:11,acc_descr_value:12,acc_descr_multiline_value:13,requirementDef:14,elementDef:15,relationshipDef:16,requirementType:17,requirementName:18,STRUCT_START:19,requirementBody:20,ID:21,COLONSEP:22,id:23,TEXT:24,text:25,RISK:26,riskLevel:27,VERIFYMTHD:28,verifyType:29,STRUCT_STOP:30,REQUIREMENT:31,FUNCTIONAL_REQUIREMENT:32,INTERFACE_REQUIREMENT:33,PERFORMANCE_REQUIREMENT:34,PHYSICAL_REQUIREMENT:35,DESIGN_CONSTRAINT:36,LOW_RISK:37,MED_RISK:38,HIGH_RISK:39,VERIFY_ANALYSIS:40,VERIFY_DEMONSTRATION:41,VERIFY_INSPECTION:42,VERIFY_TEST:43,ELEMENT:44,elementName:45,elementBody:46,TYPE:47,type:48,DOCREF:49,ref:50,END_ARROW_L:51,relationship:52,LINE:53,END_ARROW_R:54,CONTAINS:55,COPIES:56,DERIVES:57,SATISFIES:58,VERIFIES:59,REFINES:60,TRACES:61,unqString:62,qString:63,$accept:0,$end:1},terminals_:{2:"error",5:"NEWLINE",6:"RD",8:"EOF",9:"acc_title",10:"acc_title_value",11:"acc_descr",12:"acc_descr_value",13:"acc_descr_multiline_value",19:"STRUCT_START",21:"ID",22:"COLONSEP",24:"TEXT",26:"RISK",28:"VERIFYMTHD",30:"STRUCT_STOP",31:"REQUIREMENT",32:"FUNCTIONAL_REQUIREMENT",33:"INTERFACE_REQUIREMENT",34:"PERFORMANCE_REQUIREMENT",35:"PHYSICAL_REQUIREMENT",36:"DESIGN_CONSTRAINT",37:"LOW_RISK",38:"MED_RISK",39:"HIGH_RISK",40:"VERIFY_ANALYSIS",41:"VERIFY_DEMONSTRATION",42:"VERIFY_INSPECTION",43:"VERIFY_TEST",44:"ELEMENT",47:"TYPE",49:"DOCREF",51:"END_ARROW_L",53:"LINE",54:"END_ARROW_R",55:"CONTAINS",56:"COPIES",57:"DERIVES",58:"SATISFIES",59:"VERIFIES",60:"REFINES",61:"TRACES",62:"unqString",63:"qString"},productions_:[0,[3,3],[3,2],[3,4],[4,2],[4,2],[4,1],[7,0],[7,2],[7,2],[7,2],[7,2],[7,2],[14,5],[20,5],[20,5],[20,5],[20,5],[20,2],[20,1],[17,1],[17,1],[17,1],[17,1],[17,1],[17,1],[27,1],[27,1],[27,1],[29,1],[29,1],[29,1],[29,1],[15,5],[46,5],[46,5],[46,2],[46,1],[16,5],[16,5],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[52,1],[18,1],[18,1],[23,1],[23,1],[25,1],[25,1],[45,1],[45,1],[48,1],[48,1],[50,1],[50,1]],performAction:i(function(r,a,l,n,f,s,K){var E=s.length-1;switch(f){case 4:this.$=s[E].trim(),n.setAccTitle(this.$);break;case 5:case 6:this.$=s[E].trim(),n.setAccDescription(this.$);break;case 7:this.$=[];break;case 13:n.addRequirement(s[E-3],s[E-4]);break;case 14:n.setNewReqId(s[E-2]);break;case 15:n.setNewReqText(s[E-2]);break;case 16:n.setNewReqRisk(s[E-2]);break;case 17:n.setNewReqVerifyMethod(s[E-2]);break;case 20:this.$=n.RequirementType.REQUIREMENT;break;case 21:this.$=n.RequirementType.FUNCTIONAL_REQUIREMENT;break;case 22:this.$=n.RequirementType.INTERFACE_REQUIREMENT;break;case 23:this.$=n.RequirementType.PERFORMANCE_REQUIREMENT;break;case 24:this.$=n.RequirementType.PHYSICAL_REQUIREMENT;break;case 25:this.$=n.RequirementType.DESIGN_CONSTRAINT;break;case 26:this.$=n.RiskLevel.LOW_RISK;break;case 27:this.$=n.RiskLevel.MED_RISK;break;case 28:this.$=n.RiskLevel.HIGH_RISK;break;case 29:this.$=n.VerifyType.VERIFY_ANALYSIS;break;case 30:this.$=n.VerifyType.VERIFY_DEMONSTRATION;break;case 31:this.$=n.VerifyType.VERIFY_INSPECTION;break;case 32:this.$=n.VerifyType.VERIFY_TEST;break;case 33:n.addElement(s[E-3]);break;case 34:n.setNewElementType(s[E-2]);break;case 35:n.setNewElementDocRef(s[E-2]);break;case 38:n.addRelationship(s[E-2],s[E],s[E-4]);break;case 39:n.addRelationship(s[E-2],s[E-4],s[E]);break;case 40:this.$=n.Relationships.CONTAINS;break;case 41:this.$=n.Relationships.COPIES;break;case 42:this.$=n.Relationships.DERIVES;break;case 43:this.$=n.Relationships.SATISFIES;break;case 44:this.$=n.Relationships.VERIFIES;break;case 45:this.$=n.Relationships.REFINES;break;case 46:this.$=n.Relationships.TRACES;break}},"anonymous"),table:[{3:1,4:2,6:t,9:c,11:d,13:u},{1:[3]},{3:8,4:2,5:[1,7],6:t,9:c,11:d,13:u},{5:[1,9]},{10:[1,10]},{12:[1,11]},e(p,[2,6]),{3:12,4:2,6:t,9:c,11:d,13:u},{1:[2,2]},{4:17,5:y,7:13,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},e(p,[2,4]),e(p,[2,5]),{1:[2,1]},{8:[1,30]},{4:17,5:y,7:31,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:32,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:33,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:34,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{4:17,5:y,7:35,8:h,9:c,11:d,13:u,14:14,15:15,16:16,17:19,23:21,31:o,32:_,33:m,34:k,35:I,36:w,44:$,62:x,63:v},{18:36,62:[1,37],63:[1,38]},{45:39,62:[1,40],63:[1,41]},{51:[1,42],53:[1,43]},e(F,[2,20]),e(F,[2,21]),e(F,[2,22]),e(F,[2,23]),e(F,[2,24]),e(F,[2,25]),e(Ee,[2,49]),e(Ee,[2,50]),{1:[2,3]},{8:[2,8]},{8:[2,9]},{8:[2,10]},{8:[2,11]},{8:[2,12]},{19:[1,44]},{19:[2,47]},{19:[2,48]},{19:[1,45]},{19:[2,53]},{19:[2,54]},{52:46,55:me,56:Re,57:be,58:ke,59:Ie,60:Se,61:Te},{52:54,55:me,56:Re,57:be,58:ke,59:Ie,60:Se,61:Te},{5:[1,55]},{5:[1,56]},{53:[1,57]},e(C,[2,40]),e(C,[2,41]),e(C,[2,42]),e(C,[2,43]),e(C,[2,44]),e(C,[2,45]),e(C,[2,46]),{54:[1,58]},{5:D,20:59,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:66,47:J,49:Z},{23:71,62:x,63:v},{23:72,62:x,63:v},e(S,[2,13]),{22:[1,73]},{22:[1,74]},{22:[1,75]},{22:[1,76]},{5:D,20:77,21:P,24:Y,26:U,28:B,30:Q},e(S,[2,19]),e(S,[2,33]),{22:[1,78]},{22:[1,79]},{5:j,30:X,46:80,47:J,49:Z},e(S,[2,37]),e(S,[2,38]),e(S,[2,39]),{23:81,62:x,63:v},{25:82,62:[1,83],63:[1,84]},{27:85,37:[1,86],38:[1,87],39:[1,88]},{29:89,40:[1,90],41:[1,91],42:[1,92],43:[1,93]},e(S,[2,18]),{48:94,62:[1,95],63:[1,96]},{50:97,62:[1,98],63:[1,99]},e(S,[2,36]),{5:[1,100]},{5:[1,101]},{5:[2,51]},{5:[2,52]},{5:[1,102]},{5:[2,26]},{5:[2,27]},{5:[2,28]},{5:[1,103]},{5:[2,29]},{5:[2,30]},{5:[2,31]},{5:[2,32]},{5:[1,104]},{5:[2,55]},{5:[2,56]},{5:[1,105]},{5:[2,57]},{5:[2,58]},{5:D,20:106,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:107,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:108,21:P,24:Y,26:U,28:B,30:Q},{5:D,20:109,21:P,24:Y,26:U,28:B,30:Q},{5:j,30:X,46:110,47:J,49:Z},{5:j,30:X,46:111,47:J,49:Z},e(S,[2,14]),e(S,[2,15]),e(S,[2,16]),e(S,[2,17]),e(S,[2,34]),e(S,[2,35])],defaultActions:{8:[2,2],12:[2,1],30:[2,3],31:[2,8],32:[2,9],33:[2,10],34:[2,11],35:[2,12],37:[2,47],38:[2,48],40:[2,53],41:[2,54],83:[2,51],84:[2,52],86:[2,26],87:[2,27],88:[2,28],90:[2,29],91:[2,30],92:[2,31],93:[2,32],95:[2,55],96:[2,56],98:[2,57],99:[2,58]},parseError:i(function(r,a){if(a.recoverable)this.trace(r);else{var l=new Error(r);throw l.hash=a,l}},"parseError"),parse:i(function(r){var a=this,l=[0],n=[],f=[null],s=[],K=this.table,E="",ee=0,Ne=0,xe=0,Ge=2,Ae=1,ze=s.slice.call(arguments,1),R=Object.create(this.lexer),q={yy:{}};for(var oe in this.yy)Object.prototype.hasOwnProperty.call(this.yy,oe)&&(q.yy[oe]=this.yy[oe]);R.setInput(r,q.yy),q.yy.lexer=R,q.yy.parser=this,typeof R.yylloc>"u"&&(R.yylloc={});var ce=R.yylloc;s.push(ce);var je=R.options&&R.options.ranges;typeof q.yy.parseError=="function"?this.parseError=q.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function St(N){l.length=l.length-2*N,f.length=f.length-N,s.length=s.length-N}i(St,"popStack");function Xe(){var N;return N=n.pop()||R.lex()||Ae,typeof N!="number"&&(N instanceof Array&&(n=N,N=n.pop()),N=a.symbols_[N]||N),N}i(Xe,"lex");for(var b,he,M,A,Tt,ue,H={},te,V,we,ie;;){if(M=l[l.length-1],this.defaultActions[M]?A=this.defaultActions[M]:((b===null||typeof b>"u")&&(b=Xe()),A=K[M]&&K[M][b]),typeof A>"u"||!A.length||!A[0]){var de="";ie=[];for(te in K[M])this.terminals_[te]&&te>Ge&&ie.push("'"+this.terminals_[te]+"'");R.showPosition?de="Parse error on line "+(ee+1)+`: `+R.showPosition()+` Expecting `+ie.join(", ")+", got '"+(this.terminals_[b]||b)+"'":de="Parse error on line "+(ee+1)+": Unexpected "+(b==Ae?"end of input":"'"+(this.terminals_[b]||b)+"'"),this.parseError(de,{text:R.match,token:this.terminals_[b]||b,line:R.yylineno,loc:ce,expected:ie})}if(A[0]instanceof Array&&A.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+b);switch(A[0]){case 1:l.push(b),f.push(R.yytext),s.push(R.yylloc),l.push(A[1]),b=null,he?(b=he,he=null):(Ne=R.yyleng,E=R.yytext,ee=R.yylineno,ce=R.yylloc,xe>0&&xe--);break;case 2:if(V=this.productions_[A[1]][1],H.$=f[f.length-V],H._$={first_line:s[s.length-(V||1)].first_line,last_line:s[s.length-1].last_line,first_column:s[s.length-(V||1)].first_column,last_column:s[s.length-1].last_column},je&&(H._$.range=[s[s.length-(V||1)].range[0],s[s.length-1].range[1]]),ue=this.performAction.apply(H,[E,Ne,ee,q.yy,A[1],f,s].concat(ze)),typeof ue<"u")return ue;V&&(l=l.slice(0,-1*V*2),f=f.slice(0,-1*V),s=s.slice(0,-1*V)),l.push(this.productions_[A[1]][0]),f.push(H.$),s.push(H._$),we=K[l[l.length-2]][l[l.length-1]],l.push(we);break;case 3:return!0}}return!0},"parse")},Ke=function(){var L={EOF:1,parseError:i(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:i(function(r,a){return this.yy=a||this.yy||{},this._input=r,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:i(function(){var r=this._input[0];this.yytext+=r,this.yyleng++,this.offset++,this.match+=r,this.matched+=r;var a=r.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),r},"input"),unput:i(function(r){var a=r.length,l=r.split(/(?:\r\n?|\n)/g);this._input=r+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var n=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var f=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===n.length?this.yylloc.first_column:0)+n[n.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[f[0],f[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:i(function(){return this._more=!0,this},"more"),reject:i(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:i(function(r){this.unput(this.match.slice(r))},"less"),pastInput:i(function(){var r=this.matched.substr(0,this.matched.length-this.match.length);return(r.length>20?"...":"")+r.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:i(function(){var r=this.match;return r.length<20&&(r+=this._input.substr(0,20-r.length)),(r.substr(0,20)+(r.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:i(function(){var r=this.pastInput(),a=new Array(r.length+1).join("-");return r+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/sankeyDiagram-HGVHE3RK.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/sankeyDiagram-T6MWQN27.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/sankeyDiagram-HGVHE3RK.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/sankeyDiagram-T6MWQN27.mjs index 45fac7b29..456e7c65f 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/sankeyDiagram-HGVHE3RK.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/sankeyDiagram-T6MWQN27.mjs @@ -1,4 +1,4 @@ -import{Aa as Nt,L as _t,N as vt,P as bt,Q as St,R as wt,S as Lt,T as At,U as Et,V as Tt,X as U,Z as Ct,ga as X,ia as Mt}from"./chunk-ITX3UAHE.mjs";import{a as e}from"./chunk-GTKDMUJJ.mjs";var lt=function(){var t=e(function(x,o,a,l){for(a=a||{},l=x.length;l--;a[x[l]]=o);return a},"o"),r=[1,9],i=[1,10],u=[1,5,10,12],c={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:e(function(o,a,l,k,_,p,v){var C=p.length-1;switch(_){case 7:let E=k.findOrCreateNode(p[C-4].trim().replaceAll('""','"')),M=k.findOrCreateNode(p[C-2].trim().replaceAll('""','"')),D=parseFloat(p[C].trim());k.addLink(E,M,D);break;case 8:case 9:case 11:this.$=p[C];break;case 10:this.$=p[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(u,[2,8]),t(u,[2,9]),{19:[1,16]},t(u,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:i},{15:18,16:7,17:8,18:r,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(u,[2,10]),{15:21,16:7,17:8,18:r,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:e(function(o,a){if(a.recoverable)this.trace(o);else{var l=new Error(o);throw l.hash=a,l}},"parseError"),parse:e(function(o){var a=this,l=[0],k=[],_=[null],p=[],v=this.table,C="",E=0,M=0,D=0,z=2,B=1,R=p.slice.call(arguments,1),w=Object.create(this.lexer),N={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(N.yy[P]=this.yy[P]);w.setInput(o,N.yy),N.yy.lexer=w,N.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var O=w.yylloc;p.push(O);var y=w.options&&w.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function T(L){l.length=l.length-2*L,_.length=_.length-L,p.length=p.length-L}e(T,"popStack");function st(){var L;return L=k.pop()||w.lex()||B,typeof L!="number"&&(L instanceof Array&&(k=L,L=k.pop()),L=a.symbols_[L]||L),L}e(st,"lex");for(var A,Y,n,f,h,d,s={},g,b,$,I;;){if(n=l[l.length-1],this.defaultActions[n]?f=this.defaultActions[n]:((A===null||typeof A>"u")&&(A=st()),f=v[n]&&v[n][A]),typeof f>"u"||!f.length||!f[0]){var j="";I=[];for(g in v[n])this.terminals_[g]&&g>z&&I.push("'"+this.terminals_[g]+"'");w.showPosition?j="Parse error on line "+(E+1)+`: +import{Aa as Nt,L as _t,N as vt,P as bt,Q as St,R as wt,S as Lt,T as At,U as Et,V as Tt,X as U,Z as Ct,ga as X,ia as Mt}from"./chunk-OR2G2HG5.mjs";import{a as e}from"./chunk-GTKDMUJJ.mjs";var lt=function(){var t=e(function(x,o,a,l){for(a=a||{},l=x.length;l--;a[x[l]]=o);return a},"o"),r=[1,9],i=[1,10],u=[1,5,10,12],c={trace:e(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SANKEY:4,NEWLINE:5,csv:6,opt_eof:7,record:8,csv_tail:9,EOF:10,"field[source]":11,COMMA:12,"field[target]":13,"field[value]":14,field:15,escaped:16,non_escaped:17,DQUOTE:18,ESCAPED_TEXT:19,NON_ESCAPED_TEXT:20,$accept:0,$end:1},terminals_:{2:"error",4:"SANKEY",5:"NEWLINE",10:"EOF",11:"field[source]",12:"COMMA",13:"field[target]",14:"field[value]",18:"DQUOTE",19:"ESCAPED_TEXT",20:"NON_ESCAPED_TEXT"},productions_:[0,[3,4],[6,2],[9,2],[9,0],[7,1],[7,0],[8,5],[15,1],[15,1],[16,3],[17,1]],performAction:e(function(o,a,l,k,_,p,v){var C=p.length-1;switch(_){case 7:let E=k.findOrCreateNode(p[C-4].trim().replaceAll('""','"')),M=k.findOrCreateNode(p[C-2].trim().replaceAll('""','"')),D=parseFloat(p[C].trim());k.addLink(E,M,D);break;case 8:case 9:case 11:this.$=p[C];break;case 10:this.$=p[C-1];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},{5:[1,3]},{6:4,8:5,15:6,16:7,17:8,18:r,20:i},{1:[2,6],7:11,10:[1,12]},t(i,[2,4],{9:13,5:[1,14]}),{12:[1,15]},t(u,[2,8]),t(u,[2,9]),{19:[1,16]},t(u,[2,11]),{1:[2,1]},{1:[2,5]},t(i,[2,2]),{6:17,8:5,15:6,16:7,17:8,18:r,20:i},{15:18,16:7,17:8,18:r,20:i},{18:[1,19]},t(i,[2,3]),{12:[1,20]},t(u,[2,10]),{15:21,16:7,17:8,18:r,20:i},t([1,5,10],[2,7])],defaultActions:{11:[2,1],12:[2,5]},parseError:e(function(o,a){if(a.recoverable)this.trace(o);else{var l=new Error(o);throw l.hash=a,l}},"parseError"),parse:e(function(o){var a=this,l=[0],k=[],_=[null],p=[],v=this.table,C="",E=0,M=0,D=0,z=2,B=1,R=p.slice.call(arguments,1),w=Object.create(this.lexer),N={yy:{}};for(var P in this.yy)Object.prototype.hasOwnProperty.call(this.yy,P)&&(N.yy[P]=this.yy[P]);w.setInput(o,N.yy),N.yy.lexer=w,N.yy.parser=this,typeof w.yylloc>"u"&&(w.yylloc={});var O=w.yylloc;p.push(O);var y=w.options&&w.options.ranges;typeof N.yy.parseError=="function"?this.parseError=N.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function T(L){l.length=l.length-2*L,_.length=_.length-L,p.length=p.length-L}e(T,"popStack");function st(){var L;return L=k.pop()||w.lex()||B,typeof L!="number"&&(L instanceof Array&&(k=L,L=k.pop()),L=a.symbols_[L]||L),L}e(st,"lex");for(var A,Y,n,f,h,d,s={},g,b,$,I;;){if(n=l[l.length-1],this.defaultActions[n]?f=this.defaultActions[n]:((A===null||typeof A>"u")&&(A=st()),f=v[n]&&v[n][A]),typeof f>"u"||!f.length||!f[0]){var j="";I=[];for(g in v[n])this.terminals_[g]&&g>z&&I.push("'"+this.terminals_[g]+"'");w.showPosition?j="Parse error on line "+(E+1)+`: `+w.showPosition()+` Expecting `+I.join(", ")+", got '"+(this.terminals_[A]||A)+"'":j="Parse error on line "+(E+1)+": Unexpected "+(A==B?"end of input":"'"+(this.terminals_[A]||A)+"'"),this.parseError(j,{text:w.match,token:this.terminals_[A]||A,line:w.yylineno,loc:O,expected:I})}if(f[0]instanceof Array&&f.length>1)throw new Error("Parse Error: multiple actions possible at state: "+n+", token: "+A);switch(f[0]){case 1:l.push(A),_.push(w.yytext),p.push(w.yylloc),l.push(f[1]),A=null,Y?(A=Y,Y=null):(M=w.yyleng,C=w.yytext,E=w.yylineno,O=w.yylloc,D>0&&D--);break;case 2:if(b=this.productions_[f[1]][1],s.$=_[_.length-b],s._$={first_line:p[p.length-(b||1)].first_line,last_line:p[p.length-1].last_line,first_column:p[p.length-(b||1)].first_column,last_column:p[p.length-1].last_column},y&&(s._$.range=[p[p.length-(b||1)].range[0],p[p.length-1].range[1]]),d=this.performAction.apply(s,[C,M,E,N.yy,f[1],_,p].concat(R)),typeof d<"u")return d;b&&(l=l.slice(0,-1*b*2),_=_.slice(0,-1*b),p=p.slice(0,-1*b)),l.push(this.productions_[f[1]][0]),_.push(s.$),p.push(s._$),$=v[l[l.length-2]][l[l.length-1]],l.push($);break;case 3:return!0}}return!0},"parse")},S=function(){var x={EOF:1,parseError:e(function(a,l){if(this.yy.parser)this.yy.parser.parseError(a,l);else throw new Error(a)},"parseError"),setInput:e(function(o,a){return this.yy=a||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:e(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var a=o.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:e(function(o){var a=o.length,l=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var k=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),l.length-1&&(this.yylineno-=l.length-1);var _=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:l?(l.length===k.length?this.yylloc.first_column:0)+k[k.length-l.length].length-l[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[_[0],_[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:e(function(){return this._more=!0,this},"more"),reject:e(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:e(function(o){this.unput(this.match.slice(o))},"less"),pastInput:e(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:e(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:e(function(){var o=this.pastInput(),a=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/sequenceDiagram-7SUASMRF.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/sequenceDiagram-EUUTCHHZ.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/sequenceDiagram-7SUASMRF.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/sequenceDiagram-EUUTCHHZ.mjs index 98ae79aff..2b508bdd1 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/sequenceDiagram-7SUASMRF.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/sequenceDiagram-EUUTCHHZ.mjs @@ -1,4 +1,4 @@ -import{a as Te}from"./chunk-VSLJSFIP.mjs";import{a as fe,b as ge,d as xe,e as me,f as Et,g as Lt}from"./chunk-BERL53GW.mjs";import{a as be,k as Ht,m as Y}from"./chunk-2XY5F2HY.mjs";import{a as Ke}from"./chunk-TI4EEUUG.mjs";import{A as Dt,F as It,I as at,J as xt,K as qt,L as I,M as oe,P as ce,Q as zt,R as le,S as de,T as he,U as pe,V as ue,X as Z,b as z,ga as _t,k as ie}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as d,e as He}from"./chunk-GTKDMUJJ.mjs";var Kt=function(){var t=d(function(pt,k,L,A){for(L=L||{},A=pt.length;A--;L[pt[A]]=k);return L},"o"),e=[1,2],c=[1,3],r=[1,4],n=[2,4],a=[1,9],o=[1,11],h=[1,13],p=[1,14],s=[1,16],g=[1,17],T=[1,18],f=[1,24],m=[1,25],E=[1,26],_=[1,27],N=[1,28],V=[1,29],M=[1,30],F=[1,31],C=[1,32],H=[1,33],K=[1,34],Q=[1,35],rt=[1,36],U=[1,37],G=[1,38],q=[1,39],R=[1,41],j=[1,42],J=[1,43],$=[1,44],st=[1,45],v=[1,46],b=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],it=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],ee=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],dt=[1,122],Ct={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:d(function(k,L,A,y,D,l,kt){var u=l.length-1;switch(D){case 3:return y.apply(l[u]),l[u];break;case 4:case 9:this.$=[];break;case 5:case 10:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 11:case 12:this.$=l[u];break;case 8:case 13:this.$=[];break;case 15:l[u].type="createParticipant",this.$=l[u];break;case 16:l[u-1].unshift({type:"boxStart",boxData:y.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:y.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:y.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),y.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),y.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:y.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:y.parseMessage(l[u-2]),signalType:y.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:y.parseMessage(l[u-2]),signalType:y.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:y.parseMessage(l[u-1]),signalType:y.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:y.parseMessage(l[u-1]),signalType:y.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:y.parseMessage(l[u-1]),signalType:y.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=y.parseMessage(l[u-1]),this.$=l[u-3];break;case 49:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 50:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=y.parseMessage(l[u-1]),this.$=l[u-3];break;case 51:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 52:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 53:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 54:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 55:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 56:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 57:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 58:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-2],l[u]];break;case 62:this.$=l[u];break;case 63:this.$=y.PLACEMENT.LEFTOF;break;case 64:this.$=y.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 66:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 67:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 68:this.$={type:"addParticipant",actor:l[u]};break;case 69:this.$=y.LINETYPE.SOLID_OPEN;break;case 70:this.$=y.LINETYPE.DOTTED_OPEN;break;case 71:this.$=y.LINETYPE.SOLID;break;case 72:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=y.LINETYPE.DOTTED;break;case 74:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=y.LINETYPE.SOLID_CROSS;break;case 76:this.$=y.LINETYPE.DOTTED_CROSS;break;case 77:this.$=y.LINETYPE.SOLID_POINT;break;case 78:this.$=y.LINETYPE.DOTTED_POINT;break;case 79:this.$=y.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:c,6:r},{1:[3]},{3:5,4:e,5:c,6:r},{3:6,4:e,5:c,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:h,14:p,17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},t(b,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},t(b,[2,7]),t(b,[2,8]),t(b,[2,14]),{12:48,50:U,52:G,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:v},{22:55,70:v},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(b,[2,29]),t(b,[2,30]),{32:[1,61]},{34:[1,62]},t(b,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:v},{22:72,70:v},{22:73,70:v},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:v},{22:90,70:v},{22:91,70:v},{22:92,70:v},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(b,[2,6]),t(b,[2,15]),t(P,[2,9],{10:93}),t(b,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(b,[2,21]),{5:[1,97]},{5:[1,98]},t(b,[2,24]),t(b,[2,25]),t(b,[2,26]),t(b,[2,27]),t(b,[2,28]),t(b,[2,31]),t(b,[2,32]),t(tt,n,{7:99}),t(tt,n,{7:100}),t(tt,n,{7:101}),t(it,n,{40:102,7:103}),t(S,n,{42:104,7:105}),t(S,n,{7:105,42:106}),t(ee,n,{45:107,7:108}),t(tt,n,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:v},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),t(ot,[2,77]),t(ot,[2,78]),{22:118,70:v},{22:120,58:119,70:v},{70:[2,63]},{70:[2,64]},{56:121,81:dt},{56:123,81:dt},{56:124,81:dt},{56:125,81:dt},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:U,52:G,53:q},{5:[1,131]},t(b,[2,19]),t(b,[2,20]),t(b,[2,22]),t(b,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,133],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,134],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,49:[1,136],50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{16:[1,137]},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,48:[1,138],50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{16:[1,139]},{16:[1,140]},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,47:[1,141],50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,142],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{15:[1,143]},t(b,[2,49]),{15:[1,144]},t(b,[2,51]),t(b,[2,52]),{22:145,70:v},{22:146,70:v},{56:147,81:dt},{56:148,81:dt},{56:149,81:dt},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(b,[2,16]),t(P,[2,10]),{12:151,50:U,52:G,53:q},t(P,[2,12]),t(P,[2,13]),t(b,[2,18]),t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),{15:[1,152]},t(b,[2,38]),{15:[1,153]},t(b,[2,39]),t(b,[2,40]),{15:[1,154]},t(b,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:dt},{56:158,81:dt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:v},t(P,[2,11]),t(it,n,{7:103,40:160}),t(S,n,{7:105,42:161}),t(ee,n,{7:108,45:162}),t(b,[2,48]),t(b,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:d(function(k,L){if(L.recoverable)this.trace(k);else{var A=new Error(k);throw A.hash=L,A}},"parseError"),parse:d(function(k){var L=this,A=[0],y=[],D=[null],l=[],kt=this.table,u="",St=0,re=0,se=0,Fe=2,ne=1,We=l.slice.call(arguments,1),W=Object.create(this.lexer),ft={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(ft.yy[Bt]=this.yy[Bt]);W.setInput(k,ft.yy),ft.yy.lexer=W,ft.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var Vt=W.yylloc;l.push(Vt);var qe=W.options&&W.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xr(et){A.length=A.length-2*et,D.length=D.length-et,l.length=l.length-et}d(Xr,"popStack");function ze(){var et;return et=y.pop()||W.lex()||ne,typeof et!="number"&&(et instanceof Array&&(y=et,et=y.pop()),et=L.symbols_[et]||et),et}d(ze,"lex");for(var X,Yt,gt,nt,Jr,Ft,yt={},vt,ht,ae,Mt;;){if(gt=A[A.length-1],this.defaultActions[gt]?nt=this.defaultActions[gt]:((X===null||typeof X>"u")&&(X=ze()),nt=kt[gt]&&kt[gt][X]),typeof nt>"u"||!nt.length||!nt[0]){var Wt="";Mt=[];for(vt in kt[gt])this.terminals_[vt]&&vt>Fe&&Mt.push("'"+this.terminals_[vt]+"'");W.showPosition?Wt="Parse error on line "+(St+1)+`: +import{a as Te}from"./chunk-VSLJSFIP.mjs";import{a as fe,b as ge,d as xe,e as me,f as Et,g as Lt}from"./chunk-44WTIFVW.mjs";import{a as be,k as Ht,m as Y}from"./chunk-UENA7NWE.mjs";import{a as Ke}from"./chunk-TI4EEUUG.mjs";import{A as Dt,F as It,I as at,J as xt,K as qt,L as I,M as oe,P as ce,Q as zt,R as le,S as de,T as he,U as pe,V as ue,X as Z,b as z,ga as _t,k as ie}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as d,e as He}from"./chunk-GTKDMUJJ.mjs";var Kt=function(){var t=d(function(pt,k,L,A){for(L=L||{},A=pt.length;A--;L[pt[A]]=k);return L},"o"),e=[1,2],c=[1,3],r=[1,4],n=[2,4],a=[1,9],o=[1,11],h=[1,13],p=[1,14],s=[1,16],g=[1,17],T=[1,18],f=[1,24],m=[1,25],E=[1,26],_=[1,27],N=[1,28],V=[1,29],M=[1,30],F=[1,31],C=[1,32],H=[1,33],K=[1,34],Q=[1,35],rt=[1,36],U=[1,37],G=[1,38],q=[1,39],R=[1,41],j=[1,42],J=[1,43],$=[1,44],st=[1,45],v=[1,46],b=[1,4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,48,49,50,52,53,54,59,60,61,62,70],P=[4,5,16,50,52,53],tt=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],it=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,49,50,52,53,54,59,60,61,62,70],S=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,48,50,52,53,54,59,60,61,62,70],ee=[4,5,13,14,16,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,47,50,52,53,54,59,60,61,62,70],ot=[68,69,70],dt=[1,122],Ct={trace:d(function(){},"trace"),yy:{},symbols_:{error:2,start:3,SPACE:4,NEWLINE:5,SD:6,document:7,line:8,statement:9,box_section:10,box_line:11,participant_statement:12,create:13,box:14,restOfLine:15,end:16,signal:17,autonumber:18,NUM:19,off:20,activate:21,actor:22,deactivate:23,note_statement:24,links_statement:25,link_statement:26,properties_statement:27,details_statement:28,title:29,legacy_title:30,acc_title:31,acc_title_value:32,acc_descr:33,acc_descr_value:34,acc_descr_multiline_value:35,loop:36,rect:37,opt:38,alt:39,else_sections:40,par:41,par_sections:42,par_over:43,critical:44,option_sections:45,break:46,option:47,and:48,else:49,participant:50,AS:51,participant_actor:52,destroy:53,note:54,placement:55,text2:56,over:57,actor_pair:58,links:59,link:60,properties:61,details:62,spaceList:63,",":64,left_of:65,right_of:66,signaltype:67,"+":68,"-":69,ACTOR:70,SOLID_OPEN_ARROW:71,DOTTED_OPEN_ARROW:72,SOLID_ARROW:73,BIDIRECTIONAL_SOLID_ARROW:74,DOTTED_ARROW:75,BIDIRECTIONAL_DOTTED_ARROW:76,SOLID_CROSS:77,DOTTED_CROSS:78,SOLID_POINT:79,DOTTED_POINT:80,TXT:81,$accept:0,$end:1},terminals_:{2:"error",4:"SPACE",5:"NEWLINE",6:"SD",13:"create",14:"box",15:"restOfLine",16:"end",18:"autonumber",19:"NUM",20:"off",21:"activate",23:"deactivate",29:"title",30:"legacy_title",31:"acc_title",32:"acc_title_value",33:"acc_descr",34:"acc_descr_value",35:"acc_descr_multiline_value",36:"loop",37:"rect",38:"opt",39:"alt",41:"par",43:"par_over",44:"critical",46:"break",47:"option",48:"and",49:"else",50:"participant",51:"AS",52:"participant_actor",53:"destroy",54:"note",57:"over",59:"links",60:"link",61:"properties",62:"details",64:",",65:"left_of",66:"right_of",68:"+",69:"-",70:"ACTOR",71:"SOLID_OPEN_ARROW",72:"DOTTED_OPEN_ARROW",73:"SOLID_ARROW",74:"BIDIRECTIONAL_SOLID_ARROW",75:"DOTTED_ARROW",76:"BIDIRECTIONAL_DOTTED_ARROW",77:"SOLID_CROSS",78:"DOTTED_CROSS",79:"SOLID_POINT",80:"DOTTED_POINT",81:"TXT"},productions_:[0,[3,2],[3,2],[3,2],[7,0],[7,2],[8,2],[8,1],[8,1],[10,0],[10,2],[11,2],[11,1],[11,1],[9,1],[9,2],[9,4],[9,2],[9,4],[9,3],[9,3],[9,2],[9,3],[9,3],[9,2],[9,2],[9,2],[9,2],[9,2],[9,1],[9,1],[9,2],[9,2],[9,1],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[9,4],[45,1],[45,4],[42,1],[42,4],[40,1],[40,4],[12,5],[12,3],[12,5],[12,3],[12,3],[24,4],[24,4],[25,3],[26,3],[27,3],[28,3],[63,2],[63,1],[58,3],[58,1],[55,1],[55,1],[17,5],[17,5],[17,4],[22,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[67,1],[56,1]],performAction:d(function(k,L,A,y,D,l,kt){var u=l.length-1;switch(D){case 3:return y.apply(l[u]),l[u];break;case 4:case 9:this.$=[];break;case 5:case 10:l[u-1].push(l[u]),this.$=l[u-1];break;case 6:case 7:case 11:case 12:this.$=l[u];break;case 8:case 13:this.$=[];break;case 15:l[u].type="createParticipant",this.$=l[u];break;case 16:l[u-1].unshift({type:"boxStart",boxData:y.parseBoxData(l[u-2])}),l[u-1].push({type:"boxEnd",boxText:l[u-2]}),this.$=l[u-1];break;case 18:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-2]),sequenceIndexStep:Number(l[u-1]),sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 19:this.$={type:"sequenceIndex",sequenceIndex:Number(l[u-1]),sequenceIndexStep:1,sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 20:this.$={type:"sequenceIndex",sequenceVisible:!1,signalType:y.LINETYPE.AUTONUMBER};break;case 21:this.$={type:"sequenceIndex",sequenceVisible:!0,signalType:y.LINETYPE.AUTONUMBER};break;case 22:this.$={type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:l[u-1].actor};break;case 23:this.$={type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:l[u-1].actor};break;case 29:y.setDiagramTitle(l[u].substring(6)),this.$=l[u].substring(6);break;case 30:y.setDiagramTitle(l[u].substring(7)),this.$=l[u].substring(7);break;case 31:this.$=l[u].trim(),y.setAccTitle(this.$);break;case 32:case 33:this.$=l[u].trim(),y.setAccDescription(this.$);break;case 34:l[u-1].unshift({type:"loopStart",loopText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.LOOP_START}),l[u-1].push({type:"loopEnd",loopText:l[u-2],signalType:y.LINETYPE.LOOP_END}),this.$=l[u-1];break;case 35:l[u-1].unshift({type:"rectStart",color:y.parseMessage(l[u-2]),signalType:y.LINETYPE.RECT_START}),l[u-1].push({type:"rectEnd",color:y.parseMessage(l[u-2]),signalType:y.LINETYPE.RECT_END}),this.$=l[u-1];break;case 36:l[u-1].unshift({type:"optStart",optText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.OPT_START}),l[u-1].push({type:"optEnd",optText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.OPT_END}),this.$=l[u-1];break;case 37:l[u-1].unshift({type:"altStart",altText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.ALT_START}),l[u-1].push({type:"altEnd",signalType:y.LINETYPE.ALT_END}),this.$=l[u-1];break;case 38:l[u-1].unshift({type:"parStart",parText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.PAR_START}),l[u-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=l[u-1];break;case 39:l[u-1].unshift({type:"parStart",parText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.PAR_OVER_START}),l[u-1].push({type:"parEnd",signalType:y.LINETYPE.PAR_END}),this.$=l[u-1];break;case 40:l[u-1].unshift({type:"criticalStart",criticalText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.CRITICAL_START}),l[u-1].push({type:"criticalEnd",signalType:y.LINETYPE.CRITICAL_END}),this.$=l[u-1];break;case 41:l[u-1].unshift({type:"breakStart",breakText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.BREAK_START}),l[u-1].push({type:"breakEnd",optText:y.parseMessage(l[u-2]),signalType:y.LINETYPE.BREAK_END}),this.$=l[u-1];break;case 43:this.$=l[u-3].concat([{type:"option",optionText:y.parseMessage(l[u-1]),signalType:y.LINETYPE.CRITICAL_OPTION},l[u]]);break;case 45:this.$=l[u-3].concat([{type:"and",parText:y.parseMessage(l[u-1]),signalType:y.LINETYPE.PAR_AND},l[u]]);break;case 47:this.$=l[u-3].concat([{type:"else",altText:y.parseMessage(l[u-1]),signalType:y.LINETYPE.ALT_ELSE},l[u]]);break;case 48:l[u-3].draw="participant",l[u-3].type="addParticipant",l[u-3].description=y.parseMessage(l[u-1]),this.$=l[u-3];break;case 49:l[u-1].draw="participant",l[u-1].type="addParticipant",this.$=l[u-1];break;case 50:l[u-3].draw="actor",l[u-3].type="addParticipant",l[u-3].description=y.parseMessage(l[u-1]),this.$=l[u-3];break;case 51:l[u-1].draw="actor",l[u-1].type="addParticipant",this.$=l[u-1];break;case 52:l[u-1].type="destroyParticipant",this.$=l[u-1];break;case 53:this.$=[l[u-1],{type:"addNote",placement:l[u-2],actor:l[u-1].actor,text:l[u]}];break;case 54:l[u-2]=[].concat(l[u-1],l[u-1]).slice(0,2),l[u-2][0]=l[u-2][0].actor,l[u-2][1]=l[u-2][1].actor,this.$=[l[u-1],{type:"addNote",placement:y.PLACEMENT.OVER,actor:l[u-2].slice(0,2),text:l[u]}];break;case 55:this.$=[l[u-1],{type:"addLinks",actor:l[u-1].actor,text:l[u]}];break;case 56:this.$=[l[u-1],{type:"addALink",actor:l[u-1].actor,text:l[u]}];break;case 57:this.$=[l[u-1],{type:"addProperties",actor:l[u-1].actor,text:l[u]}];break;case 58:this.$=[l[u-1],{type:"addDetails",actor:l[u-1].actor,text:l[u]}];break;case 61:this.$=[l[u-2],l[u]];break;case 62:this.$=l[u];break;case 63:this.$=y.PLACEMENT.LEFTOF;break;case 64:this.$=y.PLACEMENT.RIGHTOF;break;case 65:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u],activate:!0},{type:"activeStart",signalType:y.LINETYPE.ACTIVE_START,actor:l[u-1].actor}];break;case 66:this.$=[l[u-4],l[u-1],{type:"addMessage",from:l[u-4].actor,to:l[u-1].actor,signalType:l[u-3],msg:l[u]},{type:"activeEnd",signalType:y.LINETYPE.ACTIVE_END,actor:l[u-4].actor}];break;case 67:this.$=[l[u-3],l[u-1],{type:"addMessage",from:l[u-3].actor,to:l[u-1].actor,signalType:l[u-2],msg:l[u]}];break;case 68:this.$={type:"addParticipant",actor:l[u]};break;case 69:this.$=y.LINETYPE.SOLID_OPEN;break;case 70:this.$=y.LINETYPE.DOTTED_OPEN;break;case 71:this.$=y.LINETYPE.SOLID;break;case 72:this.$=y.LINETYPE.BIDIRECTIONAL_SOLID;break;case 73:this.$=y.LINETYPE.DOTTED;break;case 74:this.$=y.LINETYPE.BIDIRECTIONAL_DOTTED;break;case 75:this.$=y.LINETYPE.SOLID_CROSS;break;case 76:this.$=y.LINETYPE.DOTTED_CROSS;break;case 77:this.$=y.LINETYPE.SOLID_POINT;break;case 78:this.$=y.LINETYPE.DOTTED_POINT;break;case 79:this.$=y.parseMessage(l[u].trim().substring(1));break}},"anonymous"),table:[{3:1,4:e,5:c,6:r},{1:[3]},{3:5,4:e,5:c,6:r},{3:6,4:e,5:c,6:r},t([1,4,5,13,14,18,21,23,29,30,31,33,35,36,37,38,39,41,43,44,46,50,52,53,54,59,60,61,62,70],n,{7:7}),{1:[2,1]},{1:[2,2]},{1:[2,3],4:a,5:o,8:8,9:10,12:12,13:h,14:p,17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},t(b,[2,5]),{9:47,12:12,13:h,14:p,17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},t(b,[2,7]),t(b,[2,8]),t(b,[2,14]),{12:48,50:U,52:G,53:q},{15:[1,49]},{5:[1,50]},{5:[1,53],19:[1,51],20:[1,52]},{22:54,70:v},{22:55,70:v},{5:[1,56]},{5:[1,57]},{5:[1,58]},{5:[1,59]},{5:[1,60]},t(b,[2,29]),t(b,[2,30]),{32:[1,61]},{34:[1,62]},t(b,[2,33]),{15:[1,63]},{15:[1,64]},{15:[1,65]},{15:[1,66]},{15:[1,67]},{15:[1,68]},{15:[1,69]},{15:[1,70]},{22:71,70:v},{22:72,70:v},{22:73,70:v},{67:74,71:[1,75],72:[1,76],73:[1,77],74:[1,78],75:[1,79],76:[1,80],77:[1,81],78:[1,82],79:[1,83],80:[1,84]},{55:85,57:[1,86],65:[1,87],66:[1,88]},{22:89,70:v},{22:90,70:v},{22:91,70:v},{22:92,70:v},t([5,51,64,71,72,73,74,75,76,77,78,79,80,81],[2,68]),t(b,[2,6]),t(b,[2,15]),t(P,[2,9],{10:93}),t(b,[2,17]),{5:[1,95],19:[1,94]},{5:[1,96]},t(b,[2,21]),{5:[1,97]},{5:[1,98]},t(b,[2,24]),t(b,[2,25]),t(b,[2,26]),t(b,[2,27]),t(b,[2,28]),t(b,[2,31]),t(b,[2,32]),t(tt,n,{7:99}),t(tt,n,{7:100}),t(tt,n,{7:101}),t(it,n,{40:102,7:103}),t(S,n,{42:104,7:105}),t(S,n,{7:105,42:106}),t(ee,n,{45:107,7:108}),t(tt,n,{7:109}),{5:[1,111],51:[1,110]},{5:[1,113],51:[1,112]},{5:[1,114]},{22:117,68:[1,115],69:[1,116],70:v},t(ot,[2,69]),t(ot,[2,70]),t(ot,[2,71]),t(ot,[2,72]),t(ot,[2,73]),t(ot,[2,74]),t(ot,[2,75]),t(ot,[2,76]),t(ot,[2,77]),t(ot,[2,78]),{22:118,70:v},{22:120,58:119,70:v},{70:[2,63]},{70:[2,64]},{56:121,81:dt},{56:123,81:dt},{56:124,81:dt},{56:125,81:dt},{4:[1,128],5:[1,130],11:127,12:129,16:[1,126],50:U,52:G,53:q},{5:[1,131]},t(b,[2,19]),t(b,[2,20]),t(b,[2,22]),t(b,[2,23]),{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,132],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,133],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,134],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{16:[1,135]},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[2,46],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,49:[1,136],50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{16:[1,137]},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[2,44],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,48:[1,138],50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{16:[1,139]},{16:[1,140]},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[2,42],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,47:[1,141],50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{4:a,5:o,8:8,9:10,12:12,13:h,14:p,16:[1,142],17:15,18:s,21:g,22:40,23:T,24:19,25:20,26:21,27:22,28:23,29:f,30:m,31:E,33:_,35:N,36:V,37:M,38:F,39:C,41:H,43:K,44:Q,46:rt,50:U,52:G,53:q,54:R,59:j,60:J,61:$,62:st,70:v},{15:[1,143]},t(b,[2,49]),{15:[1,144]},t(b,[2,51]),t(b,[2,52]),{22:145,70:v},{22:146,70:v},{56:147,81:dt},{56:148,81:dt},{56:149,81:dt},{64:[1,150],81:[2,62]},{5:[2,55]},{5:[2,79]},{5:[2,56]},{5:[2,57]},{5:[2,58]},t(b,[2,16]),t(P,[2,10]),{12:151,50:U,52:G,53:q},t(P,[2,12]),t(P,[2,13]),t(b,[2,18]),t(b,[2,34]),t(b,[2,35]),t(b,[2,36]),t(b,[2,37]),{15:[1,152]},t(b,[2,38]),{15:[1,153]},t(b,[2,39]),t(b,[2,40]),{15:[1,154]},t(b,[2,41]),{5:[1,155]},{5:[1,156]},{56:157,81:dt},{56:158,81:dt},{5:[2,67]},{5:[2,53]},{5:[2,54]},{22:159,70:v},t(P,[2,11]),t(it,n,{7:103,40:160}),t(S,n,{7:105,42:161}),t(ee,n,{7:108,45:162}),t(b,[2,48]),t(b,[2,50]),{5:[2,65]},{5:[2,66]},{81:[2,61]},{16:[2,47]},{16:[2,45]},{16:[2,43]}],defaultActions:{5:[2,1],6:[2,2],87:[2,63],88:[2,64],121:[2,55],122:[2,79],123:[2,56],124:[2,57],125:[2,58],147:[2,67],148:[2,53],149:[2,54],157:[2,65],158:[2,66],159:[2,61],160:[2,47],161:[2,45],162:[2,43]},parseError:d(function(k,L){if(L.recoverable)this.trace(k);else{var A=new Error(k);throw A.hash=L,A}},"parseError"),parse:d(function(k){var L=this,A=[0],y=[],D=[null],l=[],kt=this.table,u="",St=0,re=0,se=0,Fe=2,ne=1,We=l.slice.call(arguments,1),W=Object.create(this.lexer),ft={yy:{}};for(var Bt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,Bt)&&(ft.yy[Bt]=this.yy[Bt]);W.setInput(k,ft.yy),ft.yy.lexer=W,ft.yy.parser=this,typeof W.yylloc>"u"&&(W.yylloc={});var Vt=W.yylloc;l.push(Vt);var qe=W.options&&W.options.ranges;typeof ft.yy.parseError=="function"?this.parseError=ft.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Xr(et){A.length=A.length-2*et,D.length=D.length-et,l.length=l.length-et}d(Xr,"popStack");function ze(){var et;return et=y.pop()||W.lex()||ne,typeof et!="number"&&(et instanceof Array&&(y=et,et=y.pop()),et=L.symbols_[et]||et),et}d(ze,"lex");for(var X,Yt,gt,nt,Jr,Ft,yt={},vt,ht,ae,Mt;;){if(gt=A[A.length-1],this.defaultActions[gt]?nt=this.defaultActions[gt]:((X===null||typeof X>"u")&&(X=ze()),nt=kt[gt]&&kt[gt][X]),typeof nt>"u"||!nt.length||!nt[0]){var Wt="";Mt=[];for(vt in kt[gt])this.terminals_[vt]&&vt>Fe&&Mt.push("'"+this.terminals_[vt]+"'");W.showPosition?Wt="Parse error on line "+(St+1)+`: `+W.showPosition()+` Expecting `+Mt.join(", ")+", got '"+(this.terminals_[X]||X)+"'":Wt="Parse error on line "+(St+1)+": Unexpected "+(X==ne?"end of input":"'"+(this.terminals_[X]||X)+"'"),this.parseError(Wt,{text:W.match,token:this.terminals_[X]||X,line:W.yylineno,loc:Vt,expected:Mt})}if(nt[0]instanceof Array&&nt.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+X);switch(nt[0]){case 1:A.push(X),D.push(W.yytext),l.push(W.yylloc),A.push(nt[1]),X=null,Yt?(X=Yt,Yt=null):(re=W.yyleng,u=W.yytext,St=W.yylineno,Vt=W.yylloc,se>0&&se--);break;case 2:if(ht=this.productions_[nt[1]][1],yt.$=D[D.length-ht],yt._$={first_line:l[l.length-(ht||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(ht||1)].first_column,last_column:l[l.length-1].last_column},qe&&(yt._$.range=[l[l.length-(ht||1)].range[0],l[l.length-1].range[1]]),Ft=this.performAction.apply(yt,[u,re,St,ft.yy,nt[1],D,l].concat(We)),typeof Ft<"u")return Ft;ht&&(A=A.slice(0,-1*ht*2),D=D.slice(0,-1*ht),l=l.slice(0,-1*ht)),A.push(this.productions_[nt[1]][0]),D.push(yt.$),l.push(yt._$),ae=kt[A[A.length-2]][A[A.length-1]],A.push(ae);break;case 3:return!0}}return!0},"parse")},Ye=function(){var pt={EOF:1,parseError:d(function(L,A){if(this.yy.parser)this.yy.parser.parseError(L,A);else throw new Error(L)},"parseError"),setInput:d(function(k,L){return this.yy=L||this.yy||{},this._input=k,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:d(function(){var k=this._input[0];this.yytext+=k,this.yyleng++,this.offset++,this.match+=k,this.matched+=k;var L=k.match(/(?:\r\n?|\n).*/g);return L?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),k},"input"),unput:d(function(k){var L=k.length,A=k.split(/(?:\r\n?|\n)/g);this._input=k+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-L),this.offset-=L;var y=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),A.length-1&&(this.yylineno-=A.length-1);var D=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:A?(A.length===y.length?this.yylloc.first_column:0)+y[y.length-A.length].length-A[0].length:this.yylloc.first_column-L},this.options.ranges&&(this.yylloc.range=[D[0],D[0]+this.yyleng-L]),this.yyleng=this.yytext.length,this},"unput"),more:d(function(){return this._more=!0,this},"more"),reject:d(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:d(function(k){this.unput(this.match.slice(k))},"less"),pastInput:d(function(){var k=this.matched.substr(0,this.matched.length-this.match.length);return(k.length>20?"...":"")+k.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:d(function(){var k=this.match;return k.length<20&&(k+=this._input.substr(0,20-k.length)),(k.substr(0,20)+(k.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:d(function(){var k=this.pastInput(),L=new Array(k.length+1).join("-");return k+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-SUF43ZVU.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-U67EPTRE.mjs similarity index 95% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-SUF43ZVU.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-U67EPTRE.mjs index 217358054..32d1c90d8 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-SUF43ZVU.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-U67EPTRE.mjs @@ -1 +1 @@ -import{a as X,c as N,d as J}from"./chunk-7H3BNXSV.mjs";import"./chunk-4YMK7POB.mjs";import"./chunk-LD4SFGBK.mjs";import"./chunk-4DJOK3GT.mjs";import"./chunk-A7EQIZZO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import{a as O}from"./chunk-FASC7IG4.mjs";import{a as F}from"./chunk-ZN7TASNU.mjs";import{m as U}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{Da as R,Ha as W,L as z,M as P,X as t,b,ga as L}from"./chunk-ITX3UAHE.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as g}from"./chunk-GTKDMUJJ.mjs";var A={},Z=g((e,n)=>{A[e]=n},"set"),K=g(e=>A[e],"get"),Y=g(()=>Object.keys(A),"keys"),Q=g(()=>Y().length,"size"),v={get:K,set:Z,keys:Y,size:Q};var V=g(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=g(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),tt=g((e,n)=>{let s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),d=s.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d.width+2*t().state.padding).attr("height",d.height+2*t().state.padding).attr("rx",t().state.radius),s},"drawSimpleState"),et=g((e,n)=>{let s=g(function(p,y,w){let k=p.append("tspan").attr("x",2*t().state.padding).text(y);w||k.attr("dy",t().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),h=r.height,x=e.append("text").attr("x",t().state.padding).attr("y",h+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),i=!0,o=!0;n.descriptions.forEach(function(p){i||(s(x,p,o),o=!1),i=!1});let m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+h+t().state.dividerMargin/2).attr("y2",t().state.padding+h+t().state.dividerMargin/2).attr("class","descr-divider"),f=x.node().getBBox(),c=Math.max(f.width,r.width);return m.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",f.height+h+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=g((e,n,s)=>{let d=t().state.padding,r=2*t().state.padding,h=e.node().getBBox(),x=h.width,i=h.x,o=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),f=o.node().getBBox().width+r,c=Math.max(f,x);c===x&&(c=c+r);let p,y=e.node().getBBox();n.doc,p=i-d,f>x&&(p=(x-c)/2+d),Math.abs(i-y.x)x&&(p=i-(f-x)/2);let w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",p).attr("y",w).attr("class",s?"alt-composit":"composit").attr("width",c).attr("height",y.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),o.attr("x",p+d),f<=x&&o.attr("x",i+(c-r)/2-f/2+d),e.insert("rect",":first-child").attr("x",p).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",p).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",y.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),it=g(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),nt=g((e,n)=>{let s=t().state.forkWidth,d=t().state.forkHeight;if(n.parentId){let r=s;s=d,d=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",s).attr("height",d).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState");var at=g((e,n,s,d)=>{let r=0,h=d.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let x=e.replace(/\r\n/g,"
      ");x=x.replace(/\n/g,"
      ");let i=x.split(z.lineBreakRegex),o=1.25*t().state.noteMargin;for(let m of i){let f=m.trim();if(f.length>0){let c=h.append("tspan");if(c.text(f),o===0){let p=c.node().getBBox();o+=p.height}r+=o,c.attr("x",n+t().state.noteMargin),c.attr("y",s+r+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:r}},"_drawLongText"),rt=g((e,n)=>{n.attr("class","state-note");let s=n.append("rect").attr("x",0).attr("y",t().state.padding),d=n.append("g"),{textWidth:r,textHeight:h}=at(e,0,0,d);return s.attr("height",h+2*t().state.noteMargin),s.attr("width",r+t().state.noteMargin*2),s},"drawNote"),C=g(function(e,n){let s=n.id,d={id:s,label:n.id,width:0,height:0},r=e.append("g").attr("id",s).attr("class","stateGroup");n.type==="start"&&V(r),n.type==="end"&&it(r),(n.type==="fork"||n.type==="join")&&nt(r,n),n.type==="note"&&rt(n.note.text,r),n.type==="divider"&&D(r),n.type==="default"&&n.descriptions.length===0&&tt(r,n),n.type==="default"&&n.descriptions.length>0&&et(r,n);let h=r.node().getBBox();return d.width=h.width+2*t().state.padding,d.height=h.height+2*t().state.padding,v.set(s,d),d},"drawState"),I=0,_=g(function(e,n,s){let d=g(function(o){switch(o){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));let r=n.points,h=R().x(function(o){return o.x}).y(function(o){return o.y}).curve(W),x=e.append("path").attr("d",h(r)).attr("id","edge"+I).attr("class","transition"),i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),x.attr("marker-end","url("+i+"#"+d(N.relationType.DEPENDENCY)+"End)"),s.title!==void 0){let o=e.append("g").attr("class","stateLabel"),{x:m,y:f}=U.calcLabelPosition(n.points),c=z.getRows(s.title),p=0,y=[],w=0,k=0;for(let a=0;a<=c.length;a++){let u=o.append("text").attr("text-anchor","middle").text(c[a]).attr("x",m).attr("y",f+p),l=u.node().getBBox();w=Math.max(w,l.width),k=Math.min(k,l.x),b.info(l.x,m,f+p),p===0&&(p=u.node().getBBox().height,b.info("Title height",p,f)),y.push(u)}let M=p*c.length;if(c.length>1){let a=(c.length-1)*p*.5;y.forEach((u,l)=>u.attr("y",f+l*p-a)),M=p*c.length}let H=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-w/2-t().state.padding/2).attr("y",f-M/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",M+t().state.padding),b.info(H)}I++},"drawEdge");var S,G={},ot=g(function(){},"setConf"),st=g(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),dt=g(function(e,n,s,d){S=t().state;let r=t().securityLevel,h;r==="sandbox"&&(h=L("#i"+n));let x=r==="sandbox"?L(h.nodes()[0].contentDocument.body):L("body"),i=r==="sandbox"?h.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);let o=x.select(`[id='${n}']`);st(o);let m=d.db.getRootDoc();j(m,o,void 0,!1,x,i,d);let f=S.padding,c=o.node().getBBox(),p=c.width+f*2,y=c.height+f*2,w=p*1.75;P(o,y,w,S.useMaxWidth),o.attr("viewBox",`${c.x-S.padding} ${c.y-S.padding} `+p+" "+y)},"draw"),ct=g(e=>e?e.length*S.fontSizeFactor:1,"getLabelWidth"),j=g((e,n,s,d,r,h,x)=>{let i=new F({compound:!0,multigraph:!0}),o,m=!0;for(o=0;o{let B=l.parentElement,E=0,T=0;B&&(B.parentElement&&(E=B.parentElement.getBBox().width),T=parseInt(B.getAttribute("data-x-shift"),10),Number.isNaN(T)&&(T=0)),l.setAttribute("x1",0-T+8),l.setAttribute("x2",E-T-8)})):b.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let M=k.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(b.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),_(n,i.edge(a),i.edge(a).relation))}),M=k.getBBox();let H={id:s||"root",label:s||"root",width:0,height:0};return H.width=M.width+2*S.padding,H.height=M.height+2*S.padding,b.debug("Doc rendered",H,i),H},"renderDoc"),q={setConf:ot,draw:dt};var Rt={parser:X,db:N,renderer:q,styles:J,init:g(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{Rt as diagram}; +import{a as X,c as N,d as J}from"./chunk-LDJ5YOBB.mjs";import"./chunk-P7KHIEPL.mjs";import"./chunk-54VS5GG6.mjs";import"./chunk-ZUCAP7FR.mjs";import"./chunk-E7A2AWYO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import{a as O}from"./chunk-FASC7IG4.mjs";import{a as F}from"./chunk-ZN7TASNU.mjs";import{m as U}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{Da as R,Ha as W,L as z,M as P,X as t,b,ga as L}from"./chunk-OR2G2HG5.mjs";import"./chunk-5ZJXQJOJ.mjs";import"./chunk-YPUTD6PB.mjs";import"./chunk-6BY5RJGC.mjs";import{a as g}from"./chunk-GTKDMUJJ.mjs";var A={},Z=g((e,n)=>{A[e]=n},"set"),K=g(e=>A[e],"get"),Y=g(()=>Object.keys(A),"keys"),Q=g(()=>Y().length,"size"),v={get:K,set:Z,keys:Y,size:Q};var V=g(e=>e.append("circle").attr("class","start-state").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit).attr("cy",t().state.padding+t().state.sizeUnit),"drawStartState"),D=g(e=>e.append("line").style("stroke","grey").style("stroke-dasharray","3").attr("x1",t().state.textHeight).attr("class","divider").attr("x2",t().state.textHeight*2).attr("y1",0).attr("y2",0),"drawDivider"),tt=g((e,n)=>{let s=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+2*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),d=s.node().getBBox();return e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",d.width+2*t().state.padding).attr("height",d.height+2*t().state.padding).attr("rx",t().state.radius),s},"drawSimpleState"),et=g((e,n)=>{let s=g(function(p,y,w){let k=p.append("tspan").attr("x",2*t().state.padding).text(y);w||k.attr("dy",t().state.textHeight)},"addTspan"),r=e.append("text").attr("x",2*t().state.padding).attr("y",t().state.textHeight+1.3*t().state.padding).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.descriptions[0]).node().getBBox(),h=r.height,x=e.append("text").attr("x",t().state.padding).attr("y",h+t().state.padding*.4+t().state.dividerMargin+t().state.textHeight).attr("class","state-description"),i=!0,o=!0;n.descriptions.forEach(function(p){i||(s(x,p,o),o=!1),i=!1});let m=e.append("line").attr("x1",t().state.padding).attr("y1",t().state.padding+h+t().state.dividerMargin/2).attr("y2",t().state.padding+h+t().state.dividerMargin/2).attr("class","descr-divider"),f=x.node().getBBox(),c=Math.max(f.width,r.width);return m.attr("x2",c+3*t().state.padding),e.insert("rect",":first-child").attr("x",t().state.padding).attr("y",t().state.padding).attr("width",c+2*t().state.padding).attr("height",f.height+h+2*t().state.padding).attr("rx",t().state.radius),e},"drawDescrState"),$=g((e,n,s)=>{let d=t().state.padding,r=2*t().state.padding,h=e.node().getBBox(),x=h.width,i=h.x,o=e.append("text").attr("x",0).attr("y",t().state.titleShift).attr("font-size",t().state.fontSize).attr("class","state-title").text(n.id),f=o.node().getBBox().width+r,c=Math.max(f,x);c===x&&(c=c+r);let p,y=e.node().getBBox();n.doc,p=i-d,f>x&&(p=(x-c)/2+d),Math.abs(i-y.x)x&&(p=i-(f-x)/2);let w=1-t().state.textHeight;return e.insert("rect",":first-child").attr("x",p).attr("y",w).attr("class",s?"alt-composit":"composit").attr("width",c).attr("height",y.height+t().state.textHeight+t().state.titleShift+1).attr("rx","0"),o.attr("x",p+d),f<=x&&o.attr("x",i+(c-r)/2-f/2+d),e.insert("rect",":first-child").attr("x",p).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",t().state.textHeight*3).attr("rx",t().state.radius),e.insert("rect",":first-child").attr("x",p).attr("y",t().state.titleShift-t().state.textHeight-t().state.padding).attr("width",c).attr("height",y.height+3+2*t().state.textHeight).attr("rx",t().state.radius),e},"addTitleAndBox"),it=g(e=>(e.append("circle").attr("class","end-state-outer").attr("r",t().state.sizeUnit+t().state.miniPadding).attr("cx",t().state.padding+t().state.sizeUnit+t().state.miniPadding).attr("cy",t().state.padding+t().state.sizeUnit+t().state.miniPadding),e.append("circle").attr("class","end-state-inner").attr("r",t().state.sizeUnit).attr("cx",t().state.padding+t().state.sizeUnit+2).attr("cy",t().state.padding+t().state.sizeUnit+2)),"drawEndState"),nt=g((e,n)=>{let s=t().state.forkWidth,d=t().state.forkHeight;if(n.parentId){let r=s;s=d,d=r}return e.append("rect").style("stroke","black").style("fill","black").attr("width",s).attr("height",d).attr("x",t().state.padding).attr("y",t().state.padding)},"drawForkJoinState");var at=g((e,n,s,d)=>{let r=0,h=d.append("text");h.style("text-anchor","start"),h.attr("class","noteText");let x=e.replace(/\r\n/g,"
      ");x=x.replace(/\n/g,"
      ");let i=x.split(z.lineBreakRegex),o=1.25*t().state.noteMargin;for(let m of i){let f=m.trim();if(f.length>0){let c=h.append("tspan");if(c.text(f),o===0){let p=c.node().getBBox();o+=p.height}r+=o,c.attr("x",n+t().state.noteMargin),c.attr("y",s+r+1.25*t().state.noteMargin)}}return{textWidth:h.node().getBBox().width,textHeight:r}},"_drawLongText"),rt=g((e,n)=>{n.attr("class","state-note");let s=n.append("rect").attr("x",0).attr("y",t().state.padding),d=n.append("g"),{textWidth:r,textHeight:h}=at(e,0,0,d);return s.attr("height",h+2*t().state.noteMargin),s.attr("width",r+t().state.noteMargin*2),s},"drawNote"),C=g(function(e,n){let s=n.id,d={id:s,label:n.id,width:0,height:0},r=e.append("g").attr("id",s).attr("class","stateGroup");n.type==="start"&&V(r),n.type==="end"&&it(r),(n.type==="fork"||n.type==="join")&&nt(r,n),n.type==="note"&&rt(n.note.text,r),n.type==="divider"&&D(r),n.type==="default"&&n.descriptions.length===0&&tt(r,n),n.type==="default"&&n.descriptions.length>0&&et(r,n);let h=r.node().getBBox();return d.width=h.width+2*t().state.padding,d.height=h.height+2*t().state.padding,v.set(s,d),d},"drawState"),I=0,_=g(function(e,n,s){let d=g(function(o){switch(o){case N.relationType.AGGREGATION:return"aggregation";case N.relationType.EXTENSION:return"extension";case N.relationType.COMPOSITION:return"composition";case N.relationType.DEPENDENCY:return"dependency"}},"getRelationType");n.points=n.points.filter(o=>!Number.isNaN(o.y));let r=n.points,h=R().x(function(o){return o.x}).y(function(o){return o.y}).curve(W),x=e.append("path").attr("d",h(r)).attr("id","edge"+I).attr("class","transition"),i="";if(t().state.arrowMarkerAbsolute&&(i=window.location.protocol+"//"+window.location.host+window.location.pathname+window.location.search,i=i.replace(/\(/g,"\\("),i=i.replace(/\)/g,"\\)")),x.attr("marker-end","url("+i+"#"+d(N.relationType.DEPENDENCY)+"End)"),s.title!==void 0){let o=e.append("g").attr("class","stateLabel"),{x:m,y:f}=U.calcLabelPosition(n.points),c=z.getRows(s.title),p=0,y=[],w=0,k=0;for(let a=0;a<=c.length;a++){let u=o.append("text").attr("text-anchor","middle").text(c[a]).attr("x",m).attr("y",f+p),l=u.node().getBBox();w=Math.max(w,l.width),k=Math.min(k,l.x),b.info(l.x,m,f+p),p===0&&(p=u.node().getBBox().height,b.info("Title height",p,f)),y.push(u)}let M=p*c.length;if(c.length>1){let a=(c.length-1)*p*.5;y.forEach((u,l)=>u.attr("y",f+l*p-a)),M=p*c.length}let H=o.node().getBBox();o.insert("rect",":first-child").attr("class","box").attr("x",m-w/2-t().state.padding/2).attr("y",f-M/2-t().state.padding/2-3.5).attr("width",w+t().state.padding).attr("height",M+t().state.padding),b.info(H)}I++},"drawEdge");var S,G={},ot=g(function(){},"setConf"),st=g(function(e){e.append("defs").append("marker").attr("id","dependencyEnd").attr("refX",19).attr("refY",7).attr("markerWidth",20).attr("markerHeight",28).attr("orient","auto").append("path").attr("d","M 19,7 L9,13 L14,7 L9,1 Z")},"insertMarkers"),dt=g(function(e,n,s,d){S=t().state;let r=t().securityLevel,h;r==="sandbox"&&(h=L("#i"+n));let x=r==="sandbox"?L(h.nodes()[0].contentDocument.body):L("body"),i=r==="sandbox"?h.nodes()[0].contentDocument:document;b.debug("Rendering diagram "+e);let o=x.select(`[id='${n}']`);st(o);let m=d.db.getRootDoc();j(m,o,void 0,!1,x,i,d);let f=S.padding,c=o.node().getBBox(),p=c.width+f*2,y=c.height+f*2,w=p*1.75;P(o,y,w,S.useMaxWidth),o.attr("viewBox",`${c.x-S.padding} ${c.y-S.padding} `+p+" "+y)},"draw"),ct=g(e=>e?e.length*S.fontSizeFactor:1,"getLabelWidth"),j=g((e,n,s,d,r,h,x)=>{let i=new F({compound:!0,multigraph:!0}),o,m=!0;for(o=0;o{let B=l.parentElement,E=0,T=0;B&&(B.parentElement&&(E=B.parentElement.getBBox().width),T=parseInt(B.getAttribute("data-x-shift"),10),Number.isNaN(T)&&(T=0)),l.setAttribute("x1",0-T+8),l.setAttribute("x2",E-T-8)})):b.debug("No Node "+a+": "+JSON.stringify(i.node(a)))});let M=k.getBBox();i.edges().forEach(function(a){a!==void 0&&i.edge(a)!==void 0&&(b.debug("Edge "+a.v+" -> "+a.w+": "+JSON.stringify(i.edge(a))),_(n,i.edge(a),i.edge(a).relation))}),M=k.getBBox();let H={id:s||"root",label:s||"root",width:0,height:0};return H.width=M.width+2*S.padding,H.height=M.height+2*S.padding,b.debug("Doc rendered",H,i),H},"renderDoc"),q={setConf:ot,draw:dt};var Rt={parser:X,db:N,renderer:q,styles:J,init:g(e=>{e.state||(e.state={}),e.state.arrowMarkerAbsolute=e.arrowMarkerAbsolute,N.clear()},"init")};export{Rt as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-DVB4EDRD.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-DVB4EDRD.mjs deleted file mode 100644 index cb9e2700d..000000000 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-DVB4EDRD.mjs +++ /dev/null @@ -1 +0,0 @@ -import{a,b as e,c as t,d as o}from"./chunk-7H3BNXSV.mjs";import"./chunk-4YMK7POB.mjs";import"./chunk-LD4SFGBK.mjs";import"./chunk-4DJOK3GT.mjs";import"./chunk-A7EQIZZO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-HMDXFKD7.mjs";import"./chunk-EXDBZKZY.mjs";import"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as i}from"./chunk-GTKDMUJJ.mjs";var d={parser:a,db:t,renderer:e,styles:o,init:i(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.clear()},"init")};export{d as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-HMOQ2HEA.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-HMOQ2HEA.mjs new file mode 100644 index 000000000..e7ab28324 --- /dev/null +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/stateDiagram-v2-HMOQ2HEA.mjs @@ -0,0 +1 @@ +import{a,b as e,c as t,d as o}from"./chunk-LDJ5YOBB.mjs";import"./chunk-P7KHIEPL.mjs";import"./chunk-54VS5GG6.mjs";import"./chunk-ZUCAP7FR.mjs";import"./chunk-E7A2AWYO.mjs";import"./chunk-S67DUUA5.mjs";import"./chunk-LM6QDVU5.mjs";import"./chunk-D4BOYBYT.mjs";import"./chunk-AFC6EC46.mjs";import"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as i}from"./chunk-GTKDMUJJ.mjs";var d={parser:a,db:t,renderer:e,styles:o,init:i(r=>{r.state||(r.state={}),r.state.arrowMarkerAbsolute=r.arrowMarkerAbsolute,t.clear()},"init")};export{d as diagram}; diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/timeline-definition-QPOBMAB2.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/timeline-definition-2YBW2SKD.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/timeline-definition-QPOBMAB2.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/timeline-definition-2YBW2SKD.mjs index ea9457299..1337c9de3 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/timeline-definition-QPOBMAB2.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/timeline-definition-2YBW2SKD.mjs @@ -1,4 +1,4 @@ -import{Ba as Q,N as at,P as ot,W as lt,X as ct,b as S,ga as z,n as rt,o as it,p as st}from"./chunk-ITX3UAHE.mjs";import{a as s,c as Nt}from"./chunk-GTKDMUJJ.mjs";var X=function(){var n=s(function(m,i,a,c){for(a=a||{},c=m.length;c--;a[m[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],o=[1,10],r=[1,11],u=[1,12],h=[1,13],f=[1,16],g=[1,17],d={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,l,E){var k=l.length-1;switch(y){case 1:return l[k-1];case 2:this.$=[];break;case 3:l[k-1].push(l[k]),this.$=l[k-1];break;case 4:case 5:this.$=l[k];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(l[k].substr(6)),this.$=l[k].substr(6);break;case 9:this.$=l[k].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[k].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(l[k].substr(8)),this.$=l[k].substr(8);break;case 15:p.addTask(l[k],0,""),this.$=l[k];break;case 16:p.addEvent(l[k].substr(2)),this.$=l[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:o,14:r,16:u,17:h,18:14,19:15,20:f,21:g},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:o,14:r,16:u,17:h,18:14,19:15,20:f,21:g},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],l=[],E=this.table,k="",N=0,C=0,V=0,et=2,L=1,v=l.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(T.yy[A]=this.yy[A]);b.setInput(i,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var P=b.yylloc;l.push(P);var U=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(I){c.length=c.length-2*I,y.length=y.length-I,l.length=l.length-I}s(Zt,"popStack");function Mt(){var I;return I=p.pop()||b.lex()||L,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=a.symbols_[I]||I),I}s(Mt,"lex");for(var w,Z,B,M,Jt,J,R={},O,$,nt,j;;){if(B=c[c.length-1],this.defaultActions[B]?M=this.defaultActions[B]:((w===null||typeof w>"u")&&(w=Mt()),M=E[B]&&E[B][w]),typeof M>"u"||!M.length||!M[0]){var K="";j=[];for(O in E[B])this.terminals_[O]&&O>et&&j.push("'"+this.terminals_[O]+"'");b.showPosition?K="Parse error on line "+(N+1)+`: +import{Ba as Q,N as at,P as ot,W as lt,X as ct,b as S,ga as z,n as rt,o as it,p as st}from"./chunk-OR2G2HG5.mjs";import{a as s,c as Nt}from"./chunk-GTKDMUJJ.mjs";var X=function(){var n=s(function(m,i,a,c){for(a=a||{},c=m.length;c--;a[m[c]]=i);return a},"o"),t=[6,8,10,11,12,14,16,17,20,21],e=[1,9],o=[1,10],r=[1,11],u=[1,12],h=[1,13],f=[1,16],g=[1,17],d={trace:s(function(){},"trace"),yy:{},symbols_:{error:2,start:3,timeline:4,document:5,EOF:6,line:7,SPACE:8,statement:9,NEWLINE:10,title:11,acc_title:12,acc_title_value:13,acc_descr:14,acc_descr_value:15,acc_descr_multiline_value:16,section:17,period_statement:18,event_statement:19,period:20,event:21,$accept:0,$end:1},terminals_:{2:"error",4:"timeline",6:"EOF",8:"SPACE",10:"NEWLINE",11:"title",12:"acc_title",13:"acc_title_value",14:"acc_descr",15:"acc_descr_value",16:"acc_descr_multiline_value",17:"section",20:"period",21:"event"},productions_:[0,[3,3],[5,0],[5,2],[7,2],[7,1],[7,1],[7,1],[9,1],[9,2],[9,2],[9,1],[9,1],[9,1],[9,1],[18,1],[19,1]],performAction:s(function(i,a,c,p,y,l,E){var k=l.length-1;switch(y){case 1:return l[k-1];case 2:this.$=[];break;case 3:l[k-1].push(l[k]),this.$=l[k-1];break;case 4:case 5:this.$=l[k];break;case 6:case 7:this.$=[];break;case 8:p.getCommonDb().setDiagramTitle(l[k].substr(6)),this.$=l[k].substr(6);break;case 9:this.$=l[k].trim(),p.getCommonDb().setAccTitle(this.$);break;case 10:case 11:this.$=l[k].trim(),p.getCommonDb().setAccDescription(this.$);break;case 12:p.addSection(l[k].substr(8)),this.$=l[k].substr(8);break;case 15:p.addTask(l[k],0,""),this.$=l[k];break;case 16:p.addEvent(l[k].substr(2)),this.$=l[k];break}},"anonymous"),table:[{3:1,4:[1,2]},{1:[3]},n(t,[2,2],{5:3}),{6:[1,4],7:5,8:[1,6],9:7,10:[1,8],11:e,12:o,14:r,16:u,17:h,18:14,19:15,20:f,21:g},n(t,[2,7],{1:[2,1]}),n(t,[2,3]),{9:18,11:e,12:o,14:r,16:u,17:h,18:14,19:15,20:f,21:g},n(t,[2,5]),n(t,[2,6]),n(t,[2,8]),{13:[1,19]},{15:[1,20]},n(t,[2,11]),n(t,[2,12]),n(t,[2,13]),n(t,[2,14]),n(t,[2,15]),n(t,[2,16]),n(t,[2,4]),n(t,[2,9]),n(t,[2,10])],defaultActions:{},parseError:s(function(i,a){if(a.recoverable)this.trace(i);else{var c=new Error(i);throw c.hash=a,c}},"parseError"),parse:s(function(i){var a=this,c=[0],p=[],y=[null],l=[],E=this.table,k="",N=0,C=0,V=0,et=2,L=1,v=l.slice.call(arguments,1),b=Object.create(this.lexer),T={yy:{}};for(var A in this.yy)Object.prototype.hasOwnProperty.call(this.yy,A)&&(T.yy[A]=this.yy[A]);b.setInput(i,T.yy),T.yy.lexer=b,T.yy.parser=this,typeof b.yylloc>"u"&&(b.yylloc={});var P=b.yylloc;l.push(P);var U=b.options&&b.options.ranges;typeof T.yy.parseError=="function"?this.parseError=T.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function Zt(I){c.length=c.length-2*I,y.length=y.length-I,l.length=l.length-I}s(Zt,"popStack");function Mt(){var I;return I=p.pop()||b.lex()||L,typeof I!="number"&&(I instanceof Array&&(p=I,I=p.pop()),I=a.symbols_[I]||I),I}s(Mt,"lex");for(var w,Z,B,M,Jt,J,R={},O,$,nt,j;;){if(B=c[c.length-1],this.defaultActions[B]?M=this.defaultActions[B]:((w===null||typeof w>"u")&&(w=Mt()),M=E[B]&&E[B][w]),typeof M>"u"||!M.length||!M[0]){var K="";j=[];for(O in E[B])this.terminals_[O]&&O>et&&j.push("'"+this.terminals_[O]+"'");b.showPosition?K="Parse error on line "+(N+1)+`: `+b.showPosition()+` Expecting `+j.join(", ")+", got '"+(this.terminals_[w]||w)+"'":K="Parse error on line "+(N+1)+": Unexpected "+(w==L?"end of input":"'"+(this.terminals_[w]||w)+"'"),this.parseError(K,{text:b.match,token:this.terminals_[w]||w,line:b.yylineno,loc:P,expected:j})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+B+", token: "+w);switch(M[0]){case 1:c.push(w),y.push(b.yytext),l.push(b.yylloc),c.push(M[1]),w=null,Z?(w=Z,Z=null):(C=b.yyleng,k=b.yytext,N=b.yylineno,P=b.yylloc,V>0&&V--);break;case 2:if($=this.productions_[M[1]][1],R.$=y[y.length-$],R._$={first_line:l[l.length-($||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-($||1)].first_column,last_column:l[l.length-1].last_column},U&&(R._$.range=[l[l.length-($||1)].range[0],l[l.length-1].range[1]]),J=this.performAction.apply(R,[k,C,N,T.yy,M[1],y,l].concat(v)),typeof J<"u")return J;$&&(c=c.slice(0,-1*$*2),y=y.slice(0,-1*$),l=l.slice(0,-1*$)),c.push(this.productions_[M[1]][0]),y.push(R.$),l.push(R._$),nt=E[c[c.length-2]][c[c.length-1]],c.push(nt);break;case 3:return!0}}return!0},"parse")},x=function(){var m={EOF:1,parseError:s(function(a,c){if(this.yy.parser)this.yy.parser.parseError(a,c);else throw new Error(a)},"parseError"),setInput:s(function(i,a){return this.yy=a||this.yy||{},this._input=i,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:s(function(){var i=this._input[0];this.yytext+=i,this.yyleng++,this.offset++,this.match+=i,this.matched+=i;var a=i.match(/(?:\r\n?|\n).*/g);return a?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),i},"input"),unput:s(function(i){var a=i.length,c=i.split(/(?:\r\n?|\n)/g);this._input=i+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-a),this.offset-=a;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),c.length-1&&(this.yylineno-=c.length-1);var y=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:c?(c.length===p.length?this.yylloc.first_column:0)+p[p.length-c.length].length-c[0].length:this.yylloc.first_column-a},this.options.ranges&&(this.yylloc.range=[y[0],y[0]+this.yyleng-a]),this.yyleng=this.yytext.length,this},"unput"),more:s(function(){return this._more=!0,this},"more"),reject:s(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:s(function(i){this.unput(this.match.slice(i))},"less"),pastInput:s(function(){var i=this.matched.substr(0,this.matched.length-this.match.length);return(i.length>20?"...":"")+i.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:s(function(){var i=this.match;return i.length<20&&(i+=this._input.substr(0,20-i.length)),(i.substr(0,20)+(i.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:s(function(){var i=this.pastInput(),a=new Array(i.length+1).join("-");return i+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/chunks/mermaid.esm.min/xychartDiagram-MWHWHLMU.mjs b/mermaid/assets/mermaid/chunks/mermaid.esm.min/xychartDiagram-A2DIST7P.mjs similarity index 99% rename from mermaid/assets/mermaid/chunks/mermaid.esm.min/xychartDiagram-MWHWHLMU.mjs rename to mermaid/assets/mermaid/chunks/mermaid.esm.min/xychartDiagram-A2DIST7P.mjs index f9c3e08a5..69a8612a9 100644 --- a/mermaid/assets/mermaid/chunks/mermaid.esm.min/xychartDiagram-MWHWHLMU.mjs +++ b/mermaid/assets/mermaid/chunks/mermaid.esm.min/xychartDiagram-A2DIST7P.mjs @@ -1,4 +1,4 @@ -import{a as Ut}from"./chunk-BPW5ZDWE.mjs";import{b as Ht}from"./chunk-EXDBZKZY.mjs";import{l as Ct}from"./chunk-2XY5F2HY.mjs";import"./chunk-TI4EEUUG.mjs";import{A as J,Da as yt,F as Mt,M as Wt,P as Ot,Q as zt,R as Ft,S as Nt,T as jt,U as Gt,V as ft,b as Z,ja as dt,ka as bt,q as Bt,s as It}from"./chunk-ITX3UAHE.mjs";import"./chunk-6BY5RJGC.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var At=function(){var i=n(function(B,o,c,g){for(c=c||{},g=B.length;g--;c[B[g]]=o);return c},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],h=[1,6],u=[1,7],d=[1,5,10,12,14,16,18,19,21,23,34,35,36],y=[1,25],E=[1,26],w=[1,28],_=[1,29],L=[1,30],X=[1,31],k=[1,32],Y=[1,33],f=[1,34],T=[1,35],l=[1,36],R=[1,37],N=[1,43],Pt=[1,42],vt=[1,47],$=[1,50],C=[1,10,12,14,16,18,19,21,23,34,35,36],ht=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Et=[1,64],lt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(o,c,g,p,b,r,j){var x=r.length-1;switch(b){case 5:p.setOrientation(r[x]);break;case 9:p.setDiagramTitle(r[x].text.trim());break;case 12:p.setLineData({text:"",type:"text"},r[x]);break;case 13:p.setLineData(r[x-1],r[x]);break;case 14:p.setBarData({text:"",type:"text"},r[x]);break;case 15:p.setBarData(r[x-1],r[x]);break;case 16:this.$=r[x].trim(),p.setAccTitle(this.$);break;case 17:case 18:this.$=r[x].trim(),p.setAccDescription(this.$);break;case 19:this.$=r[x-1];break;case 20:this.$=[Number(r[x-2]),...r[x]];break;case 21:this.$=[Number(r[x])];break;case 22:p.setXAxisTitle(r[x]);break;case 23:p.setXAxisTitle(r[x-1]);break;case 24:p.setXAxisTitle({type:"text",text:""});break;case 25:p.setXAxisBand(r[x]);break;case 26:p.setXAxisRangeData(Number(r[x-2]),Number(r[x]));break;case 27:this.$=r[x-1];break;case 28:this.$=[r[x-2],...r[x]];break;case 29:this.$=[r[x]];break;case 30:p.setYAxisTitle(r[x]);break;case 31:p.setYAxisTitle(r[x-1]);break;case 32:p.setYAxisTitle({type:"text",text:""});break;case 33:p.setYAxisRangeData(Number(r[x-2]),Number(r[x]));break;case 37:this.$={text:r[x],type:"text"};break;case 38:this.$={text:r[x],type:"text"};break;case 39:this.$={text:r[x],type:"markdown"};break;case 40:this.$=r[x];break;case 41:this.$=r[x-1]+""+r[x];break}},"anonymous"),table:[i(t,e,{3:1,4:2,7:4,5:s,34:a,35:h,36:u}),{1:[3]},i(t,e,{4:2,7:4,3:8,5:s,34:a,35:h,36:u}),i(t,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:h,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},i(d,[2,34]),i(d,[2,35]),i(d,[2,36]),{1:[2,1]},i(t,e,{4:2,7:4,3:21,5:s,34:a,35:h,36:u}),{1:[2,3]},i(d,[2,5]),i(t,[2,7],{4:22,34:a,35:h,36:u}),{11:23,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:39,13:38,24:N,27:Pt,29:40,30:41,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:45,15:44,27:vt,33:46,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:49,17:48,24:$,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:52,17:51,24:$,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{20:[1,53]},{22:[1,54]},i(C,[2,18]),{1:[2,2]},i(C,[2,8]),i(C,[2,9]),i(ht,[2,37],{40:55,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R}),i(ht,[2,38]),i(ht,[2,39]),i(P,[2,40]),i(P,[2,42]),i(P,[2,43]),i(P,[2,44]),i(P,[2,45]),i(P,[2,46]),i(P,[2,47]),i(P,[2,48]),i(P,[2,49]),i(P,[2,50]),i(P,[2,51]),i(C,[2,10]),i(C,[2,22],{30:41,29:56,24:N,27:Pt}),i(C,[2,24]),i(C,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},i(C,[2,11]),i(C,[2,30],{33:60,27:vt}),i(C,[2,32]),{31:[1,61]},i(C,[2,12]),{17:62,24:$},{25:63,27:Et},i(C,[2,14]),{17:65,24:$},i(C,[2,16]),i(C,[2,17]),i(P,[2,41]),i(C,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},i(C,[2,31]),{27:[1,69]},i(C,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},i(C,[2,15]),i(C,[2,26]),i(C,[2,27]),{11:59,32:72,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},i(C,[2,33]),i(C,[2,19]),{25:73,27:Et},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(o,c){if(c.recoverable)this.trace(o);else{var g=new Error(o);throw g.hash=c,g}},"parseError"),parse:n(function(o){var c=this,g=[0],p=[],b=[null],r=[],j=this.table,x="",q=0,Lt=0,Xt=0,oe=2,Yt=1,he=r.slice.call(arguments,1),A=Object.create(this.lexer),I={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(I.yy[gt]=this.yy[gt]);A.setInput(o,I.yy),I.yy.lexer=A,I.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var pt=A.yylloc;r.push(pt);var le=A.options&&A.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(S){g.length=g.length-2*S,b.length=b.length-S,r.length=r.length-S}n(ke,"popStack");function ce(){var S;return S=p.pop()||A.lex()||Yt,typeof S!="number"&&(S instanceof Array&&(p=S,S=p.pop()),S=c.symbols_[S]||S),S}n(ce,"lex");for(var D,ut,M,v,Se,xt,W={},Q,V,Vt,K;;){if(M=g[g.length-1],this.defaultActions[M]?v=this.defaultActions[M]:((D===null||typeof D>"u")&&(D=ce()),v=j[M]&&j[M][D]),typeof v>"u"||!v.length||!v[0]){var mt="";K=[];for(Q in j[M])this.terminals_[Q]&&Q>oe&&K.push("'"+this.terminals_[Q]+"'");A.showPosition?mt="Parse error on line "+(q+1)+`: +import{a as Ut}from"./chunk-3YFHLAX3.mjs";import{b as Ht}from"./chunk-AFC6EC46.mjs";import{l as Ct}from"./chunk-UENA7NWE.mjs";import"./chunk-TI4EEUUG.mjs";import{A as J,Da as yt,F as Mt,M as Wt,P as Ot,Q as zt,R as Ft,S as Nt,T as jt,U as Gt,V as ft,b as Z,ja as dt,ka as bt,q as Bt,s as It}from"./chunk-OR2G2HG5.mjs";import"./chunk-6BY5RJGC.mjs";import{a as n}from"./chunk-GTKDMUJJ.mjs";var At=function(){var i=n(function(B,o,c,g){for(c=c||{},g=B.length;g--;c[B[g]]=o);return c},"o"),t=[1,10,12,14,16,18,19,21,23],e=[2,6],s=[1,3],a=[1,5],h=[1,6],u=[1,7],d=[1,5,10,12,14,16,18,19,21,23,34,35,36],y=[1,25],E=[1,26],w=[1,28],_=[1,29],L=[1,30],X=[1,31],k=[1,32],Y=[1,33],f=[1,34],T=[1,35],l=[1,36],R=[1,37],N=[1,43],Pt=[1,42],vt=[1,47],$=[1,50],C=[1,10,12,14,16,18,19,21,23,34,35,36],ht=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36],P=[1,10,12,14,16,18,19,21,23,24,26,27,28,34,35,36,41,42,43,44,45,46,47,48,49,50],Et=[1,64],lt={trace:n(function(){},"trace"),yy:{},symbols_:{error:2,start:3,eol:4,XYCHART:5,chartConfig:6,document:7,CHART_ORIENTATION:8,statement:9,title:10,text:11,X_AXIS:12,parseXAxis:13,Y_AXIS:14,parseYAxis:15,LINE:16,plotData:17,BAR:18,acc_title:19,acc_title_value:20,acc_descr:21,acc_descr_value:22,acc_descr_multiline_value:23,SQUARE_BRACES_START:24,commaSeparatedNumbers:25,SQUARE_BRACES_END:26,NUMBER_WITH_DECIMAL:27,COMMA:28,xAxisData:29,bandData:30,ARROW_DELIMITER:31,commaSeparatedTexts:32,yAxisData:33,NEWLINE:34,SEMI:35,EOF:36,alphaNum:37,STR:38,MD_STR:39,alphaNumToken:40,AMP:41,NUM:42,ALPHA:43,PLUS:44,EQUALS:45,MULT:46,DOT:47,BRKT:48,MINUS:49,UNDERSCORE:50,$accept:0,$end:1},terminals_:{2:"error",5:"XYCHART",8:"CHART_ORIENTATION",10:"title",12:"X_AXIS",14:"Y_AXIS",16:"LINE",18:"BAR",19:"acc_title",20:"acc_title_value",21:"acc_descr",22:"acc_descr_value",23:"acc_descr_multiline_value",24:"SQUARE_BRACES_START",26:"SQUARE_BRACES_END",27:"NUMBER_WITH_DECIMAL",28:"COMMA",31:"ARROW_DELIMITER",34:"NEWLINE",35:"SEMI",36:"EOF",38:"STR",39:"MD_STR",41:"AMP",42:"NUM",43:"ALPHA",44:"PLUS",45:"EQUALS",46:"MULT",47:"DOT",48:"BRKT",49:"MINUS",50:"UNDERSCORE"},productions_:[0,[3,2],[3,3],[3,2],[3,1],[6,1],[7,0],[7,2],[9,2],[9,2],[9,2],[9,2],[9,2],[9,3],[9,2],[9,3],[9,2],[9,2],[9,1],[17,3],[25,3],[25,1],[13,1],[13,2],[13,1],[29,1],[29,3],[30,3],[32,3],[32,1],[15,1],[15,2],[15,1],[33,3],[4,1],[4,1],[4,1],[11,1],[11,1],[11,1],[37,1],[37,2],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1],[40,1]],performAction:n(function(o,c,g,p,b,r,j){var x=r.length-1;switch(b){case 5:p.setOrientation(r[x]);break;case 9:p.setDiagramTitle(r[x].text.trim());break;case 12:p.setLineData({text:"",type:"text"},r[x]);break;case 13:p.setLineData(r[x-1],r[x]);break;case 14:p.setBarData({text:"",type:"text"},r[x]);break;case 15:p.setBarData(r[x-1],r[x]);break;case 16:this.$=r[x].trim(),p.setAccTitle(this.$);break;case 17:case 18:this.$=r[x].trim(),p.setAccDescription(this.$);break;case 19:this.$=r[x-1];break;case 20:this.$=[Number(r[x-2]),...r[x]];break;case 21:this.$=[Number(r[x])];break;case 22:p.setXAxisTitle(r[x]);break;case 23:p.setXAxisTitle(r[x-1]);break;case 24:p.setXAxisTitle({type:"text",text:""});break;case 25:p.setXAxisBand(r[x]);break;case 26:p.setXAxisRangeData(Number(r[x-2]),Number(r[x]));break;case 27:this.$=r[x-1];break;case 28:this.$=[r[x-2],...r[x]];break;case 29:this.$=[r[x]];break;case 30:p.setYAxisTitle(r[x]);break;case 31:p.setYAxisTitle(r[x-1]);break;case 32:p.setYAxisTitle({type:"text",text:""});break;case 33:p.setYAxisRangeData(Number(r[x-2]),Number(r[x]));break;case 37:this.$={text:r[x],type:"text"};break;case 38:this.$={text:r[x],type:"text"};break;case 39:this.$={text:r[x],type:"markdown"};break;case 40:this.$=r[x];break;case 41:this.$=r[x-1]+""+r[x];break}},"anonymous"),table:[i(t,e,{3:1,4:2,7:4,5:s,34:a,35:h,36:u}),{1:[3]},i(t,e,{4:2,7:4,3:8,5:s,34:a,35:h,36:u}),i(t,e,{4:2,7:4,6:9,3:10,5:s,8:[1,11],34:a,35:h,36:u}),{1:[2,4],9:12,10:[1,13],12:[1,14],14:[1,15],16:[1,16],18:[1,17],19:[1,18],21:[1,19],23:[1,20]},i(d,[2,34]),i(d,[2,35]),i(d,[2,36]),{1:[2,1]},i(t,e,{4:2,7:4,3:21,5:s,34:a,35:h,36:u}),{1:[2,3]},i(d,[2,5]),i(t,[2,7],{4:22,34:a,35:h,36:u}),{11:23,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:39,13:38,24:N,27:Pt,29:40,30:41,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:45,15:44,27:vt,33:46,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:49,17:48,24:$,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{11:52,17:51,24:$,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},{20:[1,53]},{22:[1,54]},i(C,[2,18]),{1:[2,2]},i(C,[2,8]),i(C,[2,9]),i(ht,[2,37],{40:55,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R}),i(ht,[2,38]),i(ht,[2,39]),i(P,[2,40]),i(P,[2,42]),i(P,[2,43]),i(P,[2,44]),i(P,[2,45]),i(P,[2,46]),i(P,[2,47]),i(P,[2,48]),i(P,[2,49]),i(P,[2,50]),i(P,[2,51]),i(C,[2,10]),i(C,[2,22],{30:41,29:56,24:N,27:Pt}),i(C,[2,24]),i(C,[2,25]),{31:[1,57]},{11:59,32:58,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},i(C,[2,11]),i(C,[2,30],{33:60,27:vt}),i(C,[2,32]),{31:[1,61]},i(C,[2,12]),{17:62,24:$},{25:63,27:Et},i(C,[2,14]),{17:65,24:$},i(C,[2,16]),i(C,[2,17]),i(P,[2,41]),i(C,[2,23]),{27:[1,66]},{26:[1,67]},{26:[2,29],28:[1,68]},i(C,[2,31]),{27:[1,69]},i(C,[2,13]),{26:[1,70]},{26:[2,21],28:[1,71]},i(C,[2,15]),i(C,[2,26]),i(C,[2,27]),{11:59,32:72,37:24,38:y,39:E,40:27,41:w,42:_,43:L,44:X,45:k,46:Y,47:f,48:T,49:l,50:R},i(C,[2,33]),i(C,[2,19]),{25:73,27:Et},{26:[2,28]},{26:[2,20]}],defaultActions:{8:[2,1],10:[2,3],21:[2,2],72:[2,28],73:[2,20]},parseError:n(function(o,c){if(c.recoverable)this.trace(o);else{var g=new Error(o);throw g.hash=c,g}},"parseError"),parse:n(function(o){var c=this,g=[0],p=[],b=[null],r=[],j=this.table,x="",q=0,Lt=0,Xt=0,oe=2,Yt=1,he=r.slice.call(arguments,1),A=Object.create(this.lexer),I={yy:{}};for(var gt in this.yy)Object.prototype.hasOwnProperty.call(this.yy,gt)&&(I.yy[gt]=this.yy[gt]);A.setInput(o,I.yy),I.yy.lexer=A,I.yy.parser=this,typeof A.yylloc>"u"&&(A.yylloc={});var pt=A.yylloc;r.push(pt);var le=A.options&&A.options.ranges;typeof I.yy.parseError=="function"?this.parseError=I.yy.parseError:this.parseError=Object.getPrototypeOf(this).parseError;function ke(S){g.length=g.length-2*S,b.length=b.length-S,r.length=r.length-S}n(ke,"popStack");function ce(){var S;return S=p.pop()||A.lex()||Yt,typeof S!="number"&&(S instanceof Array&&(p=S,S=p.pop()),S=c.symbols_[S]||S),S}n(ce,"lex");for(var D,ut,M,v,Se,xt,W={},Q,V,Vt,K;;){if(M=g[g.length-1],this.defaultActions[M]?v=this.defaultActions[M]:((D===null||typeof D>"u")&&(D=ce()),v=j[M]&&j[M][D]),typeof v>"u"||!v.length||!v[0]){var mt="";K=[];for(Q in j[M])this.terminals_[Q]&&Q>oe&&K.push("'"+this.terminals_[Q]+"'");A.showPosition?mt="Parse error on line "+(q+1)+`: `+A.showPosition()+` Expecting `+K.join(", ")+", got '"+(this.terminals_[D]||D)+"'":mt="Parse error on line "+(q+1)+": Unexpected "+(D==Yt?"end of input":"'"+(this.terminals_[D]||D)+"'"),this.parseError(mt,{text:A.match,token:this.terminals_[D]||D,line:A.yylineno,loc:pt,expected:K})}if(v[0]instanceof Array&&v.length>1)throw new Error("Parse Error: multiple actions possible at state: "+M+", token: "+D);switch(v[0]){case 1:g.push(D),b.push(A.yytext),r.push(A.yylloc),g.push(v[1]),D=null,ut?(D=ut,ut=null):(Lt=A.yyleng,x=A.yytext,q=A.yylineno,pt=A.yylloc,Xt>0&&Xt--);break;case 2:if(V=this.productions_[v[1]][1],W.$=b[b.length-V],W._$={first_line:r[r.length-(V||1)].first_line,last_line:r[r.length-1].last_line,first_column:r[r.length-(V||1)].first_column,last_column:r[r.length-1].last_column},le&&(W._$.range=[r[r.length-(V||1)].range[0],r[r.length-1].range[1]]),xt=this.performAction.apply(W,[x,Lt,q,I.yy,v[1],b,r].concat(he)),typeof xt<"u")return xt;V&&(g=g.slice(0,-1*V*2),b=b.slice(0,-1*V),r=r.slice(0,-1*V)),g.push(this.productions_[v[1]][0]),b.push(W.$),r.push(W._$),Vt=j[g[g.length-2]][g[g.length-1]],g.push(Vt);break;case 3:return!0}}return!0},"parse")},re=function(){var B={EOF:1,parseError:n(function(c,g){if(this.yy.parser)this.yy.parser.parseError(c,g);else throw new Error(c)},"parseError"),setInput:n(function(o,c){return this.yy=c||this.yy||{},this._input=o,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},"setInput"),input:n(function(){var o=this._input[0];this.yytext+=o,this.yyleng++,this.offset++,this.match+=o,this.matched+=o;var c=o.match(/(?:\r\n?|\n).*/g);return c?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),o},"input"),unput:n(function(o){var c=o.length,g=o.split(/(?:\r\n?|\n)/g);this._input=o+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-c),this.offset-=c;var p=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var b=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===p.length?this.yylloc.first_column:0)+p[p.length-g.length].length-g[0].length:this.yylloc.first_column-c},this.options.ranges&&(this.yylloc.range=[b[0],b[0]+this.yyleng-c]),this.yyleng=this.yytext.length,this},"unput"),more:n(function(){return this._more=!0,this},"more"),reject:n(function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true). `+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},"reject"),less:n(function(o){this.unput(this.match.slice(o))},"less"),pastInput:n(function(){var o=this.matched.substr(0,this.matched.length-this.match.length);return(o.length>20?"...":"")+o.substr(-20).replace(/\n/g,"")},"pastInput"),upcomingInput:n(function(){var o=this.match;return o.length<20&&(o+=this._input.substr(0,20-o.length)),(o.substr(0,20)+(o.length>20?"...":"")).replace(/\n/g,"")},"upcomingInput"),showPosition:n(function(){var o=this.pastInput(),c=new Array(o.length+1).join("-");return o+this.upcomingInput()+` diff --git a/mermaid/assets/mermaid/mermaid.esm.min.mjs b/mermaid/assets/mermaid/mermaid.esm.min.mjs index f3243273c..17d866a2e 100644 --- a/mermaid/assets/mermaid/mermaid.esm.min.mjs +++ b/mermaid/assets/mermaid/mermaid.esm.min.mjs @@ -1,13 +1,13 @@ -import{a as ht}from"./chunks/mermaid.esm.min/chunk-67GG4VKH.mjs";import{a as Bt}from"./chunks/mermaid.esm.min/chunk-BPW5ZDWE.mjs";import{a as Nt,b as Ut}from"./chunks/mermaid.esm.min/chunk-7LIB5WBN.mjs";import{a as qt}from"./chunks/mermaid.esm.min/chunk-LD4SFGBK.mjs";import"./chunks/mermaid.esm.min/chunk-4DJOK3GT.mjs";import"./chunks/mermaid.esm.min/chunk-A7EQIZZO.mjs";import"./chunks/mermaid.esm.min/chunk-S67DUUA5.mjs";import"./chunks/mermaid.esm.min/chunk-LM6QDVU5.mjs";import{b as St}from"./chunks/mermaid.esm.min/chunk-HMDXFKD7.mjs";import{a as Mt}from"./chunks/mermaid.esm.min/chunk-EXDBZKZY.mjs";import{b as Gt,j as yt,l as Vt,m as G,n as $t,o as Ht}from"./chunks/mermaid.esm.min/chunk-2XY5F2HY.mjs";import"./chunks/mermaid.esm.min/chunk-TI4EEUUG.mjs";import{A as _,B as Ft,C as Y,D as Pe,G as It,M as _t,O as zt,aa as z,b as l,ba as X,c as lt,d as At,f as Tt,g as gt,ga as k,h as Z,i as J,j as Ct,k as Rt,r as tt,u as ut,v as kt,w as Ot,x as Pt,y as Dt,z as jt}from"./chunks/mermaid.esm.min/chunk-ITX3UAHE.mjs";import{d as xt}from"./chunks/mermaid.esm.min/chunk-YPUTD6PB.mjs";import"./chunks/mermaid.esm.min/chunk-6BY5RJGC.mjs";import{a as e,e as Oe}from"./chunks/mermaid.esm.min/chunk-GTKDMUJJ.mjs";var Yt="c4",je=e(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),Fe=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/c4Diagram-AKI3UION.mjs");return{id:Yt,diagram:t}},"loader"),Ie={id:Yt,detector:je,loader:Fe},Xt=Ie;var Wt="flowchart",_e=e((t,r)=>r?.flowchart?.defaultRenderer==="dagre-wrapper"||r?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),ze=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-INP2BB3V.mjs");return{id:Wt,diagram:t}},"loader"),Ge={id:Wt,detector:_e,loader:ze},Kt=Ge;var Qt="flowchart-v2",Ve=e((t,r)=>r?.flowchart?.defaultRenderer==="dagre-d3"?!1:(r?.flowchart?.defaultRenderer==="elk"&&(r.layout="elk"),/^\s*graph/.test(t)&&r?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),$e=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-INP2BB3V.mjs");return{id:Qt,diagram:t}},"loader"),He={id:Qt,detector:Ve,loader:$e},Zt=He;var Jt="er",Ne=e(t=>/^\s*erDiagram/.test(t),"detector"),Ue=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/erDiagram-SZV2UBQT.mjs");return{id:Jt,diagram:t}},"loader"),qe={id:Jt,detector:Ne,loader:Ue},tr=qe;var rr="gitGraph",Be=e(t=>/^\s*gitGraph/.test(t),"detector"),Ye=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/gitGraphDiagram-6HF727YA.mjs");return{id:rr,diagram:t}},"loader"),Xe={id:rr,detector:Be,loader:Ye},er=Xe;var ar="gantt",We=e(t=>/^\s*gantt/.test(t),"detector"),Ke=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/ganttDiagram-547IIDY5.mjs");return{id:ar,diagram:t}},"loader"),Qe={id:ar,detector:We,loader:Ke},ir=Qe;var or="info",Ze=e(t=>/^\s*info/.test(t),"detector"),Je=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/infoDiagram-A4XEPD65.mjs");return{id:or,diagram:t}},"loader"),nr={id:or,detector:Ze,loader:Je};var sr="pie",ta=e(t=>/^\s*pie/.test(t),"detector"),ra=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/pieDiagram-XPKEEGBI.mjs");return{id:sr,diagram:t}},"loader"),cr={id:sr,detector:ta,loader:ra};var mr="quadrantChart",ea=e(t=>/^\s*quadrantChart/.test(t),"detector"),aa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/quadrantDiagram-QS23HHJP.mjs");return{id:mr,diagram:t}},"loader"),ia={id:mr,detector:ea,loader:aa},pr=ia;var dr="xychart",oa=e(t=>/^\s*xychart-beta/.test(t),"detector"),na=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/xychartDiagram-MWHWHLMU.mjs");return{id:dr,diagram:t}},"loader"),sa={id:dr,detector:oa,loader:na},fr=sa;var lr="requirement",ca=e(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),ma=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/requirementDiagram-5WTT3577.mjs");return{id:lr,diagram:t}},"loader"),pa={id:lr,detector:ca,loader:ma},gr=pa;var ur="sequence",da=e(t=>/^\s*sequenceDiagram/.test(t),"detector"),fa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/sequenceDiagram-7SUASMRF.mjs");return{id:ur,diagram:t}},"loader"),la={id:ur,detector:da,loader:fa},Dr=la;var yr="class",ga=e((t,r)=>r?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),ua=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/classDiagram-LGTRVITY.mjs");return{id:yr,diagram:t}},"loader"),Da={id:yr,detector:ga,loader:ua},xr=Da;var hr="classDiagram",ya=e((t,r)=>/^\s*classDiagram/.test(t)&&r?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),xa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/classDiagram-v2-UI22WKGF.mjs");return{id:hr,diagram:t}},"loader"),ha={id:hr,detector:ya,loader:xa},Er=ha;var wr="state",Ea=e((t,r)=>r?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),wa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/stateDiagram-SUF43ZVU.mjs");return{id:wr,diagram:t}},"loader"),ba={id:wr,detector:Ea,loader:wa},br=ba;var Lr="stateDiagram",La=e((t,r)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&r?.state?.defaultRenderer==="dagre-wrapper"),"detector"),va=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/stateDiagram-v2-DVB4EDRD.mjs");return{id:Lr,diagram:t}},"loader"),Sa={id:Lr,detector:La,loader:va},vr=Sa;var Sr="journey",Ma=e(t=>/^\s*journey/.test(t),"detector"),Aa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/journeyDiagram-5ML6LF3B.mjs");return{id:Sr,diagram:t}},"loader"),Ta={id:Sr,detector:Ma,loader:Aa},Mr=Ta;var Ca=e((t,r,a)=>{l.debug(`rendering svg for syntax error -`);let i=Bt(r),o=i.append("g");i.attr("viewBox","0 0 2412 512"),_t(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`)},"draw"),Et={draw:Ca},Ar=Et;var Ra={db:{},renderer:Et,parser:{parse:e(()=>{},"parse")}},Tr=Ra;var Cr="flowchart-elk",ka=e((t,r={})=>/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&r?.flowchart?.defaultRenderer==="elk"?(r.layout="elk",!0):!1,"detector"),Oa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-INP2BB3V.mjs");return{id:Cr,diagram:t}},"loader"),Pa={id:Cr,detector:ka,loader:Oa},Rr=Pa;var kr="timeline",ja=e(t=>/^\s*timeline/.test(t),"detector"),Fa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/timeline-definition-QPOBMAB2.mjs");return{id:kr,diagram:t}},"loader"),Ia={id:kr,detector:ja,loader:Fa},Or=Ia;var Pr="mindmap",_a=e(t=>/^\s*mindmap/.test(t),"detector"),za=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/mindmap-definition-PE66ZM2U.mjs");return{id:Pr,diagram:t}},"loader"),Ga={id:Pr,detector:_a,loader:za},jr=Ga;var Fr="kanban",Va=e(t=>/^\s*kanban/.test(t),"detector"),$a=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/kanban-definition-EGOKAUOG.mjs");return{id:Fr,diagram:t}},"loader"),Ha={id:Fr,detector:Va,loader:$a},Ir=Ha;var _r="sankey",Na=e(t=>/^\s*sankey-beta/.test(t),"detector"),Ua=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/sankeyDiagram-HGVHE3RK.mjs");return{id:_r,diagram:t}},"loader"),qa={id:_r,detector:Na,loader:Ua},zr=qa;var Gr="packet",Ba=e(t=>/^\s*packet-beta/.test(t),"detector"),Ya=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/diagram-D2J2JSCM.mjs");return{id:Gr,diagram:t}},"loader"),Vr={id:Gr,detector:Ba,loader:Ya};var $r="block",Xa=e(t=>/^\s*block-beta/.test(t),"detector"),Wa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/blockDiagram-MYUW6R5Q.mjs");return{id:$r,diagram:t}},"loader"),Ka={id:$r,detector:Xa,loader:Wa},Hr=Ka;var Nr="architecture",Qa=e(t=>/^\s*architecture/.test(t),"detector"),Za=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/architectureDiagram-QTIGHTN5.mjs");return{id:Nr,diagram:t}},"loader"),Ja={id:Nr,detector:Qa,loader:Za},Ur=Ja;var qr=!1,$=e(()=>{qr||(qr=!0,z("error",Tr,t=>t.toLowerCase().trim()==="error"),z("---",{db:{clear:e(()=>{},"clear")},styles:{},renderer:{draw:e(()=>{},"draw")},parser:{parse:e(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:e(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),J(Xt,Ir,Er,xr,tr,ir,nr,cr,gr,Dr,Rr,Zt,Kt,jr,Or,er,vr,br,Mr,pr,zr,Vr,fr,Hr,Ur))},"addDiagrams");var Br=e(async()=>{l.debug("Loading registered diagrams");let r=(await Promise.allSettled(Object.entries(gt).map(async([a,{detector:i,loader:o}])=>{if(o)try{X(a)}catch{try{let{diagram:n,id:m}=await o();z(m,n,i)}catch(n){throw l.error(`Failed to load external diagram with key ${a}. Removing from detectors.`),delete gt[a],n}}}))).filter(a=>a.status==="rejected");if(r.length>0){l.error(`Failed to load ${r.length} external diagrams`);for(let a of r)l.error(a);throw new Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams");var rt="comm",et="rule",at="decl";var Yr="@import";var Xr="@keyframes";var Wr="@layer";var wt=Math.abs,W=String.fromCharCode;function it(t){return t.trim()}e(it,"trim");function K(t,r,a){return t.replace(r,a)}e(K,"replace");function Kr(t,r,a){return t.indexOf(r,a)}e(Kr,"indexof");function V(t,r){return t.charCodeAt(r)|0}e(V,"charat");function j(t,r,a){return t.slice(r,a)}e(j,"substr");function h(t){return t.length}e(h,"strlen");function Qr(t){return t.length}e(Qr,"sizeof");function H(t,r){return r.push(t),t}e(H,"append");var ot=1,N=1,Zr=0,w=0,D=0,q="";function nt(t,r,a,i,o,n,m,s){return{value:t,root:r,parent:a,type:i,props:o,children:n,line:ot,column:N,length:m,return:"",siblings:s}}e(nt,"node");function Jr(){return D}e(Jr,"char");function te(){return D=w>0?V(q,--w):0,N--,D===10&&(N=1,ot--),D}e(te,"prev");function b(){return D=w2||U(D)>3?"":" "}e(ae,"whitespace");function ie(t,r){for(;--r&&b()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return st(t,Q()+(r<6&&O()==32&&b()==32))}e(ie,"escaping");function bt(t){for(;b();)switch(D){case t:return w;case 34:case 39:t!==34&&t!==39&&bt(D);break;case 40:t===41&&bt(t);break;case 92:b();break}return w}e(bt,"delimiter");function oe(t,r){for(;b()&&t+D!==57;)if(t+D===84&&O()===47)break;return"/*"+st(r,w-1)+"*"+W(t===47?t:b())}e(oe,"commenter");function ne(t){for(;!U(O());)b();return st(t,w)}e(ne,"identifier");function me(t){return ee(mt("",null,null,null,[""],t=re(t),0,[0],t))}e(me,"compile");function mt(t,r,a,i,o,n,m,s,c){for(var g=0,y=0,p=m,x=0,A=0,L=0,f=1,C=1,v=1,u=0,S="",R=o,T=n,E=i,d=S;C;)switch(L=u,u=b()){case 40:if(L!=108&&V(d,p-1)==58){Kr(d+=K(ct(u),"&","&\f"),"&\f",wt(g?s[g-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:d+=ct(u);break;case 9:case 10:case 13:case 32:d+=ae(L);break;case 92:d+=ie(Q()-1,7);continue;case 47:switch(O()){case 42:case 47:H(ti(oe(b(),Q()),r,a,c),c),(U(L||1)==5||U(O()||1)==5)&&h(d)&&j(d,-1,void 0)!==" "&&(d+=" ");break;default:d+="/"}break;case 123*f:s[g++]=h(d)*v;case 125*f:case 59:case 0:switch(u){case 0:case 125:C=0;case 59+y:v==-1&&(d=K(d,/\f/g,"")),A>0&&(h(d)-p||f===0&&L===47)&&H(A>32?ce(d+";",i,a,p-1,c):ce(K(d," ","")+";",i,a,p-2,c),c);break;case 59:d+=";";default:if(H(E=se(d,r,a,g,y,o,s,S,R=[],T=[],p,n),n),u===123)if(y===0)mt(d,r,E,E,R,n,p,s,T);else switch(x===99&&V(d,3)===110?100:x){case 100:case 108:case 109:case 115:mt(t,E,E,i&&H(se(t,E,E,0,0,o,s,S,o,R=[],p,T),T),o,T,p,s,i?R:T);break;default:mt(d,E,E,E,[""],T,0,s,T)}}g=y=A=0,f=v=1,S=d="",p=m;break;case 58:p=1+h(d),A=L;default:if(f<1){if(u==123)--f;else if(u==125&&f++==0&&te()==125)continue}switch(d+=W(u),u*f){case 38:v=y>0?1:(d+="\f",-1);break;case 44:s[g++]=(h(d)-1)*v,v=1;break;case 64:O()===45&&(d+=ct(b())),x=O(),y=p=h(S=d+=ne(Q())),u++;break;case 45:L===45&&h(d)==2&&(f=0)}}return n}e(mt,"parse");function se(t,r,a,i,o,n,m,s,c,g,y,p){for(var x=o-1,A=o===0?n:[""],L=Qr(A),f=0,C=0,v=0;f0?A[u]+" "+S:K(S,/&\f/g,A[u])))&&(c[v++]=R);return nt(t,r,a,o===0?et:s,c,g,y,p)}e(se,"ruleset");function ti(t,r,a,i){return nt(t,r,a,rt,W(Jr()),j(t,2,-2),0,i)}e(ti,"comment");function ce(t,r,a,i,o){return nt(t,r,a,at,j(t,0,i),j(t,i+1,-1),i,o)}e(ce,"declaration");function pt(t,r){for(var a="",i=0;i{le.forEach(t=>{t()}),le=[]},"attachFunctions");var ue=e(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function De(t){let r=t.match(At);if(!r)return{text:t,metadata:{}};let a=Ut(r[1],{schema:Nt})??{};a=typeof a=="object"&&!Array.isArray(a)?a:{};let i={};return a.displayMode&&(i.displayMode=a.displayMode.toString()),a.title&&(i.title=a.title.toString()),a.config&&(i.config=a.config),{text:t.slice(r[0].length),metadata:i}}e(De,"extractFrontMatter");var ai=e(t=>t.replace(/\r\n?/g,` -`).replace(/<(\w+)([^>]*)>/g,(r,a,i)=>"<"+a+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),ii=e(t=>{let{text:r,metadata:a}=De(t),{displayMode:i,title:o,config:n={}}=a;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:r}},"processFrontmatter"),oi=e(t=>{let r=G.detectInit(t)??{},a=G.detectDirective(t,"wrap");return Array.isArray(a)?r.wrap=a.some(({type:i})=>i==="wrap"):a?.type==="wrap"&&(r.wrap=!0),{text:Gt(t),directive:r}},"processDirectives");function Lt(t){let r=ai(t),a=ii(r),i=oi(a.text),o=Vt(a.config,i.directive);return t=ue(i.text),{code:t,title:a.title,config:o}}e(Lt,"preprocessDiagram");function ye(t){let r=new TextEncoder().encode(t),a=Array.from(r,i=>String.fromCodePoint(i)).join("");return btoa(a)}e(ye,"toBase64");var ni=5e4,si="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",ci="sandbox",mi="loose",pi="http://www.w3.org/2000/svg",di="http://www.w3.org/1999/xlink",fi="http://www.w3.org/1999/xhtml",li="100%",gi="100%",ui="border:0;margin:0;",Di="margin:0",yi="allow-top-navigation-by-user-activation allow-popups",xi='The "iframe" tag is not supported by your browser.',hi=["foreignobject"],Ei=["dominant-baseline"];function be(t){let r=Lt(t);return Y(),Ft(r.config??{}),r}e(be,"processAndSetConfigs");async function wi(t,r){$();try{let{code:a,config:i}=be(t);return{diagramType:(await Le(a)).type,config:i}}catch(a){if(r?.suppressErrors)return!1;throw a}}e(wi,"parse");var xe=e((t,r,a=[])=>` -.${t} ${r} { ${a.join(" !important; ")} !important; }`,"cssImportantStyles"),bi=e((t,r=new Map)=>{let a="";if(t.themeCSS!==void 0&&(a+=` +import{a as ht}from"./chunks/mermaid.esm.min/chunk-6CAUGOKZ.mjs";import{a as Yt}from"./chunks/mermaid.esm.min/chunk-3YFHLAX3.mjs";import{a as Ut,b as qt}from"./chunks/mermaid.esm.min/chunk-7LIB5WBN.mjs";import{a as Bt}from"./chunks/mermaid.esm.min/chunk-54VS5GG6.mjs";import"./chunks/mermaid.esm.min/chunk-ZUCAP7FR.mjs";import"./chunks/mermaid.esm.min/chunk-E7A2AWYO.mjs";import"./chunks/mermaid.esm.min/chunk-S67DUUA5.mjs";import"./chunks/mermaid.esm.min/chunk-LM6QDVU5.mjs";import{b as St}from"./chunks/mermaid.esm.min/chunk-D4BOYBYT.mjs";import{a as Mt}from"./chunks/mermaid.esm.min/chunk-AFC6EC46.mjs";import{b as Vt,j as yt,l as $t,m as z,n as Nt,o as Ht}from"./chunks/mermaid.esm.min/chunk-UENA7NWE.mjs";import"./chunks/mermaid.esm.min/chunk-TI4EEUUG.mjs";import{A as _,B as It,C as Y,D as Ft,G as _t,M as Gt,O as zt,aa as G,b as l,ba as X,c as lt,d as At,f as Tt,g as gt,ga as k,h as Z,i as J,j as Ct,k as Rt,r as tt,u as ut,v as kt,w as Ot,x as Pt,y as Dt,z as jt}from"./chunks/mermaid.esm.min/chunk-OR2G2HG5.mjs";import{d as xt}from"./chunks/mermaid.esm.min/chunk-YPUTD6PB.mjs";import"./chunks/mermaid.esm.min/chunk-6BY5RJGC.mjs";import{a as e}from"./chunks/mermaid.esm.min/chunk-GTKDMUJJ.mjs";var Xt="c4",Oe=e(t=>/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/.test(t),"detector"),Pe=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/c4Diagram-ET6I6IV7.mjs");return{id:Xt,diagram:t}},"loader"),je={id:Xt,detector:Oe,loader:Pe},Wt=je;var Kt="flowchart",Ie=e((t,r)=>r?.flowchart?.defaultRenderer==="dagre-wrapper"||r?.flowchart?.defaultRenderer==="elk"?!1:/^\s*graph/.test(t),"detector"),Fe=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-7QVFXBRT.mjs");return{id:Kt,diagram:t}},"loader"),_e={id:Kt,detector:Ie,loader:Fe},Qt=_e;var Zt="flowchart-v2",Ge=e((t,r)=>r?.flowchart?.defaultRenderer==="dagre-d3"?!1:(r?.flowchart?.defaultRenderer==="elk"&&(r.layout="elk"),/^\s*graph/.test(t)&&r?.flowchart?.defaultRenderer==="dagre-wrapper"?!0:/^\s*flowchart/.test(t)),"detector"),ze=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-7QVFXBRT.mjs");return{id:Zt,diagram:t}},"loader"),Ve={id:Zt,detector:Ge,loader:ze},Jt=Ve;var tr="er",$e=e(t=>/^\s*erDiagram/.test(t),"detector"),Ne=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/erDiagram-YH7IYH2C.mjs");return{id:tr,diagram:t}},"loader"),He={id:tr,detector:$e,loader:Ne},rr=He;var er="gitGraph",Ue=e(t=>/^\s*gitGraph/.test(t),"detector"),qe=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/gitGraphDiagram-H7KF5RUN.mjs");return{id:er,diagram:t}},"loader"),Be={id:er,detector:Ue,loader:qe},ar=Be;var ir="gantt",Ye=e(t=>/^\s*gantt/.test(t),"detector"),Xe=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/ganttDiagram-7KUJEIIK.mjs");return{id:ir,diagram:t}},"loader"),We={id:ir,detector:Ye,loader:Xe},or=We;var nr="info",Ke=e(t=>/^\s*info/.test(t),"detector"),Qe=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/infoDiagram-FIZOUH6F.mjs");return{id:nr,diagram:t}},"loader"),sr={id:nr,detector:Ke,loader:Qe};var cr="pie",Ze=e(t=>/^\s*pie/.test(t),"detector"),Je=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/pieDiagram-AYPHHONI.mjs");return{id:cr,diagram:t}},"loader"),mr={id:cr,detector:Ze,loader:Je};var pr="quadrantChart",ta=e(t=>/^\s*quadrantChart/.test(t),"detector"),ra=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/quadrantDiagram-QXTGSWY2.mjs");return{id:pr,diagram:t}},"loader"),ea={id:pr,detector:ta,loader:ra},dr=ea;var fr="xychart",aa=e(t=>/^\s*xychart-beta/.test(t),"detector"),ia=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/xychartDiagram-A2DIST7P.mjs");return{id:fr,diagram:t}},"loader"),oa={id:fr,detector:aa,loader:ia},lr=oa;var gr="requirement",na=e(t=>/^\s*requirement(Diagram)?/.test(t),"detector"),sa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/requirementDiagram-5YXTYXBB.mjs");return{id:gr,diagram:t}},"loader"),ca={id:gr,detector:na,loader:sa},ur=ca;var Dr="sequence",ma=e(t=>/^\s*sequenceDiagram/.test(t),"detector"),pa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/sequenceDiagram-EUUTCHHZ.mjs");return{id:Dr,diagram:t}},"loader"),da={id:Dr,detector:ma,loader:pa},yr=da;var xr="class",fa=e((t,r)=>r?.class?.defaultRenderer==="dagre-wrapper"?!1:/^\s*classDiagram/.test(t),"detector"),la=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/classDiagram-QKCJ6K63.mjs");return{id:xr,diagram:t}},"loader"),ga={id:xr,detector:fa,loader:la},hr=ga;var Er="classDiagram",ua=e((t,r)=>/^\s*classDiagram/.test(t)&&r?.class?.defaultRenderer==="dagre-wrapper"?!0:/^\s*classDiagram-v2/.test(t),"detector"),Da=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/classDiagram-v2-2JHJIACG.mjs");return{id:Er,diagram:t}},"loader"),ya={id:Er,detector:ua,loader:Da},wr=ya;var br="state",xa=e((t,r)=>r?.state?.defaultRenderer==="dagre-wrapper"?!1:/^\s*stateDiagram/.test(t),"detector"),ha=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/stateDiagram-U67EPTRE.mjs");return{id:br,diagram:t}},"loader"),Ea={id:br,detector:xa,loader:ha},Lr=Ea;var vr="stateDiagram",wa=e((t,r)=>!!(/^\s*stateDiagram-v2/.test(t)||/^\s*stateDiagram/.test(t)&&r?.state?.defaultRenderer==="dagre-wrapper"),"detector"),ba=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/stateDiagram-v2-HMOQ2HEA.mjs");return{id:vr,diagram:t}},"loader"),La={id:vr,detector:wa,loader:ba},Sr=La;var Mr="journey",va=e(t=>/^\s*journey/.test(t),"detector"),Sa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/journeyDiagram-CDK7QRCM.mjs");return{id:Mr,diagram:t}},"loader"),Ma={id:Mr,detector:va,loader:Sa},Ar=Ma;var Aa=e((t,r,a)=>{l.debug(`rendering svg for syntax error +`);let i=Yt(r),o=i.append("g");i.attr("viewBox","0 0 2412 512"),Gt(i,100,512,!0),o.append("path").attr("class","error-icon").attr("d","m411.313,123.313c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32-9.375,9.375-20.688-20.688c-12.484-12.5-32.766-12.5-45.25,0l-16,16c-1.261,1.261-2.304,2.648-3.31,4.051-21.739-8.561-45.324-13.426-70.065-13.426-105.867,0-192,86.133-192,192s86.133,192 192,192 192-86.133 192-192c0-24.741-4.864-48.327-13.426-70.065 1.402-1.007 2.79-2.049 4.051-3.31l16-16c12.5-12.492 12.5-32.758 0-45.25l-20.688-20.688 9.375-9.375 32.001-31.999zm-219.313,100.687c-52.938,0-96,43.063-96,96 0,8.836-7.164,16-16,16s-16-7.164-16-16c0-70.578 57.422-128 128-128 8.836,0 16,7.164 16,16s-7.164,16-16,16z"),o.append("path").attr("class","error-icon").attr("d","m459.02,148.98c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l16,16c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16.001-16z"),o.append("path").attr("class","error-icon").attr("d","m340.395,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688 6.25-6.25 6.25-16.375 0-22.625l-16-16c-6.25-6.25-16.375-6.25-22.625,0s-6.25,16.375 0,22.625l15.999,16z"),o.append("path").attr("class","error-icon").attr("d","m400,64c8.844,0 16-7.164 16-16v-32c0-8.836-7.156-16-16-16-8.844,0-16,7.164-16,16v32c0,8.836 7.156,16 16,16z"),o.append("path").attr("class","error-icon").attr("d","m496,96.586h-32c-8.844,0-16,7.164-16,16 0,8.836 7.156,16 16,16h32c8.844,0 16-7.164 16-16 0-8.836-7.156-16-16-16z"),o.append("path").attr("class","error-icon").attr("d","m436.98,75.605c3.125,3.125 7.219,4.688 11.313,4.688 4.094,0 8.188-1.563 11.313-4.688l32-32c6.25-6.25 6.25-16.375 0-22.625s-16.375-6.25-22.625,0l-32,32c-6.251,6.25-6.251,16.375-0.001,22.625z"),o.append("text").attr("class","error-text").attr("x",1440).attr("y",250).attr("font-size","150px").style("text-anchor","middle").text("Syntax error in text"),o.append("text").attr("class","error-text").attr("x",1250).attr("y",400).attr("font-size","100px").style("text-anchor","middle").text(`mermaid version ${a}`)},"draw"),Et={draw:Aa},Tr=Et;var Ta={db:{},renderer:Et,parser:{parse:e(()=>{},"parse")}},Cr=Ta;var Rr="flowchart-elk",Ca=e((t,r={})=>/^\s*flowchart-elk/.test(t)||/^\s*flowchart|graph/.test(t)&&r?.flowchart?.defaultRenderer==="elk"?(r.layout="elk",!0):!1,"detector"),Ra=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/flowDiagram-7QVFXBRT.mjs");return{id:Rr,diagram:t}},"loader"),ka={id:Rr,detector:Ca,loader:Ra},kr=ka;var Or="timeline",Oa=e(t=>/^\s*timeline/.test(t),"detector"),Pa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/timeline-definition-2YBW2SKD.mjs");return{id:Or,diagram:t}},"loader"),ja={id:Or,detector:Oa,loader:Pa},Pr=ja;var jr="mindmap",Ia=e(t=>/^\s*mindmap/.test(t),"detector"),Fa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/mindmap-definition-55KDPWGP.mjs");return{id:jr,diagram:t}},"loader"),_a={id:jr,detector:Ia,loader:Fa},Ir=_a;var Fr="kanban",Ga=e(t=>/^\s*kanban/.test(t),"detector"),za=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/kanban-definition-NEOEHSGR.mjs");return{id:Fr,diagram:t}},"loader"),Va={id:Fr,detector:Ga,loader:za},_r=Va;var Gr="sankey",$a=e(t=>/^\s*sankey-beta/.test(t),"detector"),Na=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/sankeyDiagram-T6MWQN27.mjs");return{id:Gr,diagram:t}},"loader"),Ha={id:Gr,detector:$a,loader:Na},zr=Ha;var Vr="packet",Ua=e(t=>/^\s*packet-beta/.test(t),"detector"),qa=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/diagram-D46ISNHH.mjs");return{id:Vr,diagram:t}},"loader"),$r={id:Vr,detector:Ua,loader:qa};var Nr="block",Ba=e(t=>/^\s*block-beta/.test(t),"detector"),Ya=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/blockDiagram-56QMO3LT.mjs");return{id:Nr,diagram:t}},"loader"),Xa={id:Nr,detector:Ba,loader:Ya},Hr=Xa;var Ur="architecture",Wa=e(t=>/^\s*architecture/.test(t),"detector"),Ka=e(async()=>{let{diagram:t}=await import("./chunks/mermaid.esm.min/architectureDiagram-MJF3Q7TB.mjs");return{id:Ur,diagram:t}},"loader"),Qa={id:Ur,detector:Wa,loader:Ka},qr=Qa;var Br=!1,$=e(()=>{Br||(Br=!0,G("error",Cr,t=>t.toLowerCase().trim()==="error"),G("---",{db:{clear:e(()=>{},"clear")},styles:{},renderer:{draw:e(()=>{},"draw")},parser:{parse:e(()=>{throw new Error("Diagrams beginning with --- are not valid. If you were trying to use a YAML front-matter, please ensure that you've correctly opened and closed the YAML front-matter with un-indented `---` blocks")},"parse")},init:e(()=>null,"init")},t=>t.toLowerCase().trimStart().startsWith("---")),J(Wt,_r,wr,hr,rr,or,sr,mr,ur,yr,kr,Jt,Qt,Ir,Pr,ar,Sr,Lr,Ar,dr,zr,$r,lr,Hr,qr))},"addDiagrams");var Yr=e(async()=>{l.debug("Loading registered diagrams");let r=(await Promise.allSettled(Object.entries(gt).map(async([a,{detector:i,loader:o}])=>{if(o)try{X(a)}catch{try{let{diagram:n,id:m}=await o();G(m,n,i)}catch(n){throw l.error(`Failed to load external diagram with key ${a}. Removing from detectors.`),delete gt[a],n}}}))).filter(a=>a.status==="rejected");if(r.length>0){l.error(`Failed to load ${r.length} external diagrams`);for(let a of r)l.error(a);throw new Error(`Failed to load ${r.length} external diagrams`)}},"loadRegisteredDiagrams");var rt="comm",et="rule",at="decl";var Xr="@import";var Wr="@keyframes";var Kr="@layer";var wt=Math.abs,W=String.fromCharCode;function it(t){return t.trim()}e(it,"trim");function K(t,r,a){return t.replace(r,a)}e(K,"replace");function Qr(t,r,a){return t.indexOf(r,a)}e(Qr,"indexof");function V(t,r){return t.charCodeAt(r)|0}e(V,"charat");function j(t,r,a){return t.slice(r,a)}e(j,"substr");function h(t){return t.length}e(h,"strlen");function Zr(t){return t.length}e(Zr,"sizeof");function N(t,r){return r.push(t),t}e(N,"append");var ot=1,H=1,Jr=0,w=0,D=0,q="";function nt(t,r,a,i,o,n,m,s){return{value:t,root:r,parent:a,type:i,props:o,children:n,line:ot,column:H,length:m,return:"",siblings:s}}e(nt,"node");function te(){return D}e(te,"char");function re(){return D=w>0?V(q,--w):0,H--,D===10&&(H=1,ot--),D}e(re,"prev");function b(){return D=w2||U(D)>3?"":" "}e(ie,"whitespace");function oe(t,r){for(;--r&&b()&&!(D<48||D>102||D>57&&D<65||D>70&&D<97););return st(t,Q()+(r<6&&O()==32&&b()==32))}e(oe,"escaping");function bt(t){for(;b();)switch(D){case t:return w;case 34:case 39:t!==34&&t!==39&&bt(D);break;case 40:t===41&&bt(t);break;case 92:b();break}return w}e(bt,"delimiter");function ne(t,r){for(;b()&&t+D!==57;)if(t+D===84&&O()===47)break;return"/*"+st(r,w-1)+"*"+W(t===47?t:b())}e(ne,"commenter");function se(t){for(;!U(O());)b();return st(t,w)}e(se,"identifier");function pe(t){return ae(mt("",null,null,null,[""],t=ee(t),0,[0],t))}e(pe,"compile");function mt(t,r,a,i,o,n,m,s,c){for(var g=0,y=0,p=m,x=0,A=0,L=0,f=1,C=1,v=1,u=0,S="",R=o,T=n,E=i,d=S;C;)switch(L=u,u=b()){case 40:if(L!=108&&V(d,p-1)==58){Qr(d+=K(ct(u),"&","&\f"),"&\f",wt(g?s[g-1]:0))!=-1&&(v=-1);break}case 34:case 39:case 91:d+=ct(u);break;case 9:case 10:case 13:case 32:d+=ie(L);break;case 92:d+=oe(Q()-1,7);continue;case 47:switch(O()){case 42:case 47:N(Za(ne(b(),Q()),r,a,c),c),(U(L||1)==5||U(O()||1)==5)&&h(d)&&j(d,-1,void 0)!==" "&&(d+=" ");break;default:d+="/"}break;case 123*f:s[g++]=h(d)*v;case 125*f:case 59:case 0:switch(u){case 0:case 125:C=0;case 59+y:v==-1&&(d=K(d,/\f/g,"")),A>0&&(h(d)-p||f===0&&L===47)&&N(A>32?me(d+";",i,a,p-1,c):me(K(d," ","")+";",i,a,p-2,c),c);break;case 59:d+=";";default:if(N(E=ce(d,r,a,g,y,o,s,S,R=[],T=[],p,n),n),u===123)if(y===0)mt(d,r,E,E,R,n,p,s,T);else switch(x===99&&V(d,3)===110?100:x){case 100:case 108:case 109:case 115:mt(t,E,E,i&&N(ce(t,E,E,0,0,o,s,S,o,R=[],p,T),T),o,T,p,s,i?R:T);break;default:mt(d,E,E,E,[""],T,0,s,T)}}g=y=A=0,f=v=1,S=d="",p=m;break;case 58:p=1+h(d),A=L;default:if(f<1){if(u==123)--f;else if(u==125&&f++==0&&re()==125)continue}switch(d+=W(u),u*f){case 38:v=y>0?1:(d+="\f",-1);break;case 44:s[g++]=(h(d)-1)*v,v=1;break;case 64:O()===45&&(d+=ct(b())),x=O(),y=p=h(S=d+=se(Q())),u++;break;case 45:L===45&&h(d)==2&&(f=0)}}return n}e(mt,"parse");function ce(t,r,a,i,o,n,m,s,c,g,y,p){for(var x=o-1,A=o===0?n:[""],L=Zr(A),f=0,C=0,v=0;f0?A[u]+" "+S:K(S,/&\f/g,A[u])))&&(c[v++]=R);return nt(t,r,a,o===0?et:s,c,g,y,p)}e(ce,"ruleset");function Za(t,r,a,i){return nt(t,r,a,rt,W(te()),j(t,2,-2),0,i)}e(Za,"comment");function me(t,r,a,i,o){return nt(t,r,a,at,j(t,0,i),j(t,i+1,-1),i,o)}e(me,"declaration");function pt(t,r){for(var a="",i=0;i{ge.forEach(t=>{t()}),ge=[]},"attachFunctions");var De=e(t=>t.replace(/^\s*%%(?!{)[^\n]+\n?/gm,"").trimStart(),"cleanupComments");function ye(t){let r=t.match(At);if(!r)return{text:t,metadata:{}};let a=qt(r[1],{schema:Ut})??{};a=typeof a=="object"&&!Array.isArray(a)?a:{};let i={};return a.displayMode&&(i.displayMode=a.displayMode.toString()),a.title&&(i.title=a.title.toString()),a.config&&(i.config=a.config),{text:t.slice(r[0].length),metadata:i}}e(ye,"extractFrontMatter");var ri=e(t=>t.replace(/\r\n?/g,` +`).replace(/<(\w+)([^>]*)>/g,(r,a,i)=>"<"+a+i.replace(/="([^"]*)"/g,"='$1'")+">"),"cleanupText"),ei=e(t=>{let{text:r,metadata:a}=ye(t),{displayMode:i,title:o,config:n={}}=a;return i&&(n.gantt||(n.gantt={}),n.gantt.displayMode=i),{title:o,config:n,text:r}},"processFrontmatter"),ai=e(t=>{let r=z.detectInit(t)??{},a=z.detectDirective(t,"wrap");return Array.isArray(a)?r.wrap=a.some(({type:i})=>i==="wrap"):a?.type==="wrap"&&(r.wrap=!0),{text:Vt(t),directive:r}},"processDirectives");function Lt(t){let r=ri(t),a=ei(r),i=ai(a.text),o=$t(a.config,i.directive);return t=De(i.text),{code:t,title:a.title,config:o}}e(Lt,"preprocessDiagram");function xe(t){let r=new TextEncoder().encode(t),a=Array.from(r,i=>String.fromCodePoint(i)).join("");return btoa(a)}e(xe,"toBase64");var ii=5e4,oi="graph TB;a[Maximum text size in diagram exceeded];style a fill:#faa",ni="sandbox",si="loose",ci="http://www.w3.org/2000/svg",mi="http://www.w3.org/1999/xlink",pi="http://www.w3.org/1999/xhtml",di="100%",fi="100%",li="border:0;margin:0;",gi="margin:0",ui="allow-top-navigation-by-user-activation allow-popups",Di='The "iframe" tag is not supported by your browser.',yi=["foreignobject"],xi=["dominant-baseline"];function be(t){let r=Lt(t);return Y(),It(r.config??{}),r}e(be,"processAndSetConfigs");async function hi(t,r){$();try{let{code:a,config:i}=be(t);return{diagramType:(await Le(a)).type,config:i}}catch(a){if(r?.suppressErrors)return!1;throw a}}e(hi,"parse");var he=e((t,r,a=[])=>` +.${t} ${r} { ${a.join(" !important; ")} !important; }`,"cssImportantStyles"),Ei=e((t,r=new Map)=>{let a="";if(t.themeCSS!==void 0&&(a+=` ${t.themeCSS}`),t.fontFamily!==void 0&&(a+=` :root { --mermaid-font-family: ${t.fontFamily}}`),t.altFontFamily!==void 0&&(a+=` -:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),r instanceof Map){let m=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach(s=>{xt(s.styles)||m.forEach(c=>{a+=xe(s.id,c,s.styles)}),xt(s.textStyles)||(a+=xe(s.id,"tspan",(s?.textStyles||[]).map(c=>c.replace("color","fill"))))})}return a},"createCssStyles"),Li=e((t,r,a,i)=>{let o=bi(t,a),n=zt(r,o,t.themeVariables);return pt(me(`${i}{${n}}`),pe)},"createUserStyles"),vi=e((t="",r,a)=>{let i=t;return!a&&!r&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Ht(i),i=i.replace(/
      /g,"
      "),i},"cleanUpSvgCode"),Si=e((t="",r)=>{let a=r?.viewBox?.baseVal?.height?r.viewBox.baseVal.height+"px":gi,i=ye(`${t}`);return``},"putIntoIFrame"),he=e((t,r,a,i,o)=>{let n=t.append("div");n.attr("id",a),i&&n.attr("style",i);let m=n.append("svg").attr("id",r).attr("width","100%").attr("xmlns",pi);return o&&m.attr("xmlns:xlink",o),m.append("g"),t},"appendDivSvgG");function Ee(t,r){return t.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}e(Ee,"sandboxedIframe");var Mi=e((t,r,a,i)=>{t.getElementById(r)?.remove(),t.getElementById(a)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),Ai=e(async function(t,r,a){$();let i=be(r);r=i.code;let o=_();l.debug(o),r.length>(o?.maxTextSize??ni)&&(r=si);let n="#"+t,m="i"+t,s="#"+m,c="d"+t,g="#"+c,y=e(()=>{let ft=k(x?s:g).node();ft&&"remove"in ft&&ft.remove()},"removeTempElements"),p=k("body"),x=o.securityLevel===ci,A=o.securityLevel===mi,L=o.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),x){let M=Ee(k(a),m);p=k(M.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=k(a);he(p,t,c,`font-family: ${L}`,di)}else{if(Mi(document,t,c,m),x){let M=Ee(k("body"),m);p=k(M.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=k("body");he(p,t,c)}let f,C;try{f=await B.fromText(r,{title:i.title})}catch(M){if(o.suppressErrorRendering)throw y(),M;f=await B.fromText("error"),C=M}let v=p.select(g).node(),u=f.type,S=v.firstChild,R=S.firstChild,T=f.renderer.getClasses?.(r,f),E=Li(o,u,T,n),d=document.createElement("style");d.innerHTML=E,S.insertBefore(d,R);try{await f.renderer.draw(r,t,ht,f)}catch(M){throw o.suppressErrorRendering?y():Ar.draw(r,t,ht),M}let Ce=p.select(`${g} svg`),Re=f.db.getAccTitle?.(),ke=f.db.getAccDescription?.();Ci(u,Ce,Re,ke),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",fi);let I=p.select(g).node().innerHTML;if(l.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),I=vi(I,x,It(o.arrowMarkerAbsolute)),x){let M=p.select(g+" svg").node();I=Si(I,M)}else A||(I=we.default.sanitize(I,{ADD_TAGS:hi,ADD_ATTR:Ei}));if(ge(),C)throw C;return y(),{diagramType:u,svg:I,bindFunctions:f.db.bindFunctions}},"render");function Ti(t={}){let r=Rt({},t);r?.fontFamily&&!r.themeVariables?.fontFamily&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),Ot(r),r?.theme&&r.theme in tt?r.themeVariables=tt[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=tt.default.getThemeVariables(r.themeVariables));let a=typeof r=="object"?kt(r):Dt();lt(a.logLevel),$()}e(Ti,"initialize");var Le=e((t,r={})=>{let{code:a}=Lt(t);return B.fromText(a,r)},"getDiagramFromText");function Ci(t,r,a,i){de(r,t),fe(r,a,i,r.attr("id"))}e(Ci,"addA11yInfo");var F=Object.freeze({render:Ai,parse:wi,getDiagramFromText:Le,initialize:Ti,getConfig:_,setConfig:jt,getSiteConfig:Dt,updateSiteConfig:Pt,reset:e(()=>{Y()},"reset"),globalReset:e(()=>{Y(ut)},"globalReset"),defaultConfig:ut});lt(_().logLevel);Y(_());var Ri=e((t,r,a)=>{l.warn(t),yt(t)?(a&&a(t.str,t.hash),r.push({...t,message:t.str,error:t})):(a&&a(t),t instanceof Error&&r.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),ve=e(async function(t={querySelector:".mermaid"}){try{await ki(t)}catch(r){if(yt(r)&&l.error(r.str),P.parseError&&P.parseError(r),!t.suppressErrors)throw l.error("Use the suppressErrors option to suppress these errors"),r}},"run"),ki=e(async function({postRenderCallback:t,querySelector:r,nodes:a}={querySelector:".mermaid"}){let i=F.getConfig();l.debug(`${t?"":"No "}Callback function found`);let o;if(a)o=a;else if(r)o=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");l.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(l.debug("Start On Load: "+i?.startOnLoad),F.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new G.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),m,s=[];for(let c of Array.from(o)){l.info("Rendering diagram: "+c.id);if(c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let g=`mermaid-${n.next()}`;m=c.innerHTML,m=Mt(G.entityDecode(m)).trim().replace(//gi,"
      ");let y=G.detectInit(m);y&&l.debug("Detected early reinit: ",y);try{let{svg:p,bindFunctions:x}=await Te(g,m,c);c.innerHTML=p,t&&await t(g),x&&x(c)}catch(p){Ri(p,s,P.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),Se=e(function(t){F.initialize(t)},"initialize"),Oi=e(async function(t,r,a){l.warn("mermaid.init is deprecated. Please use run instead."),t&&Se(t);let i={postRenderCallback:a,querySelector:".mermaid"};typeof r=="string"?i.querySelector=r:r&&(r instanceof HTMLElement?i.nodes=[r]:i.nodes=r),await ve(i)},"init"),Pi=e(async(t,{lazyLoad:r=!0}={})=>{$(),J(...t),r===!1&&await Br()},"registerExternalDiagrams"),Me=e(function(){if(P.startOnLoad){let{startOnLoad:t}=F.getConfig();t&&P.run().catch(r=>l.error("Mermaid failed to initialize",r))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",Me,!1)}var ji=e(function(t){P.parseError=t},"setParseErrorHandler"),dt=[],vt=!1,Ae=e(async()=>{if(!vt){for(vt=!0;dt.length>0;){let t=dt.shift();if(t)try{await t()}catch(r){l.error("Error executing queue",r)}}vt=!1}},"executeQueue"),Fi=e(async(t,r)=>new Promise((a,i)=>{let o=e(()=>new Promise((n,m)=>{F.parse(t,r).then(s=>{n(s),a(s)},s=>{l.error("Error parsing",s),P.parseError?.(s),m(s),i(s)})}),"performCall");dt.push(o),Ae().catch(i)}),"parse"),Te=e((t,r,a)=>new Promise((i,o)=>{let n=e(()=>new Promise((m,s)=>{F.render(t,r,a).then(c=>{m(c),i(c)},c=>{l.error("Error parsing",c),P.parseError?.(c),s(c),o(c)})}),"performCall");dt.push(n),Ae().catch(o)}),"render"),P={startOnLoad:!0,mermaidAPI:F,parse:Fi,render:Te,init:Oi,run:ve,registerExternalDiagrams:Pi,registerLayoutLoaders:qt,initialize:Se,parseError:void 0,contentLoaded:Me,setParseErrorHandler:ji,detectType:Z,registerIconPacks:St},Is=P;export{Is as default}; +:root { --mermaid-alt-font-family: ${t.altFontFamily}}`),r instanceof Map){let m=t.htmlLabels??t.flowchart?.htmlLabels?["> *","span"]:["rect","polygon","ellipse","circle","path"];r.forEach(s=>{xt(s.styles)||m.forEach(c=>{a+=he(s.id,c,s.styles)}),xt(s.textStyles)||(a+=he(s.id,"tspan",(s?.textStyles||[]).map(c=>c.replace("color","fill"))))})}return a},"createCssStyles"),wi=e((t,r,a,i)=>{let o=Ei(t,a),n=zt(r,o,t.themeVariables);return pt(pe(`${i}{${n}}`),de)},"createUserStyles"),bi=e((t="",r,a)=>{let i=t;return!a&&!r&&(i=i.replace(/marker-end="url\([\d+./:=?A-Za-z-]*?#/g,'marker-end="url(#')),i=Ht(i),i=i.replace(/
      /g,"
      "),i},"cleanUpSvgCode"),Li=e((t="",r)=>{let a=r?.viewBox?.baseVal?.height?r.viewBox.baseVal.height+"px":fi,i=xe(`${t}`);return``},"putIntoIFrame"),Ee=e((t,r,a,i,o)=>{let n=t.append("div");n.attr("id",a),i&&n.attr("style",i);let m=n.append("svg").attr("id",r).attr("width","100%").attr("xmlns",ci);return o&&m.attr("xmlns:xlink",o),m.append("g"),t},"appendDivSvgG");function we(t,r){return t.append("iframe").attr("id",r).attr("style","width: 100%; height: 100%;").attr("sandbox","")}e(we,"sandboxedIframe");var vi=e((t,r,a,i)=>{t.getElementById(r)?.remove(),t.getElementById(a)?.remove(),t.getElementById(i)?.remove()},"removeExistingElements"),Si=e(async function(t,r,a){$();let i=be(r);r=i.code;let o=_();l.debug(o),r.length>(o?.maxTextSize??ii)&&(r=oi);let n="#"+t,m="i"+t,s="#"+m,c="d"+t,g="#"+c,y=e(()=>{let ft=k(x?s:g).node();ft&&"remove"in ft&&ft.remove()},"removeTempElements"),p=k("body"),x=o.securityLevel===ni,A=o.securityLevel===si,L=o.fontFamily;if(a!==void 0){if(a&&(a.innerHTML=""),x){let M=we(k(a),m);p=k(M.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=k(a);Ee(p,t,c,`font-family: ${L}`,mi)}else{if(vi(document,t,c,m),x){let M=we(k("body"),m);p=k(M.nodes()[0].contentDocument.body),p.node().style.margin=0}else p=k("body");Ee(p,t,c)}let f,C;try{f=await B.fromText(r,{title:i.title})}catch(M){if(o.suppressErrorRendering)throw y(),M;f=await B.fromText("error"),C=M}let v=p.select(g).node(),u=f.type,S=v.firstChild,R=S.firstChild,T=f.renderer.getClasses?.(r,f),E=wi(o,u,T,n),d=document.createElement("style");d.innerHTML=E,S.insertBefore(d,R);try{await f.renderer.draw(r,t,ht,f)}catch(M){throw o.suppressErrorRendering?y():Tr.draw(r,t,ht),M}let Ce=p.select(`${g} svg`),Re=f.db.getAccTitle?.(),ke=f.db.getAccDescription?.();Ai(u,Ce,Re,ke),p.select(`[id="${t}"]`).selectAll("foreignobject > *").attr("xmlns",pi);let F=p.select(g).node().innerHTML;if(l.debug("config.arrowMarkerAbsolute",o.arrowMarkerAbsolute),F=bi(F,x,_t(o.arrowMarkerAbsolute)),x){let M=p.select(g+" svg").node();F=Li(F,M)}else A||(F=Ft.sanitize(F,{ADD_TAGS:yi,ADD_ATTR:xi,HTML_INTEGRATION_POINTS:{foreignobject:!0}}));if(ue(),C)throw C;return y(),{diagramType:u,svg:F,bindFunctions:f.db.bindFunctions}},"render");function Mi(t={}){let r=Rt({},t);r?.fontFamily&&!r.themeVariables?.fontFamily&&(r.themeVariables||(r.themeVariables={}),r.themeVariables.fontFamily=r.fontFamily),Ot(r),r?.theme&&r.theme in tt?r.themeVariables=tt[r.theme].getThemeVariables(r.themeVariables):r&&(r.themeVariables=tt.default.getThemeVariables(r.themeVariables));let a=typeof r=="object"?kt(r):Dt();lt(a.logLevel),$()}e(Mi,"initialize");var Le=e((t,r={})=>{let{code:a}=Lt(t);return B.fromText(a,r)},"getDiagramFromText");function Ai(t,r,a,i){fe(r,t),le(r,a,i,r.attr("id"))}e(Ai,"addA11yInfo");var I=Object.freeze({render:Si,parse:hi,getDiagramFromText:Le,initialize:Mi,getConfig:_,setConfig:jt,getSiteConfig:Dt,updateSiteConfig:Pt,reset:e(()=>{Y()},"reset"),globalReset:e(()=>{Y(ut)},"globalReset"),defaultConfig:ut});lt(_().logLevel);Y(_());var Ti=e((t,r,a)=>{l.warn(t),yt(t)?(a&&a(t.str,t.hash),r.push({...t,message:t.str,error:t})):(a&&a(t),t instanceof Error&&r.push({str:t.message,message:t.message,hash:t.name,error:t}))},"handleError"),ve=e(async function(t={querySelector:".mermaid"}){try{await Ci(t)}catch(r){if(yt(r)&&l.error(r.str),P.parseError&&P.parseError(r),!t.suppressErrors)throw l.error("Use the suppressErrors option to suppress these errors"),r}},"run"),Ci=e(async function({postRenderCallback:t,querySelector:r,nodes:a}={querySelector:".mermaid"}){let i=I.getConfig();l.debug(`${t?"":"No "}Callback function found`);let o;if(a)o=a;else if(r)o=document.querySelectorAll(r);else throw new Error("Nodes and querySelector are both undefined");l.debug(`Found ${o.length} diagrams`),i?.startOnLoad!==void 0&&(l.debug("Start On Load: "+i?.startOnLoad),I.updateSiteConfig({startOnLoad:i?.startOnLoad}));let n=new z.InitIDGenerator(i.deterministicIds,i.deterministicIDSeed),m,s=[];for(let c of Array.from(o)){l.info("Rendering diagram: "+c.id);if(c.getAttribute("data-processed"))continue;c.setAttribute("data-processed","true");let g=`mermaid-${n.next()}`;m=c.innerHTML,m=Mt(z.entityDecode(m)).trim().replace(//gi,"
      ");let y=z.detectInit(m);y&&l.debug("Detected early reinit: ",y);try{let{svg:p,bindFunctions:x}=await Te(g,m,c);c.innerHTML=p,t&&await t(g),x&&x(c)}catch(p){Ti(p,s,P.parseError)}}if(s.length>0)throw s[0]},"runThrowsErrors"),Se=e(function(t){I.initialize(t)},"initialize"),Ri=e(async function(t,r,a){l.warn("mermaid.init is deprecated. Please use run instead."),t&&Se(t);let i={postRenderCallback:a,querySelector:".mermaid"};typeof r=="string"?i.querySelector=r:r&&(r instanceof HTMLElement?i.nodes=[r]:i.nodes=r),await ve(i)},"init"),ki=e(async(t,{lazyLoad:r=!0}={})=>{$(),J(...t),r===!1&&await Yr()},"registerExternalDiagrams"),Me=e(function(){if(P.startOnLoad){let{startOnLoad:t}=I.getConfig();t&&P.run().catch(r=>l.error("Mermaid failed to initialize",r))}},"contentLoaded");if(typeof document<"u"){window.addEventListener("load",Me,!1)}var Oi=e(function(t){P.parseError=t},"setParseErrorHandler"),dt=[],vt=!1,Ae=e(async()=>{if(!vt){for(vt=!0;dt.length>0;){let t=dt.shift();if(t)try{await t()}catch(r){l.error("Error executing queue",r)}}vt=!1}},"executeQueue"),Pi=e(async(t,r)=>new Promise((a,i)=>{let o=e(()=>new Promise((n,m)=>{I.parse(t,r).then(s=>{n(s),a(s)},s=>{l.error("Error parsing",s),P.parseError?.(s),m(s),i(s)})}),"performCall");dt.push(o),Ae().catch(i)}),"parse"),Te=e((t,r,a)=>new Promise((i,o)=>{let n=e(()=>new Promise((m,s)=>{I.render(t,r,a).then(c=>{m(c),i(c)},c=>{l.error("Error parsing",c),P.parseError?.(c),s(c),o(c)})}),"performCall");dt.push(n),Ae().catch(o)}),"render"),P={startOnLoad:!0,mermaidAPI:I,parse:Pi,render:Te,init:Ri,run:ve,registerExternalDiagrams:ki,registerLayoutLoaders:Bt,initialize:Se,parseError:void 0,contentLoaded:Me,setParseErrorHandler:Oi,detectType:Z,registerIconPacks:St},Is=P;export{Is as default}; /*! Check if previously processed */ /*! * Wait for document loaded before starting the execution